]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtoolize.in (files): Add C++ support if configure.in uses
authorOssama Othman <ossama@debian.org>
Thu, 17 Feb 2000 18:01:32 +0000 (18:01 +0000)
committerOssama Othman <ossama@debian.org>
Thu, 17 Feb 2000 18:01:32 +0000 (18:01 +0000)
AC_LIBTOOL_CXX, i.e. add `ltcf-cxx.sh' to list of files to be
copied during libtoolization.
* ltdl.m4: Added this file to the multi-language branch.

ChangeLog
libtoolize.in

index 06ba690c3c0f11fcc8ac628d0c8b4fe853a01332..5bea64240b40d69d68113f43a024e260ef54c2a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-02-17  Ossama Othman  <ossama@debian.org>
+
+       * libtoolize.in (files): Add C++ support if configure.in uses
+       AC_LIBTOOL_CXX, i.e. add `ltcf-cxx.sh' to list of files to be
+       copied during libtoolization.
+       * ltdl.m4: Added this file to the multi-language branch.
+
 2000-02-08  Ossama Othman  <ossama@debian.org>
 
        * ltcf-cxx.sh (predeps, postdeps, predep_objects,
index 9dff8b5127165b02cdc33f50bff2d7b5b532d809..81b554572a4ef161f5aa83e2e4b8c073ca3b116b 100644 (file)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # libtoolize - Prepare a package to use libtool.
 # @configure_input@
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
+# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 #
 # This program is free software; you can redistribute it and/or modify
@@ -38,6 +38,7 @@ pkgdatadir=@pkgdatadir@
 aclocaldir=@aclocaldir@
 
 libtool_m4="$aclocaldir/libtool.m4"
+ltdl_m4="$aclocaldir/ltdl.m4"
 
 dry_run=no
 help="Try \`$progname --help' for more information."
@@ -147,6 +148,12 @@ if test -z "$files"; then
 fi
 files='config.guess config.sub ltconfig ltmain.sh ltcf-c.sh'
 
+#Add C++ support if configure.in uses AC_LIBTOOL_CXX.
+if egrep '^[ ]*AC_LIBTOOL_CXX' configure.in > /dev/null 2>&1; then
+  files="$files ltcf-cxx.sh"
+fi
+
+
 auxdir=.
 auxdirline=`egrep '^AC_CONFIG_AUX_DIR' configure.in 2>/dev/null`
 if test -n "$auxdirline"; then
@@ -224,6 +231,41 @@ if test -z "$automake"; then
   else
     echo "You should $updatemsg."
   fi
+
+  if grep '^AC_LIB_LTDL' configure.in >/dev/null 2>&1; then
+    if grep 'generated automatically by aclocal' aclocal.m4 >/dev/null 2>&1; then
+      updatemsg="update your \`aclocal.m4' by running aclocal"
+    else
+      updatemsg="add the contents of \`$ltdl_m4' to \`aclocal.m4'"
+    fi
+
+    if egrep '^AC_DEFUN\(AC_LIB_LTDL' aclocal.m4 >/dev/null 2>&1; then
+      # Check the version number on ltdl.m4 and the one used in aclocal.m4.
+      instserial=`grep '^# serial ' $ltdl_m4 | grep 'AC_LIB_LTDL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
+
+      if test -z "$instserial"; then
+       echo "$progname: warning: no serial number on \`$ltdl_m4'" 1>&2
+      else
+       # If the local macro has no serial number, we assume it's ancient.
+       localserial=`grep '^# serial ' aclocal.m4 | grep 'AC_LIB_LTDL' | sed -e 's/^# serial \([0-9][0-9]*\).*$/\1/; q'`
+
+       test -z "$localserial" && localserial=0
+
+       if test "$localserial" -lt "$instserial"; then
+         echo "You should $updatemsg."
+       elif test "$localserial" -gt "$instserial"; then
+         echo "$progname: \`$ltld_m4' is serial $instserial, less than $localserial in \`aclocal.m4'" 1>&2
+         if test -z "$force"; then
+           echo "Use \`--force' to replace newer libtool files with this version." 1>&2
+           exit 1
+         fi
+         echo "To remain compatible, you should $updatemsg."
+       fi
+      fi
+    else
+      echo "You should $updatemsg."
+    fi
+  fi
 fi