From c10b5be85fb152a6be0d4f86ddb5a382cafe147f Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 8 Mar 2002 09:10:03 +0000 Subject: [PATCH] Significantly change the way configure works. Mostly, configure.in is now only a list of task to be done, cleanly separated into several categories. The actual work is done by macros in aclocal.m4. Also, config.guess and alike have been banned from the top-level directory and are now in contrib/config. git-svn-id: https://svn.dealii.org/trunk@5549 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 990 +++- deal.II/common/Make.global_options.in | 9 + deal.II/configure | 6587 +++++++++++++-------- deal.II/configure.in | 1019 +--- deal.II/{ => contrib/config}/config.guess | 469 +- deal.II/{ => contrib/config}/config.sub | 204 +- deal.II/{ => contrib/config}/install-sh | 0 deal.II/contrib/configure | 1570 +++-- deal.II/contrib/configure.in | 7 + deal.II/doc/news/2002/c-3-3.html | 7 + 10 files changed, 6792 insertions(+), 4070 deletions(-) rename deal.II/{ => contrib/config}/config.guess (82%) rename deal.II/{ => contrib/config}/config.sub (84%) rename deal.II/{ => contrib/config}/install-sh (100%) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index e1ca344ccf..a833c5aef4 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -15,23 +15,559 @@ dnl $Id$ +dnl ------------------------------------------------------------- +dnl Determine the C++ compiler in use. Return the name and possibly +dnl version of this compiler in GXX_VERSION. +dnl +dnl Usage: DEAL_II_DETERMINE_CXX_BRAND +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl +[ + if test "$GXX" = yes ; then + dnl find out the right version + GXX_VERSION_STRING=`($CXX -v 2>&1) | grep "gcc version"` + case "$GXX_VERSION_STRING" in + *"egcs-1.1"*) + AC_MSG_RESULT(C++ compiler is egcs-1.1) + GXX_VERSION=egcs1.1 + ;; + *2.95*) + AC_MSG_RESULT(C++ compiler is gcc-2.95) + GXX_VERSION=gcc2.95 + ;; + *2.96*) + AC_MSG_RESULT(C++ compiler is gcc-2.96) + GXX_VERSION=gcc2.96 + ;; + *2.97*) + AC_MSG_RESULT(C++ compiler is gcc-2.97) + GXX_VERSION=gcc2.97 + ;; + *3.0*) + AC_MSG_RESULT(C++ compiler is gcc-3.0) + GXX_VERSION=gcc3.0 + ;; + *3.1*) + AC_MSG_RESULT(C++ compiler is gcc-3.1) + GXX_VERSION=gcc3.1 + ;; + *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) + dnl These compilers are too old to support a useful subset + dnl of modern C++, so we don't support them + AC_MSG_RESULT(C++ compiler is $GXX_VERSION_STRING) + AC_MSG_ERROR(C++ compiler is not supported) + ;; + *) + AC_MSG_RESULT(C++ compiler is unknown but accepted gcc version) + GXX_VERSION=gcc-other + ;; + esac + else + dnl Check other (non-gcc) compilers + + dnl Check for IBM xlC. For some reasons, depending on some environment + dnl variables, moon position, and other reasons unknown to me, the + dnl compiler displays different names in the first line of output, so + dnl check various possibilities + is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" + if test "x$is_ibm_xlc" != "x" ; then + dnl Ah, this is IBM's C++ compiler. Unfortunately, we don't presently + dnl know how to check the version number, so assume that is sufficiently + dnl high... + AC_MSG_RESULT(C++ compiler is IBM xlC) + GXX_VERSION=ibm_xlc + else + + dnl Check whether we are dealing with the MIPSpro C++ compiler + is_mips_pro="`($CXX -version 2>&1) | grep MIPSpro`" + if test "x$is_mips_pro" != "x" ; then + AC_MSG_RESULT(C++ compiler is MIPSpro C++ compiler) + GXX_VERSION=MIPSpro + else + + dnl Intel's ICC C++ compiler? + is_intel_icc="`($CXX -V 2>&1) | grep 'Intel(R) C++ Compiler'`" + if test "x$is_intel_icc" != "x" ; then + AC_MSG_RESULT(C++ compiler is Intel ICC) + GXX_VERSION=intel_icc + else + + dnl Or DEC's cxx compiler? + is_dec_cxx="`($CXX -V 2>&1) | grep 'Compaq C++'`" + if test "x$is_dec_cxx" != "x" ; then + AC_MSG_RESULT(C++ compiler is Compaq cxx) + GXX_VERSION=compaq_cxx + else + + dnl Sun Workshop? + is_sun_cc="`($CXX -V 2>&1) | grep 'Sun WorkShop'`" + if test "x$is_sun_cc" != "x" ; then + AC_MSG_RESULT(C++ compiler is Sun Workshop compiler) + GXX_VERSION=sun_workshop + else + + dnl KAI C++? + is_kai_cc="`($CXX -V 2>&1) | grep 'KAI C++'`" + if test "x$is_kai_cc" != "x" ; then + AC_MSG_RESULT(compile is KAI C++) + GXX_VERSSION=kai_cc + else + + dnl Aw, nothing suitable found... + AC_MSG_ERROR(Unrecognized compiler, sorry) + exit 1 + fi + fi + fi + fi + fi + fi + fi +]) + + + + + +dnl ------------------------------------------------------------- +dnl Set C++ compiler flags to their default values. They will be +dnl modified according to other options in later steps of +dnl configuration +dnl +dnl CXXFLAGSO : flags for optimized mode +dnl CXXFLAGSG : flags for debug mode +dnl CXXFLAGSPIC: flags for generation of object files that are suitable +dnl for shared libs +dnl LDFLAGSPIC : flags needed for linking of object files to shared +dnl libraries +dnl +dnl Usage: DEAL_II_SET_CXX_FLAGS +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl +[ + dnl First the flags for gcc compilers + 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" + CXXFLAGSPIC="-fPIC" + LDFLAGSPIC="-fPIC" + + dnl set some flags that are specific to some versions of the + dnl compiler: + dnl - egcs1.1 yielded incorrect code with some loop unrolling + dnl - after egcs1.1, the optimization flag -fstrict-aliasing was + dnl introduced, which enables better optimizations for + dnl well-written C++ code. we believe that deal.II falls into that + dnl category and thus enable the flag + dnl - egcs1.1 yielded incorrect code with vtable-thunks. thus disable + dnl them for egcs1.1. however, if on Linux, disabling them + dnl prevents programs from being linked, so take the risk of broken + dnl thunks on this platform + + case "$GXX_VERSION" in + egcs1.1) + case "$target" in + *linux*) + ;; + + *) + CXXFLAGSG = "$CXXFLAGSG -fno-vtable-thunks" + CXXFLAGSO = "$CXXFLAGSO -fno-vtable-thunks" + ;; + esac + ;; + + dnl All other gcc versions + *) + CXXFLAGSO="$CXXFLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" + ;; + esac + + dnl - after gcc2.95, some flags were deemed obsolete for C++ + dnl (and are only supported for C any more), so only define them for + dnl previous compilers + + case "$GXX_VERSION" in + egcs1.1 | gcc2.95) + CXXFLAGSG="$CXXFLAGSG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs" + CXXFLAGSO="$CXXFLAGSO -fnonnull-objects" + ;; + + *) + ;; + esac + + dnl Some gcc compiler versions have a problem when using an unsigned count + dnl in the std::advance function. Unfortunately, this also happens + dnl occasionally from within the standard library, so we can't prevent the + dnl warning messages. Since this is annoying, switch of the flag -W which + dnl causes this. + DEAL_II_CHECK_ADVANCE_WARNING + if test "x$DEAL_II_ADVANCE_WARNING" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-W //g;'`" + fi + + else + dnl Non-gcc compilers + + case "$GXX_VERSION" in + ibm_xlc) + CXXFLAGSG="$CXXFLAGS -DDEBUG -check=bounds -info=all -qrtti=all" + CXXFLAGSO="$CXXFLAGS -O2 -w -qansialias -qrtti=all" + CXXFLAGSPIC="-fPIC" + LDFLAGSPIC="-fPIC" + ;; + + MIPSpro) + CXXFLAGSG="$CXXFLAGS -DDEBUG -LANG:std" + CXXFLAGSO="$CXXFLAGS -LANG:alias_const=ON -LANG:std -w" + CXXFLAGSPIC="-KPIC" + LDFLAGSPIC="-KPIC" + ;; + + intel_icc) + dnl Disable some compiler warnings, as they often are wrong on + dnl our code: + dnl #175: `subscript out of range' (doesn't take into account that + dnl some code is only reachable for some dimensions) + dnl #327: `NULL reference is not allowed' (this happens when we + dnl write "*static_cast(0)" or some such thing, + dnl which we do to create invalid references) + dnl #525: `type "DataOutBase::DataOutBase" is an inaccessible type + dnl (allowed for compatibility)' (I don't understand what the + dnl compiler means) + CXXFLAGSG="$CXXFLAGS -Kc++eh -Krtti -w1 -wd175 -wd525 -wd327 -DDEBUG -inline_debug_info" + CXXFLAGSO="$CXXFLAGS -Kc++eh -Krtti -O2 -tpp6 -axiMK -unroll -w0" + CXXFLAGSPIC="-KPIC" + LDFLAGSPIC="-KPIC" + ;; + + compaq_cxx) + dnl Disable some warning messages: + dnl #175: `subscript out of range' (detected when instantiating a + dnl template and looking at the indices of an array of + dnl template dependent size, this error is triggered in a + dnl branch that is not taken for the present space dimension) + dnl #236 and + dnl #237: `controlling expression is constant' (in while(true), or + dnl switch(dim)) + dnl #381: `extra ";" ignored' (at function or namespace closing + dnl brace) + dnl #487: `Inline function ... cannot be explicitly instantiated' + dnl (also reported when we instantiate the entire class) + dnl #1136:`conversion to integral type of smaller size could lose data' + dnl (occurs rather often in addition of int and x.size(), + dnl because the latter is size_t=long unsigned int on Alpha) + dnl #1156:`meaningless qualifiers not compatible with "..." and "..."' + dnl (cause unknown, happens when taking the address of a + dnl template member function) + dnl #111 and + dnl #1182:`statement either is unreachable or causes unreachable code' + dnl (happens in switch(dim) clauses for other dimensions than + dnl the present one) + dnl + dnl Also disable the following error: + dnl #265: `class "..." is inaccessible' (happens when we try to + dnl initialize a static member variable in terms of another + dnl static member variable of the same class if the latter is + dnl not public and therefore not accessible at global scope in + dnl general. I nevertheless think that this is valid.) + dnl + dnl Besides this, choose the most standard conforming mode of the + dnl compiler, i.e. -model ansi and -std strict_ansi. Unfortunately, + dnl we have to also add the flag -implicit_local (generating implicit + dnl instantiations of template with the `weak' link flag) since + dnl otherwise not all templates are instantiated (also some from the + dnl standards library are missing). + + CXXFLAGSG="$CXXFLAGS -model ansi -std strict_ansi -w1 -msg_display_number -timplicit_local -DDEBUG" + CXXFLAGSO="$CXXFLAGS -model ansi -std strict_ansi -w2 -msg_display_number -timplicit_local -fast" + + for i in 175 236 237 381 487 1136 1156 111 1182 265 ; do + CXXFLAGSG="$CXXFLAGSG -msg_disable $i" + CXXFLAGSO="$CXXFLAGSO -msg_disable $i" + done + + dnl If we use -model ansi to compile the files, we also have to + dnl specify it for linking + LDFLAGS="$LDFLAGS -model ansi" + + dnl For some reason, cxx also forgets to add the math lib to the + dnl linker line, so we do that ourselves + LDFLAGS="$LDFLAGS -lm" + + dnl if necessary: -shared, -pthread + dnl Should one use -compress? -distinguish_nested_enums? + dnl -nousing_std? -pch? -noimplicit_include? + + CXXFLAGSPIC="-shared" + LDFLAGSPIC="-shared" + ;; + + sun_workshop) + CXXFLAGSG="$CXXFLAGS -DDEBUG" + CXXFLAGSO="$CXXFLAGS -fast" + CXXFLAGSPIC="-KPIC" + ;; + + *) + AC_MSG_ERROR(No compiler options for this C++ compiler + specified at present) + ;; + esac + fi +]) + + + +dnl ------------------------------------------------------------- +dnl Depending on what compiler we use, set the flag necessary to +dnl obtain debug output. We will usually use -ggdb, but on DEC Alpha +dnl OSF1, this leads to stabs symbols that are too long for the system +dnl assembler. We will therefore check whether the assembler can handle +dnl these symbols by a rather perverse function with many templates, +dnl and if the assembler can't handle them, then use -gstabs +dnl instead. This reduces debugging possibilities, but no other +dnl way is known at present. +dnl +dnl For all compilers other than gcc, use -g instead and don't check. +dnl +dnl Usage: DEAL_II_SET_CXX_DEBUG_FLAG +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_SET_CXX_DEBUG_FLAG, dnl +[ + 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 +# include + using namespace std; + + typedef map > > T; + + bool f(T& t1, const T* t2) { + t1["s"] = map >(); + map > > + ::const_iterator i2=t1.begin(); + map > > + ::const_iterator i1=t2->begin(); + return (i1==i2); + } + ], + [ + ; + ], + [ + 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 + dnl test above the default, as stabs are not the default debugging + dnl format on many 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 ------------------------------------------------------------- +dnl Determine the F77 compiler in use. Return the name and possibly +dnl version of this compiler in F77_VERSION. +dnl +dnl Usage: DEAL_II_DETERMINE_F77_BRAND +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_DETERMINE_F77_BRAND, dnl +[ + if test "x$F77" != "x" ; then + F77_VERSION_STRING="`($F77 -v 2>&1)`" + if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" ; then + dnl Yes, this is a GNU g77 version. find out the right version + G77_VERSION_STRING="`($F77 -v 2>&1) | grep \"gcc version\"`" + case "$G77_VERSION_STRING" in + *"egcs-1.1"*) + AC_MSG_RESULT(F77 compiler is egcs-1.1) + F77_VERSION=egcs1.1 + ;; + *2.95*) + AC_MSG_RESULT(F77 compiler is gcc-2.95) + F77_VERSION=gcc2.95 + ;; + *2.96*) + AC_MSG_RESULT(F77 compiler is gcc-2.96) + F77_VERSION=gcc2.96 + ;; + *2.97*) + AC_MSG_RESULT(F77 compiler is gcc-2.97) + F77_VERSION=gcc2.97 + ;; + *3.0*) + AC_MSG_RESULT(F77 compiler is gcc-3.0) + F77_VERSION=gcc3.0 + ;; + *3.1*) + AC_MSG_RESULT(F77 compiler is gcc-3.1) + F77_VERSION=gcc3.1 + ;; + *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) + dnl These compilers are too old to support a useful subset + dnl of modern C++, so we don't support them + AC_MSG_RESULT(F77 compiler is $G77_VERSION_STRING) + AC_MSG_ERROR(F77 compiler is not supported) + ;; + *) + AC_MSG_RESULT(F77 compiler is unknown but accepted gcc version) + F77_VERSION=gcc-other + ;; + esac + + else + + dnl No GNU g77 version, something else. Try to find out what it is: + if test -n "`echo $F77_VERSION_STRING | grep \"XL Fortran for AIX\"`" ; then + + dnl This is the "XL Fortran for AIX" compiler + F77_VERSION=AIXF77 + AC_MSG_RESULT(F77 compiler is AIX Fortran77) + + else + + dnl Umh, still something else unknown. Try to find it out by a + dnl different method (-V instead of -v): + F77_VERSION_STRING=`($F77 -V 2>&1)` + if test -n "`echo $F77_VERSION_STRING | grep \"WorkShop Compilers\"`" ; then + + dnl OK, this is the Sun Fortran77 compiler + AC_MSG_RESULT(F77 compiler is Sun WorkShop f77) + F77_VERSION="SunF77" + + else + + dnl If we can detect IRIX's f77 somehow, then the following flags + dnl might be appropriate: + F77_VERSION_STRING=`($F77 -version 2>&1)` + if test -n "`echo $F77_VERSION_STRING | grep MIPSpro`" ; then + AC_MSG_RESULT(F77 compiler is MIPSpro f77) + F77_VERSION="MIPSproF77" + + else + + dnl Now, this is a hard case, we have no more clues... + F77_VERSION= + AC_MSG_RESULT(F77 compiler is unkown. no flags set!) + fi + fi + fi + fi + fi +]) + + + +dnl ------------------------------------------------------------- +dnl Set F77 compiler flags to their default values. +dnl +dnl F77FLAGSO : flags for optimized mode +dnl F77FLAGSG : flags for debug mode +dnl F77LIBS : libraries to link with when using F77 +dnl F77FLAGSPIC: since we don't presently use libtool to link F77 libs, +dnl this is the flag to use for f77 compilers when using +dnl shared libraries +dnl +dnl Usage: DEAL_II_SET_F77_FLAGS +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_SET_F77_FLAGS, dnl +[ + case "$F77_VERSION" in + egcs-1.1 | gcc2.95 | gcc2.96 | gcc2.97 | gcc3.0 | gcc3.1) + F77FLAGSG="$FFLAGS -ggdb -DDEBUG -pedantic -W -Wall" + F77FLAGSO="$FFLAGS -O2" + + dnl Some flags can only be set for some compilers as others either + dnl did not accept them or were buggy on them (see the explanation + dnl for CXXFLAGS for an explanation of some of these cases) + if test "x$F77_VERSION" != "xegcs1.1" ; then + F77FLAGSO="$F77FLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" + fi + + F77FLAGSPIC="-fPIC" + F77LIBS="$F77LIBS -lg2c" + + ;; + + AIXF77) + F77FLAGSG="$FFLAGS -g" + F77FLAGSO="$FFLAGS -O3 -w" + F77LIBS="$F77LIBS -lxlf90" + + F77FLAGSPIC="unknown!" + ;; + + SunF77) + F77FLAGSG="$FFLAGS -silent -g" + F77FLAGSO="$FFLAGS -silent -O3 -w" + F77LIBS="$F77LIBS -lF77 -lsunmath -lM77" + F77FLAGSPIC="-PIC" + ;; + + MIPSproF77) + F77FLAGSG="$FFLAGS -ansi -g" + F77FLAGSO="$FFLAGS -O3 -woffall" + F77LIBS="$F77LIBS -lftn" + + F77FLAGSPIC="shared -KPIC" + ;; + + *) + AC_MSG_ERROR(No compiler options for F77 compiler + "$F77_VERSION" specified at present) + ;; + esac +]) + + +dnl ------------------------------------------------------------- dnl In some cases, -threads (or whatever else command line option) dnl switches on some preprocessor flags. If this is not the case, dnl then define them explicitely. dnl dnl Usage: DEAL_II_THREAD_CPPFLAGS dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_THREAD_CPPFLAGS, dnl [ AC_MSG_CHECKING(for platform specific multi-threading defines) AC_LANG(C++) AC_TRY_COMPILE( [ -#if !defined (_REENTRANT) && !defined (_THREAD_SAFE) -#error Neither _REENTRANT nor _THREAD_SAFE were defined. -nonsense -#endif +# if !defined (_REENTRANT) && !defined (_THREAD_SAFE) +# error Neither _REENTRANT nor _THREAD_SAFE were defined. + nonsense +# endif ], [ ; @@ -49,6 +585,7 @@ nonsense +dnl ------------------------------------------------------------- dnl Versions of gcc on different platforms use a multitude of flags to dnl denote thread safe libraries and the like. They are, for example dnl -threads/-pthread/-mthread, sometimes *thread, sometimes *threads. @@ -56,6 +593,7 @@ dnl Find out which is the right one on the present platform dnl dnl Usage: DEAL_II_FIND_THREAD_FLAGS dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_GET_THREAD_FLAGS, dnl [ AC_MSG_CHECKING(for platform specific thread flags) @@ -82,6 +620,195 @@ AC_DEFUN(DEAL_II_GET_THREAD_FLAGS, dnl +dnl ------------------------------------------------------------- +dnl Test whether multithreading support is requested. This +dnl does not tell deal.II to actually use it, but the +dnl compiler flags can be set to allow for it. If the user specified +dnl --enable-multithreading, then set $enablemultithreading=yes, +dnl otherwise $enablemultithreading=no. +dnl +dnl Usage: +dnl DEAL_II_CHECK_MULTITHREADING +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_MULTITHREADING, dnl +[ + AC_ARG_ENABLE(multithreading, + [ --enable-multithreading Set compiler flags to allow for + multithreaded programs], + enablemultithreading=$enableval, + enablemultithreading=no) +]) + + + +dnl ------------------------------------------------------------- +dnl If multithreading support is requested, figure out the right +dnl compiler flags to use: +dnl - Use the right -threads/-pthread/-mthread option +dnl - Set preprocessor directives if necessary +dnl - __USE_MALLOC tells gcc to use thread safe STL allocators +dnl - _REENTRANT is a flag that is used in the standard UNIX +dnl headers to make reentrant functions (with suffix _r) declared +dnl +dnl Do not use AC_DEFINE when using these two flags, since that would +dnl put them into config.h, instead of the compiler flags. Then, however, +dnl it would be necessary to include config.h as _first_ file in all +dnl files, since the flags change the things we include. It is therefore +dnl better to put the flags into the command line, since then we have them +dnl defined for all include files. +dnl +dnl Usage: +dnl DEAL_II_SET_MULTITHREADING_FLAGS +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_SET_MULTITHREADING_FLAGS, dnl +[ + if test "$enablemultithreading" = yes ; then + if test "$GXX" = yes ; then + DEAL_II_GET_THREAD_FLAGS + DEAL_II_THREAD_CPPFLAGS + + CXXFLAGSG="$CXXFLAGSG -D__USE_MALLOC -D_REENTRANT" + CXXFLAGSO="$CXXFLAGSO -D__USE_MALLOC -D_REENTRANT" + else + if test "x$GXX_VERSION" = "xibm_xlc" ; then + CXXFLAGSG = "$CXXFLAGSG -threaded" + CXXFLAGSO = "$CXXFLAGSO -threaded" + else + dnl Other compiler + AC_MSG_ERROR(No threading compiler options for this C++ compiler + specified at present) + exit 1 + fi + fi + fi +]) + + + +dnl ------------------------------------------------------------- +dnl Test whether MT code shall be used through ACE. If so, set +dnl $withmultithreading to the path to ACE +dnl +dnl Usage: +dnl DEAL_II_CHECK_USE_ACE +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_USE_ACE, dnl +[ + AC_ARG_WITH(multithreading, + [ --with-multithreading=DIR use DIR as path to the ACE library], + withmultithreading=$withval, + withmultithreading=no) + if test "$withmultithreading" != no ; then + AC_MSG_CHECKING(for ACE) + if test -d "$withmultithreading" ; then + AC_MSG_RESULT(found) + else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Invalid ACE path) + fi + + AC_DEFINE(DEAL_II_USE_MT, 1, + [Flag indicating whether the library shall be compiler for + multithreaded applications]) + fi +]) + + + +dnl ------------------------------------------------------------- +dnl If the MT code shall be used through ACE, we might have to +dnl adjust the compiler flags: Possibly remove -ansi -pedantic from +dnl compiler flags again, since ACE yields hundreds of error messages +dnl with these flags. +dnl +dnl Usage: +dnl DEAL_II_SET_ACE_FLAGS +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_SET_ACE_FLAGS, dnl +[ + if test "$enablemultithreading" = yes ; then + if test "$GXX" = yes ; then + DEAL_II_CHECK_ACE_FORBIDDEN_FLAGS + if test "x$deal_II_ace_remove_ansi" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-ansi//g;'`" + CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-ansi//g;'`" + fi + if test "x$deal_II_ace_remove_pedantic" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-pedantic//g;'`" + CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-pedantic//g;'`" + fi + fi + fi +]) + + + + +dnl ------------------------------------------------------------- +dnl Check whether some backward compatibility features are disabled +dnl Usage: +dnl DEAL_II_CHECK_COMPAT_BLOCKER +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_COMPAT_BLOCKER, dnl +[ + AC_ARG_ENABLE(compat-blocker, + [ --enable-compat-blocker=mapping Block functions that implicitely + assume a Q1 mapping], + enable_compat_blocker=$enableval, + enable_compat_blocker="") + + dnl Replace the comma-separated list by a space-separated one + disable_compat=`echo $enable_compat_blocker | perl -pi -e 's/,/ /g;'` + + dnl Check that each entry is an allowed one + for i in $disable_compat ; do + case $i in + mapping) + AC_MSG_RESULT(Disabling backward compatibility feature: "$i") + ;; + *) + AC_MSG_ERROR(Backward compatibility feature "$i" unknown) + ;; + esac + done + + dnl Now for each known feature, either disable it or enable it. + dnl Default is to enable. In order to have these flags in config.h, + dnl it is necessary to AC_DEFINE them actually by name, rather than + dnl by some loop variable, since otherwise autoheader can't generate + dnl an entry for config.h for this variable + for i in mapping ; do + uppercase=`echo $i | perl -pi -e 'tr/a-z/A-Z/;'` + if test -n "`echo $disable_compat | grep $i`" ; then + compat_value=false + else + compat_value=true + fi + + case $i in + mapping) + AC_DEFINE_UNQUOTED(DEAL_II_COMPAT_MAPPING,$compat_value, + [Backward compatibility support for functions + and classes that do not take an explicit + mapping variable, but rather use a default + Q1 mapping instead]) + ;; + + *) + AC_MSG_ERROR(Backward compatibility feature "$i" unknown) + ;; + esac + done +]) + + + +dnl ------------------------------------------------------------- dnl Try whether the set of compiler flags in CXXFLAGS is reasonable, i.e. dnl does not result in compiler messages (which are then produced by dnl unknown or unrecognized compiler flags. This macro is mostly copied @@ -91,6 +818,7 @@ dnl dnl Usage: dnl DEAL_II_TRY_COMPILER_FLAG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_TRY_COMPILER_FLAG, dnl [ echo 'int main() { return 0; }' > conftest.$ac_ext @@ -117,6 +845,7 @@ AC_DEFUN(DEAL_II_TRY_COMPILER_FLAG, dnl +dnl ------------------------------------------------------------- dnl On SunOS 4.x, the `getrusage' function exists, but is not declared dnl in the respective header file `resource.h', as one would think when dnl reading the man pages. Then we have to declare this function @@ -127,6 +856,7 @@ dnl CXXFLAGS[OG] by `-DNO_HAVE_GETRUSAGE' dnl dnl Usage: DEAL_II_CHECK_GETRUSAGE dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl [ AC_MSG_CHECKING(whether getrusage is properly declared) @@ -140,10 +870,10 @@ AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl getrusage(RUSAGE_SELF,ru); ], [ - AC_MSG_RESULT("yes") + AC_MSG_RESULT(yes) ], [ - AC_MSG_RESULT("no") + AC_MSG_RESULT(no) CXXFLAGSG="$CXXFLAGSG -DNO_HAVE_GETRUSAGE" CXXFLAGSO="$CXXFLAGSO -DNO_HAVE_GETRUSAGE" ]) @@ -153,6 +883,7 @@ AC_DEFUN(DEAL_II_CHECK_GETRUSAGE, dnl +dnl ------------------------------------------------------------- dnl We'd like to use the `isnan' function. On some systems, this is dnl simply declared in (or , for what it's worth), but dnl on Linux for example, it is only declared if we specifically require @@ -163,6 +894,7 @@ dnl checking we have to use the two sets of compiler flags. dnl dnl Usage: DEAL_II_CHECK_ISNAN dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ISNAN, dnl [ DEAL_II_CHECK_ISNAN_FLAG(debug, $CXXFLAGSG, @@ -173,6 +905,8 @@ AC_DEFUN(DEAL_II_CHECK_ISNAN, dnl ) + +dnl ------------------------------------------------------------- dnl The following function actually performs the check for the right flag dnl for `isnan'. If a flag is found, the third argument is executed, and dnl the right flag is available in $deal_II_isnan_flag. @@ -181,6 +915,7 @@ dnl Usage: DEAL_II_CHECK_ISNAN_FLAG("description of options set", dnl "compiler options set", dnl action when flag is found) dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ISNAN_FLAG, dnl [ AC_MSG_CHECKING(whether isnan is declared with $1 flags) @@ -196,15 +931,15 @@ AC_DEFUN(DEAL_II_CHECK_ISNAN_FLAG, dnl isnan (d); ], [ - AC_MSG_RESULT("yes") + AC_MSG_RESULT(yes) deal_II_isnan_flag="-DHAVE_ISNAN" $3 ]) if test "x$deal_II_isnan_flag" = "x" ; then - dnl Simply using isnan doesn't work. On Microsoft Windows systems, the function - dnl is called _isnan, so check that + dnl Simply using isnan doesn't work. On Microsoft Windows systems, the + dnl function is called _isnan, so check that AC_TRY_COMPILE( [ #include @@ -214,7 +949,7 @@ AC_DEFUN(DEAL_II_CHECK_ISNAN_FLAG, dnl _isnan (d); ], [ - AC_MSG_RESULT("yes") + AC_MSG_RESULT(yes) deal_II_isnan_flag="-DHAVE_UNDERSCORE_ISNAN" $3 ]) @@ -277,9 +1012,14 @@ AC_DEFUN(DEAL_II_CHECK_ISNAN_FLAG, dnl +dnl ------------------------------------------------------------- dnl rand_r is defined for some compiler flag combinations, but not for dnl others. check that. note that since these are C++ flags, we can't dnl just use AC_CHECK_FUNCS +dnl +dnl Usage: DEAL_II_CHECK_RAND_R +dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_RAND_R, dnl [ AC_LANG(C++) @@ -306,6 +1046,7 @@ int i=rand_r(&i); +dnl ------------------------------------------------------------- dnl On some systems (well, DEC Alphas are the only ones we know of), dnl gcc2.95 throws the hands in the air if it sees one of the AssertThrow dnl calls, and dies with an internal compiler error. If this is the case, @@ -316,6 +1057,7 @@ dnl Usage: DEAL_II_CHECK_ASSERT_THROW("description of options set", dnl "compiler options set", dnl action if compiler crashes) dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ASSERT_THROW, dnl [ AC_MSG_CHECKING(whether AssertThrow works with $1 flags) @@ -397,16 +1139,17 @@ using namespace StandardExceptions; AssertThrow (false, ExcInternalError()); ], [ - AC_MSG_RESULT("yes") + AC_MSG_RESULT(yes) ], [ - AC_MSG_RESULT("no") + AC_MSG_RESULT(no) $3 ]) ]) +dnl ------------------------------------------------------------- dnl IBM xlC 5.0 from the VisualAge C++ pack has a bug with the following dnl code. We can work around it if we insert code like "using namespace std;" dnl in the right place, but we'd like to do so only if absolutely necessary. @@ -414,6 +1157,7 @@ dnl Check whether the compiler which we are using has this bug. dnl dnl Usage: DEAL_II_CHECK_IBM_XLC_ERROR dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_IBM_XLC_ERROR, dnl [ AC_MSG_CHECKING(for std::vector bug) @@ -446,11 +1190,14 @@ AC_DEFUN(DEAL_II_CHECK_IBM_XLC_ERROR, dnl ]) -dnl gcc2.95 doesn't have the std::iterator class, but the standard requires -dnl it, so check whether we have to work around it + +dnl ------------------------------------------------------------- +dnl gcc2.95 doesn't have the std::iterator class, but the standard +dnl requires it, so check whether we have to work around it dnl dnl Usage: DEAL_II_HAVE_STD_ITERATOR dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_STD_ITERATOR, dnl [ AC_MSG_CHECKING(for std::iterator class) @@ -476,12 +1223,15 @@ AC_DEFUN(DEAL_II_HAVE_STD_ITERATOR, dnl + +dnl ------------------------------------------------------------- dnl Up to early gcc2.95 releases, the i/ostringstream classes were not dnl available. check their availability, or whether we have to fall back dnl to the old strstream classes. dnl dnl Usage: DEAL_II_HAVE_STD_STRINGSTREAM dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_STD_STRINGSTREAM, dnl [ AC_MSG_CHECKING(for std::i/ostringstream classes) @@ -508,12 +1258,15 @@ AC_DEFUN(DEAL_II_HAVE_STD_STRINGSTREAM, dnl -dnl For gcc 2.95, when using the random_shuffle function with -ansi compiler flag, -dnl there is an error saying that lrand48 is undeclared. Fix that by declaring -dnl that function ourselves if necessary. +dnl ------------------------------------------------------------- +dnl For gcc 2.95, when using the random_shuffle function with -ansi +dnl compiler flag, there is an error saying that lrand48 is +dnl undeclared. Fix that by declaring that function ourselves if +dnl necessary. dnl dnl Usage: DEAL_II_HAVE_LRAND48_DECLARED dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_LRAND48_DECLARED, dnl [ AC_MSG_CHECKING(whether lrand48 needs to be declared with -ansi) @@ -543,12 +1296,15 @@ void f() +dnl ------------------------------------------------------------- dnl When compiling with ACE thread support, there are many constructs dnl that are not allowed in C++, or that yield warnings when compiling with dnl -ansi -pedantic. Check this, and if that is the case, set the variables dnl $deal_II_ace_remove_ansi and $deal_II_ace_remove_pedantic to "yes". dnl dnl Usage: DEAL_II_CHECK_ACE_FORBIDDEN_FLAGS +dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ACE_FORBIDDEN_FLAGS, dnl [ AC_MSG_CHECKING(whether compilation with ACE disallows flags) @@ -597,6 +1353,7 @@ AC_DEFUN(DEAL_II_CHECK_ACE_FORBIDDEN_FLAGS, dnl +dnl ------------------------------------------------------------- dnl gcc versions up to 2.95.3 had a problem with the std::advance function, dnl when the number of steps forward was given by an unsigned number, since dnl a comparison >=0 was performed on this number which leads to a warning @@ -608,6 +1365,7 @@ dnl dnl This test is only called if gcc is used. dnl dnl Usage: DEAL_II_CHECK_ADVANCE_WARNING +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CHECK_ADVANCE_WARNING, dnl [ AC_LANG(C++) @@ -637,10 +1395,12 @@ AC_DEFUN(DEAL_II_CHECK_ADVANCE_WARNING, dnl +dnl ------------------------------------------------------------- dnl Check whether the numeric_limits classes are available dnl dnl Usage: DEAL_II_HAVE_STD_NUMERIC_LIMITS dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_STD_NUMERIC_LIMITS, dnl [ AC_MSG_CHECKING(for std::numeric_limits classes) @@ -666,10 +1426,12 @@ AC_DEFUN(DEAL_II_HAVE_STD_NUMERIC_LIMITS, dnl +dnl ------------------------------------------------------------- dnl Check whether the numeric_limits classes are available dnl dnl Usage: DEAL_II_HAVE_STD_OSTREAM_HEADER dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_STD_OSTREAM_HEADER, dnl [ AC_MSG_CHECKING(for header) @@ -694,10 +1456,12 @@ void f (const std::ostream &out); +dnl ------------------------------------------------------------- dnl Check whether the numeric_limits classes are available dnl dnl Usage: DEAL_II_HAVE_STD_OSTREAM_HEADER dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_HAVE_STD_IOSFWD_HEADER, dnl [ AC_MSG_CHECKING(for header) @@ -721,7 +1485,45 @@ void f (const std::ostream &out); ]) +dnl ------------------------------------------------------------ +dnl Check whether some of the HSL functions have been dropped +dnl into their respective place in the contrib subdir. +dnl Check for the following functions to be there: +dnl MA27: needs files ma27.f +dnl MA47: needs files ma47.f ma47.dep +dnl +dnl Usage: DEAL_II_CONFIGURE_HSL +dnl +dnl ------------------------------------------------------------ +AC_DEFUN(DEAL_II_CONFIGURE_HSL, dnl +[ + AC_MSG_CHECKING(for HSL subroutines) + hsl_subroutines="" + if test -r contrib/hsl/source/ma27.f ; then + hsl_subroutines="$hsl_subroutines MA27" + AC_DEFINE(HAVE_HSL_MA27, 1, + [Availability of the MA27 algorithm from HSL]) + fi + + if (test -r contrib/hsl/source/ma47.f && \ + test -r contrib/hsl/source/ma47dep.f) ; then + hsl_subroutines="$hsl_subroutines MA47" + AC_DEFINE(HAVE_HSL_MA47, 1, + [Availability of the MA47 algorithm from HSL]) + fi + + if test "x$hsl_subroutines" != "x" ; then + AC_MSG_RESULT($hsl_subroutines) + USE_CONTRIB_HSL=yes + else + AC_MSG_RESULT(none found) + USE_CONTRIB_HSL=no + fi +]) + + +dnl ------------------------------------------------------------- dnl Check for the Tecplot API. If it is found we will be able to write dnl Tecplot binary files directly. dnl @@ -731,6 +1533,7 @@ dnl easily be TEC80HOME, TEC90HOME, etc... So, better check them all dnl dnl Usage: DEAL_II_CONFIGURE_TECPLOT dnl +dnl ------------------------------------------------------------- AC_DEFUN(DEAL_II_CONFIGURE_TECPLOT, dnl [ AC_CHECK_FILE($TECHOME/lib/tecio.a, @@ -739,14 +1542,12 @@ AC_DEFUN(DEAL_II_CONFIGURE_TECPLOT, dnl TECPLOT_LIBRARY_PATH=$TEC80HOME/lib/tecio.a) AC_CHECK_FILE($TEC90HOME/lib/tecio.a, TECPLOT_LIBRARY_PATH=$TEC90HOME/lib/tecio.a) - AC_SUBST(TECPLOT_LIBRARY_PATH) AC_CHECK_FILE($TECHOME/include/TECIO.h, TECPLOT_INCLUDE_PATH=$TECHOME/include) AC_CHECK_FILE($TEC80HOME/include/TECIO.h, TECPLOT_INCLUDE_PATH=$TEC80HOME/include) AC_CHECK_FILE($TEC90HOME/include/TECIO.h, TECPLOT_INCLUDE_PATH=$TEC90HOME/include) - AC_SUBST(TECPLOT_INCLUDE_PATH) if (test -r $TECPLOT_LIBRARY_PATH && \ test -r $TECPLOT_INCLUDE_PATH/TECIO.h) ; then @@ -755,3 +1556,154 @@ AC_DEFUN(DEAL_II_CONFIGURE_TECPLOT, dnl fi ]) + + +dnl ------------------------------------------------------------- +dnl Check whether CXXFLAGSG and CXXFLAGSO are a valid combination +dnl of flags or if there are contradicting flags in them. +dnl +dnl Usage: DEAL_II_CHECK_CXXFLAGS_CONSISTENCY +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_CXXFLAGS_CONSISTENCY, dnl +[ + AC_LANG(C++) + CXXFLAGS="$CXXFLAGSG" + AC_MSG_CHECKING(for consistency of CXXFLAGSG flags) + AC_TRY_COMPILE( + [], + [;], + [ + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_ERROR(invalid combination of flags!) + exit 1; + ]) + + CXXFLAGS="$CXXFLAGSO" + AC_MSG_CHECKING(for consistency of CXXFLAGSO flags) + AC_TRY_COMPILE( + [], + [;], + [ + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_ERROR(invalid combination of flags!) + exit 1; + ]) +]) + + + +dnl ------------------------------------------------------------- +dnl Check whether F77FLAGS are a valid combination of flags or if +dnl there are contradicting flags in them. +dnl +dnl Usage: DEAL_II_CHECK_F77FLAGS_CONSISTENCY +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_F77FLAGS_CONSISTENCY, dnl +[ +dnl Err, well -- we'd like to have checked these flags, but autoconf 2.13 +dnl has a problem here: when writing the compile file, a newline is +dnl missing, leading to an error when executing ./configure. So: +dnl while this is not fixed in autoconf, disable the respective tests +dnl +dnl Postface: with autoconf 2.50, AC_LANG_PROGRAM(Fortran 77) is called +dnl internally, but this unfortunately results in a warning from +dnl autoconf. So still do not enable the code +dnl AC_LANG(Fortran 77) +dnl FFLAGS="$F77FLAGSG" +dnl AC_MSG_CHECKING(for consistency of F77FLAGSG flags) +dnl AC_TRY_COMPILE( +dnl [], +dnl [], +dnl [ +dnl AC_MSG_RESULT(yes) +dnl ], +dnl [ +dnl AC_MSG_ERROR(invalid combination of flags!) +dnl exit 1; +dnl ]) +dnl +dnl FFLAGS="$F77FLAGSO" +dnl AC_MSG_CHECKING(for consistency of F77FLAGSO flags) +dnl AC_TRY_COMPILE( +dnl [], +dnl [], +dnl [ +dnl AC_MSG_RESULT(yes) +dnl ], +dnl [ +dnl AC_MSG_ERROR(invalid combination of flags!) +dnl exit 1; +dnl ]) +]) + + + + +dnl ------------------------------------------------------------- +dnl Check for KDOC. +dnl +dnl Usage: DEAL_II_CHECK_KDOC +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_KDOC, dnl +[ + dnl Find the kdoc directory for documentation. kdoc2 is in + dnl the contrib directory, but you might want another one + AC_ARG_WITH(kdoc, + [ --with-kdoc=DIR use kdoc installed in DIR], + kdocdir=$withval, + kdocdir=${DEAL2_DIR}/contrib/kdoc/bin) + AC_MSG_CHECKING(for kdoc) + + dnl lets see whether the file exists if not the default was taken + if test "$kdocdir" != ${DEAL2_DIR}/contrib/kdoc/bin ; then + if test -r $kdocdir/kdoc ; then + AC_MSG_RESULT(found) + else + AC_MSG_RESULT(not found) + AC_MSG_ERROR(Invalid kdoc path $kdocdir/kdoc) + fi + + if test -r "$kdocdir/Version" ; then + kdocversion=`cat $kdocdir/Version` ; + else + kdocversion=1; + fi + else + kdocversion=`cat ${DEAL2_DIR}/contrib/kdoc/src/Version` + AC_MSG_RESULT(using default version $kdocversion) + fi +]) + + + +dnl ------------------------------------------------------------- +dnl Check for Doc++. +dnl +dnl Usage: DEAL_II_CHECK_DOCXX +dnl +dnl ------------------------------------------------------------- +AC_DEFUN(DEAL_II_CHECK_DOCXX, dnl +[ + AC_ARG_WITH(docxx, + [ --with-docxx=PATH use the doc++ executable pointed to by PATH], + docxx=$withval, + docxx=to-be-determined) + if test "$docxx" = to-be-determined ; then + AC_PATH_PROG(docxx,"doc++") + else + AC_MSG_CHECKING(for doc++) + if test -x "$docxx" ; then + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + docxx= + fi + fi +]) diff --git a/deal.II/common/Make.global_options.in b/deal.II/common/Make.global_options.in index 1878cd5c49..eb682eb4e4 100644 --- a/deal.II/common/Make.global_options.in +++ b/deal.II/common/Make.global_options.in @@ -111,6 +111,15 @@ CXXFLAGS.o = @DEFS@ @CXXFLAGSO@ $(INCLUDE) F77FLAGS.g = @DEFS@ @F77FLAGSG@ $(INCLUDE) F77FLAGS.o = @DEFS@ @F77FLAGSO@ $(INCLUDE) +ifeq ($(enable-shared),yes) + CXXFLAGS.g += @CXXFLAGSPIC@ + CXXFLAGS.o += @CXXFLAGSPIC@ + + F77FLAGS.g += @F77FLAGSPIC@ + F77FLAGS.o += @F77FLAGSPIC@ + + LDFLAGS += @LDFLAGSPIC@ +endif # if multithread support in the library is requested, then set the diff --git a/deal.II/configure b/deal.II/configure index 6920c88e30..994dcc44ff 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,113 +1,121 @@ #! /bin/sh +# From configure.in Revision: 1.94 . +# Guess values for system-dependent variables and create Makefiles. +# Generated by Autoconf 2.52. +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. -# From configure.in Revision: 1.92 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file +as_executable_p="test -f" +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= +# Initializations. +# ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --enable-shared Set compiler flags to generate shared libraries" -ac_help="$ac_help - --enable-multithreading Set compiler flags to allow for multithreaded programs" -ac_help="$ac_help - --with-multithreading=DIR use DIR as path to the ACE library" -ac_help="$ac_help - --enable-compat-blocker=mapping Block functions that implicitely assume a Q1 mapping" -ac_help="$ac_help - --enable-multigrid Include multigrid code in library" -ac_help="$ac_help - --with-kdoc=DIR use kdoc installed in DIR" -ac_help="$ac_help - --with-docxx=PATH use the doc++ executable pointed to by PATH" +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +ac_unique_file="base" +ac_subdirs_all="$ac_subdirs_all contrib tests" # Initialize some variables set by options. +ac_init_help= +ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. -build=NONE -cache_file=./config.cache +cache_file=/dev/null exec_prefix=NONE -host=NONE no_create= -nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE @@ -116,10 +124,15 @@ program_transform_name=s,x,x, silent= site= srcdir= -target=NONE verbose= x_includes=NONE x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' @@ -133,17 +146,16 @@ oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= ac_prev= for ac_option do - # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" @@ -151,59 +163,59 @@ do continue fi - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. - case "$ac_option" in + case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; + bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) - ac_prev=build ;; + ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; + build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) - datadir="$ac_optarg" ;; + datadir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "enable_${ac_feature}='$ac_optarg'" ;; + eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -212,95 +224,47 @@ do -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; + exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; -host | --host | --hos | --ho) - ac_prev=host ;; + ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; + host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; + includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; + infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; + libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; + libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ @@ -309,12 +273,12 @@ EOF -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; + localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; + mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. @@ -335,26 +299,26 @@ EOF -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; + oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; + prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; + program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; + program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ @@ -371,7 +335,7 @@ EOF | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; + program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) @@ -381,7 +345,7 @@ EOF ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; + sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ @@ -392,58 +356,57 @@ EOF | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; + sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; + site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; + srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; + sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; + ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; + target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "with_${ac_package}='$ac_optarg'" ;; + eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. @@ -454,98 +417,98 @@ EOF ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; + x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; + x_libraries=$ac_optarg ;; - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } fi -exec 5>./config.log -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=base +test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then @@ -556,13 +519,322 @@ else fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources in $srcdir" >&2 + { (exit 1); exit 1; }; } fi fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CC_set=${CC+set} +ac_env_CC_value=$CC +ac_cv_env_CC_set=${CC+set} +ac_cv_env_CC_value=$CC +ac_env_CFLAGS_set=${CFLAGS+set} +ac_env_CFLAGS_value=$CFLAGS +ac_cv_env_CFLAGS_set=${CFLAGS+set} +ac_cv_env_CFLAGS_value=$CFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS +ac_env_CXX_set=${CXX+set} +ac_env_CXX_value=$CXX +ac_cv_env_CXX_set=${CXX+set} +ac_cv_env_CXX_value=$CXX +ac_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_env_CXXFLAGS_value=$CXXFLAGS +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_cv_env_CXXFLAGS_value=$CXXFLAGS + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat < if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CXX C++ compiler command + CXXFLAGS C++ compiler flags + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +EOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue + cd $ac_subdir + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` + + case $srcdir in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure.gnu; then + echo + $SHELL $ac_sub_srcdir/configure.gnu --help=recursive + elif test -f $ac_sub_srcdir/configure; then + echo + $SHELL $ac_sub_srcdir/configure --help=recursive + elif test -f $ac_sub_srcdir/configure.ac || + test -f $ac_sub_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi +exec 5>config.log +cat >&5 </dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >&5 + +cat >&5 <\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h +# Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then @@ -573,56 +845,95 @@ if test -z "$CONFIG_SITE"; then fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" + { echo "$as_me:848: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 . "$ac_site_file" fi done +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:866: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:870: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:876: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:878: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:880: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. It doesn't matter if + # we pass some twice (in addition to the command line arguments). + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" + ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:899: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:901: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:921: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:924: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' else - ac_n= ac_c='\c' ac_t= + ac_path_separator=: fi +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh - - - -DEAL2_DIR=`pwd` - - -DEAL_II_MAJOR=`cat Version | perl -pi -e 's/^(\d+)\..*/$1/;'` -DEAL_II_MINOR=`cat Version | perl -pi -e 's/^\d+\.(\d+).*/$1/;'` -cat >> confdefs.h <> confdefs.h <&6 - - - +ac_config_headers="$ac_config_headers base/include/base/config.h" ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do +for ac_dir in contrib/config $srcdir/contrib/config; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -631,325 +942,701 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break fi done if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } + { { echo "$as_me:952: error: cannot find install-sh or install.sh in contrib/config $srcdir/contrib/config" >&5 +echo "$as_me: error: cannot find install-sh or install.sh in contrib/config $srcdir/contrib/config" >&2;} + { (exit 1); exit 1; }; } fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. +DEAL2_DIR=`pwd` -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. +DEAL_II_VERSION="`cat Version`" +DEAL_II_MAJOR=`cat Version | perl -pi -e 's/^(\d+)\..*/$1/;'` +DEAL_II_MINOR=`cat Version | perl -pi -e 's/^\d+\.(\d+).*/$1/;'` -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac +cat >>confdefs.h <>confdefs.h <&5 +echo "${ECHO_T}Configuring deal.II version $DEAL_II_VERSION" >&6 # Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:672: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:979: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:983: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:992: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:996: error: $ac_config_sub $ac_cv_build_alias failed." >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} + { (exit 1); exit 1; }; } -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:693: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac +fi +echo "$as_me:1001: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +echo "$as_me:1008: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:1017: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:711: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac +fi +echo "$as_me:1022: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + +echo "$as_me:1029: checking target system type" >&5 +echo $ECHO_N "checking target system type... $ECHO_C" >&6 +if test "${ac_cv_target+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_target_alias=$target_alias +test "x$ac_cv_target_alias" = "x" && + ac_cv_target_alias=$ac_cv_host_alias +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || + { { echo "$as_me:1038: error: $ac_config_sub $ac_cv_target_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} + { (exit 1); exit 1; }; } -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 +fi +echo "$as_me:1043: result: $ac_cv_target" >&5 +echo "${ECHO_T}$ac_cv_target" >&6 +target=$ac_cv_target +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -test "$host_alias" != "$target_alias" && +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- - -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +echo "$as_me:1063: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:1065: result: ---------------- configuring C/C++ compilers ----------------" >&5 +echo "${ECHO_T}---------------- configuring C/C++ compilers ----------------" >&6 +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +echo "$as_me:1076: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}gcc" +echo "$as_me:1091: found $ac_dir/$ac_word" >&5 +break +done +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1099: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1102: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo "$as_me:1111: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="gcc" +echo "$as_me:1126: found $ac_dir/$ac_word" >&5 +break +done +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1134: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1137: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi -# 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:749: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +echo "$as_me:1150: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}cc" +echo "$as_me:1165: found $ac_dir/$ac_word" >&5 +break +done + fi fi -CC="$ac_cv_prog_CC" +CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1173: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1176: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:1185: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="cc" +echo "$as_me:1200: found $ac_dir/$ac_word" >&5 +break +done +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1208: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1211: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +fi if test -z "$CC"; then # 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:779: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:1224: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue +fi +ac_cv_prog_CC="cc" +echo "$as_me:1244: found $ac_dir/$ac_word" >&5 +break +done + if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift - if test $# -gt 0; then + if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - set dummy "$ac_dir/$ac_word" "$@" + set dummy "$ac_dir/$ac_word" ${1+"$@"} shift ac_cv_prog_CC="$@" fi fi fi fi -CC="$ac_cv_prog_CC" +CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1266: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1269: result: no" >&5 +echo "${ECHO_T}no" >&6 fi - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # 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:830: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:1280: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +echo "$as_me:1295: found $ac_dir/$ac_word" >&5 +break +done + fi fi -CC="$ac_cv_prog_CC" +CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1303: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1306: result: no" >&5 +echo "${ECHO_T}no" >&6 fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } + + test -n "$CC" && break + done fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:1319: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="$ac_prog" +echo "$as_me:1334: found $ac_dir/$ac_word" >&5 +break +done -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1342: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1345: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross + test -n "$ac_ct_CC" && break +done -cat > conftest.$ac_ext << EOF + CC=$ac_ct_CC +fi -#line 873 "configure" +fi + +test -z "$CC" && { { echo "$as_me:1357: error: no acceptable cc found in \$PATH" >&5 +echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + +# Provide some information about the compiler. +echo "$as_me:1362:" \ + "checking for C compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:1365: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:1368: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:1370: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:1373: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:1375: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:1378: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +#line 1382 "configure" #include "confdefs.h" -main(){return(0);} -EOF -if { (eval echo configure:878: \"$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 - ac_cv_prog_cc_cross=no +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +echo "$as_me:1398: checking for C compiler default output" >&5 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:1401: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:1404: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Find the output, starting from the most likely. This scheme is +# not robust to junk in `.', hence go to wildcards (a.*) only as a last +# resort. +for ac_file in `ls a.exe conftest.exe 2>/dev/null; + ls a.out conftest 2>/dev/null; + ls a.* conftest.* 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + a.out ) # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool --akim. + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1427: error: C compiler cannot create executables" >&5 +echo "$as_me: error: C compiler cannot create executables" >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:1433: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1438: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:1444: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1447: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no else - ac_cv_prog_cc_cross=yes + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:1454: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&2;} + { (exit 1); exit 1; }; } + fi fi +fi +echo "$as_me:1462: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1469: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:1471: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:1474: checking for executable suffix" >&5 +echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 +if { (eval echo "$as_me:1476: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:1479: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no + { { echo "$as_me:1495: error: cannot compute EXEEXT: cannot compile and link" >&5 +echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} + { (exit 1); exit 1; }; } fi -rm -fr conftest* -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 - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; 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:904: 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:909: 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 - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes + +rm -f conftest$ac_cv_exeext +echo "$as_me:1501: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +echo "$as_me:1507: checking for object suffix" >&5 +echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1513 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:1525: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1528: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done else - ac_cv_prog_gcc=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1540: error: cannot compute OBJEXT: cannot compile" >&5 +echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} + { (exit 1); exit 1; }; } fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext fi +echo "$as_me:1547: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:1551: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1557 "configure" +#include "confdefs.h" -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 +int +main () +{ +#ifndef __GNUC__ + choke me +#endif -if test $ac_cv_prog_gcc = yes; then - GCC=yes + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1572: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1575: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1578: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1581: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes else - GCC= + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_compiler_gnu=no fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:937: 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 +fi +echo "$as_me:1593: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +CFLAGS="-g" +echo "$as_me:1599: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + cat >conftest.$ac_ext <<_ACEOF +#line 1605 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1617: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1620: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1623: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1626: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else - ac_cv_prog_cc_g=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_prog_cc_g=no fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +echo "$as_me:1636: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" + CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" @@ -963,175 +1650,350 @@ else CFLAGS= fi fi +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1663: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1666: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1669: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1672: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +#line 1684 "configure" +#include "confdefs.h" +#include +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1697: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1700: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1703: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1706: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +continue +fi +rm -f conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +#line 1716 "configure" +#include "confdefs.h" +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1731: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1734: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1737: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # 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:971: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:1766: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$CC" in - /*) + case $CC in + [\\/]* | ?:[\\/]*) ac_cv_path_CC="$CC" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_CC="$CC" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_CC="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_CC="$ac_dir/$ac_word" + echo "$as_me:1783: found $ac_dir/$ac_word" >&5 + break +fi +done + ;; esac fi -CC="$ac_cv_path_CC" +CC=$ac_cv_path_CC + if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + echo "$as_me:1794: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1797: result: no" >&5 +echo "${ECHO_T}no" >&6 fi - - - OLDCXXFLAGS="$CXXFLAGS" -for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl -do -# 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: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 +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:1812: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" +echo "$as_me:1827: found $ac_dir/$ac_word" >&5 +break +done + fi fi -CXX="$ac_cv_prog_CXX" +CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 + echo "$as_me:1835: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:1838: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -test -n "$CXX" && break + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:1851: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CXX="$ac_prog" +echo "$as_me:1866: found $ac_dir/$ac_word" >&5 +break done -test -n "$CXX" || CXX="gcc" - -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1044: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:1874: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 +else + echo "$as_me:1877: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi -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 + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" -cat > conftest.$ac_ext << EOF + CXX=$ac_ct_CXX +fi -#line 1055 "configure" +# Provide some information about the compiler. +echo "$as_me:1889:" \ + "checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:1892: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:1895: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:1897: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:1900: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:1902: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:1905: \$? = $ac_status" >&5 + (exit $ac_status); } + +echo "$as_me:1908: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1914 "configure" #include "confdefs.h" -int main(){return(0);} -EOF -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 - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cxx_works=no -fi -rm -fr conftest* -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 - -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 -if test $ac_cv_prog_cxx_works = no; 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: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: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 - cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gxx" 1>&6 -if test $ac_cv_prog_gxx = yes; then - GXX=yes + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1929: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1932: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1935: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1938: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes else - GXX= + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_compiler_gnu=no fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -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 +fi +echo "$as_me:1950: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:1956: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then + cat >conftest.$ac_ext <<_ACEOF +#line 1962 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1977: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1980: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1983: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else - ac_cv_prog_cxx_g=no + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_prog_cxx_g=no fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext fi - -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 +echo "$as_me:1993: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" + CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" @@ -1145,7 +2007,6 @@ else CXXFLAGS= fi fi - for ac_declaration in \ ''\ '#include ' \ @@ -1155,555 +2016,574 @@ for ac_declaration in \ 'extern "C" void exit (int);' \ 'void exit (int);' do - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2020 "configure" #include "confdefs.h" #include $ac_declaration -int main() { +int +main () +{ exit (42); -; return 0; } -EOF -if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2036: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2039: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2042: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then : else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - continue + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +continue fi -rm -f conftest* - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2052 "configure" #include "confdefs.h" $ac_declaration -int main() { +int +main () +{ exit (42); -; return 0; } -EOF -if { (eval echo configure:1185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2064: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2067: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2070: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2073: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then break else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext done +rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$OLDCXXFLAGS" # 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:1205: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +echo "$as_me:2098: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$CXX" in - /*) + case $CXX in + [\\/]* | ?:[\\/]*) ac_cv_path_CXX="$CXX" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_CXX="$CXX" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_CXX="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_CXX="$ac_dir/$ac_word" + echo "$as_me:2115: found $ac_dir/$ac_word" >&5 + break +fi +done + ;; esac fi -CXX="$ac_cv_path_CXX" +CXX=$ac_cv_path_CXX + if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 + echo "$as_me:2126: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 else - echo "$ac_t""no" 1>&6 + echo "$as_me:2129: result: no" >&5 +echo "${ECHO_T}no" >&6 fi - - -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 - *"egcs-1.1"*) - echo "$ac_t""compiler is egcs-1.1" 1>&6 - GXX_VERSION=egcs1.1 - ;; - *2.95*) - echo "$ac_t""compiler is gcc-2.95" 1>&6 - GXX_VERSION=gcc2.95 - ;; - *2.96*) - echo "$ac_t""compiler is gcc-2.96" 1>&6 - GXX_VERSION=gcc2.96 - ;; - *2.97*) - echo "$ac_t""compiler is gcc-2.97" 1>&6 - GXX_VERSION=gcc2.97 - ;; - *3.0*) - echo "$ac_t""compiler is gcc-3.0" 1>&6 - GXX_VERSION=gcc3.0 - ;; - *3.1*) - echo "$ac_t""compiler is gcc-3.1" 1>&6 - GXX_VERSION=gcc3.1 - ;; - *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) - echo "$ac_t""compiler is $GXX_VERSION_STRING" 1>&6 - { echo "configure: error: compiler is not supported" 1>&2; exit 1; } - ;; - *) - echo "$ac_t""compiler is unknown but accepted gcc version" 1>&6 - GXX_VERSION=gcc-other - ;; - esac -else - is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" - if test "x$is_ibm_xlc" != "x" ; then - echo "$ac_t""compiler is IBM xlC" 1>&6 - GXX_VERSION=ibm_xlc + if test "$GXX" = yes ; then + GXX_VERSION_STRING=`($CXX -v 2>&1) | grep "gcc version"` + case "$GXX_VERSION_STRING" in + *"egcs-1.1"*) + echo "$as_me:2137: result: C++ compiler is egcs-1.1" >&5 +echo "${ECHO_T}C++ compiler is egcs-1.1" >&6 + GXX_VERSION=egcs1.1 + ;; + *2.95*) + echo "$as_me:2142: result: C++ compiler is gcc-2.95" >&5 +echo "${ECHO_T}C++ compiler is gcc-2.95" >&6 + GXX_VERSION=gcc2.95 + ;; + *2.96*) + echo "$as_me:2147: result: C++ compiler is gcc-2.96" >&5 +echo "${ECHO_T}C++ compiler is gcc-2.96" >&6 + GXX_VERSION=gcc2.96 + ;; + *2.97*) + echo "$as_me:2152: result: C++ compiler is gcc-2.97" >&5 +echo "${ECHO_T}C++ compiler is gcc-2.97" >&6 + GXX_VERSION=gcc2.97 + ;; + *3.0*) + echo "$as_me:2157: result: C++ compiler is gcc-3.0" >&5 +echo "${ECHO_T}C++ compiler is gcc-3.0" >&6 + GXX_VERSION=gcc3.0 + ;; + *3.1*) + echo "$as_me:2162: result: C++ compiler is gcc-3.1" >&5 +echo "${ECHO_T}C++ compiler is gcc-3.1" >&6 + GXX_VERSION=gcc3.1 + ;; + *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) + echo "$as_me:2167: result: C++ compiler is $GXX_VERSION_STRING" >&5 +echo "${ECHO_T}C++ compiler is $GXX_VERSION_STRING" >&6 + { { echo "$as_me:2169: error: C++ compiler is not supported" >&5 +echo "$as_me: error: C++ compiler is not supported" >&2;} + { (exit 1); exit 1; }; } + ;; + *) + echo "$as_me:2174: result: C++ compiler is unknown but accepted gcc version" >&5 +echo "${ECHO_T}C++ compiler is unknown but accepted gcc version" >&6 + GXX_VERSION=gcc-other + ;; + esac else - # Check whether we are dealing with the MIPSpro C++ compiler - is_mips_pro="`($CXX -version 2>&1) | grep MIPSpro`" - if test "x$is_mips_pro" != "x" ; then - echo "$ac_t""compiler is MIPSpro C++ compiler" 1>&6 - GXX_VERSION=MIPSpro - else - - # Intel's ICC C++ compiler? - is_intel_icc="`($CXX -V 2>&1) | grep 'Intel(R) C++ Compiler'`" - if test "x$is_intel_icc" != "x" ; then - echo "$ac_t""compiler is Intel ICC" 1>&6 - GXX_VERSION=intel_icc - else - - # Or DEC's cxx compiler? - is_dec_cxx="`($CXX -V 2>&1) | grep 'Compaq C++'`" - if test "x$is_dec_cxx" != "x" ; then - echo "$ac_t""compiler is Compaq cxx" 1>&6 - GXX_VERSION=compaq_cxx - else - - is_sun_cc="`($CXX -V 2>&1) | grep 'Sun WorkShop'`" - if test "x$is_sun_cc" != "x" ; then - echo "$ac_t""compiler is Sun Workshop compiler" 1>&6 - GXX_VERSION=sun_workshop - else - - { echo "configure: error: Unrecognized compiler" 1>&2; exit 1; } - exit 1 - fi - fi - fi - fi - fi -fi - - - - - -# Check whether --enable-shared or --disable-shared was given. -if test "${enable_shared+set}" = set; then - enableval="$enable_shared" - enableshared=$enableval -else - enableshared=yes -fi - - -case "$target" in - *-aix* | alpha*-linux* | alpha*-osf45* | *cygwin ) - echo "configure: warning: Shared libraries not supported on $target. Using static libs instead" 1>&2 - enableshared=no - ;; -esac - - -if test $enableshared = yes ; then - echo "$ac_t""configuring for shared libraries" 1>&6 - lib_suffix=.so; -else - echo "$ac_t""configuring for static libraries" 1>&6 - lib_suffix=.a; -fi - - - - + is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" + if test "x$is_ibm_xlc" != "x" ; then + echo "$as_me:2183: result: C++ compiler is IBM xlC" >&5 +echo "${ECHO_T}C++ compiler is IBM xlC" >&6 + GXX_VERSION=ibm_xlc + else + is_mips_pro="`($CXX -version 2>&1) | grep MIPSpro`" + if test "x$is_mips_pro" != "x" ; then + echo "$as_me:2190: result: C++ compiler is MIPSpro C++ compiler" >&5 +echo "${ECHO_T}C++ compiler is MIPSpro C++ compiler" >&6 + GXX_VERSION=MIPSpro + else + is_intel_icc="`($CXX -V 2>&1) | grep 'Intel(R) C++ Compiler'`" + if test "x$is_intel_icc" != "x" ; then + echo "$as_me:2197: result: C++ compiler is Intel ICC" >&5 +echo "${ECHO_T}C++ compiler is Intel ICC" >&6 + GXX_VERSION=intel_icc + else + is_dec_cxx="`($CXX -V 2>&1) | grep 'Compaq C++'`" + if test "x$is_dec_cxx" != "x" ; then + echo "$as_me:2204: result: C++ compiler is Compaq cxx" >&5 +echo "${ECHO_T}C++ compiler is Compaq cxx" >&6 + GXX_VERSION=compaq_cxx + else + is_sun_cc="`($CXX -V 2>&1) | grep 'Sun WorkShop'`" + if test "x$is_sun_cc" != "x" ; then + echo "$as_me:2211: result: C++ compiler is Sun Workshop compiler" >&5 +echo "${ECHO_T}C++ compiler is Sun Workshop compiler" >&6 + GXX_VERSION=sun_workshop + else + + is_kai_cc="`($CXX -V 2>&1) | grep 'KAI C++'`" + if test "x$is_kai_cc" != "x" ; then + echo "$as_me:2218: result: compile is KAI C++" >&5 +echo "${ECHO_T}compile is KAI C++" >&6 + GXX_VERSSION=kai_cc + else + + { { echo "$as_me:2223: error: Unrecognized compiler" >&5 +echo "$as_me: error: Unrecognized compiler" >&2;} + { (exit sorry); exit sorry; }; } + exit 1 + fi + fi + fi + fi + fi + fi + fi -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" + 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" + CXXFLAGSPIC="-fPIC" + LDFLAGSPIC="-fPIC" - - case "$GXX_VERSION" in - egcs1.1) - case "$target" in - *linux*) - ;; + case "$GXX_VERSION" in + egcs1.1) + case "$target" in + *linux*) + ;; - *) - CXXFLAGSG = "$CXXFLAGSG -fno-vtable-thunks" - CXXFLAGSO = "$CXXFLAGSO -fno-vtable-thunks" - ;; - esac - ;; + *) + CXXFLAGSG = "$CXXFLAGSG -fno-vtable-thunks" + CXXFLAGSO = "$CXXFLAGSO -fno-vtable-thunks" + ;; + esac + ;; - *) - CXXFLAGSO="$CXXFLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" - ;; - esac + *) + CXXFLAGSO="$CXXFLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" + ;; + esac - - case "$GXX_VERSION" in - egcs1.1 | gcc2.95) - CXXFLAGSG="$CXXFLAGSG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs" - CXXFLAGSO="$CXXFLAGSO -fnonnull-objects" - ;; + case "$GXX_VERSION" in + egcs1.1 | gcc2.95) + CXXFLAGSG="$CXXFLAGSG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs" + CXXFLAGSO="$CXXFLAGSO -fnonnull-objects" + ;; - *) - ;; - esac + *) + ;; + esac - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG -Werror" - echo $ac_n "checking for std::advance warning""... $ac_c" 1>&6 -echo "configure:1399: checking for std::advance warning" >&5 - cat > conftest.$ac_ext <&5 +echo $ECHO_N "checking for std::advance warning... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +#line 2279 "configure" #include "confdefs.h" #include #include - -int main() { + +int +main () +{ std::map m; std::vector > v; v.insert (v.end(), m.begin(), m.end()); - -; return 0; } -EOF -if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""no" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2298: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2301: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2304: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2307: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:2310: result: no" >&5 +echo "${ECHO_T}no" >&6 DEAL_II_ADVANCE_WARNING=no - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:2318: result: yes" >&5 +echo "${ECHO_T}yes" >&6 DEAL_II_ADVANCE_WARNING=yes - - -fi -rm -f conftest* - if test "x$DEAL_II_ADVANCE_WARNING" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-W //g;'`" - fi +fi +rm -f conftest.$ac_objext conftest.$ac_ext -else + if test "x$DEAL_II_ADVANCE_WARNING" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-W //g;'`" + fi - if test "x$GXX_VERSION" = "xibm_xlc" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG -check=bounds -info=all -qrtti=all" - CXXFLAGSO="$CXXFLAGS -O2 -w -qansialias -qrtti=all" else - if test "x$GXX_VERSION" = "xMIPSpro" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG -LANG:std" - CXXFLAGSO="$CXXFLAGS -LANG:alias_const=ON -LANG:std -w" + case "$GXX_VERSION" in + ibm_xlc) + CXXFLAGSG="$CXXFLAGS -DDEBUG -check=bounds -info=all -qrtti=all" + CXXFLAGSO="$CXXFLAGS -O2 -w -qansialias -qrtti=all" + CXXFLAGSPIC="-fPIC" + LDFLAGSPIC="-fPIC" + ;; - else - - if test "x$GXX_VERSION" = "xintel_icc" ; then - CXXFLAGSG="$CXXFLAGS -Kc++eh -Krtti -w1 -wd175 -wd525 -wd327 -DDEBUG -inline_debug_info" - CXXFLAGSO="$CXXFLAGS -Kc++eh -Krtti -O2 -tpp6 -axiMK -unroll -w0" + MIPSpro) + CXXFLAGSG="$CXXFLAGS -DDEBUG -LANG:std" + CXXFLAGSO="$CXXFLAGS -LANG:alias_const=ON -LANG:std -w" + CXXFLAGSPIC="-KPIC" + LDFLAGSPIC="-KPIC" + ;; - else + intel_icc) + CXXFLAGSG="$CXXFLAGS -Kc++eh -Krtti -w1 -wd175 -wd525 -wd327 -DDEBUG -inline_debug_info" + CXXFLAGSO="$CXXFLAGS -Kc++eh -Krtti -O2 -tpp6 -axiMK -unroll -w0" + CXXFLAGSPIC="-KPIC" + LDFLAGSPIC="-KPIC" + ;; - if test "x$GXX_VERSION" = "xcompaq_cxx" ; then - - CXXFLAGSG="$CXXFLAGS -model ansi -std strict_ansi -w1 -msg_display_number -timplicit_local -DDEBUG" - CXXFLAGSO="$CXXFLAGS -model ansi -std strict_ansi -w2 -msg_display_number -timplicit_local -fast" + compaq_cxx) - for i in 175 236 237 381 487 1136 1156 111 1182 265 ; do - CXXFLAGSG="$CXXFLAGSG -msg_disable $i" - CXXFLAGSO="$CXXFLAGSO -msg_disable $i" - done + CXXFLAGSG="$CXXFLAGS -model ansi -std strict_ansi -w1 -msg_display_number -timplicit_local -DDEBUG" + CXXFLAGSO="$CXXFLAGS -model ansi -std strict_ansi -w2 -msg_display_number -timplicit_local -fast" - LDFLAGS="$LDFLAGS -model ansi" + for i in 175 236 237 381 487 1136 1156 111 1182 265 ; do + CXXFLAGSG="$CXXFLAGSG -msg_disable $i" + CXXFLAGSO="$CXXFLAGSO -msg_disable $i" + done - LDFLAGS="$LDFLAGS -lm" + LDFLAGS="$LDFLAGS -model ansi" - else + LDFLAGS="$LDFLAGS -lm" - if test "x$GXX_VERSION" = "xsun_workshop" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG" - CXXFLAGSO="$CXXFLAGS -fast" + CXXFLAGSPIC="-shared" + LDFLAGSPIC="-shared" + ;; - else + sun_workshop) + CXXFLAGSG="$CXXFLAGS -DDEBUG" + CXXFLAGSO="$CXXFLAGS -fast" + CXXFLAGSPIC="-KPIC" + ;; - { echo "configure: error: No compiler options for this C++ compiler - specified at present" 1>&2; exit 1; } - exit 1 - fi - fi - fi - fi + *) + { { echo "$as_me:2378: error: No compiler options for this C++ compiler + specified at present" >&5 +echo "$as_me: error: No compiler options for this C++ compiler + specified at present" >&2;} + { (exit 1); exit 1; }; } + ;; + esac fi -fi - - - - - + if test "$GXX" = yes ; then + echo "$as_me:2388: checking whether -ggdb works for long symbols" >&5 +echo $ECHO_N "checking whether -ggdb works for long symbols... $ECHO_C" >&6 + case "$target" in + alpha*-osf*) + CXXFLAGS="-ggdb $CXXFLAGSG" + cat >conftest.$ac_ext <<_ACEOF +#line 2394 "configure" +#include "confdefs.h" +# include +# include + using namespace std; + typedef map > > T; -if test "$GXX" = yes ; then - echo $ac_n "checking whether -ggdb works for long symbols""... $ac_c" 1>&6 -echo "configure:1498: checking whether -ggdb works for long symbols" >&5 - case "$target" in - alpha*-osf*) - CXXFLAGS="-ggdb $CXXFLAGSG" - cat > conftest.$ac_ext < >(); + map > > + ::const_iterator i2=t1.begin(); + map > > + ::const_iterator i1=t2->begin(); + return (i1==i2); + } -#include -#include +int +main () +{ -typedef map > > T; + ; -bool f(T& t1, const T* t2) { - t1["s"] = map >(); - map > >::const_iterator i2=t1.begin(); - map > >::const_iterator i1=t2->begin(); - return (i1==i2); + ; + return 0; } - -int main() { - - ; - -; return 0; } -EOF -if { (eval echo configure:1524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - 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 - -fi -rm -f conftest* - ;; - - *) - echo "$ac_t""yes" 1>&6 - CXXFLAGSG="-ggdb $CXXFLAGSG" - ;; - esac +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2423: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2426: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2429: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2432: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + CXXFLAGSG="-ggdb $CXXFLAGSG" + echo "$as_me:2436: result: yes" >&5 +echo "${ECHO_T}yes" >&6 else - CXXFLAGSG="-g $CXXFLAGSG" -fi - - - -if test $enableshared = yes ; then - case "$GXX_VERSION" in - *egcs* | *gcc* | *ibm_xlc*) - CFLAGS="$CFLAGS -fPIC" - CXXFLAGSG="$CXXFLAGSG -fPIC" - CXXFLAGSO="$CXXFLAGSO -fPIC" - LDFLAGS="$LDFLAGS -fPIC" - ;; - *MIPSpro*) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - LDFLAGS="$LDFLAGS -KPIC" - ;; - intel_icc) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - LDFLAGS="$LDFLAGS -KPIC" - ;; - - compaq_cxx) - CFLAGS="$CFLAGS -shared" - CXXFLAGSG="$CXXFLAGSG -shared" - CXXFLAGSO="$CXXFLAGSO -shared" - LDFLAGS="$LDFLAGS -shared" - ;; + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 - sun_workshop) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - ;; + CXXFLAGSG="-gstabs $CXXFLAGSG" + echo "$as_me:2444: result: no -- using -gstabs" >&5 +echo "${ECHO_T}no -- using -gstabs" >&6 - *) - { echo "configure: error: No shared lib options for this compiler specified" 1>&2; exit 1; } - exit 1 - esac fi +rm -f conftest.$ac_objext conftest.$ac_ext + ;; + + *) + echo "$as_me:2452: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + CXXFLAGSG="-ggdb $CXXFLAGSG" + ;; + esac + else + CXXFLAGSG="-g $CXXFLAGSG" + fi - - - - - -# Check whether --enable-multithreading or --disable-multithreading was given. + # Check whether --enable-multithreading or --disable-multithreading was given. if test "${enable_multithreading+set}" = set; then enableval="$enable_multithreading" enablemultithreading=$enableval else enablemultithreading=no -fi - +fi; + if test "$enablemultithreading" = yes ; then + if test "$GXX" = yes ; then + echo "$as_me:2473: checking for platform specific thread flags" >&5 +echo $ECHO_N "checking for platform specific thread flags... $ECHO_C" >&6 + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test "$enablemultithreading" = yes ; then - if test "$GXX" = yes ; then - - echo $ac_n "checking for platform specific thread flags""... $ac_c" 1>&6 -echo "configure:1615: checking for platform specific thread flags" >&5 - for i in threads mt pthread pthreads mthreads Kthread kthread invalid_last_entry; do CXXFLAGS="$CXXFLAGSG -$i" - + echo 'int main() { return 0; }' > conftest.$ac_ext deal_II_compiler_output=`eval $ac_compile 2>&1` if test ! "$deal_II_compiler_output"; then - + rm -rf conftest* - + thread_flag=$i CXXFLAGSG="$CXXFLAGSG -$i" CXXFLAGSO="$CXXFLAGSO -$i" LDFLAGS="$LDFLAGS -$i" - + break - - + else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 - + fi rm -f conftest* done if test "$thread_flag" = invalid_last_entry ; then - echo "$ac_t"""no flag found!"" 1>&6 - { echo "configure: error: "Could not determine multithreading flag for this platform. Aborting!"" 1>&2; exit 1; } + echo "$as_me:2507: result: \"no flag found!\"" >&5 +echo "${ECHO_T}\"no flag found!\"" >&6 + { { echo "$as_me:2509: error: \"Could not determine multithreading flag for this platform. Aborting!\"" >&5 +echo "$as_me: error: \"Could not determine multithreading flag for this platform. Aborting!\"" >&2;} + { (exit 1); exit 1; }; } fi - echo "$ac_t"""-$thread_flag"" 1>&6 + echo "$as_me:2513: result: \"-$thread_flag\"" >&5 +echo "${ECHO_T}\"-$thread_flag\"" >&6 - - echo $ac_n "checking for platform specific multi-threading defines""... $ac_c" 1>&6 -echo "configure:1651: checking for platform specific multi-threading defines" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:2516: checking for platform specific multi-threading defines" >&5 +echo $ECHO_N "checking for platform specific multi-threading defines... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2525 "configure" #include "confdefs.h" -#if !defined (_REENTRANT) && !defined (_THREAD_SAFE) -#error Neither _REENTRANT nor _THREAD_SAFE were defined. -nonsense -#endif - -int main() { +# if !defined (_REENTRANT) && !defined (_THREAD_SAFE) +# error Neither _REENTRANT nor _THREAD_SAFE were defined. + nonsense +# endif + +int +main () +{ ; - -; return 0; } -EOF -if { (eval echo configure:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""not necessary"" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t"""-D_REENTRANT -D_THREAD_SAFE"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2547: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2550: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2553: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:2556: result: \"not necessary\"" >&5 +echo "${ECHO_T}\"not necessary\"" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:2563: result: \"-D_REENTRANT -D_THREAD_SAFE\"" >&5 +echo "${ECHO_T}\"-D_REENTRANT -D_THREAD_SAFE\"" >&6 CXXFLAGSG="$CXXFLAGSG -D_REENTRANT -D_THREAD_SAFE" CXXFLAGSO="$CXXFLAGSO -D_REENTRANT -D_THREAD_SAFE" - -fi -rm -f conftest* +fi +rm -f conftest.$ac_objext conftest.$ac_ext - CXXFLAGSG="$CXXFLAGSG -D__USE_MALLOC -D_REENTRANT" - CXXFLAGSO="$CXXFLAGSO -D__USE_MALLOC -D_REENTRANT" - else - if test "x$GXX_VERSION" = "xibm_xlc" ; then - CXXFLAGSG = "$CXXFLAGSG -threaded" - CXXFLAGSO = "$CXXFLAGSO -threaded" + CXXFLAGSG="$CXXFLAGSG -D__USE_MALLOC -D_REENTRANT" + CXXFLAGSO="$CXXFLAGSO -D__USE_MALLOC -D_REENTRANT" else - { echo "configure: error: No threading compiler options for this C++ compiler - specified at present" 1>&2; exit 1; } - exit 1 + if test "x$GXX_VERSION" = "xibm_xlc" ; then + CXXFLAGSG = "$CXXFLAGSG -threaded" + CXXFLAGSO = "$CXXFLAGSO -threaded" + else + { { echo "$as_me:2578: error: No threading compiler options for this C++ compiler + specified at present" >&5 +echo "$as_me: error: No threading compiler options for this C++ compiler + specified at present" >&2;} + { (exit 1); exit 1; }; } + exit 1 + fi fi fi -fi - - - # Check whether --with-multithreading or --without-multithreading was given. if test "${with_multithreading+set}" = set; then @@ -1711,175 +2591,157 @@ if test "${with_multithreading+set}" = set; then withmultithreading=$withval else withmultithreading=no -fi - -if test "$withmultithreading" != no ; then - echo $ac_n "checking for ACE""... $ac_c" 1>&6 -echo "configure:1719: checking for ACE" >&5 - if test -d "$withmultithreading" ; then - echo "$ac_t""found" 1>&6 - else - echo "$ac_t""not found" 1>&6 - { echo "configure: error: Invalid ACE path" 1>&2; exit 1; } - fi +fi; + if test "$withmultithreading" != no ; then + echo "$as_me:2596: checking for ACE" >&5 +echo $ECHO_N "checking for ACE... $ECHO_C" >&6 + if test -d "$withmultithreading" ; then + echo "$as_me:2599: result: found" >&5 +echo "${ECHO_T}found" >&6 + else + echo "$as_me:2602: result: not found" >&5 +echo "${ECHO_T}not found" >&6 + { { echo "$as_me:2604: error: Invalid ACE path" >&5 +echo "$as_me: error: Invalid ACE path" >&2;} + { (exit 1); exit 1; }; } + fi - cat >> confdefs.h <<\EOF +cat >>confdefs.h <<\EOF #define DEAL_II_USE_MT 1 EOF -fi - - - + fi + if test "$enablemultithreading" = yes ; then + if test "$GXX" = yes ; then -if test "$enablemultithreading" = yes ; then - if test "$GXX" = yes ; then - echo $ac_n "checking whether compilation with ACE disallows flags""... $ac_c" 1>&6 -echo "configure:1740: checking whether compilation with ACE disallows flags" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:2618: checking whether compilation with ACE disallows flags" >&5 +echo $ECHO_N "checking whether compilation with ACE disallows flags... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="-ansi -I$withmultithreading" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2628 "configure" #include "confdefs.h" # include # include - -int main() { -; return 0; } -EOF -if { (eval echo configure:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2643: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2646: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2649: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2652: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_ace_remove_ansi="no" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + deal_II_ace_remove_ansi="yes" - + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext CXXFLAGS="-pedantic -Werror -I$withmultithreading" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2667 "configure" #include "confdefs.h" # include # include - -int main() { -; return 0; } -EOF -if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2682: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2685: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2688: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2691: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_ace_remove_pedantic="no" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + deal_II_ace_remove_pedantic="yes" - + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext if test $deal_II_ace_remove_ansi = "no" ; then - if test $deal_II_ace_remove_pedantic = "no" ; then - echo "$ac_t""no" 1>&6 + if test $deal_II_ace_remove_pedantic = "no" ; then + echo "$as_me:2707: result: no" >&5 +echo "${ECHO_T}no" >&6 else - echo "$ac_t""-pedantic" 1>&6 + echo "$as_me:2710: result: -pedantic" >&5 +echo "${ECHO_T}-pedantic" >&6 fi else - if test $deal_II_ace_remove_pedantic = "no" ; then - echo "$ac_t""-ansi" 1>&6 + if test $deal_II_ace_remove_pedantic = "no" ; then + echo "$as_me:2715: result: -ansi" >&5 +echo "${ECHO_T}-ansi" >&6 else - echo "$ac_t""-ansi -pedantic" 1>&6 + echo "$as_me:2718: result: -ansi -pedantic" >&5 +echo "${ECHO_T}-ansi -pedantic" >&6 fi fi - if test "x$deal_II_ace_remove_ansi" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-ansi//g;'`" - CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-ansi//g;'`" - fi - if test "x$deal_II_ace_remove_pedantic" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-pedantic//g;'`" - CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-pedantic//g;'`" + if test "x$deal_II_ace_remove_ansi" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-ansi//g;'`" + CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-ansi//g;'`" + fi + if test "x$deal_II_ace_remove_pedantic" = "xyes" ; then + CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-pedantic//g;'`" + CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-pedantic//g;'`" + fi fi fi -fi - - - -# Check whether --enable-compat-blocker or --disable-compat-blocker was given. -if test "${enable_compat_blocker+set}" = set; then - enableval="$enable_compat_blocker" - enable_compat_blocker=$enableval -else - enable_compat_blocker="" -fi - -disable_compat=`echo $enable_compat_blocker | perl -pi -e 's/,/ /g;'` -for i in $disable_compat ; do - case $i in - mapping) - echo "$ac_t""Disabling backward compatibility feature: "$i"" 1>&6 - ;; - *) - { echo "configure: error: Backward compatibility feature "$i" unknown" 1>&2; exit 1; } - ;; - esac -done -for i in mapping ; do - uppercase=`echo $i | perl -pi -e 'tr/a-z/A-Z/;'` - if test -n "`echo $disable_compat | grep $i`" ; then - compat_value=false - else - compat_value=true - fi - - case $i in - mapping) - cat >> confdefs.h <&2; exit 1; } - ;; - esac -done - - - - - echo $ac_n "checking whether AssertThrow works with debug flags""... $ac_c" 1>&6 -echo "configure:1873: checking whether AssertThrow works with debug flags" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:2734: checking whether AssertThrow works with debug flags" >&5 +echo $ECHO_N "checking whether AssertThrow works with debug flags... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=$CXXFLAGSG - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2744 "configure" #include "confdefs.h" #include @@ -1919,7 +2781,7 @@ void __IssueError_Assert (const char *file, e.PrintExcData (std::cerr); e.PrintInfo (std::cerr); std::cerr << "--------------------------------------------------------" - << std::endl; + << std::endl; std::abort (); }; @@ -1946,46 +2808,60 @@ void __IssueError_Throw (const char *file, #define DeclException0(Exception0) \ class Exception0 : public ExceptionBase {} -namespace StandardExceptions +namespace StandardExceptions { DeclException0 (ExcInternalError); }; using namespace StandardExceptions; - -int main() { + +int +main () +{ AssertThrow (false, ExcInternalError()); - -; return 0; } -EOF -if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t"""no"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2828: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2831: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2834: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2837: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:2840: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:2847: result: no" >&5 +echo "${ECHO_T}no" >&6 CXXFLAGSG="-DDISABLE_ASSERT_THROW $CXXFLAGSG" - + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking whether AssertThrow works with optimized flags""... $ac_c" 1>&6 -echo "configure:1979: checking whether AssertThrow works with optimized flags" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:2854: checking whether AssertThrow works with optimized flags" >&5 +echo $ECHO_N "checking whether AssertThrow works with optimized flags... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=$CXXFLAGSO - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2864 "configure" #include "confdefs.h" #include @@ -2025,7 +2901,7 @@ void __IssueError_Assert (const char *file, e.PrintExcData (std::cerr); e.PrintInfo (std::cerr); std::cerr << "--------------------------------------------------------" - << std::endl; + << std::endl; std::abort (); }; @@ -2052,47 +2928,60 @@ void __IssueError_Throw (const char *file, #define DeclException0(Exception0) \ class Exception0 : public ExceptionBase {} -namespace StandardExceptions +namespace StandardExceptions { DeclException0 (ExcInternalError); }; using namespace StandardExceptions; - -int main() { + +int +main () +{ AssertThrow (false, ExcInternalError()); - -; return 0; } -EOF -if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t"""no"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2951: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2954: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2957: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:2960: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:2967: result: no" >&5 +echo "${ECHO_T}no" >&6 CXXFLAGSO="-DDISABLE_ASSERT_THROW $CXXFLAGSO" - -fi -rm -f conftest* +fi +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking for std::vector bug""... $ac_c" 1>&6 -echo "configure:2086: checking for std::vector bug" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:2974: checking for std::vector bug" >&5 +echo $ECHO_N "checking for std::vector bug... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 2984 "configure" #include "confdefs.h" namespace std { @@ -2107,253 +2996,330 @@ cross_compiling=$ac_cv_prog_cxx_cross std::vector x; g<1> (x); }; - -int main() { -; return 0; } -EOF -if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""yes. trying to work around" 1>&6 - cat >> confdefs.h <<\EOF +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3012: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3015: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3018: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3021: result: no" >&5 +echo "${ECHO_T}no" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3028: result: yes. trying to work around" >&5 +echo "${ECHO_T}yes. trying to work around" >&6 + +cat >>confdefs.h <<\EOF #define XLC_WORK_AROUND_STD_BUG 1 EOF - fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - - echo $ac_n "checking for std::iterator class""... $ac_c" 1>&6 -echo "configure:2137: checking for std::iterator class" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3038: checking for std::iterator class" >&5 +echo $ECHO_N "checking for std::iterator class... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3048 "configure" #include "confdefs.h" #include class MyIterator : public std::iterator {}; - -int main() { -; return 0; } -EOF -if { (eval echo configure:2158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3064: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3067: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3070: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3073: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3076: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_STD_ITERATOR_CLASS 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3087: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking for std::i/ostringstream classes""... $ac_c" 1>&6 -echo "configure:2178: checking for std::i/ostringstream classes" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3093: checking for std::i/ostringstream classes" >&5 +echo $ECHO_N "checking for std::i/ostringstream classes... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3103 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ std::istringstream i; std::ostringstream o; - -; return 0; } -EOF -if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3120: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3123: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3126: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3129: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3132: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_STD_STRINGSTREAM 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3143: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking for std::numeric_limits classes""... $ac_c" 1>&6 -echo "configure:2220: checking for std::numeric_limits classes" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3149: checking for std::numeric_limits classes" >&5 +echo $ECHO_N "checking for std::numeric_limits classes... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3159 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ unsigned int i = std::numeric_limits::min(); - -; return 0; } -EOF -if { (eval echo configure:2241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3175: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3178: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3181: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3184: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3187: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_STD_NUMERIC_LIMITS 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3198: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking for header""... $ac_c" 1>&6 -echo "configure:2261: checking for header" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3204: checking for header" >&5 +echo $ECHO_N "checking for header... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3214 "configure" #include "confdefs.h" #include void f (const std::ostream &out); - -int main() { - -; return 0; } -EOF -if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3229: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3232: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3235: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3238: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3241: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_STD_OSTREAM_HEADER 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3252: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking for header""... $ac_c" 1>&6 -echo "configure:2302: checking for header" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3258: checking for header" >&5 +echo $ECHO_N "checking for header... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3268 "configure" #include "confdefs.h" #include void f (const std::ostream &out); - -int main() { - -; return 0; } -EOF -if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3286: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3289: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3292: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3295: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_STD_IOSFWD_HEADER 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - -fi -rm -f conftest* - - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + echo "$as_me:3306: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking whether lrand48 needs to be declared with -ansi""... $ac_c" 1>&6 -echo "configure:2347: checking whether lrand48 needs to be declared with -ansi" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3312: checking whether lrand48 needs to be declared with -ansi" >&5 +echo $ECHO_N "checking whether lrand48 needs to be declared with -ansi... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS="$CXXFLAGSG" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3322 "configure" #include "confdefs.h" #include @@ -2364,692 +3330,844 @@ void f() std::vector new_indices; std::random_shuffle (new_indices.begin(), new_indices.end()); }; - -int main() { -; return 0; } -EOF -if { (eval echo configure:2373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3343: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3346: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3349: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3352: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3355: result: no" >&5 +echo "${ECHO_T}no" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3362: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\EOF #define DEAL_II_DECLARE_LRAND48 1 EOF - fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking whether getrusage is properly declared""... $ac_c" 1>&6 -echo "configure:2394: checking whether getrusage is properly declared" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3372: checking whether getrusage is properly declared" >&5 +echo $ECHO_N "checking whether getrusage is properly declared... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3381 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ rusage *ru; getrusage(RUSAGE_SELF,ru); - -; return 0; } -EOF -if { (eval echo configure:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t"""no"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3398: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3401: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3404: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3407: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3410: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3417: result: no" >&5 +echo "${ECHO_T}no" >&6 CXXFLAGSG="$CXXFLAGSG -DNO_HAVE_GETRUSAGE" CXXFLAGSO="$CXXFLAGSO -DNO_HAVE_GETRUSAGE" - + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - echo $ac_n "checking whether isnan is declared with debug flags""... $ac_c" 1>&6 -echo "configure:2433: checking whether isnan is declared with debug flags" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3425: checking whether isnan is declared with debug flags" >&5 +echo $ECHO_N "checking whether isnan is declared with debug flags... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=$CXXFLAGSG deal_II_isnan_flag="" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3436 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3453: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3456: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3459: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3462: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3465: result: yes" >&5 +echo "${ECHO_T}yes" >&6 deal_II_isnan_flag="-DHAVE_ISNAN" CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext if test "x$deal_II_isnan_flag" = "x" ; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3478 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; _isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3495: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3498: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3501: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3504: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3507: result: yes" >&5 +echo "${ECHO_T}yes" >&6 deal_II_isnan_flag="-DHAVE_UNDERSCORE_ISNAN" CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - if test "x$deal_II_isnan_flag" = "x" ; then deal_II_isnan_flag="" - for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do + for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do CXXFLAGS="$CXXFLAGSG $testflag" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3524 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3541: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3544: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3547: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3550: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_isnan_flag="-DHAVE_ISNAN $testflag" break; - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3563 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; _isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3583: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3586: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3589: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_isnan_flag="-DHAVE_UNDERSCORE_ISNAN $testflag" break; - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext done if test "x$deal_II_isnan_flag" = "x" ; then - echo "$ac_t""no." 1>&6 + echo "$as_me:3603: result: no." >&5 +echo "${ECHO_T}no." >&6 else - echo "$ac_t""using $testflag" 1>&6 + echo "$as_me:3606: result: using $testflag" >&5 +echo "${ECHO_T}using $testflag" >&6 CXXFLAGSG="$deal_II_isnan_flag $CXXFLAGSG" fi fi - echo $ac_n "checking whether isnan is declared with optimized flags""... $ac_c" 1>&6 -echo "configure:2563: checking whether isnan is declared with optimized flags" >&5 - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + echo "$as_me:3612: checking whether isnan is declared with optimized flags" >&5 +echo $ECHO_N "checking whether isnan is declared with optimized flags... $ECHO_C" >&6 + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=$CXXFLAGSO deal_II_isnan_flag="" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3623 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3643: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3646: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3649: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3652: result: yes" >&5 +echo "${ECHO_T}yes" >&6 deal_II_isnan_flag="-DHAVE_ISNAN" CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* - +rm -f conftest.$ac_objext conftest.$ac_ext if test "x$deal_II_isnan_flag" = "x" ; then - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3665 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; _isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t"""yes"" 1>&6 + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3685: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3688: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3691: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3694: result: yes" >&5 +echo "${ECHO_T}yes" >&6 deal_II_isnan_flag="-DHAVE_UNDERSCORE_ISNAN" CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO" - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext fi - if test "x$deal_II_isnan_flag" = "x" ; then deal_II_isnan_flag="" - for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do + for testflag in -D_ISOC99_SOURCE -D__EXTENSIONS__ ; do CXXFLAGS="$CXXFLAGSO $testflag" - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3711 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3728: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3731: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3734: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3737: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_isnan_flag="-DHAVE_ISNAN $testflag" break; - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3750 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ double d=0; _isnan (d); - -; return 0; } -EOF -if { (eval echo configure:2671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3770: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3773: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3776: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + deal_II_isnan_flag="-DHAVE_UNDERSCORE_ISNAN $testflag" break; - + else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext done if test "x$deal_II_isnan_flag" = "x" ; then - echo "$ac_t""no." 1>&6 + echo "$as_me:3790: result: no." >&5 +echo "${ECHO_T}no." >&6 else - echo "$ac_t""using $testflag" 1>&6 + echo "$as_me:3793: result: using $testflag" >&5 +echo "${ECHO_T}using $testflag" >&6 CXXFLAGSO="$deal_II_isnan_flag $CXXFLAGSO" fi fi - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + ac_ext=cc 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 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS=$CXXFLAGSG - echo $ac_n "checking for rand_r""... $ac_c" 1>&6 -echo "configure:2702: checking for rand_r" >&5 - cat > conftest.$ac_ext <&5 +echo $ECHO_N "checking for rand_r... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +#line 3809 "configure" #include "confdefs.h" #include - -int main() { + +int +main () +{ int seed = 0; int i=rand_r(&i); - -; return 0; } -EOF -if { (eval echo configure:2716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""found" 1>&6 - cat >> confdefs.h <<\EOF + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:3826: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:3829: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3832: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3835: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:3838: result: found" >&5 +echo "${ECHO_T}found" >&6 + +cat >>confdefs.h <<\EOF #define HAVE_RAND_R 1 EOF - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "$ac_t""no" 1>&6 - - + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + echo "$as_me:3849: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext for ac_func in gethostname do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2739: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:3858: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat > conftest.$ac_ext <conftest.$ac_ext <<_ACEOF +#line 3864 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func(); below. */ + which can conflict with char $ac_func (); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); +int +main () +{ /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -$ac_func(); +f = $ac_func; #endif -; return 0; } -EOF -if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3895: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3898: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3901: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3904: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$as_ac_var=no" fi -rm -f conftest* +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <&6 + fi done +echo "$as_me:3924: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:3926: result: ----------------- configuring F77 compilers -----------------" >&5 +echo "${ECHO_T}----------------- configuring F77 compilers -----------------" >&6 - -# Extract the first word of "f77", so it can be a program name with args. -set dummy f77; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2799: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_F77'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 +for ac_prog in f77 g77 +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:3933: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - case "$F77" in - /*) + case $F77 in + [\\/]* | ?:[\\/]*) ac_cv_path_F77="$F77" # Let the user override the test with a path. ;; - ?:/*) - ac_cv_path_F77="$F77" # Let the user override the test with a dos path. - ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_F77="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -F77="$ac_cv_path_F77" -if test -n "$F77"; then - echo "$ac_t""$F77" 1>&6 -else - echo "$ac_t""no" 1>&6 + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_F77="$ac_dir/$ac_word" + echo "$as_me:3950: found $ac_dir/$ac_word" >&5 + break fi +done -if test "x$F77" = "x" ; then - # Extract the first word of "g77", so it can be a program name with args. -set dummy g77; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2835: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_F77'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$F77" in - /*) - ac_cv_path_F77="$F77" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_F77="$F77" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_F77="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" ;; esac fi -F77="$ac_cv_path_F77" +F77=$ac_cv_path_F77 + if test -n "$F77"; then - echo "$ac_t""$F77" 1>&6 + echo "$as_me:3961: result: $F77" >&5 +echo "${ECHO_T}$F77" >&6 else - echo "$ac_t""no" 1>&6 -fi - + echo "$as_me:3964: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -if test "x$F77" != "x" ; then - 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 - *"egcs-1.1"*) - echo "$ac_t""compiler is egcs-1.1" 1>&6 - F77_VERSION=egcs1.1 - ;; - *2.95*) - echo "$ac_t""compiler is gcc-2.95" 1>&6 - F77_VERSION=gcc2.95 - ;; - *2.96*) - echo "$ac_t""compiler is gcc-2.96" 1>&6 - F77_VERSION=gcc2.96 - ;; - *2.97*) - echo "$ac_t""compiler is gcc-2.97" 1>&6 - F77_VERSION=gcc2.97 - ;; - *3.0*) - echo "$ac_t""compiler is gcc-3.0" 1>&6 - F77_VERSION=gcc3.0 - ;; - *3.1*) - echo "$ac_t""compiler is gcc-3.1" 1>&6 - F77_VERSION=gcc3.1 - ;; - *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) - echo "$ac_t""compiler is $G77_VERSION_STRING" 1>&6 - { echo "configure: error: compiler is not supported" 1>&2; exit 1; } - ;; - *) - echo "$ac_t""compiler is unknown but accepted gcc version" 1>&6 - F77_VERSION=gcc-other - ;; - esac - - F77FLAGSG="$FFLAGS -ggdb -DDEBUG -pedantic -W -Wall" - F77FLAGSO="$FFLAGS -O2" - - if test "x$F77_VERSION" != "xegcs1.1" ; then - F77FLAGSO="$F77FLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" - fi - - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -fPIC" - F77FLAGSO="$F77FLAGSO -fPIC" - fi + test -n "$F77" && break +done - F77LIBS="$F77LIBS -lg2c" + if test "x$F77" != "x" ; then + 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 + *"egcs-1.1"*) + echo "$as_me:3977: result: F77 compiler is egcs-1.1" >&5 +echo "${ECHO_T}F77 compiler is egcs-1.1" >&6 + F77_VERSION=egcs1.1 + ;; + *2.95*) + echo "$as_me:3982: result: F77 compiler is gcc-2.95" >&5 +echo "${ECHO_T}F77 compiler is gcc-2.95" >&6 + F77_VERSION=gcc2.95 + ;; + *2.96*) + echo "$as_me:3987: result: F77 compiler is gcc-2.96" >&5 +echo "${ECHO_T}F77 compiler is gcc-2.96" >&6 + F77_VERSION=gcc2.96 + ;; + *2.97*) + echo "$as_me:3992: result: F77 compiler is gcc-2.97" >&5 +echo "${ECHO_T}F77 compiler is gcc-2.97" >&6 + F77_VERSION=gcc2.97 + ;; + *3.0*) + echo "$as_me:3997: result: F77 compiler is gcc-3.0" >&5 +echo "${ECHO_T}F77 compiler is gcc-3.0" >&6 + F77_VERSION=gcc3.0 + ;; + *3.1*) + echo "$as_me:4002: result: F77 compiler is gcc-3.1" >&5 +echo "${ECHO_T}F77 compiler is gcc-3.1" >&6 + F77_VERSION=gcc3.1 + ;; + *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) + echo "$as_me:4007: result: F77 compiler is $G77_VERSION_STRING" >&5 +echo "${ECHO_T}F77 compiler is $G77_VERSION_STRING" >&6 + { { echo "$as_me:4009: error: F77 compiler is not supported" >&5 +echo "$as_me: error: F77 compiler is not supported" >&2;} + { (exit 1); exit 1; }; } + ;; + *) + echo "$as_me:4014: result: F77 compiler is unknown but accepted gcc version" >&5 +echo "${ECHO_T}F77 compiler is unknown but accepted gcc version" >&6 + F77_VERSION=gcc-other + ;; + esac - else + else - if test -n "`echo $F77_VERSION_STRING | grep \"XL Fortran for AIX\"`" ; then + if test -n "`echo $F77_VERSION_STRING | grep \"XL Fortran for AIX\"`" ; then - F77_VERSION=AIXF77 - echo "$ac_t""compiler is AIX Fortran77" 1>&6 - F77FLAGSG="$FFLAGS -g" - F77FLAGSO="$FFLAGS -O3 -w" - F77LIBS="$F77LIBS -lxlf90" + F77_VERSION=AIXF77 + echo "$as_me:4025: result: F77 compiler is AIX Fortran77" >&5 +echo "${ECHO_T}F77 compiler is AIX Fortran77" >&6 - - else + else - F77_VERSION_STRING=`($F77 -V 2>&1)` - if test -n "`echo $F77_VERSION_STRING | grep \"WorkShop Compilers\"`" ; then + F77_VERSION_STRING=`($F77 -V 2>&1)` + if test -n "`echo $F77_VERSION_STRING | grep \"WorkShop Compilers\"`" ; then - echo "$ac_t""compiler is Sun WorkShop f77" 1>&6 - F77_VERSION="SunF77" - F77FLAGSG="$FFLAGS -silent -g" - F77FLAGSO="$FFLAGS -silent -O3 -w" - F77LIBS="$F77LIBS -lF77 -lsunmath -lM77" - LDFLAGS="$LDFLAGS" + echo "$as_me:4033: result: F77 compiler is Sun WorkShop f77" >&5 +echo "${ECHO_T}F77 compiler is Sun WorkShop f77" >&6 + F77_VERSION="SunF77" - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -PIC" - F77FLAGSO="$F77FLAGSO -PIC" - fi + else - else + F77_VERSION_STRING=`($F77 -version 2>&1)` + if test -n "`echo $F77_VERSION_STRING | grep MIPSpro`" ; then + echo "$as_me:4041: result: F77 compiler is MIPSpro f77" >&5 +echo "${ECHO_T}F77 compiler is MIPSpro f77" >&6 + F77_VERSION="MIPSproF77" - F77_VERSION_STRING=`($F77 -version 2>&1)` - if test -n "`echo $F77_VERSION_STRING | grep MIPSpro`" ; then - echo "$ac_t""compiler is MIPSpro f77" 1>&6 - F77_VERSION="MIPSproF77" - F77FLAGSG="$FFLAGS -ansi -g" - F77FLAGSO="$FFLAGS -O3 -woffall" - F77LIBS="$F77LIBS -lftn" - - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -shared -KPIC" - F77FLAGSO="$F77FLAGSO -shared -KPIC" else - F77FLAGSG="$F77FLAGSG -non_shared" - F77FLAGSO="$F77FLAGSO -non_shared" - fi - - else - F77_VERSION= - echo "$ac_t""compiler is unkown. no flags set!" 1>&6 + F77_VERSION= + echo "$as_me:4048: result: F77 compiler is unkown. no flags set!" >&5 +echo "${ECHO_T}F77 compiler is unkown. no flags set!" >&6 + fi fi fi fi fi -fi + case "$F77_VERSION" in + egcs-1.1 | gcc2.95 | gcc2.96 | gcc2.97 | gcc3.0 | gcc3.1) + F77FLAGSG="$FFLAGS -ggdb -DDEBUG -pedantic -W -Wall" + F77FLAGSO="$FFLAGS -O2" + if test "x$F77_VERSION" != "xegcs1.1" ; then + F77FLAGSO="$F77FLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" + fi + F77FLAGSPIC="-fPIC" + F77LIBS="$F77LIBS -lg2c" + ;; + AIXF77) + F77FLAGSG="$FFLAGS -g" + F77FLAGSO="$FFLAGS -O3 -w" + F77LIBS="$F77LIBS -lxlf90" -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2986: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PERL" in - /*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PERL="$ac_cv_path_PERL" -if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi + F77FLAGSPIC="unknown!" + ;; + SunF77) + F77FLAGSG="$FFLAGS -silent -g" + F77FLAGSO="$FFLAGS -silent -O3 -w" + F77LIBS="$F77LIBS -lF77 -lsunmath -lM77" + F77FLAGSPIC="-PIC" + ;; + MIPSproF77) + F77FLAGSG="$FFLAGS -ansi -g" + F77FLAGSO="$FFLAGS -O3 -woffall" + F77LIBS="$F77LIBS -lftn" + F77FLAGSPIC="shared -KPIC" + ;; + *) + { { echo "$as_me:4094: error: No compiler options for F77 compiler + \"$F77_VERSION\" specified at present" >&5 +echo "$as_me: error: No compiler options for F77 compiler + \"$F77_VERSION\" specified at present" >&2;} + { (exit 1); exit 1; }; } + ;; + esac +echo "$as_me:4102: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:4104: result: -------------- configuring shared/static libs ---------------" >&5 +echo "${ECHO_T}-------------- configuring shared/static libs ---------------" >&6 -echo $ac_n "checking for HSL subroutines""... $ac_c" 1>&6 -echo "configure:3024: checking for HSL subroutines" >&5 -hsl_subroutines="" -if test -r contrib/hsl/source/ma27.f ; then - hsl_subroutines="$hsl_subroutines MA27" - cat >> confdefs.h <<\EOF -#define HAVE_HSL_MA27 1 -EOF +# Check whether --enable-shared or --disable-shared was given. +if test "${enable_shared+set}" = set; then + enableval="$enable_shared" + enableshared=$enableval +else + enableshared=yes +fi; -fi +case "$target" in + *-aix* | alpha*-linux* | alpha*-osf45* | *cygwin ) + { echo "$as_me:4117: WARNING: Shared libraries not supported on $target. Using static libs instead" >&5 +echo "$as_me: WARNING: Shared libraries not supported on $target. Using static libs instead" >&2;} + enableshared=no + ;; +esac -if test -r contrib/hsl/source/ma47.f -a -r contrib/hsl/source/ma47dep.f ; then - hsl_subroutines="$hsl_subroutines MA47" - cat >> confdefs.h <<\EOF -#define HAVE_HSL_MA47 1 -EOF + # Check whether --enable-compat-blocker or --disable-compat-blocker was given. +if test "${enable_compat_blocker+set}" = set; then + enableval="$enable_compat_blocker" + enable_compat_blocker=$enableval +else + enable_compat_blocker="" +fi; -fi + disable_compat=`echo $enable_compat_blocker | perl -pi -e 's/,/ /g;'` + for i in $disable_compat ; do + case $i in + mapping) + echo "$as_me:4136: result: Disabling backward compatibility feature: \"$i\"" >&5 +echo "${ECHO_T}Disabling backward compatibility feature: \"$i\"" >&6 + ;; + *) + { { echo "$as_me:4140: error: Backward compatibility feature \"$i\" unknown" >&5 +echo "$as_me: error: Backward compatibility feature \"$i\" unknown" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + done -if test "x$hsl_subroutines" != "x" ; then - echo "$ac_t""$hsl_subroutines" 1>&6 - USE_CONTRIB_HSL=yes -else - echo "$ac_t""none found" 1>&6 - USE_CONTRIB_HSL=no -fi + for i in mapping ; do + uppercase=`echo $i | perl -pi -e 'tr/a-z/A-Z/;'` + if test -n "`echo $disable_compat | grep $i`" ; then + compat_value=false + else + compat_value=true + fi + case $i in + mapping) +cat >>confdefs.h <&5 +echo "$as_me: error: Backward compatibility feature \"$i\" unknown" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + done # Check whether --enable-multigrid or --disable-multigrid was given. if test "${enable_multigrid+set}" = set; then @@ -3061,693 +4179,1230 @@ else else enablemultigrid=no ; fi -fi - +fi; if test "$enablemultigrid" = yes ; then - echo "$ac_t""configuring multigrid" 1>&6 - cat >> confdefs.h <<\EOF -#define ENABLE_MULTIGRID 1 -EOF - -fi - - - - - - -# Check whether --with-kdoc or --without-kdoc was given. -if test "${with_kdoc+set}" = set; then - withval="$with_kdoc" - kdocdir=$withval -else - kdocdir=${DEAL2_DIR}/contrib/kdoc/bin -fi - -echo $ac_n "checking for kdoc""... $ac_c" 1>&6 -echo "configure:3089: checking for kdoc" >&5 -if test "$kdocdir" != ${DEAL2_DIR}/contrib/kdoc/bin ; then - if test -r $kdocdir/kdoc ; then - echo "$ac_t""found" 1>&6 - else - echo "$ac_t""not found" 1>&6 - { echo "configure: error: Invalid kdoc path $kdocdir/kdoc" 1>&2; exit 1; } - fi - - if test -r "$kdocdir/Version" ; then - kdocversion=`cat $kdocdir/Version` ; - else - kdocversion=1; - fi -else - kdocversion=`cat ${DEAL2_DIR}/contrib/kdoc/src/Version` - echo "$ac_t""using default version $kdocversion" 1>&6 -fi - - - - - - -# Check whether --with-docxx or --without-docxx was given. -if test "${with_docxx+set}" = set; then - withval="$with_docxx" - docxx=$withval -else - docxx=to-be-determined -fi - -if test "$docxx" = to-be-determined ; then - # Extract the first word of ""doc++"", so it can be a program name with args. -set dummy "doc++"; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3125: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_docxx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$docxx" in - /*) - ac_cv_path_docxx="$docxx" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_docxx="$docxx" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_docxx="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -docxx="$ac_cv_path_docxx" -if test -n "$docxx"; then - echo "$ac_t""$docxx" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -else - echo $ac_n "checking for doc++""... $ac_c" 1>&6 -echo "configure:3159: checking for doc++" >&5 - if test -x "$docxx" ; then - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - docxx= - fi -fi - - - + echo "$as_me:4184: result: configuring multigrid" >&5 +echo "${ECHO_T}configuring multigrid" >&6 +cat >>confdefs.h <<\EOF +#define ENABLE_MULTIGRID 1 +EOF +fi +echo "$as_me:4193: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:4195: result: ---------------- configuring additional libs ----------------" >&5 +echo "${ECHO_T}---------------- configuring additional libs ----------------" >&6 - -ac_safe=`echo "$TECHOME/lib/tecio.a" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TECHOME/lib/tecio.a""... $ac_c" 1>&6 -echo "configure:3177: checking for $TECHOME/lib/tecio.a" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TECHOME/lib/tecio.a" | $as_tr_sh` +echo "$as_me:4199: checking for $TECHOME/lib/tecio.a" >&5 +echo $ECHO_N "checking for $TECHOME/lib/tecio.a... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4205: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TECHOME/lib/tecio.a"; then + eval "$as_ac_File=yes" else - if test -r $TECHOME/lib/tecio.a; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4214: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_LIBRARY_PATH=$TECHOME/lib/tecio.a -else - echo "$ac_t""no" 1>&6 - fi - -ac_safe=`echo "$TEC80HOME/lib/tecio.a" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TEC80HOME/lib/tecio.a""... $ac_c" 1>&6 -echo "configure:3202: checking for $TEC80HOME/lib/tecio.a" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TEC80HOME/lib/tecio.a" | $as_tr_sh` +echo "$as_me:4221: checking for $TEC80HOME/lib/tecio.a" >&5 +echo $ECHO_N "checking for $TEC80HOME/lib/tecio.a... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4227: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TEC80HOME/lib/tecio.a"; then + eval "$as_ac_File=yes" else - if test -r $TEC80HOME/lib/tecio.a; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4236: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_LIBRARY_PATH=$TEC80HOME/lib/tecio.a -else - echo "$ac_t""no" 1>&6 - fi - -ac_safe=`echo "$TEC90HOME/lib/tecio.a" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TEC90HOME/lib/tecio.a""... $ac_c" 1>&6 -echo "configure:3227: checking for $TEC90HOME/lib/tecio.a" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TEC90HOME/lib/tecio.a" | $as_tr_sh` +echo "$as_me:4243: checking for $TEC90HOME/lib/tecio.a" >&5 +echo $ECHO_N "checking for $TEC90HOME/lib/tecio.a... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4249: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TEC90HOME/lib/tecio.a"; then + eval "$as_ac_File=yes" else - if test -r $TEC90HOME/lib/tecio.a; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4258: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_LIBRARY_PATH=$TEC90HOME/lib/tecio.a -else - echo "$ac_t""no" 1>&6 - fi - - -ac_safe=`echo "$TECHOME/include/TECIO.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TECHOME/include/TECIO.h""... $ac_c" 1>&6 -echo "configure:3253: checking for $TECHOME/include/TECIO.h" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TECHOME/include/TECIO.h" | $as_tr_sh` +echo "$as_me:4265: checking for $TECHOME/include/TECIO.h" >&5 +echo $ECHO_N "checking for $TECHOME/include/TECIO.h... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4271: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TECHOME/include/TECIO.h"; then + eval "$as_ac_File=yes" else - if test -r $TECHOME/include/TECIO.h; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4280: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_INCLUDE_PATH=$TECHOME/include -else - echo "$ac_t""no" 1>&6 - fi - -ac_safe=`echo "$TEC80HOME/include/TECIO.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TEC80HOME/include/TECIO.h""... $ac_c" 1>&6 -echo "configure:3278: checking for $TEC80HOME/include/TECIO.h" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TEC80HOME/include/TECIO.h" | $as_tr_sh` +echo "$as_me:4287: checking for $TEC80HOME/include/TECIO.h" >&5 +echo $ECHO_N "checking for $TEC80HOME/include/TECIO.h... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4293: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TEC80HOME/include/TECIO.h"; then + eval "$as_ac_File=yes" else - if test -r $TEC80HOME/include/TECIO.h; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4302: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_INCLUDE_PATH=$TEC80HOME/include -else - echo "$ac_t""no" 1>&6 - fi - -ac_safe=`echo "$TEC90HOME/include/TECIO.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $TEC90HOME/include/TECIO.h""... $ac_c" 1>&6 -echo "configure:3303: checking for $TEC90HOME/include/TECIO.h" >&5 -if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + as_ac_File=`echo "ac_cv_file_$TEC90HOME/include/TECIO.h" | $as_tr_sh` +echo "$as_me:4309: checking for $TEC90HOME/include/TECIO.h" >&5 +echo $ECHO_N "checking for $TEC90HOME/include/TECIO.h... $ECHO_C" >&6 +if eval "test \"\${$as_ac_File+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then - { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } + test "$cross_compiling" = yes && + { { echo "$as_me:4315: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "$TEC90HOME/include/TECIO.h"; then + eval "$as_ac_File=yes" else - if test -r $TEC90HOME/include/TECIO.h; then - eval "ac_cv_file_$ac_safe=yes" - else - eval "ac_cv_file_$ac_safe=no" - fi + eval "$as_ac_File=no" fi fi -if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 +echo "$as_me:4324: result: `eval echo '${'$as_ac_File'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 +if test `eval echo '${'$as_ac_File'}'` = yes; then TECPLOT_INCLUDE_PATH=$TEC90HOME/include -else - echo "$ac_t""no" 1>&6 - fi - - if test -r $TECPLOT_LIBRARY_PATH -a -r $TECPLOT_INCLUDE_PATH/TECIO.h ; then - cat >> confdefs.h <<\EOF + if (test -r $TECPLOT_LIBRARY_PATH && \ + test -r $TECPLOT_INCLUDE_PATH/TECIO.h) ; then + +cat >>confdefs.h <<\EOF #define DEAL_II_HAVE_TECPLOT 1 EOF fi + echo "$as_me:4339: checking for HSL subroutines" >&5 +echo $ECHO_N "checking for HSL subroutines... $ECHO_C" >&6 + hsl_subroutines="" + if test -r contrib/hsl/source/ma27.f ; then + hsl_subroutines="$hsl_subroutines MA27" + +cat >>confdefs.h <<\EOF +#define HAVE_HSL_MA27 1 +EOF + + fi + + if (test -r contrib/hsl/source/ma47.f && \ + test -r contrib/hsl/source/ma47dep.f) ; then + hsl_subroutines="$hsl_subroutines MA47" + +cat >>confdefs.h <<\EOF +#define HAVE_HSL_MA47 1 +EOF + fi + if test "x$hsl_subroutines" != "x" ; then + echo "$as_me:4362: result: $hsl_subroutines" >&5 +echo "${ECHO_T}$hsl_subroutines" >&6 + USE_CONTRIB_HSL=yes + else + echo "$as_me:4366: result: none found" >&5 +echo "${ECHO_T}none found" >&6 + USE_CONTRIB_HSL=no + fi +echo "$as_me:4371: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:4373: result: ------------------ checking compiler flags ------------------" >&5 +echo "${ECHO_T}------------------ checking compiler flags ------------------" >&6 -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. + ac_ext=cc 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 - -CXXFLAGS="$CXXFLAGSG" -echo $ac_n "checking for consistency of CXXFLAGSG flags""... $ac_c" 1>&6 -echo "configure:3346: checking for consistency of CXXFLAGSG flags" >&5 -cat > conftest.$ac_ext <&5 +echo $ECHO_N "checking for consistency of CXXFLAGSG flags... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +#line 4386 "configure" #include "confdefs.h" -int main() { +int +main () +{ ; -; return 0; } -EOF -if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - { echo "configure: error: invalid combination of flags!" 1>&2; exit 1; } - exit 1; - + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4398: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4401: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4404: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4407: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:4410: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + + { { echo "$as_me:4417: error: invalid combination of flags!" >&5 +echo "$as_me: error: invalid combination of flags!" >&2;} + { (exit 1); exit 1; }; } + exit 1; + fi -rm -f conftest* +rm -f conftest.$ac_objext conftest.$ac_ext -CXXFLAGS="$CXXFLAGSO" -echo $ac_n "checking for consistency of CXXFLAGSO flags""... $ac_c" 1>&6 -echo "configure:3373: checking for consistency of CXXFLAGSO flags" >&5 -cat > conftest.$ac_ext <&5 +echo $ECHO_N "checking for consistency of CXXFLAGSO flags... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +#line 4429 "configure" #include "confdefs.h" -int main() { +int +main () +{ ; -; return 0; } -EOF -if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - - echo "$ac_t""yes" 1>&6 - -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - { echo "configure: error: invalid combination of flags!" 1>&2; exit 1; } - exit 1; - -fi -rm -f conftest* + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:4441: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:4444: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4447: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:4450: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + + echo "$as_me:4453: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 + { { echo "$as_me:4460: error: invalid combination of flags!" >&5 +echo "$as_me: error: invalid combination of flags!" >&2;} + { (exit 1); exit 1; }; } + exit 1; +fi +rm -f conftest.$ac_objext conftest.$ac_ext + +echo "$as_me:4468: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:4470: result: ---------------- configuring other programs -----------------" >&5 +echo "${ECHO_T}---------------- configuring other programs -----------------" >&6 +# Check whether --with-kdoc or --without-kdoc was given. +if test "${with_kdoc+set}" = set; then + withval="$with_kdoc" + kdocdir=$withval +else + kdocdir=${DEAL2_DIR}/contrib/kdoc/bin +fi; + echo "$as_me:4480: checking for kdoc" >&5 +echo $ECHO_N "checking for kdoc... $ECHO_C" >&6 + + if test "$kdocdir" != ${DEAL2_DIR}/contrib/kdoc/bin ; then + if test -r $kdocdir/kdoc ; then + echo "$as_me:4485: result: found" >&5 +echo "${ECHO_T}found" >&6 + else + echo "$as_me:4488: result: not found" >&5 +echo "${ECHO_T}not found" >&6 + { { echo "$as_me:4490: error: Invalid kdoc path $kdocdir/kdoc" >&5 +echo "$as_me: error: Invalid kdoc path $kdocdir/kdoc" >&2;} + { (exit 1); exit 1; }; } + fi + if test -r "$kdocdir/Version" ; then + kdocversion=`cat $kdocdir/Version` ; + else + kdocversion=1; + fi + else + kdocversion=`cat ${DEAL2_DIR}/contrib/kdoc/src/Version` + echo "$as_me:4502: result: using default version $kdocversion" >&5 +echo "${ECHO_T}using default version $kdocversion" >&6 + fi +# Check whether --with-docxx or --without-docxx was given. +if test "${with_docxx+set}" = set; then + withval="$with_docxx" + docxx=$withval +else + docxx=to-be-determined +fi; + if test "$docxx" = to-be-determined ; then + # Extract the first word of ""doc++"", so it can be a program name with args. +set dummy "doc++"; ac_word=$2 +echo "$as_me:4516: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_docxx+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $docxx in + [\\/]* | ?:[\\/]*) + ac_cv_path_docxx="$docxx" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_docxx="$ac_dir/$ac_word" + echo "$as_me:4533: found $ac_dir/$ac_word" >&5 + break +fi +done -subdirs="tests contrib" + ;; +esac +fi +docxx=$ac_cv_path_docxx +if test -n "$docxx"; then + echo "$as_me:4544: result: $docxx" >&5 +echo "${ECHO_T}$docxx" >&6 +else + echo "$as_me:4547: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + else + echo "$as_me:4552: checking for doc++" >&5 +echo $ECHO_N "checking for doc++... $ECHO_C" >&6 + if test -x "$docxx" ; then + echo "$as_me:4555: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:4558: result: no" >&5 +echo "${ECHO_T}no" >&6 + docxx= + fi + fi +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +echo "$as_me:4566: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_PERL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + if $as_executable_p "$ac_dir/$ac_word"; then + ac_cv_path_PERL="$ac_dir/$ac_word" + echo "$as_me:4583: found $ac_dir/$ac_word" >&5 + break +fi +done + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + echo "$as_me:4594: result: $PERL" >&5 +echo "${ECHO_T}$PERL" >&6 +else + echo "$as_me:4597: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +subdirs="$subdirs contrib tests" -trap '' 1 2 15 +echo "$as_me:4603: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:4605: result: --------------------- generating output ---------------------" >&5 +echo "${ECHO_T}--------------------- generating output ---------------------" >&6 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 +ac_config_files="$ac_config_files common/Make.global_options common/Makefile.template doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile" test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' fi -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - DEFS=-DHAVE_CONFIG_H -# Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL # Generated automatically by configure. # Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# # Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. +# configure, is in config.log if it exists. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option +debug=false +SHELL=\${CONFIG_SHELL-$SHELL} +ac_cs_invocation="\$0 \$@" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +exec 6>&1 + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 do - case "\$ac_option" in + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:4806: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # This is an error. + -*) { { echo "$as_me:4825: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + esac + shift done -ac_given_srcdir=$srcdir +exec 5>>config.log +cat >&5 << _ACEOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## + +This file was extended by $as_me 2.52, executed with + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + > $ac_cs_invocation +on `(hostname || uname -n) 2>/dev/null | sed 1q` -trap 'rm -fr `echo "common/Make.global_options common/Makefile.template doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile base/include/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +_ACEOF EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@DEAL2_DIR@%$DEAL2_DIR%g -s%@DEAL_II_MAJOR@%$DEAL_II_MAJOR%g -s%@DEAL_II_MINOR@%$DEAL_II_MINOR%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@CC@%$CC%g -s%@CXX@%$CXX%g -s%@GXX_VERSION@%$GXX_VERSION%g -s%@enableshared@%$enableshared%g -s%@lib_suffix@%$lib_suffix%g -s%@CXXFLAGSG@%$CXXFLAGSG%g -s%@CXXFLAGSO@%$CXXFLAGSO%g -s%@enablemultithreading@%$enablemultithreading%g -s%@withmultithreading@%$withmultithreading%g -s%@F77@%$F77%g -s%@F77_VERSION@%$F77_VERSION%g -s%@F77FLAGSO@%$F77FLAGSO%g -s%@F77FLAGSG@%$F77FLAGSG%g -s%@F77LIBS@%$F77LIBS%g -s%@PERL@%$PERL%g -s%@USE_CONTRIB_HSL@%$USE_CONTRIB_HSL%g -s%@enablemultigrid@%$enablemultigrid%g -s%@kdocdir@%$kdocdir%g -s%@kdocversion@%$kdocversion%g -s%@docxx@%$docxx%g -s%@TECPLOT_LIBRARY_PATH@%$TECPLOT_LIBRARY_PATH%g -s%@TECPLOT_INCLUDE_PATH@%$TECPLOT_INCLUDE_PATH%g -s%@subdirs@%$subdirs%g +cat >>$CONFIG_STATUS <<\EOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "common/Make.global_options" ) CONFIG_FILES="$CONFIG_FILES common/Make.global_options" ;; + "common/Makefile.template" ) CONFIG_FILES="$CONFIG_FILES common/Makefile.template" ;; + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/auto/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/auto/Makefile" ;; + "doc/auto/kdoc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/auto/kdoc/Makefile" ;; + "base/include/base/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS base/include/base/config.h" ;; + *) { { echo "$as_me:4866: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +fi + +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +EOF + +cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@DEAL2_DIR@,$DEAL2_DIR,;t t +s,@DEAL_II_MAJOR@,$DEAL_II_MAJOR,;t t +s,@DEAL_II_MINOR@,$DEAL_II_MINOR,;t t +s,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@target@,$target,;t t +s,@target_cpu@,$target_cpu,;t t +s,@target_vendor@,$target_vendor,;t t +s,@target_os@,$target_os,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@CXX@,$CXX,;t t +s,@CXXFLAGS@,$CXXFLAGS,;t t +s,@ac_ct_CXX@,$ac_ct_CXX,;t t +s,@GXX_VERSION@,$GXX_VERSION,;t t +s,@CXXFLAGSG@,$CXXFLAGSG,;t t +s,@CXXFLAGSO@,$CXXFLAGSO,;t t +s,@CXXFLAGSPIC@,$CXXFLAGSPIC,;t t +s,@LDFLAGSPIC@,$LDFLAGSPIC,;t t +s,@enablemultithreading@,$enablemultithreading,;t t +s,@withmultithreading@,$withmultithreading,;t t +s,@F77@,$F77,;t t +s,@F77_VERSION@,$F77_VERSION,;t t +s,@F77FLAGSO@,$F77FLAGSO,;t t +s,@F77FLAGSG@,$F77FLAGSG,;t t +s,@F77FLAGSPIC@,$F77FLAGSPIC,;t t +s,@F77LIBS@,$F77LIBS,;t t +s,@enableshared@,$enableshared,;t t +s,@enablemultigrid@,$enablemultigrid,;t t +s,@TECPLOT_LIBRARY_PATH@,$TECPLOT_LIBRARY_PATH,;t t +s,@TECPLOT_INCLUDE_PATH@,$TECPLOT_INCLUDE_PATH,;t t +s,@USE_CONTRIB_HSL@,$USE_CONTRIB_HSL,;t t +s,@kdocdir@,$kdocdir,;t t +s,@kdocversion@,$kdocversion,;t t +s,@docxx@,$docxx,;t t +s,@PERL@,$PERL,;t t +s,@subdirs@,$subdirs,;t t CEOF + EOF -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" + cat >>$CONFIG_STATUS <<\EOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF +fi # test -n "$CONFIG_FILES" -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then +cat >>$CONFIG_STATUS <<\EOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` else ac_dir_suffix= ac_dots= fi - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; esac + if test x"$ac_file" != x-; then + { echo "$as_me:5104: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + configure_input="Generated automatically from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:5122: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:5135: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac +done +EOF +cat >>$CONFIG_STATUS <<\EOF - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* +# +# CONFIG_HEADER section. +# # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' -ac_dC='\3' -ac_dD='%g' -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='\([ ]\)%\1#\2define\3' +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' +ac_dC=' ' +ac_dD=',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='$,\1#\2define\3' ac_uC=' ' -ac_uD='\4%g' -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_eB='$%\1#\2define\3' -ac_eC=' ' -ac_eD='%g' - -if test "${CONFIG_HEADERS+set}" != set; then -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -fi -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then +ac_uD=',;t' + +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in + test x"$ac_file" != x- && { echo "$as_me:5195: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:5206: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:5219: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in EOF -# Transform confdefs.h into a sed script conftest.vals that substitutes -# the proper values into config.h.in to produce config.h. And first: -# Protect against being on the right side of a sed subst in config.status. -# Protect against being in an unquoted here document in config.status. -rm -f conftest.vals -cat > conftest.hdr <<\EOF -s/[\\&%]/\\&/g -s%[\\$`]%\\&%g -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp -s%ac_d%ac_u%gp -s%ac_u%ac_e%gp +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\EOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +: end EOF -sed -n -f conftest.hdr confdefs.h > conftest.vals -rm -f conftest.hdr +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. -cat >> conftest.vals <<\EOF -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +cat >>conftest.undefs <<\EOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, EOF -# Break up conftest.vals because some shells have a limit on -# the size of here documents, and old seds have small limits too. +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS +echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # egrep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail -while : +while grep . conftest.undefs >/dev/null do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in -' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs done -rm -f conftest.vals - -cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\EOF + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + if test x"$ac_file" = x-; then + echo "/* Generated automatically by configure. */" >$tmp/config.h else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" != x-; then + if cmp -s $ac_file $tmp/config.h 2>/dev/null; then + { echo "$as_me:5336: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + fi + rm -f $ac_file + mv $tmp/config.h $ac_file fi - rm -f $ac_file - mv conftest.h $ac_file + else + cat $tmp/config.h + rm -f $tmp/config.h fi -fi; done - +done EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +cat >>$CONFIG_STATUS <<\EOF -exit 0 +{ (exit 0); exit 0; } EOF chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 +ac_clean_files=$ac_clean_files_save + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi +# +# CONFIG_SUBDIRS section. +# if test "$no_recursion" != yes; then # Remove --cache-file and --srcdir arguments so they do not pile up. @@ -3758,12 +5413,15 @@ if test "$no_recursion" != yes; then ac_prev= continue fi - case "$ac_arg" in + case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; @@ -3773,71 +5431,102 @@ if test "$no_recursion" != yes; then esac done - for ac_config_dir in tests contrib; do + for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. - if test ! -d $srcdir/$ac_config_dir; then - continue - fi - - echo configuring in $ac_config_dir + test -d $srcdir/$ac_subdir || continue - case "$srcdir" in + { echo "$as_me:5440: configuring in $ac_subdir" >&5 +echo "$as_me: configuring in $ac_subdir" >&6;} + case $srcdir in .) ;; + *) { case "./$ac_subdir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="./$ac_subdir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; *) - if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; - else - { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } - fi - ;; + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + if test -d ./$ac_subdir; then :; + else + { { echo "$as_me:5462: error: cannot create \`pwd\`/$ac_subdir" >&5 +echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;} + { (exit 1); exit 1; }; } + fi + ;; esac ac_popdir=`pwd` - cd $ac_config_dir + cd $ac_subdir - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` - case "$srcdir" in + case $srcdir in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; - /*) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_config_dir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; esac # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure; then - ac_sub_configure=$ac_sub_srcdir/configure + if test -f $ac_sub_srcdir/configure.gnu; then + ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'" + elif test -f $ac_sub_srcdir/configure; then + ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'" elif test -f $ac_sub_srcdir/configure.in; then ac_sub_configure=$ac_configure else - echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 + { echo "$as_me:5493: WARNING: no configuration information is in $ac_subdir" >&5 +echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case "$cache_file" in - /*) ac_sub_cache_file=$cache_file ;; + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative path. - ac_sub_cache_file="$ac_dots$cache_file" ;; + ac_sub_cache_file=$ac_dots$cache_file ;; esac - echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" + { echo "$as_me:5507: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5 +echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;} # The eval makes quoting arguments work. - if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir - then : - else - { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } - fi + eval $ac_sub_configure $ac_sub_configure_args \ + --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir || + { { echo "$as_me:5512: error: $ac_sub_configure failed for $ac_subdir" >&5 +echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;} + { (exit 1); exit 1; }; } fi cd $ac_popdir done fi +echo +echo +echo ------------------------------------------------------------- +echo +echo " The deal.II library is now configured. In order to" +echo " compile it and to generate the documentation, just" +echo " call the 'make' command without arguments. For more" +echo " information, see the Readme file." +echo +echo ------------------------------------------------------------- +echo + diff --git a/deal.II/configure.in b/deal.II/configure.in index 3ff7be05e2..8edb644c46 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -8,9 +8,15 @@ dnl In doc/Makefile some information on the kind of documentation dnl is stored. dnl dnl -dnl author: Wolfgang Bangerth, Guido Kanschat 1999, 2000, 2001 +dnl authors: Wolfgang Bangerth, Guido Kanschat, and others +dnl 1999, 2000, 2001, 2002 dnl + +dnl ------------------------------------------------------------- +dnl Administrativa +dnl ------------------------------------------------------------- + dnl switch off caching, since that leads to insurmountable trouble if dnl you call ./configure subsequently on different systems without dnl clearing the cache @@ -18,21 +24,34 @@ define([AC_CACHE_LOAD], )dnl define([AC_CACHE_SAVE], )dnl AC_REVISION($Revision$) AC_INIT(base) + +dnl Where the output config file is located AC_CONFIG_HEADER(base/include/base/config.h) +dnl Have the auxiliary tools like config.guess etc in contrib/config +AC_CONFIG_AUX_DIR(contrib/config) + + + + +dnl ------------------------------------------------------------- +dnl Globals: Paths and versions +dnl ------------------------------------------------------------- + dnl Set the path to the deal.II libraries to `pwd` DEAL2_DIR=`pwd` AC_SUBST(DEAL2_DIR) dnl Set major and minor version numbers of the deal.II library, dnl both as preprocessor variables and in Makefiles +DEAL_II_VERSION="`cat Version`" DEAL_II_MAJOR=`cat Version | perl -pi -e 's/^(\d+)\..*/$1/;'` DEAL_II_MINOR=`cat Version | perl -pi -e 's/^\d+\.(\d+).*/$1/;'` AC_DEFINE_UNQUOTED(DEAL_II_MAJOR, $DEAL_II_MAJOR, [Major version number of deal.II]) AC_DEFINE_UNQUOTED(DEAL_II_MINOR, $DEAL_II_MINOR, [Minor version number of deal.II]) -AC_MSG_RESULT(Configuring deal.II version `cat Version`) +AC_MSG_RESULT(Configuring deal.II version $DEAL_II_VERSION) AC_SUBST(DEAL_II_MAJOR) AC_SUBST(DEAL_II_MINOR) @@ -43,842 +62,177 @@ dnl AC_SUBST(target_os) dnl Set the language for which subsequent tests shall be dnl performed to C++ -AC_LANG_CPLUSPLUS +AC_LANG(C++) dnl ------------------------------------------------------------- -dnl Find external programs +dnl C/C++ compilers dnl ------------------------------------------------------------- -dnl Find a C compiler, which is used when building -dnl shared libaries. This modifies the variable CC. -dnl In order to get the absolute path of the compiler, use the -dnl second line -AC_PROG_CC -AC_PATH_PROG(CC,$CC) - - +AC_MSG_RESULT() +AC_MSG_RESULT(---------------- configuring C/C++ compilers ----------------) -dnl Find the right C++ compiler. Note that for historical reasons, the -dnl compiler name and version is in the name GXX_VERSION, even if the -dnl compiler is not GCC. +dnl Find a C compiler. This modifies the variable CC. +dnl In order to get the absolute path of the compiler, use the +dnl second line +dnl +dnl Likewise, find the right C++ compiler. Note that for historical +dnl reasons, the compiler name and version is in the name GXX_VERSION, +dnl even if the compiler is not GCC. dnl dnl Note that on MIPS systems, the AC_PROG_CXX call erroneously sets dnl -g in CXXFLAGS, which is not exactly what we want, so we store dnl the old value temporarily +AC_PROG_CC +AC_PATH_PROG(CC,$CC) + OLDCXXFLAGS="$CXXFLAGS" AC_PROG_CXX CXXFLAGS="$OLDCXXFLAGS" AC_PATH_PROG(CXX,$CXX) -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 - *"egcs-1.1"*) - AC_MSG_RESULT(compiler is egcs-1.1) - GXX_VERSION=egcs1.1 - ;; - *2.95*) - AC_MSG_RESULT(compiler is gcc-2.95) - GXX_VERSION=gcc2.95 - ;; - *2.96*) - AC_MSG_RESULT(compiler is gcc-2.96) - GXX_VERSION=gcc2.96 - ;; - *2.97*) - AC_MSG_RESULT(compiler is gcc-2.97) - GXX_VERSION=gcc2.97 - ;; - *3.0*) - AC_MSG_RESULT(compiler is gcc-3.0) - GXX_VERSION=gcc3.0 - ;; - *3.1*) - AC_MSG_RESULT(compiler is gcc-3.1) - GXX_VERSION=gcc3.1 - ;; - *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) - dnl These compilers are too old to support a useful subset - dnl of modern C++, so we don't support them - AC_MSG_RESULT(compiler is $GXX_VERSION_STRING) - AC_MSG_ERROR(compiler is not supported) - ;; - *) - AC_MSG_RESULT(compiler is unknown but accepted gcc version) - GXX_VERSION=gcc-other - ;; - esac -else - - dnl Check for IBM xlC. For some reasons, depending on some environment variables, - dnl moon position, and other reasons unknown to me, the compiler displays - dnl different names in the first line of output, so check various possibilities - is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`" - if test "x$is_ibm_xlc" != "x" ; then - dnl Ah, this is IBM's C++ compiler. Unfortunately, we don't presently - dnl know how to check the version number, so assume that is sufficiently - dnl high... - AC_MSG_RESULT(compiler is IBM xlC) - GXX_VERSION=ibm_xlc - else - - # Check whether we are dealing with the MIPSpro C++ compiler - is_mips_pro="`($CXX -version 2>&1) | grep MIPSpro`" - if test "x$is_mips_pro" != "x" ; then - AC_MSG_RESULT(compiler is MIPSpro C++ compiler) - GXX_VERSION=MIPSpro - else - - # Intel's ICC C++ compiler? - is_intel_icc="`($CXX -V 2>&1) | grep 'Intel(R) C++ Compiler'`" - if test "x$is_intel_icc" != "x" ; then - AC_MSG_RESULT(compiler is Intel ICC) - GXX_VERSION=intel_icc - else - - # Or DEC's cxx compiler? - is_dec_cxx="`($CXX -V 2>&1) | grep 'Compaq C++'`" - if test "x$is_dec_cxx" != "x" ; then - AC_MSG_RESULT(compiler is Compaq cxx) - GXX_VERSION=compaq_cxx - else - - is_sun_cc="`($CXX -V 2>&1) | grep 'Sun WorkShop'`" - if test "x$is_sun_cc" != "x" ; then - AC_MSG_RESULT(compiler is Sun Workshop compiler) - GXX_VERSION=sun_workshop - else - - is_kai_cc="`($CXX -V 2>&1) | grep 'KAI C++'`" - if test "x$is_kai_cc" != "x" ; then - AC_MSG_RESULT(compile is KAI C++) - GXX_VERSSION=kai_cc - else - - dnl Aw, nothing suitable found... - AC_MSG_ERROR(Unrecognized compiler, sorry) - exit 1 - fi - fi - fi - fi - fi - fi -fi -AC_SUBST(GXX_VERSION) - - - - -dnl ------------------------------------------------------------- -dnl Next test whether shared libraries support is requested. This -dnl has to be done before other flags are set, as they might depend -dnl on whether we want to use shared libs. -dnl -dnl Default to shared libs is yes, but value will be adjusted to -dnl operating system below. -dnl ------------------------------------------------------------- -AC_ARG_ENABLE(shared, -[ --enable-shared Set compiler flags to generate shared libraries], - enableshared=$enableval, - enableshared=yes) - -dnl On AIX and alpha, shared libs don't work for us at present, so -dnl disable them (we should probably use libtool there). Likewise on -dnl CygWin Windows systems, where we don't know how to create shared -dnl libs at all (at least at present) -case "$target" in - *-aix* | alpha*-linux* | alpha*-osf[45]* | *cygwin ) - AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead) - enableshared=no - ;; -esac - - -dnl Output results; set compile flags accordingly further below -if test $enableshared = yes ; then - AC_MSG_RESULT(configuring for shared libraries) - lib_suffix=.so; -else - AC_MSG_RESULT(configuring for static libraries) - lib_suffix=.a; -fi - - -AC_SUBST(enableshared) -AC_SUBST(lib_suffix) - - +dnl Next determine which C++ compiler we have here and set compilation +dnl flags accordingly. Note that for historical reasons the name and +dnl version of the compiler is written to the variable GXX_VERSION. +DEAL_II_DETERMINE_CXX_BRAND +DEAL_II_SET_CXX_FLAGS +DEAL_II_SET_CXX_DEBUG_FLAG - -dnl ------------------------------------------------------------- -dnl Set compiler flags to their default values. They will be -dnl modified according to other options further down below -dnl -dnl CXXFLAGSO are the flags for optimized mode -dnl CXXFLAGSG are the flags for debug mode -dnl ------------------------------------------------------------- -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 set some flags that are specific to some versions of the - dnl compiler: - dnl - egcs1.1 yielded incorrect code with some loop unrolling - dnl - after egcs1.1, the optimization flag -fstrict-aliasing was - dnl introduced, which enables better optimizations for - dnl well-written C++ code. we believe that deal.II falls into that - dnl category and thus enable the flag - dnl - egcs1.1 yielded incorrect code with vtable-thunks. thus disable - dnl them for egcs1.1. however, if on Linux, disabling them - dnl prevents programs from being linked, so take the risk of broken - dnl thunks on this platform - - case "$GXX_VERSION" in - egcs1.1) - case "$target" in - *linux*) - ;; - - *) - CXXFLAGSG = "$CXXFLAGSG -fno-vtable-thunks" - CXXFLAGSO = "$CXXFLAGSO -fno-vtable-thunks" - ;; - esac - ;; - - dnl All other gcc versions - *) - CXXFLAGSO="$CXXFLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" - ;; - esac - - dnl - after gcc2.95, some flags were deemed obsolete for C++ - dnl (and are only supported for C any more), so only define them for - dnl previous compilers - - case "$GXX_VERSION" in - egcs1.1 | gcc2.95) - CXXFLAGSG="$CXXFLAGSG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs" - CXXFLAGSO="$CXXFLAGSO -fnonnull-objects" - ;; - - *) - ;; - esac - - dnl Some gcc compiler versions have a problem when using an unsigned count - dnl in the std::advance function. Unfortunately, this also happens - dnl occasionally from within the standard library, so we can't prevent the - dnl warning messages. Since this is annoying, switch of the flag -W which - dnl causes this. - DEAL_II_CHECK_ADVANCE_WARNING - if test "x$DEAL_II_ADVANCE_WARNING" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-W //g;'`" - fi - -else - - if test "x$GXX_VERSION" = "xibm_xlc" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG -check=bounds -info=all -qrtti=all" - CXXFLAGSO="$CXXFLAGS -O2 -w -qansialias -qrtti=all" - else - - if test "x$GXX_VERSION" = "xMIPSpro" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG -LANG:std" - CXXFLAGSO="$CXXFLAGS -LANG:alias_const=ON -LANG:std -w" - - else - - if test "x$GXX_VERSION" = "xintel_icc" ; then - dnl Disable some compiler warnings, as they often are wrong on - dnl out code: - dnl #175: `subscript out of range' (doesn't take into account that - dnl some code is only reachable for some dimensions) - dnl #327: `NULL reference is not allowed' (this happens when we - dnl write "*static_cast(0)" or some such thing, - dnl which we do to create invalid references) - dnl #525: `type "DataOutBase::DataOutBase" is an inaccessible type - dnl (allowed for compatibility)' (I don't understand what the - dnl compiler means) - CXXFLAGSG="$CXXFLAGS -Kc++eh -Krtti -w1 -wd175 -wd525 -wd327 -DDEBUG -inline_debug_info" - CXXFLAGSO="$CXXFLAGS -Kc++eh -Krtti -O2 -tpp6 -axiMK -unroll -w0" - - else - - if test "x$GXX_VERSION" = "xcompaq_cxx" ; then - dnl Disable some warning messages: - dnl #175: `subscript out of range' (detected when instantiating a template - dnl and looking at the indices of an array of template dependent - dnl size, this error is triggered in a branch that is not taken - dnl for the present space dimension) - dnl #236 and - dnl #237: `controlling expression is constant' (in while(true), or switch(dim)) - dnl #381: `extra ";" ignored' (at function or namespace closing brace) - dnl #487: `Inline function ... cannot be explicitly instantiated' (also - dnl reported when we instantiate the entire class) - dnl #1136:`conversion to integral type of smaller size could lose data' - dnl (occurs rather often in addition of int and x.size(), because the latter - dnl is size_t=long unsigned int on Alpha) - dnl #1156:`meaningless qualifiers not compatible with "..." and "..."' - dnl (cause unknown, happens when taking the address of a template - dnl member function) - dnl #111 and - dnl #1182:`statement either is unreachable or causes unreachable code' - dnl (happens in switch(dim) clauses for other dimensions than - dnl the present one) - dnl - dnl Also disable the following error: - dnl #265: `class "..." is inaccessible' (happens when we try to initialize - dnl a static member variable in terms of another static member variable - dnl of the same class if the latter is not public and therefore not - dnl accessible at global scope in general. I nevertheless think that - dnl this is valid.) - dnl - dnl Besides this, choose the most standard conforming mode of the compiler, - dnl i.e. -model ansi and -std strict_ansi. Unfortunately, we have to - dnl also add the flag -implicit_local (generating implicit instantiations of - dnl template with the `weak' link flag) since otherwise not all templates - dnl are instantiated (also some from the standards library are missing). - - CXXFLAGSG="$CXXFLAGS -model ansi -std strict_ansi -w1 -msg_display_number -timplicit_local -DDEBUG" - CXXFLAGSO="$CXXFLAGS -model ansi -std strict_ansi -w2 -msg_display_number -timplicit_local -fast" - - for i in 175 236 237 381 487 1136 1156 111 1182 265 ; do - CXXFLAGSG="$CXXFLAGSG -msg_disable $i" - CXXFLAGSO="$CXXFLAGSO -msg_disable $i" - done - - dnl If we use -model ansi to compile the files, we also have to specify - dnl it for linking - LDFLAGS="$LDFLAGS -model ansi" - - dnl For some reason, cxx also forgets to add the math lib to the linker - dnl line, so we do that ourselves - LDFLAGS="$LDFLAGS -lm" - - dnl if necessary: -shared, -pthread - dnl Should one use -compress? -distinguish_nested_enums? -nousing_std? - dnl -pch? -noimplicit_include? - else - - if test "x$GXX_VERSION" = "xsun_workshop" ; then - CXXFLAGSG="$CXXFLAGS -DDEBUG" - CXXFLAGSO="$CXXFLAGS -fast" - - else - - dnl Other compiler - AC_MSG_ERROR(No compiler options for this C++ compiler - specified at present) - exit 1 - fi - fi - fi - fi - fi -fi - +AC_SUBST(GXX_VERSION) AC_SUBST(CXXFLAGSG) AC_SUBST(CXXFLAGSO) +AC_SUBST(CXXFLAGSPIC) AC_SUBST(LIBS) AC_SUBST(LDFLAGS) +AC_SUBST(LDFLAGSPIC) -dnl We still need to set the flag for debug output. We will usually -dnl use -ggdb, but on DEC Alpha OSF1, this leads to stabs symbols that are -dnl too long for the system assembler. We will therefore check whether the -dnl assembler can handle these symbols by a rather perverse function with -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. -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 -#include - -typedef map > > T; - -bool f(T& t1, const T* t2) { - t1["s"] = map >(); - map > >::const_iterator i2=t1.begin(); - map > >::const_iterator i1=t2->begin(); - return (i1==i2); -} - ], - [ - ; - ], - [ - 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 - -else - dnl Non-gcc compilers use -g instead of -ggdb - CXXFLAGSG="-g $CXXFLAGSG" -fi - - - -dnl Next set flags for shared libraries, if so needed. This is simple, -dnl as most compilers want to see -fPIC. Some others need -KPIC, however -if test $enableshared = yes ; then - case "$GXX_VERSION" in - *egcs* | *gcc* | *ibm_xlc*) - CFLAGS="$CFLAGS -fPIC" - CXXFLAGSG="$CXXFLAGSG -fPIC" - CXXFLAGSO="$CXXFLAGSO -fPIC" - LDFLAGS="$LDFLAGS -fPIC" - ;; - *MIPSpro*) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - LDFLAGS="$LDFLAGS -KPIC" - ;; - intel_icc) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - LDFLAGS="$LDFLAGS -KPIC" - ;; - - compaq_cxx) - CFLAGS="$CFLAGS -shared" - CXXFLAGSG="$CXXFLAGSG -shared" - CXXFLAGSO="$CXXFLAGSO -shared" - LDFLAGS="$LDFLAGS -shared" - ;; - - sun_workshop) - CFLAGS="$CFLAGS -KPIC" - CXXFLAGSG="$CXXFLAGSG -KPIC" - CXXFLAGSO="$CXXFLAGSO -KPIC" - ;; - - *) - AC_MSG_ERROR(No shared lib options for this compiler specified) - exit 1 - esac -fi - - - dnl ------------------------------------------------------------- -dnl Multithreading +dnl Multithreading dnl ------------------------------------------------------------- -dnl Test whether multithreading support is requested. This -dnl does not tell deal.II to actually use it, but the -dnl compiler flags are set to allow for it, -AC_ARG_ENABLE(multithreading, -[ --enable-multithreading Set compiler flags to allow for multithreaded programs], - enablemultithreading=$enableval, - enablemultithreading=no) +dnl Test whether multithreading support is requested. This +dnl does not tell deal.II to actually use it, but the +dnl compiler flags are set to allow for it. +DEAL_II_CHECK_MULTITHREADING +DEAL_II_SET_MULTITHREADING_FLAGS AC_SUBST(enablemultithreading) - -dnl Adjust compiler parameters if multithreading is desired: -dnl - Use the right -threads/-pthread/-mthread option -dnl - Set preprocessor directives if necessary -dnl - __USE_MALLOC tells gcc to use thread safe STL allocators -dnl - _REENTRANT is a flag that is used in the standard UNIX -dnl headers to make reentrant functions (with suffix _r) declared -dnl -dnl Do not use AC_DEFINE when using these two flags, since that would -dnl put them into config.h, instead of the compiler flags. Then, however, -dnl it would be necessary to include config.h as _first_ file in all -dnl files, since the flags change the things we include. It is therefore -dnl better to put the flags into the command line, since then we have them -dnl defined for all include files. -if test "$enablemultithreading" = yes ; then - if test "$GXX" = yes ; then - DEAL_II_GET_THREAD_FLAGS - DEAL_II_THREAD_CPPFLAGS - - CXXFLAGSG="$CXXFLAGSG -D__USE_MALLOC -D_REENTRANT" - CXXFLAGSO="$CXXFLAGSO -D__USE_MALLOC -D_REENTRANT" - else - if test "x$GXX_VERSION" = "xibm_xlc" ; then - CXXFLAGSG = "$CXXFLAGSG -threaded" - CXXFLAGSO = "$CXXFLAGSO -threaded" - else - dnl Other compiler - AC_MSG_ERROR(No threading compiler options for this C++ compiler - specified at present) - exit 1 - fi - fi -fi - - - - -dnl Test whether the user wants the multithread code in the -dnl library to be used -AC_ARG_WITH(multithreading, -[ --with-multithreading=DIR use DIR as path to the ACE library], - withmultithreading=$withval, - withmultithreading=no) -if test "$withmultithreading" != no ; then - AC_MSG_CHECKING(for ACE) - if test -d "$withmultithreading" ; then - AC_MSG_RESULT(found) - else - AC_MSG_RESULT(not found) - AC_MSG_ERROR(Invalid ACE path) - fi - - AC_DEFINE(DEAL_II_USE_MT, 1, - [Flag indicating whether the library shall be compiler for - multithreaded applications]) -fi +dnl Next also check whether the MT code shall be used through ACE +DEAL_II_CHECK_USE_ACE +DEAL_II_SET_ACE_FLAGS AC_SUBST(withmultithreading) -dnl Possibly remove -ansi -pedantic from compiler flags again, since ACE -dnl yields hundreds of error messages with these flags. do that -dnl only conditionally -if test "$enablemultithreading" = yes ; then - if test "$GXX" = yes ; then - DEAL_II_CHECK_ACE_FORBIDDEN_FLAGS - if test "x$deal_II_ace_remove_ansi" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-ansi//g;'`" - CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-ansi//g;'`" - fi - if test "x$deal_II_ace_remove_pedantic" = "xyes" ; then - CXXFLAGSG="`echo $CXXFLAGSG | perl -pi -e 's/-pedantic//g;'`" - CXXFLAGSO="`echo $CXXFLAGSO | perl -pi -e 's/-pedantic//g;'`" - fi - fi -fi - - dnl -------------------------------------------------------------- -dnl Check for possibly disabled backward compatibility functions +dnl Kludges and C++ compatibility dnl -------------------------------------------------------------- -AC_ARG_ENABLE(compat-blocker, -[ --enable-compat-blocker=mapping Block functions that implicitely assume a Q1 mapping], - enable_compat_blocker=$enableval, - enable_compat_blocker="") -dnl Replace the comma-separated list by a space-separated one -disable_compat=`echo $enable_compat_blocker | perl -pi -e 's/,/ /g;'` -dnl Check that each entry is an allowed one -for i in $disable_compat ; do - case $i in - mapping) - AC_MSG_RESULT(Disabling backward compatibility feature: "$i") - ;; - *) - AC_MSG_ERROR(Backward compatibility feature "$i" unknown) - ;; - esac -done -dnl Now for each known feature, either disable it or enable it. -dnl Default is to enable. In order to have these flags in config.h, -dnl it is necessary to AC_DEFINE them actually by name, rather than -dnl by some loop variable, since otherwise autoheader can't generate -dnl an entry for config.h for this variable -for i in mapping ; do - uppercase=`echo $i | perl -pi -e 'tr/a-z/A-Z/;'` - if test -n "`echo $disable_compat | grep $i`" ; then - compat_value=false - else - compat_value=true - fi - - case $i in - mapping) - AC_DEFINE_UNQUOTED(DEAL_II_COMPAT_MAPPING,$compat_value, - [Backward compatibility support for functions - and classes that do not take an explicit mapping - variable, but rather use a default Q1 mapping instead]) - ;; - *) - AC_MSG_ERROR(Backward compatibility feature "$i" unknown) - ;; - esac -done - - -dnl -------------------------------------------------------------- dnl Various kludges for various systems: some systems need special dnl treatment for some things. Since they sometimes depend on dnl whether other flags are set (e.g. the need for defining dnl -D__EXTENSIONS__ depends on whether we use/not use threading dnl options), this is done after checking for multithreading -dnl -------------------------------------------------------------- - - -dnl On some systems (well, DEC Alphas are the only ones we know of), -dnl gcc2.95 throws the hands in the air if it sees one of the AssertThrow -dnl calls, and dies with an internal compiler error. If this is the case, -dnl we disable AssertThrow and simply replace it with an `abort' if the -dnl condition is not satisfied. Check this for debug and optimized mode -dnl compiler flags, and define `DISABLE_ASSERT_THROW' if necessary. -DEAL_II_CHECK_ASSERT_THROW(debug, $CXXFLAGSG, CXXFLAGSG="-DDISABLE_ASSERT_THROW $CXXFLAGSG") -DEAL_II_CHECK_ASSERT_THROW(optimized, $CXXFLAGSO, CXXFLAGSO="-DDISABLE_ASSERT_THROW $CXXFLAGSO") -dnl IBM's xlC compiler has a problem with some kind of code that does not -dnl "using namespace std;" Try to work around if necessary +DEAL_II_CHECK_ASSERT_THROW(debug, $CXXFLAGSG, + [CXXFLAGSG="-DDISABLE_ASSERT_THROW $CXXFLAGSG"]) +DEAL_II_CHECK_ASSERT_THROW(optimized, $CXXFLAGSO, + [CXXFLAGSO="-DDISABLE_ASSERT_THROW $CXXFLAGSO"]) DEAL_II_CHECK_IBM_XLC_ERROR - -dnl See whether we can use the std::iterator, std::stringstream, -dnl and std::numeric_limits classes, and other compiler features DEAL_II_HAVE_STD_ITERATOR DEAL_II_HAVE_STD_STRINGSTREAM DEAL_II_HAVE_STD_NUMERIC_LIMITS DEAL_II_HAVE_STD_OSTREAM_HEADER DEAL_II_HAVE_STD_IOSFWD_HEADER - - - -dnl ====================================================================== -dnl With all the right flags in place now, check for operating system -dnl properties like header files and accessibility of special functions -dnl with these flags. - -dnl See whether we have to declare lrand48 ourselves with -ansi DEAL_II_HAVE_LRAND48_DECLARED - -dnl See whether getrusage() is declared properly, and for the present -dnl flags. likewise for other functions as well DEAL_II_CHECK_GETRUSAGE DEAL_II_CHECK_ISNAN DEAL_II_CHECK_RAND_R AC_CHECK_FUNCS(gethostname) -dnl ====================================================================== + + +dnl ------------------------------------------------------------- +dnl Fortran 77 compilers +dnl ------------------------------------------------------------- + +AC_MSG_RESULT() +AC_MSG_RESULT(----------------- configuring F77 compilers -----------------) + dnl Find path to a Fortran 77 compiler. By default try to find a -dnl vendor compiler which is usually names `f77', and only if that could +dnl vendor compiler which is usually named `f77', and only if that could dnl not be found, use `g77' instead. The reasoning is that usually vendor dnl compilers are much better adapted to the system at hand, and since dnl Fortran code is often used for efficiency reasons, this is dnl important. Likewise, if external Fortran code is imported, it is dnl usually code that is well tested and does not need much debugging, so dnl good optimizations are helpful again. -AC_PATH_PROG(F77,f77) -if test "x$F77" = "x" ; then - dnl Could not find an executable names `f77'. Try `g77' - AC_PATH_PROG(F77,g77) -fi +dnl dnl It is possible that no Fortran 77 compiler was found. Don't care, dnl it may be that we don't need one (but we check below, when we must dnl have it). +AC_PATH_PROGS(F77, [f77 g77]) -dnl Next try to find out something about the name and version of the compiler -if test "x$F77" != "x" ; then - F77_VERSION_STRING="`($F77 -v 2>&1)`" - if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" ; then - dnl Yes, this is a GNU g77 version. find out the right version - G77_VERSION_STRING="`($F77 -v 2>&1) | grep \"gcc version\"`" - case "$G77_VERSION_STRING" in - *"egcs-1.1"*) - AC_MSG_RESULT(compiler is egcs-1.1) - F77_VERSION=egcs1.1 - ;; - *2.95*) - AC_MSG_RESULT(compiler is gcc-2.95) - F77_VERSION=gcc2.95 - ;; - *2.96*) - AC_MSG_RESULT(compiler is gcc-2.96) - F77_VERSION=gcc2.96 - ;; - *2.97*) - AC_MSG_RESULT(compiler is gcc-2.97) - F77_VERSION=gcc2.97 - ;; - *3.0*) - AC_MSG_RESULT(compiler is gcc-3.0) - F77_VERSION=gcc3.0 - ;; - *3.1*) - AC_MSG_RESULT(compiler is gcc-3.1) - F77_VERSION=gcc3.1 - ;; - *2.4* | *2.5* | *2.6* | *2.7* | *2.8*) - dnl These compilers are too old to support a useful subset - dnl of modern C++, so we don't support them - AC_MSG_RESULT(compiler is $G77_VERSION_STRING) - AC_MSG_ERROR(compiler is not supported) - ;; - *) - AC_MSG_RESULT(compiler is unknown but accepted gcc version) - F77_VERSION=gcc-other - ;; - esac - - dnl For g77 versions, it is simple which flags to use since we already - dnl know them mostly from the C++ compiler - F77FLAGSG="$FFLAGS -ggdb -DDEBUG -pedantic -W -Wall" - F77FLAGSO="$FFLAGS -O2" - - dnl Some flags can only be set for some compilers as others either - dnl did not accept them or were buggy on them (see the explanation - dnl for CXXFLAGS for an explanation of some of these cases) - if test "x$F77_VERSION" != "xegcs1.1" ; then - F77FLAGSO="$F77FLAGSO -funroll-loops -funroll-all-loops -fstrict-aliasing" - fi - - dnl If necessary, add shared lib flags - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -fPIC" - F77FLAGSO="$F77FLAGSO -fPIC" - fi - - dnl Then we have to set the set of libraries we have to link with - dnl when linking C++ and Fortran code with the C++ compiler. For - dnl g77, this is only libg2c - F77LIBS="$F77LIBS -lg2c" - - else - - dnl No GNU g77 version, something else. Try to find out what it is: - if test -n "`echo $F77_VERSION_STRING | grep \"XL Fortran for AIX\"`" ; then - - dnl This is the "XL Fortran for AIX" compiler - F77_VERSION=AIXF77 - AC_MSG_RESULT(compiler is AIX Fortran77) - F77FLAGSG="$FFLAGS -g" - F77FLAGSO="$FFLAGS -O3 -w" - F77LIBS="$F77LIBS -lxlf90" - - dnl Note: presently, we don't support shared libs on AIX, so we don't need - dnl to set -PIC or the like for this compiler (nonetheless, I couldn't find - dnl the right name of that flag anyway) - - else +dnl Next determine which C++ compiler we have here and set compilation +dnl flags accordingly. Note that for historical reasons the name and +dnl version of the compiler is written to the variable GXX_VERSION. +DEAL_II_DETERMINE_F77_BRAND +DEAL_II_SET_F77_FLAGS - dnl Umh, still something else unknown. Try to find it out by a different - dnl method (-V instead of -v): - F77_VERSION_STRING=`($F77 -V 2>&1)` - if test -n "`echo $F77_VERSION_STRING | grep \"WorkShop Compilers\"`" ; then - - dnl OK, this is the Sun Fortran77 compiler - AC_MSG_RESULT(compiler is Sun WorkShop f77) - F77_VERSION="SunF77" - F77FLAGSG="$FFLAGS -silent -g" - F77FLAGSO="$FFLAGS -silent -O3 -w" - F77LIBS="$F77LIBS -lF77 -lsunmath -lM77" - LDFLAGS="$LDFLAGS" - - dnl If necessary, add shared lib flags - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -PIC" - F77FLAGSO="$F77FLAGSO -PIC" - fi - - else - - dnl If we can detect IRIX's f77 somehow, then the following flags might - dnl be appropriate: - F77_VERSION_STRING=`($F77 -version 2>&1)` - if test -n "`echo $F77_VERSION_STRING | grep MIPSpro`" ; then - AC_MSG_RESULT(compiler is MIPSpro f77) - F77_VERSION="MIPSproF77" - F77FLAGSG="$FFLAGS -ansi -g" - F77FLAGSO="$FFLAGS -O3 -woffall" - F77LIBS="$F77LIBS -lftn" - - dnl If necessary, add shared lib flags - if test $enableshared = yes ; then - F77FLAGSG="$F77FLAGSG -shared -KPIC" - F77FLAGSO="$F77FLAGSO -shared -KPIC" - else - F77FLAGSG="$F77FLAGSG -non_shared" - F77FLAGSO="$F77FLAGSO -non_shared" - fi - - else - - dnl Now, this is a hard case, we have no more clues... - F77_VERSION= - AC_MSG_RESULT(compiler is unkown. no flags set!) - fi - fi - fi - fi -fi AC_SUBST(F77_VERSION) AC_SUBST(F77FLAGSO) AC_SUBST(F77FLAGSG) +AC_SUBST(F77FLAGSPIC) AC_SUBST(F77LIBS) -dnl Find path to perl -AC_PATH_PROG(PERL, perl) -AC_SUBST(PERL) +dnl -------------------------------------------------------------- +dnl Shared libraries +dnl -------------------------------------------------------------- -dnl ------------------------------------------------------------ -dnl Check whether some of the HSL functions have been dropped -dnl into their respective place in the contrib subdir. -dnl Check for the following functions to be there: -dnl MA27: needs files ma27.f -dnl MA47: needs files ma47.f ma47.dep -dnl ------------------------------------------------------------ -AC_MSG_CHECKING(for HSL subroutines) -hsl_subroutines="" -if test -r contrib/hsl/source/ma27.f ; then - hsl_subroutines="$hsl_subroutines MA27" - AC_DEFINE(HAVE_HSL_MA27, 1, [Availability of the MA27 algorithm from HSL]) -fi +AC_MSG_RESULT() +AC_MSG_RESULT(-------------- configuring shared/static libs ---------------) -if test -r contrib/hsl/source/ma47.f -a -r contrib/hsl/source/ma47dep.f ; then - hsl_subroutines="$hsl_subroutines MA47" - AC_DEFINE(HAVE_HSL_MA47, 1, [Availability of the MA47 algorithm from HSL]) -fi +AC_ARG_ENABLE(shared, +[ --enable-shared Set compiler flags to generate shared libraries], + enableshared=$enableval, + enableshared=yes) +dnl On AIX and alpha, shared libs don't work for us at present, so +dnl disable them (we should probably use libtool there). Likewise on +dnl CygWin Windows systems, where we don't know how to create shared +dnl libs at all (at least at present) +case "$target" in + *-aix* | alpha*-linux* | alpha*-osf[45]* | *cygwin ) + AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead) + enableshared=no + ;; +esac + +AC_SUBST(enableshared) + + + +dnl -------------------------------------------------------------- +dnl Backward compatibility functions +dnl -------------------------------------------------------------- +DEAL_II_CHECK_COMPAT_BLOCKER -if test "x$hsl_subroutines" != "x" ; then - AC_MSG_RESULT($hsl_subroutines) - USE_CONTRIB_HSL=yes -else - AC_MSG_RESULT(none found) - USE_CONTRIB_HSL=no -fi -AC_SUBST(USE_CONTRIB_HSL) @@ -905,150 +259,89 @@ AC_SUBST(enablemultigrid) + dnl ------------------------------------------------------------- -dnl Documentation tools +dnl Existence of additional libraries dnl ------------------------------------------------------------- +AC_MSG_RESULT() +AC_MSG_RESULT(---------------- configuring additional libs ----------------) -dnl Find the kdoc directory for documentation. kdoc2 is in -dnl the contrib directory, but you might want another one -AC_ARG_WITH(kdoc, -[ --with-kdoc=DIR use kdoc installed in DIR], - kdocdir=$withval, - kdocdir=${DEAL2_DIR}/contrib/kdoc/bin) -AC_MSG_CHECKING(for kdoc) -dnl lets see whether the file exists if not the default was taken -if test "$kdocdir" != ${DEAL2_DIR}/contrib/kdoc/bin ; then - if test -r $kdocdir/kdoc ; then - AC_MSG_RESULT(found) - else - AC_MSG_RESULT(not found) - AC_MSG_ERROR(Invalid kdoc path $kdocdir/kdoc) - fi - - if test -r "$kdocdir/Version" ; then - kdocversion=`cat $kdocdir/Version` ; - else - kdocversion=1; - fi -else - kdocversion=`cat ${DEAL2_DIR}/contrib/kdoc/src/Version` - AC_MSG_RESULT(using default version $kdocversion) -fi - -AC_SUBST(kdocdir) -AC_SUBST(kdocversion) - +DEAL_II_CONFIGURE_TECPLOT +AC_SUBST(TECPLOT_LIBRARY_PATH) +AC_SUBST(TECPLOT_INCLUDE_PATH) +DEAL_II_CONFIGURE_HSL +AC_SUBST(USE_CONTRIB_HSL) -dnl Find the doc++ program -AC_ARG_WITH(docxx, -[ --with-docxx=PATH use the doc++ executable pointed to by PATH], - docxx=$withval, - docxx=to-be-determined) -if test "$docxx" = to-be-determined ; then - AC_PATH_PROG(docxx,"doc++") -else - AC_MSG_CHECKING(for doc++) - if test -x "$docxx" ; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - docxx= - fi -fi -AC_SUBST(docxx) +dnl ------------------------------------------------------------- +dnl Consistency of compiler flags +dnl ------------------------------------------------------------- +AC_MSG_RESULT() +AC_MSG_RESULT(------------------ checking compiler flags ------------------) -dnl Find the Tecplot libraries and headers if available -dnl -DEAL_II_CONFIGURE_TECPLOT +dnl Last check: test whether CXXFLAGS and F77FLAGS are ok +DEAL_II_CHECK_CXXFLAGS_CONSISTENCY +DEAL_II_CHECK_F77FLAGS_CONSISTENCY dnl ------------------------------------------------------------- -dnl Last check: test whether CXXFLAGS and F77FLAGS are ok +dnl Third party programs dnl ------------------------------------------------------------- -AC_LANG_CPLUSPLUS -CXXFLAGS="$CXXFLAGSG" -AC_MSG_CHECKING(for consistency of CXXFLAGSG flags) -AC_TRY_COMPILE( - [], - [;], - [ - AC_MSG_RESULT(yes) - ], - [ - AC_MSG_ERROR(invalid combination of flags!) - exit 1; - ]) - -CXXFLAGS="$CXXFLAGSO" -AC_MSG_CHECKING(for consistency of CXXFLAGSO flags) -AC_TRY_COMPILE( - [], - [;], - [ - AC_MSG_RESULT(yes) - ], - [ - AC_MSG_ERROR(invalid combination of flags!) - exit 1; - ]) - - -dnl Err, well -- we'd like to have checked these flags, but autoconf -dnl has a problem here: when writing the compile file, a newline is -dnl missing, leading to an error when executing ./configure. So: -dnl while this is not fixed in autoconf, disable the respective tests -dnl AC_LANG_FORTRAN77 -dnl FFLAGS="$F77FLAGSG" -dnl AC_MSG_CHECKING(for consistency of F77FLAGSG flags) -dnl AC_TRY_COMPILE( -dnl [], -dnl [], -dnl [ -dnl AC_MSG_RESULT(yes) -dnl ], -dnl [ -dnl AC_MSG_ERROR(invalid combination of flags!) -dnl exit 1; -dnl ]) -dnl -dnl FFLAGS="$F77FLAGSO" -dnl AC_MSG_CHECKING(for consistency of F77FLAGSO flags) -dnl AC_TRY_COMPILE( -dnl [], -dnl [], -dnl [ -dnl AC_MSG_RESULT(yes) -dnl ], -dnl [ -dnl AC_MSG_ERROR(invalid combination of flags!) -dnl exit 1; -dnl ]) + +AC_MSG_RESULT() +AC_MSG_RESULT(---------------- configuring other programs -----------------) + +DEAL_II_CHECK_KDOC +AC_SUBST(kdocdir) +AC_SUBST(kdocversion) + +DEAL_II_CHECK_DOCXX +AC_SUBST(docxx) + +AC_PATH_PROG(PERL, perl) +AC_SUBST(PERL) + dnl ------------------------------------------------------------- -dnl Configure other packages +dnl Configure subdirectories dnl ------------------------------------------------------------- dnl Configure the `tests' directory, if that is installed. also dnl configure the programs in the contrib directory -AC_CONFIG_SUBDIRS(tests contrib) - +AC_CONFIG_SUBDIRS(contrib tests) dnl ------------------------------------------------------------- -dnl Output results +dnl Output results dnl ------------------------------------------------------------- +AC_MSG_RESULT() +AC_MSG_RESULT(--------------------- generating output ---------------------) + dnl Write output to the global options file AC_OUTPUT(common/Make.global_options common/Makefile.template doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile) + + +echo +echo +echo ------------------------------------------------------------- +echo +echo " The deal.II library is now configured. In order to" +echo " compile it and to generate the documentation, just" +echo " call the 'make' command without arguments. For more" +echo " information, see the Readme file." +echo +echo ------------------------------------------------------------- +echo + diff --git a/deal.II/config.guess b/deal.II/contrib/config/config.guess similarity index 82% rename from deal.II/config.guess rename to deal.II/contrib/config/config.guess index 86655305d9..1c1090c72e 100755 --- a/deal.II/config.guess +++ b/deal.II/contrib/config/config.guess @@ -1,9 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -# Free Software Foundation, Inc. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2001-02-24' +timestamp='2002-01-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -24,8 +24,9 @@ timestamp='2001-02-24' # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# Written by Per Bothner . -# Please send patches to . +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and @@ -52,7 +53,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -95,25 +96,25 @@ trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int dummy(){}" > $dummy.c +set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int dummy(){}" > $dummy.c ; for c in cc gcc c89 ; do - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 + ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; if test $? = 0 ; then - CC_FOR_BUILD="$c"; break - fi - done - rm -f $dummy.c $dummy.o $dummy.rel + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + rm -f $dummy.c $dummy.o $dummy.rel ; if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found + CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac +esac' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 8/24/94.) +# (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi @@ -127,29 +128,29 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) - # Netbsd (nbsd) targets should (where applicable) match one or + # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. - # Determine the machine/vendor (is the vendor relevant). - case "${UNAME_MACHINE}" in - amiga) machine=m68k-unknown ;; - arm32) machine=arm-unknown ;; - atari*) machine=m68k-atari ;; - sun3*) machine=m68k-sun ;; - mac68k) machine=m68k-apple ;; - macppc) machine=powerpc-apple ;; - hp3[0-9][05]) machine=m68k-hp ;; - ibmrt|romp-ibm) machine=romp-ibm ;; - *) machine=${UNAME_MACHINE}-unknown ;; + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \ + UNAME_MACHINE_ARCH=unknown + case "${UNAME_MACHINE_ARCH}" in + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. - case "${UNAME_MACHINE}" in - i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k) + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then @@ -171,6 +172,45 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mipseb-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` @@ -204,6 +244,7 @@ main: jsr \$26,exit .end main EOF + eval $set_cc_for_build $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null if test "$?" = 0 ; then case `./$dummy` in @@ -225,6 +266,9 @@ EOF 2-307) UNAME_MACHINE="alphaev67" ;; + 2-1307) + UNAME_MACHINE="alphaev68" + ;; esac fi rm -f $dummy.s $dummy @@ -242,29 +286,11 @@ EOF Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit 0;; - amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; - arc64:OpenBSD:*:*) - echo mips64el-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - arc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - hkmips:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - pmax:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - sgi:OpenBSD:*:*) - echo mips-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - wgrisc:OpenBSD:*:*) - echo mipsel-unknown-openbsd${UNAME_RELEASE} + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition @@ -328,9 +354,6 @@ EOF aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; - atari*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -357,18 +380,6 @@ EOF *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; - sun3*:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; @@ -385,6 +396,7 @@ EOF echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ @@ -408,10 +420,13 @@ EOF EOF $CC_FOR_BUILD $dummy.c -o $dummy \ && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ - && rm $dummy.c $dummy && exit 0 + && rm -f $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; @@ -459,7 +474,7 @@ EOF ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i?86:AIX:*:*) + i*86:AIX:*:*) echo i386-ibm-aix exit 0 ;; ia64:AIX:*:*) @@ -472,6 +487,7 @@ EOF exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include @@ -483,7 +499,7 @@ EOF exit(0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 + $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then @@ -533,10 +549,8 @@ EOF 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) - case "${HPUX_REV}" in - 11.[0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 @@ -545,12 +559,13 @@ EOF case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac - fi ;; - esac - if [ "${HP_ARCH}" = "" ]; then - sed 's/^ //' << EOF >$dummy.c + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include @@ -583,10 +598,10 @@ EOF exit (0); } EOF - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi - rm -f $dummy.c $dummy - fi ;; + (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` + if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi + rm -f $dummy.c $dummy + fi ;; esac echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; @@ -595,6 +610,7 @@ EOF echo ia64-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) + eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int @@ -620,7 +636,7 @@ EOF exit (0); } EOF - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 + $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy echo unknown-hitachi-hiuxwe2 exit 0 ;; @@ -630,7 +646,7 @@ EOF 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; - *9??*:MPE/iX:*:*) + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) @@ -639,7 +655,7 @@ EOF hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; - i?86:OSF1:*:*) + i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else @@ -649,9 +665,6 @@ EOF parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; - hppa*:OpenBSD:*:*) - echo hppa-unknown-openbsd - exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; @@ -674,12 +687,13 @@ EOF echo xmp-cray-unicos exit 0 ;; CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' @@ -702,10 +716,7 @@ EOF FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; - hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; - i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) @@ -717,9 +728,6 @@ EOF *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; - *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; @@ -729,6 +737,9 @@ EOF i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; + x86:Interix*:3*) + echo i386-pc-interix3 + exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we @@ -757,100 +768,46 @@ EOF echo ${UNAME_MACHINE}-unknown-linux exit 0 ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnuaout + echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; mips:Linux:*:*) - cat >$dummy.c < /* for printf() prototype */ -int main (int argc, char *argv[]) { -#else -int main (argc, argv) int argc; char *argv[]; { -#endif -#ifdef __MIPSEB__ - printf ("%s-unknown-linux-gnu\n", argv[1]); -#endif -#ifdef __MIPSEL__ - printf ("%sel-unknown-linux-gnu\n", argv[1]); -#endif - return 0; -} + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif EOF - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + rm -f $dummy.c + test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 ;; ppc:Linux:*:*) - # Determine Lib Version - cat >$dummy.c < -#if defined(__GLIBC__) -extern char __libc_version[]; -extern char __libc_release[]; -#endif -main(argc, argv) - int argc; - char *argv[]; -{ -#if defined(__GLIBC__) - printf("%s %s\n", __libc_version, __libc_release); -#else - printf("unknown\n"); -#endif - return 0; -} -EOF - LIBC="" - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null - if test "$?" = 0 ; then - ./$dummy | grep 1\.99 > /dev/null - if test "$?" = 0 ; then LIBC="libc1" ; fi - fi - rm -f $dummy.c $dummy - echo powerpc-unknown-linux-gnu${LIBC} + echo powerpc-unknown-linux-gnu + exit 0 ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu exit 0 ;; alpha:Linux:*:*) - cat <$dummy.s - .data - \$Lformat: - .byte 37,100,45,37,120,10,0 # "%d-%x\n" - .text - .globl main - .align 4 - .ent main - main: - .frame \$30,16,\$26,0 - ldgp \$29,0(\$27) - .prologue 1 - .long 0x47e03d80 # implver \$0 - lda \$2,-1 - .long 0x47e20c21 # amask \$2,\$1 - lda \$16,\$Lformat - mov \$0,\$17 - not \$1,\$18 - jsr \$26,printf - ldgp \$29,0(\$26) - mov 0,\$16 - jsr \$26,exit - .end main -EOF - LIBC="" - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null - if test "$?" = 0 ; then - case `./$dummy` in - 0-0) UNAME_MACHINE="alpha" ;; - 1-0) UNAME_MACHINE="alphaev5" ;; - 1-1) UNAME_MACHINE="alphaev56" ;; - 1-101) UNAME_MACHINE="alphapca56" ;; - 2-303) UNAME_MACHINE="alphaev6" ;; - 2-307) UNAME_MACHINE="alphaev67" ;; - esac - objdump --private-headers $dummy | \ - grep ld.so.1 > /dev/null - if test "$?" = 0 ; then - LIBC="libc1" - fi - fi - rm -f $dummy.s $dummy + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) @@ -870,84 +827,68 @@ EOF sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; - sparc:Linux:*:*) + sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit 0 ;; - i?86:Linux:*:*) + i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. - ld_supported_emulations=`cd /; ld --help 2>&1 \ - | sed -ne '/supported emulations:/!d + ld_supported_targets=`cd /; ld --help 2>&1 \ + | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g - s/.*supported emulations: *// + s/.*supported targets: *// s/ .*// p'` - case "$ld_supported_emulations" in - i?86linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit 0 - ;; - elf_i?86) + case "$ld_supported_targets" in + elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; - i?86coff) + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit 0 - ;; - esac - # Either a pre-BFD a.out linker (linux-gnuoldld) - # or one that does not give us useful --help. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. - # If ld does not provide *any* "supported emulations:" - # that means it is gnuoldld. - test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 - case "${UNAME_MACHINE}" in - i?86) - VENDOR=pc; - ;; - *) - VENDOR=unknown; - ;; + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; esac # Determine whether the default compiler is a.out or elf - cat >$dummy.c < -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif -#ifdef __ELF__ -# ifdef __GLIBC__ -# if __GLIBC__ >= 2 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -# else - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); -# endif -#else - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); -#endif - return 0; -} + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + LIBC=gnuaout + #endif EOF - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 - rm -f $dummy.c $dummy + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + rm -f $dummy.c + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions -# are messed up and put the nodename in both sysname and nodename. - i?86:DYNIX/ptx:4*:*) + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. echo i386-sequent-sysv4 exit 0 ;; - i?86:UNIX_SV:4.2MP:2.*) + i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, @@ -955,7 +896,7 @@ EOF # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} @@ -963,16 +904,15 @@ EOF echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit 0 ;; - i?86:*:5:7*) - # Fixed at (any) Pentium or better - UNAME_MACHINE=i586 - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} - fi + i*86:*:5:[78]*) + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit 0 ;; - i?86:*:3.2:*) + i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; - m68*:LynxOS:2.*:*) + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; TSUNAMI:LynxOS:2.*:*) @@ -1044,7 +984,7 @@ EOF rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:*) + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) @@ -1064,8 +1004,8 @@ EOF echo ns32k-sni-sysv fi exit 0 ;; - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) @@ -1077,6 +1017,10 @@ EOF # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; @@ -1123,7 +1067,7 @@ EOF *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; - NSR-[KW]:NONSTOP_KERNEL:*:*) + NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) @@ -1146,7 +1090,7 @@ EOF fi echo ${UNAME_MACHINE}-unknown-plan9 exit 0 ;; - i?86:OS/2:*:*) + i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx @@ -1169,11 +1113,18 @@ EOF *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 +eval $set_cc_for_build cat >$dummy.c < @@ -1288,7 +1239,7 @@ main () } EOF -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 +$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 rm -f $dummy.c $dummy # Apollos put the system type in the environment. diff --git a/deal.II/config.sub b/deal.II/contrib/config/config.sub similarity index 84% rename from deal.II/config.sub rename to deal.II/contrib/config/config.sub index ddbbfe5fb8..16573348b8 100755 --- a/deal.II/config.sub +++ b/deal.II/contrib/config/config.sub @@ -1,9 +1,9 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -# Free Software Foundation, Inc. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2001-02-16' +timestamp='2002-01-02' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -29,7 +29,8 @@ timestamp='2001-02-16' # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# Please send patches to . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. @@ -117,7 +118,7 @@ esac # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*) + nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -157,6 +158,14 @@ case $os in os=-vxworks basic_machine=$1 ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; -hiux*) os=-hiuxwe2 ;; @@ -215,24 +224,36 @@ esac case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \ - | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \ - | pyramid | mn10200 | mn10300 | tron | a29k \ - | 580 | i960 | h8300 \ - | x86 | ppcbe | mipsbe | mipsle | shbe | shle \ - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ - | hppa64 \ - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ - | alphaev6[78] \ - | we32k | ns16k | clipper | i370 | sh | sh[34] \ - | powerpc | powerpcle \ - | 1750a | dsp16xx | pdp10 | pdp11 \ - | mips16 | mips64 | mipsel | mips64el \ - | mips64orion | mips64orionel | mipstx39 | mipstx39el \ - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ - | mips64vr5000 | miprs64vr5000el | mcore \ - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ - | thumb | d10v | d30v | fr30 | avr | openrisc) + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | c4x | clipper \ + | d10v | d30v | dsp16xx \ + | fr30 \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | m32r | m68000 | m68k | m88k | mcore \ + | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el | mips64vr4300 \ + | mips64vr4300el | mips64vr5000 | mips64vr5000el \ + | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ + | mipsisa32 \ + | mn10200 | mn10300 \ + | ns16k | ns32k \ + | openrisc \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[34] | sh[34]eb | shbe | shle \ + | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xstormy16 | xtensa \ + | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) @@ -240,13 +261,13 @@ case $basic_machine in basic_machine=$basic_machine-unknown os=-none ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. - i[234567]86 | x86_64) + i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. @@ -255,30 +276,45 @@ case $basic_machine in exit 1 ;; # Recognize the basic CPU types with company name. - # FIXME: clean up the formatting here. - vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \ - | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \ - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ - | xmp-* | ymp-* \ - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \ - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ - | hppa2.0n-* | hppa64-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ - | alphaev6[78]-* \ - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ - | clipper-* | orion-* \ - | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ - | mips64el-* | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ - | mipstx39-* | mipstx39el-* | mcore-* \ - | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \ - | [cjt]90-* \ - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ - | bs2000-* | tic54x-* | c54x-* | x86_64-*) + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armv*-* \ + | avr-* \ + | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c54x-* \ + | clipper-* | cray2-* | cydra-* \ + | d10v-* | d30v-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | m32r-* \ + | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | mcore-* \ + | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ + | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ + | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \ + | sparc-* | sparc64-* | sparc86x-* | sparclite-* \ + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \ + | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \ + | xtensa-* \ + | ymp-* \ + | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -385,6 +421,14 @@ case $basic_machine in decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola @@ -505,19 +549,19 @@ case $basic_machine in basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? - i[34567]86v32) + i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; - i[34567]86v4*) + i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; - i[34567]86v) + i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; - i[34567]86sol2) + i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; @@ -587,6 +631,10 @@ case $basic_machine in basic_machine=m68k-rom68k os=-coff ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; msdos) basic_machine=i386-pc os=-msdos @@ -691,7 +739,7 @@ case $basic_machine in pc532 | pc532-*) basic_machine=ns32k-pc532 ;; - pentium | p5 | k5 | k6 | nexgen) + pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon) @@ -700,7 +748,7 @@ case $basic_machine in pentiumii | pentium2) basic_machine=i686-pc ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-*) + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) @@ -724,6 +772,16 @@ case $basic_machine in ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; ps2) basic_machine=i386-ibm ;; @@ -741,6 +799,12 @@ case $basic_machine in rtpc | rtpc-*) basic_machine=romp-ibm ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; sa29200) basic_machine=a29k-amd os=-udi @@ -752,7 +816,7 @@ case $basic_machine in basic_machine=sh-hitachi os=-hms ;; - sparclite-wrs) + sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; @@ -832,6 +896,10 @@ case $basic_machine in tx39el) basic_machine=mipstx39el-unknown ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; tower | tower-32) basic_machine=m68k-ncr ;; @@ -878,6 +946,10 @@ case $basic_machine in basic_machine=hppa1.1-winbond os=-proelf ;; + windows32) + basic_machine=i386-pc + os=-windows32-msvcrt + ;; xmp) basic_machine=xmp-cray os=-unicos @@ -931,10 +1003,10 @@ case $basic_machine in we32k) basic_machine=we32k-att ;; - sh3 | sh4) + sh3 | sh4 | sh3eb | sh4eb) basic_machine=sh-unknown ;; - sparc | sparcv9) + sparc | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) @@ -956,6 +1028,9 @@ case $basic_machine in basic_machine=c4x-none os=-coff ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 @@ -1012,16 +1087,18 @@ case $os in | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*) + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in - x86-* | i[34567]86-*) + x86-* | i*86-*) ;; *) os=-nto$os @@ -1068,6 +1145,9 @@ case $os in -acis*) os=-aos ;; + -atheos*) + os=-atheos + ;; -386bsd) os=-bsd ;; @@ -1148,6 +1228,7 @@ case $basic_machine in arm*-semi) os=-aout ;; + # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; @@ -1340,6 +1421,9 @@ case $basic_machine in -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; + -vos*) + vendor=stratus + ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; diff --git a/deal.II/install-sh b/deal.II/contrib/config/install-sh similarity index 100% rename from deal.II/install-sh rename to deal.II/contrib/config/install-sh diff --git a/deal.II/contrib/configure b/deal.II/contrib/configure index 74ba8bdfb8..22b2e3b96f 100755 --- a/deal.II/contrib/configure +++ b/deal.II/contrib/configure @@ -1,27 +1,121 @@ #! /bin/sh - -# From configure.in Revision: 1.5 +# From configure.in Revision: 1.6 . # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# Generated by Autoconf 2.52. # +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -# Defaults: -ac_help= +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# ac_default_prefix=/usr/local -# Any additions from configure.in: +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +ac_unique_file="kdoc" +ac_subdirs_all="$ac_subdirs_all utilities" # Initialize some variables set by options. +ac_init_help= +ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. -build=NONE -cache_file=./config.cache +cache_file=/dev/null exec_prefix=NONE -host=NONE no_create= -nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE @@ -30,10 +124,15 @@ program_transform_name=s,x,x, silent= site= srcdir= -target=NONE verbose= x_includes=NONE x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' @@ -47,17 +146,16 @@ oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= ac_prev= for ac_option do - # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" @@ -65,59 +163,59 @@ do continue fi - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. - case "$ac_option" in + case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; + bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) - ac_prev=build ;; + ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; + build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) - datadir="$ac_optarg" ;; + datadir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "enable_${ac_feature}='$ac_optarg'" ;; + eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -126,95 +224,47 @@ do -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; + exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; -host | --host | --hos | --ho) - ac_prev=host ;; + ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; + host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; + includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; + infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; + libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; + libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ @@ -223,12 +273,12 @@ EOF -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; + localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; + mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. @@ -249,26 +299,26 @@ EOF -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; + oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; + prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; + program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; + program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ @@ -285,7 +335,7 @@ EOF | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; + program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) @@ -295,7 +345,7 @@ EOF ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; + sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ @@ -306,58 +356,57 @@ EOF | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; + sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; + site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; + srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; + sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; + ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; + target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac - eval "with_${ac_package}='$ac_optarg'" ;; + eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. @@ -368,98 +417,98 @@ EOF ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; + x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; + x_libraries=$ac_optarg ;; - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } fi -exec 5>./config.log -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=kdoc +test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then @@ -470,13 +519,263 @@ else fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + { echo "$as_me: error: cannot find sources in $srcdir" >&2 + { (exit 1); exit 1; }; } fi fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi +exec 5>config.log +cat >&5 </dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >&5 + +cat >&5 <\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h +# Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then @@ -487,48 +786,93 @@ if test -z "$CONFIG_SITE"; then fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" + { echo "$as_me:789: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 . "$ac_site_file" fi done +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:807: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:811: error: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:817: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:819: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:821: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. It doesn't matter if + # we pass some twice (in addition to the command line arguments). + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" + ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:840: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:842: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:862: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:865: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' else - ac_n= ac_c='\c' ac_t= + ac_path_separator=: fi - - - - -DEAL2_CONTRIB_DIR=`pwd` - - - -cd kdoc/src -./configure --prefix=$DEAL2_CONTRIB_DIR/kdoc -cd $DEAL2_CONTRIB_DIR - - +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do +for ac_dir in config $srcdir/config; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" @@ -537,226 +881,590 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break fi done if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } + { { echo "$as_me:891: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 +echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} + { (exit 1); exit 1; }; } fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - -subdirs="utilities" +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. +echo "$as_me:899: result: " >&5 +echo "${ECHO_T}" >&6 +echo "$as_me:901: result: ---------------- configuring contrib subdir -----------------" >&5 +echo "${ECHO_T}---------------- configuring contrib subdir -----------------" >&6 +DEAL2_CONTRIB_DIR=`pwd` +cd kdoc/src +./configure --prefix=$DEAL2_CONTRIB_DIR/kdoc +cd $DEAL2_CONTRIB_DIR -trap '' 1 2 15 +subdirs="$subdirs utilities" -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 +ac_config_files="$ac_config_files Makefile" test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' fi -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\EOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed - -# Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS <&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL # Generated automatically by configure. # Run this file to recreate the current configuration. -# This directory was configured as follows, -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# -# $0 $ac_configure_args -# # Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. +# configure, is in config.log if it exists. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option +debug=false +SHELL=\${CONFIG_SHELL-$SHELL} +ac_cs_invocation="\$0 \$@" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +exec 6>&1 + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 do - case "\$ac_option" in + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:1135: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # This is an error. + -*) { { echo "$as_me:1154: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + esac + shift done -ac_given_srcdir=$srcdir +exec 5>>config.log +cat >&5 << _ACEOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +This file was extended by $as_me 2.52, executed with + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + > $ac_cs_invocation +on `(hostname || uname -n) 2>/dev/null | sed 1q` + +_ACEOF EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@subdirs@%$subdirs%g +cat >>$CONFIG_STATUS <<\EOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + *) { { echo "$as_me:1190: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +EOF + +cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@subdirs@,$subdirs,;t t CEOF + EOF -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" + cat >>$CONFIG_STATUS <<\EOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF +fi # test -n "$CONFIG_FILES" -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then +cat >>$CONFIG_STATUS <<\EOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; esac - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` else ac_dir_suffix= ac_dots= fi - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - + if test x"$ac_file" != x-; then + { echo "$as_me:1380: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + configure_input="Generated automatically from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:1398: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:1411: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } EOF -cat >> $CONFIG_STATUS <>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi +done EOF -cat >> $CONFIG_STATUS <<\EOF -exit 0 +cat >>$CONFIG_STATUS <<\EOF + +{ (exit 0); exit 0; } EOF chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 +ac_clean_files=$ac_clean_files_save + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi +# +# CONFIG_SUBDIRS section. +# if test "$no_recursion" != yes; then # Remove --cache-file and --srcdir arguments so they do not pile up. @@ -767,12 +1475,15 @@ if test "$no_recursion" != yes; then ac_prev= continue fi - case "$ac_arg" in + case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ + | --c=*) + ;; + --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; @@ -782,68 +1493,87 @@ if test "$no_recursion" != yes; then esac done - for ac_config_dir in utilities; do + for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. - if test ! -d $srcdir/$ac_config_dir; then - continue - fi - - echo configuring in $ac_config_dir + test -d $srcdir/$ac_subdir || continue - case "$srcdir" in + { echo "$as_me:1502: configuring in $ac_subdir" >&5 +echo "$as_me: configuring in $ac_subdir" >&6;} + case $srcdir in .) ;; + *) { case "./$ac_subdir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="./$ac_subdir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; *) - if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; - else - { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } - fi - ;; + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + if test -d ./$ac_subdir; then :; + else + { { echo "$as_me:1524: error: cannot create \`pwd\`/$ac_subdir" >&5 +echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;} + { (exit 1); exit 1; }; } + fi + ;; esac ac_popdir=`pwd` - cd $ac_config_dir + cd $ac_subdir - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` - case "$srcdir" in + case $srcdir in .) # No --srcdir option. We are building in place. ac_sub_srcdir=$srcdir ;; - /*) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_config_dir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; esac # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure; then - ac_sub_configure=$ac_sub_srcdir/configure + if test -f $ac_sub_srcdir/configure.gnu; then + ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'" + elif test -f $ac_sub_srcdir/configure; then + ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'" elif test -f $ac_sub_srcdir/configure.in; then ac_sub_configure=$ac_configure else - echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 + { echo "$as_me:1555: WARNING: no configuration information is in $ac_subdir" >&5 +echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case "$cache_file" in - /*) ac_sub_cache_file=$cache_file ;; + case $cache_file in + [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative path. - ac_sub_cache_file="$ac_dots$cache_file" ;; + ac_sub_cache_file=$ac_dots$cache_file ;; esac - echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" + { echo "$as_me:1569: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5 +echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;} # The eval makes quoting arguments work. - if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir - then : - else - { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } - fi + eval $ac_sub_configure $ac_sub_configure_args \ + --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir || + { { echo "$as_me:1574: error: $ac_sub_configure failed for $ac_subdir" >&5 +echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;} + { (exit 1); exit 1; }; } fi cd $ac_popdir diff --git a/deal.II/contrib/configure.in b/deal.II/contrib/configure.in index b2ab0a4c7d..227445b8ac 100644 --- a/deal.II/contrib/configure.in +++ b/deal.II/contrib/configure.in @@ -11,6 +11,13 @@ define([AC_CACHE_SAVE], )dnl AC_REVISION($Revision$) AC_INIT(kdoc) +dnl Have the auxiliary tools like config.guess etc in contrib/config +AC_CONFIG_AUX_DIR(config) + + +AC_MSG_RESULT() +AC_MSG_RESULT(---------------- configuring contrib subdir -----------------) + dnl Set the path to the deal.II/contrib directory DEAL2_CONTRIB_DIR=`pwd` diff --git a/deal.II/doc/news/2002/c-3-3.html b/deal.II/doc/news/2002/c-3-3.html index f7ac6daa85..8711433206 100644 --- a/deal.II/doc/news/2002/c-3-3.html +++ b/deal.II/doc/news/2002/c-3-3.html @@ -33,6 +33,13 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

General

    +
  1. + Changed: The configure machinery has been revamped + significantly. +
    + (WB 2002/03/08) +

    +
  2. Added: The top-level Makefile now supports "optimized" as a target that builds only optimized versions of the base, -- 2.39.5