Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / rp-l2tp / configure.in
blob0b8890ccc3967c197ab35f9129da742004433f81
1 dnl Process this file with autoconf to produce a configure script.
2 dnl LIC: GPL
3 AC_INIT(l2tp.h)
5 dnl Checks for programs.
6 AC_PROG_CC
7 AC_PROG_INSTALL
8 AC_PROG_RANLIB
10 dnl Checks for libraries.
11 dnl Replace `main' with a function in -ldl:
12 AC_CHECK_LIB(dl, dlopen)
14 dnl Checks for header files.
15 AC_HEADER_STDC
16 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h)
18 dnl Check for libevent
19 AC_MSG_CHECKING([for libevent directory])
20 if test -d ../libevent ; then
21    LIBEVENT=../libevent
22 elif test -d libevent ; then
23    LIBEVENT=libevent
24 else
25    AC_MSG_RESULT([not found])
26    echo "Cannot find libevent library; exiting"
27    exit 1
30 AC_MSG_RESULT($LIBEVENT)
32 AC_SUBST(LIBEVENT)
34 dnl Checks for typedefs, structures, and compiler characteristics.
35 AC_C_CONST
36 AC_TYPE_PID_T
37 AC_TYPE_SIZE_T
38 AC_HEADER_TIME
40 dnl Checks for library functions.
41 AC_PROG_GCC_TRADITIONAL
42 AC_FUNC_MEMCMP
43 AC_TYPE_SIGNAL
44 AC_FUNC_VPRINTF
45 AC_CHECK_FUNCS(gethostname gettimeofday socket strdup strerror strtol)
47 dnl If we own this copy of libevent, do its makefile; otherwise, not
49 if test -d libevent ; then
50    if test -L libevent ; then
51       OUTPUT="Makefile handlers/Makefile"
52    else
53       OUTPUT="Makefile libevent/Makefile handlers/Makefile"
54    fi
55 else
56    OUTPUT="Makefile handlers/Makefile"
59 AC_OUTPUT($OUTPUT)