`-V -dryrun'. icc 8.0 fails on the latter.
* tests/depcomp5.test: Require depmode=icc for icc 7.x, and
depmod=gcc otherwise.
Report from Ralf Wildenhues.
2004-06-03 Alexandre Duret-Lutz <adl@gnu.org>
+ * tests/defs.in (required=icc): Use `-V -help' instead of
+ `-V -dryrun'. icc 8.0 fails on the latter.
+ * tests/depcomp5.test: Require depmode=icc for icc 7.x, and
+ depmod=gcc otherwise.
+ Report from Ralf Wildenhues.
+
* lib/am/clean.am (distclean-generic): Do no
`rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty.
Report from Nicolas Joly.
# There is no way to ask *only* the compiler's version.
# This tool always want to do something (by default
# it will try link *nothing* and complain it cannot find
- # main(); funny). -dryrun is a workaround.
- echo "$me: running $CC -V -dryrun"
- ( $CC -V -dryrun ) || exit 77
+ # main(); funny). Use -help so it does not try linking anything.
+ echo "$me: running $CC -V -help"
+ ( $CC -V -help ) || exit 77
;;
makedepend)
echo "$me: running makedepend -f-"
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
required='icc'
. ./defs || exit 1
+# Automake supports icc since version 7.0 through a dedicated depcomp mode.
+# icc 8.0 and greater understand gcc options, so depmode is set to gcc.
+if icc -V -help 2>&1 | grep 'Version 7'; then
+ expect='depmode=icc'
+else
+ expect='depmode=gcc'
+fi
+
set -e
cat >> configure.in << 'END'
$AUTOMAKE -a
./configure
-grep 'depmode=icc' Makefile
+grep "$expect" Makefile
$MAKE check
$MAKE grepdeps