96a684b
2009-12-10  Stepan Kasal  <skasal@redhat.com>
96a684b
96a684b
The change of implementation of AC_REQUIRE in 2.64 caused a regression
96a684b
in the arts project.
96a684b
This can be fixed by shuffling some macro calls.
96a684b
96a684b
I suppose that most of this patch will not be needed with a future
96a684b
release of Autoconf.
96a684b
But the last chunk of this patch is a real bug in this source and
96a684b
should go upstream.
96a684b
96a684b
--- arts-1.5.10/admin/acinclude.m4.in	2008-08-20 18:07:05.000000000 +0200
96a684b
+++ arts-1.5.10/admin/acinclude.m4.in	2009-12-09 17:30:57.000000000 +0100
96a684b
@@ -3081,8 +3081,18 @@
96a684b
 fi
96a684b
 ])
96a684b
 
96a684b
+AC_DEFUN([AC_CHECK_COMPILERS_CC],
96a684b
+[ 
96a684b
+  dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
96a684b
+  CFLAGS=" $CFLAGS"
96a684b
+  AC_PROG_CC
96a684b
+  CXXFLAGS=" $CXXFLAGS"
96a684b
+  AC_PROG_CXX
96a684b
+])
96a684b
+
96a684b
 AC_DEFUN([AC_CHECK_COMPILERS],
96a684b
 [
96a684b
+  AC_REQUIRE([AC_CHECK_COMPILERS_CC])
96a684b
   AC_ARG_ENABLE(debug,
96a684b
 	        AC_HELP_STRING([--enable-debug=ARG],[enables debug symbols (yes|no|full) [default=no]]),
96a684b
   [
96a684b
@@ -3141,11 +3151,6 @@
96a684b
     [kde_use_profiling="no"]
96a684b
   )
96a684b
 
96a684b
-  dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
96a684b
-  CFLAGS=" $CFLAGS"
96a684b
-
96a684b
-  AC_PROG_CC 
96a684b
-
96a684b
   AC_PROG_CPP
96a684b
 
96a684b
   if test "$GCC" = "yes"; then
96a684b
@@ -3174,10 +3179,6 @@
96a684b
      LDFLAGS=""
96a684b
   fi
96a684b
 
96a684b
-  CXXFLAGS=" $CXXFLAGS"
96a684b
-
96a684b
-  AC_PROG_CXX
96a684b
-
96a684b
   KDE_CHECK_FOR_BAD_COMPILER
96a684b
 
96a684b
   if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
96a684b
@@ -3503,8 +3504,8 @@
96a684b
 AC_REQUIRE([AC_LIBTOOL_DLOPEN])
96a684b
 AC_REQUIRE([KDE_CHECK_LIB64])
96a684b
 
96a684b
-AC_OBJEXT
96a684b
-AC_EXEEXT
96a684b
+AC_REQUIRE([AC_OBJEXT])
96a684b
+AC_REQUIRE([AC_EXEEXT])
96a684b
 
96a684b
 AM_PROG_LIBTOOL
96a684b
 AC_LIBTOOL_CXX