From 0b54822a82f01fe02bda4cb93c56013ab538c406 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Nov 2014 17:29:28 +0300 Subject: In configure add flag for semi static build. --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c3d34e0..f21bc47 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,26 @@ AC_PROG_LIBTOOL AC_ENABLE_SHARED AC_DISABLE_STATIC +AC_ARG_ENABLE( + [static], + AC_HELP_STRING( + [--enable-static], + [ + Enables or Disables Statick Linking (STATIC is disabled by default) + ] + ), + [ + enable_static="$enableval" + case $enableval in + "no");; + "yes");; + *) AC_MSG_ERROR([[invalid argument --enable-static=$disableval... stopping]]);; + esac + ], + [enable_static="no"] +) +AM_CONDITIONAL(ENABLE_STATIC, test x$enable_static = xyes) + AC_CHECK_FUNC([strnlen],[CFLAGS="$CFLAGS -DHAVE_STRNLEN"]) AC_CHECK_FUNC([setrlimit],[CLAGS="$CFLAGS -DHAVE_SETRLIMIT"]) -- cgit v1.2.3-60-g2f50