source: stable/1.13/configure @ 1653

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

restoring Clp/stable/1.13

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