source: stable/1.3/Bonmin/configure @ 1579

Last change on this file since 1579 was 1579, checked in by pbonami, 10 years ago

temporarily committing release candidate to stable

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