source: trunk/Couenne/configure @ 979

Last change on this file since 979 was 979, checked in by stefan, 6 years ago

there does not need to be a couenne.exe - thanks ted; rerun autotools

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