1dnl Process this file with autoconf to create configure. 2 3AC_INIT([libmnl], [1.0.5]) 4AC_CONFIG_AUX_DIR([build-aux]) 5AC_CANONICAL_HOST 6AC_CONFIG_MACRO_DIR([m4]) 7AC_CONFIG_HEADERS([config.h]) 8AM_INIT_AUTOMAKE([foreign tar-pax no-dist-gzip dist-xz 1.6 subdir-objects]) 9 10dnl kernel style compile messages 11m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 12 13AC_PROG_CC 14AM_PROG_CC_C_O 15AC_EXEEXT 16AC_DISABLE_STATIC 17LT_INIT 18CHECK_GCC_FVISIBILITY 19case "$host" in 20*-*-linux* | *-*-uclinux*) ;; 21*) AC_MSG_ERROR([Linux only, dude!]);; 22esac 23 24regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT" 25regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \ 26 -Wmissing-prototypes -Wshadow -Wstrict-prototypes \ 27 -Wformat=2 -pipe" 28AC_SUBST([regular_CPPFLAGS]) 29AC_SUBST([regular_CFLAGS]) 30AC_CONFIG_FILES([Makefile 31 src/Makefile 32 include/Makefile 33 include/libmnl/Makefile 34 include/linux/Makefile 35 include/linux/can/Makefile 36 include/linux/netfilter/Makefile 37 examples/Makefile 38 examples/genl/Makefile 39 examples/kobject/Makefile 40 examples/netfilter/Makefile 41 examples/rtnl/Makefile 42 libmnl.pc 43 doxygen/doxygen.cfg 44 doxygen/Makefile]) 45 46AC_ARG_WITH([doxygen], [AS_HELP_STRING([--with-doxygen], 47 [create doxygen documentation])], 48 [with_doxygen="$withval"], [with_doxygen=yes]) 49 50AS_IF([test "x$with_doxygen" != xno], [ 51 AC_CHECK_PROGS([DOXYGEN], [doxygen]) 52 AC_CHECK_PROGS([DOT], [dot], [""]) 53 AS_IF([test "x$DOT" != "x"], 54 [AC_SUBST(HAVE_DOT, YES)], 55 [AC_SUBST(HAVE_DOT, NO)]) 56]) 57 58AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) 59AS_IF([test "x$DOXYGEN" = x], [ 60 AS_IF([test "x$with_doxygen" != xno], [ 61 dnl Only run doxygen Makefile if doxygen installed 62 AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) 63 with_doxygen=no 64 ]) 65]) 66AC_OUTPUT 67 68echo " 69libmnl configuration: 70 doxygen: ${with_doxygen}" 71