2001-07-24 03:03:48 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(tunala.c)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_INIT_AUTOMAKE(tunala, 0.0.1-dev)
|
|
|
|
|
2002-01-08 10:58:55 +08:00
|
|
|
dnl Checks for programs. (Though skip libtool)
|
2001-07-24 03:03:48 +08:00
|
|
|
AC_PROG_CC
|
2002-01-08 10:58:55 +08:00
|
|
|
dnl AC_PROG_LIBTOOL
|
|
|
|
dnl AM_PROG_LIBTOOL
|
2001-07-24 03:03:48 +08:00
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
AC_CHECK_LIB(dl, dlopen)
|
2002-12-12 03:07:03 +08:00
|
|
|
AC_CHECK_LIB(z, inflate)
|
2001-07-24 03:03:48 +08:00
|
|
|
AC_CHECK_LIB(socket, socket)
|
|
|
|
AC_CHECK_LIB(nsl, gethostbyname)
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS(fcntl.h limits.h unistd.h)
|
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_CHECK_FUNCS(strstr strtoul)
|
|
|
|
AC_CHECK_FUNCS(select socket)
|
|
|
|
AC_CHECK_FUNCS(dlopen)
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|