source: stable/1.13/configure @ 2021

Last change on this file since 2021 was 1715, checked in by tkr, 9 years ago

restoring Clp/stable/1.13

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