source: stable/BSPsplit/configure @ 1510

Last change on this file since 1510 was 1510, checked in by stefan, 10 years ago

install libs and doc to different location; names of pc files for data and thirdparty projects changed

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