mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-21 06:59:59 -05:00
Create an m4 directory for common macros and use it.
Split acinclude.m4 in multiple macro files. Let it be known to autoconf and aclocal to use the m4 directory. Ignore macro files copied or linked by libtool and intltool.
This commit is contained in:
parent
f4e9b7d778
commit
2da79d5ade
8 changed files with 49 additions and 42 deletions
13
m4/check_define.m4
Normal file
13
m4/check_define.m4
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
AC_DEFUN([AC_CHECK_DEFINE],[
|
||||
AS_VAR_PUSHDEF([ac_var],[ac_cv_defined_$1_$2])dnl
|
||||
AC_CACHE_CHECK([for $1 in $2], ac_var,
|
||||
AC_TRY_COMPILE([#include <$2>],[
|
||||
#ifdef $1
|
||||
int ok;
|
||||
#else
|
||||
choke me
|
||||
#endif
|
||||
],AS_VAR_SET(ac_var, yes),AS_VAR_SET(ac_var, no)))
|
||||
AS_IF([test AS_VAR_GET(ac_var) != "no"], [$3], [$4])dnl
|
||||
AS_VAR_POPDEF([ac_var])dnl
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue