source: branches/0.2a/configure @ 528

Last change on this file since 528 was 528, checked in by pbonami, 12 years ago

Test a 0.2a branch

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