[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OS X Leopard and conftest.dSYM directories
From: |
Ralf Wildenhues |
Subject: |
Re: Mac OS X Leopard and conftest.dSYM directories |
Date: |
Sun, 11 Nov 2007 15:41:20 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-04) |
Proposed patch for Autoconf (adding Jeff to THANKS not shown).
We can thank Apple for needing one more fork per link test now. :-/
FWIW, I do think that, of the fortran.m4 changes, all but the first hunk
are not necessary, rather, the `rm -f ...' lines could probably be
removed completely. OTOH, they don't add forks, and likely Fortran
compilers generate other files that _AC_LINK_IFELSE don't catch yet.
No need to be suprt efficient here IMVHO.
OK? Could somebody with Leopard access please test this by running
make all check TESTSUITEFLAGS='-v -x'
with it and sending output bzip2'ed?
Cheers, and thanks,
Ralf
Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
(_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
Remove conftest.dSYM directory.
* lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
* lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
(_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
* THANKS: Update.
Report and analysis by Jeff Squyres and Peter O'Gorman.
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 0907e40..e1adaf1 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -553,7 +553,7 @@ ac_[]_AC_LANG_ABBREV[]_v_output=`eval $ac_link
AS_MESSAGE_LOG_FD>&1 2>&1 | grep
AS_ECHO(["$ac_[]_AC_LANG_ABBREV[]_v_output"]) >&AS_MESSAGE_LOG_FD
_AC_LANG_PREFIX[]FLAGS=$ac_save_FFLAGS
-rm -f conftest*
+rm -rf conftest*
# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
# /foo, /bar, and /baz are search directories for the Fortran linker.
@@ -823,7 +823,7 @@ AC_CACHE_CHECK([for dummy main to link with _AC_LANG
libraries],
fi
AC_LANG_POP(C)dnl
ac_cv_[]_AC_LANG_ABBREV[]_dummy_main=$ac_cv_fortran_dummy_main
- rm -f conftest*
+ rm -rf conftest*
LIBS=$ac_[]_AC_LANG_ABBREV[]_dm_save_LIBS
])
[]_AC_FC[]_DUMMY_MAIN=$ac_cv_[]_AC_LANG_ABBREV[]_dummy_main
@@ -892,7 +892,7 @@ AC_CACHE_CHECK([for alternate main to link with _AC_LANG
libraries],
done
AC_LANG_POP(C)dnl
ac_cv_[]_AC_LANG_ABBREV[]_main=$ac_cv_fortran_main
- rm -f conftest*
+ rm -rf conftest*
LIBS=$ac_[]_AC_LANG_ABBREV[]_m_save_LIBS
])
AC_DEFINE_UNQUOTED([]_AC_FC[]_MAIN, $ac_cv_[]_AC_LANG_ABBREV[]_main,
@@ -1004,7 +1004,7 @@ AC_CACHE_CHECK([for _AC_LANG name-mangling scheme],
fi
LIBS=$ac_save_LIBS
- rm -f cfortran_test* conftest*],
+ rm -rf cfortran_test* conftest*],
[AC_MSG_FAILURE([cannot compile a simple Fortran program])])
])
])# __AC_FC_NAME_MANGLING
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index 2834e25..69b4371 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -2493,6 +2493,7 @@ AS_IF([_AC_DO_STDERR($ac_link) && {
dnl Delete also the IPA/IPO (Inter Procedural Analysis/Optimization)
dnl information created by the PGI compiler (conftest_ipa8_conftest.oo),
dnl as it would interfere with the next link command.
+rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl
])# _AC_LINK_IFELSE
@@ -2548,6 +2549,7 @@ _AC_MSG_LOG_CONFTEST
m4_ifvaln([$3],
[( exit $ac_status )
$3])dnl])[]dnl
+rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext
conftest.$ac_objext m4_ifval([$1],
[conftest.$ac_ext])[]dnl
])# _AC_RUN_IFELSE
diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4
index b659b9f..9a82d57 100644
--- a/lib/autoconf/lang.m4
+++ b/lib/autoconf/lang.m4
@@ -401,6 +401,9 @@ m4_divert_pop()dnl
#
# - *.map, *.inf
# Created by the Green Hills compiler.
+#
+# - *.dSYM
+# Directory created on Mac OS X Leopard.
# _AC_COMPILER_OBJEXT_REJECT
@@ -408,7 +411,7 @@ m4_divert_pop()dnl
# Case/esac pattern matching the files to be ignored when looking for
# compiled object files.
m4_define([_AC_COMPILER_OBJEXT_REJECT],
-[*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf])
+[*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf | *.dSYM])
# _AC_COMPILER_EXEEXT_REJECT
- Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Jeff Squyres, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/10
- Re: Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/11
- Re: Mac OS X Leopard and conftest.dSYM directories,
Ralf Wildenhues <=
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/12
- Re: Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/12
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/12
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/13
- Re: Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/11
- Re: Mac OS X Leopard and conftest.dSYM directories, Peter O'Gorman, 2007/11/11
- Re: Mac OS X Leopard and conftest.dSYM directories, Bob Friesenhahn, 2007/11/11
- Re: Mac OS X Leopard and conftest.dSYM directories, Ralf Wildenhues, 2007/11/12