This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libgfortran] Actually use GCC_NO_EXECUTABLES
- From: Kelley Cook <kcook at gcc dot gnu dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, fortran at gcc dot gnu dot org
- Date: Thu, 04 Nov 2004 22:53:09 -0500
- Subject: [libgfortran] Actually use GCC_NO_EXECUTABLES
In libfortran's configure, GCC_NO_EXECUTABLES wasn't being picked up
(due to a recently fixed aclocal oversight). Apparently nobody making a
cross compiler with libgfortran noticed.
After regenerating with automake 1.9.3 and initally getting strange
errors, I had to add some missed quoting in the LIBGFOR_GETTIMEOFDAY
macro. Then I added ACLOCAL_AMFLAGS so autoreconf will know where to
look for no-executables.m4
As a side bonus the 1.8.5->1.9.3 automake upgrade knocks more than 1400
repetitive lines out of the generated Makefile.in.
Both fall under the obvious rule. Regenerated with automake 1.9.3.
Committed after a powerpc-apple-darwin7.5.0 bootstrap.
Kelley Cook
2004-11-05 Kelley Cook <kcook@gcc.gnu.org>
* acinclude.m4: Properly quote AC_CACHE_CHECK.
* Makefile.am: Add in ACLOCAL_AMFLAGS.
* aclocal.m4, configure, Makefile.in: Regenerate.
2004-10-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
* config.h.in: Regenerate.
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/Makefile.am,v
retrieving revision 1.20
diff -p -u -d -r1.20 Makefile.am
--- Makefile.am 4 Oct 2004 21:30:27 -0000 1.20
+++ Makefile.am 5 Nov 2004 03:22:19 -0000
@@ -3,6 +3,7 @@
## We like to use C99 routines when available. This makes sure that
## __STDC_VERSION__ is set such that libc includes make them available.
AM_CFLAGS = -std=gnu99
+ACLOCAL_AMFLAGS = -I ../config
toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/acinclude.m4,v
retrieving revision 1.2
diff -p -u -d -r1.2 acinclude.m4
--- acinclude.m4 13 May 2004 06:40:59 -0000 1.2
+++ acinclude.m4 5 Nov 2004 03:22:20 -0000
@@ -42,9 +42,9 @@ main ()
fi
fi
AC_REQUIRE([AC_HEADER_TIME])
- AC_CACHE_CHECK(whether gettimeofday can accept two arguments,
+ AC_CACHE_CHECK([whether gettimeofday can accept two arguments],
emacs_cv_gettimeofday_two_arguments,
- AC_TRY_LINK([
+ [AC_TRY_LINK([
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
@@ -66,7 +66,7 @@ main ()
#endif
gettimeofday (&time, DUMMY);],
emacs_cv_gettimeofday_two_arguments=yes,
- emacs_cv_gettimeofday_two_arguments=no))
+ emacs_cv_gettimeofday_two_arguments=no)])
if test $emacs_cv_gettimeofday_two_arguments = no; then
AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT, 1,
[Does gettimeofday take a single argument])