source: trunk/configure @ 1670

Last change on this file since 1670 was 1670, checked in by lou, 9 years ago

restoring Clp/trunk

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