source: stable/1.15/configure @ 1962

Last change on this file since 1962 was 1962, checked in by stefan, 6 years ago

restoring Clp/stable/1.15

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