Changeset 1125 for ThirdParty/Mumps/trunk/configure
- Timestamp:
- Aug 22, 2008 1:32:25 PM (13 years ago)
- Location:
- ThirdParty/Mumps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Mumps/trunk
-
Property
svn:ignore
set to
MUMPS
-
Property
svn:ignore
set to
-
ThirdParty/Mumps/trunk/configure
r1054 r1125 473 473 #endif" 474 474 475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPS _INCFLAGS COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSECOIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPSINCDIR MUMPSLIB COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE MUMPS_INCFLAGS COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1089 1089 optimize for fast installation [default=yes] 1090 1090 --disable-libtool-lock avoid locking (might break parallel builds) 1091 --enable-mumps-libcheck use disable-mumps-libcheck to skip the 1092 link check at configuration time 1091 1093 1092 1094 Optional Packages: … … 1100 1102 --with-tags[=TAGS] 1101 1103 include additional configurations [automatic] 1102 --with-mumps-dir specify directory where MUMPS is installed 1104 --with-mumps-incdir specify the header file directory for library mumps 1105 --with-mumps-lib specify the flags used to link with the library mumps 1103 1106 1104 1107 Some influential environment variables: … … 2698 2701 coin_add_cflags="-pipe" 2699 2702 coin_dbg_cflags="-g" 2700 coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" 2703 coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas" 2704 case $build in 2705 *-darwin*) 2706 ;; 2707 *) 2708 coin_warn_cflags="-pedantic-errors $coin_warn_cflags" 2709 ;; 2710 esac 2701 2711 case $enable_doscompile in 2702 2712 mingw) … … 2771 2781 case "$CC" in 2772 2782 icc* | */icc*) 2773 coin_opt_cflags="-O3 -ip "2783 coin_opt_cflags="-O3 -ip -mp1" 2774 2784 coin_add_cflags="" 2775 2785 coin_dbg_cflags="-g" … … 3109 3119 fi ;; 3110 3120 *-*-solaris*) 3111 coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;3112 *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;3121 coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3122 *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;; 3113 3123 esac 3114 3124 … … 3281 3291 3282 3292 # Provide some information about the compiler. 3283 echo "$as_me:32 83:" \3293 echo "$as_me:3293:" \ 3284 3294 "checking for Fortran 77 compiler version" >&5 3285 3295 ac_compiler=`set X $ac_compile; echo $2` … … 3496 3506 case $F77 in 3497 3507 ifort* | */ifort* | IFORT* | */IFORT* ) 3498 coin_opt_fflags='- O3'3499 coin_add_fflags='-fpp -nologo -MT'3500 coin_dbg_fflags='- debug'3508 coin_opt_fflags='-MT -O3' 3509 coin_add_fflags='-fpp -nologo' 3510 coin_dbg_fflags='-MTd -debug' 3501 3511 ;; 3502 3512 compile_f2c*) … … 3849 3859 ac_save_FFLAGS=$FFLAGS 3850 3860 FFLAGS="$FFLAGS $ac_verb" 3851 (eval echo $as_me:38 51: \"$ac_link\") >&53861 (eval echo $as_me:3861: \"$ac_link\") >&5 3852 3862 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3853 3863 echo "$ac_f77_v_output" >&5 … … 3927 3937 ac_save_FFLAGS=$FFLAGS 3928 3938 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 3929 (eval echo $as_me:39 29: \"$ac_link\") >&53939 (eval echo $as_me:3939: \"$ac_link\") >&5 3930 3940 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3931 3941 echo "$ac_f77_v_output" >&5 … … 4636 4646 case $build in 4637 4647 # The following is a fix to define FLIBS for ifort on Windows 4648 # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly. 4649 # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables. 4650 # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line. 4638 4651 *-cygwin* | *-mingw*) 4639 4652 case "$F77" in 4640 4653 ifort* | */ifort* | IFORT* | */IFORT*) 4641 FLIBS="-link libifcorert.lib $LIBS /NODEFAULTLIB:libc.lib";; 4654 FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib" 4655 # if "$coin_debug_compile" = true ; then 4656 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib" 4657 # else 4658 # FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib" 4659 # fi 4660 ;; 4642 4661 compile_f2c*) 4643 4662 FLIBS=`$F77 -FLIBS` ;; … … 6329 6348 *-*-irix6*) 6330 6349 # Find out which ABI we are using. 6331 echo '#line 63 31"configure"' > conftest.$ac_ext6350 echo '#line 6350 "configure"' > conftest.$ac_ext 6332 6351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6333 6352 (eval $ac_compile) 2>&5 … … 8806 8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8807 8826 -e 's:$: $lt_compiler_flag:'` 8808 (eval echo "\"\$as_me:88 08: $lt_compile\"" >&5)8827 (eval echo "\"\$as_me:8827: $lt_compile\"" >&5) 8809 8828 (eval "$lt_compile" 2>conftest.err) 8810 8829 ac_status=$? 8811 8830 cat conftest.err >&5 8812 echo "$as_me:88 12: \$? = $ac_status" >&58831 echo "$as_me:8831: \$? = $ac_status" >&5 8813 8832 if (exit $ac_status) && test -s "$ac_outfile"; then 8814 8833 # The compiler can only warn and ignore the option if not recognized … … 9074 9093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9075 9094 -e 's:$: $lt_compiler_flag:'` 9076 (eval echo "\"\$as_me:90 76: $lt_compile\"" >&5)9095 (eval echo "\"\$as_me:9095: $lt_compile\"" >&5) 9077 9096 (eval "$lt_compile" 2>conftest.err) 9078 9097 ac_status=$? 9079 9098 cat conftest.err >&5 9080 echo "$as_me:90 80: \$? = $ac_status" >&59099 echo "$as_me:9099: \$? = $ac_status" >&5 9081 9100 if (exit $ac_status) && test -s "$ac_outfile"; then 9082 9101 # The compiler can only warn and ignore the option if not recognized … … 9178 9197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9179 9198 -e 's:$: $lt_compiler_flag:'` 9180 (eval echo "\"\$as_me:91 80: $lt_compile\"" >&5)9199 (eval echo "\"\$as_me:9199: $lt_compile\"" >&5) 9181 9200 (eval "$lt_compile" 2>out/conftest.err) 9182 9201 ac_status=$? 9183 9202 cat out/conftest.err >&5 9184 echo "$as_me:9 184: \$? = $ac_status" >&59203 echo "$as_me:9203: \$? = $ac_status" >&5 9185 9204 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9186 9205 then … … 11595 11614 lt_status=$lt_dlunknown 11596 11615 cat > conftest.$ac_ext <<EOF 11597 #line 11 597"configure"11616 #line 11616 "configure" 11598 11617 #include "confdefs.h" 11599 11618 … … 11695 11714 lt_status=$lt_dlunknown 11696 11715 cat > conftest.$ac_ext <<EOF 11697 #line 11 697"configure"11716 #line 11716 "configure" 11698 11717 #include "confdefs.h" 11699 11718 … … 14055 14074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14056 14075 -e 's:$: $lt_compiler_flag:'` 14057 (eval echo "\"\$as_me:140 57: $lt_compile\"" >&5)14076 (eval echo "\"\$as_me:14076: $lt_compile\"" >&5) 14058 14077 (eval "$lt_compile" 2>conftest.err) 14059 14078 ac_status=$? 14060 14079 cat conftest.err >&5 14061 echo "$as_me:140 61: \$? = $ac_status" >&514080 echo "$as_me:14080: \$? = $ac_status" >&5 14062 14081 if (exit $ac_status) && test -s "$ac_outfile"; then 14063 14082 # The compiler can only warn and ignore the option if not recognized … … 14159 14178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14160 14179 -e 's:$: $lt_compiler_flag:'` 14161 (eval echo "\"\$as_me:141 61: $lt_compile\"" >&5)14180 (eval echo "\"\$as_me:14180: $lt_compile\"" >&5) 14162 14181 (eval "$lt_compile" 2>out/conftest.err) 14163 14182 ac_status=$? 14164 14183 cat out/conftest.err >&5 14165 echo "$as_me:141 65: \$? = $ac_status" >&514184 echo "$as_me:14184: \$? = $ac_status" >&5 14166 14185 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14167 14186 then … … 15729 15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15730 15749 -e 's:$: $lt_compiler_flag:'` 15731 (eval echo "\"\$as_me:157 31: $lt_compile\"" >&5)15750 (eval echo "\"\$as_me:15750: $lt_compile\"" >&5) 15732 15751 (eval "$lt_compile" 2>conftest.err) 15733 15752 ac_status=$? 15734 15753 cat conftest.err >&5 15735 echo "$as_me:157 35: \$? = $ac_status" >&515754 echo "$as_me:15754: \$? = $ac_status" >&5 15736 15755 if (exit $ac_status) && test -s "$ac_outfile"; then 15737 15756 # The compiler can only warn and ignore the option if not recognized … … 15833 15852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15834 15853 -e 's:$: $lt_compiler_flag:'` 15835 (eval echo "\"\$as_me:158 35: $lt_compile\"" >&5)15854 (eval echo "\"\$as_me:15854: $lt_compile\"" >&5) 15836 15855 (eval "$lt_compile" 2>out/conftest.err) 15837 15856 ac_status=$? 15838 15857 cat out/conftest.err >&5 15839 echo "$as_me:158 39: \$? = $ac_status" >&515858 echo "$as_me:15858: \$? = $ac_status" >&5 15840 15859 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15841 15860 then … … 18040 18059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18041 18060 -e 's:$: $lt_compiler_flag:'` 18042 (eval echo "\"\$as_me:180 42: $lt_compile\"" >&5)18061 (eval echo "\"\$as_me:18061: $lt_compile\"" >&5) 18043 18062 (eval "$lt_compile" 2>conftest.err) 18044 18063 ac_status=$? 18045 18064 cat conftest.err >&5 18046 echo "$as_me:180 46: \$? = $ac_status" >&518065 echo "$as_me:18065: \$? = $ac_status" >&5 18047 18066 if (exit $ac_status) && test -s "$ac_outfile"; then 18048 18067 # The compiler can only warn and ignore the option if not recognized … … 18308 18327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18309 18328 -e 's:$: $lt_compiler_flag:'` 18310 (eval echo "\"\$as_me:183 10: $lt_compile\"" >&5)18329 (eval echo "\"\$as_me:18329: $lt_compile\"" >&5) 18311 18330 (eval "$lt_compile" 2>conftest.err) 18312 18331 ac_status=$? 18313 18332 cat conftest.err >&5 18314 echo "$as_me:183 14: \$? = $ac_status" >&518333 echo "$as_me:18333: \$? = $ac_status" >&5 18315 18334 if (exit $ac_status) && test -s "$ac_outfile"; then 18316 18335 # The compiler can only warn and ignore the option if not recognized … … 18412 18431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18413 18432 -e 's:$: $lt_compiler_flag:'` 18414 (eval echo "\"\$as_me:184 14: $lt_compile\"" >&5)18433 (eval echo "\"\$as_me:18433: $lt_compile\"" >&5) 18415 18434 (eval "$lt_compile" 2>out/conftest.err) 18416 18435 ac_status=$? 18417 18436 cat out/conftest.err >&5 18418 echo "$as_me:184 18: \$? = $ac_status" >&518437 echo "$as_me:18437: \$? = $ac_status" >&5 18419 18438 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18420 18439 then … … 21328 21347 MAKEOKFILE=.MakeOk 21329 21348 21330 21331 # Check whether --with-mumps-dir or --without-mumps-dir was given. 21332 if test "${with_mumps_dir+set}" = set; then 21333 withval="$with_mumps_dir" 21334 use_mumps="$withval" 21335 else 21336 use_mumps=no 21337 fi; 21338 21339 if test "$use_mumps" != "no"; then 21340 if test -d $use_mumps; then :; else 21341 { { echo "$as_me:$LINENO: error: User provided MUMPS directory $use_mumps does not exist." >&5 21342 echo "$as_me: error: User provided MUMPS directory $use_mumps does not exist." >&2;} 21343 { (exit 1); exit 1; }; } 21344 fi 21345 mumps_dir=`cd $use_mumps; pwd` 21346 21347 # library extension 21348 ac_ext=c 21349 #check if user provides a MUMPS library (that works) 21350 ac_ext=c 21349 21351 ac_cpp='$CPP $CPPFLAGS' 21350 21352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 21352 21354 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21353 21355 21354 save_LIBS="$LIBS" 21355 LIBS="$LIBS $FLIBS" 21356 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21356 21357 echo "$as_me:$LINENO: checking if user provides library for mumps" >&5 21358 echo $ECHO_N "checking if user provides library for mumps... $ECHO_C" >&6 21359 21360 # Check for header file directory 21361 21362 21363 # Check whether --with-mumps-incdir or --without-mumps-incdir was given. 21364 if test "${with_mumps_incdir+set}" = set; then 21365 withval="$with_mumps_incdir" 21366 MUMPSINCDIR=`cd $withval; pwd` 21367 fi; 21368 21369 # Check for library directory 21370 21371 21372 # Check whether --with-mumps-lib or --without-mumps-lib was given. 21373 if test "${with_mumps_lib+set}" = set; then 21374 withval="$with_mumps_lib" 21375 MUMPSLIB=$withval 21376 fi; 21377 21378 # Switch to disable library check if requested 21379 21380 # Check whether --enable-mumps-libcheck or --disable-mumps-libcheck was given. 21381 if test "${enable_mumps_libcheck+set}" = set; then 21382 enableval="$enable_mumps_libcheck" 21383 mumps_libcheck=$enableval 21384 else 21385 mumps_libcheck=yes 21386 fi; 21387 21388 # At this point, if we're going to use the library, both LBRYINCDIR and 21389 # LBRYLIB must be defined and not empty. 21390 21391 if test x"$MUMPSINCDIR" != x || test x"$MUMPSLIB" != x; then 21392 if test x"$MUMPSINCDIR" = x || test x"$MUMPSLIB" = x; then 21393 { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&5 21394 echo "$as_me: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&2;} 21395 { (exit 1); exit 1; }; } 21396 fi 21397 coin_has_mumps=true 21398 echo "$as_me:$LINENO: result: yes" >&5 21399 echo "${ECHO_T}yes" >&6 21400 else 21401 coin_has_mumps=false 21402 echo "$as_me:$LINENO: result: no" >&5 21403 echo "${ECHO_T}no" >&6 21404 fi 21405 21406 # If we have instructions for use, consider header and link checks. 21407 21408 if test $coin_has_mumps = true; then 21409 21410 # If argument 3 (file) is given, check for the file. Typically this will be a 21411 # header file, but that's not assumed. 21412 21413 if test -r $MUMPSINCDIR/dmumps_c.h; then 21414 21415 : 21416 else 21417 { { echo "$as_me:$LINENO: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&5 21418 echo "$as_me: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&2;} 21419 { (exit 1); exit 1; }; } 21420 : 21421 fi 21422 21423 21424 # Now see if we can link the function. There are arguments for and against 21425 # assuming argument 3 is a header file declaring the function. A correct 21426 # function declaration is the main argument in favour. Having to cope with 21427 # possible dependencies or other oddities are the main arguments against. 21428 # Force the use of C as the best single choice amongst C++, C, and Fortran. 21429 # Obviously, this has limits. 21430 21431 if test x"$mumps_libcheck" != xno; then 21432 coin_save_LIBS="$LIBS" 21433 LIBS="$MUMPSLIB $ADDLIBS" 21434 coin_MUMPS_link=no 21435 ac_ext=c 21436 ac_cpp='$CPP $CPPFLAGS' 21437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21440 21441 for fnm in dmumps_c ; do 21442 echo "$as_me:$LINENO: checking whether symbol $fnm is available with MUMPS" >&5 21443 echo $ECHO_N "checking whether symbol $fnm is available with MUMPS... $ECHO_C" >&6 21444 cat >conftest.$ac_ext <<_ACEOF 21445 /* confdefs.h. */ 21446 _ACEOF 21447 cat confdefs.h >>conftest.$ac_ext 21448 cat >>conftest.$ac_ext <<_ACEOF 21449 /* end confdefs.h. */ 21450 21451 #ifdef F77_DUMMY_MAIN 21452 21453 # ifdef __cplusplus 21454 extern "C" 21455 # endif 21456 int F77_DUMMY_MAIN() { return 1; } 21457 21458 #endif 21459 int 21460 main () 21461 { 21462 $fnm() 21463 ; 21464 return 0; 21465 } 21466 _ACEOF 21467 rm -f conftest.$ac_objext conftest$ac_exeext 21468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21469 (eval $ac_link) 2>conftest.er1 21470 ac_status=$? 21471 grep -v '^ *+' conftest.er1 >conftest.err 21472 rm -f conftest.er1 21473 cat conftest.err >&5 21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21475 (exit $ac_status); } && 21476 { ac_try='test -z "$ac_c_werror_flag" 21477 || test ! -s conftest.err' 21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21479 (eval $ac_try) 2>&5 21480 ac_status=$? 21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21482 (exit $ac_status); }; } && 21483 { ac_try='test -s conftest$ac_exeext' 21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21485 (eval $ac_try) 2>&5 21486 ac_status=$? 21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21488 (exit $ac_status); }; }; then 21489 echo "$as_me:$LINENO: result: yes" >&5 21490 echo "${ECHO_T}yes" >&6 21491 coin_MUMPS_link=yes 21492 break 21493 else 21494 echo "$as_me: failed program was:" >&5 21495 sed 's/^/| /' conftest.$ac_ext >&5 21496 21497 echo "$as_me:$LINENO: result: no" >&5 21498 echo "${ECHO_T}no" >&6 21499 fi 21500 rm -f conftest.err conftest.$ac_objext \ 21501 conftest$ac_exeext conftest.$ac_ext 21502 done 21503 ac_ext=c 21504 ac_cpp='$CPP $CPPFLAGS' 21505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21507 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21508 21509 if test x"$coin_MUMPS_link" = xyes ; then 21510 LIBS="$coin_save_LIBS" 21511 else 21512 { { echo "$as_me:$LINENO: error: Cannot find symbol(s) dmumps_c with MUMPS" >&5 21513 echo "$as_me: error: Cannot find symbol(s) dmumps_c with MUMPS" >&2;} 21514 { (exit 1); exit 1; }; } 21515 fi 21516 fi 21517 21518 21519 # If we make it this far, we've verified the file and linked the function. Add 21520 # the necessary link flags to ADDLIBS and define the preprocessor symbol 21521 # COIN_HAS_LBRY. 21522 21523 ADDLIBS="$MUMPSLIB $ADDLIBS" 21524 21525 cat >>confdefs.h <<\_ACEOF 21526 #define COIN_HAS_MUMPS 1 21527 _ACEOF 21528 21529 fi 21530 21531 # Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the 21532 # automake conditional. These actions must occur unconditionally. 21533 21534 21535 21536 21537 21538 if test $coin_has_mumps = true; then 21539 COIN_HAS_MUMPS_TRUE= 21540 COIN_HAS_MUMPS_FALSE='#' 21541 else 21542 COIN_HAS_MUMPS_TRUE='#' 21543 COIN_HAS_MUMPS_FALSE= 21544 fi 21545 21546 21547 ac_ext=c 21548 ac_cpp='$CPP $CPPFLAGS' 21549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21551 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21552 21553 21554 if test "$coin_has_mumps" = "true"; then # user provided mumps library 21555 use_mumps=yes 21556 coin_has_mumps=yes 21557 21558 MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $MUMPSINCDIR\`" 21559 ADDLIBS="$MUMPSLIB $ADDLIBS" 21560 21561 else # no user provided library, so we try to build our own 21562 use_mumps=BUILD 21563 21564 # Check if the MUMPS' ThirdParty project has been configured 21565 if test "$PACKAGE_NAME" != ThirdPartyMumps; then 21566 if test -r $coin_mumpsobjdir/.MakeOk; then 21567 use_mumps=BUILD 21568 # Mumps needs pthreads 21569 ac_ext=c 21570 ac_cpp='$CPP $CPPFLAGS' 21571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21573 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21574 21575 save_LIBS="$LIBS" 21576 LIBS="$LIBS $FLIBS" 21577 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21357 21578 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 21358 21579 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then … … 21429 21650 LIBS="-lpthread $save_LIBS"; ADDLIBS="-lpthread $ADDLIBS" 21430 21651 else 21431 LIBS="$save_LIBS" 21432 fi 21433 21434 ac_ext=c 21435 ac_cpp='$CPP $CPPFLAGS' 21436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21438 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21439 21440 21441 case "$CC" in 21442 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 21443 libe=lib ;; 21444 *) libe=a ;; 21445 esac 21446 21447 # Check if hearders are there 21448 if test -r $mumps_dir/include/dmumps_c.h; then 21449 21450 : 21451 else 21452 { { echo "$as_me:$LINENO: error: I cannot find headers for MUMPS" >&5 21453 echo "$as_me: error: I cannot find headers for MUMPS" >&2;} 21454 { (exit 1); exit 1; }; } 21455 : 21456 fi 21457 21458 LIBS="$mumps_dir/lib/libdmumps.$libe $mumps_dir/lib/libpord.$libe $mumps_dir/libseq/libmpiseq.$libe $LIBS" 21459 ADDLIBS="$mumps_dir/lib/libdmumps.$libe $mumps_dir/lib/libpord.$libe $mumps_dir/libseq/libmpiseq.$libe $ADDLIBS" 21460 # Check if MUMPS actually works 21461 ac_ext=c 21462 ac_cpp='$CPP $CPPFLAGS' 21463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21465 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21466 21467 save_LIBS="$LIBS" 21468 LIBS="$LIBS $FLIBS" 21469 cat >conftest.$ac_ext <<_ACEOF 21470 /* confdefs.h. */ 21471 _ACEOF 21472 cat confdefs.h >>conftest.$ac_ext 21473 cat >>conftest.$ac_ext <<_ACEOF 21474 /* end confdefs.h. */ 21475 void dmumps_c(); 21476 #ifdef F77_DUMMY_MAIN 21477 21478 # ifdef __cplusplus 21479 extern "C" 21480 # endif 21481 int F77_DUMMY_MAIN() { return 1; } 21482 21483 #endif 21484 int 21485 main () 21486 { 21487 dmumps_c() 21488 ; 21489 return 0; 21490 } 21491 _ACEOF 21492 rm -f conftest.$ac_objext conftest$ac_exeext 21493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21494 (eval $ac_link) 2>conftest.er1 21495 ac_status=$? 21496 grep -v '^ *+' conftest.er1 >conftest.err 21497 rm -f conftest.er1 21498 cat conftest.err >&5 21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21500 (exit $ac_status); } && 21501 { ac_try='test -z "$ac_c_werror_flag" 21502 || test ! -s conftest.err' 21503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21504 (eval $ac_try) 2>&5 21505 ac_status=$? 21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21507 (exit $ac_status); }; } && 21508 { ac_try='test -s conftest$ac_exeext' 21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21510 (eval $ac_try) 2>&5 21511 ac_status=$? 21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21513 (exit $ac_status); }; }; then 21514 : 21515 else 21516 echo "$as_me: failed program was:" >&5 21517 sed 's/^/| /' conftest.$ac_ext >&5 21518 21519 { { echo "$as_me:$LINENO: error: User provided MUMPS library doesn't work" >&5 21520 echo "$as_me: error: User provided MUMPS library doesn't work" >&2;} 21521 { (exit 1); exit 1; }; } 21522 fi 21523 rm -f conftest.err conftest.$ac_objext \ 21524 conftest$ac_exeext conftest.$ac_ext 21525 LIBS="$save_LIBS" 21526 ac_ext=c 21527 ac_cpp='$CPP $CPPFLAGS' 21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21531 21532 coin_mumpssrcdir="$mumps_dir" 21533 21534 else 21535 use_mumps=BUILD 21536 21537 # Check if the MUMPS' ThirdParty project has been configured 21538 if test "$PACKAGE_NAME" != ThirdPartyMumps; then 21539 if test -r $coin_mumpsobjdir/.MakeOk; then 21540 use_mumps=BUILD 21541 # Mumps needs pthreads 21652 LIBS="save_LIBS" 21653 fi 21654 21542 21655 ac_ext=c 21543 21656 ac_cpp='$CPP $CPPFLAGS' … … 21546 21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21547 21660 21548 save_LIBS="$LIBS" 21549 LIBS="$LIBS $FLIBS" 21550 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21551 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 21552 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 21553 echo $ECHO_N "(cached) $ECHO_C" >&6 21554 else 21555 ac_check_lib_save_LIBS=$LIBS 21556 LIBS="-lpthread $LIBS" 21557 cat >conftest.$ac_ext <<_ACEOF 21558 /* confdefs.h. */ 21559 _ACEOF 21560 cat confdefs.h >>conftest.$ac_ext 21561 cat >>conftest.$ac_ext <<_ACEOF 21562 /* end confdefs.h. */ 21563 21564 /* Override any gcc2 internal prototype to avoid an error. */ 21565 #ifdef __cplusplus 21566 extern "C" 21567 #endif 21568 /* We use char because int might match the return type of a gcc2 21569 builtin and then its argument prototype would still apply. */ 21570 char pthread_create (); 21571 #ifdef F77_DUMMY_MAIN 21572 21573 # ifdef __cplusplus 21574 extern "C" 21575 # endif 21576 int F77_DUMMY_MAIN() { return 1; } 21577 21578 #endif 21579 int 21580 main () 21581 { 21582 pthread_create (); 21583 ; 21584 return 0; 21585 } 21586 _ACEOF 21587 rm -f conftest.$ac_objext conftest$ac_exeext 21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21589 (eval $ac_link) 2>conftest.er1 21590 ac_status=$? 21591 grep -v '^ *+' conftest.er1 >conftest.err 21592 rm -f conftest.er1 21593 cat conftest.err >&5 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); } && 21596 { ac_try='test -z "$ac_c_werror_flag" 21597 || test ! -s conftest.err' 21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21599 (eval $ac_try) 2>&5 21600 ac_status=$? 21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21602 (exit $ac_status); }; } && 21603 { ac_try='test -s conftest$ac_exeext' 21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21605 (eval $ac_try) 2>&5 21606 ac_status=$? 21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21608 (exit $ac_status); }; }; then 21609 ac_cv_lib_pthread_pthread_create=yes 21610 else 21611 echo "$as_me: failed program was:" >&5 21612 sed 's/^/| /' conftest.$ac_ext >&5 21613 21614 ac_cv_lib_pthread_pthread_create=no 21615 fi 21616 rm -f conftest.err conftest.$ac_objext \ 21617 conftest$ac_exeext conftest.$ac_ext 21618 LIBS=$ac_check_lib_save_LIBS 21619 fi 21620 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 21621 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 21622 if test $ac_cv_lib_pthread_pthread_create = yes; then 21623 LIBS="-lpthread $save_LIBS"; ADDLIBS="-lpthread $ADDLIBS" 21624 else 21625 LIBS="save_LIBS" 21626 fi 21627 21628 ac_ext=c 21629 ac_cpp='$CPP $CPPFLAGS' 21630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21633 21661 21662 MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $coin_mumpssrcdir/libseq\` -I\`\$(CYGPATH_W) $coin_mumpssrcdir/include\`" 21634 21663 else 21635 21664 use_mumps= 21636 21665 fi 21637 21666 fi 21638 fi 21639 21640 if test x"$use_mumps" != x; then 21641 21642 # and we need the Fortran runtime libraries if we want to link with C/C++ 21643 coin_need_flibs=yes 21644 21645 MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $coin_mumpssrcdir/libseq\` -I\`\$(CYGPATH_W) $coin_mumpssrcdir/include\`" 21646 21647 fi 21648 21667 21668 # if a user provided library is used, then COIN_HAS_USER_LIBRARY takes care of the COIN_HAS_MUMPS conditional and preprocessor symbol 21649 21669 21650 21670 … … 21657 21677 fi 21658 21678 21679 if test x"$use_mumps" != x; then 21680 21681 cat >>confdefs.h <<\_ACEOF 21682 #define COIN_HAS_MUMPS 1 21683 _ACEOF 21684 21685 coin_has_mumps=yes 21686 else 21687 coin_has_mumps=no 21688 fi 21689 echo "$as_me:$LINENO: checking whether MUMPS is available" >&5 21690 echo $ECHO_N "checking whether MUMPS is available... $ECHO_C" >&6 21691 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5 21692 echo "${ECHO_T}$coin_has_mumps" >&6 21693 fi 21694 21695 if test x"$use_mumps" != x; then 21696 # we need the Fortran runtime libraries if we want to link with C/C++ 21697 coin_need_flibs=yes 21698 21699 21700 fi 21701 21659 21702 21660 21703 … … 21668 21711 21669 21712 21670 echo "$as_me:$LINENO: checking whether MUMPS is available" >&521671 echo $ECHO_N "checking whether MUMPS is available... $ECHO_C" >&621672 21673 if test x"$use_mumps" = x || test "$use_mumps" = no; then21674 coin_has_mumps=no21675 else21676 coin_has_mumps=yes21677 21678 cat >>confdefs.h <<\_ACEOF21679 #define COIN_HAS_MUMPS 121680 _ACEOF21681 21682 fi21683 echo "$as_me:$LINENO: result: $coin_has_mumps" >&521684 echo "${ECHO_T}$coin_has_mumps" >&621685 21713 21686 21714 … … 21988 22016 Usually this means the macro was only invoked conditionally." >&5 21989 22017 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22018 Usually this means the macro was only invoked conditionally." >&2;} 22019 { (exit 1); exit 1; }; } 22020 fi 22021 if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then 22022 { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined. 22023 Usually this means the macro was only invoked conditionally." >&5 22024 echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined. 21990 22025 Usually this means the macro was only invoked conditionally." >&2;} 21991 22026 { (exit 1); exit 1; }; } … … 22637 22672 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22638 22673 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22639 s,@MUMPS_INCFLAGS@,$MUMPS_INCFLAGS,;t t 22674 s,@MUMPSINCDIR@,$MUMPSINCDIR,;t t 22675 s,@MUMPSLIB@,$MUMPSLIB,;t t 22640 22676 s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t 22641 22677 s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t 22678 s,@MUMPS_INCFLAGS@,$MUMPS_INCFLAGS,;t t 22642 22679 s,@COIN_BUILD_MUMPS_TRUE@,$COIN_BUILD_MUMPS_TRUE,;t t 22643 22680 s,@COIN_BUILD_MUMPS_FALSE@,$COIN_BUILD_MUMPS_FALSE,;t t
Note: See TracChangeset
for help on using the changeset viewer.