source: stable/1.15/configure @ 1993

Last change on this file since 1993 was 1993, checked in by tkr, 6 years ago

restoring Clp/stable/1.15

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