source: ThirdParty/Lapack/stable/1.4/configure @ 3026

Last change on this file since 3026 was 3026, checked in by stefan, 8 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 842.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.4.8.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='1.4.8'
433PACKAGE_STRING='ThirdPartyLapack 1.4.8'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV 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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack 1.4.8 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack 1.4.8:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-lapack compile project Lapack with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --disable-interpackage-dependencies
1088                          disables deduction of Makefile dependencies from
1089                          package linker flags
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --disable-dependency-tracking  speeds up one-time build
1093  --enable-dependency-tracking   do not reject slow dependency extractors
1094  --enable-maintainer-mode  enable make rules and dependencies not useful
1095                          (and sometimes confusing) to the casual installer
1096  --enable-shared[=PKGS]
1097                          build shared libraries [default=yes]
1098  --enable-fast-install[=PKGS]
1099                          optimize for fast installation [default=yes]
1100  --disable-libtool-lock  avoid locking (might break parallel builds)
1101
1102Optional Packages:
1103  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1104  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1105  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1106  --with-lapack-checklevel
1107                          specify the sanity check level for project Lapack
1108  --with-blas             specify BLAS library (or BUILD to enforce use of
1109                          ThirdParty/Blas)
1110
1111  --with-coin-instdir     prefix of installation directory for precompiled
1112                          COIN packages
1113  --with-blas-lib linker flags for using package Blas
1114  --with-blas-incdir directory with header files for using package Blas
1115  --with-blas-datadir directory with data files for using package Blas
1116  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1117  --with-pic              try to use only PIC/non-PIC objects [default=use
1118                          both]
1119  --with-tags[=TAGS]
1120                          include additional configurations [automatic]
1121
1122Some influential environment variables:
1123  CDEFS       Additional -D flags to be used when compiling C code.
1124  ADD_CFLAGS  Additional C compiler options
1125  DBG_CFLAGS  Debug C compiler options
1126  OPT_CFLAGS  Optimize C compiler options
1127  CC          C compiler command
1128  CFLAGS      C compiler flags
1129  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1130              nonstandard directory <lib dir>
1131  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1132              headers in a nonstandard directory <include dir>
1133  MPICC       C MPI Compiler
1134  ADD_FFLAGS  Additional Fortran compiler options
1135  DBG_FFLAGS  Debug Fortran compiler options
1136  OPT_FFLAGS  Optimize Fortran compiler options
1137  F77         Fortran 77 compiler command
1138  FFLAGS      Fortran 77 compiler flags
1139  MPIF77      Fortran MPI Compiler
1140  PKG_CONFIG  path to pkg-config utility
1141  DLAMCH_FFLAGS
1142              Fortran compiler options for DLAMCH.F
1143  CPP         C preprocessor
1144  CXX         C++ compiler command
1145  CXXFLAGS    C++ compiler flags
1146  CXXCPP      C++ preprocessor
1147
1148Use these variables to override the choices made by `configure' or to help
1149it to find libraries and programs with nonstandard names/locations.
1150
1151Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1152_ACEOF
1153fi
1154
1155if test "$ac_init_help" = "recursive"; then
1156  # If there are subdirs, report their specific --help.
1157  ac_popdir=`pwd`
1158  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1159    test -d $ac_dir || continue
1160    ac_builddir=.
1161
1162if test "$ac_dir" != .; then
1163  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1164  # A "../" for each directory in $ac_dir_suffix.
1165  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1166else
1167  ac_dir_suffix= ac_top_builddir=
1168fi
1169
1170case $srcdir in
1171  .)  # No --srcdir option.  We are building in place.
1172    ac_srcdir=.
1173    if test -z "$ac_top_builddir"; then
1174       ac_top_srcdir=.
1175    else
1176       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1177    fi ;;
1178  [\\/]* | ?:[\\/]* )  # Absolute path.
1179    ac_srcdir=$srcdir$ac_dir_suffix;
1180    ac_top_srcdir=$srcdir ;;
1181  *) # Relative path.
1182    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1183    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1184esac
1185
1186# Do not use `cd foo && pwd` to compute absolute paths, because
1187# the directories may not exist.
1188case `pwd` in
1189.) ac_abs_builddir="$ac_dir";;
1190*)
1191  case "$ac_dir" in
1192  .) ac_abs_builddir=`pwd`;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1194  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_top_builddir=${ac_top_builddir}.;;
1199*)
1200  case ${ac_top_builddir}. in
1201  .) ac_abs_top_builddir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1203  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_srcdir=$ac_srcdir;;
1208*)
1209  case $ac_srcdir in
1210  .) ac_abs_srcdir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1212  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1213  esac;;
1214esac
1215case $ac_abs_builddir in
1216.) ac_abs_top_srcdir=$ac_top_srcdir;;
1217*)
1218  case $ac_top_srcdir in
1219  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1220  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1221  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1222  esac;;
1223esac
1224
1225    cd $ac_dir
1226    # Check for guested configure; otherwise get Cygnus style configure.
1227    if test -f $ac_srcdir/configure.gnu; then
1228      echo
1229      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1230    elif test -f $ac_srcdir/configure; then
1231      echo
1232      $SHELL $ac_srcdir/configure  --help=recursive
1233    elif test -f $ac_srcdir/configure.ac ||
1234           test -f $ac_srcdir/configure.in; then
1235      echo
1236      $ac_configure --help
1237    else
1238      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1239    fi
1240    cd $ac_popdir
1241  done
1242fi
1243
1244test -n "$ac_init_help" && exit 0
1245if $ac_init_version; then
1246  cat <<\_ACEOF
1247ThirdPartyLapack configure 1.4.8
1248generated by GNU Autoconf 2.59
1249
1250Copyright (C) 2003 Free Software Foundation, Inc.
1251This configure script is free software; the Free Software Foundation
1252gives unlimited permission to copy, distribute and modify it.
1253
1254
1255Copyright 2006 International Business Machines and others.
1256All Rights Reserved.
1257This file is part of the open source package Coin which is distributed
1258under the Eclipse Public License.
1259_ACEOF
1260  exit 0
1261fi
1262exec 5>config.log
1263cat >&5 <<_ACEOF
1264This file contains any messages produced by compilers while
1265running configure, to aid debugging if configure makes a mistake.
1266
1267It was created by ThirdPartyLapack $as_me 1.4.8, which was
1268generated by GNU Autoconf 2.59.  Invocation command line was
1269
1270  $ $0 $@
1271
1272_ACEOF
1273{
1274cat <<_ASUNAME
1275## --------- ##
1276## Platform. ##
1277## --------- ##
1278
1279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1280uname -m = `(uname -m) 2>/dev/null || echo unknown`
1281uname -r = `(uname -r) 2>/dev/null || echo unknown`
1282uname -s = `(uname -s) 2>/dev/null || echo unknown`
1283uname -v = `(uname -v) 2>/dev/null || echo unknown`
1284
1285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1286/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1287
1288/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1289/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1291hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1292/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1293/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1294/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1295
1296_ASUNAME
1297
1298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1299for as_dir in $PATH
1300do
1301  IFS=$as_save_IFS
1302  test -z "$as_dir" && as_dir=.
1303  echo "PATH: $as_dir"
1304done
1305
1306} >&5
1307
1308cat >&5 <<_ACEOF
1309
1310
1311## ----------- ##
1312## Core tests. ##
1313## ----------- ##
1314
1315_ACEOF
1316
1317
1318# Keep a trace of the command line.
1319# Strip out --no-create and --no-recursion so they do not pile up.
1320# Strip out --silent because we don't want to record it for future runs.
1321# Also quote any args containing shell meta-characters.
1322# Make two passes to allow for proper duplicate-argument suppression.
1323ac_configure_args=
1324ac_configure_args0=
1325ac_configure_args1=
1326ac_sep=
1327ac_must_keep_next=false
1328for ac_pass in 1 2
1329do
1330  for ac_arg
1331  do
1332    case $ac_arg in
1333    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1334    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335    | -silent | --silent | --silen | --sile | --sil)
1336      continue ;;
1337    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1339    esac
1340    case $ac_pass in
1341    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1342    2)
1343      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1344      if test $ac_must_keep_next = true; then
1345        ac_must_keep_next=false # Got value, back to normal.
1346      else
1347        case $ac_arg in
1348          *=* | --config-cache | -C | -disable-* | --disable-* \
1349          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1350          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1351          | -with-* | --with-* | -without-* | --without-* | --x)
1352            case "$ac_configure_args0 " in
1353              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1354            esac
1355            ;;
1356          -* ) ac_must_keep_next=true ;;
1357        esac
1358      fi
1359      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1360      # Get rid of the leading space.
1361      ac_sep=" "
1362      ;;
1363    esac
1364  done
1365done
1366$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1367$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1368
1369# When interrupted or exit'd, cleanup temporary files, and complete
1370# config.log.  We remove comments because anyway the quotes in there
1371# would cause problems or look ugly.
1372# WARNING: Be sure not to use single quotes in there, as some shells,
1373# such as our DU 5.0 friend, will then `close' the trap.
1374trap 'exit_status=$?
1375  # Save into config.log some information that might help in debugging.
1376  {
1377    echo
1378
1379    cat <<\_ASBOX
1380## ---------------- ##
1381## Cache variables. ##
1382## ---------------- ##
1383_ASBOX
1384    echo
1385    # The following way of writing the cache mishandles newlines in values,
1386{
1387  (set) 2>&1 |
1388    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1389    *ac_space=\ *)
1390      sed -n \
1391        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1392          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1393      ;;
1394    *)
1395      sed -n \
1396        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1397      ;;
1398    esac;
1399}
1400    echo
1401
1402    cat <<\_ASBOX
1403## ----------------- ##
1404## Output variables. ##
1405## ----------------- ##
1406_ASBOX
1407    echo
1408    for ac_var in $ac_subst_vars
1409    do
1410      eval ac_val=$`echo $ac_var`
1411      echo "$ac_var='"'"'$ac_val'"'"'"
1412    done | sort
1413    echo
1414
1415    if test -n "$ac_subst_files"; then
1416      cat <<\_ASBOX
1417## ------------- ##
1418## Output files. ##
1419## ------------- ##
1420_ASBOX
1421      echo
1422      for ac_var in $ac_subst_files
1423      do
1424        eval ac_val=$`echo $ac_var`
1425        echo "$ac_var='"'"'$ac_val'"'"'"
1426      done | sort
1427      echo
1428    fi
1429
1430    if test -s confdefs.h; then
1431      cat <<\_ASBOX
1432## ----------- ##
1433## confdefs.h. ##
1434## ----------- ##
1435_ASBOX
1436      echo
1437      sed "/^$/d" confdefs.h | sort
1438      echo
1439    fi
1440    test "$ac_signal" != 0 &&
1441      echo "$as_me: caught signal $ac_signal"
1442    echo "$as_me: exit $exit_status"
1443  } >&5
1444  rm -f core *.core &&
1445  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1446    exit $exit_status
1447     ' 0
1448for ac_signal in 1 2 13 15; do
1449  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1450done
1451ac_signal=0
1452
1453# confdefs.h avoids OS command line length limits that DEFS can exceed.
1454rm -rf conftest* confdefs.h
1455# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1456echo >confdefs.h
1457
1458# Predefined preprocessor variables.
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_NAME "$PACKAGE_NAME"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_VERSION "$PACKAGE_VERSION"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_STRING "$PACKAGE_STRING"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1482_ACEOF
1483
1484
1485# Let the site file select an alternate cache file if it wants to.
1486# Prefer explicitly selected file to automatically selected ones.
1487if test -z "$CONFIG_SITE"; then
1488  if test "x$prefix" != xNONE; then
1489    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1490  else
1491    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1492  fi
1493fi
1494for ac_site_file in $CONFIG_SITE; do
1495  if test -r "$ac_site_file"; then
1496    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1497echo "$as_me: loading site script $ac_site_file" >&6;}
1498    sed 's/^/| /' "$ac_site_file" >&5
1499    . "$ac_site_file"
1500  fi
1501done
1502
1503if test -r "$cache_file"; then
1504  # Some versions of bash will fail to source /dev/null (special
1505  # files actually), so we avoid doing that.
1506  if test -f "$cache_file"; then
1507    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1508echo "$as_me: loading cache $cache_file" >&6;}
1509    case $cache_file in
1510      [\\/]* | ?:[\\/]* ) . $cache_file;;
1511      *)                      . ./$cache_file;;
1512    esac
1513  fi
1514else
1515  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1516echo "$as_me: creating cache $cache_file" >&6;}
1517  >$cache_file
1518fi
1519
1520# Check that the precious variables saved in the cache have kept the same
1521# value.
1522ac_cache_corrupted=false
1523for ac_var in `(set) 2>&1 |
1524               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1525  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1526  eval ac_new_set=\$ac_env_${ac_var}_set
1527  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1528  eval ac_new_val="\$ac_env_${ac_var}_value"
1529  case $ac_old_set,$ac_new_set in
1530    set,)
1531      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1532echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1533      ac_cache_corrupted=: ;;
1534    ,set)
1535      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1536echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1537      ac_cache_corrupted=: ;;
1538    ,);;
1539    *)
1540      if test "x$ac_old_val" != "x$ac_new_val"; then
1541        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1542echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1543        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1544echo "$as_me:   former value:  $ac_old_val" >&2;}
1545        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1546echo "$as_me:   current value: $ac_new_val" >&2;}
1547        ac_cache_corrupted=:
1548      fi;;
1549  esac
1550  # Pass precious variables to config.status.
1551  if test "$ac_new_set" = set; then
1552    case $ac_new_val in
1553    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1554      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1555    *) ac_arg=$ac_var=$ac_new_val ;;
1556    esac
1557    case " $ac_configure_args " in
1558      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1559      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1560    esac
1561  fi
1562done
1563if $ac_cache_corrupted; then
1564  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1565echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1566  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1567echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1568   { (exit 1); exit 1; }; }
1569fi
1570
1571ac_ext=c
1572ac_cpp='$CPP $CPPFLAGS'
1573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1575ac_compiler_gnu=$ac_cv_c_compiler_gnu
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606# List one file in the package so that the configure script can test
1607# whether the package is actually there
1608
1609
1610# Where should everything be installed by default?  Here, we want it
1611# to be installed directly in 'bin', 'lib', 'include' subdirectories
1612# of the directory where configure is run.  The default would be
1613# /usr/local.
1614
1615
1616
1617# As backup, we make sure we don't loose an FLIBS if it has been set
1618# by the user
1619save_FLIBS="$FLIBS"
1620
1621# A useful makefile conditional that is always false
1622
1623
1624if false; then
1625  ALWAYS_FALSE_TRUE=
1626  ALWAYS_FALSE_FALSE='#'
1627else
1628  ALWAYS_FALSE_TRUE='#'
1629  ALWAYS_FALSE_FALSE=
1630fi
1631
1632
1633# We set the following variable so that we know later in AC_COIN_FINALIZE
1634# that we are in a project main directory
1635coin_projectdir=yes
1636
1637# Set the project's version numbers
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define LAPACK_VERSION "$PACKAGE_VERSION"
1642_ACEOF
1643
1644
1645  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1646  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1647  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1648  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1649  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1650  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1651
1652cat >>confdefs.h <<_ACEOF
1653#define LAPACK_VERSION_MAJOR $coin_majorver
1654_ACEOF
1655
1656
1657cat >>confdefs.h <<_ACEOF
1658#define LAPACK_VERSION_MINOR $coin_minorver
1659_ACEOF
1660
1661
1662cat >>confdefs.h <<_ACEOF
1663#define LAPACK_VERSION_RELEASE $coin_releasever
1664_ACEOF
1665
1666
1667  # We use the following variable to have a string with the upper case
1668  # version of the project name
1669  COIN_PRJCT=LAPACK
1670
1671  # Set the project's SVN revision number. The complicated sed expression
1672  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1673  # as a single number.
1674  # Extract the first word of "svnversion", so it can be a program name with args.
1675set dummy svnversion; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_have_svnversion+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  if test -n "$have_svnversion"; then
1682  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1683else
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687  IFS=$as_save_IFS
1688  test -z "$as_dir" && as_dir=.
1689  for ac_exec_ext in '' $ac_executable_extensions; do
1690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691    ac_cv_prog_have_svnversion="yes"
1692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693    break 2
1694  fi
1695done
1696done
1697
1698  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1699fi
1700fi
1701have_svnversion=$ac_cv_prog_have_svnversion
1702if test -n "$have_svnversion"; then
1703  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1704echo "${ECHO_T}$have_svnversion" >&6
1705else
1706  echo "$as_me:$LINENO: result: no" >&5
1707echo "${ECHO_T}no" >&6
1708fi
1709
1710  if test "x$have_svnversion" = xyes; then
1711
1712    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1713    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1714      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1715
1716cat >>confdefs.h <<_ACEOF
1717#define LAPACK_SVN_REV $LAPACK_SVN_REV
1718_ACEOF
1719
1720    fi
1721  fi
1722
1723
1724
1725# Capture libtool library version, if given.
1726 coin_libversion=5:8:4
1727
1728
1729
1730
1731#############################################################################
1732#                         Standard build tool stuff                         #
1733#############################################################################
1734
1735# Get the system type
1736ac_aux_dir=
1737for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1738  if test -f $ac_dir/install-sh; then
1739    ac_aux_dir=$ac_dir
1740    ac_install_sh="$ac_aux_dir/install-sh -c"
1741    break
1742  elif test -f $ac_dir/install.sh; then
1743    ac_aux_dir=$ac_dir
1744    ac_install_sh="$ac_aux_dir/install.sh -c"
1745    break
1746  elif test -f $ac_dir/shtool; then
1747    ac_aux_dir=$ac_dir
1748    ac_install_sh="$ac_aux_dir/shtool install -c"
1749    break
1750  fi
1751done
1752if test -z "$ac_aux_dir"; then
1753  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1754echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1755   { (exit 1); exit 1; }; }
1756fi
1757ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1758ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1759ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1760
1761# Make sure we can run config.sub.
1762$ac_config_sub sun4 >/dev/null 2>&1 ||
1763  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1765   { (exit 1); exit 1; }; }
1766
1767echo "$as_me:$LINENO: checking build system type" >&5
1768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1769if test "${ac_cv_build+set}" = set; then
1770  echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772  ac_cv_build_alias=$build_alias
1773test -z "$ac_cv_build_alias" &&
1774  ac_cv_build_alias=`$ac_config_guess`
1775test -z "$ac_cv_build_alias" &&
1776  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1778   { (exit 1); exit 1; }; }
1779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1780  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1782   { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1786echo "${ECHO_T}$ac_cv_build" >&6
1787build=$ac_cv_build
1788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793
1794#turn off warnings and pedantic mode since they could make trouble on some platforms,
1795#and we couldn't fix them anyway
1796coin_skip_warn_fflags=yes
1797
1798# Check if user wants to produce debugging code
1799
1800echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1801echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1802
1803# Check whether --enable-debug or --disable-debug was given.
1804if test "${enable_debug+set}" = set; then
1805  enableval="$enable_debug"
1806  case "${enableval}" in
1807   yes) coin_debug_compile=true
1808        if test "${enable_shared+set}" = set; then :; else
1809          enable_shared=no
1810        fi
1811        ;;
1812   no)  coin_debug_compile=false
1813        ;;
1814   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1815echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1816   { (exit 1); exit 1; }; }
1817        ;;
1818esac
1819else
1820  coin_debug_compile=false
1821fi;
1822
1823# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1824if test "${enable_debug_lapack+set}" = set; then
1825  enableval="$enable_debug_lapack"
1826  case "${enableval}" in
1827    yes) coin_debug_compile=true
1828         ;;
1829    no)  coin_debug_compile=false
1830         ;;
1831    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1832echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1833   { (exit 1); exit 1; }; }
1834         ;;
1835 esac
1836else
1837  :
1838fi;
1839
1840 # m4_ifvaln([Lapack],
1841
1842if test $coin_debug_compile = true; then
1843  echo "$as_me:$LINENO: result: yes" >&5
1844echo "${ECHO_T}yes" >&6
1845else
1846  echo "$as_me:$LINENO: result: no" >&5
1847echo "${ECHO_T}no" >&6
1848fi
1849
1850
1851# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1852if test "${with_lapack_verbosity+set}" = set; then
1853  withval="$with_lapack_verbosity"
1854  if test "$withval" = yes; then
1855                withval=1
1856              fi
1857              coin_lapack_verbosity=$withval
1858else
1859  coin_lapack_verbosity=0
1860fi;
1861
1862cat >>confdefs.h <<_ACEOF
1863#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1864_ACEOF
1865
1866
1867
1868# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1869if test "${with_lapack_checklevel+set}" = set; then
1870  withval="$with_lapack_checklevel"
1871  if test "$withval" = yes; then
1872                withval=1
1873              fi
1874              coin_lapack_checklevel=$withval
1875else
1876  coin_lapack_checklevel=0
1877fi;
1878
1879cat >>confdefs.h <<_ACEOF
1880#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1881_ACEOF
1882
1883
1884 # m4_ifvaln([Lapack],
1885
1886
1887
1888# Get the name of the Fortran compiler and appropriate compiler options
1889
1890
1891  # for backward compatibility
1892  # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  enable_doscompile=$enableval
1896else
1897  enable_doscompile=no
1898fi;
1899
1900  # Check whether --enable-msvc or --disable-msvc was given.
1901if test "${enable_msvc+set}" = set; then
1902  enableval="$enable_msvc"
1903  enable_msvc=$enableval
1904else
1905  enable_msvc=no
1906     if test "$enable_doscompile" = msvc ; then
1907       enable_msvc=yes
1908     elif test "$enable_doscompile" != no ; then
1909       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1910echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1911   { (exit 1); exit 1; }; }
1912     fi
1913
1914fi;
1915
1916  if test "$enable_msvc" = MD; then
1917    enable_shared=yes
1918    enable_msvc=yes
1919  fi
1920
1921  if test "$enable_msvc" = yes; then
1922    case $build in
1923      *-cygwin* | *-mingw*) ;;
1924      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1925echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1926   { (exit 1); exit 1; }; } ;;
1927    esac
1928  fi
1929
1930
1931 case $build in
1932  *-mingw*)
1933    if test "${LD+set}" = set; then :; else
1934      LD=link
1935    fi
1936    ;;
1937 esac
1938 if test $enable_msvc = yes ; then
1939   if test "x${LD+set}" = xset; then :; else
1940     LD=link
1941   fi
1942 fi
1943
1944
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953
1954# For consistency, we set the C compiler to the same value of the C++
1955# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1956if test x"$CXX" != x; then
1957  case "$CXX" in
1958    clang* ) ;;
1959    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1960      if test x"$CC" = x; then
1961        CC="$CXX"
1962        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1963echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1964      fi
1965      ;;
1966  esac
1967fi
1968
1969
1970
1971
1972
1973
1974coin_has_cc=yes
1975
1976save_cflags="$CFLAGS"
1977
1978# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1979# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1980# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1981# compiler. In this case, put cc after gcc.
1982
1983case $build in
1984  *-cygwin* | *-mingw*)
1985             if test "$enable_msvc" = yes ; then
1986               comps="icl cl gcc"
1987             else
1988               comps="gcc icl cl"
1989             fi ;;
1990  *-*-solaris*)
1991             # Extract the first word of "cc", so it can be a program name with args.
1992set dummy cc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$sol_cc_compiler"; then
1999  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2000else
2001  ac_prog_rejected=no
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007  for ac_exec_ext in '' $ac_executable_extensions; do
2008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2010       ac_prog_rejected=yes
2011       continue
2012     fi
2013    ac_cv_prog_sol_cc_compiler="cc"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020if test $ac_prog_rejected = yes; then
2021  # We found a bogon in the path, so make sure we never use it.
2022  set dummy $ac_cv_prog_sol_cc_compiler
2023  shift
2024  if test $# != 0; then
2025    # We chose a different compiler from the bogus one.
2026    # However, it has the same basename, so the bogon will be chosen
2027    # first if we set sol_cc_compiler to just the basename; use the full file name.
2028    shift
2029    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2030  fi
2031fi
2032fi
2033fi
2034sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2035if test -n "$sol_cc_compiler"; then
2036  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2037echo "${ECHO_T}$sol_cc_compiler" >&6
2038else
2039  echo "$as_me:$LINENO: result: no" >&5
2040echo "${ECHO_T}no" >&6
2041fi
2042
2043             if test "$sol_cc_compiler" = "cc" ; then
2044               comps="cc xlc gcc pgcc icc"
2045             else
2046               comps="xlc gcc pgcc icc cc"
2047             fi
2048             ;;
2049  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2050  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2051  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2052esac
2053
2054# We delete the cached value, since the test might not have been
2055# performed with our choice of compilers earlier
2056$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2057# AC_MSG_NOTICE([C compiler candidates: $comps])
2058ac_ext=c
2059ac_cpp='$CPP $CPPFLAGS'
2060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063if test -n "$ac_tool_prefix"; then
2064  for ac_prog in $comps
2065  do
2066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_CC+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$CC"; then
2074  ac_cv_prog_CC="$CC" # Let the user override the test.
2075else
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079  IFS=$as_save_IFS
2080  test -z "$as_dir" && as_dir=.
2081  for ac_exec_ext in '' $ac_executable_extensions; do
2082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085    break 2
2086  fi
2087done
2088done
2089
2090fi
2091fi
2092CC=$ac_cv_prog_CC
2093if test -n "$CC"; then
2094  echo "$as_me:$LINENO: result: $CC" >&5
2095echo "${ECHO_T}$CC" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101    test -n "$CC" && break
2102  done
2103fi
2104if test -z "$CC"; then
2105  ac_ct_CC=$CC
2106  for ac_prog in $comps
2107do
2108  # Extract the first word of "$ac_prog", so it can be a program name with args.
2109set dummy $ac_prog; ac_word=$2
2110echo "$as_me:$LINENO: checking for $ac_word" >&5
2111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  if test -n "$ac_ct_CC"; then
2116  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2117else
2118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119for as_dir in $PATH
2120do
2121  IFS=$as_save_IFS
2122  test -z "$as_dir" && as_dir=.
2123  for ac_exec_ext in '' $ac_executable_extensions; do
2124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125    ac_cv_prog_ac_ct_CC="$ac_prog"
2126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127    break 2
2128  fi
2129done
2130done
2131
2132fi
2133fi
2134ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135if test -n "$ac_ct_CC"; then
2136  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137echo "${ECHO_T}$ac_ct_CC" >&6
2138else
2139  echo "$as_me:$LINENO: result: no" >&5
2140echo "${ECHO_T}no" >&6
2141fi
2142
2143  test -n "$ac_ct_CC" && break
2144done
2145
2146  CC=$ac_ct_CC
2147fi
2148
2149
2150test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: no acceptable C compiler found in \$PATH
2153See \`config.log' for more details." >&2;}
2154   { (exit 1); exit 1; }; }
2155
2156# Provide some information about the compiler.
2157echo "$as_me:$LINENO:" \
2158     "checking for C compiler version" >&5
2159ac_compiler=`set X $ac_compile; echo $2`
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161  (eval $ac_compiler --version </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166  (eval $ac_compiler -v </dev/null >&5) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }
2170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171  (eval $ac_compiler -V </dev/null >&5) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }
2175
2176cat >conftest.$ac_ext <<_ACEOF
2177/* confdefs.h.  */
2178_ACEOF
2179cat confdefs.h >>conftest.$ac_ext
2180cat >>conftest.$ac_ext <<_ACEOF
2181/* end confdefs.h.  */
2182
2183int
2184main ()
2185{
2186
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191ac_clean_files_save=$ac_clean_files
2192ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193# Try to create an executable without -o first, disregard a.out.
2194# It will help us diagnose broken compilers, and finding out an intuition
2195# of exeext.
2196echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200  (eval $ac_link_default) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; then
2204  # Find the output, starting from the most likely.  This scheme is
2205# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206# resort.
2207
2208# Be careful to initialize this variable, since it used to be cached.
2209# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210ac_cv_exeext=
2211# b.out is created by i960 compilers.
2212for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213do
2214  test -f "$ac_file" || continue
2215  case $ac_file in
2216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217        ;;
2218    conftest.$ac_ext )
2219        # This is the source file.
2220        ;;
2221    [ab].out )
2222        # We found the default executable, but exeext='' is most
2223        # certainly right.
2224        break;;
2225    *.* )
2226        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227        # FIXME: I believe we export ac_cv_exeext for Libtool,
2228        # but it would be cool to find out if it's true.  Does anybody
2229        # maintain Libtool? --akim.
2230        export ac_cv_exeext
2231        break;;
2232    * )
2233        break;;
2234  esac
2235done
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: C compiler cannot create executables
2243See \`config.log' for more details." >&2;}
2244   { (exit 77); exit 77; }; }
2245fi
2246
2247ac_exeext=$ac_cv_exeext
2248echo "$as_me:$LINENO: result: $ac_file" >&5
2249echo "${ECHO_T}$ac_file" >&6
2250
2251# Check the compiler produces executables we can run.  If not, either
2252# the compiler is broken, or we cross compile.
2253echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256# If not cross compiling, check that we can run a simple program.
2257if test "$cross_compiling" != yes; then
2258  if { ac_try='./$ac_file'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264    cross_compiling=no
2265  else
2266    if test "$cross_compiling" = maybe; then
2267        cross_compiling=yes
2268    else
2269        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot run C compiled programs.
2273If you meant to cross compile, use \`--host'.
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276    fi
2277  fi
2278fi
2279echo "$as_me:$LINENO: result: yes" >&5
2280echo "${ECHO_T}yes" >&6
2281
2282rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283ac_clean_files=$ac_clean_files_save
2284# Check the compiler produces executables we can run.  If not, either
2285# the compiler is broken, or we cross compile.
2286echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289echo "${ECHO_T}$cross_compiling" >&6
2290
2291echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294  (eval $ac_link) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; then
2298  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300# work properly (i.e., refer to `conftest.exe'), while it won't with
2301# `rm'.
2302for ac_file in conftest.exe conftest conftest.*; do
2303  test -f "$ac_file" || continue
2304  case $ac_file in
2305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307          export ac_cv_exeext
2308          break;;
2309    * ) break;;
2310  esac
2311done
2312else
2313  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314See \`config.log' for more details." >&5
2315echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316See \`config.log' for more details." >&2;}
2317   { (exit 1); exit 1; }; }
2318fi
2319
2320rm -f conftest$ac_cv_exeext
2321echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324rm -f conftest.$ac_ext
2325EXEEXT=$ac_cv_exeext
2326ac_exeext=$EXEEXT
2327echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329if test "${ac_cv_objext+set}" = set; then
2330  echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332  cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338
2339int
2340main ()
2341{
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347rm -f conftest.o conftest.obj
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349  (eval $ac_compile) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; then
2353  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2354  case $ac_file in
2355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2356    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357       break;;
2358  esac
2359done
2360else
2361  echo "$as_me: failed program was:" >&5
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&5
2366echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367See \`config.log' for more details." >&2;}
2368   { (exit 1); exit 1; }; }
2369fi
2370
2371rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372fi
2373echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374echo "${ECHO_T}$ac_cv_objext" >&6
2375OBJEXT=$ac_cv_objext
2376ac_objext=$OBJEXT
2377echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388
2389int
2390main ()
2391{
2392#ifndef __GNUC__
2393       choke me
2394#endif
2395
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>conftest.er1
2403  ac_status=$?
2404  grep -v '^ *+' conftest.er1 >conftest.err
2405  rm -f conftest.er1
2406  cat conftest.err >&5
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); } &&
2409         { ac_try='test -z "$ac_c_werror_flag"
2410                         || test ! -s conftest.err'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; } &&
2416         { ac_try='test -s conftest.$ac_objext'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422  ac_compiler_gnu=yes
2423else
2424  echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427ac_compiler_gnu=no
2428fi
2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431
2432fi
2433echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2435GCC=`test $ac_compiler_gnu = yes && echo yes`
2436ac_test_CFLAGS=${CFLAGS+set}
2437ac_save_CFLAGS=$CFLAGS
2438CFLAGS="-g"
2439echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2441if test "${ac_cv_prog_cc_g+set}" = set; then
2442  echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444  cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h.  */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h.  */
2450
2451int
2452main ()
2453{
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_cv_prog_cc_g=yes
2482else
2483  echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486ac_cv_prog_cc_g=no
2487fi
2488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489fi
2490echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2491echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2492if test "$ac_test_CFLAGS" = set; then
2493  CFLAGS=$ac_save_CFLAGS
2494elif test $ac_cv_prog_cc_g = yes; then
2495  if test "$GCC" = yes; then
2496    CFLAGS="-g -O2"
2497  else
2498    CFLAGS="-g"
2499  fi
2500else
2501  if test "$GCC" = yes; then
2502    CFLAGS="-O2"
2503  else
2504    CFLAGS=
2505  fi
2506fi
2507echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2508echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2509if test "${ac_cv_prog_cc_stdc+set}" = set; then
2510  echo $ECHO_N "(cached) $ECHO_C" >&6
2511else
2512  ac_cv_prog_cc_stdc=no
2513ac_save_CC=$CC
2514cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h.  */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h.  */
2520#include <stdarg.h>
2521#include <stdio.h>
2522#include <sys/types.h>
2523#include <sys/stat.h>
2524/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2525struct buf { int x; };
2526FILE * (*rcsopen) (struct buf *, struct stat *, int);
2527static char *e (p, i)
2528     char **p;
2529     int i;
2530{
2531  return p[i];
2532}
2533static char *f (char * (*g) (char **, int), char **p, ...)
2534{
2535  char *s;
2536  va_list v;
2537  va_start (v,p);
2538  s = g (p, va_arg (v,int));
2539  va_end (v);
2540  return s;
2541}
2542
2543/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2544   function prototypes and stuff, but not '\xHH' hex character constants.
2545   These don't provoke an error unfortunately, instead are silently treated
2546   as 'x'.  The following induces an error, until -std1 is added to get
2547   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2548   array size at least.  It's necessary to write '\x00'==0 to get something
2549   that's true only with -std1.  */
2550int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2551
2552int test (int i, double x);
2553struct s1 {int (*f) (int a);};
2554struct s2 {int (*f) (double a);};
2555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556int argc;
2557char **argv;
2558int
2559main ()
2560{
2561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566# Don't try gcc -ansi; that turns off useful extensions and
2567# breaks some systems' header files.
2568# AIX                   -qlanglvl=ansi
2569# Ultrix and OSF/1      -std1
2570# HP-UX 10.20 and later -Ae
2571# HP-UX older versions  -Aa -D_HPUX_SOURCE
2572# SVR4                  -Xc -D__EXTENSIONS__
2573for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2574do
2575  CC="$ac_save_CC $ac_arg"
2576  rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578  (eval $ac_compile) 2>conftest.er1
2579  ac_status=$?
2580  grep -v '^ *+' conftest.er1 >conftest.err
2581  rm -f conftest.er1
2582  cat conftest.err >&5
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); } &&
2585         { ac_try='test -z "$ac_c_werror_flag"
2586                         || test ! -s conftest.err'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; } &&
2592         { ac_try='test -s conftest.$ac_objext'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; }; then
2598  ac_cv_prog_cc_stdc=$ac_arg
2599break
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604fi
2605rm -f conftest.err conftest.$ac_objext
2606done
2607rm -f conftest.$ac_ext conftest.$ac_objext
2608CC=$ac_save_CC
2609
2610fi
2611
2612case "x$ac_cv_prog_cc_stdc" in
2613  x|xno)
2614    echo "$as_me:$LINENO: result: none needed" >&5
2615echo "${ECHO_T}none needed" >&6 ;;
2616  *)
2617    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2618echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2619    CC="$CC $ac_cv_prog_cc_stdc" ;;
2620esac
2621
2622# Some people use a C++ compiler to compile C.  Since we use `exit',
2623# in C++ we need to declare it.  In case someone uses the same compiler
2624# for both compiling C and C++ we need to have the C++ compiler decide
2625# the declaration of exit, since it's the most demanding environment.
2626cat >conftest.$ac_ext <<_ACEOF
2627#ifndef __cplusplus
2628  choke me
2629#endif
2630_ACEOF
2631rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest.$ac_objext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  for ac_declaration in \
2654   '' \
2655   'extern "C" void std::exit (int) throw (); using std::exit;' \
2656   'extern "C" void std::exit (int); using std::exit;' \
2657   'extern "C" void exit (int) throw ();' \
2658   'extern "C" void exit (int);' \
2659   'void exit (int);'
2660do
2661  cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667$ac_declaration
2668#include <stdlib.h>
2669int
2670main ()
2671{
2672exit (42);
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679  (eval $ac_compile) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest.$ac_objext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704continue
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707  cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h.  */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h.  */
2713$ac_declaration
2714int
2715main ()
2716{
2717exit (42);
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724  (eval $ac_compile) 2>conftest.er1
2725  ac_status=$?
2726  grep -v '^ *+' conftest.er1 >conftest.err
2727  rm -f conftest.er1
2728  cat conftest.err >&5
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); } &&
2731         { ac_try='test -z "$ac_c_werror_flag"
2732                         || test ! -s conftest.err'
2733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734  (eval $ac_try) 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }; } &&
2738         { ac_try='test -s conftest.$ac_objext'
2739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740  (eval $ac_try) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; }; then
2744  break
2745else
2746  echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749fi
2750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751done
2752rm -f conftest*
2753if test -n "$ac_declaration"; then
2754  echo '#ifdef __cplusplus' >>confdefs.h
2755  echo $ac_declaration      >>confdefs.h
2756  echo '#endif'             >>confdefs.h
2757fi
2758
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771if test -z "$CC" ; then
2772  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2773echo "$as_me: error: Failed to find a C compiler!" >&2;}
2774   { (exit 1); exit 1; }; }
2775fi
2776# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2777case "$CC" in
2778  clang* ) ;;
2779  cl* | */cl* | CL* | */CL* )
2780    if test "$ac_cv_prog_cc_g" = yes ; then
2781      ac_cv_prog_cc_g=no
2782      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2783echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2784    fi ;;
2785  * )
2786    CYGPATH_W=echo
2787    ;;
2788esac
2789CFLAGS="$save_cflags"
2790
2791# add automake conditional so we can recognize cl compiler in makefile
2792coin_cc_is_cl=false
2793case "$CC" in
2794  clang* ) ;;
2795  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2796    coin_cc_is_cl=true
2797    ;;
2798esac
2799
2800
2801if test $coin_cc_is_cl = true; then
2802  COIN_CC_IS_CL_TRUE=
2803  COIN_CC_IS_CL_FALSE='#'
2804else
2805  COIN_CC_IS_CL_TRUE='#'
2806  COIN_CC_IS_CL_FALSE=
2807fi
2808
2809
2810# Check if a project specific CFLAGS variable has been set
2811if test x$COIN_PRJCT != x; then
2812  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2813  if test x$coin_tmp = xset; then
2814    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2815  fi
2816fi
2817
2818if test x"$CFLAGS" = x; then
2819
2820  coin_add_cflags=
2821  coin_opt_cflags=
2822  coin_dbg_cflags=
2823  coin_warn_cflags=
2824
2825  if test "$GCC" = "yes"; then
2826    case "$CC" in
2827      icc* | */icc*)
2828        ;;
2829      *)
2830        coin_opt_cflags="-O3"
2831        coin_add_cflags="-pipe"
2832        coin_dbg_cflags="-g -O0"
2833        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2834        case $build in
2835          *-darwin*)
2836            ;;
2837          *)
2838            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2839            ;;
2840        esac
2841    esac
2842  fi
2843  if test -z "$coin_opt_cflags"; then
2844    case $build in
2845      *-cygwin* | *-mingw*)
2846        case "$CC" in
2847          clang* ) ;;
2848          cl* | */cl* | CL* | */CL*)
2849            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2850              coin_opt_cflags='-MD -O2'
2851              coin_dbg_cflags='-MDd'
2852            else
2853              coin_opt_cflags='-MT -O2'
2854              coin_dbg_cflags='-MTd'
2855            fi
2856            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2857            ;;
2858          icl* | */icl* | ICL* | */ICL*)
2859            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2860              coin_opt_cflags='-MD -Ox'
2861              coin_dbg_cflags='-MDd -debug'
2862            else
2863              coin_opt_cflags='-MT -Ox'
2864              coin_dbg_cflags='-MTd -debug'
2865            fi
2866            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2867            ;;
2868        esac
2869        ;;
2870      *-linux-*)
2871        case "$CC" in
2872          icc* | */icc*)
2873            coin_opt_cflags="-O3 -ip -mp1"
2874            coin_add_cflags=""
2875            coin_dbg_cflags="-g"
2876            # Check if -i_dynamic is necessary (for new glibc library)
2877            CFLAGS=
2878            cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920coin_add_cflags="-i_dynamic $coin_add_cflags"
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924            ;;
2925          pgcc* | */pgcc*)
2926            coin_opt_cflags="-fast"
2927            coin_add_cflags="-Kieee -pc 64"
2928            coin_dbg_cflags="-g"
2929            ;;
2930        esac
2931        ;;
2932      *-ibm-*)
2933        case "$CC" in
2934          xlc* | */xlc* | mpxlc* | */mpxlc*)
2935            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2936            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2937            coin_dbg_cflags="-g"
2938          ;;
2939        esac
2940        ;;
2941      *-hp-*)
2942        coin_opt_cflags="-O"
2943        coin_add_cflags="-Ae"
2944        coin_dbg_cflags="-g"
2945        ;;
2946      *-*-solaris*)
2947        coin_opt_cflags="-xO4"
2948        coin_dbg_cflags="-g"
2949        ;;
2950      *-sgi-*)
2951        coin_opt_cflags="-O -OPT:Olimit=0"
2952        coin_dbg_cflags="-g"
2953        ;;
2954    esac
2955  fi
2956
2957  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2958    coin_dbg_cflags="-g"
2959  fi
2960
2961  if test -z "$coin_opt_cflags"; then
2962    # Try if -O option works if nothing else is set
2963    CFLAGS="-O"
2964    cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h.  */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h.  */
2970
2971int
2972main ()
2973{
2974int i=0; i++;
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext conftest$ac_exeext
2980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981  (eval $ac_link) 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988         { ac_try='test -z "$ac_c_werror_flag"
2989                         || test ! -s conftest.err'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; } &&
2995         { ac_try='test -s conftest$ac_exeext'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001  coin_opt_cflags="-O"
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006fi
3007rm -f conftest.err conftest.$ac_objext \
3008      conftest$ac_exeext conftest.$ac_ext
3009  fi
3010
3011  # if PM doesn't want the warning messages, take them out
3012  if test x"$coin_skip_warn_cflags" = xyes; then
3013    coin_warn_cflags=
3014  fi
3015
3016  if test x${DBG_CFLAGS+set} != xset; then
3017    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3018  fi
3019  if test x${OPT_CFLAGS+set} != xset; then
3020    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3021  fi
3022
3023  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3024  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3025
3026  if test "$coin_debug_compile" = "true"; then
3027    CFLAGS="$DBG_CFLAGS"
3028  else
3029    CFLAGS="$OPT_CFLAGS"
3030  fi
3031else
3032  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3033  if test x${DBG_CFLAGS+set} != xset; then
3034    DBG_CFLAGS="$CFLAGS"
3035  fi
3036  if test x${OPT_CFLAGS+set} != xset; then
3037    OPT_CFLAGS="$CFLAGS"
3038  fi
3039fi
3040
3041# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3042if test x$COIN_PRJCT != x; then
3043  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3044fi
3045
3046# Try if CFLAGS works
3047save_CFLAGS="$CFLAGS"
3048cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058int i=0; i++;
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext conftest$ac_exeext
3064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065  (eval $ac_link) 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } &&
3072         { ac_try='test -z "$ac_c_werror_flag"
3073                         || test ! -s conftest.err'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; } &&
3079         { ac_try='test -s conftest$ac_exeext'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; }; then
3085  :
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090CFLAGS=
3091fi
3092rm -f conftest.err conftest.$ac_objext \
3093      conftest$ac_exeext conftest.$ac_ext
3094if test -z "$CFLAGS"; then
3095  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3096echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3097  CFLAGS='-O'
3098  cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h.  */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108int i=0; i++;
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext conftest$ac_exeext
3114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115  (eval $ac_link) 2>conftest.er1
3116  ac_status=$?
3117  grep -v '^ *+' conftest.er1 >conftest.err
3118  rm -f conftest.er1
3119  cat conftest.err >&5
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); } &&
3122         { ac_try='test -z "$ac_c_werror_flag"
3123                         || test ! -s conftest.err'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; } &&
3129         { ac_try='test -s conftest$ac_exeext'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; }; then
3135  :
3136else
3137  echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140CFLAGS=
3141fi
3142rm -f conftest.err conftest.$ac_objext \
3143      conftest$ac_exeext conftest.$ac_ext
3144  if test -z "$CFLAGS"; then
3145    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3146echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3147  fi
3148fi
3149
3150{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3151echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3152
3153
3154if test x"$MPICC" = x; then :; else
3155  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3156echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3157  CC="$MPICC"
3158fi
3159
3160# Correct the LD variable if we are using the MS or Intel-windows compiler
3161case "$CC" in
3162  clang* ) ;;
3163  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3164
3165 case $build in
3166  *-mingw*)
3167    if test "${LD+set}" = set; then :; else
3168      LD=link
3169    fi
3170    ;;
3171 esac
3172 if test $enable_msvc = yes ; then
3173   if test "x${LD+set}" = xset; then :; else
3174     LD=link
3175   fi
3176 fi
3177
3178    ;;
3179esac
3180
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187
3188case $build in
3189  *-cygwin* | *-mingw*)
3190     if test "$enable_msvc" = yes ; then
3191       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3192     else
3193       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3194     fi ;;
3195  *-*-solaris*)
3196     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3197  *-linux-gnu*)
3198     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3199  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3200 esac
3201
3202
3203
3204
3205
3206
3207ac_ext=f
3208ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3209ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3211
3212
3213
3214
3215
3216
3217coin_has_f77=yes
3218
3219save_fflags="$FFLAGS"
3220
3221# We delete the cached value, since the test might not have been
3222# performed with our choice of compilers earlier
3223$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3224
3225# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3226# coin_f77_comps to see if there's a program that matches one of the names.
3227# If there's no such program, F77 = unavailable. If we match the name,
3228# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3229# compiler.
3230# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3231
3232
3233{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3234echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3235if test -n "$ac_tool_prefix"; then
3236  for ac_prog in $coin_f77_comps
3237  do
3238    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3240echo "$as_me:$LINENO: checking for $ac_word" >&5
3241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242if test "${ac_cv_prog_F77+set}" = set; then
3243  echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245  if test -n "$F77"; then
3246  ac_cv_prog_F77="$F77" # Let the user override the test.
3247else
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253  for ac_exec_ext in '' $ac_executable_extensions; do
3254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257    break 2
3258  fi
3259done
3260done
3261
3262fi
3263fi
3264F77=$ac_cv_prog_F77
3265if test -n "$F77"; then
3266  echo "$as_me:$LINENO: result: $F77" >&5
3267echo "${ECHO_T}$F77" >&6
3268else
3269  echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
3273    test -n "$F77" && break
3274  done
3275fi
3276if test -z "$F77"; then
3277  ac_ct_F77=$F77
3278  for ac_prog in $coin_f77_comps
3279do
3280  # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
3282echo "$as_me:$LINENO: checking for $ac_word" >&5
3283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3285  echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287  if test -n "$ac_ct_F77"; then
3288  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295  for ac_exec_ext in '' $ac_executable_extensions; do
3296  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_ac_ct_F77="$ac_prog"
3298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302done
3303
3304fi
3305fi
3306ac_ct_F77=$ac_cv_prog_ac_ct_F77
3307if test -n "$ac_ct_F77"; then
3308  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3309echo "${ECHO_T}$ac_ct_F77" >&6
3310else
3311  echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313fi
3314
3315  test -n "$ac_ct_F77" && break
3316done
3317test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3318
3319  F77=$ac_ct_F77
3320fi
3321
3322
3323if test "$F77" != "unavailable" ; then
3324  ac_ext=f
3325ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3326ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3328if test -n "$ac_tool_prefix"; then
3329  for ac_prog in $coin_f77_comps
3330  do
3331    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_F77+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -n "$F77"; then
3339  ac_cv_prog_F77="$F77" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354
3355fi
3356fi
3357F77=$ac_cv_prog_F77
3358if test -n "$F77"; then
3359  echo "$as_me:$LINENO: result: $F77" >&5
3360echo "${ECHO_T}$F77" >&6
3361else
3362  echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366    test -n "$F77" && break
3367  done
3368fi
3369if test -z "$F77"; then
3370  ac_ct_F77=$F77
3371  for ac_prog in $coin_f77_comps
3372do
3373  # Extract the first word of "$ac_prog", so it can be a program name with args.
3374set dummy $ac_prog; ac_word=$2
3375echo "$as_me:$LINENO: checking for $ac_word" >&5
3376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3378  echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380  if test -n "$ac_ct_F77"; then
3381  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  test -z "$as_dir" && as_dir=.
3388  for ac_exec_ext in '' $ac_executable_extensions; do
3389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_ac_ct_F77="$ac_prog"
3391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395done
3396
3397fi
3398fi
3399ac_ct_F77=$ac_cv_prog_ac_ct_F77
3400if test -n "$ac_ct_F77"; then
3401  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3402echo "${ECHO_T}$ac_ct_F77" >&6
3403else
3404  echo "$as_me:$LINENO: result: no" >&5
3405echo "${ECHO_T}no" >&6
3406fi
3407
3408  test -n "$ac_ct_F77" && break
3409done
3410
3411  F77=$ac_ct_F77
3412fi
3413
3414
3415# Provide some information about the compiler.
3416echo "$as_me:3416:" \
3417     "checking for Fortran 77 compiler version" >&5
3418ac_compiler=`set X $ac_compile; echo $2`
3419{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3420  (eval $ac_compiler --version </dev/null >&5) 2>&5
3421  ac_status=$?
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); }
3424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3425  (eval $ac_compiler -v </dev/null >&5) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }
3429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3430  (eval $ac_compiler -V </dev/null >&5) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }
3434rm -f a.out
3435
3436# If we don't use `.F' as extension, the preprocessor is not run on the
3437# input file.  (Note that this only needs to work for GNU compilers.)
3438ac_save_ext=$ac_ext
3439ac_ext=F
3440echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3441echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3442if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  cat >conftest.$ac_ext <<_ACEOF
3446      program main
3447#ifndef __GNUC__
3448       choke me
3449#endif
3450
3451      end
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462         { ac_try='test -z "$ac_f77_werror_flag"
3463                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_compiler_gnu=yes
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480ac_compiler_gnu=no
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3484
3485fi
3486echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3487echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3488ac_ext=$ac_save_ext
3489ac_test_FFLAGS=${FFLAGS+set}
3490ac_save_FFLAGS=$FFLAGS
3491FFLAGS=
3492echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3493echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3494if test "${ac_cv_prog_f77_g+set}" = set; then
3495  echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497  FFLAGS=-g
3498cat >conftest.$ac_ext <<_ACEOF
3499      program main
3500
3501      end
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505  (eval $ac_compile) 2>conftest.er1
3506  ac_status=$?
3507  grep -v '^ *+' conftest.er1 >conftest.err
3508  rm -f conftest.er1
3509  cat conftest.err >&5
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); } &&
3512         { ac_try='test -z "$ac_f77_werror_flag"
3513                         || test ! -s conftest.err'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; } &&
3519         { ac_try='test -s conftest.$ac_objext'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; }; then
3525  ac_cv_prog_f77_g=yes
3526else
3527  echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530ac_cv_prog_f77_g=no
3531fi
3532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3533
3534fi
3535echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3536echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3537if test "$ac_test_FFLAGS" = set; then
3538  FFLAGS=$ac_save_FFLAGS
3539elif test $ac_cv_prog_f77_g = yes; then
3540  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3541    FFLAGS="-g -O2"
3542  else
3543    FFLAGS="-g"
3544  fi
3545else
3546  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3547    FFLAGS="-O2"
3548  else
3549    FFLAGS=
3550  fi
3551fi
3552
3553G77=`test $ac_compiler_gnu = yes && echo yes`
3554ac_ext=f
3555ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3556ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3558
3559else
3560  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3561echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3562fi
3563
3564FFLAGS="$save_fflags"
3565
3566# Check if a project specific FFLAGS variable has been set
3567if test x$COIN_PRJCT != x; then
3568  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3569  if test x$coin_tmp = xset; then
3570    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3571  fi
3572fi
3573
3574if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3575
3576  coin_add_fflags=
3577  coin_opt_fflags=
3578  coin_dbg_fflags=
3579  coin_warn_fflags=
3580
3581  if test "$G77" = "yes"; then
3582    coin_opt_fflags="-O3"
3583    coin_add_fflags="-pipe"
3584    coin_dbg_fflags="-g -O0"
3585  else
3586    case $build in
3587      *-cygwin* | *-mingw*)
3588        case $F77 in
3589          ifort* | */ifort* | IFORT* | */IFORT* )
3590            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3591              coin_opt_fflags='-MD -O3'
3592              coin_dbg_fflags='-MDd -debug'
3593            else
3594              coin_opt_fflags='-MT -O3'
3595              coin_dbg_fflags='-MTd -debug'
3596            fi
3597            coin_add_fflags='-fpp -nologo'
3598          ;;
3599          compile_f2c*)
3600            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3601              coin_opt_fflags='-MD -O2'
3602              coin_dbg_fflags='-MDd'
3603            else
3604              coin_opt_fflags='-MT -O2'
3605              coin_dbg_fflags='-MTd'
3606            fi
3607            coin_add_fflags='-nologo -wd4996'
3608          ;;
3609        esac
3610        ;;
3611      *-linux-*)
3612        case $F77 in
3613          ifc* | */ifc* | ifort* | */ifort*)
3614            coin_opt_fflags="-O3 -ip"
3615            coin_add_fflags="-cm -w90 -w95"
3616            coin_dbg_fflags="-g -CA -CB -CS"
3617            # Check if -i_dynamic is necessary (for new glibc library)
3618            FFLAGS=
3619            cat >conftest.$ac_ext <<_ACEOF
3620      program main
3621      write(*,*) 'Hello world'
3622      end
3623_ACEOF
3624rm -f conftest.$ac_objext conftest$ac_exeext
3625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3626  (eval $ac_link) 2>conftest.er1
3627  ac_status=$?
3628  grep -v '^ *+' conftest.er1 >conftest.err
3629  rm -f conftest.er1
3630  cat conftest.err >&5
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); } &&
3633         { ac_try='test -z "$ac_f77_werror_flag"
3634                         || test ! -s conftest.err'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; } &&
3640         { ac_try='test -s conftest$ac_exeext'
3641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642  (eval $ac_try) 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }; }; then
3646  :
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651coin_add_fflags="-i_dynamic $coin_add_fflags"
3652fi
3653rm -f conftest.err conftest.$ac_objext \
3654      conftest$ac_exeext conftest.$ac_ext
3655            ;;
3656          pgf77* | */pgf77* | pgf90* | */pgf90*)
3657            coin_opt_fflags="-fast"
3658            coin_add_fflags="-Kieee -pc 64"
3659            coin_dbg_fflags="-g"
3660          ;;
3661        esac
3662        ;;
3663      *-ibm-*)
3664        case "$F77" in
3665          xlf* | */xlf* | mpxlf* | */mpxlf* )
3666            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3667            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3668            coin_dbg_fflags="-g -C"
3669            ;;
3670        esac
3671        ;;
3672      *-hp-*)
3673        coin_opt_fflags="+O3"
3674        coin_add_fflags="+U77"
3675        coin_dbg_fflags="-C -g"
3676        ;;
3677      *-*-solaris*)
3678        coin_opt_fflags="-O4"
3679        coin_dbg_fflags="-g"
3680        ;;
3681      *-sgi-*)
3682        coin_opt_fflags="-O5 -OPT:Olimit=0"
3683        coin_dbg_fflags="-g"
3684        ;;
3685    esac
3686  fi
3687
3688  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3689    coin_dbg_fflags="-g"
3690  fi
3691
3692  if test -z "$coin_opt_fflags"; then
3693    # Try if -O option works if nothing else is set
3694    FFLAGS=-O
3695    cat >conftest.$ac_ext <<_ACEOF
3696      program main
3697      integer i
3698      end
3699_ACEOF
3700rm -f conftest.$ac_objext conftest$ac_exeext
3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702  (eval $ac_link) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709         { ac_try='test -z "$ac_f77_werror_flag"
3710                         || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716         { ac_try='test -s conftest$ac_exeext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  coin_opt_fflags="-O"
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727fi
3728rm -f conftest.err conftest.$ac_objext \
3729      conftest$ac_exeext conftest.$ac_ext
3730  fi
3731
3732  # if PM doesn't want the warning messages, take them out
3733  if test x"$coin_skip_warn_fflags" = xyes; then
3734    coin_warn_fflags=
3735  fi
3736
3737  if test x${DBG_FFLAGS+set} != xset; then
3738    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3739  fi
3740  if test x${OPT_FFLAGS+set} != xset; then
3741    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3742  fi
3743
3744  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3745  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3746
3747  if test "$coin_debug_compile" = "true"; then
3748    FFLAGS="$DBG_FFLAGS"
3749  else
3750    FFLAGS="$OPT_FFLAGS"
3751  fi
3752else
3753  FFLAGS="$FFLAGS $ADD_FFLAGS"
3754  if test x${DBG_FFLAGS+set} != xset; then
3755    DBG_FFLAGS="$FFLAGS"
3756  fi
3757  if test x${OPT_FFLAGS+set} != xset; then
3758    OPT_FFLAGS="$FFLAGS"
3759  fi
3760fi
3761
3762# Try if FFLAGS works
3763if test "$F77" != "unavailable" ; then
3764  cat >conftest.$ac_ext <<_ACEOF
3765      program main
3766      integer i
3767      end
3768_ACEOF
3769rm -f conftest.$ac_objext conftest$ac_exeext
3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771  (eval $ac_link) 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } &&
3778         { ac_try='test -z "$ac_f77_werror_flag"
3779                         || test ! -s conftest.err'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; } &&
3785         { ac_try='test -s conftest$ac_exeext'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; }; then
3791  :
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796FFLAGS=
3797fi
3798rm -f conftest.err conftest.$ac_objext \
3799      conftest$ac_exeext conftest.$ac_ext
3800  if test -z "$FFLAGS"; then
3801    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3802echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3803    FFLAGS='-O'
3804    cat >conftest.$ac_ext <<_ACEOF
3805      program main
3806      integer i
3807      end
3808_ACEOF
3809rm -f conftest.$ac_objext conftest$ac_exeext
3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811  (eval $ac_link) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } &&
3818         { ac_try='test -z "$ac_f77_werror_flag"
3819                         || test ! -s conftest.err'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; } &&
3825         { ac_try='test -s conftest$ac_exeext'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; }; then
3831  :
3832else
3833  echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836FFLAGS=
3837fi
3838rm -f conftest.err conftest.$ac_objext \
3839      conftest$ac_exeext conftest.$ac_ext
3840    if test -z "$FFLAGS"; then
3841      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3842echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3843    fi
3844  fi
3845fi
3846
3847{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3848echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3849
3850
3851if test x"$MPIF77" = x; then :; else
3852  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3853echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3854  F77="$MPIF77"
3855fi
3856
3857# correct the LD variable if we use the intel fortran compiler in windows
3858case "$F77" in
3859  ifort* | */ifort* | IFORT* | */IFORT*)
3860
3861 case $build in
3862  *-mingw*)
3863    if test "${LD+set}" = set; then :; else
3864      LD=link
3865    fi
3866    ;;
3867 esac
3868 if test $enable_msvc = yes ; then
3869   if test "x${LD+set}" = xset; then :; else
3870     LD=link
3871   fi
3872 fi
3873
3874    ;;
3875esac
3876
3877ac_ext=c
3878ac_cpp='$CPP $CPPFLAGS'
3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884
3885# Get the linker flags (FLIBS) that are required for linking against this library
3886
3887# get FLIBS
3888ac_ext=f
3889ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3890ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3892echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3893echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3894if test "${ac_cv_prog_f77_v+set}" = set; then
3895  echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897  cat >conftest.$ac_ext <<_ACEOF
3898      program main
3899
3900      end
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904  (eval $ac_compile) 2>conftest.er1
3905  ac_status=$?
3906  grep -v '^ *+' conftest.er1 >conftest.err
3907  rm -f conftest.er1
3908  cat conftest.err >&5
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); } &&
3911         { ac_try='test -z "$ac_f77_werror_flag"
3912                         || test ! -s conftest.err'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; } &&
3918         { ac_try='test -s conftest.$ac_objext'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; }; then
3924  ac_cv_prog_f77_v=
3925# Try some options frequently used verbose output
3926for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3927  cat >conftest.$ac_ext <<_ACEOF
3928      program main
3929
3930      end
3931_ACEOF
3932
3933# Compile and link our simple test program by passing a flag (argument
3934# 1 to this macro) to the Fortran compiler in order to get
3935# "verbose" output that we can then parse for the Fortran linker
3936# flags.
3937ac_save_FFLAGS=$FFLAGS
3938FFLAGS="$FFLAGS $ac_verb"
3939(eval echo $as_me:3939: \"$ac_link\") >&5
3940ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3941echo "$ac_f77_v_output" >&5
3942FFLAGS=$ac_save_FFLAGS
3943
3944rm -f conftest*
3945
3946# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3947# /foo, /bar, and /baz are search directories for the Fortran linker.
3948# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3949ac_f77_v_output="`echo $ac_f77_v_output |
3950        grep 'LPATH is:' |
3951        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3952
3953case $ac_f77_v_output in
3954  # If we are using xlf then replace all the commas with spaces.
3955  *xlfentry*)
3956    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3957
3958  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3959  # $LIBS confuse us, and the libraries appear later in the output anyway).
3960  *mGLOB_options_string*)
3961    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3962
3963  # If we are using Cray Fortran then delete quotes.
3964  # Use "\"" instead of '"' for font-lock-mode.
3965  # FIXME: a more general fix for quoted arguments with spaces?
3966  *cft90*)
3967    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3968esac
3969
3970
3971  # look for -l* and *.a constructs in the output
3972  for ac_arg in $ac_f77_v_output; do
3973     case $ac_arg in
3974        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3975          ac_cv_prog_f77_v=$ac_verb
3976          break 2 ;;
3977     esac
3978  done
3979done
3980if test -z "$ac_cv_prog_f77_v"; then
3981   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3982echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3983fi
3984else
3985  echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
3988{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3989echo "$as_me: WARNING: compilation failed" >&2;}
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992
3993fi
3994echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3995echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3996echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3997echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3998if test "${ac_cv_f77_libs+set}" = set; then
3999  echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001  if test "x$FLIBS" != "x"; then
4002  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4003else
4004
4005cat >conftest.$ac_ext <<_ACEOF
4006      program main
4007
4008      end
4009_ACEOF
4010
4011# Compile and link our simple test program by passing a flag (argument
4012# 1 to this macro) to the Fortran compiler in order to get
4013# "verbose" output that we can then parse for the Fortran linker
4014# flags.
4015ac_save_FFLAGS=$FFLAGS
4016FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4017(eval echo $as_me:4017: \"$ac_link\") >&5
4018ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4019echo "$ac_f77_v_output" >&5
4020FFLAGS=$ac_save_FFLAGS
4021
4022rm -f conftest*
4023
4024# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4025# /foo, /bar, and /baz are search directories for the Fortran linker.
4026# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4027ac_f77_v_output="`echo $ac_f77_v_output |
4028        grep 'LPATH is:' |
4029        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4030
4031case $ac_f77_v_output in
4032  # If we are using xlf then replace all the commas with spaces.
4033  *xlfentry*)
4034    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4035
4036  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4037  # $LIBS confuse us, and the libraries appear later in the output anyway).
4038  *mGLOB_options_string*)
4039    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4040
4041  # If we are using Cray Fortran then delete quotes.
4042  # Use "\"" instead of '"' for font-lock-mode.
4043  # FIXME: a more general fix for quoted arguments with spaces?
4044  *cft90*)
4045    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4046esac
4047
4048
4049
4050ac_cv_f77_libs=
4051
4052# Save positional arguments (if any)
4053ac_save_positional="$@"
4054
4055set X $ac_f77_v_output
4056while test $# != 1; do
4057  shift
4058  ac_arg=$1
4059  case $ac_arg in
4060        [\\/]*.a | ?:[\\/]*.a)
4061            ac_exists=false
4062  for ac_i in $ac_cv_f77_libs; do
4063    if test x"$ac_arg" = x"$ac_i"; then
4064      ac_exists=true
4065      break
4066    fi
4067  done
4068
4069  if test x"$ac_exists" = xtrue; then
4070  :
4071else
4072  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4073fi
4074
4075          ;;
4076        -bI:*)
4077            ac_exists=false
4078  for ac_i in $ac_cv_f77_libs; do
4079    if test x"$ac_arg" = x"$ac_i"; then
4080      ac_exists=true
4081      break
4082    fi
4083  done
4084
4085  if test x"$ac_exists" = xtrue; then
4086  :
4087else
4088  if test "$ac_compiler_gnu" = yes; then
4089  for ac_link_opt in $ac_arg; do
4090    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4091  done
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4094fi
4095fi
4096
4097          ;;
4098          # Ignore these flags.
4099        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4100          ;;
4101        -lkernel32)
4102          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4103          ;;
4104        -[LRuY])
4105          # These flags, when seen by themselves, take an argument.
4106          # We remove the space between option and argument and re-iterate
4107          # unless we find an empty arg or a new option (starting with -)
4108          case $2 in
4109             "" | -*);;
4110             *)
4111                ac_arg="$ac_arg$2"
4112                shift; shift
4113                set X $ac_arg "$@"
4114                ;;
4115          esac
4116          ;;
4117        -YP,*)
4118          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4119              ac_exists=false
4120  for ac_i in $ac_cv_f77_libs; do
4121    if test x"$ac_j" = x"$ac_i"; then
4122      ac_exists=true
4123      break
4124    fi
4125  done
4126
4127  if test x"$ac_exists" = xtrue; then
4128  :
4129else
4130  ac_arg="$ac_arg $ac_j"
4131                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4132fi
4133
4134          done
4135          ;;
4136        -[lLR]*)
4137            ac_exists=false
4138  for ac_i in $ac_cv_f77_libs; do
4139    if test x"$ac_arg" = x"$ac_i"; then
4140      ac_exists=true
4141      break
4142    fi
4143  done
4144
4145  if test x"$ac_exists" = xtrue; then
4146  :
4147else
4148  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4149fi
4150
4151          ;;
4152          # Ignore everything else.
4153  esac
4154done
4155# restore positional arguments
4156set X $ac_save_positional; shift
4157
4158# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4159# then we insist that the "run path" must be an absolute path (i.e. it
4160# must begin with a "/").
4161case `(uname -sr) 2>/dev/null` in
4162   "SunOS 5"*)
4163      ac_ld_run_path=`echo $ac_f77_v_output |
4164                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4165      test "x$ac_ld_run_path" != x &&
4166        if test "$ac_compiler_gnu" = yes; then
4167  for ac_link_opt in $ac_ld_run_path; do
4168    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4169  done
4170else
4171  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4172fi
4173      ;;
4174esac
4175fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4176
4177fi
4178echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4179echo "${ECHO_T}$ac_cv_f77_libs" >&6
4180FLIBS="$ac_cv_f77_libs"
4181
4182
4183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188
4189orig_FLIBS="$FLIBS"
4190
4191# If FLIBS has been set by the user, we just restore its value here
4192if test x"$save_FLIBS" != x; then
4193  FLIBS="$save_FLIBS"
4194else
4195  # This is to correct a missing exclusion in autoconf 2.59
4196  if test x"$FLIBS" != x; then
4197    my_flibs=
4198    for flag in $FLIBS; do
4199      case $flag in
4200        -lcrt*.o) ;;
4201        -lcygwin) ;;
4202        -lgcc*)   ;;
4203               *) my_flibs="$my_flibs $flag" ;;
4204      esac
4205    done
4206    FLIBS="$my_flibs"
4207  fi
4208
4209  case $build in
4210  # The following is a fix to define FLIBS for ifort on Windows
4211  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4212  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4213  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4214  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4215  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4216     *-cygwin* | *-mingw*)
4217       case "$F77" in
4218#         ifort* | */ifort* | IFORT* | */IFORT*)
4219#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4220#           if "$coin_debug_compile" = true ; then
4221#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4222#           else
4223#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4224#           fi
4225#           ;;
4226         compile_f2c*)
4227           FLIBS=`$F77 -FLIBS` ;;
4228       esac;;
4229     *-hp-*)
4230         FLIBS="$FLIBS -lm";;
4231     *-ibm-*)
4232         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4233     *-linux-*)
4234       case "$F77" in
4235         pgf77* | */pgf77* | pgf90* | */pgf90*)
4236# ask linker to go through the archives multiple times
4237# (the Fortran compiler seems to do that automatically...)
4238           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4239       esac
4240  esac
4241  ac_cv_f77_libs="$FLIBS"
4242fi
4243
4244if test "x$orig_FLIBS" != "x$FLIBS" ; then
4245  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4246echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4247fi
4248
4249ac_ext=f
4250ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4251ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4253
4254echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4255echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4256if test "${ac_cv_f77_dummy_main+set}" = set; then
4257  echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259  ac_f77_dm_save_LIBS=$LIBS
4260 LIBS="$LIBS $FLIBS"
4261 ac_fortran_dm_var=F77_DUMMY_MAIN
4262 ac_ext=c
4263ac_cpp='$CPP $CPPFLAGS'
4264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268 # First, try linking without a dummy main:
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h.  */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h.  */
4275
4276#ifdef F77_DUMMY_MAIN
4277
4278#  ifdef __cplusplus
4279     extern "C"
4280#  endif
4281   int F77_DUMMY_MAIN() { return 1; }
4282
4283#endif
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294  (eval $ac_link) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } &&
4301         { ac_try='test -z "$ac_c_werror_flag"
4302                         || test ! -s conftest.err'
4303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304  (eval $ac_try) 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; } &&
4308         { ac_try='test -s conftest$ac_exeext'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; }; then
4314  ac_cv_fortran_dummy_main=none
4315else
4316  echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319ac_cv_fortran_dummy_main=unknown
4320fi
4321rm -f conftest.err conftest.$ac_objext \
4322      conftest$ac_exeext conftest.$ac_ext
4323
4324 if test $ac_cv_fortran_dummy_main = unknown; then
4325   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4326     cat >conftest.$ac_ext <<_ACEOF
4327/* confdefs.h.  */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h.  */
4332#define $ac_fortran_dm_var $ac_func
4333#ifdef F77_DUMMY_MAIN
4334
4335#  ifdef __cplusplus
4336     extern "C"
4337#  endif
4338   int F77_DUMMY_MAIN() { return 1; }
4339
4340#endif
4341int
4342main ()
4343{
4344
4345  ;
4346  return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext conftest$ac_exeext
4350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4351  (eval $ac_link) 2>conftest.er1
4352  ac_status=$?
4353  grep -v '^ *+' conftest.er1 >conftest.err
4354  rm -f conftest.er1
4355  cat conftest.err >&5
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); } &&
4358         { ac_try='test -z "$ac_c_werror_flag"
4359                         || test ! -s conftest.err'
4360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361  (eval $ac_try) 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; } &&
4365         { ac_try='test -s conftest$ac_exeext'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; }; then
4371  ac_cv_fortran_dummy_main=$ac_func; break
4372else
4373  echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376fi
4377rm -f conftest.err conftest.$ac_objext \
4378      conftest$ac_exeext conftest.$ac_ext
4379   done
4380 fi
4381 ac_ext=f
4382ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4383ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4385 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4386 rm -f conftest*
4387 LIBS=$ac_f77_dm_save_LIBS
4388
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4391echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4392F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4393if test "$F77_DUMMY_MAIN" != unknown; then
4394  if test $F77_DUMMY_MAIN != none; then
4395
4396cat >>confdefs.h <<_ACEOF
4397#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4398_ACEOF
4399
4400  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4401
4402cat >>confdefs.h <<\_ACEOF
4403#define FC_DUMMY_MAIN_EQ_F77 1
4404_ACEOF
4405
4406  fi
4407fi
4408else
4409  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4410See \`config.log' for more details." >&5
4411echo "$as_me: error: linking to Fortran libraries from C fails
4412See \`config.log' for more details." >&2;}
4413   { (exit 1); exit 1; }; }
4414fi
4415
4416
4417ac_ext=f
4418ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4419ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4421
4422ac_ext=f
4423ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4424ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4426echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4427echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4428if test "${ac_cv_f77_mangling+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  cat >conftest.$ac_ext <<_ACEOF
4432      subroutine foobar()
4433      return
4434      end
4435      subroutine foo_bar()
4436      return
4437      end
4438_ACEOF
4439rm -f conftest.$ac_objext
4440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441  (eval $ac_compile) 2>conftest.er1
4442  ac_status=$?
4443  grep -v '^ *+' conftest.er1 >conftest.err
4444  rm -f conftest.er1
4445  cat conftest.err >&5
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); } &&
4448         { ac_try='test -z "$ac_f77_werror_flag"
4449                         || test ! -s conftest.err'
4450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451  (eval $ac_try) 2>&5
4452  ac_status=$?
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); }; } &&
4455         { ac_try='test -s conftest.$ac_objext'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; }; then
4461  mv conftest.$ac_objext cfortran_test.$ac_objext
4462
4463  ac_save_LIBS=$LIBS
4464  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4465
4466  ac_ext=c
4467ac_cpp='$CPP $CPPFLAGS'
4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471  ac_success=no
4472  for ac_foobar in foobar FOOBAR; do
4473    for ac_underscore in "" "_"; do
4474      ac_func="$ac_foobar$ac_underscore"
4475      cat >conftest.$ac_ext <<_ACEOF
4476/* confdefs.h.  */
4477_ACEOF
4478cat confdefs.h >>conftest.$ac_ext
4479cat >>conftest.$ac_ext <<_ACEOF
4480/* end confdefs.h.  */
4481
4482/* Override any gcc2 internal prototype to avoid an error.  */
4483#ifdef __cplusplus
4484extern "C"
4485#endif
4486/* We use char because int might match the return type of a gcc2
4487   builtin and then its argument prototype would still apply.  */
4488char $ac_func ();
4489#ifdef F77_DUMMY_MAIN
4490
4491#  ifdef __cplusplus
4492     extern "C"
4493#  endif
4494   int F77_DUMMY_MAIN() { return 1; }
4495
4496#endif
4497int
4498main ()
4499{
4500$ac_func ();
4501  ;
4502  return 0;
4503}
4504_ACEOF
4505rm -f conftest.$ac_objext conftest$ac_exeext
4506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4507  (eval $ac_link) 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514         { ac_try='test -z "$ac_c_werror_flag"
4515                         || test ! -s conftest.err'
4516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517  (eval $ac_try) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); }; } &&
4521         { ac_try='test -s conftest$ac_exeext'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_success=yes; break 2
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532fi
4533rm -f conftest.err conftest.$ac_objext \
4534      conftest$ac_exeext conftest.$ac_ext
4535    done
4536  done
4537  ac_ext=f
4538ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4539ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4541
4542  if test "$ac_success" = "yes"; then
4543     case $ac_foobar in
4544        foobar)
4545           ac_case=lower
4546           ac_foo_bar=foo_bar
4547           ;;
4548        FOOBAR)
4549           ac_case=upper
4550           ac_foo_bar=FOO_BAR
4551           ;;
4552     esac
4553
4554     ac_ext=c
4555ac_cpp='$CPP $CPPFLAGS'
4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559     ac_success_extra=no
4560     for ac_extra in "" "_"; do
4561        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4562        cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h.  */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h.  */
4568
4569/* Override any gcc2 internal prototype to avoid an error.  */
4570#ifdef __cplusplus
4571extern "C"
4572#endif
4573/* We use char because int might match the return type of a gcc2
4574   builtin and then its argument prototype would still apply.  */
4575char $ac_func ();
4576#ifdef F77_DUMMY_MAIN
4577
4578#  ifdef __cplusplus
4579     extern "C"
4580#  endif
4581   int F77_DUMMY_MAIN() { return 1; }
4582
4583#endif
4584int
4585main ()
4586{
4587$ac_func ();
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592rm -f conftest.$ac_objext conftest$ac_exeext
4593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594  (eval $ac_link) 2>conftest.er1
4595  ac_status=$?
4596  grep -v '^ *+' conftest.er1 >conftest.err
4597  rm -f conftest.er1
4598  cat conftest.err >&5
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); } &&
4601         { ac_try='test -z "$ac_c_werror_flag"
4602                         || test ! -s conftest.err'
4603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604  (eval $ac_try) 2>&5
4605  ac_status=$?
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); }; } &&
4608         { ac_try='test -s conftest$ac_exeext'
4609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610  (eval $ac_try) 2>&5
4611  ac_status=$?
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); }; }; then
4614  ac_success_extra=yes; break
4615else
4616  echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619fi
4620rm -f conftest.err conftest.$ac_objext \
4621      conftest$ac_exeext conftest.$ac_ext
4622     done
4623     ac_ext=f
4624ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4625ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4627
4628     if test "$ac_success_extra" = "yes"; then
4629        ac_cv_f77_mangling="$ac_case case"
4630        if test -z "$ac_underscore"; then
4631           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4632        else
4633           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4634        fi
4635        if test -z "$ac_extra"; then
4636           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4637        else
4638           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4639        fi
4640      else
4641        ac_cv_f77_mangling="unknown"
4642      fi
4643  else
4644     ac_cv_f77_mangling="unknown"
4645  fi
4646
4647  LIBS=$ac_save_LIBS
4648  rm -f cfortran_test* conftest*
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4654See \`config.log' for more details." >&5
4655echo "$as_me: error: cannot compile a simple Fortran program
4656See \`config.log' for more details." >&2;}
4657   { (exit 1); exit 1; }; }
4658fi
4659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660
4661fi
4662echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4663echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4664
4665ac_ext=f
4666ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4667ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4669
4670
4671ac_ext=f
4672ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4673ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4675
4676ac_ext=f
4677ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4678ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4680
4681
4682case $ac_cv_f77_mangling in
4683  "lower case, no underscore, no extra underscore")
4684          cat >>confdefs.h <<\_ACEOF
4685#define F77_FUNC(name,NAME) name
4686_ACEOF
4687
4688          cat >>confdefs.h <<\_ACEOF
4689#define F77_FUNC_(name,NAME) name
4690_ACEOF
4691 ;;
4692  "lower case, no underscore, extra underscore")
4693          cat >>confdefs.h <<\_ACEOF
4694#define F77_FUNC(name,NAME) name
4695_ACEOF
4696
4697          cat >>confdefs.h <<\_ACEOF
4698#define F77_FUNC_(name,NAME) name ## _
4699_ACEOF
4700 ;;
4701  "lower case, underscore, no extra underscore")
4702          cat >>confdefs.h <<\_ACEOF
4703#define F77_FUNC(name,NAME) name ## _
4704_ACEOF
4705
4706          cat >>confdefs.h <<\_ACEOF
4707#define F77_FUNC_(name,NAME) name ## _
4708_ACEOF
4709 ;;
4710  "lower case, underscore, extra underscore")
4711          cat >>confdefs.h <<\_ACEOF
4712#define F77_FUNC(name,NAME) name ## _
4713_ACEOF
4714
4715          cat >>confdefs.h <<\_ACEOF
4716#define F77_FUNC_(name,NAME) name ## __
4717_ACEOF
4718 ;;
4719  "upper case, no underscore, no extra underscore")
4720          cat >>confdefs.h <<\_ACEOF
4721#define F77_FUNC(name,NAME) NAME
4722_ACEOF
4723
4724          cat >>confdefs.h <<\_ACEOF
4725#define F77_FUNC_(name,NAME) NAME
4726_ACEOF
4727 ;;
4728  "upper case, no underscore, extra underscore")
4729          cat >>confdefs.h <<\_ACEOF
4730#define F77_FUNC(name,NAME) NAME
4731_ACEOF
4732
4733          cat >>confdefs.h <<\_ACEOF
4734#define F77_FUNC_(name,NAME) NAME ## _
4735_ACEOF
4736 ;;
4737  "upper case, underscore, no extra underscore")
4738          cat >>confdefs.h <<\_ACEOF
4739#define F77_FUNC(name,NAME) NAME ## _
4740_ACEOF
4741
4742          cat >>confdefs.h <<\_ACEOF
4743#define F77_FUNC_(name,NAME) NAME ## _
4744_ACEOF
4745 ;;
4746  "upper case, underscore, extra underscore")
4747          cat >>confdefs.h <<\_ACEOF
4748#define F77_FUNC(name,NAME) NAME ## _
4749_ACEOF
4750
4751          cat >>confdefs.h <<\_ACEOF
4752#define F77_FUNC_(name,NAME) NAME ## __
4753_ACEOF
4754 ;;
4755  *)
4756          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4757echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4758          ;;
4759esac
4760
4761ac_ext=f
4762ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4763ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4765
4766ac_ext=c
4767ac_cpp='$CPP $CPPFLAGS'
4768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771
4772
4773
4774
4775# Check for Blas
4776
4777
4778# Check whether --enable-pkg-config or --disable-pkg-config was given.
4779if test "${enable_pkg_config+set}" = set; then
4780  enableval="$enable_pkg_config"
4781  use_pkgconfig="$enableval"
4782else
4783  if test x$coin_cc_is_cl = xtrue; then
4784     use_pkgconfig=no
4785   else
4786     use_pkgconfig=yes
4787   fi
4788fi;
4789
4790if test $use_pkgconfig = yes ; then
4791  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4792    if test -n "$ac_tool_prefix"; then
4793  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4794set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4795echo "$as_me:$LINENO: checking for $ac_word" >&5
4796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4797if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4798  echo $ECHO_N "(cached) $ECHO_C" >&6
4799else
4800  if test -n "$PKG_CONFIG"; then
4801  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4802else
4803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806  IFS=$as_save_IFS
4807  test -z "$as_dir" && as_dir=.
4808  for ac_exec_ext in '' $ac_executable_extensions; do
4809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812    break 2
4813  fi
4814done
4815done
4816
4817fi
4818fi
4819PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4820if test -n "$PKG_CONFIG"; then
4821  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4822echo "${ECHO_T}$PKG_CONFIG" >&6
4823else
4824  echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6
4826fi
4827
4828fi
4829if test -z "$ac_cv_prog_PKG_CONFIG"; then
4830  ac_ct_PKG_CONFIG=$PKG_CONFIG
4831  # Extract the first word of "pkg-config", so it can be a program name with args.
4832set dummy pkg-config; ac_word=$2
4833echo "$as_me:$LINENO: checking for $ac_word" >&5
4834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4835if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4836  echo $ECHO_N "(cached) $ECHO_C" >&6
4837else
4838  if test -n "$ac_ct_PKG_CONFIG"; then
4839  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4840else
4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844  IFS=$as_save_IFS
4845  test -z "$as_dir" && as_dir=.
4846  for ac_exec_ext in '' $ac_executable_extensions; do
4847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850    break 2
4851  fi
4852done
4853done
4854
4855fi
4856fi
4857ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4858if test -n "$ac_ct_PKG_CONFIG"; then
4859  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4860echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4861else
4862  echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6
4864fi
4865
4866  PKG_CONFIG=$ac_ct_PKG_CONFIG
4867else
4868  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4869fi
4870
4871  fi
4872  if test -n "$PKG_CONFIG"; then
4873    _pkg_min_version=0.16.0
4874    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4875echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4876    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4877      echo "$as_me:$LINENO: result: yes" >&5
4878echo "${ECHO_T}yes" >&6
4879    else
4880      echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882      PKG_CONFIG=""
4883    fi
4884  fi
4885
4886  # check if pkg-config supports the short-errors flag
4887  if test -n "$PKG_CONFIG" && \
4888    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4889    pkg_short_errors=" --short-errors "
4890  else
4891    pkg_short_errors=""
4892  fi
4893fi
4894
4895
4896
4897if test -n "$PKG_CONFIG"; then
4898  COIN_HAS_PKGCONFIG_TRUE=
4899  COIN_HAS_PKGCONFIG_FALSE='#'
4900else
4901  COIN_HAS_PKGCONFIG_TRUE='#'
4902  COIN_HAS_PKGCONFIG_FALSE=
4903fi
4904
4905
4906
4907# assemble pkg-config search path for installed projects
4908COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4909
4910# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4911# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4912# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4913if test "x${prefix}" = xNONE ; then
4914  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4915else
4916  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4917fi
4918
4919
4920# Check whether --with-coin-instdir or --without-coin-instdir was given.
4921if test "${with_coin_instdir+set}" = set; then
4922  withval="$with_coin_instdir"
4923  if test -d "$withval"; then : ; else
4924     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4925echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4926   { (exit 1); exit 1; }; }
4927   fi
4928   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4929
4930fi;
4931
4932
4933
4934# assemble additional pkg-config search paths for uninstalled projects
4935if test x$coin_projectdir = xyes ; then
4936  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4937  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4938  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4939  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4940  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4941  if test -f ../coin_subdirs.txt ; then
4942    for i in `cat ../coin_subdirs.txt` ; do
4943      if test -d ../$i ; then
4944        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4945      fi
4946      if test -d ../$i/pkgconfig ; then
4947        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4948      fi
4949    done
4950  fi
4951
4952  if test -f ../../coin_subdirs.txt ; then
4953    for i in `cat ../../coin_subdirs.txt` ; do
4954      if test -d ../../$i ; then
4955        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4956      fi
4957      if test -d ../../$i/pkgconfig ; then
4958        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4959      fi
4960    done
4961  fi
4962
4963
4964fi
4965
4966if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4967  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
4968echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
4969fi
4970
4971
4972
4973
4974# Check whether --with-blas or --without-blas was given.
4975if test "${with_blas+set}" = set; then
4976  withval="$with_blas"
4977  use_blas="$withval"
4978else
4979  use_blas=
4980fi;
4981
4982# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
4983# preference
4984
4985# Check whether --with-blas-lib or --without-blas-lib was given.
4986if test "${with_blas_lib+set}" = set; then
4987  withval="$with_blas_lib"
4988  use_blas=BUILD
4989fi;
4990
4991# Check if user supplied option makes sense
4992if test x"$use_blas" != x; then
4993  if test "$use_blas" = "BUILD"; then
4994    # we come to this later
4995    :
4996  elif test "$use_blas" != "no"; then
4997    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
4998echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
4999    coin_need_flibs=no
5000    coin_save_LIBS="$LIBS"
5001    LIBS="$use_blas $LIBS"
5002    case $ac_ext in
5003  f)
5004    cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010
5011#ifdef F77_DUMMY_MAIN
5012
5013#  ifdef __cplusplus
5014     extern "C"
5015#  endif
5016   int F77_DUMMY_MAIN() { return 1; }
5017
5018#endif
5019int
5020main ()
5021{
5022      call daxpy
5023  ;
5024  return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029  (eval $ac_link) 2>conftest.er1
5030  ac_status=$?
5031  grep -v '^ *+' conftest.er1 >conftest.err
5032  rm -f conftest.er1
5033  cat conftest.err >&5
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); } &&
5036         { ac_try='test -z "$ac_c_werror_flag"
5037                         || test ! -s conftest.err'
5038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039  (eval $ac_try) 2>&5
5040  ac_status=$?
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); }; } &&
5043         { ac_try='test -s conftest$ac_exeext'
5044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045  (eval $ac_try) 2>&5
5046  ac_status=$?
5047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); }; }; then
5049  if test $coin_need_flibs = yes ; then
5050                         use_blas="$use_blas $FLIBS"
5051                       fi
5052                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5053echo "${ECHO_T}yes: $use_blas" >&6
5054else
5055  echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
5058echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6
5060                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5061echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5062   { (exit 1); exit 1; }; }
5063fi
5064rm -f conftest.err conftest.$ac_objext \
5065      conftest$ac_exeext conftest.$ac_ext
5066    ;;
5067  c)
5068    ac_ext=f
5069ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5070ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5072case $ac_cv_f77_mangling in
5073  upper*) ac_val="DAXPY" ;;
5074  lower*) ac_val="daxpy" ;;
5075  *)      ac_val="unknown" ;;
5076esac
5077case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5078
5079cfuncdaxpy="$ac_val"
5080
5081ac_ext=c
5082ac_cpp='$CPP $CPPFLAGS'
5083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087    if test x"$coin_need_flibs" = xyes; then
5088      flink_try=no;
5089    else
5090      cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096void $cfuncdaxpy();
5097#ifdef F77_DUMMY_MAIN
5098
5099#  ifdef __cplusplus
5100     extern "C"
5101#  endif
5102   int F77_DUMMY_MAIN() { return 1; }
5103
5104#endif
5105int
5106main ()
5107{
5108$cfuncdaxpy()
5109  ;
5110  return 0;
5111}
5112_ACEOF
5113rm -f conftest.$ac_objext conftest$ac_exeext
5114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5115  (eval $ac_link) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } &&
5122         { ac_try='test -z "$ac_c_werror_flag"
5123                         || test ! -s conftest.err'
5124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125  (eval $ac_try) 2>&5
5126  ac_status=$?
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); }; } &&
5129         { ac_try='test -s conftest$ac_exeext'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; }; then
5135  flink_try=yes
5136else
5137  echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140flink_try=no
5141fi
5142rm -f conftest.err conftest.$ac_objext \
5143      conftest$ac_exeext conftest.$ac_ext
5144    fi
5145    if test $flink_try = yes; then
5146      if test $coin_need_flibs = yes ; then
5147                         use_blas="$use_blas $FLIBS"
5148                       fi
5149                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5150echo "${ECHO_T}yes: $use_blas" >&6
5151    else
5152      if test x"$FLIBS" != x; then
5153        flink_save_libs="$LIBS"
5154        LIBS="$LIBS $FLIBS"
5155        cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h.  */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h.  */
5161void $cfuncdaxpy();
5162#ifdef F77_DUMMY_MAIN
5163
5164#  ifdef __cplusplus
5165     extern "C"
5166#  endif
5167   int F77_DUMMY_MAIN() { return 1; }
5168
5169#endif
5170int
5171main ()
5172{
5173$cfuncdaxpy()
5174  ;
5175  return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext conftest$ac_exeext
5179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180  (eval $ac_link) 2>conftest.er1
5181  ac_status=$?
5182  grep -v '^ *+' conftest.er1 >conftest.err
5183  rm -f conftest.er1
5184  cat conftest.err >&5
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); } &&
5187         { ac_try='test -z "$ac_c_werror_flag"
5188                         || test ! -s conftest.err'
5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190  (eval $ac_try) 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; } &&
5194         { ac_try='test -s conftest$ac_exeext'
5195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196  (eval $ac_try) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }; }; then
5200  LIBS="$flink_save_libs"
5201                     coin_need_flibs=yes
5202                     if test $coin_need_flibs = yes ; then
5203                         use_blas="$use_blas $FLIBS"
5204                       fi
5205                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5206echo "${ECHO_T}yes: $use_blas" >&6
5207
5208else
5209  echo "$as_me: failed program was:" >&5
5210sed 's/^/| /' conftest.$ac_ext >&5
5211
5212LIBS="$flink_save_libs"
5213                     echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5216echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5217   { (exit 1); exit 1; }; }
5218fi
5219rm -f conftest.err conftest.$ac_objext \
5220      conftest$ac_exeext conftest.$ac_ext
5221      else
5222        echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5225echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5226   { (exit 1); exit 1; }; }
5227      fi
5228    fi
5229    ;;
5230  cc|cpp)
5231    ac_ext=f
5232ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5233ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5235case $ac_cv_f77_mangling in
5236  upper*) ac_val="DAXPY" ;;
5237  lower*) ac_val="daxpy" ;;
5238  *)      ac_val="unknown" ;;
5239esac
5240case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5241
5242cfuncdaxpy="$ac_val"
5243
5244ac_ext=c
5245ac_cpp='$CPP $CPPFLAGS'
5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248ac_compiler_gnu=$ac_cv_c_compiler_gnu
5249
5250    if test x"$coin_need_flibs" = xyes; then
5251      flink_try=no;
5252    else
5253      cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h.  */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h.  */
5259extern "C" {void $cfuncdaxpy();}
5260#ifdef F77_DUMMY_MAIN
5261
5262#  ifdef __cplusplus
5263     extern "C"
5264#  endif
5265   int F77_DUMMY_MAIN() { return 1; }
5266
5267#endif
5268int
5269main ()
5270{
5271$cfuncdaxpy()
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276rm -f conftest.$ac_objext conftest$ac_exeext
5277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5278  (eval $ac_link) 2>conftest.er1
5279  ac_status=$?
5280  grep -v '^ *+' conftest.er1 >conftest.err
5281  rm -f conftest.er1
5282  cat conftest.err >&5
5283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284  (exit $ac_status); } &&
5285         { ac_try='test -z "$ac_c_werror_flag"
5286                         || test ! -s conftest.err'
5287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288  (eval $ac_try) 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); }; } &&
5292         { ac_try='test -s conftest$ac_exeext'
5293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294  (eval $ac_try) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }; }; then
5298  flink_try=yes
5299else
5300  echo "$as_me: failed program was:" >&5
5301sed 's/^/| /' conftest.$ac_ext >&5
5302
5303flink_try=no
5304fi
5305rm -f conftest.err conftest.$ac_objext \
5306      conftest$ac_exeext conftest.$ac_ext
5307    fi
5308    if test $flink_try = yes; then
5309      if test $coin_need_flibs = yes ; then
5310                         use_blas="$use_blas $FLIBS"
5311                       fi
5312                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5313echo "${ECHO_T}yes: $use_blas" >&6
5314    else
5315      if test x"$FLIBS" != x; then
5316        flink_save_libs="$LIBS"
5317        LIBS="$LIBS $FLIBS"
5318        cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324extern "C" {void $cfuncdaxpy();}
5325#ifdef F77_DUMMY_MAIN
5326
5327#  ifdef __cplusplus
5328     extern "C"
5329#  endif
5330   int F77_DUMMY_MAIN() { return 1; }
5331
5332#endif
5333int
5334main ()
5335{
5336$cfuncdaxpy()
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext conftest$ac_exeext
5342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343  (eval $ac_link) 2>conftest.er1
5344  ac_status=$?
5345  grep -v '^ *+' conftest.er1 >conftest.err
5346  rm -f conftest.er1
5347  cat conftest.err >&5
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); } &&
5350         { ac_try='test -z "$ac_c_werror_flag"
5351                         || test ! -s conftest.err'
5352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353  (eval $ac_try) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }; } &&
5357         { ac_try='test -s conftest$ac_exeext'
5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359  (eval $ac_try) 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }; }; then
5363  LIBS="$flink_save_libs"
5364                     coin_need_flibs=yes
5365                     if test $coin_need_flibs = yes ; then
5366                         use_blas="$use_blas $FLIBS"
5367                       fi
5368                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5369echo "${ECHO_T}yes: $use_blas" >&6
5370
5371else
5372  echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375LIBS="$flink_save_libs"
5376                     echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5379echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5380   { (exit 1); exit 1; }; }
5381fi
5382rm -f conftest.err conftest.$ac_objext \
5383      conftest$ac_exeext conftest.$ac_ext
5384      else
5385        echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5388echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5389   { (exit 1); exit 1; }; }
5390      fi
5391    fi
5392    ;;
5393esac
5394
5395    LIBS="$coin_save_LIBS"
5396  fi
5397else
5398# Try to autodetect the library for blas based on build system
5399  #AC_MSG_CHECKING([default locations for BLAS])
5400  case $build in
5401    *-sgi-*)
5402      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5403echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5404      coin_need_flibs=no
5405      coin_save_LIBS="$LIBS"
5406      LIBS="-lcomplib.sgimath $LIBS"
5407      case $ac_ext in
5408  f)
5409    cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415
5416#ifdef F77_DUMMY_MAIN
5417
5418#  ifdef __cplusplus
5419     extern "C"
5420#  endif
5421   int F77_DUMMY_MAIN() { return 1; }
5422
5423#endif
5424int
5425main ()
5426{
5427      call daxpy
5428  ;
5429  return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext conftest$ac_exeext
5433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434  (eval $ac_link) 2>conftest.er1
5435  ac_status=$?
5436  grep -v '^ *+' conftest.er1 >conftest.err
5437  rm -f conftest.er1
5438  cat conftest.err >&5
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); } &&
5441         { ac_try='test -z "$ac_c_werror_flag"
5442                         || test ! -s conftest.err'
5443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444  (eval $ac_try) 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }; } &&
5448         { ac_try='test -s conftest$ac_exeext'
5449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450  (eval $ac_try) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }; }; then
5454  use_blas="-lcomplib.sgimath"
5455                         if test $coin_need_flibs = yes ; then
5456                           use_blas="$use_blas $FLIBS"
5457                         fi
5458                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5459echo "${ECHO_T}yes: $use_blas" >&6
5460
5461else
5462  echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468rm -f conftest.err conftest.$ac_objext \
5469      conftest$ac_exeext conftest.$ac_ext
5470    ;;
5471  c)
5472    ac_ext=f
5473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5476case $ac_cv_f77_mangling in
5477  upper*) ac_val="DAXPY" ;;
5478  lower*) ac_val="daxpy" ;;
5479  *)      ac_val="unknown" ;;
5480esac
5481case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5482
5483cfuncdaxpy="$ac_val"
5484
5485ac_ext=c
5486ac_cpp='$CPP $CPPFLAGS'
5487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5489ac_compiler_gnu=$ac_cv_c_compiler_gnu
5490
5491    if test x"$coin_need_flibs" = xyes; then
5492      flink_try=no;
5493    else
5494      cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h.  */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h.  */
5500void $cfuncdaxpy();
5501#ifdef F77_DUMMY_MAIN
5502
5503#  ifdef __cplusplus
5504     extern "C"
5505#  endif
5506   int F77_DUMMY_MAIN() { return 1; }
5507
5508#endif
5509int
5510main ()
5511{
5512$cfuncdaxpy()
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517rm -f conftest.$ac_objext conftest$ac_exeext
5518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5519  (eval $ac_link) 2>conftest.er1
5520  ac_status=$?
5521  grep -v '^ *+' conftest.er1 >conftest.err
5522  rm -f conftest.er1
5523  cat conftest.err >&5
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); } &&
5526         { ac_try='test -z "$ac_c_werror_flag"
5527                         || test ! -s conftest.err'
5528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529  (eval $ac_try) 2>&5
5530  ac_status=$?
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); }; } &&
5533         { ac_try='test -s conftest$ac_exeext'
5534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535  (eval $ac_try) 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; }; then
5539  flink_try=yes
5540else
5541  echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544flink_try=no
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547      conftest$ac_exeext conftest.$ac_ext
5548    fi
5549    if test $flink_try = yes; then
5550      use_blas="-lcomplib.sgimath"
5551                         if test $coin_need_flibs = yes ; then
5552                           use_blas="$use_blas $FLIBS"
5553                         fi
5554                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5555echo "${ECHO_T}yes: $use_blas" >&6
5556
5557    else
5558      if test x"$FLIBS" != x; then
5559        flink_save_libs="$LIBS"
5560        LIBS="$LIBS $FLIBS"
5561        cat >conftest.$ac_ext <<_ACEOF
5562/* confdefs.h.  */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h.  */
5567void $cfuncdaxpy();
5568#ifdef F77_DUMMY_MAIN
5569
5570#  ifdef __cplusplus
5571     extern "C"
5572#  endif
5573   int F77_DUMMY_MAIN() { return 1; }
5574
5575#endif
5576int
5577main ()
5578{
5579$cfuncdaxpy()
5580  ;
5581  return 0;
5582}
5583_ACEOF
5584rm -f conftest.$ac_objext conftest$ac_exeext
5585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586  (eval $ac_link) 2>conftest.er1
5587  ac_status=$?
5588  grep -v '^ *+' conftest.er1 >conftest.err
5589  rm -f conftest.er1
5590  cat conftest.err >&5
5591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592  (exit $ac_status); } &&
5593         { ac_try='test -z "$ac_c_werror_flag"
5594                         || test ! -s conftest.err'
5595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596  (eval $ac_try) 2>&5
5597  ac_status=$?
5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); }; } &&
5600         { ac_try='test -s conftest$ac_exeext'
5601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602  (eval $ac_try) 2>&5
5603  ac_status=$?
5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }; }; then
5606  LIBS="$flink_save_libs"
5607                     coin_need_flibs=yes
5608                     use_blas="-lcomplib.sgimath"
5609                         if test $coin_need_flibs = yes ; then
5610                           use_blas="$use_blas $FLIBS"
5611                         fi
5612                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5613echo "${ECHO_T}yes: $use_blas" >&6
5614
5615
5616else
5617  echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620LIBS="$flink_save_libs"
5621                     echo "$as_me:$LINENO: result: no" >&5
5622echo "${ECHO_T}no" >&6
5623fi
5624rm -f conftest.err conftest.$ac_objext \
5625      conftest$ac_exeext conftest.$ac_ext
5626      else
5627        echo "$as_me:$LINENO: result: no" >&5
5628echo "${ECHO_T}no" >&6
5629      fi
5630    fi
5631    ;;
5632  cc|cpp)
5633    ac_ext=f
5634ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5635ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5637case $ac_cv_f77_mangling in
5638  upper*) ac_val="DAXPY" ;;
5639  lower*) ac_val="daxpy" ;;
5640  *)      ac_val="unknown" ;;
5641esac
5642case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5643
5644cfuncdaxpy="$ac_val"
5645
5646ac_ext=c
5647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651
5652    if test x"$coin_need_flibs" = xyes; then
5653      flink_try=no;
5654    else
5655      cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661extern "C" {void $cfuncdaxpy();}
5662#ifdef F77_DUMMY_MAIN
5663
5664#  ifdef __cplusplus
5665     extern "C"
5666#  endif
5667   int F77_DUMMY_MAIN() { return 1; }
5668
5669#endif
5670int
5671main ()
5672{
5673$cfuncdaxpy()
5674  ;
5675  return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext conftest$ac_exeext
5679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680  (eval $ac_link) 2>conftest.er1
5681  ac_status=$?
5682  grep -v '^ *+' conftest.er1 >conftest.err
5683  rm -f conftest.er1
5684  cat conftest.err >&5
5685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); } &&
5687         { ac_try='test -z "$ac_c_werror_flag"
5688                         || test ! -s conftest.err'
5689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690  (eval $ac_try) 2>&5
5691  ac_status=$?
5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); }; } &&
5694         { ac_try='test -s conftest$ac_exeext'
5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696  (eval $ac_try) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); }; }; then
5700  flink_try=yes
5701else
5702  echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705flink_try=no
5706fi
5707rm -f conftest.err conftest.$ac_objext \
5708      conftest$ac_exeext conftest.$ac_ext
5709    fi
5710    if test $flink_try = yes; then
5711      use_blas="-lcomplib.sgimath"
5712                         if test $coin_need_flibs = yes ; then
5713                           use_blas="$use_blas $FLIBS"
5714                         fi
5715                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5716echo "${ECHO_T}yes: $use_blas" >&6
5717
5718    else
5719      if test x"$FLIBS" != x; then
5720        flink_save_libs="$LIBS"
5721        LIBS="$LIBS $FLIBS"
5722        cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h.  */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h.  */
5728extern "C" {void $cfuncdaxpy();}
5729#ifdef F77_DUMMY_MAIN
5730
5731#  ifdef __cplusplus
5732     extern "C"
5733#  endif
5734   int F77_DUMMY_MAIN() { return 1; }
5735
5736#endif
5737int
5738main ()
5739{
5740$cfuncdaxpy()
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext conftest$ac_exeext
5746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747  (eval $ac_link) 2>conftest.er1
5748  ac_status=$?
5749  grep -v '^ *+' conftest.er1 >conftest.err
5750  rm -f conftest.er1
5751  cat conftest.err >&5
5752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753  (exit $ac_status); } &&
5754         { ac_try='test -z "$ac_c_werror_flag"
5755                         || test ! -s conftest.err'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; } &&
5761         { ac_try='test -s conftest$ac_exeext'
5762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763  (eval $ac_try) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); }; }; then
5767  LIBS="$flink_save_libs"
5768                     coin_need_flibs=yes
5769                     use_blas="-lcomplib.sgimath"
5770                         if test $coin_need_flibs = yes ; then
5771                           use_blas="$use_blas $FLIBS"
5772                         fi
5773                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5774echo "${ECHO_T}yes: $use_blas" >&6
5775
5776
5777else
5778  echo "$as_me: failed program was:" >&5
5779sed 's/^/| /' conftest.$ac_ext >&5
5780
5781LIBS="$flink_save_libs"
5782                     echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784fi
5785rm -f conftest.err conftest.$ac_objext \
5786      conftest$ac_exeext conftest.$ac_ext
5787      else
5788        echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
5790      fi
5791    fi
5792    ;;
5793esac
5794
5795      LIBS="$coin_save_LIBS"
5796      ;;
5797
5798# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
5799# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
5800# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
5801# that CC and cc will understand -library in Studio 13. The main extra
5802# function of -xlic_lib and -library is to arrange for the Fortran run-time
5803# libraries to be linked for C++ and C. We can arrange that explicitly.
5804    *-*-solaris*)
5805      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
5806echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
5807      coin_need_flibs=no
5808      coin_save_LIBS="$LIBS"
5809      LIBS="-lsunperf $FLIBS $LIBS"
5810      case $ac_ext in
5811  f)
5812    cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h.  */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h.  */
5818
5819#ifdef F77_DUMMY_MAIN
5820
5821#  ifdef __cplusplus
5822     extern "C"
5823#  endif
5824   int F77_DUMMY_MAIN() { return 1; }
5825
5826#endif
5827int
5828main ()
5829{
5830      call daxpy
5831  ;
5832  return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext conftest$ac_exeext
5836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837  (eval $ac_link) 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } &&
5844         { ac_try='test -z "$ac_c_werror_flag"
5845                         || test ! -s conftest.err'
5846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847  (eval $ac_try) 2>&5
5848  ac_status=$?
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); }; } &&
5851         { ac_try='test -s conftest$ac_exeext'
5852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853  (eval $ac_try) 2>&5
5854  ac_status=$?
5855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856  (exit $ac_status); }; }; then
5857  use_blas='-lsunperf'
5858                         if test $coin_need_flibs = yes ; then
5859                           use_blas="$use_blas $FLIBS"
5860                         fi
5861                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5862echo "${ECHO_T}yes: $use_blas" >&6
5863
5864else
5865  echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
5870fi
5871rm -f conftest.err conftest.$ac_objext \
5872      conftest$ac_exeext conftest.$ac_ext
5873    ;;
5874  c)
5875    ac_ext=f
5876ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5877ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5879case $ac_cv_f77_mangling in
5880  upper*) ac_val="DAXPY" ;;
5881  lower*) ac_val="daxpy" ;;
5882  *)      ac_val="unknown" ;;
5883esac
5884case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5885
5886cfuncdaxpy="$ac_val"
5887
5888ac_ext=c
5889ac_cpp='$CPP $CPPFLAGS'
5890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894    if test x"$coin_need_flibs" = xyes; then
5895      flink_try=no;
5896    else
5897      cat >conftest.$ac_ext <<_ACEOF
5898/* confdefs.h.  */
5899_ACEOF
5900cat confdefs.h >>conftest.$ac_ext
5901cat >>conftest.$ac_ext <<_ACEOF
5902/* end confdefs.h.  */
5903void $cfuncdaxpy();
5904#ifdef F77_DUMMY_MAIN
5905
5906#  ifdef __cplusplus
5907     extern "C"
5908#  endif
5909   int F77_DUMMY_MAIN() { return 1; }
5910
5911#endif
5912int
5913main ()
5914{
5915$cfuncdaxpy()
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext conftest$ac_exeext
5921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922  (eval $ac_link) 2>conftest.er1
5923  ac_status=$?
5924  grep -v '^ *+' conftest.er1 >conftest.err
5925  rm -f conftest.er1
5926  cat conftest.err >&5
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); } &&
5929         { ac_try='test -z "$ac_c_werror_flag"
5930                         || test ! -s conftest.err'
5931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932  (eval $ac_try) 2>&5
5933  ac_status=$?
5934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935  (exit $ac_status); }; } &&
5936         { ac_try='test -s conftest$ac_exeext'
5937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938  (eval $ac_try) 2>&5
5939  ac_status=$?
5940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941  (exit $ac_status); }; }; then
5942  flink_try=yes
5943else
5944  echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947flink_try=no
5948fi
5949rm -f conftest.err conftest.$ac_objext \
5950      conftest$ac_exeext conftest.$ac_ext
5951    fi
5952    if test $flink_try = yes; then
5953      use_blas='-lsunperf'
5954                         if test $coin_need_flibs = yes ; then
5955                           use_blas="$use_blas $FLIBS"
5956                         fi
5957                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5958echo "${ECHO_T}yes: $use_blas" >&6
5959
5960    else
5961      if test x"$FLIBS" != x; then
5962        flink_save_libs="$LIBS"
5963        LIBS="$LIBS $FLIBS"
5964        cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970void $cfuncdaxpy();
5971#ifdef F77_DUMMY_MAIN
5972
5973#  ifdef __cplusplus
5974     extern "C"
5975#  endif
5976   int F77_DUMMY_MAIN() { return 1; }
5977
5978#endif
5979int
5980main ()
5981{
5982$cfuncdaxpy()
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987rm -f conftest.$ac_objext conftest$ac_exeext
5988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989  (eval $ac_link) 2>conftest.er1
5990  ac_status=$?
5991  grep -v '^ *+' conftest.er1 >conftest.err
5992  rm -f conftest.er1
5993  cat conftest.err >&5
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); } &&
5996         { ac_try='test -z "$ac_c_werror_flag"
5997                         || test ! -s conftest.err'
5998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999  (eval $ac_try) 2>&5
6000  ac_status=$?
6001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); }; } &&
6003         { ac_try='test -s conftest$ac_exeext'
6004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005  (eval $ac_try) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); }; }; then
6009  LIBS="$flink_save_libs"
6010                     coin_need_flibs=yes
6011                     use_blas='-lsunperf'
6012                         if test $coin_need_flibs = yes ; then
6013                           use_blas="$use_blas $FLIBS"
6014                         fi
6015                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6016echo "${ECHO_T}yes: $use_blas" >&6
6017
6018
6019else
6020  echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023LIBS="$flink_save_libs"
6024                     echo "$as_me:$LINENO: result: no" >&5
6025echo "${ECHO_T}no" >&6
6026fi
6027rm -f conftest.err conftest.$ac_objext \
6028      conftest$ac_exeext conftest.$ac_ext
6029      else
6030        echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032      fi
6033    fi
6034    ;;
6035  cc|cpp)
6036    ac_ext=f
6037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6040case $ac_cv_f77_mangling in
6041  upper*) ac_val="DAXPY" ;;
6042  lower*) ac_val="daxpy" ;;
6043  *)      ac_val="unknown" ;;
6044esac
6045case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6046
6047cfuncdaxpy="$ac_val"
6048
6049ac_ext=c
6050ac_cpp='$CPP $CPPFLAGS'
6051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053ac_compiler_gnu=$ac_cv_c_compiler_gnu
6054
6055    if test x"$coin_need_flibs" = xyes; then
6056      flink_try=no;
6057    else
6058      cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h.  */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h.  */
6064extern "C" {void $cfuncdaxpy();}
6065#ifdef F77_DUMMY_MAIN
6066
6067#  ifdef __cplusplus
6068     extern "C"
6069#  endif
6070   int F77_DUMMY_MAIN() { return 1; }
6071
6072#endif
6073int
6074main ()
6075{
6076$cfuncdaxpy()
6077  ;
6078  return 0;
6079}
6080_ACEOF
6081rm -f conftest.$ac_objext conftest$ac_exeext
6082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083  (eval $ac_link) 2>conftest.er1
6084  ac_status=$?
6085  grep -v '^ *+' conftest.er1 >conftest.err
6086  rm -f conftest.er1
6087  cat conftest.err >&5
6088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089  (exit $ac_status); } &&
6090         { ac_try='test -z "$ac_c_werror_flag"
6091                         || test ! -s conftest.err'
6092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093  (eval $ac_try) 2>&5
6094  ac_status=$?
6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); }; } &&
6097         { ac_try='test -s conftest$ac_exeext'
6098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099  (eval $ac_try) 2>&5
6100  ac_status=$?
6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102  (exit $ac_status); }; }; then
6103  flink_try=yes
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108flink_try=no
6109fi
6110rm -f conftest.err conftest.$ac_objext \
6111      conftest$ac_exeext conftest.$ac_ext
6112    fi
6113    if test $flink_try = yes; then
6114      use_blas='-lsunperf'
6115                         if test $coin_need_flibs = yes ; then
6116                           use_blas="$use_blas $FLIBS"
6117                         fi
6118                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6119echo "${ECHO_T}yes: $use_blas" >&6
6120
6121    else
6122      if test x"$FLIBS" != x; then
6123        flink_save_libs="$LIBS"
6124        LIBS="$LIBS $FLIBS"
6125        cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h.  */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h.  */
6131extern "C" {void $cfuncdaxpy();}
6132#ifdef F77_DUMMY_MAIN
6133
6134#  ifdef __cplusplus
6135     extern "C"
6136#  endif
6137   int F77_DUMMY_MAIN() { return 1; }
6138
6139#endif
6140int
6141main ()
6142{
6143$cfuncdaxpy()
6144  ;
6145  return 0;
6146}
6147_ACEOF
6148rm -f conftest.$ac_objext conftest$ac_exeext
6149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150  (eval $ac_link) 2>conftest.er1
6151  ac_status=$?
6152  grep -v '^ *+' conftest.er1 >conftest.err
6153  rm -f conftest.er1
6154  cat conftest.err >&5
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); } &&
6157         { ac_try='test -z "$ac_c_werror_flag"
6158                         || test ! -s conftest.err'
6159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160  (eval $ac_try) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; } &&
6164         { ac_try='test -s conftest$ac_exeext'
6165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166  (eval $ac_try) 2>&5
6167  ac_status=$?
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); }; }; then
6170  LIBS="$flink_save_libs"
6171                     coin_need_flibs=yes
6172                     use_blas='-lsunperf'
6173                         if test $coin_need_flibs = yes ; then
6174                           use_blas="$use_blas $FLIBS"
6175                         fi
6176                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6177echo "${ECHO_T}yes: $use_blas" >&6
6178
6179
6180else
6181  echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184LIBS="$flink_save_libs"
6185                     echo "$as_me:$LINENO: result: no" >&5
6186echo "${ECHO_T}no" >&6
6187fi
6188rm -f conftest.err conftest.$ac_objext \
6189      conftest$ac_exeext conftest.$ac_ext
6190      else
6191        echo "$as_me:$LINENO: result: no" >&5
6192echo "${ECHO_T}no" >&6
6193      fi
6194    fi
6195    ;;
6196esac
6197
6198      LIBS="$coin_save_LIBS"
6199      ;;
6200
6201    *-cygwin* | *-mingw*)
6202      case "$CC" in
6203        clang* ) ;;
6204        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6205          coin_save_LIBS="$LIBS"
6206          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6207echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6208          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6209          case $ac_ext in
6210  f)
6211    cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h.  */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
6216/* end confdefs.h.  */
6217
6218#ifdef F77_DUMMY_MAIN
6219
6220#  ifdef __cplusplus
6221     extern "C"
6222#  endif
6223   int F77_DUMMY_MAIN() { return 1; }
6224
6225#endif
6226int
6227main ()
6228{
6229      call daxpy
6230  ;
6231  return 0;
6232}
6233_ACEOF
6234rm -f conftest.$ac_objext conftest$ac_exeext
6235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236  (eval $ac_link) 2>conftest.er1
6237  ac_status=$?
6238  grep -v '^ *+' conftest.er1 >conftest.err
6239  rm -f conftest.er1
6240  cat conftest.err >&5
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); } &&
6243         { ac_try='test -z "$ac_c_werror_flag"
6244                         || test ! -s conftest.err'
6245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246  (eval $ac_try) 2>&5
6247  ac_status=$?
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); }; } &&
6250         { ac_try='test -s conftest$ac_exeext'
6251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252  (eval $ac_try) 2>&5
6253  ac_status=$?
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); }; }; then
6256  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6257                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6258echo "${ECHO_T}yes: $use_blas" >&6
6259
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266fi
6267rm -f conftest.err conftest.$ac_objext \
6268      conftest$ac_exeext conftest.$ac_ext
6269    ;;
6270  c)
6271    ac_ext=f
6272ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6273ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6275case $ac_cv_f77_mangling in
6276  upper*) ac_val="DAXPY" ;;
6277  lower*) ac_val="daxpy" ;;
6278  *)      ac_val="unknown" ;;
6279esac
6280case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6281
6282cfuncdaxpy="$ac_val"
6283
6284ac_ext=c
6285ac_cpp='$CPP $CPPFLAGS'
6286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289
6290    if test x"$coin_need_flibs" = xyes; then
6291      flink_try=no;
6292    else
6293      cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h.  */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h.  */
6299void $cfuncdaxpy();
6300#ifdef F77_DUMMY_MAIN
6301
6302#  ifdef __cplusplus
6303     extern "C"
6304#  endif
6305   int F77_DUMMY_MAIN() { return 1; }
6306
6307#endif
6308int
6309main ()
6310{
6311$cfuncdaxpy()
6312  ;
6313  return 0;
6314}
6315_ACEOF
6316rm -f conftest.$ac_objext conftest$ac_exeext
6317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6318  (eval $ac_link) 2>conftest.er1
6319  ac_status=$?
6320  grep -v '^ *+' conftest.er1 >conftest.err
6321  rm -f conftest.er1
6322  cat conftest.err >&5
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } &&
6325         { ac_try='test -z "$ac_c_werror_flag"
6326                         || test ! -s conftest.err'
6327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328  (eval $ac_try) 2>&5
6329  ac_status=$?
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); }; } &&
6332         { ac_try='test -s conftest$ac_exeext'
6333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334  (eval $ac_try) 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); }; }; then
6338  flink_try=yes
6339else
6340  echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343flink_try=no
6344fi
6345rm -f conftest.err conftest.$ac_objext \
6346      conftest$ac_exeext conftest.$ac_ext
6347    fi
6348    if test $flink_try = yes; then
6349      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6350                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6351echo "${ECHO_T}yes: $use_blas" >&6
6352
6353    else
6354      if test x"$FLIBS" != x; then
6355        flink_save_libs="$LIBS"
6356        LIBS="$LIBS $FLIBS"
6357        cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363void $cfuncdaxpy();
6364#ifdef F77_DUMMY_MAIN
6365
6366#  ifdef __cplusplus
6367     extern "C"
6368#  endif
6369   int F77_DUMMY_MAIN() { return 1; }
6370
6371#endif
6372int
6373main ()
6374{
6375$cfuncdaxpy()
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext conftest$ac_exeext
6381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382  (eval $ac_link) 2>conftest.er1
6383  ac_status=$?
6384  grep -v '^ *+' conftest.er1 >conftest.err
6385  rm -f conftest.er1
6386  cat conftest.err >&5
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); } &&
6389         { ac_try='test -z "$ac_c_werror_flag"
6390                         || test ! -s conftest.err'
6391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392  (eval $ac_try) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); }; } &&
6396         { ac_try='test -s conftest$ac_exeext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  LIBS="$flink_save_libs"
6403                     coin_need_flibs=yes
6404                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6405                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6406echo "${ECHO_T}yes: $use_blas" >&6
6407
6408
6409else
6410  echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413LIBS="$flink_save_libs"
6414                     echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
6416fi
6417rm -f conftest.err conftest.$ac_objext \
6418      conftest$ac_exeext conftest.$ac_ext
6419      else
6420        echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422      fi
6423    fi
6424    ;;
6425  cc|cpp)
6426    ac_ext=f
6427ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6428ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6430case $ac_cv_f77_mangling in
6431  upper*) ac_val="DAXPY" ;;
6432  lower*) ac_val="daxpy" ;;
6433  *)      ac_val="unknown" ;;
6434esac
6435case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6436
6437cfuncdaxpy="$ac_val"
6438
6439ac_ext=c
6440ac_cpp='$CPP $CPPFLAGS'
6441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444
6445    if test x"$coin_need_flibs" = xyes; then
6446      flink_try=no;
6447    else
6448      cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h.  */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h.  */
6454extern "C" {void $cfuncdaxpy();}
6455#ifdef F77_DUMMY_MAIN
6456
6457#  ifdef __cplusplus
6458     extern "C"
6459#  endif
6460   int F77_DUMMY_MAIN() { return 1; }
6461
6462#endif
6463int
6464main ()
6465{
6466$cfuncdaxpy()
6467  ;
6468  return 0;
6469}
6470_ACEOF
6471rm -f conftest.$ac_objext conftest$ac_exeext
6472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473  (eval $ac_link) 2>conftest.er1
6474  ac_status=$?
6475  grep -v '^ *+' conftest.er1 >conftest.err
6476  rm -f conftest.er1
6477  cat conftest.err >&5
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); } &&
6480         { ac_try='test -z "$ac_c_werror_flag"
6481                         || test ! -s conftest.err'
6482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483  (eval $ac_try) 2>&5
6484  ac_status=$?
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); }; } &&
6487         { ac_try='test -s conftest$ac_exeext'
6488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489  (eval $ac_try) 2>&5
6490  ac_status=$?
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); }; }; then
6493  flink_try=yes
6494else
6495  echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498flink_try=no
6499fi
6500rm -f conftest.err conftest.$ac_objext \
6501      conftest$ac_exeext conftest.$ac_ext
6502    fi
6503    if test $flink_try = yes; then
6504      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6505                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6506echo "${ECHO_T}yes: $use_blas" >&6
6507
6508    else
6509      if test x"$FLIBS" != x; then
6510        flink_save_libs="$LIBS"
6511        LIBS="$LIBS $FLIBS"
6512        cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518extern "C" {void $cfuncdaxpy();}
6519#ifdef F77_DUMMY_MAIN
6520
6521#  ifdef __cplusplus
6522     extern "C"
6523#  endif
6524   int F77_DUMMY_MAIN() { return 1; }
6525
6526#endif
6527int
6528main ()
6529{
6530$cfuncdaxpy()
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext conftest$ac_exeext
6536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537  (eval $ac_link) 2>conftest.er1
6538  ac_status=$?
6539  grep -v '^ *+' conftest.er1 >conftest.err
6540  rm -f conftest.er1
6541  cat conftest.err >&5
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); } &&
6544         { ac_try='test -z "$ac_c_werror_flag"
6545                         || test ! -s conftest.err'
6546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547  (eval $ac_try) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); }; } &&
6551         { ac_try='test -s conftest$ac_exeext'
6552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553  (eval $ac_try) 2>&5
6554  ac_status=$?
6555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556  (exit $ac_status); }; }; then
6557  LIBS="$flink_save_libs"
6558                     coin_need_flibs=yes
6559                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6560                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6561echo "${ECHO_T}yes: $use_blas" >&6
6562
6563
6564else
6565  echo "$as_me: failed program was:" >&5
6566sed 's/^/| /' conftest.$ac_ext >&5
6567
6568LIBS="$flink_save_libs"
6569                     echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6
6571fi
6572rm -f conftest.err conftest.$ac_objext \
6573      conftest$ac_exeext conftest.$ac_ext
6574      else
6575        echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
6577      fi
6578    fi
6579    ;;
6580esac
6581
6582          LIBS="$coin_save_LIBS"
6583
6584          if test "x$use_blas" = x ; then
6585            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6586echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6587            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6588            case $ac_ext in
6589  f)
6590    cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h.  */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h.  */
6596
6597#ifdef F77_DUMMY_MAIN
6598
6599#  ifdef __cplusplus
6600     extern "C"
6601#  endif
6602   int F77_DUMMY_MAIN() { return 1; }
6603
6604#endif
6605int
6606main ()
6607{
6608      call daxpy
6609  ;
6610  return 0;
6611}
6612_ACEOF
6613rm -f conftest.$ac_objext conftest$ac_exeext
6614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615  (eval $ac_link) 2>conftest.er1
6616  ac_status=$?
6617  grep -v '^ *+' conftest.er1 >conftest.err
6618  rm -f conftest.er1
6619  cat conftest.err >&5
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); } &&
6622         { ac_try='test -z "$ac_c_werror_flag"
6623                         || test ! -s conftest.err'
6624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625  (eval $ac_try) 2>&5
6626  ac_status=$?
6627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628  (exit $ac_status); }; } &&
6629         { ac_try='test -s conftest$ac_exeext'
6630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631  (eval $ac_try) 2>&5
6632  ac_status=$?
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); }; }; then
6635  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6636                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6637echo "${ECHO_T}yes: $use_blas" >&6
6638
6639else
6640  echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6
6645fi
6646rm -f conftest.err conftest.$ac_objext \
6647      conftest$ac_exeext conftest.$ac_ext
6648    ;;
6649  c)
6650    ac_ext=f
6651ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6652ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6654case $ac_cv_f77_mangling in
6655  upper*) ac_val="DAXPY" ;;
6656  lower*) ac_val="daxpy" ;;
6657  *)      ac_val="unknown" ;;
6658esac
6659case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6660
6661cfuncdaxpy="$ac_val"
6662
6663ac_ext=c
6664ac_cpp='$CPP $CPPFLAGS'
6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669    if test x"$coin_need_flibs" = xyes; then
6670      flink_try=no;
6671    else
6672      cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h.  */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h.  */
6678void $cfuncdaxpy();
6679#ifdef F77_DUMMY_MAIN
6680
6681#  ifdef __cplusplus
6682     extern "C"
6683#  endif
6684   int F77_DUMMY_MAIN() { return 1; }
6685
6686#endif
6687int
6688main ()
6689{
6690$cfuncdaxpy()
6691  ;
6692  return 0;
6693}
6694_ACEOF
6695rm -f conftest.$ac_objext conftest$ac_exeext
6696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697  (eval $ac_link) 2>conftest.er1
6698  ac_status=$?
6699  grep -v '^ *+' conftest.er1 >conftest.err
6700  rm -f conftest.er1
6701  cat conftest.err >&5
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); } &&
6704         { ac_try='test -z "$ac_c_werror_flag"
6705                         || test ! -s conftest.err'
6706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707  (eval $ac_try) 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); }; } &&
6711         { ac_try='test -s conftest$ac_exeext'
6712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713  (eval $ac_try) 2>&5
6714  ac_status=$?
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); }; }; then
6717  flink_try=yes
6718else
6719  echo "$as_me: failed program was:" >&5
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722flink_try=no
6723fi
6724rm -f conftest.err conftest.$ac_objext \
6725      conftest$ac_exeext conftest.$ac_ext
6726    fi
6727    if test $flink_try = yes; then
6728      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6729                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6730echo "${ECHO_T}yes: $use_blas" >&6
6731
6732    else
6733      if test x"$FLIBS" != x; then
6734        flink_save_libs="$LIBS"
6735        LIBS="$LIBS $FLIBS"
6736        cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h.  */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h.  */
6742void $cfuncdaxpy();
6743#ifdef F77_DUMMY_MAIN
6744
6745#  ifdef __cplusplus
6746     extern "C"
6747#  endif
6748   int F77_DUMMY_MAIN() { return 1; }
6749
6750#endif
6751int
6752main ()
6753{
6754$cfuncdaxpy()
6755  ;
6756  return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext conftest$ac_exeext
6760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761  (eval $ac_link) 2>conftest.er1
6762  ac_status=$?
6763  grep -v '^ *+' conftest.er1 >conftest.err
6764  rm -f conftest.er1
6765  cat conftest.err >&5
6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767  (exit $ac_status); } &&
6768         { ac_try='test -z "$ac_c_werror_flag"
6769                         || test ! -s conftest.err'
6770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771  (eval $ac_try) 2>&5
6772  ac_status=$?
6773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774  (exit $ac_status); }; } &&
6775         { ac_try='test -s conftest$ac_exeext'
6776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777  (eval $ac_try) 2>&5
6778  ac_status=$?
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); }; }; then
6781  LIBS="$flink_save_libs"
6782                     coin_need_flibs=yes
6783                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6784                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6785echo "${ECHO_T}yes: $use_blas" >&6
6786
6787
6788else
6789  echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792LIBS="$flink_save_libs"
6793                     echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
6795fi
6796rm -f conftest.err conftest.$ac_objext \
6797      conftest$ac_exeext conftest.$ac_ext
6798      else
6799        echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6
6801      fi
6802    fi
6803    ;;
6804  cc|cpp)
6805    ac_ext=f
6806ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6807ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6809case $ac_cv_f77_mangling in
6810  upper*) ac_val="DAXPY" ;;
6811  lower*) ac_val="daxpy" ;;
6812  *)      ac_val="unknown" ;;
6813esac
6814case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6815
6816cfuncdaxpy="$ac_val"
6817
6818ac_ext=c
6819ac_cpp='$CPP $CPPFLAGS'
6820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823
6824    if test x"$coin_need_flibs" = xyes; then
6825      flink_try=no;
6826    else
6827      cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833extern "C" {void $cfuncdaxpy();}
6834#ifdef F77_DUMMY_MAIN
6835
6836#  ifdef __cplusplus
6837     extern "C"
6838#  endif
6839   int F77_DUMMY_MAIN() { return 1; }
6840
6841#endif
6842int
6843main ()
6844{
6845$cfuncdaxpy()
6846  ;
6847  return 0;
6848}
6849_ACEOF
6850rm -f conftest.$ac_objext conftest$ac_exeext
6851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852  (eval $ac_link) 2>conftest.er1
6853  ac_status=$?
6854  grep -v '^ *+' conftest.er1 >conftest.err
6855  rm -f conftest.er1
6856  cat conftest.err >&5
6857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858  (exit $ac_status); } &&
6859         { ac_try='test -z "$ac_c_werror_flag"
6860                         || test ! -s conftest.err'
6861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862  (eval $ac_try) 2>&5
6863  ac_status=$?
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); }; } &&
6866         { ac_try='test -s conftest$ac_exeext'
6867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868  (eval $ac_try) 2>&5
6869  ac_status=$?
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); }; }; then
6872  flink_try=yes
6873else
6874  echo "$as_me: failed program was:" >&5
6875sed 's/^/| /' conftest.$ac_ext >&5
6876
6877flink_try=no
6878fi
6879rm -f conftest.err conftest.$ac_objext \
6880      conftest$ac_exeext conftest.$ac_ext
6881    fi
6882    if test $flink_try = yes; then
6883      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6884                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6885echo "${ECHO_T}yes: $use_blas" >&6
6886
6887    else
6888      if test x"$FLIBS" != x; then
6889        flink_save_libs="$LIBS"
6890        LIBS="$LIBS $FLIBS"
6891        cat >conftest.$ac_ext <<_ACEOF
6892/* confdefs.h.  */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h.  */
6897extern "C" {void $cfuncdaxpy();}
6898#ifdef F77_DUMMY_MAIN
6899
6900#  ifdef __cplusplus
6901     extern "C"
6902#  endif
6903   int F77_DUMMY_MAIN() { return 1; }
6904
6905#endif
6906int
6907main ()
6908{
6909$cfuncdaxpy()
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext conftest$ac_exeext
6915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916  (eval $ac_link) 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } &&
6923         { ac_try='test -z "$ac_c_werror_flag"
6924                         || test ! -s conftest.err'
6925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926  (eval $ac_try) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; } &&
6930         { ac_try='test -s conftest$ac_exeext'
6931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932  (eval $ac_try) 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; }; then
6936  LIBS="$flink_save_libs"
6937                     coin_need_flibs=yes
6938                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6939                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6940echo "${ECHO_T}yes: $use_blas" >&6
6941
6942
6943else
6944  echo "$as_me: failed program was:" >&5
6945sed 's/^/| /' conftest.$ac_ext >&5
6946
6947LIBS="$flink_save_libs"
6948                     echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
6950fi
6951rm -f conftest.err conftest.$ac_objext \
6952      conftest$ac_exeext conftest.$ac_ext
6953      else
6954        echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956      fi
6957    fi
6958    ;;
6959esac
6960
6961            LIBS="$coin_save_LIBS"
6962          fi
6963          ;;
6964      esac
6965      ;;
6966
6967     *-darwin*)
6968      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
6969echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
6970      coin_need_flibs=no
6971      coin_save_LIBS="$LIBS"
6972      LIBS="-framework vecLib $LIBS"
6973      case $ac_ext in
6974  f)
6975    cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h.  */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h.  */
6981
6982#ifdef F77_DUMMY_MAIN
6983
6984#  ifdef __cplusplus
6985     extern "C"
6986#  endif
6987   int F77_DUMMY_MAIN() { return 1; }
6988
6989#endif
6990int
6991main ()
6992{
6993      call daxpy
6994  ;
6995  return 0;
6996}
6997_ACEOF
6998rm -f conftest.$ac_objext conftest$ac_exeext
6999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000  (eval $ac_link) 2>conftest.er1
7001  ac_status=$?
7002  grep -v '^ *+' conftest.er1 >conftest.err
7003  rm -f conftest.er1
7004  cat conftest.err >&5
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); } &&
7007         { ac_try='test -z "$ac_c_werror_flag"
7008                         || test ! -s conftest.err'
7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010  (eval $ac_try) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); }; } &&
7014         { ac_try='test -s conftest$ac_exeext'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; }; then
7020  use_blas='-framework vecLib'
7021                         if test $coin_need_flibs = yes ; then
7022                           use_blas="$use_blas $FLIBS"
7023                         fi
7024                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7025echo "${ECHO_T}yes: $use_blas" >&6
7026
7027else
7028  echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6
7033fi
7034rm -f conftest.err conftest.$ac_objext \
7035      conftest$ac_exeext conftest.$ac_ext
7036    ;;
7037  c)
7038    ac_ext=f
7039ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7040ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7042case $ac_cv_f77_mangling in
7043  upper*) ac_val="DAXPY" ;;
7044  lower*) ac_val="daxpy" ;;
7045  *)      ac_val="unknown" ;;
7046esac
7047case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7048
7049cfuncdaxpy="$ac_val"
7050
7051ac_ext=c
7052ac_cpp='$CPP $CPPFLAGS'
7053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057    if test x"$coin_need_flibs" = xyes; then
7058      flink_try=no;
7059    else
7060      cat >conftest.$ac_ext <<_ACEOF
7061/* confdefs.h.  */
7062_ACEOF
7063cat confdefs.h >>conftest.$ac_ext
7064cat >>conftest.$ac_ext <<_ACEOF
7065/* end confdefs.h.  */
7066void $cfuncdaxpy();
7067#ifdef F77_DUMMY_MAIN
7068
7069#  ifdef __cplusplus
7070     extern "C"
7071#  endif
7072   int F77_DUMMY_MAIN() { return 1; }
7073
7074#endif
7075int
7076main ()
7077{
7078$cfuncdaxpy()
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083rm -f conftest.$ac_objext conftest$ac_exeext
7084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085  (eval $ac_link) 2>conftest.er1
7086  ac_status=$?
7087  grep -v '^ *+' conftest.er1 >conftest.err
7088  rm -f conftest.er1
7089  cat conftest.err >&5
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } &&
7092         { ac_try='test -z "$ac_c_werror_flag"
7093                         || test ! -s conftest.err'
7094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095  (eval $ac_try) 2>&5
7096  ac_status=$?
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); }; } &&
7099         { ac_try='test -s conftest$ac_exeext'
7100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101  (eval $ac_try) 2>&5
7102  ac_status=$?
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); }; }; then
7105  flink_try=yes
7106else
7107  echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110flink_try=no
7111fi
7112rm -f conftest.err conftest.$ac_objext \
7113      conftest$ac_exeext conftest.$ac_ext
7114    fi
7115    if test $flink_try = yes; then
7116      use_blas='-framework vecLib'
7117                         if test $coin_need_flibs = yes ; then
7118                           use_blas="$use_blas $FLIBS"
7119                         fi
7120                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7121echo "${ECHO_T}yes: $use_blas" >&6
7122
7123    else
7124      if test x"$FLIBS" != x; then
7125        flink_save_libs="$LIBS"
7126        LIBS="$LIBS $FLIBS"
7127        cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h.  */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h.  */
7133void $cfuncdaxpy();
7134#ifdef F77_DUMMY_MAIN
7135
7136#  ifdef __cplusplus
7137     extern "C"
7138#  endif
7139   int F77_DUMMY_MAIN() { return 1; }
7140
7141#endif
7142int
7143main ()
7144{
7145$cfuncdaxpy()
7146  ;
7147  return 0;
7148}
7149_ACEOF
7150rm -f conftest.$ac_objext conftest$ac_exeext
7151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152  (eval $ac_link) 2>conftest.er1
7153  ac_status=$?
7154  grep -v '^ *+' conftest.er1 >conftest.err
7155  rm -f conftest.er1
7156  cat conftest.err >&5
7157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158  (exit $ac_status); } &&
7159         { ac_try='test -z "$ac_c_werror_flag"
7160                         || test ! -s conftest.err'
7161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162  (eval $ac_try) 2>&5
7163  ac_status=$?
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); }; } &&
7166         { ac_try='test -s conftest$ac_exeext'
7167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168  (eval $ac_try) 2>&5
7169  ac_status=$?
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); }; }; then
7172  LIBS="$flink_save_libs"
7173                     coin_need_flibs=yes
7174                     use_blas='-framework vecLib'
7175                         if test $coin_need_flibs = yes ; then
7176                           use_blas="$use_blas $FLIBS"
7177                         fi
7178                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7179echo "${ECHO_T}yes: $use_blas" >&6
7180
7181
7182else
7183  echo "$as_me: failed program was:" >&5
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186LIBS="$flink_save_libs"
7187                     echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189fi
7190rm -f conftest.err conftest.$ac_objext \
7191      conftest$ac_exeext conftest.$ac_ext
7192      else
7193        echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
7195      fi
7196    fi
7197    ;;
7198  cc|cpp)
7199    ac_ext=f
7200ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7201ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7203case $ac_cv_f77_mangling in
7204  upper*) ac_val="DAXPY" ;;
7205  lower*) ac_val="daxpy" ;;
7206  *)      ac_val="unknown" ;;
7207esac
7208case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7209
7210cfuncdaxpy="$ac_val"
7211
7212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218    if test x"$coin_need_flibs" = xyes; then
7219      flink_try=no;
7220    else
7221      cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227extern "C" {void $cfuncdaxpy();}
7228#ifdef F77_DUMMY_MAIN
7229
7230#  ifdef __cplusplus
7231     extern "C"
7232#  endif
7233   int F77_DUMMY_MAIN() { return 1; }
7234
7235#endif
7236int
7237main ()
7238{
7239$cfuncdaxpy()
7240  ;
7241  return 0;
7242}
7243_ACEOF
7244rm -f conftest.$ac_objext conftest$ac_exeext
7245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246  (eval $ac_link) 2>conftest.er1
7247  ac_status=$?
7248  grep -v '^ *+' conftest.er1 >conftest.err
7249  rm -f conftest.er1
7250  cat conftest.err >&5
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); } &&
7253         { ac_try='test -z "$ac_c_werror_flag"
7254                         || test ! -s conftest.err'
7255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256  (eval $ac_try) 2>&5
7257  ac_status=$?
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); }; } &&
7260         { ac_try='test -s conftest$ac_exeext'
7261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262  (eval $ac_try) 2>&5
7263  ac_status=$?
7264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265  (exit $ac_status); }; }; then
7266  flink_try=yes
7267else
7268  echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
7271flink_try=no
7272fi
7273rm -f conftest.err conftest.$ac_objext \
7274      conftest$ac_exeext conftest.$ac_ext
7275    fi
7276    if test $flink_try = yes; then
7277      use_blas='-framework vecLib'
7278                         if test $coin_need_flibs = yes ; then
7279                           use_blas="$use_blas $FLIBS"
7280                         fi
7281                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7282echo "${ECHO_T}yes: $use_blas" >&6
7283
7284    else
7285      if test x"$FLIBS" != x; then
7286        flink_save_libs="$LIBS"
7287        LIBS="$LIBS $FLIBS"
7288        cat >conftest.$ac_ext <<_ACEOF
7289/* confdefs.h.  */
7290_ACEOF
7291cat confdefs.h >>conftest.$ac_ext
7292cat >>conftest.$ac_ext <<_ACEOF
7293/* end confdefs.h.  */
7294extern "C" {void $cfuncdaxpy();}
7295#ifdef F77_DUMMY_MAIN
7296
7297#  ifdef __cplusplus
7298     extern "C"
7299#  endif
7300   int F77_DUMMY_MAIN() { return 1; }
7301
7302#endif
7303int
7304main ()
7305{
7306$cfuncdaxpy()
7307  ;
7308  return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext conftest$ac_exeext
7312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313  (eval $ac_link) 2>conftest.er1
7314  ac_status=$?
7315  grep -v '^ *+' conftest.er1 >conftest.err
7316  rm -f conftest.er1
7317  cat conftest.err >&5
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } &&
7320         { ac_try='test -z "$ac_c_werror_flag"
7321                         || test ! -s conftest.err'
7322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323  (eval $ac_try) 2>&5
7324  ac_status=$?
7325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326  (exit $ac_status); }; } &&
7327         { ac_try='test -s conftest$ac_exeext'
7328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329  (eval $ac_try) 2>&5
7330  ac_status=$?
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); }; }; then
7333  LIBS="$flink_save_libs"
7334                     coin_need_flibs=yes
7335                     use_blas='-framework vecLib'
7336                         if test $coin_need_flibs = yes ; then
7337                           use_blas="$use_blas $FLIBS"
7338                         fi
7339                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7340echo "${ECHO_T}yes: $use_blas" >&6
7341
7342
7343else
7344  echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347LIBS="$flink_save_libs"
7348                     echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350fi
7351rm -f conftest.err conftest.$ac_objext \
7352      conftest$ac_exeext conftest.$ac_ext
7353      else
7354        echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
7356      fi
7357    fi
7358    ;;
7359esac
7360
7361      LIBS="$coin_save_LIBS"
7362      ;;
7363  esac
7364
7365  if test -z "$use_blas" ; then
7366    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7367echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7368    coin_need_flibs=no
7369    coin_save_LIBS="$LIBS"
7370    LIBS="-lblas $LIBS"
7371    case $ac_ext in
7372  f)
7373    cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h.  */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h.  */
7379
7380#ifdef F77_DUMMY_MAIN
7381
7382#  ifdef __cplusplus
7383     extern "C"
7384#  endif
7385   int F77_DUMMY_MAIN() { return 1; }
7386
7387#endif
7388int
7389main ()
7390{
7391      call daxpy
7392  ;
7393  return 0;
7394}
7395_ACEOF
7396rm -f conftest.$ac_objext conftest$ac_exeext
7397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398  (eval $ac_link) 2>conftest.er1
7399  ac_status=$?
7400  grep -v '^ *+' conftest.er1 >conftest.err
7401  rm -f conftest.er1
7402  cat conftest.err >&5
7403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404  (exit $ac_status); } &&
7405         { ac_try='test -z "$ac_c_werror_flag"
7406                         || test ! -s conftest.err'
7407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408  (eval $ac_try) 2>&5
7409  ac_status=$?
7410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411  (exit $ac_status); }; } &&
7412         { ac_try='test -s conftest$ac_exeext'
7413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414  (eval $ac_try) 2>&5
7415  ac_status=$?
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); }; }; then
7418  use_blas='-lblas'
7419                       if test $coin_need_flibs = yes ; then
7420                         use_blas="$use_blas $FLIBS"
7421                       fi
7422                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7423echo "${ECHO_T}yes: $use_blas" >&6
7424
7425else
7426  echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6
7431fi
7432rm -f conftest.err conftest.$ac_objext \
7433      conftest$ac_exeext conftest.$ac_ext
7434    ;;
7435  c)
7436    ac_ext=f
7437ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7438ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7439ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7440case $ac_cv_f77_mangling in
7441  upper*) ac_val="DAXPY" ;;
7442  lower*) ac_val="daxpy" ;;
7443  *)      ac_val="unknown" ;;
7444esac
7445case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7446
7447cfuncdaxpy="$ac_val"
7448
7449ac_ext=c
7450ac_cpp='$CPP $CPPFLAGS'
7451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455    if test x"$coin_need_flibs" = xyes; then
7456      flink_try=no;
7457    else
7458      cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h.  */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h.  */
7464void $cfuncdaxpy();
7465#ifdef F77_DUMMY_MAIN
7466
7467#  ifdef __cplusplus
7468     extern "C"
7469#  endif
7470   int F77_DUMMY_MAIN() { return 1; }
7471
7472#endif
7473int
7474main ()
7475{
7476$cfuncdaxpy()
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481rm -f conftest.$ac_objext conftest$ac_exeext
7482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483  (eval $ac_link) 2>conftest.er1
7484  ac_status=$?
7485  grep -v '^ *+' conftest.er1 >conftest.err
7486  rm -f conftest.er1
7487  cat conftest.err >&5
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } &&
7490         { ac_try='test -z "$ac_c_werror_flag"
7491                         || test ! -s conftest.err'
7492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493  (eval $ac_try) 2>&5
7494  ac_status=$?
7495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496  (exit $ac_status); }; } &&
7497         { ac_try='test -s conftest$ac_exeext'
7498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499  (eval $ac_try) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); }; }; then
7503  flink_try=yes
7504else
7505  echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508flink_try=no
7509fi
7510rm -f conftest.err conftest.$ac_objext \
7511      conftest$ac_exeext conftest.$ac_ext
7512    fi
7513    if test $flink_try = yes; then
7514      use_blas='-lblas'
7515                       if test $coin_need_flibs = yes ; then
7516                         use_blas="$use_blas $FLIBS"
7517                       fi
7518                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7519echo "${ECHO_T}yes: $use_blas" >&6
7520
7521    else
7522      if test x"$FLIBS" != x; then
7523        flink_save_libs="$LIBS"
7524        LIBS="$LIBS $FLIBS"
7525        cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h.  */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h.  */
7531void $cfuncdaxpy();
7532#ifdef F77_DUMMY_MAIN
7533
7534#  ifdef __cplusplus
7535     extern "C"
7536#  endif
7537   int F77_DUMMY_MAIN() { return 1; }
7538
7539#endif
7540int
7541main ()
7542{
7543$cfuncdaxpy()
7544  ;
7545  return 0;
7546}
7547_ACEOF
7548rm -f conftest.$ac_objext conftest$ac_exeext
7549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550  (eval $ac_link) 2>conftest.er1
7551  ac_status=$?
7552  grep -v '^ *+' conftest.er1 >conftest.err
7553  rm -f conftest.er1
7554  cat conftest.err >&5
7555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556  (exit $ac_status); } &&
7557         { ac_try='test -z "$ac_c_werror_flag"
7558                         || test ! -s conftest.err'
7559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560  (eval $ac_try) 2>&5
7561  ac_status=$?
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); }; } &&
7564         { ac_try='test -s conftest$ac_exeext'
7565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566  (eval $ac_try) 2>&5
7567  ac_status=$?
7568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569  (exit $ac_status); }; }; then
7570  LIBS="$flink_save_libs"
7571                     coin_need_flibs=yes
7572                     use_blas='-lblas'
7573                       if test $coin_need_flibs = yes ; then
7574                         use_blas="$use_blas $FLIBS"
7575                       fi
7576                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7577echo "${ECHO_T}yes: $use_blas" >&6
7578
7579
7580else
7581  echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584LIBS="$flink_save_libs"
7585                     echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588rm -f conftest.err conftest.$ac_objext \
7589      conftest$ac_exeext conftest.$ac_ext
7590      else
7591        echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
7593      fi
7594    fi
7595    ;;
7596  cc|cpp)
7597    ac_ext=f
7598ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7599ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7601case $ac_cv_f77_mangling in
7602  upper*) ac_val="DAXPY" ;;
7603  lower*) ac_val="daxpy" ;;
7604  *)      ac_val="unknown" ;;
7605esac
7606case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7607
7608cfuncdaxpy="$ac_val"
7609
7610ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616    if test x"$coin_need_flibs" = xyes; then
7617      flink_try=no;
7618    else
7619      cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h.  */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h.  */
7625extern "C" {void $cfuncdaxpy();}
7626#ifdef F77_DUMMY_MAIN
7627
7628#  ifdef __cplusplus
7629     extern "C"
7630#  endif
7631   int F77_DUMMY_MAIN() { return 1; }
7632
7633#endif
7634int
7635main ()
7636{
7637$cfuncdaxpy()
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext conftest$ac_exeext
7643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7644  (eval $ac_link) 2>conftest.er1
7645  ac_status=$?
7646  grep -v '^ *+' conftest.er1 >conftest.err
7647  rm -f conftest.er1
7648  cat conftest.err >&5
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } &&
7651         { ac_try='test -z "$ac_c_werror_flag"
7652                         || test ! -s conftest.err'
7653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654  (eval $ac_try) 2>&5
7655  ac_status=$?
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); }; } &&
7658         { ac_try='test -s conftest$ac_exeext'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; }; then
7664  flink_try=yes
7665else
7666  echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669flink_try=no
7670fi
7671rm -f conftest.err conftest.$ac_objext \
7672      conftest$ac_exeext conftest.$ac_ext
7673    fi
7674    if test $flink_try = yes; then
7675      use_blas='-lblas'
7676                       if test $coin_need_flibs = yes ; then
7677                         use_blas="$use_blas $FLIBS"
7678                       fi
7679                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7680echo "${ECHO_T}yes: $use_blas" >&6
7681
7682    else
7683      if test x"$FLIBS" != x; then
7684        flink_save_libs="$LIBS"
7685        LIBS="$LIBS $FLIBS"
7686        cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h.  */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h.  */
7692extern "C" {void $cfuncdaxpy();}
7693#ifdef F77_DUMMY_MAIN
7694
7695#  ifdef __cplusplus
7696     extern "C"
7697#  endif
7698   int F77_DUMMY_MAIN() { return 1; }
7699
7700#endif
7701int
7702main ()
7703{
7704$cfuncdaxpy()
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709rm -f conftest.$ac_objext conftest$ac_exeext
7710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711  (eval $ac_link) 2>conftest.er1
7712  ac_status=$?
7713  grep -v '^ *+' conftest.er1 >conftest.err
7714  rm -f conftest.er1
7715  cat conftest.err >&5
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); } &&
7718         { ac_try='test -z "$ac_c_werror_flag"
7719                         || test ! -s conftest.err'
7720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721  (eval $ac_try) 2>&5
7722  ac_status=$?
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); }; } &&
7725         { ac_try='test -s conftest$ac_exeext'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; }; then
7731  LIBS="$flink_save_libs"
7732                     coin_need_flibs=yes
7733                     use_blas='-lblas'
7734                       if test $coin_need_flibs = yes ; then
7735                         use_blas="$use_blas $FLIBS"
7736                       fi
7737                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7738echo "${ECHO_T}yes: $use_blas" >&6
7739
7740
7741else
7742  echo "$as_me: failed program was:" >&5
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
7745LIBS="$flink_save_libs"
7746                     echo "$as_me:$LINENO: result: no" >&5
7747echo "${ECHO_T}no" >&6
7748fi
7749rm -f conftest.err conftest.$ac_objext \
7750      conftest$ac_exeext conftest.$ac_ext
7751      else
7752        echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754      fi
7755    fi
7756    ;;
7757esac
7758
7759    LIBS="$coin_save_LIBS"
7760  fi
7761
7762  # If we have no other ideas, consider building BLAS.
7763  if test -z "$use_blas" ; then
7764    use_blas=BUILD
7765  fi
7766fi
7767
7768if test "x$use_blas" = xBUILD ; then
7769
7770echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
7771echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
7772
7773coin_has_blas=notGiven
7774
7775# check if user wants to skip package in any case
7776if test x"$COIN_SKIP_PROJECTS" != x; then
7777  for dir in $COIN_SKIP_PROJECTS; do
7778    if test $dir = "Blas"; then
7779      coin_has_blas=skipping
7780    fi
7781  done
7782fi
7783
7784if test "$coin_has_blas" != skipping; then
7785
7786# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
7787if test "${with_blas+set}" = set; then
7788  withval="$with_blas"
7789  if test "$withval" = no ; then
7790       coin_has_blas=skipping
7791     fi
7792
7793fi;
7794fi
7795
7796BLAS_LIBS=
7797BLAS_CFLAGS=
7798BLAS_DATA=
7799BLAS_DEPENDENCIES=
7800BLAS_PCLIBS=
7801BLAS_PCREQUIRES=
7802BLAS_DATA=
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
7821if test $coin_has_blas != skipping; then
7822
7823# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
7824if test "${with_blas_lib+set}" = set; then
7825  withval="$with_blas_lib"
7826  if test "$withval" = no ; then
7827       coin_has_blas=skipping
7828     else
7829       coin_has_blas=yes
7830       BLAS_LIBS="$withval"
7831       BLAS_PCLIBS="$withval"
7832
7833         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
7834         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
7835
7836       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7837       if test -z "$PKG_CONFIG" ; then
7838         BLAS_LIBS_INSTALLED="$withval"
7839         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
7840       fi
7841     fi
7842
7843fi;
7844fi
7845
7846if test $coin_has_blas != skipping; then
7847
7848# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
7849if test "${with_blas_incdir+set}" = set; then
7850  withval="$with_blas_incdir"
7851  if test "$withval" = no ; then
7852       coin_has_blas=skipping
7853     else
7854       coin_has_blas=yes
7855       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
7856       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
7857       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7858       if test -z "$PKG_CONFIG" ; then
7859         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
7860         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
7861       fi
7862     fi
7863
7864fi;
7865fi
7866
7867if test $coin_has_blas != skipping; then
7868
7869# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
7870if test "${with_blas_datadir+set}" = set; then
7871  withval="$with_blas_datadir"
7872  if test "$withval" = no ; then
7873       coin_has_blas=skipping
7874     else
7875       coin_has_blas=yes
7876       BLAS_DATA="$withval"
7877       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7878       if test -z "$PKG_CONFIG" ; then
7879         BLAS_DATA_INSTALLED="$withval"
7880       fi
7881     fi
7882
7883fi;
7884fi
7885
7886if test $coin_has_blas = notGiven; then
7887  if test -n "$PKG_CONFIG" ; then
7888    # set search path for pkg-config
7889    # need to export variable to be sure that the following pkg-config gets these values
7890    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
7891    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
7892    export PKG_CONFIG_PATH
7893
7894    # let pkg-config do it's magic
7895
7896
7897
7898if test -n "$PKG_CONFIG" ; then
7899  if $PKG_CONFIG --exists "coinblas"; then
7900    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
7901     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
7902    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
7903        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
7904        # but only do this if is not trivial
7905    if test "$CYGPATH_W" != "echo" ; then
7906      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
7907      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
7908    fi
7909    BLAS_CFLAGS="$cflags"
7910    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
7911    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
7912     coin_has_blas=yes
7913        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
7914echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
7915
7916        # adjust linker flags for (i)cl compiler
7917        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
7918        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
7919        then
7920          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
7921        fi
7922        BLAS_PCREQUIRES="coinblas"
7923
7924        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
7925
7926          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
7927          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
7928          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
7929
7930
7931
7932  else
7933    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
7934      coin_has_blas=notGiven
7935        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
7936echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
7937
7938  fi
7939else
7940  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
7941echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
7942   { (exit 1); exit 1; }; }
7943fi
7944
7945
7946
7947
7948    # reset PKG_CONFIG_PATH variable
7949    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
7950    export PKG_CONFIG_PATH
7951
7952  else
7953    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
7954echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
7955
7956echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
7957echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
7958
7959coin_has_blas=notGiven
7960BLAS_LIBS=
7961BLAS_LIBS_INSTALLED=
7962BLAS_CFLAGS=
7963BLAS_CFLAGS_INSTALLED=
7964BLAS_DATA=
7965BLAS_DATA_INSTALLED=
7966BLAS_PCLIBS=
7967BLAS_PCREQUIRES=
7968
7969# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
7970projtoprocess="coinblas"
7971
7972# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
7973# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
7974# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
7975# also, we setup the DATA variable
7976allproj=""
7977allpcfiles=""
7978allpcifiles=""
7979while test "x$projtoprocess" != x ; do
7980
7981  for proj in $projtoprocess ; do
7982    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
7983    pcfile=""
7984    save_IFS="$IFS"
7985    IFS=":"
7986    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
7987      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
7988      if test -r "$dir/${proj}-uninstalled.pc" ; then
7989        pcfile="$dir/$proj-uninstalled.pc"
7990        if test -r "$dir/${proj}.pc" ; then
7991          pcifile="$dir/${proj}.pc"
7992        else
7993          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
7994echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
7995          pcifile=
7996        fi
7997        break
7998      fi
7999    done
8000    IFS="$save_IFS"
8001
8002    if test "x$pcfile" != x ; then
8003      # read dependencies from $pcfile and filter it
8004      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
8005
8006      # add projrequires to the front of the list of projects that have to be processed next
8007      # at the same time, remove $proj from this list
8008      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
8009
8010      # read DATA from $pcfile, if _DATA is still empty
8011      if test "x$BLAS_DATA" = x ; then
8012        projdatadir=
8013        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
8014        eval `sh -c "$pcfilemod"`
8015        BLAS_DATA="$projdatadir"
8016      fi
8017
8018      allproj="$allproj $proj"
8019      allpcfiles="$pcfile:$allpcfiles"
8020
8021    else
8022      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
8023echo "${ECHO_T}no, dependency $proj not available" >&6
8024      allproj=fail
8025      break 2
8026    fi
8027
8028    if test "x$pcifile" != x ; then
8029      allpcifiles="$pcifile:$allpcifiles"
8030
8031      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
8032      if test "x$BLAS_DATA_INSTALLED" = x ; then
8033        projdatadir=
8034        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
8035        eval `sh -c "$pcifilemod"`
8036        if test "${CYGPATH_W}" != "echo"; then
8037          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8038        fi
8039        BLAS_DATA_INSTALLED="$projdatadir"
8040      fi
8041
8042    fi
8043
8044    break
8045  done
8046
8047  # remove spaces on begin of $projtoprocess
8048  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8049
8050done
8051
8052if test "$allproj" != fail ; then
8053
8054  # now go through the list of .pc files and assemble compiler and linker flags
8055  # important is here to obey the reverse order that has been setup before,
8056  # since then libraries that are required by several others should be after these other libraries
8057  pcfilesprocessed=""
8058
8059  save_IFS="$IFS"
8060  IFS=":"
8061  for pcfile in $allpcfiles ; do
8062
8063    # if $pcfile has been processed already, skip this round
8064    if test "x$pcfilesprocessed" != x ; then
8065      for pcfiledone in $pcfilesprocessed ; do
8066        if test "$pcfiledone" = "$pcfile" ; then
8067          continue 2
8068        fi
8069      done
8070    fi
8071
8072    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8073    #   replace "Libs:" by "echo projlibs="
8074    #   replace "Cflags:" by "echo projcflags="
8075    #   remove every line starting with <some word>:
8076    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8077
8078    # set projcflags and projlibs variables by running $pcfilemod
8079    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8080    projcflags=
8081    projlibs=
8082    IFS="$save_IFS"
8083    eval `sh -c "$pcfilemod"`
8084    IFS=":"
8085
8086    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8087    if test "${CYGPATH_W}" != "echo"; then
8088      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8089    fi
8090    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8091
8092    # set LIBS variable
8093    BLAS_LIBS="$projlibs $BLAS_LIBS"
8094
8095    # remember that we have processed $pcfile
8096    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8097
8098  done
8099  IFS="$save_IFS"
8100
8101
8102  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8103  # important is here again to obey the reverse order that has been setup before,
8104  # since then libraries that are required by several others should be after these other libraries
8105  pcfilesprocessed=""
8106
8107  save_IFS="$IFS"
8108  IFS=":"
8109  for pcfile in $allpcifiles ; do
8110
8111    # if $pcfile has been processed already, skip this round
8112    if test "x$pcfilesprocessed" != x ; then
8113      for pcfiledone in $pcfilesprocessed ; do
8114        if test "$pcfiledone" = "$pcfile" ; then
8115          continue 2
8116        fi
8117      done
8118    fi
8119
8120    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8121    #   replace "Libs:" by "echo projlibs="
8122    #   replace "Cflags:" by "echo projcflags="
8123    #   remove every line starting with <some word>:
8124    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8125
8126    # set projcflags and projlibs variables by running $pcfilemod
8127    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
8128    projcflags=
8129    projlibs=
8130    IFS="$save_IFS"
8131    eval `sh -c "$pcfilemod"`
8132    IFS=":"
8133
8134    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8135    if test "${CYGPATH_W}" != "echo"; then
8136      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8137    fi
8138    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8139
8140    # set LIBS variable
8141    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8142
8143    # remember that we have processed $pcfile
8144    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8145
8146  done
8147  IFS="$save_IFS"
8148
8149
8150  # finish up
8151  coin_has_blas=yes
8152  echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154
8155cat >>confdefs.h <<\_ACEOF
8156#define COIN_HAS_BLAS 1
8157_ACEOF
8158
8159
8160  # adjust linker flags for (i)cl compiler
8161  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
8162  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8163  #    everything of the form "-lname" by "libname.lib", and
8164  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8165  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8166  then
8167    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8168    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
8169  fi
8170
8171  BLAS_PCREQUIRES="coinblas"
8172
8173    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8174    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8175    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8176    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8177    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8178
8179
8180fi
8181
8182
8183
8184if test $coin_has_blas != notGiven &&
8185                test $coin_has_blas != skipping; then
8186  COIN_HAS_BLAS_TRUE=
8187  COIN_HAS_BLAS_FALSE='#'
8188else
8189  COIN_HAS_BLAS_TRUE='#'
8190  COIN_HAS_BLAS_FALSE=
8191fi
8192
8193
8194
8195  fi
8196
8197else
8198  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8199echo "${ECHO_T}$coin_has_blas" >&6
8200fi
8201
8202if test $coin_has_blas != skipping &&
8203   test $coin_has_blas != notGiven ; then
8204
8205cat >>confdefs.h <<\_ACEOF
8206#define COIN_HAS_BLAS 1
8207_ACEOF
8208
8209
8210  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8211if test "${enable_interpackage_dependencies+set}" = set; then
8212  enableval="$enable_interpackage_dependencies"
8213
8214else
8215  enable_interpackage_dependencies=yes
8216fi;
8217
8218  if test $enable_interpackage_dependencies = yes ; then
8219     # construct dependencies variables from LIBS variables
8220     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8221     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8222     # then remove everything of the form -xxx
8223     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8224     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8225
8226       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
8227
8228  fi
8229
8230  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8231    if test -n "$BLAS_CFLAGS" ; then
8232      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8233echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8234    fi
8235    if test -n "$BLAS_LIBS" ; then
8236      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8237echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8238    fi
8239    if test -n "$BLAS_DEPENDENCIES" ; then
8240      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8241echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8242    fi
8243    if test -n "$BLAS_DATA" ; then
8244      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8245echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8246    fi
8247    if test -n "$BLAS_PCLIBS" ; then
8248      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8249echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8250    fi
8251    if test -n "$BLAS_PCREQUIRES" ; then
8252      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8253echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8254    fi
8255
8256      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8257echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8258      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8259echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8260      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8261echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8262
8263  fi
8264fi
8265
8266# Define the Makefile conditional
8267
8268
8269if test $coin_has_blas != notGiven &&
8270                test $coin_has_blas != skipping; then
8271  COIN_HAS_BLAS_TRUE=
8272  COIN_HAS_BLAS_FALSE='#'
8273else
8274  COIN_HAS_BLAS_TRUE='#'
8275  COIN_HAS_BLAS_FALSE=
8276fi
8277
8278
8279
8280
8281elif test "x$use_blas" != x && test "$use_blas" != no; then
8282  coin_has_blas=yes
8283
8284
8285if test 0 = 0; then
8286  COIN_HAS_BLAS_TRUE=
8287  COIN_HAS_BLAS_FALSE='#'
8288else
8289  COIN_HAS_BLAS_TRUE='#'
8290  COIN_HAS_BLAS_FALSE=
8291fi
8292
8293
8294cat >>confdefs.h <<\_ACEOF
8295#define COIN_HAS_BLAS 1
8296_ACEOF
8297
8298  BLAS_LIBS="$use_blas"
8299  BLAS_CFLAGS=
8300  BLAS_DATA=
8301
8302
8303
8304
8305    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8306    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8307    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8308
8309
8310else
8311  coin_has_blas=no
8312
8313
8314if test 0 = 1; then
8315  COIN_HAS_BLAS_TRUE=
8316  COIN_HAS_BLAS_FALSE='#'
8317else
8318  COIN_HAS_BLAS_TRUE='#'
8319  COIN_HAS_BLAS_FALSE=
8320fi
8321
8322fi
8323
8324
8325
8326
8327
8328
8329
8330
8331if test $coin_has_blas != yes; then
8332  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8333echo "$as_me: error: Required package BLAS not found." >&2;}
8334   { (exit 1); exit 1; }; }
8335fi
8336
8337# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8338LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8339
8340# Take care that optimization is disbled for DLAMCH.F
8341
8342if test "x$DLAMCH_FFLAGS" = x ; then
8343  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8344  case $F77 in
8345    ifort* | */ifort* | IFORT* | */IFORT* )
8346      case $build in
8347        *-cygwin* | *-mingw*)
8348          DLAMCH_FFLAGS="$FFLAGS -Od"
8349          ;;
8350        *)
8351          DLAMCH_FFLAGS="$FFLAGS -O0"
8352          ;;
8353      esac
8354      ;;
8355    compile_f2c*)
8356      case "$CC" in
8357        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8358          DLAMCH_FFLAGS="$FFLAGS -Od"
8359        ;;
8360        *)
8361          DLAMCH_FFLAGS="$FFLAGS -O0"
8362        ;;
8363      esac
8364      ;;
8365    *)
8366      DLAMCH_FFLAGS="$FFLAGS -O0"
8367      ;;
8368  esac
8369fi
8370
8371
8372# Initialize autotools
8373{
8374
8375
8376
8377# START
8378
8379coin_disable_shared=no
8380# Test if force_shared has been set
8381if test "x" = xforce_shared; then
8382  if test x$enable_shared = xno; then
8383    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8384echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8385   { (exit 1); exit 1; }; }
8386  fi
8387  enable_shared=yes;
8388else
8389  # On Cygwin and AIX, building DLLs doesn't work
8390  case $build in
8391    *-cygwin* | *-mingw*)
8392      coin_disable_shared=yes
8393      if test x"$enable_shared" = xyes; then
8394        case "$CXX" in
8395          clang* )
8396            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8397echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8398            ;;
8399          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8400            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
8401echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
8402            ;;
8403          *)
8404            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
8405echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
8406            ;;
8407        esac
8408      fi
8409    ;;
8410    *-aix*)
8411      coin_disable_shared=yes
8412      platform=AIX
8413      if test x"$enable_shared" = xyes; then
8414        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
8415echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
8416      fi
8417    ;;
8418  esac
8419fi
8420if test x"$coin_disable_shared" = xyes; then
8421  if test x"$enable_shared" = xyes; then
8422    :
8423  else
8424    # we don't disable shared, because it was not selected anyway
8425    coin_disable_shared=no
8426  fi
8427  enable_shared=no
8428fi
8429# By default, we only want the shared objects to be compiled
8430# Check whether --enable-static or --disable-static was given.
8431if test "${enable_static+set}" = set; then
8432  enableval="$enable_static"
8433  p=${PACKAGE-default}
8434    case $enableval in
8435    yes) enable_static=yes ;;
8436    no) enable_static=no ;;
8437    *)
8438     enable_static=no
8439      # Look at the argument we got.  We use all the common list separators.
8440      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8441      for pkg in $enableval; do
8442        IFS="$lt_save_ifs"
8443        if test "X$pkg" = "X$p"; then
8444          enable_static=yes
8445        fi
8446      done
8447      IFS="$lt_save_ifs"
8448      ;;
8449    esac
8450else
8451  enable_static=no
8452fi;
8453
8454
8455
8456
8457# Initialize automake
8458echo "$as_me:$LINENO: checking for egrep" >&5
8459echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8460if test "${ac_cv_prog_egrep+set}" = set; then
8461  echo $ECHO_N "(cached) $ECHO_C" >&6
8462else
8463  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8464    then ac_cv_prog_egrep='grep -E'
8465    else ac_cv_prog_egrep='egrep'
8466    fi
8467fi
8468echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8469echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8470 EGREP=$ac_cv_prog_egrep
8471
8472
8473echo "$as_me:$LINENO: checking whether ln -s works" >&5
8474echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8475LN_S=$as_ln_s
8476if test "$LN_S" = "ln -s"; then
8477  echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479else
8480  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8481echo "${ECHO_T}no, using $LN_S" >&6
8482fi
8483
8484am__api_version="1.9"
8485# Find a good install program.  We prefer a C program (faster),
8486# so one script is as good as another.  But avoid the broken or
8487# incompatible versions:
8488# SysV /etc/install, /usr/sbin/install
8489# SunOS /usr/etc/install
8490# IRIX /sbin/install
8491# AIX /bin/install
8492# AmigaOS /C/install, which installs bootblocks on floppy discs
8493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8496# OS/2's system install, which has a completely different semantic
8497# ./install, which can be erroneously created by make from ./install.sh.
8498echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8500if test -z "$INSTALL"; then
8501if test "${ac_cv_path_install+set}" = set; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507  IFS=$as_save_IFS
8508  test -z "$as_dir" && as_dir=.
8509  # Account for people who put trailing slashes in PATH elements.
8510case $as_dir/ in
8511  ./ | .// | /cC/* | \
8512  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8513  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8514  /usr/ucb/* ) ;;
8515  *)
8516    # OSF1 and SCO ODT 3.0 have their own names for install.
8517    # Don't use installbsd from OSF since it installs stuff as root
8518    # by default.
8519    for ac_prog in ginstall scoinst install; do
8520      for ac_exec_ext in '' $ac_executable_extensions; do
8521        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8522          if test $ac_prog = install &&
8523            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8524            # AIX install.  It has an incompatible calling convention.
8525            :
8526          elif test $ac_prog = install &&
8527            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8528            # program-specific install script used by HP pwplus--don't use.
8529            :
8530          else
8531            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8532            break 3
8533          fi
8534        fi
8535      done
8536    done
8537    ;;
8538esac
8539done
8540
8541
8542fi
8543  if test "${ac_cv_path_install+set}" = set; then
8544    INSTALL=$ac_cv_path_install
8545  else
8546    # As a last resort, use the slow shell script.  We don't cache a
8547    # path for INSTALL within a source directory, because that will
8548    # break other packages using the cache if that directory is
8549    # removed, or if the path is relative.
8550    INSTALL=$ac_install_sh
8551  fi
8552fi
8553echo "$as_me:$LINENO: result: $INSTALL" >&5
8554echo "${ECHO_T}$INSTALL" >&6
8555
8556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8557# It thinks the first close brace ends the variable substitution.
8558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8559
8560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8561
8562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8563
8564echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8565echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8566# Just in case
8567sleep 1
8568echo timestamp > conftest.file
8569# Do `set' in a subshell so we don't clobber the current shell's
8570# arguments.  Must try -L first in case configure is actually a
8571# symlink; some systems play weird games with the mod time of symlinks
8572# (eg FreeBSD returns the mod time of the symlink's containing
8573# directory).
8574if (
8575   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8576   if test "$*" = "X"; then
8577      # -L didn't work.
8578      set X `ls -t $srcdir/configure conftest.file`
8579   fi
8580   rm -f conftest.file
8581   if test "$*" != "X $srcdir/configure conftest.file" \
8582      && test "$*" != "X conftest.file $srcdir/configure"; then
8583
8584      # If neither matched, then we have a broken ls.  This can happen
8585      # if, for instance, CONFIG_SHELL is bash and it inherits a
8586      # broken ls alias from the environment.  This has actually
8587      # happened.  Such a system could not be considered "sane".
8588      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8589alias in your environment" >&5
8590echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8591alias in your environment" >&2;}
8592   { (exit 1); exit 1; }; }
8593   fi
8594
8595   test "$2" = conftest.file
8596   )
8597then
8598   # Ok.
8599   :
8600else
8601   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8602Check your system clock" >&5
8603echo "$as_me: error: newly created file is older than distributed files!
8604Check your system clock" >&2;}
8605   { (exit 1); exit 1; }; }
8606fi
8607echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609test "$program_prefix" != NONE &&
8610  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8611# Use a double $ so make ignores it.
8612test "$program_suffix" != NONE &&
8613  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8614# Double any \ or $.  echo might interpret backslashes.
8615# By default was `s,x,x', remove it if useless.
8616cat <<\_ACEOF >conftest.sed
8617s/[\\$]/&&/g;s/;s,x,x,$//
8618_ACEOF
8619program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8620rm conftest.sed
8621
8622# expand $ac_aux_dir to an absolute path
8623am_aux_dir=`cd $ac_aux_dir && pwd`
8624
8625test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8626# Use eval to expand $SHELL
8627if eval "$MISSING --run true"; then
8628  am_missing_run="$MISSING --run "
8629else
8630  am_missing_run=
8631  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8632echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8633fi
8634
8635if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8636  # We used to keeping the `.' as first argument, in order to
8637  # allow $(mkdir_p) to be used without argument.  As in
8638  #   $(mkdir_p) $(somedir)
8639  # where $(somedir) is conditionally defined.  However this is wrong
8640  # for two reasons:
8641  #  1. if the package is installed by a user who cannot write `.'
8642  #     make install will fail,
8643  #  2. the above comment should most certainly read
8644  #     $(mkdir_p) $(DESTDIR)$(somedir)
8645  #     so it does not work when $(somedir) is undefined and
8646  #     $(DESTDIR) is not.
8647  #  To support the latter case, we have to write
8648  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8649  #  so the `.' trick is pointless.
8650  mkdir_p='mkdir -p --'
8651else
8652  # On NextStep and OpenStep, the `mkdir' command does not
8653  # recognize any option.  It will interpret all options as
8654  # directories to create, and then abort because `.' already
8655  # exists.
8656  for d in ./-p ./--version;
8657  do
8658    test -d $d && rmdir $d
8659  done
8660  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8661  if test -f "$ac_aux_dir/mkinstalldirs"; then
8662    mkdir_p='$(mkinstalldirs)'
8663  else
8664    mkdir_p='$(install_sh) -d'
8665  fi
8666fi
8667
8668for ac_prog in gawk mawk nawk awk
8669do
8670  # Extract the first word of "$ac_prog", so it can be a program name with args.
8671set dummy $ac_prog; ac_word=$2
8672echo "$as_me:$LINENO: checking for $ac_word" >&5
8673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8674if test "${ac_cv_prog_AWK+set}" = set; then
8675  echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677  if test -n "$AWK"; then
8678  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8679else
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683  IFS=$as_save_IFS
8684  test -z "$as_dir" && as_dir=.
8685  for ac_exec_ext in '' $ac_executable_extensions; do
8686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687    ac_cv_prog_AWK="$ac_prog"
8688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8689    break 2
8690  fi
8691done
8692done
8693
8694fi
8695fi
8696AWK=$ac_cv_prog_AWK
8697if test -n "$AWK"; then
8698  echo "$as_me:$LINENO: result: $AWK" >&5
8699echo "${ECHO_T}$AWK" >&6
8700else
8701  echo "$as_me:$LINENO: result: no" >&5
8702echo "${ECHO_T}no" >&6
8703fi
8704
8705  test -n "$AWK" && break
8706done
8707
8708echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8709echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8710set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8711if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714  cat >conftest.make <<\_ACEOF
8715all:
8716        @echo 'ac_maketemp="$(MAKE)"'
8717_ACEOF
8718# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8719eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8720if test -n "$ac_maketemp"; then
8721  eval ac_cv_prog_make_${ac_make}_set=yes
8722else
8723  eval ac_cv_prog_make_${ac_make}_set=no
8724fi
8725rm -f conftest.make
8726fi
8727if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8728  echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730  SET_MAKE=
8731else
8732  echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734  SET_MAKE="MAKE=${MAKE-make}"
8735fi
8736
8737rm -rf .tst 2>/dev/null
8738mkdir .tst 2>/dev/null
8739if test -d .tst; then
8740  am__leading_dot=.
8741else
8742  am__leading_dot=_
8743fi
8744rmdir .tst 2>/dev/null
8745
8746DEPDIR="${am__leading_dot}deps"
8747
8748          ac_config_commands="$ac_config_commands depfiles"
8749
8750
8751am_make=${MAKE-make}
8752cat > confinc << 'END'
8753am__doit:
8754        @echo done
8755.PHONY: am__doit
8756END
8757# If we don't find an include directive, just comment out the code.
8758echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8759echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8760am__include="#"
8761am__quote=
8762_am_result=none
8763# First try GNU make style include.
8764echo "include confinc" > confmf
8765# We grep out `Entering directory' and `Leaving directory'
8766# messages which can occur if `w' ends up in MAKEFLAGS.
8767# In particular we don't look at `^make:' because GNU make might
8768# be invoked under some other name (usually "gmake"), in which
8769# case it prints its new name instead of `make'.
8770if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8771   am__include=include
8772   am__quote=
8773   _am_result=GNU
8774fi
8775# Now try BSD make style include.
8776if test "$am__include" = "#"; then
8777   echo '.include "confinc"' > confmf
8778   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8779      am__include=.include
8780      am__quote="\""
8781      _am_result=BSD
8782   fi
8783fi
8784
8785
8786echo "$as_me:$LINENO: result: $_am_result" >&5
8787echo "${ECHO_T}$_am_result" >&6
8788rm -f confinc confmf
8789
8790# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8791if test "${enable_dependency_tracking+set}" = set; then
8792  enableval="$enable_dependency_tracking"
8793
8794fi;
8795if test "x$enable_dependency_tracking" != xno; then
8796  am_depcomp="$ac_aux_dir/depcomp"
8797  AMDEPBACKSLASH='\'
8798fi
8799
8800
8801if test "x$enable_dependency_tracking" != xno; then
8802  AMDEP_TRUE=
8803  AMDEP_FALSE='#'
8804else
8805  AMDEP_TRUE='#'
8806  AMDEP_FALSE=
8807fi
8808
8809
8810
8811
8812
8813
8814# AC_MSG_NOTICE([Beginning automake initialisation.])
8815# Stuff for automake
8816# test to see if srcdir already configured
8817if test "`cd $srcdir && pwd`" != "`pwd`" &&
8818   test -f $srcdir/config.status; then
8819  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8820echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8821   { (exit 1); exit 1; }; }
8822fi
8823
8824# test whether we have cygpath
8825if test -z "$CYGPATH_W"; then
8826  if (cygpath --version) >/dev/null 2>/dev/null; then
8827    CYGPATH_W='cygpath -w'
8828  else
8829    CYGPATH_W=echo
8830  fi
8831fi
8832
8833
8834# Define the identity of the package.
8835 PACKAGE='thirdpartylapack'
8836 VERSION='1.4.8'
8837
8838
8839cat >>confdefs.h <<_ACEOF
8840#define PACKAGE "$PACKAGE"
8841_ACEOF
8842
8843
8844cat >>confdefs.h <<_ACEOF
8845#define VERSION "$VERSION"
8846_ACEOF
8847
8848# Some tools Automake needs.
8849
8850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8851
8852
8853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8854
8855
8856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8857
8858
8859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8860
8861
8862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8863
8864install_sh=${install_sh-"$am_aux_dir/install-sh"}
8865
8866# Installed binaries are usually stripped using `strip' when the user
8867# run `make install-strip'.  However `strip' might not be the right
8868# tool to use in cross-compilation environments, therefore Automake
8869# will honor the `STRIP' environment variable to overrule this program.
8870if test "$cross_compiling" != no; then
8871  if test -n "$ac_tool_prefix"; then
8872  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8873set dummy ${ac_tool_prefix}strip; ac_word=$2
8874echo "$as_me:$LINENO: checking for $ac_word" >&5
8875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8876if test "${ac_cv_prog_STRIP+set}" = set; then
8877  echo $ECHO_N "(cached) $ECHO_C" >&6
8878else
8879  if test -n "$STRIP"; then
8880  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885  IFS=$as_save_IFS
8886  test -z "$as_dir" && as_dir=.
8887  for ac_exec_ext in '' $ac_executable_extensions; do
8888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894done
8895
8896fi
8897fi
8898STRIP=$ac_cv_prog_STRIP
8899if test -n "$STRIP"; then
8900  echo "$as_me:$LINENO: result: $STRIP" >&5
8901echo "${ECHO_T}$STRIP" >&6
8902else
8903  echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
8905fi
8906
8907fi
8908if test -z "$ac_cv_prog_STRIP"; then
8909  ac_ct_STRIP=$STRIP
8910  # Extract the first word of "strip", so it can be a program name with args.
8911set dummy strip; ac_word=$2
8912echo "$as_me:$LINENO: checking for $ac_word" >&5
8913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8914if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8915  echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917  if test -n "$ac_ct_STRIP"; then
8918  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8919else
8920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923  IFS=$as_save_IFS
8924  test -z "$as_dir" && as_dir=.
8925  for ac_exec_ext in '' $ac_executable_extensions; do
8926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927    ac_cv_prog_ac_ct_STRIP="strip"
8928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8929    break 2
8930  fi
8931done
8932done
8933
8934  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8935fi
8936fi
8937ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8938if test -n "$ac_ct_STRIP"; then
8939  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8940echo "${ECHO_T}$ac_ct_STRIP" >&6
8941else
8942  echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
8944fi
8945
8946  STRIP=$ac_ct_STRIP
8947else
8948  STRIP="$ac_cv_prog_STRIP"
8949fi
8950
8951fi
8952INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8953
8954# We need awk for the "check" target.  The system "awk" is bad on
8955# some platforms.
8956# Always define AMTAR for backward compatibility.
8957
8958AMTAR=${AMTAR-"${am_missing_run}tar"}
8959
8960am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
8961
8962
8963
8964
8965depcc="$CC"   am_compiler_list=
8966
8967echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8968echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8969if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8970  echo $ECHO_N "(cached) $ECHO_C" >&6
8971else
8972  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8973  # We make a subdir and do the tests there.  Otherwise we can end up
8974  # making bogus files that we don't know about and never remove.  For
8975  # instance it was reported that on HP-UX the gcc test will end up
8976  # making a dummy file named `D' -- because `-MD' means `put the output
8977  # in D'.
8978  mkdir conftest.dir
8979  # Copy depcomp to subdir because otherwise we won't find it if we're
8980  # using a relative directory.
8981  cp "$am_depcomp" conftest.dir
8982  cd conftest.dir
8983  # We will build objects and dependencies in a subdirectory because
8984  # it helps to detect inapplicable dependency modes.  For instance
8985  # both Tru64's cc and ICC support -MD to output dependencies as a
8986  # side effect of compilation, but ICC will put the dependencies in
8987  # the current directory while Tru64 will put them in the object
8988  # directory.
8989  mkdir sub
8990
8991  am_cv_CC_dependencies_compiler_type=none
8992  if test "$am_compiler_list" = ""; then
8993     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8994  fi
8995  for depmode in $am_compiler_list; do
8996    # Setup a source with many dependencies, because some compilers
8997    # like to wrap large dependency lists on column 80 (with \), and
8998    # we should not choose a depcomp mode which is confused by this.
8999    #
9000    # We need to recreate these files for each test, as the compiler may
9001    # overwrite some of them when testing with obscure command lines.
9002    # This happens at least with the AIX C compiler.
9003    : > sub/conftest.c
9004    for i in 1 2 3 4 5 6; do
9005      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9006      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9007      # Solaris 8's {/usr,}/bin/sh.
9008      touch sub/conftst$i.h
9009    done
9010    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9011
9012    case $depmode in
9013    nosideeffect)
9014      # after this tag, mechanisms are not by side-effect, so they'll
9015      # only be used when explicitly requested
9016      if test "x$enable_dependency_tracking" = xyes; then
9017        continue
9018      else
9019        break
9020      fi
9021      ;;
9022    none) break ;;
9023    esac
9024    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9025    # mode.  It turns out that the SunPro C++ compiler does not properly
9026    # handle `-M -o', and we need to detect this.
9027    if depmode=$depmode \
9028       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9029       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9030       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9031         >/dev/null 2>conftest.err &&
9032       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9033       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9034       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9035      # icc doesn't choke on unknown options, it will just issue warnings
9036      # or remarks (even with -Werror).  So we grep stderr for any message
9037      # that says an option was ignored or not supported.
9038      # When given -MP, icc 7.0 and 7.1 complain thusly:
9039      #   icc: Command line warning: ignoring option '-M'; no argument required
9040      # The diagnosis changed in icc 8.0:
9041      #   icc: Command line remark: option '-MP' not supported
9042      if (grep 'ignoring option' conftest.err ||
9043          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9044        am_cv_CC_dependencies_compiler_type=$depmode
9045        break
9046      fi
9047    fi
9048  done
9049
9050  cd ..
9051  rm -rf conftest.dir
9052else
9053  am_cv_CC_dependencies_compiler_type=none
9054fi
9055
9056fi
9057echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9058echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9060
9061
9062
9063if
9064  test "x$enable_dependency_tracking" != xno \
9065  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9066  am__fastdepCC_TRUE=
9067  am__fastdepCC_FALSE='#'
9068else
9069  am__fastdepCC_TRUE='#'
9070  am__fastdepCC_FALSE=
9071fi
9072
9073
9074
9075echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9076echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9077    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9078if test "${enable_maintainer_mode+set}" = set; then
9079  enableval="$enable_maintainer_mode"
9080  USE_MAINTAINER_MODE=$enableval
9081else
9082  USE_MAINTAINER_MODE=no
9083fi;
9084  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9085echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9086
9087
9088if test $USE_MAINTAINER_MODE = yes; then
9089  MAINTAINER_MODE_TRUE=
9090  MAINTAINER_MODE_FALSE='#'
9091else
9092  MAINTAINER_MODE_TRUE='#'
9093  MAINTAINER_MODE_FALSE=
9094fi
9095
9096  MAINT=$MAINTAINER_MODE_TRUE
9097
9098
9099
9100coin_have_externals=no
9101if test "$enable_maintainer_mode" = yes; then
9102
9103  # If maintainer mode is chosen, we make sure that the correct versions
9104  # of the tools are used, and that we know where libtool.m4 is (to
9105  # recreate acinclude.m4)
9106
9107
9108  LIBTOOLM4=
9109  # Normally, $HOME
9110  AUTOTOOLS_DFLT=$HOME
9111
9112  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9113echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9114if test "${ac_cv_use_correct_autotools+set}" = set; then
9115  echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117  ac_cv_use_correct_autotools=check
9118fi
9119echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9120echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9121
9122  if test $ac_cv_use_correct_autotools = check; then
9123    ac_cv_use_correct_autotools=yes
9124    # Check if we have autoconf
9125    # Extract the first word of "autoconf", so it can be a program name with args.
9126set dummy autoconf; ac_word=$2
9127echo "$as_me:$LINENO: checking for $ac_word" >&5
9128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9129if test "${ac_cv_prog_have_autoconf+set}" = set; then
9130  echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132  if test -n "$have_autoconf"; then
9133  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9134else
9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136for as_dir in $PATH
9137do
9138  IFS=$as_save_IFS
9139  test -z "$as_dir" && as_dir=.
9140  for ac_exec_ext in '' $ac_executable_extensions; do
9141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9142    ac_cv_prog_have_autoconf="yes"
9143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9144    break 2
9145  fi
9146done
9147done
9148
9149  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9150fi
9151fi
9152have_autoconf=$ac_cv_prog_have_autoconf
9153if test -n "$have_autoconf"; then
9154  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9155echo "${ECHO_T}$have_autoconf" >&6
9156else
9157  echo "$as_me:$LINENO: result: no" >&5
9158echo "${ECHO_T}no" >&6
9159fi
9160
9161    if test $have_autoconf = no; then
9162      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9163echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9164   { (exit 1); exit 1; }; }
9165    fi
9166
9167    # Check whether autoconf is the correct version
9168    correct_version='2.59'
9169    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9170    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9171echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9172    autoconf --version > confauto.out 2>&1
9173    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9174      echo "$as_me:$LINENO: result: yes" >&5
9175echo "${ECHO_T}yes" >&6
9176    else
9177      rm -f confauto.out
9178      echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9181echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9182   { (exit 1); exit 1; }; }
9183    fi
9184    rm -f confauto.out
9185
9186    # Check if the executable autoconf is picked up from the correct location
9187    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9188echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9189    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9190    autoconf_dir=`cd $autoconf_dir; pwd`
9191    if test x$AUTOTOOLS_DIR = x; then
9192      want_dir=$AUTOTOOLS_DFLT/bin
9193    else
9194      want_dir=$AUTOTOOLS_DIR/bin
9195    fi
9196    if test $autoconf_dir = `cd $want_dir; pwd`; then
9197      echo "$as_me:$LINENO: result: yes" >&5
9198echo "${ECHO_T}yes" >&6
9199    else
9200      rm -f confauto.out
9201      echo "$as_me:$LINENO: result: no" >&5
9202echo "${ECHO_T}no" >&6
9203      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9204echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9205   { (exit 1); exit 1; }; }
9206    fi
9207
9208    # Check if we have automake
9209    # Extract the first word of "automake", so it can be a program name with args.
9210set dummy automake; ac_word=$2
9211echo "$as_me:$LINENO: checking for $ac_word" >&5
9212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9213if test "${ac_cv_prog_have_automake+set}" = set; then
9214  echo $ECHO_N "(cached) $ECHO_C" >&6
9215else
9216  if test -n "$have_automake"; then
9217  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9218else
9219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222  IFS=$as_save_IFS
9223  test -z "$as_dir" && as_dir=.
9224  for ac_exec_ext in '' $ac_executable_extensions; do
9225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226    ac_cv_prog_have_automake="yes"
9227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228    break 2
9229  fi
9230done
9231done
9232
9233  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9234fi
9235fi
9236have_automake=$ac_cv_prog_have_automake
9237if test -n "$have_automake"; then
9238  echo "$as_me:$LINENO: result: $have_automake" >&5
9239echo "${ECHO_T}$have_automake" >&6
9240else
9241  echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
9243fi
9244
9245    if test $have_automake = no; then
9246      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9247echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9248   { (exit 1); exit 1; }; }
9249    fi
9250
9251    # Check whether automake is the correct version
9252    correct_version='1.9.6'
9253    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9254    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9255echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9256    automake --version > confauto.out 2>&1
9257    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9258      echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260    else
9261      rm -f confauto.out
9262      echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9265echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9266   { (exit 1); exit 1; }; }
9267    fi
9268    rm -f confauto.out
9269
9270    # Check if the executable automake is picked up from the correct location
9271    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9272echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9273    automake_dir=`which automake | sed -e 's=/automake=='`
9274    automake_dir=`cd $automake_dir; pwd`
9275    if test x$AUTOTOOLS_DIR = x; then
9276      want_dir=$AUTOTOOLS_DFLT/bin
9277    else
9278      want_dir=$AUTOTOOLS_DIR/bin
9279    fi
9280    if test $automake_dir = `cd $want_dir; pwd`; then
9281      echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283    else
9284      rm -f confauto.out
9285      echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
9287      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9288echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9289   { (exit 1); exit 1; }; }
9290    fi
9291
9292    # Check if this is the correct version of libtool (with escaped dots)
9293    if test x$AUTOTOOLS_DIR = x; then
9294      want_dir=$AUTOTOOLS_DFLT/share
9295    else
9296      want_dir=$AUTOTOOLS_DIR/share
9297    fi
9298    correct_version='1.5.22'
9299    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9300    if test -r $want_dir/libtool/ltmain.sh; then
9301  have_ltmain=yes
9302  :
9303else
9304  have_ltmain=no
9305  :
9306fi
9307
9308    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9309echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9310    if test $have_ltmain = yes; then
9311    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9312        echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314      else
9315        echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9318echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9319   { (exit 1); exit 1; }; }
9320      fi
9321    else
9322      echo "$as_me:$LINENO: result: no" >&5
9323echo "${ECHO_T}no" >&6
9324      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9325echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9326   { (exit 1); exit 1; }; }
9327    fi
9328  fi
9329
9330  # Check if we can find the libtool file
9331  if test x$AUTOTOOLS_DIR = x; then
9332    want_dir=$AUTOTOOLS_DFLT/share
9333  else
9334    want_dir=$AUTOTOOLS_DIR/share
9335  fi
9336  if test -r $want_dir/aclocal/libtool.m4; then
9337  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9338  :
9339else
9340  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9341echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9342   { (exit 1); exit 1; }; }
9343  :
9344fi
9345
9346
9347  # Check if we have an Dependencies file
9348  if test -r $srcdir/Dependencies; then
9349    coin_have_externals=yes
9350  fi
9351  # Check if subversion is installed and understands https
9352  # Extract the first word of "svn", so it can be a program name with args.
9353set dummy svn; ac_word=$2
9354echo "$as_me:$LINENO: checking for $ac_word" >&5
9355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9356if test "${ac_cv_prog_have_svn+set}" = set; then
9357  echo $ECHO_N "(cached) $ECHO_C" >&6
9358else
9359  if test -n "$have_svn"; then
9360  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365  IFS=$as_save_IFS
9366  test -z "$as_dir" && as_dir=.
9367  for ac_exec_ext in '' $ac_executable_extensions; do
9368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369    ac_cv_prog_have_svn="yes"
9370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9371    break 2
9372  fi
9373done
9374done
9375
9376  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9377fi
9378fi
9379have_svn=$ac_cv_prog_have_svn
9380if test -n "$have_svn"; then
9381  echo "$as_me:$LINENO: result: $have_svn" >&5
9382echo "${ECHO_T}$have_svn" >&6
9383else
9384  echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386fi
9387
9388  if test x$have_svn = xyes; then
9389    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9390echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9391if test "${ac_cv_svn_understands_https+set}" = set; then
9392  echo $ECHO_N "(cached) $ECHO_C" >&6
9393else
9394  svn --version > confauto.out 2>&1
9395                    if $EGREP https confauto.out >/dev/null 2>&1; then
9396                      ac_cv_svn_understands_https=yes
9397                    else
9398                      ac_cv_svn_understands_https=no
9399                      have_svn=no
9400                      ac_cv_prog_have_svn=no
9401                    fi
9402                    rm -f confauto.out
9403fi
9404echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9405echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9406  fi
9407
9408  # Find the location of the BuildTools directory
9409  BUILDTOOLSDIR=
9410  if test -r $srcdir/BuildTools/coin.m4; then
9411    BUILDTOOLSDIR=$srcdir/BuildTools
9412  else
9413    if test -r $srcdir/../BuildTools/coin.m4; then
9414      BUILDTOOLSDIR=$srcdir/../BuildTools
9415    else
9416      if test -r $srcdir/../../BuildTools/coin.m4; then
9417        BUILDTOOLSDIR=$srcdir/../../BuildTools
9418      else
9419        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9420echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9421   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9422      fi
9423    fi
9424  fi
9425
9426
9427  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9428  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9429    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9430  fi
9431
9432  # The following variable is set to the name of the directory where
9433  # the autotool scripts are located
9434
9435  AUX_DIR=$ac_aux_dir
9436fi
9437
9438# helpful variable for the base directory of this package
9439abs_source_dir=`cd $srcdir; pwd`
9440
9441
9442# Stuff for example Makefiles
9443if test x$prefix = xNONE; then
9444  full_prefix=$ac_default_prefix
9445else
9446  full_prefix=$prefix
9447fi
9448full_prefix=`cd $full_prefix ; pwd`
9449
9450abs_lib_dir=$full_prefix/lib
9451
9452abs_include_dir=$full_prefix/include
9453
9454abs_bin_dir=$full_prefix/bin
9455
9456
9457
9458if test $coin_have_externals = yes && test x$have_svn = xyes; then
9459  HAVE_EXTERNALS_TRUE=
9460  HAVE_EXTERNALS_FALSE='#'
9461else
9462  HAVE_EXTERNALS_TRUE='#'
9463  HAVE_EXTERNALS_FALSE=
9464fi
9465
9466
9467# AC_MSG_NOTICE([End automake initialisation.])
9468
9469
9470
9471LIBTOOL=
9472if test -f ../libtool; then
9473  coin_config_dir=..
9474  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9475fi
9476if test "x$LIBTOOL" = x; then
9477  if test -f ../../libtool; then
9478    coin_config_dir=../..
9479    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9480  fi
9481fi
9482
9483if test "x$LIBTOOL" = x; then
9484# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9485  # Stuff for libtool
9486  # Check whether --enable-shared or --disable-shared was given.
9487if test "${enable_shared+set}" = set; then
9488  enableval="$enable_shared"
9489  p=${PACKAGE-default}
9490    case $enableval in
9491    yes) enable_shared=yes ;;
9492    no) enable_shared=no ;;
9493    *)
9494      enable_shared=no
9495      # Look at the argument we got.  We use all the common list separators.
9496      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9497      for pkg in $enableval; do
9498        IFS="$lt_save_ifs"
9499        if test "X$pkg" = "X$p"; then
9500          enable_shared=yes
9501        fi
9502      done
9503      IFS="$lt_save_ifs"
9504      ;;
9505    esac
9506else
9507  enable_shared=yes
9508fi;
9509
9510# Check whether --enable-fast-install or --disable-fast-install was given.
9511if test "${enable_fast_install+set}" = set; then
9512  enableval="$enable_fast_install"
9513  p=${PACKAGE-default}
9514    case $enableval in
9515    yes) enable_fast_install=yes ;;
9516    no) enable_fast_install=no ;;
9517    *)
9518      enable_fast_install=no
9519      # Look at the argument we got.  We use all the common list separators.
9520      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9521      for pkg in $enableval; do
9522        IFS="$lt_save_ifs"
9523        if test "X$pkg" = "X$p"; then
9524          enable_fast_install=yes
9525        fi
9526      done
9527      IFS="$lt_save_ifs"
9528      ;;
9529    esac
9530else
9531  enable_fast_install=yes
9532fi;
9533
9534echo "$as_me:$LINENO: checking host system type" >&5
9535echo $ECHO_N "checking host system type... $ECHO_C" >&6
9536if test "${ac_cv_host+set}" = set; then
9537  echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539  ac_cv_host_alias=$host_alias
9540test -z "$ac_cv_host_alias" &&
9541  ac_cv_host_alias=$ac_cv_build_alias
9542ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9543  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9544echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9545   { (exit 1); exit 1; }; }
9546
9547fi
9548echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9549echo "${ECHO_T}$ac_cv_host" >&6
9550host=$ac_cv_host
9551host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9552host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9553host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9554
9555
9556echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9557echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9558if test "${lt_cv_path_SED+set}" = set; then
9559  echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
9561  # Loop through the user's path and test for sed and gsed.
9562# Then use that list of sed's as ones to test for truncation.
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566  IFS=$as_save_IFS
9567  test -z "$as_dir" && as_dir=.
9568  for lt_ac_prog in sed gsed; do
9569    for ac_exec_ext in '' $ac_executable_extensions; do
9570      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9571        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9572      fi
9573    done
9574  done
9575done
9576lt_ac_max=0
9577lt_ac_count=0
9578# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9579# along with /bin/sed that truncates output.
9580for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9581  test ! -f $lt_ac_sed && continue
9582  cat /dev/null > conftest.in
9583  lt_ac_count=0
9584  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9585  # Check for GNU sed and select it if it is found.
9586  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9587    lt_cv_path_SED=$lt_ac_sed
9588    break
9589  fi
9590  while true; do
9591    cat conftest.in conftest.in >conftest.tmp
9592    mv conftest.tmp conftest.in
9593    cp conftest.in conftest.nl
9594    echo >>conftest.nl
9595    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9596    cmp -s conftest.out conftest.nl || break
9597    # 10000 chars as input seems more than enough
9598    test $lt_ac_count -gt 10 && break
9599    lt_ac_count=`expr $lt_ac_count + 1`
9600    if test $lt_ac_count -gt $lt_ac_max; then
9601      lt_ac_max=$lt_ac_count
9602      lt_cv_path_SED=$lt_ac_sed
9603    fi
9604  done
9605done
9606
9607fi
9608
9609SED=$lt_cv_path_SED
9610echo "$as_me:$LINENO: result: $SED" >&5
9611echo "${ECHO_T}$SED" >&6
9612
9613
9614# Check whether --with-gnu-ld or --without-gnu-ld was given.
9615if test "${with_gnu_ld+set}" = set; then
9616  withval="$with_gnu_ld"
9617  test "$withval" = no || with_gnu_ld=yes
9618else
9619  with_gnu_ld=no
9620fi;
9621ac_prog=ld
9622if test "$GCC" = yes; then
9623  # Check if gcc -print-prog-name=ld gives a path.
9624  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9625echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9626  case $host in
9627  *-*-mingw*)
9628    # gcc leaves a trailing carriage return which upsets mingw
9629    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9630  *)
9631    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9632  esac
9633  case $ac_prog in
9634    # Accept absolute paths.
9635    [\\/]* | ?:[\\/]*)
9636      re_direlt='/[^/][^/]*/\.\./'
9637      # Canonicalize the pathname of ld
9638      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9639      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9640        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9641      done
9642      test -z "$LD" && LD="$ac_prog"
9643      ;;
9644  "")
9645    # If it fails, then pretend we aren't using GCC.
9646    ac_prog=ld
9647    ;;
9648  *)
9649    # If it is relative, then search for the first ld in PATH.
9650    with_gnu_ld=unknown
9651    ;;
9652  esac
9653elif test "$with_gnu_ld" = yes; then
9654  echo "$as_me:$LINENO: checking for GNU ld" >&5
9655echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9656else
9657  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9658echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9659fi
9660if test "${lt_cv_path_LD+set}" = set; then
9661  echo $ECHO_N "(cached) $ECHO_C" >&6
9662else
9663  if test -z "$LD"; then
9664  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9665  for ac_dir in $PATH; do
9666    IFS="$lt_save_ifs"
9667    test -z "$ac_dir" && ac_dir=.
9668    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9669      lt_cv_path_LD="$ac_dir/$ac_prog"
9670      # Check to see if the program is GNU ld.  I'd rather use --version,
9671      # but apparently some variants of GNU ld only accept -v.
9672      # Break only if it was the GNU/non-GNU ld that we prefer.
9673      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9674      *GNU* | *'with BFD'*)
9675        test "$with_gnu_ld" != no && break
9676        ;;
9677      *)
9678        test "$with_gnu_ld" != yes && break
9679        ;;
9680      esac
9681    fi
9682  done
9683  IFS="$lt_save_ifs"
9684else
9685  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9686fi
9687fi
9688
9689LD="$lt_cv_path_LD"
9690if test -n "$LD"; then
9691  echo "$as_me:$LINENO: result: $LD" >&5
9692echo "${ECHO_T}$LD" >&6
9693else
9694  echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
9696fi
9697test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9698echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9699   { (exit 1); exit 1; }; }
9700echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9701echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9702if test "${lt_cv_prog_gnu_ld+set}" = set; then
9703  echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9706case `$LD -v 2>&1 </dev/null` in
9707*GNU* | *'with BFD'*)
9708  lt_cv_prog_gnu_ld=yes
9709  ;;
9710*)
9711  lt_cv_prog_gnu_ld=no
9712  ;;
9713esac
9714fi
9715echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9716echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9717with_gnu_ld=$lt_cv_prog_gnu_ld
9718
9719
9720echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9721echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9722if test "${lt_cv_ld_reload_flag+set}" = set; then
9723  echo $ECHO_N "(cached) $ECHO_C" >&6
9724else
9725  lt_cv_ld_reload_flag='-r'
9726fi
9727echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9728echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9729reload_flag=$lt_cv_ld_reload_flag
9730case $reload_flag in
9731"" | " "*) ;;
9732*) reload_flag=" $reload_flag" ;;
9733esac
9734reload_cmds='$LD$reload_flag -o $output$reload_objs'
9735case $host_os in
9736  darwin*)
9737    if test "$GCC" = yes; then
9738      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9739    else
9740      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9741    fi
9742    ;;
9743esac
9744
9745echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9746echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9747if test "${lt_cv_path_NM+set}" = set; then
9748  echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750  if test -n "$NM"; then
9751  # Let the user override the test.
9752  lt_cv_path_NM="$NM"
9753else
9754  lt_nm_to_check="${ac_tool_prefix}nm"
9755  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9756    lt_nm_to_check="$lt_nm_to_check nm"
9757  fi
9758  for lt_tmp_nm in $lt_nm_to_check; do
9759    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9760    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9761      IFS="$lt_save_ifs"
9762      test -z "$ac_dir" && ac_dir=.
9763      tmp_nm="$ac_dir/$lt_tmp_nm"
9764      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9765        # Check to see if the nm accepts a BSD-compat flag.
9766        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9767        #   nm: unknown option "B" ignored
9768        # Tru64's nm complains that /dev/null is an invalid object file
9769        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9770        */dev/null* | *'Invalid file or object type'*)
9771          lt_cv_path_NM="$tmp_nm -B"
9772          break
9773          ;;
9774        *)
9775          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9776          */dev/null*)
9777            lt_cv_path_NM="$tmp_nm -p"
9778            break
9779            ;;
9780          *)
9781            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9782            continue # so that we can try to find one that supports BSD flags
9783            ;;
9784          esac
9785          ;;
9786        esac
9787      fi
9788    done
9789    IFS="$lt_save_ifs"
9790  done
9791  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9792fi
9793fi
9794echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9795echo "${ECHO_T}$lt_cv_path_NM" >&6
9796NM="$lt_cv_path_NM"
9797
9798echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9799echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9800if test "${lt_cv_deplibs_check_method+set}" = set; then
9801  echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803  lt_cv_file_magic_cmd='$MAGIC_CMD'
9804lt_cv_file_magic_test_file=
9805lt_cv_deplibs_check_method='unknown'
9806# Need to set the preceding variable on all platforms that support
9807# interlibrary dependencies.
9808# 'none' -- dependencies not supported.
9809# `unknown' -- same as none, but documents that we really don't know.
9810# 'pass_all' -- all dependencies passed with no checks.
9811# 'test_compile' -- check by making test program.
9812# 'file_magic [[regex]]' -- check by looking for files in library path
9813# which responds to the $file_magic_cmd with a given extended regex.
9814# If you have `file' or equivalent on your system and you're not sure
9815# whether `pass_all' will *always* work, you probably want this one.
9816
9817case $host_os in
9818aix4* | aix5*)
9819  lt_cv_deplibs_check_method=pass_all
9820  ;;
9821
9822beos*)
9823  lt_cv_deplibs_check_method=pass_all
9824  ;;
9825
9826bsdi[45]*)
9827  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9828  lt_cv_file_magic_cmd='/usr/bin/file -L'
9829  lt_cv_file_magic_test_file=/shlib/libc.so
9830  ;;
9831
9832cygwin*)
9833  # func_win32_libid is a shell function defined in ltmain.sh
9834  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9835  lt_cv_file_magic_cmd='func_win32_libid'
9836  ;;
9837
9838mingw* | pw32*)
9839  # Base MSYS/MinGW do not provide the 'file' command needed by
9840  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9841  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9842  lt_cv_file_magic_cmd='$OBJDUMP -f'
9843  ;;
9844
9845darwin* | rhapsody*)
9846  lt_cv_deplibs_check_method=pass_all
9847  ;;
9848
9849freebsd* | kfreebsd*-gnu | dragonfly*)
9850  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9851    case $host_cpu in
9852    i*86 )
9853      # Not sure whether the presence of OpenBSD here was a mistake.
9854      # Let's accept both of them until this is cleared up.
9855      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9856      lt_cv_file_magic_cmd=/usr/bin/file
9857      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9858      ;;
9859    esac
9860  else
9861    lt_cv_deplibs_check_method=pass_all
9862  fi
9863  ;;
9864
9865gnu*)
9866  lt_cv_deplibs_check_method=pass_all
9867  ;;
9868
9869hpux10.20* | hpux11*)
9870  lt_cv_file_magic_cmd=/usr/bin/file
9871  case $host_cpu in
9872  ia64*)
9873    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9874    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9875    ;;
9876  hppa*64*)
9877    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9878    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9879    ;;
9880  *)
9881    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9882    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9883    ;;
9884  esac
9885  ;;
9886
9887interix3*)
9888  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9889  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9890  ;;
9891
9892irix5* | irix6* | nonstopux*)
9893  case $LD in
9894  *-32|*"-32 ") libmagic=32-bit;;
9895  *-n32|*"-n32 ") libmagic=N32;;
9896  *-64|*"-64 ") libmagic=64-bit;;
9897  *) libmagic=never-match;;
9898  esac
9899  lt_cv_deplibs_check_method=pass_all
9900  ;;
9901
9902# This must be Linux ELF.
9903linux*)
9904  lt_cv_deplibs_check_method=pass_all
9905  ;;
9906
9907netbsd*)
9908  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9910  else
9911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9912  fi
9913  ;;
9914
9915newos6*)
9916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9917  lt_cv_file_magic_cmd=/usr/bin/file
9918  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9919  ;;
9920
9921nto-qnx*)
9922  lt_cv_deplibs_check_method=unknown
9923  ;;
9924
9925openbsd*)
9926  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9928  else
9929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9930  fi
9931  ;;
9932
9933osf3* | osf4* | osf5*)
9934  lt_cv_deplibs_check_method=pass_all
9935  ;;
9936
9937solaris*)
9938  lt_cv_deplibs_check_method=pass_all
9939  ;;
9940
9941sysv4 | sysv4.3*)
9942  case $host_vendor in
9943  motorola)
9944    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9945    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9946    ;;
9947  ncr)
9948    lt_cv_deplibs_check_method=pass_all
9949    ;;
9950  sequent)
9951    lt_cv_file_magic_cmd='/bin/file'
9952    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9953    ;;
9954  sni)
9955    lt_cv_file_magic_cmd='/bin/file'
9956    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9957    lt_cv_file_magic_test_file=/lib/libc.so
9958    ;;
9959  siemens)
9960    lt_cv_deplibs_check_method=pass_all
9961    ;;
9962  pc)
9963    lt_cv_deplibs_check_method=pass_all
9964    ;;
9965  esac
9966  ;;
9967
9968sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9969  lt_cv_deplibs_check_method=pass_all
9970  ;;
9971esac
9972
9973fi
9974echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9975echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9976file_magic_cmd=$lt_cv_file_magic_cmd
9977deplibs_check_method=$lt_cv_deplibs_check_method
9978test -z "$deplibs_check_method" && deplibs_check_method=unknown
9979
9980
9981
9982
9983# If no C compiler was specified, use CC.
9984LTCC=${LTCC-"$CC"}
9985
9986# If no C compiler flags were specified, use CFLAGS.
9987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9988
9989# Allow CC to be a program name with arguments.
9990compiler=$CC
9991
9992# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9993if test "${enable_libtool_lock+set}" = set; then
9994  enableval="$enable_libtool_lock"
9995
9996fi;
9997test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9998
9999# Some flags need to be propagated to the compiler or linker for good
10000# libtool support.
10001case $host in
10002ia64-*-hpux*)
10003  # Find out which ABI we are using.
10004  echo 'int i;' > conftest.$ac_ext
10005  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006  (eval $ac_compile) 2>&5
10007  ac_status=$?
10008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009  (exit $ac_status); }; then
10010    case `/usr/bin/file conftest.$ac_objext` in
10011    *ELF-32*)
10012      HPUX_IA64_MODE="32"
10013      ;;
10014    *ELF-64*)
10015      HPUX_IA64_MODE="64"
10016      ;;
10017    esac
10018  fi
10019  rm -rf conftest*
10020  ;;
10021*-*-irix6*)
10022  # Find out which ABI we are using.
10023  echo '#line 10023 "configure"' > conftest.$ac_ext
10024  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025  (eval $ac_compile) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; then
10029   if test "$lt_cv_prog_gnu_ld" = yes; then
10030    case `/usr/bin/file conftest.$ac_objext` in
10031    *32-bit*)
10032      LD="${LD-ld} -melf32bsmip"
10033      ;;
10034    *N32*)
10035      LD="${LD-ld} -melf32bmipn32"
10036      ;;
10037    *64-bit*)
10038      LD="${LD-ld} -melf64bmip"
10039      ;;
10040    esac
10041   else
10042    case `/usr/bin/file conftest.$ac_objext` in
10043    *32-bit*)
10044      LD="${LD-ld} -32"
10045      ;;
10046    *N32*)
10047      LD="${LD-ld} -n32"
10048      ;;
10049    *64-bit*)
10050      LD="${LD-ld} -64"
10051      ;;
10052    esac
10053   fi
10054  fi
10055  rm -rf conftest*
10056  ;;
10057
10058x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10059  # Find out which ABI we are using.
10060  echo 'int i;' > conftest.$ac_ext
10061  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062  (eval $ac_compile) 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); }; then
10066    case `/usr/bin/file conftest.o` in
10067    *32-bit*)
10068      case $host in
10069        x86_64-*linux*)
10070          LD="${LD-ld} -m elf_i386"
10071          ;;
10072        ppc64-*linux*|powerpc64-*linux*)
10073          LD="${LD-ld} -m elf32ppclinux"
10074          ;;
10075        s390x-*linux*)
10076          LD="${LD-ld} -m elf_s390"
10077          ;;
10078        sparc64-*linux*)
10079          LD="${LD-ld} -m elf32_sparc"
10080          ;;
10081      esac
10082      ;;
10083    *64-bit*)
10084      case $host in
10085        x86_64-*linux*)
10086          LD="${LD-ld} -m elf_x86_64"
10087          ;;
10088        ppc*-*linux*|powerpc*-*linux*)
10089          LD="${LD-ld} -m elf64ppc"
10090          ;;
10091        s390*-*linux*)
10092          LD="${LD-ld} -m elf64_s390"
10093          ;;
10094        sparc*-*linux*)
10095          LD="${LD-ld} -m elf64_sparc"
10096          ;;
10097      esac
10098      ;;
10099    esac
10100  fi
10101  rm -rf conftest*
10102  ;;
10103
10104*-*-sco3.2v5*)
10105  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10106  SAVE_CFLAGS="$CFLAGS"
10107  CFLAGS="$CFLAGS -belf"
10108  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10109echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10110if test "${lt_cv_cc_needs_belf+set}" = set; then
10111  echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113  ac_ext=c
10114ac_cpp='$CPP $CPPFLAGS'
10115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10117ac_compiler_gnu=$ac_cv_c_compiler_gnu
10118
10119     cat >conftest.$ac_ext <<_ACEOF
10120/* confdefs.h.  */
10121_ACEOF
10122cat confdefs.h >>conftest.$ac_ext
10123cat >>conftest.$ac_ext <<_ACEOF
10124/* end confdefs.h.  */
10125
10126#ifdef F77_DUMMY_MAIN
10127
10128#  ifdef __cplusplus
10129     extern "C"
10130#  endif
10131   int F77_DUMMY_MAIN() { return 1; }
10132
10133#endif
10134int
10135main ()
10136{
10137
10138  ;
10139  return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
10143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144  (eval $ac_link) 2>conftest.er1
10145  ac_status=$?
10146  grep -v '^ *+' conftest.er1 >conftest.err
10147  rm -f conftest.er1
10148  cat conftest.err >&5
10149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150  (exit $ac_status); } &&
10151         { ac_try='test -z "$ac_c_werror_flag"
10152                         || test ! -s conftest.err'
10153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154  (eval $ac_try) 2>&5
10155  ac_status=$?
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); }; } &&
10158         { ac_try='test -s conftest$ac_exeext'
10159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160  (eval $ac_try) 2>&5
10161  ac_status=$?
10162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163  (exit $ac_status); }; }; then
10164  lt_cv_cc_needs_belf=yes
10165else
10166  echo "$as_me: failed program was:" >&5
10167sed 's/^/| /' conftest.$ac_ext >&5
10168
10169lt_cv_cc_needs_belf=no
10170fi
10171rm -f conftest.err conftest.$ac_objext \
10172      conftest$ac_exeext conftest.$ac_ext
10173     ac_ext=c
10174ac_cpp='$CPP $CPPFLAGS'
10175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10177ac_compiler_gnu=$ac_cv_c_compiler_gnu
10178
10179fi
10180echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10181echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10182  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10183    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10184    CFLAGS="$SAVE_CFLAGS"
10185  fi
10186  ;;
10187sparc*-*solaris*)
10188  # Find out which ABI we are using.
10189  echo 'int i;' > conftest.$ac_ext
10190  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191  (eval $ac_compile) 2>&5
10192  ac_status=$?
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); }; then
10195    case `/usr/bin/file conftest.o` in
10196    *64-bit*)
10197      case $lt_cv_prog_gnu_ld in
10198      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10199      *)    LD="${LD-ld} -64" ;;
10200      esac
10201      ;;
10202    esac
10203  fi
10204  rm -rf conftest*
10205  ;;
10206
10207
10208esac
10209
10210need_locks="$enable_libtool_lock"
10211
10212
10213ac_ext=c
10214ac_cpp='$CPP $CPPFLAGS'
10215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10219echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10220# On Suns, sometimes $CPP names a directory.
10221if test -n "$CPP" && test -d "$CPP"; then
10222  CPP=
10223fi
10224if test -z "$CPP"; then
10225  if test "${ac_cv_prog_CPP+set}" = set; then
10226  echo $ECHO_N "(cached) $ECHO_C" >&6
10227else
10228      # Double quotes because CPP needs to be expanded
10229    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10230    do
10231      ac_preproc_ok=false
10232for ac_c_preproc_warn_flag in '' yes
10233do
10234  # Use a header file that comes with gcc, so configuring glibc
10235  # with a fresh cross-compiler works.
10236  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237  # <limits.h> exists even on freestanding compilers.
10238  # On the NeXT, cc -E runs the code through the compiler's parser,
10239  # not just through cpp. "Syntax error" is here to catch this case.
10240  cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h.  */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h.  */
10246#ifdef __STDC__
10247# include <limits.h>
10248#else
10249# include <assert.h>
10250#endif
10251                     Syntax error
10252_ACEOF
10253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255  ac_status=$?
10256  grep -v '^ *+' conftest.er1 >conftest.err
10257  rm -f conftest.er1
10258  cat conftest.err >&5
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); } >/dev/null; then
10261  if test -s conftest.err; then
10262    ac_cpp_err=$ac_c_preproc_warn_flag
10263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10264  else
10265    ac_cpp_err=
10266  fi
10267else
10268  ac_cpp_err=yes
10269fi
10270if test -z "$ac_cpp_err"; then
10271  :
10272else
10273  echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276  # Broken: fails on valid input.
10277continue
10278fi
10279rm -f conftest.err conftest.$ac_ext
10280
10281  # OK, works on sane cases.  Now check whether non-existent headers
10282  # can be detected and how.
10283  cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h.  */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h.  */
10289#include <ac_nonexistent.h>
10290_ACEOF
10291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10293  ac_status=$?
10294  grep -v '^ *+' conftest.er1 >conftest.err
10295  rm -f conftest.er1
10296  cat conftest.err >&5
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); } >/dev/null; then
10299  if test -s conftest.err; then
10300    ac_cpp_err=$ac_c_preproc_warn_flag
10301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10302  else
10303    ac_cpp_err=
10304  fi
10305else
10306  ac_cpp_err=yes
10307fi
10308if test -z "$ac_cpp_err"; then
10309  # Broken: success on invalid input.
10310continue
10311else
10312  echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315  # Passes both tests.
10316ac_preproc_ok=:
10317break
10318fi
10319rm -f conftest.err conftest.$ac_ext
10320
10321done
10322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10323rm -f conftest.err conftest.$ac_ext
10324if $ac_preproc_ok; then
10325  break
10326fi
10327
10328    done
10329    ac_cv_prog_CPP=$CPP
10330
10331fi
10332  CPP=$ac_cv_prog_CPP
10333else
10334  ac_cv_prog_CPP=$CPP
10335fi
10336echo "$as_me:$LINENO: result: $CPP" >&5
10337echo "${ECHO_T}$CPP" >&6
10338ac_preproc_ok=false
10339for ac_c_preproc_warn_flag in '' yes
10340do
10341  # Use a header file that comes with gcc, so configuring glibc
10342  # with a fresh cross-compiler works.
10343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344  # <limits.h> exists even on freestanding compilers.
10345  # On the NeXT, cc -E runs the code through the compiler's parser,
10346  # not just through cpp. "Syntax error" is here to catch this case.
10347  cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h.  */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h.  */
10353#ifdef __STDC__
10354# include <limits.h>
10355#else
10356# include <assert.h>
10357#endif
10358                     Syntax error
10359_ACEOF
10360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10362  ac_status=$?
10363  grep -v '^ *+' conftest.er1 >conftest.err
10364  rm -f conftest.er1
10365  cat conftest.err >&5
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); } >/dev/null; then
10368  if test -s conftest.err; then
10369    ac_cpp_err=$ac_c_preproc_warn_flag
10370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10371  else
10372    ac_cpp_err=
10373  fi
10374else
10375  ac_cpp_err=yes
10376fi
10377if test -z "$ac_cpp_err"; then
10378  :
10379else
10380  echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383  # Broken: fails on valid input.
10384continue
10385fi
10386rm -f conftest.err conftest.$ac_ext
10387
10388  # OK, works on sane cases.  Now check whether non-existent headers
10389  # can be detected and how.
10390  cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h.  */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h.  */
10396#include <ac_nonexistent.h>
10397_ACEOF
10398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10399  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10400  ac_status=$?
10401  grep -v '^ *+' conftest.er1 >conftest.err
10402  rm -f conftest.er1
10403  cat conftest.err >&5
10404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405  (exit $ac_status); } >/dev/null; then
10406  if test -s conftest.err; then
10407    ac_cpp_err=$ac_c_preproc_warn_flag
10408    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10409  else
10410    ac_cpp_err=
10411  fi
10412else
10413  ac_cpp_err=yes
10414fi
10415if test -z "$ac_cpp_err"; then
10416  # Broken: success on invalid input.
10417continue
10418else
10419  echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422  # Passes both tests.
10423ac_preproc_ok=:
10424break
10425fi
10426rm -f conftest.err conftest.$ac_ext
10427
10428done
10429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10430rm -f conftest.err conftest.$ac_ext
10431if $ac_preproc_ok; then
10432  :
10433else
10434  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10435See \`config.log' for more details." >&5
10436echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10437See \`config.log' for more details." >&2;}
10438   { (exit 1); exit 1; }; }
10439fi
10440
10441ac_ext=c
10442ac_cpp='$CPP $CPPFLAGS'
10443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446
10447
10448echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10449echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10450if test "${ac_cv_header_stdc+set}" = set; then
10451  echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453  cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h.  */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h.  */
10459#include <stdlib.h>
10460#include <stdarg.h>
10461#include <string.h>
10462#include <float.h>
10463
10464#ifdef F77_DUMMY_MAIN
10465
10466#  ifdef __cplusplus
10467     extern "C"
10468#  endif
10469   int F77_DUMMY_MAIN() { return 1; }
10470
10471#endif
10472int
10473main ()
10474{
10475
10476  ;
10477  return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext
10481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482  (eval $ac_compile) 2>conftest.er1
10483  ac_status=$?
10484  grep -v '^ *+' conftest.er1 >conftest.err
10485  rm -f conftest.er1
10486  cat conftest.err >&5
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); } &&
10489         { ac_try='test -z "$ac_c_werror_flag"
10490                         || test ! -s conftest.err'
10491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492  (eval $ac_try) 2>&5
10493  ac_status=$?
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); }; } &&
10496         { ac_try='test -s conftest.$ac_objext'
10497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498  (eval $ac_try) 2>&5
10499  ac_status=$?
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); }; }; then
10502  ac_cv_header_stdc=yes
10503else
10504  echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507ac_cv_header_stdc=no
10508fi
10509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10510
10511if test $ac_cv_header_stdc = yes; then
10512  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10513  cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h.  */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h.  */
10519#include <string.h>
10520
10521_ACEOF
10522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10523  $EGREP "memchr" >/dev/null 2>&1; then
10524  :
10525else
10526  ac_cv_header_stdc=no
10527fi
10528rm -f conftest*
10529
10530fi
10531
10532if test $ac_cv_header_stdc = yes; then
10533  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10534  cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h.  */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h.  */
10540#include <stdlib.h>
10541
10542_ACEOF
10543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10544  $EGREP "free" >/dev/null 2>&1; then
10545  :
10546else
10547  ac_cv_header_stdc=no
10548fi
10549rm -f conftest*
10550
10551fi
10552
10553if test $ac_cv_header_stdc = yes; then
10554  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10555  if test "$cross_compiling" = yes; then
10556  :
10557else
10558  cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h.  */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h.  */
10564#include <ctype.h>
10565#if ((' ' & 0x0FF) == 0x020)
10566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10568#else
10569# define ISLOWER(c) \
10570                   (('a' <= (c) && (c) <= 'i') \
10571                     || ('j' <= (c) && (c) <= 'r') \
10572                     || ('s' <= (c) && (c) <= 'z'))
10573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10574#endif
10575
10576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10577int
10578main ()
10579{
10580  int i;
10581  for (i = 0; i < 256; i++)
10582    if (XOR (islower (i), ISLOWER (i))
10583        || toupper (i) != TOUPPER (i))
10584      exit(2);
10585  exit (0);
10586}
10587_ACEOF
10588rm -f conftest$ac_exeext
10589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590  (eval $ac_link) 2>&5
10591  ac_status=$?
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595  (eval $ac_try) 2>&5
10596  ac_status=$?
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); }; }; then
10599  :
10600else
10601  echo "$as_me: program exited with status $ac_status" >&5
10602echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605( exit $ac_status )
10606ac_cv_header_stdc=no
10607fi
10608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10609fi
10610fi
10611fi
10612echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10613echo "${ECHO_T}$ac_cv_header_stdc" >&6
10614if test $ac_cv_header_stdc = yes; then
10615
10616cat >>confdefs.h <<\_ACEOF
10617#define STDC_HEADERS 1
10618_ACEOF
10619
10620fi
10621
10622# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10633                  inttypes.h stdint.h unistd.h
10634do
10635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10636echo "$as_me:$LINENO: checking for $ac_header" >&5
10637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10638if eval "test \"\${$as_ac_Header+set}\" = set"; then
10639  echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641  cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h.  */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h.  */
10647$ac_includes_default
10648
10649#include <$ac_header>
10650_ACEOF
10651rm -f conftest.$ac_objext
10652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10653  (eval $ac_compile) 2>conftest.er1
10654  ac_status=$?
10655  grep -v '^ *+' conftest.er1 >conftest.err
10656  rm -f conftest.er1
10657  cat conftest.err >&5
10658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659  (exit $ac_status); } &&
10660         { ac_try='test -z "$ac_c_werror_flag"
10661                         || test ! -s conftest.err'
10662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663  (eval $ac_try) 2>&5
10664  ac_status=$?
10665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666  (exit $ac_status); }; } &&
10667         { ac_try='test -s conftest.$ac_objext'
10668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669  (eval $ac_try) 2>&5
10670  ac_status=$?
10671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672  (exit $ac_status); }; }; then
10673  eval "$as_ac_Header=yes"
10674else
10675  echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678eval "$as_ac_Header=no"
10679fi
10680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681fi
10682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10684if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685  cat >>confdefs.h <<_ACEOF
10686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687_ACEOF
10688
10689fi
10690
10691done
10692
10693
10694
10695for ac_header in dlfcn.h
10696do
10697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699  echo "$as_me:$LINENO: checking for $ac_header" >&5
10700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10701if eval "test \"\${$as_ac_Header+set}\" = set"; then
10702  echo $ECHO_N "(cached) $ECHO_C" >&6
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706else
10707  # Is the header compilable?
10708echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10710cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h.  */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h.  */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721  (eval $ac_compile) 2>conftest.er1
10722  ac_status=$?
10723  grep -v '^ *+' conftest.er1 >conftest.err
10724  rm -f conftest.er1
10725  cat conftest.err >&5
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); } &&
10728         { ac_try='test -z "$ac_c_werror_flag"
10729                         || test ! -s conftest.err'
10730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731  (eval $ac_try) 2>&5
10732  ac_status=$?
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); }; } &&
10735         { ac_try='test -s conftest.$ac_objext'
10736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737  (eval $ac_try) 2>&5
10738  ac_status=$?
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); }; }; then
10741  ac_header_compiler=yes
10742else
10743  echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746ac_header_compiler=no
10747fi
10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6
10751
10752# Is the header present?
10753echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h.  */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h.  */
10761#include <$ac_header>
10762_ACEOF
10763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765  ac_status=$?
10766  grep -v '^ *+' conftest.er1 >conftest.err
10767  rm -f conftest.er1
10768  cat conftest.err >&5
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); } >/dev/null; then
10771  if test -s conftest.err; then
10772    ac_cpp_err=$ac_c_preproc_warn_flag
10773    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10774  else
10775    ac_cpp_err=
10776  fi
10777else
10778  ac_cpp_err=yes
10779fi
10780if test -z "$ac_cpp_err"; then
10781  ac_header_preproc=yes
10782else
10783  echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786  ac_header_preproc=no
10787fi
10788rm -f conftest.err conftest.$ac_ext
10789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790echo "${ECHO_T}$ac_header_preproc" >&6
10791
10792# So?  What about this header?
10793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794  yes:no: )
10795    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799    ac_header_preproc=yes
10800    ;;
10801  no:yes:* )
10802    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10804    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10805echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10806    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10809echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10810    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10812    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814    (
10815      cat <<\_ASBOX
10816## --------------------------------------------------------------- ##
10817## Report this to http://projects.coin-or.org/BuildTools/newticket ##
10818## --------------------------------------------------------------- ##
10819_ASBOX
10820    ) |
10821      sed "s/^/$as_me: WARNING:     /" >&2
10822    ;;
10823esac
10824echo "$as_me:$LINENO: checking for $ac_header" >&5
10825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10826if eval "test \"\${$as_ac_Header+set}\" = set"; then
10827  echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829  eval "$as_ac_Header=\$ac_header_preproc"
10830fi
10831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10833
10834fi
10835if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836  cat >>confdefs.h <<_ACEOF
10837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10838_ACEOF
10839
10840fi
10841
10842done
10843
10844ac_ext=cc
10845ac_cpp='$CXXCPP $CPPFLAGS'
10846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10849if test -n "$ac_tool_prefix"; then
10850  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10851  do
10852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10854echo "$as_me:$LINENO: checking for $ac_word" >&5
10855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10856if test "${ac_cv_prog_CXX+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859  if test -n "$CXX"; then
10860  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10861else
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865  IFS=$as_save_IFS
10866  test -z "$as_dir" && as_dir=.
10867  for ac_exec_ext in '' $ac_executable_extensions; do
10868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10871    break 2
10872  fi
10873done
10874done
10875
10876fi
10877fi
10878CXX=$ac_cv_prog_CXX
10879if test -n "$CXX"; then
10880  echo "$as_me:$LINENO: result: $CXX" >&5
10881echo "${ECHO_T}$CXX" >&6
10882else
10883  echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6
10885fi
10886
10887    test -n "$CXX" && break
10888  done
10889fi
10890if test -z "$CXX"; then
10891  ac_ct_CXX=$CXX
10892  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10893do
10894  # Extract the first word of "$ac_prog", so it can be a program name with args.
10895set dummy $ac_prog; ac_word=$2
10896echo "$as_me:$LINENO: checking for $ac_word" >&5
10897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10898if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10899  echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901  if test -n "$ac_ct_CXX"; then
10902  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10903else
10904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905for as_dir in $PATH
10906do
10907  IFS=$as_save_IFS
10908  test -z "$as_dir" && as_dir=.
10909  for ac_exec_ext in '' $ac_executable_extensions; do
10910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911    ac_cv_prog_ac_ct_CXX="$ac_prog"
10912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913    break 2
10914  fi
10915done
10916done
10917
10918fi
10919fi
10920ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10921if test -n "$ac_ct_CXX"; then
10922  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10923echo "${ECHO_T}$ac_ct_CXX" >&6
10924else
10925  echo "$as_me:$LINENO: result: no" >&5
10926echo "${ECHO_T}no" >&6
10927fi
10928
10929  test -n "$ac_ct_CXX" && break
10930done
10931test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10932
10933  CXX=$ac_ct_CXX
10934fi
10935
10936
10937# Provide some information about the compiler.
10938echo "$as_me:$LINENO:" \
10939     "checking for C++ compiler version" >&5
10940ac_compiler=`set X $ac_compile; echo $2`
10941{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10942  (eval $ac_compiler --version </dev/null >&5) 2>&5
10943  ac_status=$?
10944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945  (exit $ac_status); }
10946{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10947  (eval $ac_compiler -v </dev/null >&5) 2>&5
10948  ac_status=$?
10949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950  (exit $ac_status); }
10951{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10952  (eval $ac_compiler -V </dev/null >&5) 2>&5
10953  ac_status=$?
10954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955  (exit $ac_status); }
10956
10957echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10958echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10959if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10960  echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962  cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h.  */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h.  */
10968
10969#ifdef F77_DUMMY_MAIN
10970
10971#  ifdef __cplusplus
10972     extern "C"
10973#  endif
10974   int F77_DUMMY_MAIN() { return 1; }
10975
10976#endif
10977int
10978main ()