summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-08-29 14:49:17 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-09-13 18:05:34 +0200
commit148526d57cb91ca810e55e5f9d4f4329417e96eb (patch)
treed78710fd5c9d56a0fd38668d9cf846e9e77e86a1
parent772fd42ac5c89b625c2778c464be67f05f468121 (diff)
Configure: Add static-lib optionold/wireguard
Add --enable-static-lib
-rw-r--r--Makefile.in2
-rw-r--r--configure.ac13
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 9b14c6d5..39638442 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -26,7 +26,7 @@ INSTALL_DATA=@INSTALL_DATA@
client=$(addprefix $(exedir)/,@CLIENT@)
daemon=$(exedir)/bird
-static_lib=$(exedir)/libbird.a
+static_lib=$(addprefix $(exedir)/,@STATIC_LIB@)
protocols=@protocols@
prefix=@prefix@
diff --git a/configure.ac b/configure.ac
index 9de32908..b0555999 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,12 @@ AC_ARG_ENABLE([client],
[enable_client=yes]
)
+AC_ARG_ENABLE([static-lib],
+ [AS_HELP_STRING([--enable-static-lib], [enable building of BIRD daemon static library @<:@no@:>@])],
+ [],
+ [enable_static_lib=no]
+)
+
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [enable internal debugging routines @<:@no@:>@])],
[],
@@ -456,6 +462,12 @@ fi
AC_SUBST([CLIENT])
AC_SUBST([CLIENT_LIBS])
+STATIC_LIB=
+if test "$enable_static_lib" = yes ; then
+ STATIC_LIB="$STATIC_LIB libbird.a"
+fi
+AC_SUBST([STATIC_LIB])
+
mkdir -p $objdir/sysdep
AC_CONFIG_HEADERS([$objdir/sysdep/autoconf.h:sysdep/autoconf.h.in])
AC_CONFIG_FILES([Makefile:Makefile.in])
@@ -473,5 +485,6 @@ AC_MSG_RESULT([ Routing protocols: $protocols])
AC_MSG_RESULT([ LibSSH support in RPKI: $enable_libssh])
AC_MSG_RESULT([ Kernel MPLS support: $enable_mpls_kernel])
AC_MSG_RESULT([ Client: $enable_client])
+AC_MSG_RESULT([ Static lib: $enable_static_lib])
rm -f $objdir/.*-stamp