aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2010-12-07 21:14:20 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2010-12-07 21:14:20 -0500
commitb17aea7621494724fc06e6a4dee35c8bf5dffc07 (patch)
treeeebbba4664e686b4b7fbfd513823c6d2206273ea /configure.in
parent023bb328c7c0d9f1b95b2fd5f7207a61d0c69307 (diff)
parent4455eee4768796782b5842223647f7d1c8d085bb (diff)
downloadNetNuke2-b17aea7621494724fc06e6a4dee35c8bf5dffc07.tar.gz
Merge branch 'extrarius-master'
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in33
1 files changed, 27 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index f042589..c3a8729 100644
--- a/configure.in
+++ b/configure.in
@@ -6,9 +6,14 @@ AC_CONFIG_SRCDIR([src/netnuke.c])
AC_CONFIG_HEADERS([config.h])
# Check for programs.
-AC_PROG_CC_C99
-AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
- [AC_MSG_ERROR([no C99 compiler found. Aborting.])])
+AC_PROG_CXX
+AC_PROG_AWK
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_RANLIB
# Initializing libtool.
AC_DISABLE_SHARED
@@ -21,14 +26,30 @@ AC_CHECK_LIB([pthread], [pthread_create], [],
[AC_MSG_ERROR([required library pthread missing])])
# Checks for header files.
-AC_CHECK_HEADERS_ONCE([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h])
+AC_CHECK_HEADERS_ONCE([fcntl.h stddef.h stdlib.h string.h sys/ioctl.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_UID_T
+AC_C_INLINE
+AC_TYPE_SIZE_T
+AC_TYPE_SSIZE_T
+AC_SYS_LARGEFILE
+
+AC_CHECK_SIZEOF(unsigned long long)
+AC_CHECK_SIZEOF(unsigned long int)
+
+if test $ac_cv_sizeof_unsigned_long_long -ne 8; then
+ AC_MSG_ERROR([unsigned long long is less than 8 bytes])
+fi
+
+if test $ac_cv_sizeof_unsigned_long_int -lt 4; then
+ AC_MSG_ERROR([unsigned long int is less than 4 bytes])
+fi
# Checks for library functions.
+AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
-AC_CHECK_FUNCS_ONCE([memmove memset strerror strncasecmp])
+AC_FUNC_REALLOC
+AC_CHECK_FUNCS_ONCE([getpagesize memmove memset strchr strerror strncasecmp strrchr strstr])
AC_CONFIG_FILES([Makefile libsysfs/Makefile src/Makefile])