source: trunk/configure @ 1546

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

Correct typo in configure.ac, miblib3 -> miplib3.

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