* lib/depcomp (gcc): Remove duplicated `-e' from sed invocation.
* tests/depcomp10.test: Make it executable. Fix a blunder that
has left part of an intended comment not prefixed by `#', thus
causing shell syntax errors. In this same comment, break a
too-long reported error message on multiple lines, for clarity.
Add reference to the relevant bug report. Add a comment which
explains why the test result 'skipped' if the first "make" call
fails. Add other useful comments.
* tests/depcomp9.test: Slightly improve comments.
+2011-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ depcomp: fix bugs in tests and in the depcomp script
+ * lib/depcomp (gcc): Remove duplicated `-e' from sed invocation.
+ * tests/depcomp10.test: Make it executable. Fix a blunder that
+ has left part of an intended comment not prefixed by `#', thus
+ causing shell syntax errors. In this same comment, break a
+ too-long reported error message on multiple lines, for clarity.
+ Add reference to the relevant bug report. Add a comment which
+ explains why the test result 'skipped' if the first "make" call
+ fails. Add other useful comments.
+ * tests/depcomp9.test: Slightly improve comments.
+
2011-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix hp depmode for VPATH builds with GNU make.
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2011-04-11-05; # UTC
+scriptversion=2011-04-11-10; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2011,
# Free Software Foundation, Inc.
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
- sed -e 's/^\\$//' -e '/^$/d' -e -e "s|.*$object$||" '/:$/d' \
+ sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" '/:$/d' \
| sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
# hp depmode should work with GNU make in VPATH mode (bug similar to
# depcomp9.test).
+# For automake bug#8473.
# Here's the bug: hp depmode will prefix VPATH to the object file name,
# thus the second gmake will invoke depcomp with object='../../src/foo.o',
-# causing errors such as:
-# cpp: "", line 0: error 4066: Cannot create "../../gllib/.deps/nonblocking.TPo" file for "-M../../gllib/.deps/nonblocking.TPo" option. (No such file or dir
-+ectory[errno=2])
+# causing errors such as (broken on multiple lines for clarity):
+# cpp: "", line 0: error 4066: Cannot create
+# "../../gllib/.deps/nonblocking.TPo" file for
+# "-M../../gllib/.deps/nonblocking.TPo" option.
+# (No such file or directory[errno=2])
required=GNUmake
. ./defs || Exit 1
cd build
../configure am_cv_CC_dependencies_compiler_type=hp
+# Do not error out with the first make, as the forced 'hp' depmode might
+# not actually work, but we have overridden the _AM_DEPENDENCIES tests.
$MAKE || Exit 77
+
+# We must clean and rebuild, as the actual error only happens the second
+# time the objects are built because 'depcomp' has silently messed up the
+# .Po files the first time.
$MAKE clean
$MAKE >out 2>&1 || { cat out; Exit 1; }
# Do not error out with the first make, as the forced 'makedepend'
# depmode might not actually work, but we have overridden the
-# _AM_DEPENDENCIES tests. The actual error only happens the second time
-# the objects are built, because 'makedepend' has silently messed up the
-# .Po files the first time.
+# _AM_DEPENDENCIES tests.
$MAKE || Exit 77
+
+# We must clean and rebuild, as the actual error only happens the second
+# time the objects are built because 'makedepend' has silently messed up
+# the .Po files the first time.
$MAKE clean
$MAKE >out 2>&1 || { cat out; Exit 1; }