source: branches/split/configure @ 1463

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

rerun autotools; move some code from OsiConfig?.h to CbcConfig?.h

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