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])
33 if test "$HAVE_NETLINK" = yes; then
34 AC_DEFINE([HAVE_NETLINK], [1],
35 [Define to 1 if Netlink protocol is available.])
38 PKG_CHECK_MODULES([SSL], [libssl],
41 AC_MSG_WARN([Cannot find libssl:
45 OpenFlow will not support SSL connections.])])
46 AM_CONDITIONAL([HAVE_OPENSSL], [test "$HAVE_OPENSSL" = yes])
47 if test "$HAVE_OPENSSL" = yes; then
48 AC_DEFINE([HAVE_OPENSSL], [1], [Define to 1 if OpenSSL is installed.])
51 AC_CHECK_LIB([socket], [connect])
52 AC_CHECK_LIB([resolv], [gethostbyname])
53 AC_CHECK_LIB([dl], [dladdr])
55 CFLAGS="$CFLAGS -Wall -Wno-sign-compare"
57 AC_CONFIG_FILES([Makefile
66 datapath/tests/Makefile
68 datapath/linux-2.6/Makefile
69 datapath/linux-2.6-uml/Makefile
70 datapath/linux-2.4/Makefile])