• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# configure.in
3#
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
7#	of the License.
8#
9# Copyright (c) 2003-2010 Thomas Graf <tgraf@suug.ch>
10#
11
12AC_INIT(libnl, 2.0, tgraf@suug.ch)
13AC_CONFIG_HEADERS([lib/defs.h])
14AC_CONFIG_MACRO_DIR([m4])
15AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
16
17AC_PROG_CC
18AM_PROG_CC_C_O
19AC_PROG_INSTALL
20AM_PROG_LIBTOOL
21AM_PROG_LEX
22AC_PROG_YACC
23
24AC_C_CONST
25AC_C_INLINE
26
27AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
28	[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
29	[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
30AC_SUBST([pkgconfigdir])
31
32AC_ARG_ENABLE([cli],
33	AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]),
34	[enable_cli="$enableval"], [enable_cli="yes"])
35AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"])
36
37AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
38
39AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile
40	include/Makefile src/Makefile src/lib/Makefile \
41	libnl-2.0.pc include/netlink/version.h])
42AC_OUTPUT
43