source: branches/devel/configure @ 672

Last change on this file since 672 was 610, checked in by lou, 13 years ago

Externals to BuildTools?/trunk, Vol/trunk/Vol. Configure.ac to reuse libtool,
check for DyLP.

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