~ubuntu-branches/ubuntu/trusty/libnl3/trusty

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Heiko Stuebner
  • Date: 2011-05-21 19:25:13 UTC
  • Revision ID: james.westby@ubuntu.com-20110521192513-1ieyu9w9kym4bt16
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-2011 Thomas Graf <tgraf@suug.ch>
 
10
#
 
11
 
 
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)], [])
 
17
 
 
18
MAJ_VERSION=3
 
19
AC_SUBST([MAJ_VERSION])
 
20
MIN_VERSION=0
 
21
AC_SUBST([MIN_VERSION])
 
22
 
 
23
AC_PROG_CC
 
24
AM_PROG_CC_C_O
 
25
AC_PROG_INSTALL
 
26
AM_PROG_LIBTOOL
 
27
AM_PROG_LEX
 
28
AC_PROG_YACC
 
29
 
 
30
AC_C_CONST
 
31
AC_C_INLINE
 
32
 
 
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])
 
37
 
 
38
AC_ARG_ENABLE([cli],
 
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"])
 
42
 
 
43
AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required]))
 
44
 
 
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])
 
48
AC_OUTPUT