source: branches/0.2a/Bonmin/configure @ 528

Last change on this file since 528 was 528, checked in by pbonami, 12 years ago

Test a 0.2a branch

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