source: trunk/configure @ 1652

Last change on this file since 1652 was 1610, checked in by stefan, 9 years ago

more dependencies: add Mumps for Clp, add Metis for Mumps; rerun autotools

  • Property svn:executable set to *
File size: 783.9 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc trunk.
5#
6# Report bugs to <cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Cbc trunk'
435PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all Data/miplib3"
485ac_subdirs_all="$ac_subdirs_all CoinUtils"
486ac_subdirs_all="$ac_subdirs_all Osi"
487ac_subdirs_all="$ac_subdirs_all Clp"
488ac_subdirs_all="$ac_subdirs_all DyLP"
489ac_subdirs_all="$ac_subdirs_all Vol"
490ac_subdirs_all="$ac_subdirs_all Cgl"
491ac_subdirs_all="$ac_subdirs_all Cbc"
492ac_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 LN_S 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 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 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'
493ac_subst_files=''
494
495# Initialize some variables set by options.
496ac_init_help=
497ac_init_version=false
498# The variables have the same names as the options, with
499# dashes changed to underlines.
500cache_file=/dev/null
501exec_prefix=NONE
502no_create=
503no_recursion=
504prefix=NONE
505program_prefix=NONE
506program_suffix=NONE
507program_transform_name=s,x,x,
508silent=
509site=
510srcdir=
511verbose=
512x_includes=NONE
513x_libraries=NONE
514
515# Installation directory options.
516# These are left unexpanded so users can "make install exec_prefix=/foo"
517# and all the variables that are supposed to be based on exec_prefix
518# by default will actually change.
519# Use braces instead of parens because sh, perl, etc. also accept them.
520bindir='${exec_prefix}/bin'
521sbindir='${exec_prefix}/sbin'
522libexecdir='${exec_prefix}/libexec'
523datadir='${prefix}/share'
524sysconfdir='${prefix}/etc'
525sharedstatedir='${prefix}/com'
526localstatedir='${prefix}/var'
527libdir='${exec_prefix}/lib'
528includedir='${prefix}/include'
529oldincludedir='/usr/include'
530infodir='${prefix}/info'
531mandir='${prefix}/man'
532
533ac_prev=
534for ac_option
535do
536  # If the previous option needs an argument, assign it.
537  if test -n "$ac_prev"; then
538    eval "$ac_prev=\$ac_option"
539    ac_prev=
540    continue
541  fi
542
543  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545  # Accept the important Cygnus configure options, so we can diagnose typos.
546
547  case $ac_option in
548
549  -bindir | --bindir | --bindi | --bind | --bin | --bi)
550    ac_prev=bindir ;;
551  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552    bindir=$ac_optarg ;;
553
554  -build | --build | --buil | --bui | --bu)
555    ac_prev=build_alias ;;
556  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557    build_alias=$ac_optarg ;;
558
559  -cache-file | --cache-file | --cache-fil | --cache-fi \
560  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561    ac_prev=cache_file ;;
562  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564    cache_file=$ac_optarg ;;
565
566  --config-cache | -C)
567    cache_file=config.cache ;;
568
569  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570    ac_prev=datadir ;;
571  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572  | --da=*)
573    datadir=$ac_optarg ;;
574
575  -disable-* | --disable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    eval "enable_$ac_feature=no" ;;
583
584  -enable-* | --enable-*)
585    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589   { (exit 1); exit 1; }; }
590    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591    case $ac_option in
592      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593      *) ac_optarg=yes ;;
594    esac
595    eval "enable_$ac_feature='$ac_optarg'" ;;
596
597  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599  | --exec | --exe | --ex)
600    ac_prev=exec_prefix ;;
601  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603  | --exec=* | --exe=* | --ex=*)
604    exec_prefix=$ac_optarg ;;
605
606  -gas | --gas | --ga | --g)
607    # Obsolete; use --with-gas.
608    with_gas=yes ;;
609
610  -help | --help | --hel | --he | -h)
611    ac_init_help=long ;;
612  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613    ac_init_help=recursive ;;
614  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615    ac_init_help=short ;;
616
617  -host | --host | --hos | --ho)
618    ac_prev=host_alias ;;
619  -host=* | --host=* | --hos=* | --ho=*)
620    host_alias=$ac_optarg ;;
621
622  -includedir | --includedir | --includedi | --included | --include \
623  | --includ | --inclu | --incl | --inc)
624    ac_prev=includedir ;;
625  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626  | --includ=* | --inclu=* | --incl=* | --inc=*)
627    includedir=$ac_optarg ;;
628
629  -infodir | --infodir | --infodi | --infod | --info | --inf)
630    ac_prev=infodir ;;
631  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632    infodir=$ac_optarg ;;
633
634  -libdir | --libdir | --libdi | --libd)
635    ac_prev=libdir ;;
636  -libdir=* | --libdir=* | --libdi=* | --libd=*)
637    libdir=$ac_optarg ;;
638
639  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640  | --libexe | --libex | --libe)
641    ac_prev=libexecdir ;;
642  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643  | --libexe=* | --libex=* | --libe=*)
644    libexecdir=$ac_optarg ;;
645
646  -localstatedir | --localstatedir | --localstatedi | --localstated \
647  | --localstate | --localstat | --localsta | --localst \
648  | --locals | --local | --loca | --loc | --lo)
649    ac_prev=localstatedir ;;
650  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653    localstatedir=$ac_optarg ;;
654
655  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656    ac_prev=mandir ;;
657  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658    mandir=$ac_optarg ;;
659
660  -nfp | --nfp | --nf)
661    # Obsolete; use --without-fp.
662    with_fp=no ;;
663
664  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665  | --no-cr | --no-c | -n)
666    no_create=yes ;;
667
668  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670    no_recursion=yes ;;
671
672  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674  | --oldin | --oldi | --old | --ol | --o)
675    ac_prev=oldincludedir ;;
676  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679    oldincludedir=$ac_optarg ;;
680
681  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682    ac_prev=prefix ;;
683  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684    prefix=$ac_optarg ;;
685
686  -program-prefix | --program-prefix | --program-prefi | --program-pref \
687  | --program-pre | --program-pr | --program-p)
688    ac_prev=program_prefix ;;
689  -program-prefix=* | --program-prefix=* | --program-prefi=* \
690  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691    program_prefix=$ac_optarg ;;
692
693  -program-suffix | --program-suffix | --program-suffi | --program-suff \
694  | --program-suf | --program-su | --program-s)
695    ac_prev=program_suffix ;;
696  -program-suffix=* | --program-suffix=* | --program-suffi=* \
697  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698    program_suffix=$ac_optarg ;;
699
700  -program-transform-name | --program-transform-name \
701  | --program-transform-nam | --program-transform-na \
702  | --program-transform-n | --program-transform- \
703  | --program-transform | --program-transfor \
704  | --program-transfo | --program-transf \
705  | --program-trans | --program-tran \
706  | --progr-tra | --program-tr | --program-t)
707    ac_prev=program_transform_name ;;
708  -program-transform-name=* | --program-transform-name=* \
709  | --program-transform-nam=* | --program-transform-na=* \
710  | --program-transform-n=* | --program-transform-=* \
711  | --program-transform=* | --program-transfor=* \
712  | --program-transfo=* | --program-transf=* \
713  | --program-trans=* | --program-tran=* \
714  | --progr-tra=* | --program-tr=* | --program-t=*)
715    program_transform_name=$ac_optarg ;;
716
717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718  | -silent | --silent | --silen | --sile | --sil)
719    silent=yes ;;
720
721  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722    ac_prev=sbindir ;;
723  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724  | --sbi=* | --sb=*)
725    sbindir=$ac_optarg ;;
726
727  -sharedstatedir | --sharedstatedir | --sharedstatedi \
728  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729  | --sharedst | --shareds | --shared | --share | --shar \
730  | --sha | --sh)
731    ac_prev=sharedstatedir ;;
732  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735  | --sha=* | --sh=*)
736    sharedstatedir=$ac_optarg ;;
737
738  -site | --site | --sit)
739    ac_prev=site ;;
740  -site=* | --site=* | --sit=*)
741    site=$ac_optarg ;;
742
743  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744    ac_prev=srcdir ;;
745  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746    srcdir=$ac_optarg ;;
747
748  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749  | --syscon | --sysco | --sysc | --sys | --sy)
750    ac_prev=sysconfdir ;;
751  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753    sysconfdir=$ac_optarg ;;
754
755  -target | --target | --targe | --targ | --tar | --ta | --t)
756    ac_prev=target_alias ;;
757  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758    target_alias=$ac_optarg ;;
759
760  -v | -verbose | --verbose | --verbos | --verbo | --verb)
761    verbose=yes ;;
762
763  -version | --version | --versio | --versi | --vers | -V)
764    ac_init_version=: ;;
765
766  -with-* | --with-*)
767    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package| sed 's/-/_/g'`
773    case $ac_option in
774      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775      *) ac_optarg=yes ;;
776    esac
777    eval "with_$ac_package='$ac_optarg'" ;;
778
779  -without-* | --without-*)
780    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781    # Reject names that are not valid shell variable names.
782    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783      { echo "$as_me: error: invalid package name: $ac_package" >&2
784   { (exit 1); exit 1; }; }
785    ac_package=`echo $ac_package | sed 's/-/_/g'`
786    eval "with_$ac_package=no" ;;
787
788  --x)
789    # Obsolete; use --with-x.
790    with_x=yes ;;
791
792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793  | --x-incl | --x-inc | --x-in | --x-i)
794    ac_prev=x_includes ;;
795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797    x_includes=$ac_optarg ;;
798
799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801    ac_prev=x_libraries ;;
802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804    x_libraries=$ac_optarg ;;
805
806  -*) { echo "$as_me: error: unrecognized option: $ac_option
807Try \`$0 --help' for more information." >&2
808   { (exit 1); exit 1; }; }
809    ;;
810
811  *=*)
812    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816   { (exit 1); exit 1; }; }
817    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818    eval "$ac_envvar='$ac_optarg'"
819    export $ac_envvar ;;
820
821  *)
822    # FIXME: should be removed in autoconf 3.0.
823    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827    ;;
828
829  esac
830done
831
832if test -n "$ac_prev"; then
833  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834  { echo "$as_me: error: missing argument to $ac_option" >&2
835   { (exit 1); exit 1; }; }
836fi
837
838# Be sure to have absolute paths.
839for ac_var in exec_prefix prefix
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# Be sure to have absolute paths.
850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851              localstatedir libdir includedir oldincludedir infodir mandir
852do
853  eval ac_val=$`echo $ac_var`
854  case $ac_val in
855    [\\/$]* | ?:[\\/]* ) ;;
856    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857   { (exit 1); exit 1; }; };;
858  esac
859done
860
861# There might be people who depend on the old broken behavior: `$host'
862# used to hold the argument of --host etc.
863# FIXME: To remove some day.
864build=$build_alias
865host=$host_alias
866target=$target_alias
867
868# FIXME: To remove some day.
869if test "x$host_alias" != x; then
870  if test "x$build_alias" = x; then
871    cross_compiling=maybe
872    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873    If a cross compiler is detected then cross compile mode will be used." >&2
874  elif test "x$build_alias" != "x$host_alias"; then
875    cross_compiling=yes
876  fi
877fi
878
879ac_tool_prefix=
880test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882test "$silent" = yes && exec 6>/dev/null
883
884
885# Find the source files, if location was not specified.
886if test -z "$srcdir"; then
887  ac_srcdir_defaulted=yes
888  # Try the directory containing this script, then its parent.
889  ac_confdir=`(dirname "$0") 2>/dev/null ||
890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891         X"$0" : 'X\(//\)[^/]' \| \
892         X"$0" : 'X\(//\)$' \| \
893         X"$0" : 'X\(/\)' \| \
894         .     : '\(.\)' 2>/dev/null ||
895echo X"$0" |
896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898          /^X\(\/\/\)$/{ s//\1/; q; }
899          /^X\(\/\).*/{ s//\1/; q; }
900          s/.*/./; q'`
901  srcdir=$ac_confdir
902  if test ! -r $srcdir/$ac_unique_file; then
903    srcdir=..
904  fi
905else
906  ac_srcdir_defaulted=no
907fi
908if test ! -r $srcdir/$ac_unique_file; then
909  if test "$ac_srcdir_defaulted" = yes; then
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911   { (exit 1); exit 1; }; }
912  else
913    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914   { (exit 1); exit 1; }; }
915  fi
916fi
917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919   { (exit 1); exit 1; }; }
920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921ac_env_build_alias_set=${build_alias+set}
922ac_env_build_alias_value=$build_alias
923ac_cv_env_build_alias_set=${build_alias+set}
924ac_cv_env_build_alias_value=$build_alias
925ac_env_host_alias_set=${host_alias+set}
926ac_env_host_alias_value=$host_alias
927ac_cv_env_host_alias_set=${host_alias+set}
928ac_cv_env_host_alias_value=$host_alias
929ac_env_target_alias_set=${target_alias+set}
930ac_env_target_alias_value=$target_alias
931ac_cv_env_target_alias_set=${target_alias+set}
932ac_cv_env_target_alias_value=$target_alias
933ac_env_CDEFS_set=${CDEFS+set}
934ac_env_CDEFS_value=$CDEFS
935ac_cv_env_CDEFS_set=${CDEFS+set}
936ac_cv_env_CDEFS_value=$CDEFS
937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949ac_env_CC_set=${CC+set}
950ac_env_CC_value=$CC
951ac_cv_env_CC_set=${CC+set}
952ac_cv_env_CC_value=$CC
953ac_env_CFLAGS_set=${CFLAGS+set}
954ac_env_CFLAGS_value=$CFLAGS
955ac_cv_env_CFLAGS_set=${CFLAGS+set}
956ac_cv_env_CFLAGS_value=$CFLAGS
957ac_env_LDFLAGS_set=${LDFLAGS+set}
958ac_env_LDFLAGS_value=$LDFLAGS
959ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960ac_cv_env_LDFLAGS_value=$LDFLAGS
961ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_env_CPPFLAGS_value=$CPPFLAGS
963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965ac_env_MPICC_set=${MPICC+set}
966ac_env_MPICC_value=$MPICC
967ac_cv_env_MPICC_set=${MPICC+set}
968ac_cv_env_MPICC_value=$MPICC
969ac_env_CXXDEFS_set=${CXXDEFS+set}
970ac_env_CXXDEFS_value=$CXXDEFS
971ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972ac_cv_env_CXXDEFS_value=$CXXDEFS
973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985ac_env_CXX_set=${CXX+set}
986ac_env_CXX_value=$CXX
987ac_cv_env_CXX_set=${CXX+set}
988ac_cv_env_CXX_value=$CXX
989ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_env_CXXFLAGS_value=$CXXFLAGS
991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993ac_env_MPICXX_set=${MPICXX+set}
994ac_env_MPICXX_value=$MPICXX
995ac_cv_env_MPICXX_set=${MPICXX+set}
996ac_cv_env_MPICXX_value=$MPICXX
997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009ac_env_F77_set=${F77+set}
1010ac_env_F77_value=$F77
1011ac_cv_env_F77_set=${F77+set}
1012ac_cv_env_F77_value=$F77
1013ac_env_FFLAGS_set=${FFLAGS+set}
1014ac_env_FFLAGS_value=$FFLAGS
1015ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016ac_cv_env_FFLAGS_value=$FFLAGS
1017ac_env_MPIF77_set=${MPIF77+set}
1018ac_env_MPIF77_value=$MPIF77
1019ac_cv_env_MPIF77_set=${MPIF77+set}
1020ac_cv_env_MPIF77_value=$MPIF77
1021ac_env_CPP_set=${CPP+set}
1022ac_env_CPP_value=$CPP
1023ac_cv_env_CPP_set=${CPP+set}
1024ac_cv_env_CPP_value=$CPP
1025ac_env_CXXCPP_set=${CXXCPP+set}
1026ac_env_CXXCPP_value=$CXXCPP
1027ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028ac_cv_env_CXXCPP_value=$CXXCPP
1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033
1034#
1035# Report the --help message.
1036#
1037if test "$ac_init_help" = "long"; then
1038  # Omit some internal or obsolete options to make the list less imposing.
1039  # This message is too long to be a string in the A/UX 3.1 sh.
1040  cat <<_ACEOF
1041\`configure' configures Cbc trunk to adapt to many kinds of systems.
1042
1043Usage: $0 [OPTION]... [VAR=VALUE]...
1044
1045To assign environment variables (e.g., CC, CFLAGS...), specify them as
1046VAR=VALUE.  See below for descriptions of some of the useful variables.
1047
1048Defaults for the options are specified in brackets.
1049
1050Configuration:
1051  -h, --help              display this help and exit
1052      --help=short        display options specific to this package
1053      --help=recursive    display the short help of all the included packages
1054  -V, --version           display version information and exit
1055  -q, --quiet, --silent   do not print \`checking...' messages
1056      --cache-file=FILE   cache test results in FILE [disabled]
1057  -C, --config-cache      alias for \`--cache-file=config.cache'
1058  -n, --no-create         do not create output files
1059      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1060
1061_ACEOF
1062
1063  cat <<_ACEOF
1064Installation directories:
1065  --prefix=PREFIX         install architecture-independent files in PREFIX
1066                          [$ac_default_prefix]
1067  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1068                          [PREFIX]
1069
1070By default, \`make install' will install all the files in
1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1072an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1073for instance \`--prefix=\$HOME'.
1074
1075For better control, use the options below.
1076
1077Fine tuning of the installation directories:
1078  --bindir=DIR           user executables [EPREFIX/bin]
1079  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1080  --libexecdir=DIR       program executables [EPREFIX/libexec]
1081  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1082  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1083  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1084  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1085  --libdir=DIR           object code libraries [EPREFIX/lib]
1086  --includedir=DIR       C header files [PREFIX/include]
1087  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1088  --infodir=DIR          info documentation [PREFIX/info]
1089  --mandir=DIR           man documentation [PREFIX/man]
1090_ACEOF
1091
1092  cat <<\_ACEOF
1093
1094Program names:
1095  --program-prefix=PREFIX            prepend PREFIX to installed program names
1096  --program-suffix=SUFFIX            append SUFFIX to installed program names
1097  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1098
1099System types:
1100  --build=BUILD     configure for building on BUILD [guessed]
1101  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1102_ACEOF
1103fi
1104
1105if test -n "$ac_init_help"; then
1106  case $ac_init_help in
1107     short | recursive ) echo "Configuration of Cbc trunk:";;
1108   esac
1109  cat <<\_ACEOF
1110
1111Optional Features:
1112  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1113  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1114  --enable-debug          compile all projects with debug options tests
1115  --enable-doscompile     Under Cygwin, compile so that executables run under
1116                          DOS. Set to mingw to use gcc/g++/ld with
1117                          -mno-cygwin. Set to msvc to use cl/link (or
1118                          icl/link). Default when mentioned: mingw. Default
1119                          when not mentioned: disabled.
1120  --enable-static[=PKGS]
1121                          build static libraries [default=no]
1122  --disable-dependency-tracking  speeds up one-time build
1123  --enable-dependency-tracking   do not reject slow dependency extractors
1124  --enable-maintainer-mode  enable make rules and dependencies not useful
1125                          (and sometimes confusing) to the casual installer
1126  --enable-shared[=PKGS]
1127                          build shared libraries [default=yes]
1128  --enable-fast-install[=PKGS]
1129                          optimize for fast installation [default=yes]
1130  --disable-libtool-lock  avoid locking (might break parallel builds)
1131
1132Optional Packages:
1133  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1134  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1135  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1136  --with-pic              try to use only PIC/non-PIC objects [default=use
1137                          both]
1138  --with-tags[=TAGS]
1139                          include additional configurations [automatic]
1140  --with-asl-lib linker flags for using project ASL
1141  --with-asl-incdir directory with header files for using project ASL
1142  --with-asl-datadir directory with data files for using project ASL
1143  --with-blas-lib linker flags for using project Blas
1144  --with-blas-incdir directory with header files for using project Blas
1145  --with-blas-datadir directory with data files for using project Blas
1146  --with-blas             specify BLAS library (or BUILD to enforce use of
1147                          ThirdParty/Blas)
1148  --with-lapack-lib linker flags for using project Lapack
1149  --with-lapack-incdir directory with header files for using project Lapack
1150  --with-lapack-datadir directory with data files for using project Lapack
1151  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1152                          ThirdParty/Lapack)
1153  --with-glpk-lib linker flags for using project Glpk
1154  --with-glpk-incdir directory with header files for using project Glpk
1155  --with-glpk-datadir directory with data files for using project Glpk
1156  --with-metis-lib linker flags for using project Metis
1157  --with-metis-incdir directory with header files for using project Metis
1158  --with-metis-datadir directory with data files for using project Metis
1159  --with-mumps-lib linker flags for using project Mumps
1160  --with-mumps-incdir directory with header files for using project Mumps
1161  --with-mumps-datadir directory with data files for using project Mumps
1162  --with-sample-lib linker flags for using project Sample
1163  --with-sample-incdir directory with header files for using project Sample
1164  --with-sample-datadir directory with data files for using project Sample
1165  --with-netlib-lib linker flags for using project Netlib
1166  --with-netlib-incdir directory with header files for using project Netlib
1167  --with-netlib-datadir directory with data files for using project Netlib
1168  --with-miplib3-lib linker flags for using project miplib3
1169  --with-miplib3-incdir directory with header files for using project miplib3
1170  --with-miplib3-datadir directory with data files for using project miplib3
1171  --with-coinutils-lib linker flags for using project CoinUtils
1172  --with-coinutils-incdir directory with header files for using project
1173                          CoinUtils
1174  --with-coinutils-datadir
1175                          directory with data files for using project
1176                          CoinUtils
1177  --with-osi-lib linker flags for using project Osi
1178  --with-osi-incdir directory with header files for using project Osi
1179  --with-osi-datadir directory with data files for using project Osi
1180  --with-clp-lib linker flags for using project Clp
1181  --with-clp-incdir directory with header files for using project Clp
1182  --with-clp-datadir directory with data files for using project Clp
1183  --with-dylp-lib linker flags for using project DyLP
1184  --with-dylp-incdir directory with header files for using project DyLP
1185  --with-dylp-datadir directory with data files for using project DyLP
1186  --with-vol-lib linker flags for using project Vol
1187  --with-vol-incdir directory with header files for using project Vol
1188  --with-vol-datadir directory with data files for using project Vol
1189  --with-cgl-lib linker flags for using project Cgl
1190  --with-cgl-incdir directory with header files for using project Cgl
1191  --with-cgl-datadir directory with data files for using project Cgl
1192  --with-cbc-lib linker flags for using project Cbc
1193  --with-cbc-incdir directory with header files for using project Cbc
1194  --with-cbc-datadir directory with data files for using project Cbc
1195  --with-dot              use dot (from graphviz) when creating documentation
1196                          with doxygen if available; --without-dot to disable
1197
1198Some influential environment variables:
1199  CDEFS       Additional -D flags to be used when compiling C code.
1200  ADD_CFLAGS  Additional C compiler options
1201  DBG_CFLAGS  Debug C compiler options
1202  OPT_CFLAGS  Optimize C compiler options
1203  CC          C compiler command
1204  CFLAGS      C compiler flags
1205  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1206              nonstandard directory <lib dir>
1207  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1208              headers in a nonstandard directory <include dir>
1209  MPICC       C MPI Compiler
1210  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1211  ADD_CXXFLAGS
1212              Additional C++ compiler options
1213  DBG_CXXFLAGS
1214              Debug C++ compiler options
1215  OPT_CXXFLAGS
1216              Optimize C++ compiler options
1217  CXX         C++ compiler command
1218  CXXFLAGS    C++ compiler flags
1219  MPICXX      C++ MPI Compiler
1220  ADD_FFLAGS  Additional Fortran compiler options
1221  DBG_FFLAGS  Debug Fortran compiler options
1222  OPT_FFLAGS  Optimize Fortran compiler options
1223  F77         Fortran 77 compiler command
1224  FFLAGS      Fortran 77 compiler flags
1225  MPIF77      Fortran MPI Compiler
1226  CPP         C preprocessor
1227  CXXCPP      C++ preprocessor
1228  COIN_SKIP_PROJECTS
1229              Set to the subdirectories of projects that should be skipped in
1230              the configuration
1231
1232Use these variables to override the choices made by `configure' or to help
1233it to find libraries and programs with nonstandard names/locations.
1234
1235Report bugs to <cbc@lists.coin-or.org>.
1236_ACEOF
1237fi
1238
1239if test "$ac_init_help" = "recursive"; then
1240  # If there are subdirs, report their specific --help.
1241  ac_popdir=`pwd`
1242  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1243    test -d $ac_dir || continue
1244    ac_builddir=.
1245
1246if test "$ac_dir" != .; then
1247  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1248  # A "../" for each directory in $ac_dir_suffix.
1249  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1250else
1251  ac_dir_suffix= ac_top_builddir=
1252fi
1253
1254case $srcdir in
1255  .)  # No --srcdir option.  We are building in place.
1256    ac_srcdir=.
1257    if test -z "$ac_top_builddir"; then
1258       ac_top_srcdir=.
1259    else
1260       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1261    fi ;;
1262  [\\/]* | ?:[\\/]* )  # Absolute path.
1263    ac_srcdir=$srcdir$ac_dir_suffix;
1264    ac_top_srcdir=$srcdir ;;
1265  *) # Relative path.
1266    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1267    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1268esac
1269
1270# Do not use `cd foo && pwd` to compute absolute paths, because
1271# the directories may not exist.
1272case `pwd` in
1273.) ac_abs_builddir="$ac_dir";;
1274*)
1275  case "$ac_dir" in
1276  .) ac_abs_builddir=`pwd`;;
1277  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1278  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1279  esac;;
1280esac
1281case $ac_abs_builddir in
1282.) ac_abs_top_builddir=${ac_top_builddir}.;;
1283*)
1284  case ${ac_top_builddir}. in
1285  .) ac_abs_top_builddir=$ac_abs_builddir;;
1286  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1287  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1288  esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_srcdir=$ac_srcdir;;
1292*)
1293  case $ac_srcdir in
1294  .) ac_abs_srcdir=$ac_abs_builddir;;
1295  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1296  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1297  esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_top_srcdir=$ac_top_srcdir;;
1301*)
1302  case $ac_top_srcdir in
1303  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1304  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1305  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1306  esac;;
1307esac
1308
1309    cd $ac_dir
1310    # Check for guested configure; otherwise get Cygnus style configure.
1311    if test -f $ac_srcdir/configure.gnu; then
1312      echo
1313      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1314    elif test -f $ac_srcdir/configure; then
1315      echo
1316      $SHELL $ac_srcdir/configure  --help=recursive
1317    elif test -f $ac_srcdir/configure.ac ||
1318           test -f $ac_srcdir/configure.in; then
1319      echo
1320      $ac_configure --help
1321    else
1322      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1323    fi
1324    cd $ac_popdir
1325  done
1326fi
1327
1328test -n "$ac_init_help" && exit 0
1329if $ac_init_version; then
1330  cat <<\_ACEOF
1331Cbc configure trunk
1332generated by GNU Autoconf 2.59
1333
1334Copyright (C) 2003 Free Software Foundation, Inc.
1335This configure script is free software; the Free Software Foundation
1336gives unlimited permission to copy, distribute and modify it.
1337
1338
1339Copyright 2006 International Business Machines and others.
1340All Rights Reserved.
1341This file is part of the open source package Coin which is distributed
1342under the Eclipse Public License.
1343_ACEOF
1344  exit 0
1345fi
1346exec 5>config.log
1347cat >&5 <<_ACEOF
1348This file contains any messages produced by compilers while
1349running configure, to aid debugging if configure makes a mistake.
1350
1351It was created by Cbc $as_me trunk, which was
1352generated by GNU Autoconf 2.59.  Invocation command line was
1353
1354  $ $0 $@
1355
1356_ACEOF
1357{
1358cat <<_ASUNAME
1359## --------- ##
1360## Platform. ##
1361## --------- ##
1362
1363hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1364uname -m = `(uname -m) 2>/dev/null || echo unknown`
1365uname -r = `(uname -r) 2>/dev/null || echo unknown`
1366uname -s = `(uname -s) 2>/dev/null || echo unknown`
1367uname -v = `(uname -v) 2>/dev/null || echo unknown`
1368
1369/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1370/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1371
1372/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1373/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1374/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1375hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1376/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1377/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1378/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1379
1380_ASUNAME
1381
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385  IFS=$as_save_IFS
1386  test -z "$as_dir" && as_dir=.
1387  echo "PATH: $as_dir"
1388done
1389
1390} >&5
1391
1392cat >&5 <<_ACEOF
1393
1394
1395## ----------- ##
1396## Core tests. ##
1397## ----------- ##
1398
1399_ACEOF
1400
1401
1402# Keep a trace of the command line.
1403# Strip out --no-create and --no-recursion so they do not pile up.
1404# Strip out --silent because we don't want to record it for future runs.
1405# Also quote any args containing shell meta-characters.
1406# Make two passes to allow for proper duplicate-argument suppression.
1407ac_configure_args=
1408ac_configure_args0=
1409ac_configure_args1=
1410ac_sep=
1411ac_must_keep_next=false
1412for ac_pass in 1 2
1413do
1414  for ac_arg
1415  do
1416    case $ac_arg in
1417    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1418    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1419    | -silent | --silent | --silen | --sile | --sil)
1420      continue ;;
1421    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1423    esac
1424    case $ac_pass in
1425    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1426    2)
1427      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1428      if test $ac_must_keep_next = true; then
1429        ac_must_keep_next=false # Got value, back to normal.
1430      else
1431        case $ac_arg in
1432          *=* | --config-cache | -C | -disable-* | --disable-* \
1433          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1434          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1435          | -with-* | --with-* | -without-* | --without-* | --x)
1436            case "$ac_configure_args0 " in
1437              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1438            esac
1439            ;;
1440          -* ) ac_must_keep_next=true ;;
1441        esac
1442      fi
1443      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1444      # Get rid of the leading space.
1445      ac_sep=" "
1446      ;;
1447    esac
1448  done
1449done
1450$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1451$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1452
1453# When interrupted or exit'd, cleanup temporary files, and complete
1454# config.log.  We remove comments because anyway the quotes in there
1455# would cause problems or look ugly.
1456# WARNING: Be sure not to use single quotes in there, as some shells,
1457# such as our DU 5.0 friend, will then `close' the trap.
1458trap 'exit_status=$?
1459  # Save into config.log some information that might help in debugging.
1460  {
1461    echo
1462
1463    cat <<\_ASBOX
1464## ---------------- ##
1465## Cache variables. ##
1466## ---------------- ##
1467_ASBOX
1468    echo
1469    # The following way of writing the cache mishandles newlines in values,
1470{
1471  (set) 2>&1 |
1472    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1473    *ac_space=\ *)
1474      sed -n \
1475        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1476          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1477      ;;
1478    *)
1479      sed -n \
1480        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1481      ;;
1482    esac;
1483}
1484    echo
1485
1486    cat <<\_ASBOX
1487## ----------------- ##
1488## Output variables. ##
1489## ----------------- ##
1490_ASBOX
1491    echo
1492    for ac_var in $ac_subst_vars
1493    do
1494      eval ac_val=$`echo $ac_var`
1495      echo "$ac_var='"'"'$ac_val'"'"'"
1496    done | sort
1497    echo
1498
1499    if test -n "$ac_subst_files"; then
1500      cat <<\_ASBOX
1501## ------------- ##
1502## Output files. ##
1503## ------------- ##
1504_ASBOX
1505      echo
1506      for ac_var in $ac_subst_files
1507      do
1508        eval ac_val=$`echo $ac_var`
1509        echo "$ac_var='"'"'$ac_val'"'"'"
1510      done | sort
1511      echo
1512    fi
1513
1514    if test -s confdefs.h; then
1515      cat <<\_ASBOX
1516## ----------- ##
1517## confdefs.h. ##
1518## ----------- ##
1519_ASBOX
1520      echo
1521      sed "/^$/d" confdefs.h | sort
1522      echo
1523    fi
1524    test "$ac_signal" != 0 &&
1525      echo "$as_me: caught signal $ac_signal"
1526    echo "$as_me: exit $exit_status"
1527  } >&5
1528  rm -f core *.core &&
1529  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1530    exit $exit_status
1531     ' 0
1532for ac_signal in 1 2 13 15; do
1533  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1534done
1535ac_signal=0
1536
1537# confdefs.h avoids OS command line length limits that DEFS can exceed.
1538rm -rf conftest* confdefs.h
1539# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1540echo >confdefs.h
1541
1542# Predefined preprocessor variables.
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_NAME "$PACKAGE_NAME"
1546_ACEOF
1547
1548
1549cat >>confdefs.h <<_ACEOF
1550#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1551_ACEOF
1552
1553
1554cat >>confdefs.h <<_ACEOF
1555#define PACKAGE_VERSION "$PACKAGE_VERSION"
1556_ACEOF
1557
1558
1559cat >>confdefs.h <<_ACEOF
1560#define PACKAGE_STRING "$PACKAGE_STRING"
1561_ACEOF
1562
1563
1564cat >>confdefs.h <<_ACEOF
1565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1566_ACEOF
1567
1568
1569# Let the site file select an alternate cache file if it wants to.
1570# Prefer explicitly selected file to automatically selected ones.
1571if test -z "$CONFIG_SITE"; then
1572  if test "x$prefix" != xNONE; then
1573    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1574  else
1575    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1576  fi
1577fi
1578for ac_site_file in $CONFIG_SITE; do
1579  if test -r "$ac_site_file"; then
1580    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1581echo "$as_me: loading site script $ac_site_file" >&6;}
1582    sed 's/^/| /' "$ac_site_file" >&5
1583    . "$ac_site_file"
1584  fi
1585done
1586
1587if test -r "$cache_file"; then
1588  # Some versions of bash will fail to source /dev/null (special
1589  # files actually), so we avoid doing that.
1590  if test -f "$cache_file"; then
1591    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1592echo "$as_me: loading cache $cache_file" >&6;}
1593    case $cache_file in
1594      [\\/]* | ?:[\\/]* ) . $cache_file;;
1595      *)                      . ./$cache_file;;
1596    esac
1597  fi
1598else
1599  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1600echo "$as_me: creating cache $cache_file" >&6;}
1601  >$cache_file
1602fi
1603
1604# Check that the precious variables saved in the cache have kept the same
1605# value.
1606ac_cache_corrupted=false
1607for ac_var in `(set) 2>&1 |
1608               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1609  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1610  eval ac_new_set=\$ac_env_${ac_var}_set
1611  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1612  eval ac_new_val="\$ac_env_${ac_var}_value"
1613  case $ac_old_set,$ac_new_set in
1614    set,)
1615      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1616echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1617      ac_cache_corrupted=: ;;
1618    ,set)
1619      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1621      ac_cache_corrupted=: ;;
1622    ,);;
1623    *)
1624      if test "x$ac_old_val" != "x$ac_new_val"; then
1625        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1626echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1627        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1628echo "$as_me:   former value:  $ac_old_val" >&2;}
1629        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1630echo "$as_me:   current value: $ac_new_val" >&2;}
1631        ac_cache_corrupted=:
1632      fi;;
1633  esac
1634  # Pass precious variables to config.status.
1635  if test "$ac_new_set" = set; then
1636    case $ac_new_val in
1637    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1638      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1639    *) ac_arg=$ac_var=$ac_new_val ;;
1640    esac
1641    case " $ac_configure_args " in
1642      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1643      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1644    esac
1645  fi
1646done
1647if $ac_cache_corrupted; then
1648  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1649echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1650  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1651echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1652   { (exit 1); exit 1; }; }
1653fi
1654
1655ac_ext=c
1656ac_cpp='$CPP $CPPFLAGS'
1657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1659ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1691
1692# List one file in the package so that the configure script can test
1693# whether the package is actually there
1694
1695
1696# Where should everything be installed by default?  Here, we want it
1697# to be installed directly in 'bin', 'lib', 'include' subdirectories
1698# of the directory where configure is run.  The default would be
1699# /usr/local.
1700
1701
1702#############################################################################
1703#  Do the tests necessary to configure compilers and initialise autotools   #
1704#############################################################################
1705
1706ac_aux_dir=
1707for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1708  if test -f $ac_dir/install-sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install-sh -c"
1711    break
1712  elif test -f $ac_dir/install.sh; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/install.sh -c"
1715    break
1716  elif test -f $ac_dir/shtool; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/shtool install -c"
1719    break
1720  fi
1721done
1722if test -z "$ac_aux_dir"; then
1723  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1724echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1725   { (exit 1); exit 1; }; }
1726fi
1727ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1728ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1729ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1730
1731# Make sure we can run config.sub.
1732$ac_config_sub sun4 >/dev/null 2>&1 ||
1733  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735   { (exit 1); exit 1; }; }
1736
1737echo "$as_me:$LINENO: checking build system type" >&5
1738echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739if test "${ac_cv_build+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  ac_cv_build_alias=$build_alias
1743test -z "$ac_cv_build_alias" &&
1744  ac_cv_build_alias=`$ac_config_guess`
1745test -z "$ac_cv_build_alias" &&
1746  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748   { (exit 1); exit 1; }; }
1749ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754fi
1755echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756echo "${ECHO_T}$ac_cv_build" >&6
1757build=$ac_cv_build
1758build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763
1764# Check if user wants to produce debugging code
1765
1766echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1767echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1768
1769# Check whether --enable-debug or --disable-debug was given.
1770if test "${enable_debug+set}" = set; then
1771  enableval="$enable_debug"
1772  case "${enableval}" in
1773   yes) coin_debug_compile=true
1774        if test "${enable_shared+set}" = set; then :; else
1775          enable_shared=no
1776        fi
1777        ;;
1778   no)  coin_debug_compile=false
1779        ;;
1780   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1781echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1782   { (exit 1); exit 1; }; }
1783        ;;
1784esac
1785else
1786  coin_debug_compile=false
1787fi;
1788
1789 # m4_ifvaln([],
1790
1791if test $coin_debug_compile = true; then
1792  echo "$as_me:$LINENO: result: yes" >&5
1793echo "${ECHO_T}yes" >&6
1794else
1795  echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1797fi
1798
1799 # m4_ifvaln([],
1800
1801
1802
1803# Get the name of the C compiler and appropriate compiler options
1804case $build in
1805  *-mingw*)
1806    if test "${LD+set}" = set; then :; else
1807      LD=link
1808    fi
1809    ;;
1810 esac
1811 case $enable_doscompile in
1812   msvc)
1813     if test "x${LD+set}" = xset; then :; else
1814       LD=link
1815     fi
1816     ;;
1817 esac
1818
1819
1820 # Check whether --enable-doscompile or --disable-doscompile was given.
1821if test "${enable_doscompile+set}" = set; then
1822  enableval="$enable_doscompile"
1823  if test "$enable_doscompile" != no; then
1824     case $build in
1825       *-cygwin* | *-mingw*) ;;
1826       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1827echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1828   { (exit 1); exit 1; }; } ;;
1829     esac
1830   fi
1831else
1832  enable_doscompile=no
1833fi;
1834 case "$enable_doscompile" in
1835   mingw)
1836     case $build in
1837       *-mingw*) enable_doscompile=no ;;
1838     esac
1839     ;;
1840   msvc|no) ;;
1841   yes) enable_doscompile=mingw ;;
1842   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1843                    Try configure --help=recursive." >&5
1844echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1845                    Try configure --help=recursive." >&2;}
1846   { (exit 1); exit 1; }; }
1847      ;;
1848  esac
1849  if test "$enable_doscompile" != no ; then
1850    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1851echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1852  fi
1853
1854
1855
1856
1857ac_ext=c
1858ac_cpp='$CPP $CPPFLAGS'
1859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863
1864# For consistency, we set the C compiler to the same value of the C++
1865# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1866if test x"$CXX" != x; then
1867  case "$CXX" in
1868    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1869      if test x"$CC" = x; then
1870        CC="$CXX"
1871        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1872echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1873      fi
1874      ;;
1875  esac
1876fi
1877
1878# add automake conditional so we can recognize cl compiler in makefile
1879coin_cc_is_cl=false
1880if test x"$CXX" != x; then
1881  case "$CXX" in
1882    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1883      coin_cc_is_cl=true
1884      ;;
1885  esac
1886fi
1887
1888
1889if test $coin_cc_is_cl = true; then
1890  COIN_CC_IS_CL_TRUE=
1891  COIN_CC_IS_CL_FALSE='#'
1892else
1893  COIN_CC_IS_CL_TRUE='#'
1894  COIN_CC_IS_CL_FALSE=
1895fi
1896
1897
1898
1899
1900
1901
1902
1903coin_has_cc=yes
1904
1905save_cflags="$CFLAGS"
1906
1907# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1908# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1909# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1910# compiler. In this case, put cc after gcc.
1911
1912case $build in
1913  *-cygwin* | *-mingw*)
1914             if test "$enable_doscompile" = msvc ; then
1915               comps="icl cl"
1916             else
1917               comps="gcc cl"
1918             fi ;;
1919  *-*-solaris*)
1920             # Extract the first word of "cc", so it can be a program name with args.
1921set dummy cc; ac_word=$2
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1925  echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927  if test -n "$sol_cc_compiler"; then
1928  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1929else
1930  ac_prog_rejected=no
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  test -z "$as_dir" && as_dir=.
1936  for ac_exec_ext in '' $ac_executable_extensions; do
1937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1939       ac_prog_rejected=yes
1940       continue
1941     fi
1942    ac_cv_prog_sol_cc_compiler="cc"
1943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944    break 2
1945  fi
1946done
1947done
1948
1949if test $ac_prog_rejected = yes; then
1950  # We found a bogon in the path, so make sure we never use it.
1951  set dummy $ac_cv_prog_sol_cc_compiler
1952  shift
1953  if test $# != 0; then
1954    # We chose a different compiler from the bogus one.
1955    # However, it has the same basename, so the bogon will be chosen
1956    # first if we set sol_cc_compiler to just the basename; use the full file name.
1957    shift
1958    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1959  fi
1960fi
1961fi
1962fi
1963sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1964if test -n "$sol_cc_compiler"; then
1965  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1966echo "${ECHO_T}$sol_cc_compiler" >&6
1967else
1968  echo "$as_me:$LINENO: result: no" >&5
1969echo "${ECHO_T}no" >&6
1970fi
1971
1972             if test "$sol_cc_compiler" = "cc" ; then
1973               comps="cc xlc gcc pgcc icc"
1974             else
1975               comps="xlc gcc pgcc icc cc"
1976             fi
1977             ;;
1978  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1979  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1980  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1981esac
1982
1983# We delete the cached value, since the test might not have been
1984# performed with our choice of compilers earlier
1985$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1986# AC_MSG_NOTICE([C compiler candidates: $comps])
1987ac_ext=c
1988ac_cpp='$CPP $CPPFLAGS'
1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992if test -n "$ac_tool_prefix"; then
1993  for ac_prog in $comps
1994  do
1995    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1997echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999if test "${ac_cv_prog_CC+set}" = set; then
2000  echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002  if test -n "$CC"; then
2003  ac_cv_prog_CC="$CC" # Let the user override the test.
2004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  test -z "$as_dir" && as_dir=.
2010  for ac_exec_ext in '' $ac_executable_extensions; do
2011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014    break 2
2015  fi
2016done
2017done
2018
2019fi
2020fi
2021CC=$ac_cv_prog_CC
2022if test -n "$CC"; then
2023  echo "$as_me:$LINENO: result: $CC" >&5
2024echo "${ECHO_T}$CC" >&6
2025else
2026  echo "$as_me:$LINENO: result: no" >&5
2027echo "${ECHO_T}no" >&6
2028fi
2029
2030    test -n "$CC" && break
2031  done
2032fi
2033if test -z "$CC"; then
2034  ac_ct_CC=$CC
2035  for ac_prog in $comps
2036do
2037  # Extract the first word of "$ac_prog", so it can be a program name with args.
2038set dummy $ac_prog; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  if test -n "$ac_ct_CC"; then
2045  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052  for ac_exec_ext in '' $ac_executable_extensions; do
2053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054    ac_cv_prog_ac_ct_CC="$ac_prog"
2055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056    break 2
2057  fi
2058done
2059done
2060
2061fi
2062fi
2063ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064if test -n "$ac_ct_CC"; then
2065  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066echo "${ECHO_T}$ac_ct_CC" >&6
2067else
2068  echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
2070fi
2071
2072  test -n "$ac_ct_CC" && break
2073done
2074
2075  CC=$ac_ct_CC
2076fi
2077
2078
2079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&2;}
2083   { (exit 1); exit 1; }; }
2084
2085# Provide some information about the compiler.
2086echo "$as_me:$LINENO:" \
2087     "checking for C compiler version" >&5
2088ac_compiler=`set X $ac_compile; echo $2`
2089{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2090  (eval $ac_compiler --version </dev/null >&5) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }
2094{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2095  (eval $ac_compiler -v </dev/null >&5) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }
2099{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2100  (eval $ac_compiler -V </dev/null >&5) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }
2104
2105cat >conftest.$ac_ext <<_ACEOF
2106/* confdefs.h.  */
2107_ACEOF
2108cat confdefs.h >>conftest.$ac_ext
2109cat >>conftest.$ac_ext <<_ACEOF
2110/* end confdefs.h.  */
2111
2112int
2113main ()
2114{
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120ac_clean_files_save=$ac_clean_files
2121ac_clean_files="$ac_clean_files a.out a.exe b.out"
2122# Try to create an executable without -o first, disregard a.out.
2123# It will help us diagnose broken compilers, and finding out an intuition
2124# of exeext.
2125echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2126echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2127ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2129  (eval $ac_link_default) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }; then
2133  # Find the output, starting from the most likely.  This scheme is
2134# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2135# resort.
2136
2137# Be careful to initialize this variable, since it used to be cached.
2138# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2139ac_cv_exeext=
2140# b.out is created by i960 compilers.
2141for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2142do
2143  test -f "$ac_file" || continue
2144  case $ac_file in
2145    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2146        ;;
2147    conftest.$ac_ext )
2148        # This is the source file.
2149        ;;
2150    [ab].out )
2151        # We found the default executable, but exeext='' is most
2152        # certainly right.
2153        break;;
2154    *.* )
2155        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2156        # FIXME: I believe we export ac_cv_exeext for Libtool,
2157        # but it would be cool to find out if it's true.  Does anybody
2158        # maintain Libtool? --akim.
2159        export ac_cv_exeext
2160        break;;
2161    * )
2162        break;;
2163  esac
2164done
2165else
2166  echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
2168
2169{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2170See \`config.log' for more details." >&5
2171echo "$as_me: error: C compiler cannot create executables
2172See \`config.log' for more details." >&2;}
2173   { (exit 77); exit 77; }; }
2174fi
2175
2176ac_exeext=$ac_cv_exeext
2177echo "$as_me:$LINENO: result: $ac_file" >&5
2178echo "${ECHO_T}$ac_file" >&6
2179
2180# Check the compiler produces executables we can run.  If not, either
2181# the compiler is broken, or we cross compile.
2182echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2183echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2184# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2185# If not cross compiling, check that we can run a simple program.
2186if test "$cross_compiling" != yes; then
2187  if { ac_try='./$ac_file'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; }; then
2193    cross_compiling=no
2194  else
2195    if test "$cross_compiling" = maybe; then
2196        cross_compiling=yes
2197    else
2198        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2199If you meant to cross compile, use \`--host'.
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: cannot run C compiled programs.
2202If you meant to cross compile, use \`--host'.
2203See \`config.log' for more details." >&2;}
2204   { (exit 1); exit 1; }; }
2205    fi
2206  fi
2207fi
2208echo "$as_me:$LINENO: result: yes" >&5
2209echo "${ECHO_T}yes" >&6
2210
2211rm -f a.out a.exe conftest$ac_cv_exeext b.out
2212ac_clean_files=$ac_clean_files_save
2213# Check the compiler produces executables we can run.  If not, either
2214# the compiler is broken, or we cross compile.
2215echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2216echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2217echo "$as_me:$LINENO: result: $cross_compiling" >&5
2218echo "${ECHO_T}$cross_compiling" >&6
2219
2220echo "$as_me:$LINENO: checking for suffix of executables" >&5
2221echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2223  (eval $ac_link) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; then
2227  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2228# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2229# work properly (i.e., refer to `conftest.exe'), while it won't with
2230# `rm'.
2231for ac_file in conftest.exe conftest conftest.*; do
2232  test -f "$ac_file" || continue
2233  case $ac_file in
2234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2235    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236          export ac_cv_exeext
2237          break;;
2238    * ) break;;
2239  esac
2240done
2241else
2242  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2245See \`config.log' for more details." >&2;}
2246   { (exit 1); exit 1; }; }
2247fi
2248
2249rm -f conftest$ac_cv_exeext
2250echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2251echo "${ECHO_T}$ac_cv_exeext" >&6
2252
2253rm -f conftest.$ac_ext
2254EXEEXT=$ac_cv_exeext
2255ac_exeext=$EXEEXT
2256echo "$as_me:$LINENO: checking for suffix of object files" >&5
2257echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2258if test "${ac_cv_objext+set}" = set; then
2259  echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
2261  cat >conftest.$ac_ext <<_ACEOF
2262/* confdefs.h.  */
2263_ACEOF
2264cat confdefs.h >>conftest.$ac_ext
2265cat >>conftest.$ac_ext <<_ACEOF
2266/* end confdefs.h.  */
2267
2268int
2269main ()
2270{
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276rm -f conftest.o conftest.obj
2277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278  (eval $ac_compile) 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); }; then
2282  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2283  case $ac_file in
2284    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2285    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2286       break;;
2287  esac
2288done
2289else
2290  echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of object files: cannot compile
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest.$ac_cv_objext conftest.$ac_ext
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2303echo "${ECHO_T}$ac_cv_objext" >&6
2304OBJEXT=$ac_cv_objext
2305ac_objext=$OBJEXT
2306echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2307echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2308if test "${ac_cv_c_compiler_gnu+set}" = set; then
2309  echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311  cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321#ifndef __GNUC__
2322       choke me
2323#endif
2324
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331  (eval $ac_compile) 2>conftest.er1
2332  ac_status=$?
2333  grep -v '^ *+' conftest.er1 >conftest.err
2334  rm -f conftest.er1
2335  cat conftest.err >&5
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); } &&
2338         { ac_try='test -z "$ac_c_werror_flag"
2339                         || test ! -s conftest.err'
2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; } &&
2345         { ac_try='test -s conftest.$ac_objext'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351  ac_compiler_gnu=yes
2352else
2353  echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356ac_compiler_gnu=no
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359ac_cv_c_compiler_gnu=$ac_compiler_gnu
2360
2361fi
2362echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2363echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2364GCC=`test $ac_compiler_gnu = yes && echo yes`
2365ac_test_CFLAGS=${CFLAGS+set}
2366ac_save_CFLAGS=$CFLAGS
2367CFLAGS="-g"
2368echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2369echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2370if test "${ac_cv_prog_cc_g+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h.  */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h.  */
2379
2380int
2381main ()
2382{
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_cv_prog_cc_g=yes
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415ac_cv_prog_cc_g=no
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418fi
2419echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2420echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2421if test "$ac_test_CFLAGS" = set; then
2422  CFLAGS=$ac_save_CFLAGS
2423elif test $ac_cv_prog_cc_g = yes; then
2424  if test "$GCC" = yes; then
2425    CFLAGS="-g -O2"
2426  else
2427    CFLAGS="-g"
2428  fi
2429else
2430  if test "$GCC" = yes; then
2431    CFLAGS="-O2"
2432  else
2433    CFLAGS=
2434  fi
2435fi
2436echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2437echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2438if test "${ac_cv_prog_cc_stdc+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  ac_cv_prog_cc_stdc=no
2442ac_save_CC=$CC
2443cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h.  */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h.  */
2449#include <stdarg.h>
2450#include <stdio.h>
2451#include <sys/types.h>
2452#include <sys/stat.h>
2453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2454struct buf { int x; };
2455FILE * (*rcsopen) (struct buf *, struct stat *, int);
2456static char *e (p, i)
2457     char **p;
2458     int i;
2459{
2460  return p[i];
2461}
2462static char *f (char * (*g) (char **, int), char **p, ...)
2463{
2464  char *s;
2465  va_list v;
2466  va_start (v,p);
2467  s = g (p, va_arg (v,int));
2468  va_end (v);
2469  return s;
2470}
2471
2472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2473   function prototypes and stuff, but not '\xHH' hex character constants.
2474   These don't provoke an error unfortunately, instead are silently treated
2475   as 'x'.  The following induces an error, until -std1 is added to get
2476   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2477   array size at least.  It's necessary to write '\x00'==0 to get something
2478   that's true only with -std1.  */
2479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2480
2481int test (int i, double x);
2482struct s1 {int (*f) (int a);};
2483struct s2 {int (*f) (double a);};
2484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485int argc;
2486char **argv;
2487int
2488main ()
2489{
2490return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2491  ;
2492  return 0;
2493}
2494_ACEOF
2495# Don't try gcc -ansi; that turns off useful extensions and
2496# breaks some systems' header files.
2497# AIX                   -qlanglvl=ansi
2498# Ultrix and OSF/1      -std1
2499# HP-UX 10.20 and later -Ae
2500# HP-UX older versions  -Aa -D_HPUX_SOURCE
2501# SVR4                  -Xc -D__EXTENSIONS__
2502for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2503do
2504  CC="$ac_save_CC $ac_arg"
2505  rm -f conftest.$ac_objext
2506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507  (eval $ac_compile) 2>conftest.er1
2508  ac_status=$?
2509  grep -v '^ *+' conftest.er1 >conftest.err
2510  rm -f conftest.er1
2511  cat conftest.err >&5
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); } &&
2514         { ac_try='test -z "$ac_c_werror_flag"
2515                         || test ! -s conftest.err'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; } &&
2521         { ac_try='test -s conftest.$ac_objext'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; }; then
2527  ac_cv_prog_cc_stdc=$ac_arg
2528break
2529else
2530  echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533fi
2534rm -f conftest.err conftest.$ac_objext
2535done
2536rm -f conftest.$ac_ext conftest.$ac_objext
2537CC=$ac_save_CC
2538
2539fi
2540
2541case "x$ac_cv_prog_cc_stdc" in
2542  x|xno)
2543    echo "$as_me:$LINENO: result: none needed" >&5
2544echo "${ECHO_T}none needed" >&6 ;;
2545  *)
2546    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2547echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2548    CC="$CC $ac_cv_prog_cc_stdc" ;;
2549esac
2550
2551# Some people use a C++ compiler to compile C.  Since we use `exit',
2552# in C++ we need to declare it.  In case someone uses the same compiler
2553# for both compiling C and C++ we need to have the C++ compiler decide
2554# the declaration of exit, since it's the most demanding environment.
2555cat >conftest.$ac_ext <<_ACEOF
2556#ifndef __cplusplus
2557  choke me
2558#endif
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562  (eval $ac_compile) 2>conftest.er1
2563  ac_status=$?
2564  grep -v '^ *+' conftest.er1 >conftest.err
2565  rm -f conftest.er1
2566  cat conftest.err >&5
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); } &&
2569         { ac_try='test -z "$ac_c_werror_flag"
2570                         || test ! -s conftest.err'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576         { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  for ac_declaration in \
2583   '' \
2584   'extern "C" void std::exit (int) throw (); using std::exit;' \
2585   'extern "C" void std::exit (int); using std::exit;' \
2586   'extern "C" void exit (int) throw ();' \
2587   'extern "C" void exit (int);' \
2588   'void exit (int);'
2589do
2590  cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596$ac_declaration
2597#include <stdlib.h>
2598int
2599main ()
2600{
2601exit (42);
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608  (eval $ac_compile) 2>conftest.er1
2609  ac_status=$?
2610  grep -v '^ *+' conftest.er1 >conftest.err
2611  rm -f conftest.er1
2612  cat conftest.err >&5
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); } &&
2615         { ac_try='test -z "$ac_c_werror_flag"
2616                         || test ! -s conftest.err'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; } &&
2622         { ac_try='test -s conftest.$ac_objext'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; }; then
2628  :
2629else
2630  echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633continue
2634fi
2635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636  cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h.  */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h.  */
2642$ac_declaration
2643int
2644main ()
2645{
2646exit (42);
2647  ;
2648  return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653  (eval $ac_compile) 2>conftest.er1
2654  ac_status=$?
2655  grep -v '^ *+' conftest.er1 >conftest.err
2656  rm -f conftest.er1
2657  cat conftest.err >&5
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); } &&
2660         { ac_try='test -z "$ac_c_werror_flag"
2661                         || test ! -s conftest.err'
2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663  (eval $ac_try) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; } &&
2667         { ac_try='test -s conftest.$ac_objext'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; }; then
2673  break
2674else
2675  echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
2677
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680done
2681rm -f conftest*
2682if test -n "$ac_declaration"; then
2683  echo '#ifdef __cplusplus' >>confdefs.h
2684  echo $ac_declaration      >>confdefs.h
2685  echo '#endif'             >>confdefs.h
2686fi
2687
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692fi
2693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700if test -z "$CC" ; then
2701  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2702echo "$as_me: error: Failed to find a C compiler!" >&2;}
2703   { (exit 1); exit 1; }; }
2704fi
2705# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2706case "$CC" in
2707  cl* | */cl* | CL* | */CL* )
2708    if test "$ac_cv_prog_cc_g" = yes ; then
2709      ac_cv_prog_cc_g=no
2710      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2711echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2712    fi ;;
2713esac
2714CFLAGS="$save_cflags"
2715
2716# Check if a project specific CFLAGS variable has been set
2717if test x$COIN_PRJCT != x; then
2718  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2719  if test x$coin_tmp = xset; then
2720    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2721  fi
2722fi
2723
2724if test x"$CFLAGS" = x; then
2725
2726  coin_add_cflags=
2727  coin_opt_cflags=
2728  coin_dbg_cflags=
2729  coin_warn_cflags=
2730
2731  if test "$GCC" = "yes"; then
2732    case "$CC" in
2733      icc* | */icc*)
2734        ;;
2735      *)
2736        coin_opt_cflags="-O3"
2737        coin_add_cflags="-pipe"
2738        coin_dbg_cflags="-g"
2739        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2740        case $build in
2741          *-darwin*)
2742            ;;
2743          *)
2744            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2745            ;;
2746        esac
2747        case $enable_doscompile in
2748          mingw)
2749            CFLAGS="-mno-cygwin"
2750            cat >conftest.$ac_ext <<_ACEOF
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760int i=0; i++;
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext conftest$ac_exeext
2766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767  (eval $ac_link) 2>conftest.er1
2768  ac_status=$?
2769  grep -v '^ *+' conftest.er1 >conftest.err
2770  rm -f conftest.er1
2771  cat conftest.err >&5
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); } &&
2774         { ac_try='test -z "$ac_c_werror_flag"
2775                         || test ! -s conftest.err'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; } &&
2781         { ac_try='test -s conftest$ac_exeext'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; }; then
2787  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2788else
2789  echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792fi
2793rm -f conftest.err conftest.$ac_objext \
2794      conftest$ac_exeext conftest.$ac_ext
2795            CFLAGS=
2796          ;;
2797        esac
2798    esac
2799  fi
2800  if test -z "$coin_opt_cflags"; then
2801    case $build in
2802      *-cygwin* | *-mingw*)
2803        case "$CC" in
2804          cl* | */cl* | CL* | */CL*)
2805            coin_opt_cflags='-MT -O2'
2806            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2807            coin_dbg_cflags='-MTd'
2808            ;;
2809          icl* | */icl* | ICL* | */ICL*)
2810            coin_opt_cflags='-MT -Ox'
2811            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2812            coin_dbg_cflags='-MTd -debug'
2813            ;;
2814        esac
2815        ;;
2816      *-linux-*)
2817        case "$CC" in
2818          icc* | */icc*)
2819            coin_opt_cflags="-O3 -ip -mp1"
2820            coin_add_cflags=""
2821            coin_dbg_cflags="-g"
2822            # Check if -i_dynamic is necessary (for new glibc library)
2823            CFLAGS=
2824            cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h.  */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h.  */
2830
2831int
2832main ()
2833{
2834int i=0; i++;
2835  ;
2836  return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext conftest$ac_exeext
2840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2841  (eval $ac_link) 2>conftest.er1
2842  ac_status=$?
2843  grep -v '^ *+' conftest.er1 >conftest.err
2844  rm -f conftest.er1
2845  cat conftest.err >&5
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); } &&
2848         { ac_try='test -z "$ac_c_werror_flag"
2849                         || test ! -s conftest.err'
2850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851  (eval $ac_try) 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; } &&
2855         { ac_try='test -s conftest$ac_exeext'
2856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857  (eval $ac_try) 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; }; then
2861  :
2862else
2863  echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866coin_add_cflags="-i_dynamic $coin_add_cflags"
2867fi
2868rm -f conftest.err conftest.$ac_objext \
2869      conftest$ac_exeext conftest.$ac_ext
2870            ;;
2871          pgcc* | */pgcc*)
2872            coin_opt_cflags="-fast"
2873            coin_add_cflags="-Kieee -pc 64"
2874            coin_dbg_cflags="-g"
2875            ;;
2876        esac
2877        ;;
2878      *-ibm-*)
2879        case "$CC" in
2880          xlc* | */xlc* | mpxlc* | */mpxlc*)
2881            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2882            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2883            coin_dbg_cflags="-g"
2884          ;;
2885        esac
2886        ;;
2887      *-hp-*)
2888        coin_opt_cflags="-O"
2889        coin_add_cflags="-Ae"
2890        coin_dbg_cflags="-g"
2891        ;;
2892      *-*-solaris*)
2893        coin_opt_cflags="-xO4"
2894        coin_dbg_cflags="-g"
2895        ;;
2896      *-sgi-*)
2897        coin_opt_cflags="-O -OPT:Olimit=0"
2898        coin_dbg_cflags="-g"
2899        ;;
2900    esac
2901  fi
2902
2903  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2904    coin_dbg_cflags="-g"
2905  fi
2906
2907  if test -z "$coin_opt_cflags"; then
2908    # Try if -O option works if nothing else is set
2909    CFLAGS="-O"
2910    cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920int i=0; i++;
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927  (eval $ac_link) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934         { ac_try='test -z "$ac_c_werror_flag"
2935                         || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941         { ac_try='test -s conftest$ac_exeext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  coin_opt_cflags="-O"
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952fi
2953rm -f conftest.err conftest.$ac_objext \
2954      conftest$ac_exeext conftest.$ac_ext
2955  fi
2956
2957  # if PM doesn't want the warning messages, take them out
2958  if test x"$coin_skip_warn_cflags" = xyes; then
2959    coin_warn_cflags=
2960  fi
2961
2962  if test x${DBG_CFLAGS+set} != xset; then
2963    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2964  fi
2965  if test x${OPT_CFLAGS+set} != xset; then
2966    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2967  fi
2968
2969  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2970  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2971
2972  if test "$coin_debug_compile" = "true"; then
2973    CFLAGS="$DBG_CFLAGS"
2974  else
2975    CFLAGS="$OPT_CFLAGS"
2976  fi
2977else
2978  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2979  if test x${DBG_CFLAGS+set} != xset; then
2980    DBG_CFLAGS="$CFLAGS"
2981  fi
2982  if test x${OPT_CFLAGS+set} != xset; then
2983    OPT_CFLAGS="$CFLAGS"
2984  fi
2985fi
2986
2987# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2988
2989case "$CFLAGS" in
2990  *-mno-cygwin*)
2991    if test x${CPPFLAGS+set} != xset ; then
2992      CPPFLAGS="-mno-cygwin"
2993    else
2994      case "$CPPFLAGS" in
2995        *-mno-cygwin*)
2996          ;;
2997        *)
2998          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2999          ;;
3000      esac
3001    fi ;;
3002esac
3003
3004# Try if CFLAGS works
3005save_CFLAGS="$CFLAGS"
3006cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012
3013int
3014main ()
3015{
3016int i=0; i++;
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext conftest$ac_exeext
3022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3023  (eval $ac_link) 2>conftest.er1
3024  ac_status=$?
3025  grep -v '^ *+' conftest.er1 >conftest.err
3026  rm -f conftest.er1
3027  cat conftest.err >&5
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); } &&
3030         { ac_try='test -z "$ac_c_werror_flag"
3031                         || test ! -s conftest.err'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; } &&
3037         { ac_try='test -s conftest$ac_exeext'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; }; then
3043  :
3044else
3045  echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048CFLAGS=
3049fi
3050rm -f conftest.err conftest.$ac_objext \
3051      conftest$ac_exeext conftest.$ac_ext
3052if test -z "$CFLAGS"; then
3053  { 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
3054echo "$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;}
3055  CFLAGS='-O'
3056  cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h.  */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h.  */
3062
3063int
3064main ()
3065{
3066int i=0; i++;
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext conftest$ac_exeext
3072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073  (eval $ac_link) 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } &&
3080         { ac_try='test -z "$ac_c_werror_flag"
3081                         || test ! -s conftest.err'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; } &&
3087         { ac_try='test -s conftest$ac_exeext'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; }; then
3093  :
3094else
3095  echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098CFLAGS=
3099fi
3100rm -f conftest.err conftest.$ac_objext \
3101      conftest$ac_exeext conftest.$ac_ext
3102  if test -z "$CFLAGS"; then
3103    { 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
3104echo "$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;}
3105  fi
3106fi
3107
3108{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3109echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3110
3111
3112if test x"$MPICC" = x; then :; else
3113  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3114echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3115  CC="$MPICC"
3116fi
3117
3118# Correct the LD variable if we are using the MS or Intel-windows compiler
3119case "$CC" in
3120  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3121    case $build in
3122  *-mingw*)
3123    if test "${LD+set}" = set; then :; else
3124      LD=link
3125    fi
3126    ;;
3127 esac
3128 case $enable_doscompile in
3129   msvc)
3130     if test "x${LD+set}" = xset; then :; else
3131       LD=link
3132     fi
3133     ;;
3134 esac
3135
3136    ;;
3137esac
3138
3139ac_ext=c
3140ac_cpp='$CPP $CPPFLAGS'
3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144
3145
3146
3147# Get the name of the C++ compiler and appropriate compiler options
3148
3149 #Let's try if that overcomes configuration problem with VC++ 6.0
3150
3151ac_ext=cc
3152ac_cpp='$CXXCPP $CPPFLAGS'
3153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3156
3157
3158
3159
3160
3161
3162
3163coin_has_cxx=yes
3164
3165save_cxxflags="$CXXFLAGS"
3166# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3167case $build in
3168  *-cygwin* | *-mingw*)
3169             if test "$enable_doscompile" = msvc ; then
3170               comps="icl cl"
3171             else
3172               comps="g++ cl"
3173             fi ;;
3174  *-*-solaris*)
3175             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3176  *-darwin*) comps="g++ c++ CC" ;;
3177  *-linux-gnu*)
3178             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3179          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3180esac
3181
3182# We delete the cached value, since the test might not have been
3183# performed with our choice of compilers earlier
3184$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3185# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3186ac_ext=cc
3187ac_cpp='$CXXCPP $CPPFLAGS'
3188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3191if test -n "$ac_tool_prefix"; then
3192  for ac_prog in $CCC $comps
3193  do
3194    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196echo "$as_me:$LINENO: checking for $ac_word" >&5
3197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198if test "${ac_cv_prog_CXX+set}" = set; then
3199  echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201  if test -n "$CXX"; then
3202  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209  for ac_exec_ext in '' $ac_executable_extensions; do
3210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216done
3217
3218fi
3219fi
3220CXX=$ac_cv_prog_CXX
3221if test -n "$CXX"; then
3222  echo "$as_me:$LINENO: result: $CXX" >&5
3223echo "${ECHO_T}$CXX" >&6
3224else
3225  echo "$as_me:$LINENO: result: no" >&5
3226echo "${ECHO_T}no" >&6
3227fi
3228
3229    test -n "$CXX" && break
3230  done
3231fi
3232if test -z "$CXX"; then
3233  ac_ct_CXX=$CXX
3234  for ac_prog in $CCC $comps
3235do
3236  # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238echo "$as_me:$LINENO: checking for $ac_word" >&5
3239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3240if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3241  echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243  if test -n "$ac_ct_CXX"; then
3244  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251  for ac_exec_ext in '' $ac_executable_extensions; do
3252  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_prog_ac_ct_CXX="$ac_prog"
3254    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258done
3259
3260fi
3261fi
3262ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3263if test -n "$ac_ct_CXX"; then
3264  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3265echo "${ECHO_T}$ac_ct_CXX" >&6
3266else
3267  echo "$as_me:$LINENO: result: no" >&5
3268echo "${ECHO_T}no" >&6
3269fi
3270
3271  test -n "$ac_ct_CXX" && break
3272done
3273test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3274
3275  CXX=$ac_ct_CXX
3276fi
3277
3278
3279# Provide some information about the compiler.
3280echo "$as_me:$LINENO:" \
3281     "checking for C++ compiler version" >&5
3282ac_compiler=`set X $ac_compile; echo $2`
3283{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3284  (eval $ac_compiler --version </dev/null >&5) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3289  (eval $ac_compiler -v </dev/null >&5) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }
3293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3294  (eval $ac_compiler -V </dev/null >&5) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }
3298
3299echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3300echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3301if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3302  echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304  cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h.  */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314#ifndef __GNUC__
3315       choke me
3316#endif
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324  (eval $ac_compile) 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } &&
3331         { ac_try='test -z "$ac_cxx_werror_flag"
3332                         || test ! -s conftest.err'
3333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334  (eval $ac_try) 2>&5
3335  ac_status=$?
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); }; } &&
3338         { ac_try='test -s conftest.$ac_objext'
3339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340  (eval $ac_try) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }; }; then
3344  ac_compiler_gnu=yes
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349ac_compiler_gnu=no
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3353
3354fi
3355echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3356echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3357GXX=`test $ac_compiler_gnu = yes && echo yes`
3358ac_test_CXXFLAGS=${CXXFLAGS+set}
3359ac_save_CXXFLAGS=$CXXFLAGS
3360CXXFLAGS="-g"
3361echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3362echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3363if test "${ac_cv_prog_cxx_g+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383  (eval $ac_compile) 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } &&
3390         { ac_try='test -z "$ac_cxx_werror_flag"
3391                         || test ! -s conftest.err'
3392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393  (eval $ac_try) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }; } &&
3397         { ac_try='test -s conftest.$ac_objext'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; }; then
3403  ac_cv_prog_cxx_g=yes
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408ac_cv_prog_cxx_g=no
3409fi
3410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3413echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3414if test "$ac_test_CXXFLAGS" = set; then
3415  CXXFLAGS=$ac_save_CXXFLAGS
3416elif test $ac_cv_prog_cxx_g = yes; then
3417  if test "$GXX" = yes; then
3418    CXXFLAGS="-g -O2"
3419  else
3420    CXXFLAGS="-g"
3421  fi
3422else
3423  if test "$GXX" = yes; then
3424    CXXFLAGS="-O2"
3425  else
3426    CXXFLAGS=
3427  fi
3428fi
3429for ac_declaration in \
3430   '' \
3431   'extern "C" void std::exit (int) throw (); using std::exit;' \
3432   'extern "C" void std::exit (int); using std::exit;' \
3433   'extern "C" void exit (int) throw ();' \
3434   'extern "C" void exit (int);' \
3435   'void exit (int);'
3436do
3437  cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443$ac_declaration
3444#include <stdlib.h>
3445int
3446main ()
3447{
3448exit (42);
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462         { ac_try='test -z "$ac_cxx_werror_flag"
3463                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  :
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480continue
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489$ac_declaration
3490int
3491main ()
3492{
3493exit (42);
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500  (eval $ac_compile) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest.$ac_objext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  break
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527done
3528rm -f conftest*
3529if test -n "$ac_declaration"; then
3530  echo '#ifdef __cplusplus' >>confdefs.h
3531  echo $ac_declaration      >>confdefs.h
3532  echo '#endif'             >>confdefs.h
3533fi
3534
3535ac_ext=cc
3536ac_cpp='$CXXCPP $CPPFLAGS'
3537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3540
3541
3542#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3543#thus, we test here whether $CXX is actually working
3544ac_ext=cc
3545ac_cpp='$CXXCPP $CPPFLAGS'
3546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3549
3550echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3551echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3552cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558
3559int
3560main ()
3561{
3562int i=0;
3563  ;
3564  return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569  (eval $ac_compile) 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } &&
3576         { ac_try='test -z "$ac_cxx_werror_flag"
3577                         || test ! -s conftest.err'
3578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579  (eval $ac_try) 2>&5
3580  ac_status=$?
3581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582  (exit $ac_status); }; } &&
3583         { ac_try='test -s conftest.$ac_objext'
3584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585  (eval $ac_try) 2>&5
3586  ac_status=$?
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); }; }; then
3589  echo "$as_me:$LINENO: result: yes" >&5
3590echo "${ECHO_T}yes" >&6
3591else
3592  echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
3597   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3598echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3599   { (exit 1); exit 1; }; }
3600
3601fi
3602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603ac_ext=cc
3604ac_cpp='$CXXCPP $CPPFLAGS'
3605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3608
3609
3610coin_cxx_is_cl=false
3611# It seems that we need to cleanup something here for the Windows
3612case "$CXX" in
3613  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3614    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3615    mv confdefs.hh confdefs.h
3616    coin_cxx_is_cl=true
3617    ;;
3618esac
3619
3620# add automake conditional so we can recognize cl compiler in makefile
3621
3622
3623if test $coin_cxx_is_cl = true; then
3624  COIN_CXX_IS_CL_TRUE=
3625  COIN_CXX_IS_CL_FALSE='#'
3626else
3627  COIN_CXX_IS_CL_TRUE='#'
3628  COIN_CXX_IS_CL_FALSE=
3629fi
3630
3631
3632# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3633case "$CXX" in
3634  cl* | */cl* | CL* | */CL* )
3635    if test "$ac_cv_prog_cxx_g" = yes ; then
3636      ac_cv_prog_cxx_g=no
3637      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3638echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3639    fi ;;
3640esac
3641CXXFLAGS="$save_cxxflags"
3642
3643# Check if a project specific CXXFLAGS variable has been set
3644if test x$COIN_PRJCT != x; then
3645  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3646  if test x$coin_tmp = xset; then
3647    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3648  fi
3649fi
3650
3651if test x"$CXXFLAGS" = x; then
3652
3653# ToDo decide whether we want -DNDEBUG for optimization
3654  coin_add_cxxflags=
3655  coin_opt_cxxflags=
3656  coin_dbg_cxxflags=
3657  coin_warn_cxxflags=
3658
3659  if test "$GXX" = "yes"; then
3660    case "$CXX" in
3661      icpc* | */icpc*)
3662        ;;
3663      *)
3664# ToDo decide about unroll-loops
3665        coin_opt_cxxflags="-O3"
3666        coin_add_cxxflags="-pipe"
3667        coin_dbg_cxxflags="-g"
3668        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3669        case $build in
3670          *-darwin*)
3671            ;;
3672          *)
3673            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3674            ;;
3675        esac
3676
3677        case $enable_doscompile in
3678          mingw)
3679            CXXFLAGS="-mno-cygwin"
3680            cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h.  */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h.  */
3686
3687int
3688main ()
3689{
3690int i=0; i++;
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext conftest$ac_exeext
3696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3697  (eval $ac_link) 2>conftest.er1
3698  ac_status=$?
3699  grep -v '^ *+' conftest.er1 >conftest.err
3700  rm -f conftest.er1
3701  cat conftest.err >&5
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); } &&
3704         { ac_try='test -z "$ac_cxx_werror_flag"
3705                         || test ! -s conftest.err'
3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707  (eval $ac_try) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }; } &&
3711         { ac_try='test -s conftest$ac_exeext'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; }; then
3717  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3718else
3719  echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext \
3724      conftest$ac_exeext conftest.$ac_ext
3725            CXXFLAGS=
3726          ;;
3727        esac
3728    esac
3729  fi
3730
3731# Note that we do not need to cover GCC in the following tests.
3732
3733  if test -z "$coin_opt_cxxflags"; then
3734    case $build in
3735      *-cygwin* | *-mingw*)
3736        case "$CXX" in
3737          cl* | */cl* | CL* | */CL*)
3738            # The MT and MTd options are mutually exclusive
3739            coin_opt_cxxflags='-MT -O2'
3740            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3741            coin_dbg_cxxflags='-MTd'
3742            ;;
3743          icl* | */icl* | ICL* | */ICL*)
3744            # The MT and MTd options are mutually exclusive
3745            coin_opt_cxxflags='-MT -Ox'
3746            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3747            coin_dbg_cxxflags='-MTd -debug'
3748            ;;
3749        esac
3750        ;;
3751      *-linux-*)
3752        case "$CXX" in
3753          icpc* | */icpc*)
3754            coin_opt_cxxflags="-O3 -ip -mp1"
3755            coin_add_cxxflags=""
3756            coin_dbg_cxxflags="-g"
3757            # Check if -i_dynamic is necessary (for new glibc library)
3758            CXXFLAGS=
3759            cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h.  */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769int i=0; i++;
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774rm -f conftest.$ac_objext conftest$ac_exeext
3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776  (eval $ac_link) 2>conftest.er1
3777  ac_status=$?
3778  grep -v '^ *+' conftest.er1 >conftest.err
3779  rm -f conftest.er1
3780  cat conftest.err >&5
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); } &&
3783         { ac_try='test -z "$ac_cxx_werror_flag"
3784                         || test ! -s conftest.err'
3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786  (eval $ac_try) 2>&5
3787  ac_status=$?
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); }; } &&
3790         { ac_try='test -s conftest$ac_exeext'
3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792  (eval $ac_try) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; }; then
3796  :
3797else
3798  echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3802fi
3803rm -f conftest.err conftest.$ac_objext \
3804      conftest$ac_exeext conftest.$ac_ext
3805            ;;
3806          pgCC* | */pgCC*)
3807            coin_opt_cxxflags="-fast"
3808            coin_add_cxxflags="-Kieee -pc 64"
3809            coin_dbg_cxxflags="-g"
3810            ;;
3811        esac
3812        ;;
3813      *-ibm-*)
3814        case "$CXX" in
3815          xlC* | */xlC* | mpxlC* | */mpxlC*)
3816            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3817            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3818            coin_dbg_cxxflags="-g"
3819            ;;
3820        esac
3821        ;;
3822      *-hp-*)
3823        case "$CXX" in
3824          aCC* | */aCC* )
3825            coin_opt_cxxflags="-O"
3826            coin_add_cxxflags="-AA"
3827            coin_dbg_cxxflags="-g"
3828            ;;
3829        esac
3830        ;;
3831      *-*-solaris*)
3832          coin_opt_cxxflags="-O4"
3833          coin_dbg_cxxflags="-g"
3834        ;;
3835    esac
3836  fi
3837
3838# Generic flag settings. If these don't work, add a case above.
3839
3840  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3841    coin_dbg_cxxflags="-g"
3842  fi
3843
3844  if test -z "$coin_opt_cxxflags"; then
3845    # Try if -O option works if nothing else is set
3846    CXXFLAGS=-O
3847    cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h.  */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857int i=0; i++;
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864  (eval $ac_link) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871         { ac_try='test -z "$ac_cxx_werror_flag"
3872                         || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878         { ac_try='test -s conftest$ac_exeext'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  coin_opt_cxxflags="-O"
3885else
3886  echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889fi
3890rm -f conftest.err conftest.$ac_objext \
3891      conftest$ac_exeext conftest.$ac_ext
3892  fi
3893
3894  # if PM doesn't want the warning messages, take them out
3895  if test x"$coin_skip_warn_cxxflags" = xyes; then
3896    coin_warn_cxxflags=
3897  fi
3898
3899# Do final setup of flags based on values determined above.
3900
3901  if test x${DBG_CXXFLAGS+set} != xset; then
3902    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3903  fi
3904  if test x${OPT_CXXFLAGS+set} != xset; then
3905    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3906  fi
3907
3908  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3909  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3910
3911  if test "$coin_debug_compile" = "true"; then
3912    CXXFLAGS="$DBG_CXXFLAGS"
3913  else
3914    CXXFLAGS="$OPT_CXXFLAGS"
3915  fi
3916
3917# Handle the case where CXXFLAGS was set externally.
3918else
3919  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3920  if test x${DBG_CXXFLAGS+set} != xset; then
3921    DBG_CXXFLAGS="$CXXFLAGS"
3922  fi
3923  if test x${OPT_CXXFLAGS+set} != xset; then
3924    OPT_CXXFLAGS="$CXXFLAGS"
3925  fi
3926fi
3927
3928# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3929
3930case "$CXXFLAGS" in
3931  *-mno-cygwin*)
3932    if test x${CPPFLAGS+set} != xset ; then
3933      CPPFLAGS="-mno-cygwin"
3934    else
3935      case "$CPPFLAGS" in
3936        *-mno-cygwin*)
3937          ;;
3938        *)
3939          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3940          ;;
3941      esac
3942    fi ;;
3943esac
3944
3945# Try if CXXFLAGS works
3946save_CXXFLAGS="$CXXFLAGS"
3947cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h.  */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h.  */
3953
3954int
3955main ()
3956{
3957int i=0; i++;
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962rm -f conftest.$ac_objext conftest$ac_exeext
3963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964  (eval $ac_link) 2>conftest.er1
3965  ac_status=$?
3966  grep -v '^ *+' conftest.er1 >conftest.err
3967  rm -f conftest.er1
3968  cat conftest.err >&5
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); } &&
3971         { ac_try='test -z "$ac_cxx_werror_flag"
3972                         || test ! -s conftest.err'
3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974  (eval $ac_try) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; } &&
3978         { ac_try='test -s conftest$ac_exeext'
3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980  (eval $ac_try) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; }; then
3984  :
3985else
3986  echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989CXXFLAGS=
3990fi
3991rm -f conftest.err conftest.$ac_objext \
3992      conftest$ac_exeext conftest.$ac_ext
3993if test -z "$CXXFLAGS"; then
3994  { 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
3995echo "$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;}
3996  CXXFLAGS='-O'
3997  cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h.  */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h.  */
4003
4004int
4005main ()
4006{
4007int i=0; i++;
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext conftest$ac_exeext
4013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4014  (eval $ac_link) 2>conftest.er1
4015  ac_status=$?
4016  grep -v '^ *+' conftest.er1 >conftest.err
4017  rm -f conftest.er1
4018  cat conftest.err >&5
4019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020  (exit $ac_status); } &&
4021         { ac_try='test -z "$ac_cxx_werror_flag"
4022                         || test ! -s conftest.err'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; } &&
4028         { ac_try='test -s conftest$ac_exeext'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; }; then
4034  :
4035else
4036  echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039CXXFLAGS=
4040fi
4041rm -f conftest.err conftest.$ac_objext \
4042      conftest$ac_exeext conftest.$ac_ext
4043  if test -z "$CXXFLAGS"; then
4044    { 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
4045echo "$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;}
4046  fi
4047fi
4048
4049{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4050echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4051
4052
4053if test x"$MPICXX" = x; then :; else
4054  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4055echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4056  CXX="$MPICXX"
4057fi
4058
4059# correct the LD variable in a mingw build with MS or intel compiler
4060case "$CXX" in
4061  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4062    case $build in
4063  *-mingw*)
4064    if test "${LD+set}" = set; then :; else
4065      LD=link
4066    fi
4067    ;;
4068 esac
4069 case $enable_doscompile in
4070   msvc)
4071     if test "x${LD+set}" = xset; then :; else
4072       LD=link
4073     fi
4074     ;;
4075 esac
4076
4077    ;;
4078esac
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086
4087
4088# Get the name of the Fortran compiler and appropriate compiler options
4089case $build in
4090  *-cygwin* | *-mingw*)
4091     if test "$enable_doscompile" = msvc ; then
4092       coin_f77_comps="ifort fl32 compile_f2c"
4093     else
4094       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4095     fi ;;
4096  *-*-solaris*)
4097     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4098  *-linux-gnu*)
4099     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4100  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4101 esac
4102
4103
4104
4105
4106
4107
4108ac_ext=f
4109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4112
4113
4114
4115
4116
4117
4118coin_has_f77=yes
4119
4120save_fflags="$FFLAGS"
4121
4122# We delete the cached value, since the test might not have been
4123# performed with our choice of compilers earlier
4124$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4125
4126# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4127# coin_f77_comps to see if there's a program that matches one of the names.
4128# If there's no such program, F77 = unavailable. If we match the name,
4129# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4130# compiler.
4131# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4132
4133
4134{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4135echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4136for ac_prog in $coin_f77_comps
4137do
4138  # Extract the first word of "$ac_prog", so it can be a program name with args.
4139set dummy $ac_prog; ac_word=$2
4140echo "$as_me:$LINENO: checking for $ac_word" >&5
4141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142if test "${ac_cv_prog_F77+set}" = set; then
4143  echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145  if test -n "$F77"; then
4146  ac_cv_prog_F77="$F77" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153  for ac_exec_ext in '' $ac_executable_extensions; do
4154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155    ac_cv_prog_F77="$ac_prog"
4156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157    break 2
4158  fi
4159done
4160done
4161
4162fi
4163fi
4164F77=$ac_cv_prog_F77
4165if test -n "$F77"; then
4166  echo "$as_me:$LINENO: result: $F77" >&5
4167echo "${ECHO_T}$F77" >&6
4168else
4169  echo "$as_me:$LINENO: result: no" >&5
4170echo "${ECHO_T}no" >&6
4171fi
4172
4173  test -n "$F77" && break
4174done
4175test -n "$F77" || F77="unavailable"
4176
4177
4178if test "$F77" != "unavailable" ; then
4179  ac_ext=f
4180ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4181ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4183if test -n "$ac_tool_prefix"; then
4184  for ac_prog in $coin_f77_comps
4185  do
4186    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188echo "$as_me:$LINENO: checking for $ac_word" >&5
4189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190if test "${ac_cv_prog_F77+set}" = set; then
4191  echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193  if test -n "$F77"; then
4194  ac_cv_prog_F77="$F77" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199  IFS=$as_save_IFS
4200  test -z "$as_dir" && as_dir=.
4201  for ac_exec_ext in '' $ac_executable_extensions; do
4202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205    break 2
4206  fi
4207done
4208done
4209
4210fi
4211fi
4212F77=$ac_cv_prog_F77
4213if test -n "$F77"; then
4214  echo "$as_me:$LINENO: result: $F77" >&5
4215echo "${ECHO_T}$F77" >&6
4216else
4217  echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219fi
4220
4221    test -n "$F77" && break
4222  done
4223fi
4224if test -z "$F77"; then
4225  ac_ct_F77=$F77
4226  for ac_prog in $coin_f77_comps
4227do
4228  # Extract the first word of "$ac_prog", so it can be a program name with args.
4229set dummy $ac_prog; ac_word=$2
4230echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4232if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4233  echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235  if test -n "$ac_ct_F77"; then
4236  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243  for ac_exec_ext in '' $ac_executable_extensions; do
4244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245    ac_cv_prog_ac_ct_F77="$ac_prog"
4246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247    break 2
4248  fi
4249done
4250done
4251
4252fi
4253fi
4254ac_ct_F77=$ac_cv_prog_ac_ct_F77
4255if test -n "$ac_ct_F77"; then
4256  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4257echo "${ECHO_T}$ac_ct_F77" >&6
4258else
4259  echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261fi
4262
4263  test -n "$ac_ct_F77" && break
4264done
4265
4266  F77=$ac_ct_F77
4267fi
4268
4269
4270# Provide some information about the compiler.
4271echo "$as_me:4271:" \
4272     "checking for Fortran 77 compiler version" >&5
4273ac_compiler=`set X $ac_compile; echo $2`
4274{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4275  (eval $ac_compiler --version </dev/null >&5) 2>&5
4276  ac_status=$?
4277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278  (exit $ac_status); }
4279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4280  (eval $ac_compiler -v </dev/null >&5) 2>&5
4281  ac_status=$?
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); }
4284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4285  (eval $ac_compiler -V </dev/null >&5) 2>&5
4286  ac_status=$?
4287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288  (exit $ac_status); }
4289rm -f a.out
4290
4291# If we don't use `.F' as extension, the preprocessor is not run on the
4292# input file.  (Note that this only needs to work for GNU compilers.)
4293ac_save_ext=$ac_ext
4294ac_ext=F
4295echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4296echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4297if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4298  echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300  cat >conftest.$ac_ext <<_ACEOF
4301      program main
4302#ifndef __GNUC__
4303       choke me
4304#endif
4305
4306      end
4307_ACEOF
4308rm -f conftest.$ac_objext
4309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310  (eval $ac_compile) 2>conftest.er1
4311  ac_status=$?
4312  grep -v '^ *+' conftest.er1 >conftest.err
4313  rm -f conftest.er1
4314  cat conftest.err >&5
4315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316  (exit $ac_status); } &&
4317         { ac_try='test -z "$ac_f77_werror_flag"
4318                         || test ! -s conftest.err'
4319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320  (eval $ac_try) 2>&5
4321  ac_status=$?
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); }; } &&
4324         { ac_try='test -s conftest.$ac_objext'
4325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326  (eval $ac_try) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }; }; then
4330  ac_compiler_gnu=yes
4331else
4332  echo "$as_me: failed program was:" >&5
4333sed 's/^/| /' conftest.$ac_ext >&5
4334
4335ac_compiler_gnu=no
4336fi
4337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4338ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4339
4340fi
4341echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4342echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4343ac_ext=$ac_save_ext
4344ac_test_FFLAGS=${FFLAGS+set}
4345ac_save_FFLAGS=$FFLAGS
4346FFLAGS=
4347echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4348echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4349if test "${ac_cv_prog_f77_g+set}" = set; then
4350  echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352  FFLAGS=-g
4353cat >conftest.$ac_ext <<_ACEOF
4354      program main
4355
4356      end
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360  (eval $ac_compile) 2>conftest.er1
4361  ac_status=$?
4362  grep -v '^ *+' conftest.er1 >conftest.err
4363  rm -f conftest.er1
4364  cat conftest.err >&5
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); } &&
4367         { ac_try='test -z "$ac_f77_werror_flag"
4368                         || test ! -s conftest.err'
4369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370  (eval $ac_try) 2>&5
4371  ac_status=$?
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); }; } &&
4374         { ac_try='test -s conftest.$ac_objext'
4375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376  (eval $ac_try) 2>&5
4377  ac_status=$?
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); }; }; then
4380  ac_cv_prog_f77_g=yes
4381else
4382  echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_prog_f77_g=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4391echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4392if test "$ac_test_FFLAGS" = set; then
4393  FFLAGS=$ac_save_FFLAGS
4394elif test $ac_cv_prog_f77_g = yes; then
4395  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4396    FFLAGS="-g -O2"
4397  else
4398    FFLAGS="-g"
4399  fi
4400else
4401  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4402    FFLAGS="-O2"
4403  else
4404    FFLAGS=
4405  fi
4406fi
4407
4408G77=`test $ac_compiler_gnu = yes && echo yes`
4409ac_ext=f
4410ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4411ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4413
4414else
4415  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4416echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4417fi
4418
4419FFLAGS="$save_fflags"
4420
4421# Check if a project specific FFLAGS variable has been set
4422if test x$COIN_PRJCT != x; then
4423  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4424  if test x$coin_tmp = xset; then
4425    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4426  fi
4427fi
4428
4429if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4430
4431  coin_add_fflags=
4432  coin_opt_fflags=
4433  coin_dbg_fflags=
4434  coin_warn_fflags=
4435
4436  if test "$G77" = "yes"; then
4437    coin_opt_fflags="-O3"
4438    coin_add_fflags="-pipe"
4439    coin_dbg_fflags="-g"
4440    case $enable_doscompile in
4441      mingw)
4442        FFLAGS="-mno-cygwin"
4443        cat >conftest.$ac_ext <<_ACEOF
4444      program main
4445      write(*,*) 'Hello world'
4446      end
4447_ACEOF
4448rm -f conftest.$ac_objext conftest$ac_exeext
4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450  (eval $ac_link) 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457         { ac_try='test -z "$ac_f77_werror_flag"
4458                         || test ! -s conftest.err'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; } &&
4464         { ac_try='test -s conftest$ac_exeext'
4465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466  (eval $ac_try) 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475fi
4476rm -f conftest.err conftest.$ac_objext \
4477      conftest$ac_exeext conftest.$ac_ext
4478        FFLAGS=
4479      ;;
4480    esac
4481  else
4482    case $build in
4483      *-cygwin* | *-mingw*)
4484        case $F77 in
4485          ifort* | */ifort* | IFORT* | */IFORT* )
4486            coin_opt_fflags='-MT -O3'
4487            coin_add_fflags='-fpp -nologo'
4488            coin_dbg_fflags='-MTd -debug'
4489          ;;
4490          compile_f2c*)
4491            coin_opt_fflags='-MT -O2'
4492            coin_add_fflags='-nologo -wd4996'
4493            coin_dbg_fflags='-MTd'
4494          ;;
4495        esac
4496        ;;
4497      *-linux-*)
4498        case $F77 in
4499          ifc* | */ifc* | ifort* | */ifort*)
4500            coin_opt_fflags="-O3 -ip"
4501            coin_add_fflags="-cm -w90 -w95"
4502            coin_dbg_fflags="-g -CA -CB -CS"
4503            # Check if -i_dynamic is necessary (for new glibc library)
4504            FFLAGS=
4505            cat >conftest.$ac_ext <<_ACEOF
4506      program main
4507      write(*,*) 'Hello world'
4508      end
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512  (eval $ac_link) 2>conftest.er1
4513  ac_status=$?
4514  grep -v '^ *+' conftest.er1 >conftest.err
4515  rm -f conftest.er1
4516  cat conftest.err >&5
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); } &&
4519         { ac_try='test -z "$ac_f77_werror_flag"
4520                         || test ! -s conftest.err'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; } &&
4526         { ac_try='test -s conftest$ac_exeext'
4527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528  (eval $ac_try) 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; }; then
4532  :
4533else
4534  echo "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
4537coin_add_fflags="-i_dynamic $coin_add_fflags"
4538fi
4539rm -f conftest.err conftest.$ac_objext \
4540      conftest$ac_exeext conftest.$ac_ext
4541            ;;
4542          pgf77* | */pgf77* | pgf90* | */pgf90*)
4543            coin_opt_fflags="-fast"
4544            coin_add_fflags="-Kieee -pc 64"
4545            coin_dbg_fflags="-g"
4546          ;;
4547        esac
4548        ;;
4549      *-ibm-*)
4550        case "$F77" in
4551          xlf* | */xlf* | mpxlf* | */mpxlf* )
4552            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4553            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4554            coin_dbg_fflags="-g -C"
4555            ;;
4556        esac
4557        ;;
4558      *-hp-*)
4559        coin_opt_fflags="+O3"
4560        coin_add_fflags="+U77"
4561        coin_dbg_fflags="-C -g"
4562        ;;
4563      *-*-solaris*)
4564        coin_opt_fflags="-O4"
4565        coin_dbg_fflags="-g"
4566        ;;
4567      *-sgi-*)
4568        coin_opt_fflags="-O5 -OPT:Olimit=0"
4569        coin_dbg_fflags="-g"
4570        ;;
4571    esac
4572  fi
4573
4574  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4575    coin_dbg_fflags="-g"
4576  fi
4577
4578  if test -z "$coin_opt_fflags"; then
4579    # Try if -O option works if nothing else is set
4580    FFLAGS=-O
4581    cat >conftest.$ac_ext <<_ACEOF
4582      program main
4583      integer i
4584      end
4585_ACEOF
4586rm -f conftest.$ac_objext conftest$ac_exeext
4587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588  (eval $ac_link) 2>conftest.er1
4589  ac_status=$?
4590  grep -v '^ *+' conftest.er1 >conftest.err
4591  rm -f conftest.er1
4592  cat conftest.err >&5
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); } &&
4595         { ac_try='test -z "$ac_f77_werror_flag"
4596                         || test ! -s conftest.err'
4597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598  (eval $ac_try) 2>&5
4599  ac_status=$?
4600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601  (exit $ac_status); }; } &&
4602         { ac_try='test -s conftest$ac_exeext'
4603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604  (eval $ac_try) 2>&5
4605  ac_status=$?
4606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607  (exit $ac_status); }; }; then
4608  coin_opt_fflags="-O"
4609else
4610  echo "$as_me: failed program was:" >&5
4611sed 's/^/| /' conftest.$ac_ext >&5
4612
4613fi
4614rm -f conftest.err conftest.$ac_objext \
4615      conftest$ac_exeext conftest.$ac_ext
4616  fi
4617
4618  # if PM doesn't want the warning messages, take them out
4619  if test x"$coin_skip_warn_fflags" = xyes; then
4620    coin_warn_fflags=
4621  fi
4622
4623  if test x${DBG_FFLAGS+set} != xset; then
4624    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4625  fi
4626  if test x${OPT_FFLAGS+set} != xset; then
4627    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4628  fi
4629
4630  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4631  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4632
4633  if test "$coin_debug_compile" = "true"; then
4634    FFLAGS="$DBG_FFLAGS"
4635  else
4636    FFLAGS="$OPT_FFLAGS"
4637  fi
4638else
4639  FFLAGS="$FFLAGS $ADD_FFLAGS"
4640  if test x${DBG_FFLAGS+set} != xset; then
4641    DBG_FFLAGS="$FFLAGS"
4642  fi
4643  if test x${OPT_FFLAGS+set} != xset; then
4644    OPT_FFLAGS="$FFLAGS"
4645  fi
4646fi
4647
4648# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4649case "$FFLAGS" in
4650  *-mno-cygwin*)
4651    if test x${CPPFLAGS+set} != xset ; then
4652      CPPFLAGS="-mno-cygwin"
4653    else
4654      case "$CPPFLAGS" in
4655        *-mno-cygwin*)
4656          ;;
4657        *)
4658          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4659          ;;
4660      esac
4661    fi ;;
4662esac
4663
4664# Try if FFLAGS works
4665if test "$F77" != "unavailable" ; then
4666  cat >conftest.$ac_ext <<_ACEOF
4667      program main
4668      integer i
4669      end
4670_ACEOF
4671rm -f conftest.$ac_objext conftest$ac_exeext
4672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673  (eval $ac_link) 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } &&
4680         { ac_try='test -z "$ac_f77_werror_flag"
4681                         || test ! -s conftest.err'
4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683  (eval $ac_try) 2>&5
4684  ac_status=$?
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); }; } &&
4687         { ac_try='test -s conftest$ac_exeext'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; }; then
4693  :
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698FFLAGS=
4699fi
4700rm -f conftest.err conftest.$ac_objext \
4701      conftest$ac_exeext conftest.$ac_ext
4702  if test -z "$FFLAGS"; then
4703    { 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
4704echo "$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;}
4705    FFLAGS='-O'
4706    cat >conftest.$ac_ext <<_ACEOF
4707      program main
4708      integer i
4709      end
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713  (eval $ac_link) 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720         { ac_try='test -z "$ac_f77_werror_flag"
4721                         || test ! -s conftest.err'
4722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723  (eval $ac_try) 2>&5
4724  ac_status=$?
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); }; } &&
4727         { ac_try='test -s conftest$ac_exeext'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; }; then
4733  :
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738FFLAGS=
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741      conftest$ac_exeext conftest.$ac_ext
4742    if test -z "$FFLAGS"; then
4743      { 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
4744echo "$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;}
4745    fi
4746  fi
4747fi
4748
4749{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4750echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4751
4752
4753if test x"$MPIF77" = x; then :; else
4754  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4755echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4756  F77="$MPIF77"
4757fi
4758
4759# correct the LD variable if we use the intel fortran compiler in windows
4760case "$F77" in
4761  ifort* | */ifort* | IFORT* | */IFORT*)
4762    case $build in
4763  *-mingw*)
4764    if test "${LD+set}" = set; then :; else
4765      LD=link
4766    fi
4767    ;;
4768 esac
4769 case $enable_doscompile in
4770   msvc)
4771     if test "x${LD+set}" = xset; then :; else
4772       LD=link
4773     fi
4774     ;;
4775 esac
4776
4777    ;;
4778esac
4779
4780ac_ext=c
4781ac_cpp='$CPP $CPPFLAGS'
4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787
4788# Initialize automake and libtool
4789# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4790{
4791
4792
4793
4794# START
4795
4796# Test if force_shared has been set
4797if test "x" = xforce_shared; then
4798  if test x$enable_shared = xno; then
4799    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4800echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4801   { (exit 1); exit 1; }; }
4802  fi
4803  enable_shared=yes;
4804else
4805  # On Cygwin and AIX, building DLLs doesn't work
4806  case $build in
4807    *-cygwin*)
4808      coin_disable_shared=yes
4809      platform=Cygwin
4810    ;;
4811    *-aix*)
4812      coin_disable_shared=yes
4813      platform=AIX
4814    ;;
4815    *-mingw*)
4816      coin_disable_shared=yes
4817      platform="Msys"
4818#      case "$CXX" in
4819#        cl*)
4820#          coin_disable_shared=yes
4821#          platform="Msys with cl"
4822#      ;;
4823#      esac
4824    ;;
4825  esac
4826fi
4827if test x"$coin_disable_shared" = xyes; then
4828  if test x"$enable_shared" = xyes; then
4829    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4830echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4831  fi
4832  enable_shared=no
4833fi
4834# By default, we only want the shared objects to be compiled
4835# Check whether --enable-static or --disable-static was given.
4836if test "${enable_static+set}" = set; then
4837  enableval="$enable_static"
4838  p=${PACKAGE-default}
4839    case $enableval in
4840    yes) enable_static=yes ;;
4841    no) enable_static=no ;;
4842    *)
4843     enable_static=no
4844      # Look at the argument we got.  We use all the common list separators.
4845      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4846      for pkg in $enableval; do
4847        IFS="$lt_save_ifs"
4848        if test "X$pkg" = "X$p"; then
4849          enable_static=yes
4850        fi
4851      done
4852      IFS="$lt_save_ifs"
4853      ;;
4854    esac
4855else
4856  enable_static=no
4857fi;
4858
4859
4860
4861
4862# Initialize automake
4863echo "$as_me:$LINENO: checking for egrep" >&5
4864echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4865if test "${ac_cv_prog_egrep+set}" = set; then
4866  echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4869    then ac_cv_prog_egrep='grep -E'
4870    else ac_cv_prog_egrep='egrep'
4871    fi
4872fi
4873echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4874echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4875 EGREP=$ac_cv_prog_egrep
4876
4877
4878echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4880LN_S=$as_ln_s
4881if test "$LN_S" = "ln -s"; then
4882  echo "$as_me:$LINENO: result: yes" >&5
4883echo "${ECHO_T}yes" >&6
4884else
4885  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886echo "${ECHO_T}no, using $LN_S" >&6
4887fi
4888
4889am__api_version="1.9"
4890# Find a good install program.  We prefer a C program (faster),
4891# so one script is as good as another.  But avoid the broken or
4892# incompatible versions:
4893# SysV /etc/install, /usr/sbin/install
4894# SunOS /usr/etc/install
4895# IRIX /sbin/install
4896# AIX /bin/install
4897# AmigaOS /C/install, which installs bootblocks on floppy discs
4898# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4899# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4900# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4901# OS/2's system install, which has a completely different semantic
4902# ./install, which can be erroneously created by make from ./install.sh.
4903echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4904echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4905if test -z "$INSTALL"; then
4906if test "${ac_cv_path_install+set}" = set; then
4907  echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914  # Account for people who put trailing slashes in PATH elements.
4915case $as_dir/ in
4916  ./ | .// | /cC/* | \
4917  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4918  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4919  /usr/ucb/* ) ;;
4920  *)
4921    # OSF1 and SCO ODT 3.0 have their own names for install.
4922    # Don't use installbsd from OSF since it installs stuff as root
4923    # by default.
4924    for ac_prog in ginstall scoinst install; do
4925      for ac_exec_ext in '' $ac_executable_extensions; do
4926        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4927          if test $ac_prog = install &&
4928            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4929            # AIX install.  It has an incompatible calling convention.
4930            :
4931          elif test $ac_prog = install &&
4932            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4933            # program-specific install script used by HP pwplus--don't use.
4934            :
4935          else
4936            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4937            break 3
4938          fi
4939        fi
4940      done
4941    done
4942    ;;
4943esac
4944done
4945
4946
4947fi
4948  if test "${ac_cv_path_install+set}" = set; then
4949    INSTALL=$ac_cv_path_install
4950  else
4951    # As a last resort, use the slow shell script.  We don't cache a
4952    # path for INSTALL within a source directory, because that will
4953    # break other packages using the cache if that directory is
4954    # removed, or if the path is relative.
4955    INSTALL=$ac_install_sh
4956  fi
4957fi
4958echo "$as_me:$LINENO: result: $INSTALL" >&5
4959echo "${ECHO_T}$INSTALL" >&6
4960
4961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4962# It thinks the first close brace ends the variable substitution.
4963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4964
4965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4966
4967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4968
4969echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4970echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4971# Just in case
4972sleep 1
4973echo timestamp > conftest.file
4974# Do `set' in a subshell so we don't clobber the current shell's
4975# arguments.  Must try -L first in case configure is actually a
4976# symlink; some systems play weird games with the mod time of symlinks
4977# (eg FreeBSD returns the mod time of the symlink's containing
4978# directory).
4979if (
4980   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4981   if test "$*" = "X"; then
4982      # -L didn't work.
4983      set X `ls -t $srcdir/configure conftest.file`
4984   fi
4985   rm -f conftest.file
4986   if test "$*" != "X $srcdir/configure conftest.file" \
4987      && test "$*" != "X conftest.file $srcdir/configure"; then
4988
4989      # If neither matched, then we have a broken ls.  This can happen
4990      # if, for instance, CONFIG_SHELL is bash and it inherits a
4991      # broken ls alias from the environment.  This has actually
4992      # happened.  Such a system could not be considered "sane".
4993      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4994alias in your environment" >&5
4995echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4996alias in your environment" >&2;}
4997   { (exit 1); exit 1; }; }
4998   fi
4999
5000   test "$2" = conftest.file
5001   )
5002then
5003   # Ok.
5004   :
5005else
5006   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5007Check your system clock" >&5
5008echo "$as_me: error: newly created file is older than distributed files!
5009Check your system clock" >&2;}
5010   { (exit 1); exit 1; }; }
5011fi
5012echo "$as_me:$LINENO: result: yes" >&5
5013echo "${ECHO_T}yes" >&6
5014test "$program_prefix" != NONE &&
5015  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5016# Use a double $ so make ignores it.
5017test "$program_suffix" != NONE &&
5018  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5019# Double any \ or $.  echo might interpret backslashes.
5020# By default was `s,x,x', remove it if useless.
5021cat <<\_ACEOF >conftest.sed
5022s/[\\$]/&&/g;s/;s,x,x,$//
5023_ACEOF
5024program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5025rm conftest.sed
5026
5027# expand $ac_aux_dir to an absolute path
5028am_aux_dir=`cd $ac_aux_dir && pwd`
5029
5030test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5031# Use eval to expand $SHELL
5032if eval "$MISSING --run true"; then
5033  am_missing_run="$MISSING --run "
5034else
5035  am_missing_run=
5036  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5037echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5038fi
5039
5040if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5041  # We used to keeping the `.' as first argument, in order to
5042  # allow $(mkdir_p) to be used without argument.  As in
5043  #   $(mkdir_p) $(somedir)
5044  # where $(somedir) is conditionally defined.  However this is wrong
5045  # for two reasons:
5046  #  1. if the package is installed by a user who cannot write `.'
5047  #     make install will fail,
5048  #  2. the above comment should most certainly read
5049  #     $(mkdir_p) $(DESTDIR)$(somedir)
5050  #     so it does not work when $(somedir) is undefined and
5051  #     $(DESTDIR) is not.
5052  #  To support the latter case, we have to write
5053  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5054  #  so the `.' trick is pointless.
5055  mkdir_p='mkdir -p --'
5056else
5057  # On NextStep and OpenStep, the `mkdir' command does not
5058  # recognize any option.  It will interpret all options as
5059  # directories to create, and then abort because `.' already
5060  # exists.
5061  for d in ./-p ./--version;
5062  do
5063    test -d $d && rmdir $d
5064  done
5065  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5066  if test -f "$ac_aux_dir/mkinstalldirs"; then
5067    mkdir_p='$(mkinstalldirs)'
5068  else
5069    mkdir_p='$(install_sh) -d'
5070  fi
5071fi
5072
5073for ac_prog in gawk mawk nawk awk
5074do
5075  # Extract the first word of "$ac_prog", so it can be a program name with args.
5076set dummy $ac_prog; ac_word=$2
5077echo "$as_me:$LINENO: checking for $ac_word" >&5
5078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079if test "${ac_cv_prog_AWK+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  if test -n "$AWK"; then
5083  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5084else
5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH
5087do
5088  IFS=$as_save_IFS
5089  test -z "$as_dir" && as_dir=.
5090  for ac_exec_ext in '' $ac_executable_extensions; do
5091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092    ac_cv_prog_AWK="$ac_prog"
5093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094    break 2
5095  fi
5096done
5097done
5098
5099fi
5100fi
5101AWK=$ac_cv_prog_AWK
5102if test -n "$AWK"; then
5103  echo "$as_me:$LINENO: result: $AWK" >&5
5104echo "${ECHO_T}$AWK" >&6
5105else
5106  echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108fi
5109
5110  test -n "$AWK" && break
5111done
5112
5113echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5114echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5115set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5116if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5117  echo $ECHO_N "(cached) $ECHO_C" >&6
5118else
5119  cat >conftest.make <<\_ACEOF
5120all:
5121        @echo 'ac_maketemp="$(MAKE)"'
5122_ACEOF
5123# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5124eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5125if test -n "$ac_maketemp"; then
5126  eval ac_cv_prog_make_${ac_make}_set=yes
5127else
5128  eval ac_cv_prog_make_${ac_make}_set=no
5129fi
5130rm -f conftest.make
5131fi
5132if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5133  echo "$as_me:$LINENO: result: yes" >&5
5134echo "${ECHO_T}yes" >&6
5135  SET_MAKE=
5136else
5137  echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139  SET_MAKE="MAKE=${MAKE-make}"
5140fi
5141
5142rm -rf .tst 2>/dev/null
5143mkdir .tst 2>/dev/null
5144if test -d .tst; then
5145  am__leading_dot=.
5146else
5147  am__leading_dot=_
5148fi
5149rmdir .tst 2>/dev/null
5150
5151DEPDIR="${am__leading_dot}deps"
5152
5153          ac_config_commands="$ac_config_commands depfiles"
5154
5155
5156am_make=${MAKE-make}
5157cat > confinc << 'END'
5158am__doit:
5159        @echo done
5160.PHONY: am__doit
5161END
5162# If we don't find an include directive, just comment out the code.
5163echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5164echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5165am__include="#"
5166am__quote=
5167_am_result=none
5168# First try GNU make style include.
5169echo "include confinc" > confmf
5170# We grep out `Entering directory' and `Leaving directory'
5171# messages which can occur if `w' ends up in MAKEFLAGS.
5172# In particular we don't look at `^make:' because GNU make might
5173# be invoked under some other name (usually "gmake"), in which
5174# case it prints its new name instead of `make'.
5175if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5176   am__include=include
5177   am__quote=
5178   _am_result=GNU
5179fi
5180# Now try BSD make style include.
5181if test "$am__include" = "#"; then
5182   echo '.include "confinc"' > confmf
5183   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5184      am__include=.include
5185      am__quote="\""
5186      _am_result=BSD
5187   fi
5188fi
5189
5190
5191echo "$as_me:$LINENO: result: $_am_result" >&5
5192echo "${ECHO_T}$_am_result" >&6
5193rm -f confinc confmf
5194
5195# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5196if test "${enable_dependency_tracking+set}" = set; then
5197  enableval="$enable_dependency_tracking"
5198
5199fi;
5200if test "x$enable_dependency_tracking" != xno; then
5201  am_depcomp="$ac_aux_dir/depcomp"
5202  AMDEPBACKSLASH='\'
5203fi
5204
5205
5206if test "x$enable_dependency_tracking" != xno; then
5207  AMDEP_TRUE=
5208  AMDEP_FALSE='#'
5209else
5210  AMDEP_TRUE='#'
5211  AMDEP_FALSE=
5212fi
5213
5214
5215
5216
5217
5218
5219# AC_MSG_NOTICE([Beginning automake initialisation.])
5220# Stuff for automake
5221# test to see if srcdir already configured
5222if test "`cd $srcdir && pwd`" != "`pwd`" &&
5223   test -f $srcdir/config.status; then
5224  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5225echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5226   { (exit 1); exit 1; }; }
5227fi
5228
5229# test whether we have cygpath
5230if test -z "$CYGPATH_W"; then
5231  if (cygpath --version) >/dev/null 2>/dev/null; then
5232    CYGPATH_W='cygpath -w'
5233  else
5234    CYGPATH_W=echo
5235  fi
5236fi
5237
5238
5239# Define the identity of the package.
5240 PACKAGE='cbc'
5241 VERSION='trunk'
5242
5243
5244cat >>confdefs.h <<_ACEOF
5245#define PACKAGE "$PACKAGE"
5246_ACEOF
5247
5248
5249cat >>confdefs.h <<_ACEOF
5250#define VERSION "$VERSION"
5251_ACEOF
5252
5253# Some tools Automake needs.
5254
5255ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5256
5257
5258AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5259
5260
5261AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5262
5263
5264AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5265
5266
5267MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5268
5269install_sh=${install_sh-"$am_aux_dir/install-sh"}
5270
5271# Installed binaries are usually stripped using `strip' when the user
5272# run `make install-strip'.  However `strip' might not be the right
5273# tool to use in cross-compilation environments, therefore Automake
5274# will honor the `STRIP' environment variable to overrule this program.
5275if test "$cross_compiling" != no; then
5276  if test -n "$ac_tool_prefix"; then
5277  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5278set dummy ${ac_tool_prefix}strip; ac_word=$2
5279echo "$as_me:$LINENO: checking for $ac_word" >&5
5280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281if test "${ac_cv_prog_STRIP+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  if test -n "$STRIP"; then
5285  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290  IFS=$as_save_IFS
5291  test -z "$as_dir" && as_dir=.
5292  for ac_exec_ext in '' $ac_executable_extensions; do
5293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296    break 2
5297  fi
5298done
5299done
5300
5301fi
5302fi
5303STRIP=$ac_cv_prog_STRIP
5304if test -n "$STRIP"; then
5305  echo "$as_me:$LINENO: result: $STRIP" >&5
5306echo "${ECHO_T}$STRIP" >&6
5307else
5308  echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310fi
5311
5312fi
5313if test -z "$ac_cv_prog_STRIP"; then
5314  ac_ct_STRIP=$STRIP
5315  # Extract the first word of "strip", so it can be a program name with args.
5316set dummy strip; ac_word=$2
5317echo "$as_me:$LINENO: checking for $ac_word" >&5
5318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5320  echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322  if test -n "$ac_ct_STRIP"; then
5323  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328  IFS=$as_save_IFS
5329  test -z "$as_dir" && as_dir=.
5330  for ac_exec_ext in '' $ac_executable_extensions; do
5331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332    ac_cv_prog_ac_ct_STRIP="strip"
5333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5334    break 2
5335  fi
5336done
5337done
5338
5339  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5340fi
5341fi
5342ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5343if test -n "$ac_ct_STRIP"; then
5344  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5345echo "${ECHO_T}$ac_ct_STRIP" >&6
5346else
5347  echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349fi
5350
5351  STRIP=$ac_ct_STRIP
5352else
5353  STRIP="$ac_cv_prog_STRIP"
5354fi
5355
5356fi
5357INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5358
5359# We need awk for the "check" target.  The system "awk" is bad on
5360# some platforms.
5361# Always define AMTAR for backward compatibility.
5362
5363AMTAR=${AMTAR-"${am_missing_run}tar"}
5364
5365am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5366
5367
5368
5369
5370depcc="$CC"   am_compiler_list=
5371
5372echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5373echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5374if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5378  # We make a subdir and do the tests there.  Otherwise we can end up
5379  # making bogus files that we don't know about and never remove.  For
5380  # instance it was reported that on HP-UX the gcc test will end up
5381  # making a dummy file named `D' -- because `-MD' means `put the output
5382  # in D'.
5383  mkdir conftest.dir
5384  # Copy depcomp to subdir because otherwise we won't find it if we're
5385  # using a relative directory.
5386  cp "$am_depcomp" conftest.dir
5387  cd conftest.dir
5388  # We will build objects and dependencies in a subdirectory because
5389  # it helps to detect inapplicable dependency modes.  For instance
5390  # both Tru64's cc and ICC support -MD to output dependencies as a
5391  # side effect of compilation, but ICC will put the dependencies in
5392  # the current directory while Tru64 will put them in the object
5393  # directory.
5394  mkdir sub
5395
5396  am_cv_CC_dependencies_compiler_type=none
5397  if test "$am_compiler_list" = ""; then
5398     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5399  fi
5400  for depmode in $am_compiler_list; do
5401    # Setup a source with many dependencies, because some compilers
5402    # like to wrap large dependency lists on column 80 (with \), and
5403    # we should not choose a depcomp mode which is confused by this.
5404    #
5405    # We need to recreate these files for each test, as the compiler may
5406    # overwrite some of them when testing with obscure command lines.
5407    # This happens at least with the AIX C compiler.
5408    : > sub/conftest.c
5409    for i in 1 2 3 4 5 6; do
5410      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5411      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5412      # Solaris 8's {/usr,}/bin/sh.
5413      touch sub/conftst$i.h
5414    done
5415    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5416
5417    case $depmode in
5418    nosideeffect)
5419      # after this tag, mechanisms are not by side-effect, so they'll
5420      # only be used when explicitly requested
5421      if test "x$enable_dependency_tracking" = xyes; then
5422        continue
5423      else
5424        break
5425      fi
5426      ;;
5427    none) break ;;
5428    esac
5429    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5430    # mode.  It turns out that the SunPro C++ compiler does not properly
5431    # handle `-M -o', and we need to detect this.
5432    if depmode=$depmode \
5433       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5434       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5435       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5436         >/dev/null 2>conftest.err &&
5437       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5438       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5439       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5440      # icc doesn't choke on unknown options, it will just issue warnings
5441      # or remarks (even with -Werror).  So we grep stderr for any message
5442      # that says an option was ignored or not supported.
5443      # When given -MP, icc 7.0 and 7.1 complain thusly:
5444      #   icc: Command line warning: ignoring option '-M'; no argument required
5445      # The diagnosis changed in icc 8.0:
5446      #   icc: Command line remark: option '-MP' not supported
5447      if (grep 'ignoring option' conftest.err ||
5448          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5449        am_cv_CC_dependencies_compiler_type=$depmode
5450        break
5451      fi
5452    fi
5453  done
5454
5455  cd ..
5456  rm -rf conftest.dir
5457else
5458  am_cv_CC_dependencies_compiler_type=none
5459fi
5460
5461fi
5462echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5463echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5464CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5465
5466
5467
5468if
5469  test "x$enable_dependency_tracking" != xno \
5470  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5471  am__fastdepCC_TRUE=
5472  am__fastdepCC_FALSE='#'
5473else
5474  am__fastdepCC_TRUE='#'
5475  am__fastdepCC_FALSE=
5476fi
5477
5478
5479depcc="$CXX"  am_compiler_list=
5480
5481echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5482echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5483if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5484  echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5487  # We make a subdir and do the tests there.  Otherwise we can end up
5488  # making bogus files that we don't know about and never remove.  For
5489  # instance it was reported that on HP-UX the gcc test will end up
5490  # making a dummy file named `D' -- because `-MD' means `put the output
5491  # in D'.
5492  mkdir conftest.dir
5493  # Copy depcomp to subdir because otherwise we won't find it if we're
5494  # using a relative directory.
5495  cp "$am_depcomp" conftest.dir
5496  cd conftest.dir
5497  # We will build objects and dependencies in a subdirectory because
5498  # it helps to detect inapplicable dependency modes.  For instance
5499  # both Tru64's cc and ICC support -MD to output dependencies as a
5500  # side effect of compilation, but ICC will put the dependencies in
5501  # the current directory while Tru64 will put them in the object
5502  # directory.
5503  mkdir sub
5504
5505  am_cv_CXX_dependencies_compiler_type=none
5506  if test "$am_compiler_list" = ""; then
5507     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508  fi
5509  for depmode in $am_compiler_list; do
5510    # Setup a source with many dependencies, because some compilers
5511    # like to wrap large dependency lists on column 80 (with \), and
5512    # we should not choose a depcomp mode which is confused by this.
5513    #
5514    # We need to recreate these files for each test, as the compiler may
5515    # overwrite some of them when testing with obscure command lines.
5516    # This happens at least with the AIX C compiler.
5517    : > sub/conftest.c
5518    for i in 1 2 3 4 5 6; do
5519      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5520      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5521      # Solaris 8's {/usr,}/bin/sh.
5522      touch sub/conftst$i.h
5523    done
5524    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5525
5526    case $depmode in
5527    nosideeffect)
5528      # after this tag, mechanisms are not by side-effect, so they'll
5529      # only be used when explicitly requested
5530      if test "x$enable_dependency_tracking" = xyes; then
5531        continue
5532      else
5533        break
5534      fi
5535      ;;
5536    none) break ;;
5537    esac
5538    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5539    # mode.  It turns out that the SunPro C++ compiler does not properly
5540    # handle `-M -o', and we need to detect this.
5541    if depmode=$depmode \
5542       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5544       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5545         >/dev/null 2>conftest.err &&
5546       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5547       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5548       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5549      # icc doesn't choke on unknown options, it will just issue warnings
5550      # or remarks (even with -Werror).  So we grep stderr for any message
5551      # that says an option was ignored or not supported.
5552      # When given -MP, icc 7.0 and 7.1 complain thusly:
5553      #   icc: Command line warning: ignoring option '-M'; no argument required
5554      # The diagnosis changed in icc 8.0:
5555      #   icc: Command line remark: option '-MP' not supported
5556      if (grep 'ignoring option' conftest.err ||
5557          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5558        am_cv_CXX_dependencies_compiler_type=$depmode
5559        break
5560      fi
5561    fi
5562  done
5563
5564  cd ..
5565  rm -rf conftest.dir
5566else
5567  am_cv_CXX_dependencies_compiler_type=none
5568fi
5569
5570fi
5571echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5572echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5573CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5574
5575
5576
5577if
5578  test "x$enable_dependency_tracking" != xno \
5579  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5580  am__fastdepCXX_TRUE=
5581  am__fastdepCXX_FALSE='#'
5582else
5583  am__fastdepCXX_TRUE='#'
5584  am__fastdepCXX_FALSE=
5585fi
5586
5587
5588
5589echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5590echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5591    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5592if test "${enable_maintainer_mode+set}" = set; then
5593  enableval="$enable_maintainer_mode"
5594  USE_MAINTAINER_MODE=$enableval
5595else
5596  USE_MAINTAINER_MODE=no
5597fi;
5598  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5599echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5600
5601
5602if test $USE_MAINTAINER_MODE = yes; then
5603  MAINTAINER_MODE_TRUE=
5604  MAINTAINER_MODE_FALSE='#'
5605else
5606  MAINTAINER_MODE_TRUE='#'
5607  MAINTAINER_MODE_FALSE=
5608fi
5609
5610  MAINT=$MAINTAINER_MODE_TRUE
5611
5612
5613
5614coin_have_externals=no
5615if test "$enable_maintainer_mode" = yes; then
5616
5617  # If maintainer mode is chosen, we make sure that the correct versions
5618  # of the tools are used, and that we know where libtool.m4 is (to
5619  # recreate acinclude.m4)
5620
5621
5622  LIBTOOLM4=
5623  # Normally, $HOME
5624  AUTOTOOLS_DFLT=$HOME
5625
5626  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5627echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5628if test "${ac_cv_use_correct_autotools+set}" = set; then
5629  echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631  ac_cv_use_correct_autotools=check
5632fi
5633echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5634echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5635
5636  if test $ac_cv_use_correct_autotools = check; then
5637    ac_cv_use_correct_autotools=yes
5638    # Check if we have autoconf
5639    # Extract the first word of "autoconf", so it can be a program name with args.
5640set dummy autoconf; ac_word=$2
5641echo "$as_me:$LINENO: checking for $ac_word" >&5
5642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643if test "${ac_cv_prog_have_autoconf+set}" = set; then
5644  echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646  if test -n "$have_autoconf"; then
5647  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652  IFS=$as_save_IFS
5653  test -z "$as_dir" && as_dir=.
5654  for ac_exec_ext in '' $ac_executable_extensions; do
5655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656    ac_cv_prog_have_autoconf="yes"
5657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5658    break 2
5659  fi
5660done
5661done
5662
5663  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5664fi
5665fi
5666have_autoconf=$ac_cv_prog_have_autoconf
5667if test -n "$have_autoconf"; then
5668  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5669echo "${ECHO_T}$have_autoconf" >&6
5670else
5671  echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673fi
5674
5675    if test $have_autoconf = no; then
5676      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5677echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5678   { (exit 1); exit 1; }; }
5679    fi
5680
5681    # Check whether autoconf is the correct version
5682    correct_version='2.59'
5683    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5684    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5685echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5686    autoconf --version > confauto.out 2>&1
5687    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5688      echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6
5690    else
5691      rm -f confauto.out
5692      echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5695echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5696   { (exit 1); exit 1; }; }
5697    fi
5698    rm -f confauto.out
5699
5700    # Check if the executable autoconf is picked up from the correct location
5701    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5702echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5703    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5704    autoconf_dir=`cd $autoconf_dir; pwd`
5705    if test x$AUTOTOOLS_DIR = x; then
5706      want_dir=$AUTOTOOLS_DFLT/bin
5707    else
5708      want_dir=$AUTOTOOLS_DIR/bin
5709    fi
5710    if test $autoconf_dir = `cd $want_dir; pwd`; then
5711      echo "$as_me:$LINENO: result: yes" >&5
5712echo "${ECHO_T}yes" >&6
5713    else
5714      rm -f confauto.out
5715      echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5718echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5719   { (exit 1); exit 1; }; }
5720    fi
5721
5722    # Check if we have automake
5723    # Extract the first word of "automake", so it can be a program name with args.
5724set dummy automake; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_have_automake+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  if test -n "$have_automake"; then
5731  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738  for ac_exec_ext in '' $ac_executable_extensions; do
5739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740    ac_cv_prog_have_automake="yes"
5741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745done
5746
5747  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5748fi
5749fi
5750have_automake=$ac_cv_prog_have_automake
5751if test -n "$have_automake"; then
5752  echo "$as_me:$LINENO: result: $have_automake" >&5
5753echo "${ECHO_T}$have_automake" >&6
5754else
5755  echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759    if test $have_automake = no; then
5760      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5761echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5762   { (exit 1); exit 1; }; }
5763    fi
5764
5765    # Check whether automake is the correct version
5766    correct_version='1.9.6'
5767    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5768    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5769echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5770    automake --version > confauto.out 2>&1
5771    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5772      echo "$as_me:$LINENO: result: yes" >&5
5773echo "${ECHO_T}yes" >&6
5774    else
5775      rm -f confauto.out
5776      echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5779echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5780   { (exit 1); exit 1; }; }
5781    fi
5782    rm -f confauto.out
5783
5784    # Check if the executable automake is picked up from the correct location
5785    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5786echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5787    automake_dir=`which automake | sed -e 's=/automake=='`
5788    automake_dir=`cd $automake_dir; pwd`
5789    if test x$AUTOTOOLS_DIR = x; then
5790      want_dir=$AUTOTOOLS_DFLT/bin
5791    else
5792      want_dir=$AUTOTOOLS_DIR/bin
5793    fi
5794    if test $automake_dir = `cd $want_dir; pwd`; then
5795      echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797    else
5798      rm -f confauto.out
5799      echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
5801      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5802echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5803   { (exit 1); exit 1; }; }
5804    fi
5805
5806    # Check if this is the correct version of libtool (with escaped dots)
5807    if test x$AUTOTOOLS_DIR = x; then
5808      want_dir=$AUTOTOOLS_DFLT/share
5809    else
5810      want_dir=$AUTOTOOLS_DIR/share
5811    fi
5812    correct_version='1.5.22'
5813    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5814    if test -r $want_dir/libtool/ltmain.sh; then
5815  have_ltmain=yes
5816  :
5817else
5818  have_ltmain=no
5819  :
5820fi
5821
5822    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5823echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5824    if test $have_ltmain = yes; then
5825    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5826        echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6
5828      else
5829        echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6
5831        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5832echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5833   { (exit 1); exit 1; }; }
5834      fi
5835    else
5836      echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6
5838      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5839echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5840   { (exit 1); exit 1; }; }
5841    fi
5842  fi
5843
5844  # Check if we can find the libtool file
5845  if test x$AUTOTOOLS_DIR = x; then
5846    want_dir=$AUTOTOOLS_DFLT/share
5847  else
5848    want_dir=$AUTOTOOLS_DIR/share
5849  fi
5850  if test -r $want_dir/aclocal/libtool.m4; then
5851  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5852  :
5853else
5854  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5855echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5856   { (exit 1); exit 1; }; }
5857  :
5858fi
5859
5860
5861  # Check if we have an Dependencies file
5862  if test -r $srcdir/Dependencies; then
5863    coin_have_externals=yes
5864  fi
5865  # Check if subversion is installed and understands https
5866  # Extract the first word of "svn", so it can be a program name with args.
5867set dummy svn; ac_word=$2
5868echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870if test "${ac_cv_prog_have_svn+set}" = set; then
5871  echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873  if test -n "$have_svn"; then
5874  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879  IFS=$as_save_IFS
5880  test -z "$as_dir" && as_dir=.
5881  for ac_exec_ext in '' $ac_executable_extensions; do
5882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883    ac_cv_prog_have_svn="yes"
5884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885    break 2
5886  fi
5887done
5888done
5889
5890  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5891fi
5892fi
5893have_svn=$ac_cv_prog_have_svn
5894if test -n "$have_svn"; then
5895  echo "$as_me:$LINENO: result: $have_svn" >&5
5896echo "${ECHO_T}$have_svn" >&6
5897else
5898  echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
5900fi
5901
5902  if test x$have_svn = xyes; then
5903    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5904echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5905if test "${ac_cv_svn_understands_https+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  svn --version > confauto.out 2>&1
5909                    if $EGREP https confauto.out >/dev/null 2>&1; then
5910                      ac_cv_svn_understands_https=yes
5911                    else
5912                      ac_cv_svn_understands_https=no
5913                      have_svn=no
5914                      ac_cv_prog_have_svn=no
5915                    fi
5916                    rm -f confauto.out
5917fi
5918echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5919echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5920  fi
5921
5922  # Find the location of the BuildTools directory
5923  BUILDTOOLSDIR=
5924  if test -r $srcdir/BuildTools/coin.m4; then
5925    BUILDTOOLSDIR=$srcdir/BuildTools
5926  else
5927    if test -r $srcdir/../BuildTools/coin.m4; then
5928      BUILDTOOLSDIR=$srcdir/../BuildTools
5929    else
5930      if test -r $srcdir/../../BuildTools/coin.m4; then
5931        BUILDTOOLSDIR=$srcdir/../../BuildTools
5932      else
5933        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5934echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5935   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5936      fi
5937    fi
5938  fi
5939
5940
5941  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5942  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5943    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5944  fi
5945
5946  # The following variable is set to the name of the directory where
5947  # the autotool scripts are located
5948
5949  AUX_DIR=$ac_aux_dir
5950fi
5951
5952# helpful variable for the base directory of this package
5953abs_source_dir=`cd $srcdir; pwd`
5954
5955
5956# Stuff for example Makefiles
5957if test x$prefix = xNONE; then
5958  full_prefix=$ac_default_prefix
5959else
5960  full_prefix=$prefix
5961fi
5962full_prefix=`cd $full_prefix ; pwd`
5963
5964abs_lib_dir=$full_prefix/lib
5965
5966abs_include_dir=$full_prefix/include
5967
5968abs_bin_dir=$full_prefix/bin
5969
5970
5971
5972if test $coin_have_externals = yes && test x$have_svn = xyes; then
5973  HAVE_EXTERNALS_TRUE=
5974  HAVE_EXTERNALS_FALSE='#'
5975else
5976  HAVE_EXTERNALS_TRUE='#'
5977  HAVE_EXTERNALS_FALSE=
5978fi
5979
5980
5981# AC_MSG_NOTICE([End automake initialisation.])
5982
5983
5984
5985LIBTOOL=
5986if test -r ../libtool; then
5987  coin_config_dir=..
5988  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5989fi
5990if test "x$LIBTOOL" = x; then
5991  if test -r ../../libtool; then
5992    coin_config_dir=../..
5993    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5994  fi
5995fi
5996
5997if test "x$LIBTOOL" = x; then
5998# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5999  # Stuff for libtool
6000  # Check whether --enable-shared or --disable-shared was given.
6001if test "${enable_shared+set}" = set; then
6002  enableval="$enable_shared"
6003  p=${PACKAGE-default}
6004    case $enableval in
6005    yes) enable_shared=yes ;;
6006    no) enable_shared=no ;;
6007    *)
6008      enable_shared=no
6009      # Look at the argument we got.  We use all the common list separators.
6010      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011      for pkg in $enableval; do
6012        IFS="$lt_save_ifs"
6013        if test "X$pkg" = "X$p"; then
6014          enable_shared=yes
6015        fi
6016      done
6017      IFS="$lt_save_ifs"
6018      ;;
6019    esac
6020else
6021  enable_shared=yes
6022fi;
6023
6024# Check whether --enable-fast-install or --disable-fast-install was given.
6025if test "${enable_fast_install+set}" = set; then
6026  enableval="$enable_fast_install"
6027  p=${PACKAGE-default}
6028    case $enableval in
6029    yes) enable_fast_install=yes ;;
6030    no) enable_fast_install=no ;;
6031    *)
6032      enable_fast_install=no
6033      # Look at the argument we got.  We use all the common list separators.
6034      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6035      for pkg in $enableval; do
6036        IFS="$lt_save_ifs"
6037        if test "X$pkg" = "X$p"; then
6038          enable_fast_install=yes
6039        fi
6040      done
6041      IFS="$lt_save_ifs"
6042      ;;
6043    esac
6044else
6045  enable_fast_install=yes
6046fi;
6047
6048echo "$as_me:$LINENO: checking host system type" >&5
6049echo $ECHO_N "checking host system type... $ECHO_C" >&6
6050if test "${ac_cv_host+set}" = set; then
6051  echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053  ac_cv_host_alias=$host_alias
6054test -z "$ac_cv_host_alias" &&
6055  ac_cv_host_alias=$ac_cv_build_alias
6056ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6057  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6058echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6059   { (exit 1); exit 1; }; }
6060
6061fi
6062echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6063echo "${ECHO_T}$ac_cv_host" >&6
6064host=$ac_cv_host
6065host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6066host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6067host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6068
6069
6070echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6071echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6072if test "${lt_cv_path_SED+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  # Loop through the user's path and test for sed and gsed.
6076# Then use that list of sed's as ones to test for truncation.
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082  for lt_ac_prog in sed gsed; do
6083    for ac_exec_ext in '' $ac_executable_extensions; do
6084      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6085        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6086      fi
6087    done
6088  done
6089done
6090lt_ac_max=0
6091lt_ac_count=0
6092# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6093# along with /bin/sed that truncates output.
6094for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6095  test ! -f $lt_ac_sed && continue
6096  cat /dev/null > conftest.in
6097  lt_ac_count=0
6098  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6099  # Check for GNU sed and select it if it is found.
6100  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6101    lt_cv_path_SED=$lt_ac_sed
6102    break
6103  fi
6104  while true; do
6105    cat conftest.in conftest.in >conftest.tmp
6106    mv conftest.tmp conftest.in
6107    cp conftest.in conftest.nl
6108    echo >>conftest.nl
6109    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6110    cmp -s conftest.out conftest.nl || break
6111    # 10000 chars as input seems more than enough
6112    test $lt_ac_count -gt 10 && break
6113    lt_ac_count=`expr $lt_ac_count + 1`
6114    if test $lt_ac_count -gt $lt_ac_max; then
6115      lt_ac_max=$lt_ac_count
6116      lt_cv_path_SED=$lt_ac_sed
6117    fi
6118  done
6119done
6120
6121fi
6122
6123SED=$lt_cv_path_SED
6124echo "$as_me:$LINENO: result: $SED" >&5
6125echo "${ECHO_T}$SED" >&6
6126
6127
6128# Check whether --with-gnu-ld or --without-gnu-ld was given.
6129if test "${with_gnu_ld+set}" = set; then
6130  withval="$with_gnu_ld"
6131  test "$withval" = no || with_gnu_ld=yes
6132else
6133  with_gnu_ld=no
6134fi;
6135ac_prog=ld
6136if test "$GCC" = yes; then
6137  # Check if gcc -print-prog-name=ld gives a path.
6138  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6139echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6140  case $host in
6141  *-*-mingw*)
6142    # gcc leaves a trailing carriage return which upsets mingw
6143    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6144  *)
6145    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6146  esac
6147  case $ac_prog in
6148    # Accept absolute paths.
6149    [\\/]* | ?:[\\/]*)
6150      re_direlt='/[^/][^/]*/\.\./'
6151      # Canonicalize the pathname of ld
6152      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6153      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6154        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6155      done
6156      test -z "$LD" && LD="$ac_prog"
6157      ;;
6158  "")
6159    # If it fails, then pretend we aren't using GCC.
6160    ac_prog=ld
6161    ;;
6162  *)
6163    # If it is relative, then search for the first ld in PATH.
6164    with_gnu_ld=unknown
6165    ;;
6166  esac
6167elif test "$with_gnu_ld" = yes; then
6168  echo "$as_me:$LINENO: checking for GNU ld" >&5
6169echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6170else
6171  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6172echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6173fi
6174if test "${lt_cv_path_LD+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177  if test -z "$LD"; then
6178  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6179  for ac_dir in $PATH; do
6180    IFS="$lt_save_ifs"
6181    test -z "$ac_dir" && ac_dir=.
6182    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6183      lt_cv_path_LD="$ac_dir/$ac_prog"
6184      # Check to see if the program is GNU ld.  I'd rather use --version,
6185      # but apparently some variants of GNU ld only accept -v.
6186      # Break only if it was the GNU/non-GNU ld that we prefer.
6187      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6188      *GNU* | *'with BFD'*)
6189        test "$with_gnu_ld" != no && break
6190        ;;
6191      *)
6192        test "$with_gnu_ld" != yes && break
6193        ;;
6194      esac
6195    fi
6196  done
6197  IFS="$lt_save_ifs"
6198else
6199  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6200fi
6201fi
6202
6203LD="$lt_cv_path_LD"
6204if test -n "$LD"; then
6205  echo "$as_me:$LINENO: result: $LD" >&5
6206echo "${ECHO_T}$LD" >&6
6207else
6208  echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210fi
6211test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6212echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6213   { (exit 1); exit 1; }; }
6214echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6215echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6216if test "${lt_cv_prog_gnu_ld+set}" = set; then
6217  echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6220case `$LD -v 2>&1 </dev/null` in
6221*GNU* | *'with BFD'*)
6222  lt_cv_prog_gnu_ld=yes
6223  ;;
6224*)
6225  lt_cv_prog_gnu_ld=no
6226  ;;
6227esac
6228fi
6229echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6230echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6231with_gnu_ld=$lt_cv_prog_gnu_ld
6232
6233
6234echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6235echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6236if test "${lt_cv_ld_reload_flag+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239  lt_cv_ld_reload_flag='-r'
6240fi
6241echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6242echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6243reload_flag=$lt_cv_ld_reload_flag
6244case $reload_flag in
6245"" | " "*) ;;
6246*) reload_flag=" $reload_flag" ;;
6247esac
6248reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249case $host_os in
6250  darwin*)
6251    if test "$GCC" = yes; then
6252      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253    else
6254      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6255    fi
6256    ;;
6257esac
6258
6259echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6260echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6261if test "${lt_cv_path_NM+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264  if test -n "$NM"; then
6265  # Let the user override the test.
6266  lt_cv_path_NM="$NM"
6267else
6268  lt_nm_to_check="${ac_tool_prefix}nm"
6269  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6270    lt_nm_to_check="$lt_nm_to_check nm"
6271  fi
6272  for lt_tmp_nm in $lt_nm_to_check; do
6273    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6274    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6275      IFS="$lt_save_ifs"
6276      test -z "$ac_dir" && ac_dir=.
6277      tmp_nm="$ac_dir/$lt_tmp_nm"
6278      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6279        # Check to see if the nm accepts a BSD-compat flag.
6280        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6281        #   nm: unknown option "B" ignored
6282        # Tru64's nm complains that /dev/null is an invalid object file
6283        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6284        */dev/null* | *'Invalid file or object type'*)
6285          lt_cv_path_NM="$tmp_nm -B"
6286          break
6287          ;;
6288        *)
6289          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6290          */dev/null*)
6291            lt_cv_path_NM="$tmp_nm -p"
6292            break
6293            ;;
6294          *)
6295            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6296            continue # so that we can try to find one that supports BSD flags
6297            ;;
6298          esac
6299          ;;
6300        esac
6301      fi
6302    done
6303    IFS="$lt_save_ifs"
6304  done
6305  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6306fi
6307fi
6308echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6309echo "${ECHO_T}$lt_cv_path_NM" >&6
6310NM="$lt_cv_path_NM"
6311
6312echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6313echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6314if test "${lt_cv_deplibs_check_method+set}" = set; then
6315  echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317  lt_cv_file_magic_cmd='$MAGIC_CMD'
6318lt_cv_file_magic_test_file=
6319lt_cv_deplibs_check_method='unknown'
6320# Need to set the preceding variable on all platforms that support
6321# interlibrary dependencies.
6322# 'none' -- dependencies not supported.
6323# `unknown' -- same as none, but documents that we really don't know.
6324# 'pass_all' -- all dependencies passed with no checks.
6325# 'test_compile' -- check by making test program.
6326# 'file_magic [[regex]]' -- check by looking for files in library path
6327# which responds to the $file_magic_cmd with a given extended regex.
6328# If you have `file' or equivalent on your system and you're not sure
6329# whether `pass_all' will *always* work, you probably want this one.
6330
6331case $host_os in
6332aix4* | aix5*)
6333  lt_cv_deplibs_check_method=pass_all
6334  ;;
6335
6336beos*)
6337  lt_cv_deplibs_check_method=pass_all
6338  ;;
6339
6340bsdi[45]*)
6341  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6342  lt_cv_file_magic_cmd='/usr/bin/file -L'
6343  lt_cv_file_magic_test_file=/shlib/libc.so
6344  ;;
6345
6346cygwin*)
6347  # func_win32_libid is a shell function defined in ltmain.sh
6348  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6349  lt_cv_file_magic_cmd='func_win32_libid'
6350  ;;
6351
6352mingw* | pw32*)
6353  # Base MSYS/MinGW do not provide the 'file' command needed by
6354  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6355  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6356  lt_cv_file_magic_cmd='$OBJDUMP -f'
6357  ;;
6358
6359darwin* | rhapsody*)
6360  lt_cv_deplibs_check_method=pass_all
6361  ;;
6362
6363freebsd* | kfreebsd*-gnu | dragonfly*)
6364  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6365    case $host_cpu in
6366    i*86 )
6367      # Not sure whether the presence of OpenBSD here was a mistake.
6368      # Let's accept both of them until this is cleared up.
6369      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6370      lt_cv_file_magic_cmd=/usr/bin/file
6371      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6372      ;;
6373    esac
6374  else
6375    lt_cv_deplibs_check_method=pass_all
6376  fi
6377  ;;
6378
6379gnu*)
6380  lt_cv_deplibs_check_method=pass_all
6381  ;;
6382
6383hpux10.20* | hpux11*)
6384  lt_cv_file_magic_cmd=/usr/bin/file
6385  case $host_cpu in
6386  ia64*)
6387    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6388    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6389    ;;
6390  hppa*64*)
6391    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]'
6392    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6393    ;;
6394  *)
6395    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6396    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6397    ;;
6398  esac
6399  ;;
6400
6401interix3*)
6402  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6403  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6404  ;;
6405
6406irix5* | irix6* | nonstopux*)
6407  case $LD in
6408  *-32|*"-32 ") libmagic=32-bit;;
6409  *-n32|*"-n32 ") libmagic=N32;;
6410  *-64|*"-64 ") libmagic=64-bit;;
6411  *) libmagic=never-match;;
6412  esac
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416# This must be Linux ELF.
6417linux*)
6418  lt_cv_deplibs_check_method=pass_all
6419  ;;
6420
6421netbsd*)
6422  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6423    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424  else
6425    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6426  fi
6427  ;;
6428
6429newos6*)
6430  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6431  lt_cv_file_magic_cmd=/usr/bin/file
6432  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6433  ;;
6434
6435nto-qnx*)
6436  lt_cv_deplibs_check_method=unknown
6437  ;;
6438
6439openbsd*)
6440  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6441    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6442  else
6443    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6444  fi
6445  ;;
6446
6447osf3* | osf4* | osf5*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451solaris*)
6452  lt_cv_deplibs_check_method=pass_all
6453  ;;
6454
6455sysv4 | sysv4.3*)
6456  case $host_vendor in
6457  motorola)
6458    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]'
6459    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6460    ;;
6461  ncr)
6462    lt_cv_deplibs_check_method=pass_all
6463    ;;
6464  sequent)
6465    lt_cv_file_magic_cmd='/bin/file'
6466    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6467    ;;
6468  sni)
6469    lt_cv_file_magic_cmd='/bin/file'
6470    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6471    lt_cv_file_magic_test_file=/lib/libc.so
6472    ;;
6473  siemens)
6474    lt_cv_deplibs_check_method=pass_all
6475    ;;
6476  pc)
6477    lt_cv_deplibs_check_method=pass_all
6478    ;;
6479  esac
6480  ;;
6481
6482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483  lt_cv_deplibs_check_method=pass_all
6484  ;;
6485esac
6486
6487fi
6488echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6489echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6490file_magic_cmd=$lt_cv_file_magic_cmd
6491deplibs_check_method=$lt_cv_deplibs_check_method
6492test -z "$deplibs_check_method" && deplibs_check_method=unknown
6493
6494
6495
6496
6497# If no C compiler was specified, use CC.
6498LTCC=${LTCC-"$CC"}
6499
6500# If no C compiler flags were specified, use CFLAGS.
6501LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6502
6503# Allow CC to be a program name with arguments.
6504compiler=$CC
6505
6506# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6507if test "${enable_libtool_lock+set}" = set; then
6508  enableval="$enable_libtool_lock"
6509
6510fi;
6511test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6512
6513# Some flags need to be propagated to the compiler or linker for good
6514# libtool support.
6515case $host in
6516ia64-*-hpux*)
6517  # Find out which ABI we are using.
6518  echo 'int i;' > conftest.$ac_ext
6519  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520  (eval $ac_compile) 2>&5
6521  ac_status=$?
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); }; then
6524    case `/usr/bin/file conftest.$ac_objext` in
6525    *ELF-32*)
6526      HPUX_IA64_MODE="32"
6527      ;;
6528    *ELF-64*)
6529      HPUX_IA64_MODE="64"
6530      ;;
6531    esac
6532  fi
6533  rm -rf conftest*
6534  ;;
6535*-*-irix6*)
6536  # Find out which ABI we are using.
6537  echo '#line 6537 "configure"' > conftest.$ac_ext
6538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539  (eval $ac_compile) 2>&5
6540  ac_status=$?
6541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542  (exit $ac_status); }; then
6543   if test "$lt_cv_prog_gnu_ld" = yes; then
6544    case `/usr/bin/file conftest.$ac_objext` in
6545    *32-bit*)
6546      LD="${LD-ld} -melf32bsmip"
6547      ;;
6548    *N32*)
6549      LD="${LD-ld} -melf32bmipn32"
6550      ;;
6551    *64-bit*)
6552      LD="${LD-ld} -melf64bmip"
6553      ;;
6554    esac
6555   else
6556    case `/usr/bin/file conftest.$ac_objext` in
6557    *32-bit*)
6558      LD="${LD-ld} -32"
6559      ;;
6560    *N32*)
6561      LD="${LD-ld} -n32"
6562      ;;
6563    *64-bit*)
6564      LD="${LD-ld} -64"
6565      ;;
6566    esac
6567   fi
6568  fi
6569  rm -rf conftest*
6570  ;;
6571
6572x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6573  # Find out which ABI we are using.
6574  echo 'int i;' > conftest.$ac_ext
6575  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576  (eval $ac_compile) 2>&5
6577  ac_status=$?
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); }; then
6580    case `/usr/bin/file conftest.o` in
6581    *32-bit*)
6582      case $host in
6583        x86_64-*linux*)
6584          LD="${LD-ld} -m elf_i386"
6585          ;;
6586        ppc64-*linux*|powerpc64-*linux*)
6587          LD="${LD-ld} -m elf32ppclinux"
6588          ;;
6589        s390x-*linux*)
6590          LD="${LD-ld} -m elf_s390"
6591          ;;
6592        sparc64-*linux*)
6593          LD="${LD-ld} -m elf32_sparc"
6594          ;;
6595      esac
6596      ;;
6597    *64-bit*)
6598      case $host in
6599        x86_64-*linux*)
6600          LD="${LD-ld} -m elf_x86_64"
6601          ;;
6602        ppc*-*linux*|powerpc*-*linux*)
6603          LD="${LD-ld} -m elf64ppc"
6604          ;;
6605        s390*-*linux*)
6606          LD="${LD-ld} -m elf64_s390"
6607          ;;
6608        sparc*-*linux*)
6609          LD="${LD-ld} -m elf64_sparc"
6610          ;;
6611      esac
6612      ;;
6613    esac
6614  fi
6615  rm -rf conftest*
6616  ;;
6617
6618*-*-sco3.2v5*)
6619  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6620  SAVE_CFLAGS="$CFLAGS"
6621  CFLAGS="$CFLAGS -belf"
6622  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6623echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6624if test "${lt_cv_cc_needs_belf+set}" = set; then
6625  echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627  ac_ext=c
6628ac_cpp='$CPP $CPPFLAGS'
6629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6631ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632
6633     cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h.  */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h.  */
6639
6640int
6641main ()
6642{
6643
6644  ;
6645  return 0;
6646}
6647_ACEOF
6648rm -f conftest.$ac_objext conftest$ac_exeext
6649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650  (eval $ac_link) 2>conftest.er1
6651  ac_status=$?
6652  grep -v '^ *+' conftest.er1 >conftest.err
6653  rm -f conftest.er1
6654  cat conftest.err >&5
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); } &&
6657         { ac_try='test -z "$ac_c_werror_flag"
6658                         || test ! -s conftest.err'
6659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660  (eval $ac_try) 2>&5
6661  ac_status=$?
6662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663  (exit $ac_status); }; } &&
6664         { ac_try='test -s conftest$ac_exeext'
6665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666  (eval $ac_try) 2>&5
6667  ac_status=$?
6668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); }; }; then
6670  lt_cv_cc_needs_belf=yes
6671else
6672  echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675lt_cv_cc_needs_belf=no
6676fi
6677rm -f conftest.err conftest.$ac_objext \
6678      conftest$ac_exeext conftest.$ac_ext
6679     ac_ext=c
6680ac_cpp='$CPP $CPPFLAGS'
6681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684
6685fi
6686echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6687echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6688  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6689    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6690    CFLAGS="$SAVE_CFLAGS"
6691  fi
6692  ;;
6693sparc*-*solaris*)
6694  # Find out which ABI we are using.
6695  echo 'int i;' > conftest.$ac_ext
6696  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697  (eval $ac_compile) 2>&5
6698  ac_status=$?
6699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700  (exit $ac_status); }; then
6701    case `/usr/bin/file conftest.o` in
6702    *64-bit*)
6703      case $lt_cv_prog_gnu_ld in
6704      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6705      *)    LD="${LD-ld} -64" ;;
6706      esac
6707      ;;
6708    esac
6709  fi
6710  rm -rf conftest*
6711  ;;
6712
6713
6714esac
6715
6716need_locks="$enable_libtool_lock"
6717
6718
6719ac_ext=c
6720ac_cpp='$CPP $CPPFLAGS'
6721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723ac_compiler_gnu=$ac_cv_c_compiler_gnu
6724echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6725echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6726# On Suns, sometimes $CPP names a directory.
6727if test -n "$CPP" && test -d "$CPP"; then
6728  CPP=
6729fi
6730if test -z "$CPP"; then
6731  if test "${ac_cv_prog_CPP+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734      # Double quotes because CPP needs to be expanded
6735    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6736    do
6737      ac_preproc_ok=false
6738for ac_c_preproc_warn_flag in '' yes
6739do
6740  # Use a header file that comes with gcc, so configuring glibc
6741  # with a fresh cross-compiler works.
6742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6743  # <limits.h> exists even on freestanding compilers.
6744  # On the NeXT, cc -E runs the code through the compiler's parser,
6745  # not just through cpp. "Syntax error" is here to catch this case.
6746  cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h.  */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h.  */
6752#ifdef __STDC__
6753# include <limits.h>
6754#else
6755# include <assert.h>
6756#endif
6757                     Syntax error
6758_ACEOF
6759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null; then
6767  if test -s conftest.err; then
6768    ac_cpp_err=$ac_c_preproc_warn_flag
6769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6770  else
6771    ac_cpp_err=
6772  fi
6773else
6774  ac_cpp_err=yes
6775fi
6776if test -z "$ac_cpp_err"; then
6777  :
6778else
6779  echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782  # Broken: fails on valid input.
6783continue
6784fi
6785rm -f conftest.err conftest.$ac_ext
6786
6787  # OK, works on sane cases.  Now check whether non-existent headers
6788  # can be detected and how.
6789  cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h.  */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h.  */
6795#include <ac_nonexistent.h>
6796_ACEOF
6797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799  ac_status=$?
6800  grep -v '^ *+' conftest.er1 >conftest.err
6801  rm -f conftest.er1
6802  cat conftest.err >&5
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); } >/dev/null; then
6805  if test -s conftest.err; then
6806    ac_cpp_err=$ac_c_preproc_warn_flag
6807    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6808  else
6809    ac_cpp_err=
6810  fi
6811else
6812  ac_cpp_err=yes
6813fi
6814if test -z "$ac_cpp_err"; then
6815  # Broken: success on invalid input.
6816continue
6817else
6818  echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
6821  # Passes both tests.
6822ac_preproc_ok=:
6823break
6824fi
6825rm -f conftest.err conftest.$ac_ext
6826
6827done
6828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6829rm -f conftest.err conftest.$ac_ext
6830if $ac_preproc_ok; then
6831  break
6832fi
6833
6834    done
6835    ac_cv_prog_CPP=$CPP
6836
6837fi
6838  CPP=$ac_cv_prog_CPP
6839else
6840  ac_cv_prog_CPP=$CPP
6841fi
6842echo "$as_me:$LINENO: result: $CPP" >&5
6843echo "${ECHO_T}$CPP" >&6
6844ac_preproc_ok=false
6845for ac_c_preproc_warn_flag in '' yes
6846do
6847  # Use a header file that comes with gcc, so configuring glibc
6848  # with a fresh cross-compiler works.
6849  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6850  # <limits.h> exists even on freestanding compilers.
6851  # On the NeXT, cc -E runs the code through the compiler's parser,
6852  # not just through cpp. "Syntax error" is here to catch this case.
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#ifdef __STDC__
6860# include <limits.h>
6861#else
6862# include <assert.h>
6863#endif
6864                     Syntax error
6865_ACEOF
6866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6868  ac_status=$?
6869  grep -v '^ *+' conftest.er1 >conftest.err
6870  rm -f conftest.er1
6871  cat conftest.err >&5
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); } >/dev/null; then
6874  if test -s conftest.err; then
6875    ac_cpp_err=$ac_c_preproc_warn_flag
6876    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6877  else
6878    ac_cpp_err=
6879  fi
6880else
6881  ac_cpp_err=yes
6882fi
6883if test -z "$ac_cpp_err"; then
6884  :
6885else
6886  echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889  # Broken: fails on valid input.
6890continue
6891fi
6892rm -f conftest.err conftest.$ac_ext
6893
6894  # OK, works on sane cases.  Now check whether non-existent headers
6895  # can be detected and how.
6896  cat >conftest.$ac_ext <<_ACEOF
6897/* confdefs.h.  */
6898_ACEOF
6899cat confdefs.h >>conftest.$ac_ext
6900cat >>conftest.$ac_ext <<_ACEOF
6901/* end confdefs.h.  */
6902#include <ac_nonexistent.h>
6903_ACEOF
6904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6906  ac_status=$?
6907  grep -v '^ *+' conftest.er1 >conftest.err
6908  rm -f conftest.er1
6909  cat conftest.err >&5
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); } >/dev/null; then
6912  if test -s conftest.err; then
6913    ac_cpp_err=$ac_c_preproc_warn_flag
6914    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6915  else
6916    ac_cpp_err=
6917  fi
6918else
6919  ac_cpp_err=yes
6920fi
6921if test -z "$ac_cpp_err"; then
6922  # Broken: success on invalid input.
6923continue
6924else
6925  echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5
6927
6928  # Passes both tests.
6929ac_preproc_ok=:
6930break
6931fi
6932rm -f conftest.err conftest.$ac_ext
6933
6934done
6935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6936rm -f conftest.err conftest.$ac_ext
6937if $ac_preproc_ok; then
6938  :
6939else
6940  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6941See \`config.log' for more details." >&5
6942echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6943See \`config.log' for more details." >&2;}
6944   { (exit 1); exit 1; }; }
6945fi
6946
6947ac_ext=c
6948ac_cpp='$CPP $CPPFLAGS'
6949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953
6954echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6956if test "${ac_cv_header_stdc+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h.  */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h.  */
6965#include <stdlib.h>
6966#include <stdarg.h>
6967#include <string.h>
6968#include <float.h>
6969
6970int
6971main ()
6972{
6973
6974  ;
6975  return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980  (eval $ac_compile) 2>conftest.er1
6981  ac_status=$?
6982  grep -v '^ *+' conftest.er1 >conftest.err
6983  rm -f conftest.er1
6984  cat conftest.err >&5
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } &&
6987         { ac_try='test -z "$ac_c_werror_flag"
6988                         || test ! -s conftest.err'
6989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990  (eval $ac_try) 2>&5
6991  ac_status=$?
6992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993  (exit $ac_status); }; } &&
6994         { ac_try='test -s conftest.$ac_objext'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; }; then
7000  ac_cv_header_stdc=yes
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005ac_cv_header_stdc=no
7006fi
7007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008
7009if test $ac_cv_header_stdc = yes; then
7010  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7011  cat >conftest.$ac_ext <<_ACEOF
7012/* confdefs.h.  */
7013_ACEOF
7014cat confdefs.h >>conftest.$ac_ext
7015cat >>conftest.$ac_ext <<_ACEOF
7016/* end confdefs.h.  */
7017#include <string.h>
7018
7019_ACEOF
7020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021  $EGREP "memchr" >/dev/null 2>&1; then
7022  :
7023else
7024  ac_cv_header_stdc=no
7025fi
7026rm -f conftest*
7027
7028fi
7029
7030if test $ac_cv_header_stdc = yes; then
7031  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7032  cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h.  */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h.  */
7038#include <stdlib.h>
7039
7040_ACEOF
7041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042  $EGREP "free" >/dev/null 2>&1; then
7043  :
7044else
7045  ac_cv_header_stdc=no
7046fi
7047rm -f conftest*
7048
7049fi
7050
7051if test $ac_cv_header_stdc = yes; then
7052  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7053  if test "$cross_compiling" = yes; then
7054  :
7055else
7056  cat >conftest.$ac_ext <<_ACEOF
7057/* confdefs.h.  */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h.  */
7062#include <ctype.h>
7063#if ((' ' & 0x0FF) == 0x020)
7064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7066#else
7067# define ISLOWER(c) \
7068                   (('a' <= (c) && (c) <= 'i') \
7069                     || ('j' <= (c) && (c) <= 'r') \
7070                     || ('s' <= (c) && (c) <= 'z'))
7071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7072#endif
7073
7074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7075int
7076main ()
7077{
7078  int i;
7079  for (i = 0; i < 256; i++)
7080    if (XOR (islower (i), ISLOWER (i))
7081        || toupper (i) != TOUPPER (i))
7082      exit(2);
7083  exit (0);
7084}
7085_ACEOF
7086rm -f conftest$ac_exeext
7087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088  (eval $ac_link) 2>&5
7089  ac_status=$?
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; }; then
7097  :
7098else
7099  echo "$as_me: program exited with status $ac_status" >&5
7100echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7103( exit $ac_status )
7104ac_cv_header_stdc=no
7105fi
7106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7107fi
7108fi
7109fi
7110echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7111echo "${ECHO_T}$ac_cv_header_stdc" >&6
7112if test $ac_cv_header_stdc = yes; then
7113
7114cat >>confdefs.h <<\_ACEOF
7115#define STDC_HEADERS 1
7116_ACEOF
7117
7118fi
7119
7120# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7131                  inttypes.h stdint.h unistd.h
7132do
7133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134echo "$as_me:$LINENO: checking for $ac_header" >&5
7135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7136if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137  echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139  cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h.  */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h.  */
7145$ac_includes_default
7146
7147#include <$ac_header>
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151  (eval $ac_compile) 2>conftest.er1
7152  ac_status=$?
7153  grep -v '^ *+' conftest.er1 >conftest.err
7154  rm -f conftest.er1
7155  cat conftest.err >&5
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); } &&
7158         { ac_try='test -z "$ac_c_werror_flag"
7159                         || test ! -s conftest.err'
7160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161  (eval $ac_try) 2>&5
7162  ac_status=$?
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); }; } &&
7165         { ac_try='test -s conftest.$ac_objext'
7166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167  (eval $ac_try) 2>&5
7168  ac_status=$?
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); }; }; then
7171  eval "$as_ac_Header=yes"
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176eval "$as_ac_Header=no"
7177fi
7178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7182if test `eval echo '${'$as_ac_Header'}'` = yes; then
7183  cat >>confdefs.h <<_ACEOF
7184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7185_ACEOF
7186
7187fi
7188
7189done
7190
7191
7192
7193for ac_header in dlfcn.h
7194do
7195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7196if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197  echo "$as_me:$LINENO: checking for $ac_header" >&5
7198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7199if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201fi
7202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204else
7205  # Is the header compilable?
7206echo "$as_me:$LINENO: checking $ac_header usability" >&5
7207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7208cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h.  */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
7213/* end confdefs.h.  */
7214$ac_includes_default
7215#include <$ac_header>
7216_ACEOF
7217rm -f conftest.$ac_objext
7218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219  (eval $ac_compile) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } &&
7226         { ac_try='test -z "$ac_c_werror_flag"
7227                         || test ! -s conftest.err'
7228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229  (eval $ac_try) 2>&5
7230  ac_status=$?
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); }; } &&
7233         { ac_try='test -s conftest.$ac_objext'
7234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235  (eval $ac_try) 2>&5
7236  ac_status=$?
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); }; }; then
7239  ac_header_compiler=yes
7240else
7241  echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244ac_header_compiler=no
7245fi
7246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7248echo "${ECHO_T}$ac_header_compiler" >&6
7249
7250# Is the header present?
7251echo "$as_me:$LINENO: checking $ac_header presence" >&5
7252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7253cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259#include <$ac_header>
7260_ACEOF
7261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7262  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7263  ac_status=$?
7264  grep -v '^ *+' conftest.er1 >conftest.err
7265  rm -f conftest.er1
7266  cat conftest.err >&5
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); } >/dev/null; then
7269  if test -s conftest.err; then
7270    ac_cpp_err=$ac_c_preproc_warn_flag
7271    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7272  else
7273    ac_cpp_err=
7274  fi
7275else
7276  ac_cpp_err=yes
7277fi
7278if test -z "$ac_cpp_err"; then
7279  ac_header_preproc=yes
7280else
7281  echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284  ac_header_preproc=no
7285fi
7286rm -f conftest.err conftest.$ac_ext
7287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7288echo "${ECHO_T}$ac_header_preproc" >&6
7289
7290# So?  What about this header?
7291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7292  yes:no: )
7293    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7297    ac_header_preproc=yes
7298    ;;
7299  no:yes:* )
7300    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7302    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7303echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7304    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7306    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7307echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7308    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7310    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7312    (
7313      cat <<\_ASBOX
7314## ------------------------------------ ##
7315## Report this to cbc@lists.coin-or.org ##
7316## ------------------------------------ ##
7317_ASBOX
7318    ) |
7319      sed "s/^/$as_me: WARNING:     /" >&2
7320    ;;
7321esac
7322echo "$as_me:$LINENO: checking for $ac_header" >&5
7323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7324if eval "test \"\${$as_ac_Header+set}\" = set"; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327  eval "$as_ac_Header=\$ac_header_preproc"
7328fi
7329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7331
7332fi
7333if test `eval echo '${'$as_ac_Header'}'` = yes; then
7334  cat >>confdefs.h <<_ACEOF
7335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7336_ACEOF
7337
7338fi
7339
7340done
7341
7342
7343
7344if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7345    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7346    (test "X$CXX" != "Xg++"))) ; then
7347  ac_ext=cc
7348ac_cpp='$CXXCPP $CPPFLAGS'
7349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7352echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7353echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7354if test -z "$CXXCPP"; then
7355  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358      # Double quotes because CXXCPP needs to be expanded
7359    for CXXCPP in "$CXX -E" "/lib/cpp"
7360    do
7361      ac_preproc_ok=false
7362for ac_cxx_preproc_warn_flag in '' yes
7363do
7364  # Use a header file that comes with gcc, so configuring glibc
7365  # with a fresh cross-compiler works.
7366  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367  # <limits.h> exists even on freestanding compilers.
7368  # On the NeXT, cc -E runs the code through the compiler's parser,
7369  # not just through cpp. "Syntax error" is here to catch this case.
7370  cat >conftest.$ac_ext <<_ACEOF
7371/* confdefs.h.  */
7372_ACEOF
7373cat confdefs.h >>conftest.$ac_ext
7374cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h.  */
7376#ifdef __STDC__
7377# include <limits.h>
7378#else
7379# include <assert.h>
7380#endif
7381                     Syntax error
7382_ACEOF
7383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385  ac_status=$?
7386  grep -v '^ *+' conftest.er1 >conftest.err
7387  rm -f conftest.er1
7388  cat conftest.err >&5
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); } >/dev/null; then
7391  if test -s conftest.err; then
7392    ac_cpp_err=$ac_cxx_preproc_warn_flag
7393    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7394  else
7395    ac_cpp_err=
7396  fi
7397else
7398  ac_cpp_err=yes
7399fi
7400if test -z "$ac_cpp_err"; then
7401  :
7402else
7403  echo "$as_me: failed program was:" >&5
7404sed 's/^/| /' conftest.$ac_ext >&5
7405
7406  # Broken: fails on valid input.
7407continue
7408fi
7409rm -f conftest.err conftest.$ac_ext
7410
7411  # OK, works on sane cases.  Now check whether non-existent headers
7412  # can be detected and how.
7413  cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h.  */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h.  */
7419#include <ac_nonexistent.h>
7420_ACEOF
7421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7422  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7423  ac_status=$?
7424  grep -v '^ *+' conftest.er1 >conftest.err
7425  rm -f conftest.er1
7426  cat conftest.err >&5
7427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428  (exit $ac_status); } >/dev/null; then
7429  if test -s conftest.err; then
7430    ac_cpp_err=$ac_cxx_preproc_warn_flag
7431    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7432  else
7433    ac_cpp_err=
7434  fi
7435else
7436  ac_cpp_err=yes
7437fi
7438if test -z "$ac_cpp_err"; then
7439  # Broken: success on invalid input.
7440continue
7441else
7442  echo "$as_me: failed program was:" >&5
7443sed 's/^/| /' conftest.$ac_ext >&5
7444
7445  # Passes both tests.
7446ac_preproc_ok=:
7447break
7448fi
7449rm -f conftest.err conftest.$ac_ext
7450
7451done
7452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7453rm -f conftest.err conftest.$ac_ext
7454if $ac_preproc_ok; then
7455  break
7456fi
7457
7458    done
7459    ac_cv_prog_CXXCPP=$CXXCPP
7460
7461fi
7462  CXXCPP=$ac_cv_prog_CXXCPP
7463else
7464  ac_cv_prog_CXXCPP=$CXXCPP
7465fi
7466echo "$as_me:$LINENO: result: $CXXCPP" >&5
7467echo "${ECHO_T}$CXXCPP" >&6
7468ac_preproc_ok=false
7469for ac_cxx_preproc_warn_flag in '' yes
7470do
7471  # Use a header file that comes with gcc, so configuring glibc
7472  # with a fresh cross-compiler works.
7473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7474  # <limits.h> exists even on freestanding compilers.
7475  # On the NeXT, cc -E runs the code through the compiler's parser,
7476  # not just through cpp. "Syntax error" is here to catch this case.
7477  cat >conftest.$ac_ext <<_ACEOF
7478/* confdefs.h.  */
7479_ACEOF
7480cat confdefs.h >>conftest.$ac_ext
7481cat >>conftest.$ac_ext <<_ACEOF
7482/* end confdefs.h.  */
7483#ifdef __STDC__
7484# include <limits.h>
7485#else
7486# include <assert.h>
7487#endif
7488                     Syntax error
7489_ACEOF
7490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7492  ac_status=$?
7493  grep -v '^ *+' conftest.er1 >conftest.err
7494  rm -f conftest.er1
7495  cat conftest.err >&5
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); } >/dev/null; then
7498  if test -s conftest.err; then
7499    ac_cpp_err=$ac_cxx_preproc_warn_flag
7500    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7501  else
7502    ac_cpp_err=
7503  fi
7504else
7505  ac_cpp_err=yes
7506fi
7507if test -z "$ac_cpp_err"; then
7508  :
7509else
7510  echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513  # Broken: fails on valid input.
7514continue
7515fi
7516rm -f conftest.err conftest.$ac_ext
7517
7518  # OK, works on sane cases.  Now check whether non-existent headers
7519  # can be detected and how.
7520  cat >conftest.$ac_ext <<_ACEOF
7521/* confdefs.h.  */
7522_ACEOF
7523cat confdefs.h >>conftest.$ac_ext
7524cat >>conftest.$ac_ext <<_ACEOF
7525/* end confdefs.h.  */
7526#include <ac_nonexistent.h>
7527_ACEOF
7528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7529  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7530  ac_status=$?
7531  grep -v '^ *+' conftest.er1 >conftest.err
7532  rm -f conftest.er1
7533  cat conftest.err >&5
7534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535  (exit $ac_status); } >/dev/null; then
7536  if test -s conftest.err; then
7537    ac_cpp_err=$ac_cxx_preproc_warn_flag
7538    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7539  else
7540    ac_cpp_err=
7541  fi
7542else
7543  ac_cpp_err=yes
7544fi
7545if test -z "$ac_cpp_err"; then
7546  # Broken: success on invalid input.
7547continue
7548else
7549  echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552  # Passes both tests.
7553ac_preproc_ok=:
7554break
7555fi
7556rm -f conftest.err conftest.$ac_ext
7557
7558done
7559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7560rm -f conftest.err conftest.$ac_ext
7561if $ac_preproc_ok; then
7562  :
7563else
7564  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7565See \`config.log' for more details." >&5
7566echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7567See \`config.log' for more details." >&2;}
7568   { (exit 1); exit 1; }; }
7569fi
7570
7571ac_ext=cc
7572ac_cpp='$CXXCPP $CPPFLAGS'
7573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7576
7577fi
7578
7579
7580# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7581
7582# find the maximum length of command line arguments
7583echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7584echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7585if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588    i=0
7589  teststring="ABCD"
7590
7591  case $build_os in
7592  msdosdjgpp*)
7593    # On DJGPP, this test can blow up pretty badly due to problems in libc
7594    # (any single argument exceeding 2000 bytes causes a buffer overrun
7595    # during glob expansion).  Even if it were fixed, the result of this
7596    # check would be larger than it should be.
7597    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7598    ;;
7599
7600  gnu*)
7601    # Under GNU Hurd, this test is not required because there is
7602    # no limit to the length of command line arguments.
7603    # Libtool will interpret -1 as no limit whatsoever
7604    lt_cv_sys_max_cmd_len=-1;
7605    ;;
7606
7607  cygwin* | mingw*)
7608    # On Win9x/ME, this test blows up -- it succeeds, but takes
7609    # about 5 minutes as the teststring grows exponentially.
7610    # Worse, since 9x/ME are not pre-emptively multitasking,
7611    # you end up with a "frozen" computer, even though with patience
7612    # the test eventually succeeds (with a max line length of 256k).
7613    # Instead, let's just punt: use the minimum linelength reported by
7614    # all of the supported platforms: 8192 (on NT/2K/XP).
7615    lt_cv_sys_max_cmd_len=8192;
7616    ;;
7617
7618  amigaos*)
7619    # On AmigaOS with pdksh, this test takes hours, literally.
7620    # So we just punt and use a minimum line length of 8192.
7621    lt_cv_sys_max_cmd_len=8192;
7622    ;;
7623
7624  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7625    # This has been around since 386BSD, at least.  Likely further.
7626    if test -x /sbin/sysctl; then
7627      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7628    elif test -x /usr/sbin/sysctl; then
7629      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7630    else
7631      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7632    fi
7633    # And add a safety zone
7634    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7635    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7636    ;;
7637
7638  interix*)
7639    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7640    lt_cv_sys_max_cmd_len=196608
7641    ;;
7642
7643  osf*)
7644    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7645    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7646    # nice to cause kernel panics so lets avoid the loop below.
7647    # First set a reasonable default.
7648    lt_cv_sys_max_cmd_len=16384
7649    #
7650    if test -x /sbin/sysconfig; then
7651      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7652        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7653      esac
7654    fi
7655    ;;
7656  sco3.2v5*)
7657    lt_cv_sys_max_cmd_len=102400
7658    ;;
7659  sysv5* | sco5v6* | sysv4.2uw2*)
7660    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7661    if test -n "$kargmax"; then
7662      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7663    else
7664      lt_cv_sys_max_cmd_len=32768
7665    fi
7666    ;;
7667  *)
7668    # If test is not a shell built-in, we'll probably end up computing a
7669    # maximum length that is only half of the actual maximum length, but
7670    # we can't tell.
7671    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7672    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7673               = "XX$teststring") >/dev/null 2>&1 &&
7674            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7675            lt_cv_sys_max_cmd_len=$new_result &&
7676            test $i != 17 # 1/2 MB should be enough
7677    do
7678      i=`expr $i + 1`
7679      teststring=$teststring$teststring
7680    done
7681    teststring=
7682    # Add a significant safety factor because C++ compilers can tack on massive
7683    # amounts of additional arguments before passing them to the linker.
7684    # It appears as though 1/2 is a usable value.
7685    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7686    ;;
7687  esac
7688
7689fi
7690
7691if test -n $lt_cv_sys_max_cmd_len ; then
7692  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7693echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7694else
7695  echo "$as_me:$LINENO: result: none" >&5
7696echo "${ECHO_T}none" >&6
7697fi
7698
7699
7700
7701
7702# Check for command to grab the raw symbol name followed by C symbol from nm.
7703echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7704echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7705if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7706  echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708
7709# These are sane defaults that work on at least a few old systems.
7710# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7711
7712# Character class describing NM global symbol codes.
7713symcode='[BCDEGRST]'
7714
7715# Regexp to match symbols that can be accessed directly from C.
7716sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7717
7718# Transform an extracted symbol line into a proper C declaration
7719lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7720
7721# Transform an extracted symbol line into symbol name and symbol address
7722lt_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'"
7723
7724# Define system-specific variables.
7725case $host_os in
7726aix*)
7727  symcode='[BCDT]'
7728  ;;
7729cygwin* | mingw* | pw32*)
7730  symcode='[ABCDGISTW]'
7731  ;;
7732hpux*) # Its linker distinguishes data from code symbols
7733  if test "$host_cpu" = ia64; then
7734    symcode='[ABCDEGRST]'
7735  fi
7736  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7737  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'"
7738  ;;
7739linux*)
7740  if test "$host_cpu" = ia64; then
7741    symcode='[ABCDGIRSTW]'
7742    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7743    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'"
7744  fi
7745  ;;
7746irix* | nonstopux*)
7747  symcode='[BCDEGRST]'
7748  ;;
7749osf*)
7750  symcode='[BCDEGQRST]'
7751  ;;
7752solaris*)
7753  symcode='[BDRT]'
7754  ;;
7755sco3.2v5*)
7756  symcode='[DT]'
7757  ;;
7758sysv4.2uw2*)
7759  symcode='[DT]'
7760  ;;
7761sysv5* | sco5v6* | unixware* | OpenUNIX*)
7762  symcode='[ABDT]'
7763  ;;
7764sysv4)
7765  symcode='[DFNSTU]'
7766  ;;
7767esac
7768
7769# Handle CRLF in mingw tool chain
7770opt_cr=
7771case $build_os in
7772mingw*)
7773  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7774  ;;
7775esac
7776
7777# If we're using GNU nm, then use its standard symbol codes.
7778case `$NM -V 2>&1` in
7779*GNU* | *'with BFD'*)
7780  symcode='[ABCDGIRSTW]' ;;
7781esac
7782
7783# Try without a prefix undercore, then with it.
7784for ac_symprfx in "" "_"; do
7785
7786  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7787  symxfrm="\\1 $ac_symprfx\\2 \\2"
7788
7789  # Write the raw and C identifiers.
7790  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7791
7792  # Check to see that the pipe works correctly.
7793  pipe_works=no
7794
7795  rm -f conftest*
7796  cat > conftest.$ac_ext <<EOF
7797#ifdef __cplusplus
7798extern "C" {
7799#endif
7800char nm_test_var;
7801void nm_test_func(){}
7802#ifdef __cplusplus
7803}
7804#endif
7805int main(){nm_test_var='a';nm_test_func();return(0);}
7806EOF
7807
7808  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7809  (eval $ac_compile) 2>&5
7810  ac_status=$?
7811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812  (exit $ac_status); }; then
7813    # Now try to grab the symbols.
7814    nlist=conftest.nm
7815    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7816  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7817  ac_status=$?
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } && test -s "$nlist"; then
7820      # Try sorting and uniquifying the output.
7821      if sort "$nlist" | uniq > "$nlist"T; then
7822        mv -f "$nlist"T "$nlist"
7823      else
7824        rm -f "$nlist"T
7825      fi
7826
7827      # Make sure that we snagged all the symbols we need.
7828      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7829        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7830          cat <<EOF > conftest.$ac_ext
7831#ifdef __cplusplus
7832extern "C" {
7833#endif
7834
7835EOF
7836          # Now generate the symbol file.
7837          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7838
7839          cat <<EOF >> conftest.$ac_ext
7840#if defined (__STDC__) && __STDC__
7841# define lt_ptr_t void *
7842#else
7843# define lt_ptr_t char *
7844# define const
7845#endif
7846
7847/* The mapping between symbol names and symbols. */
7848const struct {
7849  const char *name;
7850  lt_ptr_t address;
7851}
7852lt_preloaded_symbols[] =
7853{
7854EOF
7855          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7856          cat <<\EOF >> conftest.$ac_ext
7857  {0, (lt_ptr_t) 0}
7858};
7859
7860#ifdef __cplusplus
7861}
7862#endif
7863EOF
7864          # Now try linking the two files.
7865          mv conftest.$ac_objext conftstm.$ac_objext
7866          lt_save_LIBS="$LIBS"
7867          lt_save_CFLAGS="$CFLAGS"
7868          LIBS="conftstm.$ac_objext"
7869          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7870          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871  (eval $ac_link) 2>&5
7872  ac_status=$?
7873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7875            pipe_works=yes
7876          fi
7877          LIBS="$lt_save_LIBS"
7878          CFLAGS="$lt_save_CFLAGS"
7879        else
7880          echo "cannot find nm_test_func in $nlist" >&5
7881        fi
7882      else
7883        echo "cannot find nm_test_var in $nlist" >&5
7884      fi
7885    else
7886      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7887    fi
7888  else
7889    echo "$progname: failed program was:" >&5
7890    cat conftest.$ac_ext >&5
7891  fi
7892  rm -f conftest* conftst*
7893
7894  # Do not use the global_symbol_pipe unless it works.
7895  if test "$pipe_works" = yes; then
7896    break
7897  else
7898    lt_cv_sys_global_symbol_pipe=
7899  fi
7900done
7901
7902fi
7903
7904if test -z "$lt_cv_sys_global_symbol_pipe"; then
7905  lt_cv_sys_global_symbol_to_cdecl=
7906fi
7907if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7908  echo "$as_me:$LINENO: result: failed" >&5
7909echo "${ECHO_T}failed" >&6
7910else
7911  echo "$as_me:$LINENO: result: ok" >&5
7912echo "${ECHO_T}ok" >&6
7913fi
7914
7915echo "$as_me:$LINENO: checking for objdir" >&5
7916echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7917if test "${lt_cv_objdir+set}" = set; then
7918  echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920  rm -f .libs 2>/dev/null
7921mkdir .libs 2>/dev/null
7922if test -d .libs; then
7923  lt_cv_objdir=.libs
7924else
7925  # MS-DOS does not allow filenames that begin with a dot.
7926  lt_cv_objdir=_libs
7927fi
7928rmdir .libs 2>/dev/null
7929fi
7930echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7931echo "${ECHO_T}$lt_cv_objdir" >&6
7932objdir=$lt_cv_objdir
7933
7934
7935
7936
7937
7938case $host_os in
7939aix3*)
7940  # AIX sometimes has problems with the GCC collect2 program.  For some
7941  # reason, if we set the COLLECT_NAMES environment variable, the problems
7942  # vanish in a puff of smoke.
7943  if test "X${COLLECT_NAMES+set}" != Xset; then
7944    COLLECT_NAMES=
7945    export COLLECT_NAMES
7946  fi
7947  ;;
7948esac
7949
7950# Sed substitution that helps us do robust quoting.  It backslashifies
7951# metacharacters that are still active within double-quoted strings.
7952Xsed='sed -e 1s/^X//'
7953sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7954
7955# Same as above, but do not quote variable references.
7956double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7957
7958# Sed substitution to delay expansion of an escaped shell variable in a
7959# double_quote_subst'ed string.
7960delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7961
7962# Sed substitution to avoid accidental globbing in evaled expressions
7963no_glob_subst='s/\*/\\\*/g'
7964
7965# Constants:
7966rm="rm -f"
7967
7968# Global variables:
7969default_ofile=libtool
7970can_build_shared=yes
7971
7972# All known linkers require a `.a' archive for static linking (except MSVC,
7973# which needs '.lib').
7974libext=a
7975ltmain="$ac_aux_dir/ltmain.sh"
7976ofile="$default_ofile"
7977with_gnu_ld="$lt_cv_prog_gnu_ld"
7978
7979if test -n "$ac_tool_prefix"; then
7980  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}ar; ac_word=$2
7982echo "$as_me:$LINENO: checking for $ac_word" >&5
7983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7984if test "${ac_cv_prog_AR+set}" = set; then
7985  echo $ECHO_N "(cached) $ECHO_C" >&6
7986else
7987  if test -n "$AR"; then
7988  ac_cv_prog_AR="$AR" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993  IFS=$as_save_IFS
7994  test -z "$as_dir" && as_dir=.
7995  for ac_exec_ext in '' $ac_executable_extensions; do
7996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997    ac_cv_prog_AR="${ac_tool_prefix}ar"
7998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999    break 2
8000  fi
8001done
8002done
8003
8004fi
8005fi
8006AR=$ac_cv_prog_AR
8007if test -n "$AR"; then
8008  echo "$as_me:$LINENO: result: $AR" >&5
8009echo "${ECHO_T}$AR" >&6
8010else
8011  echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013fi
8014
8015fi
8016if test -z "$ac_cv_prog_AR"; then
8017  ac_ct_AR=$AR
8018  # Extract the first word of "ar", so it can be a program name with args.
8019set dummy ar; ac_word=$2
8020echo "$as_me:$LINENO: checking for $ac_word" >&5
8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8022if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8023  echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025  if test -n "$ac_ct_AR"; then
8026  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031  IFS=$as_save_IFS
8032  test -z "$as_dir" && as_dir=.
8033  for ac_exec_ext in '' $ac_executable_extensions; do
8034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035    ac_cv_prog_ac_ct_AR="ar"
8036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037    break 2
8038  fi
8039done
8040done
8041
8042  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8043fi
8044fi
8045ac_ct_AR=$ac_cv_prog_ac_ct_AR
8046if test -n "$ac_ct_AR"; then
8047  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8048echo "${ECHO_T}$ac_ct_AR" >&6
8049else
8050  echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
8052fi
8053
8054  AR=$ac_ct_AR
8055else
8056  AR="$ac_cv_prog_AR"
8057fi
8058
8059if test -n "$ac_tool_prefix"; then
8060  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8061set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8062echo "$as_me:$LINENO: checking for $ac_word" >&5
8063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064if test "${ac_cv_prog_RANLIB+set}" = set; then
8065  echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067  if test -n "$RANLIB"; then
8068  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8069else
8070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071for as_dir in $PATH
8072do
8073  IFS=$as_save_IFS
8074  test -z "$as_dir" && as_dir=.
8075  for ac_exec_ext in '' $ac_executable_extensions; do
8076  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8078    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079    break 2
8080  fi
8081done
8082done
8083
8084fi
8085fi
8086RANLIB=$ac_cv_prog_RANLIB
8087if test -n "$RANLIB"; then
8088  echo "$as_me:$LINENO: result: $RANLIB" >&5
8089echo "${ECHO_T}$RANLIB" >&6
8090else
8091  echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093fi
8094
8095fi
8096if test -z "$ac_cv_prog_RANLIB"; then
8097  ac_ct_RANLIB=$RANLIB
8098  # Extract the first word of "ranlib", so it can be a program name with args.
8099set dummy ranlib; ac_word=$2
8100echo "$as_me:$LINENO: checking for $ac_word" >&5
8101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8102if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8103  echo $ECHO_N "(cached) $ECHO_C" >&6
8104else
8105  if test -n "$ac_ct_RANLIB"; then
8106  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8107else
8108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111  IFS=$as_save_IFS
8112  test -z "$as_dir" && as_dir=.
8113  for ac_exec_ext in '' $ac_executable_extensions; do
8114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115    ac_cv_prog_ac_ct_RANLIB="ranlib"
8116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117    break 2
8118  fi
8119done
8120done
8121
8122  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8123fi
8124fi
8125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8126if test -n "$ac_ct_RANLIB"; then
8127  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8128echo "${ECHO_T}$ac_ct_RANLIB" >&6
8129else
8130  echo "$as_me:$LINENO: result: no" >&5
8131echo "${ECHO_T}no" >&6
8132fi
8133
8134  RANLIB=$ac_ct_RANLIB
8135else
8136  RANLIB="$ac_cv_prog_RANLIB"
8137fi
8138
8139if test -n "$ac_tool_prefix"; then
8140  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8141set dummy ${ac_tool_prefix}strip; ac_word=$2
8142echo "$as_me:$LINENO: checking for $ac_word" >&5
8143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144if test "${ac_cv_prog_STRIP+set}" = set; then
8145  echo $ECHO_N "(cached) $ECHO_C" >&6
8146else
8147  if test -n "$STRIP"; then
8148  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155  for ac_exec_ext in '' $ac_executable_extensions; do
8156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163
8164fi
8165fi
8166STRIP=$ac_cv_prog_STRIP
8167if test -n "$STRIP"; then
8168  echo "$as_me:$LINENO: result: $STRIP" >&5
8169echo "${ECHO_T}$STRIP" >&6
8170else
8171  echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
8173fi
8174
8175fi
8176if test -z "$ac_cv_prog_STRIP"; then
8177  ac_ct_STRIP=$STRIP
8178  # Extract the first word of "strip", so it can be a program name with args.
8179set dummy strip; ac_word=$2
8180echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8182if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8183  echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185  if test -n "$ac_ct_STRIP"; then
8186  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191  IFS=$as_save_IFS
8192  test -z "$as_dir" && as_dir=.
8193  for ac_exec_ext in '' $ac_executable_extensions; do
8194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195    ac_cv_prog_ac_ct_STRIP="strip"
8196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197    break 2
8198  fi
8199done
8200done
8201
8202  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8203fi
8204fi
8205ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8206if test -n "$ac_ct_STRIP"; then
8207  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8208echo "${ECHO_T}$ac_ct_STRIP" >&6
8209else
8210  echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212fi
8213
8214  STRIP=$ac_ct_STRIP
8215else
8216  STRIP="$ac_cv_prog_STRIP"
8217fi
8218
8219
8220old_CC="$CC"
8221old_CFLAGS="$CFLAGS"
8222
8223# Set sane defaults for various variables
8224test -z "$AR" && AR=ar
8225test -z "$AR_FLAGS" && AR_FLAGS=cru
8226test -z "$AS" && AS=as
8227test -z "$CC" && CC=cc
8228test -z "$LTCC" && LTCC=$CC
8229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8230test -z "$DLLTOOL" && DLLTOOL=dlltool
8231test -z "$LD" && LD=ld
8232test -z "$LN_S" && LN_S="ln -s"
8233test -z "$MAGIC_CMD" && MAGIC_CMD=file
8234test -z "$NM" && NM=nm
8235test -z "$SED" && SED=sed
8236test -z "$OBJDUMP" && OBJDUMP=objdump
8237test -z "$RANLIB" && RANLIB=:
8238test -z "$STRIP" && STRIP=:
8239test -z "$ac_objext" && ac_objext=o
8240
8241# Determine commands to create old-style static archives.
8242old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8243old_postinstall_cmds='chmod 644 $oldlib'
8244old_postuninstall_cmds=
8245
8246if test -n "$RANLIB"; then
8247  case $host_os in
8248  openbsd*)
8249    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8250    ;;
8251  *)
8252    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8253    ;;
8254  esac
8255  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8256fi
8257
8258for cc_temp in $compiler""; do
8259  case $cc_temp in
8260    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8261    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8262    \-*) ;;
8263    *) break;;
8264  esac
8265done
8266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8267
8268
8269# Only perform the check for file, if the check method requires it
8270case $deplibs_check_method in
8271file_magic*)
8272  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8273    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8274echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8276  echo $ECHO_N "(cached) $ECHO_C" >&6
8277else
8278  case $MAGIC_CMD in
8279[\\/*] |  ?:[\\/]*)
8280  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8281  ;;
8282*)
8283  lt_save_MAGIC_CMD="$MAGIC_CMD"
8284  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8285  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8286  for ac_dir in $ac_dummy; do
8287    IFS="$lt_save_ifs"
8288    test -z "$ac_dir" && ac_dir=.
8289    if test -f $ac_dir/${ac_tool_prefix}file; then
8290      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8291      if test -n "$file_magic_test_file"; then
8292        case $deplibs_check_method in
8293        "file_magic "*)
8294          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8295          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8296          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8297            $EGREP "$file_magic_regex" > /dev/null; then
8298            :
8299          else
8300            cat <<EOF 1>&2
8301
8302*** Warning: the command libtool uses to detect shared libraries,
8303*** $file_magic_cmd, produces output that libtool cannot recognize.
8304*** The result is that libtool may fail to recognize shared libraries
8305*** as such.  This will affect the creation of libtool libraries that
8306*** depend on shared libraries, but programs linked with such libtool
8307*** libraries will work regardless of this problem.  Nevertheless, you
8308*** may want to report the problem to your system manager and/or to
8309*** bug-libtool@gnu.org
8310
8311EOF
8312          fi ;;
8313        esac
8314      fi
8315      break
8316    fi
8317  done
8318  IFS="$lt_save_ifs"
8319  MAGIC_CMD="$lt_save_MAGIC_CMD"
8320  ;;
8321esac
8322fi
8323
8324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8325if test -n "$MAGIC_CMD"; then
8326  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8327echo "${ECHO_T}$MAGIC_CMD" >&6
8328else
8329  echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
8331fi
8332
8333if test -z "$lt_cv_path_MAGIC_CMD"; then
8334  if test -n "$ac_tool_prefix"; then
8335    echo "$as_me:$LINENO: checking for file" >&5
8336echo $ECHO_N "checking for file... $ECHO_C" >&6
8337if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8338  echo $ECHO_N "(cached) $ECHO_C" >&6
8339else
8340  case $MAGIC_CMD in
8341[\\/*] |  ?:[\\/]*)
8342  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343  ;;
8344*)
8345  lt_save_MAGIC_CMD="$MAGIC_CMD"
8346  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348  for ac_dir in $ac_dummy; do
8349    IFS="$lt_save_ifs"
8350    test -z "$ac_dir" && ac_dir=.
8351    if test -f $ac_dir/file; then
8352      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8353      if test -n "$file_magic_test_file"; then
8354        case $deplibs_check_method in
8355        "file_magic "*)
8356          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359            $EGREP "$file_magic_regex" > /dev/null; then
8360            :
8361          else
8362            cat <<EOF 1>&2
8363
8364*** Warning: the command libtool uses to detect shared libraries,
8365*** $file_magic_cmd, produces output that libtool cannot recognize.
8366*** The result is that libtool may fail to recognize shared libraries
8367*** as such.  This will affect the creation of libtool libraries that
8368*** depend on shared libraries, but programs linked with such libtool
8369*** libraries will work regardless of this problem.  Nevertheless, you
8370*** may want to report the problem to your system manager and/or to
8371*** bug-libtool@gnu.org
8372
8373EOF
8374          fi ;;
8375        esac
8376      fi
8377      break
8378    fi
8379  done
8380  IFS="$lt_save_ifs"
8381  MAGIC_CMD="$lt_save_MAGIC_CMD"
8382  ;;
8383esac
8384fi
8385
8386MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387if test -n "$MAGIC_CMD"; then
8388  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8389echo "${ECHO_T}$MAGIC_CMD" >&6
8390else
8391  echo "$as_me:$LINENO: result: no" >&5
8392echo "${ECHO_T}no" >&6
8393fi
8394
8395  else
8396    MAGIC_CMD=:
8397  fi
8398fi
8399
8400  fi
8401  ;;
8402esac
8403
8404enable_dlopen=no
8405enable_win32_dll=no
8406
8407# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8408if test "${enable_libtool_lock+set}" = set; then
8409  enableval="$enable_libtool_lock"
8410
8411fi;
8412test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8413
8414
8415# Check whether --with-pic or --without-pic was given.
8416if test "${with_pic+set}" = set; then
8417  withval="$with_pic"
8418  pic_mode="$withval"
8419else
8420  pic_mode=default
8421fi;
8422test -z "$pic_mode" && pic_mode=default
8423
8424# Use C for the default configuration in the libtool script
8425tagname=
8426lt_save_CC="$CC"
8427ac_ext=c
8428ac_cpp='$CPP $CPPFLAGS'
8429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431ac_compiler_gnu=$ac_cv_c_compiler_gnu
8432
8433
8434# Source file extension for C test sources.
8435ac_ext=c
8436
8437# Object file extension for compiled C test sources.
8438objext=o
8439objext=$objext
8440
8441# Code to be used in simple compile tests
8442lt_simple_compile_test_code="int some_variable = 0;\n"
8443
8444# Code to be used in simple link tests
8445lt_simple_link_test_code='int main(){return(0);}\n'
8446
8447
8448# If no C compiler was specified, use CC.
8449LTCC=${LTCC-"$CC"}
8450
8451# If no C compiler flags were specified, use CFLAGS.
8452LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8453
8454# Allow CC to be a program name with arguments.
8455compiler=$CC
8456
8457
8458# save warnings/boilerplate of simple test code
8459ac_outfile=conftest.$ac_objext
8460printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8461eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462_lt_compiler_boilerplate=`cat conftest.err`
8463$rm conftest*
8464
8465ac_outfile=conftest.$ac_objext
8466printf "$lt_simple_link_test_code" >conftest.$ac_ext
8467eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468_lt_linker_boilerplate=`cat conftest.err`
8469$rm conftest*
8470
8471
8472## CAVEAT EMPTOR:
8473## There is no encapsulation within the following macros, do not change
8474## the running order or otherwise move them around unless you know exactly
8475## what you are doing...
8476
8477lt_prog_compiler_no_builtin_flag=
8478
8479if test "$GCC" = yes; then
8480  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8481
8482
8483echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8484echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8485if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8486  echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488  lt_cv_prog_compiler_rtti_exceptions=no
8489  ac_outfile=conftest.$ac_objext
8490   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8491   lt_compiler_flag="-fno-rtti -fno-exceptions"
8492   # Insert the option either (1) after the last *FLAGS variable, or
8493   # (2) before a word containing "conftest.", or (3) at the end.
8494   # Note that $ac_compile itself does not contain backslashes and begins
8495   # with a dollar sign (not a hyphen), so the echo should work correctly.
8496   # The option is referenced via a variable to avoid confusing sed.
8497   lt_compile=`echo "$ac_compile" | $SED \
8498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500   -e 's:$: $lt_compiler_flag:'`
8501   (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
8502   (eval "$lt_compile" 2>conftest.err)
8503   ac_status=$?
8504   cat conftest.err >&5
8505   echo "$as_me:8505: \$? = $ac_status" >&5
8506   if (exit $ac_status) && test -s "$ac_outfile"; then
8507     # The compiler can only warn and ignore the option if not recognized
8508     # So say no if there are warnings other than the usual output.
8509     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8510     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8512       lt_cv_prog_compiler_rtti_exceptions=yes
8513     fi
8514   fi
8515   $rm conftest*
8516
8517fi
8518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8519echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8520
8521if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8522    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8523else
8524    :
8525fi
8526
8527fi
8528
8529lt_prog_compiler_wl=
8530lt_prog_compiler_pic=
8531lt_prog_compiler_static=
8532
8533echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8534echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8535
8536  if test "$GCC" = yes; then
8537    lt_prog_compiler_wl='-Wl,'
8538    lt_prog_compiler_static='-static'
8539
8540    case $host_os in
8541      aix*)
8542      # All AIX code is PIC.
8543      if test "$host_cpu" = ia64; then
8544        # AIX 5 now supports IA64 processor
8545        lt_prog_compiler_static='-Bstatic'
8546      fi
8547      ;;
8548
8549    amigaos*)
8550      # FIXME: we need at least 68020 code to build shared libraries, but
8551      # adding the `-m68020' flag to GCC prevents building anything better,
8552      # like `-m68040'.
8553      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8554      ;;
8555
8556    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8557      # PIC is the default for these OSes.
8558      ;;
8559
8560    mingw* | pw32* | os2*)
8561      # This hack is so that the source file can tell whether it is being
8562      # built for inclusion in a dll (and should export symbols for example).
8563      lt_prog_compiler_pic='-DDLL_EXPORT'
8564      ;;
8565
8566    darwin* | rhapsody*)
8567      # PIC is the default on this platform
8568      # Common symbols not allowed in MH_DYLIB files
8569      lt_prog_compiler_pic='-fno-common'
8570      ;;
8571
8572    interix3*)
8573      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8574      # Instead, we relocate shared libraries at runtime.
8575      ;;
8576
8577    msdosdjgpp*)
8578      # Just because we use GCC doesn't mean we suddenly get shared libraries
8579      # on systems that don't support them.
8580      lt_prog_compiler_can_build_shared=no
8581      enable_shared=no
8582      ;;
8583
8584    sysv4*MP*)
8585      if test -d /usr/nec; then
8586        lt_prog_compiler_pic=-Kconform_pic
8587      fi
8588      ;;
8589
8590    hpux*)
8591      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8592      # not for PA HP-UX.
8593      case $host_cpu in
8594      hppa*64*|ia64*)
8595        # +Z the default
8596        ;;
8597      *)
8598        lt_prog_compiler_pic='-fPIC'
8599        ;;
8600      esac
8601      ;;
8602
8603    *)
8604      lt_prog_compiler_pic='-fPIC'
8605      ;;
8606    esac
8607  else
8608    # PORTME Check for flag to pass linker flags through the system compiler.
8609    case $host_os in
8610    aix*)
8611      lt_prog_compiler_wl='-Wl,'
8612      if test "$host_cpu" = ia64; then
8613        # AIX 5 now supports IA64 processor
8614        lt_prog_compiler_static='-Bstatic'
8615      else
8616        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8617      fi
8618      ;;
8619      darwin*)
8620        # PIC is the default on this platform
8621        # Common symbols not allowed in MH_DYLIB files
8622       case $cc_basename in
8623         xlc*)
8624         lt_prog_compiler_pic='-qnocommon'
8625         lt_prog_compiler_wl='-Wl,'
8626         ;;
8627       esac
8628       ;;
8629
8630    mingw* | pw32* | os2*)
8631      # This hack is so that the source file can tell whether it is being
8632      # built for inclusion in a dll (and should export symbols for example).
8633      lt_prog_compiler_pic='-DDLL_EXPORT'
8634      ;;
8635
8636    hpux9* | hpux10* | hpux11*)
8637      lt_prog_compiler_wl='-Wl,'
8638      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8639      # not for PA HP-UX.
8640      case $host_cpu in
8641      hppa*64*|ia64*)
8642        # +Z the default
8643        ;;
8644      *)
8645        lt_prog_compiler_pic='+Z'
8646        ;;
8647      esac
8648      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8649      lt_prog_compiler_static='${wl}-a ${wl}archive'
8650      ;;
8651
8652    irix5* | irix6* | nonstopux*)
8653      lt_prog_compiler_wl='-Wl,'
8654      # PIC (with -KPIC) is the default.
8655      lt_prog_compiler_static='-non_shared'
8656      ;;
8657
8658    newsos6)
8659      lt_prog_compiler_pic='-KPIC'
8660      lt_prog_compiler_static='-Bstatic'
8661      ;;
8662
8663    linux*)
8664      case $cc_basename in
8665      icc* | ecc*)
8666        lt_prog_compiler_wl='-Wl,'
8667        lt_prog_compiler_pic='-KPIC'
8668        lt_prog_compiler_static='-static'
8669        ;;
8670      pgcc* | pgf77* | pgf90* | pgf95*)
8671        # Portland Group compilers (*not* the Pentium gcc compiler,
8672        # which looks to be a dead project)
8673        lt_prog_compiler_wl='-Wl,'
8674        lt_prog_compiler_pic='-fpic'
8675        lt_prog_compiler_static='-Bstatic'
8676        ;;
8677      ccc*)
8678        lt_prog_compiler_wl='-Wl,'
8679        # All Alpha code is PIC.
8680        lt_prog_compiler_static='-non_shared'
8681        ;;
8682      esac
8683      ;;
8684
8685    osf3* | osf4* | osf5*)
8686      lt_prog_compiler_wl='-Wl,'
8687      # All OSF/1 code is PIC.
8688      lt_prog_compiler_static='-non_shared'
8689      ;;
8690
8691    solaris*)
8692      lt_prog_compiler_pic='-KPIC'
8693      lt_prog_compiler_static='-Bstatic'
8694      case $cc_basename in
8695      f77* | f90* | f95*)
8696        lt_prog_compiler_wl='-Qoption ld ';;
8697      *)
8698        lt_prog_compiler_wl='-Wl,';;
8699      esac
8700      ;;
8701
8702    sunos4*)
8703      lt_prog_compiler_wl='-Qoption ld '
8704      lt_prog_compiler_pic='-PIC'
8705      lt_prog_compiler_static='-Bstatic'
8706      ;;
8707
8708    sysv4 | sysv4.2uw2* | sysv4.3*)
8709      lt_prog_compiler_wl='-Wl,'
8710      lt_prog_compiler_pic='-KPIC'
8711      lt_prog_compiler_static='-Bstatic'
8712      ;;
8713
8714    sysv4*MP*)
8715      if test -d /usr/nec ;then
8716        lt_prog_compiler_pic='-Kconform_pic'
8717        lt_prog_compiler_static='-Bstatic'
8718      fi
8719      ;;
8720
8721    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8722      lt_prog_compiler_wl='-Wl,'
8723      lt_prog_compiler_pic='-KPIC'
8724      lt_prog_compiler_static='-Bstatic'
8725      ;;
8726
8727    unicos*)
8728      lt_prog_compiler_wl='-Wl,'
8729      lt_prog_compiler_can_build_shared=no
8730      ;;
8731
8732    uts4*)
8733      lt_prog_compiler_pic='-pic'
8734      lt_prog_compiler_static='-Bstatic'
8735      ;;
8736
8737    *)
8738      lt_prog_compiler_can_build_shared=no
8739      ;;
8740    esac
8741  fi
8742
8743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8744echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8745
8746#
8747# Check to make sure the PIC flag actually works.
8748#
8749if test -n "$lt_prog_compiler_pic"; then
8750
8751echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8753if test "${lt_prog_compiler_pic_works+set}" = set; then
8754  echo $ECHO_N "(cached) $ECHO_C" >&6
8755else
8756  lt_prog_compiler_pic_works=no
8757  ac_outfile=conftest.$ac_objext
8758   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8759   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8760   # Insert the option either (1) after the last *FLAGS variable, or
8761   # (2) before a word containing "conftest.", or (3) at the end.
8762   # Note that $ac_compile itself does not contain backslashes and begins
8763   # with a dollar sign (not a hyphen), so the echo should work correctly.
8764   # The option is referenced via a variable to avoid confusing sed.
8765   lt_compile=`echo "$ac_compile" | $SED \
8766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768   -e 's:$: $lt_compiler_flag:'`
8769   (eval echo "\"\$as_me:8769: $lt_compile\"" >&5)
8770   (eval "$lt_compile" 2>conftest.err)
8771   ac_status=$?
8772   cat conftest.err >&5
8773   echo "$as_me:8773: \$? = $ac_status" >&5
8774   if (exit $ac_status) && test -s "$ac_outfile"; then
8775     # The compiler can only warn and ignore the option if not recognized
8776     # So say no if there are warnings other than the usual output.
8777     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8778     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8780       lt_prog_compiler_pic_works=yes
8781     fi
8782   fi
8783   $rm conftest*
8784
8785fi
8786echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8787echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8788
8789if test x"$lt_prog_compiler_pic_works" = xyes; then
8790    case $lt_prog_compiler_pic in
8791     "" | " "*) ;;
8792     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8793     esac
8794else
8795    lt_prog_compiler_pic=
8796     lt_prog_compiler_can_build_shared=no
8797fi
8798
8799fi
8800case $host_os in
8801  # For platforms which do not support PIC, -DPIC is meaningless:
8802  *djgpp*)
8803    lt_prog_compiler_pic=
8804    ;;
8805  *)
8806    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8807    ;;
8808esac
8809
8810#
8811# Check to make sure the static flag actually works.
8812#
8813wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8814echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8815echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8816if test "${lt_prog_compiler_static_works+set}" = set; then
8817  echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819  lt_prog_compiler_static_works=no
8820   save_LDFLAGS="$LDFLAGS"
8821   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8822   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8823   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8824     # The linker can only warn and ignore the option if not recognized
8825     # So say no if there are warnings
8826     if test -s conftest.err; then
8827       # Append any errors to the config.log.
8828       cat conftest.err 1>&5
8829       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8830       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8831       if diff conftest.exp conftest.er2 >/dev/null; then
8832         lt_prog_compiler_static_works=yes
8833       fi
8834     else
8835       lt_prog_compiler_static_works=yes
8836     fi
8837   fi
8838   $rm conftest*
8839   LDFLAGS="$save_LDFLAGS"
8840
8841fi
8842echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8843echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8844
8845if test x"$lt_prog_compiler_static_works" = xyes; then
8846    :
8847else
8848    lt_prog_compiler_static=
8849fi
8850
8851
8852echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8853echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8854if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8855  echo $ECHO_N "(cached) $ECHO_C" >&6
8856else
8857  lt_cv_prog_compiler_c_o=no
8858   $rm -r conftest 2>/dev/null
8859   mkdir conftest
8860   cd conftest
8861   mkdir out
8862   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8863
8864   lt_compiler_flag="-o out/conftest2.$ac_objext"
8865   # Insert the option either (1) after the last *FLAGS variable, or
8866   # (2) before a word containing "conftest.", or (3) at the end.
8867   # Note that $ac_compile itself does not contain backslashes and begins
8868   # with a dollar sign (not a hyphen), so the echo should work correctly.
8869   lt_compile=`echo "$ac_compile" | $SED \
8870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872   -e 's:$: $lt_compiler_flag:'`
8873   (eval echo "\"\$as_me:8873: $lt_compile\"" >&5)
8874   (eval "$lt_compile" 2>out/conftest.err)
8875   ac_status=$?
8876   cat out/conftest.err >&5
8877   echo "$as_me:8877: \$? = $ac_status" >&5
8878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879   then
8880     # The compiler can only warn and ignore the option if not recognized
8881     # So say no if there are warnings
8882     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885       lt_cv_prog_compiler_c_o=yes
8886     fi
8887   fi
8888   chmod u+w . 2>&5
8889   $rm conftest*
8890   # SGI C++ compiler will create directory out/ii_files/ for
8891   # template instantiation
8892   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8893   $rm out/* && rmdir out
8894   cd ..
8895   rmdir conftest
8896   $rm conftest*
8897
8898fi
8899echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8900echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8901
8902
8903hard_links="nottested"
8904if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8905  # do not overwrite the value of need_locks provided by the user
8906  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8907echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8908  hard_links=yes
8909  $rm conftest*
8910  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911  touch conftest.a
8912  ln conftest.a conftest.b 2>&5 || hard_links=no
8913  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8914  echo "$as_me:$LINENO: result: $hard_links" >&5
8915echo "${ECHO_T}$hard_links" >&6
8916  if test "$hard_links" = no; then
8917    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8918echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8919    need_locks=warn
8920  fi
8921else
8922  need_locks=no
8923fi
8924
8925echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8926echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8927
8928  runpath_var=
8929  allow_undefined_flag=
8930  enable_shared_with_static_runtimes=no
8931  archive_cmds=
8932  archive_expsym_cmds=
8933  old_archive_From_new_cmds=
8934  old_archive_from_expsyms_cmds=
8935  export_dynamic_flag_spec=
8936  whole_archive_flag_spec=
8937  thread_safe_flag_spec=
8938  hardcode_libdir_flag_spec=
8939  hardcode_libdir_flag_spec_ld=
8940  hardcode_libdir_separator=
8941  hardcode_direct=no
8942  hardcode_minus_L=no
8943  hardcode_shlibpath_var=unsupported
8944  link_all_deplibs=unknown
8945  hardcode_automatic=no
8946  module_cmds=
8947  module_expsym_cmds=
8948  always_export_symbols=no
8949  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8950  # include_expsyms should be a list of space-separated symbols to be *always*
8951  # included in the symbol list
8952  include_expsyms=
8953  # exclude_expsyms can be an extended regexp of symbols to exclude
8954  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8955  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8956  # as well as any symbol that contains `d'.
8957  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8958  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8959  # platforms (ab)use it in PIC code, but their linkers get confused if
8960  # the symbol is explicitly referenced.  Since portable code cannot
8961  # rely on this symbol name, it's probably fine to never include it in
8962  # preloaded symbol tables.
8963  extract_expsyms_cmds=
8964  # Just being paranoid about ensuring that cc_basename is set.
8965  for cc_temp in $compiler""; do
8966  case $cc_temp in
8967    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8968    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8969    \-*) ;;
8970    *) break;;
8971  esac
8972done
8973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8974
8975  case $host_os in
8976  cygwin* | mingw* | pw32*)
8977    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8978    # When not using gcc, we currently assume that we are using
8979    # Microsoft Visual C++.
8980    if test "$GCC" != yes; then
8981      with_gnu_ld=no
8982    fi
8983    ;;
8984  interix*)
8985    # we just hope/assume this is gcc and not c89 (= MSVC++)
8986    with_gnu_ld=yes
8987    ;;
8988  openbsd*)
8989    with_gnu_ld=no
8990    ;;
8991  esac
8992
8993  ld_shlibs=yes
8994  if test "$with_gnu_ld" = yes; then
8995    # If archive_cmds runs LD, not CC, wlarc should be empty
8996    wlarc='${wl}'
8997
8998    # Set some defaults for GNU ld with shared library support. These
8999    # are reset later if shared libraries are not supported. Putting them
9000    # here allows them to be overridden if necessary.
9001    runpath_var=LD_RUN_PATH
9002    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9003    export_dynamic_flag_spec='${wl}--export-dynamic'
9004    # ancient GNU ld didn't support --whole-archive et. al.
9005    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9006        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9007      else
9008        whole_archive_flag_spec=
9009    fi
9010    supports_anon_versioning=no
9011    case `$LD -v 2>/dev/null` in
9012      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9013      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9014      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9015      *\ 2.11.*) ;; # other 2.11 versions
9016      *) supports_anon_versioning=yes ;;
9017    esac
9018
9019    # See if GNU ld supports shared libraries.
9020    case $host_os in
9021    aix3* | aix4* | aix5*)
9022      # On AIX/PPC, the GNU linker is very broken
9023      if test "$host_cpu" != ia64; then
9024        ld_shlibs=no
9025        cat <<EOF 1>&2
9026
9027*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9028*** to be unable to reliably create shared libraries on AIX.
9029*** Therefore, libtool is disabling shared libraries support.  If you
9030*** really care for shared libraries, you may want to modify your PATH
9031*** so that a non-GNU linker is found, and then restart.
9032
9033EOF
9034      fi
9035      ;;
9036
9037    amigaos*)
9038      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)'
9039      hardcode_libdir_flag_spec='-L$libdir'
9040      hardcode_minus_L=yes
9041
9042      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9043      # that the semantics of dynamic libraries on AmigaOS, at least up
9044      # to version 4, is to share data among multiple programs linked
9045      # with the same dynamic library.  Since this doesn't match the
9046      # behavior of shared libraries on other platforms, we can't use
9047      # them.
9048      ld_shlibs=no
9049      ;;
9050
9051    beos*)
9052      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9053        allow_undefined_flag=unsupported
9054        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9055        # support --undefined.  This deserves some investigation.  FIXME
9056        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057      else
9058        ld_shlibs=no
9059      fi
9060      ;;
9061
9062    cygwin* | mingw* | pw32*)
9063      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9064      # as there is no search path for DLLs.
9065      hardcode_libdir_flag_spec='-L$libdir'
9066      allow_undefined_flag=unsupported
9067      always_export_symbols=no
9068      enable_shared_with_static_runtimes=yes
9069      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9070
9071      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9072        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073        # If the export-symbols file already is a .def file (1st line
9074        # is EXPORTS), use it as is; otherwise, prepend...
9075        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9076          cp $export_symbols $output_objdir/$soname.def;
9077        else
9078          echo EXPORTS > $output_objdir/$soname.def;
9079          cat $export_symbols >> $output_objdir/$soname.def;
9080        fi~
9081        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9082      else
9083        ld_shlibs=no
9084      fi
9085      ;;
9086
9087    interix3*)
9088      hardcode_direct=no
9089      hardcode_shlibpath_var=no
9090      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9091      export_dynamic_flag_spec='${wl}-E'
9092      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9093      # Instead, shared libraries are loaded at an image base (0x10000000 by
9094      # default) and relocated if they conflict, which is a slow very memory
9095      # consuming and fragmenting process.  To avoid this, we pick a random,
9096      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9097      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9098      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9099      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'
9100      ;;
9101
9102    linux*)
9103      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9104        tmp_addflag=
9105        case $cc_basename,$host_cpu in
9106        pgcc*)                          # Portland Group C compiler
9107          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'
9108          tmp_addflag=' $pic_flag'
9109          ;;
9110        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9111          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'
9112          tmp_addflag=' $pic_flag -Mnomain' ;;
9113        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9114          tmp_addflag=' -i_dynamic' ;;
9115        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9116          tmp_addflag=' -i_dynamic -nofor_main' ;;
9117        ifc* | ifort*)                  # Intel Fortran compiler
9118          tmp_addflag=' -nofor_main' ;;
9119        esac
9120        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121
9122        if test $supports_anon_versioning = yes; then
9123          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9124  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9125  $echo "local: *; };" >> $output_objdir/$libname.ver~
9126          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9127        fi
9128      else
9129        ld_shlibs=no
9130      fi
9131      ;;
9132
9133    netbsd*)
9134      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9135        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9136        wlarc=
9137      else
9138        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9140      fi
9141      ;;
9142
9143    solaris*)
9144      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9145        ld_shlibs=no
9146        cat <<EOF 1>&2
9147
9148*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9149*** create shared libraries on Solaris systems.  Therefore, libtool
9150*** is disabling shared libraries support.  We urge you to upgrade GNU
9151*** binutils to release 2.9.1 or newer.  Another option is to modify
9152*** your PATH or compiler configuration so that the native linker is
9153*** used, and then restart.
9154
9155EOF
9156      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9157        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9159      else
9160        ld_shlibs=no
9161      fi
9162      ;;
9163
9164    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9165      case `$LD -v 2>&1` in
9166        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9167        ld_shlibs=no
9168        cat <<_LT_EOF 1>&2
9169
9170*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9171*** reliably create shared libraries on SCO systems.  Therefore, libtool
9172*** is disabling shared libraries support.  We urge you to upgrade GNU
9173*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9174*** your PATH or compiler configuration so that the native linker is
9175*** used, and then restart.
9176
9177_LT_EOF
9178        ;;
9179        *)
9180          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9181            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9182            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9183            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9184          else
9185            ld_shlibs=no
9186          fi
9187        ;;
9188      esac
9189      ;;
9190
9191    sunos4*)
9192      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9193      wlarc=
9194      hardcode_direct=yes
9195      hardcode_shlibpath_var=no
9196      ;;
9197
9198    *)
9199      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9200        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9202      else
9203        ld_shlibs=no
9204      fi
9205      ;;
9206    esac
9207
9208    if test "$ld_shlibs" = no; then
9209      runpath_var=
9210      hardcode_libdir_flag_spec=
9211      export_dynamic_flag_spec=
9212      whole_archive_flag_spec=
9213    fi
9214  else
9215    # PORTME fill in a description of your system's linker (not GNU ld)
9216    case $host_os in
9217    aix3*)
9218      allow_undefined_flag=unsupported
9219      always_export_symbols=yes
9220      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'
9221      # Note: this linker hardcodes the directories in LIBPATH if there
9222      # are no directories specified by -L.
9223      hardcode_minus_L=yes
9224      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9225        # Neither direct hardcoding nor static linking is supported with a
9226        # broken collect2.
9227        hardcode_direct=unsupported
9228      fi
9229      ;;
9230
9231    aix4* | aix5*)
9232      if test "$host_cpu" = ia64; then
9233        # On IA64, the linker does run time linking by default, so we don't
9234        # have to do anything special.
9235        aix_use_runtimelinking=no
9236        exp_sym_flag='-Bexport'
9237        no_entry_flag=""
9238      else
9239        # If we're using GNU nm, then we don't want the "-C" option.
9240        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9241        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9242          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'
9243        else
9244          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'
9245        fi
9246        aix_use_runtimelinking=no
9247
9248        # Test if we are trying to use run time linking or normal
9249        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9250        # need to do runtime linking.
9251        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9252          for ld_flag in $LDFLAGS; do
9253          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9254            aix_use_runtimelinking=yes
9255            break
9256          fi
9257          done
9258          ;;
9259        esac
9260
9261        exp_sym_flag='-bexport'
9262        no_entry_flag='-bnoentry'
9263      fi
9264
9265      # When large executables or shared objects are built, AIX ld can
9266      # have problems creating the table of contents.  If linking a library
9267      # or program results in "error TOC overflow" add -mminimal-toc to
9268      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9269      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9270
9271      archive_cmds=''
9272      hardcode_direct=yes
9273      hardcode_libdir_separator=':'
9274      link_all_deplibs=yes
9275
9276      if test "$GCC" = yes; then
9277        case $host_os in aix4.[012]|aix4.[012].*)
9278        # We only want to do this on AIX 4.2 and lower, the check
9279        # below for broken collect2 doesn't work under 4.3+
9280          collect2name=`${CC} -print-prog-name=collect2`
9281          if test -f "$collect2name" && \
9282           strings "$collect2name" | grep resolve_lib_name >/dev/null
9283          then
9284          # We have reworked collect2
9285          hardcode_direct=yes
9286          else
9287          # We have old collect2
9288          hardcode_direct=unsupported
9289          # It fails to find uninstalled libraries when the uninstalled
9290          # path is not listed in the libpath.  Setting hardcode_minus_L
9291          # to unsupported forces relinking
9292          hardcode_minus_L=yes
9293          hardcode_libdir_flag_spec='-L$libdir'
9294          hardcode_libdir_separator=
9295          fi
9296          ;;
9297        esac
9298        shared_flag='-shared'
9299        if test "$aix_use_runtimelinking" = yes; then
9300          shared_flag="$shared_flag "'${wl}-G'
9301        fi
9302      else
9303        # not using gcc
9304        if test "$host_cpu" = ia64; then
9305        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9306        # chokes on -Wl,-G. The following line is correct:
9307          shared_flag='-G'
9308        else
9309          if test "$aix_use_runtimelinking" = yes; then
9310            shared_flag='${wl}-G'
9311          else
9312            shared_flag='${wl}-bM:SRE'
9313          fi
9314        fi
9315      fi
9316
9317      # It seems that -bexpall does not export symbols beginning with
9318      # underscore (_), so it is better to generate a list of symbols to export.
9319      always_export_symbols=yes
9320      if test "$aix_use_runtimelinking" = yes; then
9321        # Warning - without using the other runtime loading flags (-brtl),
9322        # -berok will link without error, but may produce a broken library.
9323        allow_undefined_flag='-berok'
9324       # Determine the default libpath from the value encoded in an empty executable.
9325       cat >conftest.$ac_ext <<_ACEOF
9326/* confdefs.h.  */
9327_ACEOF
9328cat confdefs.h >>conftest.$ac_ext
9329cat >>conftest.$ac_ext <<_ACEOF
9330/* end confdefs.h.  */
9331
9332int
9333main ()
9334{
9335
9336  ;
9337  return 0;
9338}
9339_ACEOF
9340rm -f conftest.$ac_objext conftest$ac_exeext
9341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9342  (eval $ac_link) 2>conftest.er1
9343  ac_status=$?
9344  grep -v '^ *+' conftest.er1 >conftest.err
9345  rm -f conftest.er1
9346  cat conftest.err >&5
9347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348  (exit $ac_status); } &&
9349         { ac_try='test -z "$ac_c_werror_flag"
9350                         || test ! -s conftest.err'
9351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352  (eval $ac_try) 2>&5
9353  ac_status=$?
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); }; } &&
9356         { ac_try='test -s conftest$ac_exeext'
9357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358  (eval $ac_try) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); }; }; then
9362
9363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9364}'`
9365# Check for a 64-bit object if we didn't find anything.
9366if 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; }
9367}'`; fi
9368else
9369  echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
9372fi
9373rm -f conftest.err conftest.$ac_objext \
9374      conftest$ac_exeext conftest.$ac_ext
9375if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9376
9377       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9378        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"
9379       else
9380        if test "$host_cpu" = ia64; then
9381          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9382          allow_undefined_flag="-z nodefs"
9383          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"
9384        else
9385         # Determine the default libpath from the value encoded in an empty executable.
9386         cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392
9393int
9394main ()
9395{
9396
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403  (eval $ac_link) 2>conftest.er1
9404  ac_status=$?
9405  grep -v '^ *+' conftest.er1 >conftest.err
9406  rm -f conftest.er1
9407  cat conftest.err >&5
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); } &&
9410         { ac_try='test -z "$ac_c_werror_flag"
9411                         || test ! -s conftest.err'
9412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413  (eval $ac_try) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); }; } &&
9417         { ac_try='test -s conftest$ac_exeext'
9418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419  (eval $ac_try) 2>&5
9420  ac_status=$?
9421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); }; }; then
9423
9424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9425}'`
9426# Check for a 64-bit object if we didn't find anything.
9427if 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; }
9428}'`; fi
9429else
9430  echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433fi
9434rm -f conftest.err conftest.$ac_objext \
9435      conftest$ac_exeext conftest.$ac_ext
9436if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9437
9438         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9439          # Warning - without using the other run time loading flags,
9440          # -berok will link without error, but may produce a broken library.
9441          no_undefined_flag=' ${wl}-bernotok'
9442          allow_undefined_flag=' ${wl}-berok'
9443          # Exported symbols can be pulled into shared objects from archives
9444          whole_archive_flag_spec='$convenience'
9445          archive_cmds_need_lc=yes
9446          # This is similar to how AIX traditionally builds its shared libraries.
9447          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'
9448        fi
9449      fi
9450      ;;
9451
9452    amigaos*)
9453      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)'
9454      hardcode_libdir_flag_spec='-L$libdir'
9455      hardcode_minus_L=yes
9456      # see comment about different semantics on the GNU ld section
9457      ld_shlibs=no
9458      ;;
9459
9460    bsdi[45]*)
9461      export_dynamic_flag_spec=-rdynamic
9462      ;;
9463
9464    cygwin* | mingw* | pw32*)
9465      # When not using gcc, we currently assume that we are using
9466      # Microsoft Visual C++.
9467      # hardcode_libdir_flag_spec is actually meaningless, as there is
9468      # no search path for DLLs.
9469      hardcode_libdir_flag_spec=' '
9470      allow_undefined_flag=unsupported
9471      # Tell ltmain to make .lib files, not .a files.
9472      libext=lib
9473      # Tell ltmain to make .dll files, not .so files.
9474      shrext_cmds=".dll"
9475      # FIXME: Setting linknames here is a bad hack.
9476      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9477      # The linker will automatically build a .lib file if we build a DLL.
9478      old_archive_From_new_cmds='true'
9479      # FIXME: Should let the user specify the lib program.
9480      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9481      fix_srcfile_path='`cygpath -w "$srcfile"`'
9482      enable_shared_with_static_runtimes=yes
9483      ;;
9484
9485    darwin* | rhapsody*)
9486      case $host_os in
9487        rhapsody* | darwin1.[012])
9488         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9489         ;;
9490       *) # Darwin 1.3 on
9491         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9492           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9493         else
9494           case ${MACOSX_DEPLOYMENT_TARGET} in
9495             10.[012])
9496               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9497               ;;
9498             10.*)
9499               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9500               ;;
9501           esac
9502         fi
9503         ;;
9504      esac
9505      archive_cmds_need_lc=no
9506      hardcode_direct=no
9507      hardcode_automatic=yes
9508      hardcode_shlibpath_var=unsupported
9509      whole_archive_flag_spec=''
9510      link_all_deplibs=yes
9511    if test "$GCC" = yes ; then
9512        output_verbose_link_cmd='echo'
9513        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $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    else
9519      case $cc_basename in
9520        xlc*)
9521         output_verbose_link_cmd='echo'
9522         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9523         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9524          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9525         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}'
9526          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}'
9527          ;;
9528       *)
9529         ld_shlibs=no
9530          ;;
9531      esac
9532    fi
9533      ;;
9534
9535    dgux*)
9536      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537      hardcode_libdir_flag_spec='-L$libdir'
9538      hardcode_shlibpath_var=no
9539      ;;
9540
9541    freebsd1*)
9542      ld_shlibs=no
9543      ;;
9544
9545    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9546    # support.  Future versions do this automatically, but an explicit c++rt0.o
9547    # does not break anything, and helps significantly (at the cost of a little
9548    # extra space).
9549    freebsd2.2*)
9550      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9551      hardcode_libdir_flag_spec='-R$libdir'
9552      hardcode_direct=yes
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9557    freebsd2*)
9558      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559      hardcode_direct=yes
9560      hardcode_minus_L=yes
9561      hardcode_shlibpath_var=no
9562      ;;
9563
9564    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9565    freebsd* | kfreebsd*-gnu | dragonfly*)
9566      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9567      hardcode_libdir_flag_spec='-R$libdir'
9568      hardcode_direct=yes
9569      hardcode_shlibpath_var=no
9570      ;;
9571
9572    hpux9*)
9573      if test "$GCC" = yes; then
9574        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'
9575      else
9576        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'
9577      fi
9578      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9579      hardcode_libdir_separator=:
9580      hardcode_direct=yes
9581
9582      # hardcode_minus_L: Not really in the search PATH,
9583      # but as the default location of the library.
9584      hardcode_minus_L=yes
9585      export_dynamic_flag_spec='${wl}-E'
9586      ;;
9587
9588    hpux10*)
9589      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9590        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9591      else
9592        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9593      fi
9594      if test "$with_gnu_ld" = no; then
9595        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9596        hardcode_libdir_separator=:
9597
9598        hardcode_direct=yes
9599        export_dynamic_flag_spec='${wl}-E'
9600
9601        # hardcode_minus_L: Not really in the search PATH,
9602        # but as the default location of the library.
9603        hardcode_minus_L=yes
9604      fi
9605      ;;
9606
9607    hpux11*)
9608      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9609        case $host_cpu in
9610        hppa*64*)
9611          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9612          ;;
9613        ia64*)
9614          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9615          ;;
9616        *)
9617          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9618          ;;
9619        esac
9620      else
9621        case $host_cpu in
9622        hppa*64*)
9623          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624          ;;
9625        ia64*)
9626          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9627          ;;
9628        *)
9629          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9630          ;;
9631        esac
9632      fi
9633      if test "$with_gnu_ld" = no; then
9634        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9635        hardcode_libdir_separator=:
9636
9637        case $host_cpu in
9638        hppa*64*|ia64*)
9639          hardcode_libdir_flag_spec_ld='+b $libdir'
9640          hardcode_direct=no
9641          hardcode_shlibpath_var=no
9642          ;;
9643        *)
9644          hardcode_direct=yes
9645          export_dynamic_flag_spec='${wl}-E'
9646
9647          # hardcode_minus_L: Not really in the search PATH,
9648          # but as the default location of the library.
9649          hardcode_minus_L=yes
9650          ;;
9651        esac
9652      fi
9653      ;;
9654
9655    irix5* | irix6* | nonstopux*)
9656      if test "$GCC" = yes; then
9657        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'
9658      else
9659        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'
9660        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9661      fi
9662      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663      hardcode_libdir_separator=:
9664      link_all_deplibs=yes
9665      ;;
9666
9667    netbsd*)
9668      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9669        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9670      else
9671        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9672      fi
9673      hardcode_libdir_flag_spec='-R$libdir'
9674      hardcode_direct=yes
9675      hardcode_shlibpath_var=no
9676      ;;
9677
9678    newsos6)
9679      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680      hardcode_direct=yes
9681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682      hardcode_libdir_separator=:
9683      hardcode_shlibpath_var=no
9684      ;;
9685
9686    openbsd*)
9687      hardcode_direct=yes
9688      hardcode_shlibpath_var=no
9689      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9690        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9691        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9692        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9693        export_dynamic_flag_spec='${wl}-E'
9694      else
9695       case $host_os in
9696         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9697           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9698           hardcode_libdir_flag_spec='-R$libdir'
9699           ;;
9700         *)
9701           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9702           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9703           ;;
9704       esac
9705      fi
9706      ;;
9707
9708    os2*)
9709      hardcode_libdir_flag_spec='-L$libdir'
9710      hardcode_minus_L=yes
9711      allow_undefined_flag=unsupported
9712      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'
9713      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9714      ;;
9715
9716    osf3*)
9717      if test "$GCC" = yes; then
9718        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9719        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'
9720      else
9721        allow_undefined_flag=' -expect_unresolved \*'
9722        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'
9723      fi
9724      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725      hardcode_libdir_separator=:
9726      ;;
9727
9728    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9729      if test "$GCC" = yes; then
9730        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9731        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'
9732        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9733      else
9734        allow_undefined_flag=' -expect_unresolved \*'
9735        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'
9736        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9737        $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'
9738
9739        # Both c and cxx compiler support -rpath directly
9740        hardcode_libdir_flag_spec='-rpath $libdir'
9741      fi
9742      hardcode_libdir_separator=:
9743      ;;
9744
9745    solaris*)
9746      no_undefined_flag=' -z text'
9747      if test "$GCC" = yes; then
9748        wlarc='${wl}'
9749        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9750        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9751          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9752      else
9753        wlarc=''
9754        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9756        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9757      fi
9758      hardcode_libdir_flag_spec='-R$libdir'
9759      hardcode_shlibpath_var=no
9760      case $host_os in
9761      solaris2.[0-5] | solaris2.[0-5].*) ;;
9762      *)
9763        # The compiler driver will combine linker options so we
9764        # cannot just pass the convience library names through
9765        # without $wl, iff we do not link with $LD.
9766        # Luckily, gcc supports the same syntax we need for Sun Studio.
9767        # Supported since Solaris 2.6 (maybe 2.5.1?)
9768        case $wlarc in
9769        '')
9770          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9771        *)
9772          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' ;;
9773        esac ;;
9774      esac
9775      link_all_deplibs=yes
9776      ;;
9777
9778    sunos4*)
9779      if test "x$host_vendor" = xsequent; then
9780        # Use $CC to link under sequent, because it throws in some extra .o
9781        # files that make .init and .fini sections work.
9782        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9783      else
9784        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9785      fi
9786      hardcode_libdir_flag_spec='-L$libdir'
9787      hardcode_direct=yes
9788      hardcode_minus_L=yes
9789      hardcode_shlibpath_var=no
9790      ;;
9791
9792    sysv4)
9793      case $host_vendor in
9794        sni)
9795          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796          hardcode_direct=yes # is this really true???
9797        ;;
9798        siemens)
9799          ## LD is ld it makes a PLAMLIB
9800          ## CC just makes a GrossModule.
9801          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9802          reload_cmds='$CC -r -o $output$reload_objs'
9803          hardcode_direct=no
9804        ;;
9805        motorola)
9806          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9808        ;;
9809      esac
9810      runpath_var='LD_RUN_PATH'
9811      hardcode_shlibpath_var=no
9812      ;;
9813
9814    sysv4.3*)
9815      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816      hardcode_shlibpath_var=no
9817      export_dynamic_flag_spec='-Bexport'
9818      ;;
9819
9820    sysv4*MP*)
9821      if test -d /usr/nec; then
9822        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823        hardcode_shlibpath_var=no
9824        runpath_var=LD_RUN_PATH
9825        hardcode_runpath_var=yes
9826        ld_shlibs=yes
9827      fi
9828      ;;
9829
9830    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9831      no_undefined_flag='${wl}-z,text'
9832      archive_cmds_need_lc=no
9833      hardcode_shlibpath_var=no
9834      runpath_var='LD_RUN_PATH'
9835
9836      if test "$GCC" = yes; then
9837        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9839      else
9840        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9842      fi
9843      ;;
9844
9845    sysv5* | sco3.2v5* | sco5v6*)
9846      # Note: We can NOT use -z defs as we might desire, because we do not
9847      # link with -lc, and that would cause any symbols used from libc to
9848      # always be unresolved, which means just about no library would
9849      # ever link correctly.  If we're not using GNU ld we use -z text
9850      # though, which does catch some bad symbols but isn't as heavy-handed
9851      # as -z defs.
9852      no_undefined_flag='${wl}-z,text'
9853      allow_undefined_flag='${wl}-z,nodefs'
9854      archive_cmds_need_lc=no
9855      hardcode_shlibpath_var=no
9856      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9857      hardcode_libdir_separator=':'
9858      link_all_deplibs=yes
9859      export_dynamic_flag_spec='${wl}-Bexport'
9860      runpath_var='LD_RUN_PATH'
9861
9862      if test "$GCC" = yes; then
9863        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9864        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9865      else
9866        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9867        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9868      fi
9869      ;;
9870
9871    uts4*)
9872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873      hardcode_libdir_flag_spec='-L$libdir'
9874      hardcode_shlibpath_var=no
9875      ;;
9876
9877    *)
9878      ld_shlibs=no
9879      ;;
9880    esac
9881  fi
9882
9883echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9884echo "${ECHO_T}$ld_shlibs" >&6
9885test "$ld_shlibs" = no && can_build_shared=no
9886
9887#
9888# Do we need to explicitly link libc?
9889#
9890case "x$archive_cmds_need_lc" in
9891x|xyes)
9892  # Assume -lc should be added
9893  archive_cmds_need_lc=yes
9894
9895  if test "$enable_shared" = yes && test "$GCC" = yes; then
9896    case $archive_cmds in
9897    *'~'*)
9898      # FIXME: we may have to deal with multi-command sequences.
9899      ;;
9900    '$CC '*)
9901      # Test whether the compiler implicitly links with -lc since on some
9902      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9903      # to ld, don't add -lc before -lgcc.
9904      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9906      $rm conftest*
9907      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9908
9909      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910  (eval $ac_compile) 2>&5
9911  ac_status=$?
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } 2>conftest.err; then
9914        soname=conftest
9915        lib=conftest
9916        libobjs=conftest.$ac_objext
9917        deplibs=
9918        wl=$lt_prog_compiler_wl
9919        pic_flag=$lt_prog_compiler_pic
9920        compiler_flags=-v
9921        linker_flags=-v
9922        verstring=
9923        output_objdir=.
9924        libname=conftest
9925        lt_save_allow_undefined_flag=$allow_undefined_flag
9926        allow_undefined_flag=
9927        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9928  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9929  ac_status=$?
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); }
9932        then
9933          archive_cmds_need_lc=no
9934        else
9935          archive_cmds_need_lc=yes
9936        fi
9937        allow_undefined_flag=$lt_save_allow_undefined_flag
9938      else
9939        cat conftest.err 1>&5
9940      fi
9941      $rm conftest*
9942      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9943echo "${ECHO_T}$archive_cmds_need_lc" >&6
9944      ;;
9945    esac
9946  fi
9947  ;;
9948esac
9949
9950echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9952library_names_spec=
9953libname_spec='lib$name'
9954soname_spec=
9955shrext_cmds=".so"
9956postinstall_cmds=
9957postuninstall_cmds=
9958finish_cmds=
9959finish_eval=
9960shlibpath_var=
9961shlibpath_overrides_runpath=unknown
9962version_type=none
9963dynamic_linker="$host_os ld.so"
9964sys_lib_dlsearch_path_spec="/lib /usr/lib"
9965if test "$GCC" = yes; then
9966  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9967  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9968    # if the path contains ";" then we assume it to be the separator
9969    # otherwise default to the standard path separator (i.e. ":") - it is
9970    # assumed that no part of a normal pathname contains ";" but that should
9971    # okay in the real world where ";" in dirpaths is itself problematic.
9972    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973  else
9974    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9975  fi
9976else
9977  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9978fi
9979need_lib_prefix=unknown
9980hardcode_into_libs=no
9981
9982# when you set need_version to no, make sure it does not cause -set_version
9983# flags to be left without arguments
9984need_version=unknown
9985
9986case $host_os in
9987aix3*)
9988  version_type=linux
9989  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9990  shlibpath_var=LIBPATH
9991
9992  # AIX 3 has no versioning support, so we append a major version to the name.
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  ;;
9995
9996aix4* | aix5*)
9997  version_type=linux
9998  need_lib_prefix=no
9999  need_version=no
10000  hardcode_into_libs=yes
10001  if test "$host_cpu" = ia64; then
10002    # AIX 5 supports IA64
10003    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10004    shlibpath_var=LD_LIBRARY_PATH
10005  else
10006    # With GCC up to 2.95.x, collect2 would create an import file
10007    # for dependence libraries.  The import file would start with
10008    # the line `#! .'.  This would cause the generated library to
10009    # depend on `.', always an invalid library.  This was fixed in
10010    # development snapshots of GCC prior to 3.0.
10011    case $host_os in
10012      aix4 | aix4.[01] | aix4.[01].*)
10013      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10014           echo ' yes '
10015           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10016        :
10017      else
10018        can_build_shared=no
10019      fi
10020      ;;
10021    esac
10022    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10023    # soname into executable. Probably we can add versioning support to
10024    # collect2, so additional links can be useful in future.
10025    if test "$aix_use_runtimelinking" = yes; then
10026      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10027      # instead of lib<name>.a to let people know that these are not
10028      # typical AIX shared libraries.
10029      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030    else
10031      # We preserve .a as extension for shared libraries through AIX4.2
10032      # and later when we are not doing run time linking.
10033      library_names_spec='${libname}${release}.a $libname.a'
10034      soname_spec='${libname}${release}${shared_ext}$major'
10035    fi
10036    shlibpath_var=LIBPATH
10037  fi
10038  ;;
10039
10040amigaos*)
10041  library_names_spec='$libname.ixlibrary $libname.a'
10042  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10043  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'
10044  ;;
10045
10046beos*)
10047  library_names_spec='${libname}${shared_ext}'
10048  dynamic_linker="$host_os ld.so"
10049  shlibpath_var=LIBRARY_PATH
10050  ;;
10051
10052bsdi[45]*)
10053  version_type=linux
10054  need_version=no
10055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10058  shlibpath_var=LD_LIBRARY_PATH
10059  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10060  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10061  # the default ld.so.conf also contains /usr/contrib/lib and
10062  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10063  # libtool to hard-code these into programs
10064  ;;
10065
10066cygwin* | mingw* | pw32*)
10067  version_type=windows
10068  shrext_cmds=".dll"
10069  need_version=no
10070  need_lib_prefix=no
10071
10072  case $GCC,$host_os in
10073  yes,cygwin* | yes,mingw* | yes,pw32*)
10074    library_names_spec='$libname.dll.a'
10075    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10076    postinstall_cmds='base_file=`basename \${file}`~
10077      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10078      dldir=$destdir/`dirname \$dlpath`~
10079      test -d \$dldir || mkdir -p \$dldir~
10080      $install_prog $dir/$dlname \$dldir/$dlname~
10081      chmod a+x \$dldir/$dlname'
10082    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10083      dlpath=$dir/\$dldll~
10084       $rm \$dlpath'
10085    shlibpath_overrides_runpath=yes
10086
10087    case $host_os in
10088    cygwin*)
10089      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10090      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10091      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10092      ;;
10093    mingw*)
10094      # MinGW DLLs use traditional 'lib' prefix
10095      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10096      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10097      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10098        # It is most probably a Windows format PATH printed by
10099        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10100        # path with ; separators, and with drive letters. We can handle the
10101        # drive letters (cygwin fileutils understands them), so leave them,
10102        # especially as we might pass files found there to a mingw objdump,
10103        # which wouldn't understand a cygwinified path. Ahh.
10104        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10105      else
10106        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10107      fi
10108      ;;
10109    pw32*)
10110      # pw32 DLLs use 'pw' prefix rather than 'lib'
10111      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10112      ;;
10113    esac
10114    ;;
10115
10116  *)
10117    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10118    ;;
10119  esac
10120  dynamic_linker='Win32 ld.exe'
10121  # FIXME: first we should search . and the directory the executable is in
10122  shlibpath_var=PATH
10123  ;;
10124
10125darwin* | rhapsody*)
10126  dynamic_linker="$host_os dyld"
10127  version_type=darwin
10128  need_lib_prefix=no
10129  need_version=no
10130  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10131  soname_spec='${libname}${release}${major}$shared_ext'
10132  shlibpath_overrides_runpath=yes
10133  shlibpath_var=DYLD_LIBRARY_PATH
10134  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10135  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10136  if test "$GCC" = yes; then
10137    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"`
10138  else
10139    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10140  fi
10141  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10142  ;;
10143
10144dgux*)
10145  version_type=linux
10146  need_lib_prefix=no
10147  need_version=no
10148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10149  soname_spec='${libname}${release}${shared_ext}$major'
10150  shlibpath_var=LD_LIBRARY_PATH
10151  ;;
10152
10153freebsd1*)
10154  dynamic_linker=no
10155  ;;
10156
10157kfreebsd*-gnu)
10158  version_type=linux
10159  need_lib_prefix=no
10160  need_version=no
10161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162  soname_spec='${libname}${release}${shared_ext}$major'
10163  shlibpath_var=LD_LIBRARY_PATH
10164  shlibpath_overrides_runpath=no
10165  hardcode_into_libs=yes
10166  dynamic_linker='GNU ld.so'
10167  ;;
10168
10169freebsd* | dragonfly*)
10170  # DragonFly does not have aout.  When/if they implement a new
10171  # versioning mechanism, adjust this.
10172  if test -x /usr/bin/objformat; then
10173    objformat=`/usr/bin/objformat`
10174  else
10175    case $host_os in
10176    freebsd[123]*) objformat=aout ;;
10177    *) objformat=elf ;;
10178    esac
10179  fi
10180  version_type=freebsd-$objformat
10181  case $version_type in
10182    freebsd-elf*)
10183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10184      need_version=no
10185      need_lib_prefix=no
10186      ;;
10187    freebsd-*)
10188      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10189      need_version=yes
10190      ;;
10191  esac
10192  shlibpath_var=LD_LIBRARY_PATH
10193  case $host_os in
10194  freebsd2*)
10195    shlibpath_overrides_runpath=yes
10196    ;;
10197  freebsd3.[01]* | freebsdelf3.[01]*)
10198    shlibpath_overrides_runpath=yes
10199    hardcode_into_libs=yes
10200    ;;
10201  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10202  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10203    shlibpath_overrides_runpath=no
10204    hardcode_into_libs=yes
10205    ;;
10206  freebsd*) # from 4.6 on
10207    shlibpath_overrides_runpath=yes
10208    hardcode_into_libs=yes
10209    ;;
10210  esac
10211  ;;
10212
10213gnu*)
10214  version_type=linux
10215  need_lib_prefix=no
10216  need_version=no
10217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10218  soname_spec='${libname}${release}${shared_ext}$major'
10219  shlibpath_var=LD_LIBRARY_PATH
10220  hardcode_into_libs=yes
10221  ;;
10222
10223hpux9* | hpux10* | hpux11*)
10224  # Give a soname corresponding to the major version so that dld.sl refuses to
10225  # link against other versions.
10226  version_type=sunos
10227  need_lib_prefix=no
10228  need_version=no
10229  case $host_cpu in
10230  ia64*)
10231    shrext_cmds='.so'
10232    hardcode_into_libs=yes
10233    dynamic_linker="$host_os dld.so"
10234    shlibpath_var=LD_LIBRARY_PATH
10235    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10236    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237    soname_spec='${libname}${release}${shared_ext}$major'
10238    if test "X$HPUX_IA64_MODE" = X32; then
10239      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10240    else
10241      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10242    fi
10243    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10244    ;;
10245   hppa*64*)
10246     shrext_cmds='.sl'
10247     hardcode_into_libs=yes
10248     dynamic_linker="$host_os dld.sl"
10249     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252     soname_spec='${libname}${release}${shared_ext}$major'
10253     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10255     ;;
10256   *)
10257    shrext_cmds='.sl'
10258    dynamic_linker="$host_os dld.sl"
10259    shlibpath_var=SHLIB_PATH
10260    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10261    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262    soname_spec='${libname}${release}${shared_ext}$major'
10263    ;;
10264  esac
10265  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10266  postinstall_cmds='chmod 555 $lib'
10267  ;;
10268
10269interix3*)
10270  version_type=linux
10271  need_lib_prefix=no
10272  need_version=no
10273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274  soname_spec='${libname}${release}${shared_ext}$major'
10275  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  shlibpath_overrides_runpath=no
10278  hardcode_into_libs=yes
10279  ;;
10280
10281irix5* | irix6* | nonstopux*)
10282  case $host_os in
10283    nonstopux*) version_type=nonstopux ;;
10284    *)
10285        if test "$lt_cv_prog_gnu_ld" = yes; then
10286                version_type=linux
10287        else
10288                version_type=irix
10289        fi ;;
10290  esac
10291  need_lib_prefix=no
10292  need_version=no
10293  soname_spec='${libname}${release}${shared_ext}$major'
10294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10295  case $host_os in
10296  irix5* | nonstopux*)
10297    libsuff= shlibsuff=
10298    ;;
10299  *)
10300    case $LD in # libtool.m4 will add one of these switches to LD
10301    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10302      libsuff= shlibsuff= libmagic=32-bit;;
10303    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10304      libsuff=32 shlibsuff=N32 libmagic=N32;;
10305    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10306      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10307    *) libsuff= shlibsuff= libmagic=never-match;;
10308    esac
10309    ;;
10310  esac
10311  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10312  shlibpath_overrides_runpath=no
10313  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10314  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10315  hardcode_into_libs=yes
10316  ;;
10317
10318# No shared lib support for Linux oldld, aout, or coff.
10319linux*oldld* | linux*aout* | linux*coff*)
10320  dynamic_linker=no
10321  ;;
10322
10323# This must be Linux ELF.
10324linux*)
10325  version_type=linux
10326  need_lib_prefix=no
10327  need_version=no
10328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329  soname_spec='${libname}${release}${shared_ext}$major'
10330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  shlibpath_overrides_runpath=no
10333  # This implies no fast_install, which is unacceptable.
10334  # Some rework will be needed to allow for fast_install
10335  # before this can be enabled.
10336  hardcode_into_libs=yes
10337
10338  # Append ld.so.conf contents to the search path
10339  if test -f /etc/ld.so.conf; then
10340    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' ' '`
10341    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10342  fi
10343
10344  # We used to test for /lib/ld.so.1 and disable shared libraries on
10345  # powerpc, because MkLinux only supported shared libraries with the
10346  # GNU dynamic linker.  Since this was broken with cross compilers,
10347  # most powerpc-linux boxes support dynamic linking these days and
10348  # people can always --disable-shared, the test was removed, and we
10349  # assume the GNU/Linux dynamic linker is in use.
10350  dynamic_linker='GNU/Linux ld.so'
10351  ;;
10352
10353knetbsd*-gnu)
10354  version_type=linux
10355  need_lib_prefix=no
10356  need_version=no
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358  soname_spec='${libname}${release}${shared_ext}$major'
10359  shlibpath_var=LD_LIBRARY_PATH
10360  shlibpath_overrides_runpath=no
10361  hardcode_into_libs=yes
10362  dynamic_linker='GNU ld.so'
10363  ;;
10364
10365netbsd*)
10366  version_type=sunos
10367  need_lib_prefix=no
10368  need_version=no
10369  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10372    dynamic_linker='NetBSD (a.out) ld.so'
10373  else
10374    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375    soname_spec='${libname}${release}${shared_ext}$major'
10376    dynamic_linker='NetBSD ld.elf_so'
10377  fi
10378  shlibpath_var=LD_LIBRARY_PATH
10379  shlibpath_overrides_runpath=yes
10380  hardcode_into_libs=yes
10381  ;;
10382
10383newsos6)
10384  version_type=linux
10385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386  shlibpath_var=LD_LIBRARY_PATH
10387  shlibpath_overrides_runpath=yes
10388  ;;
10389
10390nto-qnx*)
10391  version_type=linux
10392  need_lib_prefix=no
10393  need_version=no
10394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395  soname_spec='${libname}${release}${shared_ext}$major'
10396  shlibpath_var=LD_LIBRARY_PATH
10397  shlibpath_overrides_runpath=yes
10398  ;;
10399
10400openbsd*)
10401  version_type=sunos
10402  sys_lib_dlsearch_path_spec="/usr/lib"
10403  need_lib_prefix=no
10404  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10405  case $host_os in
10406    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10407    *)                         need_version=no  ;;
10408  esac
10409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10410  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413    case $host_os in
10414      openbsd2.[89] | openbsd2.[89].*)
10415        shlibpath_overrides_runpath=no
10416        ;;
10417      *)
10418        shlibpath_overrides_runpath=yes
10419        ;;
10420      esac
10421  else
10422    shlibpath_overrides_runpath=yes
10423  fi
10424  ;;
10425
10426os2*)
10427  libname_spec='$name'
10428  shrext_cmds=".dll"
10429  need_lib_prefix=no
10430  library_names_spec='$libname${shared_ext} $libname.a'
10431  dynamic_linker='OS/2 ld.exe'
10432  shlibpath_var=LIBPATH
10433  ;;
10434
10435osf3* | osf4* | osf5*)
10436  version_type=osf
10437  need_lib_prefix=no
10438  need_version=no
10439  soname_spec='${libname}${release}${shared_ext}$major'
10440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441  shlibpath_var=LD_LIBRARY_PATH
10442  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10443  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10444  ;;
10445
10446solaris*)
10447  version_type=linux
10448  need_lib_prefix=no
10449  need_version=no
10450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451  soname_spec='${libname}${release}${shared_ext}$major'
10452  shlibpath_var=LD_LIBRARY_PATH
10453  shlibpath_overrides_runpath=yes
10454  hardcode_into_libs=yes
10455  # ldd complains unless libraries are executable
10456  postinstall_cmds='chmod +x $lib'
10457  ;;
10458
10459sunos4*)
10460  version_type=sunos
10461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10462  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10463  shlibpath_var=LD_LIBRARY_PATH
10464  shlibpath_overrides_runpath=yes
10465  if test "$with_gnu_ld" = yes; then
10466    need_lib_prefix=no
10467  fi
10468  need_version=yes
10469  ;;
10470
10471sysv4 | sysv4.3*)
10472  version_type=linux
10473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474  soname_spec='${libname}${release}${shared_ext}$major'
10475  shlibpath_var=LD_LIBRARY_PATH
10476  case $host_vendor in
10477    sni)
10478      shlibpath_overrides_runpath=no
10479      need_lib_prefix=no
10480      export_dynamic_flag_spec='${wl}-Blargedynsym'
10481      runpath_var=LD_RUN_PATH
10482      ;;
10483    siemens)
10484      need_lib_prefix=no
10485      ;;
10486    motorola)
10487      need_lib_prefix=no
10488      need_version=no
10489      shlibpath_overrides_runpath=no
10490      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10491      ;;
10492  esac
10493  ;;
10494
10495sysv4*MP*)
10496  if test -d /usr/nec ;then
10497    version_type=linux
10498    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10499    soname_spec='$libname${shared_ext}.$major'
10500    shlibpath_var=LD_LIBRARY_PATH
10501  fi
10502  ;;
10503
10504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505  version_type=freebsd-elf
10506  need_lib_prefix=no
10507  need_version=no
10508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10509  soname_spec='${libname}${release}${shared_ext}$major'
10510  shlibpath_var=LD_LIBRARY_PATH
10511  hardcode_into_libs=yes
10512  if test "$with_gnu_ld" = yes; then
10513    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10514    shlibpath_overrides_runpath=no
10515  else
10516    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10517    shlibpath_overrides_runpath=yes
10518    case $host_os in
10519      sco3.2v5*)
10520        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10521        ;;
10522    esac
10523  fi
10524  sys_lib_dlsearch_path_spec='/usr/lib'
10525  ;;
10526
10527uts4*)
10528  version_type=linux
10529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530  soname_spec='${libname}${release}${shared_ext}$major'
10531  shlibpath_var=LD_LIBRARY_PATH
10532  ;;
10533
10534*)
10535  dynamic_linker=no
10536  ;;
10537esac
10538echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10539echo "${ECHO_T}$dynamic_linker" >&6
10540test "$dynamic_linker" = no && can_build_shared=no
10541
10542variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10543if test "$GCC" = yes; then
10544  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10545fi
10546
10547echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10549hardcode_action=
10550if test -n "$hardcode_libdir_flag_spec" || \
10551   test -n "$runpath_var" || \
10552   test "X$hardcode_automatic" = "Xyes" ; then
10553
10554  # We can hardcode non-existant directories.
10555  if test "$hardcode_direct" != no &&
10556     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557     # have to relink, otherwise we might link with an installed library
10558     # when we should be linking with a yet-to-be-installed one
10559     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10560     test "$hardcode_minus_L" != no; then
10561    # Linking always hardcodes the temporary library directory.
10562    hardcode_action=relink
10563  else
10564    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565    hardcode_action=immediate
10566  fi
10567else
10568  # We cannot hardcode anything, or else we can only hardcode existing
10569  # directories.
10570  hardcode_action=unsupported
10571fi
10572echo "$as_me:$LINENO: result: $hardcode_action" >&5
10573echo "${ECHO_T}$hardcode_action" >&6
10574
10575if test "$hardcode_action" = relink; then
10576  # Fast installation is not supported
10577  enable_fast_install=no
10578elif test "$shlibpath_overrides_runpath" = yes ||
10579     test "$enable_shared" = no; then
10580  # Fast installation is not necessary
10581  enable_fast_install=needless
10582fi
10583
10584striplib=
10585old_striplib=
10586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10588if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10589  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10590  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10591  echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593else
10594# FIXME - insert some real tests, host_os isn't really good enough
10595  case $host_os in
10596   darwin*)
10597       if test -n "$STRIP" ; then
10598         striplib="$STRIP -x"
10599         echo "$as_me:$LINENO: result: yes" >&5
10600echo "${ECHO_T}yes" >&6
10601       else
10602  echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
10604fi
10605       ;;
10606   *)
10607  echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609    ;;
10610  esac
10611fi
10612
10613if test "x$enable_dlopen" != xyes; then
10614  enable_dlopen=unknown
10615  enable_dlopen_self=unknown
10616  enable_dlopen_self_static=unknown
10617else
10618  lt_cv_dlopen=no
10619  lt_cv_dlopen_libs=
10620
10621  case $host_os in
10622  beos*)
10623    lt_cv_dlopen="load_add_on"
10624    lt_cv_dlopen_libs=
10625    lt_cv_dlopen_self=yes
10626    ;;
10627
10628  mingw* | pw32*)
10629    lt_cv_dlopen="LoadLibrary"
10630    lt_cv_dlopen_libs=
10631   ;;
10632
10633  cygwin*)
10634    lt_cv_dlopen="dlopen"
10635    lt_cv_dlopen_libs=
10636   ;;
10637
10638  darwin*)
10639  # if libdl is installed we need to link against it
10640    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10641echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10642if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10643  echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645  ac_check_lib_save_LIBS=$LIBS
10646LIBS="-ldl  $LIBS"
10647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h.  */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h.  */
10653
10654/* Override any gcc2 internal prototype to avoid an error.  */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
10658/* We use char because int might match the return type of a gcc2
10659   builtin and then its argument prototype would still apply.  */
10660char dlopen ();
10661int
10662main ()
10663{
10664dlopen ();
10665  ;
10666  return 0;
10667}
10668_ACEOF
10669rm -f conftest.$ac_objext conftest$ac_exeext
10670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671  (eval $ac_link) 2>conftest.er1
10672  ac_status=$?
10673  grep -v '^ *+' conftest.er1 >conftest.err
10674  rm -f conftest.er1
10675  cat conftest.err >&5
10676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677  (exit $ac_status); } &&
10678         { ac_try='test -z "$ac_c_werror_flag"
10679                         || test ! -s conftest.err'
10680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681  (eval $ac_try) 2>&5
10682  ac_status=$?
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); }; } &&
10685         { ac_try='test -s conftest$ac_exeext'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; }; then
10691  ac_cv_lib_dl_dlopen=yes
10692else
10693  echo "$as_me: failed program was:" >&5
10694sed 's/^/| /' conftest.$ac_ext >&5
10695
10696ac_cv_lib_dl_dlopen=no
10697fi
10698rm -f conftest.err conftest.$ac_objext \
10699      conftest$ac_exeext conftest.$ac_ext
10700LIBS=$ac_check_lib_save_LIBS
10701fi
10702echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10703echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10704if test $ac_cv_lib_dl_dlopen = yes; then
10705  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10706else
10707
10708    lt_cv_dlopen="dyld"
10709    lt_cv_dlopen_libs=
10710    lt_cv_dlopen_self=yes
10711
10712fi
10713
10714   ;;
10715
10716  *)
10717    echo "$as_me:$LINENO: checking for shl_load" >&5
10718echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10719if test "${ac_cv_func_shl_load+set}" = set; then
10720  echo $ECHO_N "(cached) $ECHO_C" >&6
10721else
10722  cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h.  */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h.  */
10728/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10729   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10730#define shl_load innocuous_shl_load
10731
10732/* System header to define __stub macros and hopefully few prototypes,
10733    which can conflict with char shl_load (); below.
10734    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10735    <limits.h> exists even on freestanding compilers.  */
10736
10737#ifdef __STDC__
10738# include <limits.h>
10739#else
10740# include <assert.h>
10741#endif
10742
10743#undef shl_load
10744
10745/* Override any gcc2 internal prototype to avoid an error.  */
10746#ifdef __cplusplus
10747extern "C"
10748{
10749#endif
10750/* We use char because int might match the return type of a gcc2