4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation version 2.1
9 # Copyright (c) 2003-2010 Thomas Graf <tgraf@suug.ch>
12 AC_INIT(libnl, 2.0, tgraf@suug.ch)
13 AC_CONFIG_HEADERS([lib/defs.h])
14 AC_CONFIG_MACRO_DIR([m4])
15 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
27 AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
28 [Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
29 [pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
30 AC_SUBST([pkgconfigdir])
33 AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]),
34 [enable_cli="$enableval"], [enable_cli="yes"])
35 AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"])
37 AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
39 AC_CONFIG_FILES([Makefile lib/Makefile
40 include/Makefile src/Makefile src/lib/Makefile \
41 libnl-2.0.pc include/netlink/version.h])