source: branches/CouenneClassifier/Couenne/configure @ 992

Last change on this file since 992 was 992, checked in by pbelotti, 6 years ago

added heuristic

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