]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: sync with upstream.
authorGary V. Vaughan <gary@gnu.org>
Tue, 20 Jan 2015 17:21:37 +0000 (17:21 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 20 Jan 2015 17:23:57 +0000 (17:23 +0000)
* gl/build-aux/bootstrap.in, gl/build-aux/extract-trace,
gl/build-aux/funclib.sh, gl/build-aux/options-parser: Sync with
upstream.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in
gl/build-aux/extract-trace
gl/build-aux/funclib.sh
gl/build-aux/options-parser

index f55bedc1d0067f5c3f61c88bca9f366f9f2a6c67..ced98ce241f72831d992425966286d78968026bf 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -230,7 +230,7 @@ vc_ignore=
 
 # Source required external libraries:
 # Set a version string for this script.
-scriptversion=2014-01-03.01; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 # General shell script boiler plate, and helper functions.
 # Written by Gary V. Vaughan, 2004
@@ -358,7 +358,7 @@ func_path_progs ()
 
     _G_path_prog_max=0
     _G_path_prog_found=false
-    _G_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+    _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
     for _G_dir in $_G_PATH; do
       IFS=$_G_save_IFS
       test -z "$_G_dir" && _G_dir=.
@@ -1541,7 +1541,7 @@ scriptversion=2014-01-07.03; # UTC
 # A portable, pluggable option parser for Bourne shell.
 # Written by Gary V. Vaughan, 2010
 
-# Copyright (C) 2010-2015 Free Software Foundation, Inc.
+# Copyright (C) 2010-2014 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -2155,7 +2155,7 @@ test -z "$progpath" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/funclib.sh
 test extract-trace = "$progname" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser
 
 # Set a version string.
-scriptversion=2014-12-03.16; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -2267,11 +2267,12 @@ func_tool_version_number ()
 {
     $debug_cmd
 
-    _G_verout=`func_tool_version_output "$@" |sed 1q`
+    _G_verout=`func_tool_version_output "$@"`
     _G_status=$?
 
     # A version number starts with a digit following a space on the first
     # line of output from `--version`.
+    _G_verout=`echo "$_G_verout" |sed 1q`
     if test -n "$_G_verout"; then
       _G_vernum=`expr "$_G_verout" : '.* \([0-9][^ ]*\)'`
     fi
@@ -2308,7 +2309,7 @@ func_find_tool ()
       for _G_prog
       do
         _G_find_tool_save_IFS=$IFS
-       IFS=:
+        IFS=${PATH_SEPARATOR-:}
        for _G_dir in $PATH; do
          IFS=$_G_find_tool_save_IFS
          _G_progpath=$_G_dir/$_G_prog
@@ -2620,7 +2621,7 @@ test extract-trace = "$progname" && func_main "$@"
 # End:
 
 # Set a version string for *this* script.
-scriptversion=2014-11-04.13; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 
 ## ------------------- ##
@@ -2746,10 +2747,13 @@ func_reconfigure ()
 
     $require_automake_options
 
-    # Automake (without 'foreign' option) requires that README exists.
+    # Automake (without 'foreign' option) requires that NEWS & README exist.
     case " $automake_options " in
       " foreign ") ;;
-      *) func_ensure_README ;;
+      *)
+        func_ensure_NEWS
+        func_ensure_README
+        ;;
     esac
 
     # Ensure ChangeLog presence.
@@ -3078,6 +3082,29 @@ EOT
 }
 
 
+# func_ensure_NEWS
+# ----------------
+# Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
+# completion with no NEWS file, even though NEWS.md or NEWS.txt
+# is often preferable.
+func_ensure_NEWS ()
+{
+    $debug_cmd
+
+    test -f NEWS || {
+      _G_NEWS=
+      for _G_news in NEWS.txt NEWS.md NEWS.rst; do
+        test -f "$_G_news" && break
+      done
+
+      test -f "$_G_news" && $LN_S $_G_news NEWS
+      func_verbose "$LN_S $_G_news NEWS"
+    }
+
+    return 0
+}
+
+
 # func_ensure_README
 # ------------------
 # Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
@@ -4812,7 +4839,7 @@ func_check_tool ()
       ;;
     *)
       save_IFS=$IFS
-      IFS=:
+      IFS=${PATH_SEPARATOR-:}
       for _G_check_tool_path in $PATH; do
         IFS=$save_IFS
        if test -x "$_G_check_tool_path/$1"; then
