source: ThirdParty/Lapack/trunk/configure @ 2185

Last change on this file since 2185 was 2169, checked in by stefan, 10 years ago

rerun autotools

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