source: stable/1.15/configure @ 2039

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

restoring Clp/stable/1.15

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