[asterisk-commits] trunk r23875 - /trunk/configure.ac

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 1 02:38:33 MST 2006


Author: kpfleming
Date: Mon May  1 04:38:32 2006
New Revision: 23875

URL: http://svn.digium.com/view/asterisk?rev=23875&view=rev
Log:
do check for ixjuser.h in a way that can actually succeed :-)

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?rev=23875&r1=23874&r2=23875&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon May  1 04:38:32 2006
@@ -308,14 +308,15 @@
 AC_SUBST([pq_LIB])
 AC_SUBST([PBX_LIBpq])
 
-PBX_H323=0
-AC_CHECK_HEADER([h323.h], [PBX_H323=1], [])
+AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0])
 AC_SUBST(PBX_H323)
 
-PBX_IXJUSER=0
-AC_CHECK_HEADER([linux/ixjuser.h], [
-   AC_CHECK_HEADER([linux/telephony.h], [
-      AC_CHECK_HEADER([linux/version.h], [PBX_IXJUSER=1])])])
+AC_CHECK_HEADER([linux/ixjuser.h], [PBX_IXJUSER=1], [PBX_IXJUSER=0], [
+				   #include <linux/version.h>
+				   #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+				   #include <linux/compiler.h>
+				   #endif
+				   ])
 AC_SUBST(PBX_IXJUSER)
 
 AC_ARG_WITH([vpb], AC_HELP_STRING([--with-vpb=PATH],[use vpb files in PATH]),[



More information about the asterisk-commits mailing list