called after this macro.
* tests/distname.test, tests/subdir5.test, tests/subdir8.test,
tests/subobj.test, tests/subobj4.test, tests/subobj5.test,
tests/subobj6.test: Adjust.
Report from Ralf Wildenhues.
2004-09-10 Alexandre Duret-Lutz <adl@gnu.org>
+ * m4/minuso.m4 (AM_PROG_CC_C_O): Make sure AC_PROG_CC is never
+ called after this macro.
+ * tests/distname.test, tests/subdir5.test, tests/subdir8.test,
+ tests/subobj.test, tests/subobj4.test, tests/subobj5.test,
+ tests/subobj6.test: Adjust.
+ Report from Ralf Wildenhues.
+
* lib/Automake/Channels.pm (_print_message): Handle uniq_part with
arbitrary string.
* automake.in (lang_c_rewrite): Set uniq_part so that the
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
CC="$am_aux_dir/compile $CC"
fi
+dnl Make sure AC_PROG_CC is never called again, or it will override our
+dnl setting of CC.
+m4_define([AC_PROG_CC],
+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
])
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
cat > configure.in << 'END'
AC_INIT(a.c)
AM_INIT_AUTOMAKE(nonesuch, 0.23)
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
AC_OUTPUT(Makefile)
END
#! /bin/sh
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
AC_INIT(maude, 1.0)
AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
-AC_PROG_CC
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
END
cat > configure.in << 'END'
AC_INIT(maude, 1.0)
AM_INIT_AUTOMAKE
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
AC_CONFIG_FILES(Makefile maude/Makefile)
m4_include([confile.m4])
AC_OUTPUT
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
echo 'AC_CONFIG_FILES([sub/Makefile])' >confiles.m4
cat >> configure.in << 'END'
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
m4_include([confiles.m4])
MORE_DEFS
AC_OUTPUT
#! /bin/sh
-# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
set -e
cat >> configure.in << 'END'
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
END
cat > Makefile.am << 'END'
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
. ./defs || exit 1
cat >> configure.in << 'END'
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
AC_PROG_CXX
AC_OUTPUT(d1/Makefile d2/Makefile)
END
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
cat > configure.in << 'END'
AC_INIT(generic/a.c)
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AM_PROG_CC_C_O
AC_PROG_CC
+AM_PROG_CC_C_O
AC_OUTPUT(Makefile generic/Makefile)
END
#! /bin/sh
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
cat >> configure.in << 'END'
AM_PROG_CC_C_O
-AC_PROG_CC
AC_OUTPUT
END