1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(bridge-utils, 1.5)
3 AC_CONFIG_HEADERS(libbridge/config.h)
5 AC_ARG_WITH( linux-headers, [ --with-linux-headers Location of the linux headers to use],
6 KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")
8 dnl Checks for programs.
13 dnl Checks for header files.
15 AC_CHECK_HEADERS(sys/ioctl.h sys/time.h)
17 dnl Checks for typedefs, structures, and compiler characteristics.
21 dnl Checks for library functions.
22 AC_CHECK_FUNCS(gethostname socket strdup uname)
23 AC_CHECK_FUNCS(if_nametoindex if_indextoname)
25 AC_SUBST(KERNEL_HEADERS)
27 AC_OUTPUT(doc/Makefile libbridge/Makefile brctl/Makefile Makefile bridge-utils.spec)