source: ThirdParty/Lapack/stable/1.5/configure @ 3490

Last change on this file since 3490 was 3490, checked in by tkr, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 844.1 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.5.3.
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.5.3'
433PACKAGE_STRING='ThirdPartyLapack 1.5.3'
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 DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE 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.5.3 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.5.3:";;
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  --disable-dependency-linking
1102                          disable linking library dependencies into shared
1103                          libraries
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1109  --with-lapack-checklevel
1110                          specify the sanity check level for project Lapack
1111  --with-blas             specify BLAS library (or BUILD to enforce use of
1112                          ThirdParty/Blas)
1113
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116  --with-blas-lib linker flags for using package Blas
1117  --with-blas-incdir directory with header files for using package Blas
1118  --with-blas-datadir directory with data files for using package Blas
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124
1125Some influential environment variables:
1126  CDEFS       Additional -D flags to be used when compiling C code.
1127  ADD_CFLAGS  Additional C compiler options
1128  DBG_CFLAGS  Debug C compiler options
1129  OPT_CFLAGS  Optimize C compiler options
1130  CC          C compiler command
1131  CFLAGS      C compiler flags
1132  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1133              nonstandard directory <lib dir>
1134  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1135              headers in a nonstandard directory <include dir>
1136  MPICC       C MPI Compiler
1137  ADD_FFLAGS  Additional Fortran compiler options
1138  DBG_FFLAGS  Debug Fortran compiler options
1139  OPT_FFLAGS  Optimize Fortran compiler options
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142  MPIF77      Fortran MPI Compiler
1143  PKG_CONFIG  path to pkg-config utility
1144  DLAMCH_FFLAGS
1145              Fortran compiler options for DLAMCH.F
1146  CPP         C preprocessor
1147  CXX         C++ compiler command
1148  CXXFLAGS    C++ compiler flags
1149  CXXCPP      C++ preprocessor
1150
1151Use these variables to override the choices made by `configure' or to help
1152it to find libraries and programs with nonstandard names/locations.
1153
1154Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1155_ACEOF
1156fi
1157
1158if test "$ac_init_help" = "recursive"; then
1159  # If there are subdirs, report their specific --help.
1160  ac_popdir=`pwd`
1161  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1162    test -d $ac_dir || continue
1163    ac_builddir=.
1164
1165if test "$ac_dir" != .; then
1166  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1167  # A "../" for each directory in $ac_dir_suffix.
1168  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1169else
1170  ac_dir_suffix= ac_top_builddir=
1171fi
1172
1173case $srcdir in
1174  .)  # No --srcdir option.  We are building in place.
1175    ac_srcdir=.
1176    if test -z "$ac_top_builddir"; then
1177       ac_top_srcdir=.
1178    else
1179       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1180    fi ;;
1181  [\\/]* | ?:[\\/]* )  # Absolute path.
1182    ac_srcdir=$srcdir$ac_dir_suffix;
1183    ac_top_srcdir=$srcdir ;;
1184  *) # Relative path.
1185    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1186    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1187esac
1188
1189# Do not use `cd foo && pwd` to compute absolute paths, because
1190# the directories may not exist.
1191case `pwd` in
1192.) ac_abs_builddir="$ac_dir";;
1193*)
1194  case "$ac_dir" in
1195  .) ac_abs_builddir=`pwd`;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1197  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1198  esac;;
1199esac
1200case $ac_abs_builddir in
1201.) ac_abs_top_builddir=${ac_top_builddir}.;;
1202*)
1203  case ${ac_top_builddir}. in
1204  .) ac_abs_top_builddir=$ac_abs_builddir;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1206  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1207  esac;;
1208esac
1209case $ac_abs_builddir in
1210.) ac_abs_srcdir=$ac_srcdir;;
1211*)
1212  case $ac_srcdir in
1213  .) ac_abs_srcdir=$ac_abs_builddir;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1215  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_top_srcdir=$ac_top_srcdir;;
1220*)
1221  case $ac_top_srcdir in
1222  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1224  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1225  esac;;
1226esac
1227
1228    cd $ac_dir
1229    # Check for guested configure; otherwise get Cygnus style configure.
1230    if test -f $ac_srcdir/configure.gnu; then
1231      echo
1232      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1233    elif test -f $ac_srcdir/configure; then
1234      echo
1235      $SHELL $ac_srcdir/configure  --help=recursive
1236    elif test -f $ac_srcdir/configure.ac ||
1237           test -f $ac_srcdir/configure.in; then
1238      echo
1239      $ac_configure --help
1240    else
1241      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1242    fi
1243    cd $ac_popdir
1244  done
1245fi
1246
1247test -n "$ac_init_help" && exit 0
1248if $ac_init_version; then
1249  cat <<\_ACEOF
1250ThirdPartyLapack configure 1.5.3
1251generated by GNU Autoconf 2.59
1252
1253Copyright (C) 2003 Free Software Foundation, Inc.
1254This configure script is free software; the Free Software Foundation
1255gives unlimited permission to copy, distribute and modify it.
1256
1257
1258Copyright 2006 International Business Machines and others.
1259All Rights Reserved.
1260This file is part of the open source package Coin which is distributed
1261under the Eclipse Public License.
1262_ACEOF
1263  exit 0
1264fi
1265exec 5>config.log
1266cat >&5 <<_ACEOF
1267This file contains any messages produced by compilers while
1268running configure, to aid debugging if configure makes a mistake.
1269
1270It was created by ThirdPartyLapack $as_me 1.5.3, which was
1271generated by GNU Autoconf 2.59.  Invocation command line was
1272
1273  $ $0 $@
1274
1275_ACEOF
1276{
1277cat <<_ASUNAME
1278## --------- ##
1279## Platform. ##
1280## --------- ##
1281
1282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1283uname -m = `(uname -m) 2>/dev/null || echo unknown`
1284uname -r = `(uname -r) 2>/dev/null || echo unknown`
1285uname -s = `(uname -s) 2>/dev/null || echo unknown`
1286uname -v = `(uname -v) 2>/dev/null || echo unknown`
1287
1288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1290
1291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1294hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1298
1299_ASUNAME
1300
1301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1302for as_dir in $PATH
1303do
1304  IFS=$as_save_IFS
1305  test -z "$as_dir" && as_dir=.
1306  echo "PATH: $as_dir"
1307done
1308
1309} >&5
1310
1311cat >&5 <<_ACEOF
1312
1313
1314## ----------- ##
1315## Core tests. ##
1316## ----------- ##
1317
1318_ACEOF
1319
1320
1321# Keep a trace of the command line.
1322# Strip out --no-create and --no-recursion so they do not pile up.
1323# Strip out --silent because we don't want to record it for future runs.
1324# Also quote any args containing shell meta-characters.
1325# Make two passes to allow for proper duplicate-argument suppression.
1326ac_configure_args=
1327ac_configure_args0=
1328ac_configure_args1=
1329ac_sep=
1330ac_must_keep_next=false
1331for ac_pass in 1 2
1332do
1333  for ac_arg
1334  do
1335    case $ac_arg in
1336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338    | -silent | --silent | --silen | --sile | --sil)
1339      continue ;;
1340    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1342    esac
1343    case $ac_pass in
1344    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1345    2)
1346      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1347      if test $ac_must_keep_next = true; then
1348        ac_must_keep_next=false # Got value, back to normal.
1349      else
1350        case $ac_arg in
1351          *=* | --config-cache | -C | -disable-* | --disable-* \
1352          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1353          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1354          | -with-* | --with-* | -without-* | --without-* | --x)
1355            case "$ac_configure_args0 " in
1356              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1357            esac
1358            ;;
1359          -* ) ac_must_keep_next=true ;;
1360        esac
1361      fi
1362      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1363      # Get rid of the leading space.
1364      ac_sep=" "
1365      ;;
1366    esac
1367  done
1368done
1369$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1370$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1371
1372# When interrupted or exit'd, cleanup temporary files, and complete
1373# config.log.  We remove comments because anyway the quotes in there
1374# would cause problems or look ugly.
1375# WARNING: Be sure not to use single quotes in there, as some shells,
1376# such as our DU 5.0 friend, will then `close' the trap.
1377trap 'exit_status=$?
1378  # Save into config.log some information that might help in debugging.
1379  {
1380    echo
1381
1382    cat <<\_ASBOX
1383## ---------------- ##
1384## Cache variables. ##
1385## ---------------- ##
1386_ASBOX
1387    echo
1388    # The following way of writing the cache mishandles newlines in values,
1389{
1390  (set) 2>&1 |
1391    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1392    *ac_space=\ *)
1393      sed -n \
1394        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1395          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1396      ;;
1397    *)
1398      sed -n \
1399        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1400      ;;
1401    esac;
1402}
1403    echo
1404
1405    cat <<\_ASBOX
1406## ----------------- ##
1407## Output variables. ##
1408## ----------------- ##
1409_ASBOX
1410    echo
1411    for ac_var in $ac_subst_vars
1412    do
1413      eval ac_val=$`echo $ac_var`
1414      echo "$ac_var='"'"'$ac_val'"'"'"
1415    done | sort
1416    echo
1417
1418    if test -n "$ac_subst_files"; then
1419      cat <<\_ASBOX
1420## ------------- ##
1421## Output files. ##
1422## ------------- ##
1423_ASBOX
1424      echo
1425      for ac_var in $ac_subst_files
1426      do
1427        eval ac_val=$`echo $ac_var`
1428        echo "$ac_var='"'"'$ac_val'"'"'"
1429      done | sort
1430      echo
1431    fi
1432
1433    if test -s confdefs.h; then
1434      cat <<\_ASBOX
1435## ----------- ##
1436## confdefs.h. ##
1437## ----------- ##
1438_ASBOX
1439      echo
1440      sed "/^$/d" confdefs.h | sort
1441      echo
1442    fi
1443    test "$ac_signal" != 0 &&
1444      echo "$as_me: caught signal $ac_signal"
1445    echo "$as_me: exit $exit_status"
1446  } >&5
1447  rm -f core *.core &&
1448  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1449    exit $exit_status
1450     ' 0
1451for ac_signal in 1 2 13 15; do
1452  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1453done
1454ac_signal=0
1455
1456# confdefs.h avoids OS command line length limits that DEFS can exceed.
1457rm -rf conftest* confdefs.h
1458# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1459echo >confdefs.h
1460
1461# Predefined preprocessor variables.
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_NAME "$PACKAGE_NAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_VERSION "$PACKAGE_VERSION"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_STRING "$PACKAGE_STRING"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1485_ACEOF
1486
1487
1488# Let the site file select an alternate cache file if it wants to.
1489# Prefer explicitly selected file to automatically selected ones.
1490if test -z "$CONFIG_SITE"; then
1491  if test "x$prefix" != xNONE; then
1492    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1493  else
1494    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1495  fi
1496fi
1497for ac_site_file in $CONFIG_SITE; do
1498  if test -r "$ac_site_file"; then
1499    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1500echo "$as_me: loading site script $ac_site_file" >&6;}
1501    sed 's/^/| /' "$ac_site_file" >&5
1502    . "$ac_site_file"
1503  fi
1504done
1505
1506if test -r "$cache_file"; then
1507  # Some versions of bash will fail to source /dev/null (special
1508  # files actually), so we avoid doing that.
1509  if test -f "$cache_file"; then
1510    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1511echo "$as_me: loading cache $cache_file" >&6;}
1512    case $cache_file in
1513      [\\/]* | ?:[\\/]* ) . $cache_file;;
1514      *)                      . ./$cache_file;;
1515    esac
1516  fi
1517else
1518  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1519echo "$as_me: creating cache $cache_file" >&6;}
1520  >$cache_file
1521fi
1522
1523# Check that the precious variables saved in the cache have kept the same
1524# value.
1525ac_cache_corrupted=false
1526for ac_var in `(set) 2>&1 |
1527               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1528  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1529  eval ac_new_set=\$ac_env_${ac_var}_set
1530  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1531  eval ac_new_val="\$ac_env_${ac_var}_value"
1532  case $ac_old_set,$ac_new_set in
1533    set,)
1534      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1535echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1536      ac_cache_corrupted=: ;;
1537    ,set)
1538      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1539echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1540      ac_cache_corrupted=: ;;
1541    ,);;
1542    *)
1543      if test "x$ac_old_val" != "x$ac_new_val"; then
1544        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1545echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1546        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1547echo "$as_me:   former value:  $ac_old_val" >&2;}
1548        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1549echo "$as_me:   current value: $ac_new_val" >&2;}
1550        ac_cache_corrupted=:
1551      fi;;
1552  esac
1553  # Pass precious variables to config.status.
1554  if test "$ac_new_set" = set; then
1555    case $ac_new_val in
1556    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1557      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1558    *) ac_arg=$ac_var=$ac_new_val ;;
1559    esac
1560    case " $ac_configure_args " in
1561      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1562      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1563    esac
1564  fi
1565done
1566if $ac_cache_corrupted; then
1567  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1568echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1569  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1570echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573
1574ac_ext=c
1575ac_cpp='$CPP $CPPFLAGS'
1576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1578ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1607
1608
1609# List one file in the package so that the configure script can test
1610# whether the package is actually there
1611
1612
1613# Where should everything be installed by default?  Here, we want it
1614# to be installed directly in 'bin', 'lib', 'include' subdirectories
1615# of the directory where configure is run.  The default would be
1616# /usr/local.
1617
1618
1619
1620# As backup, we make sure we don't loose an FLIBS if it has been set
1621# by the user
1622save_FLIBS="$FLIBS"
1623
1624# A useful makefile conditional that is always false
1625
1626
1627if false; then
1628  ALWAYS_FALSE_TRUE=
1629  ALWAYS_FALSE_FALSE='#'
1630else
1631  ALWAYS_FALSE_TRUE='#'
1632  ALWAYS_FALSE_FALSE=
1633fi
1634
1635
1636# We set the following variable so that we know later in AC_COIN_FINALIZE
1637# that we are in a project main directory
1638coin_projectdir=yes
1639
1640# Set the project's version numbers
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define LAPACK_VERSION "$PACKAGE_VERSION"
1645_ACEOF
1646
1647
1648  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1649  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1650  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1651  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1652  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1653  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1654
1655cat >>confdefs.h <<_ACEOF
1656#define LAPACK_VERSION_MAJOR $coin_majorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define LAPACK_VERSION_MINOR $coin_minorver
1662_ACEOF
1663
1664
1665cat >>confdefs.h <<_ACEOF
1666#define LAPACK_VERSION_RELEASE $coin_releasever
1667_ACEOF
1668
1669
1670  # We use the following variable to have a string with the upper case
1671  # version of the project name
1672  COIN_PRJCT=LAPACK
1673
1674  # Set the project's SVN revision number. The complicated sed expression
1675  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1676  # as a single number.
1677  # Extract the first word of "svnversion", so it can be a program name with args.
1678set dummy svnversion; ac_word=$2
1679echo "$as_me:$LINENO: checking for $ac_word" >&5
1680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_have_svnversion+set}" = set; then
1682  echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684  if test -n "$have_svnversion"; then
1685  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1686else
1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690  IFS=$as_save_IFS
1691  test -z "$as_dir" && as_dir=.
1692  for ac_exec_ext in '' $ac_executable_extensions; do
1693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694    ac_cv_prog_have_svnversion="yes"
1695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696    break 2
1697  fi
1698done
1699done
1700
1701  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1702fi
1703fi
1704have_svnversion=$ac_cv_prog_have_svnversion
1705if test -n "$have_svnversion"; then
1706  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1707echo "${ECHO_T}$have_svnversion" >&6
1708else
1709  echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713  if test "x$have_svnversion" = xyes; then
1714
1715    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1716    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1717      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1718
1719cat >>confdefs.h <<_ACEOF
1720#define LAPACK_SVN_REV $LAPACK_SVN_REV
1721_ACEOF
1722
1723    fi
1724  fi
1725
1726
1727
1728# Capture libtool library version, if given.
1729 coin_libversion=6:3:5
1730
1731
1732
1733
1734#############################################################################
1735#                         Standard build tool stuff                         #
1736#############################################################################
1737
1738# Get the system type
1739ac_aux_dir=
1740for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1741  if test -f $ac_dir/install-sh; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/install-sh -c"
1744    break
1745  elif test -f $ac_dir/install.sh; then
1746    ac_aux_dir=$ac_dir
1747    ac_install_sh="$ac_aux_dir/install.sh -c"
1748    break
1749  elif test -f $ac_dir/shtool; then
1750    ac_aux_dir=$ac_dir
1751    ac_install_sh="$ac_aux_dir/shtool install -c"
1752    break
1753  fi
1754done
1755if test -z "$ac_aux_dir"; then
1756  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1757echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1758   { (exit 1); exit 1; }; }
1759fi
1760ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1761ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1762ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1763
1764# Make sure we can run config.sub.
1765$ac_config_sub sun4 >/dev/null 2>&1 ||
1766  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1767echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770echo "$as_me:$LINENO: checking build system type" >&5
1771echo $ECHO_N "checking build system type... $ECHO_C" >&6
1772if test "${ac_cv_build+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  ac_cv_build_alias=$build_alias
1776test -z "$ac_cv_build_alias" &&
1777  ac_cv_build_alias=`$ac_config_guess`
1778test -z "$ac_cv_build_alias" &&
1779  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1781   { (exit 1); exit 1; }; }
1782ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1783  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1784echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1785   { (exit 1); exit 1; }; }
1786
1787fi
1788echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1789echo "${ECHO_T}$ac_cv_build" >&6
1790build=$ac_cv_build
1791build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1792build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1793build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1794
1795
1796
1797#turn off warnings and pedantic mode since they could make trouble on some platforms,
1798#and we couldn't fix them anyway
1799coin_skip_warn_fflags=yes
1800
1801# Check if user wants to produce debugging code
1802
1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1805
1806# Check whether --enable-debug or --disable-debug was given.
1807if test "${enable_debug+set}" = set; then
1808  enableval="$enable_debug"
1809  case "${enableval}" in
1810   yes) coin_debug_compile=true
1811        if test "${enable_shared+set}" = set; then :; else
1812          enable_shared=no
1813        fi
1814        ;;
1815   no)  coin_debug_compile=false
1816        ;;
1817   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1819   { (exit 1); exit 1; }; }
1820        ;;
1821esac
1822else
1823  coin_debug_compile=false
1824fi;
1825
1826# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1827if test "${enable_debug_lapack+set}" = set; then
1828  enableval="$enable_debug_lapack"
1829  case "${enableval}" in
1830    yes) coin_debug_compile=true
1831         ;;
1832    no)  coin_debug_compile=false
1833         ;;
1834    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1835echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1836   { (exit 1); exit 1; }; }
1837         ;;
1838 esac
1839else
1840  :
1841fi;
1842
1843 # m4_ifvaln([Lapack],
1844
1845if test $coin_debug_compile = true; then
1846  echo "$as_me:$LINENO: result: yes" >&5
1847echo "${ECHO_T}yes" >&6
1848else
1849  echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853
1854# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1855if test "${with_lapack_verbosity+set}" = set; then
1856  withval="$with_lapack_verbosity"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_lapack_verbosity=$withval
1861else
1862  coin_lapack_verbosity=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1867_ACEOF
1868
1869
1870
1871# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1872if test "${with_lapack_checklevel+set}" = set; then
1873  withval="$with_lapack_checklevel"
1874  if test "$withval" = yes; then
1875                withval=1
1876              fi
1877              coin_lapack_checklevel=$withval
1878else
1879  coin_lapack_checklevel=0
1880fi;
1881
1882cat >>confdefs.h <<_ACEOF
1883#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1884_ACEOF
1885
1886
1887 # m4_ifvaln([Lapack],
1888
1889
1890
1891# Get the name of the Fortran compiler and appropriate compiler options
1892
1893
1894  # for backward compatibility
1895  # Check whether --enable-doscompile or --disable-doscompile was given.
1896if test "${enable_doscompile+set}" = set; then
1897  enableval="$enable_doscompile"
1898  enable_doscompile=$enableval
1899else
1900  enable_doscompile=no
1901fi;
1902
1903  # Check whether --enable-msvc or --disable-msvc was given.
1904if test "${enable_msvc+set}" = set; then
1905  enableval="$enable_msvc"
1906  enable_msvc=$enableval
1907else
1908  enable_msvc=no
1909     if test "$enable_doscompile" = msvc ; then
1910       enable_msvc=yes
1911     elif test "$enable_doscompile" != no ; then
1912       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1913echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1914   { (exit 1); exit 1; }; }
1915     fi
1916
1917fi;
1918
1919  if test "$enable_msvc" = MD; then
1920    enable_shared=yes
1921    enable_msvc=yes
1922  fi
1923
1924  if test "$enable_msvc" = yes; then
1925    case $build in
1926      *-cygwin* | *-mingw*) ;;
1927      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1928echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1929   { (exit 1); exit 1; }; } ;;
1930    esac
1931  fi
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973             if test "$enable_msvc" = yes ; then
1974               comps="icl cl gcc"
1975             else
1976               comps="gcc icl cl"
1977             fi ;;
1978  *-*-solaris*)
1979             # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031             if test "$sol_cc_compiler" = "cc" ; then
2032               comps="cc xlc gcc pgcc icc"
2033             else
2034               comps="xlc gcc pgcc icc cc"
2035             fi
2036             ;;
2037  *-*-darwin*) comps="clang gcc cc" ;;
2038  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2039  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2040  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2041esac
2042
2043# We delete the cached value, since the test might not have been
2044# performed with our choice of compilers earlier
2045$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2046# AC_MSG_NOTICE([C compiler candidates: $comps])
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052if test -n "$ac_tool_prefix"; then
2053  for ac_prog in $comps
2054  do
2055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079fi
2080fi
2081CC=$ac_cv_prog_CC
2082if test -n "$CC"; then
2083  echo "$as_me:$LINENO: result: $CC" >&5
2084echo "${ECHO_T}$CC" >&6
2085else
2086  echo "$as_me:$LINENO: result: no" >&5
2087echo "${ECHO_T}no" >&6
2088fi
2089
2090    test -n "$CC" && break
2091  done
2092fi
2093if test -z "$CC"; then
2094  ac_ct_CC=$CC
2095  for ac_prog in $comps
2096do
2097  # Extract the first word of "$ac_prog", so it can be a program name with args.
2098set dummy $ac_prog; ac_word=$2
2099echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$ac_ct_CC"; then
2105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114    ac_cv_prog_ac_ct_CC="$ac_prog"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120
2121fi
2122fi
2123ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124if test -n "$ac_ct_CC"; then
2125  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126echo "${ECHO_T}$ac_ct_CC" >&6
2127else
2128  echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6
2130fi
2131
2132  test -n "$ac_ct_CC" && break
2133done
2134
2135  CC=$ac_ct_CC
2136fi
2137
2138
2139test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140See \`config.log' for more details." >&5
2141echo "$as_me: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&2;}
2143   { (exit 1); exit 1; }; }
2144
2145# Provide some information about the compiler.
2146echo "$as_me:$LINENO:" \
2147     "checking for C compiler version" >&5
2148ac_compiler=`set X $ac_compile; echo $2`
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150  (eval $ac_compiler --version </dev/null >&5) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155  (eval $ac_compiler -v </dev/null >&5) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160  (eval $ac_compiler -V </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189  (eval $ac_link_default) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; then
2193  # Find the output, starting from the most likely.  This scheme is
2194# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195# resort.
2196
2197# Be careful to initialize this variable, since it used to be cached.
2198# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199ac_cv_exeext=
2200# b.out is created by i960 compilers.
2201for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202do
2203  test -f "$ac_file" || continue
2204  case $ac_file in
2205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206        ;;
2207    conftest.$ac_ext )
2208        # This is the source file.
2209        ;;
2210    [ab].out )
2211        # We found the default executable, but exeext='' is most
2212        # certainly right.
2213        break;;
2214    *.* )
2215        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216        # FIXME: I believe we export ac_cv_exeext for Libtool,
2217        # but it would be cool to find out if it's true.  Does anybody
2218        # maintain Libtool? --akim.
2219        export ac_cv_exeext
2220        break;;
2221    * )
2222        break;;
2223  esac
2224done
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: C compiler cannot create executables
2232See \`config.log' for more details." >&2;}
2233   { (exit 77); exit 77; }; }
2234fi
2235
2236ac_exeext=$ac_cv_exeext
2237echo "$as_me:$LINENO: result: $ac_file" >&5
2238echo "${ECHO_T}$ac_file" >&6
2239
2240# Check the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245# If not cross compiling, check that we can run a simple program.
2246if test "$cross_compiling" != yes; then
2247  if { ac_try='./$ac_file'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253    cross_compiling=no
2254  else
2255    if test "$cross_compiling" = maybe; then
2256        cross_compiling=yes
2257    else
2258        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264   { (exit 1); exit 1; }; }
2265    fi
2266  fi
2267fi
2268echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272ac_clean_files=$ac_clean_files_save
2273# Check the compiler produces executables we can run.  If not, either
2274# the compiler is broken, or we cross compile.
2275echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6
2279
2280echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283  (eval $ac_link) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289# work properly (i.e., refer to `conftest.exe'), while it won't with
2290# `rm'.
2291for ac_file in conftest.exe conftest conftest.*; do
2292  test -f "$ac_file" || continue
2293  case $ac_file in
2294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296          export ac_cv_exeext
2297          break;;
2298    * ) break;;
2299  esac
2300done
2301else
2302  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306   { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318if test "${ac_cv_objext+set}" = set; then
2319  echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321  cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h.  */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h.  */
2327
2328int
2329main ()
2330{
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338  (eval $ac_compile) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; then
2342  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343  case $ac_file in
2344    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346       break;;
2347  esac
2348done
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354See \`config.log' for more details." >&5
2355echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358fi
2359
2360rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361fi
2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363echo "${ECHO_T}$ac_cv_objext" >&6
2364OBJEXT=$ac_cv_objext
2365ac_objext=$OBJEXT
2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377
2378int
2379main ()
2380{
2381#ifndef __GNUC__
2382       choke me
2383#endif
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_compiler_gnu=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_compiler_gnu=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427CFLAGS="-g"
2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439
2440int
2441main ()
2442{
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457         { ac_try='test -z "$ac_c_werror_flag"
2458                         || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464         { ac_try='test -s conftest.$ac_objext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  ac_cv_prog_cc_g=yes
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475ac_cv_prog_cc_g=no
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481if test "$ac_test_CFLAGS" = set; then
2482  CFLAGS=$ac_save_CFLAGS
2483elif test $ac_cv_prog_cc_g = yes; then
2484  if test "$GCC" = yes; then
2485    CFLAGS="-g -O2"
2486  else
2487    CFLAGS="-g"
2488  fi
2489else
2490  if test "$GCC" = yes; then
2491    CFLAGS="-O2"
2492  else
2493    CFLAGS=
2494  fi
2495fi
2496echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  ac_cv_prog_cc_stdc=no
2502ac_save_CC=$CC
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509#include <stdarg.h>
2510#include <stdio.h>
2511#include <sys/types.h>
2512#include <sys/stat.h>
2513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514struct buf { int x; };
2515FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516static char *e (p, i)
2517     char **p;
2518     int i;
2519{
2520  return p[i];
2521}
2522static char *f (char * (*g) (char **, int), char **p, ...)
2523{
2524  char *s;
2525  va_list v;
2526  va_start (v,p);
2527  s = g (p, va_arg (v,int));
2528  va_end (v);
2529  return s;
2530}
2531
2532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533   function prototypes and stuff, but not '\xHH' hex character constants.
2534   These don't provoke an error unfortunately, instead are silently treated
2535   as 'x'.  The following induces an error, until -std1 is added to get
2536   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537   array size at least.  It's necessary to write '\x00'==0 to get something
2538   that's true only with -std1.  */
2539int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541int test (int i, double x);
2542struct s1 {int (*f) (int a);};
2543struct s2 {int (*f) (double a);};
2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545int argc;
2546char **argv;
2547int
2548main ()
2549{
2550return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555# Don't try gcc -ansi; that turns off useful extensions and
2556# breaks some systems' header files.
2557# AIX                   -qlanglvl=ansi
2558# Ultrix and OSF/1      -std1
2559# HP-UX 10.20 and later -Ae
2560# HP-UX older versions  -Aa -D_HPUX_SOURCE
2561# SVR4                  -Xc -D__EXTENSIONS__
2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563do
2564  CC="$ac_save_CC $ac_arg"
2565  rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_cv_prog_cc_stdc=$ac_arg
2588break
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext
2595done
2596rm -f conftest.$ac_ext conftest.$ac_objext
2597CC=$ac_save_CC
2598
2599fi
2600
2601case "x$ac_cv_prog_cc_stdc" in
2602  x|xno)
2603    echo "$as_me:$LINENO: result: none needed" >&5
2604echo "${ECHO_T}none needed" >&6 ;;
2605  *)
2606    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608    CC="$CC $ac_cv_prog_cc_stdc" ;;
2609esac
2610
2611# Some people use a C++ compiler to compile C.  Since we use `exit',
2612# in C++ we need to declare it.  In case someone uses the same compiler
2613# for both compiling C and C++ we need to have the C++ compiler decide
2614# the declaration of exit, since it's the most demanding environment.
2615cat >conftest.$ac_ext <<_ACEOF
2616#ifndef __cplusplus
2617  choke me
2618#endif
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629         { ac_try='test -z "$ac_c_werror_flag"
2630                         || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  for ac_declaration in \
2643   '' \
2644   'extern "C" void std::exit (int) throw (); using std::exit;' \
2645   'extern "C" void std::exit (int); using std::exit;' \
2646   'extern "C" void exit (int) throw ();' \
2647   'extern "C" void exit (int);' \
2648   'void exit (int);'
2649do
2650  cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656$ac_declaration
2657#include <stdlib.h>
2658int
2659main ()
2660{
2661exit (42);
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675         { ac_try='test -z "$ac_c_werror_flag"
2676                         || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682         { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  :
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693continue
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696  cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702$ac_declaration
2703int
2704main ()
2705{
2706exit (42);
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  break
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740done
2741rm -f conftest*
2742if test -n "$ac_declaration"; then
2743  echo '#ifdef __cplusplus' >>confdefs.h
2744  echo $ac_declaration      >>confdefs.h
2745  echo '#endif'             >>confdefs.h
2746fi
2747
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760if test -z "$CC" ; then
2761  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2762echo "$as_me: error: Failed to find a C compiler!" >&2;}
2763   { (exit 1); exit 1; }; }
2764fi
2765# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2766case "$CC" in
2767  clang* ) ;;
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774  * )
2775    if test x"$CYGPATH_W" = x ; then
2776      CYGPATH_W=echo
2777    fi
2778    ;;
2779esac
2780CFLAGS="$save_cflags"
2781
2782# add automake conditional so we can recognize cl compiler in makefile
2783coin_cc_is_cl=false
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2787    coin_cc_is_cl=true
2788    ;;
2789esac
2790
2791
2792if test $coin_cc_is_cl = true; then
2793  COIN_CC_IS_CL_TRUE=
2794  COIN_CC_IS_CL_FALSE='#'
2795else
2796  COIN_CC_IS_CL_TRUE='#'
2797  COIN_CC_IS_CL_FALSE=
2798fi
2799
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g -O0"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2825        case $build in
2826          *-darwin*)
2827            ;;
2828          *)
2829            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2830            ;;
2831        esac
2832    esac
2833  fi
2834  if test -z "$coin_opt_cflags"; then
2835    case $build in
2836      *-cygwin* | *-mingw*)
2837        case "$CC" in
2838          clang* ) ;;
2839          cl* | */cl* | CL* | */CL*)
2840            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2841              coin_opt_cflags='-MD -O2'
2842              coin_dbg_cflags='-MDd'
2843            else
2844              coin_opt_cflags='-MT -O2'
2845              coin_dbg_cflags='-MTd'
2846            fi
2847            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2848            ;;
2849          icl* | */icl* | ICL* | */ICL*)
2850            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2851              coin_opt_cflags='-MD -Ox'
2852              coin_dbg_cflags='-MDd -debug'
2853            else
2854              coin_opt_cflags='-MT -Ox'
2855              coin_dbg_cflags='-MTd -debug'
2856            fi
2857            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2858            ;;
2859        esac
2860        ;;
2861      *-linux-*)
2862        case "$CC" in
2863          icc* | */icc*)
2864            coin_opt_cflags="-O3 -ip -mp1"
2865            coin_add_cflags=""
2866            coin_dbg_cflags="-g"
2867            # Check if -i_dynamic is necessary (for new glibc library)
2868            CFLAGS=
2869            cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911coin_add_cflags="-i_dynamic $coin_add_cflags"
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915            ;;
2916          pgcc* | */pgcc*)
2917            coin_opt_cflags="-fast"
2918            coin_add_cflags="-Kieee -pc 64"
2919            coin_dbg_cflags="-g"
2920            ;;
2921        esac
2922        ;;
2923      *-ibm-*)
2924        case "$CC" in
2925          xlc* | */xlc* | mpxlc* | */mpxlc*)
2926            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2927            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2928            coin_dbg_cflags="-g"
2929          ;;
2930        esac
2931        ;;
2932      *-hp-*)
2933        coin_opt_cflags="-O"
2934        coin_add_cflags="-Ae"
2935        coin_dbg_cflags="-g"
2936        ;;
2937      *-*-solaris*)
2938        coin_opt_cflags="-xO4"
2939        coin_dbg_cflags="-g"
2940        ;;
2941      *-sgi-*)
2942        coin_opt_cflags="-O -OPT:Olimit=0"
2943        coin_dbg_cflags="-g"
2944        ;;
2945    esac
2946  fi
2947
2948  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2949    coin_dbg_cflags="-g"
2950  fi
2951
2952  if test -z "$coin_opt_cflags"; then
2953    # Try if -O option works if nothing else is set
2954    CFLAGS="-O"
2955    cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965int i=0; i++;
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext conftest$ac_exeext
2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972  (eval $ac_link) 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } &&
2979         { ac_try='test -z "$ac_c_werror_flag"
2980                         || test ! -s conftest.err'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; } &&
2986         { ac_try='test -s conftest$ac_exeext'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; }; then
2992  coin_opt_cflags="-O"
2993else
2994  echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997fi
2998rm -f conftest.err conftest.$ac_objext \
2999      conftest$ac_exeext conftest.$ac_ext
3000  fi
3001
3002  # if PM doesn't want the warning messages, take them out
3003  if test x"$coin_skip_warn_cflags" = xyes; then
3004    coin_warn_cflags=
3005  fi
3006
3007  if test x${DBG_CFLAGS+set} != xset; then
3008    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3009  fi
3010  if test x${OPT_CFLAGS+set} != xset; then
3011    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3012  fi
3013
3014  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3015  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3016
3017  if test "$coin_debug_compile" = "true"; then
3018    CFLAGS="$DBG_CFLAGS"
3019  else
3020    CFLAGS="$OPT_CFLAGS"
3021  fi
3022else
3023  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3024  if test x${DBG_CFLAGS+set} != xset; then
3025    DBG_CFLAGS="$CFLAGS"
3026  fi
3027  if test x${OPT_CFLAGS+set} != xset; then
3028    OPT_CFLAGS="$CFLAGS"
3029  fi
3030fi
3031
3032# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3033if test x$COIN_PRJCT != x; then
3034  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3035fi
3036
3037# Try if CFLAGS works
3038save_CFLAGS="$CFLAGS"
3039cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h.  */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h.  */
3045
3046int
3047main ()
3048{
3049int i=0; i++;
3050  ;
3051  return 0;
3052}
3053_ACEOF
3054rm -f conftest.$ac_objext conftest$ac_exeext
3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056  (eval $ac_link) 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } &&
3063         { ac_try='test -z "$ac_c_werror_flag"
3064                         || test ! -s conftest.err'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; } &&
3070         { ac_try='test -s conftest$ac_exeext'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  :
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081CFLAGS=
3082fi
3083rm -f conftest.err conftest.$ac_objext \
3084      conftest$ac_exeext conftest.$ac_ext
3085if test -z "$CFLAGS"; then
3086  { 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
3087echo "$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;}
3088  CFLAGS='-O'
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099int i=0; i++;
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext conftest$ac_exeext
3105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106  (eval $ac_link) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -z "$ac_c_werror_flag"
3114                         || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120         { ac_try='test -s conftest$ac_exeext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131CFLAGS=
3132fi
3133rm -f conftest.err conftest.$ac_objext \
3134      conftest$ac_exeext conftest.$ac_ext
3135  if test -z "$CFLAGS"; then
3136    { 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
3137echo "$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;}
3138  fi
3139fi
3140
3141{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3142echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3143
3144
3145if test x"$MPICC" = x; then :; else
3146  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3147echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3148  CC="$MPICC"
3149fi
3150
3151# Correct the LD variable if we are using the MS or Intel-windows compiler
3152case "$CC" in
3153  clang* ) ;;
3154  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3155    LD=link
3156    ;;
3157esac
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166case $build in
3167  *-cygwin* | *-mingw*)
3168     if test "$enable_msvc" = yes ; then
3169       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3170     else
3171       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3172     fi ;;
3173  *-*-solaris*)
3174     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3175  *-linux-gnu*)
3176     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3177  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3178 esac
3179
3180
3181
3182
3183
3184ac_ext=f
3185ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3186ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3188
3189
3190
3191
3192
3193
3194coin_has_f77=yes
3195
3196save_fflags="$FFLAGS"
3197
3198# We delete the cached value, since the test might not have been
3199# performed with our choice of compilers earlier
3200$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3201
3202# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3203# coin_f77_comps to see if there's a program that matches one of the names.
3204# If there's no such program, F77 = unavailable. If we match the name,
3205# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3206# compiler.
3207# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3208
3209
3210{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3211echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3212if test -n "$ac_tool_prefix"; then
3213  for ac_prog in $coin_f77_comps
3214  do
3215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217echo "$as_me:$LINENO: checking for $ac_word" >&5
3218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219if test "${ac_cv_prog_F77+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  if test -n "$F77"; then
3223  ac_cv_prog_F77="$F77" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230  for ac_exec_ext in '' $ac_executable_extensions; do
3231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237done
3238
3239fi
3240fi
3241F77=$ac_cv_prog_F77
3242if test -n "$F77"; then
3243  echo "$as_me:$LINENO: result: $F77" >&5
3244echo "${ECHO_T}$F77" >&6
3245else
3246  echo "$as_me:$LINENO: result: no" >&5
3247echo "${ECHO_T}no" >&6
3248fi
3249
3250    test -n "$F77" && break
3251  done
3252fi
3253if test -z "$F77"; then
3254  ac_ct_F77=$F77
3255  for ac_prog in $coin_f77_comps
3256do
3257  # Extract the first word of "$ac_prog", so it can be a program name with args.
3258set dummy $ac_prog; ac_word=$2
3259echo "$as_me:$LINENO: checking for $ac_word" >&5
3260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3262  echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264  if test -n "$ac_ct_F77"; then
3265  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3266else
3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270  IFS=$as_save_IFS
3271  test -z "$as_dir" && as_dir=.
3272  for ac_exec_ext in '' $ac_executable_extensions; do
3273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_ac_ct_F77="$ac_prog"
3275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279done
3280
3281fi
3282fi
3283ac_ct_F77=$ac_cv_prog_ac_ct_F77
3284if test -n "$ac_ct_F77"; then
3285  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3286echo "${ECHO_T}$ac_ct_F77" >&6
3287else
3288  echo "$as_me:$LINENO: result: no" >&5
3289echo "${ECHO_T}no" >&6
3290fi
3291
3292  test -n "$ac_ct_F77" && break
3293done
3294test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3295
3296  F77=$ac_ct_F77
3297fi
3298
3299
3300if test "$F77" != "unavailable" ; then
3301  ac_ext=f
3302ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3303ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3305if test -n "$ac_tool_prefix"; then
3306  for ac_prog in $coin_f77_comps
3307  do
3308    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310echo "$as_me:$LINENO: checking for $ac_word" >&5
3311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312if test "${ac_cv_prog_F77+set}" = set; then
3313  echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315  if test -n "$F77"; then
3316  ac_cv_prog_F77="$F77" # Let the user override the test.
3317else
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323  for ac_exec_ext in '' $ac_executable_extensions; do
3324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329done
3330done
3331
3332fi
3333fi
3334F77=$ac_cv_prog_F77
3335if test -n "$F77"; then
3336  echo "$as_me:$LINENO: result: $F77" >&5
3337echo "${ECHO_T}$F77" >&6
3338else
3339  echo "$as_me:$LINENO: result: no" >&5
3340echo "${ECHO_T}no" >&6
3341fi
3342
3343    test -n "$F77" && break
3344  done
3345fi
3346if test -z "$F77"; then
3347  ac_ct_F77=$F77
3348  for ac_prog in $coin_f77_comps
3349do
3350  # Extract the first word of "$ac_prog", so it can be a program name with args.
3351set dummy $ac_prog; ac_word=$2
3352echo "$as_me:$LINENO: checking for $ac_word" >&5
3353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  if test -n "$ac_ct_F77"; then
3358  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3359else
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH
3362do
3363  IFS=$as_save_IFS
3364  test -z "$as_dir" && as_dir=.
3365  for ac_exec_ext in '' $ac_executable_extensions; do
3366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367    ac_cv_prog_ac_ct_F77="$ac_prog"
3368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369    break 2
3370  fi
3371done
3372done
3373
3374fi
3375fi
3376ac_ct_F77=$ac_cv_prog_ac_ct_F77
3377if test -n "$ac_ct_F77"; then
3378  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3379echo "${ECHO_T}$ac_ct_F77" >&6
3380else
3381  echo "$as_me:$LINENO: result: no" >&5
3382echo "${ECHO_T}no" >&6
3383fi
3384
3385  test -n "$ac_ct_F77" && break
3386done
3387
3388  F77=$ac_ct_F77
3389fi
3390
3391
3392# Provide some information about the compiler.
3393echo "$as_me:3393:" \
3394     "checking for Fortran 77 compiler version" >&5
3395ac_compiler=`set X $ac_compile; echo $2`
3396{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3397  (eval $ac_compiler --version </dev/null >&5) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }
3401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3402  (eval $ac_compiler -v </dev/null >&5) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }
3406{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3407  (eval $ac_compiler -V </dev/null >&5) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }
3411rm -f a.out
3412
3413# If we don't use `.F' as extension, the preprocessor is not run on the
3414# input file.  (Note that this only needs to work for GNU compilers.)
3415ac_save_ext=$ac_ext
3416ac_ext=F
3417echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3418echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3419if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423      program main
3424#ifndef __GNUC__
3425       choke me
3426#endif
3427
3428      end
3429_ACEOF
3430rm -f conftest.$ac_objext
3431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432  (eval $ac_compile) 2>conftest.er1
3433  ac_status=$?
3434  grep -v '^ *+' conftest.er1 >conftest.err
3435  rm -f conftest.er1
3436  cat conftest.err >&5
3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438  (exit $ac_status); } &&
3439         { ac_try='test -z "$ac_f77_werror_flag"
3440                         || test ! -s conftest.err'
3441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442  (eval $ac_try) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; } &&
3446         { ac_try='test -s conftest.$ac_objext'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; }; then
3452  ac_compiler_gnu=yes
3453else
3454  echo "$as_me: failed program was:" >&5
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
3457ac_compiler_gnu=no
3458fi
3459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3460ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3461
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3464echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3465ac_ext=$ac_save_ext
3466ac_test_FFLAGS=${FFLAGS+set}
3467ac_save_FFLAGS=$FFLAGS
3468FFLAGS=
3469echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3470echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3471if test "${ac_cv_prog_f77_g+set}" = set; then
3472  echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474  FFLAGS=-g
3475cat >conftest.$ac_ext <<_ACEOF
3476      program main
3477
3478      end
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482  (eval $ac_compile) 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } &&
3489         { ac_try='test -z "$ac_f77_werror_flag"
3490                         || test ! -s conftest.err'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; } &&
3496         { ac_try='test -s conftest.$ac_objext'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; }; then
3502  ac_cv_prog_f77_g=yes
3503else
3504  echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_prog_f77_g=no
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510
3511fi
3512echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3513echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3514if test "$ac_test_FFLAGS" = set; then
3515  FFLAGS=$ac_save_FFLAGS
3516elif test $ac_cv_prog_f77_g = yes; then
3517  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3518    FFLAGS="-g -O2"
3519  else
3520    FFLAGS="-g"
3521  fi
3522else
3523  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3524    FFLAGS="-O2"
3525  else
3526    FFLAGS=
3527  fi
3528fi
3529
3530G77=`test $ac_compiler_gnu = yes && echo yes`
3531ac_ext=f
3532ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3533ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3535
3536else
3537  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3538echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3539fi
3540
3541FFLAGS="$save_fflags"
3542
3543# Check if a project specific FFLAGS variable has been set
3544if test x$COIN_PRJCT != x; then
3545  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3546  if test x$coin_tmp = xset; then
3547    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3548  fi
3549fi
3550
3551if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3552
3553  coin_add_fflags=
3554  coin_opt_fflags=
3555  coin_dbg_fflags=
3556  coin_warn_fflags=
3557
3558  if test "$G77" = "yes"; then
3559    coin_opt_fflags="-O3"
3560    coin_add_fflags="-pipe"
3561    coin_dbg_fflags="-g -O0"
3562  else
3563    case $build in
3564      *-cygwin* | *-mingw*)
3565        case $F77 in
3566          ifort* | */ifort* | IFORT* | */IFORT* )
3567            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3568              coin_opt_fflags='-MD -O3'
3569              coin_dbg_fflags='-MDd -debug'
3570            else
3571              coin_opt_fflags='-MT -O3'
3572              coin_dbg_fflags='-MTd -debug'
3573            fi
3574            coin_add_fflags='-fpp -nologo'
3575          ;;
3576          compile_f2c*)
3577            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3578              coin_opt_fflags='-MD -O2'
3579              coin_dbg_fflags='-MDd'
3580            else
3581              coin_opt_fflags='-MT -O2'
3582              coin_dbg_fflags='-MTd'
3583            fi
3584            coin_add_fflags='-nologo -wd4996'
3585          ;;
3586        esac
3587        ;;
3588      *-linux-*)
3589        case $F77 in
3590          ifc* | */ifc* | ifort* | */ifort*)
3591            coin_opt_fflags="-O3 -ip"
3592            coin_add_fflags="-cm -w90 -w95"
3593            coin_dbg_fflags="-g -CA -CB -CS"
3594            # Check if -i_dynamic is necessary (for new glibc library)
3595            FFLAGS=
3596            cat >conftest.$ac_ext <<_ACEOF
3597      program main
3598      write(*,*) 'Hello world'
3599      end
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603  (eval $ac_link) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_f77_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest$ac_exeext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  :
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628coin_add_fflags="-i_dynamic $coin_add_fflags"
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631      conftest$ac_exeext conftest.$ac_ext
3632            ;;
3633          pgf77* | */pgf77* | pgf90* | */pgf90*)
3634            coin_opt_fflags="-fast"
3635            coin_add_fflags="-Kieee -pc 64"
3636            coin_dbg_fflags="-g"
3637          ;;
3638        esac
3639        ;;
3640      *-ibm-*)
3641        case "$F77" in
3642          xlf* | */xlf* | mpxlf* | */mpxlf* )
3643            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3644            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3645            coin_dbg_fflags="-g -C"
3646            ;;
3647        esac
3648        ;;
3649      *-hp-*)
3650        coin_opt_fflags="+O3"
3651        coin_add_fflags="+U77"
3652        coin_dbg_fflags="-C -g"
3653        ;;
3654      *-*-solaris*)
3655        coin_opt_fflags="-O4"
3656        coin_dbg_fflags="-g"
3657        ;;
3658      *-sgi-*)
3659        coin_opt_fflags="-O5 -OPT:Olimit=0"
3660        coin_dbg_fflags="-g"
3661        ;;
3662    esac
3663  fi
3664
3665  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3666    coin_dbg_fflags="-g"
3667  fi
3668
3669  if test -z "$coin_opt_fflags"; then
3670    # Try if -O option works if nothing else is set
3671    FFLAGS=-O
3672    cat >conftest.$ac_ext <<_ACEOF
3673      program main
3674      integer i
3675      end
3676_ACEOF
3677rm -f conftest.$ac_objext conftest$ac_exeext
3678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3679  (eval $ac_link) 2>conftest.er1
3680  ac_status=$?
3681  grep -v '^ *+' conftest.er1 >conftest.err
3682  rm -f conftest.er1
3683  cat conftest.err >&5
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); } &&
3686         { ac_try='test -z "$ac_f77_werror_flag"
3687                         || test ! -s conftest.err'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; } &&
3693         { ac_try='test -s conftest$ac_exeext'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; }; then
3699  coin_opt_fflags="-O"
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704fi
3705rm -f conftest.err conftest.$ac_objext \
3706      conftest$ac_exeext conftest.$ac_ext
3707  fi
3708
3709  # if PM doesn't want the warning messages, take them out
3710  if test x"$coin_skip_warn_fflags" = xyes; then
3711    coin_warn_fflags=
3712  fi
3713
3714  if test x${DBG_FFLAGS+set} != xset; then
3715    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3716  fi
3717  if test x${OPT_FFLAGS+set} != xset; then
3718    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3719  fi
3720
3721  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3722  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3723
3724  if test "$coin_debug_compile" = "true"; then
3725    FFLAGS="$DBG_FFLAGS"
3726  else
3727    FFLAGS="$OPT_FFLAGS"
3728  fi
3729else
3730  FFLAGS="$FFLAGS $ADD_FFLAGS"
3731  if test x${DBG_FFLAGS+set} != xset; then
3732    DBG_FFLAGS="$FFLAGS"
3733  fi
3734  if test x${OPT_FFLAGS+set} != xset; then
3735    OPT_FFLAGS="$FFLAGS"
3736  fi
3737fi
3738
3739# Try if FFLAGS works
3740if test "$F77" != "unavailable" ; then
3741  cat >conftest.$ac_ext <<_ACEOF
3742      program main
3743      integer i
3744      end
3745_ACEOF
3746rm -f conftest.$ac_objext conftest$ac_exeext
3747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748  (eval $ac_link) 2>conftest.er1
3749  ac_status=$?
3750  grep -v '^ *+' conftest.er1 >conftest.err
3751  rm -f conftest.er1
3752  cat conftest.err >&5
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); } &&
3755         { ac_try='test -z "$ac_f77_werror_flag"
3756                         || test ! -s conftest.err'
3757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758  (eval $ac_try) 2>&5
3759  ac_status=$?
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); }; } &&
3762         { ac_try='test -s conftest$ac_exeext'
3763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764  (eval $ac_try) 2>&5
3765  ac_status=$?
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); }; }; then
3768  :
3769else
3770  echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773FFLAGS=
3774fi
3775rm -f conftest.err conftest.$ac_objext \
3776      conftest$ac_exeext conftest.$ac_ext
3777  if test -z "$FFLAGS"; then
3778    { 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
3779echo "$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;}
3780    FFLAGS='-O'
3781    cat >conftest.$ac_ext <<_ACEOF
3782      program main
3783      integer i
3784      end
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788  (eval $ac_link) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_f77_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest$ac_exeext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  :
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813FFLAGS=
3814fi
3815rm -f conftest.err conftest.$ac_objext \
3816      conftest$ac_exeext conftest.$ac_ext
3817    if test -z "$FFLAGS"; then
3818      { 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
3819echo "$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;}
3820    fi
3821  fi
3822fi
3823
3824{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3825echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3826
3827
3828if test x"$MPIF77" = x; then :; else
3829  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3830echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3831  F77="$MPIF77"
3832fi
3833
3834# correct the LD variable if we use the intel fortran compiler in windows
3835case "$F77" in
3836  ifort* | */ifort* | IFORT* | */IFORT*)
3837    LD=link
3838    ;;
3839esac
3840
3841ac_ext=c
3842ac_cpp='$CPP $CPPFLAGS'
3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847
3848
3849# Get the linker flags (FLIBS) that are required for linking against this library
3850
3851# get FLIBS
3852ac_ext=f
3853ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3854ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3856echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3857echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3858if test "${ac_cv_prog_f77_v+set}" = set; then
3859  echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861  cat >conftest.$ac_ext <<_ACEOF
3862      program main
3863
3864      end
3865_ACEOF
3866rm -f conftest.$ac_objext
3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868  (eval $ac_compile) 2>conftest.er1
3869  ac_status=$?
3870  grep -v '^ *+' conftest.er1 >conftest.err
3871  rm -f conftest.er1
3872  cat conftest.err >&5
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); } &&
3875         { ac_try='test -z "$ac_f77_werror_flag"
3876                         || test ! -s conftest.err'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; } &&
3882         { ac_try='test -s conftest.$ac_objext'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; }; then
3888  ac_cv_prog_f77_v=
3889# Try some options frequently used verbose output
3890for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3891  cat >conftest.$ac_ext <<_ACEOF
3892      program main
3893
3894      end
3895_ACEOF
3896
3897# Compile and link our simple test program by passing a flag (argument
3898# 1 to this macro) to the Fortran compiler in order to get
3899# "verbose" output that we can then parse for the Fortran linker
3900# flags.
3901ac_save_FFLAGS=$FFLAGS
3902FFLAGS="$FFLAGS $ac_verb"
3903(eval echo $as_me:3903: \"$ac_link\") >&5
3904ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3905echo "$ac_f77_v_output" >&5
3906FFLAGS=$ac_save_FFLAGS
3907
3908rm -f conftest*
3909
3910# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3911# /foo, /bar, and /baz are search directories for the Fortran linker.
3912# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3913ac_f77_v_output="`echo $ac_f77_v_output |
3914        grep 'LPATH is:' |
3915        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3916
3917case $ac_f77_v_output in
3918  # If we are using xlf then replace all the commas with spaces.
3919  *xlfentry*)
3920    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3921
3922  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3923  # $LIBS confuse us, and the libraries appear later in the output anyway).
3924  *mGLOB_options_string*)
3925    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3926
3927  # If we are using Cray Fortran then delete quotes.
3928  # Use "\"" instead of '"' for font-lock-mode.
3929  # FIXME: a more general fix for quoted arguments with spaces?
3930  *cft90*)
3931    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3932esac
3933
3934
3935  # look for -l* and *.a constructs in the output
3936  for ac_arg in $ac_f77_v_output; do
3937     case $ac_arg in
3938        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3939          ac_cv_prog_f77_v=$ac_verb
3940          break 2 ;;
3941     esac
3942  done
3943done
3944if test -z "$ac_cv_prog_f77_v"; then
3945   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3946echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3947fi
3948else
3949  echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3953echo "$as_me: WARNING: compilation failed" >&2;}
3954fi
3955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956
3957fi
3958echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3959echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3960echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3961echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3962if test "${ac_cv_f77_libs+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965  if test "x$FLIBS" != "x"; then
3966  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3967else
3968
3969cat >conftest.$ac_ext <<_ACEOF
3970      program main
3971
3972      end
3973_ACEOF
3974
3975# Compile and link our simple test program by passing a flag (argument
3976# 1 to this macro) to the Fortran compiler in order to get
3977# "verbose" output that we can then parse for the Fortran linker
3978# flags.
3979ac_save_FFLAGS=$FFLAGS
3980FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3981(eval echo $as_me:3981: \"$ac_link\") >&5
3982ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3983echo "$ac_f77_v_output" >&5
3984FFLAGS=$ac_save_FFLAGS
3985
3986rm -f conftest*
3987
3988# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3989# /foo, /bar, and /baz are search directories for the Fortran linker.
3990# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3991ac_f77_v_output="`echo $ac_f77_v_output |
3992        grep 'LPATH is:' |
3993        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3994
3995case $ac_f77_v_output in
3996  # If we are using xlf then replace all the commas with spaces.
3997  *xlfentry*)
3998    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3999
4000  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4001  # $LIBS confuse us, and the libraries appear later in the output anyway).
4002  *mGLOB_options_string*)
4003    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4004
4005  # If we are using Cray Fortran then delete quotes.
4006  # Use "\"" instead of '"' for font-lock-mode.
4007  # FIXME: a more general fix for quoted arguments with spaces?
4008  *cft90*)
4009    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4010esac
4011
4012
4013
4014ac_cv_f77_libs=
4015
4016# Save positional arguments (if any)
4017ac_save_positional="$@"
4018
4019set X $ac_f77_v_output
4020while test $# != 1; do
4021  shift
4022  ac_arg=$1
4023  case $ac_arg in
4024        [\\/]*.a | ?:[\\/]*.a)
4025            ac_exists=false
4026  for ac_i in $ac_cv_f77_libs; do
4027    if test x"$ac_arg" = x"$ac_i"; then
4028      ac_exists=true
4029      break
4030    fi
4031  done
4032
4033  if test x"$ac_exists" = xtrue; then
4034  :
4035else
4036  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4037fi
4038
4039          ;;
4040        -bI:*)
4041            ac_exists=false
4042  for ac_i in $ac_cv_f77_libs; do
4043    if test x"$ac_arg" = x"$ac_i"; then
4044      ac_exists=true
4045      break
4046    fi
4047  done
4048
4049  if test x"$ac_exists" = xtrue; then
4050  :
4051else
4052  if test "$ac_compiler_gnu" = yes; then
4053  for ac_link_opt in $ac_arg; do
4054    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4055  done
4056else
4057  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4058fi
4059fi
4060
4061          ;;
4062          # Ignore these flags.
4063        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4064          ;;
4065        -lkernel32)
4066          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4067          ;;
4068        -[LRuY])
4069          # These flags, when seen by themselves, take an argument.
4070          # We remove the space between option and argument and re-iterate
4071          # unless we find an empty arg or a new option (starting with -)
4072          case $2 in
4073             "" | -*);;
4074             *)
4075                ac_arg="$ac_arg$2"
4076                shift; shift
4077                set X $ac_arg "$@"
4078                ;;
4079          esac
4080          ;;
4081        -YP,*)
4082          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4083              ac_exists=false
4084  for ac_i in $ac_cv_f77_libs; do
4085    if test x"$ac_j" = x"$ac_i"; then
4086      ac_exists=true
4087      break
4088    fi
4089  done
4090
4091  if test x"$ac_exists" = xtrue; then
4092  :
4093else
4094  ac_arg="$ac_arg $ac_j"
4095                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4096fi
4097
4098          done
4099          ;;
4100        -[lLR]*)
4101            ac_exists=false
4102  for ac_i in $ac_cv_f77_libs; do
4103    if test x"$ac_arg" = x"$ac_i"; then
4104      ac_exists=true
4105      break
4106    fi
4107  done
4108
4109  if test x"$ac_exists" = xtrue; then
4110  :
4111else
4112  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4113fi
4114
4115          ;;
4116          # Ignore everything else.
4117  esac
4118done
4119# restore positional arguments
4120set X $ac_save_positional; shift
4121
4122# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4123# then we insist that the "run path" must be an absolute path (i.e. it
4124# must begin with a "/").
4125case `(uname -sr) 2>/dev/null` in
4126   "SunOS 5"*)
4127      ac_ld_run_path=`echo $ac_f77_v_output |
4128                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4129      test "x$ac_ld_run_path" != x &&
4130        if test "$ac_compiler_gnu" = yes; then
4131  for ac_link_opt in $ac_ld_run_path; do
4132    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4133  done
4134else
4135  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4136fi
4137      ;;
4138esac
4139fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4140
4141fi
4142echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4143echo "${ECHO_T}$ac_cv_f77_libs" >&6
4144FLIBS="$ac_cv_f77_libs"
4145
4146
4147ac_ext=c
4148ac_cpp='$CPP $CPPFLAGS'
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153orig_FLIBS="$FLIBS"
4154
4155# If FLIBS has been set by the user, we just restore its value here
4156if test x"$save_FLIBS" != x; then
4157  FLIBS="$save_FLIBS"
4158else
4159  # This is to correct a missing exclusion in autoconf 2.59
4160  if test x"$FLIBS" != x; then
4161    my_flibs=
4162    for flag in $FLIBS; do
4163      case $flag in
4164        -lcrt*.o) ;;
4165        -lcygwin) ;;
4166        -lgcc*)   ;;
4167               *) my_flibs="$my_flibs $flag" ;;
4168      esac
4169    done
4170    FLIBS="$my_flibs"
4171  fi
4172
4173  case $build in
4174  # The following is a fix to define FLIBS for ifort on Windows
4175  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4176  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4177  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4178  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4179  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4180     *-cygwin* | *-mingw*)
4181       case "$F77" in
4182#         ifort* | */ifort* | IFORT* | */IFORT*)
4183#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4184#           if "$coin_debug_compile" = true ; then
4185#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4186#           else
4187#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4188#           fi
4189#           ;;
4190         compile_f2c*)
4191           FLIBS=`$F77 -FLIBS` ;;
4192       esac;;
4193     *-hp-*)
4194         FLIBS="$FLIBS -lm";;
4195     *-ibm-*)
4196         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4197     *-linux-*)
4198       case "$F77" in
4199         pgf77* | */pgf77* | pgf90* | */pgf90*)
4200# ask linker to go through the archives multiple times
4201# (the Fortran compiler seems to do that automatically...)
4202           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4203       esac
4204  esac
4205  ac_cv_f77_libs="$FLIBS"
4206fi
4207
4208if test "x$orig_FLIBS" != "x$FLIBS" ; then
4209  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4210echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4211fi
4212
4213ac_ext=f
4214ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4215ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4217
4218echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4219echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4220if test "${ac_cv_f77_dummy_main+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  ac_f77_dm_save_LIBS=$LIBS
4224 LIBS="$LIBS $FLIBS"
4225 ac_fortran_dm_var=F77_DUMMY_MAIN
4226 ac_ext=c
4227ac_cpp='$CPP $CPPFLAGS'
4228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232 # First, try linking without a dummy main:
4233 cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h.  */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h.  */
4239
4240#ifdef F77_DUMMY_MAIN
4241
4242#  ifdef __cplusplus
4243     extern "C"
4244#  endif
4245   int F77_DUMMY_MAIN() { return 1; }
4246
4247#endif
4248int
4249main ()
4250{
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256rm -f conftest.$ac_objext conftest$ac_exeext
4257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258  (eval $ac_link) 2>conftest.er1
4259  ac_status=$?
4260  grep -v '^ *+' conftest.er1 >conftest.err
4261  rm -f conftest.er1
4262  cat conftest.err >&5
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); } &&
4265         { ac_try='test -z "$ac_c_werror_flag"
4266                         || test ! -s conftest.err'
4267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268  (eval $ac_try) 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }; } &&
4272         { ac_try='test -s conftest$ac_exeext'
4273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274  (eval $ac_try) 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; }; then
4278  ac_cv_fortran_dummy_main=none
4279else
4280  echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283ac_cv_fortran_dummy_main=unknown
4284fi
4285rm -f conftest.err conftest.$ac_objext \
4286      conftest$ac_exeext conftest.$ac_ext
4287
4288 if test $ac_cv_fortran_dummy_main = unknown; then
4289   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4290     cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h.  */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
4295/* end confdefs.h.  */
4296#define $ac_fortran_dm_var $ac_func
4297#ifdef F77_DUMMY_MAIN
4298
4299#  ifdef __cplusplus
4300     extern "C"
4301#  endif
4302   int F77_DUMMY_MAIN() { return 1; }
4303
4304#endif
4305int
4306main ()
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313rm -f conftest.$ac_objext conftest$ac_exeext
4314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315  (eval $ac_link) 2>conftest.er1
4316  ac_status=$?
4317  grep -v '^ *+' conftest.er1 >conftest.err
4318  rm -f conftest.er1
4319  cat conftest.err >&5
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); } &&
4322         { ac_try='test -z "$ac_c_werror_flag"
4323                         || test ! -s conftest.err'
4324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325  (eval $ac_try) 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; } &&
4329         { ac_try='test -s conftest$ac_exeext'
4330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331  (eval $ac_try) 2>&5
4332  ac_status=$?
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); }; }; then
4335  ac_cv_fortran_dummy_main=$ac_func; break
4336else
4337  echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340fi
4341rm -f conftest.err conftest.$ac_objext \
4342      conftest$ac_exeext conftest.$ac_ext
4343   done
4344 fi
4345 ac_ext=f
4346ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4347ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4349 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4350 rm -f conftest*
4351 LIBS=$ac_f77_dm_save_LIBS
4352
4353fi
4354echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4355echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4356F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4357if test "$F77_DUMMY_MAIN" != unknown; then
4358  if test $F77_DUMMY_MAIN != none; then
4359
4360cat >>confdefs.h <<_ACEOF
4361#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4362_ACEOF
4363
4364  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4365
4366cat >>confdefs.h <<\_ACEOF
4367#define FC_DUMMY_MAIN_EQ_F77 1
4368_ACEOF
4369
4370  fi
4371fi
4372else
4373  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4374See \`config.log' for more details." >&5
4375echo "$as_me: error: linking to Fortran libraries from C fails
4376See \`config.log' for more details." >&2;}
4377   { (exit 1); exit 1; }; }
4378fi
4379
4380
4381ac_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
4386ac_ext=f
4387ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4388ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4390echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4391echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4392if test "${ac_cv_f77_mangling+set}" = set; then
4393  echo $ECHO_N "(cached) $ECHO_C" >&6
4394else
4395  cat >conftest.$ac_ext <<_ACEOF
4396      subroutine foobar()
4397      return
4398      end
4399      subroutine foo_bar()
4400      return
4401      end
4402_ACEOF
4403rm -f conftest.$ac_objext
4404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405  (eval $ac_compile) 2>conftest.er1
4406  ac_status=$?
4407  grep -v '^ *+' conftest.er1 >conftest.err
4408  rm -f conftest.er1
4409  cat conftest.err >&5
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); } &&
4412         { ac_try='test -z "$ac_f77_werror_flag"
4413                         || test ! -s conftest.err'
4414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415  (eval $ac_try) 2>&5
4416  ac_status=$?
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); }; } &&
4419         { ac_try='test -s conftest.$ac_objext'
4420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421  (eval $ac_try) 2>&5
4422  ac_status=$?
4423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424  (exit $ac_status); }; }; then
4425  mv conftest.$ac_objext cfortran_test.$ac_objext
4426
4427  ac_save_LIBS=$LIBS
4428  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4429
4430  ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435  ac_success=no
4436  for ac_foobar in foobar FOOBAR; do
4437    for ac_underscore in "" "_"; do
4438      ac_func="$ac_foobar$ac_underscore"
4439      cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h.  */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
4444/* end confdefs.h.  */
4445
4446/* Override any gcc2 internal prototype to avoid an error.  */
4447#ifdef __cplusplus
4448extern "C"
4449#endif
4450/* We use char because int might match the return type of a gcc2
4451   builtin and then its argument prototype would still apply.  */
4452char $ac_func ();
4453#ifdef F77_DUMMY_MAIN
4454
4455#  ifdef __cplusplus
4456     extern "C"
4457#  endif
4458   int F77_DUMMY_MAIN() { return 1; }
4459
4460#endif
4461int
4462main ()
4463{
4464$ac_func ();
4465  ;
4466  return 0;
4467}
4468_ACEOF
4469rm -f conftest.$ac_objext conftest$ac_exeext
4470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471  (eval $ac_link) 2>conftest.er1
4472  ac_status=$?
4473  grep -v '^ *+' conftest.er1 >conftest.err
4474  rm -f conftest.er1
4475  cat conftest.err >&5
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); } &&
4478         { ac_try='test -z "$ac_c_werror_flag"
4479                         || test ! -s conftest.err'
4480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481  (eval $ac_try) 2>&5
4482  ac_status=$?
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); }; } &&
4485         { ac_try='test -s conftest$ac_exeext'
4486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487  (eval $ac_try) 2>&5
4488  ac_status=$?
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); }; }; then
4491  ac_success=yes; break 2
4492else
4493  echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496fi
4497rm -f conftest.err conftest.$ac_objext \
4498      conftest$ac_exeext conftest.$ac_ext
4499    done
4500  done
4501  ac_ext=f
4502ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4503ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4505
4506  if test "$ac_success" = "yes"; then
4507     case $ac_foobar in
4508        foobar)
4509           ac_case=lower
4510           ac_foo_bar=foo_bar
4511           ;;
4512        FOOBAR)
4513           ac_case=upper
4514           ac_foo_bar=FOO_BAR
4515           ;;
4516     esac
4517
4518     ac_ext=c
4519ac_cpp='$CPP $CPPFLAGS'
4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523     ac_success_extra=no
4524     for ac_extra in "" "_"; do
4525        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4526        cat >conftest.$ac_ext <<_ACEOF
4527/* confdefs.h.  */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h.  */
4532
4533/* Override any gcc2 internal prototype to avoid an error.  */
4534#ifdef __cplusplus
4535extern "C"
4536#endif
4537/* We use char because int might match the return type of a gcc2
4538   builtin and then its argument prototype would still apply.  */
4539char $ac_func ();
4540#ifdef F77_DUMMY_MAIN
4541
4542#  ifdef __cplusplus
4543     extern "C"
4544#  endif
4545   int F77_DUMMY_MAIN() { return 1; }
4546
4547#endif
4548int
4549main ()
4550{
4551$ac_func ();
4552  ;
4553  return 0;
4554}
4555_ACEOF
4556rm -f conftest.$ac_objext conftest$ac_exeext
4557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4558  (eval $ac_link) 2>conftest.er1
4559  ac_status=$?
4560  grep -v '^ *+' conftest.er1 >conftest.err
4561  rm -f conftest.er1
4562  cat conftest.err >&5
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); } &&
4565         { ac_try='test -z "$ac_c_werror_flag"
4566                         || test ! -s conftest.err'
4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568  (eval $ac_try) 2>&5
4569  ac_status=$?
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); }; } &&
4572         { ac_try='test -s conftest$ac_exeext'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; }; then
4578  ac_success_extra=yes; break
4579else
4580  echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583fi
4584rm -f conftest.err conftest.$ac_objext \
4585      conftest$ac_exeext conftest.$ac_ext
4586     done
4587     ac_ext=f
4588ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4589ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4591
4592     if test "$ac_success_extra" = "yes"; then
4593        ac_cv_f77_mangling="$ac_case case"
4594        if test -z "$ac_underscore"; then
4595           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4596        else
4597           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4598        fi
4599        if test -z "$ac_extra"; then
4600           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4601        else
4602           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4603        fi
4604      else
4605        ac_cv_f77_mangling="unknown"
4606      fi
4607  else
4608     ac_cv_f77_mangling="unknown"
4609  fi
4610
4611  LIBS=$ac_save_LIBS
4612  rm -f cfortran_test* conftest*
4613else
4614  echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4618See \`config.log' for more details." >&5
4619echo "$as_me: error: cannot compile a simple Fortran program
4620See \`config.log' for more details." >&2;}
4621   { (exit 1); exit 1; }; }
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625fi
4626echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4627echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4628
4629ac_ext=f
4630ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4631ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4633
4634
4635ac_ext=f
4636ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4637ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4639
4640ac_ext=f
4641ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4642ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4644
4645
4646case $ac_cv_f77_mangling in
4647  "lower case, no underscore, no extra underscore")
4648          cat >>confdefs.h <<\_ACEOF
4649#define F77_FUNC(name,NAME) name
4650_ACEOF
4651
4652          cat >>confdefs.h <<\_ACEOF
4653#define F77_FUNC_(name,NAME) name
4654_ACEOF
4655 ;;
4656  "lower case, no underscore, extra underscore")
4657          cat >>confdefs.h <<\_ACEOF
4658#define F77_FUNC(name,NAME) name
4659_ACEOF
4660
4661          cat >>confdefs.h <<\_ACEOF
4662#define F77_FUNC_(name,NAME) name ## _
4663_ACEOF
4664 ;;
4665  "lower case, underscore, no extra underscore")
4666          cat >>confdefs.h <<\_ACEOF
4667#define F77_FUNC(name,NAME) name ## _
4668_ACEOF
4669
4670          cat >>confdefs.h <<\_ACEOF
4671#define F77_FUNC_(name,NAME) name ## _
4672_ACEOF
4673 ;;
4674  "lower case, underscore, extra underscore")
4675          cat >>confdefs.h <<\_ACEOF
4676#define F77_FUNC(name,NAME) name ## _
4677_ACEOF
4678
4679          cat >>confdefs.h <<\_ACEOF
4680#define F77_FUNC_(name,NAME) name ## __
4681_ACEOF
4682 ;;
4683  "upper 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  "upper 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  "upper 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  "upper 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  *)
4720          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4721echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4722          ;;
4723esac
4724
4725ac_ext=f
4726ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4727ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4729
4730ac_ext=c
4731ac_cpp='$CPP $CPPFLAGS'
4732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736
4737
4738
4739# Check for Blas
4740
4741
4742# Check whether --enable-pkg-config or --disable-pkg-config was given.
4743if test "${enable_pkg_config+set}" = set; then
4744  enableval="$enable_pkg_config"
4745  use_pkgconfig="$enableval"
4746else
4747  if test x$coin_cc_is_cl = xtrue; then
4748     use_pkgconfig=no
4749   else
4750     use_pkgconfig=yes
4751   fi
4752fi;
4753
4754if test $use_pkgconfig = yes ; then
4755  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4756    if test -n "$ac_tool_prefix"; then
4757  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4759echo "$as_me:$LINENO: checking for $ac_word" >&5
4760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4762  echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764  if test -n "$PKG_CONFIG"; then
4765  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770  IFS=$as_save_IFS
4771  test -z "$as_dir" && as_dir=.
4772  for ac_exec_ext in '' $ac_executable_extensions; do
4773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776    break 2
4777  fi
4778done
4779done
4780
4781fi
4782fi
4783PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4784if test -n "$PKG_CONFIG"; then
4785  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4786echo "${ECHO_T}$PKG_CONFIG" >&6
4787else
4788  echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
4790fi
4791
4792fi
4793if test -z "$ac_cv_prog_PKG_CONFIG"; then
4794  ac_ct_PKG_CONFIG=$PKG_CONFIG
4795  # Extract the first word of "pkg-config", so it can be a program name with args.
4796set dummy pkg-config; ac_word=$2
4797echo "$as_me:$LINENO: checking for $ac_word" >&5
4798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4800  echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
4802  if test -n "$ac_ct_PKG_CONFIG"; then
4803  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4804else
4805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808  IFS=$as_save_IFS
4809  test -z "$as_dir" && as_dir=.
4810  for ac_exec_ext in '' $ac_executable_extensions; do
4811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814    break 2
4815  fi
4816done
4817done
4818
4819fi
4820fi
4821ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4822if test -n "$ac_ct_PKG_CONFIG"; then
4823  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4824echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4825else
4826  echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828fi
4829
4830  PKG_CONFIG=$ac_ct_PKG_CONFIG
4831else
4832  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4833fi
4834
4835  fi
4836  if test -n "$PKG_CONFIG"; then
4837    _pkg_min_version=0.16.0
4838    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4839echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4840    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4841      echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843    else
4844      echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846      PKG_CONFIG=""
4847    fi
4848  fi
4849
4850  # check if pkg-config supports the short-errors flag
4851  if test -n "$PKG_CONFIG" && \
4852    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4853    pkg_short_errors=" --short-errors "
4854  else
4855    pkg_short_errors=""
4856  fi
4857fi
4858
4859
4860
4861if test -n "$PKG_CONFIG"; then
4862  COIN_HAS_PKGCONFIG_TRUE=
4863  COIN_HAS_PKGCONFIG_FALSE='#'
4864else
4865  COIN_HAS_PKGCONFIG_TRUE='#'
4866  COIN_HAS_PKGCONFIG_FALSE=
4867fi
4868
4869
4870
4871# assemble pkg-config search path for installed projects
4872COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4873
4874# 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
4875# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4876# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4877if test "x${prefix}" = xNONE ; then
4878  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4879else
4880  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4881fi
4882
4883
4884# Check whether --with-coin-instdir or --without-coin-instdir was given.
4885if test "${with_coin_instdir+set}" = set; then
4886  withval="$with_coin_instdir"
4887  if test -d "$withval"; then : ; else
4888     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4889echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4890   { (exit 1); exit 1; }; }
4891   fi
4892   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4893
4894fi;
4895
4896
4897
4898# assemble additional pkg-config search paths for uninstalled projects
4899if test x$coin_projectdir = xyes ; then
4900  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4901  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4902  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4903  # 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)
4904  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4905  if test -f ../coin_subdirs.txt ; then
4906    for i in `cat ../coin_subdirs.txt` ; do
4907      if test -d ../$i ; then
4908        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4909      fi
4910      if test -d ../$i/pkgconfig ; then
4911        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4912      fi
4913    done
4914  fi
4915
4916  if test -f ../../coin_subdirs.txt ; then
4917    for i in `cat ../../coin_subdirs.txt` ; do
4918      if test -d ../../$i ; then
4919        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4920      fi
4921      if test -d ../../$i/pkgconfig ; then
4922        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4923      fi
4924    done
4925  fi
4926
4927
4928fi
4929
4930if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4931  { 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
4932echo "$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;}
4933fi
4934
4935
4936
4937
4938# Check whether --with-blas or --without-blas was given.
4939if test "${with_blas+set}" = set; then
4940  withval="$with_blas"
4941  use_blas="$withval"
4942else
4943  use_blas=
4944fi;
4945
4946# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
4947# preference
4948
4949# Check whether --with-blas-lib or --without-blas-lib was given.
4950if test "${with_blas_lib+set}" = set; then
4951  withval="$with_blas_lib"
4952  use_blas=BUILD
4953fi;
4954
4955# Check if user supplied option makes sense
4956if test x"$use_blas" != x; then
4957  if test "$use_blas" = "BUILD"; then
4958    # we come to this later
4959    :
4960  elif test "$use_blas" != "no"; then
4961    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
4962echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
4963    coin_need_flibs=no
4964    coin_save_LIBS="$LIBS"
4965    LIBS="$use_blas $LIBS"
4966    case $ac_ext in
4967  f)
4968    cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974
4975#ifdef F77_DUMMY_MAIN
4976
4977#  ifdef __cplusplus
4978     extern "C"
4979#  endif
4980   int F77_DUMMY_MAIN() { return 1; }
4981
4982#endif
4983int
4984main ()
4985{
4986      call daxpy
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
4992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993  (eval $ac_link) 2>conftest.er1
4994  ac_status=$?
4995  grep -v '^ *+' conftest.er1 >conftest.err
4996  rm -f conftest.er1
4997  cat conftest.err >&5
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); } &&
5000         { ac_try='test -z "$ac_c_werror_flag"
5001                         || test ! -s conftest.err'
5002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003  (eval $ac_try) 2>&5
5004  ac_status=$?
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); }; } &&
5007         { ac_try='test -s conftest$ac_exeext'
5008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009  (eval $ac_try) 2>&5
5010  ac_status=$?
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; }; then
5013  if test $coin_need_flibs = yes ; then
5014                         use_blas="$use_blas $FLIBS"
5015                       fi
5016                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5017echo "${ECHO_T}yes: $use_blas" >&6
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022echo "$as_me:$LINENO: result: no" >&5
5023echo "${ECHO_T}no" >&6
5024                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5025echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5026   { (exit 1); exit 1; }; }
5027fi
5028rm -f conftest.err conftest.$ac_objext \
5029      conftest$ac_exeext conftest.$ac_ext
5030    ;;
5031  c)
5032    ac_ext=f
5033ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5034ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5036case $ac_cv_f77_mangling in
5037  upper*) ac_val="DAXPY" ;;
5038  lower*) ac_val="daxpy" ;;
5039  *)      ac_val="unknown" ;;
5040esac
5041case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5042
5043cfuncdaxpy="$ac_val"
5044
5045ac_ext=c
5046ac_cpp='$CPP $CPPFLAGS'
5047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051    if test x"$coin_need_flibs" = xyes; then
5052      flink_try=no;
5053    else
5054      cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h.  */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h.  */
5060void $cfuncdaxpy();
5061#ifdef F77_DUMMY_MAIN
5062
5063#  ifdef __cplusplus
5064     extern "C"
5065#  endif
5066   int F77_DUMMY_MAIN() { return 1; }
5067
5068#endif
5069int
5070main ()
5071{
5072$cfuncdaxpy()
5073  ;
5074  return 0;
5075}
5076_ACEOF
5077rm -f conftest.$ac_objext conftest$ac_exeext
5078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079  (eval $ac_link) 2>conftest.er1
5080  ac_status=$?
5081  grep -v '^ *+' conftest.er1 >conftest.err
5082  rm -f conftest.er1
5083  cat conftest.err >&5
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); } &&
5086         { ac_try='test -z "$ac_c_werror_flag"
5087                         || test ! -s conftest.err'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; } &&
5093         { ac_try='test -s conftest$ac_exeext'
5094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095  (eval $ac_try) 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; }; then
5099  flink_try=yes
5100else
5101  echo "$as_me: failed program was:" >&5
5102sed 's/^/| /' conftest.$ac_ext >&5
5103
5104flink_try=no
5105fi
5106rm -f conftest.err conftest.$ac_objext \
5107      conftest$ac_exeext conftest.$ac_ext
5108    fi
5109    if test $flink_try = yes; then
5110      if test $coin_need_flibs = yes ; then
5111                         use_blas="$use_blas $FLIBS"
5112                       fi
5113                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5114echo "${ECHO_T}yes: $use_blas" >&6
5115    else
5116      if test x"$FLIBS" != x; then
5117        flink_save_libs="$LIBS"
5118        LIBS="$LIBS $FLIBS"
5119        cat >conftest.$ac_ext <<_ACEOF
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125void $cfuncdaxpy();
5126#ifdef F77_DUMMY_MAIN
5127
5128#  ifdef __cplusplus
5129     extern "C"
5130#  endif
5131   int F77_DUMMY_MAIN() { return 1; }
5132
5133#endif
5134int
5135main ()
5136{
5137$cfuncdaxpy()
5138  ;
5139  return 0;
5140}
5141_ACEOF
5142rm -f conftest.$ac_objext conftest$ac_exeext
5143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144  (eval $ac_link) 2>conftest.er1
5145  ac_status=$?
5146  grep -v '^ *+' conftest.er1 >conftest.err
5147  rm -f conftest.er1
5148  cat conftest.err >&5
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } &&
5151         { ac_try='test -z "$ac_c_werror_flag"
5152                         || test ! -s conftest.err'
5153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154  (eval $ac_try) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; } &&
5158         { ac_try='test -s conftest$ac_exeext'
5159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160  (eval $ac_try) 2>&5
5161  ac_status=$?
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); }; }; then
5164  LIBS="$flink_save_libs"
5165                     coin_need_flibs=yes
5166                     if test $coin_need_flibs = yes ; then
5167                         use_blas="$use_blas $FLIBS"
5168                       fi
5169                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5170echo "${ECHO_T}yes: $use_blas" >&6
5171
5172else
5173  echo "$as_me: failed program was:" >&5
5174sed 's/^/| /' conftest.$ac_ext >&5
5175
5176LIBS="$flink_save_libs"
5177                     echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5180echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5181   { (exit 1); exit 1; }; }
5182fi
5183rm -f conftest.err conftest.$ac_objext \
5184      conftest$ac_exeext conftest.$ac_ext
5185      else
5186        echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5189echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5190   { (exit 1); exit 1; }; }
5191      fi
5192    fi
5193    ;;
5194  cc|cpp)
5195    ac_ext=f
5196ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5197ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5199case $ac_cv_f77_mangling in
5200  upper*) ac_val="DAXPY" ;;
5201  lower*) ac_val="daxpy" ;;
5202  *)      ac_val="unknown" ;;
5203esac
5204case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5205
5206cfuncdaxpy="$ac_val"
5207
5208ac_ext=c
5209ac_cpp='$CPP $CPPFLAGS'
5210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214    if test x"$coin_need_flibs" = xyes; then
5215      flink_try=no;
5216    else
5217      cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h.  */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h.  */
5223extern "C" {void $cfuncdaxpy();}
5224#ifdef F77_DUMMY_MAIN
5225
5226#  ifdef __cplusplus
5227     extern "C"
5228#  endif
5229   int F77_DUMMY_MAIN() { return 1; }
5230
5231#endif
5232int
5233main ()
5234{
5235$cfuncdaxpy()
5236  ;
5237  return 0;
5238}
5239_ACEOF
5240rm -f conftest.$ac_objext conftest$ac_exeext
5241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242  (eval $ac_link) 2>conftest.er1
5243  ac_status=$?
5244  grep -v '^ *+' conftest.er1 >conftest.err
5245  rm -f conftest.er1
5246  cat conftest.err >&5
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); } &&
5249         { ac_try='test -z "$ac_c_werror_flag"
5250                         || test ! -s conftest.err'
5251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252  (eval $ac_try) 2>&5
5253  ac_status=$?
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); }; } &&
5256         { ac_try='test -s conftest$ac_exeext'
5257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258  (eval $ac_try) 2>&5
5259  ac_status=$?
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); }; }; then
5262  flink_try=yes
5263else
5264  echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267flink_try=no
5268fi
5269rm -f conftest.err conftest.$ac_objext \
5270      conftest$ac_exeext conftest.$ac_ext
5271    fi
5272    if test $flink_try = yes; then
5273      if test $coin_need_flibs = yes ; then
5274                         use_blas="$use_blas $FLIBS"
5275                       fi
5276                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5277echo "${ECHO_T}yes: $use_blas" >&6
5278    else
5279      if test x"$FLIBS" != x; then
5280        flink_save_libs="$LIBS"
5281        LIBS="$LIBS $FLIBS"
5282        cat >conftest.$ac_ext <<_ACEOF
5283/* confdefs.h.  */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
5287/* end confdefs.h.  */
5288extern "C" {void $cfuncdaxpy();}
5289#ifdef F77_DUMMY_MAIN
5290
5291#  ifdef __cplusplus
5292     extern "C"
5293#  endif
5294   int F77_DUMMY_MAIN() { return 1; }
5295
5296#endif
5297int
5298main ()
5299{
5300$cfuncdaxpy()
5301  ;
5302  return 0;
5303}
5304_ACEOF
5305rm -f conftest.$ac_objext conftest$ac_exeext
5306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307  (eval $ac_link) 2>conftest.er1
5308  ac_status=$?
5309  grep -v '^ *+' conftest.er1 >conftest.err
5310  rm -f conftest.er1
5311  cat conftest.err >&5
5312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313  (exit $ac_status); } &&
5314         { ac_try='test -z "$ac_c_werror_flag"
5315                         || test ! -s conftest.err'
5316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317  (eval $ac_try) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); }; } &&
5321         { ac_try='test -s conftest$ac_exeext'
5322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323  (eval $ac_try) 2>&5
5324  ac_status=$?
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); }; }; then
5327  LIBS="$flink_save_libs"
5328                     coin_need_flibs=yes
5329                     if test $coin_need_flibs = yes ; then
5330                         use_blas="$use_blas $FLIBS"
5331                       fi
5332                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5333echo "${ECHO_T}yes: $use_blas" >&6
5334
5335else
5336  echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339LIBS="$flink_save_libs"
5340                     echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5343echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5344   { (exit 1); exit 1; }; }
5345fi
5346rm -f conftest.err conftest.$ac_objext \
5347      conftest$ac_exeext conftest.$ac_ext
5348      else
5349        echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
5352echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
5353   { (exit 1); exit 1; }; }
5354      fi
5355    fi
5356    ;;
5357esac
5358
5359    LIBS="$coin_save_LIBS"
5360  fi
5361else
5362# Try to autodetect the library for blas based on build system
5363  #AC_MSG_CHECKING([default locations for BLAS])
5364  case $build in
5365    *-sgi-*)
5366      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
5367echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
5368      coin_need_flibs=no
5369      coin_save_LIBS="$LIBS"
5370      LIBS="-lcomplib.sgimath $LIBS"
5371      case $ac_ext in
5372  f)
5373    cat >conftest.$ac_ext <<_ACEOF
5374/* confdefs.h.  */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h.  */
5379
5380#ifdef F77_DUMMY_MAIN
5381
5382#  ifdef __cplusplus
5383     extern "C"
5384#  endif
5385   int F77_DUMMY_MAIN() { return 1; }
5386
5387#endif
5388int
5389main ()
5390{
5391      call daxpy
5392  ;
5393  return 0;
5394}
5395_ACEOF
5396rm -f conftest.$ac_objext conftest$ac_exeext
5397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398  (eval $ac_link) 2>conftest.er1
5399  ac_status=$?
5400  grep -v '^ *+' conftest.er1 >conftest.err
5401  rm -f conftest.er1
5402  cat conftest.err >&5
5403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404  (exit $ac_status); } &&
5405         { ac_try='test -z "$ac_c_werror_flag"
5406                         || test ! -s conftest.err'
5407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408  (eval $ac_try) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; } &&
5412         { ac_try='test -s conftest$ac_exeext'
5413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414  (eval $ac_try) 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); }; }; then
5418  use_blas="-lcomplib.sgimath"
5419                         if test $coin_need_flibs = yes ; then
5420                           use_blas="$use_blas $FLIBS"
5421                         fi
5422                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5423echo "${ECHO_T}yes: $use_blas" >&6
5424
5425else
5426  echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431fi
5432rm -f conftest.err conftest.$ac_objext \
5433      conftest$ac_exeext conftest.$ac_ext
5434    ;;
5435  c)
5436    ac_ext=f
5437ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5438ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5440case $ac_cv_f77_mangling in
5441  upper*) ac_val="DAXPY" ;;
5442  lower*) ac_val="daxpy" ;;
5443  *)      ac_val="unknown" ;;
5444esac
5445case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5446
5447cfuncdaxpy="$ac_val"
5448
5449ac_ext=c
5450ac_cpp='$CPP $CPPFLAGS'
5451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455    if test x"$coin_need_flibs" = xyes; then
5456      flink_try=no;
5457    else
5458      cat >conftest.$ac_ext <<_ACEOF
5459/* confdefs.h.  */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h.  */
5464void $cfuncdaxpy();
5465#ifdef F77_DUMMY_MAIN
5466
5467#  ifdef __cplusplus
5468     extern "C"
5469#  endif
5470   int F77_DUMMY_MAIN() { return 1; }
5471
5472#endif
5473int
5474main ()
5475{
5476$cfuncdaxpy()
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481rm -f conftest.$ac_objext conftest$ac_exeext
5482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483  (eval $ac_link) 2>conftest.er1
5484  ac_status=$?
5485  grep -v '^ *+' conftest.er1 >conftest.err
5486  rm -f conftest.er1
5487  cat conftest.err >&5
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); } &&
5490         { ac_try='test -z "$ac_c_werror_flag"
5491                         || test ! -s conftest.err'
5492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493  (eval $ac_try) 2>&5
5494  ac_status=$?
5495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496  (exit $ac_status); }; } &&
5497         { ac_try='test -s conftest$ac_exeext'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; }; then
5503  flink_try=yes
5504else
5505  echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508flink_try=no
5509fi
5510rm -f conftest.err conftest.$ac_objext \
5511      conftest$ac_exeext conftest.$ac_ext
5512    fi
5513    if test $flink_try = yes; then
5514      use_blas="-lcomplib.sgimath"
5515                         if test $coin_need_flibs = yes ; then
5516                           use_blas="$use_blas $FLIBS"
5517                         fi
5518                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5519echo "${ECHO_T}yes: $use_blas" >&6
5520
5521    else
5522      if test x"$FLIBS" != x; then
5523        flink_save_libs="$LIBS"
5524        LIBS="$LIBS $FLIBS"
5525        cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531void $cfuncdaxpy();
5532#ifdef F77_DUMMY_MAIN
5533
5534#  ifdef __cplusplus
5535     extern "C"
5536#  endif
5537   int F77_DUMMY_MAIN() { return 1; }
5538
5539#endif
5540int
5541main ()
5542{
5543$cfuncdaxpy()
5544  ;
5545  return 0;
5546}
5547_ACEOF
5548rm -f conftest.$ac_objext conftest$ac_exeext
5549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550  (eval $ac_link) 2>conftest.er1
5551  ac_status=$?
5552  grep -v '^ *+' conftest.er1 >conftest.err
5553  rm -f conftest.er1
5554  cat conftest.err >&5
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); } &&
5557         { ac_try='test -z "$ac_c_werror_flag"
5558                         || test ! -s conftest.err'
5559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560  (eval $ac_try) 2>&5
5561  ac_status=$?
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); }; } &&
5564         { ac_try='test -s conftest$ac_exeext'
5565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566  (eval $ac_try) 2>&5
5567  ac_status=$?
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); }; }; then
5570  LIBS="$flink_save_libs"
5571                     coin_need_flibs=yes
5572                     use_blas="-lcomplib.sgimath"
5573                         if test $coin_need_flibs = yes ; then
5574                           use_blas="$use_blas $FLIBS"
5575                         fi
5576                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5577echo "${ECHO_T}yes: $use_blas" >&6
5578
5579
5580else
5581  echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584LIBS="$flink_save_libs"
5585                     echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6
5587fi
5588rm -f conftest.err conftest.$ac_objext \
5589      conftest$ac_exeext conftest.$ac_ext
5590      else
5591        echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6
5593      fi
5594    fi
5595    ;;
5596  cc|cpp)
5597    ac_ext=f
5598ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5599ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5601case $ac_cv_f77_mangling in
5602  upper*) ac_val="DAXPY" ;;
5603  lower*) ac_val="daxpy" ;;
5604  *)      ac_val="unknown" ;;
5605esac
5606case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5607
5608cfuncdaxpy="$ac_val"
5609
5610ac_ext=c
5611ac_cpp='$CPP $CPPFLAGS'
5612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615
5616    if test x"$coin_need_flibs" = xyes; then
5617      flink_try=no;
5618    else
5619      cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625extern "C" {void $cfuncdaxpy();}
5626#ifdef F77_DUMMY_MAIN
5627
5628#  ifdef __cplusplus
5629     extern "C"
5630#  endif
5631   int F77_DUMMY_MAIN() { return 1; }
5632
5633#endif
5634int
5635main ()
5636{
5637$cfuncdaxpy()
5638  ;
5639  return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext conftest$ac_exeext
5643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644  (eval $ac_link) 2>conftest.er1
5645  ac_status=$?
5646  grep -v '^ *+' conftest.er1 >conftest.err
5647  rm -f conftest.er1
5648  cat conftest.err >&5
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); } &&
5651         { ac_try='test -z "$ac_c_werror_flag"
5652                         || test ! -s conftest.err'
5653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654  (eval $ac_try) 2>&5
5655  ac_status=$?
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); }; } &&
5658         { ac_try='test -s conftest$ac_exeext'
5659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660  (eval $ac_try) 2>&5
5661  ac_status=$?
5662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663  (exit $ac_status); }; }; then
5664  flink_try=yes
5665else
5666  echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669flink_try=no
5670fi
5671rm -f conftest.err conftest.$ac_objext \
5672      conftest$ac_exeext conftest.$ac_ext
5673    fi
5674    if test $flink_try = yes; then
5675      use_blas="-lcomplib.sgimath"
5676                         if test $coin_need_flibs = yes ; then
5677                           use_blas="$use_blas $FLIBS"
5678                         fi
5679                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5680echo "${ECHO_T}yes: $use_blas" >&6
5681
5682    else
5683      if test x"$FLIBS" != x; then
5684        flink_save_libs="$LIBS"
5685        LIBS="$LIBS $FLIBS"
5686        cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h.  */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h.  */
5692extern "C" {void $cfuncdaxpy();}
5693#ifdef F77_DUMMY_MAIN
5694
5695#  ifdef __cplusplus
5696     extern "C"
5697#  endif
5698   int F77_DUMMY_MAIN() { return 1; }
5699
5700#endif
5701int
5702main ()
5703{
5704$cfuncdaxpy()
5705  ;
5706  return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext conftest$ac_exeext
5710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711  (eval $ac_link) 2>conftest.er1
5712  ac_status=$?
5713  grep -v '^ *+' conftest.er1 >conftest.err
5714  rm -f conftest.er1
5715  cat conftest.err >&5
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); } &&
5718         { ac_try='test -z "$ac_c_werror_flag"
5719                         || test ! -s conftest.err'
5720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721  (eval $ac_try) 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); }; } &&
5725         { ac_try='test -s conftest$ac_exeext'
5726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727  (eval $ac_try) 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; }; then
5731  LIBS="$flink_save_libs"
5732                     coin_need_flibs=yes
5733                     use_blas="-lcomplib.sgimath"
5734                         if test $coin_need_flibs = yes ; then
5735                           use_blas="$use_blas $FLIBS"
5736                         fi
5737                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5738echo "${ECHO_T}yes: $use_blas" >&6
5739
5740
5741else
5742  echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745LIBS="$flink_save_libs"
5746                     echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749rm -f conftest.err conftest.$ac_objext \
5750      conftest$ac_exeext conftest.$ac_ext
5751      else
5752        echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754      fi
5755    fi
5756    ;;
5757esac
5758
5759      LIBS="$coin_save_LIBS"
5760      ;;
5761
5762# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
5763# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
5764# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
5765# that CC and cc will understand -library in Studio 13. The main extra
5766# function of -xlic_lib and -library is to arrange for the Fortran run-time
5767# libraries to be linked for C++ and C. We can arrange that explicitly.
5768    *-*-solaris*)
5769      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
5770echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
5771      coin_need_flibs=no
5772      coin_save_LIBS="$LIBS"
5773      LIBS="-lsunperf $FLIBS $LIBS"
5774      case $ac_ext in
5775  f)
5776    cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h.  */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h.  */
5782
5783#ifdef F77_DUMMY_MAIN
5784
5785#  ifdef __cplusplus
5786     extern "C"
5787#  endif
5788   int F77_DUMMY_MAIN() { return 1; }
5789
5790#endif
5791int
5792main ()
5793{
5794      call daxpy
5795  ;
5796  return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext conftest$ac_exeext
5800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801  (eval $ac_link) 2>conftest.er1
5802  ac_status=$?
5803  grep -v '^ *+' conftest.er1 >conftest.err
5804  rm -f conftest.er1
5805  cat conftest.err >&5
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); } &&
5808         { ac_try='test -z "$ac_c_werror_flag"
5809                         || test ! -s conftest.err'
5810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811  (eval $ac_try) 2>&5
5812  ac_status=$?
5813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814  (exit $ac_status); }; } &&
5815         { ac_try='test -s conftest$ac_exeext'
5816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817  (eval $ac_try) 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }; }; then
5821  use_blas='-lsunperf'
5822                         if test $coin_need_flibs = yes ; then
5823                           use_blas="$use_blas $FLIBS"
5824                         fi
5825                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5826echo "${ECHO_T}yes: $use_blas" >&6
5827
5828else
5829  echo "$as_me: failed program was:" >&5
5830sed 's/^/| /' conftest.$ac_ext >&5
5831
5832echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834fi
5835rm -f conftest.err conftest.$ac_objext \
5836      conftest$ac_exeext conftest.$ac_ext
5837    ;;
5838  c)
5839    ac_ext=f
5840ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5841ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5843case $ac_cv_f77_mangling in
5844  upper*) ac_val="DAXPY" ;;
5845  lower*) ac_val="daxpy" ;;
5846  *)      ac_val="unknown" ;;
5847esac
5848case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
5849
5850cfuncdaxpy="$ac_val"
5851
5852ac_ext=c
5853ac_cpp='$CPP $CPPFLAGS'
5854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
5858    if test x"$coin_need_flibs" = xyes; then
5859      flink_try=no;
5860    else
5861      cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h.  */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h.  */
5867void $cfuncdaxpy();
5868#ifdef F77_DUMMY_MAIN
5869
5870#  ifdef __cplusplus
5871     extern "C"
5872#  endif
5873   int F77_DUMMY_MAIN() { return 1; }
5874
5875#endif
5876int
5877main ()
5878{
5879$cfuncdaxpy()
5880  ;
5881  return 0;
5882}
5883_ACEOF
5884rm -f conftest.$ac_objext conftest$ac_exeext
5885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886  (eval $ac_link) 2>conftest.er1
5887  ac_status=$?
5888  grep -v '^ *+' conftest.er1 >conftest.err
5889  rm -f conftest.er1
5890  cat conftest.err >&5
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); } &&
5893         { ac_try='test -z "$ac_c_werror_flag"
5894                         || test ! -s conftest.err'
5895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896  (eval $ac_try) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }; } &&
5900         { ac_try='test -s conftest$ac_exeext'
5901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902  (eval $ac_try) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; }; then
5906  flink_try=yes
5907else
5908  echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911flink_try=no
5912fi
5913rm -f conftest.err conftest.$ac_objext \
5914      conftest$ac_exeext conftest.$ac_ext
5915    fi
5916    if test $flink_try = yes; then
5917      use_blas='-lsunperf'
5918                         if test $coin_need_flibs = yes ; then
5919                           use_blas="$use_blas $FLIBS"
5920                         fi
5921                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5922echo "${ECHO_T}yes: $use_blas" >&6
5923
5924    else
5925      if test x"$FLIBS" != x; then
5926        flink_save_libs="$LIBS"
5927        LIBS="$LIBS $FLIBS"
5928        cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h.  */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h.  */
5934void $cfuncdaxpy();
5935#ifdef F77_DUMMY_MAIN
5936
5937#  ifdef __cplusplus
5938     extern "C"
5939#  endif
5940   int F77_DUMMY_MAIN() { return 1; }
5941
5942#endif
5943int
5944main ()
5945{
5946$cfuncdaxpy()
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951rm -f conftest.$ac_objext conftest$ac_exeext
5952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953  (eval $ac_link) 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } &&
5960         { ac_try='test -z "$ac_c_werror_flag"
5961                         || test ! -s conftest.err'
5962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963  (eval $ac_try) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; } &&
5967         { ac_try='test -s conftest$ac_exeext'
5968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969  (eval $ac_try) 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; }; then
5973  LIBS="$flink_save_libs"
5974                     coin_need_flibs=yes
5975                     use_blas='-lsunperf'
5976                         if test $coin_need_flibs = yes ; then
5977                           use_blas="$use_blas $FLIBS"
5978                         fi
5979                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
5980echo "${ECHO_T}yes: $use_blas" >&6
5981
5982
5983else
5984  echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987LIBS="$flink_save_libs"
5988                     echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990fi
5991rm -f conftest.err conftest.$ac_objext \
5992      conftest$ac_exeext conftest.$ac_ext
5993      else
5994        echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996      fi
5997    fi
5998    ;;
5999  cc|cpp)
6000    ac_ext=f
6001ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6002ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6004case $ac_cv_f77_mangling in
6005  upper*) ac_val="DAXPY" ;;
6006  lower*) ac_val="daxpy" ;;
6007  *)      ac_val="unknown" ;;
6008esac
6009case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6010
6011cfuncdaxpy="$ac_val"
6012
6013ac_ext=c
6014ac_cpp='$CPP $CPPFLAGS'
6015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019    if test x"$coin_need_flibs" = xyes; then
6020      flink_try=no;
6021    else
6022      cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h.  */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h.  */
6028extern "C" {void $cfuncdaxpy();}
6029#ifdef F77_DUMMY_MAIN
6030
6031#  ifdef __cplusplus
6032     extern "C"
6033#  endif
6034   int F77_DUMMY_MAIN() { return 1; }
6035
6036#endif
6037int
6038main ()
6039{
6040$cfuncdaxpy()
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045rm -f conftest.$ac_objext conftest$ac_exeext
6046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6047  (eval $ac_link) 2>conftest.er1
6048  ac_status=$?
6049  grep -v '^ *+' conftest.er1 >conftest.err
6050  rm -f conftest.er1
6051  cat conftest.err >&5
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); } &&
6054         { ac_try='test -z "$ac_c_werror_flag"
6055                         || test ! -s conftest.err'
6056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057  (eval $ac_try) 2>&5
6058  ac_status=$?
6059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060  (exit $ac_status); }; } &&
6061         { ac_try='test -s conftest$ac_exeext'
6062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063  (eval $ac_try) 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; }; then
6067  flink_try=yes
6068else
6069  echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072flink_try=no
6073fi
6074rm -f conftest.err conftest.$ac_objext \
6075      conftest$ac_exeext conftest.$ac_ext
6076    fi
6077    if test $flink_try = yes; then
6078      use_blas='-lsunperf'
6079                         if test $coin_need_flibs = yes ; then
6080                           use_blas="$use_blas $FLIBS"
6081                         fi
6082                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6083echo "${ECHO_T}yes: $use_blas" >&6
6084
6085    else
6086      if test x"$FLIBS" != x; then
6087        flink_save_libs="$LIBS"
6088        LIBS="$LIBS $FLIBS"
6089        cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h.  */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h.  */
6095extern "C" {void $cfuncdaxpy();}
6096#ifdef F77_DUMMY_MAIN
6097
6098#  ifdef __cplusplus
6099     extern "C"
6100#  endif
6101   int F77_DUMMY_MAIN() { return 1; }
6102
6103#endif
6104int
6105main ()
6106{
6107$cfuncdaxpy()
6108  ;
6109  return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext conftest$ac_exeext
6113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114  (eval $ac_link) 2>conftest.er1
6115  ac_status=$?
6116  grep -v '^ *+' conftest.er1 >conftest.err
6117  rm -f conftest.er1
6118  cat conftest.err >&5
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); } &&
6121         { ac_try='test -z "$ac_c_werror_flag"
6122                         || test ! -s conftest.err'
6123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124  (eval $ac_try) 2>&5
6125  ac_status=$?
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); }; } &&
6128         { ac_try='test -s conftest$ac_exeext'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; }; then
6134  LIBS="$flink_save_libs"
6135                     coin_need_flibs=yes
6136                     use_blas='-lsunperf'
6137                         if test $coin_need_flibs = yes ; then
6138                           use_blas="$use_blas $FLIBS"
6139                         fi
6140                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6141echo "${ECHO_T}yes: $use_blas" >&6
6142
6143
6144else
6145  echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148LIBS="$flink_save_libs"
6149                     echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151fi
6152rm -f conftest.err conftest.$ac_objext \
6153      conftest$ac_exeext conftest.$ac_ext
6154      else
6155        echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157      fi
6158    fi
6159    ;;
6160esac
6161
6162      LIBS="$coin_save_LIBS"
6163      ;;
6164
6165    *-cygwin* | *-mingw*)
6166      case "$CC" in
6167        clang* ) ;;
6168        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6169          coin_save_LIBS="$LIBS"
6170          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
6171echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
6172          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
6173          case $ac_ext in
6174  f)
6175    cat >conftest.$ac_ext <<_ACEOF
6176/* confdefs.h.  */
6177_ACEOF
6178cat confdefs.h >>conftest.$ac_ext
6179cat >>conftest.$ac_ext <<_ACEOF
6180/* end confdefs.h.  */
6181
6182#ifdef F77_DUMMY_MAIN
6183
6184#  ifdef __cplusplus
6185     extern "C"
6186#  endif
6187   int F77_DUMMY_MAIN() { return 1; }
6188
6189#endif
6190int
6191main ()
6192{
6193      call daxpy
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198rm -f conftest.$ac_objext conftest$ac_exeext
6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200  (eval $ac_link) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } &&
6207         { ac_try='test -z "$ac_c_werror_flag"
6208                         || test ! -s conftest.err'
6209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210  (eval $ac_try) 2>&5
6211  ac_status=$?
6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); }; } &&
6214         { ac_try='test -s conftest$ac_exeext'
6215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216  (eval $ac_try) 2>&5
6217  ac_status=$?
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); }; }; then
6220  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6221                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6222echo "${ECHO_T}yes: $use_blas" >&6
6223
6224else
6225  echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230fi
6231rm -f conftest.err conftest.$ac_objext \
6232      conftest$ac_exeext conftest.$ac_ext
6233    ;;
6234  c)
6235    ac_ext=f
6236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6239case $ac_cv_f77_mangling in
6240  upper*) ac_val="DAXPY" ;;
6241  lower*) ac_val="daxpy" ;;
6242  *)      ac_val="unknown" ;;
6243esac
6244case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6245
6246cfuncdaxpy="$ac_val"
6247
6248ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254    if test x"$coin_need_flibs" = xyes; then
6255      flink_try=no;
6256    else
6257      cat >conftest.$ac_ext <<_ACEOF
6258/* confdefs.h.  */
6259_ACEOF
6260cat confdefs.h >>conftest.$ac_ext
6261cat >>conftest.$ac_ext <<_ACEOF
6262/* end confdefs.h.  */
6263void $cfuncdaxpy();
6264#ifdef F77_DUMMY_MAIN
6265
6266#  ifdef __cplusplus
6267     extern "C"
6268#  endif
6269   int F77_DUMMY_MAIN() { return 1; }
6270
6271#endif
6272int
6273main ()
6274{
6275$cfuncdaxpy()
6276  ;
6277  return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext conftest$ac_exeext
6281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282  (eval $ac_link) 2>conftest.er1
6283  ac_status=$?
6284  grep -v '^ *+' conftest.er1 >conftest.err
6285  rm -f conftest.er1
6286  cat conftest.err >&5
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); } &&
6289         { ac_try='test -z "$ac_c_werror_flag"
6290                         || test ! -s conftest.err'
6291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292  (eval $ac_try) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); }; } &&
6296         { ac_try='test -s conftest$ac_exeext'
6297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  (eval $ac_try) 2>&5
6299  ac_status=$?
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); }; }; then
6302  flink_try=yes
6303else
6304  echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307flink_try=no
6308fi
6309rm -f conftest.err conftest.$ac_objext \
6310      conftest$ac_exeext conftest.$ac_ext
6311    fi
6312    if test $flink_try = yes; then
6313      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6314                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6315echo "${ECHO_T}yes: $use_blas" >&6
6316
6317    else
6318      if test x"$FLIBS" != x; then
6319        flink_save_libs="$LIBS"
6320        LIBS="$LIBS $FLIBS"
6321        cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h.  */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h.  */
6327void $cfuncdaxpy();
6328#ifdef F77_DUMMY_MAIN
6329
6330#  ifdef __cplusplus
6331     extern "C"
6332#  endif
6333   int F77_DUMMY_MAIN() { return 1; }
6334
6335#endif
6336int
6337main ()
6338{
6339$cfuncdaxpy()
6340  ;
6341  return 0;
6342}
6343_ACEOF
6344rm -f conftest.$ac_objext conftest$ac_exeext
6345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346  (eval $ac_link) 2>conftest.er1
6347  ac_status=$?
6348  grep -v '^ *+' conftest.er1 >conftest.err
6349  rm -f conftest.er1
6350  cat conftest.err >&5
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); } &&
6353         { ac_try='test -z "$ac_c_werror_flag"
6354                         || test ! -s conftest.err'
6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356  (eval $ac_try) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }; } &&
6360         { ac_try='test -s conftest$ac_exeext'
6361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362  (eval $ac_try) 2>&5
6363  ac_status=$?
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); }; }; then
6366  LIBS="$flink_save_libs"
6367                     coin_need_flibs=yes
6368                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6369                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6370echo "${ECHO_T}yes: $use_blas" >&6
6371
6372
6373else
6374  echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377LIBS="$flink_save_libs"
6378                     echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380fi
6381rm -f conftest.err conftest.$ac_objext \
6382      conftest$ac_exeext conftest.$ac_ext
6383      else
6384        echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386      fi
6387    fi
6388    ;;
6389  cc|cpp)
6390    ac_ext=f
6391ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6392ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6394case $ac_cv_f77_mangling in
6395  upper*) ac_val="DAXPY" ;;
6396  lower*) ac_val="daxpy" ;;
6397  *)      ac_val="unknown" ;;
6398esac
6399case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6400
6401cfuncdaxpy="$ac_val"
6402
6403ac_ext=c
6404ac_cpp='$CPP $CPPFLAGS'
6405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408
6409    if test x"$coin_need_flibs" = xyes; then
6410      flink_try=no;
6411    else
6412      cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418extern "C" {void $cfuncdaxpy();}
6419#ifdef F77_DUMMY_MAIN
6420
6421#  ifdef __cplusplus
6422     extern "C"
6423#  endif
6424   int F77_DUMMY_MAIN() { return 1; }
6425
6426#endif
6427int
6428main ()
6429{
6430$cfuncdaxpy()
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437  (eval $ac_link) 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } &&
6444         { ac_try='test -z "$ac_c_werror_flag"
6445                         || test ! -s conftest.err'
6446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447  (eval $ac_try) 2>&5
6448  ac_status=$?
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); }; } &&
6451         { ac_try='test -s conftest$ac_exeext'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; }; then
6457  flink_try=yes
6458else
6459  echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462flink_try=no
6463fi
6464rm -f conftest.err conftest.$ac_objext \
6465      conftest$ac_exeext conftest.$ac_ext
6466    fi
6467    if test $flink_try = yes; then
6468      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6469                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6470echo "${ECHO_T}yes: $use_blas" >&6
6471
6472    else
6473      if test x"$FLIBS" != x; then
6474        flink_save_libs="$LIBS"
6475        LIBS="$LIBS $FLIBS"
6476        cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h.  */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h.  */
6482extern "C" {void $cfuncdaxpy();}
6483#ifdef F77_DUMMY_MAIN
6484
6485#  ifdef __cplusplus
6486     extern "C"
6487#  endif
6488   int F77_DUMMY_MAIN() { return 1; }
6489
6490#endif
6491int
6492main ()
6493{
6494$cfuncdaxpy()
6495  ;
6496  return 0;
6497}
6498_ACEOF
6499rm -f conftest.$ac_objext conftest$ac_exeext
6500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501  (eval $ac_link) 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } &&
6508         { ac_try='test -z "$ac_c_werror_flag"
6509                         || test ! -s conftest.err'
6510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511  (eval $ac_try) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; } &&
6515         { ac_try='test -s conftest$ac_exeext'
6516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517  (eval $ac_try) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); }; }; then
6521  LIBS="$flink_save_libs"
6522                     coin_need_flibs=yes
6523                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
6524                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6525echo "${ECHO_T}yes: $use_blas" >&6
6526
6527
6528else
6529  echo "$as_me: failed program was:" >&5
6530sed 's/^/| /' conftest.$ac_ext >&5
6531
6532LIBS="$flink_save_libs"
6533                     echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535fi
6536rm -f conftest.err conftest.$ac_objext \
6537      conftest$ac_exeext conftest.$ac_ext
6538      else
6539        echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541      fi
6542    fi
6543    ;;
6544esac
6545
6546          LIBS="$coin_save_LIBS"
6547
6548          if test "x$use_blas" = x ; then
6549            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
6550echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
6551            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
6552            case $ac_ext in
6553  f)
6554    cat >conftest.$ac_ext <<_ACEOF
6555/* confdefs.h.  */
6556_ACEOF
6557cat confdefs.h >>conftest.$ac_ext
6558cat >>conftest.$ac_ext <<_ACEOF
6559/* end confdefs.h.  */
6560
6561#ifdef F77_DUMMY_MAIN
6562
6563#  ifdef __cplusplus
6564     extern "C"
6565#  endif
6566   int F77_DUMMY_MAIN() { return 1; }
6567
6568#endif
6569int
6570main ()
6571{
6572      call daxpy
6573  ;
6574  return 0;
6575}
6576_ACEOF
6577rm -f conftest.$ac_objext conftest$ac_exeext
6578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579  (eval $ac_link) 2>conftest.er1
6580  ac_status=$?
6581  grep -v '^ *+' conftest.er1 >conftest.err
6582  rm -f conftest.er1
6583  cat conftest.err >&5
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } &&
6586         { ac_try='test -z "$ac_c_werror_flag"
6587                         || test ! -s conftest.err'
6588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589  (eval $ac_try) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }; } &&
6593         { ac_try='test -s conftest$ac_exeext'
6594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595  (eval $ac_try) 2>&5
6596  ac_status=$?
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); }; }; then
6599  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6600                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6601echo "${ECHO_T}yes: $use_blas" >&6
6602
6603else
6604  echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609fi
6610rm -f conftest.err conftest.$ac_objext \
6611      conftest$ac_exeext conftest.$ac_ext
6612    ;;
6613  c)
6614    ac_ext=f
6615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6618case $ac_cv_f77_mangling in
6619  upper*) ac_val="DAXPY" ;;
6620  lower*) ac_val="daxpy" ;;
6621  *)      ac_val="unknown" ;;
6622esac
6623case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6624
6625cfuncdaxpy="$ac_val"
6626
6627ac_ext=c
6628ac_cpp='$CPP $CPPFLAGS'
6629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6631ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632
6633    if test x"$coin_need_flibs" = xyes; then
6634      flink_try=no;
6635    else
6636      cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h.  */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h.  */
6642void $cfuncdaxpy();
6643#ifdef F77_DUMMY_MAIN
6644
6645#  ifdef __cplusplus
6646     extern "C"
6647#  endif
6648   int F77_DUMMY_MAIN() { return 1; }
6649
6650#endif
6651int
6652main ()
6653{
6654$cfuncdaxpy()
6655  ;
6656  return 0;
6657}
6658_ACEOF
6659rm -f conftest.$ac_objext conftest$ac_exeext
6660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6661  (eval $ac_link) 2>conftest.er1
6662  ac_status=$?
6663  grep -v '^ *+' conftest.er1 >conftest.err
6664  rm -f conftest.er1
6665  cat conftest.err >&5
6666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667  (exit $ac_status); } &&
6668         { ac_try='test -z "$ac_c_werror_flag"
6669                         || test ! -s conftest.err'
6670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671  (eval $ac_try) 2>&5
6672  ac_status=$?
6673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674  (exit $ac_status); }; } &&
6675         { ac_try='test -s conftest$ac_exeext'
6676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677  (eval $ac_try) 2>&5
6678  ac_status=$?
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); }; }; then
6681  flink_try=yes
6682else
6683  echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686flink_try=no
6687fi
6688rm -f conftest.err conftest.$ac_objext \
6689      conftest$ac_exeext conftest.$ac_ext
6690    fi
6691    if test $flink_try = yes; then
6692      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6693                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6694echo "${ECHO_T}yes: $use_blas" >&6
6695
6696    else
6697      if test x"$FLIBS" != x; then
6698        flink_save_libs="$LIBS"
6699        LIBS="$LIBS $FLIBS"
6700        cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h.  */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h.  */
6706void $cfuncdaxpy();
6707#ifdef F77_DUMMY_MAIN
6708
6709#  ifdef __cplusplus
6710     extern "C"
6711#  endif
6712   int F77_DUMMY_MAIN() { return 1; }
6713
6714#endif
6715int
6716main ()
6717{
6718$cfuncdaxpy()
6719  ;
6720  return 0;
6721}
6722_ACEOF
6723rm -f conftest.$ac_objext conftest$ac_exeext
6724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725  (eval $ac_link) 2>conftest.er1
6726  ac_status=$?
6727  grep -v '^ *+' conftest.er1 >conftest.err
6728  rm -f conftest.er1
6729  cat conftest.err >&5
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); } &&
6732         { ac_try='test -z "$ac_c_werror_flag"
6733                         || test ! -s conftest.err'
6734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735  (eval $ac_try) 2>&5
6736  ac_status=$?
6737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738  (exit $ac_status); }; } &&
6739         { ac_try='test -s conftest$ac_exeext'
6740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741  (eval $ac_try) 2>&5
6742  ac_status=$?
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); }; }; then
6745  LIBS="$flink_save_libs"
6746                     coin_need_flibs=yes
6747                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6748                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6749echo "${ECHO_T}yes: $use_blas" >&6
6750
6751
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756LIBS="$flink_save_libs"
6757                     echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759fi
6760rm -f conftest.err conftest.$ac_objext \
6761      conftest$ac_exeext conftest.$ac_ext
6762      else
6763        echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765      fi
6766    fi
6767    ;;
6768  cc|cpp)
6769    ac_ext=f
6770ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6771ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6773case $ac_cv_f77_mangling in
6774  upper*) ac_val="DAXPY" ;;
6775  lower*) ac_val="daxpy" ;;
6776  *)      ac_val="unknown" ;;
6777esac
6778case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
6779
6780cfuncdaxpy="$ac_val"
6781
6782ac_ext=c
6783ac_cpp='$CPP $CPPFLAGS'
6784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787
6788    if test x"$coin_need_flibs" = xyes; then
6789      flink_try=no;
6790    else
6791      cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h.  */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h.  */
6797extern "C" {void $cfuncdaxpy();}
6798#ifdef F77_DUMMY_MAIN
6799
6800#  ifdef __cplusplus
6801     extern "C"
6802#  endif
6803   int F77_DUMMY_MAIN() { return 1; }
6804
6805#endif
6806int
6807main ()
6808{
6809$cfuncdaxpy()
6810  ;
6811  return 0;
6812}
6813_ACEOF
6814rm -f conftest.$ac_objext conftest$ac_exeext
6815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6816  (eval $ac_link) 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } &&
6823         { ac_try='test -z "$ac_c_werror_flag"
6824                         || test ! -s conftest.err'
6825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826  (eval $ac_try) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; } &&
6830         { ac_try='test -s conftest$ac_exeext'
6831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832  (eval $ac_try) 2>&5
6833  ac_status=$?
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); }; }; then
6836  flink_try=yes
6837else
6838  echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841flink_try=no
6842fi
6843rm -f conftest.err conftest.$ac_objext \
6844      conftest$ac_exeext conftest.$ac_ext
6845    fi
6846    if test $flink_try = yes; then
6847      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6848                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6849echo "${ECHO_T}yes: $use_blas" >&6
6850
6851    else
6852      if test x"$FLIBS" != x; then
6853        flink_save_libs="$LIBS"
6854        LIBS="$LIBS $FLIBS"
6855        cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h.  */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h.  */
6861extern "C" {void $cfuncdaxpy();}
6862#ifdef F77_DUMMY_MAIN
6863
6864#  ifdef __cplusplus
6865     extern "C"
6866#  endif
6867   int F77_DUMMY_MAIN() { return 1; }
6868
6869#endif
6870int
6871main ()
6872{
6873$cfuncdaxpy()
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878rm -f conftest.$ac_objext conftest$ac_exeext
6879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880  (eval $ac_link) 2>conftest.er1
6881  ac_status=$?
6882  grep -v '^ *+' conftest.er1 >conftest.err
6883  rm -f conftest.er1
6884  cat conftest.err >&5
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); } &&
6887         { ac_try='test -z "$ac_c_werror_flag"
6888                         || test ! -s conftest.err'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; } &&
6894         { ac_try='test -s conftest$ac_exeext'
6895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896  (eval $ac_try) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); }; }; then
6900  LIBS="$flink_save_libs"
6901                     coin_need_flibs=yes
6902                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
6903                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6904echo "${ECHO_T}yes: $use_blas" >&6
6905
6906
6907else
6908  echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911LIBS="$flink_save_libs"
6912                     echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914fi
6915rm -f conftest.err conftest.$ac_objext \
6916      conftest$ac_exeext conftest.$ac_ext
6917      else
6918        echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
6920      fi
6921    fi
6922    ;;
6923esac
6924
6925            LIBS="$coin_save_LIBS"
6926          fi
6927          ;;
6928      esac
6929      ;;
6930
6931     *-darwin*)
6932      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
6933echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
6934      coin_need_flibs=no
6935      coin_save_LIBS="$LIBS"
6936      LIBS="-framework Accelerate $LIBS"
6937      case $ac_ext in
6938  f)
6939    cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946#ifdef F77_DUMMY_MAIN
6947
6948#  ifdef __cplusplus
6949     extern "C"
6950#  endif
6951   int F77_DUMMY_MAIN() { return 1; }
6952
6953#endif
6954int
6955main ()
6956{
6957      call daxpy
6958  ;
6959  return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964  (eval $ac_link) 2>conftest.er1
6965  ac_status=$?
6966  grep -v '^ *+' conftest.er1 >conftest.err
6967  rm -f conftest.er1
6968  cat conftest.err >&5
6969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970  (exit $ac_status); } &&
6971         { ac_try='test -z "$ac_c_werror_flag"
6972                         || test ! -s conftest.err'
6973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974  (eval $ac_try) 2>&5
6975  ac_status=$?
6976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977  (exit $ac_status); }; } &&
6978         { ac_try='test -s conftest$ac_exeext'
6979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980  (eval $ac_try) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; }; then
6984  use_blas='-framework Accelerate'
6985                         if test $coin_need_flibs = yes ; then
6986                           use_blas="$use_blas $FLIBS"
6987                         fi
6988                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
6989echo "${ECHO_T}yes: $use_blas" >&6
6990
6991else
6992  echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997fi
6998rm -f conftest.err conftest.$ac_objext \
6999      conftest$ac_exeext conftest.$ac_ext
7000    ;;
7001  c)
7002    ac_ext=f
7003ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7004ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7006case $ac_cv_f77_mangling in
7007  upper*) ac_val="DAXPY" ;;
7008  lower*) ac_val="daxpy" ;;
7009  *)      ac_val="unknown" ;;
7010esac
7011case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7012
7013cfuncdaxpy="$ac_val"
7014
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021    if test x"$coin_need_flibs" = xyes; then
7022      flink_try=no;
7023    else
7024      cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030void $cfuncdaxpy();
7031#ifdef F77_DUMMY_MAIN
7032
7033#  ifdef __cplusplus
7034     extern "C"
7035#  endif
7036   int F77_DUMMY_MAIN() { return 1; }
7037
7038#endif
7039int
7040main ()
7041{
7042$cfuncdaxpy()
7043  ;
7044  return 0;
7045}
7046_ACEOF
7047rm -f conftest.$ac_objext conftest$ac_exeext
7048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049  (eval $ac_link) 2>conftest.er1
7050  ac_status=$?
7051  grep -v '^ *+' conftest.er1 >conftest.err
7052  rm -f conftest.er1
7053  cat conftest.err >&5
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); } &&
7056         { ac_try='test -z "$ac_c_werror_flag"
7057                         || test ! -s conftest.err'
7058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059  (eval $ac_try) 2>&5
7060  ac_status=$?
7061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062  (exit $ac_status); }; } &&
7063         { ac_try='test -s conftest$ac_exeext'
7064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065  (eval $ac_try) 2>&5
7066  ac_status=$?
7067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068  (exit $ac_status); }; }; then
7069  flink_try=yes
7070else
7071  echo "$as_me: failed program was:" >&5
7072sed 's/^/| /' conftest.$ac_ext >&5
7073
7074flink_try=no
7075fi
7076rm -f conftest.err conftest.$ac_objext \
7077      conftest$ac_exeext conftest.$ac_ext
7078    fi
7079    if test $flink_try = yes; then
7080      use_blas='-framework Accelerate'
7081                         if test $coin_need_flibs = yes ; then
7082                           use_blas="$use_blas $FLIBS"
7083                         fi
7084                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7085echo "${ECHO_T}yes: $use_blas" >&6
7086
7087    else
7088      if test x"$FLIBS" != x; then
7089        flink_save_libs="$LIBS"
7090        LIBS="$LIBS $FLIBS"
7091        cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h.  */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h.  */
7097void $cfuncdaxpy();
7098#ifdef F77_DUMMY_MAIN
7099
7100#  ifdef __cplusplus
7101     extern "C"
7102#  endif
7103   int F77_DUMMY_MAIN() { return 1; }
7104
7105#endif
7106int
7107main ()
7108{
7109$cfuncdaxpy()
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116  (eval $ac_link) 2>conftest.er1
7117  ac_status=$?
7118  grep -v '^ *+' conftest.er1 >conftest.err
7119  rm -f conftest.er1
7120  cat conftest.err >&5
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); } &&
7123         { ac_try='test -z "$ac_c_werror_flag"
7124                         || test ! -s conftest.err'
7125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126  (eval $ac_try) 2>&5
7127  ac_status=$?
7128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129  (exit $ac_status); }; } &&
7130         { ac_try='test -s conftest$ac_exeext'
7131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132  (eval $ac_try) 2>&5
7133  ac_status=$?
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); }; }; then
7136  LIBS="$flink_save_libs"
7137                     coin_need_flibs=yes
7138                     use_blas='-framework Accelerate'
7139                         if test $coin_need_flibs = yes ; then
7140                           use_blas="$use_blas $FLIBS"
7141                         fi
7142                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7143echo "${ECHO_T}yes: $use_blas" >&6
7144
7145
7146else
7147  echo "$as_me: failed program was:" >&5
7148sed 's/^/| /' conftest.$ac_ext >&5
7149
7150LIBS="$flink_save_libs"
7151                     echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
7153fi
7154rm -f conftest.err conftest.$ac_objext \
7155      conftest$ac_exeext conftest.$ac_ext
7156      else
7157        echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6
7159      fi
7160    fi
7161    ;;
7162  cc|cpp)
7163    ac_ext=f
7164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7167case $ac_cv_f77_mangling in
7168  upper*) ac_val="DAXPY" ;;
7169  lower*) ac_val="daxpy" ;;
7170  *)      ac_val="unknown" ;;
7171esac
7172case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7173
7174cfuncdaxpy="$ac_val"
7175
7176ac_ext=c
7177ac_cpp='$CPP $CPPFLAGS'
7178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181
7182    if test x"$coin_need_flibs" = xyes; then
7183      flink_try=no;
7184    else
7185      cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h.  */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h.  */
7191extern "C" {void $cfuncdaxpy();}
7192#ifdef F77_DUMMY_MAIN
7193
7194#  ifdef __cplusplus
7195     extern "C"
7196#  endif
7197   int F77_DUMMY_MAIN() { return 1; }
7198
7199#endif
7200int
7201main ()
7202{
7203$cfuncdaxpy()
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208rm -f conftest.$ac_objext conftest$ac_exeext
7209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7210  (eval $ac_link) 2>conftest.er1
7211  ac_status=$?
7212  grep -v '^ *+' conftest.er1 >conftest.err
7213  rm -f conftest.er1
7214  cat conftest.err >&5
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); } &&
7217         { ac_try='test -z "$ac_c_werror_flag"
7218                         || test ! -s conftest.err'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; } &&
7224         { ac_try='test -s conftest$ac_exeext'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; }; then
7230  flink_try=yes
7231else
7232  echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235flink_try=no
7236fi
7237rm -f conftest.err conftest.$ac_objext \
7238      conftest$ac_exeext conftest.$ac_ext
7239    fi
7240    if test $flink_try = yes; then
7241      use_blas='-framework Accelerate'
7242                         if test $coin_need_flibs = yes ; then
7243                           use_blas="$use_blas $FLIBS"
7244                         fi
7245                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7246echo "${ECHO_T}yes: $use_blas" >&6
7247
7248    else
7249      if test x"$FLIBS" != x; then
7250        flink_save_libs="$LIBS"
7251        LIBS="$LIBS $FLIBS"
7252        cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h.  */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h.  */
7258extern "C" {void $cfuncdaxpy();}
7259#ifdef F77_DUMMY_MAIN
7260
7261#  ifdef __cplusplus
7262     extern "C"
7263#  endif
7264   int F77_DUMMY_MAIN() { return 1; }
7265
7266#endif
7267int
7268main ()
7269{
7270$cfuncdaxpy()
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext conftest$ac_exeext
7276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277  (eval $ac_link) 2>conftest.er1
7278  ac_status=$?
7279  grep -v '^ *+' conftest.er1 >conftest.err
7280  rm -f conftest.er1
7281  cat conftest.err >&5
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } &&
7284         { ac_try='test -z "$ac_c_werror_flag"
7285                         || test ! -s conftest.err'
7286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287  (eval $ac_try) 2>&5
7288  ac_status=$?
7289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290  (exit $ac_status); }; } &&
7291         { ac_try='test -s conftest$ac_exeext'
7292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293  (eval $ac_try) 2>&5
7294  ac_status=$?
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); }; }; then
7297  LIBS="$flink_save_libs"
7298                     coin_need_flibs=yes
7299                     use_blas='-framework Accelerate'
7300                         if test $coin_need_flibs = yes ; then
7301                           use_blas="$use_blas $FLIBS"
7302                         fi
7303                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7304echo "${ECHO_T}yes: $use_blas" >&6
7305
7306
7307else
7308  echo "$as_me: failed program was:" >&5
7309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311LIBS="$flink_save_libs"
7312                     echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314fi
7315rm -f conftest.err conftest.$ac_objext \
7316      conftest$ac_exeext conftest.$ac_ext
7317      else
7318        echo "$as_me:$LINENO: result: no" >&5
7319echo "${ECHO_T}no" >&6
7320      fi
7321    fi
7322    ;;
7323esac
7324
7325      LIBS="$coin_save_LIBS"
7326      ;;
7327  esac
7328
7329  if test -z "$use_blas" ; then
7330    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
7331echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
7332    coin_need_flibs=no
7333    coin_save_LIBS="$LIBS"
7334    LIBS="-lblas $LIBS"
7335    case $ac_ext in
7336  f)
7337    cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343
7344#ifdef F77_DUMMY_MAIN
7345
7346#  ifdef __cplusplus
7347     extern "C"
7348#  endif
7349   int F77_DUMMY_MAIN() { return 1; }
7350
7351#endif
7352int
7353main ()
7354{
7355      call daxpy
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext conftest$ac_exeext
7361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362  (eval $ac_link) 2>conftest.er1
7363  ac_status=$?
7364  grep -v '^ *+' conftest.er1 >conftest.err
7365  rm -f conftest.er1
7366  cat conftest.err >&5
7367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368  (exit $ac_status); } &&
7369         { ac_try='test -z "$ac_c_werror_flag"
7370                         || test ! -s conftest.err'
7371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372  (eval $ac_try) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; } &&
7376         { ac_try='test -s conftest$ac_exeext'
7377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378  (eval $ac_try) 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); }; }; then
7382  use_blas='-lblas'
7383                       if test $coin_need_flibs = yes ; then
7384                         use_blas="$use_blas $FLIBS"
7385                       fi
7386                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7387echo "${ECHO_T}yes: $use_blas" >&6
7388
7389else
7390  echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6
7395fi
7396rm -f conftest.err conftest.$ac_objext \
7397      conftest$ac_exeext conftest.$ac_ext
7398    ;;
7399  c)
7400    ac_ext=f
7401ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7402ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7404case $ac_cv_f77_mangling in
7405  upper*) ac_val="DAXPY" ;;
7406  lower*) ac_val="daxpy" ;;
7407  *)      ac_val="unknown" ;;
7408esac
7409case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7410
7411cfuncdaxpy="$ac_val"
7412
7413ac_ext=c
7414ac_cpp='$CPP $CPPFLAGS'
7415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418
7419    if test x"$coin_need_flibs" = xyes; then
7420      flink_try=no;
7421    else
7422      cat >conftest.$ac_ext <<_ACEOF
7423/* confdefs.h.  */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h.  */
7428void $cfuncdaxpy();
7429#ifdef F77_DUMMY_MAIN
7430
7431#  ifdef __cplusplus
7432     extern "C"
7433#  endif
7434   int F77_DUMMY_MAIN() { return 1; }
7435
7436#endif
7437int
7438main ()
7439{
7440$cfuncdaxpy()
7441  ;
7442  return 0;
7443}
7444_ACEOF
7445rm -f conftest.$ac_objext conftest$ac_exeext
7446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447  (eval $ac_link) 2>conftest.er1
7448  ac_status=$?
7449  grep -v '^ *+' conftest.er1 >conftest.err
7450  rm -f conftest.er1
7451  cat conftest.err >&5
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); } &&
7454         { ac_try='test -z "$ac_c_werror_flag"
7455                         || test ! -s conftest.err'
7456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457  (eval $ac_try) 2>&5
7458  ac_status=$?
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); }; } &&
7461         { ac_try='test -s conftest$ac_exeext'
7462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463  (eval $ac_try) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; }; then
7467  flink_try=yes
7468else
7469  echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472flink_try=no
7473fi
7474rm -f conftest.err conftest.$ac_objext \
7475      conftest$ac_exeext conftest.$ac_ext
7476    fi
7477    if test $flink_try = yes; then
7478      use_blas='-lblas'
7479                       if test $coin_need_flibs = yes ; then
7480                         use_blas="$use_blas $FLIBS"
7481                       fi
7482                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7483echo "${ECHO_T}yes: $use_blas" >&6
7484
7485    else
7486      if test x"$FLIBS" != x; then
7487        flink_save_libs="$LIBS"
7488        LIBS="$LIBS $FLIBS"
7489        cat >conftest.$ac_ext <<_ACEOF
7490/* confdefs.h.  */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h.  */
7495void $cfuncdaxpy();
7496#ifdef F77_DUMMY_MAIN
7497
7498#  ifdef __cplusplus
7499     extern "C"
7500#  endif
7501   int F77_DUMMY_MAIN() { return 1; }
7502
7503#endif
7504int
7505main ()
7506{
7507$cfuncdaxpy()
7508  ;
7509  return 0;
7510}
7511_ACEOF
7512rm -f conftest.$ac_objext conftest$ac_exeext
7513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7514  (eval $ac_link) 2>conftest.er1
7515  ac_status=$?
7516  grep -v '^ *+' conftest.er1 >conftest.err
7517  rm -f conftest.er1
7518  cat conftest.err >&5
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); } &&
7521         { ac_try='test -z "$ac_c_werror_flag"
7522                         || test ! -s conftest.err'
7523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524  (eval $ac_try) 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); }; } &&
7528         { ac_try='test -s conftest$ac_exeext'
7529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530  (eval $ac_try) 2>&5
7531  ac_status=$?
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); }; }; then
7534  LIBS="$flink_save_libs"
7535                     coin_need_flibs=yes
7536                     use_blas='-lblas'
7537                       if test $coin_need_flibs = yes ; then
7538                         use_blas="$use_blas $FLIBS"
7539                       fi
7540                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7541echo "${ECHO_T}yes: $use_blas" >&6
7542
7543
7544else
7545  echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548LIBS="$flink_save_libs"
7549                     echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6
7551fi
7552rm -f conftest.err conftest.$ac_objext \
7553      conftest$ac_exeext conftest.$ac_ext
7554      else
7555        echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557      fi
7558    fi
7559    ;;
7560  cc|cpp)
7561    ac_ext=f
7562ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7563ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7564ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7565case $ac_cv_f77_mangling in
7566  upper*) ac_val="DAXPY" ;;
7567  lower*) ac_val="daxpy" ;;
7568  *)      ac_val="unknown" ;;
7569esac
7570case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
7571
7572cfuncdaxpy="$ac_val"
7573
7574ac_ext=c
7575ac_cpp='$CPP $CPPFLAGS'
7576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579
7580    if test x"$coin_need_flibs" = xyes; then
7581      flink_try=no;
7582    else
7583      cat >conftest.$ac_ext <<_ACEOF
7584/* confdefs.h.  */
7585_ACEOF
7586cat confdefs.h >>conftest.$ac_ext
7587cat >>conftest.$ac_ext <<_ACEOF
7588/* end confdefs.h.  */
7589extern "C" {void $cfuncdaxpy();}
7590#ifdef F77_DUMMY_MAIN
7591
7592#  ifdef __cplusplus
7593     extern "C"
7594#  endif
7595   int F77_DUMMY_MAIN() { return 1; }
7596
7597#endif
7598int
7599main ()
7600{
7601$cfuncdaxpy()
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606rm -f conftest.$ac_objext conftest$ac_exeext
7607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608  (eval $ac_link) 2>conftest.er1
7609  ac_status=$?
7610  grep -v '^ *+' conftest.er1 >conftest.err
7611  rm -f conftest.er1
7612  cat conftest.err >&5
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); } &&
7615         { ac_try='test -z "$ac_c_werror_flag"
7616                         || test ! -s conftest.err'
7617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618  (eval $ac_try) 2>&5
7619  ac_status=$?
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); }; } &&
7622         { ac_try='test -s conftest$ac_exeext'
7623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624  (eval $ac_try) 2>&5
7625  ac_status=$?
7626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627  (exit $ac_status); }; }; then
7628  flink_try=yes
7629else
7630  echo "$as_me: failed program was:" >&5
7631sed 's/^/| /' conftest.$ac_ext >&5
7632
7633flink_try=no
7634fi
7635rm -f conftest.err conftest.$ac_objext \
7636      conftest$ac_exeext conftest.$ac_ext
7637    fi
7638    if test $flink_try = yes; then
7639      use_blas='-lblas'
7640                       if test $coin_need_flibs = yes ; then
7641                         use_blas="$use_blas $FLIBS"
7642                       fi
7643                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7644echo "${ECHO_T}yes: $use_blas" >&6
7645
7646    else
7647      if test x"$FLIBS" != x; then
7648        flink_save_libs="$LIBS"
7649        LIBS="$LIBS $FLIBS"
7650        cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h.  */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h.  */
7656extern "C" {void $cfuncdaxpy();}
7657#ifdef F77_DUMMY_MAIN
7658
7659#  ifdef __cplusplus
7660     extern "C"
7661#  endif
7662   int F77_DUMMY_MAIN() { return 1; }
7663
7664#endif
7665int
7666main ()
7667{
7668$cfuncdaxpy()
7669  ;
7670  return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext conftest$ac_exeext
7674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675  (eval $ac_link) 2>conftest.er1
7676  ac_status=$?
7677  grep -v '^ *+' conftest.er1 >conftest.err
7678  rm -f conftest.er1
7679  cat conftest.err >&5
7680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681  (exit $ac_status); } &&
7682         { ac_try='test -z "$ac_c_werror_flag"
7683                         || test ! -s conftest.err'
7684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685  (eval $ac_try) 2>&5
7686  ac_status=$?
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); }; } &&
7689         { ac_try='test -s conftest$ac_exeext'
7690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  (eval $ac_try) 2>&5
7692  ac_status=$?
7693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694  (exit $ac_status); }; }; then
7695  LIBS="$flink_save_libs"
7696                     coin_need_flibs=yes
7697                     use_blas='-lblas'
7698                       if test $coin_need_flibs = yes ; then
7699                         use_blas="$use_blas $FLIBS"
7700                       fi
7701                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
7702echo "${ECHO_T}yes: $use_blas" >&6
7703
7704
7705else
7706  echo "$as_me: failed program was:" >&5
7707sed 's/^/| /' conftest.$ac_ext >&5
7708
7709LIBS="$flink_save_libs"
7710                     echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712fi
7713rm -f conftest.err conftest.$ac_objext \
7714      conftest$ac_exeext conftest.$ac_ext
7715      else
7716        echo "$as_me:$LINENO: result: no" >&5
7717echo "${ECHO_T}no" >&6
7718      fi
7719    fi
7720    ;;
7721esac
7722
7723    LIBS="$coin_save_LIBS"
7724  fi
7725
7726  # If we have no other ideas, consider building BLAS.
7727  if test -z "$use_blas" ; then
7728    use_blas=BUILD
7729  fi
7730fi
7731
7732if test "x$use_blas" = xBUILD ; then
7733
7734echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
7735echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
7736
7737coin_has_blas=notGiven
7738
7739# check if user wants to skip package in any case
7740if test x"$COIN_SKIP_PROJECTS" != x; then
7741  for dir in $COIN_SKIP_PROJECTS; do
7742    if test $dir = "Blas"; then
7743      coin_has_blas=skipping
7744    fi
7745  done
7746fi
7747
7748if test "$coin_has_blas" != skipping; then
7749
7750# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
7751if test "${with_blas+set}" = set; then
7752  withval="$with_blas"
7753  if test "$withval" = no ; then
7754       coin_has_blas=skipping
7755     fi
7756
7757fi;
7758fi
7759
7760BLAS_LIBS=
7761BLAS_CFLAGS=
7762BLAS_DATA=
7763BLAS_DEPENDENCIES=
7764BLAS_PCLIBS=
7765BLAS_PCREQUIRES=
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
7784if test $coin_has_blas != skipping; then
7785
7786# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
7787if test "${with_blas_lib+set}" = set; then
7788  withval="$with_blas_lib"
7789  if test "$withval" = no ; then
7790       coin_has_blas=skipping
7791     else
7792       coin_has_blas=yes
7793       BLAS_LIBS="$withval"
7794       BLAS_PCLIBS="$withval"
7795
7796         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
7797         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
7798
7799       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7800       if test -z "$PKG_CONFIG" ; then
7801         BLAS_LIBS_INSTALLED="$withval"
7802         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
7803       fi
7804     fi
7805
7806fi;
7807fi
7808
7809if test $coin_has_blas != skipping; then
7810
7811# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
7812if test "${with_blas_incdir+set}" = set; then
7813  withval="$with_blas_incdir"
7814  if test "$withval" = no ; then
7815       coin_has_blas=skipping
7816     else
7817       coin_has_blas=yes
7818       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
7819       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
7820       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7821       if test -z "$PKG_CONFIG" ; then
7822         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
7823         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
7824       fi
7825     fi
7826
7827fi;
7828fi
7829
7830if test $coin_has_blas != skipping; then
7831
7832# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
7833if test "${with_blas_datadir+set}" = set; then
7834  withval="$with_blas_datadir"
7835  if test "$withval" = no ; then
7836       coin_has_blas=skipping
7837     else
7838       coin_has_blas=yes
7839       BLAS_DATA="$withval"
7840       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
7841       if test -z "$PKG_CONFIG" ; then
7842         BLAS_DATA_INSTALLED="$withval"
7843       fi
7844     fi
7845
7846fi;
7847fi
7848
7849if test $coin_has_blas = notGiven; then
7850  if test -n "$PKG_CONFIG" ; then
7851    # set search path for pkg-config
7852    # need to export variable to be sure that the following pkg-config gets these values
7853    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
7854    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
7855    export PKG_CONFIG_PATH
7856
7857    # let pkg-config do it's magic
7858
7859
7860
7861if test -n "$PKG_CONFIG" ; then
7862  if $PKG_CONFIG --exists "coinblas"; then
7863    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
7864     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
7865    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
7866        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
7867        # but only do this if is not trivial
7868    if test "$CYGPATH_W" != "echo" ; then
7869      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
7870      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
7871    fi
7872    BLAS_CFLAGS="$cflags"
7873    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
7874    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
7875     coin_has_blas=yes
7876        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
7877echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
7878
7879        # adjust linker flags for (i)cl compiler
7880        # 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)
7881        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
7882        then
7883          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
7884        fi
7885        BLAS_PCREQUIRES="coinblas"
7886
7887        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
7888
7889          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
7890          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
7891          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
7892
7893
7894
7895  else
7896    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
7897      coin_has_blas=notGiven
7898        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
7899echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
7900
7901  fi
7902else
7903  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
7904echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
7905   { (exit 1); exit 1; }; }
7906fi
7907
7908
7909
7910
7911    # reset PKG_CONFIG_PATH variable
7912    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
7913    export PKG_CONFIG_PATH
7914
7915  else
7916    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
7917echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
7918
7919echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
7920echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
7921
7922coin_has_blas=notGiven
7923BLAS_LIBS=
7924BLAS_LIBS_INSTALLED=
7925BLAS_CFLAGS=
7926BLAS_CFLAGS_INSTALLED=
7927BLAS_DATA=
7928BLAS_DATA_INSTALLED=
7929BLAS_PCLIBS=
7930BLAS_PCREQUIRES=
7931
7932# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
7933projtoprocess="coinblas"
7934
7935# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
7936# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
7937# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
7938# also, we setup the DATA variable
7939allproj=""
7940allpcfiles=""
7941allpcifiles=""
7942while test "x$projtoprocess" != x ; do
7943
7944  for proj in $projtoprocess ; do
7945    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
7946    pcfile=""
7947    save_IFS="$IFS"
7948    IFS=":"
7949    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
7950      # 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
7951      if test -r "$dir/${proj}-uninstalled.pc" ; then
7952        pcfile="$dir/$proj-uninstalled.pc"
7953        if test -r "$dir/${proj}.pc" ; then
7954          pcifile="$dir/${proj}.pc"
7955        else
7956          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
7957echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
7958          pcifile=
7959        fi
7960        break
7961      fi
7962    done
7963    IFS="$save_IFS"
7964
7965    if test "x$pcfile" != x ; then
7966      # read dependencies from $pcfile and filter it
7967      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
7968
7969      # add projrequires to the front of the list of projects that have to be processed next
7970      # at the same time, remove $proj from this list
7971      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
7972
7973      # read DATA from $pcfile, if _DATA is still empty
7974      if test "x$BLAS_DATA" = x ; then
7975        projdatadir=
7976        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
7977        eval `sh -c "$pcfilemod"`
7978        BLAS_DATA="$projdatadir"
7979      fi
7980
7981      allproj="$allproj $proj"
7982      allpcfiles="$pcfile:$allpcfiles"
7983
7984    else
7985      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
7986echo "${ECHO_T}no, dependency $proj not available" >&6
7987      allproj=fail
7988      break 2
7989    fi
7990
7991    if test "x$pcifile" != x ; then
7992      allpcifiles="$pcifile:$allpcifiles"
7993
7994      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
7995      if test "x$BLAS_DATA_INSTALLED" = x ; then
7996        projdatadir=
7997        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
7998        eval `sh -c "$pcifilemod"`
7999        if test "${CYGPATH_W}" != "echo"; then
8000          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
8001        fi
8002        BLAS_DATA_INSTALLED="$projdatadir"
8003      fi
8004
8005    fi
8006
8007    break
8008  done
8009
8010  # remove spaces on begin of $projtoprocess
8011  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
8012
8013done
8014
8015if test "$allproj" != fail ; then
8016
8017  # now go through the list of .pc files and assemble compiler and linker flags
8018  # important is here to obey the reverse order that has been setup before,
8019  # since then libraries that are required by several others should be after these other libraries
8020  pcfilesprocessed=""
8021
8022  save_IFS="$IFS"
8023  IFS=":"
8024  for pcfile in $allpcfiles ; do
8025
8026    # if $pcfile has been processed already, skip this round
8027    if test "x$pcfilesprocessed" != x ; then
8028      for pcfiledone in $pcfilesprocessed ; do
8029        if test "$pcfiledone" = "$pcfile" ; then
8030          continue 2
8031        fi
8032      done
8033    fi
8034
8035    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8036    #   replace "Libs:" by "echo projlibs="
8037    #   replace "Cflags:" by "echo projcflags="
8038    #   remove every line starting with <some word>:
8039    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8040
8041    # set projcflags and projlibs variables by running $pcfilemod
8042    # 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
8043    projcflags=
8044    projlibs=
8045    IFS="$save_IFS"
8046    eval `sh -c "$pcfilemod"`
8047    IFS=":"
8048
8049    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8050    if test "${CYGPATH_W}" != "echo"; then
8051      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8052    fi
8053    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
8054
8055    # set LIBS variable
8056    BLAS_LIBS="$projlibs $BLAS_LIBS"
8057
8058    # remember that we have processed $pcfile
8059    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8060
8061  done
8062  IFS="$save_IFS"
8063
8064
8065  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
8066  # important is here again to obey the reverse order that has been setup before,
8067  # since then libraries that are required by several others should be after these other libraries
8068  pcfilesprocessed=""
8069
8070  save_IFS="$IFS"
8071  IFS=":"
8072  for pcfile in $allpcifiles ; do
8073
8074    # if $pcfile has been processed already, skip this round
8075    if test "x$pcfilesprocessed" != x ; then
8076      for pcfiledone in $pcfilesprocessed ; do
8077        if test "$pcfiledone" = "$pcfile" ; then
8078          continue 2
8079        fi
8080      done
8081    fi
8082
8083    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
8084    #   replace "Libs:" by "echo projlibs="
8085    #   replace "Cflags:" by "echo projcflags="
8086    #   remove every line starting with <some word>:
8087    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
8088
8089    # set projcflags and projlibs variables by running $pcfilemod
8090    # 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
8091    projcflags=
8092    projlibs=
8093    IFS="$save_IFS"
8094    eval `sh -c "$pcfilemod"`
8095    IFS=":"
8096
8097    # add CYGPATH_W cludge into include flags and set CFLAGS variable
8098    if test "${CYGPATH_W}" != "echo"; then
8099      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
8100    fi
8101    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
8102
8103    # set LIBS variable
8104    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
8105
8106    # remember that we have processed $pcfile
8107    pcfilesprocessed="$pcfilesprocessed:$pcfile"
8108
8109  done
8110  IFS="$save_IFS"
8111
8112
8113  # finish up
8114  coin_has_blas=yes
8115  echo "$as_me:$LINENO: result: yes" >&5
8116echo "${ECHO_T}yes" >&6
8117
8118cat >>confdefs.h <<\_ACEOF
8119#define COIN_HAS_BLAS 1
8120_ACEOF
8121
8122
8123  # adjust linker flags for (i)cl compiler
8124  # 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),
8125  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
8126  #    everything of the form "-lname" by "libname.lib", and
8127  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
8128  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
8129  then
8130    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
8131    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'`
8132  fi
8133
8134  BLAS_PCREQUIRES="coinblas"
8135
8136    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
8137    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
8138    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8139    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
8140    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
8141
8142
8143fi
8144
8145
8146
8147if test $coin_has_blas != notGiven &&
8148                test $coin_has_blas != skipping; then
8149  COIN_HAS_BLAS_TRUE=
8150  COIN_HAS_BLAS_FALSE='#'
8151else
8152  COIN_HAS_BLAS_TRUE='#'
8153  COIN_HAS_BLAS_FALSE=
8154fi
8155
8156
8157
8158  fi
8159
8160else
8161  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
8162echo "${ECHO_T}$coin_has_blas" >&6
8163fi
8164
8165if test $coin_has_blas != skipping &&
8166   test $coin_has_blas != notGiven ; then
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define COIN_HAS_BLAS 1
8170_ACEOF
8171
8172
8173  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
8174if test "${enable_interpackage_dependencies+set}" = set; then
8175  enableval="$enable_interpackage_dependencies"
8176
8177else
8178  enable_interpackage_dependencies=yes
8179fi;
8180
8181  if test $enable_interpackage_dependencies = yes ; then
8182     # construct dependencies variables from LIBS variables
8183     # we add an extra space in LIBS so we can substitute out everything starting with " -"
8184     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
8185     # then remove everything of the form -xxx
8186     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
8187     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'`
8188
8189       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'`
8190
8191  fi
8192
8193  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
8194    if test -n "$BLAS_CFLAGS" ; then
8195      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
8196echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
8197    fi
8198    if test -n "$BLAS_LIBS" ; then
8199      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
8200echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
8201    fi
8202    if test -n "$BLAS_DEPENDENCIES" ; then
8203      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
8204echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
8205    fi
8206    if test -n "$BLAS_DATA" ; then
8207      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
8208echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
8209    fi
8210    if test -n "$BLAS_PCLIBS" ; then
8211      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
8212echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
8213    fi
8214    if test -n "$BLAS_PCREQUIRES" ; then
8215      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
8216echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
8217    fi
8218
8219      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
8220echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
8221      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
8222echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
8223      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
8224echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
8225
8226  fi
8227fi
8228
8229# Define the Makefile conditional
8230
8231
8232if test $coin_has_blas != notGiven &&
8233                test $coin_has_blas != skipping; then
8234  COIN_HAS_BLAS_TRUE=
8235  COIN_HAS_BLAS_FALSE='#'
8236else
8237  COIN_HAS_BLAS_TRUE='#'
8238  COIN_HAS_BLAS_FALSE=
8239fi
8240
8241
8242
8243
8244elif test "x$use_blas" != x && test "$use_blas" != no; then
8245  coin_has_blas=yes
8246
8247
8248if test 0 = 0; then
8249  COIN_HAS_BLAS_TRUE=
8250  COIN_HAS_BLAS_FALSE='#'
8251else
8252  COIN_HAS_BLAS_TRUE='#'
8253  COIN_HAS_BLAS_FALSE=
8254fi
8255
8256
8257cat >>confdefs.h <<\_ACEOF
8258#define COIN_HAS_BLAS 1
8259_ACEOF
8260
8261  BLAS_LIBS="$use_blas"
8262  BLAS_CFLAGS=
8263  BLAS_DATA=
8264
8265
8266
8267
8268    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
8269    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
8270    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
8271
8272
8273else
8274  coin_has_blas=no
8275
8276
8277if test 0 = 1; then
8278  COIN_HAS_BLAS_TRUE=
8279  COIN_HAS_BLAS_FALSE='#'
8280else
8281  COIN_HAS_BLAS_TRUE='#'
8282  COIN_HAS_BLAS_FALSE=
8283fi
8284
8285fi
8286
8287
8288
8289
8290
8291
8292
8293
8294if test $coin_has_blas != yes; then
8295  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
8296echo "$as_me: error: Required package BLAS not found." >&2;}
8297   { (exit 1); exit 1; }; }
8298fi
8299
8300# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
8301LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
8302
8303# Take care that optimization is disbled for DLAMCH.F
8304
8305if test "x$DLAMCH_FFLAGS" = x ; then
8306  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
8307  case $F77 in
8308    ifort* | */ifort* | IFORT* | */IFORT* )
8309      case $build in
8310        *-cygwin* | *-mingw*)
8311          DLAMCH_FFLAGS="$FFLAGS -Od"
8312          ;;
8313        *)
8314          DLAMCH_FFLAGS="$FFLAGS -O0"
8315          ;;
8316      esac
8317      ;;
8318    compile_f2c*)
8319      case "$CC" in
8320        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8321          DLAMCH_FFLAGS="$FFLAGS -Od"
8322        ;;
8323        *)
8324          DLAMCH_FFLAGS="$FFLAGS -O0"
8325        ;;
8326      esac
8327      ;;
8328    *)
8329      DLAMCH_FFLAGS="$FFLAGS -O0"
8330      ;;
8331  esac
8332fi
8333
8334
8335# Initialize autotools
8336{
8337
8338
8339
8340# START
8341
8342coin_disable_shared=no
8343# Test if force_shared has been set
8344if test "x" = xforce_shared; then
8345  if test x$enable_shared = xno; then
8346    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
8347echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
8348   { (exit 1); exit 1; }; }
8349  fi
8350  enable_shared=yes;
8351else
8352  case $build in
8353    *-cygwin* | *-mingw*)
8354      coin_disable_shared=yes
8355      if test x"$enable_shared" = xyes; then
8356        case "$CC" in
8357          clang* )
8358            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
8359echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
8360            ;;
8361          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
8362            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
8363echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
8364            ;;
8365          *gcc*)
8366            if test x"$enable_dependency_linking" = xyes; then
8367              coin_disable_shared=no
8368            else
8369              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
8370echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
8371            fi
8372            ;;
8373          *)
8374            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
8375echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
8376            ;;
8377        esac
8378      fi
8379    ;;
8380    *-aix*)
8381      coin_disable_shared=yes
8382      platform=AIX
8383      if test x"$enable_shared" = xyes; then
8384        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
8385echo "$as_me: WARNING: Shared objects are not supported." >&2;}
8386      fi
8387    ;;
8388  esac
8389fi
8390if test x"$coin_disable_shared" = xyes; then
8391  if test x"$enable_shared" = xyes; then
8392    :
8393  else
8394    # we don't disable shared, because it was not selected anyway
8395    coin_disable_shared=no
8396  fi
8397  enable_shared=no
8398fi
8399# By default, we only want the shared objects to be compiled
8400# Check whether --enable-static or --disable-static was given.
8401if test "${enable_static+set}" = set; then
8402  enableval="$enable_static"
8403  p=${PACKAGE-default}
8404    case $enableval in
8405    yes) enable_static=yes ;;
8406    no) enable_static=no ;;
8407    *)
8408     enable_static=no
8409      # Look at the argument we got.  We use all the common list separators.
8410      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8411      for pkg in $enableval; do
8412        IFS="$lt_save_ifs"
8413        if test "X$pkg" = "X$p"; then
8414          enable_static=yes
8415        fi
8416      done
8417      IFS="$lt_save_ifs"
8418      ;;
8419    esac
8420else
8421  enable_static=no
8422fi;
8423
8424
8425
8426
8427# Initialize automake
8428echo "$as_me:$LINENO: checking for egrep" >&5
8429echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8430if test "${ac_cv_prog_egrep+set}" = set; then
8431  echo $ECHO_N "(cached) $ECHO_C" >&6
8432else
8433  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8434    then ac_cv_prog_egrep='grep -E'
8435    else ac_cv_prog_egrep='egrep'
8436    fi
8437fi
8438echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8439echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8440 EGREP=$ac_cv_prog_egrep
8441
8442
8443echo "$as_me:$LINENO: checking whether ln -s works" >&5
8444echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8445LN_S=$as_ln_s
8446if test "$LN_S" = "ln -s"; then
8447  echo "$as_me:$LINENO: result: yes" >&5
8448echo "${ECHO_T}yes" >&6
8449else
8450  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8451echo "${ECHO_T}no, using $LN_S" >&6
8452fi
8453
8454am__api_version="1.9"
8455# Find a good install program.  We prefer a C program (faster),
8456# so one script is as good as another.  But avoid the broken or
8457# incompatible versions:
8458# SysV /etc/install, /usr/sbin/install
8459# SunOS /usr/etc/install
8460# IRIX /sbin/install
8461# AIX /bin/install
8462# AmigaOS /C/install, which installs bootblocks on floppy discs
8463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8466# OS/2's system install, which has a completely different semantic
8467# ./install, which can be erroneously created by make from ./install.sh.
8468echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8469echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8470if test -z "$INSTALL"; then
8471if test "${ac_cv_path_install+set}" = set; then
8472  echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477  IFS=$as_save_IFS
8478  test -z "$as_dir" && as_dir=.
8479  # Account for people who put trailing slashes in PATH elements.
8480case $as_dir/ in
8481  ./ | .// | /cC/* | \
8482  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8483  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8484  /usr/ucb/* ) ;;
8485  *)
8486    # OSF1 and SCO ODT 3.0 have their own names for install.
8487    # Don't use installbsd from OSF since it installs stuff as root
8488    # by default.
8489    for ac_prog in ginstall scoinst install; do
8490      for ac_exec_ext in '' $ac_executable_extensions; do
8491        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8492          if test $ac_prog = install &&
8493            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8494            # AIX install.  It has an incompatible calling convention.
8495            :
8496          elif test $ac_prog = install &&
8497            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8498            # program-specific install script used by HP pwplus--don't use.
8499            :
8500          else
8501            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8502            break 3
8503          fi
8504        fi
8505      done
8506    done
8507    ;;
8508esac
8509done
8510
8511
8512fi
8513  if test "${ac_cv_path_install+set}" = set; then
8514    INSTALL=$ac_cv_path_install
8515  else
8516    # As a last resort, use the slow shell script.  We don't cache a
8517    # path for INSTALL within a source directory, because that will
8518    # break other packages using the cache if that directory is
8519    # removed, or if the path is relative.
8520    INSTALL=$ac_install_sh
8521  fi
8522fi
8523echo "$as_me:$LINENO: result: $INSTALL" >&5
8524echo "${ECHO_T}$INSTALL" >&6
8525
8526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8527# It thinks the first close brace ends the variable substitution.
8528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8529
8530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8531
8532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8533
8534echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8535echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
8536# Just in case
8537sleep 1
8538echo timestamp > conftest.file
8539# Do `set' in a subshell so we don't clobber the current shell's
8540# arguments.  Must try -L first in case configure is actually a
8541# symlink; some systems play weird games with the mod time of symlinks
8542# (eg FreeBSD returns the mod time of the symlink's containing
8543# directory).
8544if (
8545   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8546   if test "$*" = "X"; then
8547      # -L didn't work.
8548      set X `ls -t $srcdir/configure conftest.file`
8549   fi
8550   rm -f conftest.file
8551   if test "$*" != "X $srcdir/configure conftest.file" \
8552      && test "$*" != "X conftest.file $srcdir/configure"; then
8553
8554      # If neither matched, then we have a broken ls.  This can happen
8555      # if, for instance, CONFIG_SHELL is bash and it inherits a
8556      # broken ls alias from the environment.  This has actually
8557      # happened.  Such a system could not be considered "sane".
8558      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
8559alias in your environment" >&5
8560echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
8561alias in your environment" >&2;}
8562   { (exit 1); exit 1; }; }
8563   fi
8564
8565   test "$2" = conftest.file
8566   )
8567then
8568   # Ok.
8569   :
8570else
8571   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8572Check your system clock" >&5
8573echo "$as_me: error: newly created file is older than distributed files!
8574Check your system clock" >&2;}
8575   { (exit 1); exit 1; }; }
8576fi
8577echo "$as_me:$LINENO: result: yes" >&5
8578echo "${ECHO_T}yes" >&6
8579test "$program_prefix" != NONE &&
8580  program_transform_name="s,^,$program_prefix,;$program_transform_name"
8581# Use a double $ so make ignores it.
8582test "$program_suffix" != NONE &&
8583  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8584# Double any \ or $.  echo might interpret backslashes.
8585# By default was `s,x,x', remove it if useless.
8586cat <<\_ACEOF >conftest.sed
8587s/[\\$]/&&/g;s/;s,x,x,$//
8588_ACEOF
8589program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8590rm conftest.sed
8591
8592# expand $ac_aux_dir to an absolute path
8593am_aux_dir=`cd $ac_aux_dir && pwd`
8594
8595test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8596# Use eval to expand $SHELL
8597if eval "$MISSING --run true"; then
8598  am_missing_run="$MISSING --run "
8599else
8600  am_missing_run=
8601  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8602echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8603fi
8604
8605if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8606  # We used to keeping the `.' as first argument, in order to
8607  # allow $(mkdir_p) to be used without argument.  As in
8608  #   $(mkdir_p) $(somedir)
8609  # where $(somedir) is conditionally defined.  However this is wrong
8610  # for two reasons:
8611  #  1. if the package is installed by a user who cannot write `.'
8612  #     make install will fail,
8613  #  2. the above comment should most certainly read
8614  #     $(mkdir_p) $(DESTDIR)$(somedir)
8615  #     so it does not work when $(somedir) is undefined and
8616  #     $(DESTDIR) is not.
8617  #  To support the latter case, we have to write
8618  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8619  #  so the `.' trick is pointless.
8620  mkdir_p='mkdir -p --'
8621else
8622  # On NextStep and OpenStep, the `mkdir' command does not
8623  # recognize any option.  It will interpret all options as
8624  # directories to create, and then abort because `.' already
8625  # exists.
8626  for d in ./-p ./--version;
8627  do
8628    test -d $d && rmdir $d
8629  done
8630  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8631  if test -f "$ac_aux_dir/mkinstalldirs"; then
8632    mkdir_p='$(mkinstalldirs)'
8633  else
8634    mkdir_p='$(install_sh) -d'
8635  fi
8636fi
8637
8638for ac_prog in gawk mawk nawk awk
8639do
8640  # Extract the first word of "$ac_prog", so it can be a program name with args.
8641set dummy $ac_prog; ac_word=$2
8642echo "$as_me:$LINENO: checking for $ac_word" >&5
8643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8644if test "${ac_cv_prog_AWK+set}" = set; then
8645  echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647  if test -n "$AWK"; then
8648  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8649else
8650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653  IFS=$as_save_IFS
8654  test -z "$as_dir" && as_dir=.
8655  for ac_exec_ext in '' $ac_executable_extensions; do
8656  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657    ac_cv_prog_AWK="$ac_prog"
8658    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659    break 2
8660  fi
8661done
8662done
8663
8664fi
8665fi
8666AWK=$ac_cv_prog_AWK
8667if test -n "$AWK"; then
8668  echo "$as_me:$LINENO: result: $AWK" >&5
8669echo "${ECHO_T}$AWK" >&6
8670else
8671  echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
8673fi
8674
8675  test -n "$AWK" && break
8676done
8677
8678echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8679echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8680set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8681if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8682  echo $ECHO_N "(cached) $ECHO_C" >&6
8683else
8684  cat >conftest.make <<\_ACEOF
8685all:
8686        @echo 'ac_maketemp="$(MAKE)"'
8687_ACEOF
8688# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8689eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8690if test -n "$ac_maketemp"; then
8691  eval ac_cv_prog_make_${ac_make}_set=yes
8692else
8693  eval ac_cv_prog_make_${ac_make}_set=no
8694fi
8695rm -f conftest.make
8696fi
8697if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8698  echo "$as_me:$LINENO: result: yes" >&5
8699echo "${ECHO_T}yes" >&6
8700  SET_MAKE=
8701else
8702  echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704  SET_MAKE="MAKE=${MAKE-make}"
8705fi
8706
8707rm -rf .tst 2>/dev/null
8708mkdir .tst 2>/dev/null
8709if test -d .tst; then
8710  am__leading_dot=.
8711else
8712  am__leading_dot=_
8713fi
8714rmdir .tst 2>/dev/null
8715
8716DEPDIR="${am__leading_dot}deps"
8717
8718          ac_config_commands="$ac_config_commands depfiles"
8719
8720
8721am_make=${MAKE-make}
8722cat > confinc << 'END'
8723am__doit:
8724        @echo done
8725.PHONY: am__doit
8726END
8727# If we don't find an include directive, just comment out the code.
8728echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8729echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8730am__include="#"
8731am__quote=
8732_am_result=none
8733# First try GNU make style include.
8734echo "include confinc" > confmf
8735# We grep out `Entering directory' and `Leaving directory'
8736# messages which can occur if `w' ends up in MAKEFLAGS.
8737# In particular we don't look at `^make:' because GNU make might
8738# be invoked under some other name (usually "gmake"), in which
8739# case it prints its new name instead of `make'.
8740if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8741   am__include=include
8742   am__quote=
8743   _am_result=GNU
8744fi
8745# Now try BSD make style include.
8746if test "$am__include" = "#"; then
8747   echo '.include "confinc"' > confmf
8748   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8749      am__include=.include
8750      am__quote="\""
8751      _am_result=BSD
8752   fi
8753fi
8754
8755
8756echo "$as_me:$LINENO: result: $_am_result" >&5
8757echo "${ECHO_T}$_am_result" >&6
8758rm -f confinc confmf
8759
8760# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8761if test "${enable_dependency_tracking+set}" = set; then
8762  enableval="$enable_dependency_tracking"
8763
8764fi;
8765if test "x$enable_dependency_tracking" != xno; then
8766  am_depcomp="$ac_aux_dir/depcomp"
8767  AMDEPBACKSLASH='\'
8768fi
8769
8770
8771if test "x$enable_dependency_tracking" != xno; then
8772  AMDEP_TRUE=
8773  AMDEP_FALSE='#'
8774else
8775  AMDEP_TRUE='#'
8776  AMDEP_FALSE=
8777fi
8778
8779
8780
8781
8782
8783
8784# AC_MSG_NOTICE([Beginning automake initialisation.])
8785# Stuff for automake
8786# test to see if srcdir already configured
8787if test "`cd $srcdir && pwd`" != "`pwd`" &&
8788   test -f $srcdir/config.status; then
8789  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8790echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8791   { (exit 1); exit 1; }; }
8792fi
8793
8794# test whether we have cygpath
8795if test -z "$CYGPATH_W"; then
8796  if (cygpath --version) >/dev/null 2>/dev/null; then
8797    CYGPATH_W='cygpath -w'
8798  else
8799    CYGPATH_W=echo
8800  fi
8801fi
8802
8803
8804# Define the identity of the package.
8805 PACKAGE='thirdpartylapack'
8806 VERSION='1.5.3'
8807
8808
8809cat >>confdefs.h <<_ACEOF
8810#define PACKAGE "$PACKAGE"
8811_ACEOF
8812
8813
8814cat >>confdefs.h <<_ACEOF
8815#define VERSION "$VERSION"
8816_ACEOF
8817
8818# Some tools Automake needs.
8819
8820ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
8821
8822
8823AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
8824
8825
8826AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8827
8828
8829AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8830
8831
8832MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8833
8834install_sh=${install_sh-"$am_aux_dir/install-sh"}
8835
8836# Installed binaries are usually stripped using `strip' when the user
8837# run `make install-strip'.  However `strip' might not be the right
8838# tool to use in cross-compilation environments, therefore Automake
8839# will honor the `STRIP' environment variable to overrule this program.
8840if test "$cross_compiling" != no; then
8841  if test -n "$ac_tool_prefix"; then
8842  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8843set dummy ${ac_tool_prefix}strip; ac_word=$2
8844echo "$as_me:$LINENO: checking for $ac_word" >&5
8845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8846if test "${ac_cv_prog_STRIP+set}" = set; then
8847  echo $ECHO_N "(cached) $ECHO_C" >&6
8848else
8849  if test -n "$STRIP"; then
8850  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8851else
8852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853for as_dir in $PATH
8854do
8855  IFS=$as_save_IFS
8856  test -z "$as_dir" && as_dir=.
8857  for ac_exec_ext in '' $ac_executable_extensions; do
8858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861    break 2
8862  fi
8863done
8864done
8865
8866fi
8867fi
8868STRIP=$ac_cv_prog_STRIP
8869if test -n "$STRIP"; then
8870  echo "$as_me:$LINENO: result: $STRIP" >&5
8871echo "${ECHO_T}$STRIP" >&6
8872else
8873  echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
8875fi
8876
8877fi
8878if test -z "$ac_cv_prog_STRIP"; then
8879  ac_ct_STRIP=$STRIP
8880  # Extract the first word of "strip", so it can be a program name with args.
8881set dummy strip; ac_word=$2
8882echo "$as_me:$LINENO: checking for $ac_word" >&5
8883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8884if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8885  echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887  if test -n "$ac_ct_STRIP"; then
8888  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893  IFS=$as_save_IFS
8894  test -z "$as_dir" && as_dir=.
8895  for ac_exec_ext in '' $ac_executable_extensions; do
8896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897    ac_cv_prog_ac_ct_STRIP="strip"
8898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8899    break 2
8900  fi
8901done
8902done
8903
8904  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8905fi
8906fi
8907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8908if test -n "$ac_ct_STRIP"; then
8909  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8910echo "${ECHO_T}$ac_ct_STRIP" >&6
8911else
8912  echo "$as_me:$LINENO: result: no" >&5
8913echo "${ECHO_T}no" >&6
8914fi
8915
8916  STRIP=$ac_ct_STRIP
8917else
8918  STRIP="$ac_cv_prog_STRIP"
8919fi
8920
8921fi
8922INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8923
8924# We need awk for the "check" target.  The system "awk" is bad on
8925# some platforms.
8926# Always define AMTAR for backward compatibility.
8927
8928AMTAR=${AMTAR-"${am_missing_run}tar"}
8929
8930am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
8931
8932
8933
8934
8935depcc="$CC"   am_compiler_list=
8936
8937echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8938echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8939if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8940  echo $ECHO_N "(cached) $ECHO_C" >&6
8941else
8942  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8943  # We make a subdir and do the tests there.  Otherwise we can end up
8944  # making bogus files that we don't know about and never remove.  For
8945  # instance it was reported that on HP-UX the gcc test will end up
8946  # making a dummy file named `D' -- because `-MD' means `put the output
8947  # in D'.
8948  mkdir conftest.dir
8949  # Copy depcomp to subdir because otherwise we won't find it if we're
8950  # using a relative directory.
8951  cp "$am_depcomp" conftest.dir
8952  cd conftest.dir
8953  # We will build objects and dependencies in a subdirectory because
8954  # it helps to detect inapplicable dependency modes.  For instance
8955  # both Tru64's cc and ICC support -MD to output dependencies as a
8956  # side effect of compilation, but ICC will put the dependencies in
8957  # the current directory while Tru64 will put them in the object
8958  # directory.
8959  mkdir sub
8960
8961  am_cv_CC_dependencies_compiler_type=none
8962  if test "$am_compiler_list" = ""; then
8963     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8964  fi
8965  for depmode in $am_compiler_list; do
8966    # Setup a source with many dependencies, because some compilers
8967    # like to wrap large dependency lists on column 80 (with \), and
8968    # we should not choose a depcomp mode which is confused by this.
8969    #
8970    # We need to recreate these files for each test, as the compiler may
8971    # overwrite some of them when testing with obscure command lines.
8972    # This happens at least with the AIX C compiler.
8973    : > sub/conftest.c
8974    for i in 1 2 3 4 5 6; do
8975      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8976      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8977      # Solaris 8's {/usr,}/bin/sh.
8978      touch sub/conftst$i.h
8979    done
8980    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8981
8982    case $depmode in
8983    nosideeffect)
8984      # after this tag, mechanisms are not by side-effect, so they'll
8985      # only be used when explicitly requested
8986      if test "x$enable_dependency_tracking" = xyes; then
8987        continue
8988      else
8989        break
8990      fi
8991      ;;
8992    none) break ;;
8993    esac
8994    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8995    # mode.  It turns out that the SunPro C++ compiler does not properly
8996    # handle `-M -o', and we need to detect this.
8997    if depmode=$depmode \
8998       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8999       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9000       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9001         >/dev/null 2>conftest.err &&
9002       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9003       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9004       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9005      # icc doesn't choke on unknown options, it will just issue warnings
9006      # or remarks (even with -Werror).  So we grep stderr for any message
9007      # that says an option was ignored or not supported.
9008      # When given -MP, icc 7.0 and 7.1 complain thusly:
9009      #   icc: Command line warning: ignoring option '-M'; no argument required
9010      # The diagnosis changed in icc 8.0:
9011      #   icc: Command line remark: option '-MP' not supported
9012      if (grep 'ignoring option' conftest.err ||
9013          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9014        am_cv_CC_dependencies_compiler_type=$depmode
9015        break
9016      fi
9017    fi
9018  done
9019
9020  cd ..
9021  rm -rf conftest.dir
9022else
9023  am_cv_CC_dependencies_compiler_type=none
9024fi
9025
9026fi
9027echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9028echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9029CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9030
9031
9032
9033if
9034  test "x$enable_dependency_tracking" != xno \
9035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9036  am__fastdepCC_TRUE=
9037  am__fastdepCC_FALSE='#'
9038else
9039  am__fastdepCC_TRUE='#'
9040  am__fastdepCC_FALSE=
9041fi
9042
9043
9044
9045echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9046echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9047    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9048if test "${enable_maintainer_mode+set}" = set; then
9049  enableval="$enable_maintainer_mode"
9050  USE_MAINTAINER_MODE=$enableval
9051else
9052  USE_MAINTAINER_MODE=no
9053fi;
9054  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9055echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9056
9057
9058if test $USE_MAINTAINER_MODE = yes; then
9059  MAINTAINER_MODE_TRUE=
9060  MAINTAINER_MODE_FALSE='#'
9061else
9062  MAINTAINER_MODE_TRUE='#'
9063  MAINTAINER_MODE_FALSE=
9064fi
9065
9066  MAINT=$MAINTAINER_MODE_TRUE
9067
9068
9069
9070coin_have_externals=no
9071if test "$enable_maintainer_mode" = yes; then
9072
9073  # If maintainer mode is chosen, we make sure that the correct versions
9074  # of the tools are used, and that we know where libtool.m4 is (to
9075  # recreate acinclude.m4)
9076
9077
9078  LIBTOOLM4=
9079  # Normally, $HOME
9080  AUTOTOOLS_DFLT=$HOME
9081
9082  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
9083echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
9084if test "${ac_cv_use_correct_autotools+set}" = set; then
9085  echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087  ac_cv_use_correct_autotools=check
9088fi
9089echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
9090echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
9091
9092  if test $ac_cv_use_correct_autotools = check; then
9093    ac_cv_use_correct_autotools=yes
9094    # Check if we have autoconf
9095    # Extract the first word of "autoconf", so it can be a program name with args.
9096set dummy autoconf; ac_word=$2
9097echo "$as_me:$LINENO: checking for $ac_word" >&5
9098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099if test "${ac_cv_prog_have_autoconf+set}" = set; then
9100  echo $ECHO_N "(cached) $ECHO_C" >&6
9101else
9102  if test -n "$have_autoconf"; then
9103  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108  IFS=$as_save_IFS
9109  test -z "$as_dir" && as_dir=.
9110  for ac_exec_ext in '' $ac_executable_extensions; do
9111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112    ac_cv_prog_have_autoconf="yes"
9113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114    break 2
9115  fi
9116done
9117done
9118
9119  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
9120fi
9121fi
9122have_autoconf=$ac_cv_prog_have_autoconf
9123if test -n "$have_autoconf"; then
9124  echo "$as_me:$LINENO: result: $have_autoconf" >&5
9125echo "${ECHO_T}$have_autoconf" >&6
9126else
9127  echo "$as_me:$LINENO: result: no" >&5
9128echo "${ECHO_T}no" >&6
9129fi
9130
9131    if test $have_autoconf = no; then
9132      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
9133echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
9134   { (exit 1); exit 1; }; }
9135    fi
9136
9137    # Check whether autoconf is the correct version
9138    correct_version='2.59'
9139    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9140    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
9141echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
9142    autoconf --version > confauto.out 2>&1
9143    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9144      echo "$as_me:$LINENO: result: yes" >&5
9145echo "${ECHO_T}yes" >&6
9146    else
9147      rm -f confauto.out
9148      echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
9151echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
9152   { (exit 1); exit 1; }; }
9153    fi
9154    rm -f confauto.out
9155
9156    # Check if the executable autoconf is picked up from the correct location
9157    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
9158echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
9159    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
9160    autoconf_dir=`cd $autoconf_dir; pwd`
9161    if test x$AUTOTOOLS_DIR = x; then
9162      want_dir=$AUTOTOOLS_DFLT/bin
9163    else
9164      want_dir=$AUTOTOOLS_DIR/bin
9165    fi
9166    if test $autoconf_dir = `cd $want_dir; pwd`; then
9167      echo "$as_me:$LINENO: result: yes" >&5
9168echo "${ECHO_T}yes" >&6
9169    else
9170      rm -f confauto.out
9171      echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
9173      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9174echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9175   { (exit 1); exit 1; }; }
9176    fi
9177
9178    # Check if we have automake
9179    # Extract the first word of "automake", so it can be a program name with args.
9180set dummy automake; ac_word=$2
9181echo "$as_me:$LINENO: checking for $ac_word" >&5
9182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9183if test "${ac_cv_prog_have_automake+set}" = set; then
9184  echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186  if test -n "$have_automake"; then
9187  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
9188else
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192  IFS=$as_save_IFS
9193  test -z "$as_dir" && as_dir=.
9194  for ac_exec_ext in '' $ac_executable_extensions; do
9195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196    ac_cv_prog_have_automake="yes"
9197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9198    break 2
9199  fi
9200done
9201done
9202
9203  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
9204fi
9205fi
9206have_automake=$ac_cv_prog_have_automake
9207if test -n "$have_automake"; then
9208  echo "$as_me:$LINENO: result: $have_automake" >&5
9209echo "${ECHO_T}$have_automake" >&6
9210else
9211  echo "$as_me:$LINENO: result: no" >&5
9212echo "${ECHO_T}no" >&6
9213fi
9214
9215    if test $have_automake = no; then
9216      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
9217echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
9218   { (exit 1); exit 1; }; }
9219    fi
9220
9221    # Check whether automake is the correct version
9222    correct_version='1.9.6'
9223    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9224    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
9225echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
9226    automake --version > confauto.out 2>&1
9227    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
9228      echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6
9230    else
9231      rm -f confauto.out
9232      echo "$as_me:$LINENO: result: no" >&5
9233echo "${ECHO_T}no" >&6
9234      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
9235echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
9236   { (exit 1); exit 1; }; }
9237    fi
9238    rm -f confauto.out
9239
9240    # Check if the executable automake is picked up from the correct location
9241    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
9242echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
9243    automake_dir=`which automake | sed -e 's=/automake=='`
9244    automake_dir=`cd $automake_dir; pwd`
9245    if test x$AUTOTOOLS_DIR = x; then
9246      want_dir=$AUTOTOOLS_DFLT/bin
9247    else
9248      want_dir=$AUTOTOOLS_DIR/bin
9249    fi
9250    if test $automake_dir = `cd $want_dir; pwd`; then
9251      echo "$as_me:$LINENO: result: yes" >&5
9252echo "${ECHO_T}yes" >&6
9253    else
9254      rm -f confauto.out
9255      echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
9257      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
9258echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
9259   { (exit 1); exit 1; }; }
9260    fi
9261
9262    # Check if this is the correct version of libtool (with escaped dots)
9263    if test x$AUTOTOOLS_DIR = x; then
9264      want_dir=$AUTOTOOLS_DFLT/share
9265    else
9266      want_dir=$AUTOTOOLS_DIR/share
9267    fi
9268    correct_version='1.5.22'
9269    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
9270    if test -r $want_dir/libtool/ltmain.sh; then
9271  have_ltmain=yes
9272  :
9273else
9274  have_ltmain=no
9275  :
9276fi
9277
9278    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
9279echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
9280    if test $have_ltmain = yes; then
9281    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
9282        echo "$as_me:$LINENO: result: yes" >&5
9283echo "${ECHO_T}yes" >&6
9284      else
9285        echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
9287        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
9288echo "$as_me: error: You don't have the correct version of libtool." >&2;}
9289   { (exit 1); exit 1; }; }
9290      fi
9291    else
9292      echo "$as_me:$LINENO: result: no" >&5
9293echo "${ECHO_T}no" >&6
9294      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
9295echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
9296   { (exit 1); exit 1; }; }
9297    fi
9298  fi
9299
9300  # Check if we can find the libtool file
9301  if test x$AUTOTOOLS_DIR = x; then
9302    want_dir=$AUTOTOOLS_DFLT/share
9303  else
9304    want_dir=$AUTOTOOLS_DIR/share
9305  fi
9306  if test -r $want_dir/aclocal/libtool.m4; then
9307  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
9308  :
9309else
9310  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
9311echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
9312   { (exit 1); exit 1; }; }
9313  :
9314fi
9315
9316
9317  # Check if we have an Dependencies file
9318  if test -r $srcdir/Dependencies; then
9319    coin_have_externals=yes
9320  fi
9321  # Check if subversion is installed and understands https
9322  # Extract the first word of "svn", so it can be a program name with args.
9323set dummy svn; ac_word=$2
9324echo "$as_me:$LINENO: checking for $ac_word" >&5
9325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9326if test "${ac_cv_prog_have_svn+set}" = set; then
9327  echo $ECHO_N "(cached) $ECHO_C" >&6
9328else
9329  if test -n "$have_svn"; then
9330  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
9331else
9332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333for as_dir in $PATH
9334do
9335  IFS=$as_save_IFS
9336  test -z "$as_dir" && as_dir=.
9337  for ac_exec_ext in '' $ac_executable_extensions; do
9338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9339    ac_cv_prog_have_svn="yes"
9340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9341    break 2
9342  fi
9343done
9344done
9345
9346  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
9347fi
9348fi
9349have_svn=$ac_cv_prog_have_svn
9350if test -n "$have_svn"; then
9351  echo "$as_me:$LINENO: result: $have_svn" >&5
9352echo "${ECHO_T}$have_svn" >&6
9353else
9354  echo "$as_me:$LINENO: result: no" >&5
9355echo "${ECHO_T}no" >&6
9356fi
9357
9358  if test x$have_svn = xyes; then
9359    echo "$as_me:$LINENO: checking whether svn understands https" >&5
9360echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
9361if test "${ac_cv_svn_understands_https+set}" = set; then
9362  echo $ECHO_N "(cached) $ECHO_C" >&6
9363else
9364  svn --version > confauto.out 2>&1
9365                    if $EGREP https confauto.out >/dev/null 2>&1; then
9366                      ac_cv_svn_understands_https=yes
9367                    else
9368                      ac_cv_svn_understands_https=no
9369                      have_svn=no
9370                      ac_cv_prog_have_svn=no
9371                    fi
9372                    rm -f confauto.out
9373fi
9374echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
9375echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
9376  fi
9377
9378  # Find the location of the BuildTools directory
9379  BUILDTOOLSDIR=
9380  if test -r $srcdir/BuildTools/coin.m4; then
9381    BUILDTOOLSDIR=$srcdir/BuildTools
9382  else
9383    if test -r $srcdir/../BuildTools/coin.m4; then
9384      BUILDTOOLSDIR=$srcdir/../BuildTools
9385    else
9386      if test -r $srcdir/../../BuildTools/coin.m4; then
9387        BUILDTOOLSDIR=$srcdir/../../BuildTools
9388      else
9389        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
9390echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
9391   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
9392      fi
9393    fi
9394  fi
9395
9396
9397  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
9398  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
9399    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
9400  fi
9401
9402  # The following variable is set to the name of the directory where
9403  # the autotool scripts are located
9404
9405  AUX_DIR=$ac_aux_dir
9406fi
9407
9408# helpful variable for the base directory of this package
9409abs_source_dir=`cd $srcdir; pwd`
9410
9411
9412# Stuff for example Makefiles
9413if test x$prefix = xNONE; then
9414  full_prefix=$ac_default_prefix
9415else
9416  full_prefix=$prefix
9417fi
9418full_prefix=`cd $full_prefix ; pwd`
9419
9420abs_lib_dir=$full_prefix/lib
9421
9422abs_include_dir=$full_prefix/include
9423
9424abs_bin_dir=$full_prefix/bin
9425
9426
9427
9428if test $coin_have_externals = yes && test x$have_svn = xyes; then
9429  HAVE_EXTERNALS_TRUE=
9430  HAVE_EXTERNALS_FALSE='#'
9431else
9432  HAVE_EXTERNALS_TRUE='#'
9433  HAVE_EXTERNALS_FALSE=
9434fi
9435
9436
9437# AC_MSG_NOTICE([End automake initialisation.])
9438
9439
9440
9441LIBTOOL=
9442if test -f ../libtool; then
9443  coin_config_dir=..
9444  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
9445fi
9446if test "x$LIBTOOL" = x; then
9447  if test -f ../../libtool; then
9448    coin_config_dir=../..
9449    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
9450  fi
9451fi
9452
9453if test "x$LIBTOOL" = x; then
9454# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
9455  # Stuff for libtool
9456  # Check whether --enable-shared or --disable-shared was given.
9457if test "${enable_shared+set}" = set; then
9458  enableval="$enable_shared"
9459  p=${PACKAGE-default}
9460    case $enableval in
9461    yes) enable_shared=yes ;;
9462    no) enable_shared=no ;;
9463    *)
9464      enable_shared=no
9465      # Look at the argument we got.  We use all the common list separators.
9466      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9467      for pkg in $enableval; do
9468        IFS="$lt_save_ifs"
9469        if test "X$pkg" = "X$p"; then
9470          enable_shared=yes
9471        fi
9472      done
9473      IFS="$lt_save_ifs"
9474      ;;
9475    esac
9476else
9477  enable_shared=yes
9478fi;
9479
9480# Check whether --enable-fast-install or --disable-fast-install was given.
9481if test "${enable_fast_install+set}" = set; then
9482  enableval="$enable_fast_install"
9483  p=${PACKAGE-default}
9484    case $enableval in
9485    yes) enable_fast_install=yes ;;
9486    no) enable_fast_install=no ;;
9487    *)
9488      enable_fast_install=no
9489      # Look at the argument we got.  We use all the common list separators.
9490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9491      for pkg in $enableval; do
9492        IFS="$lt_save_ifs"
9493        if test "X$pkg" = "X$p"; then
9494          enable_fast_install=yes
9495        fi
9496      done
9497      IFS="$lt_save_ifs"
9498      ;;
9499    esac
9500else
9501  enable_fast_install=yes
9502fi;
9503
9504echo "$as_me:$LINENO: checking host system type" >&5
9505echo $ECHO_N "checking host system type... $ECHO_C" >&6
9506if test "${ac_cv_host+set}" = set; then
9507  echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509  ac_cv_host_alias=$host_alias
9510test -z "$ac_cv_host_alias" &&
9511  ac_cv_host_alias=$ac_cv_build_alias
9512ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9513  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9514echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9515   { (exit 1); exit 1; }; }
9516
9517fi
9518echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9519echo "${ECHO_T}$ac_cv_host" >&6
9520host=$ac_cv_host
9521host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9522host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9523host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9524
9525
9526echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9527echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9528if test "${lt_cv_path_SED+set}" = set; then
9529  echo $ECHO_N "(cached) $ECHO_C" >&6
9530else
9531  # Loop through the user's path and test for sed and gsed.
9532# Then use that list of sed's as ones to test for truncation.
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536  IFS=$as_save_IFS
9537  test -z "$as_dir" && as_dir=.
9538  for lt_ac_prog in sed gsed; do
9539    for ac_exec_ext in '' $ac_executable_extensions; do
9540      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9541        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9542      fi
9543    done
9544  done
9545done
9546lt_ac_max=0
9547lt_ac_count=0
9548# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9549# along with /bin/sed that truncates output.
9550for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9551  test ! -f $lt_ac_sed && continue
9552  cat /dev/null > conftest.in
9553  lt_ac_count=0
9554  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9555  # Check for GNU sed and select it if it is found.
9556  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9557    lt_cv_path_SED=$lt_ac_sed
9558    break
9559  fi
9560  while true; do
9561    cat conftest.in conftest.in >conftest.tmp
9562    mv conftest.tmp conftest.in
9563    cp conftest.in conftest.nl
9564    echo >>conftest.nl
9565    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9566    cmp -s conftest.out conftest.nl || break
9567    # 10000 chars as input seems more than enough
9568    test $lt_ac_count -gt 10 && break
9569    lt_ac_count=`expr $lt_ac_count + 1`
9570    if test $lt_ac_count -gt $lt_ac_max; then
9571      lt_ac_max=$lt_ac_count
9572      lt_cv_path_SED=$lt_ac_sed
9573    fi
9574  done
9575done
9576
9577fi
9578
9579SED=$lt_cv_path_SED
9580echo "$as_me:$LINENO: result: $SED" >&5
9581echo "${ECHO_T}$SED" >&6
9582
9583
9584# Check whether --with-gnu-ld or --without-gnu-ld was given.
9585if test "${with_gnu_ld+set}" = set; then
9586  withval="$with_gnu_ld"
9587  test "$withval" = no || with_gnu_ld=yes
9588else
9589  with_gnu_ld=no
9590fi;
9591ac_prog=ld
9592if test "$GCC" = yes; then
9593  # Check if gcc -print-prog-name=ld gives a path.
9594  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9595echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9596  case $host in
9597  *-*-mingw*)
9598    # gcc leaves a trailing carriage return which upsets mingw
9599    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9600  *)
9601    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9602  esac
9603  case $ac_prog in
9604    # Accept absolute paths.
9605    [\\/]* | ?:[\\/]*)
9606      re_direlt='/[^/][^/]*/\.\./'
9607      # Canonicalize the pathname of ld
9608      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9609      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9610        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9611      done
9612      test -z "$LD" && LD="$ac_prog"
9613      ;;
9614  "")
9615    # If it fails, then pretend we aren't using GCC.
9616    ac_prog=ld
9617    ;;
9618  *)
9619    # If it is relative, then search for the first ld in PATH.
9620    with_gnu_ld=unknown
9621    ;;
9622  esac
9623elif test "$with_gnu_ld" = yes; then
9624  echo "$as_me:$LINENO: checking for GNU ld" >&5
9625echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9626else
9627  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9628echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9629fi
9630if test "${lt_cv_path_LD+set}" = set; then
9631  echo $ECHO_N "(cached) $ECHO_C" >&6
9632else
9633  if test -z "$LD"; then
9634  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9635  for ac_dir in $PATH; do
9636    IFS="$lt_save_ifs"
9637    test -z "$ac_dir" && ac_dir=.
9638    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9639      lt_cv_path_LD="$ac_dir/$ac_prog"
9640      # Check to see if the program is GNU ld.  I'd rather use --version,
9641      # but apparently some variants of GNU ld only accept -v.
9642      # Break only if it was the GNU/non-GNU ld that we prefer.
9643      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9644      *GNU* | *'with BFD'*)
9645        test "$with_gnu_ld" != no && break
9646        ;;
9647      *)
9648        test "$with_gnu_ld" != yes && break
9649        ;;
9650      esac
9651    fi
9652  done
9653  IFS="$lt_save_ifs"
9654else
9655  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9656fi
9657fi
9658
9659LD="$lt_cv_path_LD"
9660if test -n "$LD"; then
9661  echo "$as_me:$LINENO: result: $LD" >&5
9662echo "${ECHO_T}$LD" >&6
9663else
9664  echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
9666fi
9667test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9668echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9669   { (exit 1); exit 1; }; }
9670echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9671echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9672if test "${lt_cv_prog_gnu_ld+set}" = set; then
9673  echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9676case `$LD -v 2>&1 </dev/null` in
9677*GNU* | *'with BFD'*)
9678  lt_cv_prog_gnu_ld=yes
9679  ;;
9680*)
9681  lt_cv_prog_gnu_ld=no
9682  ;;
9683esac
9684fi
9685echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9686echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9687with_gnu_ld=$lt_cv_prog_gnu_ld
9688
9689
9690echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9691echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9692if test "${lt_cv_ld_reload_flag+set}" = set; then
9693  echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695  lt_cv_ld_reload_flag='-r'
9696fi
9697echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9698echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9699reload_flag=$lt_cv_ld_reload_flag
9700case $reload_flag in
9701"" | " "*) ;;
9702*) reload_flag=" $reload_flag" ;;
9703esac
9704reload_cmds='$LD$reload_flag -o $output$reload_objs'
9705case $host_os in
9706  darwin*)
9707    if test "$GCC" = yes; then
9708      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9709    else
9710      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9711    fi
9712    ;;
9713esac
9714
9715echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9716echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9717if test "${lt_cv_path_NM+set}" = set; then
9718  echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720  if test -n "$NM"; then
9721  # Let the user override the test.
9722  lt_cv_path_NM="$NM"
9723else
9724  lt_nm_to_check="${ac_tool_prefix}nm"
9725  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9726    lt_nm_to_check="$lt_nm_to_check nm"
9727  fi
9728  for lt_tmp_nm in $lt_nm_to_check; do
9729    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9730    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9731      IFS="$lt_save_ifs"
9732      test -z "$ac_dir" && ac_dir=.
9733      tmp_nm="$ac_dir/$lt_tmp_nm"
9734      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9735        # Check to see if the nm accepts a BSD-compat flag.
9736        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9737        #   nm: unknown option "B" ignored
9738        # Tru64's nm complains that /dev/null is an invalid object file
9739        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9740        */dev/null* | *'Invalid file or object type'*)
9741          lt_cv_path_NM="$tmp_nm -B"
9742          break
9743          ;;
9744        *)
9745          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9746          */dev/null*)
9747            lt_cv_path_NM="$tmp_nm -p"
9748            break
9749            ;;
9750          *)
9751            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9752            continue # so that we can try to find one that supports BSD flags
9753            ;;
9754          esac
9755          ;;
9756        esac
9757      fi
9758    done
9759    IFS="$lt_save_ifs"
9760  done
9761  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9762fi
9763fi
9764echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9765echo "${ECHO_T}$lt_cv_path_NM" >&6
9766NM="$lt_cv_path_NM"
9767
9768echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9769echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9770if test "${lt_cv_deplibs_check_method+set}" = set; then
9771  echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773  lt_cv_file_magic_cmd='$MAGIC_CMD'
9774lt_cv_file_magic_test_file=
9775lt_cv_deplibs_check_method='unknown'
9776# Need to set the preceding variable on all platforms that support
9777# interlibrary dependencies.
9778# 'none' -- dependencies not supported.
9779# `unknown' -- same as none, but documents that we really don't know.
9780# 'pass_all' -- all dependencies passed with no checks.
9781# 'test_compile' -- check by making test program.
9782# 'file_magic [[regex]]' -- check by looking for files in library path
9783# which responds to the $file_magic_cmd with a given extended regex.
9784# If you have `file' or equivalent on your system and you're not sure
9785# whether `pass_all' will *always* work, you probably want this one.
9786
9787case $host_os in
9788aix4* | aix5*)
9789  lt_cv_deplibs_check_method=pass_all
9790  ;;
9791
9792beos*)
9793  lt_cv_deplibs_check_method=pass_all
9794  ;;
9795
9796bsdi[45]*)
9797  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9798  lt_cv_file_magic_cmd='/usr/bin/file -L'
9799  lt_cv_file_magic_test_file=/shlib/libc.so
9800  ;;
9801
9802cygwin*)
9803  # func_win32_libid is a shell function defined in ltmain.sh
9804  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9805  lt_cv_file_magic_cmd='func_win32_libid'
9806  ;;
9807
9808mingw* | pw32*)
9809  # Base MSYS/MinGW do not provide the 'file' command needed by
9810  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9811  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9812  lt_cv_file_magic_cmd='$OBJDUMP -f'
9813  ;;
9814
9815darwin* | rhapsody*)
9816  lt_cv_deplibs_check_method=pass_all
9817  ;;
9818
9819freebsd* | kfreebsd*-gnu | dragonfly*)
9820  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9821    case $host_cpu in
9822    i*86 )
9823      # Not sure whether the presence of OpenBSD here was a mistake.
9824      # Let's accept both of them until this is cleared up.
9825      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9826      lt_cv_file_magic_cmd=/usr/bin/file
9827      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9828      ;;
9829    esac
9830  else
9831    lt_cv_deplibs_check_method=pass_all
9832  fi
9833  ;;
9834
9835gnu*)
9836  lt_cv_deplibs_check_method=pass_all
9837  ;;
9838
9839hpux10.20* | hpux11*)
9840  lt_cv_file_magic_cmd=/usr/bin/file
9841  case $host_cpu in
9842  ia64*)
9843    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9844    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9845    ;;
9846  hppa*64*)
9847    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]'
9848    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9849    ;;
9850  *)
9851    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9852    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9853    ;;
9854  esac
9855  ;;
9856
9857interix3*)
9858  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9859  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9860  ;;
9861
9862irix5* | irix6* | nonstopux*)
9863  case $LD in
9864  *-32|*"-32 ") libmagic=32-bit;;
9865  *-n32|*"-n32 ") libmagic=N32;;
9866  *-64|*"-64 ") libmagic=64-bit;;
9867  *) libmagic=never-match;;
9868  esac
9869  lt_cv_deplibs_check_method=pass_all
9870  ;;
9871
9872# This must be Linux ELF.
9873linux*)
9874  lt_cv_deplibs_check_method=pass_all
9875  ;;
9876
9877netbsd*)
9878  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9880  else
9881    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9882  fi
9883  ;;
9884
9885newos6*)
9886  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9887  lt_cv_file_magic_cmd=/usr/bin/file
9888  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9889  ;;
9890
9891nto-qnx*)
9892  lt_cv_deplibs_check_method=unknown
9893  ;;
9894
9895openbsd*)
9896  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9898  else
9899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9900  fi
9901  ;;
9902
9903osf3* | osf4* | osf5*)
9904  lt_cv_deplibs_check_method=pass_all
9905  ;;
9906
9907solaris*)
9908  lt_cv_deplibs_check_method=pass_all
9909  ;;
9910
9911sysv4 | sysv4.3*)
9912  case $host_vendor in
9913  motorola)
9914    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]'
9915    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9916    ;;
9917  ncr)
9918    lt_cv_deplibs_check_method=pass_all
9919    ;;
9920  sequent)
9921    lt_cv_file_magic_cmd='/bin/file'
9922    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9923    ;;
9924  sni)
9925    lt_cv_file_magic_cmd='/bin/file'
9926    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9927    lt_cv_file_magic_test_file=/lib/libc.so
9928    ;;
9929  siemens)
9930    lt_cv_deplibs_check_method=pass_all
9931    ;;
9932  pc)
9933    lt_cv_deplibs_check_method=pass_all
9934    ;;
9935  esac
9936  ;;
9937
9938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9939  lt_cv_deplibs_check_method=pass_all
9940  ;;
9941esac
9942
9943fi
9944echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9945echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9946file_magic_cmd=$lt_cv_file_magic_cmd
9947deplibs_check_method=$lt_cv_deplibs_check_method
9948test -z "$deplibs_check_method" && deplibs_check_method=unknown
9949
9950
9951
9952
9953# If no C compiler was specified, use CC.
9954LTCC=${LTCC-"$CC"}
9955
9956# If no C compiler flags were specified, use CFLAGS.
9957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9958
9959# Allow CC to be a program name with arguments.
9960compiler=$CC
9961
9962# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9963if test "${enable_libtool_lock+set}" = set; then
9964  enableval="$enable_libtool_lock"
9965
9966fi;
9967test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9968
9969# Some flags need to be propagated to the compiler or linker for good
9970# libtool support.
9971case $host in
9972ia64-*-hpux*)
9973  # Find out which ABI we are using.
9974  echo 'int i;' > conftest.$ac_ext
9975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976  (eval $ac_compile) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; then
9980    case `/usr/bin/file conftest.$ac_objext` in
9981    *ELF-32*)
9982      HPUX_IA64_MODE="32"
9983      ;;
9984    *ELF-64*)
9985      HPUX_IA64_MODE="64"
9986      ;;
9987    esac
9988  fi
9989  rm -rf conftest*
9990  ;;
9991*-*-irix6*)
9992  # Find out which ABI we are using.
9993  echo '#line 9993 "configure"' > conftest.$ac_ext
9994  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995  (eval $ac_compile) 2>&5
9996  ac_status=$?
9997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998  (exit $ac_status); }; then
9999   if test "$lt_cv_prog_gnu_ld" = yes; then
10000    case `/usr/bin/file conftest.$ac_objext` in
10001    *32-bit*)
10002      LD="${LD-ld} -melf32bsmip"
10003      ;;
10004    *N32*)
10005      LD="${LD-ld} -melf32bmipn32"
10006      ;;
10007    *64-bit*)
10008      LD="${LD-ld} -melf64bmip"
10009      ;;
10010    esac
10011   else
10012    case `/usr/bin/file conftest.$ac_objext` in
10013    *32-bit*)
10014      LD="${LD-ld} -32"
10015      ;;
10016    *N32*)
10017      LD="${LD-ld} -n32"
10018      ;;
10019    *64-bit*)
10020      LD="${LD-ld} -64"
10021      ;;
10022    esac
10023   fi
10024  fi
10025  rm -rf conftest*
10026  ;;
10027
10028x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10029  # Find out which ABI we are using.
10030  echo 'int i;' > conftest.$ac_ext
10031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032  (eval $ac_compile) 2>&5
10033  ac_status=$?
10034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035  (exit $ac_status); }; then
10036    case `/usr/bin/file conftest.o` in
10037    *32-bit*)
10038      case $host in
10039        x86_64-*linux*)
10040          LD="${LD-ld} -m elf_i386"
10041          ;;
10042        ppc64-*linux*|powerpc64-*linux*)
10043          LD="${LD-ld} -m elf32ppclinux"
10044          ;;
10045        s390x-*linux*)
10046          LD="${LD-ld} -m elf_s390"
10047          ;;
10048        sparc64-*linux*)
10049          LD="${LD-ld} -m elf32_sparc"
10050          ;;
10051      esac
10052      ;;
10053    *64-bit*)
10054      case $host in
10055        x86_64-*linux*)
10056          LD="${LD-ld} -m elf_x86_64"
10057          ;;
10058        ppc*-*linux*|powerpc*-*linux*)
10059          LD="${LD-ld} -m elf64ppc"
10060          ;;
10061        s390*-*linux*)
10062          LD="${LD-ld} -m elf64_s390"
10063          ;;
10064        sparc*-*linux*)
10065          LD="${LD-ld} -m elf64_sparc"
10066          ;;
10067      esac
10068      ;;
10069    esac
10070  fi
10071  rm -rf conftest*
10072  ;;
10073
10074*-*-sco3.2v5*)
10075  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10076  SAVE_CFLAGS="$CFLAGS"
10077  CFLAGS="$CFLAGS -belf"
10078  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10079echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10080if test "${lt_cv_cc_needs_belf+set}" = set; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  ac_ext=c
10084ac_cpp='$CPP $CPPFLAGS'
10085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10087ac_compiler_gnu=$ac_cv_c_compiler_gnu
10088
10089     cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h.  */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h.  */
10095
10096#ifdef F77_DUMMY_MAIN
10097
10098#  ifdef __cplusplus
10099     extern "C"
10100#  endif
10101   int F77_DUMMY_MAIN() { return 1; }
10102
10103#endif
10104int
10105main ()
10106{
10107
10108  ;
10109  return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114  (eval $ac_link) 2>conftest.er1
10115  ac_status=$?
10116  grep -v '^ *+' conftest.er1 >conftest.err
10117  rm -f conftest.er1
10118  cat conftest.err >&5
10119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120  (exit $ac_status); } &&
10121         { ac_try='test -z "$ac_c_werror_flag"
10122                         || test ! -s conftest.err'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; } &&
10128         { ac_try='test -s conftest$ac_exeext'
10129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130  (eval $ac_try) 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; }; then
10134  lt_cv_cc_needs_belf=yes
10135else
10136  echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139lt_cv_cc_needs_belf=no
10140fi
10141rm -f conftest.err conftest.$ac_objext \
10142      conftest$ac_exeext conftest.$ac_ext
10143     ac_ext=c
10144ac_cpp='$CPP $CPPFLAGS'
10145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147ac_compiler_gnu=$ac_cv_c_compiler_gnu
10148
10149fi
10150echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10151echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10152  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10153    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10154    CFLAGS="$SAVE_CFLAGS"
10155  fi
10156  ;;
10157sparc*-*solaris*)
10158  # Find out which ABI we are using.
10159  echo 'int i;' > conftest.$ac_ext
10160  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161  (eval $ac_compile) 2>&5
10162  ac_status=$?
10163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164  (exit $ac_status); }; then
10165    case `/usr/bin/file conftest.o` in
10166    *64-bit*)
10167      case $lt_cv_prog_gnu_ld in
10168      yes*) LD="${LD-ld} -m elf64_sparc" ;;
10169      *)    LD="${LD-ld} -64" ;;
10170      esac
10171      ;;
10172    esac
10173  fi
10174  rm -rf conftest*
10175  ;;
10176
10177
10178esac
10179
10180need_locks="$enable_libtool_lock"
10181
10182
10183ac_ext=c
10184ac_cpp='$CPP $CPPFLAGS'
10185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10187ac_compiler_gnu=$ac_cv_c_compiler_gnu
10188echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10189echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10190# On Suns, sometimes $CPP names a directory.
10191if test -n "$CPP" && test -d "$CPP"; then
10192  CPP=
10193fi
10194if test -z "$CPP"; then
10195  if test "${ac_cv_prog_CPP+set}" = set; then
10196  echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198      # Double quotes because CPP needs to be expanded
10199    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10200    do
10201      ac_preproc_ok=false
10202for ac_c_preproc_warn_flag in '' yes
10203do
10204  # Use a header file that comes with gcc, so configuring glibc
10205  # with a fresh cross-compiler works.
10206  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207  # <limits.h> exists even on freestanding compilers.
10208  # On the NeXT, cc -E runs the code through the compiler's parser,
10209  # not just through cpp. "Syntax error" is here to catch this case.
10210  cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216#ifdef __STDC__
10217# include <limits.h>
10218#else
10219# include <assert.h>
10220#endif
10221                     Syntax error
10222_ACEOF
10223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10224  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } >/dev/null; then
10231  if test -s conftest.err; then
10232    ac_cpp_err=$ac_c_preproc_warn_flag
10233    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10234  else
10235    ac_cpp_err=
10236  fi
10237else
10238  ac_cpp_err=yes
10239fi
10240if test -z "$ac_cpp_err"; then
10241  :
10242else
10243  echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246  # Broken: fails on valid input.
10247continue
10248fi
10249rm -f conftest.err conftest.$ac_ext
10250
10251  # OK, works on sane cases.  Now check whether non-existent headers
10252  # can be detected and how.
10253  cat >conftest.$ac_ext <<_ACEOF
10254/* confdefs.h.  */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h.  */
10259#include <ac_nonexistent.h>
10260_ACEOF
10261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10262  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10263  ac_status=$?
10264  grep -v '^ *+' conftest.er1 >conftest.err
10265  rm -f conftest.er1
10266  cat conftest.err >&5
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); } >/dev/null; then
10269  if test -s conftest.err; then
10270    ac_cpp_err=$ac_c_preproc_warn_flag
10271    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10272  else
10273    ac_cpp_err=
10274  fi
10275else
10276  ac_cpp_err=yes
10277fi
10278if test -z "$ac_cpp_err"; then
10279  # Broken: success on invalid input.
10280continue
10281else
10282  echo "$as_me: failed program was:" >&5
10283sed 's/^/| /' conftest.$ac_ext >&5
10284
10285  # Passes both tests.
10286ac_preproc_ok=:
10287break
10288fi
10289rm -f conftest.err conftest.$ac_ext
10290
10291done
10292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10293rm -f conftest.err conftest.$ac_ext
10294if $ac_preproc_ok; then
10295  break
10296fi
10297
10298    done
10299    ac_cv_prog_CPP=$CPP
10300
10301fi
10302  CPP=$ac_cv_prog_CPP
10303else
10304  ac_cv_prog_CPP=$CPP
10305fi
10306echo "$as_me:$LINENO: result: $CPP" >&5
10307echo "${ECHO_T}$CPP" >&6
10308ac_preproc_ok=false
10309for ac_c_preproc_warn_flag in '' yes
10310do
10311  # Use a header file that comes with gcc, so configuring glibc
10312  # with a fresh cross-compiler works.
10313  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314  # <limits.h> exists even on freestanding compilers.
10315  # On the NeXT, cc -E runs the code through the compiler's parser,
10316  # not just through cpp. "Syntax error" is here to catch this case.
10317  cat >conftest.$ac_ext <<_ACEOF
10318/* confdefs.h.  */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h.  */
10323#ifdef __STDC__
10324# include <limits.h>
10325#else
10326# include <assert.h>
10327#endif
10328                     Syntax error
10329_ACEOF
10330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10331  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10332  ac_status=$?
10333  grep -v '^ *+' conftest.er1 >conftest.err
10334  rm -f conftest.er1
10335  cat conftest.err >&5
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); } >/dev/null; then
10338  if test -s conftest.err; then
10339    ac_cpp_err=$ac_c_preproc_warn_flag
10340    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10341  else
10342    ac_cpp_err=
10343  fi
10344else
10345  ac_cpp_err=yes
10346fi
10347if test -z "$ac_cpp_err"; then
10348  :
10349else
10350  echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353  # Broken: fails on valid input.
10354continue
10355fi
10356rm -f conftest.err conftest.$ac_ext
10357
10358  # OK, works on sane cases.  Now check whether non-existent headers
10359  # can be detected and how.
10360  cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h.  */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h.  */
10366#include <ac_nonexistent.h>
10367_ACEOF
10368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10370  ac_status=$?
10371  grep -v '^ *+' conftest.er1 >conftest.err
10372  rm -f conftest.er1
10373  cat conftest.err >&5
10374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); } >/dev/null; then
10376  if test -s conftest.err; then
10377    ac_cpp_err=$ac_c_preproc_warn_flag
10378    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10379  else
10380    ac_cpp_err=
10381  fi
10382else
10383  ac_cpp_err=yes
10384fi
10385if test -z "$ac_cpp_err"; then
10386  # Broken: success on invalid input.
10387continue
10388else
10389  echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392  # Passes both tests.
10393ac_preproc_ok=:
10394break
10395fi
10396rm -f conftest.err conftest.$ac_ext
10397
10398done
10399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10400rm -f conftest.err conftest.$ac_ext
10401if $ac_preproc_ok; then
10402  :
10403else
10404  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10405See \`config.log' for more details." >&5
10406echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10407See \`config.log' for more details." >&2;}
10408   { (exit 1); exit 1; }; }
10409fi
10410
10411ac_ext=c
10412ac_cpp='$CPP $CPPFLAGS'
10413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415ac_compiler_gnu=$ac_cv_c_compiler_gnu
10416
10417
10418echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10419echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10420if test "${ac_cv_header_stdc+set}" = set; then
10421  echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423  cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h.  */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h.  */
10429#include <stdlib.h>
10430#include <stdarg.h>
10431#include <string.h>
10432#include <float.h>
10433
10434#ifdef F77_DUMMY_MAIN
10435
10436#  ifdef __cplusplus
10437     extern "C"
10438#  endif
10439   int F77_DUMMY_MAIN() { return 1; }
10440
10441#endif
10442int
10443main ()
10444{
10445
10446  ;
10447  return 0;
10448}
10449_ACEOF
10450rm -f conftest.$ac_objext
10451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452  (eval $ac_compile) 2>conftest.er1
10453  ac_status=$?
10454  grep -v '^ *+' conftest.er1 >conftest.err
10455  rm -f conftest.er1
10456  cat conftest.err >&5
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } &&
10459         { ac_try='test -z "$ac_c_werror_flag"
10460                         || test ! -s conftest.err'
10461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462  (eval $ac_try) 2>&5
10463  ac_status=$?
10464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465  (exit $ac_status); }; } &&
10466         { ac_try='test -s conftest.$ac_objext'
10467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468  (eval $ac_try) 2>&5
10469  ac_status=$?
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; }; then
10472  ac_cv_header_stdc=yes
10473else
10474  echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477ac_cv_header_stdc=no
10478fi
10479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10480
10481if test $ac_cv_header_stdc = yes; then
10482  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10483  cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h.  */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h.  */
10489#include <string.h>
10490
10491_ACEOF
10492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10493  $EGREP "memchr" >/dev/null 2>&1; then
10494  :
10495else
10496  ac_cv_header_stdc=no
10497fi
10498rm -f conftest*
10499
10500fi
10501
10502if test $ac_cv_header_stdc = yes; then
10503  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10504  cat >conftest.$ac_ext <<_ACEOF
10505/* confdefs.h.  */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h.  */
10510#include <stdlib.h>
10511
10512_ACEOF
10513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10514  $EGREP "free" >/dev/null 2>&1; then
10515  :
10516else
10517  ac_cv_header_stdc=no
10518fi
10519rm -f conftest*
10520
10521fi
10522
10523if test $ac_cv_header_stdc = yes; then
10524  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10525  if test "$cross_compiling" = yes; then
10526  :
10527else
10528  cat >conftest.$ac_ext <<_ACEOF
10529/* confdefs.h.  */
10530_ACEOF
10531cat confdefs.h >>conftest.$ac_ext
10532cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h.  */
10534#include <ctype.h>
10535#if ((' ' & 0x0FF) == 0x020)
10536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10538#else
10539# define ISLOWER(c) \
10540                   (('a' <= (c) && (c) <= 'i') \
10541                     || ('j' <= (c) && (c) <= 'r') \
10542                     || ('s' <= (c) && (c) <= 'z'))
10543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10544#endif
10545
10546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10547int
10548main ()
10549{
10550  int i;
10551  for (i = 0; i < 256; i++)
10552    if (XOR (islower (i), ISLOWER (i))
10553        || toupper (i) != TOUPPER (i))
10554      exit(2);
10555  exit (0);
10556}
10557_ACEOF
10558rm -f conftest$ac_exeext
10559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560  (eval $ac_link) 2>&5
10561  ac_status=$?
10562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565  (eval $ac_try) 2>&5
10566  ac_status=$?
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); }; }; then
10569  :
10570else
10571  echo "$as_me: program exited with status $ac_status" >&5
10572echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575( exit $ac_status )
10576ac_cv_header_stdc=no
10577fi
10578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10579fi
10580fi
10581fi
10582echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10583echo "${ECHO_T}$ac_cv_header_stdc" >&6
10584if test $ac_cv_header_stdc = yes; then
10585
10586cat >>confdefs.h <<\_ACEOF
10587#define STDC_HEADERS 1
10588_ACEOF
10589
10590fi
10591
10592# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10603                  inttypes.h stdint.h unistd.h
10604do
10605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10606echo "$as_me:$LINENO: checking for $ac_header" >&5
10607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10608if eval "test \"\${$as_ac_Header+set}\" = set"; then
10609  echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611  cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h.  */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h.  */
10617$ac_includes_default
10618
10619#include <$ac_header>
10620_ACEOF
10621rm -f conftest.$ac_objext
10622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10623  (eval $ac_compile) 2>conftest.er1
10624  ac_status=$?
10625  grep -v '^ *+' conftest.er1 >conftest.err
10626  rm -f conftest.er1
10627  cat conftest.err >&5
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); } &&
10630         { ac_try='test -z "$ac_c_werror_flag"
10631                         || test ! -s conftest.err'
10632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633  (eval $ac_try) 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); }; } &&
10637         { ac_try='test -s conftest.$ac_objext'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; }; then
10643  eval "$as_ac_Header=yes"
10644else
10645  echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5
10647
10648eval "$as_ac_Header=no"
10649fi
10650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10651fi
10652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10654if test `eval echo '${'$as_ac_Header'}'` = yes; then
10655  cat >>confdefs.h <<_ACEOF
10656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10657_ACEOF
10658
10659fi
10660
10661done
10662
10663
10664
10665for ac_header in dlfcn.h
10666do
10667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10668if eval "test \"\${$as_ac_Header+set}\" = set"; then
10669  echo "$as_me:$LINENO: checking for $ac_header" >&5
10670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10671if eval "test \"\${$as_ac_Header+set}\" = set"; then
10672  echo $ECHO_N "(cached) $ECHO_C" >&6
10673fi
10674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10676else
10677  # Is the header compilable?
10678echo "$as_me:$LINENO: checking $ac_header usability" >&5
10679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10680cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h.  */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h.  */
10686$ac_includes_default
10687#include <$ac_header>
10688_ACEOF
10689rm -f conftest.$ac_objext
10690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691  (eval $ac_compile) 2>conftest.er1
10692  ac_status=$?
10693  grep -v '^ *+' conftest.er1 >conftest.err
10694  rm -f conftest.er1
10695  cat conftest.err >&5
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); } &&
10698         { ac_try='test -z "$ac_c_werror_flag"
10699                         || test ! -s conftest.err'
10700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701  (eval $ac_try) 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); }; } &&
10705         { ac_try='test -s conftest.$ac_objext'
10706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707  (eval $ac_try) 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; }; then
10711  ac_header_compiler=yes
10712else
10713  echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716ac_header_compiler=no
10717fi
10718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10720echo "${ECHO_T}$ac_header_compiler" >&6
10721
10722# Is the header present?
10723echo "$as_me:$LINENO: checking $ac_header presence" >&5
10724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10725cat >conftest.$ac_ext <<_ACEOF
10726/* confdefs.h.  */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h.  */
10731#include <$ac_header>
10732_ACEOF
10733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10734  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10735  ac_status=$?
10736  grep -v '^ *+' conftest.er1 >conftest.err
10737  rm -f conftest.er1
10738  cat conftest.err >&5
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); } >/dev/null; then
10741  if test -s conftest.err; then
10742    ac_cpp_err=$ac_c_preproc_warn_flag
10743    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10744  else
10745    ac_cpp_err=
10746  fi
10747else
10748  ac_cpp_err=yes
10749fi
10750if test -z "$ac_cpp_err"; then
10751  ac_header_preproc=yes
10752else
10753  echo "$as_me: failed program was:" >&5
10754sed 's/^/| /' conftest.$ac_ext >&5
10755
10756  ac_header_preproc=no
10757fi
10758rm -f conftest.err conftest.$ac_ext
10759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10760echo "${ECHO_T}$ac_header_preproc" >&6
10761
10762# So?  What about this header?
10763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10764  yes:no: )
10765    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10769    ac_header_preproc=yes
10770    ;;
10771  no:yes:* )
10772    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10774    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10775echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10776    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10778    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10779echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10780    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10782    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10784    (
10785      cat <<\_ASBOX
10786## --------------------------------------------------------------- ##
10787## Report this to http://projects.coin-or.org/BuildTools/newticket ##
10788## --------------------------------------------------------------- ##
10789_ASBOX
10790    ) |
10791      sed "s/^/$as_me: WARNING:     /" >&2
10792    ;;
10793esac
10794echo "$as_me:$LINENO: checking for $ac_header" >&5
10795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10796if eval "test \"\${$as_ac_Header+set}\" = set"; then
10797  echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799  eval "$as_ac_Header=\$ac_header_preproc"
10800fi
10801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803
10804fi
10805if test `eval echo '${'$as_ac_Header'}'` = yes; then
10806  cat >>confdefs.h <<_ACEOF
10807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10808_ACEOF
10809
10810fi
10811
10812done
10813
10814ac_ext=cc
10815ac_cpp='$CXXCPP $CPPFLAGS'
10816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10819if test -n "$ac_tool_prefix"; then
10820  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10821  do
10822    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10824echo "$as_me:$LINENO: checking for $ac_word" >&5
10825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10826if test "${ac_cv_prog_CXX+set}" = set; then
10827  echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829  if test -n "$CXX"; then
10830  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10831else
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835  IFS=$as_save_IFS
10836  test -z "$as_dir" && as_dir=.
10837  for ac_exec_ext in '' $ac_executable_extensions; do
10838  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841    break 2
10842  fi
10843done
10844done
10845
10846fi
10847fi
10848CXX=$ac_cv_prog_CXX
10849if test -n "$CXX"; then
10850  echo "$as_me:$LINENO: result: $CXX" >&5
10851echo "${ECHO_T}$CXX" >&6
10852else
10853  echo "$as_me:$LINENO: result: no" >&5
10854echo "${ECHO_T}no" >&6
10855fi
10856
10857    test -n "$CXX" && break
10858  done
10859fi
10860if test -z "$CXX"; then
10861  ac_ct_CXX=$CXX
10862  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10863do
10864  # Extract the first word of "$ac_prog", so it can be a program name with args.
10865set dummy $ac_prog; ac_word=$2
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10869  echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871  if test -n "$ac_ct_CXX"; then
10872  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10873else
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877  IFS=$as_save_IFS
10878  test -z "$as_dir" && as_dir=.
10879  for ac_exec_ext in '' $ac_executable_extensions; do
10880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881    ac_cv_prog_ac_ct_CXX="$ac_prog"
10882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883    break 2
10884  fi
10885done
10886done
10887
10888fi
10889fi
10890ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10891if test -n "$ac_ct_CXX"; then
10892  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10893echo "${ECHO_T}$ac_ct_CXX" >&6
10894else
10895  echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
10897fi
10898
10899  test -n "$ac_ct_CXX" && break
10900done
10901test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10902
10903  CXX=$ac_ct_CXX
10904fi
10905
10906
10907# Provide some information about the compiler.
10908echo "$as_me:$LINENO:" \
10909     "checking for C++ compiler version" >&5
10910ac_compiler=`set X $ac_compile; echo $2`
10911{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10912  (eval $ac_compiler --version </dev/null >&5) 2>&5
10913  ac_status=$?
10914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915  (exit $ac_status); }
10916{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10917  (eval $ac_compiler -v </dev/null >&5) 2>&5
10918  ac_status=$?
10919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920  (exit $ac_status); }
10921{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10922  (eval $ac_compiler -V </dev/null >&5) 2>&5
10923  ac_status=$?
10924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925  (exit $ac_status); }
10926
10927echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10930  echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932  cat >conftest.$ac_ext <<_ACEOF
10933/* confdefs.h.  */
10934_ACEOF
10935cat confdefs.h >>conftest.$ac_ext
10936cat >>conftest.$ac_ext <<_ACEOF
10937/* end confdefs.h.  */
10938
10939#ifdef F77_DUMMY_MAIN
10940
10941#  ifdef __cplusplus
10942     extern "C"
10943#  endif
10944   int F77_DUMMY_MAIN() { return 1; }
10945
10946#endif
10947int
10948main ()
10949{
10950#ifndef __GNUC__
10951       choke me
10952#endif
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext
10959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960  (eval $ac_compile) 2>conftest.er1
10961  ac_status=$?
10962  grep -v '^ *+' conftest.er1 >conftest.err
10963  rm -f conftest.er1
10964  cat conftest.err >&5
10965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966  (exit $ac_status); } &&
10967         { ac_try='test -z "$ac_cxx_werror_flag"
10968                         || test ! -s conftest.err'
10969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970