]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/general.m4sh (M4SH_VERBATIM): New macro to
authorGary V. Vaughan <gary@gnu.org>
Tue, 6 Mar 2007 00:46:56 +0000 (00:46 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 6 Mar 2007 00:46:56 +0000 (00:46 +0000)
simplify m4sh quote quoting in blocks of raw shell code.
* clcommit.m4sh, libtoolize.m4sh, libltdl/config/getopt.m4sh,
libltdl/config/ltmain.m4sh, libltdl/config/mailnotify.m4sh,
tests/defs.m4sh: Use it.
* HACKING (Editing `.m4sh' Files): Mention M4SH_VERBATIM Macro.

ChangeLog
HACKING
clcommit.m4sh
libltdl/config/general.m4sh
libltdl/config/getopt.m4sh
libltdl/config/ltmain.m4sh
libltdl/config/mailnotify.m4sh
libtoolize.m4sh
tests/defs.m4sh

index f7b0ffd1f0bcce159352e5295d6af43b3eb4c43d..507fe50ec172ada4af23be1d7795125c0e28d227 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-03-05  Gary V. Vaughan  <gary@gnu.org>
+
+       * libltdl/config/general.m4sh (M4SH_VERBATIM): New macro to
+       simplify m4sh quote quoting in blocks of raw shell code.
+       * clcommit.m4sh, libtoolize.m4sh, libltdl/config/getopt.m4sh,
+       libltdl/config/ltmain.m4sh, libltdl/config/mailnotify.m4sh,
+       tests/defs.m4sh: Use it.
+       * HACKING (Editing `.m4sh' Files): Mention M4SH_VERBATIM Macro.
+
 2007-02-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * tests/lt_dlexit.at: Allow test to pass on static-only systems
diff --git a/HACKING b/HACKING
index fe861e9b4ab57ea5672a7b7c691ddb0c5c911769..53dc72ba6eb5af6b4c407d14b57ee821c38800f5 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -245,6 +245,16 @@ yyyy-mm-dd  Name of Author  <email@address>  (tiny change)
   at the end of .m4sh files), the left margin of the body of shell
   functions should begin indented by 4 spaces.
 
+* Where there are large blocks of shell code with no m4 or m4sh
+  expansions, put the entire block in an M4SH_VERBATIM call.  This
+  saves both on copy-and-paste errors, and needing to remember to
+  internally double the m4 quoting characters:
+
+  M4SH_VERBATIM([[
+  my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
+  ...
+  ]])
+
 
 8. Editing `.m4' Files
 ======================
index 0d4785a554168ad20776c25d7a7089be497c5ed1..b9d04f381db35665c4ad1cbbc3d087338ddfe23e 100644 (file)
@@ -87,6 +87,7 @@ $as_unset CDPATH
 
 m4_include([getopt.m4sh])
 
+M4SH_VERBATIM([[
 # Global variables:
 cvs_flags=
 update_flags=
@@ -124,8 +125,8 @@ set -e
   # sed scripts:
   my_sed_single_opt='1s/^\(..\).*$/\1/;q'
   my_sed_single_rest='1s/^..\(.*\)$/\1/;q'
-  my_sed_long_opt='1s/^\(--[[^=]]*\)=.*/\1/;q'
-  my_sed_long_arg='1s/^--[[^=]]*=//'
+  my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
+  my_sed_long_arg='1s/^--[^=]*=//'
 
   # this just eases exit handling
   while test $# -gt 0; do
@@ -180,7 +181,7 @@ set -e
                        opt_first=:
                        ;;
 
-      -C|--[[cC]]hange[[lL]]og)
+      -C|--[cC]hange[lL]og)
                        test $# = 0 && func_missing_arg $opt && break
                        if test -f "$1"; then :; else
                          func_error "ChangeLog file \`$1' does not exist"
@@ -242,7 +243,7 @@ set -e
       -z|--compress)
                        test $# = 0 && func_missing_arg $opt && break
                        case "$1" in
-                         [[0-9]]) :;;
+                         [0-9]) :;;
                          *)  func_error "invalid argument for $opt"
                              break
                              ;;
@@ -406,14 +407,14 @@ func_commit ()
       sleep 1 # give the user some time for a ^C
 
       # Propagate any user edits back to the cvs log message
-      $SED -e '/^[[A-Z]][[-a-zA-Z]]*:/d' -e '1d' < $tla_log > $log_file
+      $SED -e '/^[A-Z][-a-zA-Z]*:/d' -e '1d' < $tla_log > $log_file
 
     else
       ${PAGER-more} "$log_file" || exit $EXIT_FAILURE
 
       sleep 1 # give the user some time for a ^C
 
-      subject=`cvs -nq up 2>/dev/null | $SED -n 's/^[[MAD]] //p'`
+      subject=`cvs -nq up 2>/dev/null | $SED -n 's/^[MAD] //p'`
       test $# -gt 0 && subject="$@"
     fi
 
@@ -449,7 +450,7 @@ func_mailnotify ()
       test -f CVS/Tag &&
           echo "Branch:                `$SED -e 's,^T,,;1q' CVS/Tag`"
       test -f CVS/Root &&
-          echo "Changes by:    `$SED -e 's,^:[[a-z]]*:,,;s,:.*$,,g' CVS/Root`"
+          echo "Changes by:    `$SED -e 's,^:[a-z]*:,,;s,:.*$,,g' CVS/Root`"
       echo ""
       echo "Log Message:"
       $SED -e 's,^,    ,' "$log_file"
@@ -488,7 +489,7 @@ func_mailnotify ()
 
   test -f "$log_file" || func_check_commit_msg
 
-  grep '[[^    ]]' < "$log_file" > /dev/null ||
+  grep '[^     ]' < "$log_file" > /dev/null ||
     func_fatal_error "empty commit message, aborting"
 
   if grep '^$' < "$log_file" > /dev/null; then
@@ -506,7 +507,7 @@ func_mailnotify ()
   # patch revision changes underneath us!
   subject="$summary"
   $opt_tla && \
-    subject="$subject [["`$TLA tree-version|$SED $basename`--`$TLA revisions|$SED -e '$p;d'`"]]"
+    subject="$subject ["`$TLA tree-version|$SED $basename`--`$TLA revisions|$SED -e '$p;d'`"]"
 
   # Send a copy of the log_file if sendmail_to was set:
   if test -n "$sendmail_to"; then
@@ -522,3 +523,5 @@ exit $EXIT_SUCCESS
 # mode:shell-script
 # sh-indentation:2
 # End:
+]])
+
index 697e47104df780dc04ed7e96fe36343894283e4e..8107782edcb221c67a60bc02eef3e6678a39b08f 100644 (file)
@@ -25,6 +25,9 @@ m4_if([# general.m4sh -- general shell script boiler plate -*- Autoconf -*-
 # the same distribution terms that you use for the rest of that program.
 ])dnl
 
+m4_define([M4SH_VERBATIM], [$1])dnl
+
+M4SH_VERBATIM([[
 : ${CP="cp -f"}
 : ${ECHO="echo"}
 : ${EGREP="@EGREP@"}
@@ -52,7 +55,7 @@ lt_nl='
 '
 IFS="  $lt_nl"
 
-dirname="s,/[[^/]]*$,,"
+dirname="s,/[^/]*$,,"
 basename="s,^.*/,,"
 
 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
@@ -69,8 +72,8 @@ progname=`$ECHO "X$progpath" | $Xsed -e "$basename" -e 's,^-,./-,'`
 
 # Make sure we have an absolute path for reexecution:
 case $progpath in
-  [[\\/]]*|[[A-Za-z]]:\\*) ;;
-  *[[\\/]]*)
+  [\\/]*|[A-Za-z]:\\*) ;;
+  *[\\/]*)
      progdir=`$ECHO "X$progpath" | $Xsed -e "$dirname"`
      progdir=`cd "$progdir" && pwd`
      progpath="$progdir/$progname"
@@ -91,10 +94,10 @@ esac
 # Sed substitution that helps us do robust quoting.  It backslashifies
 # metacharacters that are still active within double-quoted strings.
 Xsed="${SED}"' -e 1s/^X//'
-sed_quote_subst='s/\([[`"$\\]]\)/\\\1/g'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
 
 # Same as above, but do not quote variable references.
-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
 # Re-`\' parameter expansions in output of double_quote_subst that were
 # `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
@@ -109,7 +112,7 @@ sed_double_backslash="\
   s/$bs4/&\\
 /g
   s/^$bs2$dollar/$bs&/
-  s/\\([[^$bs]]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+  s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
   s/\n//g"
 
 # Standard options:
@@ -268,7 +271,7 @@ func_mktempdir ()
 func_quote_for_eval ()
 {
     case $1 in
-      *[[\\\`\"\$]]*)
+      *[\\\`\"\$]*)
        func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
       *)
         func_quote_for_eval_unquoted_result="$1" ;;
@@ -280,7 +283,7 @@ func_quote_for_eval ()
       # expansion for a subsequent eval.
       # Many Bourne shells cannot handle close brackets correctly
       # in scan sets, so we specify it separately.
-      *[[\@<:@\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \        ]]*|*@:>@*|"")
+      *[\@<:@\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*@:>@*|"")
         func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
         ;;
       *)
@@ -295,7 +298,7 @@ func_quote_for_eval ()
 func_quote_for_expand ()
 {
     case $1 in
-      *[[\\\`\"]]*)
+      *[\\\`\"]*)
        my_arg=`$ECHO "X$1" | $Xsed \
            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
       *)
@@ -307,7 +310,7 @@ func_quote_for_expand ()
       # word splitting and command substitution for a subsequent eval.
       # Many Bourne shells cannot handle close brackets correctly
       # in scan sets, so we specify it separately.
-      *[[\@<:@\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \        ]]*|*@:>@*|"")
+      *[\@<:@\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*@:>@*|"")
         my_arg="\"$my_arg\""
         ;;
     esac
@@ -338,3 +341,5 @@ func_show_eval ()
       fi
     fi
 }
+]])
+
index 3556d9b413eafc36f05055e9c12208c01dac82a3..19bbb2989994390b11580329c959ad46034404d4 100644 (file)
@@ -27,6 +27,7 @@ m4_if([# getopt.m4sh -- getopt helper functions                -*- Autoconf -*-
 
 m4_include([general.m4sh])
 
+M4SH_VERBATIM([[
 # func_version
 # Echo version message to standard output and exit.
 func_version ()
@@ -34,7 +35,7 @@ func_version ()
     $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
         s/^# //
        s/^# *$//
-        s/\((C)\)[[ 0-9,-]]*\( [[1-9]][[0-9]]*\)/\1\2/
+        s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
         p
      }' < "$progpath"
      exit $?
@@ -86,3 +87,5 @@ func_missing_arg ()
 }
 
 exit_cmd=:
+]])
+
index a0f02db08cf8283148b9fe3311a3d4d82be797a5..1084942d22fcc8a9abb86a9b4f867f96e9e1116c 100644 (file)
@@ -107,6 +107,7 @@ $lt_unset CDPATH
 
 m4_include([getopt.m4sh])
 
