source: ThirdParty/Lapack/stable/1.3/configure @ 2343

Last change on this file since 2343 was 2343, checked in by stefan, 9 years ago

rerun autotools

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