configure: update to autoconf v2.72

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-06-01 09:47:44 +02:00
parent 29aa1a26b9
commit f7779c2a62

View file

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59) AC_PREREQ([2.72])
AC_INIT(alsa-lib, 1.2.15.3) AC_INIT([alsa-lib],[1.2.15.3])
AC_CONFIG_SRCDIR([src/control/control.c]) AC_CONFIG_SRCDIR([src/control/control.c])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
@ -33,23 +33,25 @@ AC_USE_SYSTEM_EXTENSIONS
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_DISABLE_STATIC AC_DISABLE_STATIC
AC_LIBTOOL_DLOPEN _LT_SET_OPTION([LT_INIT],[dlopen])
AM_PROG_LIBTOOL LT_INIT
CC_NOUNDEFINED CC_NOUNDEFINED
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP
AC_CONFIG_HEADERS(include/config.h) AC_CONFIG_HEADERS(include/config.h)
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_HEADER_TIME AC_CHECK_HEADERS_ONCE([sys/time.h])
AC_CHECK_ATTRIBUTE_SYMVER AC_CHECK_ATTRIBUTE_SYMVER
dnl Checks for library functions. dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_CHECK_FUNCS([uselocale]) AC_CHECK_FUNCS([uselocale])
AC_CHECK_FUNCS([eaccess]) AC_CHECK_FUNCS([eaccess])
AC_CHECK_DECLS([closefrom]) AC_CHECK_DECLS([closefrom])
@ -251,10 +253,7 @@ fi
dnl Check for scandir64 dnl Check for scandir64
AC_MSG_CHECKING(for LFS calls) AC_MSG_CHECKING(for LFS calls)
AC_TRY_LINK([#include <dirent.h>], AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <dirent.h>]], [[struct dirent64 a; ]])],[have_lfs=yes],[have_lfs=no])
[struct dirent64 a; ],
[have_lfs=yes],
[have_lfs=no])
if test "$have_lfs" = "yes"; then if test "$have_lfs" = "yes"; then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_LFS], 1, [Have LFS]) AC_DEFINE([HAVE_LFS], 1, [Have LFS])
@ -358,7 +357,7 @@ AC_ARG_ENABLE(resmgr,
AC_MSG_RESULT($resmgr) AC_MSG_RESULT($resmgr)
if test "$resmgr" = "yes"; then if test "$resmgr" = "yes"; then
AC_CHECK_LIB(resmgr, rsm_open_device,, AC_CHECK_LIB(resmgr, rsm_open_device,,
AC_ERROR([Cannot find libresmgr])) AC_MSG_ERROR(Cannot find libresmgr))
AC_DEFINE(SUPPORT_RESMGR, "1", [Support resmgr with alsa-lib]) AC_DEFINE(SUPPORT_RESMGR, "1", [Support resmgr with alsa-lib])
fi fi
@ -482,7 +481,7 @@ AC_SUBST(PYTHON_INCLUDES)
if test "$build_rawmidi" != "yes"; then if test "$build_rawmidi" != "yes"; then
if test "$build_seq" = "yes"; then if test "$build_seq" = "yes"; then
AC_ERROR([Cannot enable sequencer without rawmidi]) AC_MSG_ERROR(Cannot enable sequencer without rawmidi)
fi fi
fi fi
@ -534,22 +533,16 @@ dnl check atomics for pcm_meter
AC_MSG_CHECKING([whether GCC supports builtin atomic intrinsics]) AC_MSG_CHECKING([whether GCC supports builtin atomic intrinsics])
if test -z "$gcc_have_atomics"; then if test -z "$gcc_have_atomics"; then
gcc_have_atomics=no gcc_have_atomics=no
AC_TRY_LINK([], AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int i;
[int i;
__atomic_load_n(&i, __ATOMIC_SEQ_CST); __atomic_load_n(&i, __ATOMIC_SEQ_CST);
__atomic_add_fetch(&i, 0, __ATOMIC_SEQ_CST); __atomic_add_fetch(&i, 0, __ATOMIC_SEQ_CST);
], ]])],[gcc_have_atomics=yes],[gcc_have_atomics=no])
[gcc_have_atomics=yes],
[gcc_have_atomics=no])
fi fi
AC_MSG_RESULT($gcc_have_atomics) AC_MSG_RESULT($gcc_have_atomics)
dnl check mmx register for pcm_dmix_i386 dnl check mmx register for pcm_dmix_i386
AC_TRY_LINK([], AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[__asm__ volatile ("" : : : "mm0");]])],[AC_DEFINE([HAVE_MMX], "1", [MMX technology is enabled])],[])
[__asm__ volatile ("" : : : "mm0");],
[AC_DEFINE([HAVE_MMX], "1", [MMX technology is enabled])],
[])
PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul" PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
@ -734,9 +727,9 @@ AC_ARG_WITH(max-cards,
AC_MSG_RESULT([$max_cards]) AC_MSG_RESULT([$max_cards])
if test "$max_cards" -lt 1; then if test "$max_cards" -lt 1; then
AC_ERROR([Invalid max cards $max_cards]) AC_MSG_ERROR(Invalid max cards $max_cards)
elif test "$max_cards" -gt 256; then elif test "$max_cards" -gt 256; then
AC_ERROR([Invalid max cards $max_cards]) AC_MSG_ERROR(Invalid max cards $max_cards)
fi fi
AC_DEFINE_UNQUOTED(SND_MAX_CARDS, $max_cards, [Max number of cards]) AC_DEFINE_UNQUOTED(SND_MAX_CARDS, $max_cards, [Max number of cards])
@ -779,7 +772,7 @@ AC_CONFIG_FILES(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
test/Makefile test/lsb/Makefile \ test/Makefile test/lsb/Makefile \
utils/Makefile utils/alsa-lib.spec utils/alsa.pc utils/alsa-topology.pc) utils/Makefile utils/alsa-lib.spec utils/alsa.pc utils/alsa-topology.pc)
AC_OUTPUT() AC_OUTPUT
dnl Create asoundlib.h dynamically according to configure options dnl Create asoundlib.h dynamically according to configure options
echo "Creating asoundlib.h..." echo "Creating asoundlib.h..."