+M4SH_VERBATIM([[
 # Check that we have a working $ECHO.
 if test "X$1" = X--no-reexec; then
   # Discard the --no-reexec flag, and continue.
@@ -217,7 +218,7 @@ func_enable_tag ()
 
   # Validate tagname.
   case $tagname in
-    *[[!-_A-Za-z0-9,/]]*)
+    *[!-_A-Za-z0-9,/]*)
       func_fatal_error "invalid tag name: $tagname"
       ;;
   esac
@@ -256,7 +257,7 @@ func_mode_help ()
 
       clean)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=clean RM [[RM-OPTION]]... FILE...
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
 
 Remove files from the build directory.
 
@@ -270,7 +271,7 @@ with it are deleted. Otherwise, only FILE itself is deleted using RM."
 
       compile)
       $ECHO \
-"Usage: $progname [[OPTION]]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
 
 Compile a source file into a libtool library object.
 
@@ -293,7 +294,7 @@ library object suffix, \`.lo'."
 
       execute)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=execute COMMAND [[ARGS]]...
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
 
 Automatically set library path, then run a program.
 
@@ -313,7 +314,7 @@ Then, COMMAND is executed, with ARGS as arguments."
 
       finish)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=finish [[LIBDIR]]...
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
 
 Complete the installation of libtool libraries.
 
@@ -325,7 +326,7 @@ the \`--dry-run' option if you just want to see what would be executed."
 
       install)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=install INSTALL-COMMAND...
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
 
 Install executables or libraries.
 
@@ -342,7 +343,7 @@ BSD-compatible install options are recognized)."
 
       link)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=link LINK-COMMAND...
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
 
 Link object files or libraries together to form another library, or to
 create an executable program.
@@ -373,14 +374,14 @@ The following components of LINK-COMMAND are treated specially:
                     don't remove output files matching REGEX
   -release RELEASE  specify package release information
   -rpath LIBDIR     the created library will eventually be installed in LIBDIR
-  -R[[ ]]LIBDIR       add LIBDIR to the runtime path of programs and libraries
+  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
   -shared           only do dynamic linking of libtool libraries
   -shrext SUFFIX    override the standard shared library file extension
   -static           do not do any dynamic linking of uninstalled libtool libraries
   -static-libtool-libs
                     do not do any dynamic linking of libtool libraries
-  -version-info CURRENT[[:REVISION[:AGE]]]
-                    specify library version info [[each variable defaults to 0]]
+  -version-info CURRENT[:REVISION[:AGE]]
+                    specify library version info [each variable defaults to 0]
   -weak LIBNAME     declare that the target provides the LIBNAME interface
 
 All other options (arguments beginning with \`-') are ignored.
@@ -402,7 +403,7 @@ is created, otherwise an executable program is created."
 
       uninstall)
         $ECHO \
-"Usage: $progname [[OPTION]]... --mode=uninstall RM [[RM-OPTION]]... FILE...
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
 
 Remove libraries from an installation directory.
 
@@ -818,7 +819,7 @@ func_generate_dlsyms ()
     my_outputname="$1"
     my_originator="$2"
     my_pic_p="${3-no}"
-    my_prefix=`$ECHO "$my_originator" | sed 's%[[^a-zA-Z0-9]]%_%g'`
+    my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
     my_dlsyms=
 
     if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
@@ -893,7 +894,7 @@ extern \"C\" {
            }
          else
            $opt_dry_run || {
-             eval "${SED} -e 's/\([[].[*^$]]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+             eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
              eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
              eval '$MV "$nlist"T "$nlist"'
              case $host in
@@ -969,9 +970,9 @@ typedef struct {
 
          $ECHO >> "$output_objdir/$my_dlsyms" "\
 extern $lt_dlsym_const lt_dlsymlist
-lt_${my_prefix}_LTX_preloaded_symbols[[]];
+lt_${my_prefix}_LTX_preloaded_symbols[];
 $lt_dlsym_const lt_dlsymlist
-lt_${my_prefix}_LTX_preloaded_symbols[[]] =
+lt_${my_prefix}_LTX_preloaded_symbols[] =
 {\
   { \"$my_originator\", (void *) 0 },"
 
@@ -1092,7 +1093,7 @@ func_extract_archives ()
     for my_xlib in $my_oldlibs; do
       # Extract the objects.
       case $my_xlib in
-       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) my_xabs="$my_xlib" ;;
+       [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
        *) my_xabs=`pwd`"/$my_xlib" ;;
       esac
       func_basename "$my_xlib"
@@ -1311,7 +1312,7 @@ func_mode_compile ()
 
     # Recognize several different file suffixes.
     # If the user specifies -o file.o, it is replaced with file.lo
-    xform='[[cCFSifmso]]'
+    xform='[cCFSifmso]'
     case $libobj in
     *.ada) xform=ada ;;
     *.adb) xform=adb ;;
@@ -1323,7 +1324,7 @@ func_mode_compile ()
     *.class) xform=class ;;
     *.cpp) xform=cpp ;;
     *.cxx) xform=cxx ;;
-    *.[[fF]][[09]]?) xform='[[fF]][[09]].' ;;
+    *.[fF][09]?) xform='[fF][09].' ;;
     *.for) xform=for ;;
     *.java) xform=java ;;
     *.obj) xform=obj ;;
@@ -1369,7 +1370,7 @@ func_mode_compile ()
 
     func_quote_for_eval "$libobj"
     test "X$libobj" != "X$func_quote_for_eval_result" \
-      && $ECHO "X$libobj" | $GREP ['[@:>@~#^*{};<>?"'"'"'      &()|`$@<:@]'] \
+      && $ECHO "X$libobj" | $GREP '[@:>@~#^*{};<>?"'"'"'       &()|`$@<:@]' \
       && func_warning "libobj name \`$libobj' may not contain shell special characters."
     func_basename "$obj"
     objname="$func_basename_result"
@@ -1404,7 +1405,7 @@ func_mode_compile ()
     # Calculate the filename of the output object if compiler does
     # not support -o with -c
     if test "$compiler_c_o" = no; then
-      output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[[^.]]*$%%'`.${objext}
+      output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
       lockfile="$output_obj.lock"
       removelist="$removelist $output_obj $lockfile"
       trap "$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE" 1 2 15
@@ -1756,7 +1757,7 @@ func_mode_finish ()
 
     $ECHO "See any operating system documentation about shared libraries for"
     case $host in
-      solaris2.[[6789]]|solaris2.1[[0-9]])
+      solaris2.[6789]|solaris2.1[0-9])
         $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
        $ECHO "pages."
        ;;
