source: stable/2.8/configure @ 2114

Last change on this file since 2114 was 2114, checked in by stefan, 4 years ago

temporarily committing release candidate

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