source: trunk/configure @ 1857

Last change on this file since 1857 was 1752, checked in by stefan, 8 years ago

back to all-stables in externals; rerun autotools

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