1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
dnl configure.in file for knocker
dnl Edit by Gabriele Giorgetti <g.gabriele79@genie.it>
dnl to be processed with autoconf
AC_INIT(src/knocker_core.h)
AM_INIT_AUTOMAKE(knocker, 0.7.1)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_INSTALL
#AC_CANONICAL_HOST
dnl Check for standard C headers
AC_HEADER_STDC
dnl Check for extra required headers
AC_CHECK_HEADERS( \
string.h \
errno.h \
signal.h \
netdb.h \
netinet/in.h \
arpa/inet.h \
sys/socket.h \
sys/types.h \
sys/wait.h \
sys/time.h \
unistd.h \
fcntl.h \
sys/ioctl.h \
linux/kd.h
)
dnl Use -Wall -ansi -pedantic if we have gcc.
if test "x$GCC" = "xyes" ; then
# -ansi -pedantic removed to test nanosleep and other non ansi functions
CFLAGS="$CFLAGS -Wall"
fi
dnl Check for library functions
AC_CHECK_FUNCS(gettimeofday pause usleep nanosleep)
AC_SUBST(LIBS)
AC_OUTPUT([
Makefile
docs/Makefile
src/Makefile
])
|