Re: AS_DIRNAME and expr

2000-11-10 Thread Alexandre Oliva
On Nov 10, 2000, Paul Eggert <[EMAIL PROTECTED]> wrote: >> From: Akim Demaille <[EMAIL PROTECTED]> >> ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` > Ouch. Can you rewrite that as follows to work around the bug? How about: # Work around the problem that "expr 'a' : 'a\(\)'" outputs "0" in

Generated options for autoconf...

2000-11-10 Thread Bruce Korb
Hi all, The attached is the result of a few minutes of copying the current autoconf arguments into AutoOpts form and generating. It is not a perfect match for what you all want, but close. Plus, I can generate man pages and info docs Cheers, Bruce acopts.sh AutoGen Definitions op

Re: AS_DIRNAME and expr

2000-11-10 Thread Paul Eggert
> From: Akim Demaille <[EMAIL PROTECTED]> > Date: 10 Nov 2000 10:28:29 +0100 > > | The POSIX standard says: > | > |Usually, the matching operator shall return a string representing > |the number of characters matched ('0' on failure). Alternatively, > |if the pattern contains at leas

Re: AS_DIRNAME and expr

2000-11-10 Thread Paul Eggert
> From: Akim Demaille <[EMAIL PROTECTED]> > Date: 10 Nov 2000 10:23:25 +0100 > > But our troubles could be worse than this, since `expr' is not used > only in AS_DIRNAME. For instance any CVS configure contains > > ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` Ouch. Can you rewrite

Re: autoconf option fun

2000-11-10 Thread Alexandre Oliva
On Nov 9, 2000, Pavel Roskin <[EMAIL PROTECTED]> wrote: > Hello, Peter! >> Exactly where do the GNU standards say anything about long option >> abbreviation? > Well, whenever I don't check something I'm punished for that :-) Oops. Ditto :-) -- Alexandre Oliva Enjoy Guarana', see http://ww

Re: 01-ac-lang-compiler-require.patch (Was: CC/CPP/TRY_LINK)

2000-11-10 Thread Pavel Roskin
Hello, Akim! > | By the way, shouldn't we change the syntax of AC_LANG to > | > | AC_LANG(C, COMPILERS, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND) > | > | and go ahead if no C compiler has been found but ACTION-IF-NOT-FOUND is > | given? > > What advantage would that bring? How do you deal with th

${var="$val" } and Ultrix (Was: Success (mostly) with the testsuite)

2000-11-10 Thread Akim Demaille
hi Alexandre, I'm sorry to insist, but we've met this bug several times, and we never had a clear definition of it. I'd like to fix Autoconf but understanding why it's fixed :) The problem with Ultrix is probably that somehow it changes the 8th bit of the variable values. But `when' is the qu

Re: 01-ac-lang-compiler-require.patch (Was: CC/CPP/TRY_LINK)

2000-11-10 Thread Akim Demaille
| Hello, Ralf! | > checking how to run the C preprocessor... cc -E | > checking for sh-rtems-gcc... sh-rtems-gcc | | It's a separate problem that needs to be addressed before 2.50. | AC_PROG_CPP should require AC_PROG_CC. Right. | Maybe we should go as far as to make both AC_PROG_CPP and AC_PR

Re: AS_DIRNAME and expr

2000-11-10 Thread Akim Demaille
| The POSIX standard says: | |Usually, the matching operator shall return a string representing |the number of characters matched ('0' on failure). Alternatively, |if the pattern contains at least one regular expression |subexpression "[\(...\)]", the string corresponding to "\1"

Re: AS_DIRNAME and expr

2000-11-10 Thread Akim Demaille
> "Paul" == Paul Eggert <[EMAIL PROTECTED]> writes: Paul> How about if we add an AC_PROG_EXPR that searches for a working Paul> expr and sets EXPR to its value, or to "false" if it can't find Paul> one. Then AS_DIRNAME_EXPR can AC_REQUIRE([AC_PROG_EXPR]) and Paul> use "$EXPR" instead of "exp

Re: autoconf option fun

2000-11-10 Thread Akim Demaille
> "Pavel" == Pavel Roskin <[EMAIL PROTECTED]> writes: Pavel> It doesn't mean that we have eliminate all common code right Pavel> now, but it would be nice to start the conversion process now, Pavel> e.g. with the option parcer. We have to finish M4sh first, and extract an autoscript or somet