diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-04-02 16:57:22 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-04-02 16:57:22 +0000 |
commit | a81b06427c041466fa6a185603ef22803263fdd5 (patch) | |
tree | c3b8ccf1c48c19f526d189a40acaaffd55e7a789 /lib/make/aclocal.m4 | |
parent | 4f9fe66c07bbd7ea36ed9c30298a77c1349912a0 (diff) |
Explicitly remove all previous "conftest*" files before trying to
compile something. It seems as if AC_PROG_*_GNU does not clean up
after itself.
On case-insensitive file systems, having a file "conftest.c" around
while using cat to write to a file "conftest.C" means that the
resulting file is still "conftest.c", so that it is compiled as C and
not as C++ programme.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4279 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/aclocal.m4')
-rw-r--r-- | lib/make/aclocal.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index a47da973..4a7bf769 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -153,6 +153,7 @@ AC_DEFUN(CCTK_PROG_CC_WORKS, [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_C +rm -fr conftest* AC_TRY_COMPILER([main(){return(0);} PilotMain(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cc_works) @@ -168,6 +169,7 @@ AC_DEFUN(CCTK_PROG_CXX_WORKS, [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_CPLUSPLUS +rm -fr conftest* AC_TRY_COMPILER([int main(){return(0);} extern "C" int PilotMain(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cxx_works) |