diff options
author | Alan Brault <alan.brault@incruentatus.net> | 2010-12-07 21:04:26 -0500 |
---|---|---|
committer | Alan Brault <alan.brault@incruentatus.net> | 2010-12-07 21:04:26 -0500 |
commit | d3c784283fe6d4eac879e1f3e084b18ee2af7fa2 (patch) | |
tree | 0f29b19538cb9af2926eaf16a52f6a0ec4cd10a0 /configure.in | |
parent | cdd0832671d59b90e4a6947c43096057c0be1d53 (diff) | |
download | NetNuke2-d3c784283fe6d4eac879e1f3e084b18ee2af7fa2.tar.gz |
- Check for sizes in unsigned long long and unsigned long int
- Check for O_LARGEFILE compatibility
- Add extra checks for libsysfs so it can build correctly
- Remove ISO C99 requirement (libsysfs fails on some platforms doing this)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 33 |
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]) |