source: ThirdParty/Lapack/stable/1.4/configure @ 2787

Last change on this file since 2787 was 2787, checked in by stefan, 8 years ago

restoring BuildTools/ThirdParty/Lapack?/stable/1.4

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