3 AC_INIT([ngadmin], [0.1], [admin@darkcoven.tk])
4 AC_CONFIG_MACRO_DIR([.])
5 AC_CONFIG_SRCDIR([raw/src/attr.c])
6 AC_CONFIG_HEADERS([config.h])
20 # enable/disable readline
21 AC_ARG_WITH([readline],
22 [AS_HELP_STRING([--with-readline], [support fancy command line editing @<:@default=check@:>@])],
23 [with_readline="$withval"], [with_readline=check])
25 # enable/disable documentation generation
27 [AS_HELP_STRING([--enable-doc], [enable documentation generation [default=no]])],
28 [enable_doc=yes], [enable_doc=no])
31 if test "x${enable_doc}" = xyes; then
32 AC_CHECK_PROGS([DOXYGEN], [doxygen])
33 if test -z "$DOXYGEN"; then
35 ----------------------------------------
37 ----------------------------------------])
40 AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
43 CFLAGS="-Wall -Wextra -Os"
45 # Checks for libraries
46 if test "x${with_readline}" != xno; then
47 AC_CHECK_LIB([readline], [readline], [], [
48 if test "x${with_readline}" = xyes; then
50 ----------------------------------------
51 Unable to find readline library
52 ----------------------------------------])
57 # check for header files
58 AC_CHECK_HEADERS([arpa/inet.h stdlib.h string.h sys/ioctl.h termios.h unistd.h])
61 # check for typedefs, structures, and compiler characteristics
65 # check for library functions
67 AC_CHECK_FUNCS([inet_ntoa memchr memset select socket strcasecmp strdup strtol strtoul])
87 ${PACKAGE_NAME} version ${PACKAGE_VERSION}
88 Prefix.............: ${prefix}
90 Compiler...........: ${CC} ${CFLAGS} ${CPPFLAGS}