@@ -1815,7 +1816,7 @@ func_mode_install ()
       -d) isdir=yes ;;
       -f)
        case " $install_prog " in
-       *[[\\\ /]]cp\ *) ;;
+       *[\\\ /]cp\ *) ;;
        *) prev=$arg ;;
        esac
        ;;
@@ -1879,7 +1880,7 @@ func_mode_install ()
        func_fatal_help "\`$dest' is not a directory"
     fi
     case $destdir in
-    [[\\/]]* | [[A-Za-z]]:[[\\/]]*) ;;
+    [\\/]* | [A-Za-z]:[\\/]*) ;;
     *)
       for file in $files; do
        case $file in
@@ -2144,7 +2145,7 @@ func_mode_install ()
            }
          else
            # Install the binary that we compiled earlier.
-           file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([[^/]]*\)$%$objdir/\1%"`
+           file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
          fi
        fi
 
@@ -2524,7 +2525,7 @@ func_mode_link ()
        rpath | xrpath)
          # We need an absolute path.
          case $arg in
-         [[\\/]]* | [[A-Za-z]]:[[\\/]]*) ;;
+         [\\/]* | [A-Za-z]:[\\/]*) ;;
          *)
            func_fatal_error "only absolute run-paths are allowed"
            ;;
@@ -2641,7 +2642,7 @@ func_mode_link ()
 
       # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
       # so, if we see these flags be careful not to treat them like -L