index c6e6dfb1658fc7965871b55af4c0ada2ec4879f7..6e686daff6e8ba3dcf86623a743d964c8c4dffdb 100755 (executable)
@@ -232,7 +232,7 @@ vc_ignore=
 . `echo "$0" |${SED-sed} 's|[^/]*$||'`"extract-trace"
 
 # Set a version string for *this* script.
-scriptversion=2014-11-04.13; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 
 ## ------------------- ##
@@ -358,10 +358,13 @@ func_reconfigure ()
 
     $require_automake_options
 
-    # Automake (without 'foreign' option) requires that README exists.
+    # Automake (without 'foreign' option) requires that NEWS & README exist.
     case " $automake_options " in
       " foreign ") ;;
-      *) func_ensure_README ;;
+      *)
+        func_ensure_NEWS
+        func_ensure_README
+        ;;
     esac
 
     # Ensure ChangeLog presence.
@@ -690,6 +693,29 @@ EOT
 }
 
 
+# func_ensure_NEWS
+# ----------------
+# Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
+# completion with no NEWS file, even though NEWS.md or NEWS.txt
+# is often preferable.
+func_ensure_NEWS ()
+{
+    $debug_cmd
+
+    test -f NEWS || {
+      _G_NEWS=
+      for _G_news in NEWS.txt NEWS.md NEWS.rst; do
+        test -f "$_G_news" && break
+      done
+
+      test -f "$_G_news" && $LN_S $_G_news NEWS
+      func_verbose "$LN_S $_G_news NEWS"
+    }
+
+    return 0
+}
+
+
 # func_ensure_README
 # ------------------
 # Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
@@ -2424,7 +2450,7 @@ func_check_tool ()
       ;;
     *)
       save_IFS=$IFS
-      IFS=:
+      IFS=${PATH_SEPARATOR-:}
       for _G_check_tool_path in $PATH; do
         IFS=$save_IFS
        if test -x "$_G_check_tool_path/$1"; then
index 23718245d7792be22a8a7d3602451168baa165f8..315a32a99b2aa41c03aa9c685541e8e01cc32fc4 100755 (executable)
@@ -12,7 +12,7 @@ test -z "$progpath" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/funclib.sh
 test extract-trace = "$progname" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser
 
 # Set a version string.
-scriptversion=2014-12-03.16; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -124,11 +124,12 @@ func_tool_version_number ()
 {
     $debug_cmd
 
-    _G_verout=`func_tool_version_output "$@" |sed 1q`
+    _G_verout=`func_tool_version_output "$@"`
     _G_status=$?
 
     # A version number starts with a digit following a space on the first
     # line of output from `--version`.
+    _G_verout=`echo "$_G_verout" |sed 1q`
     if test -n "$_G_verout"; then
       _G_vernum=`expr "$_G_verout" : '.* \([0-9][^ ]*\)'`
     fi
@@ -165,7 +166,7 @@ func_find_tool ()
       for _G_prog
       do
         _G_find_tool_save_IFS=$IFS
-       IFS=:
+        IFS=${PATH_SEPARATOR-:}
        for _G_dir in $PATH; do
          IFS=$_G_find_tool_save_IFS
          _G_progpath=$_G_dir/$_G_prog
index 62768664aa5849f93a282e5bd870e293fad9b3fe..39d972edaf60572709b1f166da5a88fe3f5b426b 100644 (file)
@@ -1,5 +1,5 @@
 # Set a version string for this script.
-scriptversion=2014-01-03.01; # UTC
+scriptversion=2015-01-20.17; # UTC
 
 # General shell script boiler plate, and helper functions.
 # Written by Gary V. Vaughan, 2004
@@ -127,7 +127,7 @@ func_path_progs ()
 
     _G_path_prog_max=0
     _G_path_prog_found=false
-    _G_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+    _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
     for _G_dir in $_G_PATH; do
       IFS=$_G_save_IFS
       test -z "$_G_dir" && _G_dir=.
index d651f1d7b013488f5f33b75092aec5b8f290f190..41302a8a515109874385bd295938a058408febfb 100644 (file)
@@ -6,7 +6,7 @@ scriptversion=2014-01-07.03; # UTC
 # A portable, pluggable option parser for Bourne shell.
 # Written by Gary V. Vaughan, 2010
 
-# Copyright (C) 2010-2015 Free Software Foundation, Inc.
+# Copyright (C) 2010-2014 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.