source: stable/2.8/configure @ 2044

Last change on this file since 2044 was 2044, checked in by tkr, 5 years ago

temporarily committing release candidate

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