source: stable/2.2/configure @ 1099

Last change on this file since 1099 was 1099, checked in by andreasw, 11 years ago

restoring stable/2.2

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