-      -L[[A-Z]][[A-Z]]*:*)
+      -L[A-Z][A-Z]*:*)
        case $with_gcc/$host in
        no/*-*-irix* | /*-*-irix*)
          func_append compile_command " $arg"
@@ -2656,7 +2657,7 @@ func_mode_link ()
        dir=$func_stripname_result
        # We need an absolute path.
        case $dir in
-       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) ;;
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
        *)
          absdir=`cd "$dir" && pwd`
          test -z "$absdir" && \
@@ -2702,7 +2703,7 @@ func_mode_link ()
            # Do not include libc due to us having libc/libc_r.
            test "X$arg" = "X-lc" && continue
            ;;
-         *-*-rhapsody* | *-*-darwin1.[[012]])
+         *-*-rhapsody* | *-*-darwin1.[012])
            # Rhapsody C and math libraries are in the System framework
            deplibs="$deplibs System.ltframework"
            continue
@@ -2816,7 +2817,7 @@ func_mode_link ()
        dir=$func_stripname_result
        # We need an absolute path.
        case $dir in
-       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) ;;
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
        *)
          func_fatal_error "only absolute run-paths are allowed"
          ;;
@@ -2926,8 +2927,8 @@ func_mode_link ()
       # -F/path gives path to uninstalled frameworks, gcc on darwin
       # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
       # @file GCC response files
-      -64|-mips[[0-9]]|-r[[0-9]][[0-9]]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[[45]]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
         func_quote_for_eval "$arg"
        arg="$func_quote_for_eval_result"
         func_append compile_command " $arg"
@@ -3475,7 +3476,7 @@ func_mode_link ()
 
        # Convert "-framework foo" to "foo.ltframework"
        if test -n "$inherited_linker_flags"; then
-         tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([[^ $]]*\)/\1.ltframework/g'`
+         tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
          for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
            case " $new_inherited_linker_flags " in
              *" $tmp_inherited_linker_flag "*) ;;
@@ -3483,7 +3484,7 @@ func_mode_link ()
            esac
          done
        fi
-       dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
+       dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
        if test "$linkmode,$pass" = "prog,link"; then
          compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
          finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
@@ -3554,7 +3555,7 @@ func_mode_link ()
 
        # We need an absolute path.
        case $ladir in
-       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) abs_ladir="$ladir" ;;
+       [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
        *)
          abs_ladir=`cd "$ladir" && pwd`
          if test -z "$abs_ladir"; then
@@ -3833,15 +3834,15 @@ func_mode_link ()
              if test "$hardcode_direct" = no; then
                add="$dir/$linklib"
                case $host in
-                 *-*-sco3.2v5.0.[[024]]*) add_dir="-L$dir" ;;
+                 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
                  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
-                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[[01]].[[10]]* | \
+                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
                    *-*-unixware7*) add_dir="-L$dir" ;;
                  *-*-darwin* )
                    # if the lib is a (non-dlopened) module then we can not
                    # link against it, someone is ignoring the earlier warnings
                    if /usr/bin/file -L $add 2> /dev/null |
-                        $GREP ": [[^:]]* bundle" >/dev/null ; then
+                        $GREP ": [^:]* bundle" >/dev/null ; then
                      if test "X$dlopenmodule" != "X$lib"; then
                        $ECHO "*** Warning: lib $linklib is a module, not a shared library"
                        if test -z "$old_library" ; then
@@ -3878,7 +3879,7 @@ func_mode_link ()
                # Try looking first in the location we're being installed to.
                if test -n "$inst_prefix_dir"; then
                  case $libdir in
-                   [[\\/]]*)
+                   [\\/]*)
                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
                      ;;
                  esac
@@ -3951,7 +3952,7 @@ func_mode_link ()
              # Try looking first in the location we're being installed to.
              if test -n "$inst_prefix_dir"; then
                case $libdir in
-                 [[\\/]]*)
+                 [\\/]*)
                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
                    ;;
                esac
@@ -4062,7 +4063,7 @@ func_mode_link ()
                dir="$func_dirname_result"
                # We need an absolute path.
                case $dir in
-               [[\\/]]* | [[A-Za-z]]:[[\\/]]*) absdir="$dir" ;;
+               [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
                *)
                  absdir=`cd "$dir" && pwd`
                  if test -z "$absdir"; then
@@ -4369,7 +4370,7 @@ func_mode_link ()
 
        # Check that each of the things are valid numbers.
        case $current in
-       0|[[1-9]]|[[1-9]][[0-9]]|[[1-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]][[0-9]]) ;;
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
        *)
          func_error "CURRENT \`$current' must be a nonnegative integer"
          func_fatal_error "\`$vinfo' is not valid version information"
@@ -4377,7 +4378,7 @@ func_mode_link ()
        esac
 
        case $revision in
-       0|[[1-9]]|[[1-9]][[0-9]]|[[1-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]][[0-9]]) ;;
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
        *)
          func_error "REVISION \`$revision' must be a nonnegative integer"
          func_fatal_error "\`$vinfo' is not valid version information"
@@ -4385,7 +4386,7 @@ func_mode_link ()
        esac
 
        case $age in
-       0|[[1-9]]|[[1-9]][[0-9]]|[[1-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]]|[[1-9]][[0-9]][[0-9]][[0-9]][[0-9]]) ;;
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
        *)
          func_error "AGE \`$age' must be a nonnegative integer"
          func_fatal_error "\`$vinfo' is not valid version information"
@@ -4616,7 +4617,7 @@ func_mode_link ()
          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
            # these systems don't actually have a c library (as such)!
            ;;
-         *-*-rhapsody* | *-*-darwin1.[[012]])
+         *-*-rhapsody* | *-*-darwin1.[012])
            # Rhapsody C library is in the System framework
            deplibs="$deplibs System.ltframework"
            ;;
@@ -4778,7 +4779,7 @@ EOF
              if test -n "$a_deplib" ; then
                libname=`eval "\\$ECHO \"$libname_spec\""`
                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
-                 potential_libs=`ls $i/$libname[[.-]]* 2>/dev/null`
+                 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
                  for potent_lib in $potential_libs; do
                      # Follow soft links.
                      if ls -lLd "$potent_lib" 2>/dev/null |
@@ -4794,8 +4795,8 @@ EOF
                      while test -h "$potlib" 2>/dev/null; do
                        potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
                        case $potliblink in
-                       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) potlib="$potliblink";;
-                       *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[[^/]]*$,,'`"$potliblink";;
+                       [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+                       *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
                        esac
                      done
                      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
@@ -4847,7 +4848,7 @@ EOF
              if test -n "$a_deplib" ; then
                libname=`eval "\\$ECHO \"$libname_spec\""`
                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
-                 potential_libs=`ls $i/$libname[[.-]]* 2>/dev/null`
+                 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
                  for potent_lib in $potential_libs; do
                    potlib="$potent_lib" # see symlink-check above in file_magic test
                    if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
@@ -4883,14 +4884,14 @@ EOF
        none | unknown | *)
          newdeplibs=""
          tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
-             -e 's/ -lc$//' -e 's/ -[[LR]][[^ ]]*//g'`
+             -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
          if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
            for i in $predeps $postdeps ; do
              # can't use Xsed below, because $i might contain '/'
              tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
            done
          fi
