bug-automake
[Top][All Lists]
Advanced

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

automake silent-rules feature is not compatible with --disable-dependenc


From: Dmitry V. Levin
Subject: automake silent-rules feature is not compatible with --disable-dependency-tracking
Date: Sun, 17 Jan 2010 04:37:10 +0300

Hi,

There seems to be a bug in automake: silent-rules support is not
compatible with --disable-dependency-tracking yet.  Passing this option to
configure results to garbage both in silent and verbose output.
Here is a reproducer on GNU/Linux:

$ automake --version |head -1
automake (GNU automake) 1.11.1
$ cat configure.ac 
AC_INIT([foo],[0])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([silent-rules])
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
$ cat Makefile.am 
bin_PROGRAMS = foo
$ cat foo.c 
int main(){return 0;}
$ touch NEWS README AUTHORS ChangeLog INSTALL COPYING
$ aclocal && autoconf && autoheader && automake --add-missing
configure.ac:3: installing `./install-sh'
configure.ac:3: installing `./missing'
Makefile.am: installing `./depcomp'
$ ./configure --disable-dependency-tracking
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
$ make --no-print-directory V=0
make  all-am
  CC     foo.o
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c foo.c
  CCLD   foo
$ make clean
test -z "foo" || rm -f foo
rm -f *.o
$ make --no-print-directory V=1
make  all-am
\
#       source='foo.c' object='foo.o' libtool=no 
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c foo.c
gcc  -g -O2   -o foo foo.o  


-- 
ldv

Attachment: pgpVETsjUTSi7.pgp
Description: PGP signature


reply via email to

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