bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot recreate gllib


From: Ralf Wildenhues
Subject: Re: cannot recreate gllib
Date: Sun, 26 Oct 2008 15:27:01 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Sam,

let's put bug-gnulib back in the loop.

* Sam Steingold wrote on Sun, Oct 26, 2008 at 02:54:42PM CET:
> > * Ralf Wildenhues <address@hidden> [2008-10-26 09:52:39 +0100]:
> > Does this happen in a pristine build tree, too?
> 
> no, fresh top-level configure works just fine.
> alas:
> 

> $ rm -rf gllib/
> $ make gllib
> mkdir -p gllib
> if test ! -f gllib/Makefile; then sh config.status --file=gllib/Makefile 
> depfiles; fi
> config.status: creating gllib/Makefile
> config.status: executing depfiles commands
> sed: can't read 'gllib/Makefile': No such file or directory

> > Can you show output of the above config.status command line with
> >   set -x
> >
> > added as second line in the script?
> > (If that's very large, then please consider gzip'ing or so.)
[...]
> + CONFIG_FILES= 'gllib/Makefile'
[...]
> + printf %s\n config.status:59338: executing depfiles commands
> + printf %s\n config.status: executing depfiles commands
> + test x != x
> + echo 'gllib/Makefile'
> + sed -e s/:.*$//
> + mf='gllib/Makefile'
> + sed -n s,^#.*generated by automake.*,X,p 'gllib/Makefile'
> sed: can't read 'gllib/Makefile': No such file or directory

Darn.  The extra quoting added to Autoconf's handling of the --file
argument broke Automake's _AM_OUTPUT_DEPENDENCY_COMMANDS macro.

Reproducible with a small example, see below.  Workaround: use
  ./config.status gllib/Makefile depfiles

instead of --file=gllib/Makefile.

Thanks for the report, I'll be looking into a fix in Auto{conf,make}.

Cheers,
Ralf

cat >configure.ac <<'EOF'
AC_INIT(a,1)
AM_INIT_AUTOMAKE(foreign)
AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
EOF
cat >Makefile.am <<'EOF'
bin_PROGRAMS = foo
foo_SOURCES = foo.c foo.h
EOF
: >foo.h
cat >foo.c <<'EOF'
#include "foo.h"
int main () { return 0; }
EOF
autoreconf -vi
./configure
./config.status Makefile depfiles
./config.status --file=Makefile depfiles

leads to:
  config.status: creating Makefile
  config.status: executing depfiles commands
  sed: can't read 'Makefile': No such file or directory




reply via email to

[Prev in Thread] Current Thread [Next in Thread]