Hi!

>--[Akim Demaille]--<[EMAIL PROTECTED]>

> | This patch makes autoconf prefer configure.gnu over configure when
> | configuring subdirectories; this is usefull if these subdirectories also
> | contain packages not using autoconf.

> I don't understand this `configure.gnu' stuff.  Why is not named
> configure?  This name is not reserved to Autoconf.

Okay, look at it that way: Let's assume I have a tree of independent
projects to (cross-)compile. Most use autoconf, some don't, notably perl5.
So to configure in one sweep, I have to put some replacement of autoconf's
configure into that directory that is called instead of perl5's Configure,
which doesn't do anything else than feed the right values into Configure. Of
course, I can't give my script the same name "configure" as the script
already there, which is "Configure". Hence, I have to choose a different
name - configure.gnu. Or do you prefer a different name?

> This is wrong: you should update the --help recursion too.

The Q. is, whether --help does make sense in this situation. But I guess you're
right.

Okay, next try:

Index: ChangeLog
from Rüdiger Kuhlmann <[EMAIL PROTECTED]>
        * acgeneral.m4(_AC_OUTPUT_SUBDIRS): check for configure.gnu as well.
          (_AC_INIT_HELP): check for configure.gnu as well.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.545
diff -u -u -r1.545 acgeneral.m4
@@ -1781,7 +1781,10 @@
     esac
 
     # Check for guested configure; otherwise get Cygnus style configure.
-    if test -f $ac_sub_srcdir/configure; then
+    if test -f $ac_sub_srcdir/configure.gnu; then
+      echo
+      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
+    elif test -f $ac_sub_srcdir/configure; then
       echo
       $SHELL $ac_sub_srcdir/configure  --help=recursive
     elif test -f $ac_sub_srcdir/configure.in; then
@@ -5146,7 +5225,9 @@
     esac
 
     # Check for guested configure; otherwise get Cygnus style configure. 
-    if test -f $ac_sub_srcdir/configure; then
+    if test -f $ac_sub_srcdir/configure.gnu; then
+      ac_sub_configure="$SHELL $ac_sub_srcdir/configure.gnu"
+    elif test -f $ac_sub_srcdir/configure; then
       ac_sub_configure="$SHELL $ac_sub_srcdir/configure"
     elif test -f $ac_sub_srcdir/configure.in; then
       ac_sub_configure=$ac_configure

Yours, Rüdiger.

-- 
 mailto:[EMAIL PROTECTED]
   http://www.ruediger-kuhlmann.de/
Kombjuder: Iich bin feddich mid dem üblichn Gedou.
           Hau aff -ENTER-, damid mer feddichwern.
     Stef: Iich bagg's ned...

Reply via email to