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-2011 Thomas Graf <tgraf@suug.ch>
12
AC_INIT(libnl, 3.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])
16
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
19
AC_SUBST([MAJ_VERSION])
21
AC_SUBST([MIN_VERSION])
33
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
34
[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
35
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
36
AC_SUBST([pkgconfigdir])
39
AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]),
40
[enable_cli="$enableval"], [enable_cli="yes"])
41
AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"])
43
AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
45
AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
46
include/Makefile src/Makefile src/lib/Makefile man/Makefile
47
libnl-3.0.pc include/netlink/version.h])