diff options
author | Karl Hiramoto <karl@hiramoto.org> | 2010-06-16 14:33:51 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-10-13 11:10:48 (GMT) |
commit | 018c297274348acba1e123a3e84471c75a215efb (patch) | |
tree | aea9dbbb741e430f2493a7435cd2b4161f7d6e8e /configure.in | |
parent | 6921b1c879e1423abe7e5ec9bd8bb4d89bb241e7 (diff) | |
download | libnl-018c297274348acba1e123a3e84471c75a215efb.zip libnl-018c297274348acba1e123a3e84471c75a215efb.tar.gz libnl-018c297274348acba1e123a3e84471c75a215efb.tar.bz2 |
libnl: optionally disable cli tools.
compile and link time can reduced, most non-developers don't need these cli tools.
./configure --disable-cli
time make
real 0m40.485s
user 0m33.784s
sys 0m2.793s
./configure
time make
real 0m53.097s
user 0m42.077s
sys 0m4.396s
Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1fcdb64..18d2716 100644 --- a/configure.in +++ b/configure.in @@ -29,6 +29,11 @@ AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH], [pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig']) AC_SUBST([pkgconfigdir]) +AC_ARG_ENABLE([cli], + AS_HELP_STRING([--disable-cli], [Do not build command line interface utils]), + [enable_cli="$enableval"], [enable_cli="yes"]) +AM_CONDITIONAL([ENABLE_CLI], [test "$enable_cli" = "yes"]) + AC_CHECK_LIB([m], [pow], [], AC_MSG_ERROR([libm is required])) AC_CONFIG_FILES([Makefile doc/Doxyfile doc/Makefile lib/Makefile |