dnl
AC_DEFUN(DEAL_II_CHECK_ISNAN, dnl
DEAL_II_CHECK_ISNAN_FLAG(debug, $CXXFLAGSG,
- CXXFLAGSG="$CXXFLAGSG $deal_II_isnan_flag")
+ CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG")
DEAL_II_CHECK_ISNAN_FLAG(optimized, $CXXFLAGSO,
- CXXFLAGSO="$CXXFLAGSO $deal_II_isnan_flag")
+ CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO")
)
],
[
AC_MSG_RESULT("yes")
+ deal_II_isnan_flag="-DHAVE_ISNAN"
+ $3
],
[
dnl We need to define something. Unfortunately, this is system
isnan (d);
],
[
- deal_II_isnan_flag=$testflag
+ deal_II_isnan_flag="-DHAVE_ISNAN $testflag"
break;
],
[
dnl the library will not be compilable on this platform
dnl without knowledge of the right flag
if test "$deal_II_isnan_flag" = "" ; then
- AC_MSG_RESULT(no. no such flag found. aborting)
- exit 1
- fi
+ AC_MSG_RESULT(no.)
+ else
- dnl we found something, lets us it
- AC_MSG_RESULT(using $testflag)
- $3
+ dnl we found something, lets us it
+ AC_MSG_RESULT(using $testflag)
+ $3
+ fi
])
)
#! /bin/sh
-# From configure.in Revision: 1.28
+# From configure.in Revision: 1.29
rm -rf conftest*
echo "$ac_t"""yes"" 1>&6
+ deal_II_isnan_flag="-DHAVE_ISNAN"
+ CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG"
else
echo "configure: failed program was:" >&5
for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do
CXXFLAGS="$CXXFLAGSG $testflag"
cat > conftest.$ac_ext <<EOF
-#line 1703 "configure"
+#line 1705 "configure"
#include "confdefs.h"
#include <cmath>
; return 0; }
EOF
-if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- deal_II_isnan_flag=$testflag
+ deal_II_isnan_flag="-DHAVE_ISNAN $testflag"
break;
else
done
if test "$deal_II_isnan_flag" = "" ; then
- echo "$ac_t""no. no such flag found. aborting" 1>&6
- exit 1
- fi
+ echo "$ac_t""no." 1>&6
+ else
- echo "$ac_t""using $testflag" 1>&6
- CXXFLAGSG="$CXXFLAGSG $deal_II_isnan_flag"
+ echo "$ac_t""using $testflag" 1>&6
+ CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG"
+ fi
fi
rm -f conftest*
echo $ac_n "checking whether isnan is declared with optimized flags""... $ac_c" 1>&6
-echo "configure:1743: checking whether isnan is declared with optimized flags" >&5
+echo "configure:1745: checking whether isnan is declared with optimized flags" >&5
CXXFLAGS=$CXXFLAGSO
cat > conftest.$ac_ext <<EOF
-#line 1747 "configure"
+#line 1749 "configure"
#include "confdefs.h"
#include <cmath>
; return 0; }
EOF
-if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t"""yes"" 1>&6
+ deal_II_isnan_flag="-DHAVE_ISNAN"
+ CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO"
else
echo "configure: failed program was:" >&5
for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do
CXXFLAGS="$CXXFLAGSO $testflag"
cat > conftest.$ac_ext <<EOF
-#line 1773 "configure"
+#line 1777 "configure"
#include "confdefs.h"
#include <cmath>
; return 0; }
EOF
-if { (eval echo configure:1785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- deal_II_isnan_flag=$testflag
+ deal_II_isnan_flag="-DHAVE_ISNAN $testflag"
break;
else
done
if test "$deal_II_isnan_flag" = "" ; then
- echo "$ac_t""no. no such flag found. aborting" 1>&6
- exit 1
- fi
+ echo "$ac_t""no." 1>&6
+ else
- echo "$ac_t""using $testflag" 1>&6
- CXXFLAGSO="$CXXFLAGSO $deal_II_isnan_flag"
+ echo "$ac_t""using $testflag" 1>&6
+ CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO"
+ fi
fi
rm -f conftest*
CXXFLAGS="$CXXFLAGSG"
echo $ac_n "checking for consistency of CXXFLAGSG flags""... $ac_c" 1>&6
-echo "configure:1831: checking for consistency of CXXFLAGSG flags" >&5
+echo "configure:1835: checking for consistency of CXXFLAGSG flags" >&5
cat > conftest.$ac_ext <<EOF
-#line 1833 "configure"
+#line 1837 "configure"
#include "confdefs.h"
int main() {
;
; return 0; }
EOF
-if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
CXXFLAGS="$CXXFLAGSO"
echo $ac_n "checking for consistency of CXXFLAGSO flags""... $ac_c" 1>&6
-echo "configure:1858: checking for consistency of CXXFLAGSO flags" >&5
+echo "configure:1862: checking for consistency of CXXFLAGSO flags" >&5
cat > conftest.$ac_ext <<EOF
-#line 1860 "configure"
+#line 1864 "configure"
#include "confdefs.h"
int main() {
;
; return 0; }
EOF
-if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6