source: trunk/configure @ 2448

Last change on this file since 2448 was 2396, checked in by stefan, 10 months ago

restoring Clp/trunk

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