From: Wolfgang Bangerth Date: Thu, 26 Feb 2009 04:40:07 +0000 (+0000) Subject: Skip test for -rdynamic on Mac OS X. X-Git-Tag: v8.0.0~8004 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daaa7c8bf45c0d63ccb4fc790cd186e2653803ea;p=dealii.git Skip test for -rdynamic on Mac OS X. git-svn-id: https://svn.dealii.org/trunk@18433 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 05f473cf6f..f0d32d7604 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -4768,19 +4768,31 @@ AC_DEFUN(DEAL_II_HAVE_GLIBC_STACKTRACE, dnl provides stacktrace debug information that can be printed out in the exception class]) - AC_MSG_CHECKING(whether compiler accepts -rdynamic) + dnl On Mac OS X, -rdynamic is accepted by the compiler (i.e. + dnl it doesn't produce an error) but we always get a warning + dnl that it isn't supported. That's pretty stupid because + dnl we can't test for it. Consequently, only run the test + dnl if not on OS X. + case "$target" in + *apple-darwin*) + ;; - CXXFLAGS="$CXXFLAGSG -rdynamic" - AC_TRY_LINK( - [], - [;], - [ - AC_MSG_RESULT(yes) - LDFLAGS="$LDFLAGS -rdynamic" - ], - [ - AC_MSG_RESULT(no) - ]) + *) + AC_MSG_CHECKING(whether compiler accepts -rdynamic) + + CXXFLAGS="$CXXFLAGSG -rdynamic" + AC_TRY_LINK( + [], + [;], + [ + AC_MSG_RESULT(yes) + LDFLAGS="$LDFLAGS -rdynamic" + ], + [ + AC_MSG_RESULT(no) + ]) + ;; + esac ], [ AC_MSG_RESULT(no)