-         if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[[    ]]//g' |
+         if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[     ]//g' |
             $GREP . >/dev/null; then
            $ECHO
            if test "X$deplibs_check_method" = "Xnone"; then
@@ -4910,7 +4911,7 @@ EOF
        name=$name_save
 
        case $host in
-       *-*-rhapsody* | *-*-darwin1.[[012]])
+       *-*-rhapsody* | *-*-darwin1.[012])
          # On Rhapsody replace the C library with the System framework
          newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
          ;;
@@ -4964,9 +4965,9 @@ EOF
       # Time to change all our "foo.ltframework" stuff back to "-framework foo"
       case $host in
        *-*-darwin*)
-         newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
-         new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
-         deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
+         newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+         new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+         deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
          ;;
       esac
 
@@ -5164,7 +5165,7 @@ EOF
          # though. Also, the filter scales superlinearly with the number of
          # global variables. join(1) would be nice here, but unfortunately
          # isn't a blessed tool.
-         $opt_dry_run || $SED -e '/[[ ,]]DATA/!d;s,\(.*\)\([[ \,]].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+         $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
          delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
          export_symbols=$output_objdir/$libname.def
          $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
@@ -5591,10 +5592,10 @@ EOF
         && test "$dlopen_support" = unknown \
        && test "$dlopen_self" = unknown \
        && test "$dlopen_self_static" = unknown && \
-         func_warning "\`LT_INIT([[dlopen]])' not used. Assuming no dlopen support."
+         func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
 
       case $host in
-      *-*-rhapsody* | *-*-darwin1.[[012]])
+      *-*-rhapsody* | *-*-darwin1.[012])
        # On Rhapsody replace the C library is the System framework
        compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
        finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
@@ -5607,15 +5608,15 @@ EOF
        # But is supposedly fixed on 10.4 or later (yay!).
        if test "$tagname" = CXX ; then
          case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
-           10.[[0123]])
+           10.[0123])
              compile_command="$compile_command ${wl}-bind_at_load"
              finalize_command="$finalize_command ${wl}-bind_at_load"
            ;;
          esac
        fi
        # Time to change all our "foo.ltframework" stuff back to "-framework foo"
-       compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
-       finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([[^ $]]*\).ltframework% -framework \1%g'`
+       compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+       finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
        ;;
       esac
 
@@ -5884,7 +5885,7 @@ EOF
       # Quote $ECHO for shipping.
       if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
        case $progpath in
