Get rid of bash specific syntax for variable dereferencing, replacing it
[oota-llvm.git] / autoconf / m4 / libtool.m4
index 75a9bb52aa497f4963cd45b6afb138933df82bed..dfb6e0f62e83648154c01f0c11cbd117959426b6 100644 (file)
@@ -1,18 +1,3 @@
-###############################################################################
-###############################################################################
-####### READ THIS:
-####### THIS FILE IS BASED ON THE VERSION IN libtool 1.5.10.
-####### The following changes have been made:
-#######   * this big bold header has been added
-#######   * fix obsolete constructs (ala autoupdate)
-#######   * the name of the generated tool is "mklib" instead of "libtool"
-####### The last change is provided to avoid tab completion errors on the "lib"
-####### prefix.  AutoRegen.sh checks for version 1.5.10 of libtool so attempts 
-####### to use another version with this AC_PROG_LIBTOOL definition should 
-####### fail. 
-####### You've been warned.
-###############################################################################
-###############################################################################
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
 ## Free Software Foundation, Inc.
@@ -164,7 +149,7 @@ no_glob_subst='s/\*/\\\*/g'
 rm="rm -f"
 
 # Global variables:
-default_ofile=libtool
+default_ofile=mklib
 can_build_shared=yes
 
 # All known linkers require a `.a' archive for static linking (except M$VC,
@@ -554,10 +539,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   SAVE_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -belf"
   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
-    [AC_LANG_PUSH(C)
+    [AC_LANG_PUSH([C])
      AC_LINK_IFELSE([AC_LANG_SOURCE([[]],[[]])],
-       lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
-     AC_LANG_POP])
+       [lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+     AC_LANG_POP([C])])
   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     CFLAGS="$SAVE_CFLAGS"
@@ -1700,7 +1685,7 @@ if test -f "$ltmain" && test -n "$tagnames"; then
 
     # Update the list of available tags.
     if test -n "$tagname"; then
-      echo appending configuration tag \"$tagname\" to $ofile
+      echo appending configuration tag "$tagname" to $ofile
 
       case $tagname in
       CXX)