#! /bin/sh
-# From configure.in Revision: 1.43
+# From configure.in Revision: 1.45
+
+
+
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:631: checking host system type" >&5
+echo "configure:634: checking host system type" >&5
host_alias=$host
case "$host_alias" in
echo "$ac_t""$host" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
-echo "configure:652: checking target system type" >&5
+echo "configure:655: checking target system type" >&5
target_alias=$target
case "$target_alias" in
echo "$ac_t""$target" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:670: checking build system type" >&5
+echo "configure:673: checking build system type" >&5
build_alias=$build
case "$build_alias" in
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:747: checking for $ac_word" >&5
+echo "configure:750: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:777: checking for $ac_word" >&5
+echo "configure:780: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:828: checking for $ac_word" >&5
+echo "configure:831: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:863: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 871 "configure"
+#line 874 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:907: checking whether we are using GNU C" >&5
+echo "configure:910: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:938: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$CC", so it can be a program name with args.
set dummy $CC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:969: checking for $ac_word" >&5
+echo "configure:972: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1009: checking for $ac_word" >&5
+echo "configure:1012: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1041: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:1044: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 1052 "configure"
+#line 1055 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
-if { (eval echo configure:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1083: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1086: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:1088: checking whether we are using GNU C++" >&5
+echo "configure:1091: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:1116: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:1119: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$CXX", so it can be a program name with args.
set dummy $CXX; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1150: checking for $ac_word" >&5
+echo "configure:1153: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-if test $GXX = yes ; then
+if test "$GXX" = yes ; then
# find out the right version
GXX_VERSION_STRING=`($CXX -v 2>&1) | grep "gcc version"`
case "$GXX_VERSION_STRING" in
-if test $GXX = yes ; then
+if test "$GXX" = yes ; then
CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-32"
CXXFLAGSG="$CXXFLAGS -DDEBUG -ansi -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Winline -Woverloaded-virtual -Wstrict-prototypes -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-32"
-echo $ac_n "checking whether -ggdb works for long symbols""... $ac_c" 1>&6
-echo "configure:1268: checking whether -ggdb works for long symbols" >&5
-case "$target" in
- alpha*-osf*)
- CXXFLAGS="-ggdb $CXXFLAGSG"
- ac_ext=C
-# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CXXCPP $CPPFLAGS'
-ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cxx_cross
-
- cat > conftest.$ac_ext <<EOF
-#line 1280 "configure"
+if test "$GXX" = yes ; then
+ echo $ac_n "checking whether -ggdb works for long symbols""... $ac_c" 1>&6
+echo "configure:1272: checking whether -ggdb works for long symbols" >&5
+ case "$target" in
+ alpha*-osf*)
+ CXXFLAGS="-ggdb $CXXFLAGSG"
+ cat > conftest.$ac_ext <<EOF
+#line 1277 "configure"
#include "confdefs.h"
#include <string>
map<string,map<string,pair<string,string> > >::const_iterator i1=t2->begin();
return (i1==i2);
}
-
+
int main() {
- ;
-
+ ;
+
; return 0; }
EOF
-if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
- CXXFLAGSG="-ggdb $CXXFLAGSG"
- echo "$ac_t""yes" 1>&6
-
+ CXXFLAGSG="-ggdb $CXXFLAGSG"
+ echo "$ac_t""yes" 1>&6
+
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- CXXFLAGSG="-gstabs $CXXFLAGSG"
- echo "$ac_t""no -- using -gstabs" 1>&6
-
+ CXXFLAGSG="-gstabs $CXXFLAGSG"
+ echo "$ac_t""no -- using -gstabs" 1>&6
+
fi
rm -f conftest*
- ;;
+ ;;
- *)
- echo "$ac_t""yes" 1>&6
- CXXFLAGSG="-ggdb $CXXFLAGSG"
- ;;
-esac
+ *)
+ echo "$ac_t""yes" 1>&6
+ CXXFLAGSG="-ggdb $CXXFLAGSG"
+ ;;
+ esac
+else
+ CXXFLAGSG="-g $CXXFLAGSG"
+fi
fi
if test "x$F77" != "x" ; then
- F77_VERSION_STRING=`($F77 -v 2>&1)`
+ F77_VERSION_STRING="`($F77 -v 2>&1)`"
if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" ; then
G77_VERSION_STRING="`($F77 -v 2>&1) | grep \"gcc version\"`"
case "$G77_VERSION_STRING" in
-if test $enablemultithreading = yes ; then
+if test "$enablemultithreading" = yes ; then
echo $ac_n "checking for platform specific thread flags""... $ac_c" 1>&6
echo "configure:1616: checking for platform specific thread flags" >&5
withmultithreading=no
fi
-if test $withmultithreading != no ; then
+if test "$withmultithreading" != no ; then
echo $ac_n "checking for ACE""... $ac_c" 1>&6
echo "configure:1717: checking for ACE" >&5
- if test -d $withmultithreading ; then
+ if test -d "$withmultithreading" ; then
echo "$ac_t""found" 1>&6
else
echo "$ac_t""not found" 1>&6
# Check whether --with-blas or --without-blas was given.
if test "${with_blas+set}" = set; then
withval="$with_blas"
- if test $withval != no ; then
+ if test "$withval" != no ; then
echo $ac_n "checking for BLAS""... $ac_c" 1>&6
echo "configure:1737: checking for BLAS" >&5
- if test -r $withval ; then
+ if test -r "$withval" ; then
echo "$ac_t""found" 1>&6
else
echo "$ac_t""not found" 1>&6
# Check whether --with-lapack or --without-lapack was given.
if test "${with_lapack+set}" = set; then
withval="$with_lapack"
- if test $withval != no ; then
+ if test "$withval" != no ; then
echo $ac_n "checking for LAPACK""... $ac_c" 1>&6
echo "configure:1800: checking for LAPACK" >&5
- if test -r $withval ; then
+ if test -r "$withval" ; then
echo "$ac_t""found" 1>&6
else
echo "$ac_t""not found" 1>&6
fi
fi
-if test $enablemultigrid = yes ; then
+if test "$enablemultigrid" = yes ; then
echo "$ac_t""configuring multigrid" 1>&6
cat >> confdefs.h <<\EOF
#define ENABLE_MULTIGRID 1
dnl variables: CXX, GXX, CXXFLAGS
AC_PROG_CXX
AC_PATH_PROG(CXX,$CXX)
-if test $GXX = yes ; then
+if test "$GXX" = yes ; then
# find out the right version
GXX_VERSION_STRING=`($CXX -v 2>&1) | grep "gcc version"`
case "$GXX_VERSION_STRING" in
dnl CXXFLAGSG are the flags for debug mode
dnl -------------------------------------------------------------
-if test $GXX = yes ; then
+if test "$GXX" = yes ; then
CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-32"
CXXFLAGSG="$CXXFLAGS -DDEBUG -ansi -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Winline -Woverloaded-virtual -Wstrict-prototypes -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-32"
dnl many templates, and if the assembler can't handle them, then use
dnl -gstabs instead. This reduces debugging possibilities, but no other
dnl way is known at present.
-AC_MSG_CHECKING(whether -ggdb works for long symbols)
-case "$target" in
- dnl On Alpha, use the special treatment
- alpha*-osf*)
- CXXFLAGS="-ggdb $CXXFLAGSG"
- AC_LANG_CPLUSPLUS
- AC_TRY_COMPILE(
- [
+dnl
+dnl For all compilers other than gcc, use -g instead and don't check.
+if test "$GXX" = yes ; then
+ AC_MSG_CHECKING(whether -ggdb works for long symbols)
+ case "$target" in
+ dnl On Alpha, use the special treatment
+ alpha*-osf*)
+ CXXFLAGS="-ggdb $CXXFLAGSG"
+ AC_TRY_COMPILE(
+ [
#include <string>
#include <map>
map<string,map<string,pair<string,string> > >::const_iterator i1=t2->begin();
return (i1==i2);
}
- ],
- [
- ;
- ],
- [
- CXXFLAGSG="-ggdb $CXXFLAGSG"
- AC_MSG_RESULT(yes)
- ],
- [
- CXXFLAGSG="-gstabs $CXXFLAGSG"
- AC_MSG_RESULT(no -- using -gstabs)
- ])
- ;;
+ ],
+ [
+ ;
+ ],
+ [
+ CXXFLAGSG="-ggdb $CXXFLAGSG"
+ AC_MSG_RESULT(yes)
+ ],
+ [
+ CXXFLAGSG="-gstabs $CXXFLAGSG"
+ AC_MSG_RESULT(no -- using -gstabs)
+ ])
+ ;;
- dnl For all other systems assume that -ggdb works (we can't make the test
- dnl above the default, as stabs are not the default debugging format on many
- dnl systems, and we only want to use it where necessary
- *)
- AC_MSG_RESULT(yes)
- CXXFLAGSG="-ggdb $CXXFLAGSG"
- ;;
-esac
+ dnl For all other systems assume that -ggdb works (we can't make the test
+ dnl above the default, as stabs are not the default debugging format on many
+ dnl systems, and we only want to use it where necessary
+ *)
+ AC_MSG_RESULT(yes)
+ CXXFLAGSG="-ggdb $CXXFLAGSG"
+ ;;
+ esac
+else
+ dnl Non-gcc compilers use -g instead of -ggdb
+ CXXFLAGSG="-g $CXXFLAGSG"
+fi
dnl headers to make reentrant functions (with suffix _r) declared
dnl - remove -ansi from compiler flags again, since ACE yields hundreds of
dnl error messages with this flag
-if test $enablemultithreading = yes ; then
+if test "$enablemultithreading" = yes ; then
DEAL_II_GET_THREAD_FLAGS
DEAL_II_THREAD_CPPFLAGS
[ --with-multithreading=DIR use DIR as path to the ACE library],
withmultithreading=$withval,
withmultithreading=no)
-if test $withmultithreading != no ; then
+if test "$withmultithreading" != no ; then
AC_MSG_CHECKING(for ACE)
- if test -d $withmultithreading ; then
+ if test -d "$withmultithreading" ; then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT(not found)
dnl ------------------------------------------------------------
AC_ARG_WITH(blas,
[ --with-blas=LIB use the BLAS-library file LIB],
- if test $withval != no ; then
+ if test "$withval" != no ; then
AC_MSG_CHECKING(for BLAS)
- if test -r $withval ; then
+ if test -r "$withval" ; then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT(not found)
AC_ARG_WITH(lapack,
[ --with-lapack=LIB use the LAPACK-library file LIB],
- if test $withval != no ; then
+ if test "$withval" != no ; then
AC_MSG_CHECKING(for LAPACK)
- if test -r $withval ; then
+ if test -r "$withval" ; then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT(not found)
else
enablemultigrid=no ;
fi)
-if test $enablemultigrid = yes ; then
+if test "$enablemultigrid" = yes ; then
AC_MSG_RESULT(configuring multigrid)
AC_DEFINE(ENABLE_MULTIGRID)
fi