]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: accept --gnulib-srcdir=/path/to/gnulib again.
authorGary V. Vaughan <gary@gnu.org>
Wed, 16 Nov 2011 05:04:02 +0000 (12:04 +0700)
committerGary V. Vaughan <gary@gnu.org>
Wed, 16 Nov 2011 05:08:13 +0000 (12:08 +0700)
During the split of bootstrap into options-parser and
extract-trace, the generic long-option splitting code got lost.
* libltdl/config/options-parser (func_parse_options): Add the
code to split any long option separated by an equals from its
optarg back in.
Reported by Roumen Petrov.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
libltdl/config/options-parser

index 4f03dcec2c27fea3adc38c53f554c33b74cc3d75..5400833476744d42c2714da1bbab0923646a665f 100644 (file)
@@ -433,9 +433,16 @@ func_parse_options ()
 
         --verbose|-v) opt_verbose=: ;;
         --version)    func_version ;;
-        -\?|-h)     func_usage ;;
+        -\?|-h)       func_usage ;;
         --help)       func_help ;;
 
+       # Separate optargs to long options (plugins may need this):
+       --*=*)        func_split_equals "$opt"
+                     set dummy "$func_split_equals_lhs" \
+                          "$func_split_equals_rhs" ${1+"$@"}
+                      shift
+                      ;;
+
         # Separate non-argument short options:
         -\?*|-h*|-v*|-x*)
                       func_split_short_opt "$_G_opt"