source: trunk/configure @ 1630

Last change on this file since 1630 was 1630, checked in by stefan, 9 years ago

rerun autotools

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