source: trunk/configure @ 1563

Last change on this file since 1563 was 1563, checked in by stefan, 8 years ago

merge chgset 1559 from stable/2.6; rerun autotools

  • Property svn:executable set to *
File size: 789.9 KB
<
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc trunk.
5#
6# Report bugs to <cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Cbc trunk'
435PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all Data/Sample"
481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482ac_subdirs_all="$ac_subdirs_all Data/miplib3"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subdirs_all="$ac_subdirs_all DyLP"
487ac_subdirs_all="$ac_subdirs_all Vol"
488ac_subdirs_all="$ac_subdirs_all Cgl"
489ac_subdirs_all="$ac_subdirs_all Cbc"
490ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
491ac_subst_files=''
492
493# Initialize some variables set by options.
494ac_init_help=
495ac_init_version=false
496# The variables have the same names as the options, with
497# dashes changed to underlines.
498cache_file=/dev/null
499exec_prefix=NONE
500no_create=
501no_recursion=
502prefix=NONE
503program_prefix=NONE
504program_suffix=NONE
505program_transform_name=s,x,x,
506silent=
507site=
508srcdir=
509verbose=
510x_includes=NONE
511x_libraries=NONE
512
513# Installation directory options.
514# These are left unexpanded so users can "make install exec_prefix=/foo"
515# and all the variables that are supposed to be based on exec_prefix
516# by default will actually change.
517# Use braces instead of parens because sh, perl, etc. also accept them.
518bindir='${exec_prefix}/bin'
519sbindir='${exec_prefix}/sbin'
520libexecdir='${exec_prefix}/libexec'
521datadir='${prefix}/share'
522sysconfdir='${prefix}/etc'
523sharedstatedir='${prefix}/com'
524localstatedir='${prefix}/var'
525libdir='${exec_prefix}/lib'
526includedir='${prefix}/include'
527oldincludedir='/usr/include'
528infodir='${prefix}/info'
529mandir='${prefix}/man'
530
531ac_prev=
532for ac_option
533do
534  # If the previous option needs an argument, assign it.
535  if test -n "$ac_prev"; then
536    eval "$ac_prev=\$ac_option"
537    ac_prev=
538    continue
539  fi
540
541  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
542
543  # Accept the important Cygnus configure options, so we can diagnose typos.
544
545  case $ac_option in
546
547  -bindir | --bindir | --bindi | --bind | --bin | --bi)
548    ac_prev=bindir ;;
549  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
550    bindir=$ac_optarg ;;
551
552  -build | --build | --buil | --bui | --bu)
553    ac_prev=build_alias ;;
554  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
555    build_alias=$ac_optarg ;;
556
557  -cache-file | --cache-file | --cache-fil | --cache-fi \
558  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
559    ac_prev=cache_file ;;
560  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
561  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
562    cache_file=$ac_optarg ;;
563
564  --config-cache | -C)
565    cache_file=config.cache ;;
566
567  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
568    ac_prev=datadir ;;
569  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
570  | --da=*)
571    datadir=$ac_optarg ;;
572
573  -disable-* | --disable-*)
574    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575    # Reject names that are not valid shell variable names.
576    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578   { (exit 1); exit 1; }; }
579    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580    eval "enable_$ac_feature=no" ;;
581
582  -enable-* | --enable-*)
583    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584    # Reject names that are not valid shell variable names.
585    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587   { (exit 1); exit 1; }; }
588    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
589    case $ac_option in
590      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591      *) ac_optarg=yes ;;
592    esac
593    eval "enable_$ac_feature='$ac_optarg'" ;;
594
595  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
596  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
597  | --exec | --exe | --ex)
598    ac_prev=exec_prefix ;;
599  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
600  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
601  | --exec=* | --exe=* | --ex=*)
602    exec_prefix=$ac_optarg ;;
603
604  -gas | --gas | --ga | --g)
605    # Obsolete; use --with-gas.
606    with_gas=yes ;;
607
608  -help | --help | --hel | --he | -h)
609    ac_init_help=long ;;
610  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
611    ac_init_help=recursive ;;
612  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
613    ac_init_help=short ;;
614
615  -host | --host | --hos | --ho)
616    ac_prev=host_alias ;;
617  -host=* | --host=* | --hos=* | --ho=*)
618    host_alias=$ac_optarg ;;
619
620  -includedir | --includedir | --includedi | --included | --include \
621  | --includ | --inclu | --incl | --inc)
622    ac_prev=includedir ;;
623  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
624  | --includ=* | --inclu=* | --incl=* | --inc=*)
625    includedir=$ac_optarg ;;
626
627  -infodir | --infodir | --infodi | --infod | --info | --inf)
628    ac_prev=infodir ;;
629  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
630    infodir=$ac_optarg ;;
631
632  -libdir | --libdir | --libdi | --libd)
633    ac_prev=libdir ;;
634  -libdir=* | --libdir=* | --libdi=* | --libd=*)
635    libdir=$ac_optarg ;;
636
637  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
638  | --libexe | --libex | --libe)
639    ac_prev=libexecdir ;;
640  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
641  | --libexe=* | --libex=* | --libe=*)
642    libexecdir=$ac_optarg ;;
643
644  -localstatedir | --localstatedir | --localstatedi | --localstated \
645  | --localstate | --localstat | --localsta | --localst \
646  | --locals | --local | --loca | --loc | --lo)
647    ac_prev=localstatedir ;;
648  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
649  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
650  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
651    localstatedir=$ac_optarg ;;
652
653  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654    ac_prev=mandir ;;
655  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
656    mandir=$ac_optarg ;;
657
658  -nfp | --nfp | --nf)
659    # Obsolete; use --without-fp.
660    with_fp=no ;;
661
662  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
663  | --no-cr | --no-c | -n)
664    no_create=yes ;;
665
666  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
667  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
668    no_recursion=yes ;;
669
670  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
671  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
672  | --oldin | --oldi | --old | --ol | --o)
673    ac_prev=oldincludedir ;;
674  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
675  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
676  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
677    oldincludedir=$ac_optarg ;;
678
679  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680    ac_prev=prefix ;;
681  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
682    prefix=$ac_optarg ;;
683
684  -program-prefix | --program-prefix | --program-prefi | --program-pref \
685  | --program-pre | --program-pr | --program-p)
686    ac_prev=program_prefix ;;
687  -program-prefix=* | --program-prefix=* | --program-prefi=* \
688  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
689    program_prefix=$ac_optarg ;;
690
691  -program-suffix | --program-suffix | --program-suffi | --program-suff \
692  | --program-suf | --program-su | --program-s)
693    ac_prev=program_suffix ;;
694  -program-suffix=* | --program-suffix=* | --program-suffi=* \
695  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
696    program_suffix=$ac_optarg ;;
697
698  -program-transform-name | --program-transform-name \
699  | --program-transform-nam | --program-transform-na \
700  | --program-transform-n | --program-transform- \
701  | --program-transform | --program-transfor \
702  | --program-transfo | --program-transf \
703  | --program-trans | --program-tran \
704  | --progr-tra | --program-tr | --program-t)
705    ac_prev=program_transform_name ;;
706  -program-transform-name=* | --program-transform-name=* \
707  | --program-transform-nam=* | --program-transform-na=* \
708  | --program-transform-n=* | --program-transform-=* \
709  | --program-transform=* | --program-transfor=* \
710  | --program-transfo=* | --program-transf=* \
711  | --program-trans=* | --program-tran=* \
712  | --progr-tra=* | --program-tr=* | --program-t=*)
713    program_transform_name=$ac_optarg ;;
714
715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
716  | -silent | --silent | --silen | --sile | --sil)
717    silent=yes ;;
718
719  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720    ac_prev=sbindir ;;
721  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722  | --sbi=* | --sb=*)
723    sbindir=$ac_optarg ;;
724
725  -sharedstatedir | --sharedstatedir | --sharedstatedi \
726  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
727  | --sharedst | --shareds | --shared | --share | --shar \
728  | --sha | --sh)
729    ac_prev=sharedstatedir ;;
730  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
731  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
732  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733  | --sha=* | --sh=*)
734    sharedstatedir=$ac_optarg ;;
735
736  -site | --site | --sit)
737    ac_prev=site ;;
738  -site=* | --site=* | --sit=*)
739    site=$ac_optarg ;;
740
741  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742    ac_prev=srcdir ;;
743  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
744    srcdir=$ac_optarg ;;
745
746  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
747  | --syscon | --sysco | --sysc | --sys | --sy)
748    ac_prev=sysconfdir ;;
749  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
750  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
751    sysconfdir=$ac_optarg ;;
752
753  -target | --target | --targe | --targ | --tar | --ta | --t)
754    ac_prev=target_alias ;;
755  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
756    target_alias=$ac_optarg ;;
757
758  -v | -verbose | --verbose | --verbos | --verbo | --verb)
759    verbose=yes ;;
760
761  -version | --version | --versio | --versi | --vers | -V)
762    ac_init_version=: ;;
763
764  -with-* | --with-*)
765    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package| sed 's/-/_/g'`
771    case $ac_option in
772      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
773      *) ac_optarg=yes ;;
774    esac
775    eval "with_$ac_package='$ac_optarg'" ;;
776
777  -without-* | --without-*)
778    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779    # Reject names that are not valid shell variable names.
780    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
781      { echo "$as_me: error: invalid package name: $ac_package" >&2
782   { (exit 1); exit 1; }; }
783    ac_package=`echo $ac_package | sed 's/-/_/g'`
784    eval "with_$ac_package=no" ;;
785
786  --x)
787    # Obsolete; use --with-x.
788    with_x=yes ;;
789
790  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791  | --x-incl | --x-inc | --x-in | --x-i)
792    ac_prev=x_includes ;;
793  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795    x_includes=$ac_optarg ;;
796
797  -x-libraries | --x-libraries | --x-librarie | --x-librari \
798  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799    ac_prev=x_libraries ;;
800  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802    x_libraries=$ac_optarg ;;
803
804  -*) { echo "$as_me: error: unrecognized option: $ac_option
805Try \`$0 --help' for more information." >&2
806   { (exit 1); exit 1; }; }
807    ;;
808
809  *=*)
810    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
811    # Reject names that are not valid shell variable names.
812    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
813      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814   { (exit 1); exit 1; }; }
815    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816    eval "$ac_envvar='$ac_optarg'"
817    export $ac_envvar ;;
818
819  *)
820    # FIXME: should be removed in autoconf 3.0.
821    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
825    ;;
826
827  esac
828done
829
830if test -n "$ac_prev"; then
831  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
832  { echo "$as_me: error: missing argument to $ac_option" >&2
833   { (exit 1); exit 1; }; }
834fi
835
836# Be sure to have absolute paths.
837for ac_var in exec_prefix prefix
838do
839  eval ac_val=$`echo $ac_var`
840  case $ac_val in
841    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
842    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843   { (exit 1); exit 1; }; };;
844  esac
845done
846
847# Be sure to have absolute paths.
848for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849              localstatedir libdir includedir oldincludedir infodir mandir
850do
851  eval ac_val=$`echo $ac_var`
852  case $ac_val in
853    [\\/$]* | ?:[\\/]* ) ;;
854    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855   { (exit 1); exit 1; }; };;
856  esac
857done
858
859# There might be people who depend on the old broken behavior: `$host'
860# used to hold the argument of --host etc.
861# FIXME: To remove some day.
862build=$build_alias
863host=$host_alias
864target=$target_alias
865
866# FIXME: To remove some day.
867if test "x$host_alias" != x; then
868  if test "x$build_alias" = x; then
869    cross_compiling=maybe
870    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871    If a cross compiler is detected then cross compile mode will be used." >&2
872  elif test "x$build_alias" != "x$host_alias"; then
873    cross_compiling=yes
874  fi
875fi
876
877ac_tool_prefix=
878test -n "$host_alias" && ac_tool_prefix=$host_alias-
879
880test "$silent" = yes && exec 6>/dev/null
881
882
883# Find the source files, if location was not specified.
884if test -z "$srcdir"; then
885  ac_srcdir_defaulted=yes
886  # Try the directory containing this script, then its parent.
887  ac_confdir=`(dirname "$0") 2>/dev/null ||
888$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889         X"$0" : 'X\(//\)[^/]' \| \
890         X"$0" : 'X\(//\)$' \| \
891         X"$0" : 'X\(/\)' \| \
892         .     : '\(.\)' 2>/dev/null ||
893echo X"$0" |
894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896          /^X\(\/\/\)$/{ s//\1/; q; }
897          /^X\(\/\).*/{ s//\1/; q; }
898          s/.*/./; q'`
899  srcdir=$ac_confdir
900  if test ! -r $srcdir/$ac_unique_file; then
901    srcdir=..
902  fi
903else
904  ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907  if test "$ac_srcdir_defaulted" = yes; then
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909   { (exit 1); exit 1; }; }
910  else
911    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912   { (exit 1); exit 1; }; }
913  fi
914fi
915(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
916  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917   { (exit 1); exit 1; }; }
918srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919ac_env_build_alias_set=${build_alias+set}
920ac_env_build_alias_value=$build_alias
921ac_cv_env_build_alias_set=${build_alias+set}
922ac_cv_env_build_alias_value=$build_alias
923ac_env_host_alias_set=${host_alias+set}
924ac_env_host_alias_value=$host_alias
925ac_cv_env_host_alias_set=${host_alias+set}
926ac_cv_env_host_alias_value=$host_alias
927ac_env_target_alias_set=${target_alias+set}
928ac_env_target_alias_value=$target_alias
929ac_cv_env_target_alias_set=${target_alias+set}
930ac_cv_env_target_alias_value=$target_alias
931ac_env_CDEFS_set=${CDEFS+set}
932ac_env_CDEFS_value=$CDEFS
933ac_cv_env_CDEFS_set=${CDEFS+set}
934ac_cv_env_CDEFS_value=$CDEFS
935ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
936ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
937ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
940ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
941ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
944ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
945ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_env_CC_set=${CC+set}
948ac_env_CC_value=$CC
949ac_cv_env_CC_set=${CC+set}
950ac_cv_env_CC_value=$CC
951ac_env_CFLAGS_set=${CFLAGS+set}
952ac_env_CFLAGS_value=$CFLAGS
953ac_cv_env_CFLAGS_set=${CFLAGS+set}
954ac_cv_env_CFLAGS_value=$CFLAGS
955ac_env_LDFLAGS_set=${LDFLAGS+set}
956ac_env_LDFLAGS_value=$LDFLAGS
957ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
958ac_cv_env_LDFLAGS_value=$LDFLAGS
959ac_env_CPPFLAGS_set=${CPPFLAGS+set}
960ac_env_CPPFLAGS_value=$CPPFLAGS
961ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_cv_env_CPPFLAGS_value=$CPPFLAGS
963ac_env_MPICC_set=${MPICC+set}
964ac_env_MPICC_value=$MPICC
965ac_cv_env_MPICC_set=${MPICC+set}
966ac_cv_env_MPICC_value=$MPICC
967ac_env_CXXDEFS_set=${CXXDEFS+set}
968ac_env_CXXDEFS_value=$CXXDEFS
969ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
970ac_cv_env_CXXDEFS_value=$CXXDEFS
971ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
972ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
973ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
976ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
977ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
980ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
981ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_env_CXX_set=${CXX+set}
984ac_env_CXX_value=$CXX
985ac_cv_env_CXX_set=${CXX+set}
986ac_cv_env_CXX_value=$CXX
987ac_env_CXXFLAGS_set=${CXXFLAGS+set}
988ac_env_CXXFLAGS_value=$CXXFLAGS
989ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_cv_env_CXXFLAGS_value=$CXXFLAGS
991ac_env_MPICXX_set=${MPICXX+set}
992ac_env_MPICXX_value=$MPICXX
993ac_cv_env_MPICXX_set=${MPICXX+set}
994ac_cv_env_MPICXX_value=$MPICXX
995ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
996ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
997ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1000ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1001ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1004ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1005ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_env_F77_set=${F77+set}
1008ac_env_F77_value=$F77
1009ac_cv_env_F77_set=${F77+set}
1010ac_cv_env_F77_value=$F77
1011ac_env_FFLAGS_set=${FFLAGS+set}
1012ac_env_FFLAGS_value=$FFLAGS
1013ac_cv_env_FFLAGS_set=${FFLAGS+set}
1014ac_cv_env_FFLAGS_value=$FFLAGS
1015ac_env_MPIF77_set=${MPIF77+set}
1016ac_env_MPIF77_value=$MPIF77
1017ac_cv_env_MPIF77_set=${MPIF77+set}
1018ac_cv_env_MPIF77_value=$MPIF77
1019ac_env_CPP_set=${CPP+set}
1020ac_env_CPP_value=$CPP
1021ac_cv_env_CPP_set=${CPP+set}
1022ac_cv_env_CPP_value=$CPP
1023ac_env_CXXCPP_set=${CXXCPP+set}
1024ac_env_CXXCPP_value=$CXXCPP
1025ac_cv_env_CXXCPP_set=${CXXCPP+set}
1026ac_cv_env_CXXCPP_value=$CXXCPP
1027ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1028ac_env_PKG_CONFIG_value=$PKG_CONFIG
1029ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1030ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1031ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1034ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1035
1036#
1037# Report the --help message.
1038#
1039if test "$ac_init_help" = "long"; then
1040  # Omit some internal or obsolete options to make the list less imposing.
1041  # This message is too long to be a string in the A/UX 3.1 sh.
1042  cat <<_ACEOF
1043\`configure' configures Cbc trunk to adapt to many kinds of systems.
1044
1045Usage: $0 [OPTION]... [VAR=VALUE]...
1046
1047To assign environment variables (e.g., CC, CFLAGS...), specify them as
1048VAR=VALUE.  See below for descriptions of some of the useful variables.
1049
1050Defaults for the options are specified in brackets.
1051
1052Configuration:
1053  -h, --help              display this help and exit
1054      --help=short        display options specific to this package
1055      --help=recursive    display the short help of all the included packages
1056  -V, --version           display version information and exit
1057  -q, --quiet, --silent   do not print \`checking...' messages
1058      --cache-file=FILE   cache test results in FILE [disabled]
1059  -C, --config-cache      alias for \`--cache-file=config.cache'
1060  -n, --no-create         do not create output files
1061      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1062
1063_ACEOF
1064
1065  cat <<_ACEOF
1066Installation directories:
1067  --prefix=PREFIX         install architecture-independent files in PREFIX
1068                          [$ac_default_prefix]
1069  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1070                          [PREFIX]
1071
1072By default, \`make install' will install all the files in
1073\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1074an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1075for instance \`--prefix=\$HOME'.
1076
1077For better control, use the options below.
1078
1079Fine tuning of the installation directories:
1080  --bindir=DIR           user executables [EPREFIX/bin]
1081  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1082  --libexecdir=DIR       program executables [EPREFIX/libexec]
1083  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1084  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1085  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1086  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1087  --libdir=DIR           object code libraries [EPREFIX/lib]
1088  --includedir=DIR       C header files [PREFIX/include]
1089  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1090  --infodir=DIR          info documentation [PREFIX/info]
1091  --mandir=DIR           man documentation [PREFIX/man]
1092_ACEOF
1093
1094  cat <<\_ACEOF
1095
1096Program names:
1097  --program-prefix=PREFIX            prepend PREFIX to installed program names
1098  --program-suffix=SUFFIX            append SUFFIX to installed program names
1099  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1100
1101System types:
1102  --build=BUILD     configure for building on BUILD [guessed]
1103  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1104_ACEOF
1105fi
1106
1107if test -n "$ac_init_help"; then
1108  case $ac_init_help in
1109     short | recursive ) echo "Configuration of Cbc trunk:";;
1110   esac
1111  cat <<\_ACEOF
1112
1113Optional Features:
1114  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1115  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1116  --enable-debug          compile all projects with debug options tests
1117  --enable-doscompile     Under Cygwin, compile so that executables run under
1118                          DOS. Set to mingw to use gcc/g++/ld with
1119                          -mno-cygwin. Set to msvc to use cl/link (or
1120                          icl/link). Default when mentioned: mingw. Default
1121                          when not mentioned: disabled.
1122  --enable-static[=PKGS]
1123                          build static libraries [default=no]
1124  --disable-dependency-tracking  speeds up one-time build
1125  --enable-dependency-tracking   do not reject slow dependency extractors
1126  --enable-maintainer-mode  enable make rules and dependencies not useful
1127                          (and sometimes confusing) to the casual installer
1128  --enable-shared[=PKGS]
1129                          build shared libraries [default=yes]
1130  --enable-fast-install[=PKGS]
1131                          optimize for fast installation [default=yes]
1132  --disable-libtool-lock  avoid locking (might break parallel builds)
1133  --enable-pkg-config     use pkg-config if available (default is yes)
1134
1135Optional Packages:
1136  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1137  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1138  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1139  --with-pic              try to use only PIC/non-PIC objects [default=use
1140                          both]
1141  --with-tags[=TAGS]
1142                          include additional configurations [automatic]
1143  --with-coin-instdir     prefix of installation directory for precompiled
1144                          COIN packages
1145  --with-asl-lib linker flags for using project ASL
1146  --with-asl-incdir directory with header files for using project ASL
1147  --with-asl-datadir directory with data files for using project ASL
1148  --with-blas-lib linker flags for using project Blas
1149  --with-blas-incdir directory with header files for using project Blas
1150  --with-blas-datadir directory with data files for using project Blas
1151  --with-blas             specify BLAS library (or BUILD for compilation)
1152  --with-lapack-lib linker flags for using project Lapack
1153  --with-lapack-incdir directory with header files for using project Lapack
1154  --with-lapack-datadir directory with data files for using project Lapack
1155  --with-lapack           specify LAPACK library (or BUILD for compilation)
1156  --with-glpk-lib linker flags for using project Glpk
1157  --with-glpk-incdir directory with header files for using project Glpk
1158  --with-glpk-datadir directory with data files for using project Glpk
1159  --with-sample-lib linker flags for using project Sample
1160  --with-sample-incdir directory with header files for using project Sample
1161  --with-sample-datadir directory with data files for using project Sample
1162  --with-netlib-lib linker flags for using project Netlib
1163  --with-netlib-incdir directory with header files for using project Netlib
1164  --with-netlib-datadir directory with data files for using project Netlib
1165  --with-miplib3-lib linker flags for using project miplib3
1166  --with-miplib3-incdir directory with header files for using project miplib3
1167  --with-miplib3-datadir directory with data files for using project miplib3
1168  --with-coinutils-lib linker flags for using project CoinUtils
1169  --with-coinutils-incdir directory with header files for using project
1170                          CoinUtils
1171  --with-coinutils-datadir
1172                          directory with data files for using project
1173                          CoinUtils
1174  --with-osi-lib linker flags for using project Osi
1175  --with-osi-incdir directory with header files for using project Osi
1176  --with-osi-datadir directory with data files for using project Osi
1177  --with-clp-lib linker flags for using project Clp
1178  --with-clp-incdir directory with header files for using project Clp
1179  --with-clp-datadir directory with data files for using project Clp
1180  --with-dylp-lib linker flags for using project DyLP
1181  --with-dylp-incdir directory with header files for using project DyLP
1182  --with-dylp-datadir directory with data files for using project DyLP
1183  --with-vol-lib linker flags for using project Vol
1184  --with-vol-incdir directory with header files for using project Vol
1185  --with-vol-datadir directory with data files for using project Vol
1186  --with-cgl-lib linker flags for using project Cgl
1187  --with-cgl-incdir directory with header files for using project Cgl
1188  --with-cgl-datadir directory with data files for using project Cgl
1189  --with-cbc-lib linker flags for using project Cbc
1190  --with-cbc-incdir directory with header files for using project Cbc
1191  --with-cbc-datadir directory with data files for using project Cbc
1192  --with-dot              use dot (from graphviz) when creating documentation
1193                          with doxygen if available; --without-dot to disable
1194
1195Some influential environment variables:
1196  CDEFS       Additional -D flags to be used when compiling C code.
1197  ADD_CFLAGS  Additional C compiler options
1198  DBG_CFLAGS  Debug C compiler options
1199  OPT_CFLAGS  Optimize C compiler options
1200  CC          C compiler command
1201  CFLAGS      C compiler flags
1202  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1203              nonstandard directory <lib dir>
1204  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1205              headers in a nonstandard directory <include dir>
1206  MPICC       C MPI Compiler
1207  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1208  ADD_CXXFLAGS
1209              Additional C++ compiler options
1210  DBG_CXXFLAGS
1211              Debug C++ compiler options
1212  OPT_CXXFLAGS
1213              Optimize C++ compiler options
1214  CXX         C++ compiler command
1215  CXXFLAGS    C++ compiler flags
1216  MPICXX      C++ MPI Compiler
1217  ADD_FFLAGS  Additional Fortran compiler options
1218  DBG_FFLAGS  Debug Fortran compiler options
1219  OPT_FFLAGS  Optimize Fortran compiler options
1220  F77         Fortran 77 compiler command
1221  FFLAGS      Fortran 77 compiler flags
1222  MPIF77      Fortran MPI Compiler
1223  CPP         C preprocessor
1224  CXXCPP      C++ preprocessor
1225  PKG_CONFIG  path to pkg-config utility
1226  COIN_SKIP_PROJECTS
1227              Set to the subdirectories of projects that should be skipped in
1228              the configuration
1229
1230Use these variables to override the choices made by `configure' or to help
1231it to find libraries and programs with nonstandard names/locations.
1232
1233Report bugs to <cbc@lists.coin-or.org>.
1234_ACEOF
1235fi
1236
1237if test "$ac_init_help" = "recursive"; then
1238  # If there are subdirs, report their specific --help.
1239  ac_popdir=`pwd`
1240  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1241    test -d $ac_dir || continue
1242    ac_builddir=.
1243
1244if test "$ac_dir" != .; then
1245  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1246  # A "../" for each directory in $ac_dir_suffix.
1247  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1248else
1249  ac_dir_suffix= ac_top_builddir=
1250fi
1251
1252case $srcdir in
1253  .)  # No --srcdir option.  We are building in place.
1254    ac_srcdir=.
1255    if test -z "$ac_top_builddir"; then
1256       ac_top_srcdir=.
1257    else
1258       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1259    fi ;;
1260  [\\/]* | ?:[\\/]* )  # Absolute path.
1261    ac_srcdir=$srcdir$ac_dir_suffix;
1262    ac_top_srcdir=$srcdir ;;
1263  *) # Relative path.
1264    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1265    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1266esac
1267
1268# Do not use `cd foo && pwd` to compute absolute paths, because
1269# the directories may not exist.
1270case `pwd` in
1271.) ac_abs_builddir="$ac_dir";;
1272*)
1273  case "$ac_dir" in
1274  .) ac_abs_builddir=`pwd`;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1276  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_builddir=${ac_top_builddir}.;;
1281*)
1282  case ${ac_top_builddir}. in
1283  .) ac_abs_top_builddir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1285  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1286  esac;;
1287esac
1288case $ac_abs_builddir in
1289.) ac_abs_srcdir=$ac_srcdir;;
1290*)
1291  case $ac_srcdir in
1292  .) ac_abs_srcdir=$ac_abs_builddir;;
1293  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1294  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1295  esac;;
1296esac
1297case $ac_abs_builddir in
1298.) ac_abs_top_srcdir=$ac_top_srcdir;;
1299*)
1300  case $ac_top_srcdir in
1301  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1302  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1303  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1304  esac;;
1305esac
1306
1307    cd $ac_dir
1308    # Check for guested configure; otherwise get Cygnus style configure.
1309    if test -f $ac_srcdir/configure.gnu; then
1310      echo
1311      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1312    elif test -f $ac_srcdir/configure; then
1313      echo
1314      $SHELL $ac_srcdir/configure  --help=recursive
1315    elif test -f $ac_srcdir/configure.ac ||
1316           test -f $ac_srcdir/configure.in; then
1317      echo
1318      $ac_configure --help
1319    else
1320      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1321    fi
1322    cd $ac_popdir
1323  done
1324fi
1325
1326test -n "$ac_init_help" && exit 0
1327if $ac_init_version; then
1328  cat <<\_ACEOF
1329Cbc configure trunk
1330generated by GNU Autoconf 2.59
1331
1332Copyright (C) 2003 Free Software Foundation, Inc.
1333This configure script is free software; the Free Software Foundation
1334gives unlimited permission to copy, distribute and modify it.
1335
1336
1337Copyright 2006 International Business Machines and others.
1338All Rights Reserved.
1339This file is part of the open source package Coin which is distributed
1340under the Common Public License.
1341_ACEOF
1342  exit 0
1343fi
1344exec 5>config.log
1345cat >&5 <<_ACEOF
1346This file contains any messages produced by compilers while
1347running configure, to aid debugging if configure makes a mistake.
1348
1349It was created by Cbc $as_me trunk, which was
1350generated by GNU Autoconf 2.59.  Invocation command line was
1351
1352  $ $0 $@
1353
1354_ACEOF
1355{
1356cat <<_ASUNAME
1357## --------- ##
1358## Platform. ##
1359## --------- ##
1360
1361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1362uname -m = `(uname -m) 2>/dev/null || echo unknown`
1363uname -r = `(uname -r) 2>/dev/null || echo unknown`
1364uname -s = `(uname -s) 2>/dev/null || echo unknown`
1365uname -v = `(uname -v) 2>/dev/null || echo unknown`
1366
1367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1368/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1369
1370/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1371/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1373hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1374/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1375/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1376/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1377
1378_ASUNAME
1379
1380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381for as_dir in $PATH
1382do
1383  IFS=$as_save_IFS
1384  test -z "$as_dir" && as_dir=.
1385  echo "PATH: $as_dir"
1386done
1387
1388} >&5
1389
1390cat >&5 <<_ACEOF
1391
1392
1393## ----------- ##
1394## Core tests. ##
1395## ----------- ##
1396
1397_ACEOF
1398
1399
1400# Keep a trace of the command line.
1401# Strip out --no-create and --no-recursion so they do not pile up.
1402# Strip out --silent because we don't want to record it for future runs.
1403# Also quote any args containing shell meta-characters.
1404# Make two passes to allow for proper duplicate-argument suppression.
1405ac_configure_args=
1406ac_configure_args0=
1407ac_configure_args1=
1408ac_sep=
1409ac_must_keep_next=false
1410for ac_pass in 1 2
1411do
1412  for ac_arg
1413  do
1414    case $ac_arg in
1415    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1416    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1417    | -silent | --silent | --silen | --sile | --sil)
1418      continue ;;
1419    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1421    esac
1422    case $ac_pass in
1423    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1424    2)
1425      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1426      if test $ac_must_keep_next = true; then
1427        ac_must_keep_next=false # Got value, back to normal.
1428      else
1429        case $ac_arg in
1430          *=* | --config-cache | -C | -disable-* | --disable-* \
1431          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1432          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1433          | -with-* | --with-* | -without-* | --without-* | --x)
1434            case "$ac_configure_args0 " in
1435              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1436            esac
1437            ;;
1438          -* ) ac_must_keep_next=true ;;
1439        esac
1440      fi
1441      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1442      # Get rid of the leading space.
1443      ac_sep=" "
1444      ;;
1445    esac
1446  done
1447done
1448$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1449$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1450
1451# When interrupted or exit'd, cleanup temporary files, and complete
1452# config.log.  We remove comments because anyway the quotes in there
1453# would cause problems or look ugly.
1454# WARNING: Be sure not to use single quotes in there, as some shells,
1455# such as our DU 5.0 friend, will then `close' the trap.
1456trap 'exit_status=$?
1457  # Save into config.log some information that might help in debugging.
1458  {
1459    echo
1460
1461    cat <<\_ASBOX
1462## ---------------- ##
1463## Cache variables. ##
1464## ---------------- ##
1465_ASBOX
1466    echo
1467    # The following way of writing the cache mishandles newlines in values,
1468{
1469  (set) 2>&1 |
1470    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1471    *ac_space=\ *)
1472      sed -n \
1473        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1474          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1475      ;;
1476    *)
1477      sed -n \
1478        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1479      ;;
1480    esac;
1481}
1482    echo
1483
1484    cat <<\_ASBOX
1485## ----------------- ##
1486## Output variables. ##
1487## ----------------- ##
1488_ASBOX
1489    echo
1490    for ac_var in $ac_subst_vars
1491    do
1492      eval ac_val=$`echo $ac_var`
1493      echo "$ac_var='"'"'$ac_val'"'"'"
1494    done | sort
1495    echo
1496
1497    if test -n "$ac_subst_files"; then
1498      cat <<\_ASBOX
1499## ------------- ##
1500## Output files. ##
1501## ------------- ##
1502_ASBOX
1503      echo
1504      for ac_var in $ac_subst_files
1505      do
1506        eval ac_val=$`echo $ac_var`
1507        echo "$ac_var='"'"'$ac_val'"'"'"
1508      done | sort
1509      echo
1510    fi
1511
1512    if test -s confdefs.h; then
1513      cat <<\_ASBOX
1514## ----------- ##
1515## confdefs.h. ##
1516## ----------- ##
1517_ASBOX
1518      echo
1519      sed "/^$/d" confdefs.h | sort
1520      echo
1521    fi
1522    test "$ac_signal" != 0 &&
1523      echo "$as_me: caught signal $ac_signal"
1524    echo "$as_me: exit $exit_status"
1525  } >&5
1526  rm -f core *.core &&
1527  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1528    exit $exit_status
1529     ' 0
1530for ac_signal in 1 2 13 15; do
1531  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1532done
1533ac_signal=0
1534
1535# confdefs.h avoids OS command line length limits that DEFS can exceed.
1536rm -rf conftest* confdefs.h
1537# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1538echo >confdefs.h
1539
1540# Predefined preprocessor variables.
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_NAME "$PACKAGE_NAME"
1544_ACEOF
1545
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_VERSION "$PACKAGE_VERSION"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_STRING "$PACKAGE_STRING"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1564_ACEOF
1565
1566
1567# Let the site file select an alternate cache file if it wants to.
1568# Prefer explicitly selected file to automatically selected ones.
1569if test -z "$CONFIG_SITE"; then
1570  if test "x$prefix" != xNONE; then
1571    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1572  else
1573    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1574  fi
1575fi
1576for ac_site_file in $CONFIG_SITE; do
1577  if test -r "$ac_site_file"; then
1578    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1579echo "$as_me: loading site script $ac_site_file" >&6;}
1580    sed 's/^/| /' "$ac_site_file" >&5
1581    . "$ac_site_file"
1582  fi
1583done
1584
1585if test -r "$cache_file"; then
1586  # Some versions of bash will fail to source /dev/null (special
1587  # files actually), so we avoid doing that.
1588  if test -f "$cache_file"; then
1589    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1590echo "$as_me: loading cache $cache_file" >&6;}
1591    case $cache_file in
1592      [\\/]* | ?:[\\/]* ) . $cache_file;;
1593      *)                      . ./$cache_file;;
1594    esac
1595  fi
1596else
1597  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1598echo "$as_me: creating cache $cache_file" >&6;}
1599  >$cache_file
1600fi
1601
1602# Check that the precious variables saved in the cache have kept the same
1603# value.
1604ac_cache_corrupted=false
1605for ac_var in `(set) 2>&1 |
1606               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1607  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608  eval ac_new_set=\$ac_env_${ac_var}_set
1609  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1610  eval ac_new_val="\$ac_env_${ac_var}_value"
1611  case $ac_old_set,$ac_new_set in
1612    set,)
1613      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615      ac_cache_corrupted=: ;;
1616    ,set)
1617      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619      ac_cache_corrupted=: ;;
1620    ,);;
1621    *)
1622      if test "x$ac_old_val" != "x$ac_new_val"; then
1623        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1624echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1625        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1626echo "$as_me:   former value:  $ac_old_val" >&2;}
1627        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1628echo "$as_me:   current value: $ac_new_val" >&2;}
1629        ac_cache_corrupted=:
1630      fi;;
1631  esac
1632  # Pass precious variables to config.status.
1633  if test "$ac_new_set" = set; then
1634    case $ac_new_val in
1635    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1636      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1637    *) ac_arg=$ac_var=$ac_new_val ;;
1638    esac
1639    case " $ac_configure_args " in
1640      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1641      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1642    esac
1643  fi
1644done
1645if $ac_cache_corrupted; then
1646  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1647echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1648  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1649echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1650   { (exit 1); exit 1; }; }
1651fi
1652
1653ac_ext=c
1654ac_cpp='$CPP $CPPFLAGS'
1655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1657ac_compiler_gnu=$ac_cv_c_compiler_gnu
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690# List one file in the package so that the configure script can test
1691# whether the package is actually there
1692
1693
1694# Where should everything be installed by default?  Here, we want it
1695# to be installed directly in 'bin', 'lib', 'include' subdirectories
1696# of the directory where configure is run.  The default would be
1697# /usr/local.
1698
1699
1700#############################################################################
1701#  Do the tests necessary to configure compilers and initialise autotools   #
1702#############################################################################
1703
1704ac_aux_dir=
1705for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1706  if test -f $ac_dir/install-sh; then
1707    ac_aux_dir=$ac_dir
1708    ac_install_sh="$ac_aux_dir/install-sh -c"
1709    break
1710  elif test -f $ac_dir/install.sh; then
1711    ac_aux_dir=$ac_dir
1712    ac_install_sh="$ac_aux_dir/install.sh -c"
1713    break
1714  elif test -f $ac_dir/shtool; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/shtool install -c"
1717    break
1718  fi
1719done
1720if test -z "$ac_aux_dir"; then
1721  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1722echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1723   { (exit 1); exit 1; }; }
1724fi
1725ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1726ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1727ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1728
1729# Make sure we can run config.sub.
1730$ac_config_sub sun4 >/dev/null 2>&1 ||
1731  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1732echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1733   { (exit 1); exit 1; }; }
1734
1735echo "$as_me:$LINENO: checking build system type" >&5
1736echo $ECHO_N "checking build system type... $ECHO_C" >&6
1737if test "${ac_cv_build+set}" = set; then
1738  echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740  ac_cv_build_alias=$build_alias
1741test -z "$ac_cv_build_alias" &&
1742  ac_cv_build_alias=`$ac_config_guess`
1743test -z "$ac_cv_build_alias" &&
1744  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1745echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1746   { (exit 1); exit 1; }; }
1747ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1748  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1749echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1750   { (exit 1); exit 1; }; }
1751
1752fi
1753echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1754echo "${ECHO_T}$ac_cv_build" >&6
1755build=$ac_cv_build
1756build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1757build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1758build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1759
1760
1761
1762# Check if user wants to produce debugging code
1763
1764echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1765echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1766
1767# Check whether --enable-debug or --disable-debug was given.
1768if test "${enable_debug+set}" = set; then
1769  enableval="$enable_debug"
1770  case "${enableval}" in
1771   yes) coin_debug_compile=true
1772        if test "${enable_shared+set}" = set; then :; else
1773          enable_shared=no
1774        fi
1775        ;;
1776   no)  coin_debug_compile=false
1777        ;;
1778   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1779echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1780   { (exit 1); exit 1; }; }
1781        ;;
1782esac
1783else
1784  coin_debug_compile=false
1785fi;
1786
1787 # m4_ifvaln([],
1788
1789if test $coin_debug_compile = true; then
1790  echo "$as_me:$LINENO: result: yes" >&5
1791echo "${ECHO_T}yes" >&6
1792else
1793  echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797 # m4_ifvaln([],
1798
1799
1800
1801# Get the name of the C compiler and appropriate compiler options
1802case $build in
1803  *-mingw*)
1804    if test "${LD+set}" = set; then :; else
1805      LD=link
1806    fi
1807    ;;
1808 esac
1809 case $enable_doscompile in
1810   msvc)
1811     if test "x${LD+set}" = xset; then :; else
1812       LD=link
1813     fi
1814     ;;
1815 esac
1816
1817
1818 # Check whether --enable-doscompile or --disable-doscompile was given.
1819if test "${enable_doscompile+set}" = set; then
1820  enableval="$enable_doscompile"
1821  if test "$enable_doscompile" != no; then
1822     case $build in
1823       *-cygwin* | *-mingw*) ;;
1824       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1825echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1826   { (exit 1); exit 1; }; } ;;
1827     esac
1828   fi
1829else
1830  enable_doscompile=no
1831fi;
1832 case "$enable_doscompile" in
1833   mingw)
1834     case $build in
1835       *-mingw*) enable_doscompile=no ;;
1836     esac
1837     ;;
1838   msvc|no) ;;
1839   yes) enable_doscompile=mingw ;;
1840   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1841                    Try configure --help=recursive." >&5
1842echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1843                    Try configure --help=recursive." >&2;}
1844   { (exit 1); exit 1; }; }
1845      ;;
1846  esac
1847  if test "$enable_doscompile" != no ; then
1848    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1849echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1850  fi
1851
1852
1853
1854
1855ac_ext=c
1856ac_cpp='$CPP $CPPFLAGS'
1857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1859ac_compiler_gnu=$ac_cv_c_compiler_gnu
1860
1861
1862# For consistency, we set the C compiler to the same value of the C++
1863# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1864if test x"$CXX" != x; then
1865  case "$CXX" in
1866    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1867      if test x"$CC" = x; then
1868        CC="$CXX"
1869        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1870echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1871      fi
1872      ;;
1873  esac
1874fi
1875
1876# add automake conditional so we can recognize cl compiler in makefile
1877coin_cc_is_cl=false
1878if test x"$CXX" != x; then
1879  case "$CXX" in
1880    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1881      coin_cc_is_cl=true
1882      ;;
1883  esac
1884fi
1885
1886
1887if test $coin_cc_is_cl = true; then
1888  COIN_CC_IS_CL_TRUE=
1889  COIN_CC_IS_CL_FALSE='#'
1890else
1891  COIN_CC_IS_CL_TRUE='#'
1892  COIN_CC_IS_CL_FALSE=
1893fi
1894
1895
1896
1897
1898
1899
1900
1901coin_has_cc=yes
1902
1903save_cflags="$CFLAGS"
1904
1905# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1906# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1907# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1908# compiler. In this case, put cc after gcc.
1909
1910case $build in
1911  *-cygwin* | *-mingw*)
1912             if test "$enable_doscompile" = msvc ; then
1913               comps="icl cl"
1914             else
1915               comps="gcc cl"
1916             fi ;;
1917  *-*-solaris*)
1918             # Extract the first word of "cc", so it can be a program name with args.
1919set dummy cc; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1923  echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925  if test -n "$sol_cc_compiler"; then
1926  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1927else
1928  ac_prog_rejected=no
1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930for as_dir in $PATH
1931do
1932  IFS=$as_save_IFS
1933  test -z "$as_dir" && as_dir=.
1934  for ac_exec_ext in '' $ac_executable_extensions; do
1935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937       ac_prog_rejected=yes
1938       continue
1939     fi
1940    ac_cv_prog_sol_cc_compiler="cc"
1941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942    break 2
1943  fi
1944done
1945done
1946
1947if test $ac_prog_rejected = yes; then
1948  # We found a bogon in the path, so make sure we never use it.
1949  set dummy $ac_cv_prog_sol_cc_compiler
1950  shift
1951  if test $# != 0; then
1952    # We chose a different compiler from the bogus one.
1953    # However, it has the same basename, so the bogon will be chosen
1954    # first if we set sol_cc_compiler to just the basename; use the full file name.
1955    shift
1956    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1957  fi
1958fi
1959fi
1960fi
1961sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1962if test -n "$sol_cc_compiler"; then
1963  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1964echo "${ECHO_T}$sol_cc_compiler" >&6
1965else
1966  echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970             if test "$sol_cc_compiler" = "cc" ; then
1971               comps="cc xlc gcc pgcc icc"
1972             else
1973               comps="xlc gcc pgcc icc cc"
1974             fi
1975             ;;
1976  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1977  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1978esac
1979
1980# We delete the cached value, since the test might not have been
1981# performed with our choice of compilers earlier
1982$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1983# AC_MSG_NOTICE([C compiler candidates: $comps])
1984ac_ext=c
1985ac_cpp='$CPP $CPPFLAGS'
1986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989if test -n "$ac_tool_prefix"; then
1990  for ac_prog in $comps
1991  do
1992    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1993set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1994echo "$as_me:$LINENO: checking for $ac_word" >&5
1995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996if test "${ac_cv_prog_CC+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  if test -n "$CC"; then
2000  ac_cv_prog_CC="$CC" # Let the user override the test.
2001else
2002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003for as_dir in $PATH
2004do
2005  IFS=$as_save_IFS
2006  test -z "$as_dir" && as_dir=.
2007  for ac_exec_ext in '' $ac_executable_extensions; do
2008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011    break 2
2012  fi
2013done
2014done
2015
2016fi
2017fi
2018CC=$ac_cv_prog_CC
2019if test -n "$CC"; then
2020  echo "$as_me:$LINENO: result: $CC" >&5
2021echo "${ECHO_T}$CC" >&6
2022else
2023  echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6
2025fi
2026
2027    test -n "$CC" && break
2028  done
2029fi
2030if test -z "$CC"; then
2031  ac_ct_CC=$CC
2032  for ac_prog in $comps
2033do
2034  # Extract the first word of "$ac_prog", so it can be a program name with args.
2035set dummy $ac_prog; ac_word=$2
2036echo "$as_me:$LINENO: checking for $ac_word" >&5
2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039  echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041  if test -n "$ac_ct_CC"; then
2042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  test -z "$as_dir" && as_dir=.
2049  for ac_exec_ext in '' $ac_executable_extensions; do
2050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051    ac_cv_prog_ac_ct_CC="$ac_prog"
2052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053    break 2
2054  fi
2055done
2056done
2057
2058fi
2059fi
2060ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061if test -n "$ac_ct_CC"; then
2062  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063echo "${ECHO_T}$ac_ct_CC" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069  test -n "$ac_ct_CC" && break
2070done
2071
2072  CC=$ac_ct_CC
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080   { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO:" \
2084     "checking for C compiler version" >&5
2085ac_compiler=`set X $ac_compile; echo $2`
2086{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2087  (eval $ac_compiler --version </dev/null >&5) 2>&5
2088  ac_status=$?
2089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090  (exit $ac_status); }
2091{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2092  (eval $ac_compiler -v </dev/null >&5) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }
2096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2097  (eval $ac_compiler -V </dev/null >&5) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }
2101
2102cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117ac_clean_files_save=$ac_clean_files
2118ac_clean_files="$ac_clean_files a.out a.exe b.out"
2119# Try to create an executable without -o first, disregard a.out.
2120# It will help us diagnose broken compilers, and finding out an intuition
2121# of exeext.
2122echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2123echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2124ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2126  (eval $ac_link_default) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  # Find the output, starting from the most likely.  This scheme is
2131# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2132# resort.
2133
2134# Be careful to initialize this variable, since it used to be cached.
2135# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2136ac_cv_exeext=
2137# b.out is created by i960 compilers.
2138for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2139do
2140  test -f "$ac_file" || continue
2141  case $ac_file in
2142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2143        ;;
2144    conftest.$ac_ext )
2145        # This is the source file.
2146        ;;
2147    [ab].out )
2148        # We found the default executable, but exeext='' is most
2149        # certainly right.
2150        break;;
2151    *.* )
2152        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2153        # FIXME: I believe we export ac_cv_exeext for Libtool,
2154        # but it would be cool to find out if it's true.  Does anybody
2155        # maintain Libtool? --akim.
2156        export ac_cv_exeext
2157        break;;
2158    * )
2159        break;;
2160  esac
2161done
2162else
2163  echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
2166{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2167See \`config.log' for more details." >&5
2168echo "$as_me: error: C compiler cannot create executables
2169See \`config.log' for more details." >&2;}
2170   { (exit 77); exit 77; }; }
2171fi
2172
2173ac_exeext=$ac_cv_exeext
2174echo "$as_me:$LINENO: result: $ac_file" >&5
2175echo "${ECHO_T}$ac_file" >&6
2176
2177# Check the compiler produces executables we can run.  If not, either
2178# the compiler is broken, or we cross compile.
2179echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2180echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2181# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2182# If not cross compiling, check that we can run a simple program.
2183if test "$cross_compiling" != yes; then
2184  if { ac_try='./$ac_file'
2185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186  (eval $ac_try) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }; }; then
2190    cross_compiling=no
2191  else
2192    if test "$cross_compiling" = maybe; then
2193        cross_compiling=yes
2194    else
2195        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2196If you meant to cross compile, use \`--host'.
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot run C compiled programs.
2199If you meant to cross compile, use \`--host'.
2200See \`config.log' for more details." >&2;}
2201   { (exit 1); exit 1; }; }
2202    fi
2203  fi
2204fi
2205echo "$as_me:$LINENO: result: yes" >&5
2206echo "${ECHO_T}yes" >&6
2207
2208rm -f a.out a.exe conftest$ac_cv_exeext b.out
2209ac_clean_files=$ac_clean_files_save
2210# Check the compiler produces executables we can run.  If not, either
2211# the compiler is broken, or we cross compile.
2212echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2213echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2214echo "$as_me:$LINENO: result: $cross_compiling" >&5
2215echo "${ECHO_T}$cross_compiling" >&6
2216
2217echo "$as_me:$LINENO: checking for suffix of executables" >&5
2218echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2220  (eval $ac_link) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; then
2224  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2225# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2226# work properly (i.e., refer to `conftest.exe'), while it won't with
2227# `rm'.
2228for ac_file in conftest.exe conftest conftest.*; do
2229  test -f "$ac_file" || continue
2230  case $ac_file in
2231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2232    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2233          export ac_cv_exeext
2234          break;;
2235    * ) break;;
2236  esac
2237done
2238else
2239  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2242See \`config.log' for more details." >&2;}
2243   { (exit 1); exit 1; }; }
2244fi
2245
2246rm -f conftest$ac_cv_exeext
2247echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2248echo "${ECHO_T}$ac_cv_exeext" >&6
2249
2250rm -f conftest.$ac_ext
2251EXEEXT=$ac_cv_exeext
2252ac_exeext=$EXEEXT
2253echo "$as_me:$LINENO: checking for suffix of object files" >&5
2254echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2255if test "${ac_cv_objext+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h.  */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h.  */
2264
2265int
2266main ()
2267{
2268
2269  ;
2270  return 0;
2271}
2272_ACEOF
2273rm -f conftest.o conftest.obj
2274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275  (eval $ac_compile) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; then
2279  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280  case $ac_file in
2281    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2282    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2283       break;;
2284  esac
2285done
2286else
2287  echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of object files: cannot compile
2293See \`config.log' for more details." >&2;}
2294   { (exit 1); exit 1; }; }
2295fi
2296
2297rm -f conftest.$ac_cv_objext conftest.$ac_ext
2298fi
2299echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2300echo "${ECHO_T}$ac_cv_objext" >&6
2301OBJEXT=$ac_cv_objext
2302ac_objext=$OBJEXT
2303echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2304echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2305if test "${ac_cv_c_compiler_gnu+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h.  */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h.  */
2314
2315int
2316main ()
2317{
2318#ifndef __GNUC__
2319       choke me
2320#endif
2321
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328  (eval $ac_compile) 2>conftest.er1
2329  ac_status=$?
2330  grep -v '^ *+' conftest.er1 >conftest.err
2331  rm -f conftest.er1
2332  cat conftest.err >&5
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); } &&
2335         { ac_try='test -z "$ac_c_werror_flag"
2336                         || test ! -s conftest.err'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; } &&
2342         { ac_try='test -s conftest.$ac_objext'
2343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344  (eval $ac_try) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348  ac_compiler_gnu=yes
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353ac_compiler_gnu=no
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356ac_cv_c_compiler_gnu=$ac_compiler_gnu
2357
2358fi
2359echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2360echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2361GCC=`test $ac_compiler_gnu = yes && echo yes`
2362ac_test_CFLAGS=${CFLAGS+set}
2363ac_save_CFLAGS=$CFLAGS
2364CFLAGS="-g"
2365echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2366echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2367if test "${ac_cv_prog_cc_g+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380
2381  ;
2382  return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387  (eval $ac_compile) 2>conftest.er1
2388  ac_status=$?
2389  grep -v '^ *+' conftest.er1 >conftest.err
2390  rm -f conftest.er1
2391  cat conftest.err >&5
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); } &&
2394         { ac_try='test -z "$ac_c_werror_flag"
2395                         || test ! -s conftest.err'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; } &&
2401         { ac_try='test -s conftest.$ac_objext'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; }; then
2407  ac_cv_prog_cc_g=yes
2408else
2409  echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412ac_cv_prog_cc_g=no
2413fi
2414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415fi
2416echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2417echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2418if test "$ac_test_CFLAGS" = set; then
2419  CFLAGS=$ac_save_CFLAGS
2420elif test $ac_cv_prog_cc_g = yes; then
2421  if test "$GCC" = yes; then
2422    CFLAGS="-g -O2"
2423  else
2424    CFLAGS="-g"
2425  fi
2426else
2427  if test "$GCC" = yes; then
2428    CFLAGS="-O2"
2429  else
2430    CFLAGS=
2431  fi
2432fi
2433echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2434echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2435if test "${ac_cv_prog_cc_stdc+set}" = set; then
2436  echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438  ac_cv_prog_cc_stdc=no
2439ac_save_CC=$CC
2440cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h.  */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h.  */
2446#include <stdarg.h>
2447#include <stdio.h>
2448#include <sys/types.h>
2449#include <sys/stat.h>
2450/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2451struct buf { int x; };
2452FILE * (*rcsopen) (struct buf *, struct stat *, int);
2453static char *e (p, i)
2454     char **p;
2455     int i;
2456{
2457  return p[i];
2458}
2459static char *f (char * (*g) (char **, int), char **p, ...)
2460{
2461  char *s;
2462  va_list v;
2463  va_start (v,p);
2464  s = g (p, va_arg (v,int));
2465  va_end (v);
2466  return s;
2467}
2468
2469/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2470   function prototypes and stuff, but not '\xHH' hex character constants.
2471   These don't provoke an error unfortunately, instead are silently treated
2472   as 'x'.  The following induces an error, until -std1 is added to get
2473   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2474   array size at least.  It's necessary to write '\x00'==0 to get something
2475   that's true only with -std1.  */
2476int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2477
2478int test (int i, double x);
2479struct s1 {int (*f) (int a);};
2480struct s2 {int (*f) (double a);};
2481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2482int argc;
2483char **argv;
2484int
2485main ()
2486{
2487return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492# Don't try gcc -ansi; that turns off useful extensions and
2493# breaks some systems' header files.
2494# AIX                   -qlanglvl=ansi
2495# Ultrix and OSF/1      -std1
2496# HP-UX 10.20 and later -Ae
2497# HP-UX older versions  -Aa -D_HPUX_SOURCE
2498# SVR4                  -Xc -D__EXTENSIONS__
2499for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2500do
2501  CC="$ac_save_CC $ac_arg"
2502  rm -f conftest.$ac_objext
2503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504  (eval $ac_compile) 2>conftest.er1
2505  ac_status=$?
2506  grep -v '^ *+' conftest.er1 >conftest.err
2507  rm -f conftest.er1
2508  cat conftest.err >&5
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); } &&
2511         { ac_try='test -z "$ac_c_werror_flag"
2512                         || test ! -s conftest.err'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; } &&
2518         { ac_try='test -s conftest.$ac_objext'
2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520  (eval $ac_try) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }; }; then
2524  ac_cv_prog_cc_stdc=$ac_arg
2525break
2526else
2527  echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530fi
2531rm -f conftest.err conftest.$ac_objext
2532done
2533rm -f conftest.$ac_ext conftest.$ac_objext
2534CC=$ac_save_CC
2535
2536fi
2537
2538case "x$ac_cv_prog_cc_stdc" in
2539  x|xno)
2540    echo "$as_me:$LINENO: result: none needed" >&5
2541echo "${ECHO_T}none needed" >&6 ;;
2542  *)
2543    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2544echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2545    CC="$CC $ac_cv_prog_cc_stdc" ;;
2546esac
2547
2548# Some people use a C++ compiler to compile C.  Since we use `exit',
2549# in C++ we need to declare it.  In case someone uses the same compiler
2550# for both compiling C and C++ we need to have the C++ compiler decide
2551# the declaration of exit, since it's the most demanding environment.
2552cat >conftest.$ac_ext <<_ACEOF
2553#ifndef __cplusplus
2554  choke me
2555#endif
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559  (eval $ac_compile) 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } &&
2566         { ac_try='test -z "$ac_c_werror_flag"
2567                         || test ! -s conftest.err'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; } &&
2573         { ac_try='test -s conftest.$ac_objext'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; }; then
2579  for ac_declaration in \
2580   '' \
2581   'extern "C" void std::exit (int) throw (); using std::exit;' \
2582   'extern "C" void std::exit (int); using std::exit;' \
2583   'extern "C" void exit (int) throw ();' \
2584   'extern "C" void exit (int);' \
2585   'void exit (int);'
2586do
2587  cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h.  */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h.  */
2593$ac_declaration
2594#include <stdlib.h>
2595int
2596main ()
2597{
2598exit (42);
2599  ;
2600  return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext
2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605  (eval $ac_compile) 2>conftest.er1
2606  ac_status=$?
2607  grep -v '^ *+' conftest.er1 >conftest.err
2608  rm -f conftest.er1
2609  cat conftest.err >&5
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); } &&
2612         { ac_try='test -z "$ac_c_werror_flag"
2613                         || test ! -s conftest.err'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; } &&
2619         { ac_try='test -s conftest.$ac_objext'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  :
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630continue
2631fi
2632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633  cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639$ac_declaration
2640int
2641main ()
2642{
2643exit (42);
2644  ;
2645  return 0;
2646}
2647_ACEOF
2648rm -f conftest.$ac_objext
2649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650  (eval $ac_compile) 2>conftest.er1
2651  ac_status=$?
2652  grep -v '^ *+' conftest.er1 >conftest.err
2653  rm -f conftest.er1
2654  cat conftest.err >&5
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); } &&
2657         { ac_try='test -z "$ac_c_werror_flag"
2658                         || test ! -s conftest.err'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; } &&
2664         { ac_try='test -s conftest.$ac_objext'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; }; then
2670  break
2671else
2672  echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677done
2678rm -f conftest*
2679if test -n "$ac_declaration"; then
2680  echo '#ifdef __cplusplus' >>confdefs.h
2681  echo $ac_declaration      >>confdefs.h
2682  echo '#endif'             >>confdefs.h
2683fi
2684
2685else
2686  echo "$as_me: failed program was:" >&5
2687sed 's/^/| /' conftest.$ac_ext >&5
2688
2689fi
2690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697if test -z "$CC" ; then
2698  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2699echo "$as_me: error: Failed to find a C compiler!" >&2;}
2700   { (exit 1); exit 1; }; }
2701fi
2702# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2703case "$CC" in
2704  cl* | */cl* | CL* | */CL* )
2705    if test "$ac_cv_prog_cc_g" = yes ; then
2706      ac_cv_prog_cc_g=no
2707      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2708echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2709    fi ;;
2710esac
2711CFLAGS="$save_cflags"
2712
2713# Check if a project specific CFLAGS variable has been set
2714if test x$COIN_PRJCT != x; then
2715  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2716  if test x$coin_tmp = xset; then
2717    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2718  fi
2719fi
2720
2721if test x"$CFLAGS" = x; then
2722
2723  coin_add_cflags=
2724  coin_opt_cflags=
2725  coin_dbg_cflags=
2726  coin_warn_cflags=
2727
2728  if test "$GCC" = "yes"; then
2729    case "$CC" in
2730      icc* | */icc*)
2731        ;;
2732      *)
2733        coin_opt_cflags="-O3"
2734        coin_add_cflags="-pipe"
2735        coin_dbg_cflags="-g"
2736        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2737        case $build in
2738          *-darwin*)
2739            ;;
2740          *)
2741            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2742            ;;
2743        esac
2744        case $enable_doscompile in
2745          mingw)
2746            CFLAGS="-mno-cygwin"
2747            cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h.  */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h.  */
2753
2754int
2755main ()
2756{
2757int i=0; i++;
2758  ;
2759  return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext conftest$ac_exeext
2763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2764  (eval $ac_link) 2>conftest.er1
2765  ac_status=$?
2766  grep -v '^ *+' conftest.er1 >conftest.err
2767  rm -f conftest.er1
2768  cat conftest.err >&5
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); } &&
2771         { ac_try='test -z "$ac_c_werror_flag"
2772                         || test ! -s conftest.err'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; } &&
2778         { ac_try='test -s conftest$ac_exeext'
2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780  (eval $ac_try) 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; }; then
2784  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext \
2791      conftest$ac_exeext conftest.$ac_ext
2792            CFLAGS=
2793          ;;
2794        esac
2795    esac
2796  fi
2797  if test -z "$coin_opt_cflags"; then
2798    case $build in
2799      *-cygwin* | *-mingw*)
2800        case "$CC" in
2801          cl* | */cl* | CL* | */CL*)
2802            coin_opt_cflags='-MT -O2'
2803            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2804            coin_dbg_cflags='-MTd'
2805            ;;
2806          icl* | */icl* | ICL* | */ICL*)
2807            coin_opt_cflags='-MT -Ox'
2808            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2809            coin_dbg_cflags='-MTd -debug'
2810            ;;
2811        esac
2812        ;;
2813      *-linux-*)
2814        case "$CC" in
2815          icc* | */icc*)
2816            coin_opt_cflags="-O3 -ip -mp1"
2817            coin_add_cflags=""
2818            coin_dbg_cflags="-g"
2819            # Check if -i_dynamic is necessary (for new glibc library)
2820            CFLAGS=
2821            cat >conftest.$ac_ext <<_ACEOF
2822/* confdefs.h.  */
2823_ACEOF
2824cat confdefs.h >>conftest.$ac_ext
2825cat >>conftest.$ac_ext <<_ACEOF
2826/* end confdefs.h.  */
2827
2828int
2829main ()
2830{
2831int i=0; i++;
2832  ;
2833  return 0;
2834}
2835_ACEOF
2836rm -f conftest.$ac_objext conftest$ac_exeext
2837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2838  (eval $ac_link) 2>conftest.er1
2839  ac_status=$?
2840  grep -v '^ *+' conftest.er1 >conftest.err
2841  rm -f conftest.er1
2842  cat conftest.err >&5
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); } &&
2845         { ac_try='test -z "$ac_c_werror_flag"
2846                         || test ! -s conftest.err'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; } &&
2852         { ac_try='test -s conftest$ac_exeext'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; }; then
2858  :
2859else
2860  echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863coin_add_cflags="-i_dynamic $coin_add_cflags"
2864fi
2865rm -f conftest.err conftest.$ac_objext \
2866      conftest$ac_exeext conftest.$ac_ext
2867            ;;
2868          pgcc* | */pgcc*)
2869            coin_opt_cflags="-fast"
2870            coin_add_cflags="-Kieee -pc 64"
2871            coin_dbg_cflags="-g"
2872            ;;
2873        esac
2874        ;;
2875      *-ibm-*)
2876        case "$CC" in
2877          xlc* | */xlc* | mpxlc* | */mpxlc*)
2878            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2879            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2880            coin_dbg_cflags="-g"
2881          ;;
2882        esac
2883        ;;
2884      *-hp-*)
2885        coin_opt_cflags="-O"
2886        coin_add_cflags="-Ae"
2887        coin_dbg_cflags="-g"
2888        ;;
2889      *-*-solaris*)
2890        coin_opt_cflags="-xO4"
2891        coin_dbg_cflags="-g"
2892        ;;
2893      *-sgi-*)
2894        coin_opt_cflags="-O -OPT:Olimit=0"
2895        coin_dbg_cflags="-g"
2896        ;;
2897    esac
2898  fi
2899
2900  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2901    coin_dbg_cflags="-g"
2902  fi
2903
2904  if test -z "$coin_opt_cflags"; then
2905    # Try if -O option works if nothing else is set
2906    CFLAGS="-O"
2907    cat >conftest.$ac_ext <<_ACEOF
2908/* confdefs.h.  */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h.  */
2913
2914int
2915main ()
2916{
2917int i=0; i++;
2918  ;
2919  return 0;
2920}
2921_ACEOF
2922rm -f conftest.$ac_objext conftest$ac_exeext
2923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2924  (eval $ac_link) 2>conftest.er1
2925  ac_status=$?
2926  grep -v '^ *+' conftest.er1 >conftest.err
2927  rm -f conftest.er1
2928  cat conftest.err >&5
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); } &&
2931         { ac_try='test -z "$ac_c_werror_flag"
2932                         || test ! -s conftest.err'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; } &&
2938         { ac_try='test -s conftest$ac_exeext'
2939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940  (eval $ac_try) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; }; then
2944  coin_opt_cflags="-O"
2945else
2946  echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
2949fi
2950rm -f conftest.err conftest.$ac_objext \
2951      conftest$ac_exeext conftest.$ac_ext
2952  fi
2953
2954  # if PM doesn't want the warning messages, take them out
2955  if test x"$coin_skip_warn_cflags" = xyes; then
2956    coin_warn_cflags=
2957  fi
2958
2959  if test x${DBG_CFLAGS+set} != xset; then
2960    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2961  fi
2962  if test x${OPT_CFLAGS+set} != xset; then
2963    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2964  fi
2965
2966  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2967  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2968
2969  if test "$coin_debug_compile" = "true"; then
2970    CFLAGS="$DBG_CFLAGS"
2971  else
2972    CFLAGS="$OPT_CFLAGS"
2973  fi
2974else
2975  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2976  if test x${DBG_CFLAGS+set} != xset; then
2977    DBG_CFLAGS="$CFLAGS"
2978  fi
2979  if test x${OPT_CFLAGS+set} != xset; then
2980    OPT_CFLAGS="$CFLAGS"
2981  fi
2982fi
2983
2984# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2985
2986case "$CFLAGS" in
2987  *-mno-cygwin*)
2988    if test x${CPPFLAGS+set} != xset ; then
2989      CPPFLAGS="-mno-cygwin"
2990    else
2991      case "$CPPFLAGS" in
2992        *-mno-cygwin*)
2993          ;;
2994        *)
2995          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2996          ;;
2997      esac
2998    fi ;;
2999esac
3000
3001# Try if CFLAGS works
3002save_CFLAGS="$CFLAGS"
3003cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013int i=0; i++;
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020  (eval $ac_link) 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027         { ac_try='test -z "$ac_c_werror_flag"
3028                         || test ! -s conftest.err'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; } &&
3034         { ac_try='test -s conftest$ac_exeext'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; }; then
3040  :
3041else
3042  echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045CFLAGS=
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049if test -z "$CFLAGS"; then
3050  { 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
3051echo "$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;}
3052  CFLAGS='-O'
3053  cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h.  */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h.  */
3059
3060int
3061main ()
3062{
3063int i=0; i++;
3064  ;
3065  return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext conftest$ac_exeext
3069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3070  (eval $ac_link) 2>conftest.er1
3071  ac_status=$?
3072  grep -v '^ *+' conftest.er1 >conftest.err
3073  rm -f conftest.er1
3074  cat conftest.err >&5
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); } &&
3077         { ac_try='test -z "$ac_c_werror_flag"
3078                         || test ! -s conftest.err'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; } &&
3084         { ac_try='test -s conftest$ac_exeext'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095CFLAGS=
3096fi
3097rm -f conftest.err conftest.$ac_objext \
3098      conftest$ac_exeext conftest.$ac_ext
3099  if test -z "$CFLAGS"; then
3100    { 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
3101echo "$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;}
3102  fi
3103fi
3104
3105{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3106echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3107
3108
3109if test x"$MPICC" = x; then :; else
3110  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3111echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3112  CC="$MPICC"
3113fi
3114
3115# Correct ADDLIBS initialization if we are using the MS compiler
3116case "$CC" in
3117  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3118    ADDLIBS=
3119    case $build in
3120  *-mingw*)
3121    if test "${LD+set}" = set; then :; else
3122      LD=link
3123    fi
3124    ;;
3125 esac
3126 case $enable_doscompile in
3127   msvc)
3128     if test "x${LD+set}" = xset; then :; else
3129       LD=link
3130     fi
3131     ;;
3132 esac
3133
3134    ;;
3135esac
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144
3145# Get the name of the C++ compiler and appropriate compiler options
3146
3147 #Let's try if that overcomes configuration problem with VC++ 6.0
3148
3149ac_ext=cc
3150ac_cpp='$CXXCPP $CPPFLAGS'
3151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3154
3155
3156
3157
3158
3159
3160
3161coin_has_cxx=yes
3162
3163save_cxxflags="$CXXFLAGS"
3164# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3165case $build in
3166  *-cygwin* | *-mingw*)
3167             if test "$enable_doscompile" = msvc ; then
3168               comps="icl cl"
3169             else
3170               comps="g++ cl"
3171             fi ;;
3172  *-*-solaris*)
3173             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3174  *-darwin*) comps="g++ c++ CC" ;;
3175          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3176esac
3177
3178# We delete the cached value, since the test might not have been
3179# performed with our choice of compilers earlier
3180$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3181# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3182ac_ext=cc
3183ac_cpp='$CXXCPP $CPPFLAGS'
3184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3187if test -n "$ac_tool_prefix"; then
3188  for ac_prog in $CCC $comps
3189  do
3190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192echo "$as_me:$LINENO: checking for $ac_word" >&5
3193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194if test "${ac_cv_prog_CXX+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  if test -n "$CXX"; then
3198  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203  IFS=$as_save_IFS
3204  test -z "$as_dir" && as_dir=.
3205  for ac_exec_ext in '' $ac_executable_extensions; do
3206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209    break 2
3210  fi
3211done
3212done
3213
3214fi
3215fi
3216CXX=$ac_cv_prog_CXX
3217if test -n "$CXX"; then
3218  echo "$as_me:$LINENO: result: $CXX" >&5
3219echo "${ECHO_T}$CXX" >&6
3220else
3221  echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223fi
3224
3225    test -n "$CXX" && break
3226  done
3227fi
3228if test -z "$CXX"; then
3229  ac_ct_CXX=$CXX
3230  for ac_prog in $CCC $comps
3231do
3232  # Extract the first word of "$ac_prog", so it can be a program name with args.
3233set dummy $ac_prog; ac_word=$2
3234echo "$as_me:$LINENO: checking for $ac_word" >&5
3235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  if test -n "$ac_ct_CXX"; then
3240  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3241else
3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243for as_dir in $PATH
3244do
3245  IFS=$as_save_IFS
3246  test -z "$as_dir" && as_dir=.
3247  for ac_exec_ext in '' $ac_executable_extensions; do
3248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249    ac_cv_prog_ac_ct_CXX="$ac_prog"
3250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251    break 2
3252  fi
3253done
3254done
3255
3256fi
3257fi
3258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3259if test -n "$ac_ct_CXX"; then
3260  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3261echo "${ECHO_T}$ac_ct_CXX" >&6
3262else
3263  echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265fi
3266
3267  test -n "$ac_ct_CXX" && break
3268done
3269test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3270
3271  CXX=$ac_ct_CXX
3272fi
3273
3274
3275# Provide some information about the compiler.
3276echo "$as_me:$LINENO:" \
3277     "checking for C++ compiler version" >&5
3278ac_compiler=`set X $ac_compile; echo $2`
3279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3280  (eval $ac_compiler --version </dev/null >&5) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }
3284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3285  (eval $ac_compiler -v </dev/null >&5) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }
3289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3290  (eval $ac_compiler -V </dev/null >&5) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }
3294
3295echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3296echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3297if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h.  */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311       choke me
3312#endif
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320  (eval $ac_compile) 2>conftest.er1
3321  ac_status=$?
3322  grep -v '^ *+' conftest.er1 >conftest.err
3323  rm -f conftest.er1
3324  cat conftest.err >&5
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); } &&
3327         { ac_try='test -z "$ac_cxx_werror_flag"
3328                         || test ! -s conftest.err'
3329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330  (eval $ac_try) 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; } &&
3334         { ac_try='test -s conftest.$ac_objext'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; }; then
3340  ac_compiler_gnu=yes
3341else
3342  echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345ac_compiler_gnu=no
3346fi
3347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3349
3350fi
3351echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3353GXX=`test $ac_compiler_gnu = yes && echo yes`
3354ac_test_CXXFLAGS=${CXXFLAGS+set}
3355ac_save_CXXFLAGS=$CXXFLAGS
3356CXXFLAGS="-g"
3357echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3358echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3359if test "${ac_cv_prog_cxx_g+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h.  */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h.  */
3368
3369int
3370main ()
3371{
3372
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379  (eval $ac_compile) 2>conftest.er1
3380  ac_status=$?
3381  grep -v '^ *+' conftest.er1 >conftest.err
3382  rm -f conftest.er1
3383  cat conftest.err >&5
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); } &&
3386         { ac_try='test -z "$ac_cxx_werror_flag"
3387                         || test ! -s conftest.err'
3388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389  (eval $ac_try) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }; } &&
3393         { ac_try='test -s conftest.$ac_objext'
3394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395  (eval $ac_try) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }; }; then
3399  ac_cv_prog_cxx_g=yes
3400else
3401  echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404ac_cv_prog_cxx_g=no
3405fi
3406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407fi
3408echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3409echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3410if test "$ac_test_CXXFLAGS" = set; then
3411  CXXFLAGS=$ac_save_CXXFLAGS
3412elif test $ac_cv_prog_cxx_g = yes; then
3413  if test "$GXX" = yes; then
3414    CXXFLAGS="-g -O2"
3415  else
3416    CXXFLAGS="-g"
3417  fi
3418else
3419  if test "$GXX" = yes; then
3420    CXXFLAGS="-O2"
3421  else
3422    CXXFLAGS=
3423  fi
3424fi
3425for ac_declaration in \
3426   '' \
3427   'extern "C" void std::exit (int) throw (); using std::exit;' \
3428   'extern "C" void std::exit (int); using std::exit;' \
3429   'extern "C" void exit (int) throw ();' \
3430   'extern "C" void exit (int);' \
3431   'void exit (int);'
3432do
3433  cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439$ac_declaration
3440#include <stdlib.h>
3441int
3442main ()
3443{
3444exit (42);
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451  (eval $ac_compile) 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458         { ac_try='test -z "$ac_cxx_werror_flag"
3459                         || test ! -s conftest.err'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; } &&
3465         { ac_try='test -s conftest.$ac_objext'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; }; then
3471  :
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476continue
3477fi
3478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479  cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485$ac_declaration
3486int
3487main ()
3488{
3489exit (42);
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496  (eval $ac_compile) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } &&
3503         { ac_try='test -z "$ac_cxx_werror_flag"
3504                         || test ! -s conftest.err'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; } &&
3510         { ac_try='test -s conftest.$ac_objext'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; }; then
3516  break
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521fi
3522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523done
3524rm -f conftest*
3525if test -n "$ac_declaration"; then
3526  echo '#ifdef __cplusplus' >>confdefs.h
3527  echo $ac_declaration      >>confdefs.h
3528  echo '#endif'             >>confdefs.h
3529fi
3530
3531ac_ext=cc
3532ac_cpp='$CXXCPP $CPPFLAGS'
3533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3536
3537
3538#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3539#thus, we test here whether $CXX is actually working
3540ac_ext=cc
3541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545
3546echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3547echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3548cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558int i=0;
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563rm -f conftest.$ac_objext
3564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565  (eval $ac_compile) 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } &&
3572         { ac_try='test -z "$ac_cxx_werror_flag"
3573                         || test ! -s conftest.err'
3574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575  (eval $ac_try) 2>&5
3576  ac_status=$?
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); }; } &&
3579         { ac_try='test -s conftest.$ac_objext'
3580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581  (eval $ac_try) 2>&5
3582  ac_status=$?
3583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584  (exit $ac_status); }; }; then
3585  echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587else
3588  echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6
3593   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3594echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3595   { (exit 1); exit 1; }; }
3596
3597fi
3598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599ac_ext=cc
3600ac_cpp='$CXXCPP $CPPFLAGS'
3601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3604
3605
3606coin_cxx_is_cl=false
3607# It seems that we need to cleanup something here for the Windows
3608case "$CXX" in
3609  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3610    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3611    mv confdefs.hh confdefs.h
3612    coin_cxx_is_cl=true
3613    ;;
3614esac
3615
3616# add automake conditional so we can recognize cl compiler in makefile
3617
3618
3619if test $coin_cxx_is_cl = true; then
3620  COIN_CXX_IS_CL_TRUE=
3621  COIN_CXX_IS_CL_FALSE='#'
3622else
3623  COIN_CXX_IS_CL_TRUE='#'
3624  COIN_CXX_IS_CL_FALSE=
3625fi
3626
3627
3628# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3629case "$CXX" in
3630  cl* | */cl* | CL* | */CL* )
3631    if test "$ac_cv_prog_cxx_g" = yes ; then
3632      ac_cv_prog_cxx_g=no
3633      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3634echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3635    fi ;;
3636esac
3637CXXFLAGS="$save_cxxflags"
3638
3639# Check if a project specific CXXFLAGS variable has been set
3640if test x$COIN_PRJCT != x; then
3641  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3642  if test x$coin_tmp = xset; then
3643    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3644  fi
3645fi
3646
3647if test x"$CXXFLAGS" = x; then
3648
3649# ToDo decide whether we want -DNDEBUG for optimization
3650  coin_add_cxxflags=
3651  coin_opt_cxxflags=
3652  coin_dbg_cxxflags=
3653  coin_warn_cxxflags=
3654
3655  if test "$GXX" = "yes"; then
3656    case "$CXX" in
3657      icpc* | */icpc*)
3658        ;;
3659      *)
3660# ToDo decide about unroll-loops
3661        coin_opt_cxxflags="-O3"
3662        coin_add_cxxflags="-pipe"
3663        coin_dbg_cxxflags="-g"
3664        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3665        case $build in
3666          *-darwin*)
3667            ;;
3668          *)
3669            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3670            ;;
3671        esac
3672
3673        case $enable_doscompile in
3674          mingw)
3675            CXXFLAGS="-mno-cygwin"
3676            cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h.  */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686int i=0; i++;
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext conftest$ac_exeext
3692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693  (eval $ac_link) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700         { ac_try='test -z "$ac_cxx_werror_flag"
3701                         || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707         { ac_try='test -s conftest$ac_exeext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3714else
3715  echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718fi
3719rm -f conftest.err conftest.$ac_objext \
3720      conftest$ac_exeext conftest.$ac_ext
3721            CXXFLAGS=
3722          ;;
3723        esac
3724    esac
3725  fi
3726
3727# Note that we do not need to cover GCC in the following tests.
3728
3729  if test -z "$coin_opt_cxxflags"; then
3730    case $build in
3731      *-cygwin* | *-mingw*)
3732        case "$CXX" in
3733          cl* | */cl* | CL* | */CL*)
3734            # The MT and MTd options are mutually exclusive
3735            coin_opt_cxxflags='-MT -O2'
3736            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3737            coin_dbg_cxxflags='-MTd'
3738            ;;
3739          icl* | */icl* | ICL* | */ICL*)
3740            # The MT and MTd options are mutually exclusive
3741            coin_opt_cxxflags='-MT -Ox'
3742            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3743            coin_dbg_cxxflags='-MTd -debug'
3744            ;;
3745        esac
3746        ;;
3747      *-linux-*)
3748        case "$CXX" in
3749          icpc* | */icpc*)
3750            coin_opt_cxxflags="-O3 -ip -mp1"
3751            coin_add_cxxflags=""
3752            coin_dbg_cxxflags="-g"
3753            # Check if -i_dynamic is necessary (for new glibc library)
3754            CXXFLAGS=
3755            cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h.  */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h.  */
3761
3762int
3763main ()
3764{
3765int i=0; i++;
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext conftest$ac_exeext
3771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772  (eval $ac_link) 2>conftest.er1
3773  ac_status=$?
3774  grep -v '^ *+' conftest.er1 >conftest.err
3775  rm -f conftest.er1
3776  cat conftest.err >&5
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -z "$ac_cxx_werror_flag"
3780                         || test ! -s conftest.err'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; } &&
3786         { ac_try='test -s conftest$ac_exeext'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; }; then
3792  :
3793else
3794  echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3798fi
3799rm -f conftest.err conftest.$ac_objext \
3800      conftest$ac_exeext conftest.$ac_ext
3801            ;;
3802          pgCC* | */pgCC*)
3803            coin_opt_cxxflags="-fast"
3804            coin_add_cxxflags="-Kieee -pc 64"
3805            coin_dbg_cxxflags="-g"
3806            ;;
3807        esac
3808        ;;
3809      *-ibm-*)
3810        case "$CXX" in
3811          xlC* | */xlC* | mpxlC* | */mpxlC*)
3812            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3813            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3814            coin_dbg_cxxflags="-g"
3815            ;;
3816        esac
3817        ;;
3818      *-hp-*)
3819        case "$CXX" in
3820          aCC* | */aCC* )
3821            coin_opt_cxxflags="-O"
3822            coin_add_cxxflags="-AA"
3823            coin_dbg_cxxflags="-g"
3824            ;;
3825        esac
3826        ;;
3827      *-*-solaris*)
3828          coin_opt_cxxflags="-O4"
3829          coin_dbg_cxxflags="-g"
3830        ;;
3831    esac
3832  fi
3833
3834# Generic flag settings. If these don't work, add a case above.
3835
3836  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3837    coin_dbg_cxxflags="-g"
3838  fi
3839
3840  if test -z "$coin_opt_cxxflags"; then
3841    # Try if -O option works if nothing else is set
3842    CXXFLAGS=-O
3843    cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h.  */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853int i=0; i++;
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext conftest$ac_exeext
3859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860  (eval $ac_link) 2>conftest.er1
3861  ac_status=$?
3862  grep -v '^ *+' conftest.er1 >conftest.err
3863  rm -f conftest.er1
3864  cat conftest.err >&5
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); } &&
3867         { ac_try='test -z "$ac_cxx_werror_flag"
3868                         || test ! -s conftest.err'
3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870  (eval $ac_try) 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }; } &&
3874         { ac_try='test -s conftest$ac_exeext'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; }; then
3880  coin_opt_cxxflags="-O"
3881else
3882  echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885fi
3886rm -f conftest.err conftest.$ac_objext \
3887      conftest$ac_exeext conftest.$ac_ext
3888  fi
3889
3890  # if PM doesn't want the warning messages, take them out
3891  if test x"$coin_skip_warn_cxxflags" = xyes; then
3892    coin_warn_cxxflags=
3893  fi
3894
3895# Do final setup of flags based on values determined above.
3896
3897  if test x${DBG_CXXFLAGS+set} != xset; then
3898    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3899  fi
3900  if test x${OPT_CXXFLAGS+set} != xset; then
3901    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3902  fi
3903
3904  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3905  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3906
3907  if test "$coin_debug_compile" = "true"; then
3908    CXXFLAGS="$DBG_CXXFLAGS"
3909  else
3910    CXXFLAGS="$OPT_CXXFLAGS"
3911  fi
3912
3913# Handle the case where CXXFLAGS was set externally.
3914else
3915  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3916  if test x${DBG_CXXFLAGS+set} != xset; then
3917    DBG_CXXFLAGS="$CXXFLAGS"
3918  fi
3919  if test x${OPT_CXXFLAGS+set} != xset; then
3920    OPT_CXXFLAGS="$CXXFLAGS"
3921  fi
3922fi
3923
3924# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3925
3926case "$CXXFLAGS" in
3927  *-mno-cygwin*)
3928    if test x${CPPFLAGS+set} != xset ; then
3929      CPPFLAGS="-mno-cygwin"
3930    else
3931      case "$CPPFLAGS" in
3932        *-mno-cygwin*)
3933          ;;
3934        *)
3935          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3936          ;;
3937      esac
3938    fi ;;
3939esac
3940
3941# Try if CXXFLAGS works
3942save_CXXFLAGS="$CXXFLAGS"
3943cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h.  */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953int i=0; i++;
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext conftest$ac_exeext
3959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960  (eval $ac_link) 2>conftest.er1
3961  ac_status=$?
3962  grep -v '^ *+' conftest.er1 >conftest.err
3963  rm -f conftest.er1
3964  cat conftest.err >&5
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); } &&
3967         { ac_try='test -z "$ac_cxx_werror_flag"
3968                         || test ! -s conftest.err'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; } &&
3974         { ac_try='test -s conftest$ac_exeext'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; }; then
3980  :
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985CXXFLAGS=
3986fi
3987rm -f conftest.err conftest.$ac_objext \
3988      conftest$ac_exeext conftest.$ac_ext
3989if test -z "$CXXFLAGS"; then
3990  { 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
3991echo "$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;}
3992  CXXFLAGS='-O'
3993  cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003int i=0; i++;
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008rm -f conftest.$ac_objext conftest$ac_exeext
4009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010  (eval $ac_link) 2>conftest.er1
4011  ac_status=$?
4012  grep -v '^ *+' conftest.er1 >conftest.err
4013  rm -f conftest.er1
4014  cat conftest.err >&5
4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016  (exit $ac_status); } &&
4017         { ac_try='test -z "$ac_cxx_werror_flag"
4018                         || test ! -s conftest.err'
4019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020  (eval $ac_try) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }; } &&
4024         { ac_try='test -s conftest$ac_exeext'
4025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026  (eval $ac_try) 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); }; }; then
4030  :
4031else
4032  echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035CXXFLAGS=
4036fi
4037rm -f conftest.err conftest.$ac_objext \
4038      conftest$ac_exeext conftest.$ac_ext
4039  if test -z "$CXXFLAGS"; then
4040    { 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
4041echo "$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;}
4042  fi
4043fi
4044
4045{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4046echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4047
4048
4049if test x"$MPICXX" = x; then :; else
4050  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4051echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4052  CXX="$MPICXX"
4053fi
4054
4055case "$CXX" in
4056  cl* | */cl* | CL* | */CL* )
4057    case $build in
4058  *-mingw*)
4059    if test "${LD+set}" = set; then :; else
4060      LD=link
4061    fi
4062    ;;
4063 esac
4064 case $enable_doscompile in
4065   msvc)
4066     if test "x${LD+set}" = xset; then :; else
4067       LD=link
4068     fi
4069     ;;
4070 esac
4071
4072    ;;
4073esac
4074
4075ac_ext=c
4076ac_cpp='$CPP $CPPFLAGS'
4077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082
4083# Get the name of the Fortran compiler and appropriate compiler options
4084case $build in
4085  *-cygwin* | *-mingw*)
4086     if test "$enable_doscompile" = msvc ; then
4087       coin_f77_comps="ifort fl32 compile_f2c"
4088     else
4089       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
4090     fi ;;
4091  *-*-solaris*)
4092     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4093  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4094 esac
4095
4096
4097
4098
4099
4100
4101ac_ext=f
4102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4105
4106
4107
4108
4109
4110
4111coin_has_f77=yes
4112
4113save_fflags="$FFLAGS"
4114
4115# We delete the cached value, since the test might not have been
4116# performed with our choice of compilers earlier
4117$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4118
4119# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4120# coin_f77_comps to see if there's a program that matches one of the names.
4121# If there's no such program, F77 = unavailable. If we match the name,
4122# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4123# compiler.
4124# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4125
4126
4127{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4128echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4129for ac_prog in $coin_f77_comps
4130do
4131  # Extract the first word of "$ac_prog", so it can be a program name with args.
4132set dummy $ac_prog; ac_word=$2
4133echo "$as_me:$LINENO: checking for $ac_word" >&5
4134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4135if test "${ac_cv_prog_F77+set}" = set; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  if test -n "$F77"; then
4139  ac_cv_prog_F77="$F77" # Let the user override the test.
4140else
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144  IFS=$as_save_IFS
4145  test -z "$as_dir" && as_dir=.
4146  for ac_exec_ext in '' $ac_executable_extensions; do
4147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148    ac_cv_prog_F77="$ac_prog"
4149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150    break 2
4151  fi
4152done
4153done
4154
4155fi
4156fi
4157F77=$ac_cv_prog_F77
4158if test -n "$F77"; then
4159  echo "$as_me:$LINENO: result: $F77" >&5
4160echo "${ECHO_T}$F77" >&6
4161else
4162  echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164fi
4165
4166  test -n "$F77" && break
4167done
4168test -n "$F77" || F77="unavailable"
4169
4170
4171if test "$F77" != "unavailable" ; then
4172  ac_ext=f
4173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4176if test -n "$ac_tool_prefix"; then
4177  for ac_prog in $coin_f77_comps
4178  do
4179    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4181echo "$as_me:$LINENO: checking for $ac_word" >&5
4182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4183if test "${ac_cv_prog_F77+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  if test -n "$F77"; then
4187  ac_cv_prog_F77="$F77" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194  for ac_exec_ext in '' $ac_executable_extensions; do
4195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201done
4202
4203fi
4204fi
4205F77=$ac_cv_prog_F77
4206if test -n "$F77"; then
4207  echo "$as_me:$LINENO: result: $F77" >&5
4208echo "${ECHO_T}$F77" >&6
4209else
4210  echo "$as_me:$LINENO: result: no" >&5
4211echo "${ECHO_T}no" >&6
4212fi
4213
4214    test -n "$F77" && break
4215  done
4216fi
4217if test -z "$F77"; then
4218  ac_ct_F77=$F77
4219  for ac_prog in $coin_f77_comps
4220do
4221  # Extract the first word of "$ac_prog", so it can be a program name with args.
4222set dummy $ac_prog; ac_word=$2
4223echo "$as_me:$LINENO: checking for $ac_word" >&5
4224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  if test -n "$ac_ct_F77"; then
4229  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236  for ac_exec_ext in '' $ac_executable_extensions; do
4237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238    ac_cv_prog_ac_ct_F77="$ac_prog"
4239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243done
4244
4245fi
4246fi
4247ac_ct_F77=$ac_cv_prog_ac_ct_F77
4248if test -n "$ac_ct_F77"; then
4249  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4250echo "${ECHO_T}$ac_ct_F77" >&6
4251else
4252  echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
4254fi
4255
4256  test -n "$ac_ct_F77" && break
4257done
4258
4259  F77=$ac_ct_F77
4260fi
4261
4262
4263# Provide some information about the compiler.
4264echo "$as_me:4264:" \
4265     "checking for Fortran 77 compiler version" >&5
4266ac_compiler=`set X $ac_compile; echo $2`
4267{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4268  (eval $ac_compiler --version </dev/null >&5) 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }
4272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4273  (eval $ac_compiler -v </dev/null >&5) 2>&5
4274  ac_status=$?
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); }
4277{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4278  (eval $ac_compiler -V </dev/null >&5) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }
4282rm -f a.out
4283
4284# If we don't use `.F' as extension, the preprocessor is not run on the
4285# input file.  (Note that this only needs to work for GNU compilers.)
4286ac_save_ext=$ac_ext
4287ac_ext=F
4288echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4289echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4290if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  cat >conftest.$ac_ext <<_ACEOF
4294      program main
4295#ifndef __GNUC__
4296       choke me
4297#endif
4298
4299      end
4300_ACEOF
4301rm -f conftest.$ac_objext
4302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303  (eval $ac_compile) 2>conftest.er1
4304  ac_status=$?
4305  grep -v '^ *+' conftest.er1 >conftest.err
4306  rm -f conftest.er1
4307  cat conftest.err >&5
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); } &&
4310         { ac_try='test -z "$ac_f77_werror_flag"
4311                         || test ! -s conftest.err'
4312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313  (eval $ac_try) 2>&5
4314  ac_status=$?
4315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316  (exit $ac_status); }; } &&
4317         { ac_try='test -s conftest.$ac_objext'
4318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319  (eval $ac_try) 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; }; then
4323  ac_compiler_gnu=yes
4324else
4325  echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328ac_compiler_gnu=no
4329fi
4330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4332
4333fi
4334echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4335echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4336ac_ext=$ac_save_ext
4337ac_test_FFLAGS=${FFLAGS+set}
4338ac_save_FFLAGS=$FFLAGS
4339FFLAGS=
4340echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4341echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4342if test "${ac_cv_prog_f77_g+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  FFLAGS=-g
4346cat >conftest.$ac_ext <<_ACEOF
4347      program main
4348
4349      end
4350_ACEOF
4351rm -f conftest.$ac_objext
4352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353  (eval $ac_compile) 2>conftest.er1
4354  ac_status=$?
4355  grep -v '^ *+' conftest.er1 >conftest.err
4356  rm -f conftest.er1
4357  cat conftest.err >&5
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); } &&
4360         { ac_try='test -z "$ac_f77_werror_flag"
4361                         || test ! -s conftest.err'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; } &&
4367         { ac_try='test -s conftest.$ac_objext'
4368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369  (eval $ac_try) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); }; }; then
4373  ac_cv_prog_f77_g=yes
4374else
4375  echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378ac_cv_prog_f77_g=no
4379fi
4380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4381
4382fi
4383echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4384echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4385if test "$ac_test_FFLAGS" = set; then
4386  FFLAGS=$ac_save_FFLAGS
4387elif test $ac_cv_prog_f77_g = yes; then
4388  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4389    FFLAGS="-g -O2"
4390  else
4391    FFLAGS="-g"
4392  fi
4393else
4394  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4395    FFLAGS="-O2"
4396  else
4397    FFLAGS=
4398  fi
4399fi
4400
4401G77=`test $ac_compiler_gnu = yes && echo yes`
4402ac_ext=f
4403ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4404ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4406
4407else
4408  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4409echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4410fi
4411
4412FFLAGS="$save_fflags"
4413
4414# Check if a project specific FFLAGS variable has been set
4415if test x$COIN_PRJCT != x; then
4416  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4417  if test x$coin_tmp = xset; then
4418    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4419  fi
4420fi
4421
4422if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4423
4424  coin_add_fflags=
4425  coin_opt_fflags=
4426  coin_dbg_fflags=
4427  coin_warn_fflags=
4428
4429  if test "$G77" = "yes"; then
4430    coin_opt_fflags="-O3"
4431    coin_add_fflags="-pipe"
4432    coin_dbg_fflags="-g"
4433    case $enable_doscompile in
4434      mingw)
4435        FFLAGS="-mno-cygwin"
4436        cat >conftest.$ac_ext <<_ACEOF
4437      program main
4438      write(*,*) 'Hello world'
4439      end
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443  (eval $ac_link) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } &&
4450         { ac_try='test -z "$ac_f77_werror_flag"
4451                         || test ! -s conftest.err'
4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; } &&
4457         { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468fi
4469rm -f conftest.err conftest.$ac_objext \
4470      conftest$ac_exeext conftest.$ac_ext
4471        FFLAGS=
4472      ;;
4473    esac
4474  else
4475    case $build in
4476      *-cygwin* | *-mingw*)
4477        case $F77 in
4478          ifort* | */ifort* | IFORT* | */IFORT* )
4479            coin_opt_fflags='-MT -O3'
4480            coin_add_fflags='-fpp -nologo'
4481            coin_dbg_fflags='-MTd -debug'
4482          ;;
4483          compile_f2c*)
4484            coin_opt_fflags='-MT -O2'
4485            coin_add_fflags='-nologo -wd4996'
4486            coin_dbg_fflags='-MTd'
4487          ;;
4488        esac
4489        ;;
4490      *-linux-*)
4491        case $F77 in
4492          ifc* | */ifc* | ifort* | */ifort*)
4493            coin_opt_fflags="-O3 -ip"
4494            coin_add_fflags="-cm -w90 -w95"
4495            coin_dbg_fflags="-g -CA -CB -CS"
4496            # Check if -i_dynamic is necessary (for new glibc library)
4497            FFLAGS=
4498            cat >conftest.$ac_ext <<_ACEOF
4499      program main
4500      write(*,*) 'Hello world'
4501      end
4502_ACEOF
4503rm -f conftest.$ac_objext conftest$ac_exeext
4504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505  (eval $ac_link) 2>conftest.er1
4506  ac_status=$?
4507  grep -v '^ *+' conftest.er1 >conftest.err
4508  rm -f conftest.er1
4509  cat conftest.err >&5
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); } &&
4512         { ac_try='test -z "$ac_f77_werror_flag"
4513                         || test ! -s conftest.err'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; } &&
4519         { ac_try='test -s conftest$ac_exeext'
4520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521  (eval $ac_try) 2>&5
4522  ac_status=$?
4523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524  (exit $ac_status); }; }; then
4525  :
4526else
4527  echo "$as_me: failed program was:" >&5
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
4530coin_add_fflags="-i_dynamic $coin_add_fflags"
4531fi
4532rm -f conftest.err conftest.$ac_objext \
4533      conftest$ac_exeext conftest.$ac_ext
4534            ;;
4535          pgf77* | */pgf77* | pgf90* | */pgf90*)
4536            coin_opt_fflags="-fast"
4537            coin_add_fflags="-Kieee -pc 64"
4538            coin_dbg_fflags="-g"
4539          ;;
4540        esac
4541        ;;
4542      *-ibm-*)
4543        case "$F77" in
4544          xlf* | */xlf* | mpxlf* | */mpxlf* )
4545            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4546            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4547            coin_dbg_fflags="-g -C"
4548            ;;
4549        esac
4550        ;;
4551      *-hp-*)
4552        coin_opt_fflags="+O3"
4553        coin_add_fflags="+U77"
4554        coin_dbg_fflags="-C -g"
4555        ;;
4556      *-*-solaris*)
4557        coin_opt_fflags="-O4"
4558        coin_dbg_fflags="-g"
4559        ;;
4560      *-sgi-*)
4561        coin_opt_fflags="-O5 -OPT:Olimit=0"
4562        coin_dbg_fflags="-g"
4563        ;;
4564    esac
4565  fi
4566
4567  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4568    coin_dbg_fflags="-g"
4569  fi
4570
4571  if test -z "$coin_opt_fflags"; then
4572    # Try if -O option works if nothing else is set
4573    FFLAGS=-O
4574    cat >conftest.$ac_ext <<_ACEOF
4575      program main
4576      integer i
4577      end
4578_ACEOF
4579rm -f conftest.$ac_objext conftest$ac_exeext
4580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4581  (eval $ac_link) 2>conftest.er1
4582  ac_status=$?
4583  grep -v '^ *+' conftest.er1 >conftest.err
4584  rm -f conftest.er1
4585  cat conftest.err >&5
4586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587  (exit $ac_status); } &&
4588         { ac_try='test -z "$ac_f77_werror_flag"
4589                         || test ! -s conftest.err'
4590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591  (eval $ac_try) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; } &&
4595         { ac_try='test -s conftest$ac_exeext'
4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; }; then
4601  coin_opt_fflags="-O"
4602else
4603  echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606fi
4607rm -f conftest.err conftest.$ac_objext \
4608      conftest$ac_exeext conftest.$ac_ext
4609  fi
4610
4611  # if PM doesn't want the warning messages, take them out
4612  if test x"$coin_skip_warn_fflags" = xyes; then
4613    coin_warn_fflags=
4614  fi
4615
4616  if test x${DBG_FFLAGS+set} != xset; then
4617    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4618  fi
4619  if test x${OPT_FFLAGS+set} != xset; then
4620    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4621  fi
4622
4623  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4624  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4625
4626  if test "$coin_debug_compile" = "true"; then
4627    FFLAGS="$DBG_FFLAGS"
4628  else
4629    FFLAGS="$OPT_FFLAGS"
4630  fi
4631else
4632  FFLAGS="$FFLAGS $ADD_FFLAGS"
4633  if test x${DBG_FFLAGS+set} != xset; then
4634    DBG_FFLAGS="$FFLAGS"
4635  fi
4636  if test x${OPT_FFLAGS+set} != xset; then
4637    OPT_FFLAGS="$FFLAGS"
4638  fi
4639fi
4640
4641# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4642case "$FFLAGS" in
4643  *-mno-cygwin*)
4644    if test x${CPPFLAGS+set} != xset ; then
4645      CPPFLAGS="-mno-cygwin"
4646    else
4647      case "$CPPFLAGS" in
4648        *-mno-cygwin*)
4649          ;;
4650        *)
4651          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4652          ;;
4653      esac
4654    fi ;;
4655esac
4656
4657# Try if FFLAGS works
4658if test "$F77" != "unavailable" ; then
4659  cat >conftest.$ac_ext <<_ACEOF
4660      program main
4661      integer i
4662      end
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
4665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666  (eval $ac_link) 2>conftest.er1
4667  ac_status=$?
4668  grep -v '^ *+' conftest.er1 >conftest.err
4669  rm -f conftest.er1
4670  cat conftest.err >&5
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); } &&
4673         { ac_try='test -z "$ac_f77_werror_flag"
4674                         || test ! -s conftest.err'
4675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676  (eval $ac_try) 2>&5
4677  ac_status=$?
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); }; } &&
4680         { ac_try='test -s conftest$ac_exeext'
4681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682  (eval $ac_try) 2>&5
4683  ac_status=$?
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); }; }; then
4686  :
4687else
4688  echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691FFLAGS=
4692fi
4693rm -f conftest.err conftest.$ac_objext \
4694      conftest$ac_exeext conftest.$ac_ext
4695  if test -z "$FFLAGS"; then
4696    { 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
4697echo "$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;}
4698    FFLAGS='-O'
4699    cat >conftest.$ac_ext <<_ACEOF
4700      program main
4701      integer i
4702      end
4703_ACEOF
4704rm -f conftest.$ac_objext conftest$ac_exeext
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706  (eval $ac_link) 2>conftest.er1
4707  ac_status=$?
4708  grep -v '^ *+' conftest.er1 >conftest.err
4709  rm -f conftest.er1
4710  cat conftest.err >&5
4711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712  (exit $ac_status); } &&
4713         { ac_try='test -z "$ac_f77_werror_flag"
4714                         || test ! -s conftest.err'
4715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716  (eval $ac_try) 2>&5
4717  ac_status=$?
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); }; } &&
4720         { ac_try='test -s conftest$ac_exeext'
4721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722  (eval $ac_try) 2>&5
4723  ac_status=$?
4724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725  (exit $ac_status); }; }; then
4726  :
4727else
4728  echo "$as_me: failed program was:" >&5
4729sed 's/^/| /' conftest.$ac_ext >&5
4730
4731FFLAGS=
4732fi
4733rm -f conftest.err conftest.$ac_objext \
4734      conftest$ac_exeext conftest.$ac_ext
4735    if test -z "$FFLAGS"; then
4736      { 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
4737echo "$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;}
4738    fi
4739  fi
4740fi
4741
4742{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4743echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4744
4745
4746if test x"$MPIF77" = x; then :; else
4747  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4748echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4749  F77="$MPIF77"
4750fi
4751
4752case "$F77" in
4753  ifort* | */ifort* | IFORT* | */IFORT*)
4754    case $build in
4755  *-mingw*)
4756    if test "${LD+set}" = set; then :; else
4757      LD=link
4758    fi
4759    ;;
4760 esac
4761 case $enable_doscompile in
4762   msvc)
4763     if test "x${LD+set}" = xset; then :; else
4764       LD=link
4765     fi
4766     ;;
4767 esac
4768
4769    ;;
4770esac
4771
4772ac_ext=c
4773ac_cpp='$CPP $CPPFLAGS'
4774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778
4779
4780# Initialize automake and libtool
4781# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4782{
4783
4784
4785
4786# START
4787
4788# Test if force_shared has been set
4789if test "x" = xforce_shared; then
4790  if test x$enable_shared = xno; then
4791    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4792echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4793   { (exit 1); exit 1; }; }
4794  fi
4795  enable_shared=yes;
4796else
4797  # On Cygwin and AIX, building DLLs doesn't work
4798  case $build in
4799    *-cygwin*)
4800      coin_disable_shared=yes
4801      platform=Cygwin
4802    ;;
4803    *-aix*)
4804      coin_disable_shared=yes
4805      platform=AIX
4806    ;;
4807    *-mingw*)
4808      coin_disable_shared=yes
4809      platform="Msys"
4810#      case "$CXX" in
4811#        cl*)
4812#          coin_disable_shared=yes
4813#          platform="Msys with cl"
4814#      ;;
4815#      esac
4816    ;;
4817  esac
4818fi
4819if test x"$coin_disable_shared" = xyes; then
4820  if test x"$enable_shared" = xyes; then
4821    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4822echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4823  fi
4824  enable_shared=no
4825fi
4826# By default, we only want the shared objects to be compiled
4827# Check whether --enable-static or --disable-static was given.
4828if test "${enable_static+set}" = set; then
4829  enableval="$enable_static"
4830  p=${PACKAGE-default}
4831    case $enableval in
4832    yes) enable_static=yes ;;
4833    no) enable_static=no ;;
4834    *)
4835     enable_static=no
4836      # Look at the argument we got.  We use all the common list separators.
4837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4838      for pkg in $enableval; do
4839        IFS="$lt_save_ifs"
4840        if test "X$pkg" = "X$p"; then
4841          enable_static=yes
4842        fi
4843      done
4844      IFS="$lt_save_ifs"
4845      ;;
4846    esac
4847else
4848  enable_static=no
4849fi;
4850
4851
4852
4853
4854# Initialize automake
4855echo "$as_me:$LINENO: checking for egrep" >&5
4856echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4857if test "${ac_cv_prog_egrep+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4861    then ac_cv_prog_egrep='grep -E'
4862    else ac_cv_prog_egrep='egrep'
4863    fi
4864fi
4865echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4866echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4867 EGREP=$ac_cv_prog_egrep
4868
4869
4870am__api_version="1.9"
4871# Find a good install program.  We prefer a C program (faster),
4872# so one script is as good as another.  But avoid the broken or
4873# incompatible versions:
4874# SysV /etc/install, /usr/sbin/install
4875# SunOS /usr/etc/install
4876# IRIX /sbin/install
4877# AIX /bin/install
4878# AmigaOS /C/install, which installs bootblocks on floppy discs
4879# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4880# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4881# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4882# OS/2's system install, which has a completely different semantic
4883# ./install, which can be erroneously created by make from ./install.sh.
4884echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4885echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4886if test -z "$INSTALL"; then
4887if test "${ac_cv_path_install+set}" = set; then
4888  echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893  IFS=$as_save_IFS
4894  test -z "$as_dir" && as_dir=.
4895  # Account for people who put trailing slashes in PATH elements.
4896case $as_dir/ in
4897  ./ | .// | /cC/* | \
4898  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4899  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4900  /usr/ucb/* ) ;;
4901  *)
4902    # OSF1 and SCO ODT 3.0 have their own names for install.
4903    # Don't use installbsd from OSF since it installs stuff as root
4904    # by default.
4905    for ac_prog in ginstall scoinst install; do
4906      for ac_exec_ext in '' $ac_executable_extensions; do
4907        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4908          if test $ac_prog = install &&
4909            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4910            # AIX install.  It has an incompatible calling convention.
4911            :
4912          elif test $ac_prog = install &&
4913            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4914            # program-specific install script used by HP pwplus--don't use.
4915            :
4916          else
4917            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4918            break 3
4919          fi
4920        fi
4921      done
4922    done
4923    ;;
4924esac
4925done
4926
4927
4928fi
4929  if test "${ac_cv_path_install+set}" = set; then
4930    INSTALL=$ac_cv_path_install
4931  else
4932    # As a last resort, use the slow shell script.  We don't cache a
4933    # path for INSTALL within a source directory, because that will
4934    # break other packages using the cache if that directory is
4935    # removed, or if the path is relative.
4936    INSTALL=$ac_install_sh
4937  fi
4938fi
4939echo "$as_me:$LINENO: result: $INSTALL" >&5
4940echo "${ECHO_T}$INSTALL" >&6
4941
4942# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4943# It thinks the first close brace ends the variable substitution.
4944test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4945
4946test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4947
4948test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4949
4950echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4951echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4952# Just in case
4953sleep 1
4954echo timestamp > conftest.file
4955# Do `set' in a subshell so we don't clobber the current shell's
4956# arguments.  Must try -L first in case configure is actually a
4957# symlink; some systems play weird games with the mod time of symlinks
4958# (eg FreeBSD returns the mod time of the symlink's containing
4959# directory).
4960if (
4961   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4962   if test "$*" = "X"; then
4963      # -L didn't work.
4964      set X `ls -t $srcdir/configure conftest.file`
4965   fi
4966   rm -f conftest.file
4967   if test "$*" != "X $srcdir/configure conftest.file" \
4968      && test "$*" != "X conftest.file $srcdir/configure"; then
4969
4970      # If neither matched, then we have a broken ls.  This can happen
4971      # if, for instance, CONFIG_SHELL is bash and it inherits a
4972      # broken ls alias from the environment.  This has actually
4973      # happened.  Such a system could not be considered "sane".
4974      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4975alias in your environment" >&5
4976echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4977alias in your environment" >&2;}
4978   { (exit 1); exit 1; }; }
4979   fi
4980
4981   test "$2" = conftest.file
4982   )
4983then
4984   # Ok.
4985   :
4986else
4987   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4988Check your system clock" >&5
4989echo "$as_me: error: newly created file is older than distributed files!
4990Check your system clock" >&2;}
4991   { (exit 1); exit 1; }; }
4992fi
4993echo "$as_me:$LINENO: result: yes" >&5
4994echo "${ECHO_T}yes" >&6
4995test "$program_prefix" != NONE &&
4996  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4997# Use a double $ so make ignores it.
4998test "$program_suffix" != NONE &&
4999  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5000# Double any \ or $.  echo might interpret backslashes.
5001# By default was `s,x,x', remove it if useless.
5002cat <<\_ACEOF >conftest.sed
5003s/[\\$]/&&/g;s/;s,x,x,$//
5004_ACEOF
5005program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5006rm conftest.sed
5007
5008# expand $ac_aux_dir to an absolute path
5009am_aux_dir=`cd $ac_aux_dir && pwd`
5010
5011test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5012# Use eval to expand $SHELL
5013if eval "$MISSING --run true"; then
5014  am_missing_run="$MISSING --run "
5015else
5016  am_missing_run=
5017  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5018echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5019fi
5020
5021if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5022  # We used to keeping the `.' as first argument, in order to
5023  # allow $(mkdir_p) to be used without argument.  As in
5024  #   $(mkdir_p) $(somedir)
5025  # where $(somedir) is conditionally defined.  However this is wrong
5026  # for two reasons:
5027  #  1. if the package is installed by a user who cannot write `.'
5028  #     make install will fail,
5029  #  2. the above comment should most certainly read
5030  #     $(mkdir_p) $(DESTDIR)$(somedir)
5031  #     so it does not work when $(somedir) is undefined and
5032  #     $(DESTDIR) is not.
5033  #  To support the latter case, we have to write
5034  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5035  #  so the `.' trick is pointless.
5036  mkdir_p='mkdir -p --'
5037else
5038  # On NextStep and OpenStep, the `mkdir' command does not
5039  # recognize any option.  It will interpret all options as
5040  # directories to create, and then abort because `.' already
5041  # exists.
5042  for d in ./-p ./--version;
5043  do
5044    test -d $d && rmdir $d
5045  done
5046  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5047  if test -f "$ac_aux_dir/mkinstalldirs"; then
5048    mkdir_p='$(mkinstalldirs)'
5049  else
5050    mkdir_p='$(install_sh) -d'
5051  fi
5052fi
5053
5054for ac_prog in gawk mawk nawk awk
5055do
5056  # Extract the first word of "$ac_prog", so it can be a program name with args.
5057set dummy $ac_prog; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_AWK+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  if test -n "$AWK"; then
5064  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071  for ac_exec_ext in '' $ac_executable_extensions; do
5072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_AWK="$ac_prog"
5074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078done
5079
5080fi
5081fi
5082AWK=$ac_cv_prog_AWK
5083if test -n "$AWK"; then
5084  echo "$as_me:$LINENO: result: $AWK" >&5
5085echo "${ECHO_T}$AWK" >&6
5086else
5087  echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091  test -n "$AWK" && break
5092done
5093
5094echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5095echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5096set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5097if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5098  echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100  cat >conftest.make <<\_ACEOF
5101all:
5102        @echo 'ac_maketemp="$(MAKE)"'
5103_ACEOF
5104# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5105eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5106if test -n "$ac_maketemp"; then
5107  eval ac_cv_prog_make_${ac_make}_set=yes
5108else
5109  eval ac_cv_prog_make_${ac_make}_set=no
5110fi
5111rm -f conftest.make
5112fi
5113if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5114  echo "$as_me:$LINENO: result: yes" >&5
5115echo "${ECHO_T}yes" >&6
5116  SET_MAKE=
5117else
5118  echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
5120  SET_MAKE="MAKE=${MAKE-make}"
5121fi
5122
5123rm -rf .tst 2>/dev/null
5124mkdir .tst 2>/dev/null
5125if test -d .tst; then
5126  am__leading_dot=.
5127else
5128  am__leading_dot=_
5129fi
5130rmdir .tst 2>/dev/null
5131
5132DEPDIR="${am__leading_dot}deps"
5133
5134          ac_config_commands="$ac_config_commands depfiles"
5135
5136
5137am_make=${MAKE-make}
5138cat > confinc << 'END'
5139am__doit:
5140        @echo done
5141.PHONY: am__doit
5142END
5143# If we don't find an include directive, just comment out the code.
5144echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5145echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5146am__include="#"
5147am__quote=
5148_am_result=none
5149# First try GNU make style include.
5150echo "include confinc" > confmf
5151# We grep out `Entering directory' and `Leaving directory'
5152# messages which can occur if `w' ends up in MAKEFLAGS.
5153# In particular we don't look at `^make:' because GNU make might
5154# be invoked under some other name (usually "gmake"), in which
5155# case it prints its new name instead of `make'.
5156if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5157   am__include=include
5158   am__quote=
5159   _am_result=GNU
5160fi
5161# Now try BSD make style include.
5162if test "$am__include" = "#"; then
5163   echo '.include "confinc"' > confmf
5164   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5165      am__include=.include
5166      am__quote="\""
5167      _am_result=BSD
5168   fi
5169fi
5170
5171
5172echo "$as_me:$LINENO: result: $_am_result" >&5
5173echo "${ECHO_T}$_am_result" >&6
5174rm -f confinc confmf
5175
5176# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5177if test "${enable_dependency_tracking+set}" = set; then
5178  enableval="$enable_dependency_tracking"
5179
5180fi;
5181if test "x$enable_dependency_tracking" != xno; then
5182  am_depcomp="$ac_aux_dir/depcomp"
5183  AMDEPBACKSLASH='\'
5184fi
5185
5186
5187if test "x$enable_dependency_tracking" != xno; then
5188  AMDEP_TRUE=
5189  AMDEP_FALSE='#'
5190else
5191  AMDEP_TRUE='#'
5192  AMDEP_FALSE=
5193fi
5194
5195
5196
5197
5198
5199# AC_MSG_NOTICE([Beginning automake initialisation.])
5200# Stuff for automake
5201# test to see if srcdir already configured
5202if test "`cd $srcdir && pwd`" != "`pwd`" &&
5203   test -f $srcdir/config.status; then
5204  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5205echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5206   { (exit 1); exit 1; }; }
5207fi
5208
5209# test whether we have cygpath
5210if test -z "$CYGPATH_W"; then
5211  if (cygpath --version) >/dev/null 2>/dev/null; then
5212    CYGPATH_W='cygpath -w'
5213  else
5214    CYGPATH_W=echo
5215  fi
5216fi
5217
5218
5219# Define the identity of the package.
5220 PACKAGE='cbc'
5221 VERSION='trunk'
5222
5223
5224cat >>confdefs.h <<_ACEOF
5225#define PACKAGE "$PACKAGE"
5226_ACEOF
5227
5228
5229cat >>confdefs.h <<_ACEOF
5230#define VERSION "$VERSION"
5231_ACEOF
5232
5233# Some tools Automake needs.
5234
5235ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5236
5237
5238AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5239
5240
5241AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5242
5243
5244AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5245
5246
5247MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5248
5249install_sh=${install_sh-"$am_aux_dir/install-sh"}
5250
5251# Installed binaries are usually stripped using `strip' when the user
5252# run `make install-strip'.  However `strip' might not be the right
5253# tool to use in cross-compilation environments, therefore Automake
5254# will honor the `STRIP' environment variable to overrule this program.
5255if test "$cross_compiling" != no; then
5256  if test -n "$ac_tool_prefix"; then
5257  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5258set dummy ${ac_tool_prefix}strip; ac_word=$2
5259echo "$as_me:$LINENO: checking for $ac_word" >&5
5260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5261if test "${ac_cv_prog_STRIP+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264  if test -n "$STRIP"; then
5265  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272  for ac_exec_ext in '' $ac_executable_extensions; do
5273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279done
5280
5281fi
5282fi
5283STRIP=$ac_cv_prog_STRIP
5284if test -n "$STRIP"; then
5285  echo "$as_me:$LINENO: result: $STRIP" >&5
5286echo "${ECHO_T}$STRIP" >&6
5287else
5288  echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290fi
5291
5292fi
5293if test -z "$ac_cv_prog_STRIP"; then
5294  ac_ct_STRIP=$STRIP
5295  # Extract the first word of "strip", so it can be a program name with args.
5296set dummy strip; ac_word=$2
5297echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  if test -n "$ac_ct_STRIP"; then
5303  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308  IFS=$as_save_IFS
5309  test -z "$as_dir" && as_dir=.
5310  for ac_exec_ext in '' $ac_executable_extensions; do
5311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312    ac_cv_prog_ac_ct_STRIP="strip"
5313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314    break 2
5315  fi
5316done
5317done
5318
5319  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5320fi
5321fi
5322ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5323if test -n "$ac_ct_STRIP"; then
5324  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5325echo "${ECHO_T}$ac_ct_STRIP" >&6
5326else
5327  echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
5329fi
5330
5331  STRIP=$ac_ct_STRIP
5332else
5333  STRIP="$ac_cv_prog_STRIP"
5334fi
5335
5336fi
5337INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5338
5339# We need awk for the "check" target.  The system "awk" is bad on
5340# some platforms.
5341# Always define AMTAR for backward compatibility.
5342
5343AMTAR=${AMTAR-"${am_missing_run}tar"}
5344
5345am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5346
5347
5348
5349
5350depcc="$CC"   am_compiler_list=
5351
5352echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5353echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5354if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5358  # We make a subdir and do the tests there.  Otherwise we can end up
5359  # making bogus files that we don't know about and never remove.  For
5360  # instance it was reported that on HP-UX the gcc test will end up
5361  # making a dummy file named `D' -- because `-MD' means `put the output
5362  # in D'.
5363  mkdir conftest.dir
5364  # Copy depcomp to subdir because otherwise we won't find it if we're
5365  # using a relative directory.
5366  cp "$am_depcomp" conftest.dir
5367  cd conftest.dir
5368  # We will build objects and dependencies in a subdirectory because
5369  # it helps to detect inapplicable dependency modes.  For instance
5370  # both Tru64's cc and ICC support -MD to output dependencies as a
5371  # side effect of compilation, but ICC will put the dependencies in
5372  # the current directory while Tru64 will put them in the object
5373  # directory.
5374  mkdir sub
5375
5376  am_cv_CC_dependencies_compiler_type=none
5377  if test "$am_compiler_list" = ""; then
5378     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5379  fi
5380  for depmode in $am_compiler_list; do
5381    # Setup a source with many dependencies, because some compilers
5382    # like to wrap large dependency lists on column 80 (with \), and
5383    # we should not choose a depcomp mode which is confused by this.
5384    #
5385    # We need to recreate these files for each test, as the compiler may
5386    # overwrite some of them when testing with obscure command lines.
5387    # This happens at least with the AIX C compiler.
5388    : > sub/conftest.c
5389    for i in 1 2 3 4 5 6; do
5390      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5391      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5392      # Solaris 8's {/usr,}/bin/sh.
5393      touch sub/conftst$i.h
5394    done
5395    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5396
5397    case $depmode in
5398    nosideeffect)
5399      # after this tag, mechanisms are not by side-effect, so they'll
5400      # only be used when explicitly requested
5401      if test "x$enable_dependency_tracking" = xyes; then
5402        continue
5403      else
5404        break
5405      fi
5406      ;;
5407    none) break ;;
5408    esac
5409    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5410    # mode.  It turns out that the SunPro C++ compiler does not properly
5411    # handle `-M -o', and we need to detect this.
5412    if depmode=$depmode \
5413       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5414       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5415       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5416         >/dev/null 2>conftest.err &&
5417       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5418       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5419       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5420      # icc doesn't choke on unknown options, it will just issue warnings
5421      # or remarks (even with -Werror).  So we grep stderr for any message
5422      # that says an option was ignored or not supported.
5423      # When given -MP, icc 7.0 and 7.1 complain thusly:
5424      #   icc: Command line warning: ignoring option '-M'; no argument required
5425      # The diagnosis changed in icc 8.0:
5426      #   icc: Command line remark: option '-MP' not supported
5427      if (grep 'ignoring option' conftest.err ||
5428          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5429        am_cv_CC_dependencies_compiler_type=$depmode
5430        break
5431      fi
5432    fi
5433  done
5434
5435  cd ..
5436  rm -rf conftest.dir
5437else
5438  am_cv_CC_dependencies_compiler_type=none
5439fi
5440
5441fi
5442echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5443echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5444CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5445
5446
5447
5448if
5449  test "x$enable_dependency_tracking" != xno \
5450  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5451  am__fastdepCC_TRUE=
5452  am__fastdepCC_FALSE='#'
5453else
5454  am__fastdepCC_TRUE='#'
5455  am__fastdepCC_FALSE=
5456fi
5457
5458
5459depcc="$CXX"  am_compiler_list=
5460
5461echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5462echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5463if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5464  echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467  # We make a subdir and do the tests there.  Otherwise we can end up
5468  # making bogus files that we don't know about and never remove.  For
5469  # instance it was reported that on HP-UX the gcc test will end up
5470  # making a dummy file named `D' -- because `-MD' means `put the output
5471  # in D'.
5472  mkdir conftest.dir
5473  # Copy depcomp to subdir because otherwise we won't find it if we're
5474  # using a relative directory.
5475  cp "$am_depcomp" conftest.dir
5476  cd conftest.dir
5477  # We will build objects and dependencies in a subdirectory because
5478  # it helps to detect inapplicable dependency modes.  For instance
5479  # both Tru64's cc and ICC support -MD to output dependencies as a
5480  # side effect of compilation, but ICC will put the dependencies in
5481  # the current directory while Tru64 will put them in the object
5482  # directory.
5483  mkdir sub
5484
5485  am_cv_CXX_dependencies_compiler_type=none
5486  if test "$am_compiler_list" = ""; then
5487     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5488  fi
5489  for depmode in $am_compiler_list; do
5490    # Setup a source with many dependencies, because some compilers
5491    # like to wrap large dependency lists on column 80 (with \), and
5492    # we should not choose a depcomp mode which is confused by this.
5493    #
5494    # We need to recreate these files for each test, as the compiler may
5495    # overwrite some of them when testing with obscure command lines.
5496    # This happens at least with the AIX C compiler.
5497    : > sub/conftest.c
5498    for i in 1 2 3 4 5 6; do
5499      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5500      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5501      # Solaris 8's {/usr,}/bin/sh.
5502      touch sub/conftst$i.h
5503    done
5504    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5505
5506    case $depmode in
5507    nosideeffect)
5508      # after this tag, mechanisms are not by side-effect, so they'll
5509      # only be used when explicitly requested
5510      if test "x$enable_dependency_tracking" = xyes; then
5511        continue
5512      else
5513        break
5514      fi
5515      ;;
5516    none) break ;;
5517    esac
5518    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519    # mode.  It turns out that the SunPro C++ compiler does not properly
5520    # handle `-M -o', and we need to detect this.
5521    if depmode=$depmode \
5522       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5523       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5524       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5525         >/dev/null 2>conftest.err &&
5526       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5527       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5528       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5529      # icc doesn't choke on unknown options, it will just issue warnings
5530      # or remarks (even with -Werror).  So we grep stderr for any message
5531      # that says an option was ignored or not supported.
5532      # When given -MP, icc 7.0 and 7.1 complain thusly:
5533      #   icc: Command line warning: ignoring option '-M'; no argument required
5534      # The diagnosis changed in icc 8.0:
5535      #   icc: Command line remark: option '-MP' not supported
5536      if (grep 'ignoring option' conftest.err ||
5537          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5538        am_cv_CXX_dependencies_compiler_type=$depmode
5539        break
5540      fi
5541    fi
5542  done
5543
5544  cd ..
5545  rm -rf conftest.dir
5546else
5547  am_cv_CXX_dependencies_compiler_type=none
5548fi
5549
5550fi
5551echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5552echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5553CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5554
5555
5556
5557if
5558  test "x$enable_dependency_tracking" != xno \
5559  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5560  am__fastdepCXX_TRUE=
5561  am__fastdepCXX_FALSE='#'
5562else
5563  am__fastdepCXX_TRUE='#'
5564  am__fastdepCXX_FALSE=
5565fi
5566
5567
5568
5569echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5570echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5571    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5572if test "${enable_maintainer_mode+set}" = set; then
5573  enableval="$enable_maintainer_mode"
5574  USE_MAINTAINER_MODE=$enableval
5575else
5576  USE_MAINTAINER_MODE=no
5577fi;
5578  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5579echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5580
5581
5582if test $USE_MAINTAINER_MODE = yes; then
5583  MAINTAINER_MODE_TRUE=
5584  MAINTAINER_MODE_FALSE='#'
5585else
5586  MAINTAINER_MODE_TRUE='#'
5587  MAINTAINER_MODE_FALSE=
5588fi
5589
5590  MAINT=$MAINTAINER_MODE_TRUE
5591
5592
5593
5594coin_have_externals=no
5595if test "$enable_maintainer_mode" = yes; then
5596
5597  # If maintainer mode is chosen, we make sure that the correct versions
5598  # of the tools are used, and that we know where libtool.m4 is (to
5599  # recreate acinclude.m4)
5600
5601
5602  LIBTOOLM4=
5603  # Normally, $HOME
5604  AUTOTOOLS_DFLT=$HOME
5605
5606  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5607echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5608if test "${ac_cv_use_correct_autotools+set}" = set; then
5609  echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611  ac_cv_use_correct_autotools=check
5612fi
5613echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5614echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5615
5616  if test $ac_cv_use_correct_autotools = check; then
5617    ac_cv_use_correct_autotools=yes
5618    # Check if we have autoconf
5619    # Extract the first word of "autoconf", so it can be a program name with args.
5620set dummy autoconf; ac_word=$2
5621echo "$as_me:$LINENO: checking for $ac_word" >&5
5622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5623if test "${ac_cv_prog_have_autoconf+set}" = set; then
5624  echo $ECHO_N "(cached) $ECHO_C" >&6
5625else
5626  if test -n "$have_autoconf"; then
5627  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634  for ac_exec_ext in '' $ac_executable_extensions; do
5635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636    ac_cv_prog_have_autoconf="yes"
5637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641done
5642
5643  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5644fi
5645fi
5646have_autoconf=$ac_cv_prog_have_autoconf
5647if test -n "$have_autoconf"; then
5648  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5649echo "${ECHO_T}$have_autoconf" >&6
5650else
5651  echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653fi
5654
5655    if test $have_autoconf = no; then
5656      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5657echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5658   { (exit 1); exit 1; }; }
5659    fi
5660
5661    # Check whether autoconf is the correct version
5662    correct_version='2.59'
5663    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5664    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5665echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5666    autoconf --version > confauto.out 2>&1
5667    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5668      echo "$as_me:$LINENO: result: yes" >&5
5669echo "${ECHO_T}yes" >&6
5670    else
5671      rm -f confauto.out
5672      echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5675echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5676   { (exit 1); exit 1; }; }
5677    fi
5678    rm -f confauto.out
5679
5680    # Check if the executable autoconf is picked up from the correct location
5681    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5682echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5683    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5684    autoconf_dir=`cd $autoconf_dir; pwd`
5685    if test x$AUTOTOOLS_DIR = x; then
5686      want_dir=$AUTOTOOLS_DFLT/bin
5687    else
5688      want_dir=$AUTOTOOLS_DIR/bin
5689    fi
5690    if test $autoconf_dir = `cd $want_dir; pwd`; then
5691      echo "$as_me:$LINENO: result: yes" >&5
5692echo "${ECHO_T}yes" >&6
5693    else
5694      rm -f confauto.out
5695      echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5698echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5699   { (exit 1); exit 1; }; }
5700    fi
5701
5702    # Check if we have automake
5703    # Extract the first word of "automake", so it can be a program name with args.
5704set dummy automake; ac_word=$2
5705echo "$as_me:$LINENO: checking for $ac_word" >&5
5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707if test "${ac_cv_prog_have_automake+set}" = set; then
5708  echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710  if test -n "$have_automake"; then
5711  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718  for ac_exec_ext in '' $ac_executable_extensions; do
5719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720    ac_cv_prog_have_automake="yes"
5721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725done
5726
5727  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5728fi
5729fi
5730have_automake=$ac_cv_prog_have_automake
5731if test -n "$have_automake"; then
5732  echo "$as_me:$LINENO: result: $have_automake" >&5
5733echo "${ECHO_T}$have_automake" >&6
5734else
5735  echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739    if test $have_automake = no; then
5740      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5741echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5742   { (exit 1); exit 1; }; }
5743    fi
5744
5745    # Check whether automake is the correct version
5746    correct_version='1.9.6'
5747    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5748    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5749echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5750    automake --version > confauto.out 2>&1
5751    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5752      echo "$as_me:$LINENO: result: yes" >&5
5753echo "${ECHO_T}yes" >&6
5754    else
5755      rm -f confauto.out
5756      echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5759echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5760   { (exit 1); exit 1; }; }
5761    fi
5762    rm -f confauto.out
5763
5764    # Check if the executable automake is picked up from the correct location
5765    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5766echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5767    automake_dir=`which automake | sed -e 's=/automake=='`
5768    automake_dir=`cd $automake_dir; pwd`
5769    if test x$AUTOTOOLS_DIR = x; then
5770      want_dir=$AUTOTOOLS_DFLT/bin
5771    else
5772      want_dir=$AUTOTOOLS_DIR/bin
5773    fi
5774    if test $automake_dir = `cd $want_dir; pwd`; then
5775      echo "$as_me:$LINENO: result: yes" >&5
5776echo "${ECHO_T}yes" >&6
5777    else
5778      rm -f confauto.out
5779      echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5782echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5783   { (exit 1); exit 1; }; }
5784    fi
5785
5786    # Check if this is the correct version of libtool (with escaped dots)
5787    if test x$AUTOTOOLS_DIR = x; then
5788      want_dir=$AUTOTOOLS_DFLT/share
5789    else
5790      want_dir=$AUTOTOOLS_DIR/share
5791    fi
5792    correct_version='1.5.22'
5793    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5794    if test -r $want_dir/libtool/ltmain.sh; then
5795  have_ltmain=yes
5796  :
5797else
5798  have_ltmain=no
5799  :
5800fi
5801
5802    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5803echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5804    if test $have_ltmain = yes; then
5805    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5806        echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808      else
5809        echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5812echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5813   { (exit 1); exit 1; }; }
5814      fi
5815    else
5816      echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6
5818      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5819echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5820   { (exit 1); exit 1; }; }
5821    fi
5822  fi
5823
5824  # Check if we can find the libtool file
5825  if test x$AUTOTOOLS_DIR = x; then
5826    want_dir=$AUTOTOOLS_DFLT/share
5827  else
5828    want_dir=$AUTOTOOLS_DIR/share
5829  fi
5830  if test -r $want_dir/aclocal/libtool.m4; then
5831  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5832  :
5833else
5834  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5835echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5836   { (exit 1); exit 1; }; }
5837  :
5838fi
5839
5840
5841  # Check if we have an Externals file
5842  if test -r $srcdir/Externals; then
5843    coin_have_externals=yes
5844  fi
5845  # Check if subversion is installed and understands https
5846  # Extract the first word of "svn", so it can be a program name with args.
5847set dummy svn; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_have_svn+set}" = set; then
5851  echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853  if test -n "$have_svn"; then
5854  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859  IFS=$as_save_IFS
5860  test -z "$as_dir" && as_dir=.
5861  for ac_exec_ext in '' $ac_executable_extensions; do
5862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863    ac_cv_prog_have_svn="yes"
5864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865    break 2
5866  fi
5867done
5868done
5869
5870  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5871fi
5872fi
5873have_svn=$ac_cv_prog_have_svn
5874if test -n "$have_svn"; then
5875  echo "$as_me:$LINENO: result: $have_svn" >&5
5876echo "${ECHO_T}$have_svn" >&6
5877else
5878  echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880fi
5881
5882  if test x$have_svn = xyes; then
5883    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5884echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5885if test "${ac_cv_svn_understands_https+set}" = set; then
5886  echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888  svn --version > confauto.out 2>&1
5889                    if $EGREP https confauto.out >/dev/null 2>&1; then
5890                      ac_cv_svn_understands_https=yes
5891                    else
5892                      ac_cv_svn_understands_https=no
5893                      have_svn=no
5894                      ac_cv_prog_have_svn=no
5895                    fi
5896                    rm -f confauto.out
5897fi
5898echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5899echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5900  fi
5901
5902  # Find the location of the BuildTools directory
5903  BUILDTOOLSDIR=
5904  if test -r $srcdir/BuildTools/coin.m4; then
5905    BUILDTOOLSDIR=$srcdir/BuildTools
5906  else
5907    if test -r $srcdir/../BuildTools/coin.m4; then
5908      BUILDTOOLSDIR=$srcdir/../BuildTools
5909    else
5910      if test -r $srcdir/../../BuildTools/coin.m4; then
5911        BUILDTOOLSDIR=$srcdir/../../BuildTools
5912      else
5913        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5914echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5915   { (exit 1); exit 1; }; }
5916      fi
5917    fi
5918  fi
5919
5920
5921  # The following variable is set to the name of the directory where
5922  # the autotool scripts are located
5923
5924  AUX_DIR=$ac_aux_dir
5925fi
5926
5927# helpful variable for the base directory of this package
5928abs_source_dir=`cd $srcdir; pwd`
5929
5930
5931# Stuff for example Makefiles
5932if test x$prefix = xNONE; then
5933  full_prefix=$ac_default_prefix
5934else
5935  full_prefix=$prefix
5936fi
5937full_prefix=`cd $full_prefix ; pwd`
5938
5939abs_lib_dir=$full_prefix/lib/coin
5940
5941abs_include_dir=$full_prefix/include
5942
5943abs_bin_dir=$full_prefix/bin
5944
5945
5946
5947if test $coin_have_externals = yes && test x$have_svn = xyes; then
5948  HAVE_EXTERNALS_TRUE=
5949  HAVE_EXTERNALS_FALSE='#'
5950else
5951  HAVE_EXTERNALS_TRUE='#'
5952  HAVE_EXTERNALS_FALSE=
5953fi
5954
5955
5956# AC_MSG_NOTICE([End automake initialisation.])
5957
5958
5959
5960LIBTOOL=
5961if test -r ../libtool; then
5962  coin_config_dir=..
5963  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5964fi
5965if test "x$LIBTOOL" = x; then
5966  if test -r ../../libtool; then
5967    coin_config_dir=../..
5968    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5969  fi
5970fi
5971
5972if test "x$LIBTOOL" = x; then
5973# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5974  # Stuff for libtool
5975  # Check whether --enable-shared or --disable-shared was given.
5976if test "${enable_shared+set}" = set; then
5977  enableval="$enable_shared"
5978  p=${PACKAGE-default}
5979    case $enableval in
5980    yes) enable_shared=yes ;;
5981    no) enable_shared=no ;;
5982    *)
5983      enable_shared=no
5984      # Look at the argument we got.  We use all the common list separators.
5985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5986      for pkg in $enableval; do
5987        IFS="$lt_save_ifs"
5988        if test "X$pkg" = "X$p"; then
5989          enable_shared=yes
5990        fi
5991      done
5992      IFS="$lt_save_ifs"
5993      ;;
5994    esac
5995else
5996  enable_shared=yes
5997fi;
5998
5999# Check whether --enable-fast-install or --disable-fast-install was given.
6000if test "${enable_fast_install+set}" = set; then
6001  enableval="$enable_fast_install"
6002  p=${PACKAGE-default}
6003    case $enableval in
6004    yes) enable_fast_install=yes ;;
6005    no) enable_fast_install=no ;;
6006    *)
6007      enable_fast_install=no
6008      # Look at the argument we got.  We use all the common list separators.
6009      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6010      for pkg in $enableval; do
6011        IFS="$lt_save_ifs"
6012        if test "X$pkg" = "X$p"; then
6013          enable_fast_install=yes
6014        fi
6015      done
6016      IFS="$lt_save_ifs"
6017      ;;
6018    esac
6019else
6020  enable_fast_install=yes
6021fi;
6022
6023echo "$as_me:$LINENO: checking host system type" >&5
6024echo $ECHO_N "checking host system type... $ECHO_C" >&6
6025if test "${ac_cv_host+set}" = set; then
6026  echo $ECHO_N "(cached) $ECHO_C" >&6
6027else
6028  ac_cv_host_alias=$host_alias
6029test -z "$ac_cv_host_alias" &&
6030  ac_cv_host_alias=$ac_cv_build_alias
6031ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6032  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6033echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6034   { (exit 1); exit 1; }; }
6035
6036fi
6037echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6038echo "${ECHO_T}$ac_cv_host" >&6
6039host=$ac_cv_host
6040host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6041host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6042host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6043
6044
6045echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6046echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6047if test "${lt_cv_path_SED+set}" = set; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050  # Loop through the user's path and test for sed and gsed.
6051# Then use that list of sed's as ones to test for truncation.
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  test -z "$as_dir" && as_dir=.
6057  for lt_ac_prog in sed gsed; do
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6060        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6061      fi
6062    done
6063  done
6064done
6065lt_ac_max=0
6066lt_ac_count=0
6067# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6068# along with /bin/sed that truncates output.
6069for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6070  test ! -f $lt_ac_sed && continue
6071  cat /dev/null > conftest.in
6072  lt_ac_count=0
6073  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6074  # Check for GNU sed and select it if it is found.
6075  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6076    lt_cv_path_SED=$lt_ac_sed
6077    break
6078  fi
6079  while true; do
6080    cat conftest.in conftest.in >conftest.tmp
6081    mv conftest.tmp conftest.in
6082    cp conftest.in conftest.nl
6083    echo >>conftest.nl
6084    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6085    cmp -s conftest.out conftest.nl || break
6086    # 10000 chars as input seems more than enough
6087    test $lt_ac_count -gt 10 && break
6088    lt_ac_count=`expr $lt_ac_count + 1`
6089    if test $lt_ac_count -gt $lt_ac_max; then
6090      lt_ac_max=$lt_ac_count
6091      lt_cv_path_SED=$lt_ac_sed
6092    fi
6093  done
6094done
6095
6096fi
6097
6098SED=$lt_cv_path_SED
6099echo "$as_me:$LINENO: result: $SED" >&5
6100echo "${ECHO_T}$SED" >&6
6101
6102
6103# Check whether --with-gnu-ld or --without-gnu-ld was given.
6104if test "${with_gnu_ld+set}" = set; then
6105  withval="$with_gnu_ld"
6106  test "$withval" = no || with_gnu_ld=yes
6107else
6108  with_gnu_ld=no
6109fi;
6110ac_prog=ld
6111if test "$GCC" = yes; then
6112  # Check if gcc -print-prog-name=ld gives a path.
6113  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6114echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6115  case $host in
6116  *-*-mingw*)
6117    # gcc leaves a trailing carriage return which upsets mingw
6118    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6119  *)
6120    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6121  esac
6122  case $ac_prog in
6123    # Accept absolute paths.
6124    [\\/]* | ?:[\\/]*)
6125      re_direlt='/[^/][^/]*/\.\./'
6126      # Canonicalize the pathname of ld
6127      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6128      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6129        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6130      done
6131      test -z "$LD" && LD="$ac_prog"
6132      ;;
6133  "")
6134    # If it fails, then pretend we aren't using GCC.
6135    ac_prog=ld
6136    ;;
6137  *)
6138    # If it is relative, then search for the first ld in PATH.
6139    with_gnu_ld=unknown
6140    ;;
6141  esac
6142elif test "$with_gnu_ld" = yes; then
6143  echo "$as_me:$LINENO: checking for GNU ld" >&5
6144echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6145else
6146  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6147echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6148fi
6149if test "${lt_cv_path_LD+set}" = set; then
6150  echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152  if test -z "$LD"; then
6153  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6154  for ac_dir in $PATH; do
6155    IFS="$lt_save_ifs"
6156    test -z "$ac_dir" && ac_dir=.
6157    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6158      lt_cv_path_LD="$ac_dir/$ac_prog"
6159      # Check to see if the program is GNU ld.  I'd rather use --version,
6160      # but apparently some variants of GNU ld only accept -v.
6161      # Break only if it was the GNU/non-GNU ld that we prefer.
6162      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6163      *GNU* | *'with BFD'*)
6164        test "$with_gnu_ld" != no && break
6165        ;;
6166      *)
6167        test "$with_gnu_ld" != yes && break
6168        ;;
6169      esac
6170    fi
6171  done
6172  IFS="$lt_save_ifs"
6173else
6174  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6175fi
6176fi
6177
6178LD="$lt_cv_path_LD"
6179if test -n "$LD"; then
6180  echo "$as_me:$LINENO: result: $LD" >&5
6181echo "${ECHO_T}$LD" >&6
6182else
6183  echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
6185fi
6186test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6187echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6188   { (exit 1); exit 1; }; }
6189echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6190echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6191if test "${lt_cv_prog_gnu_ld+set}" = set; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6195case `$LD -v 2>&1 </dev/null` in
6196*GNU* | *'with BFD'*)
6197  lt_cv_prog_gnu_ld=yes
6198  ;;
6199*)
6200  lt_cv_prog_gnu_ld=no
6201  ;;
6202esac
6203fi
6204echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6205echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6206with_gnu_ld=$lt_cv_prog_gnu_ld
6207
6208
6209echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6210echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6211if test "${lt_cv_ld_reload_flag+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  lt_cv_ld_reload_flag='-r'
6215fi
6216echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6217echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6218reload_flag=$lt_cv_ld_reload_flag
6219case $reload_flag in
6220"" | " "*) ;;
6221*) reload_flag=" $reload_flag" ;;
6222esac
6223reload_cmds='$LD$reload_flag -o $output$reload_objs'
6224case $host_os in
6225  darwin*)
6226    if test "$GCC" = yes; then
6227      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6228    else
6229      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230    fi
6231    ;;
6232esac
6233
6234echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6235echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6236if test "${lt_cv_path_NM+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239  if test -n "$NM"; then
6240  # Let the user override the test.
6241  lt_cv_path_NM="$NM"
6242else
6243  lt_nm_to_check="${ac_tool_prefix}nm"
6244  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6245    lt_nm_to_check="$lt_nm_to_check nm"
6246  fi
6247  for lt_tmp_nm in $lt_nm_to_check; do
6248    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6250      IFS="$lt_save_ifs"
6251      test -z "$ac_dir" && ac_dir=.
6252      tmp_nm="$ac_dir/$lt_tmp_nm"
6253      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6254        # Check to see if the nm accepts a BSD-compat flag.
6255        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6256        #   nm: unknown option "B" ignored
6257        # Tru64's nm complains that /dev/null is an invalid object file
6258        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6259        */dev/null* | *'Invalid file or object type'*)
6260          lt_cv_path_NM="$tmp_nm -B"
6261          break
6262          ;;
6263        *)
6264          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6265          */dev/null*)
6266            lt_cv_path_NM="$tmp_nm -p"
6267            break
6268            ;;
6269          *)
6270            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6271            continue # so that we can try to find one that supports BSD flags
6272            ;;
6273          esac
6274          ;;
6275        esac
6276      fi
6277    done
6278    IFS="$lt_save_ifs"
6279  done
6280  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6281fi
6282fi
6283echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6284echo "${ECHO_T}$lt_cv_path_NM" >&6
6285NM="$lt_cv_path_NM"
6286
6287echo "$as_me:$LINENO: checking whether ln -s works" >&5
6288echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6289LN_S=$as_ln_s
6290if test "$LN_S" = "ln -s"; then
6291  echo "$as_me:$LINENO: result: yes" >&5
6292echo "${ECHO_T}yes" >&6
6293else
6294  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6295echo "${ECHO_T}no, using $LN_S" >&6
6296fi
6297
6298echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6299echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6300if test "${lt_cv_deplibs_check_method+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  lt_cv_file_magic_cmd='$MAGIC_CMD'
6304lt_cv_file_magic_test_file=
6305lt_cv_deplibs_check_method='unknown'
6306# Need to set the preceding variable on all platforms that support
6307# interlibrary dependencies.
6308# 'none' -- dependencies not supported.
6309# `unknown' -- same as none, but documents that we really don't know.
6310# 'pass_all' -- all dependencies passed with no checks.
6311# 'test_compile' -- check by making test program.
6312# 'file_magic [[regex]]' -- check by looking for files in library path
6313# which responds to the $file_magic_cmd with a given extended regex.
6314# If you have `file' or equivalent on your system and you're not sure
6315# whether `pass_all' will *always* work, you probably want this one.
6316
6317case $host_os in
6318aix4* | aix5*)
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322beos*)
6323  lt_cv_deplibs_check_method=pass_all
6324  ;;
6325
6326bsdi[45]*)
6327  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6328  lt_cv_file_magic_cmd='/usr/bin/file -L'
6329  lt_cv_file_magic_test_file=/shlib/libc.so
6330  ;;
6331
6332cygwin*)
6333  # func_win32_libid is a shell function defined in ltmain.sh
6334  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335  lt_cv_file_magic_cmd='func_win32_libid'
6336  ;;
6337
6338mingw* | pw32*)
6339  # Base MSYS/MinGW do not provide the 'file' command needed by
6340  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6341  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342  lt_cv_file_magic_cmd='$OBJDUMP -f'
6343  ;;
6344
6345darwin* | rhapsody*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349freebsd* | kfreebsd*-gnu | dragonfly*)
6350  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6351    case $host_cpu in
6352    i*86 )
6353      # Not sure whether the presence of OpenBSD here was a mistake.
6354      # Let's accept both of them until this is cleared up.
6355      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6356      lt_cv_file_magic_cmd=/usr/bin/file
6357      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6358      ;;
6359    esac
6360  else
6361    lt_cv_deplibs_check_method=pass_all
6362  fi
6363  ;;
6364
6365gnu*)
6366  lt_cv_deplibs_check_method=pass_all
6367  ;;
6368
6369hpux10.20* | hpux11*)
6370  lt_cv_file_magic_cmd=/usr/bin/file
6371  case $host_cpu in
6372  ia64*)
6373    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6374    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6375    ;;
6376  hppa*64*)
6377    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]'
6378    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6379    ;;
6380  *)
6381    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6382    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6383    ;;
6384  esac
6385  ;;
6386
6387interix3*)
6388  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6389  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6390  ;;
6391
6392irix5* | irix6* | nonstopux*)
6393  case $LD in
6394  *-32|*"-32 ") libmagic=32-bit;;
6395  *-n32|*"-n32 ") libmagic=N32;;
6396  *-64|*"-64 ") libmagic=64-bit;;
6397  *) libmagic=never-match;;
6398  esac
6399  lt_cv_deplibs_check_method=pass_all
6400  ;;
6401
6402# This must be Linux ELF.
6403linux*)
6404  lt_cv_deplibs_check_method=pass_all
6405  ;;
6406
6407netbsd*)
6408  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410  else
6411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6412  fi
6413  ;;
6414
6415newos6*)
6416  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6417  lt_cv_file_magic_cmd=/usr/bin/file
6418  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6419  ;;
6420
6421nto-qnx*)
6422  lt_cv_deplibs_check_method=unknown
6423  ;;
6424
6425openbsd*)
6426  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6427    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6428  else
6429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430  fi
6431  ;;
6432
6433osf3* | osf4* | osf5*)
6434  lt_cv_deplibs_check_method=pass_all
6435  ;;
6436
6437solaris*)
6438  lt_cv_deplibs_check_method=pass_all
6439  ;;
6440
6441sysv4 | sysv4.3*)
6442  case $host_vendor in
6443  motorola)
6444    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]'
6445    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6446    ;;
6447  ncr)
6448    lt_cv_deplibs_check_method=pass_all
6449    ;;
6450  sequent)
6451    lt_cv_file_magic_cmd='/bin/file'
6452    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6453    ;;
6454  sni)
6455    lt_cv_file_magic_cmd='/bin/file'
6456    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6457    lt_cv_file_magic_test_file=/lib/libc.so
6458    ;;
6459  siemens)
6460    lt_cv_deplibs_check_method=pass_all
6461    ;;
6462  pc)
6463    lt_cv_deplibs_check_method=pass_all
6464    ;;
6465  esac
6466  ;;
6467
6468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471esac
6472
6473fi
6474echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6475echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6476file_magic_cmd=$lt_cv_file_magic_cmd
6477deplibs_check_method=$lt_cv_deplibs_check_method
6478test -z "$deplibs_check_method" && deplibs_check_method=unknown
6479
6480
6481
6482
6483# If no C compiler was specified, use CC.
6484LTCC=${LTCC-"$CC"}
6485
6486# If no C compiler flags were specified, use CFLAGS.
6487LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6488
6489# Allow CC to be a program name with arguments.
6490compiler=$CC
6491
6492# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6493if test "${enable_libtool_lock+set}" = set; then
6494  enableval="$enable_libtool_lock"
6495
6496fi;
6497test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6498
6499# Some flags need to be propagated to the compiler or linker for good
6500# libtool support.
6501case $host in
6502ia64-*-hpux*)
6503  # Find out which ABI we are using.
6504  echo 'int i;' > conftest.$ac_ext
6505  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506  (eval $ac_compile) 2>&5
6507  ac_status=$?
6508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509  (exit $ac_status); }; then
6510    case `/usr/bin/file conftest.$ac_objext` in
6511    *ELF-32*)
6512      HPUX_IA64_MODE="32"
6513      ;;
6514    *ELF-64*)
6515      HPUX_IA64_MODE="64"
6516      ;;
6517    esac
6518  fi
6519  rm -rf conftest*
6520  ;;
6521*-*-irix6*)
6522  # Find out which ABI we are using.
6523  echo '#line 6523 "configure"' > conftest.$ac_ext
6524  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525  (eval $ac_compile) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; then
6529   if test "$lt_cv_prog_gnu_ld" = yes; then
6530    case `/usr/bin/file conftest.$ac_objext` in
6531    *32-bit*)
6532      LD="${LD-ld} -melf32bsmip"
6533      ;;
6534    *N32*)
6535      LD="${LD-ld} -melf32bmipn32"
6536      ;;
6537    *64-bit*)
6538      LD="${LD-ld} -melf64bmip"
6539      ;;
6540    esac
6541   else
6542    case `/usr/bin/file conftest.$ac_objext` in
6543    *32-bit*)
6544      LD="${LD-ld} -32"
6545      ;;
6546    *N32*)
6547      LD="${LD-ld} -n32"
6548      ;;
6549    *64-bit*)
6550      LD="${LD-ld} -64"
6551      ;;
6552    esac
6553   fi
6554  fi
6555  rm -rf conftest*
6556  ;;
6557
6558x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6559  # Find out which ABI we are using.
6560  echo 'int i;' > conftest.$ac_ext
6561  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562  (eval $ac_compile) 2>&5
6563  ac_status=$?
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); }; then
6566    case `/usr/bin/file conftest.o` in
6567    *32-bit*)
6568      case $host in
6569        x86_64-*linux*)
6570          LD="${LD-ld} -m elf_i386"
6571          ;;
6572        ppc64-*linux*|powerpc64-*linux*)
6573          LD="${LD-ld} -m elf32ppclinux"
6574          ;;
6575        s390x-*linux*)
6576          LD="${LD-ld} -m elf_s390"
6577          ;;
6578        sparc64-*linux*)
6579          LD="${LD-ld} -m elf32_sparc"
6580          ;;
6581      esac
6582      ;;
6583    *64-bit*)
6584      case $host in
6585        x86_64-*linux*)
6586          LD="${LD-ld} -m elf_x86_64"
6587          ;;
6588        ppc*-*linux*|powerpc*-*linux*)
6589          LD="${LD-ld} -m elf64ppc"
6590          ;;
6591        s390*-*linux*)
6592          LD="${LD-ld} -m elf64_s390"
6593          ;;
6594        sparc*-*linux*)
6595          LD="${LD-ld} -m elf64_sparc"
6596          ;;
6597      esac
6598      ;;
6599    esac
6600  fi
6601  rm -rf conftest*
6602  ;;
6603
6604*-*-sco3.2v5*)
6605  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6606  SAVE_CFLAGS="$CFLAGS"
6607  CFLAGS="$CFLAGS -belf"
6608  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6609echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6610if test "${lt_cv_cc_needs_belf+set}" = set; then
6611  echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613  ac_ext=c
6614ac_cpp='$CPP $CPPFLAGS'
6615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618
6619     cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h.  */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h.  */
6625
6626int
6627main ()
6628{
6629
6630  ;
6631  return 0;
6632}
6633_ACEOF
6634rm -f conftest.$ac_objext conftest$ac_exeext
6635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636  (eval $ac_link) 2>conftest.er1
6637  ac_status=$?
6638  grep -v '^ *+' conftest.er1 >conftest.err
6639  rm -f conftest.er1
6640  cat conftest.err >&5
6641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); } &&
6643         { ac_try='test -z "$ac_c_werror_flag"
6644                         || test ! -s conftest.err'
6645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646  (eval $ac_try) 2>&5
6647  ac_status=$?
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); }; } &&
6650         { ac_try='test -s conftest$ac_exeext'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; }; then
6656  lt_cv_cc_needs_belf=yes
6657else
6658  echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
6661lt_cv_cc_needs_belf=no
6662fi
6663rm -f conftest.err conftest.$ac_objext \
6664      conftest$ac_exeext conftest.$ac_ext
6665     ac_ext=c
6666ac_cpp='$CPP $CPPFLAGS'
6667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6669ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670
6671fi
6672echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6673echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6674  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6675    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6676    CFLAGS="$SAVE_CFLAGS"
6677  fi
6678  ;;
6679sparc*-*solaris*)
6680  # Find out which ABI we are using.
6681  echo 'int i;' > conftest.$ac_ext
6682  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683  (eval $ac_compile) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; then
6687    case `/usr/bin/file conftest.o` in
6688    *64-bit*)
6689      case $lt_cv_prog_gnu_ld in
6690      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6691      *)    LD="${LD-ld} -64" ;;
6692      esac
6693      ;;
6694    esac
6695  fi
6696  rm -rf conftest*
6697  ;;
6698
6699
6700esac
6701
6702need_locks="$enable_libtool_lock"
6703
6704
6705ac_ext=c
6706ac_cpp='$CPP $CPPFLAGS'
6707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6711echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6712# On Suns, sometimes $CPP names a directory.
6713if test -n "$CPP" && test -d "$CPP"; then
6714  CPP=
6715fi
6716if test -z "$CPP"; then
6717  if test "${ac_cv_prog_CPP+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720      # Double quotes because CPP needs to be expanded
6721    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6722    do
6723      ac_preproc_ok=false
6724for ac_c_preproc_warn_flag in '' yes
6725do
6726  # Use a header file that comes with gcc, so configuring glibc
6727  # with a fresh cross-compiler works.
6728  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6729  # <limits.h> exists even on freestanding compilers.
6730  # On the NeXT, cc -E runs the code through the compiler's parser,
6731  # not just through cpp. "Syntax error" is here to catch this case.
6732  cat >conftest.$ac_ext <<_ACEOF
6733/* confdefs.h.  */
6734_ACEOF
6735cat confdefs.h >>conftest.$ac_ext
6736cat >>conftest.$ac_ext <<_ACEOF
6737/* end confdefs.h.  */
6738#ifdef __STDC__
6739# include <limits.h>
6740#else
6741# include <assert.h>
6742#endif
6743                     Syntax error
6744_ACEOF
6745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } >/dev/null; then
6753  if test -s conftest.err; then
6754    ac_cpp_err=$ac_c_preproc_warn_flag
6755    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6756  else
6757    ac_cpp_err=
6758  fi
6759else
6760  ac_cpp_err=yes
6761fi
6762if test -z "$ac_cpp_err"; then
6763  :
6764else
6765  echo "$as_me: failed program was:" >&5
6766sed 's/^/| /' conftest.$ac_ext >&5
6767
6768  # Broken: fails on valid input.
6769continue
6770fi
6771rm -f conftest.err conftest.$ac_ext
6772
6773  # OK, works on sane cases.  Now check whether non-existent headers
6774  # can be detected and how.
6775  cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h.  */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h.  */
6781#include <ac_nonexistent.h>
6782_ACEOF
6783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6784  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6785  ac_status=$?
6786  grep -v '^ *+' conftest.er1 >conftest.err
6787  rm -f conftest.er1
6788  cat conftest.err >&5
6789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790  (exit $ac_status); } >/dev/null; then
6791  if test -s conftest.err; then
6792    ac_cpp_err=$ac_c_preproc_warn_flag
6793    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6794  else
6795    ac_cpp_err=
6796  fi
6797else
6798  ac_cpp_err=yes
6799fi
6800if test -z "$ac_cpp_err"; then
6801  # Broken: success on invalid input.
6802continue
6803else
6804  echo "$as_me: failed program was:" >&5
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807  # Passes both tests.
6808ac_preproc_ok=:
6809break
6810fi
6811rm -f conftest.err conftest.$ac_ext
6812
6813done
6814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6815rm -f conftest.err conftest.$ac_ext
6816if $ac_preproc_ok; then
6817  break
6818fi
6819
6820    done
6821    ac_cv_prog_CPP=$CPP
6822
6823fi
6824  CPP=$ac_cv_prog_CPP
6825else
6826  ac_cv_prog_CPP=$CPP
6827fi
6828echo "$as_me:$LINENO: result: $CPP" >&5
6829echo "${ECHO_T}$CPP" >&6
6830ac_preproc_ok=false
6831for ac_c_preproc_warn_flag in '' yes
6832do
6833  # Use a header file that comes with gcc, so configuring glibc
6834  # with a fresh cross-compiler works.
6835  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836  # <limits.h> exists even on freestanding compilers.
6837  # On the NeXT, cc -E runs the code through the compiler's parser,
6838  # not just through cpp. "Syntax error" is here to catch this case.
6839  cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h.  */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h.  */
6845#ifdef __STDC__
6846# include <limits.h>
6847#else
6848# include <assert.h>
6849#endif
6850                     Syntax error
6851_ACEOF
6852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6853  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6854  ac_status=$?
6855  grep -v '^ *+' conftest.er1 >conftest.err
6856  rm -f conftest.er1
6857  cat conftest.err >&5
6858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859  (exit $ac_status); } >/dev/null; then
6860  if test -s conftest.err; then
6861    ac_cpp_err=$ac_c_preproc_warn_flag
6862    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6863  else
6864    ac_cpp_err=
6865  fi
6866else
6867  ac_cpp_err=yes
6868fi
6869if test -z "$ac_cpp_err"; then
6870  :
6871else
6872  echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875  # Broken: fails on valid input.
6876continue
6877fi
6878rm -f conftest.err conftest.$ac_ext
6879
6880  # OK, works on sane cases.  Now check whether non-existent headers
6881  # can be detected and how.
6882  cat >conftest.$ac_ext <<_ACEOF
6883/* confdefs.h.  */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h.  */
6888#include <ac_nonexistent.h>
6889_ACEOF
6890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6891  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6892  ac_status=$?
6893  grep -v '^ *+' conftest.er1 >conftest.err
6894  rm -f conftest.er1
6895  cat conftest.err >&5
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); } >/dev/null; then
6898  if test -s conftest.err; then
6899    ac_cpp_err=$ac_c_preproc_warn_flag
6900    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6901  else
6902    ac_cpp_err=
6903  fi
6904else
6905  ac_cpp_err=yes
6906fi
6907if test -z "$ac_cpp_err"; then
6908  # Broken: success on invalid input.
6909continue
6910else
6911  echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
6914  # Passes both tests.
6915ac_preproc_ok=:
6916break
6917fi
6918rm -f conftest.err conftest.$ac_ext
6919
6920done
6921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6922rm -f conftest.err conftest.$ac_ext
6923if $ac_preproc_ok; then
6924  :
6925else
6926  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6927See \`config.log' for more details." >&5
6928echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6929See \`config.log' for more details." >&2;}
6930   { (exit 1); exit 1; }; }
6931fi
6932
6933ac_ext=c
6934ac_cpp='$CPP $CPPFLAGS'
6935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
6939
6940echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942if test "${ac_cv_header_stdc+set}" = set; then
6943  echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945  cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h.  */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h.  */
6951#include <stdlib.h>
6952#include <stdarg.h>
6953#include <string.h>
6954#include <float.h>
6955
6956int
6957main ()
6958{
6959
6960  ;
6961  return 0;
6962}
6963_ACEOF
6964rm -f conftest.$ac_objext
6965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966  (eval $ac_compile) 2>conftest.er1
6967  ac_status=$?
6968  grep -v '^ *+' conftest.er1 >conftest.err
6969  rm -f conftest.er1
6970  cat conftest.err >&5
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); } &&
6973         { ac_try='test -z "$ac_c_werror_flag"
6974                         || test ! -s conftest.err'
6975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976  (eval $ac_try) 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }; } &&
6980         { ac_try='test -s conftest.$ac_objext'
6981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982  (eval $ac_try) 2>&5
6983  ac_status=$?
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); }; }; then
6986  ac_cv_header_stdc=yes
6987else
6988  echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991ac_cv_header_stdc=no
6992fi
6993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994
6995if test $ac_cv_header_stdc = yes; then
6996  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997  cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003#include <string.h>
7004
7005_ACEOF
7006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007  $EGREP "memchr" >/dev/null 2>&1; then
7008  :
7009else
7010  ac_cv_header_stdc=no
7011fi
7012rm -f conftest*
7013
7014fi
7015
7016if test $ac_cv_header_stdc = yes; then
7017  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018  cat >conftest.$ac_ext <<_ACEOF
7019/* confdefs.h.  */
7020_ACEOF
7021cat confdefs.h >>conftest.$ac_ext
7022cat >>conftest.$ac_ext <<_ACEOF
7023/* end confdefs.h.  */
7024#include <stdlib.h>
7025
7026_ACEOF
7027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028  $EGREP "free" >/dev/null 2>&1; then
7029  :
7030else
7031  ac_cv_header_stdc=no
7032fi
7033rm -f conftest*
7034
7035fi
7036
7037if test $ac_cv_header_stdc = yes; then
7038  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039  if test "$cross_compiling" = yes; then
7040  :
7041else
7042  cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h.  */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h.  */
7048#include <ctype.h>
7049#if ((' ' & 0x0FF) == 0x020)
7050# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7052#else
7053# define ISLOWER(c) \
7054                   (('a' <= (c) && (c) <= 'i') \
7055                     || ('j' <= (c) && (c) <= 'r') \
7056                     || ('s' <= (c) && (c) <= 'z'))
7057# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7058#endif
7059
7060#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7061int
7062main ()
7063{
7064  int i;
7065  for (i = 0; i < 256; i++)
7066    if (XOR (islower (i), ISLOWER (i))
7067        || toupper (i) != TOUPPER (i))
7068      exit(2);
7069  exit (0);
7070}
7071_ACEOF
7072rm -f conftest$ac_exeext
7073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074  (eval $ac_link) 2>&5
7075  ac_status=$?
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079  (eval $ac_try) 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }; }; then
7083  :
7084else
7085  echo "$as_me: program exited with status $ac_status" >&5
7086echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
7088
7089( exit $ac_status )
7090ac_cv_header_stdc=no
7091fi
7092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093fi
7094fi
7095fi
7096echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098if test $ac_cv_header_stdc = yes; then
7099
7100cat >>confdefs.h <<\_ACEOF
7101#define STDC_HEADERS 1
7102_ACEOF
7103
7104fi
7105
7106# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7117                  inttypes.h stdint.h unistd.h
7118do
7119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120echo "$as_me:$LINENO: checking for $ac_header" >&5
7121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123  echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125  cat >conftest.$ac_ext <<_ACEOF
7126/* confdefs.h.  */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h.  */
7131$ac_includes_default
7132
7133#include <$ac_header>
7134_ACEOF
7135rm -f conftest.$ac_objext
7136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7137  (eval $ac_compile) 2>conftest.er1
7138  ac_status=$?
7139  grep -v '^ *+' conftest.er1 >conftest.err
7140  rm -f conftest.er1
7141  cat conftest.err >&5
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); } &&
7144         { ac_try='test -z "$ac_c_werror_flag"
7145                         || test ! -s conftest.err'
7146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147  (eval $ac_try) 2>&5
7148  ac_status=$?
7149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150  (exit $ac_status); }; } &&
7151         { ac_try='test -s conftest.$ac_objext'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; }; then
7157  eval "$as_ac_Header=yes"
7158else
7159  echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162eval "$as_ac_Header=no"
7163fi
7164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7165fi
7166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7168if test `eval echo '${'$as_ac_Header'}'` = yes; then
7169  cat >>confdefs.h <<_ACEOF
7170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7171_ACEOF
7172
7173fi
7174
7175done
7176
7177
7178
7179for ac_header in dlfcn.h
7180do
7181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7182if eval "test \"\${$as_ac_Header+set}\" = set"; then
7183  echo "$as_me:$LINENO: checking for $ac_header" >&5
7184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7185if eval "test \"\${$as_ac_Header+set}\" = set"; then
7186  echo $ECHO_N "(cached) $ECHO_C" >&6
7187fi
7188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7190else
7191  # Is the header compilable?
7192echo "$as_me:$LINENO: checking $ac_header usability" >&5
7193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7194cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h.  */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h.  */
7200$ac_includes_default
7201#include <$ac_header>
7202_ACEOF
7203rm -f conftest.$ac_objext
7204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205  (eval $ac_compile) 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } &&
7212         { ac_try='test -z "$ac_c_werror_flag"
7213                         || test ! -s conftest.err'
7214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215  (eval $ac_try) 2>&5
7216  ac_status=$?
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); }; } &&
7219         { ac_try='test -s conftest.$ac_objext'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; }; then
7225  ac_header_compiler=yes
7226else
7227  echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
7230ac_header_compiler=no
7231fi
7232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7234echo "${ECHO_T}$ac_header_compiler" >&6
7235
7236# Is the header present?
7237echo "$as_me:$LINENO: checking $ac_header presence" >&5
7238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7239cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h.  */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h.  */
7245#include <$ac_header>
7246_ACEOF
7247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249  ac_status=$?
7250  grep -v '^ *+' conftest.er1 >conftest.err
7251  rm -f conftest.er1
7252  cat conftest.err >&5
7253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254  (exit $ac_status); } >/dev/null; then
7255  if test -s conftest.err; then
7256    ac_cpp_err=$ac_c_preproc_warn_flag
7257    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7258  else
7259    ac_cpp_err=
7260  fi
7261else
7262  ac_cpp_err=yes
7263fi
7264if test -z "$ac_cpp_err"; then
7265  ac_header_preproc=yes
7266else
7267  echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270  ac_header_preproc=no
7271fi
7272rm -f conftest.err conftest.$ac_ext
7273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7274echo "${ECHO_T}$ac_header_preproc" >&6
7275
7276# So?  What about this header?
7277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7278  yes:no: )
7279    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7281    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7283    ac_header_preproc=yes
7284    ;;
7285  no:yes:* )
7286    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7288    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7289echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7290    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7292    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7293echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7296    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7298    (
7299      cat <<\_ASBOX
7300## ------------------------------------ ##
7301## Report this to cbc@lists.coin-or.org ##
7302## ------------------------------------ ##
7303_ASBOX
7304    ) |
7305      sed "s/^/$as_me: WARNING:     /" >&2
7306    ;;
7307esac
7308echo "$as_me:$LINENO: checking for $ac_header" >&5
7309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7310if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311  echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313  eval "$as_ac_Header=\$ac_header_preproc"
7314fi
7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317
7318fi
7319if test `eval echo '${'$as_ac_Header'}'` = yes; then
7320  cat >>confdefs.h <<_ACEOF
7321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7322_ACEOF
7323
7324fi
7325
7326done
7327
7328
7329
7330if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7331    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7332    (test "X$CXX" != "Xg++"))) ; then
7333  ac_ext=cc
7334ac_cpp='$CXXCPP $CPPFLAGS'
7335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7338echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7339echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7340if test -z "$CXXCPP"; then
7341  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344      # Double quotes because CXXCPP needs to be expanded
7345    for CXXCPP in "$CXX -E" "/lib/cpp"
7346    do
7347      ac_preproc_ok=false
7348for ac_cxx_preproc_warn_flag in '' yes
7349do
7350  # Use a header file that comes with gcc, so configuring glibc
7351  # with a fresh cross-compiler works.
7352  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7353  # <limits.h> exists even on freestanding compilers.
7354  # On the NeXT, cc -E runs the code through the compiler's parser,
7355  # not just through cpp. "Syntax error" is here to catch this case.
7356  cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h.  */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h.  */
7362#ifdef __STDC__
7363# include <limits.h>
7364#else
7365# include <assert.h>
7366#endif
7367                     Syntax error
7368_ACEOF
7369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7371  ac_status=$?
7372  grep -v '^ *+' conftest.er1 >conftest.err
7373  rm -f conftest.er1
7374  cat conftest.err >&5
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); } >/dev/null; then
7377  if test -s conftest.err; then
7378    ac_cpp_err=$ac_cxx_preproc_warn_flag
7379    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7380  else
7381    ac_cpp_err=
7382  fi
7383else
7384  ac_cpp_err=yes
7385fi
7386if test -z "$ac_cpp_err"; then
7387  :
7388else
7389  echo "$as_me: failed program was:" >&5
7390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392  # Broken: fails on valid input.
7393continue
7394fi
7395rm -f conftest.err conftest.$ac_ext
7396
7397  # OK, works on sane cases.  Now check whether non-existent headers
7398  # can be detected and how.
7399  cat >conftest.$ac_ext <<_ACEOF
7400/* confdefs.h.  */
7401_ACEOF
7402cat confdefs.h >>conftest.$ac_ext
7403cat >>conftest.$ac_ext <<_ACEOF
7404/* end confdefs.h.  */
7405#include <ac_nonexistent.h>
7406_ACEOF
7407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7409  ac_status=$?
7410  grep -v '^ *+' conftest.er1 >conftest.err
7411  rm -f conftest.er1
7412  cat conftest.err >&5
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); } >/dev/null; then
7415  if test -s conftest.err; then
7416    ac_cpp_err=$ac_cxx_preproc_warn_flag
7417    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7418  else
7419    ac_cpp_err=
7420  fi
7421else
7422  ac_cpp_err=yes
7423fi
7424if test -z "$ac_cpp_err"; then
7425  # Broken: success on invalid input.
7426continue
7427else
7428  echo "$as_me: failed program was:" >&5
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431  # Passes both tests.
7432ac_preproc_ok=:
7433break
7434fi
7435rm -f conftest.err conftest.$ac_ext
7436
7437done
7438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7439rm -f conftest.err conftest.$ac_ext
7440if $ac_preproc_ok; then
7441  break
7442fi
7443
7444    done
7445    ac_cv_prog_CXXCPP=$CXXCPP
7446
7447fi
7448  CXXCPP=$ac_cv_prog_CXXCPP
7449else
7450  ac_cv_prog_CXXCPP=$CXXCPP
7451fi
7452echo "$as_me:$LINENO: result: $CXXCPP" >&5
7453echo "${ECHO_T}$CXXCPP" >&6
7454ac_preproc_ok=false
7455for ac_cxx_preproc_warn_flag in '' yes
7456do
7457  # Use a header file that comes with gcc, so configuring glibc
7458  # with a fresh cross-compiler works.
7459  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7460  # <limits.h> exists even on freestanding compilers.
7461  # On the NeXT, cc -E runs the code through the compiler's parser,
7462  # not just through cpp. "Syntax error" is here to catch this case.
7463  cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h.  */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h.  */
7469#ifdef __STDC__
7470# include <limits.h>
7471#else
7472# include <assert.h>
7473#endif
7474                     Syntax error
7475_ACEOF
7476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7478  ac_status=$?
7479  grep -v '^ *+' conftest.er1 >conftest.err
7480  rm -f conftest.er1
7481  cat conftest.err >&5
7482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483  (exit $ac_status); } >/dev/null; then
7484  if test -s conftest.err; then
7485    ac_cpp_err=$ac_cxx_preproc_warn_flag
7486    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7487  else
7488    ac_cpp_err=
7489  fi
7490else
7491  ac_cpp_err=yes
7492fi
7493if test -z "$ac_cpp_err"; then
7494  :
7495else
7496  echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499  # Broken: fails on valid input.
7500continue
7501fi
7502rm -f conftest.err conftest.$ac_ext
7503
7504  # OK, works on sane cases.  Now check whether non-existent headers
7505  # can be detected and how.
7506  cat >conftest.$ac_ext <<_ACEOF
7507/* confdefs.h.  */
7508_ACEOF
7509cat confdefs.h >>conftest.$ac_ext
7510cat >>conftest.$ac_ext <<_ACEOF
7511/* end confdefs.h.  */
7512#include <ac_nonexistent.h>
7513_ACEOF
7514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7515  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } >/dev/null; then
7522  if test -s conftest.err; then
7523    ac_cpp_err=$ac_cxx_preproc_warn_flag
7524    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7525  else
7526    ac_cpp_err=
7527  fi
7528else
7529  ac_cpp_err=yes
7530fi
7531if test -z "$ac_cpp_err"; then
7532  # Broken: success on invalid input.
7533continue
7534else
7535  echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
7538  # Passes both tests.
7539ac_preproc_ok=:
7540break
7541fi
7542rm -f conftest.err conftest.$ac_ext
7543
7544done
7545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7546rm -f conftest.err conftest.$ac_ext
7547if $ac_preproc_ok; then
7548  :
7549else
7550  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7551See \`config.log' for more details." >&5
7552echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7553See \`config.log' for more details." >&2;}
7554   { (exit 1); exit 1; }; }
7555fi
7556
7557ac_ext=cc
7558ac_cpp='$CXXCPP $CPPFLAGS'
7559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7562
7563fi
7564
7565
7566# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7567
7568# find the maximum length of command line arguments
7569echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7570echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7571if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7572  echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574    i=0
7575  teststring="ABCD"
7576
7577  case $build_os in
7578  msdosdjgpp*)
7579    # On DJGPP, this test can blow up pretty badly due to problems in libc
7580    # (any single argument exceeding 2000 bytes causes a buffer overrun
7581    # during glob expansion).  Even if it were fixed, the result of this
7582    # check would be larger than it should be.
7583    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7584    ;;
7585
7586  gnu*)
7587    # Under GNU Hurd, this test is not required because there is
7588    # no limit to the length of command line arguments.
7589    # Libtool will interpret -1 as no limit whatsoever
7590    lt_cv_sys_max_cmd_len=-1;
7591    ;;
7592
7593  cygwin* | mingw*)
7594    # On Win9x/ME, this test blows up -- it succeeds, but takes
7595    # about 5 minutes as the teststring grows exponentially.
7596    # Worse, since 9x/ME are not pre-emptively multitasking,
7597    # you end up with a "frozen" computer, even though with patience
7598    # the test eventually succeeds (with a max line length of 256k).
7599    # Instead, let's just punt: use the minimum linelength reported by
7600    # all of the supported platforms: 8192 (on NT/2K/XP).
7601    lt_cv_sys_max_cmd_len=8192;
7602    ;;
7603
7604  amigaos*)
7605    # On AmigaOS with pdksh, this test takes hours, literally.
7606    # So we just punt and use a minimum line length of 8192.
7607    lt_cv_sys_max_cmd_len=8192;
7608    ;;
7609
7610  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7611    # This has been around since 386BSD, at least.  Likely further.
7612    if test -x /sbin/sysctl; then
7613      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7614    elif test -x /usr/sbin/sysctl; then
7615      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7616    else
7617      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7618    fi
7619    # And add a safety zone
7620    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7621    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7622    ;;
7623
7624  interix*)
7625    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7626    lt_cv_sys_max_cmd_len=196608
7627    ;;
7628
7629  osf*)
7630    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7631    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7632    # nice to cause kernel panics so lets avoid the loop below.
7633    # First set a reasonable default.
7634    lt_cv_sys_max_cmd_len=16384
7635    #
7636    if test -x /sbin/sysconfig; then
7637      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7638        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7639      esac
7640    fi
7641    ;;
7642  sco3.2v5*)
7643    lt_cv_sys_max_cmd_len=102400
7644    ;;
7645  sysv5* | sco5v6* | sysv4.2uw2*)
7646    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7647    if test -n "$kargmax"; then
7648      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7649    else
7650      lt_cv_sys_max_cmd_len=32768
7651    fi
7652    ;;
7653  *)
7654    # If test is not a shell built-in, we'll probably end up computing a
7655    # maximum length that is only half of the actual maximum length, but
7656    # we can't tell.
7657    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7658    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7659               = "XX$teststring") >/dev/null 2>&1 &&
7660            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7661            lt_cv_sys_max_cmd_len=$new_result &&
7662            test $i != 17 # 1/2 MB should be enough
7663    do
7664      i=`expr $i + 1`
7665      teststring=$teststring$teststring
7666    done
7667    teststring=
7668    # Add a significant safety factor because C++ compilers can tack on massive
7669    # amounts of additional arguments before passing them to the linker.
7670    # It appears as though 1/2 is a usable value.
7671    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7672    ;;
7673  esac
7674
7675fi
7676
7677if test -n $lt_cv_sys_max_cmd_len ; then
7678  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7679echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7680else
7681  echo "$as_me:$LINENO: result: none" >&5
7682echo "${ECHO_T}none" >&6
7683fi
7684
7685
7686
7687
7688# Check for command to grab the raw symbol name followed by C symbol from nm.
7689echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7690echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7691if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7692  echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694
7695# These are sane defaults that work on at least a few old systems.
7696# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7697
7698# Character class describing NM global symbol codes.
7699symcode='[BCDEGRST]'
7700
7701# Regexp to match symbols that can be accessed directly from C.
7702sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7703
7704# Transform an extracted symbol line into a proper C declaration
7705lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7706
7707# Transform an extracted symbol line into symbol name and symbol address
7708lt_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'"
7709
7710# Define system-specific variables.
7711case $host_os in
7712aix*)
7713  symcode='[BCDT]'
7714  ;;
7715cygwin* | mingw* | pw32*)
7716  symcode='[ABCDGISTW]'
7717  ;;
7718hpux*) # Its linker distinguishes data from code symbols
7719  if test "$host_cpu" = ia64; then
7720    symcode='[ABCDEGRST]'
7721  fi
7722  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7723  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'"
7724  ;;
7725linux*)
7726  if test "$host_cpu" = ia64; then
7727    symcode='[ABCDGIRSTW]'
7728    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7729    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'"
7730  fi
7731  ;;
7732irix* | nonstopux*)
7733  symcode='[BCDEGRST]'
7734  ;;
7735osf*)
7736  symcode='[BCDEGQRST]'
7737  ;;
7738solaris*)
7739  symcode='[BDRT]'
7740  ;;
7741sco3.2v5*)
7742  symcode='[DT]'
7743  ;;
7744sysv4.2uw2*)
7745  symcode='[DT]'
7746  ;;
7747sysv5* | sco5v6* | unixware* | OpenUNIX*)
7748  symcode='[ABDT]'
7749  ;;
7750sysv4)
7751  symcode='[DFNSTU]'
7752  ;;
7753esac
7754
7755# Handle CRLF in mingw tool chain
7756opt_cr=
7757case $build_os in
7758mingw*)
7759  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7760  ;;
7761esac
7762
7763# If we're using GNU nm, then use its standard symbol codes.
7764case `$NM -V 2>&1` in
7765*GNU* | *'with BFD'*)
7766  symcode='[ABCDGIRSTW]' ;;
7767esac
7768
7769# Try without a prefix undercore, then with it.
7770for ac_symprfx in "" "_"; do
7771
7772  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7773  symxfrm="\\1 $ac_symprfx\\2 \\2"
7774
7775  # Write the raw and C identifiers.
7776  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7777
7778  # Check to see that the pipe works correctly.
7779  pipe_works=no
7780
7781  rm -f conftest*
7782  cat > conftest.$ac_ext <<EOF
7783#ifdef __cplusplus
7784extern "C" {
7785#endif
7786char nm_test_var;
7787void nm_test_func(){}
7788#ifdef __cplusplus
7789}
7790#endif
7791int main(){nm_test_var='a';nm_test_func();return(0);}
7792EOF
7793
7794  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795  (eval $ac_compile) 2>&5
7796  ac_status=$?
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); }; then
7799    # Now try to grab the symbols.
7800    nlist=conftest.nm
7801    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7802  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7803  ac_status=$?
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); } && test -s "$nlist"; then
7806      # Try sorting and uniquifying the output.
7807      if sort "$nlist" | uniq > "$nlist"T; then
7808        mv -f "$nlist"T "$nlist"
7809      else
7810        rm -f "$nlist"T
7811      fi
7812
7813      # Make sure that we snagged all the symbols we need.
7814      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7815        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7816          cat <<EOF > conftest.$ac_ext
7817#ifdef __cplusplus
7818extern "C" {
7819#endif
7820
7821EOF
7822          # Now generate the symbol file.
7823          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7824
7825          cat <<EOF >> conftest.$ac_ext
7826#if defined (__STDC__) && __STDC__
7827# define lt_ptr_t void *
7828#else
7829# define lt_ptr_t char *
7830# define const
7831#endif
7832
7833/* The mapping between symbol names and symbols. */
7834const struct {
7835  const char *name;
7836  lt_ptr_t address;
7837}
7838lt_preloaded_symbols[] =
7839{
7840EOF
7841          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7842          cat <<\EOF >> conftest.$ac_ext
7843  {0, (lt_ptr_t) 0}
7844};
7845
7846#ifdef __cplusplus
7847}
7848#endif
7849EOF
7850          # Now try linking the two files.
7851          mv conftest.$ac_objext conftstm.$ac_objext
7852          lt_save_LIBS="$LIBS"
7853          lt_save_CFLAGS="$CFLAGS"
7854          LIBS="conftstm.$ac_objext"
7855          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857  (eval $ac_link) 2>&5
7858  ac_status=$?
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7861            pipe_works=yes
7862          fi
7863          LIBS="$lt_save_LIBS"
7864          CFLAGS="$lt_save_CFLAGS"
7865        else
7866          echo "cannot find nm_test_func in $nlist" >&5
7867        fi
7868      else
7869        echo "cannot find nm_test_var in $nlist" >&5
7870      fi
7871    else
7872      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7873    fi
7874  else
7875    echo "$progname: failed program was:" >&5
7876    cat conftest.$ac_ext >&5
7877  fi
7878  rm -f conftest* conftst*
7879
7880  # Do not use the global_symbol_pipe unless it works.
7881  if test "$pipe_works" = yes; then
7882    break
7883  else
7884    lt_cv_sys_global_symbol_pipe=
7885  fi
7886done
7887
7888fi
7889
7890if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891  lt_cv_sys_global_symbol_to_cdecl=
7892fi
7893if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894  echo "$as_me:$LINENO: result: failed" >&5
7895echo "${ECHO_T}failed" >&6
7896else
7897  echo "$as_me:$LINENO: result: ok" >&5
7898echo "${ECHO_T}ok" >&6
7899fi
7900
7901echo "$as_me:$LINENO: checking for objdir" >&5
7902echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7903if test "${lt_cv_objdir+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  rm -f .libs 2>/dev/null
7907mkdir .libs 2>/dev/null
7908if test -d .libs; then
7909  lt_cv_objdir=.libs
7910else
7911  # MS-DOS does not allow filenames that begin with a dot.
7912  lt_cv_objdir=_libs
7913fi
7914rmdir .libs 2>/dev/null
7915fi
7916echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7917echo "${ECHO_T}$lt_cv_objdir" >&6
7918objdir=$lt_cv_objdir
7919
7920
7921
7922
7923
7924case $host_os in
7925aix3*)
7926  # AIX sometimes has problems with the GCC collect2 program.  For some
7927  # reason, if we set the COLLECT_NAMES environment variable, the problems
7928  # vanish in a puff of smoke.
7929  if test "X${COLLECT_NAMES+set}" != Xset; then
7930    COLLECT_NAMES=
7931    export COLLECT_NAMES
7932  fi
7933  ;;
7934esac
7935
7936# Sed substitution that helps us do robust quoting.  It backslashifies
7937# metacharacters that are still active within double-quoted strings.
7938Xsed='sed -e 1s/^X//'
7939sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7940
7941# Same as above, but do not quote variable references.
7942double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7943
7944# Sed substitution to delay expansion of an escaped shell variable in a
7945# double_quote_subst'ed string.
7946delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7947
7948# Sed substitution to avoid accidental globbing in evaled expressions
7949no_glob_subst='s/\*/\\\*/g'
7950
7951# Constants:
7952rm="rm -f"
7953
7954# Global variables:
7955default_ofile=libtool
7956can_build_shared=yes
7957
7958# All known linkers require a `.a' archive for static linking (except MSVC,
7959# which needs '.lib').
7960libext=a
7961ltmain="$ac_aux_dir/ltmain.sh"
7962ofile="$default_ofile"
7963with_gnu_ld="$lt_cv_prog_gnu_ld"
7964
7965if test -n "$ac_tool_prefix"; then
7966  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7967set dummy ${ac_tool_prefix}ar; ac_word=$2
7968echo "$as_me:$LINENO: checking for $ac_word" >&5
7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7970if test "${ac_cv_prog_AR+set}" = set; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973  if test -n "$AR"; then
7974  ac_cv_prog_AR="$AR" # Let the user override the test.
7975else
7976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979  IFS=$as_save_IFS
7980  test -z "$as_dir" && as_dir=.
7981  for ac_exec_ext in '' $ac_executable_extensions; do
7982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983    ac_cv_prog_AR="${ac_tool_prefix}ar"
7984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985    break 2
7986  fi
7987done
7988done
7989
7990fi
7991fi
7992AR=$ac_cv_prog_AR
7993if test -n "$AR"; then
7994  echo "$as_me:$LINENO: result: $AR" >&5
7995echo "${ECHO_T}$AR" >&6
7996else
7997  echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999fi
8000
8001fi
8002if test -z "$ac_cv_prog_AR"; then
8003  ac_ct_AR=$AR
8004  # Extract the first word of "ar", so it can be a program name with args.
8005set dummy ar; ac_word=$2
8006echo "$as_me:$LINENO: checking for $ac_word" >&5
8007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8009  echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011  if test -n "$ac_ct_AR"; then
8012  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017  IFS=$as_save_IFS
8018  test -z "$as_dir" && as_dir=.
8019  for ac_exec_ext in '' $ac_executable_extensions; do
8020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021    ac_cv_prog_ac_ct_AR="ar"
8022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023    break 2
8024  fi
8025done
8026done
8027
8028  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8029fi
8030fi
8031ac_ct_AR=$ac_cv_prog_ac_ct_AR
8032if test -n "$ac_ct_AR"; then
8033  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8034echo "${ECHO_T}$ac_ct_AR" >&6
8035else
8036  echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
8038fi
8039
8040  AR=$ac_ct_AR
8041else
8042  AR="$ac_cv_prog_AR"
8043fi
8044
8045if test -n "$ac_tool_prefix"; then
8046  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8047set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8048echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050if test "${ac_cv_prog_RANLIB+set}" = set; then
8051  echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053  if test -n "$RANLIB"; then
8054  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059  IFS=$as_save_IFS
8060  test -z "$as_dir" && as_dir=.
8061  for ac_exec_ext in '' $ac_executable_extensions; do
8062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065    break 2
8066  fi
8067done
8068done
8069
8070fi
8071fi
8072RANLIB=$ac_cv_prog_RANLIB
8073if test -n "$RANLIB"; then
8074  echo "$as_me:$LINENO: result: $RANLIB" >&5
8075echo "${ECHO_T}$RANLIB" >&6
8076else
8077  echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079fi
8080
8081fi
8082if test -z "$ac_cv_prog_RANLIB"; then
8083  ac_ct_RANLIB=$RANLIB
8084  # Extract the first word of "ranlib", so it can be a program name with args.
8085set dummy ranlib; ac_word=$2
8086echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8088if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091  if test -n "$ac_ct_RANLIB"; then
8092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097  IFS=$as_save_IFS
8098  test -z "$as_dir" && as_dir=.
8099  for ac_exec_ext in '' $ac_executable_extensions; do
8100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101    ac_cv_prog_ac_ct_RANLIB="ranlib"
8102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103    break 2
8104  fi
8105done
8106done
8107
8108  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8109fi
8110fi
8111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8112if test -n "$ac_ct_RANLIB"; then
8113  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8114echo "${ECHO_T}$ac_ct_RANLIB" >&6
8115else
8116  echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118fi
8119
8120  RANLIB=$ac_ct_RANLIB
8121else
8122  RANLIB="$ac_cv_prog_RANLIB"
8123fi
8124
8125if test -n "$ac_tool_prefix"; then
8126  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8127set dummy ${ac_tool_prefix}strip; ac_word=$2
8128echo "$as_me:$LINENO: checking for $ac_word" >&5
8129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8130if test "${ac_cv_prog_STRIP+set}" = set; then
8131  echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
8133  if test -n "$STRIP"; then
8134  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8135else
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139  IFS=$as_save_IFS
8140  test -z "$as_dir" && as_dir=.
8141  for ac_exec_ext in '' $ac_executable_extensions; do
8142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8145    break 2
8146  fi
8147done
8148done
8149
8150fi
8151fi
8152STRIP=$ac_cv_prog_STRIP
8153if test -n "$STRIP"; then
8154  echo "$as_me:$LINENO: result: $STRIP" >&5
8155echo "${ECHO_T}$STRIP" >&6
8156else
8157  echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159fi
8160
8161fi
8162if test -z "$ac_cv_prog_STRIP"; then
8163  ac_ct_STRIP=$STRIP
8164  # Extract the first word of "strip", so it can be a program name with args.
8165set dummy strip; ac_word=$2
8166echo "$as_me:$LINENO: checking for $ac_word" >&5
8167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8168if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8169  echo $ECHO_N "(cached) $ECHO_C" >&6
8170else
8171  if test -n "$ac_ct_STRIP"; then
8172  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8173else
8174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175for as_dir in $PATH
8176do
8177  IFS=$as_save_IFS
8178  test -z "$as_dir" && as_dir=.
8179  for ac_exec_ext in '' $ac_executable_extensions; do
8180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181    ac_cv_prog_ac_ct_STRIP="strip"
8182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183    break 2
8184  fi
8185done
8186done
8187
8188  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8189fi
8190fi
8191ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8192if test -n "$ac_ct_STRIP"; then
8193  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8194echo "${ECHO_T}$ac_ct_STRIP" >&6
8195else
8196  echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198fi
8199
8200  STRIP=$ac_ct_STRIP
8201else
8202  STRIP="$ac_cv_prog_STRIP"
8203fi
8204
8205
8206old_CC="$CC"
8207old_CFLAGS="$CFLAGS"
8208
8209# Set sane defaults for various variables
8210test -z "$AR" && AR=ar
8211test -z "$AR_FLAGS" && AR_FLAGS=cru
8212test -z "$AS" && AS=as
8213test -z "$CC" && CC=cc
8214test -z "$LTCC" && LTCC=$CC
8215test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8216test -z "$DLLTOOL" && DLLTOOL=dlltool
8217test -z "$LD" && LD=ld
8218test -z "$LN_S" && LN_S="ln -s"
8219test -z "$MAGIC_CMD" && MAGIC_CMD=file
8220test -z "$NM" && NM=nm
8221test -z "$SED" && SED=sed
8222test -z "$OBJDUMP" && OBJDUMP=objdump
8223test -z "$RANLIB" && RANLIB=:
8224test -z "$STRIP" && STRIP=:
8225test -z "$ac_objext" && ac_objext=o
8226
8227# Determine commands to create old-style static archives.
8228old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8229old_postinstall_cmds='chmod 644 $oldlib'
8230old_postuninstall_cmds=
8231
8232if test -n "$RANLIB"; then
8233  case $host_os in
8234  openbsd*)
8235    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8236    ;;
8237  *)
8238    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8239    ;;
8240  esac
8241  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8242fi
8243
8244for cc_temp in $compiler""; do
8245  case $cc_temp in
8246    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8247    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8248    \-*) ;;
8249    *) break;;
8250  esac
8251done
8252cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8253
8254
8255# Only perform the check for file, if the check method requires it
8256case $deplibs_check_method in
8257file_magic*)
8258  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8259    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8260echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8261if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264  case $MAGIC_CMD in
8265[\\/*] |  ?:[\\/]*)
8266  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8267  ;;
8268*)
8269  lt_save_MAGIC_CMD="$MAGIC_CMD"
8270  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8271  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8272  for ac_dir in $ac_dummy; do
8273    IFS="$lt_save_ifs"
8274    test -z "$ac_dir" && ac_dir=.
8275    if test -f $ac_dir/${ac_tool_prefix}file; then
8276      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8277      if test -n "$file_magic_test_file"; then
8278        case $deplibs_check_method in
8279        "file_magic "*)
8280          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8281          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8282          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8283            $EGREP "$file_magic_regex" > /dev/null; then
8284            :
8285          else
8286            cat <<EOF 1>&2
8287
8288*** Warning: the command libtool uses to detect shared libraries,
8289*** $file_magic_cmd, produces output that libtool cannot recognize.
8290*** The result is that libtool may fail to recognize shared libraries
8291*** as such.  This will affect the creation of libtool libraries that
8292*** depend on shared libraries, but programs linked with such libtool
8293*** libraries will work regardless of this problem.  Nevertheless, you
8294*** may want to report the problem to your system manager and/or to
8295*** bug-libtool@gnu.org
8296
8297EOF
8298          fi ;;
8299        esac
8300      fi
8301      break
8302    fi
8303  done
8304  IFS="$lt_save_ifs"
8305  MAGIC_CMD="$lt_save_MAGIC_CMD"
8306  ;;
8307esac
8308fi
8309
8310MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311if test -n "$MAGIC_CMD"; then
8312  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8313echo "${ECHO_T}$MAGIC_CMD" >&6
8314else
8315  echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8317fi
8318
8319if test -z "$lt_cv_path_MAGIC_CMD"; then
8320  if test -n "$ac_tool_prefix"; then
8321    echo "$as_me:$LINENO: checking for file" >&5
8322echo $ECHO_N "checking for file... $ECHO_C" >&6
8323if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8324  echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326  case $MAGIC_CMD in
8327[\\/*] |  ?:[\\/]*)
8328  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8329  ;;
8330*)
8331  lt_save_MAGIC_CMD="$MAGIC_CMD"
8332  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8333  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8334  for ac_dir in $ac_dummy; do
8335    IFS="$lt_save_ifs"
8336    test -z "$ac_dir" && ac_dir=.
8337    if test -f $ac_dir/file; then
8338      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8339      if test -n "$file_magic_test_file"; then
8340        case $deplibs_check_method in
8341        "file_magic "*)
8342          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8343          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8345            $EGREP "$file_magic_regex" > /dev/null; then
8346            :
8347          else
8348            cat <<EOF 1>&2
8349
8350*** Warning: the command libtool uses to detect shared libraries,
8351*** $file_magic_cmd, produces output that libtool cannot recognize.
8352*** The result is that libtool may fail to recognize shared libraries
8353*** as such.  This will affect the creation of libtool libraries that
8354*** depend on shared libraries, but programs linked with such libtool
8355*** libraries will work regardless of this problem.  Nevertheless, you
8356*** may want to report the problem to your system manager and/or to
8357*** bug-libtool@gnu.org
8358
8359EOF
8360          fi ;;
8361        esac
8362      fi
8363      break
8364    fi
8365  done
8366  IFS="$lt_save_ifs"
8367  MAGIC_CMD="$lt_save_MAGIC_CMD"
8368  ;;
8369esac
8370fi
8371
8372MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8373if test -n "$MAGIC_CMD"; then
8374  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8375echo "${ECHO_T}$MAGIC_CMD" >&6
8376else
8377  echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
8379fi
8380
8381  else
8382    MAGIC_CMD=:
8383  fi
8384fi
8385
8386  fi
8387  ;;
8388esac
8389
8390enable_dlopen=no
8391enable_win32_dll=no
8392
8393# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8394if test "${enable_libtool_lock+set}" = set; then
8395  enableval="$enable_libtool_lock"
8396
8397fi;
8398test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8399
8400
8401# Check whether --with-pic or --without-pic was given.
8402if test "${with_pic+set}" = set; then
8403  withval="$with_pic"
8404  pic_mode="$withval"
8405else
8406  pic_mode=default
8407fi;
8408test -z "$pic_mode" && pic_mode=default
8409
8410# Use C for the default configuration in the libtool script
8411tagname=
8412lt_save_CC="$CC"
8413ac_ext=c
8414ac_cpp='$CPP $CPPFLAGS'
8415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418
8419
8420# Source file extension for C test sources.
8421ac_ext=c
8422
8423# Object file extension for compiled C test sources.
8424objext=o
8425objext=$objext
8426
8427# Code to be used in simple compile tests
8428lt_simple_compile_test_code="int some_variable = 0;\n"
8429
8430# Code to be used in simple link tests
8431lt_simple_link_test_code='int main(){return(0);}\n'
8432
8433
8434# If no C compiler was specified, use CC.
8435LTCC=${LTCC-"$CC"}
8436
8437# If no C compiler flags were specified, use CFLAGS.
8438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8439
8440# Allow CC to be a program name with arguments.
8441compiler=$CC
8442
8443
8444# save warnings/boilerplate of simple test code
8445ac_outfile=conftest.$ac_objext
8446printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8447eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8448_lt_compiler_boilerplate=`cat conftest.err`
8449$rm conftest*
8450
8451ac_outfile=conftest.$ac_objext
8452printf "$lt_simple_link_test_code" >conftest.$ac_ext
8453eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454_lt_linker_boilerplate=`cat conftest.err`
8455$rm conftest*
8456
8457
8458## CAVEAT EMPTOR:
8459## There is no encapsulation within the following macros, do not change
8460## the running order or otherwise move them around unless you know exactly
8461## what you are doing...
8462
8463lt_prog_compiler_no_builtin_flag=
8464
8465if test "$GCC" = yes; then
8466  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8467
8468
8469echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8470echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8471if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8472  echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474  lt_cv_prog_compiler_rtti_exceptions=no
8475  ac_outfile=conftest.$ac_objext
8476   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8477   lt_compiler_flag="-fno-rtti -fno-exceptions"
8478   # Insert the option either (1) after the last *FLAGS variable, or
8479   # (2) before a word containing "conftest.", or (3) at the end.
8480   # Note that $ac_compile itself does not contain backslashes and begins
8481   # with a dollar sign (not a hyphen), so the echo should work correctly.
8482   # The option is referenced via a variable to avoid confusing sed.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:8487: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>conftest.err)
8489   ac_status=$?
8490   cat conftest.err >&5
8491   echo "$as_me:8491: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s "$ac_outfile"; then
8493     # The compiler can only warn and ignore the option if not recognized
8494     # So say no if there are warnings other than the usual output.
8495     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8496     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498       lt_cv_prog_compiler_rtti_exceptions=yes
8499     fi
8500   fi
8501   $rm conftest*
8502
8503fi
8504echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8505echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8506
8507if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8508    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8509else
8510    :
8511fi
8512
8513fi
8514
8515lt_prog_compiler_wl=
8516lt_prog_compiler_pic=
8517lt_prog_compiler_static=
8518
8519echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8520echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8521
8522  if test "$GCC" = yes; then
8523    lt_prog_compiler_wl='-Wl,'
8524    lt_prog_compiler_static='-static'
8525
8526    case $host_os in
8527      aix*)
8528      # All AIX code is PIC.
8529      if test "$host_cpu" = ia64; then
8530        # AIX 5 now supports IA64 processor
8531        lt_prog_compiler_static='-Bstatic'
8532      fi
8533      ;;
8534
8535    amigaos*)
8536      # FIXME: we need at least 68020 code to build shared libraries, but
8537      # adding the `-m68020' flag to GCC prevents building anything better,
8538      # like `-m68040'.
8539      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8540      ;;
8541
8542    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8543      # PIC is the default for these OSes.
8544      ;;
8545
8546    mingw* | pw32* | os2*)
8547      # This hack is so that the source file can tell whether it is being
8548      # built for inclusion in a dll (and should export symbols for example).
8549      lt_prog_compiler_pic='-DDLL_EXPORT'
8550      ;;
8551
8552    darwin* | rhapsody*)
8553      # PIC is the default on this platform
8554      # Common symbols not allowed in MH_DYLIB files
8555      lt_prog_compiler_pic='-fno-common'
8556      ;;
8557
8558    interix3*)
8559      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8560      # Instead, we relocate shared libraries at runtime.
8561      ;;
8562
8563    msdosdjgpp*)
8564      # Just because we use GCC doesn't mean we suddenly get shared libraries
8565      # on systems that don't support them.
8566      lt_prog_compiler_can_build_shared=no
8567      enable_shared=no
8568      ;;
8569
8570    sysv4*MP*)
8571      if test -d /usr/nec; then
8572        lt_prog_compiler_pic=-Kconform_pic
8573      fi
8574      ;;
8575
8576    hpux*)
8577      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8578      # not for PA HP-UX.
8579      case $host_cpu in
8580      hppa*64*|ia64*)
8581        # +Z the default
8582        ;;
8583      *)
8584        lt_prog_compiler_pic='-fPIC'
8585        ;;
8586      esac
8587      ;;
8588
8589    *)
8590      lt_prog_compiler_pic='-fPIC'
8591      ;;
8592    esac
8593  else
8594    # PORTME Check for flag to pass linker flags through the system compiler.
8595    case $host_os in
8596    aix*)
8597      lt_prog_compiler_wl='-Wl,'
8598      if test "$host_cpu" = ia64; then
8599        # AIX 5 now supports IA64 processor
8600        lt_prog_compiler_static='-Bstatic'
8601      else
8602        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8603      fi
8604      ;;
8605      darwin*)
8606        # PIC is the default on this platform
8607        # Common symbols not allowed in MH_DYLIB files
8608       case $cc_basename in
8609         xlc*)
8610         lt_prog_compiler_pic='-qnocommon'
8611         lt_prog_compiler_wl='-Wl,'
8612         ;;
8613       esac
8614       ;;
8615
8616    mingw* | pw32* | os2*)
8617      # This hack is so that the source file can tell whether it is being
8618      # built for inclusion in a dll (and should export symbols for example).
8619      lt_prog_compiler_pic='-DDLL_EXPORT'
8620      ;;
8621
8622    hpux9* | hpux10* | hpux11*)
8623      lt_prog_compiler_wl='-Wl,'
8624      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8625      # not for PA HP-UX.
8626      case $host_cpu in
8627      hppa*64*|ia64*)
8628        # +Z the default
8629        ;;
8630      *)
8631        lt_prog_compiler_pic='+Z'
8632        ;;
8633      esac
8634      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8635      lt_prog_compiler_static='${wl}-a ${wl}archive'
8636      ;;
8637
8638    irix5* | irix6* | nonstopux*)
8639      lt_prog_compiler_wl='-Wl,'
8640      # PIC (with -KPIC) is the default.
8641      lt_prog_compiler_static='-non_shared'
8642      ;;
8643
8644    newsos6)
8645      lt_prog_compiler_pic='-KPIC'
8646      lt_prog_compiler_static='-Bstatic'
8647      ;;
8648
8649    linux*)
8650      case $cc_basename in
8651      icc* | ecc*)
8652        lt_prog_compiler_wl='-Wl,'
8653        lt_prog_compiler_pic='-KPIC'
8654        lt_prog_compiler_static='-static'
8655        ;;
8656      pgcc* | pgf77* | pgf90* | pgf95*)
8657        # Portland Group compilers (*not* the Pentium gcc compiler,
8658        # which looks to be a dead project)
8659        lt_prog_compiler_wl='-Wl,'
8660        lt_prog_compiler_pic='-fpic'
8661        lt_prog_compiler_static='-Bstatic'
8662        ;;
8663      ccc*)
8664        lt_prog_compiler_wl='-Wl,'
8665        # All Alpha code is PIC.
8666        lt_prog_compiler_static='-non_shared'
8667        ;;
8668      esac
8669      ;;
8670
8671    osf3* | osf4* | osf5*)
8672      lt_prog_compiler_wl='-Wl,'
8673      # All OSF/1 code is PIC.
8674      lt_prog_compiler_static='-non_shared'
8675      ;;
8676
8677    solaris*)
8678      lt_prog_compiler_pic='-KPIC'
8679      lt_prog_compiler_static='-Bstatic'
8680      case $cc_basename in
8681      f77* | f90* | f95*)
8682        lt_prog_compiler_wl='-Qoption ld ';;
8683      *)
8684        lt_prog_compiler_wl='-Wl,';;
8685      esac
8686      ;;
8687
8688    sunos4*)
8689      lt_prog_compiler_wl='-Qoption ld '
8690      lt_prog_compiler_pic='-PIC'
8691      lt_prog_compiler_static='-Bstatic'
8692      ;;
8693
8694    sysv4 | sysv4.2uw2* | sysv4.3*)
8695      lt_prog_compiler_wl='-Wl,'
8696      lt_prog_compiler_pic='-KPIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    sysv4*MP*)
8701      if test -d /usr/nec ;then
8702        lt_prog_compiler_pic='-Kconform_pic'
8703        lt_prog_compiler_static='-Bstatic'
8704      fi
8705      ;;
8706
8707    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8708      lt_prog_compiler_wl='-Wl,'
8709      lt_prog_compiler_pic='-KPIC'
8710      lt_prog_compiler_static='-Bstatic'
8711      ;;
8712
8713    unicos*)
8714      lt_prog_compiler_wl='-Wl,'
8715      lt_prog_compiler_can_build_shared=no
8716      ;;
8717
8718    uts4*)
8719      lt_prog_compiler_pic='-pic'
8720      lt_prog_compiler_static='-Bstatic'
8721      ;;
8722
8723    *)
8724      lt_prog_compiler_can_build_shared=no
8725      ;;
8726    esac
8727  fi
8728
8729echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8730echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8731
8732#
8733# Check to make sure the PIC flag actually works.
8734#
8735if test -n "$lt_prog_compiler_pic"; then
8736
8737echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8738echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8739if test "${lt_prog_compiler_pic_works+set}" = set; then
8740  echo $ECHO_N "(cached) $ECHO_C" >&6
8741else
8742  lt_prog_compiler_pic_works=no
8743  ac_outfile=conftest.$ac_objext
8744   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8745   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8746   # Insert the option either (1) after the last *FLAGS variable, or
8747   # (2) before a word containing "conftest.", or (3) at the end.
8748   # Note that $ac_compile itself does not contain backslashes and begins
8749   # with a dollar sign (not a hyphen), so the echo should work correctly.
8750   # The option is referenced via a variable to avoid confusing sed.
8751   lt_compile=`echo "$ac_compile" | $SED \
8752   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754   -e 's:$: $lt_compiler_flag:'`
8755   (eval echo "\"\$as_me:8755: $lt_compile\"" >&5)
8756   (eval "$lt_compile" 2>conftest.err)
8757   ac_status=$?
8758   cat conftest.err >&5
8759   echo "$as_me:8759: \$? = $ac_status" >&5
8760   if (exit $ac_status) && test -s "$ac_outfile"; then
8761     # The compiler can only warn and ignore the option if not recognized
8762     # So say no if there are warnings other than the usual output.
8763     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8764     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8766       lt_prog_compiler_pic_works=yes
8767     fi
8768   fi
8769   $rm conftest*
8770
8771fi
8772echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8773echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8774
8775if test x"$lt_prog_compiler_pic_works" = xyes; then
8776    case $lt_prog_compiler_pic in
8777     "" | " "*) ;;
8778     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8779     esac
8780else
8781    lt_prog_compiler_pic=
8782     lt_prog_compiler_can_build_shared=no
8783fi
8784
8785fi
8786case $host_os in
8787  # For platforms which do not support PIC, -DPIC is meaningless:
8788  *djgpp*)
8789    lt_prog_compiler_pic=
8790    ;;
8791  *)
8792    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8793    ;;
8794esac
8795
8796#
8797# Check to make sure the static flag actually works.
8798#
8799wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8800echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8801echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8802if test "${lt_prog_compiler_static_works+set}" = set; then
8803  echo $ECHO_N "(cached) $ECHO_C" >&6
8804else
8805  lt_prog_compiler_static_works=no
8806   save_LDFLAGS="$LDFLAGS"
8807   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8808   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8809   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8810     # The linker can only warn and ignore the option if not recognized
8811     # So say no if there are warnings
8812     if test -s conftest.err; then
8813       # Append any errors to the config.log.
8814       cat conftest.err 1>&5
8815       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8816       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8817       if diff conftest.exp conftest.er2 >/dev/null; then
8818         lt_prog_compiler_static_works=yes
8819       fi
8820     else
8821       lt_prog_compiler_static_works=yes
8822     fi
8823   fi
8824   $rm conftest*
8825   LDFLAGS="$save_LDFLAGS"
8826
8827fi
8828echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8829echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8830
8831if test x"$lt_prog_compiler_static_works" = xyes; then
8832    :
8833else
8834    lt_prog_compiler_static=
8835fi
8836
8837
8838echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8839echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8840if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843  lt_cv_prog_compiler_c_o=no
8844   $rm -r conftest 2>/dev/null
8845   mkdir conftest
8846   cd conftest
8847   mkdir out
8848   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850   lt_compiler_flag="-o out/conftest2.$ac_objext"
8851   # Insert the option either (1) after the last *FLAGS variable, or
8852   # (2) before a word containing "conftest.", or (3) at the end.
8853   # Note that $ac_compile itself does not contain backslashes and begins
8854   # with a dollar sign (not a hyphen), so the echo should work correctly.
8855   lt_compile=`echo "$ac_compile" | $SED \
8856   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858   -e 's:$: $lt_compiler_flag:'`
8859   (eval echo "\"\$as_me:8859: $lt_compile\"" >&5)
8860   (eval "$lt_compile" 2>out/conftest.err)
8861   ac_status=$?
8862   cat out/conftest.err >&5
8863   echo "$as_me:8863: \$? = $ac_status" >&5
8864   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865   then
8866     # The compiler can only warn and ignore the option if not recognized
8867     # So say no if there are warnings
8868     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8869     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871       lt_cv_prog_compiler_c_o=yes
8872     fi
8873   fi
8874   chmod u+w . 2>&5
8875   $rm conftest*
8876   # SGI C++ compiler will create directory out/ii_files/ for
8877   # template instantiation
8878   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8879   $rm out/* && rmdir out
8880   cd ..
8881   rmdir conftest
8882   $rm conftest*
8883
8884fi
8885echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8886echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8887
8888
8889hard_links="nottested"
8890if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8891  # do not overwrite the value of need_locks provided by the user
8892  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8893echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8894  hard_links=yes
8895  $rm conftest*
8896  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8897  touch conftest.a
8898  ln conftest.a conftest.b 2>&5 || hard_links=no
8899  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900  echo "$as_me:$LINENO: result: $hard_links" >&5
8901echo "${ECHO_T}$hard_links" >&6
8902  if test "$hard_links" = no; then
8903    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8904echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8905    need_locks=warn
8906  fi
8907else
8908  need_locks=no
8909fi
8910
8911echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8912echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8913
8914  runpath_var=
8915  allow_undefined_flag=
8916  enable_shared_with_static_runtimes=no
8917  archive_cmds=
8918  archive_expsym_cmds=
8919  old_archive_From_new_cmds=
8920  old_archive_from_expsyms_cmds=
8921  export_dynamic_flag_spec=
8922  whole_archive_flag_spec=
8923  thread_safe_flag_spec=
8924  hardcode_libdir_flag_spec=
8925  hardcode_libdir_flag_spec_ld=
8926  hardcode_libdir_separator=
8927  hardcode_direct=no
8928  hardcode_minus_L=no
8929  hardcode_shlibpath_var=unsupported
8930  link_all_deplibs=unknown
8931  hardcode_automatic=no
8932  module_cmds=
8933  module_expsym_cmds=
8934  always_export_symbols=no
8935  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8936  # include_expsyms should be a list of space-separated symbols to be *always*
8937  # included in the symbol list
8938  include_expsyms=
8939  # exclude_expsyms can be an extended regexp of symbols to exclude
8940  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8941  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8942  # as well as any symbol that contains `d'.
8943  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8944  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8945  # platforms (ab)use it in PIC code, but their linkers get confused if
8946  # the symbol is explicitly referenced.  Since portable code cannot
8947  # rely on this symbol name, it's probably fine to never include it in
8948  # preloaded symbol tables.
8949  extract_expsyms_cmds=
8950  # Just being paranoid about ensuring that cc_basename is set.
8951  for cc_temp in $compiler""; do
8952  case $cc_temp in
8953    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8954    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8955    \-*) ;;
8956    *) break;;
8957  esac
8958done
8959cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8960
8961  case $host_os in
8962  cygwin* | mingw* | pw32*)
8963    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964    # When not using gcc, we currently assume that we are using
8965    # Microsoft Visual C++.
8966    if test "$GCC" != yes; then
8967      with_gnu_ld=no
8968    fi
8969    ;;
8970  interix*)
8971    # we just hope/assume this is gcc and not c89 (= MSVC++)
8972    with_gnu_ld=yes
8973    ;;
8974  openbsd*)
8975    with_gnu_ld=no
8976    ;;
8977  esac
8978
8979  ld_shlibs=yes
8980  if test "$with_gnu_ld" = yes; then
8981    # If archive_cmds runs LD, not CC, wlarc should be empty
8982    wlarc='${wl}'
8983
8984    # Set some defaults for GNU ld with shared library support. These
8985    # are reset later if shared libraries are not supported. Putting them
8986    # here allows them to be overridden if necessary.
8987    runpath_var=LD_RUN_PATH
8988    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8989    export_dynamic_flag_spec='${wl}--export-dynamic'
8990    # ancient GNU ld didn't support --whole-archive et. al.
8991    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8992        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8993      else
8994        whole_archive_flag_spec=
8995    fi
8996    supports_anon_versioning=no
8997    case `$LD -v 2>/dev/null` in
8998      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8999      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9000      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9001      *\ 2.11.*) ;; # other 2.11 versions
9002      *) supports_anon_versioning=yes ;;
9003    esac
9004
9005    # See if GNU ld supports shared libraries.
9006    case $host_os in
9007    aix3* | aix4* | aix5*)
9008      # On AIX/PPC, the GNU linker is very broken
9009      if test "$host_cpu" != ia64; then
9010        ld_shlibs=no
9011        cat <<EOF 1>&2
9012
9013*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9014*** to be unable to reliably create shared libraries on AIX.
9015*** Therefore, libtool is disabling shared libraries support.  If you
9016*** really care for shared libraries, you may want to modify your PATH
9017*** so that a non-GNU linker is found, and then restart.
9018
9019EOF
9020      fi
9021      ;;
9022
9023    amigaos*)
9024      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)'
9025      hardcode_libdir_flag_spec='-L$libdir'
9026      hardcode_minus_L=yes
9027
9028      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9029      # that the semantics of dynamic libraries on AmigaOS, at least up
9030      # to version 4, is to share data among multiple programs linked
9031      # with the same dynamic library.  Since this doesn't match the
9032      # behavior of shared libraries on other platforms, we can't use
9033      # them.
9034      ld_shlibs=no
9035      ;;
9036
9037    beos*)
9038      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9039        allow_undefined_flag=unsupported
9040        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9041        # support --undefined.  This deserves some investigation.  FIXME
9042        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043      else
9044        ld_shlibs=no
9045      fi
9046      ;;
9047
9048    cygwin* | mingw* | pw32*)
9049      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9050      # as there is no search path for DLLs.
9051      hardcode_libdir_flag_spec='-L$libdir'
9052      allow_undefined_flag=unsupported
9053      always_export_symbols=no
9054      enable_shared_with_static_runtimes=yes
9055      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9056
9057      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9058        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9059        # If the export-symbols file already is a .def file (1st line
9060        # is EXPORTS), use it as is; otherwise, prepend...
9061        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9062          cp $export_symbols $output_objdir/$soname.def;
9063        else
9064          echo EXPORTS > $output_objdir/$soname.def;
9065          cat $export_symbols >> $output_objdir/$soname.def;
9066        fi~
9067        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9068      else
9069        ld_shlibs=no
9070      fi
9071      ;;
9072
9073    interix3*)
9074      hardcode_direct=no
9075      hardcode_shlibpath_var=no
9076      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9077      export_dynamic_flag_spec='${wl}-E'
9078      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9079      # Instead, shared libraries are loaded at an image base (0x10000000 by
9080      # default) and relocated if they conflict, which is a slow very memory
9081      # consuming and fragmenting process.  To avoid this, we pick a random,
9082      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9083      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9084      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9085      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'
9086      ;;
9087
9088    linux*)
9089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090        tmp_addflag=
9091        case $cc_basename,$host_cpu in
9092        pgcc*)                          # Portland Group C compiler
9093          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'
9094          tmp_addflag=' $pic_flag'
9095          ;;
9096        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9097          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'
9098          tmp_addflag=' $pic_flag -Mnomain' ;;
9099        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9100          tmp_addflag=' -i_dynamic' ;;
9101        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9102          tmp_addflag=' -i_dynamic -nofor_main' ;;
9103        ifc* | ifort*)                  # Intel Fortran compiler
9104          tmp_addflag=' -nofor_main' ;;
9105        esac
9106        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107
9108        if test $supports_anon_versioning = yes; then
9109          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9110  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9111  $echo "local: *; };" >> $output_objdir/$libname.ver~
9112          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9113        fi
9114      else
9115        ld_shlibs=no
9116      fi
9117      ;;
9118
9119    netbsd*)
9120      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9121        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9122        wlarc=
9123      else
9124        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9125        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9126      fi
9127      ;;
9128
9129    solaris*)
9130      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9131        ld_shlibs=no
9132        cat <<EOF 1>&2
9133
9134*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9135*** create shared libraries on Solaris systems.  Therefore, libtool
9136*** is disabling shared libraries support.  We urge you to upgrade GNU
9137*** binutils to release 2.9.1 or newer.  Another option is to modify
9138*** your PATH or compiler configuration so that the native linker is
9139*** used, and then restart.
9140
9141EOF
9142      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9145      else
9146        ld_shlibs=no
9147      fi
9148      ;;
9149
9150    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9151      case `$LD -v 2>&1` in
9152        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9153        ld_shlibs=no
9154        cat <<_LT_EOF 1>&2
9155
9156*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9157*** reliably create shared libraries on SCO systems.  Therefore, libtool
9158*** is disabling shared libraries support.  We urge you to upgrade GNU
9159*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9160*** your PATH or compiler configuration so that the native linker is
9161*** used, and then restart.
9162
9163_LT_EOF
9164        ;;
9165        *)
9166          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9167            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9168            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9169            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9170          else
9171            ld_shlibs=no
9172          fi
9173        ;;
9174      esac
9175      ;;
9176
9177    sunos4*)
9178      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9179      wlarc=
9180      hardcode_direct=yes
9181      hardcode_shlibpath_var=no
9182      ;;
9183
9184    *)
9185      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9186        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188      else
9189        ld_shlibs=no
9190      fi
9191      ;;
9192    esac
9193
9194    if test "$ld_shlibs" = no; then
9195      runpath_var=
9196      hardcode_libdir_flag_spec=
9197      export_dynamic_flag_spec=
9198      whole_archive_flag_spec=
9199    fi
9200  else
9201    # PORTME fill in a description of your system's linker (not GNU ld)
9202    case $host_os in
9203    aix3*)
9204      allow_undefined_flag=unsupported
9205      always_export_symbols=yes
9206      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'
9207      # Note: this linker hardcodes the directories in LIBPATH if there
9208      # are no directories specified by -L.
9209      hardcode_minus_L=yes
9210      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9211        # Neither direct hardcoding nor static linking is supported with a
9212        # broken collect2.
9213        hardcode_direct=unsupported
9214      fi
9215      ;;
9216
9217    aix4* | aix5*)
9218      if test "$host_cpu" = ia64; then
9219        # On IA64, the linker does run time linking by default, so we don't
9220        # have to do anything special.
9221        aix_use_runtimelinking=no
9222        exp_sym_flag='-Bexport'
9223        no_entry_flag=""
9224      else
9225        # If we're using GNU nm, then we don't want the "-C" option.
9226        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9227        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9228          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'
9229        else
9230          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'
9231        fi
9232        aix_use_runtimelinking=no
9233
9234        # Test if we are trying to use run time linking or normal
9235        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9236        # need to do runtime linking.
9237        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9238          for ld_flag in $LDFLAGS; do
9239          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9240            aix_use_runtimelinking=yes
9241            break
9242          fi
9243          done
9244          ;;
9245        esac
9246
9247        exp_sym_flag='-bexport'
9248        no_entry_flag='-bnoentry'
9249      fi
9250
9251      # When large executables or shared objects are built, AIX ld can
9252      # have problems creating the table of contents.  If linking a library
9253      # or program results in "error TOC overflow" add -mminimal-toc to
9254      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9255      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9256
9257      archive_cmds=''
9258      hardcode_direct=yes
9259      hardcode_libdir_separator=':'
9260      link_all_deplibs=yes
9261
9262      if test "$GCC" = yes; then
9263        case $host_os in aix4.[012]|aix4.[012].*)
9264        # We only want to do this on AIX 4.2 and lower, the check
9265        # below for broken collect2 doesn't work under 4.3+
9266          collect2name=`${CC} -print-prog-name=collect2`
9267          if test -f "$collect2name" && \
9268           strings "$collect2name" | grep resolve_lib_name >/dev/null
9269          then
9270          # We have reworked collect2
9271          hardcode_direct=yes
9272          else
9273          # We have old collect2
9274          hardcode_direct=unsupported
9275          # It fails to find uninstalled libraries when the uninstalled
9276          # path is not listed in the libpath.  Setting hardcode_minus_L
9277          # to unsupported forces relinking
9278          hardcode_minus_L=yes
9279          hardcode_libdir_flag_spec='-L$libdir'
9280          hardcode_libdir_separator=
9281          fi
9282          ;;
9283        esac
9284        shared_flag='-shared'
9285        if test "$aix_use_runtimelinking" = yes; then
9286          shared_flag="$shared_flag "'${wl}-G'
9287        fi
9288      else
9289        # not using gcc
9290        if test "$host_cpu" = ia64; then
9291        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9292        # chokes on -Wl,-G. The following line is correct:
9293          shared_flag='-G'
9294        else
9295          if test "$aix_use_runtimelinking" = yes; then
9296            shared_flag='${wl}-G'
9297          else
9298            shared_flag='${wl}-bM:SRE'
9299          fi
9300        fi
9301      fi
9302
9303      # It seems that -bexpall does not export symbols beginning with
9304      # underscore (_), so it is better to generate a list of symbols to export.
9305      always_export_symbols=yes
9306      if test "$aix_use_runtimelinking" = yes; then
9307        # Warning - without using the other runtime loading flags (-brtl),
9308        # -berok will link without error, but may produce a broken library.
9309        allow_undefined_flag='-berok'
9310       # Determine the default libpath from the value encoded in an empty executable.
9311       cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h.  */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h.  */
9317
9318int
9319main ()
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328  (eval $ac_link) 2>conftest.er1
9329  ac_status=$?
9330  grep -v '^ *+' conftest.er1 >conftest.err
9331  rm -f conftest.er1
9332  cat conftest.err >&5
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } &&
9335         { ac_try='test -z "$ac_c_werror_flag"
9336                         || test ! -s conftest.err'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; } &&
9342         { ac_try='test -s conftest$ac_exeext'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; }; then
9348
9349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9350}'`
9351# Check for a 64-bit object if we didn't find anything.
9352if 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; }
9353}'`; fi
9354else
9355  echo "$as_me: failed program was:" >&5
9356sed 's/^/| /' conftest.$ac_ext >&5
9357
9358fi
9359rm -f conftest.err conftest.$ac_objext \
9360      conftest$ac_exeext conftest.$ac_ext
9361if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9362
9363       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9364        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"
9365       else
9366        if test "$host_cpu" = ia64; then
9367          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9368          allow_undefined_flag="-z nodefs"
9369          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"
9370        else
9371         # Determine the default libpath from the value encoded in an empty executable.
9372         cat >conftest.$ac_ext <<_ACEOF
9373/* confdefs.h.  */
9374_ACEOF
9375cat confdefs.h >>conftest.$ac_ext
9376cat >>conftest.$ac_ext <<_ACEOF
9377/* end confdefs.h.  */
9378
9379int
9380main ()
9381{
9382
9383  ;
9384  return 0;
9385}
9386_ACEOF
9387rm -f conftest.$ac_objext conftest$ac_exeext
9388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389  (eval $ac_link) 2>conftest.er1
9390  ac_status=$?
9391  grep -v '^ *+' conftest.er1 >conftest.err
9392  rm -f conftest.er1
9393  cat conftest.err >&5
9394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); } &&
9396         { ac_try='test -z "$ac_c_werror_flag"
9397                         || test ! -s conftest.err'
9398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399  (eval $ac_try) 2>&5
9400  ac_status=$?
9401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402  (exit $ac_status); }; } &&
9403         { ac_try='test -s conftest$ac_exeext'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; }; then
9409
9410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9411}'`
9412# Check for a 64-bit object if we didn't find anything.
9413if 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; }
9414}'`; fi
9415else
9416  echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
9419fi
9420rm -f conftest.err conftest.$ac_objext \
9421      conftest$ac_exeext conftest.$ac_ext
9422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9423
9424         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425          # Warning - without using the other run time loading flags,
9426          # -berok will link without error, but may produce a broken library.
9427          no_undefined_flag=' ${wl}-bernotok'
9428          allow_undefined_flag=' ${wl}-berok'
9429          # Exported symbols can be pulled into shared objects from archives
9430          whole_archive_flag_spec='$convenience'
9431          archive_cmds_need_lc=yes
9432          # This is similar to how AIX traditionally builds its shared libraries.
9433          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'
9434        fi
9435      fi
9436      ;;
9437
9438    amigaos*)
9439      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)'
9440      hardcode_libdir_flag_spec='-L$libdir'
9441      hardcode_minus_L=yes
9442      # see comment about different semantics on the GNU ld section
9443      ld_shlibs=no
9444      ;;
9445
9446    bsdi[45]*)
9447      export_dynamic_flag_spec=-rdynamic
9448      ;;
9449
9450    cygwin* | mingw* | pw32*)
9451      # When not using gcc, we currently assume that we are using
9452      # Microsoft Visual C++.
9453      # hardcode_libdir_flag_spec is actually meaningless, as there is
9454      # no search path for DLLs.
9455      hardcode_libdir_flag_spec=' '
9456      allow_undefined_flag=unsupported
9457      # Tell ltmain to make .lib files, not .a files.
9458      libext=lib
9459      # Tell ltmain to make .dll files, not .so files.
9460      shrext_cmds=".dll"
9461      # FIXME: Setting linknames here is a bad hack.
9462      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9463      # The linker will automatically build a .lib file if we build a DLL.
9464      old_archive_From_new_cmds='true'
9465      # FIXME: Should let the user specify the lib program.
9466      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9467      fix_srcfile_path='`cygpath -w "$srcfile"`'
9468      enable_shared_with_static_runtimes=yes
9469      ;;
9470
9471    darwin* | rhapsody*)
9472      case $host_os in
9473        rhapsody* | darwin1.[012])
9474         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9475         ;;
9476       *) # Darwin 1.3 on
9477         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9478           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9479         else
9480           case ${MACOSX_DEPLOYMENT_TARGET} in
9481             10.[012])
9482               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9483               ;;
9484             10.*)
9485               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9486               ;;
9487           esac
9488         fi
9489         ;;
9490      esac
9491      archive_cmds_need_lc=no
9492      hardcode_direct=no
9493      hardcode_automatic=yes
9494      hardcode_shlibpath_var=unsupported
9495      whole_archive_flag_spec=''
9496      link_all_deplibs=yes
9497    if test "$GCC" = yes ; then
9498        output_verbose_link_cmd='echo'
9499        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9500      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9501      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9502      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}'
9503      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}'
9504    else
9505      case $cc_basename in
9506        xlc*)
9507         output_verbose_link_cmd='echo'
9508         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9509         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9510          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9511         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}'
9512          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}'
9513          ;;
9514       *)
9515         ld_shlibs=no
9516          ;;
9517      esac
9518    fi
9519      ;;
9520
9521    dgux*)
9522      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523      hardcode_libdir_flag_spec='-L$libdir'
9524      hardcode_shlibpath_var=no
9525      ;;
9526
9527    freebsd1*)
9528      ld_shlibs=no
9529      ;;
9530
9531    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9532    # support.  Future versions do this automatically, but an explicit c++rt0.o
9533    # does not break anything, and helps significantly (at the cost of a little
9534    # extra space).
9535    freebsd2.2*)
9536      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9537      hardcode_libdir_flag_spec='-R$libdir'
9538      hardcode_direct=yes
9539      hardcode_shlibpath_var=no
9540      ;;
9541
9542    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9543    freebsd2*)
9544      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545      hardcode_direct=yes
9546      hardcode_minus_L=yes
9547      hardcode_shlibpath_var=no
9548      ;;
9549
9550    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9551    freebsd* | kfreebsd*-gnu | dragonfly*)
9552      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9553      hardcode_libdir_flag_spec='-R$libdir'
9554      hardcode_direct=yes
9555      hardcode_shlibpath_var=no
9556      ;;
9557
9558    hpux9*)
9559      if test "$GCC" = yes; then
9560        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'
9561      else
9562        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'
9563      fi
9564      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565      hardcode_libdir_separator=:
9566      hardcode_direct=yes
9567
9568      # hardcode_minus_L: Not really in the search PATH,
9569      # but as the default location of the library.
9570      hardcode_minus_L=yes
9571      export_dynamic_flag_spec='${wl}-E'
9572      ;;
9573
9574    hpux10*)
9575      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9576        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9577      else
9578        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9579      fi
9580      if test "$with_gnu_ld" = no; then
9581        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9582        hardcode_libdir_separator=:
9583
9584        hardcode_direct=yes
9585        export_dynamic_flag_spec='${wl}-E'
9586
9587        # hardcode_minus_L: Not really in the search PATH,
9588        # but as the default location of the library.
9589        hardcode_minus_L=yes
9590      fi
9591      ;;
9592
9593    hpux11*)
9594      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9595        case $host_cpu in
9596        hppa*64*)
9597          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598          ;;
9599        ia64*)
9600          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9601          ;;
9602        *)
9603          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9604          ;;
9605        esac
9606      else
9607        case $host_cpu in
9608        hppa*64*)
9609          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9610          ;;
9611        ia64*)
9612          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9613          ;;
9614        *)
9615          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9616          ;;
9617        esac
9618      fi
9619      if test "$with_gnu_ld" = no; then
9620        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9621        hardcode_libdir_separator=:
9622
9623        case $host_cpu in
9624        hppa*64*|ia64*)
9625          hardcode_libdir_flag_spec_ld='+b $libdir'
9626          hardcode_direct=no
9627          hardcode_shlibpath_var=no
9628          ;;
9629        *)
9630          hardcode_direct=yes
9631          export_dynamic_flag_spec='${wl}-E'
9632
9633          # hardcode_minus_L: Not really in the search PATH,
9634          # but as the default location of the library.
9635          hardcode_minus_L=yes
9636          ;;
9637        esac
9638      fi
9639      ;;
9640
9641    irix5* | irix6* | nonstopux*)
9642      if test "$GCC" = yes; then
9643        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'
9644      else
9645        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'
9646        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9647      fi
9648      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649      hardcode_libdir_separator=:
9650      link_all_deplibs=yes
9651      ;;
9652
9653    netbsd*)
9654      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9655        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9656      else
9657        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9658      fi
9659      hardcode_libdir_flag_spec='-R$libdir'
9660      hardcode_direct=yes
9661      hardcode_shlibpath_var=no
9662      ;;
9663
9664    newsos6)
9665      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666      hardcode_direct=yes
9667      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668      hardcode_libdir_separator=:
9669      hardcode_shlibpath_var=no
9670      ;;
9671
9672    openbsd*)
9673      hardcode_direct=yes
9674      hardcode_shlibpath_var=no
9675      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9676        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9677        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9678        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9679        export_dynamic_flag_spec='${wl}-E'
9680      else
9681       case $host_os in
9682         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9683           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9684           hardcode_libdir_flag_spec='-R$libdir'
9685           ;;
9686         *)
9687           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9688           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9689           ;;
9690       esac
9691      fi
9692      ;;
9693
9694    os2*)
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      hardcode_minus_L=yes
9697      allow_undefined_flag=unsupported
9698      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'
9699      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9700      ;;
9701
9702    osf3*)
9703      if test "$GCC" = yes; then
9704        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9705        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'
9706      else
9707        allow_undefined_flag=' -expect_unresolved \*'
9708        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'
9709      fi
9710      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711      hardcode_libdir_separator=:
9712      ;;
9713
9714    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9715      if test "$GCC" = yes; then
9716        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9717        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'
9718        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719      else
9720        allow_undefined_flag=' -expect_unresolved \*'
9721        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'
9722        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9723        $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'
9724
9725        # Both c and cxx compiler support -rpath directly
9726        hardcode_libdir_flag_spec='-rpath $libdir'
9727      fi
9728      hardcode_libdir_separator=:
9729      ;;
9730
9731    solaris*)
9732      no_undefined_flag=' -z text'
9733      if test "$GCC" = yes; then
9734        wlarc='${wl}'
9735        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9736        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9737          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9738      else
9739        wlarc=''
9740        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9742        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9743      fi
9744      hardcode_libdir_flag_spec='-R$libdir'
9745      hardcode_shlibpath_var=no
9746      case $host_os in
9747      solaris2.[0-5] | solaris2.[0-5].*) ;;
9748      *)
9749        # The compiler driver will combine linker options so we
9750        # cannot just pass the convience library names through
9751        # without $wl, iff we do not link with $LD.
9752        # Luckily, gcc supports the same syntax we need for Sun Studio.
9753        # Supported since Solaris 2.6 (maybe 2.5.1?)
9754        case $wlarc in
9755        '')
9756          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9757        *)
9758          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' ;;
9759        esac ;;
9760      esac
9761      link_all_deplibs=yes
9762      ;;
9763
9764    sunos4*)
9765      if test "x$host_vendor" = xsequent; then
9766        # Use $CC to link under sequent, because it throws in some extra .o
9767        # files that make .init and .fini sections work.
9768        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9769      else
9770        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9771      fi
9772      hardcode_libdir_flag_spec='-L$libdir'
9773      hardcode_direct=yes
9774      hardcode_minus_L=yes
9775      hardcode_shlibpath_var=no
9776      ;;
9777
9778    sysv4)
9779      case $host_vendor in
9780        sni)
9781          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782          hardcode_direct=yes # is this really true???
9783        ;;
9784        siemens)
9785          ## LD is ld it makes a PLAMLIB
9786          ## CC just makes a GrossModule.
9787          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9788          reload_cmds='$CC -r -o $output$reload_objs'
9789          hardcode_direct=no
9790        ;;
9791        motorola)
9792          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9794        ;;
9795      esac
9796      runpath_var='LD_RUN_PATH'
9797      hardcode_shlibpath_var=no
9798      ;;
9799
9800    sysv4.3*)
9801      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802      hardcode_shlibpath_var=no
9803      export_dynamic_flag_spec='-Bexport'
9804      ;;
9805
9806    sysv4*MP*)
9807      if test -d /usr/nec; then
9808        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809        hardcode_shlibpath_var=no
9810        runpath_var=LD_RUN_PATH
9811        hardcode_runpath_var=yes
9812        ld_shlibs=yes
9813      fi
9814      ;;
9815
9816    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9817      no_undefined_flag='${wl}-z,text'
9818      archive_cmds_need_lc=no
9819      hardcode_shlibpath_var=no
9820      runpath_var='LD_RUN_PATH'
9821
9822      if test "$GCC" = yes; then
9823        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825      else
9826        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828      fi
9829      ;;
9830
9831    sysv5* | sco3.2v5* | sco5v6*)
9832      # Note: We can NOT use -z defs as we might desire, because we do not
9833      # link with -lc, and that would cause any symbols used from libc to
9834      # always be unresolved, which means just about no library would
9835      # ever link correctly.  If we're not using GNU ld we use -z text
9836      # though, which does catch some bad symbols but isn't as heavy-handed
9837      # as -z defs.
9838      no_undefined_flag='${wl}-z,text'
9839      allow_undefined_flag='${wl}-z,nodefs'
9840      archive_cmds_need_lc=no
9841      hardcode_shlibpath_var=no
9842      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9843      hardcode_libdir_separator=':'
9844      link_all_deplibs=yes
9845      export_dynamic_flag_spec='${wl}-Bexport'
9846      runpath_var='LD_RUN_PATH'
9847
9848      if test "$GCC" = yes; then
9849        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851      else
9852        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9853        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9854      fi
9855      ;;
9856
9857    uts4*)
9858      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859      hardcode_libdir_flag_spec='-L$libdir'
9860      hardcode_shlibpath_var=no
9861      ;;
9862
9863    *)
9864      ld_shlibs=no
9865      ;;
9866    esac
9867  fi
9868
9869echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9870echo "${ECHO_T}$ld_shlibs" >&6
9871test "$ld_shlibs" = no && can_build_shared=no
9872
9873#
9874# Do we need to explicitly link libc?
9875#
9876case "x$archive_cmds_need_lc" in
9877x|xyes)
9878  # Assume -lc should be added
9879  archive_cmds_need_lc=yes
9880
9881  if test "$enable_shared" = yes && test "$GCC" = yes; then
9882    case $archive_cmds in
9883    *'~'*)
9884      # FIXME: we may have to deal with multi-command sequences.
9885      ;;
9886    '$CC '*)
9887      # Test whether the compiler implicitly links with -lc since on some
9888      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9889      # to ld, don't add -lc before -lgcc.
9890      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9891echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9892      $rm conftest*
9893      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9894
9895      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896  (eval $ac_compile) 2>&5
9897  ac_status=$?
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); } 2>conftest.err; then
9900        soname=conftest
9901        lib=conftest
9902        libobjs=conftest.$ac_objext
9903        deplibs=
9904        wl=$lt_prog_compiler_wl
9905        pic_flag=$lt_prog_compiler_pic
9906        compiler_flags=-v
9907        linker_flags=-v
9908        verstring=
9909        output_objdir=.
9910        libname=conftest
9911        lt_save_allow_undefined_flag=$allow_undefined_flag
9912        allow_undefined_flag=
9913        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9914  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9915  ac_status=$?
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); }
9918        then
9919          archive_cmds_need_lc=no
9920        else
9921          archive_cmds_need_lc=yes
9922        fi
9923        allow_undefined_flag=$lt_save_allow_undefined_flag
9924      else
9925        cat conftest.err 1>&5
9926      fi
9927      $rm conftest*
9928      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9929echo "${ECHO_T}$archive_cmds_need_lc" >&6
9930      ;;
9931    esac
9932  fi
9933  ;;
9934esac
9935
9936echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9937echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9938library_names_spec=
9939libname_spec='lib$name'
9940soname_spec=
9941shrext_cmds=".so"
9942postinstall_cmds=
9943postuninstall_cmds=
9944finish_cmds=
9945finish_eval=
9946shlibpath_var=
9947shlibpath_overrides_runpath=unknown
9948version_type=none
9949dynamic_linker="$host_os ld.so"
9950sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951if test "$GCC" = yes; then
9952  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9954    # if the path contains ";" then we assume it to be the separator
9955    # otherwise default to the standard path separator (i.e. ":") - it is
9956    # assumed that no part of a normal pathname contains ";" but that should
9957    # okay in the real world where ";" in dirpaths is itself problematic.
9958    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9959  else
9960    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9961  fi
9962else
9963  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9964fi
9965need_lib_prefix=unknown
9966hardcode_into_libs=no
9967
9968# when you set need_version to no, make sure it does not cause -set_version
9969# flags to be left without arguments
9970need_version=unknown
9971
9972case $host_os in
9973aix3*)
9974  version_type=linux
9975  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9976  shlibpath_var=LIBPATH
9977
9978  # AIX 3 has no versioning support, so we append a major version to the name.
9979  soname_spec='${libname}${release}${shared_ext}$major'
9980  ;;
9981
9982aix4* | aix5*)
9983  version_type=linux
9984  need_lib_prefix=no
9985  need_version=no
9986  hardcode_into_libs=yes
9987  if test "$host_cpu" = ia64; then
9988    # AIX 5 supports IA64
9989    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9990    shlibpath_var=LD_LIBRARY_PATH
9991  else
9992    # With GCC up to 2.95.x, collect2 would create an import file
9993    # for dependence libraries.  The import file would start with
9994    # the line `#! .'.  This would cause the generated library to
9995    # depend on `.', always an invalid library.  This was fixed in
9996    # development snapshots of GCC prior to 3.0.
9997    case $host_os in
9998      aix4 | aix4.[01] | aix4.[01].*)
9999      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10000           echo ' yes '
10001           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10002        :
10003      else
10004        can_build_shared=no
10005      fi
10006      ;;
10007    esac
10008    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10009    # soname into executable. Probably we can add versioning support to
10010    # collect2, so additional links can be useful in future.
10011    if test "$aix_use_runtimelinking" = yes; then
10012      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10013      # instead of lib<name>.a to let people know that these are not
10014      # typical AIX shared libraries.
10015      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016    else
10017      # We preserve .a as extension for shared libraries through AIX4.2
10018      # and later when we are not doing run time linking.
10019      library_names_spec='${libname}${release}.a $libname.a'
10020      soname_spec='${libname}${release}${shared_ext}$major'
10021    fi
10022    shlibpath_var=LIBPATH
10023  fi
10024  ;;
10025
10026amigaos*)
10027  library_names_spec='$libname.ixlibrary $libname.a'
10028  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10029  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'
10030  ;;
10031
10032beos*)
10033  library_names_spec='${libname}${shared_ext}'
10034  dynamic_linker="$host_os ld.so"
10035  shlibpath_var=LIBRARY_PATH
10036  ;;
10037
10038bsdi[45]*)
10039  version_type=linux
10040  need_version=no
10041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042  soname_spec='${libname}${release}${shared_ext}$major'
10043  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10046  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10047  # the default ld.so.conf also contains /usr/contrib/lib and
10048  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10049  # libtool to hard-code these into programs
10050  ;;
10051
10052cygwin* | mingw* | pw32*)
10053  version_type=windows
10054  shrext_cmds=".dll"
10055  need_version=no
10056  need_lib_prefix=no
10057
10058  case $GCC,$host_os in
10059  yes,cygwin* | yes,mingw* | yes,pw32*)
10060    library_names_spec='$libname.dll.a'
10061    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10062    postinstall_cmds='base_file=`basename \${file}`~
10063      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10064      dldir=$destdir/`dirname \$dlpath`~
10065      test -d \$dldir || mkdir -p \$dldir~
10066      $install_prog $dir/$dlname \$dldir/$dlname~
10067      chmod a+x \$dldir/$dlname'
10068    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10069      dlpath=$dir/\$dldll~
10070       $rm \$dlpath'
10071    shlibpath_overrides_runpath=yes
10072
10073    case $host_os in
10074    cygwin*)
10075      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10076      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10077      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10078      ;;
10079    mingw*)
10080      # MinGW DLLs use traditional 'lib' prefix
10081      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10082      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10083      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10084        # It is most probably a Windows format PATH printed by
10085        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10086        # path with ; separators, and with drive letters. We can handle the
10087        # drive letters (cygwin fileutils understands them), so leave them,
10088        # especially as we might pass files found there to a mingw objdump,
10089        # which wouldn't understand a cygwinified path. Ahh.
10090        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10091      else
10092        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10093      fi
10094      ;;
10095    pw32*)
10096      # pw32 DLLs use 'pw' prefix rather than 'lib'
10097      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10098      ;;
10099    esac
10100    ;;
10101
10102  *)
10103    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10104    ;;
10105  esac
10106  dynamic_linker='Win32 ld.exe'
10107  # FIXME: first we should search . and the directory the executable is in
10108  shlibpath_var=PATH
10109  ;;
10110
10111darwin* | rhapsody*)
10112  dynamic_linker="$host_os dyld"
10113  version_type=darwin
10114  need_lib_prefix=no
10115  need_version=no
10116  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10117  soname_spec='${libname}${release}${major}$shared_ext'
10118  shlibpath_overrides_runpath=yes
10119  shlibpath_var=DYLD_LIBRARY_PATH
10120  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10121  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10122  if test "$GCC" = yes; then
10123    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"`
10124  else
10125    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10126  fi
10127  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10128  ;;
10129
10130dgux*)
10131  version_type=linux
10132  need_lib_prefix=no
10133  need_version=no
10134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10135  soname_spec='${libname}${release}${shared_ext}$major'
10136  shlibpath_var=LD_LIBRARY_PATH
10137  ;;
10138
10139freebsd1*)
10140  dynamic_linker=no
10141  ;;
10142
10143kfreebsd*-gnu)
10144  version_type=linux
10145  need_lib_prefix=no
10146  need_version=no
10147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10148  soname_spec='${libname}${release}${shared_ext}$major'
10149  shlibpath_var=LD_LIBRARY_PATH
10150  shlibpath_overrides_runpath=no
10151  hardcode_into_libs=yes
10152  dynamic_linker='GNU ld.so'
10153  ;;
10154
10155freebsd* | dragonfly*)
10156  # DragonFly does not have aout.  When/if they implement a new
10157  # versioning mechanism, adjust this.
10158  if test -x /usr/bin/objformat; then
10159    objformat=`/usr/bin/objformat`
10160  else
10161    case $host_os in
10162    freebsd[123]*) objformat=aout ;;
10163    *) objformat=elf ;;
10164    esac
10165  fi
10166  version_type=freebsd-$objformat
10167  case $version_type in
10168    freebsd-elf*)
10169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10170      need_version=no
10171      need_lib_prefix=no
10172      ;;
10173    freebsd-*)
10174      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10175      need_version=yes
10176      ;;
10177  esac
10178  shlibpath_var=LD_LIBRARY_PATH
10179  case $host_os in
10180  freebsd2*)
10181    shlibpath_overrides_runpath=yes
10182    ;;
10183  freebsd3.[01]* | freebsdelf3.[01]*)
10184    shlibpath_overrides_runpath=yes
10185    hardcode_into_libs=yes
10186    ;;
10187  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10188  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10189    shlibpath_overrides_runpath=no
10190    hardcode_into_libs=yes
10191    ;;
10192  freebsd*) # from 4.6 on
10193    shlibpath_overrides_runpath=yes
10194    hardcode_into_libs=yes
10195    ;;
10196  esac
10197  ;;
10198
10199gnu*)
10200  version_type=linux
10201  need_lib_prefix=no
10202  need_version=no
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10204  soname_spec='${libname}${release}${shared_ext}$major'
10205  shlibpath_var=LD_LIBRARY_PATH
10206  hardcode_into_libs=yes
10207  ;;
10208
10209hpux9* | hpux10* | hpux11*)
10210  # Give a soname corresponding to the major version so that dld.sl refuses to
10211  # link against other versions.
10212  version_type=sunos
10213  need_lib_prefix=no
10214  need_version=no
10215  case $host_cpu in
10216  ia64*)
10217    shrext_cmds='.so'
10218    hardcode_into_libs=yes
10219    dynamic_linker="$host_os dld.so"
10220    shlibpath_var=LD_LIBRARY_PATH
10221    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
10225      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10226    else
10227      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10228    fi
10229    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10230    ;;
10231   hppa*64*)
10232     shrext_cmds='.sl'
10233     hardcode_into_libs=yes
10234     dynamic_linker="$host_os dld.sl"
10235     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10236     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238     soname_spec='${libname}${release}${shared_ext}$major'
10239     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10240     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10241     ;;
10242   *)
10243    shrext_cmds='.sl'
10244    dynamic_linker="$host_os dld.sl"
10245    shlibpath_var=SHLIB_PATH
10246    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10247    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248    soname_spec='${libname}${release}${shared_ext}$major'
10249    ;;
10250  esac
10251  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10252  postinstall_cmds='chmod 555 $lib'
10253  ;;
10254
10255interix3*)
10256  version_type=linux
10257  need_lib_prefix=no
10258  need_version=no
10259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10260  soname_spec='${libname}${release}${shared_ext}$major'
10261  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10262  shlibpath_var=LD_LIBRARY_PATH
10263  shlibpath_overrides_runpath=no
10264  hardcode_into_libs=yes
10265  ;;
10266
10267irix5* | irix6* | nonstopux*)
10268  case $host_os in
10269    nonstopux*) version_type=nonstopux ;;
10270    *)
10271        if test "$lt_cv_prog_gnu_ld" = yes; then
10272                version_type=linux
10273        else
10274                version_type=irix
10275        fi ;;
10276  esac
10277  need_lib_prefix=no
10278  need_version=no
10279  soname_spec='${libname}${release}${shared_ext}$major'
10280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10281  case $host_os in
10282  irix5* | nonstopux*)
10283    libsuff= shlibsuff=
10284    ;;
10285  *)
10286    case $LD in # libtool.m4 will add one of these switches to LD
10287    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10288      libsuff= shlibsuff= libmagic=32-bit;;
10289    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10290      libsuff=32 shlibsuff=N32 libmagic=N32;;
10291    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10292      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10293    *) libsuff= shlibsuff= libmagic=never-match;;
10294    esac
10295    ;;
10296  esac
10297  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10298  shlibpath_overrides_runpath=no
10299  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10300  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10301  hardcode_into_libs=yes
10302  ;;
10303
10304# No shared lib support for Linux oldld, aout, or coff.
10305linux*oldld* | linux*aout* | linux*coff*)
10306  dynamic_linker=no
10307  ;;
10308
10309# This must be Linux ELF.
10310linux*)
10311  version_type=linux
10312  need_lib_prefix=no
10313  need_version=no
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315  soname_spec='${libname}${release}${shared_ext}$major'
10316  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10317  shlibpath_var=LD_LIBRARY_PATH
10318  shlibpath_overrides_runpath=no
10319  # This implies no fast_install, which is unacceptable.
10320  # Some rework will be needed to allow for fast_install
10321  # before this can be enabled.
10322  hardcode_into_libs=yes
10323
10324  # Append ld.so.conf contents to the search path
10325  if test -f /etc/ld.so.conf; then
10326    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' ' '`
10327    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10328  fi
10329
10330  # We used to test for /lib/ld.so.1 and disable shared libraries on
10331  # powerpc, because MkLinux only supported shared libraries with the
10332  # GNU dynamic linker.  Since this was broken with cross compilers,
10333  # most powerpc-linux boxes support dynamic linking these days and
10334  # people can always --disable-shared, the test was removed, and we
10335  # assume the GNU/Linux dynamic linker is in use.
10336  dynamic_linker='GNU/Linux ld.so'
10337  ;;
10338
10339knetbsd*-gnu)
10340  version_type=linux
10341  need_lib_prefix=no
10342  need_version=no
10343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344  soname_spec='${libname}${release}${shared_ext}$major'
10345  shlibpath_var=LD_LIBRARY_PATH
10346  shlibpath_overrides_runpath=no
10347  hardcode_into_libs=yes
10348  dynamic_linker='GNU ld.so'
10349  ;;
10350
10351netbsd*)
10352  version_type=sunos
10353  need_lib_prefix=no
10354  need_version=no
10355  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358    dynamic_linker='NetBSD (a.out) ld.so'
10359  else
10360    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10361    soname_spec='${libname}${release}${shared_ext}$major'
10362    dynamic_linker='NetBSD ld.elf_so'
10363  fi
10364  shlibpath_var=LD_LIBRARY_PATH
10365  shlibpath_overrides_runpath=yes
10366  hardcode_into_libs=yes
10367  ;;
10368
10369newsos6)
10370  version_type=linux
10371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372  shlibpath_var=LD_LIBRARY_PATH
10373  shlibpath_overrides_runpath=yes
10374  ;;
10375
10376nto-qnx*)
10377  version_type=linux
10378  need_lib_prefix=no
10379  need_version=no
10380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381  soname_spec='${libname}${release}${shared_ext}$major'
10382  shlibpath_var=LD_LIBRARY_PATH
10383  shlibpath_overrides_runpath=yes
10384  ;;
10385
10386openbsd*)
10387  version_type=sunos
10388  sys_lib_dlsearch_path_spec="/usr/lib"
10389  need_lib_prefix=no
10390  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391  case $host_os in
10392    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10393    *)                         need_version=no  ;;
10394  esac
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399    case $host_os in
10400      openbsd2.[89] | openbsd2.[89].*)
10401        shlibpath_overrides_runpath=no
10402        ;;
10403      *)
10404        shlibpath_overrides_runpath=yes
10405        ;;
10406      esac
10407  else
10408    shlibpath_overrides_runpath=yes
10409  fi
10410  ;;
10411
10412os2*)
10413  libname_spec='$name'
10414  shrext_cmds=".dll"
10415  need_lib_prefix=no
10416  library_names_spec='$libname${shared_ext} $libname.a'
10417  dynamic_linker='OS/2 ld.exe'
10418  shlibpath_var=LIBPATH
10419  ;;
10420
10421osf3* | osf4* | osf5*)
10422  version_type=osf
10423  need_lib_prefix=no
10424  need_version=no
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  shlibpath_var=LD_LIBRARY_PATH
10428  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10429  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10430  ;;
10431
10432solaris*)
10433  version_type=linux
10434  need_lib_prefix=no
10435  need_version=no
10436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  shlibpath_overrides_runpath=yes
10440  hardcode_into_libs=yes
10441  # ldd complains unless libraries are executable
10442  postinstall_cmds='chmod +x $lib'
10443  ;;
10444
10445sunos4*)
10446  version_type=sunos
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10448  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  if test "$with_gnu_ld" = yes; then
10452    need_lib_prefix=no
10453  fi
10454  need_version=yes
10455  ;;
10456
10457sysv4 | sysv4.3*)
10458  version_type=linux
10459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460  soname_spec='${libname}${release}${shared_ext}$major'
10461  shlibpath_var=LD_LIBRARY_PATH
10462  case $host_vendor in
10463    sni)
10464      shlibpath_overrides_runpath=no
10465      need_lib_prefix=no
10466      export_dynamic_flag_spec='${wl}-Blargedynsym'
10467      runpath_var=LD_RUN_PATH
10468      ;;
10469    siemens)
10470      need_lib_prefix=no
10471      ;;
10472    motorola)
10473      need_lib_prefix=no
10474      need_version=no
10475      shlibpath_overrides_runpath=no
10476      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10477      ;;
10478  esac
10479  ;;
10480
10481sysv4*MP*)
10482  if test -d /usr/nec ;then
10483    version_type=linux
10484    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10485    soname_spec='$libname${shared_ext}.$major'
10486    shlibpath_var=LD_LIBRARY_PATH
10487  fi
10488  ;;
10489
10490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491  version_type=freebsd-elf
10492  need_lib_prefix=no
10493  need_version=no
10494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10495  soname_spec='${libname}${release}${shared_ext}$major'
10496  shlibpath_var=LD_LIBRARY_PATH
10497  hardcode_into_libs=yes
10498  if test "$with_gnu_ld" = yes; then
10499    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10500    shlibpath_overrides_runpath=no
10501  else
10502    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10503    shlibpath_overrides_runpath=yes
10504    case $host_os in
10505      sco3.2v5*)
10506        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10507        ;;
10508    esac
10509  fi
10510  sys_lib_dlsearch_path_spec='/usr/lib'
10511  ;;
10512
10513uts4*)
10514  version_type=linux
10515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516  soname_spec='${libname}${release}${shared_ext}$major'
10517  shlibpath_var=LD_LIBRARY_PATH
10518  ;;
10519
10520*)
10521  dynamic_linker=no
10522  ;;
10523esac
10524echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10525echo "${ECHO_T}$dynamic_linker" >&6
10526test "$dynamic_linker" = no && can_build_shared=no
10527
10528variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10529if test "$GCC" = yes; then
10530  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10531fi
10532
10533echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10534echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10535hardcode_action=
10536if test -n "$hardcode_libdir_flag_spec" || \
10537   test -n "$runpath_var" || \
10538   test "X$hardcode_automatic" = "Xyes" ; then
10539
10540  # We can hardcode non-existant directories.
10541  if test "$hardcode_direct" != no &&
10542     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10543     # have to relink, otherwise we might link with an installed library
10544     # when we should be linking with a yet-to-be-installed one
10545     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10546     test "$hardcode_minus_L" != no; then
10547    # Linking always hardcodes the temporary library directory.
10548    hardcode_action=relink
10549  else
10550    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10551    hardcode_action=immediate
10552  fi
10553else
10554  # We cannot hardcode anything, or else we can only hardcode existing
10555  # directories.
10556  hardcode_action=unsupported
10557fi
10558echo "$as_me:$LINENO: result: $hardcode_action" >&5
10559echo "${ECHO_T}$hardcode_action" >&6
10560
10561if test "$hardcode_action" = relink; then
10562  # Fast installation is not supported
10563  enable_fast_install=no
10564elif test "$shlibpath_overrides_runpath" = yes ||
10565     test "$enable_shared" = no; then
10566  # Fast installation is not necessary
10567  enable_fast_install=needless
10568fi
10569
10570striplib=
10571old_striplib=
10572echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10573echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10574if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10575  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10576  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10577  echo "$as_me:$LINENO: result: yes" >&5
10578echo "${ECHO_T}yes" >&6
10579else
10580# FIXME - insert some real tests, host_os isn't really good enough
10581  case $host_os in
10582   darwin*)
10583       if test -n "$STRIP" ; then
10584         striplib="$STRIP -x"
10585         echo "$as_me:$LINENO: result: yes" >&5
10586echo "${ECHO_T}yes" >&6
10587       else
10588  echo "$as_me:$LINENO: result: no" >&5
10589echo "${ECHO_T}no" >&6
10590fi
10591       ;;
10592   *)
10593  echo "$as_me:$LINENO: result: no" >&5
10594echo "${ECHO_T}no" >&6
10595    ;;
10596  esac
10597fi
10598
10599if test "x$enable_dlopen" != xyes; then
10600  enable_dlopen=unknown
10601  enable_dlopen_self=unknown
10602  enable_dlopen_self_static=unknown
10603else
10604  lt_cv_dlopen=no
10605  lt_cv_dlopen_libs=
10606
10607  case $host_os in
10608  beos*)
10609    lt_cv_dlopen="load_add_on"
10610    lt_cv_dlopen_libs=
10611    lt_cv_dlopen_self=yes
10612    ;;
10613
10614  mingw* | pw32*)
10615    lt_cv_dlopen="LoadLibrary"
10616    lt_cv_dlopen_libs=
10617   ;;
10618
10619  cygwin*)
10620    lt_cv_dlopen="dlopen"
10621    lt_cv_dlopen_libs=
10622   ;;
10623
10624  darwin*)
10625  # if libdl is installed we need to link against it
10626    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629  echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631  ac_check_lib_save_LIBS=$LIBS
10632LIBS="-ldl  $LIBS"
10633cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h.  */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h.  */
10639
10640/* Override any gcc2 internal prototype to avoid an error.  */
10641#ifdef __cplusplus
10642extern "C"
10643#endif
10644/* We use char because int might match the return type of a gcc2
10645   builtin and then its argument prototype would still apply.  */
10646char dlopen ();
10647int
10648main ()
10649{
10650dlopen ();
10651  ;
10652  return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext conftest$ac_exeext
10656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10657  (eval $ac_link) 2>conftest.er1
10658  ac_status=$?
10659  grep -v '^ *+' conftest.er1 >conftest.err
10660  rm -f conftest.er1
10661  cat conftest.err >&5
10662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663  (exit $ac_status); } &&
10664         { ac_try='test -z "$ac_c_werror_flag"
10665                         || test ! -s conftest.err'
10666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667  (eval $ac_try) 2>&5
10668  ac_status=$?
10669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670  (exit $ac_status); }; } &&
10671         { ac_try='test -s conftest$ac_exeext'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; }; then
10677  ac_cv_lib_dl_dlopen=yes
10678else
10679  echo "$as_me: failed program was:" >&5
10680sed 's/^/| /' conftest.$ac_ext >&5
10681
10682ac_cv_lib_dl_dlopen=no
10683fi
10684rm -f conftest.err conftest.$ac_objext \
10685      conftest$ac_exeext conftest.$ac_ext
10686LIBS=$ac_check_lib_save_LIBS
10687fi
10688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10690if test $ac_cv_lib_dl_dlopen = yes; then
10691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10692else
10693
10694    lt_cv_dlopen="dyld"
10695    lt_cv_dlopen_libs=
10696    lt_cv_dlopen_self=yes
10697
10698fi
10699
10700   ;;
10701
10702  *)
10703    echo "$as_me:$LINENO: checking for shl_load" >&5
10704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10705if test "${ac_cv_func_shl_load+set}" = set; then
10706  echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708  cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h.  */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h.  */
10714/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10716#define shl_load innocuous_shl_load
10717
10718/* System header to define __stub macros and hopefully few prototypes,
10719    which can conflict with char shl_load (); below.
10720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10721    <limits.h> exists even on freestanding compilers.  */
10722
10723#ifdef __STDC__
10724# include <limits.h>
10725#else
10726# include <assert.h>
10727#endif
10728
10729#undef shl_load
10730
10731/* Override any gcc2 internal prototype to avoid an error.  */
10732#ifdef __cplusplus
10733extern "C"
10734{
10735#endif
10736/* We use char because int might match the return type of a gcc2
10737   builtin and then its argument prototype would still apply.  */
10738char shl_load ();
10739/* The GNU C library defines this for functions which it implements
10740    to always fail with ENOSYS.  Some functions are actually named
10741    something starting with __ and the normal name is an alias.  */
10742#if defined (__stub_shl_load) || defined (__stub___shl_load)
10743choke me
10744#else
10745char (*f) () = shl_load;
10746#endif
10747#ifdef __cplusplus
10748}
10749#endif
10750
10751int
10752main ()
10753{
10754return f != shl_load;
10755  ;
10756  return 0;
10757}