usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / bridge / configure.in
blob5f4c7dfe0bcec0845619377be718dea719bd54aa
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(brctl/brctl.c)
3 AC_CONFIG_HEADER(libbridge/config.h)
4 AM_INIT_AUTOMAKE(bridge-utils,1.0.6)
6 AC_ARG_WITH( linux-headers, [  --with-linux-headers     Location of the linux headers to use], 
7     KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")
9 dnl Checks for programs.
10 AC_PROG_CC
11 AC_PROG_INSTALL
12 AC_PROG_RANLIB
14 dnl Checks for header files.
15 AC_HEADER_STDC
16 AC_CHECK_HEADERS(sys/ioctl.h sys/time.h)
18 dnl Checks for typedefs, structures, and compiler characteristics.
19 AC_C_CONST
20 AC_HEADER_TIME
22 dnl Checks for library functions.
23 AC_PROG_GCC_TRADITIONAL
24 AC_FUNC_MEMCMP
25 AC_CHECK_FUNCS(gethostname socket strdup uname)
26 AC_CHECK_FUNCS(if_nametoindex if_indextoname)
28 dnl Check for libsysfs
29 AC_CHECK_HEADER(sysfs/libsysfs.h,
30         [AC_CHECK_LIB(sysfs, sysfs_open_directory, 
31                       [AC_DEFINE(HAVE_LIBSYSFS)
32                        LIBS="$LIBS -lsysfs"],
33                       [AC_MSG_WARN([Missing sysfs library!])])],
34         [AC_MSG_WARN([Missing /usr/include/sysfs/libsysfs.h])])
37 AC_SUBST(KERNEL_HEADERS)
39 AC_OUTPUT(doc/Makefile libbridge/Makefile brctl/Makefile Makefile bridge-utils.spec)