source: stable/1.15/configure

Last change on this file was 2095, checked in by stefan, 5 years ago

restoring Clp/stable/1.15

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