-       [[\\/]]* | [[A-Za-z]]:[[\\/]]*) qecho="$SHELL $progpath --fallback-echo";;
+       [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
        *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
        esac
        qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
@@ -6005,36 +6006,36 @@ char * strendzap(char *str, const char *pat);
 void lt_fatal (const char *message, ...);
 
 int
-main (int argc, char *argv[[]])
+main (int argc, char *argv[])
 {
   char **newargz;
   int i;
 
-  program_name = (char *) xstrdup (base_name (argv[[0]]));
-  DEBUG("(main) argv[[0]]      : %s\n",argv[[0]]);
+  program_name = (char *) xstrdup (base_name (argv[0]));
+  DEBUG("(main) argv[0]      : %s\n",argv[0]);
   DEBUG("(main) program_name : %s\n",program_name);
   newargz = XMALLOC(char *, argc+2);
 EOF
 
            cat >> $cwrappersource <<EOF
-  newargz[[0]] = (char *) xstrdup("$SHELL");
+  newargz[0] = (char *) xstrdup("$SHELL");
 EOF
 
            cat >> $cwrappersource <<"EOF"
-  newargz[[1]] = find_executable(argv[[0]]);
-  if (newargz[[1]] == NULL)
-    lt_fatal("Couldn't find %s", argv[[0]]);
-  DEBUG("(main) found exe at : %s\n",newargz[[1]]);
+  newargz[1] = find_executable(argv[0]);
+  if (newargz[1] == NULL)
+    lt_fatal("Couldn't find %s", argv[0]);
+  DEBUG("(main) found exe at : %s\n",newargz[1]);
   /* we know the script has the same name, without the .exe */
-  /* so make sure newargz[[1]] doesn't end in .exe */
-  strendzap(newargz[[1]],".exe");
+  /* so make sure newargz[1] doesn't end in .exe */
+  strendzap(newargz[1],".exe");
   for (i = 1; i < argc; i++)
-    newargz[[i+1]] = xstrdup(argv[[i]]);
-  newargz[[argc+1]] = NULL;
+    newargz[i+1] = xstrdup(argv[i]);
+  newargz[argc+1] = NULL;
 
   for (i=0; i<argc+1; i++)
   {
-    DEBUG("(main) newargz[[%d]]   : %s\n",i,newargz[[i]]);
+    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
     ;
   }
 
@@ -6081,7 +6082,7 @@ base_name (const char *name)
 
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
   /* Skip over the disk name in MSDOS pathnames. */
-  if (isalpha ((unsigned char)name[[0]]) && name[[1]] == ':')
+  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
     name += 2;
 #endif
 
@@ -6125,7 +6126,7 @@ find_executable (const char* wrapper)
   const char* p;
   const char* p_next;
   /* static buffer for getcwd */
-  char tmp[[LT_PATHMAX + 1]];
+  char tmp[LT_PATHMAX + 1];
   int tmp_len;
   char* concat_name;
 
@@ -6136,7 +6137,7 @@ find_executable (const char* wrapper)
 
   /* Absolute path? */
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
-  if (isalpha ((unsigned char)wrapper[[0]]) && wrapper[[1]] == ':')
+  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
   {
     concat_name = xstrdup (wrapper);
     if (check_executable(concat_name))
@@ -6146,7 +6147,7 @@ find_executable (const char* wrapper)
   else
   {
 #endif
-    if (IS_DIR_SEPARATOR (wrapper[[0]]))
+    if (IS_DIR_SEPARATOR (wrapper[0]))
     {
       concat_name = xstrdup (wrapper);
       if (check_executable(concat_name))
@@ -6186,14 +6187,14 @@ find_executable (const char* wrapper)
          tmp_len = strlen(tmp);
          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
          memcpy (concat_name, tmp, tmp_len);
-         concat_name[[tmp_len]] = '/';
+         concat_name[tmp_len] = '/';
          strcpy (concat_name + tmp_len + 1, wrapper);
        }
        else
        {
          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
          memcpy (concat_name, p, p_len);
-         concat_name[[p_len]] = '/';
+         concat_name[p_len] = '/';
          strcpy (concat_name + p_len + 1, wrapper);
        }
        if (check_executable(concat_name))
@@ -6209,7 +6210,7 @@ find_executable (const char* wrapper)
   tmp_len = strlen(tmp);
   concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
   memcpy (concat_name, tmp, tmp_len);
-  concat_name[[tmp_len]] = '/';
+  concat_name[tmp_len] = '/';
   strcpy (concat_name + tmp_len + 1, wrapper);
 
   if (check_executable(concat_name))
@@ -6291,9 +6292,9 @@ sed_quote_subst='$sed_quote_subst'
 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
   emulate sh
   NULLCMD=:
-  [#] Zsh 3.x and 4.x performs word splitting on \${1+\"\$[@]\"}, which
+  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
   # is contrary to our usage.  Disable this feature.
-  alias -g '\${1+\"\$[@]\"}'='\"\$[@]\"'
+  alias -g '\${1+\"\$@\"}'='\"\$@\"'
   setopt NO_GLOB_SUBST
 else
   case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
@@ -6333,18 +6334,18 @@ else
        $ECHO >> $output "\
 
   # Find the directory that this script lives in.
-  thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[[^/]]*$%%'\`
+  thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
   test \"x\$thisdir\" = \"x\$file\" && thisdir=.
 
   # Follow symbolic links until we get to the real thisdir.
   file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
   while test -n \"\$file\"; do
-    destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[[^/]]*\$%%'\`
+    destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
 
     # If there was a directory component, then change thisdir.
     if test \"x\$destdir\" != \"x\$file\"; then
       case \"\$destdir\" in
-      [[\\\\/]]* | [[A-Za-z]]:[[\\\\/]]*) thisdir=\"\$destdir\" ;;
+      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
       *) thisdir=\"\$thisdir/\$destdir\" ;;
       esac
     fi
@@ -6530,14 +6531,14 @@ fi\
            objbase="$func_basename_result"
            case " $oldobjs " in
            " ") oldobjs=$obj ;;
-           *[[\ /]]"$objbase "*)
+           *[\ /]"$objbase "*)
              while :; do
                # Make sure we don't pick an alternate name that also
                # overlaps.
                newobj=lt$counter-$objbase
                counter=`expr $counter + 1`
                case " $oldobjs " in
-               *[[\ /]]"$newobj "*) ;;
+               *[\ /]"$newobj "*) ;;
                *) if test ! -f "$gentop/$newobj"; then break; fi ;;
                esac
              done
@@ -6687,7 +6688,7 @@ fi\
            newdlfiles=
            for lib in $dlfiles; do
              case $lib in
-               [[\\/]]* | [[A-Za-z]]:[[\\/]]*) abs="$lib" ;;
+               [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
                *) abs=`pwd`"/$lib" ;;
              esac
              newdlfiles="$newdlfiles $abs"
@@ -6696,7 +6697,7 @@ fi\
            newdlprefiles=
            for lib in $dlprefiles; do
              case $lib in
-               [[\\/]]* | [[A-Za-z]]:[[\\/]]*) abs="$lib" ;;
+               [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
                *) abs=`pwd`"/$lib" ;;
              esac
              newdlprefiles="$newdlprefiles $abs"
@@ -6980,3 +6981,5 @@ build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
 # sh-indentation:2
 # End:
 # vi:sw=2
+]])
+
index a5ca83c6fcd5c265308bdeb0b0153c111dd3129b..1676473e770948913182e5c6e5249a8ce36dce44 100644 (file)
@@ -68,6 +68,7 @@ $as_unset CDPATH
 
 m4_include([getopt.m4sh])
 
