mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 17:27:02 +00:00
Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1116,9 +1116,12 @@ AC_SUBST(EDITLINE_LIB)
|
||||
AC_CHECK_HEADER([h323.h], [PBX_H323=1], [PBX_H323=0])
|
||||
AC_SUBST(PBX_H323)
|
||||
|
||||
AC_CHECK_HEADER([linux/compiler.h],
|
||||
[AC_DEFINE_UNQUOTED([HAVE_LINUX_COMPILER_H], 1, [Define to 1 if your system has linux/compiler.h.])])
|
||||
|
||||
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)
|
||||
#ifdef HAVE_LINUX_COMPILER_H
|
||||
#include <linux/compiler.h>
|
||||
#endif
|
||||
])
|
||||
|
Reference in New Issue
Block a user