summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-06 14:49:32 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-06 14:49:32 +0200
commitf989fac0b885cbc05fbdc3e8bf6da75fa9f17fa2 (patch)
tree07a22c2e6f1b4878be3d4e5bcc1e33bafbb7ac76
parent13a0d0bf376f0a692b813204d9e496080533b8d9 (diff)
RPM: Build static lib package only if --enable_static was enabled.
In the dark ages it was standard to have a package of static libraries. This has changed and current Fedora policy for example is to not build or use static libraries anymore if possible. This package however aims to support a very wide range of distributions and configurations. So generate the rpm spec file to not build a static library package if --disable_static or equivalent was used at configure time. The default is to build static libraries. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 553fba1..e930847 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,5 +67,6 @@ AC_SUBST(BASEVERSION, [$basever])
extraver=$(echo $PACKAGE_VERSION | sed -e 's@@<:@^-@:>@*-@@' -e 's@-@_@')
AC_SUBST(EXTRAVERSION, [$extraver])
+AM_CONDITIONAL([BUILD_STATIC], [test "$enable_static" = yes])
AC_CONFIG_FILES([Makefile libax25.spec])
AC_OUTPUT