source: ThirdParty/Lapack/trunk/configure @ 3396

Last change on this file since 3396 was 3396, checked in by tkr, 7 years ago

Re-running the autotools to fix bug with dependency linking

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