Index: configure.ac =================================================================== --- configure.ac (revision 231299) +++ configure.ac (working copy) @@ -268,6 +268,7 @@ AST_EXT_LIB_SETUP_DEPENDENT([PRI_REVERSE_CHARGE], [ISDN reverse charge], [PRI], [pri]) AST_EXT_LIB_SETUP([RESAMPLE], [LIBRESAMPLE], [resample]) AST_EXT_LIB_SETUP([SPANDSP], [SPANDSP], [spandsp]) +AST_EXT_LIB_SETUP_DEPENDENT([SPANDSP_EXPOSE_H], [spandsp expose.h header], [SPANDSP], [spandsp]) AST_EXT_LIB_SETUP([SS7], [ISDN SS7], [ss7]) AST_EXT_LIB_SETUP([PWLIB], [PWlib], [pwlib]) AST_EXT_LIB_SETUP([OPENH323], [OpenH323], [h323]) @@ -1342,7 +1343,7 @@ fi if test "x${PBX_SPANDSP}" = "x1" ; then - AC_CHECK_HEADER([spandsp/expose.h], [AC_DEFINE_UNQUOTED([HAVE_SPANDSP_EXPOSE_H], 1, [Define to 1 if spandsp/expose.h is available.])], [], [#include ]) + AST_EXT_LIB_CHECK([SPANDSP_EXPOSE_H], [spandsp], [], [spandsp/expose.h]) fi AST_EXT_LIB_CHECK([SS7], [ss7], [ss7_pollflags], [libss7.h])