Changeset 229


Ignore:
Timestamp:
Feb 27, 2007 12:26:50 PM (15 years ago)
Author:
andreasw
Message:

compile third party code only if not otherwise available

Location:
ThirdParty/Lapack/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/Makefile.am

    r157 r229  
    1 # Copyright (C) 2006 International Business Machines and others.
     1# Copyright (C) 2006, 2007 International Business Machines and others.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    99EXTRA_DIST = get.lapack INSTALL.LAPACK
    1010
    11 noinst_LTLIBRARIES = libcoinlapack.la
     11if SKIPMAKE
     12  noinst_LTLIBRARIES =
     13else
     14  noinst_LTLIBRARIES = libcoinlapack.la
     15endif
    1216
    1317LAPACK_FILES = \
     
    5963
    6064# Files that are generated and should be cleaned with make distclean
    61 DISTCLEANFILES = $(LAPACK_FILES)
     65DISTCLEANFILES = $(LAPACK_FILES) $(MAKEOKFILE)
    6266
    6367include ../../BuildTools/Makemain.inc
  • ThirdParty/Lapack/trunk/Makefile.in

    r214 r229  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2006 International Business Machines and others.
     17# Copyright (C) 2006, 2007 International Business Machines and others.
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    8181nodist_libcoinlapack_la_OBJECTS = $(am__objects_1)
    8282libcoinlapack_la_OBJECTS = $(nodist_libcoinlapack_la_OBJECTS)
     83@SKIPMAKE_FALSE@am_libcoinlapack_la_rpath =
    8384DEFAULT_INCLUDES = -I. -I$(srcdir)
    8485F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
     
    123124CDEFS = @CDEFS@
    124125CFLAGS = @CFLAGS@
     126COIN_BUILD_LAPACK_FALSE = @COIN_BUILD_LAPACK_FALSE@
     127COIN_BUILD_LAPACK_TRUE = @COIN_BUILD_LAPACK_TRUE@
     128COIN_HAS_LAPACK_FALSE = @COIN_HAS_LAPACK_FALSE@
     129COIN_HAS_LAPACK_TRUE = @COIN_HAS_LAPACK_TRUE@
    125130CPP = @CPP@
    126131CPPFLAGS = @CPPFLAGS@
     
    143148FADDLIBS = @FADDLIBS@
    144149FFLAGS = @FFLAGS@
     150FLIBS = @FLIBS@
    145151HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    146152HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    162168MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    163169MAKEINFO = @MAKEINFO@
     170MAKEOKFILE = @MAKEOKFILE@
    164171MPICC = @MPICC@
    165172MPIF77 = @MPIF77@
     
    178185SET_MAKE = @SET_MAKE@
    179186SHELL = @SHELL@
     187SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
     188SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    180189STRIP = @STRIP@
    181190VERSION = @VERSION@
     
    235244AUTOMAKE_OPTIONS = foreign
    236245EXTRA_DIST = get.lapack INSTALL.LAPACK $(am__append_1)
    237 noinst_LTLIBRARIES = libcoinlapack.la
     246@SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinlapack.la
     247@SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    238248LAPACK_FILES = \
    239249        dgetf2.f \
     
    283293
    284294# Files that are generated and should be cleaned with make distclean
    285 DISTCLEANFILES = $(LAPACK_FILES) $(am__append_2) \
     295DISTCLEANFILES = $(LAPACK_FILES) $(MAKEOKFILE) $(am__append_2) \
    286296        $(VPATH_DISTCLEANFILES)
    287297all: all-am
     
    332342        done
    333343libcoinlapack.la: $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_DEPENDENCIES)
    334         $(F77LINK) $(libcoinlapack_la_LDFLAGS) $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_LIBADD) $(LIBS)
     344        $(F77LINK) $(am_libcoinlapack_la_rpath) $(libcoinlapack_la_LDFLAGS) $(libcoinlapack_la_OBJECTS) $(libcoinlapack_la_LIBADD) $(LIBS)
    335345
    336346mostlyclean-compile:
  • ThirdParty/Lapack/trunk/configure

    r214 r229  
    473473#endif"
    474474
    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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 FLIBS COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    11011101  --with-tags[=TAGS]
    11021102                          include additional configurations [automatic]
     1103  --with-lapack           specify LAPACK library (or BUILD for compilation)
    11031104
    11041105Some influential environment variables:
     
    31973198
    31983199# Provide some information about the compiler.
    3199 echo "$as_me:3199:" \
     3200echo "$as_me:3200:" \
    32003201     "checking for Fortran 77 compiler version" >&5
    32013202ac_compiler=`set X $ac_compile; echo $2`
     
    54045405*-*-irix6*)
    54055406  # Find out which ABI we are using.
    5406   echo '#line 5406 "configure"' > conftest.$ac_ext
     5407  echo '#line 5407 "configure"' > conftest.$ac_ext
    54075408  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54085409  (eval $ac_compile) 2>&5
     
    78337834   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78347835   -e 's:$: $lt_compiler_flag:'`
    7835    (eval echo "\"\$as_me:7835: $lt_compile\"" >&5)
     7836   (eval echo "\"\$as_me:7836: $lt_compile\"" >&5)
    78367837   (eval "$lt_compile" 2>conftest.err)
    78377838   ac_status=$?
    78387839   cat conftest.err >&5
    7839    echo "$as_me:7839: \$? = $ac_status" >&5
     7840   echo "$as_me:7840: \$? = $ac_status" >&5
    78407841   if (exit $ac_status) && test -s "$ac_outfile"; then
    78417842     # The compiler can only warn and ignore the option if not recognized
     
    81018102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81028103   -e 's:$: $lt_compiler_flag:'`
    8103    (eval echo "\"\$as_me:8103: $lt_compile\"" >&5)
     8104   (eval echo "\"\$as_me:8104: $lt_compile\"" >&5)
    81048105   (eval "$lt_compile" 2>conftest.err)
    81058106   ac_status=$?
    81068107   cat conftest.err >&5
    8107    echo "$as_me:8107: \$? = $ac_status" >&5
     8108   echo "$as_me:8108: \$? = $ac_status" >&5
    81088109   if (exit $ac_status) && test -s "$ac_outfile"; then
    81098110     # The compiler can only warn and ignore the option if not recognized
     
    82058206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82068207   -e 's:$: $lt_compiler_flag:'`
    8207    (eval echo "\"\$as_me:8207: $lt_compile\"" >&5)
     8208   (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
    82088209   (eval "$lt_compile" 2>out/conftest.err)
    82098210   ac_status=$?
    82108211   cat out/conftest.err >&5
    8211    echo "$as_me:8211: \$? = $ac_status" >&5
     8212   echo "$as_me:8212: \$? = $ac_status" >&5
    82128213   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82138214   then
     
    1055010551  lt_status=$lt_dlunknown
    1055110552  cat > conftest.$ac_ext <<EOF
    10552 #line 10552 "configure"
     10553#line 10553 "configure"
    1055310554#include "confdefs.h"
    1055410555
     
    1065010651  lt_status=$lt_dlunknown
    1065110652  cat > conftest.$ac_ext <<EOF
    10652 #line 10652 "configure"
     10653#line 10653 "configure"
    1065310654#include "confdefs.h"
    1065410655
     
    1299412995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1299512996   -e 's:$: $lt_compiler_flag:'`
    12996    (eval echo "\"\$as_me:12996: $lt_compile\"" >&5)
     12997   (eval echo "\"\$as_me:12997: $lt_compile\"" >&5)
    1299712998   (eval "$lt_compile" 2>conftest.err)
    1299812999   ac_status=$?
    1299913000   cat conftest.err >&5
    13000    echo "$as_me:13000: \$? = $ac_status" >&5
     13001   echo "$as_me:13001: \$? = $ac_status" >&5
    1300113002   if (exit $ac_status) && test -s "$ac_outfile"; then
    1300213003     # The compiler can only warn and ignore the option if not recognized
     
    1309813099   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1309913100   -e 's:$: $lt_compiler_flag:'`
    13100    (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
     13101   (eval echo "\"\$as_me:13101: $lt_compile\"" >&5)
    1310113102   (eval "$lt_compile" 2>out/conftest.err)
    1310213103   ac_status=$?
    1310313104   cat out/conftest.err >&5
    13104    echo "$as_me:13104: \$? = $ac_status" >&5
     13105   echo "$as_me:13105: \$? = $ac_status" >&5
    1310513106   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1310613107   then
     
    1466814669   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1466914670   -e 's:$: $lt_compiler_flag:'`
    14670    (eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
     14671   (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
    1467114672   (eval "$lt_compile" 2>conftest.err)
    1467214673   ac_status=$?
    1467314674   cat conftest.err >&5
    14674    echo "$as_me:14674: \$? = $ac_status" >&5
     14675   echo "$as_me:14675: \$? = $ac_status" >&5
    1467514676   if (exit $ac_status) && test -s "$ac_outfile"; then
    1467614677     # The compiler can only warn and ignore the option if not recognized
     
    1477214773   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1477314774   -e 's:$: $lt_compiler_flag:'`
    14774    (eval echo "\"\$as_me:14774: $lt_compile\"" >&5)
     14775   (eval echo "\"\$as_me:14775: $lt_compile\"" >&5)
    1477514776   (eval "$lt_compile" 2>out/conftest.err)
    1477614777   ac_status=$?
    1477714778   cat out/conftest.err >&5
    14778    echo "$as_me:14778: \$? = $ac_status" >&5
     14779   echo "$as_me:14779: \$? = $ac_status" >&5
    1477914780   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1478014781   then
     
    1697916980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1698016981   -e 's:$: $lt_compiler_flag:'`
    16981    (eval echo "\"\$as_me:16981: $lt_compile\"" >&5)
     16982   (eval echo "\"\$as_me:16982: $lt_compile\"" >&5)
    1698216983   (eval "$lt_compile" 2>conftest.err)
    1698316984   ac_status=$?
    1698416985   cat conftest.err >&5
    16985    echo "$as_me:16985: \$? = $ac_status" >&5
     16986   echo "$as_me:16986: \$? = $ac_status" >&5
    1698616987   if (exit $ac_status) && test -s "$ac_outfile"; then
    1698716988     # The compiler can only warn and ignore the option if not recognized
     
    1724717248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1724817249   -e 's:$: $lt_compiler_flag:'`
    17249    (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
     17250   (eval echo "\"\$as_me:17250: $lt_compile\"" >&5)
    1725017251   (eval "$lt_compile" 2>conftest.err)
    1725117252   ac_status=$?
    1725217253   cat conftest.err >&5
    17253    echo "$as_me:17253: \$? = $ac_status" >&5
     17254   echo "$as_me:17254: \$? = $ac_status" >&5
    1725417255   if (exit $ac_status) && test -s "$ac_outfile"; then
    1725517256     # The compiler can only warn and ignore the option if not recognized
     
    1735117352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1735217353   -e 's:$: $lt_compiler_flag:'`
    17353    (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
     17354   (eval echo "\"\$as_me:17354: $lt_compile\"" >&5)
    1735417355   (eval "$lt_compile" 2>out/conftest.err)
    1735517356   ac_status=$?
    1735617357   cat out/conftest.err >&5
    17357    echo "$as_me:17357: \$? = $ac_status" >&5
     17358   echo "$as_me:17358: \$? = $ac_status" >&5
    1735817359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1735917360   then
     
    2020420205}
    2020520206
     20207# Check if Lapack is already available on the system or provided by user
     20208ac_ext=f
     20209ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20210ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20211ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20212echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     20213echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     20214if test "${ac_cv_prog_f77_v+set}" = set; then
     20215  echo $ECHO_N "(cached) $ECHO_C" >&6
     20216else
     20217  cat >conftest.$ac_ext <<_ACEOF
     20218      program main
     20219
     20220      end
     20221_ACEOF
     20222rm -f conftest.$ac_objext
     20223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20224  (eval $ac_compile) 2>conftest.er1
     20225  ac_status=$?
     20226  grep -v '^ *+' conftest.er1 >conftest.err
     20227  rm -f conftest.er1
     20228  cat conftest.err >&5
     20229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20230  (exit $ac_status); } &&
     20231         { ac_try='test -z "$ac_f77_werror_flag"
     20232                         || test ! -s conftest.err'
     20233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20234  (eval $ac_try) 2>&5
     20235  ac_status=$?
     20236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20237  (exit $ac_status); }; } &&
     20238         { ac_try='test -s conftest.$ac_objext'
     20239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20240  (eval $ac_try) 2>&5
     20241  ac_status=$?
     20242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20243  (exit $ac_status); }; }; then
     20244  ac_cv_prog_f77_v=
     20245# Try some options frequently used verbose output
     20246for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     20247  cat >conftest.$ac_ext <<_ACEOF
     20248      program main
     20249
     20250      end
     20251_ACEOF
     20252
     20253# Compile and link our simple test program by passing a flag (argument
     20254# 1 to this macro) to the Fortran compiler in order to get
     20255# "verbose" output that we can then parse for the Fortran linker
     20256# flags.
     20257ac_save_FFLAGS=$FFLAGS
     20258FFLAGS="$FFLAGS $ac_verb"
     20259(eval echo $as_me:20259: \"$ac_link\") >&5
     20260ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20261echo "$ac_f77_v_output" >&5
     20262FFLAGS=$ac_save_FFLAGS
     20263
     20264rm -f conftest*
     20265
     20266# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20267# /foo, /bar, and /baz are search directories for the Fortran linker.
     20268# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20269ac_f77_v_output="`echo $ac_f77_v_output |
     20270        grep 'LPATH is:' |
     20271        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20272
     20273case $ac_f77_v_output in
     20274  # If we are using xlf then replace all the commas with spaces.
     20275  *xlfentry*)
     20276    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20277
     20278  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20279  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20280  *mGLOB_options_string*)
     20281    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20282
     20283  # If we are using Cray Fortran then delete quotes.
     20284  # Use "\"" instead of '"' for font-lock-mode.
     20285  # FIXME: a more general fix for quoted arguments with spaces?
     20286  *cft90*)
     20287    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20288esac
     20289
     20290
     20291  # look for -l* and *.a constructs in the output
     20292  for ac_arg in $ac_f77_v_output; do
     20293     case $ac_arg in
     20294        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     20295          ac_cv_prog_f77_v=$ac_verb
     20296          break 2 ;;
     20297     esac
     20298  done
     20299done
     20300if test -z "$ac_cv_prog_f77_v"; then
     20301   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     20302echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     20303fi
     20304else
     20305  echo "$as_me: failed program was:" >&5
     20306sed 's/^/| /' conftest.$ac_ext >&5
     20307
     20308{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     20309echo "$as_me: WARNING: compilation failed" >&2;}
     20310fi
     20311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20312
     20313fi
     20314echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     20315echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     20316echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     20317echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     20318if test "${ac_cv_f77_libs+set}" = set; then
     20319  echo $ECHO_N "(cached) $ECHO_C" >&6
     20320else
     20321  if test "x$FLIBS" != "x"; then
     20322  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     20323else
     20324
     20325cat >conftest.$ac_ext <<_ACEOF
     20326      program main
     20327
     20328      end
     20329_ACEOF
     20330
     20331# Compile and link our simple test program by passing a flag (argument
     20332# 1 to this macro) to the Fortran compiler in order to get
     20333# "verbose" output that we can then parse for the Fortran linker
     20334# flags.
     20335ac_save_FFLAGS=$FFLAGS
     20336FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     20337(eval echo $as_me:20337: \"$ac_link\") >&5
     20338ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20339echo "$ac_f77_v_output" >&5
     20340FFLAGS=$ac_save_FFLAGS
     20341
     20342rm -f conftest*
     20343
     20344# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20345# /foo, /bar, and /baz are search directories for the Fortran linker.
     20346# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20347ac_f77_v_output="`echo $ac_f77_v_output |
     20348        grep 'LPATH is:' |
     20349        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20350
     20351case $ac_f77_v_output in
     20352  # If we are using xlf then replace all the commas with spaces.
     20353  *xlfentry*)
     20354    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20355
     20356  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20357  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20358  *mGLOB_options_string*)
     20359    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20360
     20361  # If we are using Cray Fortran then delete quotes.
     20362  # Use "\"" instead of '"' for font-lock-mode.
     20363  # FIXME: a more general fix for quoted arguments with spaces?
     20364  *cft90*)
     20365    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20366esac
     20367
     20368
     20369
     20370ac_cv_f77_libs=
     20371
     20372# Save positional arguments (if any)
     20373ac_save_positional="$@"
     20374
     20375set X $ac_f77_v_output
     20376while test $# != 1; do
     20377  shift
     20378  ac_arg=$1
     20379  case $ac_arg in
     20380        [\\/]*.a | ?:[\\/]*.a)
     20381            ac_exists=false
     20382  for ac_i in $ac_cv_f77_libs; do
     20383    if test x"$ac_arg" = x"$ac_i"; then
     20384      ac_exists=true
     20385      break
     20386    fi
     20387  done
     20388
     20389  if test x"$ac_exists" = xtrue; then
     20390  :
     20391else
     20392  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20393fi
     20394
     20395          ;;
     20396        -bI:*)
     20397            ac_exists=false
     20398  for ac_i in $ac_cv_f77_libs; do
     20399    if test x"$ac_arg" = x"$ac_i"; then
     20400      ac_exists=true
     20401      break
     20402    fi
     20403  done
     20404
     20405  if test x"$ac_exists" = xtrue; then
     20406  :
     20407else
     20408  if test "$ac_compiler_gnu" = yes; then
     20409  for ac_link_opt in $ac_arg; do
     20410    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20411  done
     20412else
     20413  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20414fi
     20415fi
     20416
     20417          ;;
     20418          # Ignore these flags.
     20419        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     20420          ;;
     20421        -lkernel32)
     20422          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20423          ;;
     20424        -[LRuY])
     20425          # These flags, when seen by themselves, take an argument.
     20426          # We remove the space between option and argument and re-iterate
     20427          # unless we find an empty arg or a new option (starting with -)
     20428          case $2 in
     20429             "" | -*);;
     20430             *)
     20431                ac_arg="$ac_arg$2"
     20432                shift; shift
     20433                set X $ac_arg "$@"
     20434                ;;
     20435          esac
     20436          ;;
     20437        -YP,*)
     20438          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     20439              ac_exists=false
     20440  for ac_i in $ac_cv_f77_libs; do
     20441    if test x"$ac_j" = x"$ac_i"; then
     20442      ac_exists=true
     20443      break
     20444    fi
     20445  done
     20446
     20447  if test x"$ac_exists" = xtrue; then
     20448  :
     20449else
     20450  ac_arg="$ac_arg $ac_j"
     20451                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     20452fi
     20453
     20454          done
     20455          ;;
     20456        -[lLR]*)
     20457            ac_exists=false
     20458  for ac_i in $ac_cv_f77_libs; do
     20459    if test x"$ac_arg" = x"$ac_i"; then
     20460      ac_exists=true
     20461      break
     20462    fi
     20463  done
     20464
     20465  if test x"$ac_exists" = xtrue; then
     20466  :
     20467else
     20468  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20469fi
     20470
     20471          ;;
     20472          # Ignore everything else.
     20473  esac
     20474done
     20475# restore positional arguments
     20476set X $ac_save_positional; shift
     20477
     20478# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     20479# then we insist that the "run path" must be an absolute path (i.e. it
     20480# must begin with a "/").
     20481case `(uname -sr) 2>/dev/null` in
     20482   "SunOS 5"*)
     20483      ac_ld_run_path=`echo $ac_f77_v_output |
     20484                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     20485      test "x$ac_ld_run_path" != x &&
     20486        if test "$ac_compiler_gnu" = yes; then
     20487  for ac_link_opt in $ac_ld_run_path; do
     20488    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20489  done
     20490else
     20491  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     20492fi
     20493      ;;
     20494esac
     20495fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     20496
     20497fi
     20498echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     20499echo "${ECHO_T}$ac_cv_f77_libs" >&6
     20500FLIBS="$ac_cv_f77_libs"
     20501
     20502
     20503ac_ext=c
     20504ac_cpp='$CPP $CPPFLAGS'
     20505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20507ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20508
     20509ac_ext=f
     20510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20513
     20514echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     20515echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     20516if test "${ac_cv_f77_dummy_main+set}" = set; then
     20517  echo $ECHO_N "(cached) $ECHO_C" >&6
     20518else
     20519  ac_f77_dm_save_LIBS=$LIBS
     20520 LIBS="$LIBS $FLIBS"
     20521 ac_fortran_dm_var=F77_DUMMY_MAIN
     20522 ac_ext=c
     20523ac_cpp='$CPP $CPPFLAGS'
     20524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20526ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20527
     20528 # First, try linking without a dummy main:
     20529 cat >conftest.$ac_ext <<_ACEOF
     20530/* confdefs.h.  */
     20531_ACEOF
     20532cat confdefs.h >>conftest.$ac_ext
     20533cat >>conftest.$ac_ext <<_ACEOF
     20534/* end confdefs.h.  */
     20535
     20536#ifdef F77_DUMMY_MAIN
     20537
     20538#  ifdef __cplusplus
     20539     extern "C"
     20540#  endif
     20541   int F77_DUMMY_MAIN() { return 1; }
     20542
     20543#endif
     20544int
     20545main ()
     20546{
     20547
     20548  ;
     20549  return 0;
     20550}
     20551_ACEOF
     20552rm -f conftest.$ac_objext conftest$ac_exeext
     20553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20554  (eval $ac_link) 2>conftest.er1
     20555  ac_status=$?
     20556  grep -v '^ *+' conftest.er1 >conftest.err
     20557  rm -f conftest.er1
     20558  cat conftest.err >&5
     20559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20560  (exit $ac_status); } &&
     20561         { ac_try='test -z "$ac_c_werror_flag"
     20562                         || test ! -s conftest.err'
     20563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20564  (eval $ac_try) 2>&5
     20565  ac_status=$?
     20566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20567  (exit $ac_status); }; } &&
     20568         { ac_try='test -s conftest$ac_exeext'
     20569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20570  (eval $ac_try) 2>&5
     20571  ac_status=$?
     20572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20573  (exit $ac_status); }; }; then
     20574  ac_cv_fortran_dummy_main=none
     20575else
     20576  echo "$as_me: failed program was:" >&5
     20577sed 's/^/| /' conftest.$ac_ext >&5
     20578
     20579ac_cv_fortran_dummy_main=unknown
     20580fi
     20581rm -f conftest.err conftest.$ac_objext \
     20582      conftest$ac_exeext conftest.$ac_ext
     20583
     20584 if test $ac_cv_fortran_dummy_main = unknown; then
     20585   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     20586     cat >conftest.$ac_ext <<_ACEOF
     20587/* confdefs.h.  */
     20588_ACEOF
     20589cat confdefs.h >>conftest.$ac_ext
     20590cat >>conftest.$ac_ext <<_ACEOF
     20591/* end confdefs.h.  */
     20592#define $ac_fortran_dm_var $ac_func
     20593#ifdef F77_DUMMY_MAIN
     20594
     20595#  ifdef __cplusplus
     20596     extern "C"
     20597#  endif
     20598   int F77_DUMMY_MAIN() { return 1; }
     20599
     20600#endif
     20601int
     20602main ()
     20603{
     20604
     20605  ;
     20606  return 0;
     20607}
     20608_ACEOF
     20609rm -f conftest.$ac_objext conftest$ac_exeext
     20610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20611  (eval $ac_link) 2>conftest.er1
     20612  ac_status=$?
     20613  grep -v '^ *+' conftest.er1 >conftest.err
     20614  rm -f conftest.er1
     20615  cat conftest.err >&5
     20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20617  (exit $ac_status); } &&
     20618         { ac_try='test -z "$ac_c_werror_flag"
     20619                         || test ! -s conftest.err'
     20620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20621  (eval $ac_try) 2>&5
     20622  ac_status=$?
     20623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20624  (exit $ac_status); }; } &&
     20625         { ac_try='test -s conftest$ac_exeext'
     20626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20627  (eval $ac_try) 2>&5
     20628  ac_status=$?
     20629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20630  (exit $ac_status); }; }; then
     20631  ac_cv_fortran_dummy_main=$ac_func; break
     20632else
     20633  echo "$as_me: failed program was:" >&5
     20634sed 's/^/| /' conftest.$ac_ext >&5
     20635
     20636fi
     20637rm -f conftest.err conftest.$ac_objext \
     20638      conftest$ac_exeext conftest.$ac_ext
     20639   done
     20640 fi
     20641 ac_ext=f
     20642ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20643ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20644ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20645 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     20646 rm -f conftest*
     20647 LIBS=$ac_f77_dm_save_LIBS
     20648
     20649fi
     20650echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     20651echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     20652F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     20653if test "$F77_DUMMY_MAIN" != unknown; then
     20654  if test $F77_DUMMY_MAIN != none; then
     20655
     20656cat >>confdefs.h <<_ACEOF
     20657#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     20658_ACEOF
     20659
     20660  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     20661
     20662cat >>confdefs.h <<\_ACEOF
     20663#define FC_DUMMY_MAIN_EQ_F77 1
     20664_ACEOF
     20665
     20666  fi
     20667fi
     20668else
     20669  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     20670See \`config.log' for more details." >&5
     20671echo "$as_me: error: linking to Fortran libraries from C fails
     20672See \`config.log' for more details." >&2;}
     20673   { (exit 1); exit 1; }; }
     20674fi
     20675
     20676
     20677ac_ext=c
     20678ac_cpp='$CPP $CPPFLAGS'
     20679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20681ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20682
     20683ac_ext=f
     20684ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20685ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20686ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20687echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     20688echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     20689if test "${ac_cv_f77_mangling+set}" = set; then
     20690  echo $ECHO_N "(cached) $ECHO_C" >&6
     20691else
     20692  cat >conftest.$ac_ext <<_ACEOF
     20693      subroutine foobar()
     20694      return
     20695      end
     20696      subroutine foo_bar()
     20697      return
     20698      end
     20699_ACEOF
     20700rm -f conftest.$ac_objext
     20701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20702  (eval $ac_compile) 2>conftest.er1
     20703  ac_status=$?
     20704  grep -v '^ *+' conftest.er1 >conftest.err
     20705  rm -f conftest.er1
     20706  cat conftest.err >&5
     20707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20708  (exit $ac_status); } &&
     20709         { ac_try='test -z "$ac_f77_werror_flag"
     20710                         || test ! -s conftest.err'
     20711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20712  (eval $ac_try) 2>&5
     20713  ac_status=$?
     20714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20715  (exit $ac_status); }; } &&
     20716         { ac_try='test -s conftest.$ac_objext'
     20717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20718  (eval $ac_try) 2>&5
     20719  ac_status=$?
     20720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20721  (exit $ac_status); }; }; then
     20722  mv conftest.$ac_objext cfortran_test.$ac_objext
     20723
     20724  ac_save_LIBS=$LIBS
     20725  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     20726
     20727  ac_ext=c
     20728ac_cpp='$CPP $CPPFLAGS'
     20729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20731ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20732  ac_success=no
     20733  for ac_foobar in foobar FOOBAR; do
     20734    for ac_underscore in "" "_"; do
     20735      ac_func="$ac_foobar$ac_underscore"
     20736      cat >conftest.$ac_ext <<_ACEOF
     20737/* confdefs.h.  */
     20738_ACEOF
     20739cat confdefs.h >>conftest.$ac_ext
     20740cat >>conftest.$ac_ext <<_ACEOF
     20741/* end confdefs.h.  */
     20742
     20743/* Override any gcc2 internal prototype to avoid an error.  */
     20744#ifdef __cplusplus
     20745extern "C"
     20746#endif
     20747/* We use char because int might match the return type of a gcc2
     20748   builtin and then its argument prototype would still apply.  */
     20749char $ac_func ();
     20750#ifdef F77_DUMMY_MAIN
     20751
     20752#  ifdef __cplusplus
     20753     extern "C"
     20754#  endif
     20755   int F77_DUMMY_MAIN() { return 1; }
     20756
     20757#endif
     20758int
     20759main ()
     20760{
     20761$ac_func ();
     20762  ;
     20763  return 0;
     20764}
     20765_ACEOF
     20766rm -f conftest.$ac_objext conftest$ac_exeext
     20767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20768  (eval $ac_link) 2>conftest.er1
     20769  ac_status=$?
     20770  grep -v '^ *+' conftest.er1 >conftest.err
     20771  rm -f conftest.er1
     20772  cat conftest.err >&5
     20773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20774  (exit $ac_status); } &&
     20775         { ac_try='test -z "$ac_c_werror_flag"
     20776                         || test ! -s conftest.err'
     20777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20778  (eval $ac_try) 2>&5
     20779  ac_status=$?
     20780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20781  (exit $ac_status); }; } &&
     20782         { ac_try='test -s conftest$ac_exeext'
     20783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20784  (eval $ac_try) 2>&5
     20785  ac_status=$?
     20786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20787  (exit $ac_status); }; }; then
     20788  ac_success=yes; break 2
     20789else
     20790  echo "$as_me: failed program was:" >&5
     20791sed 's/^/| /' conftest.$ac_ext >&5
     20792
     20793fi
     20794rm -f conftest.err conftest.$ac_objext \
     20795      conftest$ac_exeext conftest.$ac_ext
     20796    done
     20797  done
     20798  ac_ext=f
     20799ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20800ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20801ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20802
     20803  if test "$ac_success" = "yes"; then
     20804     case $ac_foobar in
     20805        foobar)
     20806           ac_case=lower
     20807           ac_foo_bar=foo_bar
     20808           ;;
     20809        FOOBAR)
     20810           ac_case=upper
     20811           ac_foo_bar=FOO_BAR
     20812           ;;
     20813     esac
     20814
     20815     ac_ext=c
     20816ac_cpp='$CPP $CPPFLAGS'
     20817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20819ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20820     ac_success_extra=no
     20821     for ac_extra in "" "_"; do
     20822        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     20823        cat >conftest.$ac_ext <<_ACEOF
     20824/* confdefs.h.  */
     20825_ACEOF
     20826cat confdefs.h >>conftest.$ac_ext
     20827cat >>conftest.$ac_ext <<_ACEOF
     20828/* end confdefs.h.  */
     20829
     20830/* Override any gcc2 internal prototype to avoid an error.  */
     20831#ifdef __cplusplus
     20832extern "C"
     20833#endif
     20834/* We use char because int might match the return type of a gcc2
     20835   builtin and then its argument prototype would still apply.  */
     20836char $ac_func ();
     20837#ifdef F77_DUMMY_MAIN
     20838
     20839#  ifdef __cplusplus
     20840     extern "C"
     20841#  endif
     20842   int F77_DUMMY_MAIN() { return 1; }
     20843
     20844#endif
     20845int
     20846main ()
     20847{
     20848$ac_func ();
     20849  ;
     20850  return 0;
     20851}
     20852_ACEOF
     20853rm -f conftest.$ac_objext conftest$ac_exeext
     20854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20855  (eval $ac_link) 2>conftest.er1
     20856  ac_status=$?
     20857  grep -v '^ *+' conftest.er1 >conftest.err
     20858  rm -f conftest.er1
     20859  cat conftest.err >&5
     20860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20861  (exit $ac_status); } &&
     20862         { ac_try='test -z "$ac_c_werror_flag"
     20863                         || test ! -s conftest.err'
     20864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20865  (eval $ac_try) 2>&5
     20866  ac_status=$?
     20867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20868  (exit $ac_status); }; } &&
     20869         { ac_try='test -s conftest$ac_exeext'
     20870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20871  (eval $ac_try) 2>&5
     20872  ac_status=$?
     20873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20874  (exit $ac_status); }; }; then
     20875  ac_success_extra=yes; break
     20876else
     20877  echo "$as_me: failed program was:" >&5
     20878sed 's/^/| /' conftest.$ac_ext >&5
     20879
     20880fi
     20881rm -f conftest.err conftest.$ac_objext \
     20882      conftest$ac_exeext conftest.$ac_ext
     20883     done
     20884     ac_ext=f
     20885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20888
     20889     if test "$ac_success_extra" = "yes"; then
     20890        ac_cv_f77_mangling="$ac_case case"
     20891        if test -z "$ac_underscore"; then
     20892           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     20893        else
     20894           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     20895        fi
     20896        if test -z "$ac_extra"; then
     20897           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     20898        else
     20899           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     20900        fi
     20901      else
     20902        ac_cv_f77_mangling="unknown"
     20903      fi
     20904  else
     20905     ac_cv_f77_mangling="unknown"
     20906  fi
     20907
     20908  LIBS=$ac_save_LIBS
     20909  rm -f cfortran_test* conftest*
     20910else
     20911  echo "$as_me: failed program was:" >&5
     20912sed 's/^/| /' conftest.$ac_ext >&5
     20913
     20914{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     20915See \`config.log' for more details." >&5
     20916echo "$as_me: error: cannot compile a simple Fortran program
     20917See \`config.log' for more details." >&2;}
     20918   { (exit 1); exit 1; }; }
     20919fi
     20920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20921
     20922fi
     20923echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     20924echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     20925
     20926ac_ext=c
     20927ac_cpp='$CPP $CPPFLAGS'
     20928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20930ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20931
     20932coin_lapackobjdir=../ThirdParty/Lapack
     20933coin_lapacksrcdir=$srcdir/$coin_lapackobjdir
     20934
     20935
     20936# Check whether --with-lapack or --without-lapack was given.
     20937if test "${with_lapack+set}" = set; then
     20938  withval="$with_lapack"
     20939  use_lapack=$withval
     20940else
     20941  use_lapack=
     20942fi;
     20943
     20944# Check if user supplied option makes sense
     20945if test x"$use_lapack" != x; then
     20946  if test "$use_lapack" = "BUILD"; then
     20947    # Don't check for course code if this is executed in ThirdParty/Blas
     20948    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     20949      as_ac_File=`echo "ac_cv_file_$coin_lapackobjdir/.MakeOk" | $as_tr_sh`
     20950echo "$as_me:$LINENO: checking for $coin_lapackobjdir/.MakeOk" >&5
     20951echo $ECHO_N "checking for $coin_lapackobjdir/.MakeOk... $ECHO_C" >&6
     20952if eval "test \"\${$as_ac_File+set}\" = set"; then
     20953  echo $ECHO_N "(cached) $ECHO_C" >&6
     20954else
     20955  test "$cross_compiling" = yes &&
     20956  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     20957echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     20958   { (exit 1); exit 1; }; }
     20959if test -r "$coin_lapackobjdir/.MakeOk"; then
     20960  eval "$as_ac_File=yes"
     20961else
     20962  eval "$as_ac_File=no"
     20963fi
     20964fi
     20965echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     20966echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     20967if test `eval echo '${'$as_ac_File'}'` = yes; then
     20968  :
     20969else
     20970  { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&5
     20971echo "$as_me: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&2;}
     20972   { (exit 1); exit 1; }; }
     20973fi
     20974
     20975    fi
     20976  else
     20977    echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
     20978echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
     20979    LIBS="$use_lapack $LIBS"
     20980    ADDLIBS="$use_lapack $ADDLIBS"
     20981    case $ac_ext in
     20982  f)
     20983    cat >conftest.$ac_ext <<_ACEOF
     20984/* confdefs.h.  */
     20985_ACEOF
     20986cat confdefs.h >>conftest.$ac_ext
     20987cat >>conftest.$ac_ext <<_ACEOF
     20988/* end confdefs.h.  */
     20989
     20990int
     20991main ()
     20992{
     20993      call dsyev
     20994  ;
     20995  return 0;
     20996}
     20997_ACEOF
     20998rm -f conftest.$ac_objext conftest$ac_exeext
     20999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21000  (eval $ac_link) 2>conftest.er1
     21001  ac_status=$?
     21002  grep -v '^ *+' conftest.er1 >conftest.err
     21003  rm -f conftest.er1
     21004  cat conftest.err >&5
     21005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21006  (exit $ac_status); } &&
     21007         { ac_try='test -z "$ac_c_werror_flag"
     21008                         || test ! -s conftest.err'
     21009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21010  (eval $ac_try) 2>&5
     21011  ac_status=$?
     21012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21013  (exit $ac_status); }; } &&
     21014         { ac_try='test -s conftest$ac_exeext'
     21015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21016  (eval $ac_try) 2>&5
     21017  ac_status=$?
     21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21019  (exit $ac_status); }; }; then
     21020  echo "$as_me:$LINENO: result: yes" >&5
     21021echo "${ECHO_T}yes" >&6
     21022else
     21023  echo "$as_me: failed program was:" >&5
     21024sed 's/^/| /' conftest.$ac_ext >&5
     21025
     21026echo "$as_me:$LINENO: result: no" >&5
     21027echo "${ECHO_T}no" >&6
     21028                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     21029echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     21030   { (exit 1); exit 1; }; }
     21031fi
     21032rm -f conftest.err conftest.$ac_objext \
     21033      conftest$ac_exeext conftest.$ac_ext
     21034    ;;
     21035  c)
     21036    ac_ext=f
     21037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21040case $ac_cv_f77_mangling in
     21041  upper*) ac_val="DSYEV" ;;
     21042  lower*) ac_val="dsyev" ;;
     21043  *)      ac_val="unknown" ;;
     21044esac
     21045case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21046
     21047cfuncdsyev="$ac_val"
     21048
     21049ac_ext=c
     21050ac_cpp='$CPP $CPPFLAGS'
     21051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21053ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21054
     21055    if test x"$coin_need_flibs" = xyes; then
     21056      flink_try=no;
     21057    else
     21058      cat >conftest.$ac_ext <<_ACEOF
     21059/* confdefs.h.  */
     21060_ACEOF
     21061cat confdefs.h >>conftest.$ac_ext
     21062cat >>conftest.$ac_ext <<_ACEOF
     21063/* end confdefs.h.  */
     21064void $cfuncdsyev();
     21065#ifdef F77_DUMMY_MAIN
     21066
     21067#  ifdef __cplusplus
     21068     extern "C"
     21069#  endif
     21070   int F77_DUMMY_MAIN() { return 1; }
     21071
     21072#endif
     21073int
     21074main ()
     21075{
     21076$cfuncdsyev()
     21077  ;
     21078  return 0;
     21079}
     21080_ACEOF
     21081rm -f conftest.$ac_objext conftest$ac_exeext
     21082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21083  (eval $ac_link) 2>conftest.er1
     21084  ac_status=$?
     21085  grep -v '^ *+' conftest.er1 >conftest.err
     21086  rm -f conftest.er1
     21087  cat conftest.err >&5
     21088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21089  (exit $ac_status); } &&
     21090         { ac_try='test -z "$ac_c_werror_flag"
     21091                         || test ! -s conftest.err'
     21092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21093  (eval $ac_try) 2>&5
     21094  ac_status=$?
     21095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21096  (exit $ac_status); }; } &&
     21097         { ac_try='test -s conftest$ac_exeext'
     21098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21099  (eval $ac_try) 2>&5
     21100  ac_status=$?
     21101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21102  (exit $ac_status); }; }; then
     21103  flink_try=yes
     21104else
     21105  echo "$as_me: failed program was:" >&5
     21106sed 's/^/| /' conftest.$ac_ext >&5
     21107
     21108flink_try=no
     21109fi
     21110rm -f conftest.err conftest.$ac_objext \
     21111      conftest$ac_exeext conftest.$ac_ext
     21112    fi
     21113    if test $flink_try = yes; then
     21114      echo "$as_me:$LINENO: result: yes" >&5
     21115echo "${ECHO_T}yes" >&6
     21116    else
     21117      if test x"$FLIBS" != x; then
     21118        flink_save_libs="$LIBS"
     21119        LIBS="$LIBS $FLIBS"
     21120        cat >conftest.$ac_ext <<_ACEOF
     21121/* confdefs.h.  */
     21122_ACEOF
     21123cat confdefs.h >>conftest.$ac_ext
     21124cat >>conftest.$ac_ext <<_ACEOF
     21125/* end confdefs.h.  */
     21126void $cfuncdsyev();
     21127#ifdef F77_DUMMY_MAIN
     21128
     21129#  ifdef __cplusplus
     21130     extern "C"
     21131#  endif
     21132   int F77_DUMMY_MAIN() { return 1; }
     21133
     21134#endif
     21135int
     21136main ()
     21137{
     21138$cfuncdsyev()
     21139  ;
     21140  return 0;
     21141}
     21142_ACEOF
     21143rm -f conftest.$ac_objext conftest$ac_exeext
     21144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21145  (eval $ac_link) 2>conftest.er1
     21146  ac_status=$?
     21147  grep -v '^ *+' conftest.er1 >conftest.err
     21148  rm -f conftest.er1
     21149  cat conftest.err >&5
     21150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21151  (exit $ac_status); } &&
     21152         { ac_try='test -z "$ac_c_werror_flag"
     21153                         || test ! -s conftest.err'
     21154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21155  (eval $ac_try) 2>&5
     21156  ac_status=$?
     21157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21158  (exit $ac_status); }; } &&
     21159         { ac_try='test -s conftest$ac_exeext'
     21160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21161  (eval $ac_try) 2>&5
     21162  ac_status=$?
     21163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21164  (exit $ac_status); }; }; then
     21165  LIBS="$flink_save_libs"
     21166                     echo "$as_me:$LINENO: result: yes" >&5
     21167echo "${ECHO_T}yes" >&6
     21168                     coin_need_flibs=yes
     21169else
     21170  echo "$as_me: failed program was:" >&5
     21171sed 's/^/| /' conftest.$ac_ext >&5
     21172
     21173LIBS="$flink_save_libs"
     21174                     echo "$as_me:$LINENO: result: no" >&5
     21175echo "${ECHO_T}no" >&6
     21176                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     21177echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     21178   { (exit 1); exit 1; }; }
     21179fi
     21180rm -f conftest.err conftest.$ac_objext \
     21181      conftest$ac_exeext conftest.$ac_ext
     21182      else
     21183        echo "$as_me:$LINENO: result: no" >&5
     21184echo "${ECHO_T}no" >&6
     21185                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     21186echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     21187   { (exit 1); exit 1; }; }
     21188      fi
     21189    fi
     21190    ;;
     21191  cc|cpp)
     21192    ac_ext=f
     21193ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21194ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21195ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21196case $ac_cv_f77_mangling in
     21197  upper*) ac_val="DSYEV" ;;
     21198  lower*) ac_val="dsyev" ;;
     21199  *)      ac_val="unknown" ;;
     21200esac
     21201case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21202
     21203cfuncdsyev="$ac_val"
     21204
     21205ac_ext=c
     21206ac_cpp='$CPP $CPPFLAGS'
     21207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21209ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21210
     21211    if test x"$coin_need_flibs" = xyes; then
     21212      flink_try=no;
     21213    else
     21214      cat >conftest.$ac_ext <<_ACEOF
     21215/* confdefs.h.  */
     21216_ACEOF
     21217cat confdefs.h >>conftest.$ac_ext
     21218cat >>conftest.$ac_ext <<_ACEOF
     21219/* end confdefs.h.  */
     21220extern "C" {void $cfuncdsyev();}
     21221#ifdef F77_DUMMY_MAIN
     21222
     21223#  ifdef __cplusplus
     21224     extern "C"
     21225#  endif
     21226   int F77_DUMMY_MAIN() { return 1; }
     21227
     21228#endif
     21229int
     21230main ()
     21231{
     21232$cfuncdsyev()
     21233  ;
     21234  return 0;
     21235}
     21236_ACEOF
     21237rm -f conftest.$ac_objext conftest$ac_exeext
     21238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21239  (eval $ac_link) 2>conftest.er1
     21240  ac_status=$?
     21241  grep -v '^ *+' conftest.er1 >conftest.err
     21242  rm -f conftest.er1
     21243  cat conftest.err >&5
     21244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21245  (exit $ac_status); } &&
     21246         { ac_try='test -z "$ac_c_werror_flag"
     21247                         || test ! -s conftest.err'
     21248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21249  (eval $ac_try) 2>&5
     21250  ac_status=$?
     21251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21252  (exit $ac_status); }; } &&
     21253         { ac_try='test -s conftest$ac_exeext'
     21254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21255  (eval $ac_try) 2>&5
     21256  ac_status=$?
     21257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21258  (exit $ac_status); }; }; then
     21259  flink_try=yes
     21260else
     21261  echo "$as_me: failed program was:" >&5
     21262sed 's/^/| /' conftest.$ac_ext >&5
     21263
     21264flink_try=no
     21265fi
     21266rm -f conftest.err conftest.$ac_objext \
     21267      conftest$ac_exeext conftest.$ac_ext
     21268    fi
     21269    if test $flink_try = yes; then
     21270      echo "$as_me:$LINENO: result: yes" >&5
     21271echo "${ECHO_T}yes" >&6
     21272    else
     21273      if test x"$FLIBS" != x; then
     21274        flink_save_libs="$LIBS"
     21275        LIBS="$LIBS $FLIBS"
     21276        cat >conftest.$ac_ext <<_ACEOF
     21277/* confdefs.h.  */
     21278_ACEOF
     21279cat confdefs.h >>conftest.$ac_ext
     21280cat >>conftest.$ac_ext <<_ACEOF
     21281/* end confdefs.h.  */
     21282extern "C" {void $cfuncdsyev();}
     21283#ifdef F77_DUMMY_MAIN
     21284
     21285#  ifdef __cplusplus
     21286     extern "C"
     21287#  endif
     21288   int F77_DUMMY_MAIN() { return 1; }
     21289
     21290#endif
     21291int
     21292main ()
     21293{
     21294$cfuncdsyev()
     21295  ;
     21296  return 0;
     21297}
     21298_ACEOF
     21299rm -f conftest.$ac_objext conftest$ac_exeext
     21300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21301  (eval $ac_link) 2>conftest.er1
     21302  ac_status=$?
     21303  grep -v '^ *+' conftest.er1 >conftest.err
     21304  rm -f conftest.er1
     21305  cat conftest.err >&5
     21306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21307  (exit $ac_status); } &&
     21308         { ac_try='test -z "$ac_c_werror_flag"
     21309                         || test ! -s conftest.err'
     21310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21311  (eval $ac_try) 2>&5
     21312  ac_status=$?
     21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21314  (exit $ac_status); }; } &&
     21315         { ac_try='test -s conftest$ac_exeext'
     21316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21317  (eval $ac_try) 2>&5
     21318  ac_status=$?
     21319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21320  (exit $ac_status); }; }; then
     21321  LIBS="$flink_save_libs"
     21322                     echo "$as_me:$LINENO: result: yes" >&5
     21323echo "${ECHO_T}yes" >&6
     21324                     coin_need_flibs=yes
     21325else
     21326  echo "$as_me: failed program was:" >&5
     21327sed 's/^/| /' conftest.$ac_ext >&5
     21328
     21329LIBS="$flink_save_libs"
     21330                     echo "$as_me:$LINENO: result: no" >&5
     21331echo "${ECHO_T}no" >&6
     21332                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     21333echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     21334   { (exit 1); exit 1; }; }
     21335fi
     21336rm -f conftest.err conftest.$ac_objext \
     21337      conftest$ac_exeext conftest.$ac_ext
     21338      else
     21339        echo "$as_me:$LINENO: result: no" >&5
     21340echo "${ECHO_T}no" >&6
     21341                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     21342echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     21343   { (exit 1); exit 1; }; }
     21344      fi
     21345    fi
     21346    ;;
     21347esac
     21348
     21349  fi
     21350else
     21351  if test x$coin_has_blas = xyes; then
     21352    # First try to see if LAPACK is already available with BLAS library
     21353    echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
     21354echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
     21355    case $ac_ext in
     21356  f)
     21357    cat >conftest.$ac_ext <<_ACEOF
     21358/* confdefs.h.  */
     21359_ACEOF
     21360cat confdefs.h >>conftest.$ac_ext
     21361cat >>conftest.$ac_ext <<_ACEOF
     21362/* end confdefs.h.  */
     21363
     21364#ifdef F77_DUMMY_MAIN
     21365
     21366#  ifdef __cplusplus
     21367     extern "C"
     21368#  endif
     21369   int F77_DUMMY_MAIN() { return 1; }
     21370
     21371#endif
     21372int
     21373main ()
     21374{
     21375      call dsyev
     21376  ;
     21377  return 0;
     21378}
     21379_ACEOF
     21380rm -f conftest.$ac_objext conftest$ac_exeext
     21381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21382  (eval $ac_link) 2>conftest.er1
     21383  ac_status=$?
     21384  grep -v '^ *+' conftest.er1 >conftest.err
     21385  rm -f conftest.er1
     21386  cat conftest.err >&5
     21387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21388  (exit $ac_status); } &&
     21389         { ac_try='test -z "$ac_c_werror_flag"
     21390                         || test ! -s conftest.err'
     21391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21392  (eval $ac_try) 2>&5
     21393  ac_status=$?
     21394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21395  (exit $ac_status); }; } &&
     21396         { ac_try='test -s conftest$ac_exeext'
     21397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21398  (eval $ac_try) 2>&5
     21399  ac_status=$?
     21400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21401  (exit $ac_status); }; }; then
     21402  echo "$as_me:$LINENO: result: yes" >&5
     21403echo "${ECHO_T}yes" >&6; use_lapack=ok
     21404else
     21405  echo "$as_me: failed program was:" >&5
     21406sed 's/^/| /' conftest.$ac_ext >&5
     21407
     21408echo "$as_me:$LINENO: result: no" >&5
     21409echo "${ECHO_T}no" >&6
     21410fi
     21411rm -f conftest.err conftest.$ac_objext \
     21412      conftest$ac_exeext conftest.$ac_ext
     21413    ;;
     21414  c)
     21415    ac_ext=f
     21416ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21417ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21418ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21419case $ac_cv_f77_mangling in
     21420  upper*) ac_val="DSYEV" ;;
     21421  lower*) ac_val="dsyev" ;;
     21422  *)      ac_val="unknown" ;;
     21423esac
     21424case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21425
     21426cfuncdsyev="$ac_val"
     21427
     21428ac_ext=c
     21429ac_cpp='$CPP $CPPFLAGS'
     21430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21432ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21433
     21434    if test x"$coin_need_flibs" = xyes; then
     21435      flink_try=no;
     21436    else
     21437      cat >conftest.$ac_ext <<_ACEOF
     21438/* confdefs.h.  */
     21439_ACEOF
     21440cat confdefs.h >>conftest.$ac_ext
     21441cat >>conftest.$ac_ext <<_ACEOF
     21442/* end confdefs.h.  */
     21443void $cfuncdsyev();
     21444#ifdef F77_DUMMY_MAIN
     21445
     21446#  ifdef __cplusplus
     21447     extern "C"
     21448#  endif
     21449   int F77_DUMMY_MAIN() { return 1; }
     21450
     21451#endif
     21452int
     21453main ()
     21454{
     21455$cfuncdsyev()
     21456  ;
     21457  return 0;
     21458}
     21459_ACEOF
     21460rm -f conftest.$ac_objext conftest$ac_exeext
     21461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21462  (eval $ac_link) 2>conftest.er1
     21463  ac_status=$?
     21464  grep -v '^ *+' conftest.er1 >conftest.err
     21465  rm -f conftest.er1
     21466  cat conftest.err >&5
     21467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21468  (exit $ac_status); } &&
     21469         { ac_try='test -z "$ac_c_werror_flag"
     21470                         || test ! -s conftest.err'
     21471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21472  (eval $ac_try) 2>&5
     21473  ac_status=$?
     21474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21475  (exit $ac_status); }; } &&
     21476         { ac_try='test -s conftest$ac_exeext'
     21477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21478  (eval $ac_try) 2>&5
     21479  ac_status=$?
     21480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21481  (exit $ac_status); }; }; then
     21482  flink_try=yes
     21483else
     21484  echo "$as_me: failed program was:" >&5
     21485sed 's/^/| /' conftest.$ac_ext >&5
     21486
     21487flink_try=no
     21488fi
     21489rm -f conftest.err conftest.$ac_objext \
     21490      conftest$ac_exeext conftest.$ac_ext
     21491    fi
     21492    if test $flink_try = yes; then
     21493      echo "$as_me:$LINENO: result: yes" >&5
     21494echo "${ECHO_T}yes" >&6; use_lapack=ok
     21495    else
     21496      if test x"$FLIBS" != x; then
     21497        flink_save_libs="$LIBS"
     21498        LIBS="$LIBS $FLIBS"
     21499        cat >conftest.$ac_ext <<_ACEOF
     21500/* confdefs.h.  */
     21501_ACEOF
     21502cat confdefs.h >>conftest.$ac_ext
     21503cat >>conftest.$ac_ext <<_ACEOF
     21504/* end confdefs.h.  */
     21505void $cfuncdsyev();
     21506#ifdef F77_DUMMY_MAIN
     21507
     21508#  ifdef __cplusplus
     21509     extern "C"
     21510#  endif
     21511   int F77_DUMMY_MAIN() { return 1; }
     21512
     21513#endif
     21514int
     21515main ()
     21516{
     21517$cfuncdsyev()
     21518  ;
     21519  return 0;
     21520}
     21521_ACEOF
     21522rm -f conftest.$ac_objext conftest$ac_exeext
     21523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21524  (eval $ac_link) 2>conftest.er1
     21525  ac_status=$?
     21526  grep -v '^ *+' conftest.er1 >conftest.err
     21527  rm -f conftest.er1
     21528  cat conftest.err >&5
     21529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21530  (exit $ac_status); } &&
     21531         { ac_try='test -z "$ac_c_werror_flag"
     21532                         || test ! -s conftest.err'
     21533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21534  (eval $ac_try) 2>&5
     21535  ac_status=$?
     21536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21537  (exit $ac_status); }; } &&
     21538         { ac_try='test -s conftest$ac_exeext'
     21539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21540  (eval $ac_try) 2>&5
     21541  ac_status=$?
     21542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21543  (exit $ac_status); }; }; then
     21544  LIBS="$flink_save_libs"
     21545                     echo "$as_me:$LINENO: result: yes" >&5
     21546echo "${ECHO_T}yes" >&6; use_lapack=ok
     21547                     coin_need_flibs=yes
     21548else
     21549  echo "$as_me: failed program was:" >&5
     21550sed 's/^/| /' conftest.$ac_ext >&5
     21551
     21552LIBS="$flink_save_libs"
     21553                     echo "$as_me:$LINENO: result: no" >&5
     21554echo "${ECHO_T}no" >&6
     21555fi
     21556rm -f conftest.err conftest.$ac_objext \
     21557      conftest$ac_exeext conftest.$ac_ext
     21558      else
     21559        echo "$as_me:$LINENO: result: no" >&5
     21560echo "${ECHO_T}no" >&6
     21561      fi
     21562    fi
     21563    ;;
     21564  cc|cpp)
     21565    ac_ext=f
     21566ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21567ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21568ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21569case $ac_cv_f77_mangling in
     21570  upper*) ac_val="DSYEV" ;;
     21571  lower*) ac_val="dsyev" ;;
     21572  *)      ac_val="unknown" ;;
     21573esac
     21574case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21575
     21576cfuncdsyev="$ac_val"
     21577
     21578ac_ext=c
     21579ac_cpp='$CPP $CPPFLAGS'
     21580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21582ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21583
     21584    if test x"$coin_need_flibs" = xyes; then
     21585      flink_try=no;
     21586    else
     21587      cat >conftest.$ac_ext <<_ACEOF
     21588/* confdefs.h.  */
     21589_ACEOF
     21590cat confdefs.h >>conftest.$ac_ext
     21591cat >>conftest.$ac_ext <<_ACEOF
     21592/* end confdefs.h.  */
     21593extern "C" {void $cfuncdsyev();}
     21594#ifdef F77_DUMMY_MAIN
     21595
     21596#  ifdef __cplusplus
     21597     extern "C"
     21598#  endif
     21599   int F77_DUMMY_MAIN() { return 1; }
     21600
     21601#endif
     21602int
     21603main ()
     21604{
     21605$cfuncdsyev()
     21606  ;
     21607  return 0;
     21608}
     21609_ACEOF
     21610rm -f conftest.$ac_objext conftest$ac_exeext
     21611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21612  (eval $ac_link) 2>conftest.er1
     21613  ac_status=$?
     21614  grep -v '^ *+' conftest.er1 >conftest.err
     21615  rm -f conftest.er1
     21616  cat conftest.err >&5
     21617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21618  (exit $ac_status); } &&
     21619         { ac_try='test -z "$ac_c_werror_flag"
     21620                         || test ! -s conftest.err'
     21621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21622  (eval $ac_try) 2>&5
     21623  ac_status=$?
     21624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21625  (exit $ac_status); }; } &&
     21626         { ac_try='test -s conftest$ac_exeext'
     21627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21628  (eval $ac_try) 2>&5
     21629  ac_status=$?
     21630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21631  (exit $ac_status); }; }; then
     21632  flink_try=yes
     21633else
     21634  echo "$as_me: failed program was:" >&5
     21635sed 's/^/| /' conftest.$ac_ext >&5
     21636
     21637flink_try=no
     21638fi
     21639rm -f conftest.err conftest.$ac_objext \
     21640      conftest$ac_exeext conftest.$ac_ext
     21641    fi
     21642    if test $flink_try = yes; then
     21643      echo "$as_me:$LINENO: result: yes" >&5
     21644echo "${ECHO_T}yes" >&6; use_lapack=ok
     21645    else
     21646      if test x"$FLIBS" != x; then
     21647        flink_save_libs="$LIBS"
     21648        LIBS="$LIBS $FLIBS"
     21649        cat >conftest.$ac_ext <<_ACEOF
     21650/* confdefs.h.  */
     21651_ACEOF
     21652cat confdefs.h >>conftest.$ac_ext
     21653cat >>conftest.$ac_ext <<_ACEOF
     21654/* end confdefs.h.  */
     21655extern "C" {void $cfuncdsyev();}
     21656#ifdef F77_DUMMY_MAIN
     21657
     21658#  ifdef __cplusplus
     21659     extern "C"
     21660#  endif
     21661   int F77_DUMMY_MAIN() { return 1; }
     21662
     21663#endif
     21664int
     21665main ()
     21666{
     21667$cfuncdsyev()
     21668  ;
     21669  return 0;
     21670}
     21671_ACEOF
     21672rm -f conftest.$ac_objext conftest$ac_exeext
     21673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21674  (eval $ac_link) 2>conftest.er1
     21675  ac_status=$?
     21676  grep -v '^ *+' conftest.er1 >conftest.err
     21677  rm -f conftest.er1
     21678  cat conftest.err >&5
     21679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21680  (exit $ac_status); } &&
     21681         { ac_try='test -z "$ac_c_werror_flag"
     21682                         || test ! -s conftest.err'
     21683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21684  (eval $ac_try) 2>&5
     21685  ac_status=$?
     21686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21687  (exit $ac_status); }; } &&
     21688         { ac_try='test -s conftest$ac_exeext'
     21689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21690  (eval $ac_try) 2>&5
     21691  ac_status=$?
     21692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21693  (exit $ac_status); }; }; then
     21694  LIBS="$flink_save_libs"
     21695                     echo "$as_me:$LINENO: result: yes" >&5
     21696echo "${ECHO_T}yes" >&6; use_lapack=ok
     21697                     coin_need_flibs=yes
     21698else
     21699  echo "$as_me: failed program was:" >&5
     21700sed 's/^/| /' conftest.$ac_ext >&5
     21701
     21702LIBS="$flink_save_libs"
     21703                     echo "$as_me:$LINENO: result: no" >&5
     21704echo "${ECHO_T}no" >&6
     21705fi
     21706rm -f conftest.err conftest.$ac_objext \
     21707      conftest$ac_exeext conftest.$ac_ext
     21708      else
     21709        echo "$as_me:$LINENO: result: no" >&5
     21710echo "${ECHO_T}no" >&6
     21711      fi
     21712    fi
     21713    ;;
     21714esac
     21715
     21716  fi
     21717  skip_llapack_check=no
     21718  if test -z "$use_lapack"; then
     21719    # Try to autodetect the library for lapack based on build system
     21720    case $build in
     21721      *-sgi-*)
     21722        SAVE_LIBS="$LIBS"
     21723        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
     21724echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
     21725        LIBS="-lcomplib.sgimath $LIBS"
     21726        case $ac_ext in
     21727  f)
     21728    cat >conftest.$ac_ext <<_ACEOF
     21729/* confdefs.h.  */
     21730_ACEOF
     21731cat confdefs.h >>conftest.$ac_ext
     21732cat >>conftest.$ac_ext <<_ACEOF
     21733/* end confdefs.h.  */
     21734
     21735#ifdef F77_DUMMY_MAIN
     21736
     21737#  ifdef __cplusplus
     21738     extern "C"
     21739#  endif
     21740   int F77_DUMMY_MAIN() { return 1; }
     21741
     21742#endif
     21743int
     21744main ()
     21745{
     21746      call dsyev
     21747  ;
     21748  return 0;
     21749}
     21750_ACEOF
     21751rm -f conftest.$ac_objext conftest$ac_exeext
     21752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21753  (eval $ac_link) 2>conftest.er1
     21754  ac_status=$?
     21755  grep -v '^ *+' conftest.er1 >conftest.err
     21756  rm -f conftest.er1
     21757  cat conftest.err >&5
     21758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21759  (exit $ac_status); } &&
     21760         { ac_try='test -z "$ac_c_werror_flag"
     21761                         || test ! -s conftest.err'
     21762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21763  (eval $ac_try) 2>&5
     21764  ac_status=$?
     21765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21766  (exit $ac_status); }; } &&
     21767         { ac_try='test -s conftest$ac_exeext'
     21768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21769  (eval $ac_try) 2>&5
     21770  ac_status=$?
     21771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21772  (exit $ac_status); }; }; then
     21773  echo "$as_me:$LINENO: result: yes" >&5
     21774echo "${ECHO_T}yes" >&6
     21775                           use_lapack=-lcomplib.sgimath;
     21776                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21777else
     21778  echo "$as_me: failed program was:" >&5
     21779sed 's/^/| /' conftest.$ac_ext >&5
     21780
     21781echo "$as_me:$LINENO: result: no" >&5
     21782echo "${ECHO_T}no" >&6
     21783                           SAVE_LIBS="$LIBS"
     21784fi
     21785rm -f conftest.err conftest.$ac_objext \
     21786      conftest$ac_exeext conftest.$ac_ext
     21787    ;;
     21788  c)
     21789    ac_ext=f
     21790ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21791ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21792ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21793case $ac_cv_f77_mangling in
     21794  upper*) ac_val="DSYEV" ;;
     21795  lower*) ac_val="dsyev" ;;
     21796  *)      ac_val="unknown" ;;
     21797esac
     21798case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21799
     21800cfuncdsyev="$ac_val"
     21801
     21802ac_ext=c
     21803ac_cpp='$CPP $CPPFLAGS'
     21804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21806ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21807
     21808    if test x"$coin_need_flibs" = xyes; then
     21809      flink_try=no;
     21810    else
     21811      cat >conftest.$ac_ext <<_ACEOF
     21812/* confdefs.h.  */
     21813_ACEOF
     21814cat confdefs.h >>conftest.$ac_ext
     21815cat >>conftest.$ac_ext <<_ACEOF
     21816/* end confdefs.h.  */
     21817void $cfuncdsyev();
     21818#ifdef F77_DUMMY_MAIN
     21819
     21820#  ifdef __cplusplus
     21821     extern "C"
     21822#  endif
     21823   int F77_DUMMY_MAIN() { return 1; }
     21824
     21825#endif
     21826int
     21827main ()
     21828{
     21829$cfuncdsyev()
     21830  ;
     21831  return 0;
     21832}
     21833_ACEOF
     21834rm -f conftest.$ac_objext conftest$ac_exeext
     21835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21836  (eval $ac_link) 2>conftest.er1
     21837  ac_status=$?
     21838  grep -v '^ *+' conftest.er1 >conftest.err
     21839  rm -f conftest.er1
     21840  cat conftest.err >&5
     21841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21842  (exit $ac_status); } &&
     21843         { ac_try='test -z "$ac_c_werror_flag"
     21844                         || test ! -s conftest.err'
     21845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21846  (eval $ac_try) 2>&5
     21847  ac_status=$?
     21848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21849  (exit $ac_status); }; } &&
     21850         { ac_try='test -s conftest$ac_exeext'
     21851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21852  (eval $ac_try) 2>&5
     21853  ac_status=$?
     21854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21855  (exit $ac_status); }; }; then
     21856  flink_try=yes
     21857else
     21858  echo "$as_me: failed program was:" >&5
     21859sed 's/^/| /' conftest.$ac_ext >&5
     21860
     21861flink_try=no
     21862fi
     21863rm -f conftest.err conftest.$ac_objext \
     21864      conftest$ac_exeext conftest.$ac_ext
     21865    fi
     21866    if test $flink_try = yes; then
     21867      echo "$as_me:$LINENO: result: yes" >&5
     21868echo "${ECHO_T}yes" >&6
     21869                           use_lapack=-lcomplib.sgimath;
     21870                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21871    else
     21872      if test x"$FLIBS" != x; then
     21873        flink_save_libs="$LIBS"
     21874        LIBS="$LIBS $FLIBS"
     21875        cat >conftest.$ac_ext <<_ACEOF
     21876/* confdefs.h.  */
     21877_ACEOF
     21878cat confdefs.h >>conftest.$ac_ext
     21879cat >>conftest.$ac_ext <<_ACEOF
     21880/* end confdefs.h.  */
     21881void $cfuncdsyev();
     21882#ifdef F77_DUMMY_MAIN
     21883
     21884#  ifdef __cplusplus
     21885     extern "C"
     21886#  endif
     21887   int F77_DUMMY_MAIN() { return 1; }
     21888
     21889#endif
     21890int
     21891main ()
     21892{
     21893$cfuncdsyev()
     21894  ;
     21895  return 0;
     21896}
     21897_ACEOF
     21898rm -f conftest.$ac_objext conftest$ac_exeext
     21899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21900  (eval $ac_link) 2>conftest.er1
     21901  ac_status=$?
     21902  grep -v '^ *+' conftest.er1 >conftest.err
     21903  rm -f conftest.er1
     21904  cat conftest.err >&5
     21905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21906  (exit $ac_status); } &&
     21907         { ac_try='test -z "$ac_c_werror_flag"
     21908                         || test ! -s conftest.err'
     21909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21910  (eval $ac_try) 2>&5
     21911  ac_status=$?
     21912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21913  (exit $ac_status); }; } &&
     21914         { ac_try='test -s conftest$ac_exeext'
     21915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21916  (eval $ac_try) 2>&5
     21917  ac_status=$?
     21918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21919  (exit $ac_status); }; }; then
     21920  LIBS="$flink_save_libs"
     21921                     echo "$as_me:$LINENO: result: yes" >&5
     21922echo "${ECHO_T}yes" >&6
     21923                           use_lapack=-lcomplib.sgimath;
     21924                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21925                     coin_need_flibs=yes
     21926else
     21927  echo "$as_me: failed program was:" >&5
     21928sed 's/^/| /' conftest.$ac_ext >&5
     21929
     21930LIBS="$flink_save_libs"
     21931                     echo "$as_me:$LINENO: result: no" >&5
     21932echo "${ECHO_T}no" >&6
     21933                           SAVE_LIBS="$LIBS"
     21934fi
     21935rm -f conftest.err conftest.$ac_objext \
     21936      conftest$ac_exeext conftest.$ac_ext
     21937      else
     21938        echo "$as_me:$LINENO: result: no" >&5
     21939echo "${ECHO_T}no" >&6
     21940                           SAVE_LIBS="$LIBS"
     21941      fi
     21942    fi
     21943    ;;
     21944  cc|cpp)
     21945    ac_ext=f
     21946ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21947ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21948ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21949case $ac_cv_f77_mangling in
     21950  upper*) ac_val="DSYEV" ;;
     21951  lower*) ac_val="dsyev" ;;
     21952  *)      ac_val="unknown" ;;
     21953esac
     21954case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21955
     21956cfuncdsyev="$ac_val"
     21957
     21958ac_ext=c
     21959ac_cpp='$CPP $CPPFLAGS'
     21960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21962ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21963
     21964    if test x"$coin_need_flibs" = xyes; then
     21965      flink_try=no;
     21966    else
     21967      cat >conftest.$ac_ext <<_ACEOF
     21968/* confdefs.h.  */
     21969_ACEOF
     21970cat confdefs.h >>conftest.$ac_ext
     21971cat >>conftest.$ac_ext <<_ACEOF
     21972/* end confdefs.h.  */
     21973extern "C" {void $cfuncdsyev();}
     21974#ifdef F77_DUMMY_MAIN
     21975
     21976#  ifdef __cplusplus
     21977     extern "C"
     21978#  endif
     21979   int F77_DUMMY_MAIN() { return 1; }
     21980
     21981#endif
     21982int
     21983main ()
     21984{
     21985$cfuncdsyev()
     21986  ;
     21987  return 0;
     21988}
     21989_ACEOF
     21990rm -f conftest.$ac_objext conftest$ac_exeext
     21991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21992  (eval $ac_link) 2>conftest.er1
     21993  ac_status=$?
     21994  grep -v '^ *+' conftest.er1 >conftest.err
     21995  rm -f conftest.er1
     21996  cat conftest.err >&5
     21997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21998  (exit $ac_status); } &&
     21999         { ac_try='test -z "$ac_c_werror_flag"
     22000                         || test ! -s conftest.err'
     22001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22002  (eval $ac_try) 2>&5
     22003  ac_status=$?
     22004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22005  (exit $ac_status); }; } &&
     22006         { ac_try='test -s conftest$ac_exeext'
     22007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22008  (eval $ac_try) 2>&5
     22009  ac_status=$?
     22010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22011  (exit $ac_status); }; }; then
     22012  flink_try=yes
     22013else
     22014  echo "$as_me: failed program was:" >&5
     22015sed 's/^/| /' conftest.$ac_ext >&5
     22016
     22017flink_try=no
     22018fi
     22019rm -f conftest.err conftest.$ac_objext \
     22020      conftest$ac_exeext conftest.$ac_ext
     22021    fi
     22022    if test $flink_try = yes; then
     22023      echo "$as_me:$LINENO: result: yes" >&5
     22024echo "${ECHO_T}yes" >&6
     22025                           use_lapack=-lcomplib.sgimath;
     22026                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     22027    else
     22028      if test x"$FLIBS" != x; then
     22029        flink_save_libs="$LIBS"
     22030        LIBS="$LIBS $FLIBS"
     22031        cat >conftest.$ac_ext <<_ACEOF
     22032/* confdefs.h.  */
     22033_ACEOF
     22034cat confdefs.h >>conftest.$ac_ext
     22035cat >>conftest.$ac_ext <<_ACEOF
     22036/* end confdefs.h.  */
     22037extern "C" {void $cfuncdsyev();}
     22038#ifdef F77_DUMMY_MAIN
     22039
     22040#  ifdef __cplusplus
     22041     extern "C"
     22042#  endif
     22043   int F77_DUMMY_MAIN() { return 1; }
     22044
     22045#endif
     22046int
     22047main ()
     22048{
     22049$cfuncdsyev()
     22050  ;
     22051  return 0;
     22052}
     22053_ACEOF
     22054rm -f conftest.$ac_objext conftest$ac_exeext
     22055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22056  (eval $ac_link) 2>conftest.er1
     22057  ac_status=$?
     22058  grep -v '^ *+' conftest.er1 >conftest.err
     22059  rm -f conftest.er1
     22060  cat conftest.err >&5
     22061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22062  (exit $ac_status); } &&
     22063         { ac_try='test -z "$ac_c_werror_flag"
     22064                         || test ! -s conftest.err'
     22065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22066  (eval $ac_try) 2>&5
     22067  ac_status=$?
     22068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22069  (exit $ac_status); }; } &&
     22070         { ac_try='test -s conftest$ac_exeext'
     22071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22072  (eval $ac_try) 2>&5
     22073  ac_status=$?
     22074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22075  (exit $ac_status); }; }; then
     22076  LIBS="$flink_save_libs"
     22077                     echo "$as_me:$LINENO: result: yes" >&5
     22078echo "${ECHO_T}yes" >&6
     22079                           use_lapack=-lcomplib.sgimath;
     22080                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     22081                     coin_need_flibs=yes
     22082else
     22083  echo "$as_me: failed program was:" >&5
     22084sed 's/^/| /' conftest.$ac_ext >&5
     22085
     22086LIBS="$flink_save_libs"
     22087                     echo "$as_me:$LINENO: result: no" >&5
     22088echo "${ECHO_T}no" >&6
     22089                           SAVE_LIBS="$LIBS"
     22090fi
     22091rm -f conftest.err conftest.$ac_objext \
     22092      conftest$ac_exeext conftest.$ac_ext
     22093      else
     22094        echo "$as_me:$LINENO: result: no" >&5
     22095echo "${ECHO_T}no" >&6
     22096                           SAVE_LIBS="$LIBS"
     22097      fi
     22098    fi
     22099    ;;
     22100esac
     22101
     22102        ;;
     22103      *-sun-*)
     22104        SAVE_LIBS="$LIBS"
     22105        echo "$as_me:$LINENO: checking whether -xlic_lib=sunperf has LAPACK" >&5
     22106echo $ECHO_N "checking whether -xlic_lib=sunperf has LAPACK... $ECHO_C" >&6
     22107        LIBS="-xlic_lib=sunperf $LIBS"
     22108        case $ac_ext in
     22109  f)
     22110    cat >conftest.$ac_ext <<_ACEOF
     22111/* confdefs.h.  */
     22112_ACEOF
     22113cat confdefs.h >>conftest.$ac_ext
     22114cat >>conftest.$ac_ext <<_ACEOF
     22115/* end confdefs.h.  */
     22116
     22117#ifdef F77_DUMMY_MAIN
     22118
     22119#  ifdef __cplusplus
     22120     extern "C"
     22121#  endif
     22122   int F77_DUMMY_MAIN() { return 1; }
     22123
     22124#endif
     22125int
     22126main ()
     22127{
     22128      call dsyev
     22129  ;
     22130  return 0;
     22131}
     22132_ACEOF
     22133rm -f conftest.$ac_objext conftest$ac_exeext
     22134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22135  (eval $ac_link) 2>conftest.er1
     22136  ac_status=$?
     22137  grep -v '^ *+' conftest.er1 >conftest.err
     22138  rm -f conftest.er1
     22139  cat conftest.err >&5
     22140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22141  (exit $ac_status); } &&
     22142         { ac_try='test -z "$ac_c_werror_flag"
     22143                         || test ! -s conftest.err'
     22144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22145  (eval $ac_try) 2>&5
     22146  ac_status=$?
     22147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22148  (exit $ac_status); }; } &&
     22149         { ac_try='test -s conftest$ac_exeext'
     22150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22151  (eval $ac_try) 2>&5
     22152  ac_status=$?
     22153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22154  (exit $ac_status); }; }; then
     22155  echo "$as_me:$LINENO: result: yes" >&5
     22156echo "${ECHO_T}yes" >&6
     22157                           use_lapack='-xlic_lib=sunperf'
     22158                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22159else
     22160  echo "$as_me: failed program was:" >&5
     22161sed 's/^/| /' conftest.$ac_ext >&5
     22162
     22163echo "$as_me:$LINENO: result: no" >&5
     22164echo "${ECHO_T}no" >&6
     22165                           LIBS="$SAVE_LIBS"
     22166fi
     22167rm -f conftest.err conftest.$ac_objext \
     22168      conftest$ac_exeext conftest.$ac_ext
     22169    ;;
     22170  c)
     22171    ac_ext=f
     22172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22174ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22175case $ac_cv_f77_mangling in
     22176  upper*) ac_val="DSYEV" ;;
     22177  lower*) ac_val="dsyev" ;;
     22178  *)      ac_val="unknown" ;;
     22179esac
     22180case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22181
     22182cfuncdsyev="$ac_val"
     22183
     22184ac_ext=c
     22185ac_cpp='$CPP $CPPFLAGS'
     22186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22188ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22189
     22190    if test x"$coin_need_flibs" = xyes; then
     22191      flink_try=no;
     22192    else
     22193      cat >conftest.$ac_ext <<_ACEOF
     22194/* confdefs.h.  */
     22195_ACEOF
     22196cat confdefs.h >>conftest.$ac_ext
     22197cat >>conftest.$ac_ext <<_ACEOF
     22198/* end confdefs.h.  */
     22199void $cfuncdsyev();
     22200#ifdef F77_DUMMY_MAIN
     22201
     22202#  ifdef __cplusplus
     22203     extern "C"
     22204#  endif
     22205   int F77_DUMMY_MAIN() { return 1; }
     22206
     22207#endif
     22208int
     22209main ()
     22210{
     22211$cfuncdsyev()
     22212  ;
     22213  return 0;
     22214}
     22215_ACEOF
     22216rm -f conftest.$ac_objext conftest$ac_exeext
     22217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22218  (eval $ac_link) 2>conftest.er1
     22219  ac_status=$?
     22220  grep -v '^ *+' conftest.er1 >conftest.err
     22221  rm -f conftest.er1
     22222  cat conftest.err >&5
     22223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22224  (exit $ac_status); } &&
     22225         { ac_try='test -z "$ac_c_werror_flag"
     22226                         || test ! -s conftest.err'
     22227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22228  (eval $ac_try) 2>&5
     22229  ac_status=$?
     22230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22231  (exit $ac_status); }; } &&
     22232         { ac_try='test -s conftest$ac_exeext'
     22233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22234  (eval $ac_try) 2>&5
     22235  ac_status=$?
     22236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22237  (exit $ac_status); }; }; then
     22238  flink_try=yes
     22239else
     22240  echo "$as_me: failed program was:" >&5
     22241sed 's/^/| /' conftest.$ac_ext >&5
     22242
     22243flink_try=no
     22244fi
     22245rm -f conftest.err conftest.$ac_objext \
     22246      conftest$ac_exeext conftest.$ac_ext
     22247    fi
     22248    if test $flink_try = yes; then
     22249      echo "$as_me:$LINENO: result: yes" >&5
     22250echo "${ECHO_T}yes" >&6
     22251                           use_lapack='-xlic_lib=sunperf'
     22252                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22253    else
     22254      if test x"$FLIBS" != x; then
     22255        flink_save_libs="$LIBS"
     22256        LIBS="$LIBS $FLIBS"
     22257        cat >conftest.$ac_ext <<_ACEOF
     22258/* confdefs.h.  */
     22259_ACEOF
     22260cat confdefs.h >>conftest.$ac_ext
     22261cat >>conftest.$ac_ext <<_ACEOF
     22262/* end confdefs.h.  */
     22263void $cfuncdsyev();
     22264#ifdef F77_DUMMY_MAIN
     22265
     22266#  ifdef __cplusplus
     22267     extern "C"
     22268#  endif
     22269   int F77_DUMMY_MAIN() { return 1; }
     22270
     22271#endif
     22272int
     22273main ()
     22274{
     22275$cfuncdsyev()
     22276  ;
     22277  return 0;
     22278}
     22279_ACEOF
     22280rm -f conftest.$ac_objext conftest$ac_exeext
     22281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22282  (eval $ac_link) 2>conftest.er1
     22283  ac_status=$?
     22284  grep -v '^ *+' conftest.er1 >conftest.err
     22285  rm -f conftest.er1
     22286  cat conftest.err >&5
     22287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22288  (exit $ac_status); } &&
     22289         { ac_try='test -z "$ac_c_werror_flag"
     22290                         || test ! -s conftest.err'
     22291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22292  (eval $ac_try) 2>&5
     22293  ac_status=$?
     22294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22295  (exit $ac_status); }; } &&
     22296         { ac_try='test -s conftest$ac_exeext'
     22297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22298  (eval $ac_try) 2>&5
     22299  ac_status=$?
     22300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22301  (exit $ac_status); }; }; then
     22302  LIBS="$flink_save_libs"
     22303                     echo "$as_me:$LINENO: result: yes" >&5
     22304echo "${ECHO_T}yes" >&6
     22305                           use_lapack='-xlic_lib=sunperf'
     22306                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22307                     coin_need_flibs=yes
     22308else
     22309  echo "$as_me: failed program was:" >&5
     22310sed 's/^/| /' conftest.$ac_ext >&5
     22311
     22312LIBS="$flink_save_libs"
     22313                     echo "$as_me:$LINENO: result: no" >&5
     22314echo "${ECHO_T}no" >&6
     22315                           LIBS="$SAVE_LIBS"
     22316fi
     22317rm -f conftest.err conftest.$ac_objext \
     22318      conftest$ac_exeext conftest.$ac_ext
     22319      else
     22320        echo "$as_me:$LINENO: result: no" >&5
     22321echo "${ECHO_T}no" >&6
     22322                           LIBS="$SAVE_LIBS"
     22323      fi
     22324    fi
     22325    ;;
     22326  cc|cpp)
     22327    ac_ext=f
     22328ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22329ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22330ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22331case $ac_cv_f77_mangling in
     22332  upper*) ac_val="DSYEV" ;;
     22333  lower*) ac_val="dsyev" ;;
     22334  *)      ac_val="unknown" ;;
     22335esac
     22336case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22337
     22338cfuncdsyev="$ac_val"
     22339
     22340ac_ext=c
     22341ac_cpp='$CPP $CPPFLAGS'
     22342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22344ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22345
     22346    if test x"$coin_need_flibs" = xyes; then
     22347      flink_try=no;
     22348    else
     22349      cat >conftest.$ac_ext <<_ACEOF
     22350/* confdefs.h.  */
     22351_ACEOF
     22352cat confdefs.h >>conftest.$ac_ext
     22353cat >>conftest.$ac_ext <<_ACEOF
     22354/* end confdefs.h.  */
     22355extern "C" {void $cfuncdsyev();}
     22356#ifdef F77_DUMMY_MAIN
     22357
     22358#  ifdef __cplusplus
     22359     extern "C"
     22360#  endif
     22361   int F77_DUMMY_MAIN() { return 1; }
     22362
     22363#endif
     22364int
     22365main ()
     22366{
     22367$cfuncdsyev()
     22368  ;
     22369  return 0;
     22370}
     22371_ACEOF
     22372rm -f conftest.$ac_objext conftest$ac_exeext
     22373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22374  (eval $ac_link) 2>conftest.er1
     22375  ac_status=$?
     22376  grep -v '^ *+' conftest.er1 >conftest.err
     22377  rm -f conftest.er1
     22378  cat conftest.err >&5
     22379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22380  (exit $ac_status); } &&
     22381         { ac_try='test -z "$ac_c_werror_flag"
     22382                         || test ! -s conftest.err'
     22383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22384  (eval $ac_try) 2>&5
     22385  ac_status=$?
     22386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22387  (exit $ac_status); }; } &&
     22388         { ac_try='test -s conftest$ac_exeext'
     22389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22390  (eval $ac_try) 2>&5
     22391  ac_status=$?
     22392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22393  (exit $ac_status); }; }; then
     22394  flink_try=yes
     22395else
     22396  echo "$as_me: failed program was:" >&5
     22397sed 's/^/| /' conftest.$ac_ext >&5
     22398
     22399flink_try=no
     22400fi
     22401rm -f conftest.err conftest.$ac_objext \
     22402      conftest$ac_exeext conftest.$ac_ext
     22403    fi
     22404    if test $flink_try = yes; then
     22405      echo "$as_me:$LINENO: result: yes" >&5
     22406echo "${ECHO_T}yes" >&6
     22407                           use_lapack='-xlic_lib=sunperf'
     22408                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22409    else
     22410      if test x"$FLIBS" != x; then
     22411        flink_save_libs="$LIBS"
     22412        LIBS="$LIBS $FLIBS"
     22413        cat >conftest.$ac_ext <<_ACEOF
     22414/* confdefs.h.  */
     22415_ACEOF
     22416cat confdefs.h >>conftest.$ac_ext
     22417cat >>conftest.$ac_ext <<_ACEOF
     22418/* end confdefs.h.  */
     22419extern "C" {void $cfuncdsyev();}
     22420#ifdef F77_DUMMY_MAIN
     22421
     22422#  ifdef __cplusplus
     22423     extern "C"
     22424#  endif
     22425   int F77_DUMMY_MAIN() { return 1; }
     22426
     22427#endif
     22428int
     22429main ()
     22430{
     22431$cfuncdsyev()
     22432  ;
     22433  return 0;
     22434}
     22435_ACEOF
     22436rm -f conftest.$ac_objext conftest$ac_exeext
     22437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22438  (eval $ac_link) 2>conftest.er1
     22439  ac_status=$?
     22440  grep -v '^ *+' conftest.er1 >conftest.err
     22441  rm -f conftest.er1
     22442  cat conftest.err >&5
     22443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22444  (exit $ac_status); } &&
     22445         { ac_try='test -z "$ac_c_werror_flag"
     22446                         || test ! -s conftest.err'
     22447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22448  (eval $ac_try) 2>&5
     22449  ac_status=$?
     22450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22451  (exit $ac_status); }; } &&
     22452         { ac_try='test -s conftest$ac_exeext'
     22453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22454  (eval $ac_try) 2>&5
     22455  ac_status=$?
     22456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22457  (exit $ac_status); }; }; then
     22458  LIBS="$flink_save_libs"
     22459                     echo "$as_me:$LINENO: result: yes" >&5
     22460echo "${ECHO_T}yes" >&6
     22461                           use_lapack='-xlic_lib=sunperf'
     22462                           ADDLIBS="-xlic_lib=sunperf $ADDLIBS"
     22463                     coin_need_flibs=yes
     22464else
     22465  echo "$as_me: failed program was:" >&5
     22466sed 's/^/| /' conftest.$ac_ext >&5
     22467
     22468LIBS="$flink_save_libs"
     22469                     echo "$as_me:$LINENO: result: no" >&5
     22470echo "${ECHO_T}no" >&6
     22471                           LIBS="$SAVE_LIBS"
     22472fi
     22473rm -f conftest.err conftest.$ac_objext \
     22474      conftest$ac_exeext conftest.$ac_ext
     22475      else
     22476        echo "$as_me:$LINENO: result: no" >&5
     22477echo "${ECHO_T}no" >&6
     22478                           LIBS="$SAVE_LIBS"
     22479      fi
     22480    fi
     22481    ;;
     22482esac
     22483
     22484        ;;
     22485# On cygwin, do this check only if doscompile is disabled. The prebuilt library
     22486# will want to link with cygwin, hence won't run standalone in DOS.
     22487      *-cygwin*)
     22488        if test "$enable_doscompile" = no; then
     22489          skip_llapack_check=yes
     22490        fi
     22491        ;;
     22492    esac
     22493  fi
     22494
     22495  if test -z "$use_lapack" && test $skip_llapack_check = no; then
     22496    SAVE_LIBS="$LIBS"
     22497    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
     22498echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
     22499    LIBS="-llapack $LIBS"
     22500    case $ac_ext in
     22501  f)
     22502    cat >conftest.$ac_ext <<_ACEOF
     22503/* confdefs.h.  */
     22504_ACEOF
     22505cat confdefs.h >>conftest.$ac_ext
     22506cat >>conftest.$ac_ext <<_ACEOF
     22507/* end confdefs.h.  */
     22508
     22509#ifdef F77_DUMMY_MAIN
     22510
     22511#  ifdef __cplusplus
     22512     extern "C"
     22513#  endif
     22514   int F77_DUMMY_MAIN() { return 1; }
     22515
     22516#endif
     22517int
     22518main ()
     22519{
     22520      call dsyev
     22521  ;
     22522  return 0;
     22523}
     22524_ACEOF
     22525rm -f conftest.$ac_objext conftest$ac_exeext
     22526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22527  (eval $ac_link) 2>conftest.er1
     22528  ac_status=$?
     22529  grep -v '^ *+' conftest.er1 >conftest.err
     22530  rm -f conftest.er1
     22531  cat conftest.err >&5
     22532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22533  (exit $ac_status); } &&
     22534         { ac_try='test -z "$ac_c_werror_flag"
     22535                         || test ! -s conftest.err'
     22536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22537  (eval $ac_try) 2>&5
     22538  ac_status=$?
     22539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22540  (exit $ac_status); }; } &&
     22541         { ac_try='test -s conftest$ac_exeext'
     22542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22543  (eval $ac_try) 2>&5
     22544  ac_status=$?
     22545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22546  (exit $ac_status); }; }; then
     22547  echo "$as_me:$LINENO: result: yes" >&5
     22548echo "${ECHO_T}yes" >&6
     22549                       ADDLIBS="-llapack $ADDLIBS"
     22550                       use_lapack='-llapack'
     22551else
     22552  echo "$as_me: failed program was:" >&5
     22553sed 's/^/| /' conftest.$ac_ext >&5
     22554
     22555echo "$as_me:$LINENO: result: no" >&5
     22556echo "${ECHO_T}no" >&6
     22557                       LIBS="$SAVE_LIBS"
     22558fi
     22559rm -f conftest.err conftest.$ac_objext \
     22560      conftest$ac_exeext conftest.$ac_ext
     22561    ;;
     22562  c)
     22563    ac_ext=f
     22564ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22565ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22566ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22567case $ac_cv_f77_mangling in
     22568  upper*) ac_val="DSYEV" ;;
     22569  lower*) ac_val="dsyev" ;;
     22570  *)      ac_val="unknown" ;;
     22571esac
     22572case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22573
     22574cfuncdsyev="$ac_val"
     22575
     22576ac_ext=c
     22577ac_cpp='$CPP $CPPFLAGS'
     22578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22580ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22581
     22582    if test x"$coin_need_flibs" = xyes; then
     22583      flink_try=no;
     22584    else
     22585      cat >conftest.$ac_ext <<_ACEOF
     22586/* confdefs.h.  */
     22587_ACEOF
     22588cat confdefs.h >>conftest.$ac_ext
     22589cat >>conftest.$ac_ext <<_ACEOF
     22590/* end confdefs.h.  */
     22591void $cfuncdsyev();
     22592#ifdef F77_DUMMY_MAIN
     22593
     22594#  ifdef __cplusplus
     22595     extern "C"
     22596#  endif
     22597   int F77_DUMMY_MAIN() { return 1; }
     22598
     22599#endif
     22600int
     22601main ()
     22602{
     22603$cfuncdsyev()
     22604  ;
     22605  return 0;
     22606}
     22607_ACEOF
     22608rm -f conftest.$ac_objext conftest$ac_exeext
     22609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22610  (eval $ac_link) 2>conftest.er1
     22611  ac_status=$?
     22612  grep -v '^ *+' conftest.er1 >conftest.err
     22613  rm -f conftest.er1
     22614  cat conftest.err >&5
     22615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22616  (exit $ac_status); } &&
     22617         { ac_try='test -z "$ac_c_werror_flag"
     22618                         || test ! -s conftest.err'
     22619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22620  (eval $ac_try) 2>&5
     22621  ac_status=$?
     22622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22623  (exit $ac_status); }; } &&
     22624         { ac_try='test -s conftest$ac_exeext'
     22625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22626  (eval $ac_try) 2>&5
     22627  ac_status=$?
     22628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22629  (exit $ac_status); }; }; then
     22630  flink_try=yes
     22631else
     22632  echo "$as_me: failed program was:" >&5
     22633sed 's/^/| /' conftest.$ac_ext >&5
     22634
     22635flink_try=no
     22636fi
     22637rm -f conftest.err conftest.$ac_objext \
     22638      conftest$ac_exeext conftest.$ac_ext
     22639    fi
     22640    if test $flink_try = yes; then
     22641      echo "$as_me:$LINENO: result: yes" >&5
     22642echo "${ECHO_T}yes" >&6
     22643                       ADDLIBS="-llapack $ADDLIBS"
     22644                       use_lapack='-llapack'
     22645    else
     22646      if test x"$FLIBS" != x; then
     22647        flink_save_libs="$LIBS"
     22648        LIBS="$LIBS $FLIBS"
     22649        cat >conftest.$ac_ext <<_ACEOF
     22650/* confdefs.h.  */
     22651_ACEOF
     22652cat confdefs.h >>conftest.$ac_ext
     22653cat >>conftest.$ac_ext <<_ACEOF
     22654/* end confdefs.h.  */
     22655void $cfuncdsyev();
     22656#ifdef F77_DUMMY_MAIN
     22657
     22658#  ifdef __cplusplus
     22659     extern "C"
     22660#  endif
     22661   int F77_DUMMY_MAIN() { return 1; }
     22662
     22663#endif
     22664int
     22665main ()
     22666{
     22667$cfuncdsyev()
     22668  ;
     22669  return 0;
     22670}
     22671_ACEOF
     22672rm -f conftest.$ac_objext conftest$ac_exeext
     22673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22674  (eval $ac_link) 2>conftest.er1
     22675  ac_status=$?
     22676  grep -v '^ *+' conftest.er1 >conftest.err
     22677  rm -f conftest.er1
     22678  cat conftest.err >&5
     22679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22680  (exit $ac_status); } &&
     22681         { ac_try='test -z "$ac_c_werror_flag"
     22682                         || test ! -s conftest.err'
     22683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22684  (eval $ac_try) 2>&5
     22685  ac_status=$?
     22686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22687  (exit $ac_status); }; } &&
     22688         { ac_try='test -s conftest$ac_exeext'
     22689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22690  (eval $ac_try) 2>&5
     22691  ac_status=$?
     22692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22693  (exit $ac_status); }; }; then
     22694  LIBS="$flink_save_libs"
     22695                     echo "$as_me:$LINENO: result: yes" >&5
     22696echo "${ECHO_T}yes" >&6
     22697                       ADDLIBS="-llapack $ADDLIBS"
     22698                       use_lapack='-llapack'
     22699                     coin_need_flibs=yes
     22700else
     22701  echo "$as_me: failed program was:" >&5
     22702sed 's/^/| /' conftest.$ac_ext >&5
     22703
     22704LIBS="$flink_save_libs"
     22705                     echo "$as_me:$LINENO: result: no" >&5
     22706echo "${ECHO_T}no" >&6
     22707                       LIBS="$SAVE_LIBS"
     22708fi
     22709rm -f conftest.err conftest.$ac_objext \
     22710      conftest$ac_exeext conftest.$ac_ext
     22711      else
     22712        echo "$as_me:$LINENO: result: no" >&5
     22713echo "${ECHO_T}no" >&6
     22714                       LIBS="$SAVE_LIBS"
     22715      fi
     22716    fi
     22717    ;;
     22718  cc|cpp)
     22719    ac_ext=f
     22720ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22721ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22722ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22723case $ac_cv_f77_mangling in
     22724  upper*) ac_val="DSYEV" ;;
     22725  lower*) ac_val="dsyev" ;;
     22726  *)      ac_val="unknown" ;;
     22727esac
     22728case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22729
     22730cfuncdsyev="$ac_val"
     22731
     22732ac_ext=c
     22733ac_cpp='$CPP $CPPFLAGS'
     22734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22736ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22737
     22738    if test x"$coin_need_flibs" = xyes; then
     22739      flink_try=no;
     22740    else
     22741      cat >conftest.$ac_ext <<_ACEOF
     22742/* confdefs.h.  */
     22743_ACEOF
     22744cat confdefs.h >>conftest.$ac_ext
     22745cat >>conftest.$ac_ext <<_ACEOF
     22746/* end confdefs.h.  */
     22747extern "C" {void $cfuncdsyev();}
     22748#ifdef F77_DUMMY_MAIN
     22749
     22750#  ifdef __cplusplus
     22751     extern "C"
     22752#  endif
     22753   int F77_DUMMY_MAIN() { return 1; }
     22754
     22755#endif
     22756int
     22757main ()
     22758{
     22759$cfuncdsyev()
     22760  ;
     22761  return 0;
     22762}
     22763_ACEOF
     22764rm -f conftest.$ac_objext conftest$ac_exeext
     22765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22766  (eval $ac_link) 2>conftest.er1
     22767  ac_status=$?
     22768  grep -v '^ *+' conftest.er1 >conftest.err
     22769  rm -f conftest.er1
     22770  cat conftest.err >&5
     22771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22772  (exit $ac_status); } &&
     22773         { ac_try='test -z "$ac_c_werror_flag"
     22774                         || test ! -s conftest.err'
     22775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22776  (eval $ac_try) 2>&5
     22777  ac_status=$?
     22778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22779  (exit $ac_status); }; } &&
     22780         { ac_try='test -s conftest$ac_exeext'
     22781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22782  (eval $ac_try) 2>&5
     22783  ac_status=$?
     22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22785  (exit $ac_status); }; }; then
     22786  flink_try=yes
     22787else
     22788  echo "$as_me: failed program was:" >&5
     22789sed 's/^/| /' conftest.$ac_ext >&5
     22790
     22791flink_try=no
     22792fi
     22793rm -f conftest.err conftest.$ac_objext \
     22794      conftest$ac_exeext conftest.$ac_ext
     22795    fi
     22796    if test $flink_try = yes; then
     22797      echo "$as_me:$LINENO: result: yes" >&5
     22798echo "${ECHO_T}yes" >&6
     22799                       ADDLIBS="-llapack $ADDLIBS"
     22800                       use_lapack='-llapack'
     22801    else
     22802      if test x"$FLIBS" != x; then
     22803        flink_save_libs="$LIBS"
     22804        LIBS="$LIBS $FLIBS"
     22805        cat >conftest.$ac_ext <<_ACEOF
     22806/* confdefs.h.  */
     22807_ACEOF
     22808cat confdefs.h >>conftest.$ac_ext
     22809cat >>conftest.$ac_ext <<_ACEOF
     22810/* end confdefs.h.  */
     22811extern "C" {void $cfuncdsyev();}
     22812#ifdef F77_DUMMY_MAIN
     22813
     22814#  ifdef __cplusplus
     22815     extern "C"
     22816#  endif
     22817   int F77_DUMMY_MAIN() { return 1; }
     22818
     22819#endif
     22820int
     22821main ()
     22822{
     22823$cfuncdsyev()
     22824  ;
     22825  return 0;
     22826}
     22827_ACEOF
     22828rm -f conftest.$ac_objext conftest$ac_exeext
     22829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22830  (eval $ac_link) 2>conftest.er1
     22831  ac_status=$?
     22832  grep -v '^ *+' conftest.er1 >conftest.err
     22833  rm -f conftest.er1
     22834  cat conftest.err >&5
     22835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22836  (exit $ac_status); } &&
     22837         { ac_try='test -z "$ac_c_werror_flag"
     22838                         || test ! -s conftest.err'
     22839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22840  (eval $ac_try) 2>&5
     22841  ac_status=$?
     22842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22843  (exit $ac_status); }; } &&
     22844         { ac_try='test -s conftest$ac_exeext'
     22845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22846  (eval $ac_try) 2>&5
     22847  ac_status=$?
     22848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22849  (exit $ac_status); }; }; then
     22850  LIBS="$flink_save_libs"
     22851                     echo "$as_me:$LINENO: result: yes" >&5
     22852echo "${ECHO_T}yes" >&6
     22853                       ADDLIBS="-llapack $ADDLIBS"
     22854                       use_lapack='-llapack'
     22855                     coin_need_flibs=yes
     22856else
     22857  echo "$as_me: failed program was:" >&5
     22858sed 's/^/| /' conftest.$ac_ext >&5
     22859
     22860LIBS="$flink_save_libs"
     22861                     echo "$as_me:$LINENO: result: no" >&5
     22862echo "${ECHO_T}no" >&6
     22863                       LIBS="$SAVE_LIBS"
     22864fi
     22865rm -f conftest.err conftest.$ac_objext \
     22866      conftest$ac_exeext conftest.$ac_ext
     22867      else
     22868        echo "$as_me:$LINENO: result: no" >&5
     22869echo "${ECHO_T}no" >&6
     22870                       LIBS="$SAVE_LIBS"
     22871      fi
     22872    fi
     22873    ;;
     22874esac
     22875
     22876  fi
     22877
     22878# If we have no other ideas, consider building LAPACK.
     22879  if test -z "$use_lapack"; then
     22880    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     22881      as_ac_File=`echo "ac_cv_file_$coin_lapackobjdir/.MakeOk" | $as_tr_sh`
     22882echo "$as_me:$LINENO: checking for $coin_lapackobjdir/.MakeOk" >&5
     22883echo $ECHO_N "checking for $coin_lapackobjdir/.MakeOk... $ECHO_C" >&6
     22884if eval "test \"\${$as_ac_File+set}\" = set"; then
     22885  echo $ECHO_N "(cached) $ECHO_C" >&6
     22886else
     22887  test "$cross_compiling" = yes &&
     22888  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     22889echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     22890   { (exit 1); exit 1; }; }
     22891if test -r "$coin_lapackobjdir/.MakeOk"; then
     22892  eval "$as_ac_File=yes"
     22893else
     22894  eval "$as_ac_File=no"
     22895fi
     22896fi
     22897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     22898echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     22899if test `eval echo '${'$as_ac_File'}'` = yes; then
     22900  use_lapack=BUILD
     22901fi
     22902
     22903    fi
     22904  fi
     22905fi
     22906
     22907if test "$use_lapack" = BUILD; then
     22908  coin_need_flibs=yes
     22909fi
     22910
     22911
     22912
     22913if test x"$use_lapack" != x; then
     22914  COIN_HAS_LAPACK_TRUE=
     22915  COIN_HAS_LAPACK_FALSE='#'
     22916else
     22917  COIN_HAS_LAPACK_TRUE='#'
     22918  COIN_HAS_LAPACK_FALSE=
     22919fi
     22920
     22921
     22922
     22923if test "$use_lapack" = BUILD; then
     22924  COIN_BUILD_LAPACK_TRUE=
     22925  COIN_BUILD_LAPACK_FALSE='#'
     22926else
     22927  COIN_BUILD_LAPACK_TRUE='#'
     22928  COIN_BUILD_LAPACK_FALSE=
     22929fi
     22930
     22931
     22932if test x"$use_lapack" = x; then
     22933  coin_has_lapack=no
     22934else
     22935  coin_has_lapack=yes
     22936
     22937cat >>confdefs.h <<\_ACEOF
     22938#define COIN_HAS_LAPACK 1
     22939_ACEOF
     22940
     22941fi
     22942
     22943MAKEOKFILE=.MakeOk
     22944if test $coin_has_lapack = yes && test $use_lapack != BUILD; then
     22945  rm -f $MAKEOKFILE
     22946  { echo "$as_me:$LINENO: The Lapack sources don't need to be compiled" >&5
     22947echo "$as_me: The Lapack sources don't need to be compiled" >&6;}
     22948  MAKEOKFILE=
     22949else
     22950  touch $MAKEOKFILE
     22951fi
     22952
     22953
     22954
     22955if test -z "$MAKEOKFILE"; then
     22956  SKIPMAKE_TRUE=
     22957  SKIPMAKE_FALSE='#'
     22958else
     22959  SKIPMAKE_TRUE='#'
     22960  SKIPMAKE_FALSE=
     22961fi
     22962
     22963
    2020622964#############################################################################
    2020722965#               Create links to the required source files                   #
    2020822966#############################################################################
    2020922967
    20210 lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
    20211 for file in $lapack_source_files; do
    20212             ac_config_links="$ac_config_links $file:LAPACK/SRC/$file"
    20213 
    20214 done
    20215           ac_config_links="$ac_config_links dlamch.f:LAPACK/INSTALL/dlamch.f"
    20216 
     22968if test x"$MAKEOKFILE" != x; then
     22969  lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
     22970  for file in $lapack_source_files; do
     22971              ac_config_links="$ac_config_links $file:LAPACK/SRC/$file"
     22972
     22973  done
     22974            ac_config_links="$ac_config_links dlamch.f:LAPACK/INSTALL/dlamch.f"
     22975
     22976fi
    2021722977
    2021822978          ac_config_files="$ac_config_files Makefile"
     
    2022022980
    2022122981
    20222 FADDLIBS="$ADDLIBS"
    20223 if test x"$coin_need_flibs" = xyes; then
    20224   ADDLIBS="$ADDLIBS $FLIBS"
    20225 fi
    20226 
    20227 # library extension
    20228 
    20229 case "$CC" in
    20230   cl* | */cl* | CL* | */CL*)
    20231        LIBEXT=lib ;;
    20232     *) LIBEXT=a ;;
    20233 esac
    20234 
    20235 # Define VPATH_DISTCLEANFILES to be everything that needs to be
    20236 # cleaned for distclean in a vpath configuration
    20237 
    20238 VPATH_DISTCLEANFILES="$coin_vpath_link_files"
    20239 
    20240 cat >confcache <<\_ACEOF
     22982if test x$coin_skip_ac_output != xyes; then
     22983
     22984  FADDLIBS="$ADDLIBS"
     22985  if test x"$coin_need_flibs" = xyes; then
     22986    ADDLIBS="$ADDLIBS $FLIBS"
     22987  fi
     22988
     22989  # library extension
     22990
     22991  case "$CC" in
     22992    cl* | */cl* | CL* | */CL*)
     22993         LIBEXT=lib ;;
     22994      *) LIBEXT=a ;;
     22995  esac
     22996
     22997  # Define VPATH_DISTCLEANFILES to be everything that needs to be
     22998  # cleaned for distclean in a vpath configuration
     22999
     23000  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
     23001
     23002  # Take out subdirectories if their configuration concluded that they
     23003  # don't need to be compiled
     23004  if test x"$coin_ac_skip_subdirs" != x; then
     23005    new_subdirs=
     23006    for i in $subdirs; do
     23007      skipme=no
     23008      for j in $coin_ac_skip_subdirs; do
     23009        if test $i = $j; then
     23010          skipme=yes;
     23011        fi
     23012      done
     23013      if test $skipme = no; then
     23014        new_subdirs="$new_subdirs $i"
     23015      fi
     23016    done
     23017    subdirs="$new_subdirs"
     23018  fi
     23019
     23020  cat >confcache <<\_ACEOF
    2024123021# This file is a shell script that caches the results of configure
    2024223022# tests run on this system so they can be shared between configure
     
    2039923179Usually this means the macro was only invoked conditionally." >&5
    2040023180echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
     23181Usually this means the macro was only invoked conditionally." >&2;}
     23182   { (exit 1); exit 1; }; }
     23183fi
     23184if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
     23185  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
     23186Usually this means the macro was only invoked conditionally." >&5
     23187echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
     23188Usually this means the macro was only invoked conditionally." >&2;}
     23189   { (exit 1); exit 1; }; }
     23190fi
     23191if test -z "${COIN_BUILD_LAPACK_TRUE}" && test -z "${COIN_BUILD_LAPACK_FALSE}"; then
     23192  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     23193Usually this means the macro was only invoked conditionally." >&5
     23194echo "$as_me: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     23195Usually this means the macro was only invoked conditionally." >&2;}
     23196   { (exit 1); exit 1; }; }
     23197fi
     23198if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
     23199  { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
     23200Usually this means the macro was only invoked conditionally." >&5
     23201echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2040123202Usually this means the macro was only invoked conditionally." >&2;}
    2040223203   { (exit 1); exit 1; }; }
     
    2103023831s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2103123832s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
     23833s,@FLIBS@,$FLIBS,;t t
     23834s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
     23835s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
     23836s,@COIN_BUILD_LAPACK_TRUE@,$COIN_BUILD_LAPACK_TRUE,;t t
     23837s,@COIN_BUILD_LAPACK_FALSE@,$COIN_BUILD_LAPACK_FALSE,;t t
     23838s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     23839s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
     23840s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2103223841s,@LIBEXT@,$LIBEXT,;t t
    2103323842s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     
    2164324452
    2164424453
    21645 if test x"$coin_vpath_link_files" = x; then : ; else
    21646   lnkcmd=
    21647   if test "$enable_doscompile" = yes; then
    21648     lnkcmd=cp
    21649   fi
    21650   case "$CC" in
    21651     cl* | */cl* | CL* | */CL*)
    21652       lnkcmd=cp ;;
    21653   esac
    21654   if test "$lnkcmd" = cp; then
    21655     { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
     24454  if test x"$coin_vpath_link_files" = x; then : ; else
     24455    lnkcmd=
     24456    if test "$enable_doscompile" = yes; then
     24457      lnkcmd=cp
     24458    fi
     24459    case "$CC" in
     24460      cl* | */cl* | CL* | */CL*)
     24461        lnkcmd=cp ;;
     24462    esac
     24463    if test "$lnkcmd" = cp; then
     24464      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
    2165624465echo "$as_me: Copying data files for VPATH configuration" >&6;}
    21657   else
    21658     echo "$as_me:$LINENO: checking whether ln -s works" >&5
     24466    else
     24467      echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2165924468echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    2166024469LN_S=$as_ln_s
     
    2166724476fi
    2166824477
    21669     { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
     24478      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2167024479echo "$as_me: Creating VPATH links for data files" >&6;}
    21671     lnkcmd="$LN_S"
    21672   fi
    21673   for file in $coin_vpath_link_files; do
    21674     dir=`(dirname "./$file") 2>/dev/null ||
     24480      lnkcmd="$LN_S"
     24481    fi
     24482    for file in $coin_vpath_link_files; do
     24483      dir=`(dirname "./$file") 2>/dev/null ||
    2167524484$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    2167624485         X"./$file" : 'X\(//\)[^/]' \| \
     
    2168424493          /^X\(\/\).*/{ s//\1/; q; }
    2168524494          s/.*/./; q'`
    21686     if test -d $dir; then : ; else
    21687       { if $as_mkdir_p; then
     24495      if test -d $dir; then : ; else
     24496        { if $as_mkdir_p; then
    2168824497    mkdir -p $dir
    2168924498  else
     
    2171024519   { (exit 1); exit 1; }; }; }
    2171124520
    21712     fi
    21713     rm -f $file
    21714     $lnkcmd $abs_source_dir/$file $file
    21715   done
    21716 fi
    21717 
    21718 if test x$coin_projectdir = xyes; then
    21719   { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
     24521      fi
     24522      rm -f $file
     24523      $lnkcmd $abs_source_dir/$file $file
     24524    done
     24525  fi
     24526
     24527  if test x$coin_projectdir = xyes; then
     24528    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
    2172024529echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
    21721 else
    21722   { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
     24530  else
     24531    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
    2172324532echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
    21724 fi
    21725 
     24533  fi
     24534else
     24535  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
     24536echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
     24537fi
     24538
     24539
  • ThirdParty/Lapack/trunk/configure.ac

    r157 r229  
    1 # Copyright (C) 2006 International Business Machines.
     1# Copyright (C) 2006, 2007 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    5050AC_COIN_INIT_AUTO_TOOLS
    5151
     52# Check if Lapack is already available on the system or provided by user
     53AC_COIN_HAS_LAPACK
     54MAKEOKFILE=.MakeOk
     55if test $coin_has_lapack = yes && test $use_lapack != BUILD; then
     56  rm -f $MAKEOKFILE
     57  AC_MSG_NOTICE([The Lapack sources don't need to be compiled])
     58  MAKEOKFILE=
     59else
     60  touch $MAKEOKFILE
     61fi
     62AC_SUBST(MAKEOKFILE)
     63AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     64
    5265#############################################################################
    5366#               Create links to the required source files                   #
    5467#############################################################################
    5568
    56 lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
    57 for file in $lapack_source_files; do
    58   AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
    59 done
    60 AC_CONFIG_LINKS(dlamch.f:LAPACK/INSTALL/dlamch.f)
     69if test x"$MAKEOKFILE" != x; then
     70  lapack_source_files='dgetf2.f dgetrf.f dgetrs.f dlae2.f dlaev2.f dlanst.f dlansy.f dlapy2.f dlarf.f dlarfb.f dlarfg.f dlarft.f dlartg.f dlascl.f dlaset.f dlasr.f dlasrt.f dlassq.f dlaswp.f dlatrd.f dorg2l.f dorg2r.f dorgql.f dorgqr.f dorgtr.f dpotf2.f dpotrf.f dpotrs.f dsteqr.f dsterf.f dsyev.f dsytd2.f dsytrd.f ieeeck.f ilaenv.f iparmq.f'
     71  for file in $lapack_source_files; do
     72    AC_CONFIG_LINKS($file:LAPACK/SRC/$file)
     73  done
     74  AC_CONFIG_LINKS(dlamch.f:LAPACK/INSTALL/dlamch.f)
     75fi
    6176
    6277AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.