You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libtecla/files/libtecla-1.6.3-static-libs....

26 lines
933 B

--- a/configure.in
+++ b/configure.in
@@ -426,6 +426,9 @@
AC_ARG_WITH(file-system, AC_HELP_STRING([--with-file-system], [Does the target have a filesystem (default=yes)]),
AC_DEFINE(WITHOUT_FILE_SYSTEM), )
+dnl Some users may be not interested in static libs
+AC_ARG_ENABLE([static-libs], AC_HELP_STRING([--enable-static-libs], [Enable static libs if shared libs will be also build (default=yes)]))
+
dnl The following bourne shell case statement is where system
dnl dependencies can be added. In particular, if your system supports
dnl shared library creation, the following switch is the place to
@@ -571,7 +574,11 @@
dnl libraries to the list of libraries to be built.
if test "$LINK_SHARED"_ != "_"; then
- TARGET_LIBS="static shared"
+ if test "$enable_static_libs"_ != "_"; then
+ TARGET_LIBS="static shared"
+ else
+ TARGET_LIBS="shared"
+ fi
else
TARGET_LIBS="static"
LINK_SHARED="@:"