aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 5 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 2128386..7ac1a6b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,15 +1,14 @@
AC_PREREQ([2.66])
-AC_INIT([NetNuke], [2.0.2], [jhunkeler@gmail.com])
+AC_INIT([NetNuke], [2.0.2], [jhunkeler@gmail.com], [netnuke], [https://github.com/jhunkeler/NetNuke])
AM_INIT_AUTOMAKE(1.11.1)
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/netnuke.c])
AC_CONFIG_HEADERS([config.h])
-CFLAGS="-Wall -O2 -I../include"
-LDFLAGS="-lpthread"
+CFLAGS="-Wall -O2 -I../include -static"
+LDFLAGS="-lpthread -lrt"
# Checks for programs.
-AC_PROG_CC
AC_PROG_CC_C99
AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
[AC_MSG_ERROR([no C99 compiler found. Aborting.])])
@@ -18,18 +17,15 @@ AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
AC_CHECK_LIB([pthread], [pthread_create], [],
[AC_MSG_ERROR([required library pthread missing])])
-AC_CHECK_LIB([sysfs], [sysfs_read_attribute], [],
- [AC_MSG_ERROR([required library libsysfs missing])])
-
# Checks for header files.
-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h sysfs/libsysfs.h])
+AC_CHECK_HEADERS_ONCE([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h sysfs/libsysfs.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
# Checks for library functions.
AC_FUNC_MALLOC
-AC_CHECK_FUNCS([memmove memset strerror strncasecmp])
+AC_CHECK_FUNCS_ONCE([memmove memset strerror strncasecmp])
AC_CONFIG_FILES([Makefile src/Makefile])