aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
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])