source: trunk/configure @ 1483

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

rerun autotools

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