[ adding bug-autoconf ]

* Ralf Wildenhues wrote on Wed, Mar 16, 2011 at 06:24:28AM CET:
> So, can we just quote the argument so it's not detected by m4?
> 
>   me_quoted=`echo "$me" | sed 's,..,&@\&t@,g'`
>   echo "AC_INIT([$me_quoted], [1.0])"

Hmm, this avoids an error, but also sets several things wrong in the
resulting configure script:

$ egrep '(foo-dnl|fo-)' configure
# Generated by GNU Autoconf 2.68 for foo-dnl 1.0.
PACKAGE_NAME='foo-dnl'
PACKAGE_TARNAME='fo--t-o---t-dn--t-l'
PACKAGE_STRING='foo-dnl 1.0'
\`configure' configures foo-dnl 1.0 to adapt to many kinds of systems.
                          [DATAROOTDIR/doc/fo--t-o---t-dn--t-l]
     short | recursive ) echo "Configuration of foo-dnl 1.0:";;
foo-dnl configure 1.0
It was created by foo-dnl $as_me 1.0, which was
 PACKAGE='fo--t-o---t-dn--t-l'
This file was extended by foo-dnl $as_me 1.0, which was
foo-dnl config.status 1.0

Bummer.  So, back to your patch I guess ...

Cheers,
Ralf

Reply via email to