]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AC_INIT_PARSE_ARGS): Have configure
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Aug 2004 22:54:51 +0000 (22:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Aug 2004 22:54:51 +0000 (22:54 +0000)
handle "--" as per POSIX.  Suggested by Paul Pogonyshev.

lib/autoconf/general.m4

index f61f2423cecfcde5138e18ccf065b6439d961ba7..23342c03590a6d58c5851b0b82190c508362ba2d 100644 (file)
@@ -543,6 +543,7 @@ AC_SUBST([infodir],        ['${prefix}/info'])dnl
 AC_SUBST([mandir],         ['${prefix}/man'])dnl
 
 ac_prev=
+ac_dashdash=
 for ac_option
 do
   # If the previous option needs an argument, assign it.
@@ -556,7 +557,9 @@ do
 
   # Accept the important Cygnus configure options, so we can diagnose typos.
 
-  case $ac_option in
+  case $ac_dashdash$ac_option in
+  --)
+    ac_dashdash=yes ;;
 
   -bindir | --bindir | --bindi | --bind | --bin | --bi)
     ac_prev=bindir ;;