apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r745119 - /apr/apr/trunk/configure.in
Date Tue, 17 Feb 2009 15:27:34 GMT
Author: mturk
Date: Tue Feb 17 15:27:33 2009
New Revision: 745119

URL: http://svn.apache.org/viewvc?rev=745119&view=rev
Log:
Add --disable-version option to configure.
This allows to create non versioned apr libs using libtool

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=745119&r1=745118&r2=745119&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Tue Feb 17 15:27:33 2009
@@ -201,12 +201,19 @@
   [ installbuilddir=$withval ], [ installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
] )
 AC_SUBST(installbuilddir)
 
+AC_ARG_ENABLE(version,[  --disable-version           Disable library version info],
+[disable_version_info=$enableval], [disable_version_info=yes])
+
 AC_ARG_WITH(libtool, [  --without-libtool       avoid using libtool to link the library],
   [ use_libtool=$withval ], [ use_libtool="yes" ] )
 
 if test "x$use_libtool" = "xyes"; then
       lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< &&
touch $@'
-      LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
+      if test "x$disable_version_info" = "xyes"; then
+          LT_VERSION="-avoid-version"
+      else
+          LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
+      fi
       link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(LT_LDFLAGS) \$(COMPILE) \$(LT_VERSION)
\$(ALL_LDFLAGS) -o \$@"
       so_ext='lo'
       lib_target='-rpath $(libdir) $(OBJECTS)'



Mime
View raw message