source: stable/2.6/configure @ 1716

Last change on this file since 1716 was 1630, checked in by tkr, 9 years ago

restoring Cbc/stable/2.6

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