mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Better solution for compat sources
This commit is contained in:
parent
a983321c27
commit
b60673fe68
2 changed files with 3 additions and 9 deletions
|
|
@ -32,8 +32,8 @@ AC_HEADER_TIME
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_PROG_GCC_TRADITIONAL
|
AC_PROG_GCC_TRADITIONAL
|
||||||
AC_CHECK_FUNCS(hsearch_r)
|
AC_CHECK_FUNC(hsearch_r, , [ COMPAT_SRCS="$COMPAT_SRCS hsearch_r.c" ])
|
||||||
AM_CONDITIONAL(Have_hsearch_r, test x$ac_cv_func_hsearch_r = xyes)
|
AC_SUBST(COMPAT_SRCS)
|
||||||
|
|
||||||
ALSA_CHECK_DRIVER
|
ALSA_CHECK_DRIVER
|
||||||
SAVE_LIBRARY_VERSION
|
SAVE_LIBRARY_VERSION
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,6 @@
|
||||||
EXTRA_LTLIBRARIES = libcompat.la
|
EXTRA_LTLIBRARIES = libcompat.la
|
||||||
EXTRA_libcompat_la_SOURCES = hsearch_r.c
|
EXTRA_libcompat_la_SOURCES = hsearch_r.c
|
||||||
|
|
||||||
if Have_hsearch_r
|
libcompat_la_SOURCES = @COMPAT_SRCS@
|
||||||
HSEARCH_R =
|
|
||||||
else
|
|
||||||
HSEARCH_R = hsearch_r.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
libcompat_la_SOURCES = $(HSEARCH_R)
|
|
||||||
|
|
||||||
all: libcompat.la
|
all: libcompat.la
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue