source: stable/1.16/configure @ 2138

Last change on this file since 2138 was 2138, checked in by tkr, 4 years ago

restoring Clp/stable/1.16

  • Property svn:executable set to *
File size: 775.6 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.16.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.16'
434PACKAGE_STRING='Clp 1.16'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all CoinUtils"
485ac_subdirs_all="$ac_subdirs_all Osi"
486ac_subdirs_all="$ac_subdirs_all Clp"
487ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
488ac_subst_files=''
489
490# Initialize some variables set by options.
491ac_init_help=
492ac_init_version=false
493# The variables have the same names as the options, with
494# dashes changed to underlines.
495cache_file=/dev/null
496exec_prefix=NONE
497no_create=
498no_recursion=
499prefix=NONE
500program_prefix=NONE
501program_suffix=NONE
502program_transform_name=s,x,x,
503silent=
504site=
505srcdir=
506verbose=
507x_includes=NONE
508x_libraries=NONE
509
510# Installation directory options.
511# These are left unexpanded so users can "make install exec_prefix=/foo"
512# and all the variables that are supposed to be based on exec_prefix
513# by default will actually change.
514# Use braces instead of parens because sh, perl, etc. also accept them.
515bindir='${exec_prefix}/bin'
516sbindir='${exec_prefix}/sbin'
517libexecdir='${exec_prefix}/libexec'
518datadir='${prefix}/share'
519sysconfdir='${prefix}/etc'
520sharedstatedir='${prefix}/com'
521localstatedir='${prefix}/var'
522libdir='${exec_prefix}/lib'
523includedir='${prefix}/include'
524oldincludedir='/usr/include'
525infodir='${prefix}/info'
526mandir='${prefix}/man'
527
528ac_prev=
529for ac_option
530do
531  # If the previous option needs an argument, assign it.
532  if test -n "$ac_prev"; then
533    eval "$ac_prev=\$ac_option"
534    ac_prev=
535    continue
536  fi
537
538  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
539
540  # Accept the important Cygnus configure options, so we can diagnose typos.
541
542  case $ac_option in
543
544  -bindir | --bindir | --bindi | --bind | --bin | --bi)
545    ac_prev=bindir ;;
546  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
547    bindir=$ac_optarg ;;
548
549  -build | --build | --buil | --bui | --bu)
550    ac_prev=build_alias ;;
551  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
552    build_alias=$ac_optarg ;;
553
554  -cache-file | --cache-file | --cache-fil | --cache-fi \
555  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
556    ac_prev=cache_file ;;
557  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
558  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
559    cache_file=$ac_optarg ;;
560
561  --config-cache | -C)
562    cache_file=config.cache ;;
563
564  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
565    ac_prev=datadir ;;
566  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
567  | --da=*)
568    datadir=$ac_optarg ;;
569
570  -disable-* | --disable-*)
571    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575   { (exit 1); exit 1; }; }
576    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577    eval "enable_$ac_feature=no" ;;
578
579  -enable-* | --enable-*)
580    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
581    # Reject names that are not valid shell variable names.
582    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
584   { (exit 1); exit 1; }; }
585    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
586    case $ac_option in
587      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588      *) ac_optarg=yes ;;
589    esac
590    eval "enable_$ac_feature='$ac_optarg'" ;;
591
592  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
593  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
594  | --exec | --exe | --ex)
595    ac_prev=exec_prefix ;;
596  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
597  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
598  | --exec=* | --exe=* | --ex=*)
599    exec_prefix=$ac_optarg ;;
600
601  -gas | --gas | --ga | --g)
602    # Obsolete; use --with-gas.
603    with_gas=yes ;;
604
605  -help | --help | --hel | --he | -h)
606    ac_init_help=long ;;
607  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
608    ac_init_help=recursive ;;
609  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
610    ac_init_help=short ;;
611
612  -host | --host | --hos | --ho)
613    ac_prev=host_alias ;;
614  -host=* | --host=* | --hos=* | --ho=*)
615    host_alias=$ac_optarg ;;
616
617  -includedir | --includedir | --includedi | --included | --include \
618  | --includ | --inclu | --incl | --inc)
619    ac_prev=includedir ;;
620  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
621  | --includ=* | --inclu=* | --incl=* | --inc=*)
622    includedir=$ac_optarg ;;
623
624  -infodir | --infodir | --infodi | --infod | --info | --inf)
625    ac_prev=infodir ;;
626  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
627    infodir=$ac_optarg ;;
628
629  -libdir | --libdir | --libdi | --libd)
630    ac_prev=libdir ;;
631  -libdir=* | --libdir=* | --libdi=* | --libd=*)
632    libdir=$ac_optarg ;;
633
634  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
635  | --libexe | --libex | --libe)
636    ac_prev=libexecdir ;;
637  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
638  | --libexe=* | --libex=* | --libe=*)
639    libexecdir=$ac_optarg ;;
640
641  -localstatedir | --localstatedir | --localstatedi | --localstated \
642  | --localstate | --localstat | --localsta | --localst \
643  | --locals | --local | --loca | --loc | --lo)
644    ac_prev=localstatedir ;;
645  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
646  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
647  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
648    localstatedir=$ac_optarg ;;
649
650  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
651    ac_prev=mandir ;;
652  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
653    mandir=$ac_optarg ;;
654
655  -nfp | --nfp | --nf)
656    # Obsolete; use --without-fp.
657    with_fp=no ;;
658
659  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
660  | --no-cr | --no-c | -n)
661    no_create=yes ;;
662
663  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
664  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
665    no_recursion=yes ;;
666
667  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
668  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
669  | --oldin | --oldi | --old | --ol | --o)
670    ac_prev=oldincludedir ;;
671  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
672  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
673  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
674    oldincludedir=$ac_optarg ;;
675
676  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
677    ac_prev=prefix ;;
678  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
679    prefix=$ac_optarg ;;
680
681  -program-prefix | --program-prefix | --program-prefi | --program-pref \
682  | --program-pre | --program-pr | --program-p)
683    ac_prev=program_prefix ;;
684  -program-prefix=* | --program-prefix=* | --program-prefi=* \
685  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
686    program_prefix=$ac_optarg ;;
687
688  -program-suffix | --program-suffix | --program-suffi | --program-suff \
689  | --program-suf | --program-su | --program-s)
690    ac_prev=program_suffix ;;
691  -program-suffix=* | --program-suffix=* | --program-suffi=* \
692  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
693    program_suffix=$ac_optarg ;;
694
695  -program-transform-name | --program-transform-name \
696  | --program-transform-nam | --program-transform-na \
697  | --program-transform-n | --program-transform- \
698  | --program-transform | --program-transfor \
699  | --program-transfo | --program-transf \
700  | --program-trans | --program-tran \
701  | --progr-tra | --program-tr | --program-t)
702    ac_prev=program_transform_name ;;
703  -program-transform-name=* | --program-transform-name=* \
704  | --program-transform-nam=* | --program-transform-na=* \
705  | --program-transform-n=* | --program-transform-=* \
706  | --program-transform=* | --program-transfor=* \
707  | --program-transfo=* | --program-transf=* \
708  | --program-trans=* | --program-tran=* \
709  | --progr-tra=* | --program-tr=* | --program-t=*)
710    program_transform_name=$ac_optarg ;;
711
712  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
713  | -silent | --silent | --silen | --sile | --sil)
714    silent=yes ;;
715
716  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
717    ac_prev=sbindir ;;
718  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
719  | --sbi=* | --sb=*)
720    sbindir=$ac_optarg ;;
721
722  -sharedstatedir | --sharedstatedir | --sharedstatedi \
723  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
724  | --sharedst | --shareds | --shared | --share | --shar \
725  | --sha | --sh)
726    ac_prev=sharedstatedir ;;
727  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
728  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
729  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
730  | --sha=* | --sh=*)
731    sharedstatedir=$ac_optarg ;;
732
733  -site | --site | --sit)
734    ac_prev=site ;;
735  -site=* | --site=* | --sit=*)
736    site=$ac_optarg ;;
737
738  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
739    ac_prev=srcdir ;;
740  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
741    srcdir=$ac_optarg ;;
742
743  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
744  | --syscon | --sysco | --sysc | --sys | --sy)
745    ac_prev=sysconfdir ;;
746  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
747  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
748    sysconfdir=$ac_optarg ;;
749
750  -target | --target | --targe | --targ | --tar | --ta | --t)
751    ac_prev=target_alias ;;
752  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
753    target_alias=$ac_optarg ;;
754
755  -v | -verbose | --verbose | --verbos | --verbo | --verb)
756    verbose=yes ;;
757
758  -version | --version | --versio | --versi | --vers | -V)
759    ac_init_version=: ;;
760
761  -with-* | --with-*)
762    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
763    # Reject names that are not valid shell variable names.
764    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765      { echo "$as_me: error: invalid package name: $ac_package" >&2
766   { (exit 1); exit 1; }; }
767    ac_package=`echo $ac_package| sed 's/-/_/g'`
768    case $ac_option in
769      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
770      *) ac_optarg=yes ;;
771    esac
772    eval "with_$ac_package='$ac_optarg'" ;;
773
774  -without-* | --without-*)
775    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
776    # Reject names that are not valid shell variable names.
777    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
778      { echo "$as_me: error: invalid package name: $ac_package" >&2
779   { (exit 1); exit 1; }; }
780    ac_package=`echo $ac_package | sed 's/-/_/g'`
781    eval "with_$ac_package=no" ;;
782
783  --x)
784    # Obsolete; use --with-x.
785    with_x=yes ;;
786
787  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788  | --x-incl | --x-inc | --x-in | --x-i)
789    ac_prev=x_includes ;;
790  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
792    x_includes=$ac_optarg ;;
793
794  -x-libraries | --x-libraries | --x-librarie | --x-librari \
795  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796    ac_prev=x_libraries ;;
797  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
799    x_libraries=$ac_optarg ;;
800
801  -*) { echo "$as_me: error: unrecognized option: $ac_option
802Try \`$0 --help' for more information." >&2
803   { (exit 1); exit 1; }; }
804    ;;
805
806  *=*)
807    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
808    # Reject names that are not valid shell variable names.
809    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
810      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
811   { (exit 1); exit 1; }; }
812    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
813    eval "$ac_envvar='$ac_optarg'"
814    export $ac_envvar ;;
815
816  *)
817    # FIXME: should be removed in autoconf 3.0.
818    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
819    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
821    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
822    ;;
823
824  esac
825done
826
827if test -n "$ac_prev"; then
828  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
829  { echo "$as_me: error: missing argument to $ac_option" >&2
830   { (exit 1); exit 1; }; }
831fi
832
833# Be sure to have absolute paths.
834for ac_var in exec_prefix prefix
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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# Be sure to have absolute paths.
845for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
846              localstatedir libdir includedir oldincludedir infodir mandir
847do
848  eval ac_val=$`echo $ac_var`
849  case $ac_val in
850    [\\/$]* | ?:[\\/]* ) ;;
851    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
852   { (exit 1); exit 1; }; };;
853  esac
854done
855
856# There might be people who depend on the old broken behavior: `$host'
857# used to hold the argument of --host etc.
858# FIXME: To remove some day.
859build=$build_alias
860host=$host_alias
861target=$target_alias
862
863# FIXME: To remove some day.
864if test "x$host_alias" != x; then
865  if test "x$build_alias" = x; then
866    cross_compiling=maybe
867    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
868    If a cross compiler is detected then cross compile mode will be used." >&2
869  elif test "x$build_alias" != "x$host_alias"; then
870    cross_compiling=yes
871  fi
872fi
873
874ac_tool_prefix=
875test -n "$host_alias" && ac_tool_prefix=$host_alias-
876
877test "$silent" = yes && exec 6>/dev/null
878
879
880# Find the source files, if location was not specified.
881if test -z "$srcdir"; then
882  ac_srcdir_defaulted=yes
883  # Try the directory containing this script, then its parent.
884  ac_confdir=`(dirname "$0") 2>/dev/null ||
885$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
886         X"$0" : 'X\(//\)[^/]' \| \
887         X"$0" : 'X\(//\)$' \| \
888         X"$0" : 'X\(/\)' \| \
889         .     : '\(.\)' 2>/dev/null ||
890echo X"$0" |
891    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
892          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
893          /^X\(\/\/\)$/{ s//\1/; q; }
894          /^X\(\/\).*/{ s//\1/; q; }
895          s/.*/./; q'`
896  srcdir=$ac_confdir
897  if test ! -r $srcdir/$ac_unique_file; then
898    srcdir=..
899  fi
900else
901  ac_srcdir_defaulted=no
902fi
903if test ! -r $srcdir/$ac_unique_file; then
904  if test "$ac_srcdir_defaulted" = yes; then
905    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
906   { (exit 1); exit 1; }; }
907  else
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
909   { (exit 1); exit 1; }; }
910  fi
911fi
912(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
913  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
914   { (exit 1); exit 1; }; }
915srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
916ac_env_build_alias_set=${build_alias+set}
917ac_env_build_alias_value=$build_alias
918ac_cv_env_build_alias_set=${build_alias+set}
919ac_cv_env_build_alias_value=$build_alias
920ac_env_host_alias_set=${host_alias+set}
921ac_env_host_alias_value=$host_alias
922ac_cv_env_host_alias_set=${host_alias+set}
923ac_cv_env_host_alias_value=$host_alias
924ac_env_target_alias_set=${target_alias+set}
925ac_env_target_alias_value=$target_alias
926ac_cv_env_target_alias_set=${target_alias+set}
927ac_cv_env_target_alias_value=$target_alias
928ac_env_CDEFS_set=${CDEFS+set}
929ac_env_CDEFS_value=$CDEFS
930ac_cv_env_CDEFS_set=${CDEFS+set}
931ac_cv_env_CDEFS_value=$CDEFS
932ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
933ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
934ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
935ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
936ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
937ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
938ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
939ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
940ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
941ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
942ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
943ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_LDFLAGS_set=${LDFLAGS+set}
953ac_env_LDFLAGS_value=$LDFLAGS
954ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
955ac_cv_env_LDFLAGS_value=$LDFLAGS
956ac_env_CPPFLAGS_set=${CPPFLAGS+set}
957ac_env_CPPFLAGS_value=$CPPFLAGS
958ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
959ac_cv_env_CPPFLAGS_value=$CPPFLAGS
960ac_env_MPICC_set=${MPICC+set}
961ac_env_MPICC_value=$MPICC
962ac_cv_env_MPICC_set=${MPICC+set}
963ac_cv_env_MPICC_value=$MPICC
964ac_env_CXXDEFS_set=${CXXDEFS+set}
965ac_env_CXXDEFS_value=$CXXDEFS
966ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
967ac_cv_env_CXXDEFS_value=$CXXDEFS
968ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
969ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
970ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
971ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
972ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
973ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
974ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
975ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
976ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
977ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
978ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
979ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_MPICXX_set=${MPICXX+set}
989ac_env_MPICXX_value=$MPICXX
990ac_cv_env_MPICXX_set=${MPICXX+set}
991ac_cv_env_MPICXX_value=$MPICXX
992ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
993ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
994ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
995ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
996ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
997ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
998ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
999ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1000ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1001ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1002ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1003ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1004ac_env_F77_set=${F77+set}
1005ac_env_F77_value=$F77
1006ac_cv_env_F77_set=${F77+set}
1007ac_cv_env_F77_value=$F77
1008ac_env_FFLAGS_set=${FFLAGS+set}
1009ac_env_FFLAGS_value=$FFLAGS
1010ac_cv_env_FFLAGS_set=${FFLAGS+set}
1011ac_cv_env_FFLAGS_value=$FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016ac_env_CPP_set=${CPP+set}
1017ac_env_CPP_value=$CPP
1018ac_cv_env_CPP_set=${CPP+set}
1019ac_cv_env_CPP_value=$CPP
1020ac_env_CXXCPP_set=${CXXCPP+set}
1021ac_env_CXXCPP_value=$CXXCPP
1022ac_cv_env_CXXCPP_set=${CXXCPP+set}
1023ac_cv_env_CXXCPP_value=$CXXCPP
1024ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1025ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1026ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028
1029#
1030# Report the --help message.
1031#
1032if test "$ac_init_help" = "long"; then
1033  # Omit some internal or obsolete options to make the list less imposing.
1034  # This message is too long to be a string in the A/UX 3.1 sh.
1035  cat <<_ACEOF
1036\`configure' configures Clp 1.16 to adapt to many kinds of systems.
1037
1038Usage: $0 [OPTION]... [VAR=VALUE]...
1039
1040To assign environment variables (e.g., CC, CFLAGS...), specify them as
1041VAR=VALUE.  See below for descriptions of some of the useful variables.
1042
1043Defaults for the options are specified in brackets.
1044
1045Configuration:
1046  -h, --help              display this help and exit
1047      --help=short        display options specific to this package
1048      --help=recursive    display the short help of all the included packages
1049  -V, --version           display version information and exit
1050  -q, --quiet, --silent   do not print \`checking...' messages
1051      --cache-file=FILE   cache test results in FILE [disabled]
1052  -C, --config-cache      alias for \`--cache-file=config.cache'
1053  -n, --no-create         do not create output files
1054      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1055
1056_ACEOF
1057
1058  cat <<_ACEOF
1059Installation directories:
1060  --prefix=PREFIX         install architecture-independent files in PREFIX
1061                          [$ac_default_prefix]
1062  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1063                          [PREFIX]
1064
1065By default, \`make install' will install all the files in
1066\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1067an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1068for instance \`--prefix=\$HOME'.
1069
1070For better control, use the options below.
1071
1072Fine tuning of the installation directories:
1073  --bindir=DIR           user executables [EPREFIX/bin]
1074  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1075  --libexecdir=DIR       program executables [EPREFIX/libexec]
1076  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1077  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1078  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1079  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1080  --libdir=DIR           object code libraries [EPREFIX/lib]
1081  --includedir=DIR       C header files [PREFIX/include]
1082  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1083  --infodir=DIR          info documentation [PREFIX/info]
1084  --mandir=DIR           man documentation [PREFIX/man]
1085_ACEOF
1086
1087  cat <<\_ACEOF
1088
1089Program names:
1090  --program-prefix=PREFIX            prepend PREFIX to installed program names
1091  --program-suffix=SUFFIX            append SUFFIX to installed program names
1092  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1093
1094System types:
1095  --build=BUILD     configure for building on BUILD [guessed]
1096  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1097_ACEOF
1098fi
1099
1100if test -n "$ac_init_help"; then
1101  case $ac_init_help in
1102     short | recursive ) echo "Configuration of Clp 1.16:";;
1103   esac
1104  cat <<\_ACEOF
1105
1106Optional Features:
1107  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1108  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1109  --enable-debug          compile all projects with debug options tests
1110                          (implies --disable-shared)
1111
1112  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1113  --enable-static[=PKGS]
1114                          build static libraries [default=no]
1115  --disable-dependency-tracking  speeds up one-time build
1116  --enable-dependency-tracking   do not reject slow dependency extractors
1117  --enable-maintainer-mode  enable make rules and dependencies not useful
1118                          (and sometimes confusing) to the casual installer
1119  --enable-shared[=PKGS]
1120                          build shared libraries [default=yes]
1121  --enable-fast-install[=PKGS]
1122                          optimize for fast installation [default=yes]
1123  --disable-libtool-lock  avoid locking (might break parallel builds)
1124  --disable-dependency-linking
1125                          disable linking library dependencies into shared
1126                          libraries
1127
1128Optional Packages:
1129  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1130  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136
1137  --with-asl-lib linker flags for using project ASL
1138  --with-asl-incdir directory with header files for using project ASL
1139  --with-asl-datadir directory with data files for using project ASL
1140  --with-blas-lib linker flags for using project Blas
1141  --with-blas-incdir directory with header files for using project Blas
1142  --with-blas-datadir directory with data files for using project Blas
1143  --with-blas             specify BLAS library (or BUILD to enforce use of
1144                          ThirdParty/Blas)
1145  --with-lapack-lib linker flags for using project Lapack
1146  --with-lapack-incdir directory with header files for using project Lapack
1147  --with-lapack-datadir directory with data files for using project Lapack
1148  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1149                          ThirdParty/Lapack)
1150  --with-metis-lib linker flags for using project Metis
1151  --with-metis-incdir directory with header files for using project Metis
1152  --with-metis-datadir directory with data files for using project Metis
1153  --with-mumps-lib linker flags for using project Mumps
1154  --with-mumps-incdir directory with header files for using project Mumps
1155  --with-mumps-datadir directory with data files for using project Mumps
1156  --with-glpk-lib linker flags for using project Glpk
1157  --with-glpk-incdir directory with header files for using project Glpk
1158  --with-glpk-datadir directory with data files for using project Glpk
1159  --with-sample-lib linker flags for using project Sample
1160  --with-sample-incdir directory with header files for using project Sample
1161  --with-sample-datadir directory with data files for using project Sample
1162  --with-netlib-lib linker flags for using project Netlib
1163  --with-netlib-incdir directory with header files for using project Netlib
1164  --with-netlib-datadir directory with data files for using project Netlib
1165  --with-coinutils-lib linker flags for using project CoinUtils
1166  --with-coinutils-incdir directory with header files for using project
1167                          CoinUtils
1168  --with-coinutils-datadir
1169                          directory with data files for using project
1170                          CoinUtils
1171  --with-osi-lib linker flags for using project Osi
1172  --with-osi-incdir directory with header files for using project Osi
1173  --with-osi-datadir directory with data files for using project Osi
1174  --with-clp-lib linker flags for using project Clp
1175  --with-clp-incdir directory with header files for using project Clp
1176  --with-clp-datadir directory with data files for using project Clp
1177  --with-dot              use dot (from graphviz) when creating documentation
1178                          with doxygen if available; --without-dot to disable
1179
1180Some influential environment variables:
1181  CDEFS       Additional -D flags to be used when compiling C code.
1182  ADD_CFLAGS  Additional C compiler options
1183  DBG_CFLAGS  Debug C compiler options
1184  OPT_CFLAGS  Optimize C compiler options
1185  CC          C compiler command
1186  CFLAGS      C compiler flags
1187  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1188              nonstandard directory <lib dir>
1189  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190              headers in a nonstandard directory <include dir>
1191  MPICC       C MPI Compiler
1192  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1193  ADD_CXXFLAGS
1194              Additional C++ compiler options
1195  DBG_CXXFLAGS
1196              Debug C++ compiler options
1197  OPT_CXXFLAGS
1198              Optimize C++ compiler options
1199  CXX         C++ compiler command
1200  CXXFLAGS    C++ compiler flags
1201  MPICXX      C++ MPI Compiler
1202  ADD_FFLAGS  Additional Fortran compiler options
1203  DBG_FFLAGS  Debug Fortran compiler options
1204  OPT_FFLAGS  Optimize Fortran compiler options
1205  F77         Fortran 77 compiler command
1206  FFLAGS      Fortran 77 compiler flags
1207  MPIF77      Fortran MPI Compiler
1208  CPP         C preprocessor
1209  CXXCPP      C++ preprocessor
1210  COIN_SKIP_PROJECTS
1211              Set to the subdirectories of projects that should be skipped in
1212              the configuration
1213
1214Use these variables to override the choices made by `configure' or to help
1215it to find libraries and programs with nonstandard names/locations.
1216
1217Report bugs to <coin-clp@lists.coin-or.org>.
1218_ACEOF
1219fi
1220
1221if test "$ac_init_help" = "recursive"; then
1222  # If there are subdirs, report their specific --help.
1223  ac_popdir=`pwd`
1224  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1225    test -d $ac_dir || continue
1226    ac_builddir=.
1227
1228if test "$ac_dir" != .; then
1229  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1230  # A "../" for each directory in $ac_dir_suffix.
1231  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1232else
1233  ac_dir_suffix= ac_top_builddir=
1234fi
1235
1236case $srcdir in
1237  .)  # No --srcdir option.  We are building in place.
1238    ac_srcdir=.
1239    if test -z "$ac_top_builddir"; then
1240       ac_top_srcdir=.
1241    else
1242       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1243    fi ;;
1244  [\\/]* | ?:[\\/]* )  # Absolute path.
1245    ac_srcdir=$srcdir$ac_dir_suffix;
1246    ac_top_srcdir=$srcdir ;;
1247  *) # Relative path.
1248    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1249    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1250esac
1251
1252# Do not use `cd foo && pwd` to compute absolute paths, because
1253# the directories may not exist.
1254case `pwd` in
1255.) ac_abs_builddir="$ac_dir";;
1256*)
1257  case "$ac_dir" in
1258  .) ac_abs_builddir=`pwd`;;
1259  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1260  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1261  esac;;
1262esac
1263case $ac_abs_builddir in
1264.) ac_abs_top_builddir=${ac_top_builddir}.;;
1265*)
1266  case ${ac_top_builddir}. in
1267  .) ac_abs_top_builddir=$ac_abs_builddir;;
1268  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1269  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1270  esac;;
1271esac
1272case $ac_abs_builddir in
1273.) ac_abs_srcdir=$ac_srcdir;;
1274*)
1275  case $ac_srcdir in
1276  .) ac_abs_srcdir=$ac_abs_builddir;;
1277  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1278  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1279  esac;;
1280esac
1281case $ac_abs_builddir in
1282.) ac_abs_top_srcdir=$ac_top_srcdir;;
1283*)
1284  case $ac_top_srcdir in
1285  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1286  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1287  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1288  esac;;
1289esac
1290
1291    cd $ac_dir
1292    # Check for guested configure; otherwise get Cygnus style configure.
1293    if test -f $ac_srcdir/configure.gnu; then
1294      echo
1295      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1296    elif test -f $ac_srcdir/configure; then
1297      echo
1298      $SHELL $ac_srcdir/configure  --help=recursive
1299    elif test -f $ac_srcdir/configure.ac ||
1300           test -f $ac_srcdir/configure.in; then
1301      echo
1302      $ac_configure --help
1303    else
1304      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1305    fi
1306    cd $ac_popdir
1307  done
1308fi
1309
1310test -n "$ac_init_help" && exit 0
1311if $ac_init_version; then
1312  cat <<\_ACEOF
1313Clp configure 1.16
1314generated by GNU Autoconf 2.59
1315
1316Copyright (C) 2003 Free Software Foundation, Inc.
1317This configure script is free software; the Free Software Foundation
1318gives unlimited permission to copy, distribute and modify it.
1319
1320
1321Copyright 2006 International Business Machines and others.
1322All Rights Reserved.
1323This file is part of the open source package Coin which is distributed
1324under the Eclipse Public License.
1325_ACEOF
1326  exit 0
1327fi
1328exec 5>config.log
1329cat >&5 <<_ACEOF
1330This file contains any messages produced by compilers while
1331running configure, to aid debugging if configure makes a mistake.
1332
1333It was created by Clp $as_me 1.16, which was
1334generated by GNU Autoconf 2.59.  Invocation command line was
1335
1336  $ $0 $@
1337
1338_ACEOF
1339{
1340cat <<_ASUNAME
1341## --------- ##
1342## Platform. ##
1343## --------- ##
1344
1345hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1346uname -m = `(uname -m) 2>/dev/null || echo unknown`
1347uname -r = `(uname -r) 2>/dev/null || echo unknown`
1348uname -s = `(uname -s) 2>/dev/null || echo unknown`
1349uname -v = `(uname -v) 2>/dev/null || echo unknown`
1350
1351/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1352/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1353
1354/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1355/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1356/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1357hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1358/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1359/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1360/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1361
1362_ASUNAME
1363
1364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365for as_dir in $PATH
1366do
1367  IFS=$as_save_IFS
1368  test -z "$as_dir" && as_dir=.
1369  echo "PATH: $as_dir"
1370done
1371
1372} >&5
1373
1374cat >&5 <<_ACEOF
1375
1376
1377## ----------- ##
1378## Core tests. ##
1379## ----------- ##
1380
1381_ACEOF
1382
1383
1384# Keep a trace of the command line.
1385# Strip out --no-create and --no-recursion so they do not pile up.
1386# Strip out --silent because we don't want to record it for future runs.
1387# Also quote any args containing shell meta-characters.
1388# Make two passes to allow for proper duplicate-argument suppression.
1389ac_configure_args=
1390ac_configure_args0=
1391ac_configure_args1=
1392ac_sep=
1393ac_must_keep_next=false
1394for ac_pass in 1 2
1395do
1396  for ac_arg
1397  do
1398    case $ac_arg in
1399    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1400    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1401    | -silent | --silent | --silen | --sile | --sil)
1402      continue ;;
1403    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1404      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1405    esac
1406    case $ac_pass in
1407    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1408    2)
1409      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1410      if test $ac_must_keep_next = true; then
1411        ac_must_keep_next=false # Got value, back to normal.
1412      else
1413        case $ac_arg in
1414          *=* | --config-cache | -C | -disable-* | --disable-* \
1415          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1416          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1417          | -with-* | --with-* | -without-* | --without-* | --x)
1418            case "$ac_configure_args0 " in
1419              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1420            esac
1421            ;;
1422          -* ) ac_must_keep_next=true ;;
1423        esac
1424      fi
1425      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1426      # Get rid of the leading space.
1427      ac_sep=" "
1428      ;;
1429    esac
1430  done
1431done
1432$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1433$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1434
1435# When interrupted or exit'd, cleanup temporary files, and complete
1436# config.log.  We remove comments because anyway the quotes in there
1437# would cause problems or look ugly.
1438# WARNING: Be sure not to use single quotes in there, as some shells,
1439# such as our DU 5.0 friend, will then `close' the trap.
1440trap 'exit_status=$?
1441  # Save into config.log some information that might help in debugging.
1442  {
1443    echo
1444
1445    cat <<\_ASBOX
1446## ---------------- ##
1447## Cache variables. ##
1448## ---------------- ##
1449_ASBOX
1450    echo
1451    # The following way of writing the cache mishandles newlines in values,
1452{
1453  (set) 2>&1 |
1454    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1455    *ac_space=\ *)
1456      sed -n \
1457        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1458          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1459      ;;
1460    *)
1461      sed -n \
1462        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1463      ;;
1464    esac;
1465}
1466    echo
1467
1468    cat <<\_ASBOX
1469## ----------------- ##
1470## Output variables. ##
1471## ----------------- ##
1472_ASBOX
1473    echo
1474    for ac_var in $ac_subst_vars
1475    do
1476      eval ac_val=$`echo $ac_var`
1477      echo "$ac_var='"'"'$ac_val'"'"'"
1478    done | sort
1479    echo
1480
1481    if test -n "$ac_subst_files"; then
1482      cat <<\_ASBOX
1483## ------------- ##
1484## Output files. ##
1485## ------------- ##
1486_ASBOX
1487      echo
1488      for ac_var in $ac_subst_files
1489      do
1490        eval ac_val=$`echo $ac_var`
1491        echo "$ac_var='"'"'$ac_val'"'"'"
1492      done | sort
1493      echo
1494    fi
1495
1496    if test -s confdefs.h; then
1497      cat <<\_ASBOX
1498## ----------- ##
1499## confdefs.h. ##
1500## ----------- ##
1501_ASBOX
1502      echo
1503      sed "/^$/d" confdefs.h | sort
1504      echo
1505    fi
1506    test "$ac_signal" != 0 &&
1507      echo "$as_me: caught signal $ac_signal"
1508    echo "$as_me: exit $exit_status"
1509  } >&5
1510  rm -f core *.core &&
1511  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1512    exit $exit_status
1513     ' 0
1514for ac_signal in 1 2 13 15; do
1515  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1516done
1517ac_signal=0
1518
1519# confdefs.h avoids OS command line length limits that DEFS can exceed.
1520rm -rf conftest* confdefs.h
1521# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1522echo >confdefs.h
1523
1524# Predefined preprocessor variables.
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_NAME "$PACKAGE_NAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_VERSION "$PACKAGE_VERSION"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_STRING "$PACKAGE_STRING"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1548_ACEOF
1549
1550
1551# Let the site file select an alternate cache file if it wants to.
1552# Prefer explicitly selected file to automatically selected ones.
1553if test -z "$CONFIG_SITE"; then
1554  if test "x$prefix" != xNONE; then
1555    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1556  else
1557    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1558  fi
1559fi
1560for ac_site_file in $CONFIG_SITE; do
1561  if test -r "$ac_site_file"; then
1562    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1563echo "$as_me: loading site script $ac_site_file" >&6;}
1564    sed 's/^/| /' "$ac_site_file" >&5
1565    . "$ac_site_file"
1566  fi
1567done
1568
1569if test -r "$cache_file"; then
1570  # Some versions of bash will fail to source /dev/null (special
1571  # files actually), so we avoid doing that.
1572  if test -f "$cache_file"; then
1573    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1574echo "$as_me: loading cache $cache_file" >&6;}
1575    case $cache_file in
1576      [\\/]* | ?:[\\/]* ) . $cache_file;;
1577      *)                      . ./$cache_file;;
1578    esac
1579  fi
1580else
1581  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1582echo "$as_me: creating cache $cache_file" >&6;}
1583  >$cache_file
1584fi
1585
1586# Check that the precious variables saved in the cache have kept the same
1587# value.
1588ac_cache_corrupted=false
1589for ac_var in `(set) 2>&1 |
1590               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1591  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1592  eval ac_new_set=\$ac_env_${ac_var}_set
1593  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1594  eval ac_new_val="\$ac_env_${ac_var}_value"
1595  case $ac_old_set,$ac_new_set in
1596    set,)
1597      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1598echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1599      ac_cache_corrupted=: ;;
1600    ,set)
1601      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1602echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1603      ac_cache_corrupted=: ;;
1604    ,);;
1605    *)
1606      if test "x$ac_old_val" != "x$ac_new_val"; then
1607        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1608echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1609        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1610echo "$as_me:   former value:  $ac_old_val" >&2;}
1611        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1612echo "$as_me:   current value: $ac_new_val" >&2;}
1613        ac_cache_corrupted=:
1614      fi;;
1615  esac
1616  # Pass precious variables to config.status.
1617  if test "$ac_new_set" = set; then
1618    case $ac_new_val in
1619    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1620      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1621    *) ac_arg=$ac_var=$ac_new_val ;;
1622    esac
1623    case " $ac_configure_args " in
1624      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1625      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1626    esac
1627  fi
1628done
1629if $ac_cache_corrupted; then
1630  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1631echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1632  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1633echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1634   { (exit 1); exit 1; }; }
1635fi
1636
1637ac_ext=c
1638ac_cpp='$CPP $CPPFLAGS'
1639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1641ac_compiler_gnu=$ac_cv_c_compiler_gnu
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674# List one file in the package so that the configure script can test
1675# whether the package is actually there
1676
1677
1678# Where should everything be installed by default?  Here, we want it
1679# to be installed directly in 'bin', 'lib', 'include' subdirectories
1680# of the directory where configure is run.  The default would be
1681# /usr/local.
1682
1683
1684#############################################################################
1685#              Create the libtool script for the subdirectories             #
1686#############################################################################
1687
1688ac_aux_dir=
1689for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1690  if test -f $ac_dir/install-sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install-sh -c"
1693    break
1694  elif test -f $ac_dir/install.sh; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/install.sh -c"
1697    break
1698  elif test -f $ac_dir/shtool; then
1699    ac_aux_dir=$ac_dir
1700    ac_install_sh="$ac_aux_dir/shtool install -c"
1701    break
1702  fi
1703done
1704if test -z "$ac_aux_dir"; then
1705  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1706echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1707   { (exit 1); exit 1; }; }
1708fi
1709ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1710ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1711ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1712
1713# Make sure we can run config.sub.
1714$ac_config_sub sun4 >/dev/null 2>&1 ||
1715  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1716echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1717   { (exit 1); exit 1; }; }
1718
1719echo "$as_me:$LINENO: checking build system type" >&5
1720echo $ECHO_N "checking build system type... $ECHO_C" >&6
1721if test "${ac_cv_build+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  ac_cv_build_alias=$build_alias
1725test -z "$ac_cv_build_alias" &&
1726  ac_cv_build_alias=`$ac_config_guess`
1727test -z "$ac_cv_build_alias" &&
1728  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1729echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1730   { (exit 1); exit 1; }; }
1731ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1732  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1733echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736fi
1737echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1738echo "${ECHO_T}$ac_cv_build" >&6
1739build=$ac_cv_build
1740build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743
1744
1745
1746# Check if user wants to produce debugging code
1747
1748echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1749echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1750
1751# Check whether --enable-debug or --disable-debug was given.
1752if test "${enable_debug+set}" = set; then
1753  enableval="$enable_debug"
1754  case "${enableval}" in
1755   yes) coin_debug_compile=true
1756        if test "${enable_shared+set}" = set; then :; else
1757          enable_shared=no
1758        fi
1759        ;;
1760   no)  coin_debug_compile=false
1761        ;;
1762   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1763echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1764   { (exit 1); exit 1; }; }
1765        ;;
1766esac
1767else
1768  coin_debug_compile=false
1769fi;
1770
1771 # m4_ifvaln([],
1772
1773if test $coin_debug_compile = true; then
1774  echo "$as_me:$LINENO: result: yes" >&5
1775echo "${ECHO_T}yes" >&6
1776else
1777  echo "$as_me:$LINENO: result: no" >&5
1778echo "${ECHO_T}no" >&6
1779fi
1780
1781 # m4_ifvaln([],
1782
1783
1784
1785# Get the name of the C compiler and appropriate compiler options
1786
1787
1788  # for backward compatibility
1789  # Check whether --enable-doscompile or --disable-doscompile was given.
1790if test "${enable_doscompile+set}" = set; then
1791  enableval="$enable_doscompile"
1792  enable_doscompile=$enableval
1793else
1794  enable_doscompile=no
1795fi;
1796
1797  # Check whether --enable-msvc or --disable-msvc was given.
1798if test "${enable_msvc+set}" = set; then
1799  enableval="$enable_msvc"
1800  enable_msvc=$enableval
1801else
1802  enable_msvc=no
1803     if test "$enable_doscompile" = msvc ; then
1804       enable_msvc=yes
1805     elif test "$enable_doscompile" != no ; then
1806       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1807echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1808   { (exit 1); exit 1; }; }
1809     fi
1810
1811fi;
1812
1813  if test "$enable_msvc" = MD; then
1814    enable_shared=yes
1815    enable_msvc=yes
1816  fi
1817
1818  if test "$enable_msvc" = yes; then
1819    case $build in
1820      *-cygwin* | *-mingw*) ;;
1821      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1822echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1823   { (exit 1); exit 1; }; } ;;
1824    esac
1825  fi
1826
1827
1828
1829ac_ext=c
1830ac_cpp='$CPP $CPPFLAGS'
1831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
1835
1836# For consistency, we set the C compiler to the same value of the C++
1837# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1838if test x"$CXX" != x; then
1839  case "$CXX" in
1840    clang* ) ;;
1841    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1842      if test x"$CC" = x; then
1843        CC="$CXX"
1844        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1845echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1846      fi
1847      ;;
1848  esac
1849fi
1850
1851
1852
1853
1854
1855
1856coin_has_cc=yes
1857
1858save_cflags="$CFLAGS"
1859
1860# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1861# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1862# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1863# compiler. In this case, put cc after gcc.
1864
1865case $build in
1866  *-cygwin* | *-mingw*)
1867             if test "$enable_msvc" = yes ; then
1868               comps="icl cl gcc"
1869             else
1870               comps="gcc icl cl"
1871             fi ;;
1872  *-*-solaris*)
1873             # Extract the first word of "cc", so it can be a program name with args.
1874set dummy cc; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test -n "$sol_cc_compiler"; then
1881  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1882else
1883  ac_prog_rejected=no
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887  IFS=$as_save_IFS
1888  test -z "$as_dir" && as_dir=.
1889  for ac_exec_ext in '' $ac_executable_extensions; do
1890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1892       ac_prog_rejected=yes
1893       continue
1894     fi
1895    ac_cv_prog_sol_cc_compiler="cc"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902if test $ac_prog_rejected = yes; then
1903  # We found a bogon in the path, so make sure we never use it.
1904  set dummy $ac_cv_prog_sol_cc_compiler
1905  shift
1906  if test $# != 0; then
1907    # We chose a different compiler from the bogus one.
1908    # However, it has the same basename, so the bogon will be chosen
1909    # first if we set sol_cc_compiler to just the basename; use the full file name.
1910    shift
1911    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1912  fi
1913fi
1914fi
1915fi
1916sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1917if test -n "$sol_cc_compiler"; then
1918  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1919echo "${ECHO_T}$sol_cc_compiler" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925             if test "$sol_cc_compiler" = "cc" ; then
1926               comps="cc xlc gcc pgcc icc"
1927             else
1928               comps="xlc gcc pgcc icc cc"
1929             fi
1930             ;;
1931  *-*-darwin*) comps="clang gcc cc" ;;
1932  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1933  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1934  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1935esac
1936
1937# We delete the cached value, since the test might not have been
1938# performed with our choice of compilers earlier
1939$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1940# AC_MSG_NOTICE([C compiler candidates: $comps])
1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946if test -n "$ac_tool_prefix"; then
1947  for ac_prog in $comps
1948  do
1949    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1950set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$CC"; then
1957  ac_cv_prog_CC="$CC" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972
1973fi
1974fi
1975CC=$ac_cv_prog_CC
1976if test -n "$CC"; then
1977  echo "$as_me:$LINENO: result: $CC" >&5
1978echo "${ECHO_T}$CC" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984    test -n "$CC" && break
1985  done
1986fi
1987if test -z "$CC"; then
1988  ac_ct_CC=$CC
1989  for ac_prog in $comps
1990do
1991  # Extract the first word of "$ac_prog", so it can be a program name with args.
1992set dummy $ac_prog; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$ac_ct_CC"; then
1999  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006  for ac_exec_ext in '' $ac_executable_extensions; do
2007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008    ac_cv_prog_ac_ct_CC="$ac_prog"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015fi
2016fi
2017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018if test -n "$ac_ct_CC"; then
2019  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020echo "${ECHO_T}$ac_ct_CC" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026  test -n "$ac_ct_CC" && break
2027done
2028
2029  CC=$ac_ct_CC
2030fi
2031
2032
2033test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: no acceptable C compiler found in \$PATH
2036See \`config.log' for more details." >&2;}
2037   { (exit 1); exit 1; }; }
2038
2039# Provide some information about the compiler.
2040echo "$as_me:$LINENO:" \
2041     "checking for C compiler version" >&5
2042ac_compiler=`set X $ac_compile; echo $2`
2043{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044  (eval $ac_compiler --version </dev/null >&5) 2>&5
2045  ac_status=$?
2046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047  (exit $ac_status); }
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049  (eval $ac_compiler -v </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054  (eval $ac_compiler -V </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058
2059cat >conftest.$ac_ext <<_ACEOF
2060/* confdefs.h.  */
2061_ACEOF
2062cat confdefs.h >>conftest.$ac_ext
2063cat >>conftest.$ac_ext <<_ACEOF
2064/* end confdefs.h.  */
2065
2066int
2067main ()
2068{
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074ac_clean_files_save=$ac_clean_files
2075ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076# Try to create an executable without -o first, disregard a.out.
2077# It will help us diagnose broken compilers, and finding out an intuition
2078# of exeext.
2079echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083  (eval $ac_link_default) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; then
2087  # Find the output, starting from the most likely.  This scheme is
2088# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089# resort.
2090
2091# Be careful to initialize this variable, since it used to be cached.
2092# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093ac_cv_exeext=
2094# b.out is created by i960 compilers.
2095for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096do
2097  test -f "$ac_file" || continue
2098  case $ac_file in
2099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100        ;;
2101    conftest.$ac_ext )
2102        # This is the source file.
2103        ;;
2104    [ab].out )
2105        # We found the default executable, but exeext='' is most
2106        # certainly right.
2107        break;;
2108    *.* )
2109        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110        # FIXME: I believe we export ac_cv_exeext for Libtool,
2111        # but it would be cool to find out if it's true.  Does anybody
2112        # maintain Libtool? --akim.
2113        export ac_cv_exeext
2114        break;;
2115    * )
2116        break;;
2117  esac
2118done
2119else
2120  echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: C compiler cannot create executables
2126See \`config.log' for more details." >&2;}
2127   { (exit 77); exit 77; }; }
2128fi
2129
2130ac_exeext=$ac_cv_exeext
2131echo "$as_me:$LINENO: result: $ac_file" >&5
2132echo "${ECHO_T}$ac_file" >&6
2133
2134# Check the compiler produces executables we can run.  If not, either
2135# the compiler is broken, or we cross compile.
2136echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139# If not cross compiling, check that we can run a simple program.
2140if test "$cross_compiling" != yes; then
2141  if { ac_try='./$ac_file'
2142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143  (eval $ac_try) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }; }; then
2147    cross_compiling=no
2148  else
2149    if test "$cross_compiling" = maybe; then
2150        cross_compiling=yes
2151    else
2152        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153If you meant to cross compile, use \`--host'.
2154See \`config.log' for more details." >&5
2155echo "$as_me: error: cannot run C compiled programs.
2156If you meant to cross compile, use \`--host'.
2157See \`config.log' for more details." >&2;}
2158   { (exit 1); exit 1; }; }
2159    fi
2160  fi
2161fi
2162echo "$as_me:$LINENO: result: yes" >&5
2163echo "${ECHO_T}yes" >&6
2164
2165rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166ac_clean_files=$ac_clean_files_save
2167# Check the compiler produces executables we can run.  If not, either
2168# the compiler is broken, or we cross compile.
2169echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172echo "${ECHO_T}$cross_compiling" >&6
2173
2174echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177  (eval $ac_link) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183# work properly (i.e., refer to `conftest.exe'), while it won't with
2184# `rm'.
2185for ac_file in conftest.exe conftest conftest.*; do
2186  test -f "$ac_file" || continue
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190          export ac_cv_exeext
2191          break;;
2192    * ) break;;
2193  esac
2194done
2195else
2196  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest$ac_cv_exeext
2204echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207rm -f conftest.$ac_ext
2208EXEEXT=$ac_cv_exeext
2209ac_exeext=$EXEEXT
2210echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212if test "${ac_cv_objext+set}" = set; then
2213  echo $ECHO_N "(cached) $ECHO_C" >&6
2214else
2215  cat >conftest.$ac_ext <<_ACEOF
2216/* confdefs.h.  */
2217_ACEOF
2218cat confdefs.h >>conftest.$ac_ext
2219cat >>conftest.$ac_ext <<_ACEOF
2220/* end confdefs.h.  */
2221
2222int
2223main ()
2224{
2225
2226  ;
2227  return 0;
2228}
2229_ACEOF
2230rm -f conftest.o conftest.obj
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232  (eval $ac_compile) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; then
2236  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237  case $ac_file in
2238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240       break;;
2241  esac
2242done
2243else
2244  echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257echo "${ECHO_T}$ac_cv_objext" >&6
2258OBJEXT=$ac_cv_objext
2259ac_objext=$OBJEXT
2260echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263  echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265  cat >conftest.$ac_ext <<_ACEOF
2266/* confdefs.h.  */
2267_ACEOF
2268cat confdefs.h >>conftest.$ac_ext
2269cat >>conftest.$ac_ext <<_ACEOF
2270/* end confdefs.h.  */
2271
2272int
2273main ()
2274{
2275#ifndef __GNUC__
2276       choke me
2277#endif
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>conftest.er1
2286  ac_status=$?
2287  grep -v '^ *+' conftest.er1 >conftest.err
2288  rm -f conftest.er1
2289  cat conftest.err >&5
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); } &&
2292         { ac_try='test -z "$ac_c_werror_flag"
2293                         || test ! -s conftest.err'
2294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295  (eval $ac_try) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }; } &&
2299         { ac_try='test -s conftest.$ac_objext'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; }; then
2305  ac_compiler_gnu=yes
2306else
2307  echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310ac_compiler_gnu=no
2311fi
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313ac_cv_c_compiler_gnu=$ac_compiler_gnu
2314
2315fi
2316echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318GCC=`test $ac_compiler_gnu = yes && echo yes`
2319ac_test_CFLAGS=${CFLAGS+set}
2320ac_save_CFLAGS=$CFLAGS
2321CFLAGS="-g"
2322echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324if test "${ac_cv_prog_cc_g+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351         { ac_try='test -z "$ac_c_werror_flag"
2352                         || test ! -s conftest.err'
2353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354  (eval $ac_try) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; } &&
2358         { ac_try='test -s conftest.$ac_objext'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; }; then
2364  ac_cv_prog_cc_g=yes
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369ac_cv_prog_cc_g=no
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372fi
2373echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2374echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375if test "$ac_test_CFLAGS" = set; then
2376  CFLAGS=$ac_save_CFLAGS
2377elif test $ac_cv_prog_cc_g = yes; then
2378  if test "$GCC" = yes; then
2379    CFLAGS="-g -O2"
2380  else
2381    CFLAGS="-g"
2382  fi
2383else
2384  if test "$GCC" = yes; then
2385    CFLAGS="-O2"
2386  else
2387    CFLAGS=
2388  fi
2389fi
2390echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  ac_cv_prog_cc_stdc=no
2396ac_save_CC=$CC
2397cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403#include <stdarg.h>
2404#include <stdio.h>
2405#include <sys/types.h>
2406#include <sys/stat.h>
2407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2408struct buf { int x; };
2409FILE * (*rcsopen) (struct buf *, struct stat *, int);
2410static char *e (p, i)
2411     char **p;
2412     int i;
2413{
2414  return p[i];
2415}
2416static char *f (char * (*g) (char **, int), char **p, ...)
2417{
2418  char *s;
2419  va_list v;
2420  va_start (v,p);
2421  s = g (p, va_arg (v,int));
2422  va_end (v);
2423  return s;
2424}
2425
2426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2427   function prototypes and stuff, but not '\xHH' hex character constants.
2428   These don't provoke an error unfortunately, instead are silently treated
2429   as 'x'.  The following induces an error, until -std1 is added to get
2430   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2431   array size at least.  It's necessary to write '\x00'==0 to get something
2432   that's true only with -std1.  */
2433int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2434
2435int test (int i, double x);
2436struct s1 {int (*f) (int a);};
2437struct s2 {int (*f) (double a);};
2438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2439int argc;
2440char **argv;
2441int
2442main ()
2443{
2444return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449# Don't try gcc -ansi; that turns off useful extensions and
2450# breaks some systems' header files.
2451# AIX                   -qlanglvl=ansi
2452# Ultrix and OSF/1      -std1
2453# HP-UX 10.20 and later -Ae
2454# HP-UX older versions  -Aa -D_HPUX_SOURCE
2455# SVR4                  -Xc -D__EXTENSIONS__
2456for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2457do
2458  CC="$ac_save_CC $ac_arg"
2459  rm -f conftest.$ac_objext
2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461  (eval $ac_compile) 2>conftest.er1
2462  ac_status=$?
2463  grep -v '^ *+' conftest.er1 >conftest.err
2464  rm -f conftest.er1
2465  cat conftest.err >&5
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); } &&
2468         { ac_try='test -z "$ac_c_werror_flag"
2469                         || test ! -s conftest.err'
2470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471  (eval $ac_try) 2>&5
2472  ac_status=$?
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); }; } &&
2475         { ac_try='test -s conftest.$ac_objext'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; }; then
2481  ac_cv_prog_cc_stdc=$ac_arg
2482break
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487fi
2488rm -f conftest.err conftest.$ac_objext
2489done
2490rm -f conftest.$ac_ext conftest.$ac_objext
2491CC=$ac_save_CC
2492
2493fi
2494
2495case "x$ac_cv_prog_cc_stdc" in
2496  x|xno)
2497    echo "$as_me:$LINENO: result: none needed" >&5
2498echo "${ECHO_T}none needed" >&6 ;;
2499  *)
2500    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2501echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2502    CC="$CC $ac_cv_prog_cc_stdc" ;;
2503esac
2504
2505# Some people use a C++ compiler to compile C.  Since we use `exit',
2506# in C++ we need to declare it.  In case someone uses the same compiler
2507# for both compiling C and C++ we need to have the C++ compiler decide
2508# the declaration of exit, since it's the most demanding environment.
2509cat >conftest.$ac_ext <<_ACEOF
2510#ifndef __cplusplus
2511  choke me
2512#endif
2513_ACEOF
2514rm -f conftest.$ac_objext
2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516  (eval $ac_compile) 2>conftest.er1
2517  ac_status=$?
2518  grep -v '^ *+' conftest.er1 >conftest.err
2519  rm -f conftest.er1
2520  cat conftest.err >&5
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); } &&
2523         { ac_try='test -z "$ac_c_werror_flag"
2524                         || test ! -s conftest.err'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; } &&
2530         { ac_try='test -s conftest.$ac_objext'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  for ac_declaration in \
2537   '' \
2538   'extern "C" void std::exit (int) throw (); using std::exit;' \
2539   'extern "C" void std::exit (int); using std::exit;' \
2540   'extern "C" void exit (int) throw ();' \
2541   'extern "C" void exit (int);' \
2542   'void exit (int);'
2543do
2544  cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550$ac_declaration
2551#include <stdlib.h>
2552int
2553main ()
2554{
2555exit (42);
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562  (eval $ac_compile) 2>conftest.er1
2563  ac_status=$?
2564  grep -v '^ *+' conftest.er1 >conftest.err
2565  rm -f conftest.er1
2566  cat conftest.err >&5
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); } &&
2569         { ac_try='test -z "$ac_c_werror_flag"
2570                         || test ! -s conftest.err'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576         { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  :
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587continue
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590  cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596$ac_declaration
2597int
2598main ()
2599{
2600exit (42);
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext
2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607  (eval $ac_compile) 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } &&
2614         { ac_try='test -z "$ac_c_werror_flag"
2615                         || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621         { ac_try='test -s conftest.$ac_objext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  break
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632fi
2633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634done
2635rm -f conftest*
2636if test -n "$ac_declaration"; then
2637  echo '#ifdef __cplusplus' >>confdefs.h
2638  echo $ac_declaration      >>confdefs.h
2639  echo '#endif'             >>confdefs.h
2640fi
2641
2642else
2643  echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646fi
2647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648ac_ext=c
2649ac_cpp='$CPP $CPPFLAGS'
2650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653
2654if test -z "$CC" ; then
2655  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2656echo "$as_me: error: Failed to find a C compiler!" >&2;}
2657   { (exit 1); exit 1; }; }
2658fi
2659# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2660case "$CC" in
2661  clang* ) ;;
2662  cl* | */cl* | CL* | */CL* )
2663    if test "$ac_cv_prog_cc_g" = yes ; then
2664      ac_cv_prog_cc_g=no
2665      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2666echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2667    fi ;;
2668  * )
2669    if test x"$CYGPATH_W" = x ; then
2670      CYGPATH_W=echo
2671    fi
2672    ;;
2673esac
2674CFLAGS="$save_cflags"
2675
2676# add automake conditional so we can recognize cl compiler in makefile
2677coin_cc_is_cl=false
2678case "$CC" in
2679  clang* ) ;;
2680  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2681    coin_cc_is_cl=true
2682    ;;
2683esac
2684
2685
2686if test $coin_cc_is_cl = true; then
2687  COIN_CC_IS_CL_TRUE=
2688  COIN_CC_IS_CL_FALSE='#'
2689else
2690  COIN_CC_IS_CL_TRUE='#'
2691  COIN_CC_IS_CL_FALSE=
2692fi
2693
2694
2695# Check if a project specific CFLAGS variable has been set
2696if test x$COIN_PRJCT != x; then
2697  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2698  if test x$coin_tmp = xset; then
2699    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2700  fi
2701fi
2702
2703if test x"$CFLAGS" = x; then
2704
2705  coin_add_cflags=
2706  coin_opt_cflags=
2707  coin_dbg_cflags=
2708  coin_warn_cflags=
2709
2710  if test "$GCC" = "yes"; then
2711    case "$CC" in
2712      icc* | */icc*)
2713        ;;
2714      *)
2715        coin_opt_cflags="-O3"
2716        coin_add_cflags="-pipe"
2717        coin_dbg_cflags="-g -O0"
2718        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2719        case $build in
2720          *-darwin*)
2721            ;;
2722          *)
2723            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2724            ;;
2725        esac
2726    esac
2727  fi
2728  if test -z "$coin_opt_cflags"; then
2729    case $build in
2730      *-cygwin* | *-mingw*)
2731        case "$CC" in
2732          clang* ) ;;
2733          cl* | */cl* | CL* | */CL*)
2734            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2735              coin_opt_cflags='-MD -O2'
2736              coin_dbg_cflags='-MDd'
2737            else
2738              coin_opt_cflags='-MT -O2'
2739              coin_dbg_cflags='-MTd'
2740            fi
2741            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2742            ;;
2743          icl* | */icl* | ICL* | */ICL*)
2744            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2745              coin_opt_cflags='-MD -Ox'
2746              coin_dbg_cflags='-MDd -debug'
2747            else
2748              coin_opt_cflags='-MT -Ox'
2749              coin_dbg_cflags='-MTd -debug'
2750            fi
2751            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2752            ;;
2753        esac
2754        ;;
2755      *-linux-*)
2756        case "$CC" in
2757          icc* | */icc*)
2758            coin_opt_cflags="-O3 -ip -mp1"
2759            coin_add_cflags=""
2760            coin_dbg_cflags="-g"
2761            # Check if -i_dynamic is necessary (for new glibc library)
2762            CFLAGS=
2763            cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h.  */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h.  */
2769
2770int
2771main ()
2772{
2773int i=0; i++;
2774  ;
2775  return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext conftest$ac_exeext
2779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780  (eval $ac_link) 2>conftest.er1
2781  ac_status=$?
2782  grep -v '^ *+' conftest.er1 >conftest.err
2783  rm -f conftest.er1
2784  cat conftest.err >&5
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); } &&
2787         { ac_try='test -z "$ac_c_werror_flag"
2788                         || test ! -s conftest.err'
2789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790  (eval $ac_try) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }; } &&
2794         { ac_try='test -s conftest$ac_exeext'
2795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796  (eval $ac_try) 2>&5
2797  ac_status=$?
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); }; }; then
2800  :
2801else
2802  echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805coin_add_cflags="-i_dynamic $coin_add_cflags"
2806fi
2807rm -f conftest.err conftest.$ac_objext \
2808      conftest$ac_exeext conftest.$ac_ext
2809            ;;
2810          pgcc* | */pgcc*)
2811            coin_opt_cflags="-fast"
2812            coin_add_cflags="-Kieee -pc 64"
2813            coin_dbg_cflags="-g"
2814            ;;
2815        esac
2816        ;;
2817      *-ibm-*)
2818        case "$CC" in
2819          xlc* | */xlc* | mpxlc* | */mpxlc*)
2820            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2821            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2822            coin_dbg_cflags="-g"
2823          ;;
2824        esac
2825        ;;
2826      *-hp-*)
2827        coin_opt_cflags="-O"
2828        coin_add_cflags="-Ae"
2829        coin_dbg_cflags="-g"
2830        ;;
2831      *-*-solaris*)
2832        coin_opt_cflags="-xO4"
2833        coin_dbg_cflags="-g"
2834        ;;
2835      *-sgi-*)
2836        coin_opt_cflags="-O -OPT:Olimit=0"
2837        coin_dbg_cflags="-g"
2838        ;;
2839    esac
2840  fi
2841
2842  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2843    coin_dbg_cflags="-g"
2844  fi
2845
2846  if test -z "$coin_opt_cflags"; then
2847    # Try if -O option works if nothing else is set
2848    CFLAGS="-O"
2849    cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859int i=0; i++;
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext conftest$ac_exeext
2865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2866  (eval $ac_link) 2>conftest.er1
2867  ac_status=$?
2868  grep -v '^ *+' conftest.er1 >conftest.err
2869  rm -f conftest.er1
2870  cat conftest.err >&5
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); } &&
2873         { ac_try='test -z "$ac_c_werror_flag"
2874                         || test ! -s conftest.err'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; } &&
2880         { ac_try='test -s conftest$ac_exeext'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; }; then
2886  coin_opt_cflags="-O"
2887else
2888  echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891fi
2892rm -f conftest.err conftest.$ac_objext \
2893      conftest$ac_exeext conftest.$ac_ext
2894  fi
2895
2896  # if PM doesn't want the warning messages, take them out
2897  if test x"$coin_skip_warn_cflags" = xyes; then
2898    coin_warn_cflags=
2899  fi
2900
2901  if test x${DBG_CFLAGS+set} != xset; then
2902    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2903  fi
2904  if test x${OPT_CFLAGS+set} != xset; then
2905    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2906  fi
2907
2908  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2909  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2910
2911  if test "$coin_debug_compile" = "true"; then
2912    CFLAGS="$DBG_CFLAGS"
2913  else
2914    CFLAGS="$OPT_CFLAGS"
2915  fi
2916else
2917  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2918  if test x${DBG_CFLAGS+set} != xset; then
2919    DBG_CFLAGS="$CFLAGS"
2920  fi
2921  if test x${OPT_CFLAGS+set} != xset; then
2922    OPT_CFLAGS="$CFLAGS"
2923  fi
2924fi
2925
2926# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2927if test x$COIN_PRJCT != x; then
2928  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2929fi
2930
2931# Try if CFLAGS works
2932save_CFLAGS="$CFLAGS"
2933cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943int i=0; i++;
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948rm -f conftest.$ac_objext conftest$ac_exeext
2949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2950  (eval $ac_link) 2>conftest.er1
2951  ac_status=$?
2952  grep -v '^ *+' conftest.er1 >conftest.err
2953  rm -f conftest.er1
2954  cat conftest.err >&5
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } &&
2957         { ac_try='test -z "$ac_c_werror_flag"
2958                         || test ! -s conftest.err'
2959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960  (eval $ac_try) 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; } &&
2964         { ac_try='test -s conftest$ac_exeext'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; }; then
2970  :
2971else
2972  echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975CFLAGS=
2976fi
2977rm -f conftest.err conftest.$ac_objext \
2978      conftest$ac_exeext conftest.$ac_ext
2979if test -z "$CFLAGS"; then
2980  { 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
2981echo "$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;}
2982  CFLAGS='-O'
2983  cat >conftest.$ac_ext <<_ACEOF
2984/* confdefs.h.  */
2985_ACEOF
2986cat confdefs.h >>conftest.$ac_ext
2987cat >>conftest.$ac_ext <<_ACEOF
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993int i=0; i++;
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998rm -f conftest.$ac_objext conftest$ac_exeext
2999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3000  (eval $ac_link) 2>conftest.er1
3001  ac_status=$?
3002  grep -v '^ *+' conftest.er1 >conftest.err
3003  rm -f conftest.er1
3004  cat conftest.err >&5
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); } &&
3007         { ac_try='test -z "$ac_c_werror_flag"
3008                         || test ! -s conftest.err'
3009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010  (eval $ac_try) 2>&5
3011  ac_status=$?
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); }; } &&
3014         { ac_try='test -s conftest$ac_exeext'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; }; then
3020  :
3021else
3022  echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025CFLAGS=
3026fi
3027rm -f conftest.err conftest.$ac_objext \
3028      conftest$ac_exeext conftest.$ac_ext
3029  if test -z "$CFLAGS"; then
3030    { 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
3031echo "$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;}
3032  fi
3033fi
3034
3035{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3036echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3037
3038
3039if test x"$MPICC" = x; then :; else
3040  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3041echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3042  CC="$MPICC"
3043fi
3044
3045# Correct the LD variable if we are using the MS or Intel-windows compiler
3046case "$CC" in
3047  clang* ) ;;
3048  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3049    LD=link
3050    ;;
3051esac
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
3059
3060
3061# Get the name of the C++ compiler and appropriate compiler options
3062
3063 #Let's try if that overcomes configuration problem with VC++ 6.0
3064
3065ac_ext=cc
3066ac_cpp='$CXXCPP $CPPFLAGS'
3067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3070
3071
3072
3073
3074
3075
3076
3077coin_has_cxx=yes
3078
3079save_cxxflags="$CXXFLAGS"
3080# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3081case $build in
3082  *-cygwin* | *-mingw*)
3083      if test "$enable_msvc" = yes ; then
3084         comps="icl cl g++"
3085      else
3086         comps="g++ icl cl"
3087      fi ;;
3088  *-*-solaris*)
3089             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3090  *-darwin*) comps="clang++ g++ c++ CC" ;;
3091  *-linux-gnu*)
3092             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3093          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3094esac
3095
3096# We delete the cached value, since the test might not have been
3097# performed with our choice of compilers earlier
3098$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3099# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3100ac_ext=cc
3101ac_cpp='$CXXCPP $CPPFLAGS'
3102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3105if test -n "$ac_tool_prefix"; then
3106  for ac_prog in $CCC $comps
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_CXX+set}" = set; then
3113  echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115  if test -n "$CXX"; then
3116  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123  for ac_exec_ext in '' $ac_executable_extensions; do
3124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130done
3131
3132fi
3133fi
3134CXX=$ac_cv_prog_CXX
3135if test -n "$CXX"; then
3136  echo "$as_me:$LINENO: result: $CXX" >&5
3137echo "${ECHO_T}$CXX" >&6
3138else
3139  echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141fi
3142
3143    test -n "$CXX" && break
3144  done
3145fi
3146if test -z "$CXX"; then
3147  ac_ct_CXX=$CXX
3148  for ac_prog in $CCC $comps
3149do
3150  # Extract the first word of "$ac_prog", so it can be a program name with args.
3151set dummy $ac_prog; ac_word=$2
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  if test -n "$ac_ct_CXX"; then
3158  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165  for ac_exec_ext in '' $ac_executable_extensions; do
3166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167    ac_cv_prog_ac_ct_CXX="$ac_prog"
3168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172done
3173
3174fi
3175fi
3176ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3177if test -n "$ac_ct_CXX"; then
3178  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3179echo "${ECHO_T}$ac_ct_CXX" >&6
3180else
3181  echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185  test -n "$ac_ct_CXX" && break
3186done
3187test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3188
3189  CXX=$ac_ct_CXX
3190fi
3191
3192
3193# Provide some information about the compiler.
3194echo "$as_me:$LINENO:" \
3195     "checking for C++ compiler version" >&5
3196ac_compiler=`set X $ac_compile; echo $2`
3197{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3198  (eval $ac_compiler --version </dev/null >&5) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }
3202{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3203  (eval $ac_compiler -v </dev/null >&5) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }
3207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3208  (eval $ac_compiler -V </dev/null >&5) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }
3212
3213echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3214echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3215if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h.  */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h.  */
3224
3225int
3226main ()
3227{
3228#ifndef __GNUC__
3229       choke me
3230#endif
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238  (eval $ac_compile) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_cxx_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest.$ac_objext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  ac_compiler_gnu=yes
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_compiler_gnu=no
3264fi
3265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3267
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3270echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3271GXX=`test $ac_compiler_gnu = yes && echo yes`
3272ac_test_CXXFLAGS=${CXXFLAGS+set}
3273ac_save_CXXFLAGS=$CXXFLAGS
3274CXXFLAGS="-g"
3275echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3276echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3277if test "${ac_cv_prog_cxx_g+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295rm -f conftest.$ac_objext
3296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3297  (eval $ac_compile) 2>conftest.er1
3298  ac_status=$?
3299  grep -v '^ *+' conftest.er1 >conftest.err
3300  rm -f conftest.er1
3301  cat conftest.err >&5
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); } &&
3304         { ac_try='test -z "$ac_cxx_werror_flag"
3305                         || test ! -s conftest.err'
3306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307  (eval $ac_try) 2>&5
3308  ac_status=$?
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); }; } &&
3311         { ac_try='test -s conftest.$ac_objext'
3312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313  (eval $ac_try) 2>&5
3314  ac_status=$?
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); }; }; then
3317  ac_cv_prog_cxx_g=yes
3318else
3319  echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322ac_cv_prog_cxx_g=no
3323fi
3324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3325fi
3326echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3327echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3328if test "$ac_test_CXXFLAGS" = set; then
3329  CXXFLAGS=$ac_save_CXXFLAGS
3330elif test $ac_cv_prog_cxx_g = yes; then
3331  if test "$GXX" = yes; then
3332    CXXFLAGS="-g -O2"
3333  else
3334    CXXFLAGS="-g"
3335  fi
3336else
3337  if test "$GXX" = yes; then
3338    CXXFLAGS="-O2"
3339  else
3340    CXXFLAGS=
3341  fi
3342fi
3343for ac_declaration in \
3344   '' \
3345   'extern "C" void std::exit (int) throw (); using std::exit;' \
3346   'extern "C" void std::exit (int); using std::exit;' \
3347   'extern "C" void exit (int) throw ();' \
3348   'extern "C" void exit (int);' \
3349   'void exit (int);'
3350do
3351  cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h.  */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h.  */
3357$ac_declaration
3358#include <stdlib.h>
3359int
3360main ()
3361{
3362exit (42);
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>conftest.er1
3370  ac_status=$?
3371  grep -v '^ *+' conftest.er1 >conftest.err
3372  rm -f conftest.er1
3373  cat conftest.err >&5
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); } &&
3376         { ac_try='test -z "$ac_cxx_werror_flag"
3377                         || test ! -s conftest.err'
3378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379  (eval $ac_try) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }; } &&
3383         { ac_try='test -s conftest.$ac_objext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  :
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394continue
3395fi
3396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403$ac_declaration
3404int
3405main ()
3406{
3407exit (42);
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414  (eval $ac_compile) 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } &&
3421         { ac_try='test -z "$ac_cxx_werror_flag"
3422                         || test ! -s conftest.err'
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); }; } &&
3428         { ac_try='test -s conftest.$ac_objext'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; }; then
3434  break
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441done
3442rm -f conftest*
3443if test -n "$ac_declaration"; then
3444  echo '#ifdef __cplusplus' >>confdefs.h
3445  echo $ac_declaration      >>confdefs.h
3446  echo '#endif'             >>confdefs.h
3447fi
3448
3449ac_ext=cc
3450ac_cpp='$CXXCPP $CPPFLAGS'
3451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3454
3455
3456#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3457#thus, we test here whether $CXX is actually working
3458ac_ext=cc
3459ac_cpp='$CXXCPP $CPPFLAGS'
3460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3463
3464echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3465echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3466cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473int
3474main ()
3475{
3476int i=0;
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483  (eval $ac_compile) 2>conftest.er1
3484  ac_status=$?
3485  grep -v '^ *+' conftest.er1 >conftest.err
3486  rm -f conftest.er1
3487  cat conftest.err >&5
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); } &&
3490         { ac_try='test -z "$ac_cxx_werror_flag"
3491                         || test ! -s conftest.err'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; } &&
3497         { ac_try='test -s conftest.$ac_objext'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; }; then
3503  echo "$as_me:$LINENO: result: yes" >&5
3504echo "${ECHO_T}yes" >&6
3505else
3506  echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3512echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3513   { (exit 1); exit 1; }; }
3514
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_ext=cc
3518ac_cpp='$CXXCPP $CPPFLAGS'
3519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3522
3523
3524coin_cxx_is_cl=false
3525# It seems that we need to cleanup something here for the Windows
3526case "$CXX" in
3527  clang* | */clang*) ;;
3528  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3529    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3530    mv confdefs.hh confdefs.h
3531    coin_cxx_is_cl=true
3532    ;;
3533esac
3534
3535# add automake conditional so we can recognize cl compiler in makefile
3536
3537
3538if test $coin_cxx_is_cl = true; then
3539  COIN_CXX_IS_CL_TRUE=
3540  COIN_CXX_IS_CL_FALSE='#'
3541else
3542  COIN_CXX_IS_CL_TRUE='#'
3543  COIN_CXX_IS_CL_FALSE=
3544fi
3545
3546
3547# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3548case "$CXX" in
3549  clang* ) ;;
3550  cl* | */cl* | CL* | */CL* )
3551    if test "$ac_cv_prog_cxx_g" = yes ; then
3552      ac_cv_prog_cxx_g=no
3553      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3554echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3555    fi ;;
3556  * )
3557    if test x"$CYGPATH_W" = x ; then
3558      CYGPATH_W=echo
3559    fi
3560    ;;
3561esac
3562CXXFLAGS="$save_cxxflags"
3563
3564# Check if a project specific CXXFLAGS variable has been set
3565if test x$COIN_PRJCT != x; then
3566  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3567  if test x$coin_tmp = xset; then
3568    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3569  fi
3570fi
3571
3572if test x"$CXXFLAGS" = x; then
3573
3574# ToDo decide whether we want -DNDEBUG for optimization
3575  coin_add_cxxflags=
3576  coin_opt_cxxflags=
3577  coin_dbg_cxxflags=
3578  coin_warn_cxxflags=
3579
3580  if test "$GXX" = "yes"; then
3581    case "$CXX" in
3582      icpc* | */icpc*)
3583        ;;
3584      *)
3585# ToDo decide about unroll-loops
3586        coin_opt_cxxflags="-O3"
3587        coin_add_cxxflags="-pipe"
3588        coin_dbg_cxxflags="-g -O0"
3589        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3590        case $build in
3591          *-darwin*)
3592            ;;
3593          *)
3594            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3595            ;;
3596        esac
3597    esac
3598  fi
3599
3600# Note that we do not need to cover GCC in the following tests.
3601
3602  if test -z "$coin_opt_cxxflags"; then
3603    case $build in
3604      *-cygwin* | *-mingw*)
3605        case "$CXX" in
3606          clang* ) ;;
3607          cl* | */cl* | CL* | */CL*)
3608            # The MT and MTd options are mutually exclusive
3609            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3610               coin_opt_cxxflags='-MD -O2'
3611               coin_dbg_cxxflags='-MDd'
3612            else
3613               coin_opt_cxxflags='-MT -O2'
3614               coin_dbg_cxxflags='-MTd'
3615            fi
3616            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3617            ;;
3618          icl* | */icl* | ICL* | */ICL*)
3619          # The MT and MTd options are mutually exclusive
3620            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3621              coin_opt_cxxflags='-MD -Ox'
3622              coin_dbg_cxxflags='-MDd -debug'
3623            else
3624              coin_opt_cxxflags='-MT -Ox'
3625              coin_dbg_cxxflags='-MTd -debug'
3626            fi
3627            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3628            ;;
3629        esac
3630        ;;
3631      *-linux-*)
3632        case "$CXX" in
3633          icpc* | */icpc*)
3634            coin_opt_cxxflags="-O3 -ip -mp1"
3635            coin_add_cxxflags=""
3636            coin_dbg_cxxflags="-g"
3637            # Check if -i_dynamic is necessary (for new glibc library)
3638            CXXFLAGS=
3639            cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h.  */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h.  */
3645
3646int
3647main ()
3648{
3649int i=0; i++;
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656  (eval $ac_link) 2>conftest.er1
3657  ac_status=$?
3658  grep -v '^ *+' conftest.er1 >conftest.err
3659  rm -f conftest.er1
3660  cat conftest.err >&5
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); } &&
3663         { ac_try='test -z "$ac_cxx_werror_flag"
3664                         || test ! -s conftest.err'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; } &&
3670         { ac_try='test -s conftest$ac_exeext'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; }; then
3676  :
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3682fi
3683rm -f conftest.err conftest.$ac_objext \
3684      conftest$ac_exeext conftest.$ac_ext
3685            ;;
3686          pgCC* | */pgCC*)
3687            coin_opt_cxxflags="-fast"
3688            coin_add_cxxflags="-Kieee -pc 64"
3689            coin_dbg_cxxflags="-g"
3690            ;;
3691        esac
3692        ;;
3693      *-ibm-*)
3694        case "$CXX" in
3695          xlC* | */xlC* | mpxlC* | */mpxlC*)
3696            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3697            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3698            coin_dbg_cxxflags="-g"
3699            ;;
3700        esac
3701        ;;
3702      *-hp-*)
3703        case "$CXX" in
3704          aCC* | */aCC* )
3705            coin_opt_cxxflags="-O"
3706            coin_add_cxxflags="-AA"
3707            coin_dbg_cxxflags="-g"
3708            ;;
3709        esac
3710        ;;
3711      *-*-solaris*)
3712          coin_opt_cxxflags="-O4"
3713          coin_dbg_cxxflags="-g"
3714        ;;
3715    esac
3716  fi
3717
3718# Generic flag settings. If these don't work, add a case above.
3719
3720  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3721    coin_dbg_cxxflags="-g"
3722  fi
3723
3724  if test -z "$coin_opt_cxxflags"; then
3725    # Try if -O option works if nothing else is set
3726    CXXFLAGS=-O
3727    cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733
3734int
3735main ()
3736{
3737int i=0; i++;
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_cxx_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  coin_opt_cxxflags="-O"
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769fi
3770rm -f conftest.err conftest.$ac_objext \
3771      conftest$ac_exeext conftest.$ac_ext
3772  fi
3773
3774  # if PM doesn't want the warning messages, take them out
3775  if test x"$coin_skip_warn_cxxflags" = xyes; then
3776    coin_warn_cxxflags=
3777  fi
3778
3779# Do final setup of flags based on values determined above.
3780
3781  if test x${DBG_CXXFLAGS+set} != xset; then
3782    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3783  fi
3784  if test x${OPT_CXXFLAGS+set} != xset; then
3785    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3786  fi
3787
3788  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3789  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3790
3791  if test "$coin_debug_compile" = "true"; then
3792    CXXFLAGS="$DBG_CXXFLAGS"
3793  else
3794    CXXFLAGS="$OPT_CXXFLAGS"
3795  fi
3796
3797# Handle the case where CXXFLAGS was set externally.
3798else
3799  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3800  if test x${DBG_CXXFLAGS+set} != xset; then
3801    DBG_CXXFLAGS="$CXXFLAGS"
3802  fi
3803  if test x${OPT_CXXFLAGS+set} != xset; then
3804    OPT_CXXFLAGS="$CXXFLAGS"
3805  fi
3806fi
3807
3808# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3809if test x$COIN_PRJCT != x; then
3810  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3811fi
3812
3813# Try if CXXFLAGS works
3814save_CXXFLAGS="$CXXFLAGS"
3815cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h.  */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825int i=0; i++;
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext conftest$ac_exeext
3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832  (eval $ac_link) 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } &&
3839         { ac_try='test -z "$ac_cxx_werror_flag"
3840                         || test ! -s conftest.err'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; } &&
3846         { ac_try='test -s conftest$ac_exeext'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; }; then
3852  :
3853else
3854  echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857CXXFLAGS=
3858fi
3859rm -f conftest.err conftest.$ac_objext \
3860      conftest$ac_exeext conftest.$ac_ext
3861if test -z "$CXXFLAGS"; then
3862  { 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
3863echo "$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;}
3864  CXXFLAGS='-O'
3865  cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h.  */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h.  */
3871
3872int
3873main ()
3874{
3875int i=0; i++;
3876  ;
3877  return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext conftest$ac_exeext
3881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3882  (eval $ac_link) 2>conftest.er1
3883  ac_status=$?
3884  grep -v '^ *+' conftest.er1 >conftest.err
3885  rm -f conftest.er1
3886  cat conftest.err >&5
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); } &&
3889         { ac_try='test -z "$ac_cxx_werror_flag"
3890                         || test ! -s conftest.err'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; } &&
3896         { ac_try='test -s conftest$ac_exeext'
3897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898  (eval $ac_try) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); }; }; then
3902  :
3903else
3904  echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907CXXFLAGS=
3908fi
3909rm -f conftest.err conftest.$ac_objext \
3910      conftest$ac_exeext conftest.$ac_ext
3911  if test -z "$CXXFLAGS"; then
3912    { 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
3913echo "$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;}
3914  fi
3915fi
3916
3917{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3918echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3919
3920
3921if test x"$MPICXX" = x; then :; else
3922  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3923echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3924  CXX="$MPICXX"
3925fi
3926
3927# correct the LD variable in a build with MS or intel compiler
3928case "$CXX" in
3929  clang* ) ;;
3930  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3931    LD=link
3932    ;;
3933esac
3934
3935ac_ext=c
3936ac_cpp='$CPP $CPPFLAGS'
3937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941
3942
3943# Get the name of the Fortran compiler and appropriate compiler options
3944case $build in
3945  *-cygwin* | *-mingw*)
3946     if test "$enable_msvc" = yes ; then
3947       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3948     else
3949       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3950     fi ;;
3951  *-*-solaris*)
3952     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3953  *-linux-gnu*)
3954     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3955  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3956 esac
3957
3958
3959
3960
3961
3962ac_ext=f
3963ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3964ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3966
3967
3968
3969
3970
3971
3972coin_has_f77=yes
3973
3974save_fflags="$FFLAGS"
3975
3976# We delete the cached value, since the test might not have been
3977# performed with our choice of compilers earlier
3978$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3979
3980# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3981# coin_f77_comps to see if there's a program that matches one of the names.
3982# If there's no such program, F77 = unavailable. If we match the name,
3983# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3984# compiler.
3985# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3986
3987
3988{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3989echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3990if test -n "$ac_tool_prefix"; then
3991  for ac_prog in $coin_f77_comps
3992  do
3993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3995echo "$as_me:$LINENO: checking for $ac_word" >&5
3996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3997if test "${ac_cv_prog_F77+set}" = set; then
3998  echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000  if test -n "$F77"; then
4001  ac_cv_prog_F77="$F77" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006  IFS=$as_save_IFS
4007  test -z "$as_dir" && as_dir=.
4008  for ac_exec_ext in '' $ac_executable_extensions; do
4009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012    break 2
4013  fi
4014done
4015done
4016
4017fi
4018fi
4019F77=$ac_cv_prog_F77
4020if test -n "$F77"; then
4021  echo "$as_me:$LINENO: result: $F77" >&5
4022echo "${ECHO_T}$F77" >&6
4023else
4024  echo "$as_me:$LINENO: result: no" >&5
4025echo "${ECHO_T}no" >&6
4026fi
4027
4028    test -n "$F77" && break
4029  done
4030fi
4031if test -z "$F77"; then
4032  ac_ct_F77=$F77
4033  for ac_prog in $coin_f77_comps
4034do
4035  # Extract the first word of "$ac_prog", so it can be a program name with args.
4036set dummy $ac_prog; ac_word=$2
4037echo "$as_me:$LINENO: checking for $ac_word" >&5
4038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4039if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4040  echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042  if test -n "$ac_ct_F77"; then
4043  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048  IFS=$as_save_IFS
4049  test -z "$as_dir" && as_dir=.
4050  for ac_exec_ext in '' $ac_executable_extensions; do
4051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052    ac_cv_prog_ac_ct_F77="$ac_prog"
4053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054    break 2
4055  fi
4056done
4057done
4058
4059fi
4060fi
4061ac_ct_F77=$ac_cv_prog_ac_ct_F77
4062if test -n "$ac_ct_F77"; then
4063  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4064echo "${ECHO_T}$ac_ct_F77" >&6
4065else
4066  echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068fi
4069
4070  test -n "$ac_ct_F77" && break
4071done
4072test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4073
4074  F77=$ac_ct_F77
4075fi
4076
4077
4078if test "$F77" != "unavailable" ; then
4079  ac_ext=f
4080ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4081ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4083if test -n "$ac_tool_prefix"; then
4084  for ac_prog in $coin_f77_comps
4085  do
4086    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4088echo "$as_me:$LINENO: checking for $ac_word" >&5
4089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090if test "${ac_cv_prog_F77+set}" = set; then
4091  echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093  if test -n "$F77"; then
4094  ac_cv_prog_F77="$F77" # Let the user override the test.
4095else
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101  for ac_exec_ext in '' $ac_executable_extensions; do
4102  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4104    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108done
4109
4110fi
4111fi
4112F77=$ac_cv_prog_F77
4113if test -n "$F77"; then
4114  echo "$as_me:$LINENO: result: $F77" >&5
4115echo "${ECHO_T}$F77" >&6
4116else
4117  echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
4119fi
4120
4121    test -n "$F77" && break
4122  done
4123fi
4124if test -z "$F77"; then
4125  ac_ct_F77=$F77
4126  for ac_prog in $coin_f77_comps
4127do
4128  # Extract the first word of "$ac_prog", so it can be a program name with args.
4129set dummy $ac_prog; ac_word=$2
4130echo "$as_me:$LINENO: checking for $ac_word" >&5
4131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4133  echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135  if test -n "$ac_ct_F77"; then
4136  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4137else
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143  for ac_exec_ext in '' $ac_executable_extensions; do
4144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145    ac_cv_prog_ac_ct_F77="$ac_prog"
4146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150done
4151
4152fi
4153fi
4154ac_ct_F77=$ac_cv_prog_ac_ct_F77
4155if test -n "$ac_ct_F77"; then
4156  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4157echo "${ECHO_T}$ac_ct_F77" >&6
4158else
4159  echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161fi
4162
4163  test -n "$ac_ct_F77" && break
4164done
4165
4166  F77=$ac_ct_F77
4167fi
4168
4169
4170# Provide some information about the compiler.
4171echo "$as_me:4171:" \
4172     "checking for Fortran 77 compiler version" >&5
4173ac_compiler=`set X $ac_compile; echo $2`
4174{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4175  (eval $ac_compiler --version </dev/null >&5) 2>&5
4176  ac_status=$?
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); }
4179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4180  (eval $ac_compiler -v </dev/null >&5) 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); }
4184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4185  (eval $ac_compiler -V </dev/null >&5) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }
4189rm -f a.out
4190
4191# If we don't use `.F' as extension, the preprocessor is not run on the
4192# input file.  (Note that this only needs to work for GNU compilers.)
4193ac_save_ext=$ac_ext
4194ac_ext=F
4195echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4196echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4197if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  cat >conftest.$ac_ext <<_ACEOF
4201      program main
4202#ifndef __GNUC__
4203       choke me
4204#endif
4205
4206      end
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210  (eval $ac_compile) 2>conftest.er1
4211  ac_status=$?
4212  grep -v '^ *+' conftest.er1 >conftest.err
4213  rm -f conftest.er1
4214  cat conftest.err >&5
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); } &&
4217         { ac_try='test -z "$ac_f77_werror_flag"
4218                         || test ! -s conftest.err'
4219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220  (eval $ac_try) 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); }; } &&
4224         { ac_try='test -s conftest.$ac_objext'
4225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226  (eval $ac_try) 2>&5
4227  ac_status=$?
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); }; }; then
4230  ac_compiler_gnu=yes
4231else
4232  echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235ac_compiler_gnu=no
4236fi
4237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4239
4240fi
4241echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4242echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4243ac_ext=$ac_save_ext
4244ac_test_FFLAGS=${FFLAGS+set}
4245ac_save_FFLAGS=$FFLAGS
4246FFLAGS=
4247echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4248echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4249if test "${ac_cv_prog_f77_g+set}" = set; then
4250  echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252  FFLAGS=-g
4253cat >conftest.$ac_ext <<_ACEOF
4254      program main
4255
4256      end
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4260  (eval $ac_compile) 2>conftest.er1
4261  ac_status=$?
4262  grep -v '^ *+' conftest.er1 >conftest.err
4263  rm -f conftest.er1
4264  cat conftest.err >&5
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); } &&
4267         { ac_try='test -z "$ac_f77_werror_flag"
4268                         || test ! -s conftest.err'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; } &&
4274         { ac_try='test -s conftest.$ac_objext'
4275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276  (eval $ac_try) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); }; }; then
4280  ac_cv_prog_f77_g=yes
4281else
4282  echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
4284
4285ac_cv_prog_f77_g=no
4286fi
4287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288
4289fi
4290echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4291echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4292if test "$ac_test_FFLAGS" = set; then
4293  FFLAGS=$ac_save_FFLAGS
4294elif test $ac_cv_prog_f77_g = yes; then
4295  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4296    FFLAGS="-g -O2"
4297  else
4298    FFLAGS="-g"
4299  fi
4300else
4301  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4302    FFLAGS="-O2"
4303  else
4304    FFLAGS=
4305  fi
4306fi
4307
4308G77=`test $ac_compiler_gnu = yes && echo yes`
4309ac_ext=f
4310ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4311ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4313
4314else
4315  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4316echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4317fi
4318
4319FFLAGS="$save_fflags"
4320
4321# Check if a project specific FFLAGS variable has been set
4322if test x$COIN_PRJCT != x; then
4323  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4324  if test x$coin_tmp = xset; then
4325    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4326  fi
4327fi
4328
4329if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4330
4331  coin_add_fflags=
4332  coin_opt_fflags=
4333  coin_dbg_fflags=
4334  coin_warn_fflags=
4335
4336  if test "$G77" = "yes"; then
4337    coin_opt_fflags="-O3"
4338    coin_add_fflags="-pipe"
4339    coin_dbg_fflags="-g -O0"
4340  else
4341    case $build in
4342      *-cygwin* | *-mingw*)
4343        case $F77 in
4344          ifort* | */ifort* | IFORT* | */IFORT* )
4345            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4346              coin_opt_fflags='-MD -O3'
4347              coin_dbg_fflags='-MDd -debug'
4348            else
4349              coin_opt_fflags='-MT -O3'
4350              coin_dbg_fflags='-MTd -debug'
4351            fi
4352            coin_add_fflags='-fpp -nologo'
4353          ;;
4354          compile_f2c*)
4355            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4356              coin_opt_fflags='-MD -O2'
4357              coin_dbg_fflags='-MDd'
4358            else
4359              coin_opt_fflags='-MT -O2'
4360              coin_dbg_fflags='-MTd'
4361            fi
4362            coin_add_fflags='-nologo -wd4996'
4363          ;;
4364        esac
4365        ;;
4366      *-linux-*)
4367        case $F77 in
4368          ifc* | */ifc* | ifort* | */ifort*)
4369            coin_opt_fflags="-O3 -ip"
4370            coin_add_fflags="-cm -w90 -w95"
4371            coin_dbg_fflags="-g -CA -CB -CS"
4372            # Check if -i_dynamic is necessary (for new glibc library)
4373            FFLAGS=
4374            cat >conftest.$ac_ext <<_ACEOF
4375      program main
4376      write(*,*) 'Hello world'
4377      end
4378_ACEOF
4379rm -f conftest.$ac_objext conftest$ac_exeext
4380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4381  (eval $ac_link) 2>conftest.er1
4382  ac_status=$?
4383  grep -v '^ *+' conftest.er1 >conftest.err
4384  rm -f conftest.er1
4385  cat conftest.err >&5
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); } &&
4388         { ac_try='test -z "$ac_f77_werror_flag"
4389                         || test ! -s conftest.err'
4390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391  (eval $ac_try) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; } &&
4395         { ac_try='test -s conftest$ac_exeext'
4396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397  (eval $ac_try) 2>&5
4398  ac_status=$?
4399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400  (exit $ac_status); }; }; then
4401  :
4402else
4403  echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406coin_add_fflags="-i_dynamic $coin_add_fflags"
4407fi
4408rm -f conftest.err conftest.$ac_objext \
4409      conftest$ac_exeext conftest.$ac_ext
4410            ;;
4411          pgf77* | */pgf77* | pgf90* | */pgf90*)
4412            coin_opt_fflags="-fast"
4413            coin_add_fflags="-Kieee -pc 64"
4414            coin_dbg_fflags="-g"
4415          ;;
4416        esac
4417        ;;
4418      *-ibm-*)
4419        case "$F77" in
4420          xlf* | */xlf* | mpxlf* | */mpxlf* )
4421            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4422            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4423            coin_dbg_fflags="-g -C"
4424            ;;
4425        esac
4426        ;;
4427      *-hp-*)
4428        coin_opt_fflags="+O3"
4429        coin_add_fflags="+U77"
4430        coin_dbg_fflags="-C -g"
4431        ;;
4432      *-*-solaris*)
4433        coin_opt_fflags="-O4"
4434        coin_dbg_fflags="-g"
4435        ;;
4436      *-sgi-*)
4437        coin_opt_fflags="-O5 -OPT:Olimit=0"
4438        coin_dbg_fflags="-g"
4439        ;;
4440    esac
4441  fi
4442
4443  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4444    coin_dbg_fflags="-g"
4445  fi
4446
4447  if test -z "$coin_opt_fflags"; then
4448    # Try if -O option works if nothing else is set
4449    FFLAGS=-O
4450    cat >conftest.$ac_ext <<_ACEOF
4451      program main
4452      integer i
4453      end
4454_ACEOF
4455rm -f conftest.$ac_objext conftest$ac_exeext
4456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4457  (eval $ac_link) 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } &&
4464         { ac_try='test -z "$ac_f77_werror_flag"
4465                         || test ! -s conftest.err'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; } &&
4471         { ac_try='test -s conftest$ac_exeext'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; }; then
4477  coin_opt_fflags="-O"
4478else
4479  echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482fi
4483rm -f conftest.err conftest.$ac_objext \
4484      conftest$ac_exeext conftest.$ac_ext
4485  fi
4486
4487  # if PM doesn't want the warning messages, take them out
4488  if test x"$coin_skip_warn_fflags" = xyes; then
4489    coin_warn_fflags=
4490  fi
4491
4492  if test x${DBG_FFLAGS+set} != xset; then
4493    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4494  fi
4495  if test x${OPT_FFLAGS+set} != xset; then
4496    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4497  fi
4498
4499  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4500  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4501
4502  if test "$coin_debug_compile" = "true"; then
4503    FFLAGS="$DBG_FFLAGS"
4504  else
4505    FFLAGS="$OPT_FFLAGS"
4506  fi
4507else
4508  FFLAGS="$FFLAGS $ADD_FFLAGS"
4509  if test x${DBG_FFLAGS+set} != xset; then
4510    DBG_FFLAGS="$FFLAGS"
4511  fi
4512  if test x${OPT_FFLAGS+set} != xset; then
4513    OPT_FFLAGS="$FFLAGS"
4514  fi
4515fi
4516
4517# Try if FFLAGS works
4518if test "$F77" != "unavailable" ; then
4519  cat >conftest.$ac_ext <<_ACEOF
4520      program main
4521      integer i
4522      end
4523_ACEOF
4524rm -f conftest.$ac_objext conftest$ac_exeext
4525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526  (eval $ac_link) 2>conftest.er1
4527  ac_status=$?
4528  grep -v '^ *+' conftest.er1 >conftest.err
4529  rm -f conftest.er1
4530  cat conftest.err >&5
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); } &&
4533         { ac_try='test -z "$ac_f77_werror_flag"
4534                         || test ! -s conftest.err'
4535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536  (eval $ac_try) 2>&5
4537  ac_status=$?
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); }; } &&
4540         { ac_try='test -s conftest$ac_exeext'
4541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542  (eval $ac_try) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }; }; then
4546  :
4547else
4548  echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551FFLAGS=
4552fi
4553rm -f conftest.err conftest.$ac_objext \
4554      conftest$ac_exeext conftest.$ac_ext
4555  if test -z "$FFLAGS"; then
4556    { 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
4557echo "$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;}
4558    FFLAGS='-O'
4559    cat >conftest.$ac_ext <<_ACEOF
4560      program main
4561      integer i
4562      end
4563_ACEOF
4564rm -f conftest.$ac_objext conftest$ac_exeext
4565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566  (eval $ac_link) 2>conftest.er1
4567  ac_status=$?
4568  grep -v '^ *+' conftest.er1 >conftest.err
4569  rm -f conftest.er1
4570  cat conftest.err >&5
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); } &&
4573         { ac_try='test -z "$ac_f77_werror_flag"
4574                         || test ! -s conftest.err'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; } &&
4580         { ac_try='test -s conftest$ac_exeext'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  :
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591FFLAGS=
4592fi
4593rm -f conftest.err conftest.$ac_objext \
4594      conftest$ac_exeext conftest.$ac_ext
4595    if test -z "$FFLAGS"; then
4596      { 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
4597echo "$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;}
4598    fi
4599  fi
4600fi
4601
4602{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4603echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4604
4605
4606if test x"$MPIF77" = x; then :; else
4607  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4608echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4609  F77="$MPIF77"
4610fi
4611
4612# correct the LD variable if we use the intel fortran compiler in windows
4613case "$F77" in
4614  ifort* | */ifort* | IFORT* | */IFORT*)
4615    LD=link
4616    ;;
4617esac
4618
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625
4626
4627# Initialize automake and libtool
4628# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4629{
4630
4631
4632
4633# START
4634
4635coin_disable_shared=no
4636# Test if force_shared has been set
4637if test "x" = xforce_shared; then
4638  if test x$enable_shared = xno; then
4639    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4640echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4641   { (exit 1); exit 1; }; }
4642  fi
4643  enable_shared=yes;
4644else
4645  case $build in
4646    *-cygwin* | *-mingw*)
4647      coin_disable_shared=yes
4648      if test x"$enable_shared" = xyes; then
4649        case "$CC" in
4650          clang* )
4651            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4652echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4653            ;;
4654          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4655            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4656echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4657            ;;
4658          *gcc*)
4659            if test x"$enable_dependency_linking" = xyes; then
4660              coin_disable_shared=no
4661            else
4662              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4663echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4664            fi
4665            ;;
4666          *)
4667            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4668echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4669            ;;
4670        esac
4671      fi
4672    ;;
4673    *-aix*)
4674      coin_disable_shared=yes
4675      platform=AIX
4676      if test x"$enable_shared" = xyes; then
4677        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4678echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4679      fi
4680    ;;
4681  esac
4682fi
4683if test x"$coin_disable_shared" = xyes; then
4684  if test x"$enable_shared" = xyes; then
4685    :
4686  else
4687    # we don't disable shared, because it was not selected anyway
4688    coin_disable_shared=no
4689  fi
4690  enable_shared=no
4691fi
4692# By default, we only want the shared objects to be compiled
4693# Check whether --enable-static or --disable-static was given.
4694if test "${enable_static+set}" = set; then
4695  enableval="$enable_static"
4696  p=${PACKAGE-default}
4697    case $enableval in
4698    yes) enable_static=yes ;;
4699    no) enable_static=no ;;
4700    *)
4701     enable_static=no
4702      # Look at the argument we got.  We use all the common list separators.
4703      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4704      for pkg in $enableval; do
4705        IFS="$lt_save_ifs"
4706        if test "X$pkg" = "X$p"; then
4707          enable_static=yes
4708        fi
4709      done
4710      IFS="$lt_save_ifs"
4711      ;;
4712    esac
4713else
4714  enable_static=no
4715fi;
4716
4717
4718
4719
4720# Initialize automake
4721echo "$as_me:$LINENO: checking for egrep" >&5
4722echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4723if test "${ac_cv_prog_egrep+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4727    then ac_cv_prog_egrep='grep -E'
4728    else ac_cv_prog_egrep='egrep'
4729    fi
4730fi
4731echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4732echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4733 EGREP=$ac_cv_prog_egrep
4734
4735
4736echo "$as_me:$LINENO: checking whether ln -s works" >&5
4737echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4738LN_S=$as_ln_s
4739if test "$LN_S" = "ln -s"; then
4740  echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742else
4743  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4744echo "${ECHO_T}no, using $LN_S" >&6
4745fi
4746
4747am__api_version="1.9"
4748# Find a good install program.  We prefer a C program (faster),
4749# so one script is as good as another.  But avoid the broken or
4750# incompatible versions:
4751# SysV /etc/install, /usr/sbin/install
4752# SunOS /usr/etc/install
4753# IRIX /sbin/install
4754# AIX /bin/install
4755# AmigaOS /C/install, which installs bootblocks on floppy discs
4756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759# OS/2's system install, which has a completely different semantic
4760# ./install, which can be erroneously created by make from ./install.sh.
4761echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4762echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4763if test -z "$INSTALL"; then
4764if test "${ac_cv_path_install+set}" = set; then
4765  echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770  IFS=$as_save_IFS
4771  test -z "$as_dir" && as_dir=.
4772  # Account for people who put trailing slashes in PATH elements.
4773case $as_dir/ in
4774  ./ | .// | /cC/* | \
4775  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4776  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4777  /usr/ucb/* ) ;;
4778  *)
4779    # OSF1 and SCO ODT 3.0 have their own names for install.
4780    # Don't use installbsd from OSF since it installs stuff as root
4781    # by default.
4782    for ac_prog in ginstall scoinst install; do
4783      for ac_exec_ext in '' $ac_executable_extensions; do
4784        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4785          if test $ac_prog = install &&
4786            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787            # AIX install.  It has an incompatible calling convention.
4788            :
4789          elif test $ac_prog = install &&
4790            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791            # program-specific install script used by HP pwplus--don't use.
4792            :
4793          else
4794            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4795            break 3
4796          fi
4797        fi
4798      done
4799    done
4800    ;;
4801esac
4802done
4803
4804
4805fi
4806  if test "${ac_cv_path_install+set}" = set; then
4807    INSTALL=$ac_cv_path_install
4808  else
4809    # As a last resort, use the slow shell script.  We don't cache a
4810    # path for INSTALL within a source directory, because that will
4811    # break other packages using the cache if that directory is
4812    # removed, or if the path is relative.
4813    INSTALL=$ac_install_sh
4814  fi
4815fi
4816echo "$as_me:$LINENO: result: $INSTALL" >&5
4817echo "${ECHO_T}$INSTALL" >&6
4818
4819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4820# It thinks the first close brace ends the variable substitution.
4821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4822
4823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4824
4825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4826
4827echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4828echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4829# Just in case
4830sleep 1
4831echo timestamp > conftest.file
4832# Do `set' in a subshell so we don't clobber the current shell's
4833# arguments.  Must try -L first in case configure is actually a
4834# symlink; some systems play weird games with the mod time of symlinks
4835# (eg FreeBSD returns the mod time of the symlink's containing
4836# directory).
4837if (
4838   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4839   if test "$*" = "X"; then
4840      # -L didn't work.
4841      set X `ls -t $srcdir/configure conftest.file`
4842   fi
4843   rm -f conftest.file
4844   if test "$*" != "X $srcdir/configure conftest.file" \
4845      && test "$*" != "X conftest.file $srcdir/configure"; then
4846
4847      # If neither matched, then we have a broken ls.  This can happen
4848      # if, for instance, CONFIG_SHELL is bash and it inherits a
4849      # broken ls alias from the environment.  This has actually
4850      # happened.  Such a system could not be considered "sane".
4851      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4852alias in your environment" >&5
4853echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4854alias in your environment" >&2;}
4855   { (exit 1); exit 1; }; }
4856   fi
4857
4858   test "$2" = conftest.file
4859   )
4860then
4861   # Ok.
4862   :
4863else
4864   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4865Check your system clock" >&5
4866echo "$as_me: error: newly created file is older than distributed files!
4867Check your system clock" >&2;}
4868   { (exit 1); exit 1; }; }
4869fi
4870echo "$as_me:$LINENO: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872test "$program_prefix" != NONE &&
4873  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4874# Use a double $ so make ignores it.
4875test "$program_suffix" != NONE &&
4876  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4877# Double any \ or $.  echo might interpret backslashes.
4878# By default was `s,x,x', remove it if useless.
4879cat <<\_ACEOF >conftest.sed
4880s/[\\$]/&&/g;s/;s,x,x,$//
4881_ACEOF
4882program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4883rm conftest.sed
4884
4885# expand $ac_aux_dir to an absolute path
4886am_aux_dir=`cd $ac_aux_dir && pwd`
4887
4888test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4889# Use eval to expand $SHELL
4890if eval "$MISSING --run true"; then
4891  am_missing_run="$MISSING --run "
4892else
4893  am_missing_run=
4894  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4895echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4896fi
4897
4898if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4899  # We used to keeping the `.' as first argument, in order to
4900  # allow $(mkdir_p) to be used without argument.  As in
4901  #   $(mkdir_p) $(somedir)
4902  # where $(somedir) is conditionally defined.  However this is wrong
4903  # for two reasons:
4904  #  1. if the package is installed by a user who cannot write `.'
4905  #     make install will fail,
4906  #  2. the above comment should most certainly read
4907  #     $(mkdir_p) $(DESTDIR)$(somedir)
4908  #     so it does not work when $(somedir) is undefined and
4909  #     $(DESTDIR) is not.
4910  #  To support the latter case, we have to write
4911  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4912  #  so the `.' trick is pointless.
4913  mkdir_p='mkdir -p --'
4914else
4915  # On NextStep and OpenStep, the `mkdir' command does not
4916  # recognize any option.  It will interpret all options as
4917  # directories to create, and then abort because `.' already
4918  # exists.
4919  for d in ./-p ./--version;
4920  do
4921    test -d $d && rmdir $d
4922  done
4923  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4924  if test -f "$ac_aux_dir/mkinstalldirs"; then
4925    mkdir_p='$(mkinstalldirs)'
4926  else
4927    mkdir_p='$(install_sh) -d'
4928  fi
4929fi
4930
4931for ac_prog in gawk mawk nawk awk
4932do
4933  # Extract the first word of "$ac_prog", so it can be a program name with args.
4934set dummy $ac_prog; ac_word=$2
4935echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937if test "${ac_cv_prog_AWK+set}" = set; then
4938  echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940  if test -n "$AWK"; then
4941  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946  IFS=$as_save_IFS
4947  test -z "$as_dir" && as_dir=.
4948  for ac_exec_ext in '' $ac_executable_extensions; do
4949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950    ac_cv_prog_AWK="$ac_prog"
4951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952    break 2
4953  fi
4954done
4955done
4956
4957fi
4958fi
4959AWK=$ac_cv_prog_AWK
4960if test -n "$AWK"; then
4961  echo "$as_me:$LINENO: result: $AWK" >&5
4962echo "${ECHO_T}$AWK" >&6
4963else
4964  echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966fi
4967
4968  test -n "$AWK" && break
4969done
4970
4971echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4972echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4973set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4974if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977  cat >conftest.make <<\_ACEOF
4978all:
4979        @echo 'ac_maketemp="$(MAKE)"'
4980_ACEOF
4981# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4982eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4983if test -n "$ac_maketemp"; then
4984  eval ac_cv_prog_make_${ac_make}_set=yes
4985else
4986  eval ac_cv_prog_make_${ac_make}_set=no
4987fi
4988rm -f conftest.make
4989fi
4990if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4991  echo "$as_me:$LINENO: result: yes" >&5
4992echo "${ECHO_T}yes" >&6
4993  SET_MAKE=
4994else
4995  echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997  SET_MAKE="MAKE=${MAKE-make}"
4998fi
4999
5000rm -rf .tst 2>/dev/null
5001mkdir .tst 2>/dev/null
5002if test -d .tst; then
5003  am__leading_dot=.
5004else
5005  am__leading_dot=_
5006fi
5007rmdir .tst 2>/dev/null
5008
5009DEPDIR="${am__leading_dot}deps"
5010
5011          ac_config_commands="$ac_config_commands depfiles"
5012
5013
5014am_make=${MAKE-make}
5015cat > confinc << 'END'
5016am__doit:
5017        @echo done
5018.PHONY: am__doit
5019END
5020# If we don't find an include directive, just comment out the code.
5021echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5022echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5023am__include="#"
5024am__quote=
5025_am_result=none
5026# First try GNU make style include.
5027echo "include confinc" > confmf
5028# We grep out `Entering directory' and `Leaving directory'
5029# messages which can occur if `w' ends up in MAKEFLAGS.
5030# In particular we don't look at `^make:' because GNU make might
5031# be invoked under some other name (usually "gmake"), in which
5032# case it prints its new name instead of `make'.
5033if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5034   am__include=include
5035   am__quote=
5036   _am_result=GNU
5037fi
5038# Now try BSD make style include.
5039if test "$am__include" = "#"; then
5040   echo '.include "confinc"' > confmf
5041   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5042      am__include=.include
5043      am__quote="\""
5044      _am_result=BSD
5045   fi
5046fi
5047
5048
5049echo "$as_me:$LINENO: result: $_am_result" >&5
5050echo "${ECHO_T}$_am_result" >&6
5051rm -f confinc confmf
5052
5053# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5054if test "${enable_dependency_tracking+set}" = set; then
5055  enableval="$enable_dependency_tracking"
5056
5057fi;
5058if test "x$enable_dependency_tracking" != xno; then
5059  am_depcomp="$ac_aux_dir/depcomp"
5060  AMDEPBACKSLASH='\'
5061fi
5062
5063
5064if test "x$enable_dependency_tracking" != xno; then
5065  AMDEP_TRUE=
5066  AMDEP_FALSE='#'
5067else
5068  AMDEP_TRUE='#'
5069  AMDEP_FALSE=
5070fi
5071
5072
5073
5074
5075
5076
5077# AC_MSG_NOTICE([Beginning automake initialisation.])
5078# Stuff for automake
5079# test to see if srcdir already configured
5080if test "`cd $srcdir && pwd`" != "`pwd`" &&
5081   test -f $srcdir/config.status; then
5082  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5083echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5084   { (exit 1); exit 1; }; }
5085fi
5086
5087# test whether we have cygpath
5088if test -z "$CYGPATH_W"; then
5089  if (cygpath --version) >/dev/null 2>/dev/null; then
5090    CYGPATH_W='cygpath -w'
5091  else
5092    CYGPATH_W=echo
5093  fi
5094fi
5095
5096
5097# Define the identity of the package.
5098 PACKAGE='clp'
5099 VERSION='1.16'
5100
5101
5102cat >>confdefs.h <<_ACEOF
5103#define PACKAGE "$PACKAGE"
5104_ACEOF
5105
5106
5107cat >>confdefs.h <<_ACEOF
5108#define VERSION "$VERSION"
5109_ACEOF
5110
5111# Some tools Automake needs.
5112
5113ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5114
5115
5116AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5117
5118
5119AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5120
5121
5122AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5123
5124
5125MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5126
5127install_sh=${install_sh-"$am_aux_dir/install-sh"}
5128
5129# Installed binaries are usually stripped using `strip' when the user
5130# run `make install-strip'.  However `strip' might not be the right
5131# tool to use in cross-compilation environments, therefore Automake
5132# will honor the `STRIP' environment variable to overrule this program.
5133if test "$cross_compiling" != no; then
5134  if test -n "$ac_tool_prefix"; then
5135  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5136set dummy ${ac_tool_prefix}strip; ac_word=$2
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_prog_STRIP+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  if test -n "$STRIP"; then
5143  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150  for ac_exec_ext in '' $ac_executable_extensions; do
5151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157done
5158
5159fi
5160fi
5161STRIP=$ac_cv_prog_STRIP
5162if test -n "$STRIP"; then
5163  echo "$as_me:$LINENO: result: $STRIP" >&5
5164echo "${ECHO_T}$STRIP" >&6
5165else
5166  echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168fi
5169
5170fi
5171if test -z "$ac_cv_prog_STRIP"; then
5172  ac_ct_STRIP=$STRIP
5173  # Extract the first word of "strip", so it can be a program name with args.
5174set dummy strip; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180  if test -n "$ac_ct_STRIP"; then
5181  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186  IFS=$as_save_IFS
5187  test -z "$as_dir" && as_dir=.
5188  for ac_exec_ext in '' $ac_executable_extensions; do
5189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190    ac_cv_prog_ac_ct_STRIP="strip"
5191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192    break 2
5193  fi
5194done
5195done
5196
5197  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5198fi
5199fi
5200ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5201if test -n "$ac_ct_STRIP"; then
5202  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5203echo "${ECHO_T}$ac_ct_STRIP" >&6
5204else
5205  echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207fi
5208
5209  STRIP=$ac_ct_STRIP
5210else
5211  STRIP="$ac_cv_prog_STRIP"
5212fi
5213
5214fi
5215INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5216
5217# We need awk for the "check" target.  The system "awk" is bad on
5218# some platforms.
5219# Always define AMTAR for backward compatibility.
5220
5221AMTAR=${AMTAR-"${am_missing_run}tar"}
5222
5223am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5224
5225
5226
5227
5228depcc="$CC"   am_compiler_list=
5229
5230echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5231echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5232if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5236  # We make a subdir and do the tests there.  Otherwise we can end up
5237  # making bogus files that we don't know about and never remove.  For
5238  # instance it was reported that on HP-UX the gcc test will end up
5239  # making a dummy file named `D' -- because `-MD' means `put the output
5240  # in D'.
5241  mkdir conftest.dir
5242  # Copy depcomp to subdir because otherwise we won't find it if we're
5243  # using a relative directory.
5244  cp "$am_depcomp" conftest.dir
5245  cd conftest.dir
5246  # We will build objects and dependencies in a subdirectory because
5247  # it helps to detect inapplicable dependency modes.  For instance
5248  # both Tru64's cc and ICC support -MD to output dependencies as a
5249  # side effect of compilation, but ICC will put the dependencies in
5250  # the current directory while Tru64 will put them in the object
5251  # directory.
5252  mkdir sub
5253
5254  am_cv_CC_dependencies_compiler_type=none
5255  if test "$am_compiler_list" = ""; then
5256     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5257  fi
5258  for depmode in $am_compiler_list; do
5259    # Setup a source with many dependencies, because some compilers
5260    # like to wrap large dependency lists on column 80 (with \), and
5261    # we should not choose a depcomp mode which is confused by this.
5262    #
5263    # We need to recreate these files for each test, as the compiler may
5264    # overwrite some of them when testing with obscure command lines.
5265    # This happens at least with the AIX C compiler.
5266    : > sub/conftest.c
5267    for i in 1 2 3 4 5 6; do
5268      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5269      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5270      # Solaris 8's {/usr,}/bin/sh.
5271      touch sub/conftst$i.h
5272    done
5273    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5274
5275    case $depmode in
5276    nosideeffect)
5277      # after this tag, mechanisms are not by side-effect, so they'll
5278      # only be used when explicitly requested
5279      if test "x$enable_dependency_tracking" = xyes; then
5280        continue
5281      else
5282        break
5283      fi
5284      ;;
5285    none) break ;;
5286    esac
5287    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5288    # mode.  It turns out that the SunPro C++ compiler does not properly
5289    # handle `-M -o', and we need to detect this.
5290    if depmode=$depmode \
5291       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5292       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5293       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5294         >/dev/null 2>conftest.err &&
5295       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5296       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5297       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5298      # icc doesn't choke on unknown options, it will just issue warnings
5299      # or remarks (even with -Werror).  So we grep stderr for any message
5300      # that says an option was ignored or not supported.
5301      # When given -MP, icc 7.0 and 7.1 complain thusly:
5302      #   icc: Command line warning: ignoring option '-M'; no argument required
5303      # The diagnosis changed in icc 8.0:
5304      #   icc: Command line remark: option '-MP' not supported
5305      if (grep 'ignoring option' conftest.err ||
5306          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5307        am_cv_CC_dependencies_compiler_type=$depmode
5308        break
5309      fi
5310    fi
5311  done
5312
5313  cd ..
5314  rm -rf conftest.dir
5315else
5316  am_cv_CC_dependencies_compiler_type=none
5317fi
5318
5319fi
5320echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5321echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5322CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5323
5324
5325
5326if
5327  test "x$enable_dependency_tracking" != xno \
5328  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5329  am__fastdepCC_TRUE=
5330  am__fastdepCC_FALSE='#'
5331else
5332  am__fastdepCC_TRUE='#'
5333  am__fastdepCC_FALSE=
5334fi
5335
5336
5337depcc="$CXX"  am_compiler_list=
5338
5339echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5340echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5341if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5345  # We make a subdir and do the tests there.  Otherwise we can end up
5346  # making bogus files that we don't know about and never remove.  For
5347  # instance it was reported that on HP-UX the gcc test will end up
5348  # making a dummy file named `D' -- because `-MD' means `put the output
5349  # in D'.
5350  mkdir conftest.dir
5351  # Copy depcomp to subdir because otherwise we won't find it if we're
5352  # using a relative directory.
5353  cp "$am_depcomp" conftest.dir
5354  cd conftest.dir
5355  # We will build objects and dependencies in a subdirectory because
5356  # it helps to detect inapplicable dependency modes.  For instance
5357  # both Tru64's cc and ICC support -MD to output dependencies as a
5358  # side effect of compilation, but ICC will put the dependencies in
5359  # the current directory while Tru64 will put them in the object
5360  # directory.
5361  mkdir sub
5362
5363  am_cv_CXX_dependencies_compiler_type=none
5364  if test "$am_compiler_list" = ""; then
5365     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5366  fi
5367  for depmode in $am_compiler_list; do
5368    # Setup a source with many dependencies, because some compilers
5369    # like to wrap large dependency lists on column 80 (with \), and
5370    # we should not choose a depcomp mode which is confused by this.
5371    #
5372    # We need to recreate these files for each test, as the compiler may
5373    # overwrite some of them when testing with obscure command lines.
5374    # This happens at least with the AIX C compiler.
5375    : > sub/conftest.c
5376    for i in 1 2 3 4 5 6; do
5377      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5378      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5379      # Solaris 8's {/usr,}/bin/sh.
5380      touch sub/conftst$i.h
5381    done
5382    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5383
5384    case $depmode in
5385    nosideeffect)
5386      # after this tag, mechanisms are not by side-effect, so they'll
5387      # only be used when explicitly requested
5388      if test "x$enable_dependency_tracking" = xyes; then
5389        continue
5390      else
5391        break
5392      fi
5393      ;;
5394    none) break ;;
5395    esac
5396    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5397    # mode.  It turns out that the SunPro C++ compiler does not properly
5398    # handle `-M -o', and we need to detect this.
5399    if depmode=$depmode \
5400       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5401       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5402       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5403         >/dev/null 2>conftest.err &&
5404       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5405       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5406       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5407      # icc doesn't choke on unknown options, it will just issue warnings
5408      # or remarks (even with -Werror).  So we grep stderr for any message
5409      # that says an option was ignored or not supported.
5410      # When given -MP, icc 7.0 and 7.1 complain thusly:
5411      #   icc: Command line warning: ignoring option '-M'; no argument required
5412      # The diagnosis changed in icc 8.0:
5413      #   icc: Command line remark: option '-MP' not supported
5414      if (grep 'ignoring option' conftest.err ||
5415          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5416        am_cv_CXX_dependencies_compiler_type=$depmode
5417        break
5418      fi
5419    fi
5420  done
5421
5422  cd ..
5423  rm -rf conftest.dir
5424else
5425  am_cv_CXX_dependencies_compiler_type=none
5426fi
5427
5428fi
5429echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5430echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5431CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5432
5433
5434
5435if
5436  test "x$enable_dependency_tracking" != xno \
5437  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5438  am__fastdepCXX_TRUE=
5439  am__fastdepCXX_FALSE='#'
5440else
5441  am__fastdepCXX_TRUE='#'
5442  am__fastdepCXX_FALSE=
5443fi
5444
5445
5446
5447echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5448echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5449    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5450if test "${enable_maintainer_mode+set}" = set; then
5451  enableval="$enable_maintainer_mode"
5452  USE_MAINTAINER_MODE=$enableval
5453else
5454  USE_MAINTAINER_MODE=no
5455fi;
5456  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5457echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5458
5459
5460if test $USE_MAINTAINER_MODE = yes; then
5461  MAINTAINER_MODE_TRUE=
5462  MAINTAINER_MODE_FALSE='#'
5463else
5464  MAINTAINER_MODE_TRUE='#'
5465  MAINTAINER_MODE_FALSE=
5466fi
5467
5468  MAINT=$MAINTAINER_MODE_TRUE
5469
5470
5471
5472coin_have_externals=no
5473if test "$enable_maintainer_mode" = yes; then
5474
5475  # If maintainer mode is chosen, we make sure that the correct versions
5476  # of the tools are used, and that we know where libtool.m4 is (to
5477  # recreate acinclude.m4)
5478
5479
5480  LIBTOOLM4=
5481  # Normally, $HOME
5482  AUTOTOOLS_DFLT=$HOME
5483
5484  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5485echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5486if test "${ac_cv_use_correct_autotools+set}" = set; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489  ac_cv_use_correct_autotools=check
5490fi
5491echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5492echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5493
5494  if test $ac_cv_use_correct_autotools = check; then
5495    ac_cv_use_correct_autotools=yes
5496    # Check if we have autoconf
5497    # Extract the first word of "autoconf", so it can be a program name with args.
5498set dummy autoconf; ac_word=$2
5499echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501if test "${ac_cv_prog_have_autoconf+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  if test -n "$have_autoconf"; then
5505  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512  for ac_exec_ext in '' $ac_executable_extensions; do
5513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_have_autoconf="yes"
5515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519done
5520
5521  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5522fi
5523fi
5524have_autoconf=$ac_cv_prog_have_autoconf
5525if test -n "$have_autoconf"; then
5526  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5527echo "${ECHO_T}$have_autoconf" >&6
5528else
5529  echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531fi
5532
5533    if test $have_autoconf = no; then
5534      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5535echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5536   { (exit 1); exit 1; }; }
5537    fi
5538
5539    # Check whether autoconf is the correct version
5540    correct_version='2.59'
5541    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5542    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5543echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5544    autoconf --version > confauto.out 2>&1
5545    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5546      echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548    else
5549      rm -f confauto.out
5550      echo "$as_me:$LINENO: result: no" >&5
5551echo "${ECHO_T}no" >&6
5552      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5553echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5554   { (exit 1); exit 1; }; }
5555    fi
5556    rm -f confauto.out
5557
5558    # Check if the executable autoconf is picked up from the correct location
5559    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5560echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5561    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5562    autoconf_dir=`cd $autoconf_dir; pwd`
5563    if test x$AUTOTOOLS_DIR = x; then
5564      want_dir=$AUTOTOOLS_DFLT/bin
5565    else
5566      want_dir=$AUTOTOOLS_DIR/bin
5567    fi
5568    if test $autoconf_dir = `cd $want_dir; pwd`; then
5569      echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571    else
5572      rm -f confauto.out
5573      echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5576echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5577   { (exit 1); exit 1; }; }
5578    fi
5579
5580    # Check if we have automake
5581    # Extract the first word of "automake", so it can be a program name with args.
5582set dummy automake; ac_word=$2
5583echo "$as_me:$LINENO: checking for $ac_word" >&5
5584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585if test "${ac_cv_prog_have_automake+set}" = set; then
5586  echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588  if test -n "$have_automake"; then
5589  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5590else
5591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594  IFS=$as_save_IFS
5595  test -z "$as_dir" && as_dir=.
5596  for ac_exec_ext in '' $ac_executable_extensions; do
5597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598    ac_cv_prog_have_automake="yes"
5599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600    break 2
5601  fi
5602done
5603done
5604
5605  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5606fi
5607fi
5608have_automake=$ac_cv_prog_have_automake
5609if test -n "$have_automake"; then
5610  echo "$as_me:$LINENO: result: $have_automake" >&5
5611echo "${ECHO_T}$have_automake" >&6
5612else
5613  echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
5617    if test $have_automake = no; then
5618      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5619echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5620   { (exit 1); exit 1; }; }
5621    fi
5622
5623    # Check whether automake is the correct version
5624    correct_version='1.9.6'
5625    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5626    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5627echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5628    automake --version > confauto.out 2>&1
5629    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5630      echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632    else
5633      rm -f confauto.out
5634      echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5637echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5638   { (exit 1); exit 1; }; }
5639    fi
5640    rm -f confauto.out
5641
5642    # Check if the executable automake is picked up from the correct location
5643    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5644echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5645    automake_dir=`which automake | sed -e 's=/automake=='`
5646    automake_dir=`cd $automake_dir; pwd`
5647    if test x$AUTOTOOLS_DIR = x; then
5648      want_dir=$AUTOTOOLS_DFLT/bin
5649    else
5650      want_dir=$AUTOTOOLS_DIR/bin
5651    fi
5652    if test $automake_dir = `cd $want_dir; pwd`; then
5653      echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655    else
5656      rm -f confauto.out
5657      echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5660echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5661   { (exit 1); exit 1; }; }
5662    fi
5663
5664    # Check if this is the correct version of libtool (with escaped dots)
5665    if test x$AUTOTOOLS_DIR = x; then
5666      want_dir=$AUTOTOOLS_DFLT/share
5667    else
5668      want_dir=$AUTOTOOLS_DIR/share
5669    fi
5670    correct_version='1.5.22'
5671    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5672    if test -r $want_dir/libtool/ltmain.sh; then
5673  have_ltmain=yes
5674  :
5675else
5676  have_ltmain=no
5677  :
5678fi
5679
5680    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5681echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5682    if test $have_ltmain = yes; then
5683    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5684        echo "$as_me:$LINENO: result: yes" >&5
5685echo "${ECHO_T}yes" >&6
5686      else
5687        echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5690echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5691   { (exit 1); exit 1; }; }
5692      fi
5693    else
5694      echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5697echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5698   { (exit 1); exit 1; }; }
5699    fi
5700  fi
5701
5702  # Check if we can find the libtool file
5703  if test x$AUTOTOOLS_DIR = x; then
5704    want_dir=$AUTOTOOLS_DFLT/share
5705  else
5706    want_dir=$AUTOTOOLS_DIR/share
5707  fi
5708  if test -r $want_dir/aclocal/libtool.m4; then
5709  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5710  :
5711else
5712  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5713echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5714   { (exit 1); exit 1; }; }
5715  :
5716fi
5717
5718
5719  # Check if we have an Dependencies file
5720  if test -r $srcdir/Dependencies; then
5721    coin_have_externals=yes
5722  fi
5723  # Check if subversion is installed and understands https
5724  # Extract the first word of "svn", so it can be a program name with args.
5725set dummy svn; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_have_svn+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  if test -n "$have_svn"; then
5732  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  test -z "$as_dir" && as_dir=.
5739  for ac_exec_ext in '' $ac_executable_extensions; do
5740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_have_svn="yes"
5742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746done
5747
5748  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5749fi
5750fi
5751have_svn=$ac_cv_prog_have_svn
5752if test -n "$have_svn"; then
5753  echo "$as_me:$LINENO: result: $have_svn" >&5
5754echo "${ECHO_T}$have_svn" >&6
5755else
5756  echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759
5760  if test x$have_svn = xyes; then
5761    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5762echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5763if test "${ac_cv_svn_understands_https+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  svn --version > confauto.out 2>&1
5767                    if $EGREP https confauto.out >/dev/null 2>&1; then
5768                      ac_cv_svn_understands_https=yes
5769                    else
5770                      ac_cv_svn_understands_https=no
5771                      have_svn=no
5772                      ac_cv_prog_have_svn=no
5773                    fi
5774                    rm -f confauto.out
5775fi
5776echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5777echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5778  fi
5779
5780  # Find the location of the BuildTools directory
5781  BUILDTOOLSDIR=
5782  if test -r $srcdir/BuildTools/coin.m4; then
5783    BUILDTOOLSDIR=$srcdir/BuildTools
5784  else
5785    if test -r $srcdir/../BuildTools/coin.m4; then
5786      BUILDTOOLSDIR=$srcdir/../BuildTools
5787    else
5788      if test -r $srcdir/../../BuildTools/coin.m4; then
5789        BUILDTOOLSDIR=$srcdir/../../BuildTools
5790      else
5791        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5792echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5793   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5794      fi
5795    fi
5796  fi
5797
5798
5799  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5800  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5801    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5802  fi
5803
5804  # The following variable is set to the name of the directory where
5805  # the autotool scripts are located
5806
5807  AUX_DIR=$ac_aux_dir
5808fi
5809
5810# helpful variable for the base directory of this package
5811abs_source_dir=`cd $srcdir; pwd`
5812
5813
5814# Stuff for example Makefiles
5815if test x$prefix = xNONE; then
5816  full_prefix=$ac_default_prefix
5817else
5818  full_prefix=$prefix
5819fi
5820full_prefix=`cd $full_prefix ; pwd`
5821
5822abs_lib_dir=$full_prefix/lib
5823
5824abs_include_dir=$full_prefix/include
5825
5826abs_bin_dir=$full_prefix/bin
5827
5828
5829
5830if test $coin_have_externals = yes && test x$have_svn = xyes; then
5831  HAVE_EXTERNALS_TRUE=
5832  HAVE_EXTERNALS_FALSE='#'
5833else
5834  HAVE_EXTERNALS_TRUE='#'
5835  HAVE_EXTERNALS_FALSE=
5836fi
5837
5838
5839# AC_MSG_NOTICE([End automake initialisation.])
5840
5841
5842
5843LIBTOOL=
5844if test -f ../libtool; then
5845  coin_config_dir=..
5846  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5847fi
5848if test "x$LIBTOOL" = x; then
5849  if test -f ../../libtool; then
5850    coin_config_dir=../..
5851    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5852  fi
5853fi
5854
5855if test "x$LIBTOOL" = x; then
5856# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5857  # Stuff for libtool
5858  # Check whether --enable-shared or --disable-shared was given.
5859if test "${enable_shared+set}" = set; then
5860  enableval="$enable_shared"
5861  p=${PACKAGE-default}
5862    case $enableval in
5863    yes) enable_shared=yes ;;
5864    no) enable_shared=no ;;
5865    *)
5866      enable_shared=no
5867      # Look at the argument we got.  We use all the common list separators.
5868      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5869      for pkg in $enableval; do
5870        IFS="$lt_save_ifs"
5871        if test "X$pkg" = "X$p"; then
5872          enable_shared=yes
5873        fi
5874      done
5875      IFS="$lt_save_ifs"
5876      ;;
5877    esac
5878else
5879  enable_shared=yes
5880fi;
5881
5882# Check whether --enable-fast-install or --disable-fast-install was given.
5883if test "${enable_fast_install+set}" = set; then
5884  enableval="$enable_fast_install"
5885  p=${PACKAGE-default}
5886    case $enableval in
5887    yes) enable_fast_install=yes ;;
5888    no) enable_fast_install=no ;;
5889    *)
5890      enable_fast_install=no
5891      # Look at the argument we got.  We use all the common list separators.
5892      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5893      for pkg in $enableval; do
5894        IFS="$lt_save_ifs"
5895        if test "X$pkg" = "X$p"; then
5896          enable_fast_install=yes
5897        fi
5898      done
5899      IFS="$lt_save_ifs"
5900      ;;
5901    esac
5902else
5903  enable_fast_install=yes
5904fi;
5905
5906echo "$as_me:$LINENO: checking host system type" >&5
5907echo $ECHO_N "checking host system type... $ECHO_C" >&6
5908if test "${ac_cv_host+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  ac_cv_host_alias=$host_alias
5912test -z "$ac_cv_host_alias" &&
5913  ac_cv_host_alias=$ac_cv_build_alias
5914ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5915  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5916echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5917   { (exit 1); exit 1; }; }
5918
5919fi
5920echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5921echo "${ECHO_T}$ac_cv_host" >&6
5922host=$ac_cv_host
5923host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5924host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5925host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5926
5927
5928echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5929echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5930if test "${lt_cv_path_SED+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  # Loop through the user's path and test for sed and gsed.
5934# Then use that list of sed's as ones to test for truncation.
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940  for lt_ac_prog in sed gsed; do
5941    for ac_exec_ext in '' $ac_executable_extensions; do
5942      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5943        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5944      fi
5945    done
5946  done
5947done
5948lt_ac_max=0
5949lt_ac_count=0
5950# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5951# along with /bin/sed that truncates output.
5952for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5953  test ! -f $lt_ac_sed && continue
5954  cat /dev/null > conftest.in
5955  lt_ac_count=0
5956  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5957  # Check for GNU sed and select it if it is found.
5958  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5959    lt_cv_path_SED=$lt_ac_sed
5960    break
5961  fi
5962  while true; do
5963    cat conftest.in conftest.in >conftest.tmp
5964    mv conftest.tmp conftest.in
5965    cp conftest.in conftest.nl
5966    echo >>conftest.nl
5967    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5968    cmp -s conftest.out conftest.nl || break
5969    # 10000 chars as input seems more than enough
5970    test $lt_ac_count -gt 10 && break
5971    lt_ac_count=`expr $lt_ac_count + 1`
5972    if test $lt_ac_count -gt $lt_ac_max; then
5973      lt_ac_max=$lt_ac_count
5974      lt_cv_path_SED=$lt_ac_sed
5975    fi
5976  done
5977done
5978
5979fi
5980
5981SED=$lt_cv_path_SED
5982echo "$as_me:$LINENO: result: $SED" >&5
5983echo "${ECHO_T}$SED" >&6
5984
5985
5986# Check whether --with-gnu-ld or --without-gnu-ld was given.
5987if test "${with_gnu_ld+set}" = set; then
5988  withval="$with_gnu_ld"
5989  test "$withval" = no || with_gnu_ld=yes
5990else
5991  with_gnu_ld=no
5992fi;
5993ac_prog=ld
5994if test "$GCC" = yes; then
5995  # Check if gcc -print-prog-name=ld gives a path.
5996  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5997echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5998  case $host in
5999  *-*-mingw*)
6000    # gcc leaves a trailing carriage return which upsets mingw
6001    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6002  *)
6003    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6004  esac
6005  case $ac_prog in
6006    # Accept absolute paths.
6007    [\\/]* | ?:[\\/]*)
6008      re_direlt='/[^/][^/]*/\.\./'
6009      # Canonicalize the pathname of ld
6010      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6011      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6012        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6013      done
6014      test -z "$LD" && LD="$ac_prog"
6015      ;;
6016  "")
6017    # If it fails, then pretend we aren't using GCC.
6018    ac_prog=ld
6019    ;;
6020  *)
6021    # If it is relative, then search for the first ld in PATH.
6022    with_gnu_ld=unknown
6023    ;;
6024  esac
6025elif test "$with_gnu_ld" = yes; then
6026  echo "$as_me:$LINENO: checking for GNU ld" >&5
6027echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6028else
6029  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6030echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6031fi
6032if test "${lt_cv_path_LD+set}" = set; then
6033  echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035  if test -z "$LD"; then
6036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6037  for ac_dir in $PATH; do
6038    IFS="$lt_save_ifs"
6039    test -z "$ac_dir" && ac_dir=.
6040    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6041      lt_cv_path_LD="$ac_dir/$ac_prog"
6042      # Check to see if the program is GNU ld.  I'd rather use --version,
6043      # but apparently some variants of GNU ld only accept -v.
6044      # Break only if it was the GNU/non-GNU ld that we prefer.
6045      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6046      *GNU* | *'with BFD'*)
6047        test "$with_gnu_ld" != no && break
6048        ;;
6049      *)
6050        test "$with_gnu_ld" != yes && break
6051        ;;
6052      esac
6053    fi
6054  done
6055  IFS="$lt_save_ifs"
6056else
6057  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6058fi
6059fi
6060
6061LD="$lt_cv_path_LD"
6062if test -n "$LD"; then
6063  echo "$as_me:$LINENO: result: $LD" >&5
6064echo "${ECHO_T}$LD" >&6
6065else
6066  echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068fi
6069test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6070echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6071   { (exit 1); exit 1; }; }
6072echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6073echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6074if test "${lt_cv_prog_gnu_ld+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6078case `$LD -v 2>&1 </dev/null` in
6079*GNU* | *'with BFD'*)
6080  lt_cv_prog_gnu_ld=yes
6081  ;;
6082*)
6083  lt_cv_prog_gnu_ld=no
6084  ;;
6085esac
6086fi
6087echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6088echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6089with_gnu_ld=$lt_cv_prog_gnu_ld
6090
6091
6092echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6093echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6094if test "${lt_cv_ld_reload_flag+set}" = set; then
6095  echo $ECHO_N "(cached) $ECHO_C" >&6
6096else
6097  lt_cv_ld_reload_flag='-r'
6098fi
6099echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6100echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6101reload_flag=$lt_cv_ld_reload_flag
6102case $reload_flag in
6103"" | " "*) ;;
6104*) reload_flag=" $reload_flag" ;;
6105esac
6106reload_cmds='$LD$reload_flag -o $output$reload_objs'
6107case $host_os in
6108  darwin*)
6109    if test "$GCC" = yes; then
6110      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6111    else
6112      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6113    fi
6114    ;;
6115esac
6116
6117echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6118echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6119if test "${lt_cv_path_NM+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  if test -n "$NM"; then
6123  # Let the user override the test.
6124  lt_cv_path_NM="$NM"
6125else
6126  lt_nm_to_check="${ac_tool_prefix}nm"
6127  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6128    lt_nm_to_check="$lt_nm_to_check nm"
6129  fi
6130  for lt_tmp_nm in $lt_nm_to_check; do
6131    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6132    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6133      IFS="$lt_save_ifs"
6134      test -z "$ac_dir" && ac_dir=.
6135      tmp_nm="$ac_dir/$lt_tmp_nm"
6136      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6137        # Check to see if the nm accepts a BSD-compat flag.
6138        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6139        #   nm: unknown option "B" ignored
6140        # Tru64's nm complains that /dev/null is an invalid object file
6141        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6142        */dev/null* | *'Invalid file or object type'*)
6143          lt_cv_path_NM="$tmp_nm -B"
6144          break
6145          ;;
6146        *)
6147          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6148          */dev/null*)
6149            lt_cv_path_NM="$tmp_nm -p"
6150            break
6151            ;;
6152          *)
6153            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6154            continue # so that we can try to find one that supports BSD flags
6155            ;;
6156          esac
6157          ;;
6158        esac
6159      fi
6160    done
6161    IFS="$lt_save_ifs"
6162  done
6163  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6164fi
6165fi
6166echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6167echo "${ECHO_T}$lt_cv_path_NM" >&6
6168NM="$lt_cv_path_NM"
6169
6170echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6171echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6172if test "${lt_cv_deplibs_check_method+set}" = set; then
6173  echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175  lt_cv_file_magic_cmd='$MAGIC_CMD'
6176lt_cv_file_magic_test_file=
6177lt_cv_deplibs_check_method='unknown'
6178# Need to set the preceding variable on all platforms that support
6179# interlibrary dependencies.
6180# 'none' -- dependencies not supported.
6181# `unknown' -- same as none, but documents that we really don't know.
6182# 'pass_all' -- all dependencies passed with no checks.
6183# 'test_compile' -- check by making test program.
6184# 'file_magic [[regex]]' -- check by looking for files in library path
6185# which responds to the $file_magic_cmd with a given extended regex.
6186# If you have `file' or equivalent on your system and you're not sure
6187# whether `pass_all' will *always* work, you probably want this one.
6188
6189case $host_os in
6190aix4* | aix5*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193
6194beos*)
6195  lt_cv_deplibs_check_method=pass_all
6196  ;;
6197
6198bsdi[45]*)
6199  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6200  lt_cv_file_magic_cmd='/usr/bin/file -L'
6201  lt_cv_file_magic_test_file=/shlib/libc.so
6202  ;;
6203
6204cygwin*)
6205  # func_win32_libid is a shell function defined in ltmain.sh
6206  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6207  lt_cv_file_magic_cmd='func_win32_libid'
6208  ;;
6209
6210mingw* | pw32*)
6211  # Base MSYS/MinGW do not provide the 'file' command needed by
6212  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6213  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6214  lt_cv_file_magic_cmd='$OBJDUMP -f'
6215  ;;
6216
6217darwin* | rhapsody*)
6218  lt_cv_deplibs_check_method=pass_all
6219  ;;
6220
6221freebsd* | kfreebsd*-gnu | dragonfly*)
6222  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6223    case $host_cpu in
6224    i*86 )
6225      # Not sure whether the presence of OpenBSD here was a mistake.
6226      # Let's accept both of them until this is cleared up.
6227      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6228      lt_cv_file_magic_cmd=/usr/bin/file
6229      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6230      ;;
6231    esac
6232  else
6233    lt_cv_deplibs_check_method=pass_all
6234  fi
6235  ;;
6236
6237gnu*)
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241hpux10.20* | hpux11*)
6242  lt_cv_file_magic_cmd=/usr/bin/file
6243  case $host_cpu in
6244  ia64*)
6245    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6246    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6247    ;;
6248  hppa*64*)
6249    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]'
6250    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6251    ;;
6252  *)
6253    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6254    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6255    ;;
6256  esac
6257  ;;
6258
6259interix3*)
6260  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6261  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6262  ;;
6263
6264irix5* | irix6* | nonstopux*)
6265  case $LD in
6266  *-32|*"-32 ") libmagic=32-bit;;
6267  *-n32|*"-n32 ") libmagic=N32;;
6268  *-64|*"-64 ") libmagic=64-bit;;
6269  *) libmagic=never-match;;
6270  esac
6271  lt_cv_deplibs_check_method=pass_all
6272  ;;
6273
6274# This must be Linux ELF.
6275linux*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279netbsd*)
6280  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6281    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6282  else
6283    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6284  fi
6285  ;;
6286
6287newos6*)
6288  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6289  lt_cv_file_magic_cmd=/usr/bin/file
6290  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6291  ;;
6292
6293nto-qnx*)
6294  lt_cv_deplibs_check_method=unknown
6295  ;;
6296
6297openbsd*)
6298  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6300  else
6301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6302  fi
6303  ;;
6304
6305osf3* | osf4* | osf5*)
6306  lt_cv_deplibs_check_method=pass_all
6307  ;;
6308
6309solaris*)
6310  lt_cv_deplibs_check_method=pass_all
6311  ;;
6312
6313sysv4 | sysv4.3*)
6314  case $host_vendor in
6315  motorola)
6316    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]'
6317    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6318    ;;
6319  ncr)
6320    lt_cv_deplibs_check_method=pass_all
6321    ;;
6322  sequent)
6323    lt_cv_file_magic_cmd='/bin/file'
6324    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6325    ;;
6326  sni)
6327    lt_cv_file_magic_cmd='/bin/file'
6328    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6329    lt_cv_file_magic_test_file=/lib/libc.so
6330    ;;
6331  siemens)
6332    lt_cv_deplibs_check_method=pass_all
6333    ;;
6334  pc)
6335    lt_cv_deplibs_check_method=pass_all
6336    ;;
6337  esac
6338  ;;
6339
6340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6341  lt_cv_deplibs_check_method=pass_all
6342  ;;
6343esac
6344
6345fi
6346echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6347echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6348file_magic_cmd=$lt_cv_file_magic_cmd
6349deplibs_check_method=$lt_cv_deplibs_check_method
6350test -z "$deplibs_check_method" && deplibs_check_method=unknown
6351
6352
6353
6354
6355# If no C compiler was specified, use CC.
6356LTCC=${LTCC-"$CC"}
6357
6358# If no C compiler flags were specified, use CFLAGS.
6359LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6360
6361# Allow CC to be a program name with arguments.
6362compiler=$CC
6363
6364# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6365if test "${enable_libtool_lock+set}" = set; then
6366  enableval="$enable_libtool_lock"
6367
6368fi;
6369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6370
6371# Some flags need to be propagated to the compiler or linker for good
6372# libtool support.
6373case $host in
6374ia64-*-hpux*)
6375  # Find out which ABI we are using.
6376  echo 'int i;' > conftest.$ac_ext
6377  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378  (eval $ac_compile) 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); }; then
6382    case `/usr/bin/file conftest.$ac_objext` in
6383    *ELF-32*)
6384      HPUX_IA64_MODE="32"
6385      ;;
6386    *ELF-64*)
6387      HPUX_IA64_MODE="64"
6388      ;;
6389    esac
6390  fi
6391  rm -rf conftest*
6392  ;;
6393*-*-irix6*)
6394  # Find out which ABI we are using.
6395  echo '#line 6395 "configure"' > conftest.$ac_ext
6396  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397  (eval $ac_compile) 2>&5
6398  ac_status=$?
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); }; then
6401   if test "$lt_cv_prog_gnu_ld" = yes; then
6402    case `/usr/bin/file conftest.$ac_objext` in
6403    *32-bit*)
6404      LD="${LD-ld} -melf32bsmip"
6405      ;;
6406    *N32*)
6407      LD="${LD-ld} -melf32bmipn32"
6408      ;;
6409    *64-bit*)
6410      LD="${LD-ld} -melf64bmip"
6411      ;;
6412    esac
6413   else
6414    case `/usr/bin/file conftest.$ac_objext` in
6415    *32-bit*)
6416      LD="${LD-ld} -32"
6417      ;;
6418    *N32*)
6419      LD="${LD-ld} -n32"
6420      ;;
6421    *64-bit*)
6422      LD="${LD-ld} -64"
6423      ;;
6424    esac
6425   fi
6426  fi
6427  rm -rf conftest*
6428  ;;
6429
6430x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6431  # Find out which ABI we are using.
6432  echo 'int i;' > conftest.$ac_ext
6433  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434  (eval $ac_compile) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; then
6438    case `/usr/bin/file conftest.o` in
6439    *32-bit*)
6440      case $host in
6441        x86_64-*linux*)
6442          LD="${LD-ld} -m elf_i386"
6443          ;;
6444        ppc64-*linux*|powerpc64-*linux*)
6445          LD="${LD-ld} -m elf32ppclinux"
6446          ;;
6447        s390x-*linux*)
6448          LD="${LD-ld} -m elf_s390"
6449          ;;
6450        sparc64-*linux*)
6451          LD="${LD-ld} -m elf32_sparc"
6452          ;;
6453      esac
6454      ;;
6455    *64-bit*)
6456      case $host in
6457        x86_64-*linux*)
6458          LD="${LD-ld} -m elf_x86_64"
6459          ;;
6460        ppc*-*linux*|powerpc*-*linux*)
6461          LD="${LD-ld} -m elf64ppc"
6462          ;;
6463        s390*-*linux*)
6464          LD="${LD-ld} -m elf64_s390"
6465          ;;
6466        sparc*-*linux*)
6467          LD="${LD-ld} -m elf64_sparc"
6468          ;;
6469      esac
6470      ;;
6471    esac
6472  fi
6473  rm -rf conftest*
6474  ;;
6475
6476*-*-sco3.2v5*)
6477  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6478  SAVE_CFLAGS="$CFLAGS"
6479  CFLAGS="$CFLAGS -belf"
6480  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6481echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6482if test "${lt_cv_cc_needs_belf+set}" = set; then
6483  echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485  ac_ext=c
6486ac_cpp='$CPP $CPPFLAGS'
6487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490
6491     cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h.  */
6493_ACEOF
6494cat confdefs.h >>conftest.$ac_ext
6495cat >>conftest.$ac_ext <<_ACEOF
6496/* end confdefs.h.  */
6497
6498int
6499main ()
6500{
6501
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506rm -f conftest.$ac_objext conftest$ac_exeext
6507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508  (eval $ac_link) 2>conftest.er1
6509  ac_status=$?
6510  grep -v '^ *+' conftest.er1 >conftest.err
6511  rm -f conftest.er1
6512  cat conftest.err >&5
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); } &&
6515         { ac_try='test -z "$ac_c_werror_flag"
6516                         || test ! -s conftest.err'
6517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518  (eval $ac_try) 2>&5
6519  ac_status=$?
6520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521  (exit $ac_status); }; } &&
6522         { ac_try='test -s conftest$ac_exeext'
6523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524  (eval $ac_try) 2>&5
6525  ac_status=$?
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); }; }; then
6528  lt_cv_cc_needs_belf=yes
6529else
6530  echo "$as_me: failed program was:" >&5
6531sed 's/^/| /' conftest.$ac_ext >&5
6532
6533lt_cv_cc_needs_belf=no
6534fi
6535rm -f conftest.err conftest.$ac_objext \
6536      conftest$ac_exeext conftest.$ac_ext
6537     ac_ext=c
6538ac_cpp='$CPP $CPPFLAGS'
6539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542
6543fi
6544echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6545echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6546  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6547    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6548    CFLAGS="$SAVE_CFLAGS"
6549  fi
6550  ;;
6551sparc*-*solaris*)
6552  # Find out which ABI we are using.
6553  echo 'int i;' > conftest.$ac_ext
6554  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555  (eval $ac_compile) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; then
6559    case `/usr/bin/file conftest.o` in
6560    *64-bit*)
6561      case $lt_cv_prog_gnu_ld in
6562      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6563      *)    LD="${LD-ld} -64" ;;
6564      esac
6565      ;;
6566    esac
6567  fi
6568  rm -rf conftest*
6569  ;;
6570
6571
6572esac
6573
6574need_locks="$enable_libtool_lock"
6575
6576
6577ac_ext=c
6578ac_cpp='$CPP $CPPFLAGS'
6579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581ac_compiler_gnu=$ac_cv_c_compiler_gnu
6582echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6583echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6584# On Suns, sometimes $CPP names a directory.
6585if test -n "$CPP" && test -d "$CPP"; then
6586  CPP=
6587fi
6588if test -z "$CPP"; then
6589  if test "${ac_cv_prog_CPP+set}" = set; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592      # Double quotes because CPP needs to be expanded
6593    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6594    do
6595      ac_preproc_ok=false
6596for ac_c_preproc_warn_flag in '' yes
6597do
6598  # Use a header file that comes with gcc, so configuring glibc
6599  # with a fresh cross-compiler works.
6600  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6601  # <limits.h> exists even on freestanding compilers.
6602  # On the NeXT, cc -E runs the code through the compiler's parser,
6603  # not just through cpp. "Syntax error" is here to catch this case.
6604  cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h.  */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h.  */
6610#ifdef __STDC__
6611# include <limits.h>
6612#else
6613# include <assert.h>
6614#endif
6615                     Syntax error
6616_ACEOF
6617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619  ac_status=$?
6620  grep -v '^ *+' conftest.er1 >conftest.err
6621  rm -f conftest.er1
6622  cat conftest.err >&5
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); } >/dev/null; then
6625  if test -s conftest.err; then
6626    ac_cpp_err=$ac_c_preproc_warn_flag
6627    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628  else
6629    ac_cpp_err=
6630  fi
6631else
6632  ac_cpp_err=yes
6633fi
6634if test -z "$ac_cpp_err"; then
6635  :
6636else
6637  echo "$as_me: failed program was:" >&5
6638sed 's/^/| /' conftest.$ac_ext >&5
6639
6640  # Broken: fails on valid input.
6641continue
6642fi
6643rm -f conftest.err conftest.$ac_ext
6644
6645  # OK, works on sane cases.  Now check whether non-existent headers
6646  # can be detected and how.
6647  cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h.  */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h.  */
6653#include <ac_nonexistent.h>
6654_ACEOF
6655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6657  ac_status=$?
6658  grep -v '^ *+' conftest.er1 >conftest.err
6659  rm -f conftest.er1
6660  cat conftest.err >&5
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); } >/dev/null; then
6663  if test -s conftest.err; then
6664    ac_cpp_err=$ac_c_preproc_warn_flag
6665    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6666  else
6667    ac_cpp_err=
6668  fi
6669else
6670  ac_cpp_err=yes
6671fi
6672if test -z "$ac_cpp_err"; then
6673  # Broken: success on invalid input.
6674continue
6675else
6676  echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
6678
6679  # Passes both tests.
6680ac_preproc_ok=:
6681break
6682fi
6683rm -f conftest.err conftest.$ac_ext
6684
6685done
6686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6687rm -f conftest.err conftest.$ac_ext
6688if $ac_preproc_ok; then
6689  break
6690fi
6691
6692    done
6693    ac_cv_prog_CPP=$CPP
6694
6695fi
6696  CPP=$ac_cv_prog_CPP
6697else
6698  ac_cv_prog_CPP=$CPP
6699fi
6700echo "$as_me:$LINENO: result: $CPP" >&5
6701echo "${ECHO_T}$CPP" >&6
6702ac_preproc_ok=false
6703for ac_c_preproc_warn_flag in '' yes
6704do
6705  # Use a header file that comes with gcc, so configuring glibc
6706  # with a fresh cross-compiler works.
6707  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6708  # <limits.h> exists even on freestanding compilers.
6709  # On the NeXT, cc -E runs the code through the compiler's parser,
6710  # not just through cpp. "Syntax error" is here to catch this case.
6711  cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h.  */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h.  */
6717#ifdef __STDC__
6718# include <limits.h>
6719#else
6720# include <assert.h>
6721#endif
6722                     Syntax error
6723_ACEOF
6724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726  ac_status=$?
6727  grep -v '^ *+' conftest.er1 >conftest.err
6728  rm -f conftest.er1
6729  cat conftest.err >&5
6730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731  (exit $ac_status); } >/dev/null; then
6732  if test -s conftest.err; then
6733    ac_cpp_err=$ac_c_preproc_warn_flag
6734    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735  else
6736    ac_cpp_err=
6737  fi
6738else
6739  ac_cpp_err=yes
6740fi
6741if test -z "$ac_cpp_err"; then
6742  :
6743else
6744  echo "$as_me: failed program was:" >&5
6745sed 's/^/| /' conftest.$ac_ext >&5
6746
6747  # Broken: fails on valid input.
6748continue
6749fi
6750rm -f conftest.err conftest.$ac_ext
6751
6752  # OK, works on sane cases.  Now check whether non-existent headers
6753  # can be detected and how.
6754  cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h.  */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h.  */
6760#include <ac_nonexistent.h>
6761_ACEOF
6762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6763  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6764  ac_status=$?
6765  grep -v '^ *+' conftest.er1 >conftest.err
6766  rm -f conftest.er1
6767  cat conftest.err >&5
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); } >/dev/null; then
6770  if test -s conftest.err; then
6771    ac_cpp_err=$ac_c_preproc_warn_flag
6772    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6773  else
6774    ac_cpp_err=
6775  fi
6776else
6777  ac_cpp_err=yes
6778fi
6779if test -z "$ac_cpp_err"; then
6780  # Broken: success on invalid input.
6781continue
6782else
6783  echo "$as_me: failed program was:" >&5
6784sed 's/^/| /' conftest.$ac_ext >&5
6785
6786  # Passes both tests.
6787ac_preproc_ok=:
6788break
6789fi
6790rm -f conftest.err conftest.$ac_ext
6791
6792done
6793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6794rm -f conftest.err conftest.$ac_ext
6795if $ac_preproc_ok; then
6796  :
6797else
6798  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6799See \`config.log' for more details." >&5
6800echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6801See \`config.log' for more details." >&2;}
6802   { (exit 1); exit 1; }; }
6803fi
6804
6805ac_ext=c
6806ac_cpp='$CPP $CPPFLAGS'
6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811
6812echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6813echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6814if test "${ac_cv_header_stdc+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817  cat >conftest.$ac_ext <<_ACEOF
6818/* confdefs.h.  */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h.  */
6823#include <stdlib.h>
6824#include <stdarg.h>
6825#include <string.h>
6826#include <float.h>
6827
6828int
6829main ()
6830{
6831
6832  ;
6833  return 0;
6834}
6835_ACEOF
6836rm -f conftest.$ac_objext
6837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838  (eval $ac_compile) 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } &&
6845         { ac_try='test -z "$ac_c_werror_flag"
6846                         || test ! -s conftest.err'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; } &&
6852         { ac_try='test -s conftest.$ac_objext'
6853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854  (eval $ac_try) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); }; }; then
6858  ac_cv_header_stdc=yes
6859else
6860  echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863ac_cv_header_stdc=no
6864fi
6865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866
6867if test $ac_cv_header_stdc = yes; then
6868  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6869  cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h.  */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h.  */
6875#include <string.h>
6876
6877_ACEOF
6878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6879  $EGREP "memchr" >/dev/null 2>&1; then
6880  :
6881else
6882  ac_cv_header_stdc=no
6883fi
6884rm -f conftest*
6885
6886fi
6887
6888if test $ac_cv_header_stdc = yes; then
6889  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6890  cat >conftest.$ac_ext <<_ACEOF
6891/* confdefs.h.  */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h.  */
6896#include <stdlib.h>
6897
6898_ACEOF
6899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6900  $EGREP "free" >/dev/null 2>&1; then
6901  :
6902else
6903  ac_cv_header_stdc=no
6904fi
6905rm -f conftest*
6906
6907fi
6908
6909if test $ac_cv_header_stdc = yes; then
6910  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6911  if test "$cross_compiling" = yes; then
6912  :
6913else
6914  cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h.  */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h.  */
6920#include <ctype.h>
6921#if ((' ' & 0x0FF) == 0x020)
6922# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6923# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6924#else
6925# define ISLOWER(c) \
6926                   (('a' <= (c) && (c) <= 'i') \
6927                     || ('j' <= (c) && (c) <= 'r') \
6928                     || ('s' <= (c) && (c) <= 'z'))
6929# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6930#endif
6931
6932#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6933int
6934main ()
6935{
6936  int i;
6937  for (i = 0; i < 256; i++)
6938    if (XOR (islower (i), ISLOWER (i))
6939        || toupper (i) != TOUPPER (i))
6940      exit(2);
6941  exit (0);
6942}
6943_ACEOF
6944rm -f conftest$ac_exeext
6945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6946  (eval $ac_link) 2>&5
6947  ac_status=$?
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951  (eval $ac_try) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; }; then
6955  :
6956else
6957  echo "$as_me: program exited with status $ac_status" >&5
6958echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961( exit $ac_status )
6962ac_cv_header_stdc=no
6963fi
6964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6965fi
6966fi
6967fi
6968echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6969echo "${ECHO_T}$ac_cv_header_stdc" >&6
6970if test $ac_cv_header_stdc = yes; then
6971
6972cat >>confdefs.h <<\_ACEOF
6973#define STDC_HEADERS 1
6974_ACEOF
6975
6976fi
6977
6978# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6989                  inttypes.h stdint.h unistd.h
6990do
6991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6992echo "$as_me:$LINENO: checking for $ac_header" >&5
6993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6994if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003$ac_includes_default
7004
7005#include <$ac_header>
7006_ACEOF
7007rm -f conftest.$ac_objext
7008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7009  (eval $ac_compile) 2>conftest.er1
7010  ac_status=$?
7011  grep -v '^ *+' conftest.er1 >conftest.err
7012  rm -f conftest.er1
7013  cat conftest.err >&5
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); } &&
7016         { ac_try='test -z "$ac_c_werror_flag"
7017                         || test ! -s conftest.err'
7018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019  (eval $ac_try) 2>&5
7020  ac_status=$?
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); }; } &&
7023         { ac_try='test -s conftest.$ac_objext'
7024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025  (eval $ac_try) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); }; }; then
7029  eval "$as_ac_Header=yes"
7030else
7031  echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034eval "$as_ac_Header=no"
7035fi
7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037fi
7038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7040if test `eval echo '${'$as_ac_Header'}'` = yes; then
7041  cat >>confdefs.h <<_ACEOF
7042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7043_ACEOF
7044
7045fi
7046
7047done
7048
7049
7050
7051for ac_header in dlfcn.h
7052do
7053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054if eval "test \"\${$as_ac_Header+set}\" = set"; then
7055  echo "$as_me:$LINENO: checking for $ac_header" >&5
7056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7057if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058  echo $ECHO_N "(cached) $ECHO_C" >&6
7059fi
7060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062else
7063  # Is the header compilable?
7064echo "$as_me:$LINENO: checking $ac_header usability" >&5
7065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7066cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h.  */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h.  */
7072$ac_includes_default
7073#include <$ac_header>
7074_ACEOF
7075rm -f conftest.$ac_objext
7076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077  (eval $ac_compile) 2>conftest.er1
7078  ac_status=$?
7079  grep -v '^ *+' conftest.er1 >conftest.err
7080  rm -f conftest.er1
7081  cat conftest.err >&5
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); } &&
7084         { ac_try='test -z "$ac_c_werror_flag"
7085                         || test ! -s conftest.err'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; } &&
7091         { ac_try='test -s conftest.$ac_objext'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; }; then
7097  ac_header_compiler=yes
7098else
7099  echo "$as_me: failed program was:" >&5
7100sed 's/^/| /' conftest.$ac_ext >&5
7101
7102ac_header_compiler=no
7103fi
7104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7106echo "${ECHO_T}$ac_header_compiler" >&6
7107
7108# Is the header present?
7109echo "$as_me:$LINENO: checking $ac_header presence" >&5
7110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7111cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h.  */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h.  */
7117#include <$ac_header>
7118_ACEOF
7119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7121  ac_status=$?
7122  grep -v '^ *+' conftest.er1 >conftest.err
7123  rm -f conftest.er1
7124  cat conftest.err >&5
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); } >/dev/null; then
7127  if test -s conftest.err; then
7128    ac_cpp_err=$ac_c_preproc_warn_flag
7129    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7130  else
7131    ac_cpp_err=
7132  fi
7133else
7134  ac_cpp_err=yes
7135fi
7136if test -z "$ac_cpp_err"; then
7137  ac_header_preproc=yes
7138else
7139  echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142  ac_header_preproc=no
7143fi
7144rm -f conftest.err conftest.$ac_ext
7145echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7146echo "${ECHO_T}$ac_header_preproc" >&6
7147
7148# So?  What about this header?
7149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7150  yes:no: )
7151    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7155    ac_header_preproc=yes
7156    ;;
7157  no:yes:* )
7158    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7160    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7161echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7162    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7164    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7165echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7166    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7168    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7170    (
7171      cat <<\_ASBOX
7172## ----------------------------------------- ##
7173## Report this to coin-clp@lists.coin-or.org ##
7174## ----------------------------------------- ##
7175_ASBOX
7176    ) |
7177      sed "s/^/$as_me: WARNING:     /" >&2
7178    ;;
7179esac
7180echo "$as_me:$LINENO: checking for $ac_header" >&5
7181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7182if eval "test \"\${$as_ac_Header+set}\" = set"; then
7183  echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185  eval "$as_ac_Header=\$ac_header_preproc"
7186fi
7187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189
7190fi
7191if test `eval echo '${'$as_ac_Header'}'` = yes; then
7192  cat >>confdefs.h <<_ACEOF
7193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194_ACEOF
7195
7196fi
7197
7198done
7199
7200
7201
7202if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7203    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7204    (test "X$CXX" != "Xg++"))) ; then
7205  ac_ext=cc
7206ac_cpp='$CXXCPP $CPPFLAGS'
7207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7210echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7211echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7212if test -z "$CXXCPP"; then
7213  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7214  echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216      # Double quotes because CXXCPP needs to be expanded
7217    for CXXCPP in "$CXX -E" "/lib/cpp"
7218    do
7219      ac_preproc_ok=false
7220for ac_cxx_preproc_warn_flag in '' yes
7221do
7222  # Use a header file that comes with gcc, so configuring glibc
7223  # with a fresh cross-compiler works.
7224  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225  # <limits.h> exists even on freestanding compilers.
7226  # On the NeXT, cc -E runs the code through the compiler's parser,
7227  # not just through cpp. "Syntax error" is here to catch this case.
7228  cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h.  */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h.  */
7234#ifdef __STDC__
7235# include <limits.h>
7236#else
7237# include <assert.h>
7238#endif
7239                     Syntax error
7240_ACEOF
7241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7242  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7243  ac_status=$?
7244  grep -v '^ *+' conftest.er1 >conftest.err
7245  rm -f conftest.er1
7246  cat conftest.err >&5
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } >/dev/null; then
7249  if test -s conftest.err; then
7250    ac_cpp_err=$ac_cxx_preproc_warn_flag
7251    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7252  else
7253    ac_cpp_err=
7254  fi
7255else
7256  ac_cpp_err=yes
7257fi
7258if test -z "$ac_cpp_err"; then
7259  :
7260else
7261  echo "$as_me: failed program was:" >&5
7262sed 's/^/| /' conftest.$ac_ext >&5
7263
7264  # Broken: fails on valid input.
7265continue
7266fi
7267rm -f conftest.err conftest.$ac_ext
7268
7269  # OK, works on sane cases.  Now check whether non-existent headers
7270  # can be detected and how.
7271  cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h.  */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h.  */
7277#include <ac_nonexistent.h>
7278_ACEOF
7279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7281  ac_status=$?
7282  grep -v '^ *+' conftest.er1 >conftest.err
7283  rm -f conftest.er1
7284  cat conftest.err >&5
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); } >/dev/null; then
7287  if test -s conftest.err; then
7288    ac_cpp_err=$ac_cxx_preproc_warn_flag
7289    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7290  else
7291    ac_cpp_err=
7292  fi
7293else
7294  ac_cpp_err=yes
7295fi
7296if test -z "$ac_cpp_err"; then
7297  # Broken: success on invalid input.
7298continue
7299else
7300  echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303  # Passes both tests.
7304ac_preproc_ok=:
7305break
7306fi
7307rm -f conftest.err conftest.$ac_ext
7308
7309done
7310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7311rm -f conftest.err conftest.$ac_ext
7312if $ac_preproc_ok; then
7313  break
7314fi
7315
7316    done
7317    ac_cv_prog_CXXCPP=$CXXCPP
7318
7319fi
7320  CXXCPP=$ac_cv_prog_CXXCPP
7321else
7322  ac_cv_prog_CXXCPP=$CXXCPP
7323fi
7324echo "$as_me:$LINENO: result: $CXXCPP" >&5
7325echo "${ECHO_T}$CXXCPP" >&6
7326ac_preproc_ok=false
7327for ac_cxx_preproc_warn_flag in '' yes
7328do
7329  # Use a header file that comes with gcc, so configuring glibc
7330  # with a fresh cross-compiler works.
7331  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7332  # <limits.h> exists even on freestanding compilers.
7333  # On the NeXT, cc -E runs the code through the compiler's parser,
7334  # not just through cpp. "Syntax error" is here to catch this case.
7335  cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h.  */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h.  */
7341#ifdef __STDC__
7342# include <limits.h>
7343#else
7344# include <assert.h>
7345#endif
7346                     Syntax error
7347_ACEOF
7348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7349  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7350  ac_status=$?
7351  grep -v '^ *+' conftest.er1 >conftest.err
7352  rm -f conftest.er1
7353  cat conftest.err >&5
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); } >/dev/null; then
7356  if test -s conftest.err; then
7357    ac_cpp_err=$ac_cxx_preproc_warn_flag
7358    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7359  else
7360    ac_cpp_err=
7361  fi
7362else
7363  ac_cpp_err=yes
7364fi
7365if test -z "$ac_cpp_err"; then
7366  :
7367else
7368  echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371  # Broken: fails on valid input.
7372continue
7373fi
7374rm -f conftest.err conftest.$ac_ext
7375
7376  # OK, works on sane cases.  Now check whether non-existent headers
7377  # can be detected and how.
7378  cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h.  */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h.  */
7384#include <ac_nonexistent.h>
7385_ACEOF
7386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7388  ac_status=$?
7389  grep -v '^ *+' conftest.er1 >conftest.err
7390  rm -f conftest.er1
7391  cat conftest.err >&5
7392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); } >/dev/null; then
7394  if test -s conftest.err; then
7395    ac_cpp_err=$ac_cxx_preproc_warn_flag
7396    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7397  else
7398    ac_cpp_err=
7399  fi
7400else
7401  ac_cpp_err=yes
7402fi
7403if test -z "$ac_cpp_err"; then
7404  # Broken: success on invalid input.
7405continue
7406else
7407  echo "$as_me: failed program was:" >&5
7408sed 's/^/| /' conftest.$ac_ext >&5
7409
7410  # Passes both tests.
7411ac_preproc_ok=:
7412break
7413fi
7414rm -f conftest.err conftest.$ac_ext
7415
7416done
7417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418rm -f conftest.err conftest.$ac_ext
7419if $ac_preproc_ok; then
7420  :
7421else
7422  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7423See \`config.log' for more details." >&5
7424echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7425See \`config.log' for more details." >&2;}
7426   { (exit 1); exit 1; }; }
7427fi
7428
7429ac_ext=cc
7430ac_cpp='$CXXCPP $CPPFLAGS'
7431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7434
7435fi
7436
7437
7438# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7439
7440# find the maximum length of command line arguments
7441echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7442echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7443if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7444  echo $ECHO_N "(cached) $ECHO_C" >&6
7445else
7446    i=0
7447  teststring="ABCD"
7448
7449  case $build_os in
7450  msdosdjgpp*)
7451    # On DJGPP, this test can blow up pretty badly due to problems in libc
7452    # (any single argument exceeding 2000 bytes causes a buffer overrun
7453    # during glob expansion).  Even if it were fixed, the result of this
7454    # check would be larger than it should be.
7455    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7456    ;;
7457
7458  gnu*)
7459    # Under GNU Hurd, this test is not required because there is
7460    # no limit to the length of command line arguments.
7461    # Libtool will interpret -1 as no limit whatsoever
7462    lt_cv_sys_max_cmd_len=-1;
7463    ;;
7464
7465  cygwin* | mingw*)
7466    # On Win9x/ME, this test blows up -- it succeeds, but takes
7467    # about 5 minutes as the teststring grows exponentially.
7468    # Worse, since 9x/ME are not pre-emptively multitasking,
7469    # you end up with a "frozen" computer, even though with patience
7470    # the test eventually succeeds (with a max line length of 256k).
7471    # Instead, let's just punt: use the minimum linelength reported by
7472    # all of the supported platforms: 8192 (on NT/2K/XP).
7473    lt_cv_sys_max_cmd_len=8192;
7474    ;;
7475
7476  amigaos*)
7477    # On AmigaOS with pdksh, this test takes hours, literally.
7478    # So we just punt and use a minimum line length of 8192.
7479    lt_cv_sys_max_cmd_len=8192;
7480    ;;
7481
7482  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7483    # This has been around since 386BSD, at least.  Likely further.
7484    if test -x /sbin/sysctl; then
7485      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7486    elif test -x /usr/sbin/sysctl; then
7487      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7488    else
7489      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7490    fi
7491    # And add a safety zone
7492    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7493    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7494    ;;
7495
7496  interix*)
7497    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7498    lt_cv_sys_max_cmd_len=196608
7499    ;;
7500
7501  osf*)
7502    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7503    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7504    # nice to cause kernel panics so lets avoid the loop below.
7505    # First set a reasonable default.
7506    lt_cv_sys_max_cmd_len=16384
7507    #
7508    if test -x /sbin/sysconfig; then
7509      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7510        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7511      esac
7512    fi
7513    ;;
7514  sco3.2v5*)
7515    lt_cv_sys_max_cmd_len=102400
7516    ;;
7517  sysv5* | sco5v6* | sysv4.2uw2*)
7518    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7519    if test -n "$kargmax"; then
7520      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7521    else
7522      lt_cv_sys_max_cmd_len=32768
7523    fi
7524    ;;
7525  *)
7526    # If test is not a shell built-in, we'll probably end up computing a
7527    # maximum length that is only half of the actual maximum length, but
7528    # we can't tell.
7529    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7530    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7531               = "XX$teststring") >/dev/null 2>&1 &&
7532            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7533            lt_cv_sys_max_cmd_len=$new_result &&
7534            test $i != 17 # 1/2 MB should be enough
7535    do
7536      i=`expr $i + 1`
7537      teststring=$teststring$teststring
7538    done
7539    teststring=
7540    # Add a significant safety factor because C++ compilers can tack on massive
7541    # amounts of additional arguments before passing them to the linker.
7542    # It appears as though 1/2 is a usable value.
7543    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7544    ;;
7545  esac
7546
7547fi
7548
7549if test -n $lt_cv_sys_max_cmd_len ; then
7550  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7551echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7552else
7553  echo "$as_me:$LINENO: result: none" >&5
7554echo "${ECHO_T}none" >&6
7555fi
7556
7557
7558
7559
7560# Check for command to grab the raw symbol name followed by C symbol from nm.
7561echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7562echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7563if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7564  echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566
7567# These are sane defaults that work on at least a few old systems.
7568# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7569
7570# Character class describing NM global symbol codes.
7571symcode='[BCDEGRST]'
7572
7573# Regexp to match symbols that can be accessed directly from C.
7574sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7575
7576# Transform an extracted symbol line into a proper C declaration
7577lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7578
7579# Transform an extracted symbol line into symbol name and symbol address
7580lt_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'"
7581
7582# Define system-specific variables.
7583case $host_os in
7584aix*)
7585  symcode='[BCDT]'
7586  ;;
7587cygwin* | mingw* | pw32*)
7588  symcode='[ABCDGISTW]'
7589  ;;
7590hpux*) # Its linker distinguishes data from code symbols
7591  if test "$host_cpu" = ia64; then
7592    symcode='[ABCDEGRST]'
7593  fi
7594  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7595  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'"
7596  ;;
7597linux*)
7598  if test "$host_cpu" = ia64; then
7599    symcode='[ABCDGIRSTW]'
7600    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601    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'"
7602  fi
7603  ;;
7604irix* | nonstopux*)
7605  symcode='[BCDEGRST]'
7606  ;;
7607osf*)
7608  symcode='[BCDEGQRST]'
7609  ;;
7610solaris*)
7611  symcode='[BDRT]'
7612  ;;
7613sco3.2v5*)
7614  symcode='[DT]'
7615  ;;
7616sysv4.2uw2*)
7617  symcode='[DT]'
7618  ;;
7619sysv5* | sco5v6* | unixware* | OpenUNIX*)
7620  symcode='[ABDT]'
7621  ;;
7622sysv4)
7623  symcode='[DFNSTU]'
7624  ;;
7625esac
7626
7627# Handle CRLF in mingw tool chain
7628opt_cr=
7629case $build_os in
7630mingw*)
7631  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7632  ;;
7633esac
7634
7635# If we're using GNU nm, then use its standard symbol codes.
7636case `$NM -V 2>&1` in
7637*GNU* | *'with BFD'*)
7638  symcode='[ABCDGIRSTW]' ;;
7639esac
7640
7641# Try without a prefix undercore, then with it.
7642for ac_symprfx in "" "_"; do
7643
7644  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7645  symxfrm="\\1 $ac_symprfx\\2 \\2"
7646
7647  # Write the raw and C identifiers.
7648  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7649
7650  # Check to see that the pipe works correctly.
7651  pipe_works=no
7652
7653  rm -f conftest*
7654  cat > conftest.$ac_ext <<EOF
7655#ifdef __cplusplus
7656extern "C" {
7657#endif
7658char nm_test_var;
7659void nm_test_func(){}
7660#ifdef __cplusplus
7661}
7662#endif
7663int main(){nm_test_var='a';nm_test_func();return(0);}
7664EOF
7665
7666  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667  (eval $ac_compile) 2>&5
7668  ac_status=$?
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }; then
7671    # Now try to grab the symbols.
7672    nlist=conftest.nm
7673    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7674  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7675  ac_status=$?
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); } && test -s "$nlist"; then
7678      # Try sorting and uniquifying the output.
7679      if sort "$nlist" | uniq > "$nlist"T; then
7680        mv -f "$nlist"T "$nlist"
7681      else
7682        rm -f "$nlist"T
7683      fi
7684
7685      # Make sure that we snagged all the symbols we need.
7686      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7687        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7688          cat <<EOF > conftest.$ac_ext
7689#ifdef __cplusplus
7690extern "C" {
7691#endif
7692
7693EOF
7694          # Now generate the symbol file.
7695          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7696
7697          cat <<EOF >> conftest.$ac_ext
7698#if defined (__STDC__) && __STDC__
7699# define lt_ptr_t void *
7700#else
7701# define lt_ptr_t char *
7702# define const
7703#endif
7704
7705/* The mapping between symbol names and symbols. */
7706const struct {
7707  const char *name;
7708  lt_ptr_t address;
7709}
7710lt_preloaded_symbols[] =
7711{
7712EOF
7713          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7714          cat <<\EOF >> conftest.$ac_ext
7715  {0, (lt_ptr_t) 0}
7716};
7717
7718#ifdef __cplusplus
7719}
7720#endif
7721EOF
7722          # Now try linking the two files.
7723          mv conftest.$ac_objext conftstm.$ac_objext
7724          lt_save_LIBS="$LIBS"
7725          lt_save_CFLAGS="$CFLAGS"
7726          LIBS="conftstm.$ac_objext"
7727          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7728          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729  (eval $ac_link) 2>&5
7730  ac_status=$?
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7733            pipe_works=yes
7734          fi
7735          LIBS="$lt_save_LIBS"
7736          CFLAGS="$lt_save_CFLAGS"
7737        else
7738          echo "cannot find nm_test_func in $nlist" >&5
7739        fi
7740      else
7741        echo "cannot find nm_test_var in $nlist" >&5
7742      fi
7743    else
7744      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7745    fi
7746  else
7747    echo "$progname: failed program was:" >&5
7748    cat conftest.$ac_ext >&5
7749  fi
7750  rm -f conftest* conftst*
7751
7752  # Do not use the global_symbol_pipe unless it works.
7753  if test "$pipe_works" = yes; then
7754    break
7755  else
7756    lt_cv_sys_global_symbol_pipe=
7757  fi
7758done
7759
7760fi
7761
7762if test -z "$lt_cv_sys_global_symbol_pipe"; then
7763  lt_cv_sys_global_symbol_to_cdecl=
7764fi
7765if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7766  echo "$as_me:$LINENO: result: failed" >&5
7767echo "${ECHO_T}failed" >&6
7768else
7769  echo "$as_me:$LINENO: result: ok" >&5
7770echo "${ECHO_T}ok" >&6
7771fi
7772
7773echo "$as_me:$LINENO: checking for objdir" >&5
7774echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7775if test "${lt_cv_objdir+set}" = set; then
7776  echo $ECHO_N "(cached) $ECHO_C" >&6
7777else
7778  rm -f .libs 2>/dev/null
7779mkdir .libs 2>/dev/null
7780if test -d .libs; then
7781  lt_cv_objdir=.libs
7782else
7783  # MS-DOS does not allow filenames that begin with a dot.
7784  lt_cv_objdir=_libs
7785fi
7786rmdir .libs 2>/dev/null
7787fi
7788echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7789echo "${ECHO_T}$lt_cv_objdir" >&6
7790objdir=$lt_cv_objdir
7791
7792
7793
7794
7795
7796case $host_os in
7797aix3*)
7798  # AIX sometimes has problems with the GCC collect2 program.  For some
7799  # reason, if we set the COLLECT_NAMES environment variable, the problems
7800  # vanish in a puff of smoke.
7801  if test "X${COLLECT_NAMES+set}" != Xset; then
7802    COLLECT_NAMES=
7803    export COLLECT_NAMES
7804  fi
7805  ;;
7806esac
7807
7808# Sed substitution that helps us do robust quoting.  It backslashifies
7809# metacharacters that are still active within double-quoted strings.
7810Xsed='sed -e 1s/^X//'
7811sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7812
7813# Same as above, but do not quote variable references.
7814double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7815
7816# Sed substitution to delay expansion of an escaped shell variable in a
7817# double_quote_subst'ed string.
7818delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7819
7820# Sed substitution to avoid accidental globbing in evaled expressions
7821no_glob_subst='s/\*/\\\*/g'
7822
7823# Constants:
7824rm="rm -f"
7825
7826# Global variables:
7827default_ofile=libtool
7828can_build_shared=yes
7829
7830# All known linkers require a `.a' archive for static linking (except MSVC,
7831# which needs '.lib').
7832libext=a
7833ltmain="$ac_aux_dir/ltmain.sh"
7834ofile="$default_ofile"
7835with_gnu_ld="$lt_cv_prog_gnu_ld"
7836
7837if test -n "$ac_tool_prefix"; then
7838  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7839set dummy ${ac_tool_prefix}ar; ac_word=$2
7840echo "$as_me:$LINENO: checking for $ac_word" >&5
7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7842if test "${ac_cv_prog_AR+set}" = set; then
7843  echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845  if test -n "$AR"; then
7846  ac_cv_prog_AR="$AR" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853  for ac_exec_ext in '' $ac_executable_extensions; do
7854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855    ac_cv_prog_AR="${ac_tool_prefix}ar"
7856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860done
7861
7862fi
7863fi
7864AR=$ac_cv_prog_AR
7865if test -n "$AR"; then
7866  echo "$as_me:$LINENO: result: $AR" >&5
7867echo "${ECHO_T}$AR" >&6
7868else
7869  echo "$as_me:$LINENO: result: no" >&5
7870echo "${ECHO_T}no" >&6
7871fi
7872
7873fi
7874if test -z "$ac_cv_prog_AR"; then
7875  ac_ct_AR=$AR
7876  # Extract the first word of "ar", so it can be a program name with args.
7877set dummy ar; ac_word=$2
7878echo "$as_me:$LINENO: checking for $ac_word" >&5
7879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7881  echo $ECHO_N "(cached) $ECHO_C" >&6
7882else
7883  if test -n "$ac_ct_AR"; then
7884  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889  IFS=$as_save_IFS
7890  test -z "$as_dir" && as_dir=.
7891  for ac_exec_ext in '' $ac_executable_extensions; do
7892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893    ac_cv_prog_ac_ct_AR="ar"
7894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895    break 2
7896  fi
7897done
7898done
7899
7900  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7901fi
7902fi
7903ac_ct_AR=$ac_cv_prog_ac_ct_AR
7904if test -n "$ac_ct_AR"; then
7905  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7906echo "${ECHO_T}$ac_ct_AR" >&6
7907else
7908  echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
7910fi
7911
7912  AR=$ac_ct_AR
7913else
7914  AR="$ac_cv_prog_AR"
7915fi
7916
7917if test -n "$ac_tool_prefix"; then
7918  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7920echo "$as_me:$LINENO: checking for $ac_word" >&5
7921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7922if test "${ac_cv_prog_RANLIB+set}" = set; then
7923  echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925  if test -n "$RANLIB"; then
7926  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7927else
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931  IFS=$as_save_IFS
7932  test -z "$as_dir" && as_dir=.
7933  for ac_exec_ext in '' $ac_executable_extensions; do
7934  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7936    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940done
7941
7942fi
7943fi
7944RANLIB=$ac_cv_prog_RANLIB
7945if test -n "$RANLIB"; then
7946  echo "$as_me:$LINENO: result: $RANLIB" >&5
7947echo "${ECHO_T}$RANLIB" >&6
7948else
7949  echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
7951fi
7952
7953fi
7954if test -z "$ac_cv_prog_RANLIB"; then
7955  ac_ct_RANLIB=$RANLIB
7956  # Extract the first word of "ranlib", so it can be a program name with args.
7957set dummy ranlib; ac_word=$2
7958echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7961  echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963  if test -n "$ac_ct_RANLIB"; then
7964  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969  IFS=$as_save_IFS
7970  test -z "$as_dir" && as_dir=.
7971  for ac_exec_ext in '' $ac_executable_extensions; do
7972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973    ac_cv_prog_ac_ct_RANLIB="ranlib"
7974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975    break 2
7976  fi
7977done
7978done
7979
7980  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7981fi
7982fi
7983ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7984if test -n "$ac_ct_RANLIB"; then
7985  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7986echo "${ECHO_T}$ac_ct_RANLIB" >&6
7987else
7988  echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990fi
7991
7992  RANLIB=$ac_ct_RANLIB
7993else
7994  RANLIB="$ac_cv_prog_RANLIB"
7995fi
7996
7997if test -n "$ac_tool_prefix"; then
7998  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7999set dummy ${ac_tool_prefix}strip; ac_word=$2
8000echo "$as_me:$LINENO: checking for $ac_word" >&5
8001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8002if test "${ac_cv_prog_STRIP+set}" = set; then
8003  echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005  if test -n "$STRIP"; then
8006  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011  IFS=$as_save_IFS
8012  test -z "$as_dir" && as_dir=.
8013  for ac_exec_ext in '' $ac_executable_extensions; do
8014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8017    break 2
8018  fi
8019done
8020done
8021
8022fi
8023fi
8024STRIP=$ac_cv_prog_STRIP
8025if test -n "$STRIP"; then
8026  echo "$as_me:$LINENO: result: $STRIP" >&5
8027echo "${ECHO_T}$STRIP" >&6
8028else
8029  echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031fi
8032
8033fi
8034if test -z "$ac_cv_prog_STRIP"; then
8035  ac_ct_STRIP=$STRIP
8036  # Extract the first word of "strip", so it can be a program name with args.
8037set dummy strip; ac_word=$2
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8041  echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043  if test -n "$ac_ct_STRIP"; then
8044  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049  IFS=$as_save_IFS
8050  test -z "$as_dir" && as_dir=.
8051  for ac_exec_ext in '' $ac_executable_extensions; do
8052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053    ac_cv_prog_ac_ct_STRIP="strip"
8054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055    break 2
8056  fi
8057done
8058done
8059
8060  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8061fi
8062fi
8063ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8064if test -n "$ac_ct_STRIP"; then
8065  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8066echo "${ECHO_T}$ac_ct_STRIP" >&6
8067else
8068  echo "$as_me:$LINENO: result: no" >&5
8069echo "${ECHO_T}no" >&6
8070fi
8071
8072  STRIP=$ac_ct_STRIP
8073else
8074  STRIP="$ac_cv_prog_STRIP"
8075fi
8076
8077
8078old_CC="$CC"
8079old_CFLAGS="$CFLAGS"
8080
8081# Set sane defaults for various variables
8082test -z "$AR" && AR=ar
8083test -z "$AR_FLAGS" && AR_FLAGS=cru
8084test -z "$AS" && AS=as
8085test -z "$CC" && CC=cc
8086test -z "$LTCC" && LTCC=$CC
8087test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8088test -z "$DLLTOOL" && DLLTOOL=dlltool
8089test -z "$LD" && LD=ld
8090test -z "$LN_S" && LN_S="ln -s"
8091test -z "$MAGIC_CMD" && MAGIC_CMD=file
8092test -z "$NM" && NM=nm
8093test -z "$SED" && SED=sed
8094test -z "$OBJDUMP" && OBJDUMP=objdump
8095test -z "$RANLIB" && RANLIB=:
8096test -z "$STRIP" && STRIP=:
8097test -z "$ac_objext" && ac_objext=o
8098
8099# Determine commands to create old-style static archives.
8100old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8101old_postinstall_cmds='chmod 644 $oldlib'
8102old_postuninstall_cmds=
8103
8104if test -n "$RANLIB"; then
8105  case $host_os in
8106  openbsd*)
8107    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8108    ;;
8109  *)
8110    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8111    ;;
8112  esac
8113  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8114fi
8115
8116for cc_temp in $compiler""; do
8117  case $cc_temp in
8118    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8119    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8120    \-*) ;;
8121    *) break;;
8122  esac
8123done
8124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8125
8126
8127# Only perform the check for file, if the check method requires it
8128case $deplibs_check_method in
8129file_magic*)
8130  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8131    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8132echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8133if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8134  echo $ECHO_N "(cached) $ECHO_C" >&6
8135else
8136  case $MAGIC_CMD in
8137[\\/*] |  ?:[\\/]*)
8138  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8139  ;;
8140*)
8141  lt_save_MAGIC_CMD="$MAGIC_CMD"
8142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144  for ac_dir in $ac_dummy; do
8145    IFS="$lt_save_ifs"
8146    test -z "$ac_dir" && ac_dir=.
8147    if test -f $ac_dir/${ac_tool_prefix}file; then
8148      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8149      if test -n "$file_magic_test_file"; then
8150        case $deplibs_check_method in
8151        "file_magic "*)
8152          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155            $EGREP "$file_magic_regex" > /dev/null; then
8156            :
8157          else
8158            cat <<EOF 1>&2
8159
8160*** Warning: the command libtool uses to detect shared libraries,
8161*** $file_magic_cmd, produces output that libtool cannot recognize.
8162*** The result is that libtool may fail to recognize shared libraries
8163*** as such.  This will affect the creation of libtool libraries that
8164*** depend on shared libraries, but programs linked with such libtool
8165*** libraries will work regardless of this problem.  Nevertheless, you
8166*** may want to report the problem to your system manager and/or to
8167*** bug-libtool@gnu.org
8168
8169EOF
8170          fi ;;
8171        esac
8172      fi
8173      break
8174    fi
8175  done
8176  IFS="$lt_save_ifs"
8177  MAGIC_CMD="$lt_save_MAGIC_CMD"
8178  ;;
8179esac
8180fi
8181
8182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183if test -n "$MAGIC_CMD"; then
8184  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8185echo "${ECHO_T}$MAGIC_CMD" >&6
8186else
8187  echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
8189fi
8190
8191if test -z "$lt_cv_path_MAGIC_CMD"; then
8192  if test -n "$ac_tool_prefix"; then
8193    echo "$as_me:$LINENO: checking for file" >&5
8194echo $ECHO_N "checking for file... $ECHO_C" >&6
8195if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8196  echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198  case $MAGIC_CMD in
8199[\\/*] |  ?:[\\/]*)
8200  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8201  ;;
8202*)
8203  lt_save_MAGIC_CMD="$MAGIC_CMD"
8204  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8205  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8206  for ac_dir in $ac_dummy; do
8207    IFS="$lt_save_ifs"
8208    test -z "$ac_dir" && ac_dir=.
8209    if test -f $ac_dir/file; then
8210      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8211      if test -n "$file_magic_test_file"; then
8212        case $deplibs_check_method in
8213        "file_magic "*)
8214          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8215          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8216          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8217            $EGREP "$file_magic_regex" > /dev/null; then
8218            :
8219          else
8220            cat <<EOF 1>&2
8221
8222*** Warning: the command libtool uses to detect shared libraries,
8223*** $file_magic_cmd, produces output that libtool cannot recognize.
8224*** The result is that libtool may fail to recognize shared libraries
8225*** as such.  This will affect the creation of libtool libraries that
8226*** depend on shared libraries, but programs linked with such libtool
8227*** libraries will work regardless of this problem.  Nevertheless, you
8228*** may want to report the problem to your system manager and/or to
8229*** bug-libtool@gnu.org
8230
8231EOF
8232          fi ;;
8233        esac
8234      fi
8235      break
8236    fi
8237  done
8238  IFS="$lt_save_ifs"
8239  MAGIC_CMD="$lt_save_MAGIC_CMD"
8240  ;;
8241esac
8242fi
8243
8244MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245if test -n "$MAGIC_CMD"; then
8246  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8247echo "${ECHO_T}$MAGIC_CMD" >&6
8248else
8249  echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6
8251fi
8252
8253  else
8254    MAGIC_CMD=:
8255  fi
8256fi
8257
8258  fi
8259  ;;
8260esac
8261
8262enable_dlopen=no
8263enable_win32_dll=no
8264
8265# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8266if test "${enable_libtool_lock+set}" = set; then
8267  enableval="$enable_libtool_lock"
8268
8269fi;
8270test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8271
8272
8273# Check whether --with-pic or --without-pic was given.
8274if test "${with_pic+set}" = set; then
8275  withval="$with_pic"
8276  pic_mode="$withval"
8277else
8278  pic_mode=default
8279fi;
8280test -z "$pic_mode" && pic_mode=default
8281
8282# Use C for the default configuration in the libtool script
8283tagname=
8284lt_save_CC="$CC"
8285ac_ext=c
8286ac_cpp='$CPP $CPPFLAGS'
8287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289ac_compiler_gnu=$ac_cv_c_compiler_gnu
8290
8291
8292# Source file extension for C test sources.
8293ac_ext=c
8294
8295# Object file extension for compiled C test sources.
8296objext=o
8297objext=$objext
8298
8299# Code to be used in simple compile tests
8300lt_simple_compile_test_code="int some_variable = 0;\n"
8301
8302# Code to be used in simple link tests
8303lt_simple_link_test_code='int main(){return(0);}\n'
8304
8305
8306# If no C compiler was specified, use CC.
8307LTCC=${LTCC-"$CC"}
8308
8309# If no C compiler flags were specified, use CFLAGS.
8310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8311
8312# Allow CC to be a program name with arguments.
8313compiler=$CC
8314
8315
8316# save warnings/boilerplate of simple test code
8317ac_outfile=conftest.$ac_objext
8318printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8320_lt_compiler_boilerplate=`cat conftest.err`
8321$rm conftest*
8322
8323ac_outfile=conftest.$ac_objext
8324printf "$lt_simple_link_test_code" >conftest.$ac_ext
8325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8326_lt_linker_boilerplate=`cat conftest.err`
8327$rm conftest*
8328
8329
8330## CAVEAT EMPTOR:
8331## There is no encapsulation within the following macros, do not change
8332## the running order or otherwise move them around unless you know exactly
8333## what you are doing...
8334
8335lt_prog_compiler_no_builtin_flag=
8336
8337if test "$GCC" = yes; then
8338  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8339
8340
8341echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8343if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8344  echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346  lt_cv_prog_compiler_rtti_exceptions=no
8347  ac_outfile=conftest.$ac_objext
8348   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8349   lt_compiler_flag="-fno-rtti -fno-exceptions"
8350   # Insert the option either (1) after the last *FLAGS variable, or
8351   # (2) before a word containing "conftest.", or (3) at the end.
8352   # Note that $ac_compile itself does not contain backslashes and begins
8353   # with a dollar sign (not a hyphen), so the echo should work correctly.
8354   # The option is referenced via a variable to avoid confusing sed.
8355   lt_compile=`echo "$ac_compile" | $SED \
8356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358   -e 's:$: $lt_compiler_flag:'`
8359   (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360   (eval "$lt_compile" 2>conftest.err)
8361   ac_status=$?
8362   cat conftest.err >&5
8363   echo "$as_me:8363: \$? = $ac_status" >&5
8364   if (exit $ac_status) && test -s "$ac_outfile"; then
8365     # The compiler can only warn and ignore the option if not recognized
8366     # So say no if there are warnings other than the usual output.
8367     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8368     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370       lt_cv_prog_compiler_rtti_exceptions=yes
8371     fi
8372   fi
8373   $rm conftest*
8374
8375fi
8376echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8378
8379if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381else
8382    :
8383fi
8384
8385fi
8386
8387lt_prog_compiler_wl=
8388lt_prog_compiler_pic=
8389lt_prog_compiler_static=
8390
8391echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8392echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8393
8394  if test "$GCC" = yes; then
8395    lt_prog_compiler_wl='-Wl,'
8396    lt_prog_compiler_static='-static'
8397
8398    case $host_os in
8399      aix*)
8400      # All AIX code is PIC.
8401      if test "$host_cpu" = ia64; then
8402        # AIX 5 now supports IA64 processor
8403        lt_prog_compiler_static='-Bstatic'
8404      fi
8405      ;;
8406
8407    amigaos*)
8408      # FIXME: we need at least 68020 code to build shared libraries, but
8409      # adding the `-m68020' flag to GCC prevents building anything better,
8410      # like `-m68040'.
8411      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8412      ;;
8413
8414    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8415      # PIC is the default for these OSes.
8416      ;;
8417
8418    mingw* | pw32* | os2*)
8419      # This hack is so that the source file can tell whether it is being
8420      # built for inclusion in a dll (and should export symbols for example).
8421      lt_prog_compiler_pic='-DDLL_EXPORT'
8422      ;;
8423
8424    darwin* | rhapsody*)
8425      # PIC is the default on this platform
8426      # Common symbols not allowed in MH_DYLIB files
8427      lt_prog_compiler_pic='-fno-common'
8428      ;;
8429
8430    interix3*)
8431      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8432      # Instead, we relocate shared libraries at runtime.
8433      ;;
8434
8435    msdosdjgpp*)
8436      # Just because we use GCC doesn't mean we suddenly get shared libraries
8437      # on systems that don't support them.
8438      lt_prog_compiler_can_build_shared=no
8439      enable_shared=no
8440      ;;
8441
8442    sysv4*MP*)
8443      if test -d /usr/nec; then
8444        lt_prog_compiler_pic=-Kconform_pic
8445      fi
8446      ;;
8447
8448    hpux*)
8449      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8450      # not for PA HP-UX.
8451      case $host_cpu in
8452      hppa*64*|ia64*)
8453        # +Z the default
8454        ;;
8455      *)
8456        lt_prog_compiler_pic='-fPIC'
8457        ;;
8458      esac
8459      ;;
8460
8461    *)
8462      lt_prog_compiler_pic='-fPIC'
8463      ;;
8464    esac
8465  else
8466    # PORTME Check for flag to pass linker flags through the system compiler.
8467    case $host_os in
8468    aix*)
8469      lt_prog_compiler_wl='-Wl,'
8470      if test "$host_cpu" = ia64; then
8471        # AIX 5 now supports IA64 processor
8472        lt_prog_compiler_static='-Bstatic'
8473      else
8474        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8475      fi
8476      ;;
8477      darwin*)
8478        # PIC is the default on this platform
8479        # Common symbols not allowed in MH_DYLIB files
8480       case $cc_basename in
8481         xlc*)
8482         lt_prog_compiler_pic='-qnocommon'
8483         lt_prog_compiler_wl='-Wl,'
8484         ;;
8485       esac
8486       ;;
8487
8488    mingw* | pw32* | os2*)
8489      # This hack is so that the source file can tell whether it is being
8490      # built for inclusion in a dll (and should export symbols for example).
8491      lt_prog_compiler_pic='-DDLL_EXPORT'
8492      ;;
8493
8494    hpux9* | hpux10* | hpux11*)
8495      lt_prog_compiler_wl='-Wl,'
8496      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8497      # not for PA HP-UX.
8498      case $host_cpu in
8499      hppa*64*|ia64*)
8500        # +Z the default
8501        ;;
8502      *)
8503        lt_prog_compiler_pic='+Z'
8504        ;;
8505      esac
8506      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8507      lt_prog_compiler_static='${wl}-a ${wl}archive'
8508      ;;
8509
8510    irix5* | irix6* | nonstopux*)
8511      lt_prog_compiler_wl='-Wl,'
8512      # PIC (with -KPIC) is the default.
8513      lt_prog_compiler_static='-non_shared'
8514      ;;
8515
8516    newsos6)
8517      lt_prog_compiler_pic='-KPIC'
8518      lt_prog_compiler_static='-Bstatic'
8519      ;;
8520
8521    linux*)
8522      case $cc_basename in
8523      icc* | ecc*)
8524        lt_prog_compiler_wl='-Wl,'
8525        lt_prog_compiler_pic='-KPIC'
8526        lt_prog_compiler_static='-static'
8527        ;;
8528      pgcc* | pgf77* | pgf90* | pgf95*)
8529        # Portland Group compilers (*not* the Pentium gcc compiler,
8530        # which looks to be a dead project)
8531        lt_prog_compiler_wl='-Wl,'
8532        lt_prog_compiler_pic='-fpic'
8533        lt_prog_compiler_static='-Bstatic'
8534        ;;
8535      ccc*)
8536        lt_prog_compiler_wl='-Wl,'
8537        # All Alpha code is PIC.
8538        lt_prog_compiler_static='-non_shared'
8539        ;;
8540      esac
8541      ;;
8542
8543    osf3* | osf4* | osf5*)
8544      lt_prog_compiler_wl='-Wl,'
8545      # All OSF/1 code is PIC.
8546      lt_prog_compiler_static='-non_shared'
8547      ;;
8548
8549    solaris*)
8550      lt_prog_compiler_pic='-KPIC'
8551      lt_prog_compiler_static='-Bstatic'
8552      case $cc_basename in
8553      f77* | f90* | f95*)
8554        lt_prog_compiler_wl='-Qoption ld ';;
8555      *)
8556        lt_prog_compiler_wl='-Wl,';;
8557      esac
8558      ;;
8559
8560    sunos4*)
8561      lt_prog_compiler_wl='-Qoption ld '
8562      lt_prog_compiler_pic='-PIC'
8563      lt_prog_compiler_static='-Bstatic'
8564      ;;
8565
8566    sysv4 | sysv4.2uw2* | sysv4.3*)
8567      lt_prog_compiler_wl='-Wl,'
8568      lt_prog_compiler_pic='-KPIC'
8569      lt_prog_compiler_static='-Bstatic'
8570      ;;
8571
8572    sysv4*MP*)
8573      if test -d /usr/nec ;then
8574        lt_prog_compiler_pic='-Kconform_pic'
8575        lt_prog_compiler_static='-Bstatic'
8576      fi
8577      ;;
8578
8579    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8580      lt_prog_compiler_wl='-Wl,'
8581      lt_prog_compiler_pic='-KPIC'
8582      lt_prog_compiler_static='-Bstatic'
8583      ;;
8584
8585    unicos*)
8586      lt_prog_compiler_wl='-Wl,'
8587      lt_prog_compiler_can_build_shared=no
8588      ;;
8589
8590    uts4*)
8591      lt_prog_compiler_pic='-pic'
8592      lt_prog_compiler_static='-Bstatic'
8593      ;;
8594
8595    *)
8596      lt_prog_compiler_can_build_shared=no
8597      ;;
8598    esac
8599  fi
8600
8601echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8602echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8603
8604#
8605# Check to make sure the PIC flag actually works.
8606#
8607if test -n "$lt_prog_compiler_pic"; then
8608
8609echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8610echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8611if test "${lt_prog_compiler_pic_works+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  lt_prog_compiler_pic_works=no
8615  ac_outfile=conftest.$ac_objext
8616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8617   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8618   # Insert the option either (1) after the last *FLAGS variable, or
8619   # (2) before a word containing "conftest.", or (3) at the end.
8620   # Note that $ac_compile itself does not contain backslashes and begins
8621   # with a dollar sign (not a hyphen), so the echo should work correctly.
8622   # The option is referenced via a variable to avoid confusing sed.
8623   lt_compile=`echo "$ac_compile" | $SED \
8624   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626   -e 's:$: $lt_compiler_flag:'`
8627   (eval echo "\"\$as_me:8627: $lt_compile\"" >&5)
8628   (eval "$lt_compile" 2>conftest.err)
8629   ac_status=$?
8630   cat conftest.err >&5
8631   echo "$as_me:8631: \$? = $ac_status" >&5
8632   if (exit $ac_status) && test -s "$ac_outfile"; then
8633     # The compiler can only warn and ignore the option if not recognized
8634     # So say no if there are warnings other than the usual output.
8635     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8636     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8637     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8638       lt_prog_compiler_pic_works=yes
8639     fi
8640   fi
8641   $rm conftest*
8642
8643fi
8644echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8645echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8646
8647if test x"$lt_prog_compiler_pic_works" = xyes; then
8648    case $lt_prog_compiler_pic in
8649     "" | " "*) ;;
8650     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8651     esac
8652else
8653    lt_prog_compiler_pic=
8654     lt_prog_compiler_can_build_shared=no
8655fi
8656
8657fi
8658case $host_os in
8659  # For platforms which do not support PIC, -DPIC is meaningless:
8660  *djgpp*)
8661    lt_prog_compiler_pic=
8662    ;;
8663  *)
8664    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8665    ;;
8666esac
8667
8668#
8669# Check to make sure the static flag actually works.
8670#
8671wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8672echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8673echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8674if test "${lt_prog_compiler_static_works+set}" = set; then
8675  echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677  lt_prog_compiler_static_works=no
8678   save_LDFLAGS="$LDFLAGS"
8679   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8680   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8681   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8682     # The linker can only warn and ignore the option if not recognized
8683     # So say no if there are warnings
8684     if test -s conftest.err; then
8685       # Append any errors to the config.log.
8686       cat conftest.err 1>&5
8687       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8688       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8689       if diff conftest.exp conftest.er2 >/dev/null; then
8690         lt_prog_compiler_static_works=yes
8691       fi
8692     else
8693       lt_prog_compiler_static_works=yes
8694     fi
8695   fi
8696   $rm conftest*
8697   LDFLAGS="$save_LDFLAGS"
8698
8699fi
8700echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8701echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8702
8703if test x"$lt_prog_compiler_static_works" = xyes; then
8704    :
8705else
8706    lt_prog_compiler_static=
8707fi
8708
8709
8710echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8711echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8712if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8713  echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
8715  lt_cv_prog_compiler_c_o=no
8716   $rm -r conftest 2>/dev/null
8717   mkdir conftest
8718   cd conftest
8719   mkdir out
8720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8721
8722   lt_compiler_flag="-o out/conftest2.$ac_objext"
8723   # Insert the option either (1) after the last *FLAGS variable, or
8724   # (2) before a word containing "conftest.", or (3) at the end.
8725   # Note that $ac_compile itself does not contain backslashes and begins
8726   # with a dollar sign (not a hyphen), so the echo should work correctly.
8727   lt_compile=`echo "$ac_compile" | $SED \
8728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730   -e 's:$: $lt_compiler_flag:'`
8731   (eval echo "\"\$as_me:8731: $lt_compile\"" >&5)
8732   (eval "$lt_compile" 2>out/conftest.err)
8733   ac_status=$?
8734   cat out/conftest.err >&5
8735   echo "$as_me:8735: \$? = $ac_status" >&5
8736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737   then
8738     # The compiler can only warn and ignore the option if not recognized
8739     # So say no if there are warnings
8740     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8741     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743       lt_cv_prog_compiler_c_o=yes
8744     fi
8745   fi
8746   chmod u+w . 2>&5
8747   $rm conftest*
8748   # SGI C++ compiler will create directory out/ii_files/ for
8749   # template instantiation
8750   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8751   $rm out/* && rmdir out
8752   cd ..
8753   rmdir conftest
8754   $rm conftest*
8755
8756fi
8757echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8758echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8759
8760
8761hard_links="nottested"
8762if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8763  # do not overwrite the value of need_locks provided by the user
8764  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8765echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8766  hard_links=yes
8767  $rm conftest*
8768  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8769  touch conftest.a
8770  ln conftest.a conftest.b 2>&5 || hard_links=no
8771  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8772  echo "$as_me:$LINENO: result: $hard_links" >&5
8773echo "${ECHO_T}$hard_links" >&6
8774  if test "$hard_links" = no; then
8775    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8776echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8777    need_locks=warn
8778  fi
8779else
8780  need_locks=no
8781fi
8782
8783echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8784echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8785
8786  runpath_var=
8787  allow_undefined_flag=
8788  enable_shared_with_static_runtimes=no
8789  archive_cmds=
8790  archive_expsym_cmds=
8791  old_archive_From_new_cmds=
8792  old_archive_from_expsyms_cmds=
8793  export_dynamic_flag_spec=
8794  whole_archive_flag_spec=
8795  thread_safe_flag_spec=
8796  hardcode_libdir_flag_spec=
8797  hardcode_libdir_flag_spec_ld=
8798  hardcode_libdir_separator=
8799  hardcode_direct=no
8800  hardcode_minus_L=no
8801  hardcode_shlibpath_var=unsupported
8802  link_all_deplibs=unknown
8803  hardcode_automatic=no
8804  module_cmds=
8805  module_expsym_cmds=
8806  always_export_symbols=no
8807  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8808  # include_expsyms should be a list of space-separated symbols to be *always*
8809  # included in the symbol list
8810  include_expsyms=
8811  # exclude_expsyms can be an extended regexp of symbols to exclude
8812  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8813  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8814  # as well as any symbol that contains `d'.
8815  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8816  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8817  # platforms (ab)use it in PIC code, but their linkers get confused if
8818  # the symbol is explicitly referenced.  Since portable code cannot
8819  # rely on this symbol name, it's probably fine to never include it in
8820  # preloaded symbol tables.
8821  extract_expsyms_cmds=
8822  # Just being paranoid about ensuring that cc_basename is set.
8823  for cc_temp in $compiler""; do
8824  case $cc_temp in
8825    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8826    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8827    \-*) ;;
8828    *) break;;
8829  esac
8830done
8831cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8832
8833  case $host_os in
8834  cygwin* | mingw* | pw32*)
8835    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8836    # When not using gcc, we currently assume that we are using
8837    # Microsoft Visual C++.
8838    if test "$GCC" != yes; then
8839      with_gnu_ld=no
8840    fi
8841    ;;
8842  interix*)
8843    # we just hope/assume this is gcc and not c89 (= MSVC++)
8844    with_gnu_ld=yes
8845    ;;
8846  openbsd*)
8847    with_gnu_ld=no
8848    ;;
8849  esac
8850
8851  ld_shlibs=yes
8852  if test "$with_gnu_ld" = yes; then
8853    # If archive_cmds runs LD, not CC, wlarc should be empty
8854    wlarc='${wl}'
8855
8856    # Set some defaults for GNU ld with shared library support. These
8857    # are reset later if shared libraries are not supported. Putting them
8858    # here allows them to be overridden if necessary.
8859    runpath_var=LD_RUN_PATH
8860    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8861    export_dynamic_flag_spec='${wl}--export-dynamic'
8862    # ancient GNU ld didn't support --whole-archive et. al.
8863    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8864        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8865      else
8866        whole_archive_flag_spec=
8867    fi
8868    supports_anon_versioning=no
8869    case `$LD -v 2>/dev/null` in
8870      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8871      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8872      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8873      *\ 2.11.*) ;; # other 2.11 versions
8874      *) supports_anon_versioning=yes ;;
8875    esac
8876
8877    # See if GNU ld supports shared libraries.
8878    case $host_os in
8879    aix3* | aix4* | aix5*)
8880      # On AIX/PPC, the GNU linker is very broken
8881      if test "$host_cpu" != ia64; then
8882        ld_shlibs=no
8883        cat <<EOF 1>&2
8884
8885*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8886*** to be unable to reliably create shared libraries on AIX.
8887*** Therefore, libtool is disabling shared libraries support.  If you
8888*** really care for shared libraries, you may want to modify your PATH
8889*** so that a non-GNU linker is found, and then restart.
8890
8891EOF
8892      fi
8893      ;;
8894
8895    amigaos*)
8896      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)'
8897      hardcode_libdir_flag_spec='-L$libdir'
8898      hardcode_minus_L=yes
8899
8900      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8901      # that the semantics of dynamic libraries on AmigaOS, at least up
8902      # to version 4, is to share data among multiple programs linked
8903      # with the same dynamic library.  Since this doesn't match the
8904      # behavior of shared libraries on other platforms, we can't use
8905      # them.
8906      ld_shlibs=no
8907      ;;
8908
8909    beos*)
8910      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8911        allow_undefined_flag=unsupported
8912        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8913        # support --undefined.  This deserves some investigation.  FIXME
8914        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915      else
8916        ld_shlibs=no
8917      fi
8918      ;;
8919
8920    cygwin* | mingw* | pw32*)
8921      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8922      # as there is no search path for DLLs.
8923      hardcode_libdir_flag_spec='-L$libdir'
8924      allow_undefined_flag=unsupported
8925      always_export_symbols=no
8926      enable_shared_with_static_runtimes=yes
8927      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8928
8929      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8930        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8931        # If the export-symbols file already is a .def file (1st line
8932        # is EXPORTS), use it as is; otherwise, prepend...
8933        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8934          cp $export_symbols $output_objdir/$soname.def;
8935        else
8936          echo EXPORTS > $output_objdir/$soname.def;
8937          cat $export_symbols >> $output_objdir/$soname.def;
8938        fi~
8939        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8940      else
8941        ld_shlibs=no
8942      fi
8943      ;;
8944
8945    interix3*)
8946      hardcode_direct=no
8947      hardcode_shlibpath_var=no
8948      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8949      export_dynamic_flag_spec='${wl}-E'
8950      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8951      # Instead, shared libraries are loaded at an image base (0x10000000 by
8952      # default) and relocated if they conflict, which is a slow very memory
8953      # consuming and fragmenting process.  To avoid this, we pick a random,
8954      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8955      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8956      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8957      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'
8958      ;;
8959
8960    linux*)
8961      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8962        tmp_addflag=
8963        case $cc_basename,$host_cpu in
8964        pgcc*)                          # Portland Group C compiler
8965          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'
8966          tmp_addflag=' $pic_flag'
8967          ;;
8968        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8969          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'
8970          tmp_addflag=' $pic_flag -Mnomain' ;;
8971        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8972          tmp_addflag=' -i_dynamic' ;;
8973        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8974          tmp_addflag=' -i_dynamic -nofor_main' ;;
8975        ifc* | ifort*)                  # Intel Fortran compiler
8976          tmp_addflag=' -nofor_main' ;;
8977        esac
8978        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979
8980        if test $supports_anon_versioning = yes; then
8981          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8982  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8983  $echo "local: *; };" >> $output_objdir/$libname.ver~
8984          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8985        fi
8986      else
8987        ld_shlibs=no
8988      fi
8989      ;;
8990
8991    netbsd*)
8992      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8993        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8994        wlarc=
8995      else
8996        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998      fi
8999      ;;
9000
9001    solaris*)
9002      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9003        ld_shlibs=no
9004        cat <<EOF 1>&2
9005
9006*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9007*** create shared libraries on Solaris systems.  Therefore, libtool
9008*** is disabling shared libraries support.  We urge you to upgrade GNU
9009*** binutils to release 2.9.1 or newer.  Another option is to modify
9010*** your PATH or compiler configuration so that the native linker is
9011*** used, and then restart.
9012
9013EOF
9014      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9015        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017      else
9018        ld_shlibs=no
9019      fi
9020      ;;
9021
9022    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9023      case `$LD -v 2>&1` in
9024        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9025        ld_shlibs=no
9026        cat <<_LT_EOF 1>&2
9027
9028*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9029*** reliably create shared libraries on SCO systems.  Therefore, libtool
9030*** is disabling shared libraries support.  We urge you to upgrade GNU
9031*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9032*** your PATH or compiler configuration so that the native linker is
9033*** used, and then restart.
9034
9035_LT_EOF
9036        ;;
9037        *)
9038          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9039            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9040            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9041            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9042          else
9043            ld_shlibs=no
9044          fi
9045        ;;
9046      esac
9047      ;;
9048
9049    sunos4*)
9050      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051      wlarc=
9052      hardcode_direct=yes
9053      hardcode_shlibpath_var=no
9054      ;;
9055
9056    *)
9057      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9058        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060      else
9061        ld_shlibs=no
9062      fi
9063      ;;
9064    esac
9065
9066    if test "$ld_shlibs" = no; then
9067      runpath_var=
9068      hardcode_libdir_flag_spec=
9069      export_dynamic_flag_spec=
9070      whole_archive_flag_spec=
9071    fi
9072  else
9073    # PORTME fill in a description of your system's linker (not GNU ld)
9074    case $host_os in
9075    aix3*)
9076      allow_undefined_flag=unsupported
9077      always_export_symbols=yes
9078      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'
9079      # Note: this linker hardcodes the directories in LIBPATH if there
9080      # are no directories specified by -L.
9081      hardcode_minus_L=yes
9082      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9083        # Neither direct hardcoding nor static linking is supported with a
9084        # broken collect2.
9085        hardcode_direct=unsupported
9086      fi
9087      ;;
9088
9089    aix4* | aix5*)
9090      if test "$host_cpu" = ia64; then
9091        # On IA64, the linker does run time linking by default, so we don't
9092        # have to do anything special.
9093        aix_use_runtimelinking=no
9094        exp_sym_flag='-Bexport'
9095        no_entry_flag=""
9096      else
9097        # If we're using GNU nm, then we don't want the "-C" option.
9098        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9099        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9100          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'
9101        else
9102          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'
9103        fi
9104        aix_use_runtimelinking=no
9105
9106        # Test if we are trying to use run time linking or normal
9107        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9108        # need to do runtime linking.
9109        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9110          for ld_flag in $LDFLAGS; do
9111          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9112            aix_use_runtimelinking=yes
9113            break
9114          fi
9115          done
9116          ;;
9117        esac
9118
9119        exp_sym_flag='-bexport'
9120        no_entry_flag='-bnoentry'
9121      fi
9122
9123      # When large executables or shared objects are built, AIX ld can
9124      # have problems creating the table of contents.  If linking a library
9125      # or program results in "error TOC overflow" add -mminimal-toc to
9126      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9127      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9128
9129      archive_cmds=''
9130      hardcode_direct=yes
9131      hardcode_libdir_separator=':'
9132      link_all_deplibs=yes
9133
9134      if test "$GCC" = yes; then
9135        case $host_os in aix4.[012]|aix4.[012].*)
9136        # We only want to do this on AIX 4.2 and lower, the check
9137        # below for broken collect2 doesn't work under 4.3+
9138          collect2name=`${CC} -print-prog-name=collect2`
9139          if test -f "$collect2name" && \
9140           strings "$collect2name" | grep resolve_lib_name >/dev/null
9141          then
9142          # We have reworked collect2
9143          hardcode_direct=yes
9144          else
9145          # We have old collect2
9146          hardcode_direct=unsupported
9147          # It fails to find uninstalled libraries when the uninstalled
9148          # path is not listed in the libpath.  Setting hardcode_minus_L
9149          # to unsupported forces relinking
9150          hardcode_minus_L=yes
9151          hardcode_libdir_flag_spec='-L$libdir'
9152          hardcode_libdir_separator=
9153          fi
9154          ;;
9155        esac
9156        shared_flag='-shared'
9157        if test "$aix_use_runtimelinking" = yes; then
9158          shared_flag="$shared_flag "'${wl}-G'
9159        fi
9160      else
9161        # not using gcc
9162        if test "$host_cpu" = ia64; then
9163        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9164        # chokes on -Wl,-G. The following line is correct:
9165          shared_flag='-G'
9166        else
9167          if test "$aix_use_runtimelinking" = yes; then
9168            shared_flag='${wl}-G'
9169          else
9170            shared_flag='${wl}-bM:SRE'
9171          fi
9172        fi
9173      fi
9174
9175      # It seems that -bexpall does not export symbols beginning with
9176      # underscore (_), so it is better to generate a list of symbols to export.
9177      always_export_symbols=yes
9178      if test "$aix_use_runtimelinking" = yes; then
9179        # Warning - without using the other runtime loading flags (-brtl),
9180        # -berok will link without error, but may produce a broken library.
9181        allow_undefined_flag='-berok'
9182       # Determine the default libpath from the value encoded in an empty executable.
9183       cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h.  */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h.  */
9189
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198rm -f conftest.$ac_objext conftest$ac_exeext
9199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200  (eval $ac_link) 2>conftest.er1
9201  ac_status=$?
9202  grep -v '^ *+' conftest.er1 >conftest.err
9203  rm -f conftest.er1
9204  cat conftest.err >&5
9205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206  (exit $ac_status); } &&
9207         { ac_try='test -z "$ac_c_werror_flag"
9208                         || test ! -s conftest.err'
9209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210  (eval $ac_try) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); }; } &&
9214         { ac_try='test -s conftest$ac_exeext'
9215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216  (eval $ac_try) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); }; }; then
9220
9221aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9222}'`
9223# Check for a 64-bit object if we didn't find anything.
9224if 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; }
9225}'`; fi
9226else
9227  echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230fi
9231rm -f conftest.err conftest.$ac_objext \
9232      conftest$ac_exeext conftest.$ac_ext
9233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236        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"
9237       else
9238        if test "$host_cpu" = ia64; then
9239          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240          allow_undefined_flag="-z nodefs"
9241          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"
9242        else
9243         # Determine the default libpath from the value encoded in an empty executable.
9244         cat >conftest.$ac_ext <<_ACEOF
9245/* confdefs.h.  */
9246_ACEOF
9247cat confdefs.h >>conftest.$ac_ext
9248cat >>conftest.$ac_ext <<_ACEOF
9249/* end confdefs.h.  */
9250
9251int
9252main ()
9253{
9254
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261  (eval $ac_link) 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } &&
9268         { ac_try='test -z "$ac_c_werror_flag"
9269                         || test ! -s conftest.err'
9270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271  (eval $ac_try) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); }; } &&
9275         { ac_try='test -s conftest$ac_exeext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281
9282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9283}'`
9284# Check for a 64-bit object if we didn't find anything.
9285if 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; }
9286}'`; fi
9287else
9288  echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
9291fi
9292rm -f conftest.err conftest.$ac_objext \
9293      conftest$ac_exeext conftest.$ac_ext
9294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9295
9296         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9297          # Warning - without using the other run time loading flags,
9298          # -berok will link without error, but may produce a broken library.
9299          no_undefined_flag=' ${wl}-bernotok'
9300          allow_undefined_flag=' ${wl}-berok'
9301          # Exported symbols can be pulled into shared objects from archives
9302          whole_archive_flag_spec='$convenience'
9303          archive_cmds_need_lc=yes
9304          # This is similar to how AIX traditionally builds its shared libraries.
9305          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'
9306        fi
9307      fi
9308      ;;
9309
9310    amigaos*)
9311      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)'
9312      hardcode_libdir_flag_spec='-L$libdir'
9313      hardcode_minus_L=yes
9314      # see comment about different semantics on the GNU ld section
9315      ld_shlibs=no
9316      ;;
9317
9318    bsdi[45]*)
9319      export_dynamic_flag_spec=-rdynamic
9320      ;;
9321
9322    cygwin* | mingw* | pw32*)
9323      # When not using gcc, we currently assume that we are using
9324      # Microsoft Visual C++.
9325      # hardcode_libdir_flag_spec is actually meaningless, as there is
9326      # no search path for DLLs.
9327      hardcode_libdir_flag_spec=' '
9328      allow_undefined_flag=unsupported
9329      # Tell ltmain to make .lib files, not .a files.
9330      libext=lib
9331      # Tell ltmain to make .dll files, not .so files.
9332      shrext_cmds=".dll"
9333      # FIXME: Setting linknames here is a bad hack.
9334      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9335      # The linker will automatically build a .lib file if we build a DLL.
9336      old_archive_From_new_cmds='true'
9337      # FIXME: Should let the user specify the lib program.
9338      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9339      fix_srcfile_path='`cygpath -w "$srcfile"`'
9340      enable_shared_with_static_runtimes=yes
9341      ;;
9342
9343    darwin* | rhapsody*)
9344      case $host_os in
9345        rhapsody* | darwin1.[012])
9346         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9347         ;;
9348       *) # Darwin 1.3 on
9349         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9350           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9351         else
9352           case ${MACOSX_DEPLOYMENT_TARGET} in
9353             10.[012])
9354               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9355               ;;
9356             10.*)
9357               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9358               ;;
9359           esac
9360         fi
9361         ;;
9362      esac
9363      archive_cmds_need_lc=no
9364      hardcode_direct=no
9365      hardcode_automatic=yes
9366      hardcode_shlibpath_var=unsupported
9367      whole_archive_flag_spec=''
9368      link_all_deplibs=yes
9369    if test "$GCC" = yes ; then
9370        output_verbose_link_cmd='echo'
9371        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9372      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9373      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9374      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}'
9375      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}'
9376    else
9377      case $cc_basename in
9378        xlc*)
9379         output_verbose_link_cmd='echo'
9380         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9381         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9382          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9383         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}'
9384          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}'
9385          ;;
9386       *)
9387         ld_shlibs=no
9388          ;;
9389      esac
9390    fi
9391      ;;
9392
9393    dgux*)
9394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395      hardcode_libdir_flag_spec='-L$libdir'
9396      hardcode_shlibpath_var=no
9397      ;;
9398
9399    freebsd1*)
9400      ld_shlibs=no
9401      ;;
9402
9403    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9404    # support.  Future versions do this automatically, but an explicit c++rt0.o
9405    # does not break anything, and helps significantly (at the cost of a little
9406    # extra space).
9407    freebsd2.2*)
9408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9409      hardcode_libdir_flag_spec='-R$libdir'
9410      hardcode_direct=yes
9411      hardcode_shlibpath_var=no
9412      ;;
9413
9414    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9415    freebsd2*)
9416      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9417      hardcode_direct=yes
9418      hardcode_minus_L=yes
9419      hardcode_shlibpath_var=no
9420      ;;
9421
9422    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9423    freebsd* | kfreebsd*-gnu | dragonfly*)
9424      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9425      hardcode_libdir_flag_spec='-R$libdir'
9426      hardcode_direct=yes
9427      hardcode_shlibpath_var=no
9428      ;;
9429
9430    hpux9*)
9431      if test "$GCC" = yes; then
9432        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'
9433      else
9434        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'
9435      fi
9436      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437      hardcode_libdir_separator=:
9438      hardcode_direct=yes
9439
9440      # hardcode_minus_L: Not really in the search PATH,
9441      # but as the default location of the library.
9442      hardcode_minus_L=yes
9443      export_dynamic_flag_spec='${wl}-E'
9444      ;;
9445
9446    hpux10*)
9447      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9448        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449      else
9450        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451      fi
9452      if test "$with_gnu_ld" = no; then
9453        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454        hardcode_libdir_separator=:
9455
9456        hardcode_direct=yes
9457        export_dynamic_flag_spec='${wl}-E'
9458
9459        # hardcode_minus_L: Not really in the search PATH,
9460        # but as the default location of the library.
9461        hardcode_minus_L=yes
9462      fi
9463      ;;
9464
9465    hpux11*)
9466      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9467        case $host_cpu in
9468        hppa*64*)
9469          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9470          ;;
9471        ia64*)
9472          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9473          ;;
9474        *)
9475          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9476          ;;
9477        esac
9478      else
9479        case $host_cpu in
9480        hppa*64*)
9481          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9482          ;;
9483        ia64*)
9484          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9485          ;;
9486        *)
9487          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9488          ;;
9489        esac
9490      fi
9491      if test "$with_gnu_ld" = no; then
9492        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9493        hardcode_libdir_separator=:
9494
9495        case $host_cpu in
9496        hppa*64*|ia64*)
9497          hardcode_libdir_flag_spec_ld='+b $libdir'
9498          hardcode_direct=no
9499          hardcode_shlibpath_var=no
9500          ;;
9501        *)
9502          hardcode_direct=yes
9503          export_dynamic_flag_spec='${wl}-E'
9504
9505          # hardcode_minus_L: Not really in the search PATH,
9506          # but as the default location of the library.
9507          hardcode_minus_L=yes
9508          ;;
9509        esac
9510      fi
9511      ;;
9512
9513    irix5* | irix6* | nonstopux*)
9514      if test "$GCC" = yes; then
9515        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'
9516      else
9517        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'
9518        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9519      fi
9520      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521      hardcode_libdir_separator=:
9522      link_all_deplibs=yes
9523      ;;
9524
9525    netbsd*)
9526      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9527        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9528      else
9529        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9530      fi
9531      hardcode_libdir_flag_spec='-R$libdir'
9532      hardcode_direct=yes
9533      hardcode_shlibpath_var=no
9534      ;;
9535
9536    newsos6)
9537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538      hardcode_direct=yes
9539      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540      hardcode_libdir_separator=:
9541      hardcode_shlibpath_var=no
9542      ;;
9543
9544    openbsd*)
9545      hardcode_direct=yes
9546      hardcode_shlibpath_var=no
9547      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9548        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9550        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551        export_dynamic_flag_spec='${wl}-E'
9552      else
9553       case $host_os in
9554         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9555           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9556           hardcode_libdir_flag_spec='-R$libdir'
9557           ;;
9558         *)
9559           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9560           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561           ;;
9562       esac
9563      fi
9564      ;;
9565
9566    os2*)
9567      hardcode_libdir_flag_spec='-L$libdir'
9568      hardcode_minus_L=yes
9569      allow_undefined_flag=unsupported
9570      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'
9571      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9572      ;;
9573
9574    osf3*)
9575      if test "$GCC" = yes; then
9576        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9577        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'
9578      else
9579        allow_undefined_flag=' -expect_unresolved \*'
9580        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'
9581      fi
9582      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583      hardcode_libdir_separator=:
9584      ;;
9585
9586    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9587      if test "$GCC" = yes; then
9588        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9589        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'
9590        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591      else
9592        allow_undefined_flag=' -expect_unresolved \*'
9593        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'
9594        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9595        $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'
9596
9597        # Both c and cxx compiler support -rpath directly
9598        hardcode_libdir_flag_spec='-rpath $libdir'
9599      fi
9600      hardcode_libdir_separator=:
9601      ;;
9602
9603    solaris*)
9604      no_undefined_flag=' -z text'
9605      if test "$GCC" = yes; then
9606        wlarc='${wl}'
9607        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9609          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9610      else
9611        wlarc=''
9612        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9614        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9615      fi
9616      hardcode_libdir_flag_spec='-R$libdir'
9617      hardcode_shlibpath_var=no
9618      case $host_os in
9619      solaris2.[0-5] | solaris2.[0-5].*) ;;
9620      *)
9621        # The compiler driver will combine linker options so we
9622        # cannot just pass the convience library names through
9623        # without $wl, iff we do not link with $LD.
9624        # Luckily, gcc supports the same syntax we need for Sun Studio.
9625        # Supported since Solaris 2.6 (maybe 2.5.1?)
9626        case $wlarc in
9627        '')
9628          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9629        *)
9630          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' ;;
9631        esac ;;
9632      esac
9633      link_all_deplibs=yes
9634      ;;
9635
9636    sunos4*)
9637      if test "x$host_vendor" = xsequent; then
9638        # Use $CC to link under sequent, because it throws in some extra .o
9639        # files that make .init and .fini sections work.
9640        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641      else
9642        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9643      fi
9644      hardcode_libdir_flag_spec='-L$libdir'
9645      hardcode_direct=yes
9646      hardcode_minus_L=yes
9647      hardcode_shlibpath_var=no
9648      ;;
9649
9650    sysv4)
9651      case $host_vendor in
9652        sni)
9653          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654          hardcode_direct=yes # is this really true???
9655        ;;
9656        siemens)
9657          ## LD is ld it makes a PLAMLIB
9658          ## CC just makes a GrossModule.
9659          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660          reload_cmds='$CC -r -o $output$reload_objs'
9661          hardcode_direct=no
9662        ;;
9663        motorola)
9664          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9666        ;;
9667      esac
9668      runpath_var='LD_RUN_PATH'
9669      hardcode_shlibpath_var=no
9670      ;;
9671
9672    sysv4.3*)
9673      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674      hardcode_shlibpath_var=no
9675      export_dynamic_flag_spec='-Bexport'
9676      ;;
9677
9678    sysv4*MP*)
9679      if test -d /usr/nec; then
9680        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681        hardcode_shlibpath_var=no
9682        runpath_var=LD_RUN_PATH
9683        hardcode_runpath_var=yes
9684        ld_shlibs=yes
9685      fi
9686      ;;
9687
9688    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9689      no_undefined_flag='${wl}-z,text'
9690      archive_cmds_need_lc=no
9691      hardcode_shlibpath_var=no
9692      runpath_var='LD_RUN_PATH'
9693
9694      if test "$GCC" = yes; then
9695        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697      else
9698        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700      fi
9701      ;;
9702
9703    sysv5* | sco3.2v5* | sco5v6*)
9704      # Note: We can NOT use -z defs as we might desire, because we do not
9705      # link with -lc, and that would cause any symbols used from libc to
9706      # always be unresolved, which means just about no library would
9707      # ever link correctly.  If we're not using GNU ld we use -z text
9708      # though, which does catch some bad symbols but isn't as heavy-handed
9709      # as -z defs.
9710      no_undefined_flag='${wl}-z,text'
9711      allow_undefined_flag='${wl}-z,nodefs'
9712      archive_cmds_need_lc=no
9713      hardcode_shlibpath_var=no
9714      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9715      hardcode_libdir_separator=':'
9716      link_all_deplibs=yes
9717      export_dynamic_flag_spec='${wl}-Bexport'
9718      runpath_var='LD_RUN_PATH'
9719
9720      if test "$GCC" = yes; then
9721        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723      else
9724        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9725        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9726      fi
9727      ;;
9728
9729    uts4*)
9730      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731      hardcode_libdir_flag_spec='-L$libdir'
9732      hardcode_shlibpath_var=no
9733      ;;
9734
9735    *)
9736      ld_shlibs=no
9737      ;;
9738    esac
9739  fi
9740
9741echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9742echo "${ECHO_T}$ld_shlibs" >&6
9743test "$ld_shlibs" = no && can_build_shared=no
9744
9745#
9746# Do we need to explicitly link libc?
9747#
9748case "x$archive_cmds_need_lc" in
9749x|xyes)
9750  # Assume -lc should be added
9751  archive_cmds_need_lc=yes
9752
9753  if test "$enable_shared" = yes && test "$GCC" = yes; then
9754    case $archive_cmds in
9755    *'~'*)
9756      # FIXME: we may have to deal with multi-command sequences.
9757      ;;
9758    '$CC '*)
9759      # Test whether the compiler implicitly links with -lc since on some
9760      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9761      # to ld, don't add -lc before -lgcc.
9762      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9763echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9764      $rm conftest*
9765      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9766
9767      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768  (eval $ac_compile) 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); } 2>conftest.err; then
9772        soname=conftest
9773        lib=conftest
9774        libobjs=conftest.$ac_objext
9775        deplibs=
9776        wl=$lt_prog_compiler_wl
9777        pic_flag=$lt_prog_compiler_pic
9778        compiler_flags=-v
9779        linker_flags=-v
9780        verstring=
9781        output_objdir=.
9782        libname=conftest
9783        lt_save_allow_undefined_flag=$allow_undefined_flag
9784        allow_undefined_flag=
9785        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9786  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9787  ac_status=$?
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); }
9790        then
9791          archive_cmds_need_lc=no
9792        else
9793          archive_cmds_need_lc=yes
9794        fi
9795        allow_undefined_flag=$lt_save_allow_undefined_flag
9796      else
9797        cat conftest.err 1>&5
9798      fi
9799      $rm conftest*
9800      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9801echo "${ECHO_T}$archive_cmds_need_lc" >&6
9802      ;;
9803    esac
9804  fi
9805  ;;
9806esac
9807
9808echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9809echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9810library_names_spec=
9811libname_spec='lib$name'
9812soname_spec=
9813shrext_cmds=".so"
9814postinstall_cmds=
9815postuninstall_cmds=
9816finish_cmds=
9817finish_eval=
9818shlibpath_var=
9819shlibpath_overrides_runpath=unknown
9820version_type=none
9821dynamic_linker="$host_os ld.so"
9822sys_lib_dlsearch_path_spec="/lib /usr/lib"
9823if test "$GCC" = yes; then
9824  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9825  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9826    # if the path contains ";" then we assume it to be the separator
9827    # otherwise default to the standard path separator (i.e. ":") - it is
9828    # assumed that no part of a normal pathname contains ";" but that should
9829    # okay in the real world where ";" in dirpaths is itself problematic.
9830    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9831  else
9832    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9833  fi
9834else
9835  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9836fi
9837need_lib_prefix=unknown
9838hardcode_into_libs=no
9839
9840# when you set need_version to no, make sure it does not cause -set_version
9841# flags to be left without arguments
9842need_version=unknown
9843
9844case $host_os in
9845aix3*)
9846  version_type=linux
9847  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9848  shlibpath_var=LIBPATH
9849
9850  # AIX 3 has no versioning support, so we append a major version to the name.
9851  soname_spec='${libname}${release}${shared_ext}$major'
9852  ;;
9853
9854aix4* | aix5*)
9855  version_type=linux
9856  need_lib_prefix=no
9857  need_version=no
9858  hardcode_into_libs=yes
9859  if test "$host_cpu" = ia64; then
9860    # AIX 5 supports IA64
9861    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9862    shlibpath_var=LD_LIBRARY_PATH
9863  else
9864    # With GCC up to 2.95.x, collect2 would create an import file
9865    # for dependence libraries.  The import file would start with
9866    # the line `#! .'.  This would cause the generated library to
9867    # depend on `.', always an invalid library.  This was fixed in
9868    # development snapshots of GCC prior to 3.0.
9869    case $host_os in
9870      aix4 | aix4.[01] | aix4.[01].*)
9871      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9872           echo ' yes '
9873           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9874        :
9875      else
9876        can_build_shared=no
9877      fi
9878      ;;
9879    esac
9880    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9881    # soname into executable. Probably we can add versioning support to
9882    # collect2, so additional links can be useful in future.
9883    if test "$aix_use_runtimelinking" = yes; then
9884      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9885      # instead of lib<name>.a to let people know that these are not
9886      # typical AIX shared libraries.
9887      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888    else
9889      # We preserve .a as extension for shared libraries through AIX4.2
9890      # and later when we are not doing run time linking.
9891      library_names_spec='${libname}${release}.a $libname.a'
9892      soname_spec='${libname}${release}${shared_ext}$major'
9893    fi
9894    shlibpath_var=LIBPATH
9895  fi
9896  ;;
9897
9898amigaos*)
9899  library_names_spec='$libname.ixlibrary $libname.a'
9900  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9901  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9902  ;;
9903
9904beos*)
9905  library_names_spec='${libname}${shared_ext}'
9906  dynamic_linker="$host_os ld.so"
9907  shlibpath_var=LIBRARY_PATH
9908  ;;
9909
9910bsdi[45]*)
9911  version_type=linux
9912  need_version=no
9913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914  soname_spec='${libname}${release}${shared_ext}$major'
9915  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9916  shlibpath_var=LD_LIBRARY_PATH
9917  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9918  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9919  # the default ld.so.conf also contains /usr/contrib/lib and
9920  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9921  # libtool to hard-code these into programs
9922  ;;
9923
9924cygwin* | mingw* | pw32*)
9925  version_type=windows
9926  shrext_cmds=".dll"
9927  need_version=no
9928  need_lib_prefix=no
9929
9930  case $GCC,$host_os in
9931  yes,cygwin* | yes,mingw* | yes,pw32*)
9932    library_names_spec='$libname.dll.a'
9933    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9934    postinstall_cmds='base_file=`basename \${file}`~
9935      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9936      dldir=$destdir/`dirname \$dlpath`~
9937      test -d \$dldir || mkdir -p \$dldir~
9938      $install_prog $dir/$dlname \$dldir/$dlname~
9939      chmod a+x \$dldir/$dlname'
9940    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9941      dlpath=$dir/\$dldll~
9942       $rm \$dlpath'
9943    shlibpath_overrides_runpath=yes
9944
9945    case $host_os in
9946    cygwin*)
9947      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9948      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9949      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9950      ;;
9951    mingw*)
9952      # MinGW DLLs use traditional 'lib' prefix
9953      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9954      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9955      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9956        # It is most probably a Windows format PATH printed by
9957        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9958        # path with ; separators, and with drive letters. We can handle the
9959        # drive letters (cygwin fileutils understands them), so leave them,
9960        # especially as we might pass files found there to a mingw objdump,
9961        # which wouldn't understand a cygwinified path. Ahh.
9962        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9963      else
9964        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9965      fi
9966      ;;
9967    pw32*)
9968      # pw32 DLLs use 'pw' prefix rather than 'lib'
9969      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970      ;;
9971    esac
9972    ;;
9973
9974  *)
9975    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9976    ;;
9977  esac
9978  dynamic_linker='Win32 ld.exe'
9979  # FIXME: first we should search . and the directory the executable is in
9980  shlibpath_var=PATH
9981  ;;
9982
9983darwin* | rhapsody*)
9984  dynamic_linker="$host_os dyld"
9985  version_type=darwin
9986  need_lib_prefix=no
9987  need_version=no
9988  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9989  soname_spec='${libname}${release}${major}$shared_ext'
9990  shlibpath_overrides_runpath=yes
9991  shlibpath_var=DYLD_LIBRARY_PATH
9992  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9993  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9994  if test "$GCC" = yes; then
9995    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9996  else
9997    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9998  fi
9999  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10000  ;;
10001
10002dgux*)
10003  version_type=linux
10004  need_lib_prefix=no
10005  need_version=no
10006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10007  soname_spec='${libname}${release}${shared_ext}$major'
10008  shlibpath_var=LD_LIBRARY_PATH
10009  ;;
10010
10011freebsd1*)
10012  dynamic_linker=no
10013  ;;
10014
10015kfreebsd*-gnu)
10016  version_type=linux
10017  need_lib_prefix=no
10018  need_version=no
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020  soname_spec='${libname}${release}${shared_ext}$major'
10021  shlibpath_var=LD_LIBRARY_PATH
10022  shlibpath_overrides_runpath=no
10023  hardcode_into_libs=yes
10024  dynamic_linker='GNU ld.so'
10025  ;;
10026
10027freebsd* | dragonfly*)
10028  # DragonFly does not have aout.  When/if they implement a new
10029  # versioning mechanism, adjust this.
10030  if test -x /usr/bin/objformat; then
10031    objformat=`/usr/bin/objformat`
10032  else
10033    case $host_os in
10034    freebsd[123]*) objformat=aout ;;
10035    *) objformat=elf ;;
10036    esac
10037  fi
10038  version_type=freebsd-$objformat
10039  case $version_type in
10040    freebsd-elf*)
10041      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10042      need_version=no
10043      need_lib_prefix=no
10044      ;;
10045    freebsd-*)
10046      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10047      need_version=yes
10048      ;;
10049  esac
10050  shlibpath_var=LD_LIBRARY_PATH
10051  case $host_os in
10052  freebsd2*)
10053    shlibpath_overrides_runpath=yes
10054    ;;
10055  freebsd3.[01]* | freebsdelf3.[01]*)
10056    shlibpath_overrides_runpath=yes
10057    hardcode_into_libs=yes
10058    ;;
10059  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10060  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10061    shlibpath_overrides_runpath=no
10062    hardcode_into_libs=yes
10063    ;;
10064  freebsd*) # from 4.6 on
10065    shlibpath_overrides_runpath=yes
10066    hardcode_into_libs=yes
10067    ;;
10068  esac
10069  ;;
10070
10071gnu*)
10072  version_type=linux
10073  need_lib_prefix=no
10074  need_version=no
10075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10076  soname_spec='${libname}${release}${shared_ext}$major'
10077  shlibpath_var=LD_LIBRARY_PATH
10078  hardcode_into_libs=yes
10079  ;;
10080
10081hpux9* | hpux10* | hpux11*)
10082  # Give a soname corresponding to the major version so that dld.sl refuses to
10083  # link against other versions.
10084  version_type=sunos
10085  need_lib_prefix=no
10086  need_version=no
10087  case $host_cpu in
10088  ia64*)
10089    shrext_cmds='.so'
10090    hardcode_into_libs=yes
10091    dynamic_linker="$host_os dld.so"
10092    shlibpath_var=LD_LIBRARY_PATH
10093    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095    soname_spec='${libname}${release}${shared_ext}$major'
10096    if test "X$HPUX_IA64_MODE" = X32; then
10097      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10098    else
10099      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10100    fi
10101    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10102    ;;
10103   hppa*64*)
10104     shrext_cmds='.sl'
10105     hardcode_into_libs=yes
10106     dynamic_linker="$host_os dld.sl"
10107     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10108     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110     soname_spec='${libname}${release}${shared_ext}$major'
10111     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10112     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113     ;;
10114   *)
10115    shrext_cmds='.sl'
10116    dynamic_linker="$host_os dld.sl"
10117    shlibpath_var=SHLIB_PATH
10118    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10119    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120    soname_spec='${libname}${release}${shared_ext}$major'
10121    ;;
10122  esac
10123  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10124  postinstall_cmds='chmod 555 $lib'
10125  ;;
10126
10127interix3*)
10128  version_type=linux
10129  need_lib_prefix=no
10130  need_version=no
10131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10132  soname_spec='${libname}${release}${shared_ext}$major'
10133  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10134  shlibpath_var=LD_LIBRARY_PATH
10135  shlibpath_overrides_runpath=no
10136  hardcode_into_libs=yes
10137  ;;
10138
10139irix5* | irix6* | nonstopux*)
10140  case $host_os in
10141    nonstopux*) version_type=nonstopux ;;
10142    *)
10143        if test "$lt_cv_prog_gnu_ld" = yes; then
10144                version_type=linux
10145        else
10146                version_type=irix
10147        fi ;;
10148  esac
10149  need_lib_prefix=no
10150  need_version=no
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10153  case $host_os in
10154  irix5* | nonstopux*)
10155    libsuff= shlibsuff=
10156    ;;
10157  *)
10158    case $LD in # libtool.m4 will add one of these switches to LD
10159    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10160      libsuff= shlibsuff= libmagic=32-bit;;
10161    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10162      libsuff=32 shlibsuff=N32 libmagic=N32;;
10163    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10164      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10165    *) libsuff= shlibsuff= libmagic=never-match;;
10166    esac
10167    ;;
10168  esac
10169  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10170  shlibpath_overrides_runpath=no
10171  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10172  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10173  hardcode_into_libs=yes
10174  ;;
10175
10176# No shared lib support for Linux oldld, aout, or coff.
10177linux*oldld* | linux*aout* | linux*coff*)
10178  dynamic_linker=no
10179  ;;
10180
10181# This must be Linux ELF.
10182linux*)
10183  version_type=linux
10184  need_lib_prefix=no
10185  need_version=no
10186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187  soname_spec='${libname}${release}${shared_ext}$major'
10188  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10189  shlibpath_var=LD_LIBRARY_PATH
10190  shlibpath_overrides_runpath=no
10191  # This implies no fast_install, which is unacceptable.
10192  # Some rework will be needed to allow for fast_install
10193  # before this can be enabled.
10194  hardcode_into_libs=yes
10195
10196  # Append ld.so.conf contents to the search path
10197  if test -f /etc/ld.so.conf; then
10198    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10199    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10200  fi
10201
10202  # We used to test for /lib/ld.so.1 and disable shared libraries on
10203  # powerpc, because MkLinux only supported shared libraries with the
10204  # GNU dynamic linker.  Since this was broken with cross compilers,
10205  # most powerpc-linux boxes support dynamic linking these days and
10206  # people can always --disable-shared, the test was removed, and we
10207  # assume the GNU/Linux dynamic linker is in use.
10208  dynamic_linker='GNU/Linux ld.so'
10209  ;;
10210
10211knetbsd*-gnu)
10212  version_type=linux
10213  need_lib_prefix=no
10214  need_version=no
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  shlibpath_overrides_runpath=no
10219  hardcode_into_libs=yes
10220  dynamic_linker='GNU ld.so'
10221  ;;
10222
10223netbsd*)
10224  version_type=sunos
10225  need_lib_prefix=no
10226  need_version=no
10227  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10229    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10230    dynamic_linker='NetBSD (a.out) ld.so'
10231  else
10232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233    soname_spec='${libname}${release}${shared_ext}$major'
10234    dynamic_linker='NetBSD ld.elf_so'
10235  fi
10236  shlibpath_var=LD_LIBRARY_PATH
10237  shlibpath_overrides_runpath=yes
10238  hardcode_into_libs=yes
10239  ;;
10240
10241newsos6)
10242  version_type=linux
10243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  shlibpath_overrides_runpath=yes
10246  ;;
10247
10248nto-qnx*)
10249  version_type=linux
10250  need_lib_prefix=no
10251  need_version=no
10252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253  soname_spec='${libname}${release}${shared_ext}$major'
10254  shlibpath_var=LD_LIBRARY_PATH
10255  shlibpath_overrides_runpath=yes
10256  ;;
10257
10258openbsd*)
10259  version_type=sunos
10260  sys_lib_dlsearch_path_spec="/usr/lib"
10261  need_lib_prefix=no
10262  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10263  case $host_os in
10264    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10265    *)                         need_version=no  ;;
10266  esac
10267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10269  shlibpath_var=LD_LIBRARY_PATH
10270  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10271    case $host_os in
10272      openbsd2.[89] | openbsd2.[89].*)
10273        shlibpath_overrides_runpath=no
10274        ;;
10275      *)
10276        shlibpath_overrides_runpath=yes
10277        ;;
10278      esac
10279  else
10280    shlibpath_overrides_runpath=yes
10281  fi
10282  ;;
10283
10284os2*)
10285  libname_spec='$name'
10286  shrext_cmds=".dll"
10287  need_lib_prefix=no
10288  library_names_spec='$libname${shared_ext} $libname.a'
10289  dynamic_linker='OS/2 ld.exe'
10290  shlibpath_var=LIBPATH
10291  ;;
10292
10293osf3* | osf4* | osf5*)
10294  version_type=osf
10295  need_lib_prefix=no
10296  need_version=no
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299  shlibpath_var=LD_LIBRARY_PATH
10300  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10301  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10302  ;;
10303
10304solaris*)
10305  version_type=linux
10306  need_lib_prefix=no
10307  need_version=no
10308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309  soname_spec='${libname}${release}${shared_ext}$major'
10310  shlibpath_var=LD_LIBRARY_PATH
10311  shlibpath_overrides_runpath=yes
10312  hardcode_into_libs=yes
10313  # ldd complains unless libraries are executable
10314  postinstall_cmds='chmod +x $lib'
10315  ;;
10316
10317sunos4*)
10318  version_type=sunos
10319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10320  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10321  shlibpath_var=LD_LIBRARY_PATH
10322  shlibpath_overrides_runpath=yes
10323  if test "$with_gnu_ld" = yes; then
10324    need_lib_prefix=no
10325  fi
10326  need_version=yes
10327  ;;
10328
10329sysv4 | sysv4.3*)
10330  version_type=linux
10331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332  soname_spec='${libname}${release}${shared_ext}$major'
10333  shlibpath_var=LD_LIBRARY_PATH
10334  case $host_vendor in
10335    sni)
10336      shlibpath_overrides_runpath=no
10337      need_lib_prefix=no
10338      export_dynamic_flag_spec='${wl}-Blargedynsym'
10339      runpath_var=LD_RUN_PATH
10340      ;;
10341    siemens)
10342      need_lib_prefix=no
10343      ;;
10344    motorola)
10345      need_lib_prefix=no
10346      need_version=no
10347      shlibpath_overrides_runpath=no
10348      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10349      ;;
10350  esac
10351  ;;
10352
10353sysv4*MP*)
10354  if test -d /usr/nec ;then
10355    version_type=linux
10356    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10357    soname_spec='$libname${shared_ext}.$major'
10358    shlibpath_var=LD_LIBRARY_PATH
10359  fi
10360  ;;
10361
10362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10363  version_type=freebsd-elf
10364  need_lib_prefix=no
10365  need_version=no
10366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10367  soname_spec='${libname}${release}${shared_ext}$major'
10368  shlibpath_var=LD_LIBRARY_PATH
10369  hardcode_into_libs=yes
10370  if test "$with_gnu_ld" = yes; then
10371    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10372    shlibpath_overrides_runpath=no
10373  else
10374    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10375    shlibpath_overrides_runpath=yes
10376    case $host_os in
10377      sco3.2v5*)
10378        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10379        ;;
10380    esac
10381  fi
10382  sys_lib_dlsearch_path_spec='/usr/lib'
10383  ;;
10384
10385uts4*)
10386  version_type=linux
10387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388  soname_spec='${libname}${release}${shared_ext}$major'
10389  shlibpath_var=LD_LIBRARY_PATH
10390  ;;
10391
10392*)
10393  dynamic_linker=no
10394  ;;
10395esac
10396echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10397echo "${ECHO_T}$dynamic_linker" >&6
10398test "$dynamic_linker" = no && can_build_shared=no
10399
10400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10401if test "$GCC" = yes; then
10402  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10403fi
10404
10405echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10406echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10407hardcode_action=
10408if test -n "$hardcode_libdir_flag_spec" || \
10409   test -n "$runpath_var" || \
10410   test "X$hardcode_automatic" = "Xyes" ; then
10411
10412  # We can hardcode non-existant directories.
10413  if test "$hardcode_direct" != no &&
10414     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10415     # have to relink, otherwise we might link with an installed library
10416     # when we should be linking with a yet-to-be-installed one
10417     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10418     test "$hardcode_minus_L" != no; then
10419    # Linking always hardcodes the temporary library directory.
10420    hardcode_action=relink
10421  else
10422    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10423    hardcode_action=immediate
10424  fi
10425else
10426  # We cannot hardcode anything, or else we can only hardcode existing
10427  # directories.
10428  hardcode_action=unsupported
10429fi
10430echo "$as_me:$LINENO: result: $hardcode_action" >&5
10431echo "${ECHO_T}$hardcode_action" >&6
10432
10433if test "$hardcode_action" = relink; then
10434  # Fast installation is not supported
10435  enable_fast_install=no
10436elif test "$shlibpath_overrides_runpath" = yes ||
10437     test "$enable_shared" = no; then
10438  # Fast installation is not necessary
10439  enable_fast_install=needless
10440fi
10441
10442striplib=
10443old_striplib=
10444echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10446if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10447  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449  echo "$as_me:$LINENO: result: yes" >&5
10450echo "${ECHO_T}yes" >&6
10451else
10452# FIXME - insert some real tests, host_os isn't really good enough
10453  case $host_os in
10454   darwin*)
10455       if test -n "$STRIP" ; then
10456         striplib="$STRIP -x"
10457         echo "$as_me:$LINENO: result: yes" >&5
10458echo "${ECHO_T}yes" >&6
10459       else
10460  echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462fi
10463       ;;
10464   *)
10465  echo "$as_me:$LINENO: result: no" >&5
10466echo "${ECHO_T}no" >&6
10467    ;;
10468  esac
10469fi
10470
10471if test "x$enable_dlopen" != xyes; then
10472  enable_dlopen=unknown
10473  enable_dlopen_self=unknown
10474  enable_dlopen_self_static=unknown
10475else
10476  lt_cv_dlopen=no
10477  lt_cv_dlopen_libs=
10478
10479  case $host_os in
10480  beos*)
10481    lt_cv_dlopen="load_add_on"
10482    lt_cv_dlopen_libs=
10483    lt_cv_dlopen_self=yes
10484    ;;
10485
10486  mingw* | pw32*)
10487    lt_cv_dlopen="LoadLibrary"
10488    lt_cv_dlopen_libs=
10489   ;;
10490
10491  cygwin*)
10492    lt_cv_dlopen="dlopen"
10493    lt_cv_dlopen_libs=
10494   ;;
10495
10496  darwin*)
10497  # if libdl is installed we need to link against it
10498    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10499echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10500if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10501  echo $ECHO_N "(cached) $ECHO_C" >&6
10502else
10503  ac_check_lib_save_LIBS=$LIBS
10504LIBS="-ldl  $LIBS"
10505cat >conftest.$ac_ext <<_ACEOF
10506/* confdefs.h.  */
10507_ACEOF
10508cat confdefs.h >>conftest.$ac_ext
10509cat >>conftest.$ac_ext <<_ACEOF
10510/* end confdefs.h.  */
10511
10512/* Override any gcc2 internal prototype to avoid an error.  */
10513#ifdef __cplusplus
10514extern "C"
10515#endif
10516/* We use char because int might match the return type of a gcc2
10517   builtin and then its argument prototype would still apply.  */
10518char dlopen ();
10519int
10520main ()
10521{
10522dlopen ();
10523  ;
10524  return 0;
10525}
10526_ACEOF
10527rm -f conftest.$ac_objext conftest$ac_exeext
10528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529  (eval $ac_link) 2>conftest.er1
10530  ac_status=$?
10531  grep -v '^ *+' conftest.er1 >conftest.err
10532  rm -f conftest.er1
10533  cat conftest.err >&5
10534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); } &&
10536         { ac_try='test -z "$ac_c_werror_flag"
10537                         || test ! -s conftest.err'
10538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539  (eval $ac_try) 2>&5
10540  ac_status=$?
10541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); }; } &&
10543         { ac_try='test -s conftest$ac_exeext'
10544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545  (eval $ac_try) 2>&5
10546  ac_status=$?
10547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548  (exit $ac_status); }; }; then
10549  ac_cv_lib_dl_dlopen=yes
10550else
10551  echo "$as_me: failed program was:" >&5
10552sed 's/^/| /' conftest.$ac_ext >&5
10553
10554ac_cv_lib_dl_dlopen=no
10555fi
10556rm -f conftest.err conftest.$ac_objext \
10557      conftest$ac_exeext conftest.$ac_ext
10558LIBS=$ac_check_lib_save_LIBS
10559fi
10560echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10562if test $ac_cv_lib_dl_dlopen = yes; then
10563  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10564else
10565
10566    lt_cv_dlopen="dyld"
10567    lt_cv_dlopen_libs=
10568    lt_cv_dlopen_self=yes
10569
10570fi
10571
10572   ;;
10573
10574  *)
10575    echo "$as_me:$LINENO: checking for shl_load" >&5
10576echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10577if test "${ac_cv_func_shl_load+set}" = set; then
10578  echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580  cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h.  */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h.  */
10586/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10588#define shl_load innocuous_shl_load
10589
10590/* System header to define __stub macros and hopefully few prototypes,
10591    which can conflict with char shl_load (); below.
10592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10593    <limits.h> exists even on freestanding compilers.  */
10594
10595#ifdef __STDC__
10596# include <limits.h>
10597#else
10598# include <assert.h>
10599#endif
10600
10601#undef shl_load
10602
10603/* Override any gcc2 internal prototype to avoid an error.  */
10604#ifdef __cplusplus
10605extern "C"
10606{
10607#endif
10608/* We use char because int might match the return type of a gcc2
10609   builtin and then its argument prototype would still apply.  */
10610char shl_load ();
10611/* The GNU C library defines this for functions which it implements
10612    to always fail with ENOSYS.  Some functions are actually named
10613    something starting with __ and the normal name is an alias.  */
10614#if defined (__stub_shl_load) || defined (__stub___shl_load)
10615choke me
10616#else
10617char (*f) () = shl_load;
10618#endif
10619#ifdef __cplusplus
10620}
10621#endif
10622
10623int
10624main ()
10625{
10626return f != shl_load;
10627  ;
10628  return 0;
10629}
10630_ACEOF
10631rm -f conftest.$ac_objext conftest$ac_exeext
10632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633  (eval $ac_link) 2>conftest.er1
10634  ac_status=$?
10635  grep -v '^ *+' conftest.er1 >conftest.err
10636  rm -f conftest.er1
10637  cat conftest.err >&5
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); } &&
10640         { ac_try='test -z "$ac_c_werror_flag"
10641                         || test ! -s conftest.err'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; } &&
10647         { ac_try='test -s conftest$ac_exeext'
10648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649  (eval $ac_try) 2>&5
10650  ac_status=$?
10651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652  (exit $ac_status); }; }; then
10653  ac_cv_func_shl_load=yes
10654else
10655  echo "$as_me: failed program was:" >&5
10656sed 's/^/| /' conftest.$ac_ext >&5
10657
10658ac_cv_func_shl_load=no
10659fi
10660rm -f conftest.err conftest.$ac_objext \
10661      conftest$ac_exeext conftest.$ac_ext
10662fi
10663echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10664echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10665if test $ac_cv_func_shl_load = yes; then
10666  lt_cv_dlopen="shl_load"
10667else
10668  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10669echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10670if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10671  echo $ECHO_N "(cached) $ECHO_C" >&6
10672else
10673  ac_check_lib_save_LIBS=$LIBS
10674LIBS="-ldld  $LIBS"
10675cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h.  */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h.  */
10681
10682/* Override any gcc2 internal prototype to avoid an error.  */
10683#ifdef __cplusplus
10684extern "C"
10685#endif
10686/* We use char because int might match the return type of a gcc2
10687   builtin and then its argument prototype would still apply.  */
10688char shl_load ();
10689int
10690main ()
10691{
10692shl_load ();
10693  ;
10694  return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
10698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699  (eval $ac_link) 2>conftest.er1
10700  ac_status=$?
10701  grep -v '^ *+' conftest.er1 >conftest.err
10702  rm -f conftest.er1
10703  cat conftest.err >&5
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); } &&
10706         { ac_try='test -z "$ac_c_werror_flag"
10707                         || test ! -s conftest.err'
10708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709  (eval $ac_try) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }; } &&
10713         { ac_try='test -s conftest$ac_exeext'
10714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715  (eval $ac_try) 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); }; }; then
10719  ac_cv_lib_dld_shl_load=yes
10720else
10721  echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724ac_cv_lib_dld_shl_load=no
10725fi
10726rm -f conftest.err conftest.$ac_objext \
10727      conftest$ac_exeext conftest.$ac_ext
10728LIBS=$ac_check_lib_save_LIBS
10729fi
10730echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10731echo "${ECHO_T}$ac