+M4SH_VERBATIM([[
 # Global variables:
 multipart=1
 outputfile=""
@@ -80,8 +81,8 @@ sed_mail_address='s,^.*<\(.*\)>.*$,\1,'
   # sed scripts:
   my_sed_single_opt='1s/^\(..\).*$/\1/;q'
   my_sed_single_rest='1s/^..\(.*\)$/\1/;q'
-  my_sed_long_opt='1s/^\(--[[^=]]*\)=.*/\1/;q'
-  my_sed_long_arg='1s/^--[[^=]]*=//'
+  my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
+  my_sed_long_arg='1s/^--[^=]*=//'
 
   while test $# -gt 0; do
     opt="$1"
@@ -387,3 +388,5 @@ exit $EXIT_SUCCESS
 # mode:shell-script
 # sh-indentation:2
 # End:
+]])
+
index 6f656cbd3f37e4ceb659daf2d06939089940c24a..251b0af59157baadae0f2661559855dba85cb033 100644 (file)
@@ -70,6 +70,7 @@ $as_unset CDPATH
 
 m4_include([getopt.m4sh])
 
+M4SH_VERBATIM([[
 # test EBCDIC or ASCII
 case `echo X|tr X '\101'` in
  A) # ASCII based system
@@ -118,8 +119,8 @@ configure_ac=configure.in
   # sed scripts:
   my_sed_single_opt='1s/^\(..\).*$/\1/;q'
   my_sed_single_rest='1s/^..\(.*\)$/\1/;q'
-  my_sed_long_opt='1s/^\(--[[^=]]*\)=.*/\1/;q'
-  my_sed_long_arg='1s/^--[[^=]]*=//'
+  my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
+  my_sed_long_arg='1s/^--[^=]*=//'
 
   while test "$#" -gt 0; do
     opt="$1"
@@ -337,7 +338,7 @@ func_fixup_Makefile ()
       s,libltdl/config-h.in,,
       s,libltdl/Makefile.am,,
       s,libltdl/Makefile.in,,
-      /^[[      ]]*\\\\\$/d"
+      /^[       ]*\\\\\$/d"
     case $my_filename in
       Makefile.am)
        my_fixup_non_subpackage_script=`echo "$my_fixup_non_subpackage_script" | \
@@ -345,7 +346,7 @@ func_fixup_Makefile ()
        my_fixup_inc_paths_script= ;;
       Makefile.inc)
        repl=$ltdldir
-       repl_uscore=`$ECHO "X$repl" | $Xsed -e 's,[[/.+-]],_,g'`
+       repl_uscore=`$ECHO "X$repl" | $Xsed -e 's,[/.+-],_,g'`
        my_fixup_inc_paths_script="\
          s,libltdl_,@repl_uscore@_,
          s,libltdl/,@repl@/,
@@ -407,24 +408,24 @@ func_scan_files ()
     # ---------------------------------------------------- #
 
     my_sed_traces='s,#.*$,,; s,^dnl .*$,,; s, dnl .*$,,
-        s,^.*AC_REQUIRE(.*$,,; s,^.*m4[]_require(.*$,,; s,^.*m4[]_define(.*$,,
-       s,^.*A[[CU]]_DEFUN(.*$,,; s,^.*m4[]_defun(.*$,,
+        s,^.*AC_REQUIRE(.*$,,; s,^.*m4_require(.*$,,; s,^.*m4_define(.*$,,
+       s,^.*A[CU]_DEFUN(.*$,,; s,^.*m4_defun(.*$,,
        /AC_CONFIG_AUX_DIR(/ {
-           s,^.*AC_CONFIG_AUX_DIR([[[  ]*\([^])]]*\).*$,auxdir=\1,
+           s,^.*AC_CONFIG_AUX_DIR([[   ]*\([^])]*\).*$,auxdir=\1,
            p
         }
        /AC_CONFIG_MACRO_DIR(/ {
-           s,^.*AC_CONFIG_MACRO_DIR([[[        ]*\([^])]]*\).*$,macrodir=\1,
+           s,^.*AC_CONFIG_MACRO_DIR([[         ]*\([^])]*\).*$,macrodir=\1,
            p
         }
        /_LT_CONFIG_LTDL_DIR(/d
        /LT_CONFIG_LTDL_DIR(/ {
-           s/^.*LT_CONFIG_LTDL_DIR([[[  ]*\([^]),]*\)[^,]]*/ac_ltdldir=\1%%/
-           s/%%[[[,    ]*\([^])]]*\).*$/ ac_ltdl_mode=\1%%/
+           s/^.*LT_CONFIG_LTDL_DIR([[   ]*\([^]),]*\)[^,]*/ac_ltdldir=\1%%/
+           s/%%[[,     ]*\([^])]*\).*$/ ac_ltdl_mode=\1%%/
            s/%%.*$//
            p
        }
-       /A[[CM]]_PROG_LIBTOOL/ {
+       /A[CM]_PROG_LIBTOOL/ {
            s,^.*$,seen_libtool=:,
            p
        }
@@ -540,8 +541,8 @@ func_scan_files ()
     # in `Makefile.am' for a `-I' argument.
 
     my_sed_aclocal_flags='
-        /^[[   ]]*ACLOCAL_[[A-Z_]]*FLAGS[[     ]]*=/ {
-           s,^[[^=]]*=[[       ]]*\(.*\), \1,
+        /^[    ]*ACLOCAL_[A-Z_]*FLAGS[         ]*=/ {
+           s,^[^=]*=[  ]*\(.*\), \1,
            q
        }
        d'
@@ -572,8 +573,8 @@ func_included_files ()
 
     my_include_regex=
     my_sed_include='
-        /^[m4]_include(\[[.*\]])$/ {
-           s,^[m4]_include(\[[\(.*\)\]])$,\1,
+        /^m4_include(\[.*\])$/ {
+           s,^m4_include(\[\(.*\)\])$,\1,
            p
        }
         d'
@@ -598,12 +599,12 @@ func_serial ()
     $opt_debug
     my_filename="$1"
     my_macro_regex="$2"
-    my_sed_serial=['
+    my_sed_serial='
        /^# serial [1-9][0-9.]*[        ]*'"$my_macro_regex"'[  ]*$/ {
            s,^# serial \([1-9][0-9.]*\).*$,\1,
            q
        }
-       d']
+       d'
 
     # Search FILENAME and all the files it m4_includes for a serial number
     # in the file that AC_DEFUNs MACRO_REGEX.
@@ -637,8 +638,8 @@ func_serial_max ()
     my_serial2="$2"
 
     my_sed_dot='s/\..*$//g'
-    my_sed_rest='s/^[[0-9]][[1-9]]*\.*//'
-    my_sed_digits='s/[[^0-9.]]//g'
+    my_sed_rest='s/^[0-9][1-9]*\.*//'
+    my_sed_digits='s/[^0-9.]//g'
 
     # Incase they turn out to be the same, we'll set it to empty
     func_serial_max_result=
@@ -832,12 +833,12 @@ func_keyword_update ()
 func_ltmain_update ()
 {
     $opt_debug
-    my_sed_ltmain=['
+    my_sed_ltmain='
        /^package_revision='\''*[0-9][1-9.]*'\''*/ {
            s,^package_revision='\''*\([0-9.]*\)'\''*[  ]*$,\1,
            p
        }
-       d']
+       d'
 
     func_keyword_update "$1" "$2" "$3" "$my_sed_ltmain"
 
@@ -852,13 +853,13 @@ func_ltmain_update ()
 func_config_update ()
 {
     $opt_debug
-    my_sed_config=['
+    my_sed_config='
        /^timestamp='\''*[0-9][1-9-]*'\''*/ {
            s,^timestamp='\''*\([0-9-]*\)'\''*,\1,
            s/-/./g
            p
        }
-       d']
+       d'
 
     func_keyword_update "$1" "$2" "$3" "$my_sed_config"
 
@@ -873,13 +874,13 @@ func_config_update ()
 func_install_update ()
 {
     $opt_debug
-    my_sed_install=['
+    my_sed_install='
        /^scriptversion='\''*[0-9][1-9.-]*'\''*/ {
            s,^scriptversion='\''*\([0-9.-]*\)'\''*,\1,
            s/-/./g
            p
        }
-       d']
+       d'
 
     func_keyword_update "$1" "$2" "$3" "$my_sed_install"
 
@@ -899,10 +900,10 @@ func_check_macros ()
     # Suggest modern idioms for storing autoconf macros:
     if test -z "$macrodir$ltdldir"; then
       if test x"$m4dir" = x.; then
-       func_echo "Consider adding \`AC_CONFIG_MACRO_DIR([m4])' to $configure_ac and rerunning"
+       func_echo "Consider adding \`AC_CONFIG_MACRO_DIR(m4)' to $configure_ac and rerunning"
        func_echo " libtoolize, to keep the correct libtool macros in-tree."
       else
-       func_echo "Consider adding \`AC_CONFIG_MACRO_DIR([$m4dir])'to $configure.ac,"
+       func_echo "Consider adding \`AC_CONFIG_MACRO_DIR($m4dir)'to $configure.ac,"
        func_echo "and rerunning libtoolize."
       fi
     elif test -z "$m4dir"; then
@@ -922,7 +923,7 @@ func_check_macros ()
        done
       fi
       if test "$acmacrodir" != "$aclocaldir"; then
-        func_echo "or else add \`AC_CONFIG_MACRO_DIR([[$acmacrodir]])' to $configure_ac."
+        func_echo "or else add \`AC_CONFIG_MACRO_DIR([$acmacrodir])' to $configure_ac."
        ac_config_macro_dir_advised=:
       fi
     fi
@@ -938,18 +939,18 @@ func_check_macros ()
 
       # Remind the user to call LT_CONFIG_LTDL_DIR:
       test -n "$ac_ltdldir" ||
-        func_echo "Remember to add \`LT_CONFIG_LTDL_DIR([[$ltdldir]])' to \`$configure_ac'."
+        func_echo "Remember to add \`LT_CONFIG_LTDL_DIR([$ltdldir])' to \`$configure_ac'."
 
       # Offer some suggestions for avoiding duplicate files in a project
       # that uses libltdl:
       test "${ltdlprefix}config" = "$auxdir" ||
-        func_echo "Consider using \`AC_CONFIG_AUX_DIR([[${ltdlprefix}config]])' in $configure_ac."
+        func_echo "Consider using \`AC_CONFIG_AUX_DIR([${ltdlprefix}config])' in $configure_ac."
       $ac_config_macro_dir_advised || test "${ltdlprefix}m4" = "$m4dir" ||
-        func_echo "Consider using \`AC_CONFIG_MACRO_DIR([[${ltdlprefix}m4]])' in $configure_ac."
+        func_echo "Consider using \`AC_CONFIG_MACRO_DIR([${ltdlprefix}m4])' in $configure_ac."
     else
       # Don't trace for this, we're just checking the user didn't invoke it
       # directly from configure.ac.
-      $SED 's,[d]nl .*$,,; s,# .*$,,' "$configure_ac" | grep AC_PROG_RANLIB &&
+      $SED 's,dnl .*$,,; s,# .*$,,' "$configure_ac" | grep AC_PROG_RANLIB &&
         func_echo "\`AC_PROG_RANLIB' is rendered obsolete by \`LT_INIT'"
     fi
 
@@ -1121,7 +1122,7 @@ func_nonemptydir_p ()
     $opt_quiet || func_echo "putting macros in AC_CONFIG_MACRO_DIR, \`$m4dir'."
 
     func_serial_update  libtool.m4 "$aclocaldir" "$m4dir" \
-      LT_INIT 'A[[CM]]_PROG_LIBTOOL'
+      LT_INIT 'A[CM]_PROG_LIBTOOL'
 
     if $seen_ltdl; then
       func_serial_update ltdl.m4 "$aclocaldir" "$m4dir" 'LTDL_INIT'
@@ -1183,3 +1184,4 @@ exit $exit_status
 # mode:shell-script
 # sh-indentation:2
 # End:
+]])
index c87d41b45b2ba9a108db80b674e1a72582f648d2..d8b6bb134ca968819c18a645efd72e827e17a0ca 100644 (file)
@@ -30,6 +30,7 @@ $as_unset CDPATH
 
 m4_include([general.m4sh])
 
+M4SH_VERBATIM([[
 : ${AUTOCONF="autoconf"}
 : ${AUTORECONF="autoreconf"}
 : ${LIBTOOL="./libtool"}
@@ -345,3 +346,5 @@ func_msg "Running $progname"
 # mode:shell-script
 # sh-indentation:2
 # End:
+]])
+