2 AC_INIT(openflow, v0.1.8, info@openflowswitch.org)
8 AC_USE_SYSTEM_EXTENSIONS
14 [AC_HELP_STRING([--enable-ndebug],
15 [Disable debugging features for max performance])],
16 [case "${enableval}" in # (
17 yes) ndebug=true ;; # (
18 no) ndebug=false ;; # (
19 *) AC_MSG_ERROR([bad value ${enableval} for --enable-ndebug]) ;;
22 AM_CONDITIONAL([NDEBUG], [test x$ndebug = xtrue])
24 CHECK_LINUX(l26, 2.6, 2.6, KSRC26, L26_ENABLED)
25 CHECK_LINUX(uml, 2.6, 2.6-uml, KSRCUML, UML_ENABLED)
26 CHECK_LINUX(l24, 2.4, 2.4, KSRC24, L24_ENABLED)
28 AC_CHECK_HEADER([linux/netlink.h],
31 [#include <sys/socket.h>])
32 AM_CONDITIONAL([HAVE_NETLINK], [test "$HAVE_NETLINK" = yes])
34 AC_CHECK_LIB([socket], [connect])
35 AC_CHECK_LIB([resolv], [gethostbyname])
36 AC_CHECK_LIB([dl], [dladdr])
38 CFLAGS="$CFLAGS -Wall -Wno-sign-compare"
40 AC_CONFIG_FILES([Makefile
49 datapath/tests/Makefile
51 datapath/linux-2.6/Makefile
52 datapath/linux-2.6-uml/Makefile
53 datapath/linux-2.4/Makefile])