Ignore:
Timestamp:
Sep 13, 2009 2:24:20 PM (11 years ago)
Author:
stefan
Message:

revert my recent changes related to BSPsplit after copying them into branches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/configure

    r1396 r1411  
    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 sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 DLAMCH_FFLAGS 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 BLASSRCDIR BLASOBJDIR BLASDOCDIR COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LAPACKSRCDIR LAPACKOBJDIR LAPACKDOCDIR COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE 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 sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 DLAMCH_FFLAGS 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_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE 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
     
    11051105  --with-tags[=TAGS]
    11061106                          include additional configurations [automatic]
     1107  --with-blas             specify BLAS library (or BUILD for compilation)
     1108  --with-lapack           specify LAPACK library (or BUILD for compilation)
    11071109
    11081110Some influential environment variables:
     
    32983300
    32993301# Provide some information about the compiler.
    3300 echo "$as_me:3300:" \
     3302echo "$as_me:3302:" \
    33013303     "checking for Fortran 77 compiler version" >&5
    33023304ac_compiler=`set X $ac_compile; echo $2`
     
    54795481*-*-irix6*)
    54805482  # Find out which ABI we are using.
    5481   echo '#line 5481 "configure"' > conftest.$ac_ext
     5483  echo '#line 5483 "configure"' > conftest.$ac_ext
    54825484  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54835485  (eval $ac_compile) 2>&5
     
    79087910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    79097911   -e 's:$: $lt_compiler_flag:'`
    7910    (eval echo "\"\$as_me:7910: $lt_compile\"" >&5)
     7912   (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
    79117913   (eval "$lt_compile" 2>conftest.err)
    79127914   ac_status=$?
    79137915   cat conftest.err >&5
    7914    echo "$as_me:7914: \$? = $ac_status" >&5
     7916   echo "$as_me:7916: \$? = $ac_status" >&5
    79157917   if (exit $ac_status) && test -s "$ac_outfile"; then
    79167918     # The compiler can only warn and ignore the option if not recognized
     
    81768178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81778179   -e 's:$: $lt_compiler_flag:'`
    8178    (eval echo "\"\$as_me:8178: $lt_compile\"" >&5)
     8180   (eval echo "\"\$as_me:8180: $lt_compile\"" >&5)
    81798181   (eval "$lt_compile" 2>conftest.err)
    81808182   ac_status=$?
    81818183   cat conftest.err >&5
    8182    echo "$as_me:8182: \$? = $ac_status" >&5
     8184   echo "$as_me:8184: \$? = $ac_status" >&5
    81838185   if (exit $ac_status) && test -s "$ac_outfile"; then
    81848186     # The compiler can only warn and ignore the option if not recognized
     
    82808282   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82818283   -e 's:$: $lt_compiler_flag:'`
    8282    (eval echo "\"\$as_me:8282: $lt_compile\"" >&5)
     8284   (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
    82838285   (eval "$lt_compile" 2>out/conftest.err)
    82848286   ac_status=$?
    82858287   cat out/conftest.err >&5
    8286    echo "$as_me:8286: \$? = $ac_status" >&5
     8288   echo "$as_me:8288: \$? = $ac_status" >&5
    82878289   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82888290   then
     
    1062510627  lt_status=$lt_dlunknown
    1062610628  cat > conftest.$ac_ext <<EOF
    10627 #line 10627 "configure"
     10629#line 10629 "configure"
    1062810630#include "confdefs.h"
    1062910631
     
    1072510727  lt_status=$lt_dlunknown
    1072610728  cat > conftest.$ac_ext <<EOF
    10727 #line 10727 "configure"
     10729#line 10729 "configure"
    1072810730#include "confdefs.h"
    1072910731
     
    1306913071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1307013072   -e 's:$: $lt_compiler_flag:'`
    13071    (eval echo "\"\$as_me:13071: $lt_compile\"" >&5)
     13073   (eval echo "\"\$as_me:13073: $lt_compile\"" >&5)
    1307213074   (eval "$lt_compile" 2>conftest.err)
    1307313075   ac_status=$?
    1307413076   cat conftest.err >&5
    13075    echo "$as_me:13075: \$? = $ac_status" >&5
     13077   echo "$as_me:13077: \$? = $ac_status" >&5
    1307613078   if (exit $ac_status) && test -s "$ac_outfile"; then
    1307713079     # The compiler can only warn and ignore the option if not recognized
     
    1317313175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1317413176   -e 's:$: $lt_compiler_flag:'`
    13175    (eval echo "\"\$as_me:13175: $lt_compile\"" >&5)
     13177   (eval echo "\"\$as_me:13177: $lt_compile\"" >&5)
    1317613178   (eval "$lt_compile" 2>out/conftest.err)
    1317713179   ac_status=$?
    1317813180   cat out/conftest.err >&5
    13179    echo "$as_me:13179: \$? = $ac_status" >&5
     13181   echo "$as_me:13181: \$? = $ac_status" >&5
    1318013182   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1318113183   then
     
    1474314745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1474414746   -e 's:$: $lt_compiler_flag:'`
    14745    (eval echo "\"\$as_me:14745: $lt_compile\"" >&5)
     14747   (eval echo "\"\$as_me:14747: $lt_compile\"" >&5)
    1474614748   (eval "$lt_compile" 2>conftest.err)
    1474714749   ac_status=$?
    1474814750   cat conftest.err >&5
    14749    echo "$as_me:14749: \$? = $ac_status" >&5
     14751   echo "$as_me:14751: \$? = $ac_status" >&5
    1475014752   if (exit $ac_status) && test -s "$ac_outfile"; then
    1475114753     # The compiler can only warn and ignore the option if not recognized
     
    1484714849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1484814850   -e 's:$: $lt_compiler_flag:'`
    14849    (eval echo "\"\$as_me:14849: $lt_compile\"" >&5)
     14851   (eval echo "\"\$as_me:14851: $lt_compile\"" >&5)
    1485014852   (eval "$lt_compile" 2>out/conftest.err)
    1485114853   ac_status=$?
    1485214854   cat out/conftest.err >&5
    14853    echo "$as_me:14853: \$? = $ac_status" >&5
     14855   echo "$as_me:14855: \$? = $ac_status" >&5
    1485414856   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1485514857   then
     
    1705417056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1705517057   -e 's:$: $lt_compiler_flag:'`
    17056    (eval echo "\"\$as_me:17056: $lt_compile\"" >&5)
     17058   (eval echo "\"\$as_me:17058: $lt_compile\"" >&5)
    1705717059   (eval "$lt_compile" 2>conftest.err)
    1705817060   ac_status=$?
    1705917061   cat conftest.err >&5
    17060    echo "$as_me:17060: \$? = $ac_status" >&5
     17062   echo "$as_me:17062: \$? = $ac_status" >&5
    1706117063   if (exit $ac_status) && test -s "$ac_outfile"; then
    1706217064     # The compiler can only warn and ignore the option if not recognized
     
    1732217324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1732317325   -e 's:$: $lt_compiler_flag:'`
    17324    (eval echo "\"\$as_me:17324: $lt_compile\"" >&5)
     17326   (eval echo "\"\$as_me:17326: $lt_compile\"" >&5)
    1732517327   (eval "$lt_compile" 2>conftest.err)
    1732617328   ac_status=$?
    1732717329   cat conftest.err >&5
    17328    echo "$as_me:17328: \$? = $ac_status" >&5
     17330   echo "$as_me:17330: \$? = $ac_status" >&5
    1732917331   if (exit $ac_status) && test -s "$ac_outfile"; then
    1733017332     # The compiler can only warn and ignore the option if not recognized
     
    1742617428   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1742717429   -e 's:$: $lt_compiler_flag:'`
    17428    (eval echo "\"\$as_me:17428: $lt_compile\"" >&5)
     17430   (eval echo "\"\$as_me:17430: $lt_compile\"" >&5)
    1742917431   (eval "$lt_compile" 2>out/conftest.err)
    1743017432   ac_status=$?
    1743117433   cat out/conftest.err >&5
    17432    echo "$as_me:17432: \$? = $ac_status" >&5
     17434   echo "$as_me:17434: \$? = $ac_status" >&5
    1743317435   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1743417436   then
     
    2032820330}
    2032920331
    20330 echo "$as_me:$LINENO: checking for COIN project Blas" >&5
    20331 echo $ECHO_N "checking for COIN project Blas... $ECHO_C" >&6
    20332 
    20333 # First check, if the sub-project is actually available (ToDo: allow
    20334 # other locations)
    20335 
    20336 coin_has_blas=unavailable
    20337 if test x"$COIN_SKIP_PROJECTS" != x; then
    20338   for dir in $COIN_SKIP_PROJECTS; do
    20339     if test $dir = Blas; then
    20340       coin_has_blas=skipping
     20332# Check if Lapack is already available on the system or provided by user
     20333#save_LIBS="$LIBS"
     20334ac_ext=f
     20335ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20336ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20337ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20338echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     20339echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     20340if test "${ac_cv_prog_f77_v+set}" = set; then
     20341  echo $ECHO_N "(cached) $ECHO_C" >&6
     20342else
     20343  cat >conftest.$ac_ext <<_ACEOF
     20344      program main
     20345
     20346      end
     20347_ACEOF
     20348rm -f conftest.$ac_objext
     20349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20350  (eval $ac_compile) 2>conftest.er1
     20351  ac_status=$?
     20352  grep -v '^ *+' conftest.er1 >conftest.err
     20353  rm -f conftest.er1
     20354  cat conftest.err >&5
     20355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20356  (exit $ac_status); } &&
     20357         { ac_try='test -z "$ac_f77_werror_flag"
     20358                         || test ! -s conftest.err'
     20359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20360  (eval $ac_try) 2>&5
     20361  ac_status=$?
     20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20363  (exit $ac_status); }; } &&
     20364         { ac_try='test -s conftest.$ac_objext'
     20365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20366  (eval $ac_try) 2>&5
     20367  ac_status=$?
     20368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20369  (exit $ac_status); }; }; then
     20370  ac_cv_prog_f77_v=
     20371# Try some options frequently used verbose output
     20372for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     20373  cat >conftest.$ac_ext <<_ACEOF
     20374      program main
     20375
     20376      end
     20377_ACEOF
     20378
     20379# Compile and link our simple test program by passing a flag (argument
     20380# 1 to this macro) to the Fortran compiler in order to get
     20381# "verbose" output that we can then parse for the Fortran linker
     20382# flags.
     20383ac_save_FFLAGS=$FFLAGS
     20384FFLAGS="$FFLAGS $ac_verb"
     20385(eval echo $as_me:20385: \"$ac_link\") >&5
     20386ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20387echo "$ac_f77_v_output" >&5
     20388FFLAGS=$ac_save_FFLAGS
     20389
     20390rm -f conftest*
     20391
     20392# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20393# /foo, /bar, and /baz are search directories for the Fortran linker.
     20394# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20395ac_f77_v_output="`echo $ac_f77_v_output |
     20396        grep 'LPATH is:' |
     20397        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20398
     20399case $ac_f77_v_output in
     20400  # If we are using xlf then replace all the commas with spaces.
     20401  *xlfentry*)
     20402    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20403
     20404  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20405  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20406  *mGLOB_options_string*)
     20407    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20408
     20409  # If we are using Cray Fortran then delete quotes.
     20410  # Use "\"" instead of '"' for font-lock-mode.
     20411  # FIXME: a more general fix for quoted arguments with spaces?
     20412  *cft90*)
     20413    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20414esac
     20415
     20416
     20417  # look for -l* and *.a constructs in the output
     20418  for ac_arg in $ac_f77_v_output; do
     20419     case $ac_arg in
     20420        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     20421          ac_cv_prog_f77_v=$ac_verb
     20422          break 2 ;;
     20423     esac
     20424  done
     20425done
     20426if test -z "$ac_cv_prog_f77_v"; then
     20427   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     20428echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     20429fi
     20430else
     20431  echo "$as_me: failed program was:" >&5
     20432sed 's/^/| /' conftest.$ac_ext >&5
     20433
     20434{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     20435echo "$as_me: WARNING: compilation failed" >&2;}
     20436fi
     20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20438
     20439fi
     20440echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     20441echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     20442echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     20443echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     20444if test "${ac_cv_f77_libs+set}" = set; then
     20445  echo $ECHO_N "(cached) $ECHO_C" >&6
     20446else
     20447  if test "x$FLIBS" != "x"; then
     20448  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     20449else
     20450
     20451cat >conftest.$ac_ext <<_ACEOF
     20452      program main
     20453
     20454      end
     20455_ACEOF
     20456
     20457# Compile and link our simple test program by passing a flag (argument
     20458# 1 to this macro) to the Fortran compiler in order to get
     20459# "verbose" output that we can then parse for the Fortran linker
     20460# flags.
     20461ac_save_FFLAGS=$FFLAGS
     20462FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     20463(eval echo $as_me:20463: \"$ac_link\") >&5
     20464ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     20465echo "$ac_f77_v_output" >&5
     20466FFLAGS=$ac_save_FFLAGS
     20467
     20468rm -f conftest*
     20469
     20470# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     20471# /foo, /bar, and /baz are search directories for the Fortran linker.
     20472# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     20473ac_f77_v_output="`echo $ac_f77_v_output |
     20474        grep 'LPATH is:' |
     20475        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     20476
     20477case $ac_f77_v_output in
     20478  # If we are using xlf then replace all the commas with spaces.
     20479  *xlfentry*)
     20480    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     20481
     20482  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     20483  # $LIBS confuse us, and the libraries appear later in the output anyway).
     20484  *mGLOB_options_string*)
     20485    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     20486
     20487  # If we are using Cray Fortran then delete quotes.
     20488  # Use "\"" instead of '"' for font-lock-mode.
     20489  # FIXME: a more general fix for quoted arguments with spaces?
     20490  *cft90*)
     20491    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     20492esac
     20493
     20494
     20495
     20496ac_cv_f77_libs=
     20497
     20498# Save positional arguments (if any)
     20499ac_save_positional="$@"
     20500
     20501set X $ac_f77_v_output
     20502while test $# != 1; do
     20503  shift
     20504  ac_arg=$1
     20505  case $ac_arg in
     20506        [\\/]*.a | ?:[\\/]*.a)
     20507            ac_exists=false
     20508  for ac_i in $ac_cv_f77_libs; do
     20509    if test x"$ac_arg" = x"$ac_i"; then
     20510      ac_exists=true
     20511      break
    2034120512    fi
    2034220513  done
    20343 fi
    20344 
    20345 if test $coin_has_blas != skipping; then
    20346   if test $PACKAGE_TARNAME = blas; then
    20347     coin_has_blas=.
     20514
     20515  if test x"$ac_exists" = xtrue; then
     20516  :
     20517else
     20518  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20519fi
     20520
     20521          ;;
     20522        -bI:*)
     20523            ac_exists=false
     20524  for ac_i in $ac_cv_f77_libs; do
     20525    if test x"$ac_arg" = x"$ac_i"; then
     20526      ac_exists=true
     20527      break
     20528    fi
     20529  done
     20530
     20531  if test x"$ac_exists" = xtrue; then
     20532  :
     20533else
     20534  if test "$ac_compiler_gnu" = yes; then
     20535  for ac_link_opt in $ac_arg; do
     20536    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20537  done
     20538else
     20539  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20540fi
     20541fi
     20542
     20543          ;;
     20544          # Ignore these flags.
     20545        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     20546          ;;
     20547        -lkernel32)
     20548          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20549          ;;
     20550        -[LRuY])
     20551          # These flags, when seen by themselves, take an argument.
     20552          # We remove the space between option and argument and re-iterate
     20553          # unless we find an empty arg or a new option (starting with -)
     20554          case $2 in
     20555             "" | -*);;
     20556             *)
     20557                ac_arg="$ac_arg$2"
     20558                shift; shift
     20559                set X $ac_arg "$@"
     20560                ;;
     20561          esac
     20562          ;;
     20563        -YP,*)
     20564          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     20565              ac_exists=false
     20566  for ac_i in $ac_cv_f77_libs; do
     20567    if test x"$ac_j" = x"$ac_i"; then
     20568      ac_exists=true
     20569      break
     20570    fi
     20571  done
     20572
     20573  if test x"$ac_exists" = xtrue; then
     20574  :
     20575else
     20576  ac_arg="$ac_arg $ac_j"
     20577                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     20578fi
     20579
     20580          done
     20581          ;;
     20582        -[lLR]*)
     20583            ac_exists=false
     20584  for ac_i in $ac_cv_f77_libs; do
     20585    if test x"$ac_arg" = x"$ac_i"; then
     20586      ac_exists=true
     20587      break
     20588    fi
     20589  done
     20590
     20591  if test x"$ac_exists" = xtrue; then
     20592  :
     20593else
     20594  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     20595fi
     20596
     20597          ;;
     20598          # Ignore everything else.
     20599  esac
     20600done
     20601# restore positional arguments
     20602set X $ac_save_positional; shift
     20603
     20604# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     20605# then we insist that the "run path" must be an absolute path (i.e. it
     20606# must begin with a "/").
     20607case `(uname -sr) 2>/dev/null` in
     20608   "SunOS 5"*)
     20609      ac_ld_run_path=`echo $ac_f77_v_output |
     20610                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     20611      test "x$ac_ld_run_path" != x &&
     20612        if test "$ac_compiler_gnu" = yes; then
     20613  for ac_link_opt in $ac_ld_run_path; do
     20614    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     20615  done
     20616else
     20617  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     20618fi
     20619      ;;
     20620esac
     20621fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     20622
     20623fi
     20624echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     20625echo "${ECHO_T}$ac_cv_f77_libs" >&6
     20626FLIBS="$ac_cv_f77_libs"
     20627
     20628
     20629ac_ext=c
     20630ac_cpp='$CPP $CPPFLAGS'
     20631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20633ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20634
     20635ac_ext=f
     20636ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20637ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20638ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20639
     20640echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     20641echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     20642if test "${ac_cv_f77_dummy_main+set}" = set; then
     20643  echo $ECHO_N "(cached) $ECHO_C" >&6
     20644else
     20645  ac_f77_dm_save_LIBS=$LIBS
     20646 LIBS="$LIBS $FLIBS"
     20647 ac_fortran_dm_var=F77_DUMMY_MAIN
     20648 ac_ext=c
     20649ac_cpp='$CPP $CPPFLAGS'
     20650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20652ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20653
     20654 # First, try linking without a dummy main:
     20655 cat >conftest.$ac_ext <<_ACEOF
     20656/* confdefs.h.  */
     20657_ACEOF
     20658cat confdefs.h >>conftest.$ac_ext
     20659cat >>conftest.$ac_ext <<_ACEOF
     20660/* end confdefs.h.  */
     20661
     20662#ifdef F77_DUMMY_MAIN
     20663
     20664#  ifdef __cplusplus
     20665     extern "C"
     20666#  endif
     20667   int F77_DUMMY_MAIN() { return 1; }
     20668
     20669#endif
     20670int
     20671main ()
     20672{
     20673
     20674  ;
     20675  return 0;
     20676}
     20677_ACEOF
     20678rm -f conftest.$ac_objext conftest$ac_exeext
     20679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20680  (eval $ac_link) 2>conftest.er1
     20681  ac_status=$?
     20682  grep -v '^ *+' conftest.er1 >conftest.err
     20683  rm -f conftest.er1
     20684  cat conftest.err >&5
     20685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20686  (exit $ac_status); } &&
     20687         { ac_try='test -z "$ac_c_werror_flag"
     20688                         || test ! -s conftest.err'
     20689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20690  (eval $ac_try) 2>&5
     20691  ac_status=$?
     20692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20693  (exit $ac_status); }; } &&
     20694         { ac_try='test -s conftest$ac_exeext'
     20695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20696  (eval $ac_try) 2>&5
     20697  ac_status=$?
     20698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20699  (exit $ac_status); }; }; then
     20700  ac_cv_fortran_dummy_main=none
     20701else
     20702  echo "$as_me: failed program was:" >&5
     20703sed 's/^/| /' conftest.$ac_ext >&5
     20704
     20705ac_cv_fortran_dummy_main=unknown
     20706fi
     20707rm -f conftest.err conftest.$ac_objext \
     20708      conftest$ac_exeext conftest.$ac_ext
     20709
     20710 if test $ac_cv_fortran_dummy_main = unknown; then
     20711   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     20712     cat >conftest.$ac_ext <<_ACEOF
     20713/* confdefs.h.  */
     20714_ACEOF
     20715cat confdefs.h >>conftest.$ac_ext
     20716cat >>conftest.$ac_ext <<_ACEOF
     20717/* end confdefs.h.  */
     20718#define $ac_fortran_dm_var $ac_func
     20719#ifdef F77_DUMMY_MAIN
     20720
     20721#  ifdef __cplusplus
     20722     extern "C"
     20723#  endif
     20724   int F77_DUMMY_MAIN() { return 1; }
     20725
     20726#endif
     20727int
     20728main ()
     20729{
     20730
     20731  ;
     20732  return 0;
     20733}
     20734_ACEOF
     20735rm -f conftest.$ac_objext conftest$ac_exeext
     20736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20737  (eval $ac_link) 2>conftest.er1
     20738  ac_status=$?
     20739  grep -v '^ *+' conftest.er1 >conftest.err
     20740  rm -f conftest.er1
     20741  cat conftest.err >&5
     20742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20743  (exit $ac_status); } &&
     20744         { ac_try='test -z "$ac_c_werror_flag"
     20745                         || test ! -s conftest.err'
     20746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20747  (eval $ac_try) 2>&5
     20748  ac_status=$?
     20749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20750  (exit $ac_status); }; } &&
     20751         { ac_try='test -s conftest$ac_exeext'
     20752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20753  (eval $ac_try) 2>&5
     20754  ac_status=$?
     20755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20756  (exit $ac_status); }; }; then
     20757  ac_cv_fortran_dummy_main=$ac_func; break
     20758else
     20759  echo "$as_me: failed program was:" >&5
     20760sed 's/^/| /' conftest.$ac_ext >&5
     20761
     20762fi
     20763rm -f conftest.err conftest.$ac_objext \
     20764      conftest$ac_exeext conftest.$ac_ext
     20765   done
     20766 fi
     20767 ac_ext=f
     20768ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20769ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20770ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20771 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     20772 rm -f conftest*
     20773 LIBS=$ac_f77_dm_save_LIBS
     20774
     20775fi
     20776echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     20777echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     20778F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     20779if test "$F77_DUMMY_MAIN" != unknown; then
     20780  if test $F77_DUMMY_MAIN != none; then
     20781
     20782cat >>confdefs.h <<_ACEOF
     20783#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     20784_ACEOF
     20785
     20786  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     20787
     20788cat >>confdefs.h <<\_ACEOF
     20789#define FC_DUMMY_MAIN_EQ_F77 1
     20790_ACEOF
     20791
     20792  fi
     20793fi
     20794else
     20795  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     20796See \`config.log' for more details." >&5
     20797echo "$as_me: error: linking to Fortran libraries from C fails
     20798See \`config.log' for more details." >&2;}
     20799   { (exit 1); exit 1; }; }
     20800fi
     20801
     20802
     20803ac_ext=c
     20804ac_cpp='$CPP $CPPFLAGS'
     20805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20807ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20808
     20809ac_ext=f
     20810ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20811ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20812ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20813echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     20814echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     20815if test "${ac_cv_f77_mangling+set}" = set; then
     20816  echo $ECHO_N "(cached) $ECHO_C" >&6
     20817else
     20818  cat >conftest.$ac_ext <<_ACEOF
     20819      subroutine foobar()
     20820      return
     20821      end
     20822      subroutine foo_bar()
     20823      return
     20824      end
     20825_ACEOF
     20826rm -f conftest.$ac_objext
     20827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20828  (eval $ac_compile) 2>conftest.er1
     20829  ac_status=$?
     20830  grep -v '^ *+' conftest.er1 >conftest.err
     20831  rm -f conftest.er1
     20832  cat conftest.err >&5
     20833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20834  (exit $ac_status); } &&
     20835         { ac_try='test -z "$ac_f77_werror_flag"
     20836                         || test ! -s conftest.err'
     20837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20838  (eval $ac_try) 2>&5
     20839  ac_status=$?
     20840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20841  (exit $ac_status); }; } &&
     20842         { ac_try='test -s conftest.$ac_objext'
     20843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20844  (eval $ac_try) 2>&5
     20845  ac_status=$?
     20846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20847  (exit $ac_status); }; }; then
     20848  mv conftest.$ac_objext cfortran_test.$ac_objext
     20849
     20850  ac_save_LIBS=$LIBS
     20851  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     20852
     20853  ac_ext=c
     20854ac_cpp='$CPP $CPPFLAGS'
     20855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20857ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20858  ac_success=no
     20859  for ac_foobar in foobar FOOBAR; do
     20860    for ac_underscore in "" "_"; do
     20861      ac_func="$ac_foobar$ac_underscore"
     20862      cat >conftest.$ac_ext <<_ACEOF
     20863/* confdefs.h.  */
     20864_ACEOF
     20865cat confdefs.h >>conftest.$ac_ext
     20866cat >>conftest.$ac_ext <<_ACEOF
     20867/* end confdefs.h.  */
     20868
     20869/* Override any gcc2 internal prototype to avoid an error.  */
     20870#ifdef __cplusplus
     20871extern "C"
     20872#endif
     20873/* We use char because int might match the return type of a gcc2
     20874   builtin and then its argument prototype would still apply.  */
     20875char $ac_func ();
     20876#ifdef F77_DUMMY_MAIN
     20877
     20878#  ifdef __cplusplus
     20879     extern "C"
     20880#  endif
     20881   int F77_DUMMY_MAIN() { return 1; }
     20882
     20883#endif
     20884int
     20885main ()
     20886{
     20887$ac_func ();
     20888  ;
     20889  return 0;
     20890}
     20891_ACEOF
     20892rm -f conftest.$ac_objext conftest$ac_exeext
     20893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20894  (eval $ac_link) 2>conftest.er1
     20895  ac_status=$?
     20896  grep -v '^ *+' conftest.er1 >conftest.err
     20897  rm -f conftest.er1
     20898  cat conftest.err >&5
     20899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20900  (exit $ac_status); } &&
     20901         { ac_try='test -z "$ac_c_werror_flag"
     20902                         || test ! -s conftest.err'
     20903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20904  (eval $ac_try) 2>&5
     20905  ac_status=$?
     20906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20907  (exit $ac_status); }; } &&
     20908         { ac_try='test -s conftest$ac_exeext'
     20909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20910  (eval $ac_try) 2>&5
     20911  ac_status=$?
     20912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20913  (exit $ac_status); }; }; then
     20914  ac_success=yes; break 2
     20915else
     20916  echo "$as_me: failed program was:" >&5
     20917sed 's/^/| /' conftest.$ac_ext >&5
     20918
     20919fi
     20920rm -f conftest.err conftest.$ac_objext \
     20921      conftest$ac_exeext conftest.$ac_ext
     20922    done
     20923  done
     20924  ac_ext=f
     20925ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20926ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20927ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20928
     20929  if test "$ac_success" = "yes"; then
     20930     case $ac_foobar in
     20931        foobar)
     20932           ac_case=lower
     20933           ac_foo_bar=foo_bar
     20934           ;;
     20935        FOOBAR)
     20936           ac_case=upper
     20937           ac_foo_bar=FOO_BAR
     20938           ;;
     20939     esac
     20940
     20941     ac_ext=c
     20942ac_cpp='$CPP $CPPFLAGS'
     20943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20945ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20946     ac_success_extra=no
     20947     for ac_extra in "" "_"; do
     20948        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     20949        cat >conftest.$ac_ext <<_ACEOF
     20950/* confdefs.h.  */
     20951_ACEOF
     20952cat confdefs.h >>conftest.$ac_ext
     20953cat >>conftest.$ac_ext <<_ACEOF
     20954/* end confdefs.h.  */
     20955
     20956/* Override any gcc2 internal prototype to avoid an error.  */
     20957#ifdef __cplusplus
     20958extern "C"
     20959#endif
     20960/* We use char because int might match the return type of a gcc2
     20961   builtin and then its argument prototype would still apply.  */
     20962char $ac_func ();
     20963#ifdef F77_DUMMY_MAIN
     20964
     20965#  ifdef __cplusplus
     20966     extern "C"
     20967#  endif
     20968   int F77_DUMMY_MAIN() { return 1; }
     20969
     20970#endif
     20971int
     20972main ()
     20973{
     20974$ac_func ();
     20975  ;
     20976  return 0;
     20977}
     20978_ACEOF
     20979rm -f conftest.$ac_objext conftest$ac_exeext
     20980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     20981  (eval $ac_link) 2>conftest.er1
     20982  ac_status=$?
     20983  grep -v '^ *+' conftest.er1 >conftest.err
     20984  rm -f conftest.er1
     20985  cat conftest.err >&5
     20986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20987  (exit $ac_status); } &&
     20988         { ac_try='test -z "$ac_c_werror_flag"
     20989                         || test ! -s conftest.err'
     20990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20991  (eval $ac_try) 2>&5
     20992  ac_status=$?
     20993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20994  (exit $ac_status); }; } &&
     20995         { ac_try='test -s conftest$ac_exeext'
     20996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20997  (eval $ac_try) 2>&5
     20998  ac_status=$?
     20999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21000  (exit $ac_status); }; }; then
     21001  ac_success_extra=yes; break
     21002else
     21003  echo "$as_me: failed program was:" >&5
     21004sed 's/^/| /' conftest.$ac_ext >&5
     21005
     21006fi
     21007rm -f conftest.err conftest.$ac_objext \
     21008      conftest$ac_exeext conftest.$ac_ext
     21009     done
     21010     ac_ext=f
     21011ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21012ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21013ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21014
     21015     if test "$ac_success_extra" = "yes"; then
     21016        ac_cv_f77_mangling="$ac_case case"
     21017        if test -z "$ac_underscore"; then
     21018           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     21019        else
     21020           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     21021        fi
     21022        if test -z "$ac_extra"; then
     21023           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     21024        else
     21025           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     21026        fi
     21027      else
     21028        ac_cv_f77_mangling="unknown"
     21029      fi
    2034821030  else
    20349     if test -d $srcdir/../Blas; then
    20350       coin_has_blas=../Blas
     21031     ac_cv_f77_mangling="unknown"
     21032  fi
     21033
     21034  LIBS=$ac_save_LIBS
     21035  rm -f cfortran_test* conftest*
     21036else
     21037  echo "$as_me: failed program was:" >&5
     21038sed 's/^/| /' conftest.$ac_ext >&5
     21039
     21040{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     21041See \`config.log' for more details." >&5
     21042echo "$as_me: error: cannot compile a simple Fortran program
     21043See \`config.log' for more details." >&2;}
     21044   { (exit 1); exit 1; }; }
     21045fi
     21046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     21047
     21048fi
     21049echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     21050echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     21051
     21052ac_ext=c
     21053ac_cpp='$CPP $CPPFLAGS'
     21054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21056ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21057
     21058if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then
     21059  coin_blasobjdir=../Blas
     21060else
     21061  coin_blasobjdir=../ThirdParty/Blas
     21062fi
     21063coin_blassrcdir=$srcdir/$coin_blasobjdir
     21064
     21065
     21066# Check whether --with-blas or --without-blas was given.
     21067if test "${with_blas+set}" = set; then
     21068  withval="$with_blas"
     21069  use_blas=$withval
     21070else
     21071  use_blas=
     21072fi;
     21073
     21074MAKEOKFILE=.MakeOk
     21075# Check if user supplied option makes sense
     21076if test x"$use_blas" != x; then
     21077  if test "$use_blas" = "BUILD"; then
     21078    # Don't check for course code if this is executed in ThirdParty/Blas
     21079    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     21080      if test -r $coin_blasobjdir/.MakeOk; then :; else
     21081        { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5
     21082echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;}
     21083   { (exit 1); exit 1; }; }
     21084      fi
     21085    fi
     21086  elif test "$use_blas" != no ; then
     21087    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
     21088echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     21089    LIBS="$use_blas $LIBS"
     21090    ADDLIBS="$use_blas $ADDLIBS"
     21091    case $ac_ext in
     21092  f)
     21093    cat >conftest.$ac_ext <<_ACEOF
     21094/* confdefs.h.  */
     21095_ACEOF
     21096cat confdefs.h >>conftest.$ac_ext
     21097cat >>conftest.$ac_ext <<_ACEOF
     21098/* end confdefs.h.  */
     21099
     21100int
     21101main ()
     21102{
     21103      call daxpy
     21104  ;
     21105  return 0;
     21106}
     21107_ACEOF
     21108rm -f conftest.$ac_objext conftest$ac_exeext
     21109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21110  (eval $ac_link) 2>conftest.er1
     21111  ac_status=$?
     21112  grep -v '^ *+' conftest.er1 >conftest.err
     21113  rm -f conftest.er1
     21114  cat conftest.err >&5
     21115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21116  (exit $ac_status); } &&
     21117         { ac_try='test -z "$ac_c_werror_flag"
     21118                         || test ! -s conftest.err'
     21119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21120  (eval $ac_try) 2>&5
     21121  ac_status=$?
     21122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21123  (exit $ac_status); }; } &&
     21124         { ac_try='test -s conftest$ac_exeext'
     21125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21126  (eval $ac_try) 2>&5
     21127  ac_status=$?
     21128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21129  (exit $ac_status); }; }; then
     21130  echo "$as_me:$LINENO: result: yes" >&5
     21131echo "${ECHO_T}yes" >&6
     21132else
     21133  echo "$as_me: failed program was:" >&5
     21134sed 's/^/| /' conftest.$ac_ext >&5
     21135
     21136echo "$as_me:$LINENO: result: no" >&5
     21137echo "${ECHO_T}no" >&6
     21138                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21139echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21140   { (exit 1); exit 1; }; }
     21141fi
     21142rm -f conftest.err conftest.$ac_objext \
     21143      conftest$ac_exeext conftest.$ac_ext
     21144    ;;
     21145  c)
     21146    ac_ext=f
     21147ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21148ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21149ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21150case $ac_cv_f77_mangling in
     21151  upper*) ac_val="DAXPY" ;;
     21152  lower*) ac_val="daxpy" ;;
     21153  *)      ac_val="unknown" ;;
     21154esac
     21155case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21156
     21157cfuncdaxpy="$ac_val"
     21158
     21159ac_ext=c
     21160ac_cpp='$CPP $CPPFLAGS'
     21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21163ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21164
     21165    if test x"$coin_need_flibs" = xyes; then
     21166      flink_try=no;
     21167    else
     21168      cat >conftest.$ac_ext <<_ACEOF
     21169/* confdefs.h.  */
     21170_ACEOF
     21171cat confdefs.h >>conftest.$ac_ext
     21172cat >>conftest.$ac_ext <<_ACEOF
     21173/* end confdefs.h.  */
     21174void $cfuncdaxpy();
     21175#ifdef F77_DUMMY_MAIN
     21176
     21177#  ifdef __cplusplus
     21178     extern "C"
     21179#  endif
     21180   int F77_DUMMY_MAIN() { return 1; }
     21181
     21182#endif
     21183int
     21184main ()
     21185{
     21186$cfuncdaxpy()
     21187  ;
     21188  return 0;
     21189}
     21190_ACEOF
     21191rm -f conftest.$ac_objext conftest$ac_exeext
     21192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21193  (eval $ac_link) 2>conftest.er1
     21194  ac_status=$?
     21195  grep -v '^ *+' conftest.er1 >conftest.err
     21196  rm -f conftest.er1
     21197  cat conftest.err >&5
     21198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21199  (exit $ac_status); } &&
     21200         { ac_try='test -z "$ac_c_werror_flag"
     21201                         || test ! -s conftest.err'
     21202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21203  (eval $ac_try) 2>&5
     21204  ac_status=$?
     21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21206  (exit $ac_status); }; } &&
     21207         { ac_try='test -s conftest$ac_exeext'
     21208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21209  (eval $ac_try) 2>&5
     21210  ac_status=$?
     21211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21212  (exit $ac_status); }; }; then
     21213  flink_try=yes
     21214else
     21215  echo "$as_me: failed program was:" >&5
     21216sed 's/^/| /' conftest.$ac_ext >&5
     21217
     21218flink_try=no
     21219fi
     21220rm -f conftest.err conftest.$ac_objext \
     21221      conftest$ac_exeext conftest.$ac_ext
     21222    fi
     21223    if test $flink_try = yes; then
     21224      echo "$as_me:$LINENO: result: yes" >&5
     21225echo "${ECHO_T}yes" >&6
     21226    else
     21227      if test x"$FLIBS" != x; then
     21228        flink_save_libs="$LIBS"
     21229        LIBS="$LIBS $FLIBS"
     21230        cat >conftest.$ac_ext <<_ACEOF
     21231/* confdefs.h.  */
     21232_ACEOF
     21233cat confdefs.h >>conftest.$ac_ext
     21234cat >>conftest.$ac_ext <<_ACEOF
     21235/* end confdefs.h.  */
     21236void $cfuncdaxpy();
     21237#ifdef F77_DUMMY_MAIN
     21238
     21239#  ifdef __cplusplus
     21240     extern "C"
     21241#  endif
     21242   int F77_DUMMY_MAIN() { return 1; }
     21243
     21244#endif
     21245int
     21246main ()
     21247{
     21248$cfuncdaxpy()
     21249  ;
     21250  return 0;
     21251}
     21252_ACEOF
     21253rm -f conftest.$ac_objext conftest$ac_exeext
     21254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21255  (eval $ac_link) 2>conftest.er1
     21256  ac_status=$?
     21257  grep -v '^ *+' conftest.er1 >conftest.err
     21258  rm -f conftest.er1
     21259  cat conftest.err >&5
     21260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21261  (exit $ac_status); } &&
     21262         { ac_try='test -z "$ac_c_werror_flag"
     21263                         || test ! -s conftest.err'
     21264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21265  (eval $ac_try) 2>&5
     21266  ac_status=$?
     21267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21268  (exit $ac_status); }; } &&
     21269         { ac_try='test -s conftest$ac_exeext'
     21270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21271  (eval $ac_try) 2>&5
     21272  ac_status=$?
     21273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21274  (exit $ac_status); }; }; then
     21275  LIBS="$flink_save_libs"
     21276                     echo "$as_me:$LINENO: result: yes" >&5
     21277echo "${ECHO_T}yes" >&6
     21278                     coin_need_flibs=yes
     21279else
     21280  echo "$as_me: failed program was:" >&5
     21281sed 's/^/| /' conftest.$ac_ext >&5
     21282
     21283LIBS="$flink_save_libs"
     21284                     echo "$as_me:$LINENO: result: no" >&5
     21285echo "${ECHO_T}no" >&6
     21286                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21287echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21288   { (exit 1); exit 1; }; }
     21289fi
     21290rm -f conftest.err conftest.$ac_objext \
     21291      conftest$ac_exeext conftest.$ac_ext
     21292      else
     21293        echo "$as_me:$LINENO: result: no" >&5
     21294echo "${ECHO_T}no" >&6
     21295                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21296echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21297   { (exit 1); exit 1; }; }
     21298      fi
     21299    fi
     21300    ;;
     21301  cc|cpp)
     21302    ac_ext=f
     21303ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21304ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21305ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21306case $ac_cv_f77_mangling in
     21307  upper*) ac_val="DAXPY" ;;
     21308  lower*) ac_val="daxpy" ;;
     21309  *)      ac_val="unknown" ;;
     21310esac
     21311case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21312
     21313cfuncdaxpy="$ac_val"
     21314
     21315ac_ext=c
     21316ac_cpp='$CPP $CPPFLAGS'
     21317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21319ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21320
     21321    if test x"$coin_need_flibs" = xyes; then
     21322      flink_try=no;
     21323    else
     21324      cat >conftest.$ac_ext <<_ACEOF
     21325/* confdefs.h.  */
     21326_ACEOF
     21327cat confdefs.h >>conftest.$ac_ext
     21328cat >>conftest.$ac_ext <<_ACEOF
     21329/* end confdefs.h.  */
     21330extern "C" {void $cfuncdaxpy();}
     21331#ifdef F77_DUMMY_MAIN
     21332
     21333#  ifdef __cplusplus
     21334     extern "C"
     21335#  endif
     21336   int F77_DUMMY_MAIN() { return 1; }
     21337
     21338#endif
     21339int
     21340main ()
     21341{
     21342$cfuncdaxpy()
     21343  ;
     21344  return 0;
     21345}
     21346_ACEOF
     21347rm -f conftest.$ac_objext conftest$ac_exeext
     21348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21349  (eval $ac_link) 2>conftest.er1
     21350  ac_status=$?
     21351  grep -v '^ *+' conftest.er1 >conftest.err
     21352  rm -f conftest.er1
     21353  cat conftest.err >&5
     21354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21355  (exit $ac_status); } &&
     21356         { ac_try='test -z "$ac_c_werror_flag"
     21357                         || test ! -s conftest.err'
     21358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21359  (eval $ac_try) 2>&5
     21360  ac_status=$?
     21361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21362  (exit $ac_status); }; } &&
     21363         { ac_try='test -s conftest$ac_exeext'
     21364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21365  (eval $ac_try) 2>&5
     21366  ac_status=$?
     21367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21368  (exit $ac_status); }; }; then
     21369  flink_try=yes
     21370else
     21371  echo "$as_me: failed program was:" >&5
     21372sed 's/^/| /' conftest.$ac_ext >&5
     21373
     21374flink_try=no
     21375fi
     21376rm -f conftest.err conftest.$ac_objext \
     21377      conftest$ac_exeext conftest.$ac_ext
     21378    fi
     21379    if test $flink_try = yes; then
     21380      echo "$as_me:$LINENO: result: yes" >&5
     21381echo "${ECHO_T}yes" >&6
     21382    else
     21383      if test x"$FLIBS" != x; then
     21384        flink_save_libs="$LIBS"
     21385        LIBS="$LIBS $FLIBS"
     21386        cat >conftest.$ac_ext <<_ACEOF
     21387/* confdefs.h.  */
     21388_ACEOF
     21389cat confdefs.h >>conftest.$ac_ext
     21390cat >>conftest.$ac_ext <<_ACEOF
     21391/* end confdefs.h.  */
     21392extern "C" {void $cfuncdaxpy();}
     21393#ifdef F77_DUMMY_MAIN
     21394
     21395#  ifdef __cplusplus
     21396     extern "C"
     21397#  endif
     21398   int F77_DUMMY_MAIN() { return 1; }
     21399
     21400#endif
     21401int
     21402main ()
     21403{
     21404$cfuncdaxpy()
     21405  ;
     21406  return 0;
     21407}
     21408_ACEOF
     21409rm -f conftest.$ac_objext conftest$ac_exeext
     21410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21411  (eval $ac_link) 2>conftest.er1
     21412  ac_status=$?
     21413  grep -v '^ *+' conftest.er1 >conftest.err
     21414  rm -f conftest.er1
     21415  cat conftest.err >&5
     21416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21417  (exit $ac_status); } &&
     21418         { ac_try='test -z "$ac_c_werror_flag"
     21419                         || test ! -s conftest.err'
     21420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21421  (eval $ac_try) 2>&5
     21422  ac_status=$?
     21423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21424  (exit $ac_status); }; } &&
     21425         { ac_try='test -s conftest$ac_exeext'
     21426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21427  (eval $ac_try) 2>&5
     21428  ac_status=$?
     21429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21430  (exit $ac_status); }; }; then
     21431  LIBS="$flink_save_libs"
     21432                     echo "$as_me:$LINENO: result: yes" >&5
     21433echo "${ECHO_T}yes" >&6
     21434                     coin_need_flibs=yes
     21435else
     21436  echo "$as_me: failed program was:" >&5
     21437sed 's/^/| /' conftest.$ac_ext >&5
     21438
     21439LIBS="$flink_save_libs"
     21440                     echo "$as_me:$LINENO: result: no" >&5
     21441echo "${ECHO_T}no" >&6
     21442                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21443echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21444   { (exit 1); exit 1; }; }
     21445fi
     21446rm -f conftest.err conftest.$ac_objext \
     21447      conftest$ac_exeext conftest.$ac_ext
     21448      else
     21449        echo "$as_me:$LINENO: result: no" >&5
     21450echo "${ECHO_T}no" >&6
     21451                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     21452echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     21453   { (exit 1); exit 1; }; }
     21454      fi
     21455    fi
     21456    ;;
     21457esac
     21458
     21459  fi
     21460else
     21461# Try to autodetect the library for blas based on build system
     21462  #AC_MSG_CHECKING([default locations for BLAS])
     21463  skip_lblas_check=no
     21464  case $build in
     21465    *-sgi-*)
     21466      SAVE_LIBS="$LIBS"
     21467      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
     21468echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     21469      LIBS="-lcomplib.sgimath $LIBS"
     21470      case $ac_ext in
     21471  f)
     21472    cat >conftest.$ac_ext <<_ACEOF
     21473/* confdefs.h.  */
     21474_ACEOF
     21475cat confdefs.h >>conftest.$ac_ext
     21476cat >>conftest.$ac_ext <<_ACEOF
     21477/* end confdefs.h.  */
     21478
     21479#ifdef F77_DUMMY_MAIN
     21480
     21481#  ifdef __cplusplus
     21482     extern "C"
     21483#  endif
     21484   int F77_DUMMY_MAIN() { return 1; }
     21485
     21486#endif
     21487int
     21488main ()
     21489{
     21490      call daxpy
     21491  ;
     21492  return 0;
     21493}
     21494_ACEOF
     21495rm -f conftest.$ac_objext conftest$ac_exeext
     21496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21497  (eval $ac_link) 2>conftest.er1
     21498  ac_status=$?
     21499  grep -v '^ *+' conftest.er1 >conftest.err
     21500  rm -f conftest.er1
     21501  cat conftest.err >&5
     21502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21503  (exit $ac_status); } &&
     21504         { ac_try='test -z "$ac_c_werror_flag"
     21505                         || test ! -s conftest.err'
     21506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21507  (eval $ac_try) 2>&5
     21508  ac_status=$?
     21509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21510  (exit $ac_status); }; } &&
     21511         { ac_try='test -s conftest$ac_exeext'
     21512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21513  (eval $ac_try) 2>&5
     21514  ac_status=$?
     21515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21516  (exit $ac_status); }; }; then
     21517  echo "$as_me:$LINENO: result: yes" >&5
     21518echo "${ECHO_T}yes" >&6
     21519                         use_blas=-lcomplib.sgimath;
     21520                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21521else
     21522  echo "$as_me: failed program was:" >&5
     21523sed 's/^/| /' conftest.$ac_ext >&5
     21524
     21525echo "$as_me:$LINENO: result: no" >&5
     21526echo "${ECHO_T}no" >&6
     21527                         SAVE_LIBS="$LIBS"
     21528fi
     21529rm -f conftest.err conftest.$ac_objext \
     21530      conftest$ac_exeext conftest.$ac_ext
     21531    ;;
     21532  c)
     21533    ac_ext=f
     21534ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21535ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21536ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21537case $ac_cv_f77_mangling in
     21538  upper*) ac_val="DAXPY" ;;
     21539  lower*) ac_val="daxpy" ;;
     21540  *)      ac_val="unknown" ;;
     21541esac
     21542case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21543
     21544cfuncdaxpy="$ac_val"
     21545
     21546ac_ext=c
     21547ac_cpp='$CPP $CPPFLAGS'
     21548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21550ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21551
     21552    if test x"$coin_need_flibs" = xyes; then
     21553      flink_try=no;
     21554    else
     21555      cat >conftest.$ac_ext <<_ACEOF
     21556/* confdefs.h.  */
     21557_ACEOF
     21558cat confdefs.h >>conftest.$ac_ext
     21559cat >>conftest.$ac_ext <<_ACEOF
     21560/* end confdefs.h.  */
     21561void $cfuncdaxpy();
     21562#ifdef F77_DUMMY_MAIN
     21563
     21564#  ifdef __cplusplus
     21565     extern "C"
     21566#  endif
     21567   int F77_DUMMY_MAIN() { return 1; }
     21568
     21569#endif
     21570int
     21571main ()
     21572{
     21573$cfuncdaxpy()
     21574  ;
     21575  return 0;
     21576}
     21577_ACEOF
     21578rm -f conftest.$ac_objext conftest$ac_exeext
     21579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21580  (eval $ac_link) 2>conftest.er1
     21581  ac_status=$?
     21582  grep -v '^ *+' conftest.er1 >conftest.err
     21583  rm -f conftest.er1
     21584  cat conftest.err >&5
     21585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21586  (exit $ac_status); } &&
     21587         { ac_try='test -z "$ac_c_werror_flag"
     21588                         || test ! -s conftest.err'
     21589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21590  (eval $ac_try) 2>&5
     21591  ac_status=$?
     21592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21593  (exit $ac_status); }; } &&
     21594         { ac_try='test -s conftest$ac_exeext'
     21595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21596  (eval $ac_try) 2>&5
     21597  ac_status=$?
     21598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21599  (exit $ac_status); }; }; then
     21600  flink_try=yes
     21601else
     21602  echo "$as_me: failed program was:" >&5
     21603sed 's/^/| /' conftest.$ac_ext >&5
     21604
     21605flink_try=no
     21606fi
     21607rm -f conftest.err conftest.$ac_objext \
     21608      conftest$ac_exeext conftest.$ac_ext
     21609    fi
     21610    if test $flink_try = yes; then
     21611      echo "$as_me:$LINENO: result: yes" >&5
     21612echo "${ECHO_T}yes" >&6
     21613                         use_blas=-lcomplib.sgimath;
     21614                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21615    else
     21616      if test x"$FLIBS" != x; then
     21617        flink_save_libs="$LIBS"
     21618        LIBS="$LIBS $FLIBS"
     21619        cat >conftest.$ac_ext <<_ACEOF
     21620/* confdefs.h.  */
     21621_ACEOF
     21622cat confdefs.h >>conftest.$ac_ext
     21623cat >>conftest.$ac_ext <<_ACEOF
     21624/* end confdefs.h.  */
     21625void $cfuncdaxpy();
     21626#ifdef F77_DUMMY_MAIN
     21627
     21628#  ifdef __cplusplus
     21629     extern "C"
     21630#  endif
     21631   int F77_DUMMY_MAIN() { return 1; }
     21632
     21633#endif
     21634int
     21635main ()
     21636{
     21637$cfuncdaxpy()
     21638  ;
     21639  return 0;
     21640}
     21641_ACEOF
     21642rm -f conftest.$ac_objext conftest$ac_exeext
     21643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21644  (eval $ac_link) 2>conftest.er1
     21645  ac_status=$?
     21646  grep -v '^ *+' conftest.er1 >conftest.err
     21647  rm -f conftest.er1
     21648  cat conftest.err >&5
     21649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21650  (exit $ac_status); } &&
     21651         { ac_try='test -z "$ac_c_werror_flag"
     21652                         || test ! -s conftest.err'
     21653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21654  (eval $ac_try) 2>&5
     21655  ac_status=$?
     21656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21657  (exit $ac_status); }; } &&
     21658         { ac_try='test -s conftest$ac_exeext'
     21659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21660  (eval $ac_try) 2>&5
     21661  ac_status=$?
     21662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21663  (exit $ac_status); }; }; then
     21664  LIBS="$flink_save_libs"
     21665                     echo "$as_me:$LINENO: result: yes" >&5
     21666echo "${ECHO_T}yes" >&6
     21667                         use_blas=-lcomplib.sgimath;
     21668                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21669                     coin_need_flibs=yes
     21670else
     21671  echo "$as_me: failed program was:" >&5
     21672sed 's/^/| /' conftest.$ac_ext >&5
     21673
     21674LIBS="$flink_save_libs"
     21675                     echo "$as_me:$LINENO: result: no" >&5
     21676echo "${ECHO_T}no" >&6
     21677                         SAVE_LIBS="$LIBS"
     21678fi
     21679rm -f conftest.err conftest.$ac_objext \
     21680      conftest$ac_exeext conftest.$ac_ext
     21681      else
     21682        echo "$as_me:$LINENO: result: no" >&5
     21683echo "${ECHO_T}no" >&6
     21684                         SAVE_LIBS="$LIBS"
     21685      fi
     21686    fi
     21687    ;;
     21688  cc|cpp)
     21689    ac_ext=f
     21690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21692ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21693case $ac_cv_f77_mangling in
     21694  upper*) ac_val="DAXPY" ;;
     21695  lower*) ac_val="daxpy" ;;
     21696  *)      ac_val="unknown" ;;
     21697esac
     21698case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21699
     21700cfuncdaxpy="$ac_val"
     21701
     21702ac_ext=c
     21703ac_cpp='$CPP $CPPFLAGS'
     21704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21706ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21707
     21708    if test x"$coin_need_flibs" = xyes; then
     21709      flink_try=no;
     21710    else
     21711      cat >conftest.$ac_ext <<_ACEOF
     21712/* confdefs.h.  */
     21713_ACEOF
     21714cat confdefs.h >>conftest.$ac_ext
     21715cat >>conftest.$ac_ext <<_ACEOF
     21716/* end confdefs.h.  */
     21717extern "C" {void $cfuncdaxpy();}
     21718#ifdef F77_DUMMY_MAIN
     21719
     21720#  ifdef __cplusplus
     21721     extern "C"
     21722#  endif
     21723   int F77_DUMMY_MAIN() { return 1; }
     21724
     21725#endif
     21726int
     21727main ()
     21728{
     21729$cfuncdaxpy()
     21730  ;
     21731  return 0;
     21732}
     21733_ACEOF
     21734rm -f conftest.$ac_objext conftest$ac_exeext
     21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21736  (eval $ac_link) 2>conftest.er1
     21737  ac_status=$?
     21738  grep -v '^ *+' conftest.er1 >conftest.err
     21739  rm -f conftest.er1
     21740  cat conftest.err >&5
     21741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21742  (exit $ac_status); } &&
     21743         { ac_try='test -z "$ac_c_werror_flag"
     21744                         || test ! -s conftest.err'
     21745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21746  (eval $ac_try) 2>&5
     21747  ac_status=$?
     21748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21749  (exit $ac_status); }; } &&
     21750         { ac_try='test -s conftest$ac_exeext'
     21751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21752  (eval $ac_try) 2>&5
     21753  ac_status=$?
     21754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21755  (exit $ac_status); }; }; then
     21756  flink_try=yes
     21757else
     21758  echo "$as_me: failed program was:" >&5
     21759sed 's/^/| /' conftest.$ac_ext >&5
     21760
     21761flink_try=no
     21762fi
     21763rm -f conftest.err conftest.$ac_objext \
     21764      conftest$ac_exeext conftest.$ac_ext
     21765    fi
     21766    if test $flink_try = yes; then
     21767      echo "$as_me:$LINENO: result: yes" >&5
     21768echo "${ECHO_T}yes" >&6
     21769                         use_blas=-lcomplib.sgimath;
     21770                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21771    else
     21772      if test x"$FLIBS" != x; then
     21773        flink_save_libs="$LIBS"
     21774        LIBS="$LIBS $FLIBS"
     21775        cat >conftest.$ac_ext <<_ACEOF
     21776/* confdefs.h.  */
     21777_ACEOF
     21778cat confdefs.h >>conftest.$ac_ext
     21779cat >>conftest.$ac_ext <<_ACEOF
     21780/* end confdefs.h.  */
     21781extern "C" {void $cfuncdaxpy();}
     21782#ifdef F77_DUMMY_MAIN
     21783
     21784#  ifdef __cplusplus
     21785     extern "C"
     21786#  endif
     21787   int F77_DUMMY_MAIN() { return 1; }
     21788
     21789#endif
     21790int
     21791main ()
     21792{
     21793$cfuncdaxpy()
     21794  ;
     21795  return 0;
     21796}
     21797_ACEOF
     21798rm -f conftest.$ac_objext conftest$ac_exeext
     21799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21800  (eval $ac_link) 2>conftest.er1
     21801  ac_status=$?
     21802  grep -v '^ *+' conftest.er1 >conftest.err
     21803  rm -f conftest.er1
     21804  cat conftest.err >&5
     21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21806  (exit $ac_status); } &&
     21807         { ac_try='test -z "$ac_c_werror_flag"
     21808                         || test ! -s conftest.err'
     21809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21810  (eval $ac_try) 2>&5
     21811  ac_status=$?
     21812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21813  (exit $ac_status); }; } &&
     21814         { ac_try='test -s conftest$ac_exeext'
     21815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21816  (eval $ac_try) 2>&5
     21817  ac_status=$?
     21818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21819  (exit $ac_status); }; }; then
     21820  LIBS="$flink_save_libs"
     21821                     echo "$as_me:$LINENO: result: yes" >&5
     21822echo "${ECHO_T}yes" >&6
     21823                         use_blas=-lcomplib.sgimath;
     21824                         ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     21825                     coin_need_flibs=yes
     21826else
     21827  echo "$as_me: failed program was:" >&5
     21828sed 's/^/| /' conftest.$ac_ext >&5
     21829
     21830LIBS="$flink_save_libs"
     21831                     echo "$as_me:$LINENO: result: no" >&5
     21832echo "${ECHO_T}no" >&6
     21833                         SAVE_LIBS="$LIBS"
     21834fi
     21835rm -f conftest.err conftest.$ac_objext \
     21836      conftest$ac_exeext conftest.$ac_ext
     21837      else
     21838        echo "$as_me:$LINENO: result: no" >&5
     21839echo "${ECHO_T}no" >&6
     21840                         SAVE_LIBS="$LIBS"
     21841      fi
     21842    fi
     21843    ;;
     21844esac
     21845
     21846      ;;
     21847
     21848# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
     21849# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
     21850# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
     21851# that CC and cc will understand -library in Studio 13. The main extra
     21852# function of -xlic_lib and -library is to arrange for the Fortran run-time
     21853# libraries to be linked for C++ and C. We can arrange that explicitly.
     21854    *-*-solaris*)
     21855      SAVE_LIBS="$LIBS"
     21856      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
     21857echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
     21858      LIBS="-lsunperf $FLIBS $LIBS"
     21859      case $ac_ext in
     21860  f)
     21861    cat >conftest.$ac_ext <<_ACEOF
     21862/* confdefs.h.  */
     21863_ACEOF
     21864cat confdefs.h >>conftest.$ac_ext
     21865cat >>conftest.$ac_ext <<_ACEOF
     21866/* end confdefs.h.  */
     21867
     21868#ifdef F77_DUMMY_MAIN
     21869
     21870#  ifdef __cplusplus
     21871     extern "C"
     21872#  endif
     21873   int F77_DUMMY_MAIN() { return 1; }
     21874
     21875#endif
     21876int
     21877main ()
     21878{
     21879      call daxpy
     21880  ;
     21881  return 0;
     21882}
     21883_ACEOF
     21884rm -f conftest.$ac_objext conftest$ac_exeext
     21885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21886  (eval $ac_link) 2>conftest.er1
     21887  ac_status=$?
     21888  grep -v '^ *+' conftest.er1 >conftest.err
     21889  rm -f conftest.er1
     21890  cat conftest.err >&5
     21891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21892  (exit $ac_status); } &&
     21893         { ac_try='test -z "$ac_c_werror_flag"
     21894                         || test ! -s conftest.err'
     21895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21896  (eval $ac_try) 2>&5
     21897  ac_status=$?
     21898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21899  (exit $ac_status); }; } &&
     21900         { ac_try='test -s conftest$ac_exeext'
     21901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21902  (eval $ac_try) 2>&5
     21903  ac_status=$?
     21904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21905  (exit $ac_status); }; }; then
     21906  echo "$as_me:$LINENO: result: yes" >&5
     21907echo "${ECHO_T}yes" >&6
     21908                         use_blas='-lsunperf'
     21909                         ADDLIBS="-lsunperf $ADDLIBS"
     21910                         coin_need_flibs=yes
     21911else
     21912  echo "$as_me: failed program was:" >&5
     21913sed 's/^/| /' conftest.$ac_ext >&5
     21914
     21915echo "$as_me:$LINENO: result: no" >&5
     21916echo "${ECHO_T}no" >&6
     21917                         LIBS="$SAVE_LIBS"
     21918fi
     21919rm -f conftest.err conftest.$ac_objext \
     21920      conftest$ac_exeext conftest.$ac_ext
     21921    ;;
     21922  c)
     21923    ac_ext=f
     21924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     21925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     21927case $ac_cv_f77_mangling in
     21928  upper*) ac_val="DAXPY" ;;
     21929  lower*) ac_val="daxpy" ;;
     21930  *)      ac_val="unknown" ;;
     21931esac
     21932case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     21933
     21934cfuncdaxpy="$ac_val"
     21935
     21936ac_ext=c
     21937ac_cpp='$CPP $CPPFLAGS'
     21938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21940ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21941
     21942    if test x"$coin_need_flibs" = xyes; then
     21943      flink_try=no;
     21944    else
     21945      cat >conftest.$ac_ext <<_ACEOF
     21946/* confdefs.h.  */
     21947_ACEOF
     21948cat confdefs.h >>conftest.$ac_ext
     21949cat >>conftest.$ac_ext <<_ACEOF
     21950/* end confdefs.h.  */
     21951void $cfuncdaxpy();
     21952#ifdef F77_DUMMY_MAIN
     21953
     21954#  ifdef __cplusplus
     21955     extern "C"
     21956#  endif
     21957   int F77_DUMMY_MAIN() { return 1; }
     21958
     21959#endif
     21960int
     21961main ()
     21962{
     21963$cfuncdaxpy()
     21964  ;
     21965  return 0;
     21966}
     21967_ACEOF
     21968rm -f conftest.$ac_objext conftest$ac_exeext
     21969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21970  (eval $ac_link) 2>conftest.er1
     21971  ac_status=$?
     21972  grep -v '^ *+' conftest.er1 >conftest.err
     21973  rm -f conftest.er1
     21974  cat conftest.err >&5
     21975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21976  (exit $ac_status); } &&
     21977         { ac_try='test -z "$ac_c_werror_flag"
     21978                         || test ! -s conftest.err'
     21979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21980  (eval $ac_try) 2>&5
     21981  ac_status=$?
     21982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21983  (exit $ac_status); }; } &&
     21984         { ac_try='test -s conftest$ac_exeext'
     21985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21986  (eval $ac_try) 2>&5
     21987  ac_status=$?
     21988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21989  (exit $ac_status); }; }; then
     21990  flink_try=yes
     21991else
     21992  echo "$as_me: failed program was:" >&5
     21993sed 's/^/| /' conftest.$ac_ext >&5
     21994
     21995flink_try=no
     21996fi
     21997rm -f conftest.err conftest.$ac_objext \
     21998      conftest$ac_exeext conftest.$ac_ext
     21999    fi
     22000    if test $flink_try = yes; then
     22001      echo "$as_me:$LINENO: result: yes" >&5
     22002echo "${ECHO_T}yes" >&6
     22003                         use_blas='-lsunperf'
     22004                         ADDLIBS="-lsunperf $ADDLIBS"
     22005                         coin_need_flibs=yes
     22006    else
     22007      if test x"$FLIBS" != x; then
     22008        flink_save_libs="$LIBS"
     22009        LIBS="$LIBS $FLIBS"
     22010        cat >conftest.$ac_ext <<_ACEOF
     22011/* confdefs.h.  */
     22012_ACEOF
     22013cat confdefs.h >>conftest.$ac_ext
     22014cat >>conftest.$ac_ext <<_ACEOF
     22015/* end confdefs.h.  */
     22016void $cfuncdaxpy();
     22017#ifdef F77_DUMMY_MAIN
     22018
     22019#  ifdef __cplusplus
     22020     extern "C"
     22021#  endif
     22022   int F77_DUMMY_MAIN() { return 1; }
     22023
     22024#endif
     22025int
     22026main ()
     22027{
     22028$cfuncdaxpy()
     22029  ;
     22030  return 0;
     22031}
     22032_ACEOF
     22033rm -f conftest.$ac_objext conftest$ac_exeext
     22034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22035  (eval $ac_link) 2>conftest.er1
     22036  ac_status=$?
     22037  grep -v '^ *+' conftest.er1 >conftest.err
     22038  rm -f conftest.er1
     22039  cat conftest.err >&5
     22040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22041  (exit $ac_status); } &&
     22042         { ac_try='test -z "$ac_c_werror_flag"
     22043                         || test ! -s conftest.err'
     22044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22045  (eval $ac_try) 2>&5
     22046  ac_status=$?
     22047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22048  (exit $ac_status); }; } &&
     22049         { ac_try='test -s conftest$ac_exeext'
     22050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22051  (eval $ac_try) 2>&5
     22052  ac_status=$?
     22053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22054  (exit $ac_status); }; }; then
     22055  LIBS="$flink_save_libs"
     22056                     echo "$as_me:$LINENO: result: yes" >&5
     22057echo "${ECHO_T}yes" >&6
     22058                         use_blas='-lsunperf'
     22059                         ADDLIBS="-lsunperf $ADDLIBS"
     22060                         coin_need_flibs=yes
     22061                     coin_need_flibs=yes
     22062else
     22063  echo "$as_me: failed program was:" >&5
     22064sed 's/^/| /' conftest.$ac_ext >&5
     22065
     22066LIBS="$flink_save_libs"
     22067                     echo "$as_me:$LINENO: result: no" >&5
     22068echo "${ECHO_T}no" >&6
     22069                         LIBS="$SAVE_LIBS"
     22070fi
     22071rm -f conftest.err conftest.$ac_objext \
     22072      conftest$ac_exeext conftest.$ac_ext
     22073      else
     22074        echo "$as_me:$LINENO: result: no" >&5
     22075echo "${ECHO_T}no" >&6
     22076                         LIBS="$SAVE_LIBS"
     22077      fi
     22078    fi
     22079    ;;
     22080  cc|cpp)
     22081    ac_ext=f
     22082ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22083ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22084ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22085case $ac_cv_f77_mangling in
     22086  upper*) ac_val="DAXPY" ;;
     22087  lower*) ac_val="daxpy" ;;
     22088  *)      ac_val="unknown" ;;
     22089esac
     22090case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22091
     22092cfuncdaxpy="$ac_val"
     22093
     22094ac_ext=c
     22095ac_cpp='$CPP $CPPFLAGS'
     22096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22098ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22099
     22100    if test x"$coin_need_flibs" = xyes; then
     22101      flink_try=no;
     22102    else
     22103      cat >conftest.$ac_ext <<_ACEOF
     22104/* confdefs.h.  */
     22105_ACEOF
     22106cat confdefs.h >>conftest.$ac_ext
     22107cat >>conftest.$ac_ext <<_ACEOF
     22108/* end confdefs.h.  */
     22109extern "C" {void $cfuncdaxpy();}
     22110#ifdef F77_DUMMY_MAIN
     22111
     22112#  ifdef __cplusplus
     22113     extern "C"
     22114#  endif
     22115   int F77_DUMMY_MAIN() { return 1; }
     22116
     22117#endif
     22118int
     22119main ()
     22120{
     22121$cfuncdaxpy()
     22122  ;
     22123  return 0;
     22124}
     22125_ACEOF
     22126rm -f conftest.$ac_objext conftest$ac_exeext
     22127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22128  (eval $ac_link) 2>conftest.er1
     22129  ac_status=$?
     22130  grep -v '^ *+' conftest.er1 >conftest.err
     22131  rm -f conftest.er1
     22132  cat conftest.err >&5
     22133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22134  (exit $ac_status); } &&
     22135         { ac_try='test -z "$ac_c_werror_flag"
     22136                         || test ! -s conftest.err'
     22137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22138  (eval $ac_try) 2>&5
     22139  ac_status=$?
     22140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22141  (exit $ac_status); }; } &&
     22142         { ac_try='test -s conftest$ac_exeext'
     22143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22144  (eval $ac_try) 2>&5
     22145  ac_status=$?
     22146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22147  (exit $ac_status); }; }; then
     22148  flink_try=yes
     22149else
     22150  echo "$as_me: failed program was:" >&5
     22151sed 's/^/| /' conftest.$ac_ext >&5
     22152
     22153flink_try=no
     22154fi
     22155rm -f conftest.err conftest.$ac_objext \
     22156      conftest$ac_exeext conftest.$ac_ext
     22157    fi
     22158    if test $flink_try = yes; then
     22159      echo "$as_me:$LINENO: result: yes" >&5
     22160echo "${ECHO_T}yes" >&6
     22161                         use_blas='-lsunperf'
     22162                         ADDLIBS="-lsunperf $ADDLIBS"
     22163                         coin_need_flibs=yes
     22164    else
     22165      if test x"$FLIBS" != x; then
     22166        flink_save_libs="$LIBS"
     22167        LIBS="$LIBS $FLIBS"
     22168        cat >conftest.$ac_ext <<_ACEOF
     22169/* confdefs.h.  */
     22170_ACEOF
     22171cat confdefs.h >>conftest.$ac_ext
     22172cat >>conftest.$ac_ext <<_ACEOF
     22173/* end confdefs.h.  */
     22174extern "C" {void $cfuncdaxpy();}
     22175#ifdef F77_DUMMY_MAIN
     22176
     22177#  ifdef __cplusplus
     22178     extern "C"
     22179#  endif
     22180   int F77_DUMMY_MAIN() { return 1; }
     22181
     22182#endif
     22183int
     22184main ()
     22185{
     22186$cfuncdaxpy()
     22187  ;
     22188  return 0;
     22189}
     22190_ACEOF
     22191rm -f conftest.$ac_objext conftest$ac_exeext
     22192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22193  (eval $ac_link) 2>conftest.er1
     22194  ac_status=$?
     22195  grep -v '^ *+' conftest.er1 >conftest.err
     22196  rm -f conftest.er1
     22197  cat conftest.err >&5
     22198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22199  (exit $ac_status); } &&
     22200         { ac_try='test -z "$ac_c_werror_flag"
     22201                         || test ! -s conftest.err'
     22202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22203  (eval $ac_try) 2>&5
     22204  ac_status=$?
     22205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22206  (exit $ac_status); }; } &&
     22207         { ac_try='test -s conftest$ac_exeext'
     22208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22209  (eval $ac_try) 2>&5
     22210  ac_status=$?
     22211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22212  (exit $ac_status); }; }; then
     22213  LIBS="$flink_save_libs"
     22214                     echo "$as_me:$LINENO: result: yes" >&5
     22215echo "${ECHO_T}yes" >&6
     22216                         use_blas='-lsunperf'
     22217                         ADDLIBS="-lsunperf $ADDLIBS"
     22218                         coin_need_flibs=yes
     22219                     coin_need_flibs=yes
     22220else
     22221  echo "$as_me: failed program was:" >&5
     22222sed 's/^/| /' conftest.$ac_ext >&5
     22223
     22224LIBS="$flink_save_libs"
     22225                     echo "$as_me:$LINENO: result: no" >&5
     22226echo "${ECHO_T}no" >&6
     22227                         LIBS="$SAVE_LIBS"
     22228fi
     22229rm -f conftest.err conftest.$ac_objext \
     22230      conftest$ac_exeext conftest.$ac_ext
     22231      else
     22232        echo "$as_me:$LINENO: result: no" >&5
     22233echo "${ECHO_T}no" >&6
     22234                         LIBS="$SAVE_LIBS"
     22235      fi
     22236    fi
     22237    ;;
     22238esac
     22239
     22240      ;;
     22241    *-cygwin* | *-mingw*)
     22242# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
     22243# library will want to link with cygwin, hence won't run standalone in DOS.
     22244      if test "$enable_doscompile" = mingw; then
     22245        skip_lblas_check=yes
     22246      fi
     22247      case "$CC" in
     22248        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     22249          SAVE_LIBS="$LIBS"
     22250          echo "$as_me:$LINENO: checking for BLAS in MKL" >&5
     22251echo $ECHO_N "checking for BLAS in MKL... $ECHO_C" >&6
     22252          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
     22253          case $ac_ext in
     22254  f)
     22255    cat >conftest.$ac_ext <<_ACEOF
     22256/* confdefs.h.  */
     22257_ACEOF
     22258cat confdefs.h >>conftest.$ac_ext
     22259cat >>conftest.$ac_ext <<_ACEOF
     22260/* end confdefs.h.  */
     22261
     22262#ifdef F77_DUMMY_MAIN
     22263
     22264#  ifdef __cplusplus
     22265     extern "C"
     22266#  endif
     22267   int F77_DUMMY_MAIN() { return 1; }
     22268
     22269#endif
     22270int
     22271main ()
     22272{
     22273      call daxpy
     22274  ;
     22275  return 0;
     22276}
     22277_ACEOF
     22278rm -f conftest.$ac_objext conftest$ac_exeext
     22279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22280  (eval $ac_link) 2>conftest.er1
     22281  ac_status=$?
     22282  grep -v '^ *+' conftest.er1 >conftest.err
     22283  rm -f conftest.er1
     22284  cat conftest.err >&5
     22285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22286  (exit $ac_status); } &&
     22287         { ac_try='test -z "$ac_c_werror_flag"
     22288                         || test ! -s conftest.err'
     22289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22290  (eval $ac_try) 2>&5
     22291  ac_status=$?
     22292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22293  (exit $ac_status); }; } &&
     22294         { ac_try='test -s conftest$ac_exeext'
     22295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22296  (eval $ac_try) 2>&5
     22297  ac_status=$?
     22298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22299  (exit $ac_status); }; }; then
     22300  echo "$as_me:$LINENO: result: yes" >&5
     22301echo "${ECHO_T}yes" >&6
     22302                             use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     22303                             ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
     22304else
     22305  echo "$as_me: failed program was:" >&5
     22306sed 's/^/| /' conftest.$ac_ext >&5
     22307
     22308echo "$as_me:$LINENO: result: no" >&5
     22309echo "${ECHO_T}no" >&6
     22310                             LIBS="$SAVE_LIBS"
     22311fi
     22312rm -f conftest.err conftest.$ac_objext \
     22313      conftest$ac_exeext conftest.$ac_ext
     22314    ;;
     22315  c)
     22316    ac_ext=f
     22317ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22318ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22319ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22320case $ac_cv_f77_mangling in
     22321  upper*) ac_val="DAXPY" ;;
     22322  lower*) ac_val="daxpy" ;;
     22323  *)      ac_val="unknown" ;;
     22324esac
     22325case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22326
     22327cfuncdaxpy="$ac_val"
     22328
     22329ac_ext=c
     22330ac_cpp='$CPP $CPPFLAGS'
     22331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22333ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22334
     22335    if test x"$coin_need_flibs" = xyes; then
     22336      flink_try=no;
     22337    else
     22338      cat >conftest.$ac_ext <<_ACEOF
     22339/* confdefs.h.  */
     22340_ACEOF
     22341cat confdefs.h >>conftest.$ac_ext
     22342cat >>conftest.$ac_ext <<_ACEOF
     22343/* end confdefs.h.  */
     22344void $cfuncdaxpy();
     22345#ifdef F77_DUMMY_MAIN
     22346
     22347#  ifdef __cplusplus
     22348     extern "C"
     22349#  endif
     22350   int F77_DUMMY_MAIN() { return 1; }
     22351
     22352#endif
     22353int
     22354main ()
     22355{
     22356$cfuncdaxpy()
     22357  ;
     22358  return 0;
     22359}
     22360_ACEOF
     22361rm -f conftest.$ac_objext conftest$ac_exeext
     22362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22363  (eval $ac_link) 2>conftest.er1
     22364  ac_status=$?
     22365  grep -v '^ *+' conftest.er1 >conftest.err
     22366  rm -f conftest.er1
     22367  cat conftest.err >&5
     22368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22369  (exit $ac_status); } &&
     22370         { ac_try='test -z "$ac_c_werror_flag"
     22371                         || test ! -s conftest.err'
     22372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22373  (eval $ac_try) 2>&5
     22374  ac_status=$?
     22375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22376  (exit $ac_status); }; } &&
     22377         { ac_try='test -s conftest$ac_exeext'
     22378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22379  (eval $ac_try) 2>&5
     22380  ac_status=$?
     22381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22382  (exit $ac_status); }; }; then
     22383  flink_try=yes
     22384else
     22385  echo "$as_me: failed program was:" >&5
     22386sed 's/^/| /' conftest.$ac_ext >&5
     22387
     22388flink_try=no
     22389fi
     22390rm -f conftest.err conftest.$ac_objext \
     22391      conftest$ac_exeext conftest.$ac_ext
     22392    fi
     22393    if test $flink_try = yes; then
     22394      echo "$as_me:$LINENO: result: yes" >&5
     22395echo "${ECHO_T}yes" >&6
     22396                             use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     22397                             ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
     22398    else
     22399      if test x"$FLIBS" != x; then
     22400        flink_save_libs="$LIBS"
     22401        LIBS="$LIBS $FLIBS"
     22402        cat >conftest.$ac_ext <<_ACEOF
     22403/* confdefs.h.  */
     22404_ACEOF
     22405cat confdefs.h >>conftest.$ac_ext
     22406cat >>conftest.$ac_ext <<_ACEOF
     22407/* end confdefs.h.  */
     22408void $cfuncdaxpy();
     22409#ifdef F77_DUMMY_MAIN
     22410
     22411#  ifdef __cplusplus
     22412     extern "C"
     22413#  endif
     22414   int F77_DUMMY_MAIN() { return 1; }
     22415
     22416#endif
     22417int
     22418main ()
     22419{
     22420$cfuncdaxpy()
     22421  ;
     22422  return 0;
     22423}
     22424_ACEOF
     22425rm -f conftest.$ac_objext conftest$ac_exeext
     22426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22427  (eval $ac_link) 2>conftest.er1
     22428  ac_status=$?
     22429  grep -v '^ *+' conftest.er1 >conftest.err
     22430  rm -f conftest.er1
     22431  cat conftest.err >&5
     22432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22433  (exit $ac_status); } &&
     22434         { ac_try='test -z "$ac_c_werror_flag"
     22435                         || test ! -s conftest.err'
     22436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22437  (eval $ac_try) 2>&5
     22438  ac_status=$?
     22439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22440  (exit $ac_status); }; } &&
     22441         { ac_try='test -s conftest$ac_exeext'
     22442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22443  (eval $ac_try) 2>&5
     22444  ac_status=$?
     22445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22446  (exit $ac_status); }; }; then
     22447  LIBS="$flink_save_libs"
     22448                     echo "$as_me:$LINENO: result: yes" >&5
     22449echo "${ECHO_T}yes" >&6
     22450                             use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     22451                             ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
     22452                     coin_need_flibs=yes
     22453else
     22454  echo "$as_me: failed program was:" >&5
     22455sed 's/^/| /' conftest.$ac_ext >&5
     22456
     22457LIBS="$flink_save_libs"
     22458                     echo "$as_me:$LINENO: result: no" >&5
     22459echo "${ECHO_T}no" >&6
     22460                             LIBS="$SAVE_LIBS"
     22461fi
     22462rm -f conftest.err conftest.$ac_objext \
     22463      conftest$ac_exeext conftest.$ac_ext
     22464      else
     22465        echo "$as_me:$LINENO: result: no" >&5
     22466echo "${ECHO_T}no" >&6
     22467                             LIBS="$SAVE_LIBS"
     22468      fi
     22469    fi
     22470    ;;
     22471  cc|cpp)
     22472    ac_ext=f
     22473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22476case $ac_cv_f77_mangling in
     22477  upper*) ac_val="DAXPY" ;;
     22478  lower*) ac_val="daxpy" ;;
     22479  *)      ac_val="unknown" ;;
     22480esac
     22481case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22482
     22483cfuncdaxpy="$ac_val"
     22484
     22485ac_ext=c
     22486ac_cpp='$CPP $CPPFLAGS'
     22487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22489ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22490
     22491    if test x"$coin_need_flibs" = xyes; then
     22492      flink_try=no;
     22493    else
     22494      cat >conftest.$ac_ext <<_ACEOF
     22495/* confdefs.h.  */
     22496_ACEOF
     22497cat confdefs.h >>conftest.$ac_ext
     22498cat >>conftest.$ac_ext <<_ACEOF
     22499/* end confdefs.h.  */
     22500extern "C" {void $cfuncdaxpy();}
     22501#ifdef F77_DUMMY_MAIN
     22502
     22503#  ifdef __cplusplus
     22504     extern "C"
     22505#  endif
     22506   int F77_DUMMY_MAIN() { return 1; }
     22507
     22508#endif
     22509int
     22510main ()
     22511{
     22512$cfuncdaxpy()
     22513  ;
     22514  return 0;
     22515}
     22516_ACEOF
     22517rm -f conftest.$ac_objext conftest$ac_exeext
     22518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22519  (eval $ac_link) 2>conftest.er1
     22520  ac_status=$?
     22521  grep -v '^ *+' conftest.er1 >conftest.err
     22522  rm -f conftest.er1
     22523  cat conftest.err >&5
     22524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22525  (exit $ac_status); } &&
     22526         { ac_try='test -z "$ac_c_werror_flag"
     22527                         || test ! -s conftest.err'
     22528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22529  (eval $ac_try) 2>&5
     22530  ac_status=$?
     22531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22532  (exit $ac_status); }; } &&
     22533         { ac_try='test -s conftest$ac_exeext'
     22534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22535  (eval $ac_try) 2>&5
     22536  ac_status=$?
     22537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22538  (exit $ac_status); }; }; then
     22539  flink_try=yes
     22540else
     22541  echo "$as_me: failed program was:" >&5
     22542sed 's/^/| /' conftest.$ac_ext >&5
     22543
     22544flink_try=no
     22545fi
     22546rm -f conftest.err conftest.$ac_objext \
     22547      conftest$ac_exeext conftest.$ac_ext
     22548    fi
     22549    if test $flink_try = yes; then
     22550      echo "$as_me:$LINENO: result: yes" >&5
     22551echo "${ECHO_T}yes" >&6
     22552                             use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     22553                             ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
     22554    else
     22555      if test x"$FLIBS" != x; then
     22556        flink_save_libs="$LIBS"
     22557        LIBS="$LIBS $FLIBS"
     22558        cat >conftest.$ac_ext <<_ACEOF
     22559/* confdefs.h.  */
     22560_ACEOF
     22561cat confdefs.h >>conftest.$ac_ext
     22562cat >>conftest.$ac_ext <<_ACEOF
     22563/* end confdefs.h.  */
     22564extern "C" {void $cfuncdaxpy();}
     22565#ifdef F77_DUMMY_MAIN
     22566
     22567#  ifdef __cplusplus
     22568     extern "C"
     22569#  endif
     22570   int F77_DUMMY_MAIN() { return 1; }
     22571
     22572#endif
     22573int
     22574main ()
     22575{
     22576$cfuncdaxpy()
     22577  ;
     22578  return 0;
     22579}
     22580_ACEOF
     22581rm -f conftest.$ac_objext conftest$ac_exeext
     22582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22583  (eval $ac_link) 2>conftest.er1
     22584  ac_status=$?
     22585  grep -v '^ *+' conftest.er1 >conftest.err
     22586  rm -f conftest.er1
     22587  cat conftest.err >&5
     22588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22589  (exit $ac_status); } &&
     22590         { ac_try='test -z "$ac_c_werror_flag"
     22591                         || test ! -s conftest.err'
     22592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22593  (eval $ac_try) 2>&5
     22594  ac_status=$?
     22595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22596  (exit $ac_status); }; } &&
     22597         { ac_try='test -s conftest$ac_exeext'
     22598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22599  (eval $ac_try) 2>&5
     22600  ac_status=$?
     22601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22602  (exit $ac_status); }; }; then
     22603  LIBS="$flink_save_libs"
     22604                     echo "$as_me:$LINENO: result: yes" >&5
     22605echo "${ECHO_T}yes" >&6
     22606                             use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     22607                             ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS"
     22608                     coin_need_flibs=yes
     22609else
     22610  echo "$as_me: failed program was:" >&5
     22611sed 's/^/| /' conftest.$ac_ext >&5
     22612
     22613LIBS="$flink_save_libs"
     22614                     echo "$as_me:$LINENO: result: no" >&5
     22615echo "${ECHO_T}no" >&6
     22616                             LIBS="$SAVE_LIBS"
     22617fi
     22618rm -f conftest.err conftest.$ac_objext \
     22619      conftest$ac_exeext conftest.$ac_ext
     22620      else
     22621        echo "$as_me:$LINENO: result: no" >&5
     22622echo "${ECHO_T}no" >&6
     22623                             LIBS="$SAVE_LIBS"
     22624      fi
     22625    fi
     22626    ;;
     22627esac
     22628
     22629          ;;
     22630      esac
     22631      ;;
     22632  esac
     22633
     22634  if test -z "$use_blas" && test $skip_lblas_check = no; then
     22635    SAVE_LIBS="$LIBS"
     22636    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
     22637echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
     22638    LIBS="-lblas $LIBS"
     22639    case $ac_ext in
     22640  f)
     22641    cat >conftest.$ac_ext <<_ACEOF
     22642/* confdefs.h.  */
     22643_ACEOF
     22644cat confdefs.h >>conftest.$ac_ext
     22645cat >>conftest.$ac_ext <<_ACEOF
     22646/* end confdefs.h.  */
     22647
     22648#ifdef F77_DUMMY_MAIN
     22649
     22650#  ifdef __cplusplus
     22651     extern "C"
     22652#  endif
     22653   int F77_DUMMY_MAIN() { return 1; }
     22654
     22655#endif
     22656int
     22657main ()
     22658{
     22659      call daxpy
     22660  ;
     22661  return 0;
     22662}
     22663_ACEOF
     22664rm -f conftest.$ac_objext conftest$ac_exeext
     22665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22666  (eval $ac_link) 2>conftest.er1
     22667  ac_status=$?
     22668  grep -v '^ *+' conftest.er1 >conftest.err
     22669  rm -f conftest.er1
     22670  cat conftest.err >&5
     22671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22672  (exit $ac_status); } &&
     22673         { ac_try='test -z "$ac_c_werror_flag"
     22674                         || test ! -s conftest.err'
     22675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22676  (eval $ac_try) 2>&5
     22677  ac_status=$?
     22678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22679  (exit $ac_status); }; } &&
     22680         { ac_try='test -s conftest$ac_exeext'
     22681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22682  (eval $ac_try) 2>&5
     22683  ac_status=$?
     22684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22685  (exit $ac_status); }; }; then
     22686  echo "$as_me:$LINENO: result: yes" >&5
     22687echo "${ECHO_T}yes" >&6
     22688                       ADDLIBS="-lblas $ADDLIBS"
     22689                       use_blas='-lblas'
     22690else
     22691  echo "$as_me: failed program was:" >&5
     22692sed 's/^/| /' conftest.$ac_ext >&5
     22693
     22694echo "$as_me:$LINENO: result: no" >&5
     22695echo "${ECHO_T}no" >&6
     22696                       LIBS="$SAVE_LIBS"
     22697fi
     22698rm -f conftest.err conftest.$ac_objext \
     22699      conftest$ac_exeext conftest.$ac_ext
     22700    ;;
     22701  c)
     22702    ac_ext=f
     22703ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22704ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22705ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22706case $ac_cv_f77_mangling in
     22707  upper*) ac_val="DAXPY" ;;
     22708  lower*) ac_val="daxpy" ;;
     22709  *)      ac_val="unknown" ;;
     22710esac
     22711case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22712
     22713cfuncdaxpy="$ac_val"
     22714
     22715ac_ext=c
     22716ac_cpp='$CPP $CPPFLAGS'
     22717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22719ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22720
     22721    if test x"$coin_need_flibs" = xyes; then
     22722      flink_try=no;
     22723    else
     22724      cat >conftest.$ac_ext <<_ACEOF
     22725/* confdefs.h.  */
     22726_ACEOF
     22727cat confdefs.h >>conftest.$ac_ext
     22728cat >>conftest.$ac_ext <<_ACEOF
     22729/* end confdefs.h.  */
     22730void $cfuncdaxpy();
     22731#ifdef F77_DUMMY_MAIN
     22732
     22733#  ifdef __cplusplus
     22734     extern "C"
     22735#  endif
     22736   int F77_DUMMY_MAIN() { return 1; }
     22737
     22738#endif
     22739int
     22740main ()
     22741{
     22742$cfuncdaxpy()
     22743  ;
     22744  return 0;
     22745}
     22746_ACEOF
     22747rm -f conftest.$ac_objext conftest$ac_exeext
     22748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22749  (eval $ac_link) 2>conftest.er1
     22750  ac_status=$?
     22751  grep -v '^ *+' conftest.er1 >conftest.err
     22752  rm -f conftest.er1
     22753  cat conftest.err >&5
     22754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22755  (exit $ac_status); } &&
     22756         { ac_try='test -z "$ac_c_werror_flag"
     22757                         || test ! -s conftest.err'
     22758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22759  (eval $ac_try) 2>&5
     22760  ac_status=$?
     22761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22762  (exit $ac_status); }; } &&
     22763         { ac_try='test -s conftest$ac_exeext'
     22764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22765  (eval $ac_try) 2>&5
     22766  ac_status=$?
     22767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22768  (exit $ac_status); }; }; then
     22769  flink_try=yes
     22770else
     22771  echo "$as_me: failed program was:" >&5
     22772sed 's/^/| /' conftest.$ac_ext >&5
     22773
     22774flink_try=no
     22775fi
     22776rm -f conftest.err conftest.$ac_objext \
     22777      conftest$ac_exeext conftest.$ac_ext
     22778    fi
     22779    if test $flink_try = yes; then
     22780      echo "$as_me:$LINENO: result: yes" >&5
     22781echo "${ECHO_T}yes" >&6
     22782                       ADDLIBS="-lblas $ADDLIBS"
     22783                       use_blas='-lblas'
     22784    else
     22785      if test x"$FLIBS" != x; then
     22786        flink_save_libs="$LIBS"
     22787        LIBS="$LIBS $FLIBS"
     22788        cat >conftest.$ac_ext <<_ACEOF
     22789/* confdefs.h.  */
     22790_ACEOF
     22791cat confdefs.h >>conftest.$ac_ext
     22792cat >>conftest.$ac_ext <<_ACEOF
     22793/* end confdefs.h.  */
     22794void $cfuncdaxpy();
     22795#ifdef F77_DUMMY_MAIN
     22796
     22797#  ifdef __cplusplus
     22798     extern "C"
     22799#  endif
     22800   int F77_DUMMY_MAIN() { return 1; }
     22801
     22802#endif
     22803int
     22804main ()
     22805{
     22806$cfuncdaxpy()
     22807  ;
     22808  return 0;
     22809}
     22810_ACEOF
     22811rm -f conftest.$ac_objext conftest$ac_exeext
     22812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22813  (eval $ac_link) 2>conftest.er1
     22814  ac_status=$?
     22815  grep -v '^ *+' conftest.er1 >conftest.err
     22816  rm -f conftest.er1
     22817  cat conftest.err >&5
     22818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22819  (exit $ac_status); } &&
     22820         { ac_try='test -z "$ac_c_werror_flag"
     22821                         || test ! -s conftest.err'
     22822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22823  (eval $ac_try) 2>&5
     22824  ac_status=$?
     22825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22826  (exit $ac_status); }; } &&
     22827         { ac_try='test -s conftest$ac_exeext'
     22828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22829  (eval $ac_try) 2>&5
     22830  ac_status=$?
     22831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22832  (exit $ac_status); }; }; then
     22833  LIBS="$flink_save_libs"
     22834                     echo "$as_me:$LINENO: result: yes" >&5
     22835echo "${ECHO_T}yes" >&6
     22836                       ADDLIBS="-lblas $ADDLIBS"
     22837                       use_blas='-lblas'
     22838                     coin_need_flibs=yes
     22839else
     22840  echo "$as_me: failed program was:" >&5
     22841sed 's/^/| /' conftest.$ac_ext >&5
     22842
     22843LIBS="$flink_save_libs"
     22844                     echo "$as_me:$LINENO: result: no" >&5
     22845echo "${ECHO_T}no" >&6
     22846                       LIBS="$SAVE_LIBS"
     22847fi
     22848rm -f conftest.err conftest.$ac_objext \
     22849      conftest$ac_exeext conftest.$ac_ext
     22850      else
     22851        echo "$as_me:$LINENO: result: no" >&5
     22852echo "${ECHO_T}no" >&6
     22853                       LIBS="$SAVE_LIBS"
     22854      fi
     22855    fi
     22856    ;;
     22857  cc|cpp)
     22858    ac_ext=f
     22859ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     22860ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22861ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     22862case $ac_cv_f77_mangling in
     22863  upper*) ac_val="DAXPY" ;;
     22864  lower*) ac_val="daxpy" ;;
     22865  *)      ac_val="unknown" ;;
     22866esac
     22867case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     22868
     22869cfuncdaxpy="$ac_val"
     22870
     22871ac_ext=c
     22872ac_cpp='$CPP $CPPFLAGS'
     22873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     22874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     22875ac_compiler_gnu=$ac_cv_c_compiler_gnu
     22876
     22877    if test x"$coin_need_flibs" = xyes; then
     22878      flink_try=no;
     22879    else
     22880      cat >conftest.$ac_ext <<_ACEOF
     22881/* confdefs.h.  */
     22882_ACEOF
     22883cat confdefs.h >>conftest.$ac_ext
     22884cat >>conftest.$ac_ext <<_ACEOF
     22885/* end confdefs.h.  */
     22886extern "C" {void $cfuncdaxpy();}
     22887#ifdef F77_DUMMY_MAIN
     22888
     22889#  ifdef __cplusplus
     22890     extern "C"
     22891#  endif
     22892   int F77_DUMMY_MAIN() { return 1; }
     22893
     22894#endif
     22895int
     22896main ()
     22897{
     22898$cfuncdaxpy()
     22899  ;
     22900  return 0;
     22901}
     22902_ACEOF
     22903rm -f conftest.$ac_objext conftest$ac_exeext
     22904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22905  (eval $ac_link) 2>conftest.er1
     22906  ac_status=$?
     22907  grep -v '^ *+' conftest.er1 >conftest.err
     22908  rm -f conftest.er1
     22909  cat conftest.err >&5
     22910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22911  (exit $ac_status); } &&
     22912         { ac_try='test -z "$ac_c_werror_flag"
     22913                         || test ! -s conftest.err'
     22914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22915  (eval $ac_try) 2>&5
     22916  ac_status=$?
     22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22918  (exit $ac_status); }; } &&
     22919         { ac_try='test -s conftest$ac_exeext'
     22920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22921  (eval $ac_try) 2>&5
     22922  ac_status=$?
     22923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22924  (exit $ac_status); }; }; then
     22925  flink_try=yes
     22926else
     22927  echo "$as_me: failed program was:" >&5
     22928sed 's/^/| /' conftest.$ac_ext >&5
     22929
     22930flink_try=no
     22931fi
     22932rm -f conftest.err conftest.$ac_objext \
     22933      conftest$ac_exeext conftest.$ac_ext
     22934    fi
     22935    if test $flink_try = yes; then
     22936      echo "$as_me:$LINENO: result: yes" >&5
     22937echo "${ECHO_T}yes" >&6
     22938                       ADDLIBS="-lblas $ADDLIBS"
     22939                       use_blas='-lblas'
     22940    else
     22941      if test x"$FLIBS" != x; then
     22942        flink_save_libs="$LIBS"
     22943        LIBS="$LIBS $FLIBS"
     22944        cat >conftest.$ac_ext <<_ACEOF
     22945/* confdefs.h.  */
     22946_ACEOF
     22947cat confdefs.h >>conftest.$ac_ext
     22948cat >>conftest.$ac_ext <<_ACEOF
     22949/* end confdefs.h.  */
     22950extern "C" {void $cfuncdaxpy();}
     22951#ifdef F77_DUMMY_MAIN
     22952
     22953#  ifdef __cplusplus
     22954     extern "C"
     22955#  endif
     22956   int F77_DUMMY_MAIN() { return 1; }
     22957
     22958#endif
     22959int
     22960main ()
     22961{
     22962$cfuncdaxpy()
     22963  ;
     22964  return 0;
     22965}
     22966_ACEOF
     22967rm -f conftest.$ac_objext conftest$ac_exeext
     22968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     22969  (eval $ac_link) 2>conftest.er1
     22970  ac_status=$?
     22971  grep -v '^ *+' conftest.er1 >conftest.err
     22972  rm -f conftest.er1
     22973  cat conftest.err >&5
     22974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22975  (exit $ac_status); } &&
     22976         { ac_try='test -z "$ac_c_werror_flag"
     22977                         || test ! -s conftest.err'
     22978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22979  (eval $ac_try) 2>&5
     22980  ac_status=$?
     22981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22982  (exit $ac_status); }; } &&
     22983         { ac_try='test -s conftest$ac_exeext'
     22984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     22985  (eval $ac_try) 2>&5
     22986  ac_status=$?
     22987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     22988  (exit $ac_status); }; }; then
     22989  LIBS="$flink_save_libs"
     22990                     echo "$as_me:$LINENO: result: yes" >&5
     22991echo "${ECHO_T}yes" >&6
     22992                       ADDLIBS="-lblas $ADDLIBS"
     22993                       use_blas='-lblas'
     22994                     coin_need_flibs=yes
     22995else
     22996  echo "$as_me: failed program was:" >&5
     22997sed 's/^/| /' conftest.$ac_ext >&5
     22998
     22999LIBS="$flink_save_libs"
     23000                     echo "$as_me:$LINENO: result: no" >&5
     23001echo "${ECHO_T}no" >&6
     23002                       LIBS="$SAVE_LIBS"
     23003fi
     23004rm -f conftest.err conftest.$ac_objext \
     23005      conftest$ac_exeext conftest.$ac_ext
     23006      else
     23007        echo "$as_me:$LINENO: result: no" >&5
     23008echo "${ECHO_T}no" >&6
     23009                       LIBS="$SAVE_LIBS"
     23010      fi
     23011    fi
     23012    ;;
     23013esac
     23014
     23015  fi
     23016
     23017# If we have no other ideas, consider building BLAS.
     23018  if test -z "$use_blas"; then
     23019    if test "$PACKAGE_NAME" != ThirdPartyBlas; then
     23020      if test -r $coin_blasobjdir/.MakeOk; then
     23021        use_blas=BUILD
     23022      fi
    2035123023    fi
    2035223024  fi
    2035323025fi
    2035423026
    20355 if test $coin_has_blas != unavailable &&
    20356    test $coin_has_blas != skipping; then
    20357   # Set the #define if the component is available
     23027if test "$use_blas" = BUILD; then
     23028  coin_need_flibs=yes
     23029fi
     23030
     23031
     23032
     23033if test x"$use_blas" != x; then
     23034  COIN_HAS_BLAS_TRUE=
     23035  COIN_HAS_BLAS_FALSE='#'
     23036else
     23037  COIN_HAS_BLAS_TRUE='#'
     23038  COIN_HAS_BLAS_FALSE=
     23039fi
     23040
     23041
     23042
     23043if test "$use_blas" = BUILD; then
     23044  COIN_BUILD_BLAS_TRUE=
     23045  COIN_BUILD_BLAS_FALSE='#'
     23046else
     23047  COIN_BUILD_BLAS_TRUE='#'
     23048  COIN_BUILD_BLAS_FALSE=
     23049fi
     23050
     23051
     23052if test x"$use_blas" = x || test "$use_blas" = no; then
     23053  coin_has_blas=no
     23054else
     23055  coin_has_blas=yes
    2035823056
    2035923057cat >>confdefs.h <<\_ACEOF
     
    2036123059_ACEOF
    2036223060
    20363 
    20364   # Set the variables for source and object code location
    20365 
    20366   BLASSRCDIR=`cd $srcdir/$coin_has_blas; pwd`
    20367 
    20368   BLASOBJDIR=`pwd`/$coin_has_blas
    20369 
    20370   BLASDOCDIR=$abs_lib_dir/../share/doc/coin/Blas
    20371 fi
    20372 
    20373   # Define the Makefile conditional
    20374 
    20375 
    20376 if test $coin_has_blas != unavailable &&
    20377                 test $coin_has_blas != skipping; then
    20378   COIN_HAS_BLAS_TRUE=
    20379   COIN_HAS_BLAS_FALSE='#'
    20380 else
    20381   COIN_HAS_BLAS_TRUE='#'
    20382   COIN_HAS_BLAS_FALSE=
    20383 fi
    20384 
    20385 echo "$as_me:$LINENO: result: $coin_has_blas" >&5
    20386 echo "${ECHO_T}$coin_has_blas" >&6
    20387 
    20388 echo "$as_me:$LINENO: checking for COIN project Lapack" >&5
    20389 echo $ECHO_N "checking for COIN project Lapack... $ECHO_C" >&6
    20390 
    20391 # First check, if the sub-project is actually available (ToDo: allow
    20392 # other locations)
    20393 
    20394 coin_has_lapack=unavailable
    20395 if test x"$COIN_SKIP_PROJECTS" != x; then
    20396   for dir in $COIN_SKIP_PROJECTS; do
    20397     if test $dir = Lapack; then
    20398       coin_has_lapack=skipping
     23061fi
     23062
     23063#LIBS="$save_LIBS" # we need to make sure that blas libraries are not in LIBS
     23064
     23065coin_lapackobjdir=../ThirdParty/Lapack
     23066coin_lapacksrcdir=$srcdir/$coin_lapackobjdir
     23067
     23068
     23069# Check whether --with-lapack or --without-lapack was given.
     23070if test "${with_lapack+set}" = set; then
     23071  withval="$with_lapack"
     23072  use_lapack=$withval
     23073else
     23074  use_lapack=
     23075fi;
     23076
     23077# Check if user supplied option makes sense
     23078if test x"$use_lapack" != x; then
     23079  if test "$use_lapack" = "BUILD"; then
     23080    # Don't check for course code if this is executed in ThirdParty/Lapack
     23081    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     23082      if test -r $coin_lapackobjdir/.MakeOk; then :; else
     23083        { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&5
     23084echo "$as_me: error: option \"BUILD\" specified for LAPACK, but $coin_lapackobjdir directory is not configured" >&2;}
     23085   { (exit 1); exit 1; }; }
     23086      fi
    2039923087    fi
    20400   done
    20401 fi
    20402 
    20403 if test $coin_has_lapack != skipping; then
    20404   if test $PACKAGE_TARNAME = lapack; then
    20405     coin_has_lapack=.
    20406   else
    20407     if test -d $srcdir/../Lapack; then
    20408       coin_has_lapack=../Lapack
     23088  elif test "$use_lapack" != no; then
     23089    echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
     23090echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
     23091    LIBS="$use_lapack $LIBS"
     23092    ADDLIBS="$use_lapack $ADDLIBS"
     23093    case $ac_ext in
     23094  f)
     23095    cat >conftest.$ac_ext <<_ACEOF
     23096/* confdefs.h.  */
     23097_ACEOF
     23098cat confdefs.h >>conftest.$ac_ext
     23099cat >>conftest.$ac_ext <<_ACEOF
     23100/* end confdefs.h.  */
     23101
     23102#ifdef F77_DUMMY_MAIN
     23103
     23104#  ifdef __cplusplus
     23105     extern "C"
     23106#  endif
     23107   int F77_DUMMY_MAIN() { return 1; }
     23108
     23109#endif
     23110int
     23111main ()
     23112{
     23113      call dsyev
     23114  ;
     23115  return 0;
     23116}
     23117_ACEOF
     23118rm -f conftest.$ac_objext conftest$ac_exeext
     23119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23120  (eval $ac_link) 2>conftest.er1
     23121  ac_status=$?
     23122  grep -v '^ *+' conftest.er1 >conftest.err
     23123  rm -f conftest.er1
     23124  cat conftest.err >&5
     23125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23126  (exit $ac_status); } &&
     23127         { ac_try='test -z "$ac_c_werror_flag"
     23128                         || test ! -s conftest.err'
     23129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23130  (eval $ac_try) 2>&5
     23131  ac_status=$?
     23132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23133  (exit $ac_status); }; } &&
     23134         { ac_try='test -s conftest$ac_exeext'
     23135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23136  (eval $ac_try) 2>&5
     23137  ac_status=$?
     23138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23139  (exit $ac_status); }; }; then
     23140  echo "$as_me:$LINENO: result: yes" >&5
     23141echo "${ECHO_T}yes" >&6
     23142else
     23143  echo "$as_me: failed program was:" >&5
     23144sed 's/^/| /' conftest.$ac_ext >&5
     23145
     23146echo "$as_me:$LINENO: result: no" >&5
     23147echo "${ECHO_T}no" >&6
     23148                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     23149echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     23150   { (exit 1); exit 1; }; }
     23151fi
     23152rm -f conftest.err conftest.$ac_objext \
     23153      conftest$ac_exeext conftest.$ac_ext
     23154    ;;
     23155  c)
     23156    ac_ext=f
     23157ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23158ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23159ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23160case $ac_cv_f77_mangling in
     23161  upper*) ac_val="DSYEV" ;;
     23162  lower*) ac_val="dsyev" ;;
     23163  *)      ac_val="unknown" ;;
     23164esac
     23165case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23166
     23167cfuncdsyev="$ac_val"
     23168
     23169ac_ext=c
     23170ac_cpp='$CPP $CPPFLAGS'
     23171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23173ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23174
     23175    if test x"$coin_need_flibs" = xyes; then
     23176      flink_try=no;
     23177    else
     23178      cat >conftest.$ac_ext <<_ACEOF
     23179/* confdefs.h.  */
     23180_ACEOF
     23181cat confdefs.h >>conftest.$ac_ext
     23182cat >>conftest.$ac_ext <<_ACEOF
     23183/* end confdefs.h.  */
     23184void $cfuncdsyev();
     23185#ifdef F77_DUMMY_MAIN
     23186
     23187#  ifdef __cplusplus
     23188     extern "C"
     23189#  endif
     23190   int F77_DUMMY_MAIN() { return 1; }
     23191
     23192#endif
     23193int
     23194main ()
     23195{
     23196$cfuncdsyev()
     23197  ;
     23198  return 0;
     23199}
     23200_ACEOF
     23201rm -f conftest.$ac_objext conftest$ac_exeext
     23202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23203  (eval $ac_link) 2>conftest.er1
     23204  ac_status=$?
     23205  grep -v '^ *+' conftest.er1 >conftest.err
     23206  rm -f conftest.er1
     23207  cat conftest.err >&5
     23208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23209  (exit $ac_status); } &&
     23210         { ac_try='test -z "$ac_c_werror_flag"
     23211                         || test ! -s conftest.err'
     23212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23213  (eval $ac_try) 2>&5
     23214  ac_status=$?
     23215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23216  (exit $ac_status); }; } &&
     23217         { ac_try='test -s conftest$ac_exeext'
     23218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23219  (eval $ac_try) 2>&5
     23220  ac_status=$?
     23221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23222  (exit $ac_status); }; }; then
     23223  flink_try=yes
     23224else
     23225  echo "$as_me: failed program was:" >&5
     23226sed 's/^/| /' conftest.$ac_ext >&5
     23227
     23228flink_try=no
     23229fi
     23230rm -f conftest.err conftest.$ac_objext \
     23231      conftest$ac_exeext conftest.$ac_ext
     23232    fi
     23233    if test $flink_try = yes; then
     23234      echo "$as_me:$LINENO: result: yes" >&5
     23235echo "${ECHO_T}yes" >&6
     23236    else
     23237      if test x"$FLIBS" != x; then
     23238        flink_save_libs="$LIBS"
     23239        LIBS="$LIBS $FLIBS"
     23240        cat >conftest.$ac_ext <<_ACEOF
     23241/* confdefs.h.  */
     23242_ACEOF
     23243cat confdefs.h >>conftest.$ac_ext
     23244cat >>conftest.$ac_ext <<_ACEOF
     23245/* end confdefs.h.  */
     23246void $cfuncdsyev();
     23247#ifdef F77_DUMMY_MAIN
     23248
     23249#  ifdef __cplusplus
     23250     extern "C"
     23251#  endif
     23252   int F77_DUMMY_MAIN() { return 1; }
     23253
     23254#endif
     23255int
     23256main ()
     23257{
     23258$cfuncdsyev()
     23259  ;
     23260  return 0;
     23261}
     23262_ACEOF
     23263rm -f conftest.$ac_objext conftest$ac_exeext
     23264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23265  (eval $ac_link) 2>conftest.er1
     23266  ac_status=$?
     23267  grep -v '^ *+' conftest.er1 >conftest.err
     23268  rm -f conftest.er1
     23269  cat conftest.err >&5
     23270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23271  (exit $ac_status); } &&
     23272         { ac_try='test -z "$ac_c_werror_flag"
     23273                         || test ! -s conftest.err'
     23274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23275  (eval $ac_try) 2>&5
     23276  ac_status=$?
     23277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23278  (exit $ac_status); }; } &&
     23279         { ac_try='test -s conftest$ac_exeext'
     23280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23281  (eval $ac_try) 2>&5
     23282  ac_status=$?
     23283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23284  (exit $ac_status); }; }; then
     23285  LIBS="$flink_save_libs"
     23286                     echo "$as_me:$LINENO: result: yes" >&5
     23287echo "${ECHO_T}yes" >&6
     23288                     coin_need_flibs=yes
     23289else
     23290  echo "$as_me: failed program was:" >&5
     23291sed 's/^/| /' conftest.$ac_ext >&5
     23292
     23293LIBS="$flink_save_libs"
     23294                     echo "$as_me:$LINENO: result: no" >&5
     23295echo "${ECHO_T}no" >&6
     23296                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     23297echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     23298   { (exit 1); exit 1; }; }
     23299fi
     23300rm -f conftest.err conftest.$ac_objext \
     23301      conftest$ac_exeext conftest.$ac_ext
     23302      else
     23303        echo "$as_me:$LINENO: result: no" >&5
     23304echo "${ECHO_T}no" >&6
     23305                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     23306echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     23307   { (exit 1); exit 1; }; }
     23308      fi
     23309    fi
     23310    ;;
     23311  cc|cpp)
     23312    ac_ext=f
     23313ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23314ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23315ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23316case $ac_cv_f77_mangling in
     23317  upper*) ac_val="DSYEV" ;;
     23318  lower*) ac_val="dsyev" ;;
     23319  *)      ac_val="unknown" ;;
     23320esac
     23321case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23322
     23323cfuncdsyev="$ac_val"
     23324
     23325ac_ext=c
     23326ac_cpp='$CPP $CPPFLAGS'
     23327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23329ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23330
     23331    if test x"$coin_need_flibs" = xyes; then
     23332      flink_try=no;
     23333    else
     23334      cat >conftest.$ac_ext <<_ACEOF
     23335/* confdefs.h.  */
     23336_ACEOF
     23337cat confdefs.h >>conftest.$ac_ext
     23338cat >>conftest.$ac_ext <<_ACEOF
     23339/* end confdefs.h.  */
     23340extern "C" {void $cfuncdsyev();}
     23341#ifdef F77_DUMMY_MAIN
     23342
     23343#  ifdef __cplusplus
     23344     extern "C"
     23345#  endif
     23346   int F77_DUMMY_MAIN() { return 1; }
     23347
     23348#endif
     23349int
     23350main ()
     23351{
     23352$cfuncdsyev()
     23353  ;
     23354  return 0;
     23355}
     23356_ACEOF
     23357rm -f conftest.$ac_objext conftest$ac_exeext
     23358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23359  (eval $ac_link) 2>conftest.er1
     23360  ac_status=$?
     23361  grep -v '^ *+' conftest.er1 >conftest.err
     23362  rm -f conftest.er1
     23363  cat conftest.err >&5
     23364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23365  (exit $ac_status); } &&
     23366         { ac_try='test -z "$ac_c_werror_flag"
     23367                         || test ! -s conftest.err'
     23368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23369  (eval $ac_try) 2>&5
     23370  ac_status=$?
     23371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23372  (exit $ac_status); }; } &&
     23373         { ac_try='test -s conftest$ac_exeext'
     23374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23375  (eval $ac_try) 2>&5
     23376  ac_status=$?
     23377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23378  (exit $ac_status); }; }; then
     23379  flink_try=yes
     23380else
     23381  echo "$as_me: failed program was:" >&5
     23382sed 's/^/| /' conftest.$ac_ext >&5
     23383
     23384flink_try=no
     23385fi
     23386rm -f conftest.err conftest.$ac_objext \
     23387      conftest$ac_exeext conftest.$ac_ext
     23388    fi
     23389    if test $flink_try = yes; then
     23390      echo "$as_me:$LINENO: result: yes" >&5
     23391echo "${ECHO_T}yes" >&6
     23392    else
     23393      if test x"$FLIBS" != x; then
     23394        flink_save_libs="$LIBS"
     23395        LIBS="$LIBS $FLIBS"
     23396        cat >conftest.$ac_ext <<_ACEOF
     23397/* confdefs.h.  */
     23398_ACEOF
     23399cat confdefs.h >>conftest.$ac_ext
     23400cat >>conftest.$ac_ext <<_ACEOF
     23401/* end confdefs.h.  */
     23402extern "C" {void $cfuncdsyev();}
     23403#ifdef F77_DUMMY_MAIN
     23404
     23405#  ifdef __cplusplus
     23406     extern "C"
     23407#  endif
     23408   int F77_DUMMY_MAIN() { return 1; }
     23409
     23410#endif
     23411int
     23412main ()
     23413{
     23414$cfuncdsyev()
     23415  ;
     23416  return 0;
     23417}
     23418_ACEOF
     23419rm -f conftest.$ac_objext conftest$ac_exeext
     23420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23421  (eval $ac_link) 2>conftest.er1
     23422  ac_status=$?
     23423  grep -v '^ *+' conftest.er1 >conftest.err
     23424  rm -f conftest.er1
     23425  cat conftest.err >&5
     23426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23427  (exit $ac_status); } &&
     23428         { ac_try='test -z "$ac_c_werror_flag"
     23429                         || test ! -s conftest.err'
     23430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23431  (eval $ac_try) 2>&5
     23432  ac_status=$?
     23433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23434  (exit $ac_status); }; } &&
     23435         { ac_try='test -s conftest$ac_exeext'
     23436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23437  (eval $ac_try) 2>&5
     23438  ac_status=$?
     23439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23440  (exit $ac_status); }; }; then
     23441  LIBS="$flink_save_libs"
     23442                     echo "$as_me:$LINENO: result: yes" >&5
     23443echo "${ECHO_T}yes" >&6
     23444                     coin_need_flibs=yes
     23445else
     23446  echo "$as_me: failed program was:" >&5
     23447sed 's/^/| /' conftest.$ac_ext >&5
     23448
     23449LIBS="$flink_save_libs"
     23450                     echo "$as_me:$LINENO: result: no" >&5
     23451echo "${ECHO_T}no" >&6
     23452                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     23453echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     23454   { (exit 1); exit 1; }; }
     23455fi
     23456rm -f conftest.err conftest.$ac_objext \
     23457      conftest$ac_exeext conftest.$ac_ext
     23458      else
     23459        echo "$as_me:$LINENO: result: no" >&5
     23460echo "${ECHO_T}no" >&6
     23461                       { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
     23462echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
     23463   { (exit 1); exit 1; }; }
     23464      fi
     23465    fi
     23466    ;;
     23467esac
     23468
     23469  fi
     23470else
     23471  if test x$coin_has_blas = xyes; then
     23472    # First try to see if LAPACK is already available with BLAS library
     23473    echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
     23474echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
     23475    case $ac_ext in
     23476  f)
     23477    cat >conftest.$ac_ext <<_ACEOF
     23478/* confdefs.h.  */
     23479_ACEOF
     23480cat confdefs.h >>conftest.$ac_ext
     23481cat >>conftest.$ac_ext <<_ACEOF
     23482/* end confdefs.h.  */
     23483
     23484#ifdef F77_DUMMY_MAIN
     23485
     23486#  ifdef __cplusplus
     23487     extern "C"
     23488#  endif
     23489   int F77_DUMMY_MAIN() { return 1; }
     23490
     23491#endif
     23492int
     23493main ()
     23494{
     23495      call dsyev
     23496  ;
     23497  return 0;
     23498}
     23499_ACEOF
     23500rm -f conftest.$ac_objext conftest$ac_exeext
     23501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23502  (eval $ac_link) 2>conftest.er1
     23503  ac_status=$?
     23504  grep -v '^ *+' conftest.er1 >conftest.err
     23505  rm -f conftest.er1
     23506  cat conftest.err >&5
     23507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23508  (exit $ac_status); } &&
     23509         { ac_try='test -z "$ac_c_werror_flag"
     23510                         || test ! -s conftest.err'
     23511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23512  (eval $ac_try) 2>&5
     23513  ac_status=$?
     23514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23515  (exit $ac_status); }; } &&
     23516         { ac_try='test -s conftest$ac_exeext'
     23517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23518  (eval $ac_try) 2>&5
     23519  ac_status=$?
     23520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23521  (exit $ac_status); }; }; then
     23522  echo "$as_me:$LINENO: result: yes" >&5
     23523echo "${ECHO_T}yes" >&6; use_lapack=ok
     23524else
     23525  echo "$as_me: failed program was:" >&5
     23526sed 's/^/| /' conftest.$ac_ext >&5
     23527
     23528echo "$as_me:$LINENO: result: no" >&5
     23529echo "${ECHO_T}no" >&6
     23530fi
     23531rm -f conftest.err conftest.$ac_objext \
     23532      conftest$ac_exeext conftest.$ac_ext
     23533    ;;
     23534  c)
     23535    ac_ext=f
     23536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23539case $ac_cv_f77_mangling in
     23540  upper*) ac_val="DSYEV" ;;
     23541  lower*) ac_val="dsyev" ;;
     23542  *)      ac_val="unknown" ;;
     23543esac
     23544case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23545
     23546cfuncdsyev="$ac_val"
     23547
     23548ac_ext=c
     23549ac_cpp='$CPP $CPPFLAGS'
     23550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23552ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23553
     23554    if test x"$coin_need_flibs" = xyes; then
     23555      flink_try=no;
     23556    else
     23557      cat >conftest.$ac_ext <<_ACEOF
     23558/* confdefs.h.  */
     23559_ACEOF
     23560cat confdefs.h >>conftest.$ac_ext
     23561cat >>conftest.$ac_ext <<_ACEOF
     23562/* end confdefs.h.  */
     23563void $cfuncdsyev();
     23564#ifdef F77_DUMMY_MAIN
     23565
     23566#  ifdef __cplusplus
     23567     extern "C"
     23568#  endif
     23569   int F77_DUMMY_MAIN() { return 1; }
     23570
     23571#endif
     23572int
     23573main ()
     23574{
     23575$cfuncdsyev()
     23576  ;
     23577  return 0;
     23578}
     23579_ACEOF
     23580rm -f conftest.$ac_objext conftest$ac_exeext
     23581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23582  (eval $ac_link) 2>conftest.er1
     23583  ac_status=$?
     23584  grep -v '^ *+' conftest.er1 >conftest.err
     23585  rm -f conftest.er1
     23586  cat conftest.err >&5
     23587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23588  (exit $ac_status); } &&
     23589         { ac_try='test -z "$ac_c_werror_flag"
     23590                         || test ! -s conftest.err'
     23591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23592  (eval $ac_try) 2>&5
     23593  ac_status=$?
     23594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23595  (exit $ac_status); }; } &&
     23596         { ac_try='test -s conftest$ac_exeext'
     23597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23598  (eval $ac_try) 2>&5
     23599  ac_status=$?
     23600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23601  (exit $ac_status); }; }; then
     23602  flink_try=yes
     23603else
     23604  echo "$as_me: failed program was:" >&5
     23605sed 's/^/| /' conftest.$ac_ext >&5
     23606
     23607flink_try=no
     23608fi
     23609rm -f conftest.err conftest.$ac_objext \
     23610      conftest$ac_exeext conftest.$ac_ext
     23611    fi
     23612    if test $flink_try = yes; then
     23613      echo "$as_me:$LINENO: result: yes" >&5
     23614echo "${ECHO_T}yes" >&6; use_lapack=ok
     23615    else
     23616      if test x"$FLIBS" != x; then
     23617        flink_save_libs="$LIBS"
     23618        LIBS="$LIBS $FLIBS"
     23619        cat >conftest.$ac_ext <<_ACEOF
     23620/* confdefs.h.  */
     23621_ACEOF
     23622cat confdefs.h >>conftest.$ac_ext
     23623cat >>conftest.$ac_ext <<_ACEOF
     23624/* end confdefs.h.  */
     23625void $cfuncdsyev();
     23626#ifdef F77_DUMMY_MAIN
     23627
     23628#  ifdef __cplusplus
     23629     extern "C"
     23630#  endif
     23631   int F77_DUMMY_MAIN() { return 1; }
     23632
     23633#endif
     23634int
     23635main ()
     23636{
     23637$cfuncdsyev()
     23638  ;
     23639  return 0;
     23640}
     23641_ACEOF
     23642rm -f conftest.$ac_objext conftest$ac_exeext
     23643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23644  (eval $ac_link) 2>conftest.er1
     23645  ac_status=$?
     23646  grep -v '^ *+' conftest.er1 >conftest.err
     23647  rm -f conftest.er1
     23648  cat conftest.err >&5
     23649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23650  (exit $ac_status); } &&
     23651         { ac_try='test -z "$ac_c_werror_flag"
     23652                         || test ! -s conftest.err'
     23653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23654  (eval $ac_try) 2>&5
     23655  ac_status=$?
     23656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23657  (exit $ac_status); }; } &&
     23658         { ac_try='test -s conftest$ac_exeext'
     23659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23660  (eval $ac_try) 2>&5
     23661  ac_status=$?
     23662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23663  (exit $ac_status); }; }; then
     23664  LIBS="$flink_save_libs"
     23665                     echo "$as_me:$LINENO: result: yes" >&5
     23666echo "${ECHO_T}yes" >&6; use_lapack=ok
     23667                     coin_need_flibs=yes
     23668else
     23669  echo "$as_me: failed program was:" >&5
     23670sed 's/^/| /' conftest.$ac_ext >&5
     23671
     23672LIBS="$flink_save_libs"
     23673                     echo "$as_me:$LINENO: result: no" >&5
     23674echo "${ECHO_T}no" >&6
     23675fi
     23676rm -f conftest.err conftest.$ac_objext \
     23677      conftest$ac_exeext conftest.$ac_ext
     23678      else
     23679        echo "$as_me:$LINENO: result: no" >&5
     23680echo "${ECHO_T}no" >&6
     23681      fi
     23682    fi
     23683    ;;
     23684  cc|cpp)
     23685    ac_ext=f
     23686ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23687ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23688ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23689case $ac_cv_f77_mangling in
     23690  upper*) ac_val="DSYEV" ;;
     23691  lower*) ac_val="dsyev" ;;
     23692  *)      ac_val="unknown" ;;
     23693esac
     23694case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23695
     23696cfuncdsyev="$ac_val"
     23697
     23698ac_ext=c
     23699ac_cpp='$CPP $CPPFLAGS'
     23700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23702ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23703
     23704    if test x"$coin_need_flibs" = xyes; then
     23705      flink_try=no;
     23706    else
     23707      cat >conftest.$ac_ext <<_ACEOF
     23708/* confdefs.h.  */
     23709_ACEOF
     23710cat confdefs.h >>conftest.$ac_ext
     23711cat >>conftest.$ac_ext <<_ACEOF
     23712/* end confdefs.h.  */
     23713extern "C" {void $cfuncdsyev();}
     23714#ifdef F77_DUMMY_MAIN
     23715
     23716#  ifdef __cplusplus
     23717     extern "C"
     23718#  endif
     23719   int F77_DUMMY_MAIN() { return 1; }
     23720
     23721#endif
     23722int
     23723main ()
     23724{
     23725$cfuncdsyev()
     23726  ;
     23727  return 0;
     23728}
     23729_ACEOF
     23730rm -f conftest.$ac_objext conftest$ac_exeext
     23731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23732  (eval $ac_link) 2>conftest.er1
     23733  ac_status=$?
     23734  grep -v '^ *+' conftest.er1 >conftest.err
     23735  rm -f conftest.er1
     23736  cat conftest.err >&5
     23737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23738  (exit $ac_status); } &&
     23739         { ac_try='test -z "$ac_c_werror_flag"
     23740                         || test ! -s conftest.err'
     23741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23742  (eval $ac_try) 2>&5
     23743  ac_status=$?
     23744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23745  (exit $ac_status); }; } &&
     23746         { ac_try='test -s conftest$ac_exeext'
     23747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23748  (eval $ac_try) 2>&5
     23749  ac_status=$?
     23750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23751  (exit $ac_status); }; }; then
     23752  flink_try=yes
     23753else
     23754  echo "$as_me: failed program was:" >&5
     23755sed 's/^/| /' conftest.$ac_ext >&5
     23756
     23757flink_try=no
     23758fi
     23759rm -f conftest.err conftest.$ac_objext \
     23760      conftest$ac_exeext conftest.$ac_ext
     23761    fi
     23762    if test $flink_try = yes; then
     23763      echo "$as_me:$LINENO: result: yes" >&5
     23764echo "${ECHO_T}yes" >&6; use_lapack=ok
     23765    else
     23766      if test x"$FLIBS" != x; then
     23767        flink_save_libs="$LIBS"
     23768        LIBS="$LIBS $FLIBS"
     23769        cat >conftest.$ac_ext <<_ACEOF
     23770/* confdefs.h.  */
     23771_ACEOF
     23772cat confdefs.h >>conftest.$ac_ext
     23773cat >>conftest.$ac_ext <<_ACEOF
     23774/* end confdefs.h.  */
     23775extern "C" {void $cfuncdsyev();}
     23776#ifdef F77_DUMMY_MAIN
     23777
     23778#  ifdef __cplusplus
     23779     extern "C"
     23780#  endif
     23781   int F77_DUMMY_MAIN() { return 1; }
     23782
     23783#endif
     23784int
     23785main ()
     23786{
     23787$cfuncdsyev()
     23788  ;
     23789  return 0;
     23790}
     23791_ACEOF
     23792rm -f conftest.$ac_objext conftest$ac_exeext
     23793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23794  (eval $ac_link) 2>conftest.er1
     23795  ac_status=$?
     23796  grep -v '^ *+' conftest.er1 >conftest.err
     23797  rm -f conftest.er1
     23798  cat conftest.err >&5
     23799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23800  (exit $ac_status); } &&
     23801         { ac_try='test -z "$ac_c_werror_flag"
     23802                         || test ! -s conftest.err'
     23803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23804  (eval $ac_try) 2>&5
     23805  ac_status=$?
     23806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23807  (exit $ac_status); }; } &&
     23808         { ac_try='test -s conftest$ac_exeext'
     23809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23810  (eval $ac_try) 2>&5
     23811  ac_status=$?
     23812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23813  (exit $ac_status); }; }; then
     23814  LIBS="$flink_save_libs"
     23815                     echo "$as_me:$LINENO: result: yes" >&5
     23816echo "${ECHO_T}yes" >&6; use_lapack=ok
     23817                     coin_need_flibs=yes
     23818else
     23819  echo "$as_me: failed program was:" >&5
     23820sed 's/^/| /' conftest.$ac_ext >&5
     23821
     23822LIBS="$flink_save_libs"
     23823                     echo "$as_me:$LINENO: result: no" >&5
     23824echo "${ECHO_T}no" >&6
     23825fi
     23826rm -f conftest.err conftest.$ac_objext \
     23827      conftest$ac_exeext conftest.$ac_ext
     23828      else
     23829        echo "$as_me:$LINENO: result: no" >&5
     23830echo "${ECHO_T}no" >&6
     23831      fi
     23832    fi
     23833    ;;
     23834esac
     23835
     23836  fi
     23837  skip_llapack_check=no
     23838  if test -z "$use_lapack"; then
     23839    # Try to autodetect the library for lapack based on build system
     23840    case $build in
     23841      *-sgi-*)
     23842        SAVE_LIBS="$LIBS"
     23843        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
     23844echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
     23845        LIBS="-lcomplib.sgimath $LIBS"
     23846        case $ac_ext in
     23847  f)
     23848    cat >conftest.$ac_ext <<_ACEOF
     23849/* confdefs.h.  */
     23850_ACEOF
     23851cat confdefs.h >>conftest.$ac_ext
     23852cat >>conftest.$ac_ext <<_ACEOF
     23853/* end confdefs.h.  */
     23854
     23855#ifdef F77_DUMMY_MAIN
     23856
     23857#  ifdef __cplusplus
     23858     extern "C"
     23859#  endif
     23860   int F77_DUMMY_MAIN() { return 1; }
     23861
     23862#endif
     23863int
     23864main ()
     23865{
     23866      call dsyev
     23867  ;
     23868  return 0;
     23869}
     23870_ACEOF
     23871rm -f conftest.$ac_objext conftest$ac_exeext
     23872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23873  (eval $ac_link) 2>conftest.er1
     23874  ac_status=$?
     23875  grep -v '^ *+' conftest.er1 >conftest.err
     23876  rm -f conftest.er1
     23877  cat conftest.err >&5
     23878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23879  (exit $ac_status); } &&
     23880         { ac_try='test -z "$ac_c_werror_flag"
     23881                         || test ! -s conftest.err'
     23882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23883  (eval $ac_try) 2>&5
     23884  ac_status=$?
     23885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23886  (exit $ac_status); }; } &&
     23887         { ac_try='test -s conftest$ac_exeext'
     23888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23889  (eval $ac_try) 2>&5
     23890  ac_status=$?
     23891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23892  (exit $ac_status); }; }; then
     23893  echo "$as_me:$LINENO: result: yes" >&5
     23894echo "${ECHO_T}yes" >&6
     23895                           use_lapack=-lcomplib.sgimath;
     23896                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23897else
     23898  echo "$as_me: failed program was:" >&5
     23899sed 's/^/| /' conftest.$ac_ext >&5
     23900
     23901echo "$as_me:$LINENO: result: no" >&5
     23902echo "${ECHO_T}no" >&6
     23903                           SAVE_LIBS="$LIBS"
     23904fi
     23905rm -f conftest.err conftest.$ac_objext \
     23906      conftest$ac_exeext conftest.$ac_ext
     23907    ;;
     23908  c)
     23909    ac_ext=f
     23910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     23911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     23913case $ac_cv_f77_mangling in
     23914  upper*) ac_val="DSYEV" ;;
     23915  lower*) ac_val="dsyev" ;;
     23916  *)      ac_val="unknown" ;;
     23917esac
     23918case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     23919
     23920cfuncdsyev="$ac_val"
     23921
     23922ac_ext=c
     23923ac_cpp='$CPP $CPPFLAGS'
     23924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     23925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     23926ac_compiler_gnu=$ac_cv_c_compiler_gnu
     23927
     23928    if test x"$coin_need_flibs" = xyes; then
     23929      flink_try=no;
     23930    else
     23931      cat >conftest.$ac_ext <<_ACEOF
     23932/* confdefs.h.  */
     23933_ACEOF
     23934cat confdefs.h >>conftest.$ac_ext
     23935cat >>conftest.$ac_ext <<_ACEOF
     23936/* end confdefs.h.  */
     23937void $cfuncdsyev();
     23938#ifdef F77_DUMMY_MAIN
     23939
     23940#  ifdef __cplusplus
     23941     extern "C"
     23942#  endif
     23943   int F77_DUMMY_MAIN() { return 1; }
     23944
     23945#endif
     23946int
     23947main ()
     23948{
     23949$cfuncdsyev()
     23950  ;
     23951  return 0;
     23952}
     23953_ACEOF
     23954rm -f conftest.$ac_objext conftest$ac_exeext
     23955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23956  (eval $ac_link) 2>conftest.er1
     23957  ac_status=$?
     23958  grep -v '^ *+' conftest.er1 >conftest.err
     23959  rm -f conftest.er1
     23960  cat conftest.err >&5
     23961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23962  (exit $ac_status); } &&
     23963         { ac_try='test -z "$ac_c_werror_flag"
     23964                         || test ! -s conftest.err'
     23965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23966  (eval $ac_try) 2>&5
     23967  ac_status=$?
     23968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23969  (exit $ac_status); }; } &&
     23970         { ac_try='test -s conftest$ac_exeext'
     23971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23972  (eval $ac_try) 2>&5
     23973  ac_status=$?
     23974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23975  (exit $ac_status); }; }; then
     23976  flink_try=yes
     23977else
     23978  echo "$as_me: failed program was:" >&5
     23979sed 's/^/| /' conftest.$ac_ext >&5
     23980
     23981flink_try=no
     23982fi
     23983rm -f conftest.err conftest.$ac_objext \
     23984      conftest$ac_exeext conftest.$ac_ext
     23985    fi
     23986    if test $flink_try = yes; then
     23987      echo "$as_me:$LINENO: result: yes" >&5
     23988echo "${ECHO_T}yes" >&6
     23989                           use_lapack=-lcomplib.sgimath;
     23990                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     23991    else
     23992      if test x"$FLIBS" != x; then
     23993        flink_save_libs="$LIBS"
     23994        LIBS="$LIBS $FLIBS"
     23995        cat >conftest.$ac_ext <<_ACEOF
     23996/* confdefs.h.  */
     23997_ACEOF
     23998cat confdefs.h >>conftest.$ac_ext
     23999cat >>conftest.$ac_ext <<_ACEOF
     24000/* end confdefs.h.  */
     24001void $cfuncdsyev();
     24002#ifdef F77_DUMMY_MAIN
     24003
     24004#  ifdef __cplusplus
     24005     extern "C"
     24006#  endif
     24007   int F77_DUMMY_MAIN() { return 1; }
     24008
     24009#endif
     24010int
     24011main ()
     24012{
     24013$cfuncdsyev()
     24014  ;
     24015  return 0;
     24016}
     24017_ACEOF
     24018rm -f conftest.$ac_objext conftest$ac_exeext
     24019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24020  (eval $ac_link) 2>conftest.er1
     24021  ac_status=$?
     24022  grep -v '^ *+' conftest.er1 >conftest.err
     24023  rm -f conftest.er1
     24024  cat conftest.err >&5
     24025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24026  (exit $ac_status); } &&
     24027         { ac_try='test -z "$ac_c_werror_flag"
     24028                         || test ! -s conftest.err'
     24029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24030  (eval $ac_try) 2>&5
     24031  ac_status=$?
     24032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24033  (exit $ac_status); }; } &&
     24034         { ac_try='test -s conftest$ac_exeext'
     24035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24036  (eval $ac_try) 2>&5
     24037  ac_status=$?
     24038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24039  (exit $ac_status); }; }; then
     24040  LIBS="$flink_save_libs"
     24041                     echo "$as_me:$LINENO: result: yes" >&5
     24042echo "${ECHO_T}yes" >&6
     24043                           use_lapack=-lcomplib.sgimath;
     24044                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     24045                     coin_need_flibs=yes
     24046else
     24047  echo "$as_me: failed program was:" >&5
     24048sed 's/^/| /' conftest.$ac_ext >&5
     24049
     24050LIBS="$flink_save_libs"
     24051                     echo "$as_me:$LINENO: result: no" >&5
     24052echo "${ECHO_T}no" >&6
     24053                           SAVE_LIBS="$LIBS"
     24054fi
     24055rm -f conftest.err conftest.$ac_objext \
     24056      conftest$ac_exeext conftest.$ac_ext
     24057      else
     24058        echo "$as_me:$LINENO: result: no" >&5
     24059echo "${ECHO_T}no" >&6
     24060                           SAVE_LIBS="$LIBS"
     24061      fi
     24062    fi
     24063    ;;
     24064  cc|cpp)
     24065    ac_ext=f
     24066ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24067ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24068ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24069case $ac_cv_f77_mangling in
     24070  upper*) ac_val="DSYEV" ;;
     24071  lower*) ac_val="dsyev" ;;
     24072  *)      ac_val="unknown" ;;
     24073esac
     24074case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24075
     24076cfuncdsyev="$ac_val"
     24077
     24078ac_ext=c
     24079ac_cpp='$CPP $CPPFLAGS'
     24080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24082ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24083
     24084    if test x"$coin_need_flibs" = xyes; then
     24085      flink_try=no;
     24086    else
     24087      cat >conftest.$ac_ext <<_ACEOF
     24088/* confdefs.h.  */
     24089_ACEOF
     24090cat confdefs.h >>conftest.$ac_ext
     24091cat >>conftest.$ac_ext <<_ACEOF
     24092/* end confdefs.h.  */
     24093extern "C" {void $cfuncdsyev();}
     24094#ifdef F77_DUMMY_MAIN
     24095
     24096#  ifdef __cplusplus
     24097     extern "C"
     24098#  endif
     24099   int F77_DUMMY_MAIN() { return 1; }
     24100
     24101#endif
     24102int
     24103main ()
     24104{
     24105$cfuncdsyev()
     24106  ;
     24107  return 0;
     24108}
     24109_ACEOF
     24110rm -f conftest.$ac_objext conftest$ac_exeext
     24111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24112  (eval $ac_link) 2>conftest.er1
     24113  ac_status=$?
     24114  grep -v '^ *+' conftest.er1 >conftest.err
     24115  rm -f conftest.er1
     24116  cat conftest.err >&5
     24117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24118  (exit $ac_status); } &&
     24119         { ac_try='test -z "$ac_c_werror_flag"
     24120                         || test ! -s conftest.err'
     24121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24122  (eval $ac_try) 2>&5
     24123  ac_status=$?
     24124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24125  (exit $ac_status); }; } &&
     24126         { ac_try='test -s conftest$ac_exeext'
     24127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24128  (eval $ac_try) 2>&5
     24129  ac_status=$?
     24130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24131  (exit $ac_status); }; }; then
     24132  flink_try=yes
     24133else
     24134  echo "$as_me: failed program was:" >&5
     24135sed 's/^/| /' conftest.$ac_ext >&5
     24136
     24137flink_try=no
     24138fi
     24139rm -f conftest.err conftest.$ac_objext \
     24140      conftest$ac_exeext conftest.$ac_ext
     24141    fi
     24142    if test $flink_try = yes; then
     24143      echo "$as_me:$LINENO: result: yes" >&5
     24144echo "${ECHO_T}yes" >&6
     24145                           use_lapack=-lcomplib.sgimath;
     24146                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     24147    else
     24148      if test x"$FLIBS" != x; then
     24149        flink_save_libs="$LIBS"
     24150        LIBS="$LIBS $FLIBS"
     24151        cat >conftest.$ac_ext <<_ACEOF
     24152/* confdefs.h.  */
     24153_ACEOF
     24154cat confdefs.h >>conftest.$ac_ext
     24155cat >>conftest.$ac_ext <<_ACEOF
     24156/* end confdefs.h.  */
     24157extern "C" {void $cfuncdsyev();}
     24158#ifdef F77_DUMMY_MAIN
     24159
     24160#  ifdef __cplusplus
     24161     extern "C"
     24162#  endif
     24163   int F77_DUMMY_MAIN() { return 1; }
     24164
     24165#endif
     24166int
     24167main ()
     24168{
     24169$cfuncdsyev()
     24170  ;
     24171  return 0;
     24172}
     24173_ACEOF
     24174rm -f conftest.$ac_objext conftest$ac_exeext
     24175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24176  (eval $ac_link) 2>conftest.er1
     24177  ac_status=$?
     24178  grep -v '^ *+' conftest.er1 >conftest.err
     24179  rm -f conftest.er1
     24180  cat conftest.err >&5
     24181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24182  (exit $ac_status); } &&
     24183         { ac_try='test -z "$ac_c_werror_flag"
     24184                         || test ! -s conftest.err'
     24185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24186  (eval $ac_try) 2>&5
     24187  ac_status=$?
     24188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24189  (exit $ac_status); }; } &&
     24190         { ac_try='test -s conftest$ac_exeext'
     24191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24192  (eval $ac_try) 2>&5
     24193  ac_status=$?
     24194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24195  (exit $ac_status); }; }; then
     24196  LIBS="$flink_save_libs"
     24197                     echo "$as_me:$LINENO: result: yes" >&5
     24198echo "${ECHO_T}yes" >&6
     24199                           use_lapack=-lcomplib.sgimath;
     24200                           ADDLIBS="-lcomplib.sgimath $ADDLIBS"
     24201                     coin_need_flibs=yes
     24202else
     24203  echo "$as_me: failed program was:" >&5
     24204sed 's/^/| /' conftest.$ac_ext >&5
     24205
     24206LIBS="$flink_save_libs"
     24207                     echo "$as_me:$LINENO: result: no" >&5
     24208echo "${ECHO_T}no" >&6
     24209                           SAVE_LIBS="$LIBS"
     24210fi
     24211rm -f conftest.err conftest.$ac_objext \
     24212      conftest$ac_exeext conftest.$ac_ext
     24213      else
     24214        echo "$as_me:$LINENO: result: no" >&5
     24215echo "${ECHO_T}no" >&6
     24216                           SAVE_LIBS="$LIBS"
     24217      fi
     24218    fi
     24219    ;;
     24220esac
     24221
     24222        ;;
     24223
     24224# See comments in COIN_HAS_BLAS.
     24225      *-*-solaris*)
     24226      SAVE_LIBS="$LIBS"
     24227      echo "$as_me:$LINENO: checking for LAPACK in libsunperf" >&5
     24228echo $ECHO_N "checking for LAPACK in libsunperf... $ECHO_C" >&6
     24229      LIBS="-lsunperf $FLIBS $LIBS"
     24230      case $ac_ext in
     24231  f)
     24232    cat >conftest.$ac_ext <<_ACEOF
     24233/* confdefs.h.  */
     24234_ACEOF
     24235cat confdefs.h >>conftest.$ac_ext
     24236cat >>conftest.$ac_ext <<_ACEOF
     24237/* end confdefs.h.  */
     24238
     24239#ifdef F77_DUMMY_MAIN
     24240
     24241#  ifdef __cplusplus
     24242     extern "C"
     24243#  endif
     24244   int F77_DUMMY_MAIN() { return 1; }
     24245
     24246#endif
     24247int
     24248main ()
     24249{
     24250      call dsyev
     24251  ;
     24252  return 0;
     24253}
     24254_ACEOF
     24255rm -f conftest.$ac_objext conftest$ac_exeext
     24256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24257  (eval $ac_link) 2>conftest.er1
     24258  ac_status=$?
     24259  grep -v '^ *+' conftest.er1 >conftest.err
     24260  rm -f conftest.er1
     24261  cat conftest.err >&5
     24262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24263  (exit $ac_status); } &&
     24264         { ac_try='test -z "$ac_c_werror_flag"
     24265                         || test ! -s conftest.err'
     24266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24267  (eval $ac_try) 2>&5
     24268  ac_status=$?
     24269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24270  (exit $ac_status); }; } &&
     24271         { ac_try='test -s conftest$ac_exeext'
     24272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24273  (eval $ac_try) 2>&5
     24274  ac_status=$?
     24275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24276  (exit $ac_status); }; }; then
     24277  echo "$as_me:$LINENO: result: yes" >&5
     24278echo "${ECHO_T}yes" >&6
     24279                         use_blas='-lsunperf'
     24280                         ADDLIBS="-lsunperf $ADDLIBS"
     24281                         coin_need_flibs=yes
     24282else
     24283  echo "$as_me: failed program was:" >&5
     24284sed 's/^/| /' conftest.$ac_ext >&5
     24285
     24286echo "$as_me:$LINENO: result: no" >&5
     24287echo "${ECHO_T}no" >&6
     24288                         LIBS="$SAVE_LIBS"
     24289fi
     24290rm -f conftest.err conftest.$ac_objext \
     24291      conftest$ac_exeext conftest.$ac_ext
     24292    ;;
     24293  c)
     24294    ac_ext=f
     24295ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24296ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24297ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24298case $ac_cv_f77_mangling in
     24299  upper*) ac_val="DSYEV" ;;
     24300  lower*) ac_val="dsyev" ;;
     24301  *)      ac_val="unknown" ;;
     24302esac
     24303case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24304
     24305cfuncdsyev="$ac_val"
     24306
     24307ac_ext=c
     24308ac_cpp='$CPP $CPPFLAGS'
     24309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24311ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24312
     24313    if test x"$coin_need_flibs" = xyes; then
     24314      flink_try=no;
     24315    else
     24316      cat >conftest.$ac_ext <<_ACEOF
     24317/* confdefs.h.  */
     24318_ACEOF
     24319cat confdefs.h >>conftest.$ac_ext
     24320cat >>conftest.$ac_ext <<_ACEOF
     24321/* end confdefs.h.  */
     24322void $cfuncdsyev();
     24323#ifdef F77_DUMMY_MAIN
     24324
     24325#  ifdef __cplusplus
     24326     extern "C"
     24327#  endif
     24328   int F77_DUMMY_MAIN() { return 1; }
     24329
     24330#endif
     24331int
     24332main ()
     24333{
     24334$cfuncdsyev()
     24335  ;
     24336  return 0;
     24337}
     24338_ACEOF
     24339rm -f conftest.$ac_objext conftest$ac_exeext
     24340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24341  (eval $ac_link) 2>conftest.er1
     24342  ac_status=$?
     24343  grep -v '^ *+' conftest.er1 >conftest.err
     24344  rm -f conftest.er1
     24345  cat conftest.err >&5
     24346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24347  (exit $ac_status); } &&
     24348         { ac_try='test -z "$ac_c_werror_flag"
     24349                         || test ! -s conftest.err'
     24350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24351  (eval $ac_try) 2>&5
     24352  ac_status=$?
     24353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24354  (exit $ac_status); }; } &&
     24355         { ac_try='test -s conftest$ac_exeext'
     24356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24357  (eval $ac_try) 2>&5
     24358  ac_status=$?
     24359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24360  (exit $ac_status); }; }; then
     24361  flink_try=yes
     24362else
     24363  echo "$as_me: failed program was:" >&5
     24364sed 's/^/| /' conftest.$ac_ext >&5
     24365
     24366flink_try=no
     24367fi
     24368rm -f conftest.err conftest.$ac_objext \
     24369      conftest$ac_exeext conftest.$ac_ext
     24370    fi
     24371    if test $flink_try = yes; then
     24372      echo "$as_me:$LINENO: result: yes" >&5
     24373echo "${ECHO_T}yes" >&6
     24374                         use_blas='-lsunperf'
     24375                         ADDLIBS="-lsunperf $ADDLIBS"
     24376                         coin_need_flibs=yes
     24377    else
     24378      if test x"$FLIBS" != x; then
     24379        flink_save_libs="$LIBS"
     24380        LIBS="$LIBS $FLIBS"
     24381        cat >conftest.$ac_ext <<_ACEOF
     24382/* confdefs.h.  */
     24383_ACEOF
     24384cat confdefs.h >>conftest.$ac_ext
     24385cat >>conftest.$ac_ext <<_ACEOF
     24386/* end confdefs.h.  */
     24387void $cfuncdsyev();
     24388#ifdef F77_DUMMY_MAIN
     24389
     24390#  ifdef __cplusplus
     24391     extern "C"
     24392#  endif
     24393   int F77_DUMMY_MAIN() { return 1; }
     24394
     24395#endif
     24396int
     24397main ()
     24398{
     24399$cfuncdsyev()
     24400  ;
     24401  return 0;
     24402}
     24403_ACEOF
     24404rm -f conftest.$ac_objext conftest$ac_exeext
     24405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24406  (eval $ac_link) 2>conftest.er1
     24407  ac_status=$?
     24408  grep -v '^ *+' conftest.er1 >conftest.err
     24409  rm -f conftest.er1
     24410  cat conftest.err >&5
     24411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24412  (exit $ac_status); } &&
     24413         { ac_try='test -z "$ac_c_werror_flag"
     24414                         || test ! -s conftest.err'
     24415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24416  (eval $ac_try) 2>&5
     24417  ac_status=$?
     24418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24419  (exit $ac_status); }; } &&
     24420         { ac_try='test -s conftest$ac_exeext'
     24421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24422  (eval $ac_try) 2>&5
     24423  ac_status=$?
     24424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24425  (exit $ac_status); }; }; then
     24426  LIBS="$flink_save_libs"
     24427                     echo "$as_me:$LINENO: result: yes" >&5
     24428echo "${ECHO_T}yes" >&6
     24429                         use_blas='-lsunperf'
     24430                         ADDLIBS="-lsunperf $ADDLIBS"
     24431                         coin_need_flibs=yes
     24432                     coin_need_flibs=yes
     24433else
     24434  echo "$as_me: failed program was:" >&5
     24435sed 's/^/| /' conftest.$ac_ext >&5
     24436
     24437LIBS="$flink_save_libs"
     24438                     echo "$as_me:$LINENO: result: no" >&5
     24439echo "${ECHO_T}no" >&6
     24440                         LIBS="$SAVE_LIBS"
     24441fi
     24442rm -f conftest.err conftest.$ac_objext \
     24443      conftest$ac_exeext conftest.$ac_ext
     24444      else
     24445        echo "$as_me:$LINENO: result: no" >&5
     24446echo "${ECHO_T}no" >&6
     24447                         LIBS="$SAVE_LIBS"
     24448      fi
     24449    fi
     24450    ;;
     24451  cc|cpp)
     24452    ac_ext=f
     24453ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24454ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24455ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24456case $ac_cv_f77_mangling in
     24457  upper*) ac_val="DSYEV" ;;
     24458  lower*) ac_val="dsyev" ;;
     24459  *)      ac_val="unknown" ;;
     24460esac
     24461case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24462
     24463cfuncdsyev="$ac_val"
     24464
     24465ac_ext=c
     24466ac_cpp='$CPP $CPPFLAGS'
     24467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24469ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24470
     24471    if test x"$coin_need_flibs" = xyes; then
     24472      flink_try=no;
     24473    else
     24474      cat >conftest.$ac_ext <<_ACEOF
     24475/* confdefs.h.  */
     24476_ACEOF
     24477cat confdefs.h >>conftest.$ac_ext
     24478cat >>conftest.$ac_ext <<_ACEOF
     24479/* end confdefs.h.  */
     24480extern "C" {void $cfuncdsyev();}
     24481#ifdef F77_DUMMY_MAIN
     24482
     24483#  ifdef __cplusplus
     24484     extern "C"
     24485#  endif
     24486   int F77_DUMMY_MAIN() { return 1; }
     24487
     24488#endif
     24489int
     24490main ()
     24491{
     24492$cfuncdsyev()
     24493  ;
     24494  return 0;
     24495}
     24496_ACEOF
     24497rm -f conftest.$ac_objext conftest$ac_exeext
     24498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24499  (eval $ac_link) 2>conftest.er1
     24500  ac_status=$?
     24501  grep -v '^ *+' conftest.er1 >conftest.err
     24502  rm -f conftest.er1
     24503  cat conftest.err >&5
     24504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24505  (exit $ac_status); } &&
     24506         { ac_try='test -z "$ac_c_werror_flag"
     24507                         || test ! -s conftest.err'
     24508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24509  (eval $ac_try) 2>&5
     24510  ac_status=$?
     24511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24512  (exit $ac_status); }; } &&
     24513         { ac_try='test -s conftest$ac_exeext'
     24514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24515  (eval $ac_try) 2>&5
     24516  ac_status=$?
     24517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24518  (exit $ac_status); }; }; then
     24519  flink_try=yes
     24520else
     24521  echo "$as_me: failed program was:" >&5
     24522sed 's/^/| /' conftest.$ac_ext >&5
     24523
     24524flink_try=no
     24525fi
     24526rm -f conftest.err conftest.$ac_objext \
     24527      conftest$ac_exeext conftest.$ac_ext
     24528    fi
     24529    if test $flink_try = yes; then
     24530      echo "$as_me:$LINENO: result: yes" >&5
     24531echo "${ECHO_T}yes" >&6
     24532                         use_blas='-lsunperf'
     24533                         ADDLIBS="-lsunperf $ADDLIBS"
     24534                         coin_need_flibs=yes
     24535    else
     24536      if test x"$FLIBS" != x; then
     24537        flink_save_libs="$LIBS"
     24538        LIBS="$LIBS $FLIBS"
     24539        cat >conftest.$ac_ext <<_ACEOF
     24540/* confdefs.h.  */
     24541_ACEOF
     24542cat confdefs.h >>conftest.$ac_ext
     24543cat >>conftest.$ac_ext <<_ACEOF
     24544/* end confdefs.h.  */
     24545extern "C" {void $cfuncdsyev();}
     24546#ifdef F77_DUMMY_MAIN
     24547
     24548#  ifdef __cplusplus
     24549     extern "C"
     24550#  endif
     24551   int F77_DUMMY_MAIN() { return 1; }
     24552
     24553#endif
     24554int
     24555main ()
     24556{
     24557$cfuncdsyev()
     24558  ;
     24559  return 0;
     24560}
     24561_ACEOF
     24562rm -f conftest.$ac_objext conftest$ac_exeext
     24563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24564  (eval $ac_link) 2>conftest.er1
     24565  ac_status=$?
     24566  grep -v '^ *+' conftest.er1 >conftest.err
     24567  rm -f conftest.er1
     24568  cat conftest.err >&5
     24569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24570  (exit $ac_status); } &&
     24571         { ac_try='test -z "$ac_c_werror_flag"
     24572                         || test ! -s conftest.err'
     24573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24574  (eval $ac_try) 2>&5
     24575  ac_status=$?
     24576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24577  (exit $ac_status); }; } &&
     24578         { ac_try='test -s conftest$ac_exeext'
     24579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24580  (eval $ac_try) 2>&5
     24581  ac_status=$?
     24582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24583  (exit $ac_status); }; }; then
     24584  LIBS="$flink_save_libs"
     24585                     echo "$as_me:$LINENO: result: yes" >&5
     24586echo "${ECHO_T}yes" >&6
     24587                         use_blas='-lsunperf'
     24588                         ADDLIBS="-lsunperf $ADDLIBS"
     24589                         coin_need_flibs=yes
     24590                     coin_need_flibs=yes
     24591else
     24592  echo "$as_me: failed program was:" >&5
     24593sed 's/^/| /' conftest.$ac_ext >&5
     24594
     24595LIBS="$flink_save_libs"
     24596                     echo "$as_me:$LINENO: result: no" >&5
     24597echo "${ECHO_T}no" >&6
     24598                         LIBS="$SAVE_LIBS"
     24599fi
     24600rm -f conftest.err conftest.$ac_objext \
     24601      conftest$ac_exeext conftest.$ac_ext
     24602      else
     24603        echo "$as_me:$LINENO: result: no" >&5
     24604echo "${ECHO_T}no" >&6
     24605                         LIBS="$SAVE_LIBS"
     24606      fi
     24607    fi
     24608    ;;
     24609esac
     24610
     24611        ;;
     24612# On cygwin, do this check only if doscompile is disabled. The prebuilt library
     24613# will want to link with cygwin, hence won't run standalone in DOS.
     24614      *-cygwin*)
     24615        if test "$enable_doscompile" = mingw; then
     24616          skip_llapack_check=yes
     24617        fi
     24618        ;;
     24619    esac
     24620  fi
     24621
     24622  if test -z "$use_lapack" && test $skip_llapack_check = no; then
     24623    SAVE_LIBS="$LIBS"
     24624    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
     24625echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
     24626    LIBS="-llapack $LIBS"
     24627    case $ac_ext in
     24628  f)
     24629    cat >conftest.$ac_ext <<_ACEOF
     24630/* confdefs.h.  */
     24631_ACEOF
     24632cat confdefs.h >>conftest.$ac_ext
     24633cat >>conftest.$ac_ext <<_ACEOF
     24634/* end confdefs.h.  */
     24635
     24636#ifdef F77_DUMMY_MAIN
     24637
     24638#  ifdef __cplusplus
     24639     extern "C"
     24640#  endif
     24641   int F77_DUMMY_MAIN() { return 1; }
     24642
     24643#endif
     24644int
     24645main ()
     24646{
     24647      call dsyev
     24648  ;
     24649  return 0;
     24650}
     24651_ACEOF
     24652rm -f conftest.$ac_objext conftest$ac_exeext
     24653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24654  (eval $ac_link) 2>conftest.er1
     24655  ac_status=$?
     24656  grep -v '^ *+' conftest.er1 >conftest.err
     24657  rm -f conftest.er1
     24658  cat conftest.err >&5
     24659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24660  (exit $ac_status); } &&
     24661         { ac_try='test -z "$ac_c_werror_flag"
     24662                         || test ! -s conftest.err'
     24663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24664  (eval $ac_try) 2>&5
     24665  ac_status=$?
     24666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24667  (exit $ac_status); }; } &&
     24668         { ac_try='test -s conftest$ac_exeext'
     24669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24670  (eval $ac_try) 2>&5
     24671  ac_status=$?
     24672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24673  (exit $ac_status); }; }; then
     24674  echo "$as_me:$LINENO: result: yes" >&5
     24675echo "${ECHO_T}yes" >&6
     24676                       ADDLIBS="-llapack $ADDLIBS"
     24677                       use_lapack='-llapack'
     24678else
     24679  echo "$as_me: failed program was:" >&5
     24680sed 's/^/| /' conftest.$ac_ext >&5
     24681
     24682echo "$as_me:$LINENO: result: no" >&5
     24683echo "${ECHO_T}no" >&6
     24684                       LIBS="$SAVE_LIBS"
     24685fi
     24686rm -f conftest.err conftest.$ac_objext \
     24687      conftest$ac_exeext conftest.$ac_ext
     24688    ;;
     24689  c)
     24690    ac_ext=f
     24691ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24692ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24693ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24694case $ac_cv_f77_mangling in
     24695  upper*) ac_val="DSYEV" ;;
     24696  lower*) ac_val="dsyev" ;;
     24697  *)      ac_val="unknown" ;;
     24698esac
     24699case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24700
     24701cfuncdsyev="$ac_val"
     24702
     24703ac_ext=c
     24704ac_cpp='$CPP $CPPFLAGS'
     24705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24707ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24708
     24709    if test x"$coin_need_flibs" = xyes; then
     24710      flink_try=no;
     24711    else
     24712      cat >conftest.$ac_ext <<_ACEOF
     24713/* confdefs.h.  */
     24714_ACEOF
     24715cat confdefs.h >>conftest.$ac_ext
     24716cat >>conftest.$ac_ext <<_ACEOF
     24717/* end confdefs.h.  */
     24718void $cfuncdsyev();
     24719#ifdef F77_DUMMY_MAIN
     24720
     24721#  ifdef __cplusplus
     24722     extern "C"
     24723#  endif
     24724   int F77_DUMMY_MAIN() { return 1; }
     24725
     24726#endif
     24727int
     24728main ()
     24729{
     24730$cfuncdsyev()
     24731  ;
     24732  return 0;
     24733}
     24734_ACEOF
     24735rm -f conftest.$ac_objext conftest$ac_exeext
     24736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24737  (eval $ac_link) 2>conftest.er1
     24738  ac_status=$?
     24739  grep -v '^ *+' conftest.er1 >conftest.err
     24740  rm -f conftest.er1
     24741  cat conftest.err >&5
     24742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24743  (exit $ac_status); } &&
     24744         { ac_try='test -z "$ac_c_werror_flag"
     24745                         || test ! -s conftest.err'
     24746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24747  (eval $ac_try) 2>&5
     24748  ac_status=$?
     24749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24750  (exit $ac_status); }; } &&
     24751         { ac_try='test -s conftest$ac_exeext'
     24752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24753  (eval $ac_try) 2>&5
     24754  ac_status=$?
     24755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24756  (exit $ac_status); }; }; then
     24757  flink_try=yes
     24758else
     24759  echo "$as_me: failed program was:" >&5
     24760sed 's/^/| /' conftest.$ac_ext >&5
     24761
     24762flink_try=no
     24763fi
     24764rm -f conftest.err conftest.$ac_objext \
     24765      conftest$ac_exeext conftest.$ac_ext
     24766    fi
     24767    if test $flink_try = yes; then
     24768      echo "$as_me:$LINENO: result: yes" >&5
     24769echo "${ECHO_T}yes" >&6
     24770                       ADDLIBS="-llapack $ADDLIBS"
     24771                       use_lapack='-llapack'
     24772    else
     24773      if test x"$FLIBS" != x; then
     24774        flink_save_libs="$LIBS"
     24775        LIBS="$LIBS $FLIBS"
     24776        cat >conftest.$ac_ext <<_ACEOF
     24777/* confdefs.h.  */
     24778_ACEOF
     24779cat confdefs.h >>conftest.$ac_ext
     24780cat >>conftest.$ac_ext <<_ACEOF
     24781/* end confdefs.h.  */
     24782void $cfuncdsyev();
     24783#ifdef F77_DUMMY_MAIN
     24784
     24785#  ifdef __cplusplus
     24786     extern "C"
     24787#  endif
     24788   int F77_DUMMY_MAIN() { return 1; }
     24789
     24790#endif
     24791int
     24792main ()
     24793{
     24794$cfuncdsyev()
     24795  ;
     24796  return 0;
     24797}
     24798_ACEOF
     24799rm -f conftest.$ac_objext conftest$ac_exeext
     24800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24801  (eval $ac_link) 2>conftest.er1
     24802  ac_status=$?
     24803  grep -v '^ *+' conftest.er1 >conftest.err
     24804  rm -f conftest.er1
     24805  cat conftest.err >&5
     24806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24807  (exit $ac_status); } &&
     24808         { ac_try='test -z "$ac_c_werror_flag"
     24809                         || test ! -s conftest.err'
     24810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24811  (eval $ac_try) 2>&5
     24812  ac_status=$?
     24813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24814  (exit $ac_status); }; } &&
     24815         { ac_try='test -s conftest$ac_exeext'
     24816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24817  (eval $ac_try) 2>&5
     24818  ac_status=$?
     24819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24820  (exit $ac_status); }; }; then
     24821  LIBS="$flink_save_libs"
     24822                     echo "$as_me:$LINENO: result: yes" >&5
     24823echo "${ECHO_T}yes" >&6
     24824                       ADDLIBS="-llapack $ADDLIBS"
     24825                       use_lapack='-llapack'
     24826                     coin_need_flibs=yes
     24827else
     24828  echo "$as_me: failed program was:" >&5
     24829sed 's/^/| /' conftest.$ac_ext >&5
     24830
     24831LIBS="$flink_save_libs"
     24832                     echo "$as_me:$LINENO: result: no" >&5
     24833echo "${ECHO_T}no" >&6
     24834                       LIBS="$SAVE_LIBS"
     24835fi
     24836rm -f conftest.err conftest.$ac_objext \
     24837      conftest$ac_exeext conftest.$ac_ext
     24838      else
     24839        echo "$as_me:$LINENO: result: no" >&5
     24840echo "${ECHO_T}no" >&6
     24841                       LIBS="$SAVE_LIBS"
     24842      fi
     24843    fi
     24844    ;;
     24845  cc|cpp)
     24846    ac_ext=f
     24847ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     24848ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24849ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     24850case $ac_cv_f77_mangling in
     24851  upper*) ac_val="DSYEV" ;;
     24852  lower*) ac_val="dsyev" ;;
     24853  *)      ac_val="unknown" ;;
     24854esac
     24855case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     24856
     24857cfuncdsyev="$ac_val"
     24858
     24859ac_ext=c
     24860ac_cpp='$CPP $CPPFLAGS'
     24861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     24862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     24863ac_compiler_gnu=$ac_cv_c_compiler_gnu
     24864
     24865    if test x"$coin_need_flibs" = xyes; then
     24866      flink_try=no;
     24867    else
     24868      cat >conftest.$ac_ext <<_ACEOF
     24869/* confdefs.h.  */
     24870_ACEOF
     24871cat confdefs.h >>conftest.$ac_ext
     24872cat >>conftest.$ac_ext <<_ACEOF
     24873/* end confdefs.h.  */
     24874extern "C" {void $cfuncdsyev();}
     24875#ifdef F77_DUMMY_MAIN
     24876
     24877#  ifdef __cplusplus
     24878     extern "C"
     24879#  endif
     24880   int F77_DUMMY_MAIN() { return 1; }
     24881
     24882#endif
     24883int
     24884main ()
     24885{
     24886$cfuncdsyev()
     24887  ;
     24888  return 0;
     24889}
     24890_ACEOF
     24891rm -f conftest.$ac_objext conftest$ac_exeext
     24892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24893  (eval $ac_link) 2>conftest.er1
     24894  ac_status=$?
     24895  grep -v '^ *+' conftest.er1 >conftest.err
     24896  rm -f conftest.er1
     24897  cat conftest.err >&5
     24898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24899  (exit $ac_status); } &&
     24900         { ac_try='test -z "$ac_c_werror_flag"
     24901                         || test ! -s conftest.err'
     24902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24903  (eval $ac_try) 2>&5
     24904  ac_status=$?
     24905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24906  (exit $ac_status); }; } &&
     24907         { ac_try='test -s conftest$ac_exeext'
     24908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24909  (eval $ac_try) 2>&5
     24910  ac_status=$?
     24911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24912  (exit $ac_status); }; }; then
     24913  flink_try=yes
     24914else
     24915  echo "$as_me: failed program was:" >&5
     24916sed 's/^/| /' conftest.$ac_ext >&5
     24917
     24918flink_try=no
     24919fi
     24920rm -f conftest.err conftest.$ac_objext \
     24921      conftest$ac_exeext conftest.$ac_ext
     24922    fi
     24923    if test $flink_try = yes; then
     24924      echo "$as_me:$LINENO: result: yes" >&5
     24925echo "${ECHO_T}yes" >&6
     24926                       ADDLIBS="-llapack $ADDLIBS"
     24927                       use_lapack='-llapack'
     24928    else
     24929      if test x"$FLIBS" != x; then
     24930        flink_save_libs="$LIBS"
     24931        LIBS="$LIBS $FLIBS"
     24932        cat >conftest.$ac_ext <<_ACEOF
     24933/* confdefs.h.  */
     24934_ACEOF
     24935cat confdefs.h >>conftest.$ac_ext
     24936cat >>conftest.$ac_ext <<_ACEOF
     24937/* end confdefs.h.  */
     24938extern "C" {void $cfuncdsyev();}
     24939#ifdef F77_DUMMY_MAIN
     24940
     24941#  ifdef __cplusplus
     24942     extern "C"
     24943#  endif
     24944   int F77_DUMMY_MAIN() { return 1; }
     24945
     24946#endif
     24947int
     24948main ()
     24949{
     24950$cfuncdsyev()
     24951  ;
     24952  return 0;
     24953}
     24954_ACEOF
     24955rm -f conftest.$ac_objext conftest$ac_exeext
     24956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     24957  (eval $ac_link) 2>conftest.er1
     24958  ac_status=$?
     24959  grep -v '^ *+' conftest.er1 >conftest.err
     24960  rm -f conftest.er1
     24961  cat conftest.err >&5
     24962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24963  (exit $ac_status); } &&
     24964         { ac_try='test -z "$ac_c_werror_flag"
     24965                         || test ! -s conftest.err'
     24966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24967  (eval $ac_try) 2>&5
     24968  ac_status=$?
     24969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24970  (exit $ac_status); }; } &&
     24971         { ac_try='test -s conftest$ac_exeext'
     24972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     24973  (eval $ac_try) 2>&5
     24974  ac_status=$?
     24975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     24976  (exit $ac_status); }; }; then
     24977  LIBS="$flink_save_libs"
     24978                     echo "$as_me:$LINENO: result: yes" >&5
     24979echo "${ECHO_T}yes" >&6
     24980                       ADDLIBS="-llapack $ADDLIBS"
     24981                       use_lapack='-llapack'
     24982                     coin_need_flibs=yes
     24983else
     24984  echo "$as_me: failed program was:" >&5
     24985sed 's/^/| /' conftest.$ac_ext >&5
     24986
     24987LIBS="$flink_save_libs"
     24988                     echo "$as_me:$LINENO: result: no" >&5
     24989echo "${ECHO_T}no" >&6
     24990                       LIBS="$SAVE_LIBS"
     24991fi
     24992rm -f conftest.err conftest.$ac_objext \
     24993      conftest$ac_exeext conftest.$ac_ext
     24994      else
     24995        echo "$as_me:$LINENO: result: no" >&5
     24996echo "${ECHO_T}no" >&6
     24997                       LIBS="$SAVE_LIBS"
     24998      fi
     24999    fi
     25000    ;;
     25001esac
     25002
     25003  fi
     25004
     25005# If we have no other ideas, consider building LAPACK.
     25006  if test -z "$use_lapack"; then
     25007    if test "$PACKAGE_NAME" != ThirdPartyLapack; then
     25008      if test -r $coin_lapackobjdir/.MakeOk; then
     25009        use_lapack=BUILD
     25010      fi
    2040925011    fi
    2041025012  fi
    2041125013fi
    2041225014
    20413 if test $coin_has_lapack != unavailable &&
    20414    test $coin_has_lapack != skipping; then
    20415   # Set the #define if the component is available
     25015if test "$use_lapack" = BUILD; then
     25016  coin_need_flibs=yes
     25017fi
     25018
     25019
     25020
     25021if test x"$use_lapack" != x; then
     25022  COIN_HAS_LAPACK_TRUE=
     25023  COIN_HAS_LAPACK_FALSE='#'
     25024else
     25025  COIN_HAS_LAPACK_TRUE='#'
     25026  COIN_HAS_LAPACK_FALSE=
     25027fi
     25028
     25029
     25030
     25031if test "$use_lapack" = BUILD; then
     25032  COIN_BUILD_LAPACK_TRUE=
     25033  COIN_BUILD_LAPACK_FALSE='#'
     25034else
     25035  COIN_BUILD_LAPACK_TRUE='#'
     25036  COIN_BUILD_LAPACK_FALSE=
     25037fi
     25038
     25039
     25040if test x"$use_lapack" = x || test "$use_lapack" = no; then
     25041  coin_has_lapack=no
     25042else
     25043  coin_has_lapack=yes
    2041625044
    2041725045cat >>confdefs.h <<\_ACEOF
     
    2041925047_ACEOF
    2042025048
    20421 
    20422   # Set the variables for source and object code location
    20423 
    20424   LAPACKSRCDIR=`cd $srcdir/$coin_has_lapack; pwd`
    20425 
    20426   LAPACKOBJDIR=`pwd`/$coin_has_lapack
    20427 
    20428   LAPACKDOCDIR=$abs_lib_dir/../share/doc/coin/Lapack
    20429 fi
    20430 
    20431   # Define the Makefile conditional
    20432 
    20433 
    20434 if test $coin_has_lapack != unavailable &&
    20435                 test $coin_has_lapack != skipping; then
    20436   COIN_HAS_LAPACK_TRUE=
    20437   COIN_HAS_LAPACK_FALSE='#'
    20438 else
    20439   COIN_HAS_LAPACK_TRUE='#'
    20440   COIN_HAS_LAPACK_FALSE=
    20441 fi
    20442 
    20443 echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
    20444 echo "${ECHO_T}$coin_has_lapack" >&6
    20445 
    20446 
    20447 # Check if Lapack is already available on the system or provided by user
    20448 #save_LIBS="$LIBS"
    20449 #AC_COIN_HAS_BLAS
    20450 #LIBS="$save_LIBS" # we need to make sure that blas libraries are not in LIBS
    20451 
    20452 #AC_COIN_HAS_LAPACK
    20453 #MAKEOKFILE=.MakeOk
    20454 #if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then
    20455 #  rm -f $MAKEOKFILE
    20456 #  AC_MSG_NOTICE([The Lapack sources don't need to be compiled])
    20457 #  MAKEOKFILE=
    20458 #else
    20459 #  touch $MAKEOKFILE
    20460 #fi
    20461 #AC_SUBST(MAKEOKFILE)
    20462 #AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     25049fi
     25050
     25051MAKEOKFILE=.MakeOk
     25052if test $coin_has_lapack = yes && test "$use_lapack" != BUILD; then
     25053  rm -f $MAKEOKFILE
     25054  { echo "$as_me:$LINENO: The Lapack sources don't need to be compiled" >&5
     25055echo "$as_me: The Lapack sources don't need to be compiled" >&6;}
     25056  MAKEOKFILE=
     25057else
     25058  touch $MAKEOKFILE
     25059fi
     25060
     25061
     25062
     25063if test -z "$MAKEOKFILE"; then
     25064  SKIPMAKE_TRUE=
     25065  SKIPMAKE_FALSE='#'
     25066else
     25067  SKIPMAKE_TRUE='#'
     25068  SKIPMAKE_FALSE=
     25069fi
     25070
    2046325071
    2046425072#############################################################################
     
    2046625074#############################################################################
    2046725075
    20468 #if test x"$MAKEOKFILE" != x; then
     25076if test x"$MAKEOKFILE" != x; then
    2046925077  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'
    2047025078  for file in $lapack_source_files; do
     
    2047725085
    2047825086  done
    20479 #fi
    20480 
    20481                                         ac_config_files="$ac_config_files Makefile lapack_addlibs.txt lapack.pc lapack-uninstalled.pc"
     25087fi
     25088
     25089          ac_config_files="$ac_config_files Makefile"
    2048225090
    2048325091
     
    2071025318   { (exit 1); exit 1; }; }
    2071125319fi
     25320if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then
     25321  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     25322Usually this means the macro was only invoked conditionally." >&5
     25323echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined.
     25324Usually this means the macro was only invoked conditionally." >&2;}
     25325   { (exit 1); exit 1; }; }
     25326fi
    2071225327if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
    2071325328  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
    2071425329Usually this means the macro was only invoked conditionally." >&5
    2071525330echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
     25331Usually this means the macro was only invoked conditionally." >&2;}
     25332   { (exit 1); exit 1; }; }
     25333fi
     25334if test -z "${COIN_BUILD_LAPACK_TRUE}" && test -z "${COIN_BUILD_LAPACK_FALSE}"; then
     25335  { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     25336Usually this means the macro was only invoked conditionally." >&5
     25337echo "$as_me: error: conditional \"COIN_BUILD_LAPACK\" was never defined.
     25338Usually this means the macro was only invoked conditionally." >&2;}
     25339   { (exit 1); exit 1; }; }
     25340fi
     25341if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
     25342  { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
     25343Usually this means the macro was only invoked conditionally." >&5
     25344echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2071625345Usually this means the macro was only invoked conditionally." >&2;}
    2071725346   { (exit 1); exit 1; }; }
     
    2116025789  # Handling of arguments.
    2116125790  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    21162   "lapack_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES lapack_addlibs.txt" ;;
    21163   "lapack.pc" ) CONFIG_FILES="$CONFIG_FILES lapack.pc" ;;
    21164   "lapack-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES lapack-uninstalled.pc" ;;
    2116525791  "$file" ) CONFIG_LINKS="$CONFIG_LINKS $file:LAPACK/SRC/$file" ;;
    2116625792  "$file_in_install" ) CONFIG_LINKS="$CONFIG_LINKS $file_in_install:LAPACK/INSTALL/$file_in_install" ;;
     
    2135025976s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2135125977s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    21352 s,@BLASSRCDIR@,$BLASSRCDIR,;t t
    21353 s,@BLASOBJDIR@,$BLASOBJDIR,;t t
    21354 s,@BLASDOCDIR@,$BLASDOCDIR,;t t
     25978s,@FLIBS@,$FLIBS,;t t
    2135525979s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
    2135625980s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    21357 s,@LAPACKSRCDIR@,$LAPACKSRCDIR,;t t
    21358 s,@LAPACKOBJDIR@,$LAPACKOBJDIR,;t t
    21359 s,@LAPACKDOCDIR@,$LAPACKDOCDIR,;t t
     25981s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t
     25982s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t
    2136025983s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
    2136125984s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
     25985s,@COIN_BUILD_LAPACK_TRUE@,$COIN_BUILD_LAPACK_TRUE,;t t
     25986s,@COIN_BUILD_LAPACK_FALSE@,$COIN_BUILD_LAPACK_FALSE,;t t
     25987s,@MAKEOKFILE@,$MAKEOKFILE,;t t
     25988s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
     25989s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2136225990s,@LIBEXT@,$LIBEXT,;t t
    2136325991s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
Note: See TracChangeset for help on using the changeset viewer.