2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([vdetelweb], [1.1b], [info@v2.cs.unibo.it])
6 AM_INIT_AUTOMAKE([foreign dist-bzip2])
7 AC_CONFIG_SRCDIR([vdetelweb.c])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
14 # Checks for header files.
16 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h string.h sys/ioctl.h sys/socket.h syslog.h lwipv6.h],, AC_MSG_ERROR([required header file missing]))
18 # Checks for typedefs, structures, and compiler characteristics.
21 # Checks for library functions.
25 AC_CHECK_FUNCS([atexit bzero getcwd memset socket strdup strerror strndup strstr uname])
27 # Checks for libraries.
28 AC_CHECK_LIB([lwipv6], [lwip_init],, AC_MSG_ERROR([liblwipv6 missing]), [-lpthread])
30 AC_CONFIG_FILES([Makefile])