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

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

temporarily committing release candidate

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