source: stable/2.7/configure @ 1728

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

restoring Cbc/stable/2.7

  • Property svn:executable set to *
File size: 790.7 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 2.7.
5#
6# Report bugs to <cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='2.7'
434PACKAGE_STRING='Cbc 2.7'
435PACKAGE_BUGREPORT='cbc@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/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
482ac_subdirs_all="$ac_subdirs_all Data/Sample"
483ac_subdirs_all="$ac_subdirs_all Data/Netlib"
484ac_subdirs_all="$ac_subdirs_all Data/miplib3"
485ac_subdirs_all="$ac_subdirs_all CoinUtils"
486ac_subdirs_all="$ac_subdirs_all Osi"
487ac_subdirs_all="$ac_subdirs_all Clp"
488ac_subdirs_all="$ac_subdirs_all DyLP"
489ac_subdirs_all="$ac_subdirs_all Vol"
490ac_subdirs_all="$ac_subdirs_all Cgl"
491ac_subdirs_all="$ac_subdirs_all Cbc"
492ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
493ac_subst_files=''
494
495# Initialize some variables set by options.
496ac_init_help=
497ac_init_version=false
498# The variables have the same names as the options, with
499# dashes changed to underlines.
500cache_file=/dev/null
501exec_prefix=NONE
502no_create=
503no_recursion=
504prefix=NONE
505program_prefix=NONE
506program_suffix=NONE
507program_transform_name=s,x,x,
508silent=
509site=
510srcdir=
511verbose=
512x_includes=NONE
513x_libraries=NONE
514
515# Installation directory options.
516# These are left unexpanded so users can "make install exec_prefix=/foo"
517# and all the variables that are supposed to be based on exec_prefix
518# by default will actually change.
519# Use braces instead of parens because sh, perl, etc. also accept them.
520bindir='${exec_prefix}/bin'
521sbindir='${exec_prefix}/sbin'
522libexecdir='${exec_prefix}/libexec'
523datadir='${prefix}/share'
524sysconfdir='${prefix}/etc'
525sharedstatedir='${prefix}/com'
526localstatedir='${prefix}/var'
527libdir='${exec_prefix}/lib'
528includedir='${prefix}/include'
529oldincludedir='/usr/include'
530infodir='${prefix}/info'
531mandir='${prefix}/man'
532
533ac_prev=
534for ac_option
535do
536  # If the previous option needs an argument, assign it.
537  if test -n "$ac_prev"; then
538    eval "$ac_prev=\$ac_option"
539    ac_prev=
540    continue
541  fi
542
543  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
544
545  # Accept the important Cygnus configure options, so we can diagnose typos.
546
547  case $ac_option in
548
549  -bindir | --bindir | --bindi | --bind | --bin | --bi)
550    ac_prev=bindir ;;
551  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
552    bindir=$ac_optarg ;;
553
554  -build | --build | --buil | --bui | --bu)
555    ac_prev=build_alias ;;
556  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557    build_alias=$ac_optarg ;;
558
559  -cache-file | --cache-file | --cache-fil | --cache-fi \
560  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561    ac_prev=cache_file ;;
562  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564    cache_file=$ac_optarg ;;
565
566  --config-cache | -C)
567    cache_file=config.cache ;;
568
569  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
570    ac_prev=datadir ;;
571  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
572  | --da=*)
573    datadir=$ac_optarg ;;
574
575  -disable-* | --disable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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    eval "enable_$ac_feature=no" ;;
583
584  -enable-* | --enable-*)
585    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589   { (exit 1); exit 1; }; }
590    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591    case $ac_option in
592      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593      *) ac_optarg=yes ;;
594    esac
595    eval "enable_$ac_feature='$ac_optarg'" ;;
596
597  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599  | --exec | --exe | --ex)
600    ac_prev=exec_prefix ;;
601  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603  | --exec=* | --exe=* | --ex=*)
604    exec_prefix=$ac_optarg ;;
605
606  -gas | --gas | --ga | --g)
607    # Obsolete; use --with-gas.
608    with_gas=yes ;;
609
610  -help | --help | --hel | --he | -h)
611    ac_init_help=long ;;
612  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613    ac_init_help=recursive ;;
614  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615    ac_init_help=short ;;
616
617  -host | --host | --hos | --ho)
618    ac_prev=host_alias ;;
619  -host=* | --host=* | --hos=* | --ho=*)
620    host_alias=$ac_optarg ;;
621
622  -includedir | --includedir | --includedi | --included | --include \
623  | --includ | --inclu | --incl | --inc)
624    ac_prev=includedir ;;
625  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626  | --includ=* | --inclu=* | --incl=* | --inc=*)
627    includedir=$ac_optarg ;;
628
629  -infodir | --infodir | --infodi | --infod | --info | --inf)
630    ac_prev=infodir ;;
631  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632    infodir=$ac_optarg ;;
633
634  -libdir | --libdir | --libdi | --libd)
635    ac_prev=libdir ;;
636  -libdir=* | --libdir=* | --libdi=* | --libd=*)
637    libdir=$ac_optarg ;;
638
639  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640  | --libexe | --libex | --libe)
641    ac_prev=libexecdir ;;
642  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643  | --libexe=* | --libex=* | --libe=*)
644    libexecdir=$ac_optarg ;;
645
646  -localstatedir | --localstatedir | --localstatedi | --localstated \
647  | --localstate | --localstat | --localsta | --localst \
648  | --locals | --local | --loca | --loc | --lo)
649    ac_prev=localstatedir ;;
650  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653    localstatedir=$ac_optarg ;;
654
655  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
656    ac_prev=mandir ;;
657  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
658    mandir=$ac_optarg ;;
659
660  -nfp | --nfp | --nf)
661    # Obsolete; use --without-fp.
662    with_fp=no ;;
663
664  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665  | --no-cr | --no-c | -n)
666    no_create=yes ;;
667
668  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
670    no_recursion=yes ;;
671
672  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674  | --oldin | --oldi | --old | --ol | --o)
675    ac_prev=oldincludedir ;;
676  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679    oldincludedir=$ac_optarg ;;
680
681  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
682    ac_prev=prefix ;;
683  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
684    prefix=$ac_optarg ;;
685
686  -program-prefix | --program-prefix | --program-prefi | --program-pref \
687  | --program-pre | --program-pr | --program-p)
688    ac_prev=program_prefix ;;
689  -program-prefix=* | --program-prefix=* | --program-prefi=* \
690  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691    program_prefix=$ac_optarg ;;
692
693  -program-suffix | --program-suffix | --program-suffi | --program-suff \
694  | --program-suf | --program-su | --program-s)
695    ac_prev=program_suffix ;;
696  -program-suffix=* | --program-suffix=* | --program-suffi=* \
697  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698    program_suffix=$ac_optarg ;;
699
700  -program-transform-name | --program-transform-name \
701  | --program-transform-nam | --program-transform-na \
702  | --program-transform-n | --program-transform- \
703  | --program-transform | --program-transfor \
704  | --program-transfo | --program-transf \
705  | --program-trans | --program-tran \
706  | --progr-tra | --program-tr | --program-t)
707    ac_prev=program_transform_name ;;
708  -program-transform-name=* | --program-transform-name=* \
709  | --program-transform-nam=* | --program-transform-na=* \
710  | --program-transform-n=* | --program-transform-=* \
711  | --program-transform=* | --program-transfor=* \
712  | --program-transfo=* | --program-transf=* \
713  | --program-trans=* | --program-tran=* \
714  | --progr-tra=* | --program-tr=* | --program-t=*)
715    program_transform_name=$ac_optarg ;;
716
717  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718  | -silent | --silent | --silen | --sile | --sil)
719    silent=yes ;;
720
721  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
722    ac_prev=sbindir ;;
723  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
724  | --sbi=* | --sb=*)
725    sbindir=$ac_optarg ;;
726
727  -sharedstatedir | --sharedstatedir | --sharedstatedi \
728  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729  | --sharedst | --shareds | --shared | --share | --shar \
730  | --sha | --sh)
731    ac_prev=sharedstatedir ;;
732  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
735  | --sha=* | --sh=*)
736    sharedstatedir=$ac_optarg ;;
737
738  -site | --site | --sit)
739    ac_prev=site ;;
740  -site=* | --site=* | --sit=*)
741    site=$ac_optarg ;;
742
743  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
744    ac_prev=srcdir ;;
745  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
746    srcdir=$ac_optarg ;;
747
748  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749  | --syscon | --sysco | --sysc | --sys | --sy)
750    ac_prev=sysconfdir ;;
751  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753    sysconfdir=$ac_optarg ;;
754
755  -target | --target | --targe | --targ | --tar | --ta | --t)
756    ac_prev=target_alias ;;
757  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758    target_alias=$ac_optarg ;;
759
760  -v | -verbose | --verbose | --verbos | --verbo | --verb)
761    verbose=yes ;;
762
763  -version | --version | --versio | --versi | --vers | -V)
764    ac_init_version=: ;;
765
766  -with-* | --with-*)
767    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package| sed 's/-/_/g'`
773    case $ac_option in
774      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775      *) ac_optarg=yes ;;
776    esac
777    eval "with_$ac_package='$ac_optarg'" ;;
778
779  -without-* | --without-*)
780    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781    # Reject names that are not valid shell variable names.
782    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783      { echo "$as_me: error: invalid package name: $ac_package" >&2
784   { (exit 1); exit 1; }; }
785    ac_package=`echo $ac_package | sed 's/-/_/g'`
786    eval "with_$ac_package=no" ;;
787
788  --x)
789    # Obsolete; use --with-x.
790    with_x=yes ;;
791
792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793  | --x-incl | --x-inc | --x-in | --x-i)
794    ac_prev=x_includes ;;
795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797    x_includes=$ac_optarg ;;
798
799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801    ac_prev=x_libraries ;;
802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804    x_libraries=$ac_optarg ;;
805
806  -*) { echo "$as_me: error: unrecognized option: $ac_option
807Try \`$0 --help' for more information." >&2
808   { (exit 1); exit 1; }; }
809    ;;
810
811  *=*)
812    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813    # Reject names that are not valid shell variable names.
814    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816   { (exit 1); exit 1; }; }
817    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818    eval "$ac_envvar='$ac_optarg'"
819    export $ac_envvar ;;
820
821  *)
822    # FIXME: should be removed in autoconf 3.0.
823    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827    ;;
828
829  esac
830done
831
832if test -n "$ac_prev"; then
833  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834  { echo "$as_me: error: missing argument to $ac_option" >&2
835   { (exit 1); exit 1; }; }
836fi
837
838# Be sure to have absolute paths.
839for ac_var in exec_prefix prefix
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# Be sure to have absolute paths.
850for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851              localstatedir libdir includedir oldincludedir infodir mandir
852do
853  eval ac_val=$`echo $ac_var`
854  case $ac_val in
855    [\\/$]* | ?:[\\/]* ) ;;
856    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857   { (exit 1); exit 1; }; };;
858  esac
859done
860
861# There might be people who depend on the old broken behavior: `$host'
862# used to hold the argument of --host etc.
863# FIXME: To remove some day.
864build=$build_alias
865host=$host_alias
866target=$target_alias
867
868# FIXME: To remove some day.
869if test "x$host_alias" != x; then
870  if test "x$build_alias" = x; then
871    cross_compiling=maybe
872    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873    If a cross compiler is detected then cross compile mode will be used." >&2
874  elif test "x$build_alias" != "x$host_alias"; then
875    cross_compiling=yes
876  fi
877fi
878
879ac_tool_prefix=
880test -n "$host_alias" && ac_tool_prefix=$host_alias-
881
882test "$silent" = yes && exec 6>/dev/null
883
884
885# Find the source files, if location was not specified.
886if test -z "$srcdir"; then
887  ac_srcdir_defaulted=yes
888  # Try the directory containing this script, then its parent.
889  ac_confdir=`(dirname "$0") 2>/dev/null ||
890$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891         X"$0" : 'X\(//\)[^/]' \| \
892         X"$0" : 'X\(//\)$' \| \
893         X"$0" : 'X\(/\)' \| \
894         .     : '\(.\)' 2>/dev/null ||
895echo X"$0" |
896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898          /^X\(\/\/\)$/{ s//\1/; q; }
899          /^X\(\/\).*/{ s//\1/; q; }
900          s/.*/./; q'`
901  srcdir=$ac_confdir
902  if test ! -r $srcdir/$ac_unique_file; then
903    srcdir=..
904  fi
905else
906  ac_srcdir_defaulted=no
907fi
908if test ! -r $srcdir/$ac_unique_file; then
909  if test "$ac_srcdir_defaulted" = yes; then
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911   { (exit 1); exit 1; }; }
912  else
913    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914   { (exit 1); exit 1; }; }
915  fi
916fi
917(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919   { (exit 1); exit 1; }; }
920srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921ac_env_build_alias_set=${build_alias+set}
922ac_env_build_alias_value=$build_alias
923ac_cv_env_build_alias_set=${build_alias+set}
924ac_cv_env_build_alias_value=$build_alias
925ac_env_host_alias_set=${host_alias+set}
926ac_env_host_alias_value=$host_alias
927ac_cv_env_host_alias_set=${host_alias+set}
928ac_cv_env_host_alias_value=$host_alias
929ac_env_target_alias_set=${target_alias+set}
930ac_env_target_alias_value=$target_alias
931ac_cv_env_target_alias_set=${target_alias+set}
932ac_cv_env_target_alias_value=$target_alias
933ac_env_CDEFS_set=${CDEFS+set}
934ac_env_CDEFS_value=$CDEFS
935ac_cv_env_CDEFS_set=${CDEFS+set}
936ac_cv_env_CDEFS_value=$CDEFS
937ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
940ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
941ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
944ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
945ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
948ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
949ac_env_CC_set=${CC+set}
950ac_env_CC_value=$CC
951ac_cv_env_CC_set=${CC+set}
952ac_cv_env_CC_value=$CC
953ac_env_CFLAGS_set=${CFLAGS+set}
954ac_env_CFLAGS_value=$CFLAGS
955ac_cv_env_CFLAGS_set=${CFLAGS+set}
956ac_cv_env_CFLAGS_value=$CFLAGS
957ac_env_LDFLAGS_set=${LDFLAGS+set}
958ac_env_LDFLAGS_value=$LDFLAGS
959ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
960ac_cv_env_LDFLAGS_value=$LDFLAGS
961ac_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_env_CPPFLAGS_value=$CPPFLAGS
963ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
964ac_cv_env_CPPFLAGS_value=$CPPFLAGS
965ac_env_MPICC_set=${MPICC+set}
966ac_env_MPICC_value=$MPICC
967ac_cv_env_MPICC_set=${MPICC+set}
968ac_cv_env_MPICC_value=$MPICC
969ac_env_CXXDEFS_set=${CXXDEFS+set}
970ac_env_CXXDEFS_value=$CXXDEFS
971ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
972ac_cv_env_CXXDEFS_value=$CXXDEFS
973ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
976ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
977ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
980ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
981ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
984ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
985ac_env_CXX_set=${CXX+set}
986ac_env_CXX_value=$CXX
987ac_cv_env_CXX_set=${CXX+set}
988ac_cv_env_CXX_value=$CXX
989ac_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_env_CXXFLAGS_value=$CXXFLAGS
991ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
992ac_cv_env_CXXFLAGS_value=$CXXFLAGS
993ac_env_MPICXX_set=${MPICXX+set}
994ac_env_MPICXX_value=$MPICXX
995ac_cv_env_MPICXX_set=${MPICXX+set}
996ac_cv_env_MPICXX_value=$MPICXX
997ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1000ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1001ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1004ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1005ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1008ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1009ac_env_F77_set=${F77+set}
1010ac_env_F77_value=$F77
1011ac_cv_env_F77_set=${F77+set}
1012ac_cv_env_F77_value=$F77
1013ac_env_FFLAGS_set=${FFLAGS+set}
1014ac_env_FFLAGS_value=$FFLAGS
1015ac_cv_env_FFLAGS_set=${FFLAGS+set}
1016ac_cv_env_FFLAGS_value=$FFLAGS
1017ac_env_MPIF77_set=${MPIF77+set}
1018ac_env_MPIF77_value=$MPIF77
1019ac_cv_env_MPIF77_set=${MPIF77+set}
1020ac_cv_env_MPIF77_value=$MPIF77
1021ac_env_CPP_set=${CPP+set}
1022ac_env_CPP_value=$CPP
1023ac_cv_env_CPP_set=${CPP+set}
1024ac_cv_env_CPP_value=$CPP
1025ac_env_CXXCPP_set=${CXXCPP+set}
1026ac_env_CXXCPP_value=$CXXCPP
1027ac_cv_env_CXXCPP_set=${CXXCPP+set}
1028ac_cv_env_CXXCPP_value=$CXXCPP
1029ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1032ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1033
1034#
1035# Report the --help message.
1036#
1037if test "$ac_init_help" = "long"; then
1038  # Omit some internal or obsolete options to make the list less imposing.
1039  # This message is too long to be a string in the A/UX 3.1 sh.
1040  cat <<_ACEOF
1041\`configure' configures Cbc 2.7 to adapt to many kinds of systems.
1042
1043Usage: $0 [OPTION]... [VAR=VALUE]...
1044
1045To assign environment variables (e.g., CC, CFLAGS...), specify them as
1046VAR=VALUE.  See below for descriptions of some of the useful variables.
1047
1048Defaults for the options are specified in brackets.
1049
1050Configuration:
1051  -h, --help              display this help and exit
1052      --help=short        display options specific to this package
1053      --help=recursive    display the short help of all the included packages
1054  -V, --version           display version information and exit
1055  -q, --quiet, --silent   do not print \`checking...' messages
1056      --cache-file=FILE   cache test results in FILE [disabled]
1057  -C, --config-cache      alias for \`--cache-file=config.cache'
1058  -n, --no-create         do not create output files
1059      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1060
1061_ACEOF
1062
1063  cat <<_ACEOF
1064Installation directories:
1065  --prefix=PREFIX         install architecture-independent files in PREFIX
1066                          [$ac_default_prefix]
1067  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1068                          [PREFIX]
1069
1070By default, \`make install' will install all the files in
1071\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1072an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1073for instance \`--prefix=\$HOME'.
1074
1075For better control, use the options below.
1076
1077Fine tuning of the installation directories:
1078  --bindir=DIR           user executables [EPREFIX/bin]
1079  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1080  --libexecdir=DIR       program executables [EPREFIX/libexec]
1081  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1082  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1083  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1084  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1085  --libdir=DIR           object code libraries [EPREFIX/lib]
1086  --includedir=DIR       C header files [PREFIX/include]
1087  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1088  --infodir=DIR          info documentation [PREFIX/info]
1089  --mandir=DIR           man documentation [PREFIX/man]
1090_ACEOF
1091
1092  cat <<\_ACEOF
1093
1094Program names:
1095  --program-prefix=PREFIX            prepend PREFIX to installed program names
1096  --program-suffix=SUFFIX            append SUFFIX to installed program names
1097  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1098
1099System types:
1100  --build=BUILD     configure for building on BUILD [guessed]
1101  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1102_ACEOF
1103fi
1104
1105if test -n "$ac_init_help"; then
1106  case $ac_init_help in
1107     short | recursive ) echo "Configuration of Cbc 2.7:";;
1108   esac
1109  cat <<\_ACEOF
1110
1111Optional Features:
1112  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1113  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1114  --enable-debug          compile all projects with debug options tests
1115                          (implies --disable-shared)
1116  --enable-doscompile     Under Cygwin, compile so that executables run under
1117                          DOS. Set to mingw to use gcc/g++/ld with
1118                          -mno-cygwin. Set to msvc to use cl/link (or
1119                          icl/link). Default when mentioned: mingw. Default
1120                          when not mentioned: disabled.
1121  --enable-static[=PKGS]
1122                          build static libraries [default=no]
1123  --disable-dependency-tracking  speeds up one-time build
1124  --enable-dependency-tracking   do not reject slow dependency extractors
1125  --enable-maintainer-mode  enable make rules and dependencies not useful
1126                          (and sometimes confusing) to the casual installer
1127  --enable-shared[=PKGS]
1128                          build shared libraries [default=yes]
1129  --enable-fast-install[=PKGS]
1130                          optimize for fast installation [default=yes]
1131  --disable-libtool-lock  avoid locking (might break parallel builds)
1132
1133Optional Packages:
1134  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1135  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1136  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1137  --with-pic              try to use only PIC/non-PIC objects [default=use
1138                          both]
1139  --with-tags[=TAGS]
1140                          include additional configurations [automatic]
1141
1142  --with-asl-lib linker flags for using project ASL
1143  --with-asl-incdir directory with header files for using project ASL
1144  --with-asl-datadir directory with data files for using project ASL
1145  --with-blas-lib linker flags for using project Blas
1146  --with-blas-incdir directory with header files for using project Blas
1147  --with-blas-datadir directory with data files for using project Blas
1148  --with-blas             specify BLAS library (or BUILD to enforce use of
1149                          ThirdParty/Blas)
1150  --with-lapack-lib linker flags for using project Lapack
1151  --with-lapack-incdir directory with header files for using project Lapack
1152  --with-lapack-datadir directory with data files for using project Lapack
1153  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1154                          ThirdParty/Lapack)
1155  --with-glpk-lib linker flags for using project Glpk
1156  --with-glpk-incdir directory with header files for using project Glpk
1157  --with-glpk-datadir directory with data files for using project Glpk
1158  --with-metis-lib linker flags for using project Metis
1159  --with-metis-incdir directory with header files for using project Metis
1160  --with-metis-datadir directory with data files for using project Metis
1161  --with-mumps-lib linker flags for using project Mumps
1162  --with-mumps-incdir directory with header files for using project Mumps
1163  --with-mumps-datadir directory with data files for using project Mumps
1164  --with-sample-lib linker flags for using project Sample
1165  --with-sample-incdir directory with header files for using project Sample
1166  --with-sample-datadir directory with data files for using project Sample
1167  --with-netlib-lib linker flags for using project Netlib
1168  --with-netlib-incdir directory with header files for using project Netlib
1169  --with-netlib-datadir directory with data files for using project Netlib
1170  --with-miplib3-lib linker flags for using project miplib3
1171  --with-miplib3-incdir directory with header files for using project miplib3
1172  --with-miplib3-datadir directory with data files for using project miplib3
1173  --with-coinutils-lib linker flags for using project CoinUtils
1174  --with-coinutils-incdir directory with header files for using project
1175                          CoinUtils
1176  --with-coinutils-datadir
1177                          directory with data files for using project
1178                          CoinUtils
1179  --with-osi-lib linker flags for using project Osi
1180  --with-osi-incdir directory with header files for using project Osi
1181  --with-osi-datadir directory with data files for using project Osi
1182  --with-clp-lib linker flags for using project Clp
1183  --with-clp-incdir directory with header files for using project Clp
1184  --with-clp-datadir directory with data files for using project Clp
1185  --with-dylp-lib linker flags for using project DyLP
1186  --with-dylp-incdir directory with header files for using project DyLP
1187  --with-dylp-datadir directory with data files for using project DyLP
1188  --with-vol-lib linker flags for using project Vol
1189  --with-vol-incdir directory with header files for using project Vol
1190  --with-vol-datadir directory with data files for using project Vol
1191  --with-cgl-lib linker flags for using project Cgl
1192  --with-cgl-incdir directory with header files for using project Cgl
1193  --with-cgl-datadir directory with data files for using project Cgl
1194  --with-cbc-lib linker flags for using project Cbc
1195  --with-cbc-incdir directory with header files for using project Cbc
1196  --with-cbc-datadir directory with data files for using project Cbc
1197  --with-dot              use dot (from graphviz) when creating documentation
1198                          with doxygen if available; --without-dot to disable
1199
1200Some influential environment variables:
1201  CDEFS       Additional -D flags to be used when compiling C code.
1202  ADD_CFLAGS  Additional C compiler options
1203  DBG_CFLAGS  Debug C compiler options
1204  OPT_CFLAGS  Optimize C compiler options
1205  CC          C compiler command
1206  CFLAGS      C compiler flags
1207  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1208              nonstandard directory <lib dir>
1209  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1210              headers in a nonstandard directory <include dir>
1211  MPICC       C MPI Compiler
1212  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1213  ADD_CXXFLAGS
1214              Additional C++ compiler options
1215  DBG_CXXFLAGS
1216              Debug C++ compiler options
1217  OPT_CXXFLAGS
1218              Optimize C++ compiler options
1219  CXX         C++ compiler command
1220  CXXFLAGS    C++ compiler flags
1221  MPICXX      C++ MPI Compiler
1222  ADD_FFLAGS  Additional Fortran compiler options
1223  DBG_FFLAGS  Debug Fortran compiler options
1224  OPT_FFLAGS  Optimize Fortran compiler options
1225  F77         Fortran 77 compiler command
1226  FFLAGS      Fortran 77 compiler flags
1227  MPIF77      Fortran MPI Compiler
1228  CPP         C preprocessor
1229  CXXCPP      C++ preprocessor
1230  COIN_SKIP_PROJECTS
1231              Set to the subdirectories of projects that should be skipped in
1232              the configuration
1233
1234Use these variables to override the choices made by `configure' or to help
1235it to find libraries and programs with nonstandard names/locations.
1236
1237Report bugs to <cbc@lists.coin-or.org>.
1238_ACEOF
1239fi
1240
1241if test "$ac_init_help" = "recursive"; then
1242  # If there are subdirs, report their specific --help.
1243  ac_popdir=`pwd`
1244  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1245    test -d $ac_dir || continue
1246    ac_builddir=.
1247
1248if test "$ac_dir" != .; then
1249  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1250  # A "../" for each directory in $ac_dir_suffix.
1251  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1252else
1253  ac_dir_suffix= ac_top_builddir=
1254fi
1255
1256case $srcdir in
1257  .)  # No --srcdir option.  We are building in place.
1258    ac_srcdir=.
1259    if test -z "$ac_top_builddir"; then
1260       ac_top_srcdir=.
1261    else
1262       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1263    fi ;;
1264  [\\/]* | ?:[\\/]* )  # Absolute path.
1265    ac_srcdir=$srcdir$ac_dir_suffix;
1266    ac_top_srcdir=$srcdir ;;
1267  *) # Relative path.
1268    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1269    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1270esac
1271
1272# Do not use `cd foo && pwd` to compute absolute paths, because
1273# the directories may not exist.
1274case `pwd` in
1275.) ac_abs_builddir="$ac_dir";;
1276*)
1277  case "$ac_dir" in
1278  .) ac_abs_builddir=`pwd`;;
1279  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1280  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1281  esac;;
1282esac
1283case $ac_abs_builddir in
1284.) ac_abs_top_builddir=${ac_top_builddir}.;;
1285*)
1286  case ${ac_top_builddir}. in
1287  .) ac_abs_top_builddir=$ac_abs_builddir;;
1288  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1289  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1290  esac;;
1291esac
1292case $ac_abs_builddir in
1293.) ac_abs_srcdir=$ac_srcdir;;
1294*)
1295  case $ac_srcdir in
1296  .) ac_abs_srcdir=$ac_abs_builddir;;
1297  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1298  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1299  esac;;
1300esac
1301case $ac_abs_builddir in
1302.) ac_abs_top_srcdir=$ac_top_srcdir;;
1303*)
1304  case $ac_top_srcdir in
1305  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1306  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1307  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1308  esac;;
1309esac
1310
1311    cd $ac_dir
1312    # Check for guested configure; otherwise get Cygnus style configure.
1313    if test -f $ac_srcdir/configure.gnu; then
1314      echo
1315      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1316    elif test -f $ac_srcdir/configure; then
1317      echo
1318      $SHELL $ac_srcdir/configure  --help=recursive
1319    elif test -f $ac_srcdir/configure.ac ||
1320           test -f $ac_srcdir/configure.in; then
1321      echo
1322      $ac_configure --help
1323    else
1324      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1325    fi
1326    cd $ac_popdir
1327  done
1328fi
1329
1330test -n "$ac_init_help" && exit 0
1331if $ac_init_version; then
1332  cat <<\_ACEOF
1333Cbc configure 2.7
1334generated by GNU Autoconf 2.59
1335
1336Copyright (C) 2003 Free Software Foundation, Inc.
1337This configure script is free software; the Free Software Foundation
1338gives unlimited permission to copy, distribute and modify it.
1339
1340
1341Copyright 2006 International Business Machines and others.
1342All Rights Reserved.
1343This file is part of the open source package Coin which is distributed
1344under the Eclipse Public License.
1345_ACEOF
1346  exit 0
1347fi
1348exec 5>config.log
1349cat >&5 <<_ACEOF
1350This file contains any messages produced by compilers while
1351running configure, to aid debugging if configure makes a mistake.
1352
1353It was created by Cbc $as_me 2.7, which was
1354generated by GNU Autoconf 2.59.  Invocation command line was
1355
1356  $ $0 $@
1357
1358_ACEOF
1359{
1360cat <<_ASUNAME
1361## --------- ##
1362## Platform. ##
1363## --------- ##
1364
1365hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1366uname -m = `(uname -m) 2>/dev/null || echo unknown`
1367uname -r = `(uname -r) 2>/dev/null || echo unknown`
1368uname -s = `(uname -s) 2>/dev/null || echo unknown`
1369uname -v = `(uname -v) 2>/dev/null || echo unknown`
1370
1371/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1372/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1373
1374/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1375/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1376/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1377hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1378/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1379/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1380/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1381
1382_ASUNAME
1383
1384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387  IFS=$as_save_IFS
1388  test -z "$as_dir" && as_dir=.
1389  echo "PATH: $as_dir"
1390done
1391
1392} >&5
1393
1394cat >&5 <<_ACEOF
1395
1396
1397## ----------- ##
1398## Core tests. ##
1399## ----------- ##
1400
1401_ACEOF
1402
1403
1404# Keep a trace of the command line.
1405# Strip out --no-create and --no-recursion so they do not pile up.
1406# Strip out --silent because we don't want to record it for future runs.
1407# Also quote any args containing shell meta-characters.
1408# Make two passes to allow for proper duplicate-argument suppression.
1409ac_configure_args=
1410ac_configure_args0=
1411ac_configure_args1=
1412ac_sep=
1413ac_must_keep_next=false
1414for ac_pass in 1 2
1415do
1416  for ac_arg
1417  do
1418    case $ac_arg in
1419    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1420    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421    | -silent | --silent | --silen | --sile | --sil)
1422      continue ;;
1423    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1424      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1425    esac
1426    case $ac_pass in
1427    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1428    2)
1429      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1430      if test $ac_must_keep_next = true; then
1431        ac_must_keep_next=false # Got value, back to normal.
1432      else
1433        case $ac_arg in
1434          *=* | --config-cache | -C | -disable-* | --disable-* \
1435          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1436          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1437          | -with-* | --with-* | -without-* | --without-* | --x)
1438            case "$ac_configure_args0 " in
1439              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1440            esac
1441            ;;
1442          -* ) ac_must_keep_next=true ;;
1443        esac
1444      fi
1445      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1446      # Get rid of the leading space.
1447      ac_sep=" "
1448      ;;
1449    esac
1450  done
1451done
1452$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1453$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1454
1455# When interrupted or exit'd, cleanup temporary files, and complete
1456# config.log.  We remove comments because anyway the quotes in there
1457# would cause problems or look ugly.
1458# WARNING: Be sure not to use single quotes in there, as some shells,
1459# such as our DU 5.0 friend, will then `close' the trap.
1460trap 'exit_status=$?
1461  # Save into config.log some information that might help in debugging.
1462  {
1463    echo
1464
1465    cat <<\_ASBOX
1466## ---------------- ##
1467## Cache variables. ##
1468## ---------------- ##
1469_ASBOX
1470    echo
1471    # The following way of writing the cache mishandles newlines in values,
1472{
1473  (set) 2>&1 |
1474    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1475    *ac_space=\ *)
1476      sed -n \
1477        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1478          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1479      ;;
1480    *)
1481      sed -n \
1482        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1483      ;;
1484    esac;
1485}
1486    echo
1487
1488    cat <<\_ASBOX
1489## ----------------- ##
1490## Output variables. ##
1491## ----------------- ##
1492_ASBOX
1493    echo
1494    for ac_var in $ac_subst_vars
1495    do
1496      eval ac_val=$`echo $ac_var`
1497      echo "$ac_var='"'"'$ac_val'"'"'"
1498    done | sort
1499    echo
1500
1501    if test -n "$ac_subst_files"; then
1502      cat <<\_ASBOX
1503## ------------- ##
1504## Output files. ##
1505## ------------- ##
1506_ASBOX
1507      echo
1508      for ac_var in $ac_subst_files
1509      do
1510        eval ac_val=$`echo $ac_var`
1511        echo "$ac_var='"'"'$ac_val'"'"'"
1512      done | sort
1513      echo
1514    fi
1515
1516    if test -s confdefs.h; then
1517      cat <<\_ASBOX
1518## ----------- ##
1519## confdefs.h. ##
1520## ----------- ##
1521_ASBOX
1522      echo
1523      sed "/^$/d" confdefs.h | sort
1524      echo
1525    fi
1526    test "$ac_signal" != 0 &&
1527      echo "$as_me: caught signal $ac_signal"
1528    echo "$as_me: exit $exit_status"
1529  } >&5
1530  rm -f core *.core &&
1531  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1532    exit $exit_status
1533     ' 0
1534for ac_signal in 1 2 13 15; do
1535  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1536done
1537ac_signal=0
1538
1539# confdefs.h avoids OS command line length limits that DEFS can exceed.
1540rm -rf conftest* confdefs.h
1541# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1542echo >confdefs.h
1543
1544# Predefined preprocessor variables.
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_NAME "$PACKAGE_NAME"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1553_ACEOF
1554
1555
1556cat >>confdefs.h <<_ACEOF
1557#define PACKAGE_VERSION "$PACKAGE_VERSION"
1558_ACEOF
1559
1560
1561cat >>confdefs.h <<_ACEOF
1562#define PACKAGE_STRING "$PACKAGE_STRING"
1563_ACEOF
1564
1565
1566cat >>confdefs.h <<_ACEOF
1567#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1568_ACEOF
1569
1570
1571# Let the site file select an alternate cache file if it wants to.
1572# Prefer explicitly selected file to automatically selected ones.
1573if test -z "$CONFIG_SITE"; then
1574  if test "x$prefix" != xNONE; then
1575    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1576  else
1577    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1578  fi
1579fi
1580for ac_site_file in $CONFIG_SITE; do
1581  if test -r "$ac_site_file"; then
1582    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1583echo "$as_me: loading site script $ac_site_file" >&6;}
1584    sed 's/^/| /' "$ac_site_file" >&5
1585    . "$ac_site_file"
1586  fi
1587done
1588
1589if test -r "$cache_file"; then
1590  # Some versions of bash will fail to source /dev/null (special
1591  # files actually), so we avoid doing that.
1592  if test -f "$cache_file"; then
1593    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1594echo "$as_me: loading cache $cache_file" >&6;}
1595    case $cache_file in
1596      [\\/]* | ?:[\\/]* ) . $cache_file;;
1597      *)                      . ./$cache_file;;
1598    esac
1599  fi
1600else
1601  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1602echo "$as_me: creating cache $cache_file" >&6;}
1603  >$cache_file
1604fi
1605
1606# Check that the precious variables saved in the cache have kept the same
1607# value.
1608ac_cache_corrupted=false
1609for ac_var in `(set) 2>&1 |
1610               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1611  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1612  eval ac_new_set=\$ac_env_${ac_var}_set
1613  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1614  eval ac_new_val="\$ac_env_${ac_var}_value"
1615  case $ac_old_set,$ac_new_set in
1616    set,)
1617      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1618echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1619      ac_cache_corrupted=: ;;
1620    ,set)
1621      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1622echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1623      ac_cache_corrupted=: ;;
1624    ,);;
1625    *)
1626      if test "x$ac_old_val" != "x$ac_new_val"; then
1627        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1628echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1629        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1630echo "$as_me:   former value:  $ac_old_val" >&2;}
1631        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1632echo "$as_me:   current value: $ac_new_val" >&2;}
1633        ac_cache_corrupted=:
1634      fi;;
1635  esac
1636  # Pass precious variables to config.status.
1637  if test "$ac_new_set" = set; then
1638    case $ac_new_val in
1639    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1640      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1641    *) ac_arg=$ac_var=$ac_new_val ;;
1642    esac
1643    case " $ac_configure_args " in
1644      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1645      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1646    esac
1647  fi
1648done
1649if $ac_cache_corrupted; then
1650  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1651echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1652  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1653echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1654   { (exit 1); exit 1; }; }
1655fi
1656
1657ac_ext=c
1658ac_cpp='$CPP $CPPFLAGS'
1659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694# List one file in the package so that the configure script can test
1695# whether the package is actually there
1696
1697
1698# Where should everything be installed by default?  Here, we want it
1699# to be installed directly in 'bin', 'lib', 'include' subdirectories
1700# of the directory where configure is run.  The default would be
1701# /usr/local.
1702
1703
1704#############################################################################
1705#  Do the tests necessary to configure compilers and initialise autotools   #
1706#############################################################################
1707
1708ac_aux_dir=
1709for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1710  if test -f $ac_dir/install-sh; then
1711    ac_aux_dir=$ac_dir
1712    ac_install_sh="$ac_aux_dir/install-sh -c"
1713    break
1714  elif test -f $ac_dir/install.sh; then
1715    ac_aux_dir=$ac_dir
1716    ac_install_sh="$ac_aux_dir/install.sh -c"
1717    break
1718  elif test -f $ac_dir/shtool; then
1719    ac_aux_dir=$ac_dir
1720    ac_install_sh="$ac_aux_dir/shtool install -c"
1721    break
1722  fi
1723done
1724if test -z "$ac_aux_dir"; then
1725  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1726echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1727   { (exit 1); exit 1; }; }
1728fi
1729ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1730ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1731ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1732
1733# Make sure we can run config.sub.
1734$ac_config_sub sun4 >/dev/null 2>&1 ||
1735  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1736echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1737   { (exit 1); exit 1; }; }
1738
1739echo "$as_me:$LINENO: checking build system type" >&5
1740echo $ECHO_N "checking build system type... $ECHO_C" >&6
1741if test "${ac_cv_build+set}" = set; then
1742  echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744  ac_cv_build_alias=$build_alias
1745test -z "$ac_cv_build_alias" &&
1746  ac_cv_build_alias=`$ac_config_guess`
1747test -z "$ac_cv_build_alias" &&
1748  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1749echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1750   { (exit 1); exit 1; }; }
1751ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1752  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1753echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1754   { (exit 1); exit 1; }; }
1755
1756fi
1757echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1758echo "${ECHO_T}$ac_cv_build" >&6
1759build=$ac_cv_build
1760build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1761build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1762build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763
1764
1765
1766# Check if user wants to produce debugging code
1767
1768echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1769echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1770
1771# Check whether --enable-debug or --disable-debug was given.
1772if test "${enable_debug+set}" = set; then
1773  enableval="$enable_debug"
1774  case "${enableval}" in
1775   yes) coin_debug_compile=true
1776        if test "${enable_shared+set}" = set; then :; else
1777          enable_shared=no
1778        fi
1779        ;;
1780   no)  coin_debug_compile=false
1781        ;;
1782   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1783echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1784   { (exit 1); exit 1; }; }
1785        ;;
1786esac
1787else
1788  coin_debug_compile=false
1789fi;
1790
1791 # m4_ifvaln([],
1792
1793if test $coin_debug_compile = true; then
1794  echo "$as_me:$LINENO: result: yes" >&5
1795echo "${ECHO_T}yes" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801 # m4_ifvaln([],
1802
1803
1804
1805# Get the name of the C compiler and appropriate compiler options
1806case $build in
1807  *-mingw*)
1808    if test "${LD+set}" = set; then :; else
1809      LD=link
1810    fi
1811    ;;
1812 esac
1813 case $enable_doscompile in
1814   msvc)
1815     if test "x${LD+set}" = xset; then :; else
1816       LD=link
1817     fi
1818     ;;
1819 esac
1820
1821
1822 # Check whether --enable-doscompile or --disable-doscompile was given.
1823if test "${enable_doscompile+set}" = set; then
1824  enableval="$enable_doscompile"
1825  if test "$enable_doscompile" != no; then
1826     case $build in
1827       *-cygwin* | *-mingw*) ;;
1828       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1829echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1830   { (exit 1); exit 1; }; } ;;
1831     esac
1832   fi
1833else
1834  enable_doscompile=no
1835fi;
1836 case "$enable_doscompile" in
1837   mingw)
1838     case $build in
1839       *-mingw*) enable_doscompile=no ;;
1840     esac
1841     ;;
1842   msvc|no) ;;
1843   yes) enable_doscompile=mingw ;;
1844   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1845                    Try configure --help=recursive." >&5
1846echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1847                    Try configure --help=recursive." >&2;}
1848   { (exit 1); exit 1; }; }
1849      ;;
1850  esac
1851  if test "$enable_doscompile" != no ; then
1852    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1853echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1854  fi
1855
1856
1857
1858
1859ac_ext=c
1860ac_cpp='$CPP $CPPFLAGS'
1861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864
1865
1866# For consistency, we set the C compiler to the same value of the C++
1867# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1868if test x"$CXX" != x; then
1869  case "$CXX" in
1870    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1871      if test x"$CC" = x; then
1872        CC="$CXX"
1873        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1874echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1875      fi
1876      ;;
1877  esac
1878fi
1879
1880
1881
1882
1883
1884
1885coin_has_cc=yes
1886
1887save_cflags="$CFLAGS"
1888
1889# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1890# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1891# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1892# compiler. In this case, put cc after gcc.
1893
1894case $build in
1895  *-cygwin* | *-mingw*)
1896             if test "$enable_doscompile" = msvc ; then
1897               comps="icl cl"
1898             else
1899               comps="gcc cl"
1900             fi ;;
1901  *-*-solaris*)
1902             # Extract the first word of "cc", so it can be a program name with args.
1903set dummy cc; ac_word=$2
1904echo "$as_me:$LINENO: checking for $ac_word" >&5
1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1907  echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909  if test -n "$sol_cc_compiler"; then
1910  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1911else
1912  ac_prog_rejected=no
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916  IFS=$as_save_IFS
1917  test -z "$as_dir" && as_dir=.
1918  for ac_exec_ext in '' $ac_executable_extensions; do
1919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1921       ac_prog_rejected=yes
1922       continue
1923     fi
1924    ac_cv_prog_sol_cc_compiler="cc"
1925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926    break 2
1927  fi
1928done
1929done
1930
1931if test $ac_prog_rejected = yes; then
1932  # We found a bogon in the path, so make sure we never use it.
1933  set dummy $ac_cv_prog_sol_cc_compiler
1934  shift
1935  if test $# != 0; then
1936    # We chose a different compiler from the bogus one.
1937    # However, it has the same basename, so the bogon will be chosen
1938    # first if we set sol_cc_compiler to just the basename; use the full file name.
1939    shift
1940    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1941  fi
1942fi
1943fi
1944fi
1945sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1946if test -n "$sol_cc_compiler"; then
1947  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1948echo "${ECHO_T}$sol_cc_compiler" >&6
1949else
1950  echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6
1952fi
1953
1954             if test "$sol_cc_compiler" = "cc" ; then
1955               comps="cc xlc gcc pgcc icc"
1956             else
1957               comps="xlc gcc pgcc icc cc"
1958             fi
1959             ;;
1960  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1961  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1962  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1963esac
1964
1965# We delete the cached value, since the test might not have been
1966# performed with our choice of compilers earlier
1967$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1968# AC_MSG_NOTICE([C compiler candidates: $comps])
1969ac_ext=c
1970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974if test -n "$ac_tool_prefix"; then
1975  for ac_prog in $comps
1976  do
1977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982  echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984  if test -n "$CC"; then
1985  ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992  for ac_exec_ext in '' $ac_executable_extensions; do
1993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000
2001fi
2002fi
2003CC=$ac_cv_prog_CC
2004if test -n "$CC"; then
2005  echo "$as_me:$LINENO: result: $CC" >&5
2006echo "${ECHO_T}$CC" >&6
2007else
2008  echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
2010fi
2011
2012    test -n "$CC" && break
2013  done
2014fi
2015if test -z "$CC"; then
2016  ac_ct_CC=$CC
2017  for ac_prog in $comps
2018do
2019  # Extract the first word of "$ac_prog", so it can be a program name with args.
2020set dummy $ac_prog; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  if test -n "$ac_ct_CC"; then
2027  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034  for ac_exec_ext in '' $ac_executable_extensions; do
2035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036    ac_cv_prog_ac_ct_CC="$ac_prog"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054  test -n "$ac_ct_CC" && break
2055done
2056
2057  CC=$ac_ct_CC
2058fi
2059
2060
2061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065   { (exit 1); exit 1; }; }
2066
2067# Provide some information about the compiler.
2068echo "$as_me:$LINENO:" \
2069     "checking for C compiler version" >&5
2070ac_compiler=`set X $ac_compile; echo $2`
2071{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072  (eval $ac_compiler --version </dev/null >&5) 2>&5
2073  ac_status=$?
2074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075  (exit $ac_status); }
2076{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077  (eval $ac_compiler -v </dev/null >&5) 2>&5
2078  ac_status=$?
2079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080  (exit $ac_status); }
2081{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082  (eval $ac_compiler -V </dev/null >&5) 2>&5
2083  ac_status=$?
2084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085  (exit $ac_status); }
2086
2087cat >conftest.$ac_ext <<_ACEOF
2088/* confdefs.h.  */
2089_ACEOF
2090cat confdefs.h >>conftest.$ac_ext
2091cat >>conftest.$ac_ext <<_ACEOF
2092/* end confdefs.h.  */
2093
2094int
2095main ()
2096{
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102ac_clean_files_save=$ac_clean_files
2103ac_clean_files="$ac_clean_files a.out a.exe b.out"
2104# Try to create an executable without -o first, disregard a.out.
2105# It will help us diagnose broken compilers, and finding out an intuition
2106# of exeext.
2107echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2108echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2109ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111  (eval $ac_link_default) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; then
2115  # Find the output, starting from the most likely.  This scheme is
2116# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117# resort.
2118
2119# Be careful to initialize this variable, since it used to be cached.
2120# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121ac_cv_exeext=
2122# b.out is created by i960 compilers.
2123for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2124do
2125  test -f "$ac_file" || continue
2126  case $ac_file in
2127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2128        ;;
2129    conftest.$ac_ext )
2130        # This is the source file.
2131        ;;
2132    [ab].out )
2133        # We found the default executable, but exeext='' is most
2134        # certainly right.
2135        break;;
2136    *.* )
2137        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138        # FIXME: I believe we export ac_cv_exeext for Libtool,
2139        # but it would be cool to find out if it's true.  Does anybody
2140        # maintain Libtool? --akim.
2141        export ac_cv_exeext
2142        break;;
2143    * )
2144        break;;
2145  esac
2146done
2147else
2148  echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2152See \`config.log' for more details." >&5
2153echo "$as_me: error: C compiler cannot create executables
2154See \`config.log' for more details." >&2;}
2155   { (exit 77); exit 77; }; }
2156fi
2157
2158ac_exeext=$ac_cv_exeext
2159echo "$as_me:$LINENO: result: $ac_file" >&5
2160echo "${ECHO_T}$ac_file" >&6
2161
2162# Check the compiler produces executables we can run.  If not, either
2163# the compiler is broken, or we cross compile.
2164echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2165echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2166# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167# If not cross compiling, check that we can run a simple program.
2168if test "$cross_compiling" != yes; then
2169  if { ac_try='./$ac_file'
2170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171  (eval $ac_try) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }; }; then
2175    cross_compiling=no
2176  else
2177    if test "$cross_compiling" = maybe; then
2178        cross_compiling=yes
2179    else
2180        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2181If you meant to cross compile, use \`--host'.
2182See \`config.log' for more details." >&5
2183echo "$as_me: error: cannot run C compiled programs.
2184If you meant to cross compile, use \`--host'.
2185See \`config.log' for more details." >&2;}
2186   { (exit 1); exit 1; }; }
2187    fi
2188  fi
2189fi
2190echo "$as_me:$LINENO: result: yes" >&5
2191echo "${ECHO_T}yes" >&6
2192
2193rm -f a.out a.exe conftest$ac_cv_exeext b.out
2194ac_clean_files=$ac_clean_files_save
2195# Check the compiler produces executables we can run.  If not, either
2196# the compiler is broken, or we cross compile.
2197echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200echo "${ECHO_T}$cross_compiling" >&6
2201
2202echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205  (eval $ac_link) 2>&5
2206  ac_status=$?
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); }; then
2209  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2211# work properly (i.e., refer to `conftest.exe'), while it won't with
2212# `rm'.
2213for ac_file in conftest.exe conftest conftest.*; do
2214  test -f "$ac_file" || continue
2215  case $ac_file in
2216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2217    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218          export ac_cv_exeext
2219          break;;
2220    * ) break;;
2221  esac
2222done
2223else
2224  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225See \`config.log' for more details." >&5
2226echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227See \`config.log' for more details." >&2;}
2228   { (exit 1); exit 1; }; }
2229fi
2230
2231rm -f conftest$ac_cv_exeext
2232echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233echo "${ECHO_T}$ac_cv_exeext" >&6
2234
2235rm -f conftest.$ac_ext
2236EXEEXT=$ac_cv_exeext
2237ac_exeext=$EXEEXT
2238echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240if test "${ac_cv_objext+set}" = set; then
2241  echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
2243  cat >conftest.$ac_ext <<_ACEOF
2244/* confdefs.h.  */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h.  */
2249
2250int
2251main ()
2252{
2253
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258rm -f conftest.o conftest.obj
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260  (eval $ac_compile) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; then
2264  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268       break;;
2269  esac
2270done
2271else
2272  echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278See \`config.log' for more details." >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest.$ac_cv_objext conftest.$ac_ext
2283fi
2284echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285echo "${ECHO_T}$ac_cv_objext" >&6
2286OBJEXT=$ac_cv_objext
2287ac_objext=$OBJEXT
2288echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2289echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h.  */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h.  */
2299
2300int
2301main ()
2302{
2303#ifndef __GNUC__
2304       choke me
2305#endif
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>conftest.er1
2314  ac_status=$?
2315  grep -v '^ *+' conftest.er1 >conftest.err
2316  rm -f conftest.er1
2317  cat conftest.err >&5
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -z "$ac_c_werror_flag"
2321                         || test ! -s conftest.err'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; } &&
2327         { ac_try='test -s conftest.$ac_objext'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; }; then
2333  ac_compiler_gnu=yes
2334else
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338ac_compiler_gnu=no
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341ac_cv_c_compiler_gnu=$ac_compiler_gnu
2342
2343fi
2344echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2346GCC=`test $ac_compiler_gnu = yes && echo yes`
2347ac_test_CFLAGS=${CFLAGS+set}
2348ac_save_CFLAGS=$CFLAGS
2349CFLAGS="-g"
2350echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2352if test "${ac_cv_prog_cc_g+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>conftest.er1
2373  ac_status=$?
2374  grep -v '^ *+' conftest.er1 >conftest.err
2375  rm -f conftest.er1
2376  cat conftest.err >&5
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); } &&
2379         { ac_try='test -z "$ac_c_werror_flag"
2380                         || test ! -s conftest.err'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; } &&
2386         { ac_try='test -s conftest.$ac_objext'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; }; then
2392  ac_cv_prog_cc_g=yes
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397ac_cv_prog_cc_g=no
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400fi
2401echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2402echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2403if test "$ac_test_CFLAGS" = set; then
2404  CFLAGS=$ac_save_CFLAGS
2405elif test $ac_cv_prog_cc_g = yes; then
2406  if test "$GCC" = yes; then
2407    CFLAGS="-g -O2"
2408  else
2409    CFLAGS="-g"
2410  fi
2411else
2412  if test "$GCC" = yes; then
2413    CFLAGS="-O2"
2414  else
2415    CFLAGS=
2416  fi
2417fi
2418echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2419echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2420if test "${ac_cv_prog_cc_stdc+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  ac_cv_prog_cc_stdc=no
2424ac_save_CC=$CC
2425cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h.  */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h.  */
2431#include <stdarg.h>
2432#include <stdio.h>
2433#include <sys/types.h>
2434#include <sys/stat.h>
2435/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2436struct buf { int x; };
2437FILE * (*rcsopen) (struct buf *, struct stat *, int);
2438static char *e (p, i)
2439     char **p;
2440     int i;
2441{
2442  return p[i];
2443}
2444static char *f (char * (*g) (char **, int), char **p, ...)
2445{
2446  char *s;
2447  va_list v;
2448  va_start (v,p);
2449  s = g (p, va_arg (v,int));
2450  va_end (v);
2451  return s;
2452}
2453
2454/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2455   function prototypes and stuff, but not '\xHH' hex character constants.
2456   These don't provoke an error unfortunately, instead are silently treated
2457   as 'x'.  The following induces an error, until -std1 is added to get
2458   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2459   array size at least.  It's necessary to write '\x00'==0 to get something
2460   that's true only with -std1.  */
2461int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2462
2463int test (int i, double x);
2464struct s1 {int (*f) (int a);};
2465struct s2 {int (*f) (double a);};
2466int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2467int argc;
2468char **argv;
2469int
2470main ()
2471{
2472return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477# Don't try gcc -ansi; that turns off useful extensions and
2478# breaks some systems' header files.
2479# AIX                   -qlanglvl=ansi
2480# Ultrix and OSF/1      -std1
2481# HP-UX 10.20 and later -Ae
2482# HP-UX older versions  -Aa -D_HPUX_SOURCE
2483# SVR4                  -Xc -D__EXTENSIONS__
2484for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2485do
2486  CC="$ac_save_CC $ac_arg"
2487  rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489  (eval $ac_compile) 2>conftest.er1
2490  ac_status=$?
2491  grep -v '^ *+' conftest.er1 >conftest.err
2492  rm -f conftest.er1
2493  cat conftest.err >&5
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); } &&
2496         { ac_try='test -z "$ac_c_werror_flag"
2497                         || test ! -s conftest.err'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; } &&
2503         { ac_try='test -s conftest.$ac_objext'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; }; then
2509  ac_cv_prog_cc_stdc=$ac_arg
2510break
2511else
2512  echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515fi
2516rm -f conftest.err conftest.$ac_objext
2517done
2518rm -f conftest.$ac_ext conftest.$ac_objext
2519CC=$ac_save_CC
2520
2521fi
2522
2523case "x$ac_cv_prog_cc_stdc" in
2524  x|xno)
2525    echo "$as_me:$LINENO: result: none needed" >&5
2526echo "${ECHO_T}none needed" >&6 ;;
2527  *)
2528    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2529echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2530    CC="$CC $ac_cv_prog_cc_stdc" ;;
2531esac
2532
2533# Some people use a C++ compiler to compile C.  Since we use `exit',
2534# in C++ we need to declare it.  In case someone uses the same compiler
2535# for both compiling C and C++ we need to have the C++ compiler decide
2536# the declaration of exit, since it's the most demanding environment.
2537cat >conftest.$ac_ext <<_ACEOF
2538#ifndef __cplusplus
2539  choke me
2540#endif
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544  (eval $ac_compile) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551         { ac_try='test -z "$ac_c_werror_flag"
2552                         || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558         { ac_try='test -s conftest.$ac_objext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  for ac_declaration in \
2565   '' \
2566   'extern "C" void std::exit (int) throw (); using std::exit;' \
2567   'extern "C" void std::exit (int); using std::exit;' \
2568   'extern "C" void exit (int) throw ();' \
2569   'extern "C" void exit (int);' \
2570   'void exit (int);'
2571do
2572  cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578$ac_declaration
2579#include <stdlib.h>
2580int
2581main ()
2582{
2583exit (42);
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588rm -f conftest.$ac_objext
2589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590  (eval $ac_compile) 2>conftest.er1
2591  ac_status=$?
2592  grep -v '^ *+' conftest.er1 >conftest.err
2593  rm -f conftest.er1
2594  cat conftest.err >&5
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); } &&
2597         { ac_try='test -z "$ac_c_werror_flag"
2598                         || test ! -s conftest.err'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; } &&
2604         { ac_try='test -s conftest.$ac_objext'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; }; then
2610  :
2611else
2612  echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615continue
2616fi
2617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618  cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624$ac_declaration
2625int
2626main ()
2627{
2628exit (42);
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642         { ac_try='test -z "$ac_c_werror_flag"
2643                         || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649         { ac_try='test -s conftest.$ac_objext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  break
2656else
2657  echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660fi
2661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2662done
2663rm -f conftest*
2664if test -n "$ac_declaration"; then
2665  echo '#ifdef __cplusplus' >>confdefs.h
2666  echo $ac_declaration      >>confdefs.h
2667  echo '#endif'             >>confdefs.h
2668fi
2669
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674fi
2675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682if test -z "$CC" ; then
2683  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2684echo "$as_me: error: Failed to find a C compiler!" >&2;}
2685   { (exit 1); exit 1; }; }
2686fi
2687# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2688case "$CC" in
2689  cl* | */cl* | CL* | */CL* )
2690    if test "$ac_cv_prog_cc_g" = yes ; then
2691      ac_cv_prog_cc_g=no
2692      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2693echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2694    fi ;;
2695esac
2696CFLAGS="$save_cflags"
2697
2698# add automake conditional so we can recognize cl compiler in makefile
2699coin_cc_is_cl=false
2700case "$CC" in
2701  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2702    coin_cc_is_cl=true
2703    ;;
2704esac
2705
2706
2707if test $coin_cc_is_cl = true; then
2708  COIN_CC_IS_CL_TRUE=
2709  COIN_CC_IS_CL_FALSE='#'
2710else
2711  COIN_CC_IS_CL_TRUE='#'
2712  COIN_CC_IS_CL_FALSE=
2713fi
2714
2715
2716# Check if a project specific CFLAGS variable has been set
2717if test x$COIN_PRJCT != x; then
2718  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2719  if test x$coin_tmp = xset; then
2720    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2721  fi
2722fi
2723
2724if test x"$CFLAGS" = x; then
2725
2726  coin_add_cflags=
2727  coin_opt_cflags=
2728  coin_dbg_cflags=
2729  coin_warn_cflags=
2730
2731  if test "$GCC" = "yes"; then
2732    case "$CC" in
2733      icc* | */icc*)
2734        ;;
2735      *)
2736        coin_opt_cflags="-O3"
2737        coin_add_cflags="-pipe"
2738        coin_dbg_cflags="-g -O0"
2739        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2740        case $build in
2741          *-darwin*)
2742            ;;
2743          *)
2744            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2745            ;;
2746        esac
2747        case $enable_doscompile in
2748          mingw)
2749            CFLAGS="-mno-cygwin"
2750            cat >conftest.$ac_ext <<_ACEOF
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760int i=0; i++;
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext conftest$ac_exeext
2766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767  (eval $ac_link) 2>conftest.er1
2768  ac_status=$?
2769  grep -v '^ *+' conftest.er1 >conftest.err
2770  rm -f conftest.er1
2771  cat conftest.err >&5
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); } &&
2774         { ac_try='test -z "$ac_c_werror_flag"
2775                         || test ! -s conftest.err'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; } &&
2781         { ac_try='test -s conftest$ac_exeext'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; }; then
2787  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2788else
2789  echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792fi
2793rm -f conftest.err conftest.$ac_objext \
2794      conftest$ac_exeext conftest.$ac_ext
2795            CFLAGS=
2796          ;;
2797        esac
2798    esac
2799  fi
2800  if test -z "$coin_opt_cflags"; then
2801    case $build in
2802      *-cygwin* | *-mingw*)
2803        case "$CC" in
2804          cl* | */cl* | CL* | */CL*)
2805            coin_opt_cflags='-MT -O2'
2806            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2807            coin_dbg_cflags='-MTd'
2808            ;;
2809          icl* | */icl* | ICL* | */ICL*)
2810            coin_opt_cflags='-MT -Ox'
2811            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2812            coin_dbg_cflags='-MTd -debug'
2813            ;;
2814        esac
2815        ;;
2816      *-linux-*)
2817        case "$CC" in
2818          icc* | */icc*)
2819            coin_opt_cflags="-O3 -ip -mp1"
2820            coin_add_cflags=""
2821            coin_dbg_cflags="-g"
2822            # Check if -i_dynamic is necessary (for new glibc library)
2823            CFLAGS=
2824            cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h.  */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h.  */
2830
2831int
2832main ()
2833{
2834int i=0; i++;
2835  ;
2836  return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext conftest$ac_exeext
2840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2841  (eval $ac_link) 2>conftest.er1
2842  ac_status=$?
2843  grep -v '^ *+' conftest.er1 >conftest.err
2844  rm -f conftest.er1
2845  cat conftest.err >&5
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); } &&
2848         { ac_try='test -z "$ac_c_werror_flag"
2849                         || test ! -s conftest.err'
2850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851  (eval $ac_try) 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; } &&
2855         { ac_try='test -s conftest$ac_exeext'
2856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857  (eval $ac_try) 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; }; then
2861  :
2862else
2863  echo "$as_me: failed program was:" >&5
2864sed 's/^/| /' conftest.$ac_ext >&5
2865
2866coin_add_cflags="-i_dynamic $coin_add_cflags"
2867fi
2868rm -f conftest.err conftest.$ac_objext \
2869      conftest$ac_exeext conftest.$ac_ext
2870            ;;
2871          pgcc* | */pgcc*)
2872            coin_opt_cflags="-fast"
2873            coin_add_cflags="-Kieee -pc 64"
2874            coin_dbg_cflags="-g"
2875            ;;
2876        esac
2877        ;;
2878      *-ibm-*)
2879        case "$CC" in
2880          xlc* | */xlc* | mpxlc* | */mpxlc*)
2881            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2882            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2883            coin_dbg_cflags="-g"
2884          ;;
2885        esac
2886        ;;
2887      *-hp-*)
2888        coin_opt_cflags="-O"
2889        coin_add_cflags="-Ae"
2890        coin_dbg_cflags="-g"
2891        ;;
2892      *-*-solaris*)
2893        coin_opt_cflags="-xO4"
2894        coin_dbg_cflags="-g"
2895        ;;
2896      *-sgi-*)
2897        coin_opt_cflags="-O -OPT:Olimit=0"
2898        coin_dbg_cflags="-g"
2899        ;;
2900    esac
2901  fi
2902
2903  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2904    coin_dbg_cflags="-g"
2905  fi
2906
2907  if test -z "$coin_opt_cflags"; then
2908    # Try if -O option works if nothing else is set
2909    CFLAGS="-O"
2910    cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920int i=0; i++;
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927  (eval $ac_link) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934         { ac_try='test -z "$ac_c_werror_flag"
2935                         || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941         { ac_try='test -s conftest$ac_exeext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  coin_opt_cflags="-O"
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952fi
2953rm -f conftest.err conftest.$ac_objext \
2954      conftest$ac_exeext conftest.$ac_ext
2955  fi
2956
2957  # if PM doesn't want the warning messages, take them out
2958  if test x"$coin_skip_warn_cflags" = xyes; then
2959    coin_warn_cflags=
2960  fi
2961
2962  if test x${DBG_CFLAGS+set} != xset; then
2963    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2964  fi
2965  if test x${OPT_CFLAGS+set} != xset; then
2966    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2967  fi
2968
2969  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2970  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2971
2972  if test "$coin_debug_compile" = "true"; then
2973    CFLAGS="$DBG_CFLAGS"
2974  else
2975    CFLAGS="$OPT_CFLAGS"
2976  fi
2977else
2978  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2979  if test x${DBG_CFLAGS+set} != xset; then
2980    DBG_CFLAGS="$CFLAGS"
2981  fi
2982  if test x${OPT_CFLAGS+set} != xset; then
2983    OPT_CFLAGS="$CFLAGS"
2984  fi
2985fi
2986
2987# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2988
2989case "$CFLAGS" in
2990  *-mno-cygwin*)
2991    if test x${CPPFLAGS+set} != xset ; then
2992      CPPFLAGS="-mno-cygwin"
2993    else
2994      case "$CPPFLAGS" in
2995        *-mno-cygwin*)
2996          ;;
2997        *)
2998          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2999          ;;
3000      esac
3001    fi ;;
3002esac
3003
3004# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3005if test x$COIN_PRJCT != x; then
3006  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3007fi
3008
3009# Try if CFLAGS works
3010save_CFLAGS="$CFLAGS"
3011cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h.  */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021int i=0; i++;
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026rm -f conftest.$ac_objext conftest$ac_exeext
3027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028  (eval $ac_link) 2>conftest.er1
3029  ac_status=$?
3030  grep -v '^ *+' conftest.er1 >conftest.err
3031  rm -f conftest.er1
3032  cat conftest.err >&5
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); } &&
3035         { ac_try='test -z "$ac_c_werror_flag"
3036                         || test ! -s conftest.err'
3037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038  (eval $ac_try) 2>&5
3039  ac_status=$?
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }; } &&
3042         { ac_try='test -s conftest$ac_exeext'
3043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044  (eval $ac_try) 2>&5
3045  ac_status=$?
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); }; }; then
3048  :
3049else
3050  echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053CFLAGS=
3054fi
3055rm -f conftest.err conftest.$ac_objext \
3056      conftest$ac_exeext conftest.$ac_ext
3057if test -z "$CFLAGS"; then
3058  { 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
3059echo "$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;}
3060  CFLAGS='-O'
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071int i=0; i++;
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
3077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078  (eval $ac_link) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085         { ac_try='test -z "$ac_c_werror_flag"
3086                         || test ! -s conftest.err'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092         { ac_try='test -s conftest$ac_exeext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  :
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103CFLAGS=
3104fi
3105rm -f conftest.err conftest.$ac_objext \
3106      conftest$ac_exeext conftest.$ac_ext
3107  if test -z "$CFLAGS"; then
3108    { 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
3109echo "$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;}
3110  fi
3111fi
3112
3113{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3114echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3115
3116
3117if test x"$MPICC" = x; then :; else
3118  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3119echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3120  CC="$MPICC"
3121fi
3122
3123# Correct the LD variable if we are using the MS or Intel-windows compiler
3124case "$CC" in
3125  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3126    case $build in
3127  *-mingw*)
3128    if test "${LD+set}" = set; then :; else
3129      LD=link
3130    fi
3131    ;;
3132 esac
3133 case $enable_doscompile in
3134   msvc)
3135     if test "x${LD+set}" = xset; then :; else
3136       LD=link
3137     fi
3138     ;;
3139 esac
3140
3141    ;;
3142esac
3143
3144ac_ext=c
3145ac_cpp='$CPP $CPPFLAGS'
3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151
3152# Get the name of the C++ compiler and appropriate compiler options
3153
3154 #Let's try if that overcomes configuration problem with VC++ 6.0
3155
3156ac_ext=cc
3157ac_cpp='$CXXCPP $CPPFLAGS'
3158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3161
3162
3163
3164
3165
3166
3167
3168coin_has_cxx=yes
3169
3170save_cxxflags="$CXXFLAGS"
3171# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3172case $build in
3173  *-cygwin* | *-mingw*)
3174             if test "$enable_doscompile" = msvc ; then
3175               comps="icl cl"
3176             else
3177               comps="g++ cl"
3178             fi ;;
3179  *-*-solaris*)
3180             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3181  *-darwin*) comps="g++ c++ CC" ;;
3182  *-linux-gnu*)
3183             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3184          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3185esac
3186
3187# We delete the cached value, since the test might not have been
3188# performed with our choice of compilers earlier
3189$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3190# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3191ac_ext=cc
3192ac_cpp='$CXXCPP $CPPFLAGS'
3193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3196if test -n "$ac_tool_prefix"; then
3197  for ac_prog in $CCC $comps
3198  do
3199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_CXX+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -n "$CXX"; then
3207  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214  for ac_exec_ext in '' $ac_executable_extensions; do
3215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221done
3222
3223fi
3224fi
3225CXX=$ac_cv_prog_CXX
3226if test -n "$CXX"; then
3227  echo "$as_me:$LINENO: result: $CXX" >&5
3228echo "${ECHO_T}$CXX" >&6
3229else
3230  echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232fi
3233
3234    test -n "$CXX" && break
3235  done
3236fi
3237if test -z "$CXX"; then
3238  ac_ct_CXX=$CXX
3239  for ac_prog in $CCC $comps
3240do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  if test -n "$ac_ct_CXX"; then
3249  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_exec_ext in '' $ac_executable_extensions; do
3257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_CXX="$ac_prog"
3259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263done
3264
3265fi
3266fi
3267ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3268if test -n "$ac_ct_CXX"; then
3269  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3270echo "${ECHO_T}$ac_ct_CXX" >&6
3271else
3272  echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274fi
3275
3276  test -n "$ac_ct_CXX" && break
3277done
3278test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3279
3280  CXX=$ac_ct_CXX
3281fi
3282
3283
3284# Provide some information about the compiler.
3285echo "$as_me:$LINENO:" \
3286     "checking for C++ compiler version" >&5
3287ac_compiler=`set X $ac_compile; echo $2`
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3289  (eval $ac_compiler --version </dev/null >&5) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }
3293{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3294  (eval $ac_compiler -v </dev/null >&5) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }
3298{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3299  (eval $ac_compiler -V </dev/null >&5) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }
3303
3304echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3305echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3306if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3307  echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309  cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315
3316int
3317main ()
3318{
3319#ifndef __GNUC__
3320       choke me
3321#endif
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext
3328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329  (eval $ac_compile) 2>conftest.er1
3330  ac_status=$?
3331  grep -v '^ *+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336         { ac_try='test -z "$ac_cxx_werror_flag"
3337                         || test ! -s conftest.err'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; } &&
3343         { ac_try='test -s conftest.$ac_objext'
3344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345  (eval $ac_try) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; }; then
3349  ac_compiler_gnu=yes
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354ac_compiler_gnu=no
3355fi
3356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3358
3359fi
3360echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3361echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3362GXX=`test $ac_compiler_gnu = yes && echo yes`
3363ac_test_CXXFLAGS=${CXXFLAGS+set}
3364ac_save_CXXFLAGS=$CXXFLAGS
3365CXXFLAGS="-g"
3366echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3367echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3368if test "${ac_cv_prog_cxx_g+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388  (eval $ac_compile) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_cxx_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  ac_cv_prog_cxx_g=yes
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413ac_cv_prog_cxx_g=no
3414fi
3415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3418echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3419if test "$ac_test_CXXFLAGS" = set; then
3420  CXXFLAGS=$ac_save_CXXFLAGS
3421elif test $ac_cv_prog_cxx_g = yes; then
3422  if test "$GXX" = yes; then
3423    CXXFLAGS="-g -O2"
3424  else
3425    CXXFLAGS="-g"
3426  fi
3427else
3428  if test "$GXX" = yes; then
3429    CXXFLAGS="-O2"
3430  else
3431    CXXFLAGS=
3432  fi
3433fi
3434for ac_declaration in \
3435   '' \
3436   'extern "C" void std::exit (int) throw (); using std::exit;' \
3437   'extern "C" void std::exit (int); using std::exit;' \
3438   'extern "C" void exit (int) throw ();' \
3439   'extern "C" void exit (int);' \
3440   'void exit (int);'
3441do
3442  cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h.  */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h.  */
3448$ac_declaration
3449#include <stdlib.h>
3450int
3451main ()
3452{
3453exit (42);
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460  (eval $ac_compile) 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } &&
3467         { ac_try='test -z "$ac_cxx_werror_flag"
3468                         || test ! -s conftest.err'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; } &&
3474         { ac_try='test -s conftest.$ac_objext'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; }; then
3480  :
3481else
3482  echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485continue
3486fi
3487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494$ac_declaration
3495int
3496main ()
3497{
3498exit (42);
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505  (eval $ac_compile) 2>conftest.er1
3506  ac_status=$?
3507  grep -v '^ *+' conftest.er1 >conftest.err
3508  rm -f conftest.er1
3509  cat conftest.err >&5
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); } &&
3512         { ac_try='test -z "$ac_cxx_werror_flag"
3513                         || test ! -s conftest.err'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; } &&
3519         { ac_try='test -s conftest.$ac_objext'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; }; then
3525  break
3526else
3527  echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530fi
3531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3532done
3533rm -f conftest*
3534if test -n "$ac_declaration"; then
3535  echo '#ifdef __cplusplus' >>confdefs.h
3536  echo $ac_declaration      >>confdefs.h
3537  echo '#endif'             >>confdefs.h
3538fi
3539
3540ac_ext=cc
3541ac_cpp='$CXXCPP $CPPFLAGS'
3542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545
3546
3547#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3548#thus, we test here whether $CXX is actually working
3549ac_ext=cc
3550ac_cpp='$CXXCPP $CPPFLAGS'
3551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3554
3555echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3556echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3557cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h.  */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567int i=0;
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572rm -f conftest.$ac_objext
3573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574  (eval $ac_compile) 2>conftest.er1
3575  ac_status=$?
3576  grep -v '^ *+' conftest.er1 >conftest.err
3577  rm -f conftest.er1
3578  cat conftest.err >&5
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); } &&
3581         { ac_try='test -z "$ac_cxx_werror_flag"
3582                         || test ! -s conftest.err'
3583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584  (eval $ac_try) 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; } &&
3588         { ac_try='test -s conftest.$ac_objext'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; }; then
3594  echo "$as_me:$LINENO: result: yes" >&5
3595echo "${ECHO_T}yes" >&6
3596else
3597  echo "$as_me: failed program was:" >&5
3598sed 's/^/| /' conftest.$ac_ext >&5
3599
3600echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3603echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3604   { (exit 1); exit 1; }; }
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608ac_ext=cc
3609ac_cpp='$CXXCPP $CPPFLAGS'
3610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3613
3614
3615coin_cxx_is_cl=false
3616# It seems that we need to cleanup something here for the Windows
3617case "$CXX" in
3618  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3619    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3620    mv confdefs.hh confdefs.h
3621    coin_cxx_is_cl=true
3622    ;;
3623esac
3624
3625# add automake conditional so we can recognize cl compiler in makefile
3626
3627
3628if test $coin_cxx_is_cl = true; then
3629  COIN_CXX_IS_CL_TRUE=
3630  COIN_CXX_IS_CL_FALSE='#'
3631else
3632  COIN_CXX_IS_CL_TRUE='#'
3633  COIN_CXX_IS_CL_FALSE=
3634fi
3635
3636
3637# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3638case "$CXX" in
3639  cl* | */cl* | CL* | */CL* )
3640    if test "$ac_cv_prog_cxx_g" = yes ; then
3641      ac_cv_prog_cxx_g=no
3642      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3643echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3644    fi ;;
3645esac
3646CXXFLAGS="$save_cxxflags"
3647
3648# Check if a project specific CXXFLAGS variable has been set
3649if test x$COIN_PRJCT != x; then
3650  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3651  if test x$coin_tmp = xset; then
3652    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3653  fi
3654fi
3655
3656if test x"$CXXFLAGS" = x; then
3657
3658# ToDo decide whether we want -DNDEBUG for optimization
3659  coin_add_cxxflags=
3660  coin_opt_cxxflags=
3661  coin_dbg_cxxflags=
3662  coin_warn_cxxflags=
3663
3664  if test "$GXX" = "yes"; then
3665    case "$CXX" in
3666      icpc* | */icpc*)
3667        ;;
3668      *)
3669# ToDo decide about unroll-loops
3670        coin_opt_cxxflags="-O3"
3671        coin_add_cxxflags="-pipe"
3672        coin_dbg_cxxflags="-g -O0"
3673        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3674        case $build in
3675          *-darwin*)
3676            ;;
3677          *)
3678            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3679            ;;
3680        esac
3681
3682        case $enable_doscompile in
3683          mingw)
3684            CXXFLAGS="-mno-cygwin"
3685            cat >conftest.$ac_ext <<_ACEOF
3686/* confdefs.h.  */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695int i=0; i++;
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext conftest$ac_exeext
3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702  (eval $ac_link) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709         { ac_try='test -z "$ac_cxx_werror_flag"
3710                         || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716         { ac_try='test -s conftest$ac_exeext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727fi
3728rm -f conftest.err conftest.$ac_objext \
3729      conftest$ac_exeext conftest.$ac_ext
3730            CXXFLAGS=
3731          ;;
3732        esac
3733    esac
3734  fi
3735
3736# Note that we do not need to cover GCC in the following tests.
3737
3738  if test -z "$coin_opt_cxxflags"; then
3739    case $build in
3740      *-cygwin* | *-mingw*)
3741        case "$CXX" in
3742          cl* | */cl* | CL* | */CL*)
3743            # The MT and MTd options are mutually exclusive
3744            coin_opt_cxxflags='-MT -O2'
3745            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3746            coin_dbg_cxxflags='-MTd'
3747            ;;
3748          icl* | */icl* | ICL* | */ICL*)
3749            # The MT and MTd options are mutually exclusive
3750            coin_opt_cxxflags='-MT -Ox'
3751            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3752            coin_dbg_cxxflags='-MTd -debug'
3753            ;;
3754        esac
3755        ;;
3756      *-linux-*)
3757        case "$CXX" in
3758          icpc* | */icpc*)
3759            coin_opt_cxxflags="-O3 -ip -mp1"
3760            coin_add_cxxflags=""
3761            coin_dbg_cxxflags="-g"
3762            # Check if -i_dynamic is necessary (for new glibc library)
3763            CXXFLAGS=
3764            cat >conftest.$ac_ext <<_ACEOF
3765/* confdefs.h.  */
3766_ACEOF
3767cat confdefs.h >>conftest.$ac_ext
3768cat >>conftest.$ac_ext <<_ACEOF
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774int i=0; i++;
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779rm -f conftest.$ac_objext conftest$ac_exeext
3780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781  (eval $ac_link) 2>conftest.er1
3782  ac_status=$?
3783  grep -v '^ *+' conftest.er1 >conftest.err
3784  rm -f conftest.er1
3785  cat conftest.err >&5
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); } &&
3788         { ac_try='test -z "$ac_cxx_werror_flag"
3789                         || test ! -s conftest.err'
3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791  (eval $ac_try) 2>&5
3792  ac_status=$?
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); }; } &&
3795         { ac_try='test -s conftest$ac_exeext'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; }; then
3801  :
3802else
3803  echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3807fi
3808rm -f conftest.err conftest.$ac_objext \
3809      conftest$ac_exeext conftest.$ac_ext
3810            ;;
3811          pgCC* | */pgCC*)
3812            coin_opt_cxxflags="-fast"
3813            coin_add_cxxflags="-Kieee -pc 64"
3814            coin_dbg_cxxflags="-g"
3815            ;;
3816        esac
3817        ;;
3818      *-ibm-*)
3819        case "$CXX" in
3820          xlC* | */xlC* | mpxlC* | */mpxlC*)
3821            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3822            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3823            coin_dbg_cxxflags="-g"
3824            ;;
3825        esac
3826        ;;
3827      *-hp-*)
3828        case "$CXX" in
3829          aCC* | */aCC* )
3830            coin_opt_cxxflags="-O"
3831            coin_add_cxxflags="-AA"
3832            coin_dbg_cxxflags="-g"
3833            ;;
3834        esac
3835        ;;
3836      *-*-solaris*)
3837          coin_opt_cxxflags="-O4"
3838          coin_dbg_cxxflags="-g"
3839        ;;
3840    esac
3841  fi
3842
3843# Generic flag settings. If these don't work, add a case above.
3844
3845  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3846    coin_dbg_cxxflags="-g"
3847  fi
3848
3849  if test -z "$coin_opt_cxxflags"; then
3850    # Try if -O option works if nothing else is set
3851    CXXFLAGS=-O
3852    cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h.  */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862int i=0; i++;
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext conftest$ac_exeext
3868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869  (eval $ac_link) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } &&
3876         { ac_try='test -z "$ac_cxx_werror_flag"
3877                         || test ! -s conftest.err'
3878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879  (eval $ac_try) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; } &&
3883         { ac_try='test -s conftest$ac_exeext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  coin_opt_cxxflags="-O"
3890else
3891  echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894fi
3895rm -f conftest.err conftest.$ac_objext \
3896      conftest$ac_exeext conftest.$ac_ext
3897  fi
3898
3899  # if PM doesn't want the warning messages, take them out
3900  if test x"$coin_skip_warn_cxxflags" = xyes; then
3901    coin_warn_cxxflags=
3902  fi
3903
3904# Do final setup of flags based on values determined above.
3905
3906  if test x${DBG_CXXFLAGS+set} != xset; then
3907    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3908  fi
3909  if test x${OPT_CXXFLAGS+set} != xset; then
3910    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3911  fi
3912
3913  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3914  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3915
3916  if test "$coin_debug_compile" = "true"; then
3917    CXXFLAGS="$DBG_CXXFLAGS"
3918  else
3919    CXXFLAGS="$OPT_CXXFLAGS"
3920  fi
3921
3922# Handle the case where CXXFLAGS was set externally.
3923else
3924  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3925  if test x${DBG_CXXFLAGS+set} != xset; then
3926    DBG_CXXFLAGS="$CXXFLAGS"
3927  fi
3928  if test x${OPT_CXXFLAGS+set} != xset; then
3929    OPT_CXXFLAGS="$CXXFLAGS"
3930  fi
3931fi
3932
3933# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3934
3935case "$CXXFLAGS" in
3936  *-mno-cygwin*)
3937    if test x${CPPFLAGS+set} != xset ; then
3938      CPPFLAGS="-mno-cygwin"
3939    else
3940      case "$CPPFLAGS" in
3941        *-mno-cygwin*)
3942          ;;
3943        *)
3944          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3945          ;;
3946      esac
3947    fi ;;
3948esac
3949
3950# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3951if test x$COIN_PRJCT != x; then
3952  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3953fi
3954
3955# Try if CXXFLAGS works
3956save_CXXFLAGS="$CXXFLAGS"
3957cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h.  */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h.  */
3963
3964int
3965main ()
3966{
3967int i=0; i++;
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972rm -f conftest.$ac_objext conftest$ac_exeext
3973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3974  (eval $ac_link) 2>conftest.er1
3975  ac_status=$?
3976  grep -v '^ *+' conftest.er1 >conftest.err
3977  rm -f conftest.er1
3978  cat conftest.err >&5
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); } &&
3981         { ac_try='test -z "$ac_cxx_werror_flag"
3982                         || test ! -s conftest.err'
3983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984  (eval $ac_try) 2>&5
3985  ac_status=$?
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); }; } &&
3988         { ac_try='test -s conftest$ac_exeext'
3989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990  (eval $ac_try) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }; }; then
3994  :
3995else
3996  echo "$as_me: failed program was:" >&5
3997sed 's/^/| /' conftest.$ac_ext >&5
3998
3999CXXFLAGS=
4000fi
4001rm -f conftest.err conftest.$ac_objext \
4002      conftest$ac_exeext conftest.$ac_ext
4003if test -z "$CXXFLAGS"; then
4004  { 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
4005echo "$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;}
4006  CXXFLAGS='-O'
4007  cat >conftest.$ac_ext <<_ACEOF
4008/* confdefs.h.  */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017int i=0; i++;
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext conftest$ac_exeext
4023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024  (eval $ac_link) 2>conftest.er1
4025  ac_status=$?
4026  grep -v '^ *+' conftest.er1 >conftest.err
4027  rm -f conftest.er1
4028  cat conftest.err >&5
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } &&
4031         { ac_try='test -z "$ac_cxx_werror_flag"
4032                         || test ! -s conftest.err'
4033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034  (eval $ac_try) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; } &&
4038         { ac_try='test -s conftest$ac_exeext'
4039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040  (eval $ac_try) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); }; }; then
4044  :
4045else
4046  echo "$as_me: failed program was:" >&5
4047sed 's/^/| /' conftest.$ac_ext >&5
4048
4049CXXFLAGS=
4050fi
4051rm -f conftest.err conftest.$ac_objext \
4052      conftest$ac_exeext conftest.$ac_ext
4053  if test -z "$CXXFLAGS"; then
4054    { 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
4055echo "$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;}
4056  fi
4057fi
4058
4059{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4060echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4061
4062
4063if test x"$MPICXX" = x; then :; else
4064  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4065echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4066  CXX="$MPICXX"
4067fi
4068
4069# correct the LD variable in a mingw build with MS or intel compiler
4070case "$CXX" in
4071  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4072    case $build in
4073  *-mingw*)
4074    if test "${LD+set}" = set; then :; else
4075      LD=link
4076    fi
4077    ;;
4078 esac
4079 case $enable_doscompile in
4080   msvc)
4081     if test "x${LD+set}" = xset; then :; else
4082       LD=link
4083     fi
4084     ;;
4085 esac
4086
4087    ;;
4088esac
4089
4090ac_ext=c
4091ac_cpp='$CPP $CPPFLAGS'
4092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096
4097
4098# Get the name of the Fortran compiler and appropriate compiler options
4099case $build in
4100  *-cygwin* | *-mingw*)
4101     if test "$enable_doscompile" = msvc ; then
4102       coin_f77_comps="ifort fl32 compile_f2c"
4103     else
4104       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4105     fi ;;
4106  *-*-solaris*)
4107     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4108  *-linux-gnu*)
4109     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4110  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4111 esac
4112
4113
4114
4115
4116
4117
4118ac_ext=f
4119ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4120ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4122
4123
4124
4125
4126
4127
4128coin_has_f77=yes
4129
4130save_fflags="$FFLAGS"
4131
4132# We delete the cached value, since the test might not have been
4133# performed with our choice of compilers earlier
4134$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4135
4136# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4137# coin_f77_comps to see if there's a program that matches one of the names.
4138# If there's no such program, F77 = unavailable. If we match the name,
4139# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4140# compiler.
4141# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4142
4143
4144{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4145echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4146if test -n "$ac_tool_prefix"; then
4147  for ac_prog in $coin_f77_comps
4148  do
4149    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153if test "${ac_cv_prog_F77+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  if test -n "$F77"; then
4157  ac_cv_prog_F77="$F77" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164  for ac_exec_ext in '' $ac_executable_extensions; do
4165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171done
4172
4173fi
4174fi
4175F77=$ac_cv_prog_F77
4176if test -n "$F77"; then
4177  echo "$as_me:$LINENO: result: $F77" >&5
4178echo "${ECHO_T}$F77" >&6
4179else
4180  echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182fi
4183
4184    test -n "$F77" && break
4185  done
4186fi
4187if test -z "$F77"; then
4188  ac_ct_F77=$F77
4189  for ac_prog in $coin_f77_comps
4190do
4191  # Extract the first word of "$ac_prog", so it can be a program name with args.
4192set dummy $ac_prog; ac_word=$2
4193echo "$as_me:$LINENO: checking for $ac_word" >&5
4194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4195if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4196  echo $ECHO_N "(cached) $ECHO_C" >&6
4197else
4198  if test -n "$ac_ct_F77"; then
4199  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204  IFS=$as_save_IFS
4205  test -z "$as_dir" && as_dir=.
4206  for ac_exec_ext in '' $ac_executable_extensions; do
4207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208    ac_cv_prog_ac_ct_F77="$ac_prog"
4209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210    break 2
4211  fi
4212done
4213done
4214
4215fi
4216fi
4217ac_ct_F77=$ac_cv_prog_ac_ct_F77
4218if test -n "$ac_ct_F77"; then
4219  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4220echo "${ECHO_T}$ac_ct_F77" >&6
4221else
4222  echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6
4224fi
4225
4226  test -n "$ac_ct_F77" && break
4227done
4228test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4229
4230  F77=$ac_ct_F77
4231fi
4232
4233
4234if test "$F77" != "unavailable" ; then
4235  ac_ext=f
4236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4239if test -n "$ac_tool_prefix"; then
4240  for ac_prog in $coin_f77_comps
4241  do
4242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4244echo "$as_me:$LINENO: checking for $ac_word" >&5
4245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246if test "${ac_cv_prog_F77+set}" = set; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  if test -n "$F77"; then
4250  ac_cv_prog_F77="$F77" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257  for ac_exec_ext in '' $ac_executable_extensions; do
4258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264done
4265
4266fi
4267fi
4268F77=$ac_cv_prog_F77
4269if test -n "$F77"; then
4270  echo "$as_me:$LINENO: result: $F77" >&5
4271echo "${ECHO_T}$F77" >&6
4272else
4273  echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
4275fi
4276
4277    test -n "$F77" && break
4278  done
4279fi
4280if test -z "$F77"; then
4281  ac_ct_F77=$F77
4282  for ac_prog in $coin_f77_comps
4283do
4284  # Extract the first word of "$ac_prog", so it can be a program name with args.
4285set dummy $ac_prog; ac_word=$2
4286echo "$as_me:$LINENO: checking for $ac_word" >&5
4287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  if test -n "$ac_ct_F77"; then
4292  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4293else
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299  for ac_exec_ext in '' $ac_executable_extensions; do
4300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301    ac_cv_prog_ac_ct_F77="$ac_prog"
4302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303    break 2
4304  fi
4305done
4306done
4307
4308fi
4309fi
4310ac_ct_F77=$ac_cv_prog_ac_ct_F77
4311if test -n "$ac_ct_F77"; then
4312  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4313echo "${ECHO_T}$ac_ct_F77" >&6
4314else
4315  echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6
4317fi
4318
4319  test -n "$ac_ct_F77" && break
4320done
4321
4322  F77=$ac_ct_F77
4323fi
4324
4325
4326# Provide some information about the compiler.
4327echo "$as_me:4327:" \
4328     "checking for Fortran 77 compiler version" >&5
4329ac_compiler=`set X $ac_compile; echo $2`
4330{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4331  (eval $ac_compiler --version </dev/null >&5) 2>&5
4332  ac_status=$?
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); }
4335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4336  (eval $ac_compiler -v </dev/null >&5) 2>&5
4337  ac_status=$?
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); }
4340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4341  (eval $ac_compiler -V </dev/null >&5) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }
4345rm -f a.out
4346
4347# If we don't use `.F' as extension, the preprocessor is not run on the
4348# input file.  (Note that this only needs to work for GNU compilers.)
4349ac_save_ext=$ac_ext
4350ac_ext=F
4351echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4352echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4353if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4354  echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
4356  cat >conftest.$ac_ext <<_ACEOF
4357      program main
4358#ifndef __GNUC__
4359       choke me
4360#endif
4361
4362      end
4363_ACEOF
4364rm -f conftest.$ac_objext
4365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366  (eval $ac_compile) 2>conftest.er1
4367  ac_status=$?
4368  grep -v '^ *+' conftest.er1 >conftest.err
4369  rm -f conftest.er1
4370  cat conftest.err >&5
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } &&
4373         { ac_try='test -z "$ac_f77_werror_flag"
4374                         || test ! -s conftest.err'
4375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376  (eval $ac_try) 2>&5
4377  ac_status=$?
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); }; } &&
4380         { ac_try='test -s conftest.$ac_objext'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; }; then
4386  ac_compiler_gnu=yes
4387else
4388  echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391ac_compiler_gnu=no
4392fi
4393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4395
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4398echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4399ac_ext=$ac_save_ext
4400ac_test_FFLAGS=${FFLAGS+set}
4401ac_save_FFLAGS=$FFLAGS
4402FFLAGS=
4403echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4404echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4405if test "${ac_cv_prog_f77_g+set}" = set; then
4406  echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408  FFLAGS=-g
4409cat >conftest.$ac_ext <<_ACEOF
4410      program main
4411
4412      end
4413_ACEOF
4414rm -f conftest.$ac_objext
4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416  (eval $ac_compile) 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } &&
4423         { ac_try='test -z "$ac_f77_werror_flag"
4424                         || test ! -s conftest.err'
4425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426  (eval $ac_try) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; } &&
4430         { ac_try='test -s conftest.$ac_objext'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; }; then
4436  ac_cv_prog_f77_g=yes
4437else
4438  echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441ac_cv_prog_f77_g=no
4442fi
4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444
4445fi
4446echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4447echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4448if test "$ac_test_FFLAGS" = set; then
4449  FFLAGS=$ac_save_FFLAGS
4450elif test $ac_cv_prog_f77_g = yes; then
4451  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4452    FFLAGS="-g -O2"
4453  else
4454    FFLAGS="-g"
4455  fi
4456else
4457  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4458    FFLAGS="-O2"
4459  else
4460    FFLAGS=
4461  fi
4462fi
4463
4464G77=`test $ac_compiler_gnu = yes && echo yes`
4465ac_ext=f
4466ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4467ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4469
4470else
4471  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4472echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4473fi
4474
4475FFLAGS="$save_fflags"
4476
4477# Check if a project specific FFLAGS variable has been set
4478if test x$COIN_PRJCT != x; then
4479  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4480  if test x$coin_tmp = xset; then
4481    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4482  fi
4483fi
4484
4485if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4486
4487  coin_add_fflags=
4488  coin_opt_fflags=
4489  coin_dbg_fflags=
4490  coin_warn_fflags=
4491
4492  if test "$G77" = "yes"; then
4493    coin_opt_fflags="-O3"
4494    coin_add_fflags="-pipe"
4495    coin_dbg_fflags="-g -O0"
4496    case $enable_doscompile in
4497      mingw)
4498        FFLAGS="-mno-cygwin"
4499        cat >conftest.$ac_ext <<_ACEOF
4500      program main
4501      write(*,*) 'Hello world'
4502      end
4503_ACEOF
4504rm -f conftest.$ac_objext conftest$ac_exeext
4505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506  (eval $ac_link) 2>conftest.er1
4507  ac_status=$?
4508  grep -v '^ *+' conftest.er1 >conftest.err
4509  rm -f conftest.er1
4510  cat conftest.err >&5
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } &&
4513         { ac_try='test -z "$ac_f77_werror_flag"
4514                         || test ! -s conftest.err'
4515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516  (eval $ac_try) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; } &&
4520         { ac_try='test -s conftest$ac_exeext'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; }; then
4526  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4527else
4528  echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531fi
4532rm -f conftest.err conftest.$ac_objext \
4533      conftest$ac_exeext conftest.$ac_ext
4534        FFLAGS=
4535      ;;
4536    esac
4537  else
4538    case $build in
4539      *-cygwin* | *-mingw*)
4540        case $F77 in
4541          ifort* | */ifort* | IFORT* | */IFORT* )
4542            coin_opt_fflags='-MT -O3'
4543            coin_add_fflags='-fpp -nologo'
4544            coin_dbg_fflags='-MTd -debug'
4545          ;;
4546          compile_f2c*)
4547            coin_opt_fflags='-MT -O2'
4548            coin_add_fflags='-nologo -wd4996'
4549            coin_dbg_fflags='-MTd'
4550          ;;
4551        esac
4552        ;;
4553      *-linux-*)
4554        case $F77 in
4555          ifc* | */ifc* | ifort* | */ifort*)
4556            coin_opt_fflags="-O3 -ip"
4557            coin_add_fflags="-cm -w90 -w95"
4558            coin_dbg_fflags="-g -CA -CB -CS"
4559            # Check if -i_dynamic is necessary (for new glibc library)
4560            FFLAGS=
4561            cat >conftest.$ac_ext <<_ACEOF
4562      program main
4563      write(*,*) 'Hello world'
4564      end
4565_ACEOF
4566rm -f conftest.$ac_objext conftest$ac_exeext
4567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568  (eval $ac_link) 2>conftest.er1
4569  ac_status=$?
4570  grep -v '^ *+' conftest.er1 >conftest.err
4571  rm -f conftest.er1
4572  cat conftest.err >&5
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); } &&
4575         { ac_try='test -z "$ac_f77_werror_flag"
4576                         || test ! -s conftest.err'
4577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578  (eval $ac_try) 2>&5
4579  ac_status=$?
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); }; } &&
4582         { ac_try='test -s conftest$ac_exeext'
4583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584  (eval $ac_try) 2>&5
4585  ac_status=$?
4586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587  (exit $ac_status); }; }; then
4588  :
4589else
4590  echo "$as_me: failed program was:" >&5
4591sed 's/^/| /' conftest.$ac_ext >&5
4592
4593coin_add_fflags="-i_dynamic $coin_add_fflags"
4594fi
4595rm -f conftest.err conftest.$ac_objext \
4596      conftest$ac_exeext conftest.$ac_ext
4597            ;;
4598          pgf77* | */pgf77* | pgf90* | */pgf90*)
4599            coin_opt_fflags="-fast"
4600            coin_add_fflags="-Kieee -pc 64"
4601            coin_dbg_fflags="-g"
4602          ;;
4603        esac
4604        ;;
4605      *-ibm-*)
4606        case "$F77" in
4607          xlf* | */xlf* | mpxlf* | */mpxlf* )
4608            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4609            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4610            coin_dbg_fflags="-g -C"
4611            ;;
4612        esac
4613        ;;
4614      *-hp-*)
4615        coin_opt_fflags="+O3"
4616        coin_add_fflags="+U77"
4617        coin_dbg_fflags="-C -g"
4618        ;;
4619      *-*-solaris*)
4620        coin_opt_fflags="-O4"
4621        coin_dbg_fflags="-g"
4622        ;;
4623      *-sgi-*)
4624        coin_opt_fflags="-O5 -OPT:Olimit=0"
4625        coin_dbg_fflags="-g"
4626        ;;
4627    esac
4628  fi
4629
4630  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4631    coin_dbg_fflags="-g"
4632  fi
4633
4634  if test -z "$coin_opt_fflags"; then
4635    # Try if -O option works if nothing else is set
4636    FFLAGS=-O
4637    cat >conftest.$ac_ext <<_ACEOF
4638      program main
4639      integer i
4640      end
4641_ACEOF
4642rm -f conftest.$ac_objext conftest$ac_exeext
4643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644  (eval $ac_link) 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } &&
4651         { ac_try='test -z "$ac_f77_werror_flag"
4652                         || test ! -s conftest.err'
4653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654  (eval $ac_try) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); }; } &&
4658         { ac_try='test -s conftest$ac_exeext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  coin_opt_fflags="-O"
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669fi
4670rm -f conftest.err conftest.$ac_objext \
4671      conftest$ac_exeext conftest.$ac_ext
4672  fi
4673
4674  # if PM doesn't want the warning messages, take them out
4675  if test x"$coin_skip_warn_fflags" = xyes; then
4676    coin_warn_fflags=
4677  fi
4678
4679  if test x${DBG_FFLAGS+set} != xset; then
4680    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4681  fi
4682  if test x${OPT_FFLAGS+set} != xset; then
4683    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4684  fi
4685
4686  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4687  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4688
4689  if test "$coin_debug_compile" = "true"; then
4690    FFLAGS="$DBG_FFLAGS"
4691  else
4692    FFLAGS="$OPT_FFLAGS"
4693  fi
4694else
4695  FFLAGS="$FFLAGS $ADD_FFLAGS"
4696  if test x${DBG_FFLAGS+set} != xset; then
4697    DBG_FFLAGS="$FFLAGS"
4698  fi
4699  if test x${OPT_FFLAGS+set} != xset; then
4700    OPT_FFLAGS="$FFLAGS"
4701  fi
4702fi
4703
4704# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4705case "$FFLAGS" in
4706  *-mno-cygwin*)
4707    if test x${CPPFLAGS+set} != xset ; then
4708      CPPFLAGS="-mno-cygwin"
4709    else
4710      case "$CPPFLAGS" in
4711        *-mno-cygwin*)
4712          ;;
4713        *)
4714          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4715          ;;
4716      esac
4717    fi ;;
4718esac
4719
4720# Try if FFLAGS works
4721if test "$F77" != "unavailable" ; then
4722  cat >conftest.$ac_ext <<_ACEOF
4723      program main
4724      integer i
4725      end
4726_ACEOF
4727rm -f conftest.$ac_objext conftest$ac_exeext
4728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4729  (eval $ac_link) 2>conftest.er1
4730  ac_status=$?
4731  grep -v '^ *+' conftest.er1 >conftest.err
4732  rm -f conftest.er1
4733  cat conftest.err >&5
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); } &&
4736         { ac_try='test -z "$ac_f77_werror_flag"
4737                         || test ! -s conftest.err'
4738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739  (eval $ac_try) 2>&5
4740  ac_status=$?
4741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742  (exit $ac_status); }; } &&
4743         { ac_try='test -s conftest$ac_exeext'
4744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745  (eval $ac_try) 2>&5
4746  ac_status=$?
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); }; }; then
4749  :
4750else
4751  echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754FFLAGS=
4755fi
4756rm -f conftest.err conftest.$ac_objext \
4757      conftest$ac_exeext conftest.$ac_ext
4758  if test -z "$FFLAGS"; then
4759    { 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
4760echo "$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;}
4761    FFLAGS='-O'
4762    cat >conftest.$ac_ext <<_ACEOF
4763      program main
4764      integer i
4765      end
4766_ACEOF
4767rm -f conftest.$ac_objext conftest$ac_exeext
4768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769  (eval $ac_link) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -z "$ac_f77_werror_flag"
4777                         || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783         { ac_try='test -s conftest$ac_exeext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  :
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794FFLAGS=
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797      conftest$ac_exeext conftest.$ac_ext
4798    if test -z "$FFLAGS"; then
4799      { 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
4800echo "$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;}
4801    fi
4802  fi
4803fi
4804
4805{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4806echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4807
4808
4809if test x"$MPIF77" = x; then :; else
4810  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4811echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4812  F77="$MPIF77"
4813fi
4814
4815# correct the LD variable if we use the intel fortran compiler in windows
4816case "$F77" in
4817  ifort* | */ifort* | IFORT* | */IFORT*)
4818    case $build in
4819  *-mingw*)
4820    if test "${LD+set}" = set; then :; else
4821      LD=link
4822    fi
4823    ;;
4824 esac
4825 case $enable_doscompile in
4826   msvc)
4827     if test "x${LD+set}" = xset; then :; else
4828       LD=link
4829     fi
4830     ;;
4831 esac
4832
4833    ;;
4834esac
4835
4836ac_ext=c
4837ac_cpp='$CPP $CPPFLAGS'
4838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841
4842
4843
4844# Initialize automake and libtool
4845# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4846{
4847
4848
4849
4850# START
4851
4852# Test if force_shared has been set
4853if test "x" = xforce_shared; then
4854  if test x$enable_shared = xno; then
4855    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4856echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4857   { (exit 1); exit 1; }; }
4858  fi
4859  enable_shared=yes;
4860else
4861  # On Cygwin and AIX, building DLLs doesn't work
4862  case $build in
4863    *-cygwin*)
4864      coin_disable_shared=yes
4865      platform=Cygwin
4866    ;;
4867    *-aix*)
4868      coin_disable_shared=yes
4869      platform=AIX
4870    ;;
4871    *-mingw*)
4872      coin_disable_shared=yes
4873      platform="Msys"
4874#      case "$CXX" in
4875#        cl*)
4876#          coin_disable_shared=yes
4877#          platform="Msys with cl"
4878#      ;;
4879#      esac
4880    ;;
4881  esac
4882fi
4883if test x"$coin_disable_shared" = xyes; then
4884  if test x"$enable_shared" = xyes; then
4885    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4886echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4887  fi
4888  enable_shared=no
4889fi
4890# By default, we only want the shared objects to be compiled
4891# Check whether --enable-static or --disable-static was given.
4892if test "${enable_static+set}" = set; then
4893  enableval="$enable_static"
4894  p=${PACKAGE-default}
4895    case $enableval in
4896    yes) enable_static=yes ;;
4897    no) enable_static=no ;;
4898    *)
4899     enable_static=no
4900      # Look at the argument we got.  We use all the common list separators.
4901      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4902      for pkg in $enableval; do
4903        IFS="$lt_save_ifs"
4904        if test "X$pkg" = "X$p"; then
4905          enable_static=yes
4906        fi
4907      done
4908      IFS="$lt_save_ifs"
4909      ;;
4910    esac
4911else
4912  enable_static=no
4913fi;
4914
4915
4916
4917
4918# Initialize automake
4919echo "$as_me:$LINENO: checking for egrep" >&5
4920echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4921if test "${ac_cv_prog_egrep+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4925    then ac_cv_prog_egrep='grep -E'
4926    else ac_cv_prog_egrep='egrep'
4927    fi
4928fi
4929echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4930echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4931 EGREP=$ac_cv_prog_egrep
4932
4933
4934echo "$as_me:$LINENO: checking whether ln -s works" >&5
4935echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4936LN_S=$as_ln_s
4937if test "$LN_S" = "ln -s"; then
4938  echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940else
4941  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4942echo "${ECHO_T}no, using $LN_S" >&6
4943fi
4944
4945am__api_version="1.9"
4946# Find a good install program.  We prefer a C program (faster),
4947# so one script is as good as another.  But avoid the broken or
4948# incompatible versions:
4949# SysV /etc/install, /usr/sbin/install
4950# SunOS /usr/etc/install
4951# IRIX /sbin/install
4952# AIX /bin/install
4953# AmigaOS /C/install, which installs bootblocks on floppy discs
4954# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957# OS/2's system install, which has a completely different semantic
4958# ./install, which can be erroneously created by make from ./install.sh.
4959echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4960echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4961if test -z "$INSTALL"; then
4962if test "${ac_cv_path_install+set}" = set; then
4963  echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970  # Account for people who put trailing slashes in PATH elements.
4971case $as_dir/ in
4972  ./ | .// | /cC/* | \
4973  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4974  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4975  /usr/ucb/* ) ;;
4976  *)
4977    # OSF1 and SCO ODT 3.0 have their own names for install.
4978    # Don't use installbsd from OSF since it installs stuff as root
4979    # by default.
4980    for ac_prog in ginstall scoinst install; do
4981      for ac_exec_ext in '' $ac_executable_extensions; do
4982        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4983          if test $ac_prog = install &&
4984            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4985            # AIX install.  It has an incompatible calling convention.
4986            :
4987          elif test $ac_prog = install &&
4988            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989            # program-specific install script used by HP pwplus--don't use.
4990            :
4991          else
4992            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4993            break 3
4994          fi
4995        fi
4996      done
4997    done
4998    ;;
4999esac
5000done
5001
5002
5003fi
5004  if test "${ac_cv_path_install+set}" = set; then
5005    INSTALL=$ac_cv_path_install
5006  else
5007    # As a last resort, use the slow shell script.  We don't cache a
5008    # path for INSTALL within a source directory, because that will
5009    # break other packages using the cache if that directory is
5010    # removed, or if the path is relative.
5011    INSTALL=$ac_install_sh
5012  fi
5013fi
5014echo "$as_me:$LINENO: result: $INSTALL" >&5
5015echo "${ECHO_T}$INSTALL" >&6
5016
5017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5018# It thinks the first close brace ends the variable substitution.
5019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5020
5021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5022
5023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5024
5025echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5026echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5027# Just in case
5028sleep 1
5029echo timestamp > conftest.file
5030# Do `set' in a subshell so we don't clobber the current shell's
5031# arguments.  Must try -L first in case configure is actually a
5032# symlink; some systems play weird games with the mod time of symlinks
5033# (eg FreeBSD returns the mod time of the symlink's containing
5034# directory).
5035if (
5036   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5037   if test "$*" = "X"; then
5038      # -L didn't work.
5039      set X `ls -t $srcdir/configure conftest.file`
5040   fi
5041   rm -f conftest.file
5042   if test "$*" != "X $srcdir/configure conftest.file" \
5043      && test "$*" != "X conftest.file $srcdir/configure"; then
5044
5045      # If neither matched, then we have a broken ls.  This can happen
5046      # if, for instance, CONFIG_SHELL is bash and it inherits a
5047      # broken ls alias from the environment.  This has actually
5048      # happened.  Such a system could not be considered "sane".
5049      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5050alias in your environment" >&5
5051echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5052alias in your environment" >&2;}
5053   { (exit 1); exit 1; }; }
5054   fi
5055
5056   test "$2" = conftest.file
5057   )
5058then
5059   # Ok.
5060   :
5061else
5062   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5063Check your system clock" >&5
5064echo "$as_me: error: newly created file is older than distributed files!
5065Check your system clock" >&2;}
5066   { (exit 1); exit 1; }; }
5067fi
5068echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070test "$program_prefix" != NONE &&
5071  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5072# Use a double $ so make ignores it.
5073test "$program_suffix" != NONE &&
5074  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5075# Double any \ or $.  echo might interpret backslashes.
5076# By default was `s,x,x', remove it if useless.
5077cat <<\_ACEOF >conftest.sed
5078s/[\\$]/&&/g;s/;s,x,x,$//
5079_ACEOF
5080program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5081rm conftest.sed
5082
5083# expand $ac_aux_dir to an absolute path
5084am_aux_dir=`cd $ac_aux_dir && pwd`
5085
5086test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5087# Use eval to expand $SHELL
5088if eval "$MISSING --run true"; then
5089  am_missing_run="$MISSING --run "
5090else
5091  am_missing_run=
5092  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5093echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5094fi
5095
5096if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5097  # We used to keeping the `.' as first argument, in order to
5098  # allow $(mkdir_p) to be used without argument.  As in
5099  #   $(mkdir_p) $(somedir)
5100  # where $(somedir) is conditionally defined.  However this is wrong
5101  # for two reasons:
5102  #  1. if the package is installed by a user who cannot write `.'
5103  #     make install will fail,
5104  #  2. the above comment should most certainly read
5105  #     $(mkdir_p) $(DESTDIR)$(somedir)
5106  #     so it does not work when $(somedir) is undefined and
5107  #     $(DESTDIR) is not.
5108  #  To support the latter case, we have to write
5109  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5110  #  so the `.' trick is pointless.
5111  mkdir_p='mkdir -p --'
5112else
5113  # On NextStep and OpenStep, the `mkdir' command does not
5114  # recognize any option.  It will interpret all options as
5115  # directories to create, and then abort because `.' already
5116  # exists.
5117  for d in ./-p ./--version;
5118  do
5119    test -d $d && rmdir $d
5120  done
5121  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5122  if test -f "$ac_aux_dir/mkinstalldirs"; then
5123    mkdir_p='$(mkinstalldirs)'
5124  else
5125    mkdir_p='$(install_sh) -d'
5126  fi
5127fi
5128
5129for ac_prog in gawk mawk nawk awk
5130do
5131  # Extract the first word of "$ac_prog", so it can be a program name with args.
5132set dummy $ac_prog; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_AWK+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  if test -n "$AWK"; then
5139  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146  for ac_exec_ext in '' $ac_executable_extensions; do
5147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_prog_AWK="$ac_prog"
5149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153done
5154
5155fi
5156fi
5157AWK=$ac_cv_prog_AWK
5158if test -n "$AWK"; then
5159  echo "$as_me:$LINENO: result: $AWK" >&5
5160echo "${ECHO_T}$AWK" >&6
5161else
5162  echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164fi
5165
5166  test -n "$AWK" && break
5167done
5168
5169echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5170echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5171set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5172if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5173  echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175  cat >conftest.make <<\_ACEOF
5176all:
5177        @echo 'ac_maketemp="$(MAKE)"'
5178_ACEOF
5179# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5180eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5181if test -n "$ac_maketemp"; then
5182  eval ac_cv_prog_make_${ac_make}_set=yes
5183else
5184  eval ac_cv_prog_make_${ac_make}_set=no
5185fi
5186rm -f conftest.make
5187fi
5188if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5189  echo "$as_me:$LINENO: result: yes" >&5
5190echo "${ECHO_T}yes" >&6
5191  SET_MAKE=
5192else
5193  echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195  SET_MAKE="MAKE=${MAKE-make}"
5196fi
5197
5198rm -rf .tst 2>/dev/null
5199mkdir .tst 2>/dev/null
5200if test -d .tst; then
5201  am__leading_dot=.
5202else
5203  am__leading_dot=_
5204fi
5205rmdir .tst 2>/dev/null
5206
5207DEPDIR="${am__leading_dot}deps"
5208
5209          ac_config_commands="$ac_config_commands depfiles"
5210
5211
5212am_make=${MAKE-make}
5213cat > confinc << 'END'
5214am__doit:
5215        @echo done
5216.PHONY: am__doit
5217END
5218# If we don't find an include directive, just comment out the code.
5219echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5220echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5221am__include="#"
5222am__quote=
5223_am_result=none
5224# First try GNU make style include.
5225echo "include confinc" > confmf
5226# We grep out `Entering directory' and `Leaving directory'
5227# messages which can occur if `w' ends up in MAKEFLAGS.
5228# In particular we don't look at `^make:' because GNU make might
5229# be invoked under some other name (usually "gmake"), in which
5230# case it prints its new name instead of `make'.
5231if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5232   am__include=include
5233   am__quote=
5234   _am_result=GNU
5235fi
5236# Now try BSD make style include.
5237if test "$am__include" = "#"; then
5238   echo '.include "confinc"' > confmf
5239   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5240      am__include=.include
5241      am__quote="\""
5242      _am_result=BSD
5243   fi
5244fi
5245
5246
5247echo "$as_me:$LINENO: result: $_am_result" >&5
5248echo "${ECHO_T}$_am_result" >&6
5249rm -f confinc confmf
5250
5251# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5252if test "${enable_dependency_tracking+set}" = set; then
5253  enableval="$enable_dependency_tracking"
5254
5255fi;
5256if test "x$enable_dependency_tracking" != xno; then
5257  am_depcomp="$ac_aux_dir/depcomp"
5258  AMDEPBACKSLASH='\'
5259fi
5260
5261
5262if test "x$enable_dependency_tracking" != xno; then
5263  AMDEP_TRUE=
5264  AMDEP_FALSE='#'
5265else
5266  AMDEP_TRUE='#'
5267  AMDEP_FALSE=
5268fi
5269
5270
5271
5272
5273
5274
5275# AC_MSG_NOTICE([Beginning automake initialisation.])
5276# Stuff for automake
5277# test to see if srcdir already configured
5278if test "`cd $srcdir && pwd`" != "`pwd`" &&
5279   test -f $srcdir/config.status; then
5280  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5281echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5282   { (exit 1); exit 1; }; }
5283fi
5284
5285# test whether we have cygpath
5286if test -z "$CYGPATH_W"; then
5287  if (cygpath --version) >/dev/null 2>/dev/null; then
5288    CYGPATH_W='cygpath -w'
5289  else
5290    CYGPATH_W=echo
5291  fi
5292fi
5293
5294
5295# Define the identity of the package.
5296 PACKAGE='cbc'
5297 VERSION='2.7'
5298
5299
5300cat >>confdefs.h <<_ACEOF
5301#define PACKAGE "$PACKAGE"
5302_ACEOF
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define VERSION "$VERSION"
5307_ACEOF
5308
5309# Some tools Automake needs.
5310
5311ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5312
5313
5314AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5315
5316
5317AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5318
5319
5320AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5321
5322
5323MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5324
5325install_sh=${install_sh-"$am_aux_dir/install-sh"}
5326
5327# Installed binaries are usually stripped using `strip' when the user
5328# run `make install-strip'.  However `strip' might not be the right
5329# tool to use in cross-compilation environments, therefore Automake
5330# will honor the `STRIP' environment variable to overrule this program.
5331if test "$cross_compiling" != no; then
5332  if test -n "$ac_tool_prefix"; then
5333  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5334set dummy ${ac_tool_prefix}strip; ac_word=$2
5335echo "$as_me:$LINENO: checking for $ac_word" >&5
5336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337if test "${ac_cv_prog_STRIP+set}" = set; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340  if test -n "$STRIP"; then
5341  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346  IFS=$as_save_IFS
5347  test -z "$as_dir" && as_dir=.
5348  for ac_exec_ext in '' $ac_executable_extensions; do
5349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352    break 2
5353  fi
5354done
5355done
5356
5357fi
5358fi
5359STRIP=$ac_cv_prog_STRIP
5360if test -n "$STRIP"; then
5361  echo "$as_me:$LINENO: result: $STRIP" >&5
5362echo "${ECHO_T}$STRIP" >&6
5363else
5364  echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
5366fi
5367
5368fi
5369if test -z "$ac_cv_prog_STRIP"; then
5370  ac_ct_STRIP=$STRIP
5371  # Extract the first word of "strip", so it can be a program name with args.
5372set dummy strip; ac_word=$2
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  if test -n "$ac_ct_STRIP"; then
5379  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384  IFS=$as_save_IFS
5385  test -z "$as_dir" && as_dir=.
5386  for ac_exec_ext in '' $ac_executable_extensions; do
5387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388    ac_cv_prog_ac_ct_STRIP="strip"
5389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390    break 2
5391  fi
5392done
5393done
5394
5395  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5396fi
5397fi
5398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5399if test -n "$ac_ct_STRIP"; then
5400  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5401echo "${ECHO_T}$ac_ct_STRIP" >&6
5402else
5403  echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407  STRIP=$ac_ct_STRIP
5408else
5409  STRIP="$ac_cv_prog_STRIP"
5410fi
5411
5412fi
5413INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5414
5415# We need awk for the "check" target.  The system "awk" is bad on
5416# some platforms.
5417# Always define AMTAR for backward compatibility.
5418
5419AMTAR=${AMTAR-"${am_missing_run}tar"}
5420
5421am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5422
5423
5424
5425
5426depcc="$CC"   am_compiler_list=
5427
5428echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5429echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5430if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5431  echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5434  # We make a subdir and do the tests there.  Otherwise we can end up
5435  # making bogus files that we don't know about and never remove.  For
5436  # instance it was reported that on HP-UX the gcc test will end up
5437  # making a dummy file named `D' -- because `-MD' means `put the output
5438  # in D'.
5439  mkdir conftest.dir
5440  # Copy depcomp to subdir because otherwise we won't find it if we're
5441  # using a relative directory.
5442  cp "$am_depcomp" conftest.dir
5443  cd conftest.dir
5444  # We will build objects and dependencies in a subdirectory because
5445  # it helps to detect inapplicable dependency modes.  For instance
5446  # both Tru64's cc and ICC support -MD to output dependencies as a
5447  # side effect of compilation, but ICC will put the dependencies in
5448  # the current directory while Tru64 will put them in the object
5449  # directory.
5450  mkdir sub
5451
5452  am_cv_CC_dependencies_compiler_type=none
5453  if test "$am_compiler_list" = ""; then
5454     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5455  fi
5456  for depmode in $am_compiler_list; do
5457    # Setup a source with many dependencies, because some compilers
5458    # like to wrap large dependency lists on column 80 (with \), and
5459    # we should not choose a depcomp mode which is confused by this.
5460    #
5461    # We need to recreate these files for each test, as the compiler may
5462    # overwrite some of them when testing with obscure command lines.
5463    # This happens at least with the AIX C compiler.
5464    : > sub/conftest.c
5465    for i in 1 2 3 4 5 6; do
5466      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5467      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5468      # Solaris 8's {/usr,}/bin/sh.
5469      touch sub/conftst$i.h
5470    done
5471    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5472
5473    case $depmode in
5474    nosideeffect)
5475      # after this tag, mechanisms are not by side-effect, so they'll
5476      # only be used when explicitly requested
5477      if test "x$enable_dependency_tracking" = xyes; then
5478        continue
5479      else
5480        break
5481      fi
5482      ;;
5483    none) break ;;
5484    esac
5485    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5486    # mode.  It turns out that the SunPro C++ compiler does not properly
5487    # handle `-M -o', and we need to detect this.
5488    if depmode=$depmode \
5489       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5490       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5491       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5492         >/dev/null 2>conftest.err &&
5493       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5494       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5495       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5496      # icc doesn't choke on unknown options, it will just issue warnings
5497      # or remarks (even with -Werror).  So we grep stderr for any message
5498      # that says an option was ignored or not supported.
5499      # When given -MP, icc 7.0 and 7.1 complain thusly:
5500      #   icc: Command line warning: ignoring option '-M'; no argument required
5501      # The diagnosis changed in icc 8.0:
5502      #   icc: Command line remark: option '-MP' not supported
5503      if (grep 'ignoring option' conftest.err ||
5504          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5505        am_cv_CC_dependencies_compiler_type=$depmode
5506        break
5507      fi
5508    fi
5509  done
5510
5511  cd ..
5512  rm -rf conftest.dir
5513else
5514  am_cv_CC_dependencies_compiler_type=none
5515fi
5516
5517fi
5518echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5519echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5520CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5521
5522
5523
5524if
5525  test "x$enable_dependency_tracking" != xno \
5526  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5527  am__fastdepCC_TRUE=
5528  am__fastdepCC_FALSE='#'
5529else
5530  am__fastdepCC_TRUE='#'
5531  am__fastdepCC_FALSE=
5532fi
5533
5534
5535depcc="$CXX"  am_compiler_list=
5536
5537echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5538echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5539if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5540  echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5543  # We make a subdir and do the tests there.  Otherwise we can end up
5544  # making bogus files that we don't know about and never remove.  For
5545  # instance it was reported that on HP-UX the gcc test will end up
5546  # making a dummy file named `D' -- because `-MD' means `put the output
5547  # in D'.
5548  mkdir conftest.dir
5549  # Copy depcomp to subdir because otherwise we won't find it if we're
5550  # using a relative directory.
5551  cp "$am_depcomp" conftest.dir
5552  cd conftest.dir
5553  # We will build objects and dependencies in a subdirectory because
5554  # it helps to detect inapplicable dependency modes.  For instance
5555  # both Tru64's cc and ICC support -MD to output dependencies as a
5556  # side effect of compilation, but ICC will put the dependencies in
5557  # the current directory while Tru64 will put them in the object
5558  # directory.
5559  mkdir sub
5560
5561  am_cv_CXX_dependencies_compiler_type=none
5562  if test "$am_compiler_list" = ""; then
5563     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5564  fi
5565  for depmode in $am_compiler_list; do
5566    # Setup a source with many dependencies, because some compilers
5567    # like to wrap large dependency lists on column 80 (with \), and
5568    # we should not choose a depcomp mode which is confused by this.
5569    #
5570    # We need to recreate these files for each test, as the compiler may
5571    # overwrite some of them when testing with obscure command lines.
5572    # This happens at least with the AIX C compiler.
5573    : > sub/conftest.c
5574    for i in 1 2 3 4 5 6; do
5575      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5576      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5577      # Solaris 8's {/usr,}/bin/sh.
5578      touch sub/conftst$i.h
5579    done
5580    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5581
5582    case $depmode in
5583    nosideeffect)
5584      # after this tag, mechanisms are not by side-effect, so they'll
5585      # only be used when explicitly requested
5586      if test "x$enable_dependency_tracking" = xyes; then
5587        continue
5588      else
5589        break
5590      fi
5591      ;;
5592    none) break ;;
5593    esac
5594    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5595    # mode.  It turns out that the SunPro C++ compiler does not properly
5596    # handle `-M -o', and we need to detect this.
5597    if depmode=$depmode \
5598       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5599       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5601         >/dev/null 2>conftest.err &&
5602       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5603       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5604       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5605      # icc doesn't choke on unknown options, it will just issue warnings
5606      # or remarks (even with -Werror).  So we grep stderr for any message
5607      # that says an option was ignored or not supported.
5608      # When given -MP, icc 7.0 and 7.1 complain thusly:
5609      #   icc: Command line warning: ignoring option '-M'; no argument required
5610      # The diagnosis changed in icc 8.0:
5611      #   icc: Command line remark: option '-MP' not supported
5612      if (grep 'ignoring option' conftest.err ||
5613          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5614        am_cv_CXX_dependencies_compiler_type=$depmode
5615        break
5616      fi
5617    fi
5618  done
5619
5620  cd ..
5621  rm -rf conftest.dir
5622else
5623  am_cv_CXX_dependencies_compiler_type=none
5624fi
5625
5626fi
5627echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5628echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5629CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5630
5631
5632
5633if
5634  test "x$enable_dependency_tracking" != xno \
5635  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5636  am__fastdepCXX_TRUE=
5637  am__fastdepCXX_FALSE='#'
5638else
5639  am__fastdepCXX_TRUE='#'
5640  am__fastdepCXX_FALSE=
5641fi
5642
5643
5644
5645echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5646echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5647    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5648if test "${enable_maintainer_mode+set}" = set; then
5649  enableval="$enable_maintainer_mode"
5650  USE_MAINTAINER_MODE=$enableval
5651else
5652  USE_MAINTAINER_MODE=no
5653fi;
5654  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5655echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5656
5657
5658if test $USE_MAINTAINER_MODE = yes; then
5659  MAINTAINER_MODE_TRUE=
5660  MAINTAINER_MODE_FALSE='#'
5661else
5662  MAINTAINER_MODE_TRUE='#'
5663  MAINTAINER_MODE_FALSE=
5664fi
5665
5666  MAINT=$MAINTAINER_MODE_TRUE
5667
5668
5669
5670coin_have_externals=no
5671if test "$enable_maintainer_mode" = yes; then
5672
5673  # If maintainer mode is chosen, we make sure that the correct versions
5674  # of the tools are used, and that we know where libtool.m4 is (to
5675  # recreate acinclude.m4)
5676
5677
5678  LIBTOOLM4=
5679  # Normally, $HOME
5680  AUTOTOOLS_DFLT=$HOME
5681
5682  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5683echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5684if test "${ac_cv_use_correct_autotools+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  ac_cv_use_correct_autotools=check
5688fi
5689echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5690echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5691
5692  if test $ac_cv_use_correct_autotools = check; then
5693    ac_cv_use_correct_autotools=yes
5694    # Check if we have autoconf
5695    # Extract the first word of "autoconf", so it can be a program name with args.
5696set dummy autoconf; ac_word=$2
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699if test "${ac_cv_prog_have_autoconf+set}" = set; then
5700  echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702  if test -n "$have_autoconf"; then
5703  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708  IFS=$as_save_IFS
5709  test -z "$as_dir" && as_dir=.
5710  for ac_exec_ext in '' $ac_executable_extensions; do
5711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712    ac_cv_prog_have_autoconf="yes"
5713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714    break 2
5715  fi
5716done
5717done
5718
5719  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5720fi
5721fi
5722have_autoconf=$ac_cv_prog_have_autoconf
5723if test -n "$have_autoconf"; then
5724  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5725echo "${ECHO_T}$have_autoconf" >&6
5726else
5727  echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729fi
5730
5731    if test $have_autoconf = no; then
5732      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5733echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5734   { (exit 1); exit 1; }; }
5735    fi
5736
5737    # Check whether autoconf is the correct version
5738    correct_version='2.59'
5739    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5740    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5741echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5742    autoconf --version > confauto.out 2>&1
5743    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5744      echo "$as_me:$LINENO: result: yes" >&5
5745echo "${ECHO_T}yes" >&6
5746    else
5747      rm -f confauto.out
5748      echo "$as_me:$LINENO: result: no" >&5
5749echo "${ECHO_T}no" >&6
5750      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5751echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5752   { (exit 1); exit 1; }; }
5753    fi
5754    rm -f confauto.out
5755
5756    # Check if the executable autoconf is picked up from the correct location
5757    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5758echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5759    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5760    autoconf_dir=`cd $autoconf_dir; pwd`
5761    if test x$AUTOTOOLS_DIR = x; then
5762      want_dir=$AUTOTOOLS_DFLT/bin
5763    else
5764      want_dir=$AUTOTOOLS_DIR/bin
5765    fi
5766    if test $autoconf_dir = `cd $want_dir; pwd`; then
5767      echo "$as_me:$LINENO: result: yes" >&5
5768echo "${ECHO_T}yes" >&6
5769    else
5770      rm -f confauto.out
5771      echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5774echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5775   { (exit 1); exit 1; }; }
5776    fi
5777
5778    # Check if we have automake
5779    # Extract the first word of "automake", so it can be a program name with args.
5780set dummy automake; ac_word=$2
5781echo "$as_me:$LINENO: checking for $ac_word" >&5
5782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5783if test "${ac_cv_prog_have_automake+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  if test -n "$have_automake"; then
5787  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792  IFS=$as_save_IFS
5793  test -z "$as_dir" && as_dir=.
5794  for ac_exec_ext in '' $ac_executable_extensions; do
5795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796    ac_cv_prog_have_automake="yes"
5797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798    break 2
5799  fi
5800done
5801done
5802
5803  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5804fi
5805fi
5806have_automake=$ac_cv_prog_have_automake
5807if test -n "$have_automake"; then
5808  echo "$as_me:$LINENO: result: $have_automake" >&5
5809echo "${ECHO_T}$have_automake" >&6
5810else
5811  echo "$as_me:$LINENO: result: no" >&5
5812echo "${ECHO_T}no" >&6
5813fi
5814
5815    if test $have_automake = no; then
5816      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5817echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5818   { (exit 1); exit 1; }; }
5819    fi
5820
5821    # Check whether automake is the correct version
5822    correct_version='1.9.6'
5823    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5824    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5825echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5826    automake --version > confauto.out 2>&1
5827    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5828      echo "$as_me:$LINENO: result: yes" >&5
5829echo "${ECHO_T}yes" >&6
5830    else
5831      rm -f confauto.out
5832      echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5835echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5836   { (exit 1); exit 1; }; }
5837    fi
5838    rm -f confauto.out
5839
5840    # Check if the executable automake is picked up from the correct location
5841    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5842echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5843    automake_dir=`which automake | sed -e 's=/automake=='`
5844    automake_dir=`cd $automake_dir; pwd`
5845    if test x$AUTOTOOLS_DIR = x; then
5846      want_dir=$AUTOTOOLS_DFLT/bin
5847    else
5848      want_dir=$AUTOTOOLS_DIR/bin
5849    fi
5850    if test $automake_dir = `cd $want_dir; pwd`; then
5851      echo "$as_me:$LINENO: result: yes" >&5
5852echo "${ECHO_T}yes" >&6
5853    else
5854      rm -f confauto.out
5855      echo "$as_me:$LINENO: result: no" >&5
5856echo "${ECHO_T}no" >&6
5857      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5858echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5859   { (exit 1); exit 1; }; }
5860    fi
5861
5862    # Check if this is the correct version of libtool (with escaped dots)
5863    if test x$AUTOTOOLS_DIR = x; then
5864      want_dir=$AUTOTOOLS_DFLT/share
5865    else
5866      want_dir=$AUTOTOOLS_DIR/share
5867    fi
5868    correct_version='1.5.22'
5869    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5870    if test -r $want_dir/libtool/ltmain.sh; then
5871  have_ltmain=yes
5872  :
5873else
5874  have_ltmain=no
5875  :
5876fi
5877
5878    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5879echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5880    if test $have_ltmain = yes; then
5881    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5882        echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884      else
5885        echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5888echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5889   { (exit 1); exit 1; }; }
5890      fi
5891    else
5892      echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5895echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5896   { (exit 1); exit 1; }; }
5897    fi
5898  fi
5899
5900  # Check if we can find the libtool file
5901  if test x$AUTOTOOLS_DIR = x; then
5902    want_dir=$AUTOTOOLS_DFLT/share
5903  else
5904    want_dir=$AUTOTOOLS_DIR/share
5905  fi
5906  if test -r $want_dir/aclocal/libtool.m4; then
5907  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5908  :
5909else
5910  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5911echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5912   { (exit 1); exit 1; }; }
5913  :
5914fi
5915
5916
5917  # Check if we have an Dependencies file
5918  if test -r $srcdir/Dependencies; then
5919    coin_have_externals=yes
5920  fi
5921  # Check if subversion is installed and understands https
5922  # Extract the first word of "svn", so it can be a program name with args.
5923set dummy svn; ac_word=$2
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_have_svn+set}" = set; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  if test -n "$have_svn"; then
5930  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for ac_exec_ext in '' $ac_executable_extensions; do
5938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939    ac_cv_prog_have_svn="yes"
5940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944done
5945
5946  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5947fi
5948fi
5949have_svn=$ac_cv_prog_have_svn
5950if test -n "$have_svn"; then
5951  echo "$as_me:$LINENO: result: $have_svn" >&5
5952echo "${ECHO_T}$have_svn" >&6
5953else
5954  echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956fi
5957
5958  if test x$have_svn = xyes; then
5959    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5960echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5961if test "${ac_cv_svn_understands_https+set}" = set; then
5962  echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964  svn --version > confauto.out 2>&1
5965                    if $EGREP https confauto.out >/dev/null 2>&1; then
5966                      ac_cv_svn_understands_https=yes
5967                    else
5968                      ac_cv_svn_understands_https=no
5969                      have_svn=no
5970                      ac_cv_prog_have_svn=no
5971                    fi
5972                    rm -f confauto.out
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5975echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5976  fi
5977
5978  # Find the location of the BuildTools directory
5979  BUILDTOOLSDIR=
5980  if test -r $srcdir/BuildTools/coin.m4; then
5981    BUILDTOOLSDIR=$srcdir/BuildTools
5982  else
5983    if test -r $srcdir/../BuildTools/coin.m4; then
5984      BUILDTOOLSDIR=$srcdir/../BuildTools
5985    else
5986      if test -r $srcdir/../../BuildTools/coin.m4; then
5987        BUILDTOOLSDIR=$srcdir/../../BuildTools
5988      else
5989        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5990echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5991   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5992      fi
5993    fi
5994  fi
5995
5996
5997  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5998  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5999    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6000  fi
6001
6002  # The following variable is set to the name of the directory where
6003  # the autotool scripts are located
6004
6005  AUX_DIR=$ac_aux_dir
6006fi
6007
6008# helpful variable for the base directory of this package
6009abs_source_dir=`cd $srcdir; pwd`
6010
6011
6012# Stuff for example Makefiles
6013if test x$prefix = xNONE; then
6014  full_prefix=$ac_default_prefix
6015else
6016  full_prefix=$prefix
6017fi
6018full_prefix=`cd $full_prefix ; pwd`
6019
6020abs_lib_dir=$full_prefix/lib
6021
6022abs_include_dir=$full_prefix/include
6023
6024abs_bin_dir=$full_prefix/bin
6025
6026
6027
6028if test $coin_have_externals = yes && test x$have_svn = xyes; then
6029  HAVE_EXTERNALS_TRUE=
6030  HAVE_EXTERNALS_FALSE='#'
6031else
6032  HAVE_EXTERNALS_TRUE='#'
6033  HAVE_EXTERNALS_FALSE=
6034fi
6035
6036
6037# AC_MSG_NOTICE([End automake initialisation.])
6038
6039
6040
6041LIBTOOL=
6042if test -r ../libtool; then
6043  coin_config_dir=..
6044  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6045fi
6046if test "x$LIBTOOL" = x; then
6047  if test -r ../../libtool; then
6048    coin_config_dir=../..
6049    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6050  fi
6051fi
6052
6053if test "x$LIBTOOL" = x; then
6054# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6055  # Stuff for libtool
6056  # Check whether --enable-shared or --disable-shared was given.
6057if test "${enable_shared+set}" = set; then
6058  enableval="$enable_shared"
6059  p=${PACKAGE-default}
6060    case $enableval in
6061    yes) enable_shared=yes ;;
6062    no) enable_shared=no ;;
6063    *)
6064      enable_shared=no
6065      # Look at the argument we got.  We use all the common list separators.
6066      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6067      for pkg in $enableval; do
6068        IFS="$lt_save_ifs"
6069        if test "X$pkg" = "X$p"; then
6070          enable_shared=yes
6071        fi
6072      done
6073      IFS="$lt_save_ifs"
6074      ;;
6075    esac
6076else
6077  enable_shared=yes
6078fi;
6079
6080# Check whether --enable-fast-install or --disable-fast-install was given.
6081if test "${enable_fast_install+set}" = set; then
6082  enableval="$enable_fast_install"
6083  p=${PACKAGE-default}
6084    case $enableval in
6085    yes) enable_fast_install=yes ;;
6086    no) enable_fast_install=no ;;
6087    *)
6088      enable_fast_install=no
6089      # Look at the argument we got.  We use all the common list separators.
6090      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6091      for pkg in $enableval; do
6092        IFS="$lt_save_ifs"
6093        if test "X$pkg" = "X$p"; then
6094          enable_fast_install=yes
6095        fi
6096      done
6097      IFS="$lt_save_ifs"
6098      ;;
6099    esac
6100else
6101  enable_fast_install=yes
6102fi;
6103
6104echo "$as_me:$LINENO: checking host system type" >&5
6105echo $ECHO_N "checking host system type... $ECHO_C" >&6
6106if test "${ac_cv_host+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109  ac_cv_host_alias=$host_alias
6110test -z "$ac_cv_host_alias" &&
6111  ac_cv_host_alias=$ac_cv_build_alias
6112ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6113  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6114echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6115   { (exit 1); exit 1; }; }
6116
6117fi
6118echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6119echo "${ECHO_T}$ac_cv_host" >&6
6120host=$ac_cv_host
6121host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6122host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6123host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6124
6125
6126echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6127echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6128if test "${lt_cv_path_SED+set}" = set; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131  # Loop through the user's path and test for sed and gsed.
6132# Then use that list of sed's as ones to test for truncation.
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136  IFS=$as_save_IFS
6137  test -z "$as_dir" && as_dir=.
6138  for lt_ac_prog in sed gsed; do
6139    for ac_exec_ext in '' $ac_executable_extensions; do
6140      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6141        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6142      fi
6143    done
6144  done
6145done
6146lt_ac_max=0
6147lt_ac_count=0
6148# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6149# along with /bin/sed that truncates output.
6150for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6151  test ! -f $lt_ac_sed && continue
6152  cat /dev/null > conftest.in
6153  lt_ac_count=0
6154  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6155  # Check for GNU sed and select it if it is found.
6156  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6157    lt_cv_path_SED=$lt_ac_sed
6158    break
6159  fi
6160  while true; do
6161    cat conftest.in conftest.in >conftest.tmp
6162    mv conftest.tmp conftest.in
6163    cp conftest.in conftest.nl
6164    echo >>conftest.nl
6165    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6166    cmp -s conftest.out conftest.nl || break
6167    # 10000 chars as input seems more than enough
6168    test $lt_ac_count -gt 10 && break
6169    lt_ac_count=`expr $lt_ac_count + 1`
6170    if test $lt_ac_count -gt $lt_ac_max; then
6171      lt_ac_max=$lt_ac_count
6172      lt_cv_path_SED=$lt_ac_sed
6173    fi
6174  done
6175done
6176
6177fi
6178
6179SED=$lt_cv_path_SED
6180echo "$as_me:$LINENO: result: $SED" >&5
6181echo "${ECHO_T}$SED" >&6
6182
6183
6184# Check whether --with-gnu-ld or --without-gnu-ld was given.
6185if test "${with_gnu_ld+set}" = set; then
6186  withval="$with_gnu_ld"
6187  test "$withval" = no || with_gnu_ld=yes
6188else
6189  with_gnu_ld=no
6190fi;
6191ac_prog=ld
6192if test "$GCC" = yes; then
6193  # Check if gcc -print-prog-name=ld gives a path.
6194  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6195echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6196  case $host in
6197  *-*-mingw*)
6198    # gcc leaves a trailing carriage return which upsets mingw
6199    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6200  *)
6201    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6202  esac
6203  case $ac_prog in
6204    # Accept absolute paths.
6205    [\\/]* | ?:[\\/]*)
6206      re_direlt='/[^/][^/]*/\.\./'
6207      # Canonicalize the pathname of ld
6208      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6209      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6210        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6211      done
6212      test -z "$LD" && LD="$ac_prog"
6213      ;;
6214  "")
6215    # If it fails, then pretend we aren't using GCC.
6216    ac_prog=ld
6217    ;;
6218  *)
6219    # If it is relative, then search for the first ld in PATH.
6220    with_gnu_ld=unknown
6221    ;;
6222  esac
6223elif test "$with_gnu_ld" = yes; then
6224  echo "$as_me:$LINENO: checking for GNU ld" >&5
6225echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6226else
6227  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6228echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6229fi
6230if test "${lt_cv_path_LD+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  if test -z "$LD"; then
6234  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6235  for ac_dir in $PATH; do
6236    IFS="$lt_save_ifs"
6237    test -z "$ac_dir" && ac_dir=.
6238    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6239      lt_cv_path_LD="$ac_dir/$ac_prog"
6240      # Check to see if the program is GNU ld.  I'd rather use --version,
6241      # but apparently some variants of GNU ld only accept -v.
6242      # Break only if it was the GNU/non-GNU ld that we prefer.
6243      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6244      *GNU* | *'with BFD'*)
6245        test "$with_gnu_ld" != no && break
6246        ;;
6247      *)
6248        test "$with_gnu_ld" != yes && break
6249        ;;
6250      esac
6251    fi
6252  done
6253  IFS="$lt_save_ifs"
6254else
6255  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6256fi
6257fi
6258
6259LD="$lt_cv_path_LD"
6260if test -n "$LD"; then
6261  echo "$as_me:$LINENO: result: $LD" >&5
6262echo "${ECHO_T}$LD" >&6
6263else
6264  echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266fi
6267test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6268echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6269   { (exit 1); exit 1; }; }
6270echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6271echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6272if test "${lt_cv_prog_gnu_ld+set}" = set; then
6273  echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6276case `$LD -v 2>&1 </dev/null` in
6277*GNU* | *'with BFD'*)
6278  lt_cv_prog_gnu_ld=yes
6279  ;;
6280*)
6281  lt_cv_prog_gnu_ld=no
6282  ;;
6283esac
6284fi
6285echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6286echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6287with_gnu_ld=$lt_cv_prog_gnu_ld
6288
6289
6290echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6291echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6292if test "${lt_cv_ld_reload_flag+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295  lt_cv_ld_reload_flag='-r'
6296fi
6297echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6298echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6299reload_flag=$lt_cv_ld_reload_flag
6300case $reload_flag in
6301"" | " "*) ;;
6302*) reload_flag=" $reload_flag" ;;
6303esac
6304reload_cmds='$LD$reload_flag -o $output$reload_objs'
6305case $host_os in
6306  darwin*)
6307    if test "$GCC" = yes; then
6308      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6309    else
6310      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6311    fi
6312    ;;
6313esac
6314
6315echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6316echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6317if test "${lt_cv_path_NM+set}" = set; then
6318  echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320  if test -n "$NM"; then
6321  # Let the user override the test.
6322  lt_cv_path_NM="$NM"
6323else
6324  lt_nm_to_check="${ac_tool_prefix}nm"
6325  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6326    lt_nm_to_check="$lt_nm_to_check nm"
6327  fi
6328  for lt_tmp_nm in $lt_nm_to_check; do
6329    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6330    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6331      IFS="$lt_save_ifs"
6332      test -z "$ac_dir" && ac_dir=.
6333      tmp_nm="$ac_dir/$lt_tmp_nm"
6334      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6335        # Check to see if the nm accepts a BSD-compat flag.
6336        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6337        #   nm: unknown option "B" ignored
6338        # Tru64's nm complains that /dev/null is an invalid object file
6339        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6340        */dev/null* | *'Invalid file or object type'*)
6341          lt_cv_path_NM="$tmp_nm -B"
6342          break
6343          ;;
6344        *)
6345          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6346          */dev/null*)
6347            lt_cv_path_NM="$tmp_nm -p"
6348            break
6349            ;;
6350          *)
6351            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6352            continue # so that we can try to find one that supports BSD flags
6353            ;;
6354          esac
6355          ;;
6356        esac
6357      fi
6358    done
6359    IFS="$lt_save_ifs"
6360  done
6361  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6362fi
6363fi
6364echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6365echo "${ECHO_T}$lt_cv_path_NM" >&6
6366NM="$lt_cv_path_NM"
6367
6368echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6369echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6370if test "${lt_cv_deplibs_check_method+set}" = set; then
6371  echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373  lt_cv_file_magic_cmd='$MAGIC_CMD'
6374lt_cv_file_magic_test_file=
6375lt_cv_deplibs_check_method='unknown'
6376# Need to set the preceding variable on all platforms that support
6377# interlibrary dependencies.
6378# 'none' -- dependencies not supported.
6379# `unknown' -- same as none, but documents that we really don't know.
6380# 'pass_all' -- all dependencies passed with no checks.
6381# 'test_compile' -- check by making test program.
6382# 'file_magic [[regex]]' -- check by looking for files in library path
6383# which responds to the $file_magic_cmd with a given extended regex.
6384# If you have `file' or equivalent on your system and you're not sure
6385# whether `pass_all' will *always* work, you probably want this one.
6386
6387case $host_os in
6388aix4* | aix5*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392beos*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396bsdi[45]*)
6397  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398  lt_cv_file_magic_cmd='/usr/bin/file -L'
6399  lt_cv_file_magic_test_file=/shlib/libc.so
6400  ;;
6401
6402cygwin*)
6403  # func_win32_libid is a shell function defined in ltmain.sh
6404  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405  lt_cv_file_magic_cmd='func_win32_libid'
6406  ;;
6407
6408mingw* | pw32*)
6409  # Base MSYS/MinGW do not provide the 'file' command needed by
6410  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6411  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6412  lt_cv_file_magic_cmd='$OBJDUMP -f'
6413  ;;
6414
6415darwin* | rhapsody*)
6416  lt_cv_deplibs_check_method=pass_all
6417  ;;
6418
6419freebsd* | kfreebsd*-gnu | dragonfly*)
6420  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6421    case $host_cpu in
6422    i*86 )
6423      # Not sure whether the presence of OpenBSD here was a mistake.
6424      # Let's accept both of them until this is cleared up.
6425      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6426      lt_cv_file_magic_cmd=/usr/bin/file
6427      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6428      ;;
6429    esac
6430  else
6431    lt_cv_deplibs_check_method=pass_all
6432  fi
6433  ;;
6434
6435gnu*)
6436  lt_cv_deplibs_check_method=pass_all
6437  ;;
6438
6439hpux10.20* | hpux11*)
6440  lt_cv_file_magic_cmd=/usr/bin/file
6441  case $host_cpu in
6442  ia64*)
6443    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6444    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6445    ;;
6446  hppa*64*)
6447    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]'
6448    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6449    ;;
6450  *)
6451    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6452    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6453    ;;
6454  esac
6455  ;;
6456
6457interix3*)
6458  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6459  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6460  ;;
6461
6462irix5* | irix6* | nonstopux*)
6463  case $LD in
6464  *-32|*"-32 ") libmagic=32-bit;;
6465  *-n32|*"-n32 ") libmagic=N32;;
6466  *-64|*"-64 ") libmagic=64-bit;;
6467  *) libmagic=never-match;;
6468  esac
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471
6472# This must be Linux ELF.
6473linux*)
6474  lt_cv_deplibs_check_method=pass_all
6475  ;;
6476
6477netbsd*)
6478  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6479    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480  else
6481    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6482  fi
6483  ;;
6484
6485newos6*)
6486  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6487  lt_cv_file_magic_cmd=/usr/bin/file
6488  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6489  ;;
6490
6491nto-qnx*)
6492  lt_cv_deplibs_check_method=unknown
6493  ;;
6494
6495openbsd*)
6496  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6497    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6498  else
6499    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500  fi
6501  ;;
6502
6503osf3* | osf4* | osf5*)
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507solaris*)
6508  lt_cv_deplibs_check_method=pass_all
6509  ;;
6510
6511sysv4 | sysv4.3*)
6512  case $host_vendor in
6513  motorola)
6514    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]'
6515    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6516    ;;
6517  ncr)
6518    lt_cv_deplibs_check_method=pass_all
6519    ;;
6520  sequent)
6521    lt_cv_file_magic_cmd='/bin/file'
6522    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6523    ;;
6524  sni)
6525    lt_cv_file_magic_cmd='/bin/file'
6526    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527    lt_cv_file_magic_test_file=/lib/libc.so
6528    ;;
6529  siemens)
6530    lt_cv_deplibs_check_method=pass_all
6531    ;;
6532  pc)
6533    lt_cv_deplibs_check_method=pass_all
6534    ;;
6535  esac
6536  ;;
6537
6538sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6539  lt_cv_deplibs_check_method=pass_all
6540  ;;
6541esac
6542
6543fi
6544echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6545echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6546file_magic_cmd=$lt_cv_file_magic_cmd
6547deplibs_check_method=$lt_cv_deplibs_check_method
6548test -z "$deplibs_check_method" && deplibs_check_method=unknown
6549
6550
6551
6552
6553# If no C compiler was specified, use CC.
6554LTCC=${LTCC-"$CC"}
6555
6556# If no C compiler flags were specified, use CFLAGS.
6557LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6558
6559# Allow CC to be a program name with arguments.
6560compiler=$CC
6561
6562# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6563if test "${enable_libtool_lock+set}" = set; then
6564  enableval="$enable_libtool_lock"
6565
6566fi;
6567test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6568
6569# Some flags need to be propagated to the compiler or linker for good
6570# libtool support.
6571case $host in
6572ia64-*-hpux*)
6573  # Find out which ABI we are using.
6574  echo 'int i;' > conftest.$ac_ext
6575  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576  (eval $ac_compile) 2>&5
6577  ac_status=$?
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); }; then
6580    case `/usr/bin/file conftest.$ac_objext` in
6581    *ELF-32*)
6582      HPUX_IA64_MODE="32"
6583      ;;
6584    *ELF-64*)
6585      HPUX_IA64_MODE="64"
6586      ;;
6587    esac
6588  fi
6589  rm -rf conftest*
6590  ;;
6591*-*-irix6*)
6592  # Find out which ABI we are using.
6593  echo '#line 6593 "configure"' > conftest.$ac_ext
6594  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595  (eval $ac_compile) 2>&5
6596  ac_status=$?
6597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598  (exit $ac_status); }; then
6599   if test "$lt_cv_prog_gnu_ld" = yes; then
6600    case `/usr/bin/file conftest.$ac_objext` in
6601    *32-bit*)
6602      LD="${LD-ld} -melf32bsmip"
6603      ;;
6604    *N32*)
6605      LD="${LD-ld} -melf32bmipn32"
6606      ;;
6607    *64-bit*)
6608      LD="${LD-ld} -melf64bmip"
6609      ;;
6610    esac
6611   else
6612    case `/usr/bin/file conftest.$ac_objext` in
6613    *32-bit*)
6614      LD="${LD-ld} -32"
6615      ;;
6616    *N32*)
6617      LD="${LD-ld} -n32"
6618      ;;
6619    *64-bit*)
6620      LD="${LD-ld} -64"
6621      ;;
6622    esac
6623   fi
6624  fi
6625  rm -rf conftest*
6626  ;;
6627
6628x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6629  # Find out which ABI we are using.
6630  echo 'int i;' > conftest.$ac_ext
6631  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632  (eval $ac_compile) 2>&5
6633  ac_status=$?
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); }; then
6636    case `/usr/bin/file conftest.o` in
6637    *32-bit*)
6638      case $host in
6639        x86_64-*linux*)
6640          LD="${LD-ld} -m elf_i386"
6641          ;;
6642        ppc64-*linux*|powerpc64-*linux*)
6643          LD="${LD-ld} -m elf32ppclinux"
6644          ;;
6645        s390x-*linux*)
6646          LD="${LD-ld} -m elf_s390"
6647          ;;
6648        sparc64-*linux*)
6649          LD="${LD-ld} -m elf32_sparc"
6650          ;;
6651      esac
6652      ;;
6653    *64-bit*)
6654      case $host in
6655        x86_64-*linux*)
6656          LD="${LD-ld} -m elf_x86_64"
6657          ;;
6658        ppc*-*linux*|powerpc*-*linux*)
6659          LD="${LD-ld} -m elf64ppc"
6660          ;;
6661        s390*-*linux*)
6662          LD="${LD-ld} -m elf64_s390"
6663          ;;
6664        sparc*-*linux*)
6665          LD="${LD-ld} -m elf64_sparc"
6666          ;;
6667      esac
6668      ;;
6669    esac
6670  fi
6671  rm -rf conftest*
6672  ;;
6673
6674*-*-sco3.2v5*)
6675  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6676  SAVE_CFLAGS="$CFLAGS"
6677  CFLAGS="$CFLAGS -belf"
6678  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6679echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6680if test "${lt_cv_cc_needs_belf+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  ac_ext=c
6684ac_cpp='$CPP $CPPFLAGS'
6685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687ac_compiler_gnu=$ac_cv_c_compiler_gnu
6688
6689     cat >conftest.$ac_ext <<_ACEOF
6690/* confdefs.h.  */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h.  */
6695
6696int
6697main ()
6698{
6699
6700  ;
6701  return 0;
6702}
6703_ACEOF
6704rm -f conftest.$ac_objext conftest$ac_exeext
6705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706  (eval $ac_link) 2>conftest.er1
6707  ac_status=$?
6708  grep -v '^ *+' conftest.er1 >conftest.err
6709  rm -f conftest.er1
6710  cat conftest.err >&5
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); } &&
6713         { ac_try='test -z "$ac_c_werror_flag"
6714                         || test ! -s conftest.err'
6715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716  (eval $ac_try) 2>&5
6717  ac_status=$?
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); }; } &&
6720         { ac_try='test -s conftest$ac_exeext'
6721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722  (eval $ac_try) 2>&5
6723  ac_status=$?
6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725  (exit $ac_status); }; }; then
6726  lt_cv_cc_needs_belf=yes
6727else
6728  echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731lt_cv_cc_needs_belf=no
6732fi
6733rm -f conftest.err conftest.$ac_objext \
6734      conftest$ac_exeext conftest.$ac_ext
6735     ac_ext=c
6736ac_cpp='$CPP $CPPFLAGS'
6737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740
6741fi
6742echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6743echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6744  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6745    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6746    CFLAGS="$SAVE_CFLAGS"
6747  fi
6748  ;;
6749sparc*-*solaris*)
6750  # Find out which ABI we are using.
6751  echo 'int i;' > conftest.$ac_ext
6752  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753  (eval $ac_compile) 2>&5
6754  ac_status=$?
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); }; then
6757    case `/usr/bin/file conftest.o` in
6758    *64-bit*)
6759      case $lt_cv_prog_gnu_ld in
6760      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6761      *)    LD="${LD-ld} -64" ;;
6762      esac
6763      ;;
6764    esac
6765  fi
6766  rm -rf conftest*
6767  ;;
6768
6769
6770esac
6771
6772need_locks="$enable_libtool_lock"
6773
6774
6775ac_ext=c
6776ac_cpp='$CPP $CPPFLAGS'
6777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6781echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6782# On Suns, sometimes $CPP names a directory.
6783if test -n "$CPP" && test -d "$CPP"; then
6784  CPP=
6785fi
6786if test -z "$CPP"; then
6787  if test "${ac_cv_prog_CPP+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790      # Double quotes because CPP needs to be expanded
6791    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6792    do
6793      ac_preproc_ok=false
6794for ac_c_preproc_warn_flag in '' yes
6795do
6796  # Use a header file that comes with gcc, so configuring glibc
6797  # with a fresh cross-compiler works.
6798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6799  # <limits.h> exists even on freestanding compilers.
6800  # On the NeXT, cc -E runs the code through the compiler's parser,
6801  # not just through cpp. "Syntax error" is here to catch this case.
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#ifdef __STDC__
6809# include <limits.h>
6810#else
6811# include <assert.h>
6812#endif
6813                     Syntax error
6814_ACEOF
6815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6816  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } >/dev/null; then
6823  if test -s conftest.err; then
6824    ac_cpp_err=$ac_c_preproc_warn_flag
6825    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6826  else
6827    ac_cpp_err=
6828  fi
6829else
6830  ac_cpp_err=yes
6831fi
6832if test -z "$ac_cpp_err"; then
6833  :
6834else
6835  echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838  # Broken: fails on valid input.
6839continue
6840fi
6841rm -f conftest.err conftest.$ac_ext
6842
6843  # OK, works on sane cases.  Now check whether non-existent headers
6844  # can be detected and how.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#include <ac_nonexistent.h>
6852_ACEOF
6853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855  ac_status=$?
6856  grep -v '^ *+' conftest.er1 >conftest.err
6857  rm -f conftest.er1
6858  cat conftest.err >&5
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); } >/dev/null; then
6861  if test -s conftest.err; then
6862    ac_cpp_err=$ac_c_preproc_warn_flag
6863    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6864  else
6865    ac_cpp_err=
6866  fi
6867else
6868  ac_cpp_err=yes
6869fi
6870if test -z "$ac_cpp_err"; then
6871  # Broken: success on invalid input.
6872continue
6873else
6874  echo "$as_me: failed program was:" >&5
6875sed 's/^/| /' conftest.$ac_ext >&5
6876
6877  # Passes both tests.
6878ac_preproc_ok=:
6879break
6880fi
6881rm -f conftest.err conftest.$ac_ext
6882
6883done
6884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6885rm -f conftest.err conftest.$ac_ext
6886if $ac_preproc_ok; then
6887  break
6888fi
6889
6890    done
6891    ac_cv_prog_CPP=$CPP
6892
6893fi
6894  CPP=$ac_cv_prog_CPP
6895else
6896  ac_cv_prog_CPP=$CPP
6897fi
6898echo "$as_me:$LINENO: result: $CPP" >&5
6899echo "${ECHO_T}$CPP" >&6
6900ac_preproc_ok=false
6901for ac_c_preproc_warn_flag in '' yes
6902do
6903  # Use a header file that comes with gcc, so configuring glibc
6904  # with a fresh cross-compiler works.
6905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906  # <limits.h> exists even on freestanding compilers.
6907  # On the NeXT, cc -E runs the code through the compiler's parser,
6908  # not just through cpp. "Syntax error" is here to catch this case.
6909  cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h.  */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h.  */
6915#ifdef __STDC__
6916# include <limits.h>
6917#else
6918# include <assert.h>
6919#endif
6920                     Syntax error
6921_ACEOF
6922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924  ac_status=$?
6925  grep -v '^ *+' conftest.er1 >conftest.err
6926  rm -f conftest.er1
6927  cat conftest.err >&5
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } >/dev/null; then
6930  if test -s conftest.err; then
6931    ac_cpp_err=$ac_c_preproc_warn_flag
6932    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6933  else
6934    ac_cpp_err=
6935  fi
6936else
6937  ac_cpp_err=yes
6938fi
6939if test -z "$ac_cpp_err"; then
6940  :
6941else
6942  echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945  # Broken: fails on valid input.
6946continue
6947fi
6948rm -f conftest.err conftest.$ac_ext
6949
6950  # OK, works on sane cases.  Now check whether non-existent headers
6951  # can be detected and how.
6952  cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h.  */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h.  */
6958#include <ac_nonexistent.h>
6959_ACEOF
6960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6962  ac_status=$?
6963  grep -v '^ *+' conftest.er1 >conftest.err
6964  rm -f conftest.er1
6965  cat conftest.err >&5
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); } >/dev/null; then
6968  if test -s conftest.err; then
6969    ac_cpp_err=$ac_c_preproc_warn_flag
6970    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6971  else
6972    ac_cpp_err=
6973  fi
6974else
6975  ac_cpp_err=yes
6976fi
6977if test -z "$ac_cpp_err"; then
6978  # Broken: success on invalid input.
6979continue
6980else
6981  echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984  # Passes both tests.
6985ac_preproc_ok=:
6986break
6987fi
6988rm -f conftest.err conftest.$ac_ext
6989
6990done
6991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6992rm -f conftest.err conftest.$ac_ext
6993if $ac_preproc_ok; then
6994  :
6995else
6996  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6997See \`config.log' for more details." >&5
6998echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6999See \`config.log' for more details." >&2;}
7000   { (exit 1); exit 1; }; }
7001fi
7002
7003ac_ext=c
7004ac_cpp='$CPP $CPPFLAGS'
7005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008
7009
7010echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7011echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7012if test "${ac_cv_header_stdc+set}" = set; then
7013  echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015  cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h.  */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h.  */
7021#include <stdlib.h>
7022#include <stdarg.h>
7023#include <string.h>
7024#include <float.h>
7025
7026int
7027main ()
7028{
7029
7030  ;
7031  return 0;
7032}
7033_ACEOF
7034rm -f conftest.$ac_objext
7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036  (eval $ac_compile) 2>conftest.er1
7037  ac_status=$?
7038  grep -v '^ *+' conftest.er1 >conftest.err
7039  rm -f conftest.er1
7040  cat conftest.err >&5
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); } &&
7043         { ac_try='test -z "$ac_c_werror_flag"
7044                         || test ! -s conftest.err'
7045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046  (eval $ac_try) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); }; } &&
7050         { ac_try='test -s conftest.$ac_objext'
7051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052  (eval $ac_try) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); }; }; then
7056  ac_cv_header_stdc=yes
7057else
7058  echo "$as_me: failed program was:" >&5
7059sed 's/^/| /' conftest.$ac_ext >&5
7060
7061ac_cv_header_stdc=no
7062fi
7063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064
7065if test $ac_cv_header_stdc = yes; then
7066  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7067  cat >conftest.$ac_ext <<_ACEOF
7068/* confdefs.h.  */
7069_ACEOF
7070cat confdefs.h >>conftest.$ac_ext
7071cat >>conftest.$ac_ext <<_ACEOF
7072/* end confdefs.h.  */
7073#include <string.h>
7074
7075_ACEOF
7076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7077  $EGREP "memchr" >/dev/null 2>&1; then
7078  :
7079else
7080  ac_cv_header_stdc=no
7081fi
7082rm -f conftest*
7083
7084fi
7085
7086if test $ac_cv_header_stdc = yes; then
7087  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7088  cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h.  */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h.  */
7094#include <stdlib.h>
7095
7096_ACEOF
7097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098  $EGREP "free" >/dev/null 2>&1; then
7099  :
7100else
7101  ac_cv_header_stdc=no
7102fi
7103rm -f conftest*
7104
7105fi
7106
7107if test $ac_cv_header_stdc = yes; then
7108  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7109  if test "$cross_compiling" = yes; then
7110  :
7111else
7112  cat >conftest.$ac_ext <<_ACEOF
7113/* confdefs.h.  */
7114_ACEOF
7115cat confdefs.h >>conftest.$ac_ext
7116cat >>conftest.$ac_ext <<_ACEOF
7117/* end confdefs.h.  */
7118#include <ctype.h>
7119#if ((' ' & 0x0FF) == 0x020)
7120# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122#else
7123# define ISLOWER(c) \
7124                   (('a' <= (c) && (c) <= 'i') \
7125                     || ('j' <= (c) && (c) <= 'r') \
7126                     || ('s' <= (c) && (c) <= 'z'))
7127# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7128#endif
7129
7130#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7131int
7132main ()
7133{
7134  int i;
7135  for (i = 0; i < 256; i++)
7136    if (XOR (islower (i), ISLOWER (i))
7137        || toupper (i) != TOUPPER (i))
7138      exit(2);
7139  exit (0);
7140}
7141_ACEOF
7142rm -f conftest$ac_exeext
7143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144  (eval $ac_link) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; }; then
7153  :
7154else
7155  echo "$as_me: program exited with status $ac_status" >&5
7156echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159( exit $ac_status )
7160ac_cv_header_stdc=no
7161fi
7162rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7163fi
7164fi
7165fi
7166echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7167echo "${ECHO_T}$ac_cv_header_stdc" >&6
7168if test $ac_cv_header_stdc = yes; then
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define STDC_HEADERS 1
7172_ACEOF
7173
7174fi
7175
7176# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7187                  inttypes.h stdint.h unistd.h
7188do
7189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7190echo "$as_me:$LINENO: checking for $ac_header" >&5
7191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7192if eval "test \"\${$as_ac_Header+set}\" = set"; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h.  */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h.  */
7201$ac_includes_default
7202
7203#include <$ac_header>
7204_ACEOF
7205rm -f conftest.$ac_objext
7206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207  (eval $ac_compile) 2>conftest.er1
7208  ac_status=$?
7209  grep -v '^ *+' conftest.er1 >conftest.err
7210  rm -f conftest.er1
7211  cat conftest.err >&5
7212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213  (exit $ac_status); } &&
7214         { ac_try='test -z "$ac_c_werror_flag"
7215                         || test ! -s conftest.err'
7216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217  (eval $ac_try) 2>&5
7218  ac_status=$?
7219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220  (exit $ac_status); }; } &&
7221         { ac_try='test -s conftest.$ac_objext'
7222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223  (eval $ac_try) 2>&5
7224  ac_status=$?
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); }; }; then
7227  eval "$as_ac_Header=yes"
7228else
7229  echo "$as_me: failed program was:" >&5
7230sed 's/^/| /' conftest.$ac_ext >&5
7231
7232eval "$as_ac_Header=no"
7233fi
7234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi
7236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7238if test `eval echo '${'$as_ac_Header'}'` = yes; then
7239  cat >>confdefs.h <<_ACEOF
7240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7241_ACEOF
7242
7243fi
7244
7245done
7246
7247
7248
7249for ac_header in dlfcn.h
7250do
7251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253  echo "$as_me:$LINENO: checking for $ac_header" >&5
7254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256  echo $ECHO_N "(cached) $ECHO_C" >&6
7257fi
7258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260else
7261  # Is the header compilable?
7262echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270$ac_includes_default
7271#include <$ac_header>
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275  (eval $ac_compile) 2>conftest.er1
7276  ac_status=$?
7277  grep -v '^ *+' conftest.er1 >conftest.err
7278  rm -f conftest.er1
7279  cat conftest.err >&5
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); } &&
7282         { ac_try='test -z "$ac_c_werror_flag"
7283                         || test ! -s conftest.err'
7284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285  (eval $ac_try) 2>&5
7286  ac_status=$?
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); }; } &&
7289         { ac_try='test -s conftest.$ac_objext'
7290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291  (eval $ac_try) 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); }; }; then
7295  ac_header_compiler=yes
7296else
7297  echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300ac_header_compiler=no
7301fi
7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304echo "${ECHO_T}$ac_header_compiler" >&6
7305
7306# Is the header present?
7307echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315#include <$ac_header>
7316_ACEOF
7317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319  ac_status=$?
7320  grep -v '^ *+' conftest.er1 >conftest.err
7321  rm -f conftest.er1
7322  cat conftest.err >&5
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); } >/dev/null; then
7325  if test -s conftest.err; then
7326    ac_cpp_err=$ac_c_preproc_warn_flag
7327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328  else
7329    ac_cpp_err=
7330  fi
7331else
7332  ac_cpp_err=yes
7333fi
7334if test -z "$ac_cpp_err"; then
7335  ac_header_preproc=yes
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340  ac_header_preproc=no
7341fi
7342rm -f conftest.err conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344echo "${ECHO_T}$ac_header_preproc" >&6
7345
7346# So?  What about this header?
7347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348  yes:no: )
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353    ac_header_preproc=yes
7354    ;;
7355  no:yes:* )
7356    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7359echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7360    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7363echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368    (
7369      cat <<\_ASBOX
7370## ------------------------------------ ##
7371## Report this to cbc@lists.coin-or.org ##
7372## ------------------------------------ ##
7373_ASBOX
7374    ) |
7375      sed "s/^/$as_me: WARNING:     /" >&2
7376    ;;
7377esac
7378echo "$as_me:$LINENO: checking for $ac_header" >&5
7379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383  eval "$as_ac_Header=\$ac_header_preproc"
7384fi
7385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388fi
7389if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390  cat >>confdefs.h <<_ACEOF
7391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392_ACEOF
7393
7394fi
7395
7396done
7397
7398
7399
7400if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7401    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7402    (test "X$CXX" != "Xg++"))) ; then
7403  ac_ext=cc
7404ac_cpp='$CXXCPP $CPPFLAGS'
7405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7408echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7409echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7410if test -z "$CXXCPP"; then
7411  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7412  echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414      # Double quotes because CXXCPP needs to be expanded
7415    for CXXCPP in "$CXX -E" "/lib/cpp"
7416    do
7417      ac_preproc_ok=false
7418for ac_cxx_preproc_warn_flag in '' yes
7419do
7420  # Use a header file that comes with gcc, so configuring glibc
7421  # with a fresh cross-compiler works.
7422  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7423  # <limits.h> exists even on freestanding compilers.
7424  # On the NeXT, cc -E runs the code through the compiler's parser,
7425  # not just through cpp. "Syntax error" is here to catch this case.
7426  cat >conftest.$ac_ext <<_ACEOF
7427/* confdefs.h.  */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h.  */
7432#ifdef __STDC__
7433# include <limits.h>
7434#else
7435# include <assert.h>
7436#endif
7437                     Syntax error
7438_ACEOF
7439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7440  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7441  ac_status=$?
7442  grep -v '^ *+' conftest.er1 >conftest.err
7443  rm -f conftest.er1
7444  cat conftest.err >&5
7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446  (exit $ac_status); } >/dev/null; then
7447  if test -s conftest.err; then
7448    ac_cpp_err=$ac_cxx_preproc_warn_flag
7449    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7450  else
7451    ac_cpp_err=
7452  fi
7453else
7454  ac_cpp_err=yes
7455fi
7456if test -z "$ac_cpp_err"; then
7457  :
7458else
7459  echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462  # Broken: fails on valid input.
7463continue
7464fi
7465rm -f conftest.err conftest.$ac_ext
7466
7467  # OK, works on sane cases.  Now check whether non-existent headers
7468  # can be detected and how.
7469  cat >conftest.$ac_ext <<_ACEOF
7470/* confdefs.h.  */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h.  */
7475#include <ac_nonexistent.h>
7476_ACEOF
7477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7478  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7479  ac_status=$?
7480  grep -v '^ *+' conftest.er1 >conftest.err
7481  rm -f conftest.er1
7482  cat conftest.err >&5
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); } >/dev/null; then
7485  if test -s conftest.err; then
7486    ac_cpp_err=$ac_cxx_preproc_warn_flag
7487    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7488  else
7489    ac_cpp_err=
7490  fi
7491else
7492  ac_cpp_err=yes
7493fi
7494if test -z "$ac_cpp_err"; then
7495  # Broken: success on invalid input.
7496continue
7497else
7498  echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
7500
7501  # Passes both tests.
7502ac_preproc_ok=:
7503break
7504fi
7505rm -f conftest.err conftest.$ac_ext
7506
7507done
7508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7509rm -f conftest.err conftest.$ac_ext
7510if $ac_preproc_ok; then
7511  break
7512fi
7513
7514    done
7515    ac_cv_prog_CXXCPP=$CXXCPP
7516
7517fi
7518  CXXCPP=$ac_cv_prog_CXXCPP
7519else
7520  ac_cv_prog_CXXCPP=$CXXCPP
7521fi
7522echo "$as_me:$LINENO: result: $CXXCPP" >&5
7523echo "${ECHO_T}$CXXCPP" >&6
7524ac_preproc_ok=false
7525for ac_cxx_preproc_warn_flag in '' yes
7526do
7527  # Use a header file that comes with gcc, so configuring glibc
7528  # with a fresh cross-compiler works.
7529  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7530  # <limits.h> exists even on freestanding compilers.
7531  # On the NeXT, cc -E runs the code through the compiler's parser,
7532  # not just through cpp. "Syntax error" is here to catch this case.
7533  cat >conftest.$ac_ext <<_ACEOF
7534/* confdefs.h.  */
7535_ACEOF
7536cat confdefs.h >>conftest.$ac_ext
7537cat >>conftest.$ac_ext <<_ACEOF
7538/* end confdefs.h.  */
7539#ifdef __STDC__
7540# include <limits.h>
7541#else
7542# include <assert.h>
7543#endif
7544                     Syntax error
7545_ACEOF
7546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7547  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7548  ac_status=$?
7549  grep -v '^ *+' conftest.er1 >conftest.err
7550  rm -f conftest.er1
7551  cat conftest.err >&5
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); } >/dev/null; then
7554  if test -s conftest.err; then
7555    ac_cpp_err=$ac_cxx_preproc_warn_flag
7556    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7557  else
7558    ac_cpp_err=
7559  fi
7560else
7561  ac_cpp_err=yes
7562fi
7563if test -z "$ac_cpp_err"; then
7564  :
7565else
7566  echo "$as_me: failed program was:" >&5
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569  # Broken: fails on valid input.
7570continue
7571fi
7572rm -f conftest.err conftest.$ac_ext
7573
7574  # OK, works on sane cases.  Now check whether non-existent headers
7575  # can be detected and how.
7576  cat >conftest.$ac_ext <<_ACEOF
7577/* confdefs.h.  */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h.  */
7582#include <ac_nonexistent.h>
7583_ACEOF
7584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586  ac_status=$?
7587  grep -v '^ *+' conftest.er1 >conftest.err
7588  rm -f conftest.er1
7589  cat conftest.err >&5
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); } >/dev/null; then
7592  if test -s conftest.err; then
7593    ac_cpp_err=$ac_cxx_preproc_warn_flag
7594    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7595  else
7596    ac_cpp_err=
7597  fi
7598else
7599  ac_cpp_err=yes
7600fi
7601if test -z "$ac_cpp_err"; then
7602  # Broken: success on invalid input.
7603continue
7604else
7605  echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608  # Passes both tests.
7609ac_preproc_ok=:
7610break
7611fi
7612rm -f conftest.err conftest.$ac_ext
7613
7614done
7615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7616rm -f conftest.err conftest.$ac_ext
7617if $ac_preproc_ok; then
7618  :
7619else
7620  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7621See \`config.log' for more details." >&5
7622echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7623See \`config.log' for more details." >&2;}
7624   { (exit 1); exit 1; }; }
7625fi
7626
7627ac_ext=cc
7628ac_cpp='$CXXCPP $CPPFLAGS'
7629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7632
7633fi
7634
7635
7636# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7637
7638# find the maximum length of command line arguments
7639echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7640echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7641if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644    i=0
7645  teststring="ABCD"
7646
7647  case $build_os in
7648  msdosdjgpp*)
7649    # On DJGPP, this test can blow up pretty badly due to problems in libc
7650    # (any single argument exceeding 2000 bytes causes a buffer overrun
7651    # during glob expansion).  Even if it were fixed, the result of this
7652    # check would be larger than it should be.
7653    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7654    ;;
7655
7656  gnu*)
7657    # Under GNU Hurd, this test is not required because there is
7658    # no limit to the length of command line arguments.
7659    # Libtool will interpret -1 as no limit whatsoever
7660    lt_cv_sys_max_cmd_len=-1;
7661    ;;
7662
7663  cygwin* | mingw*)
7664    # On Win9x/ME, this test blows up -- it succeeds, but takes
7665    # about 5 minutes as the teststring grows exponentially.
7666    # Worse, since 9x/ME are not pre-emptively multitasking,
7667    # you end up with a "frozen" computer, even though with patience
7668    # the test eventually succeeds (with a max line length of 256k).
7669    # Instead, let's just punt: use the minimum linelength reported by
7670    # all of the supported platforms: 8192 (on NT/2K/XP).
7671    lt_cv_sys_max_cmd_len=8192;
7672    ;;
7673
7674  amigaos*)
7675    # On AmigaOS with pdksh, this test takes hours, literally.
7676    # So we just punt and use a minimum line length of 8192.
7677    lt_cv_sys_max_cmd_len=8192;
7678    ;;
7679
7680  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7681    # This has been around since 386BSD, at least.  Likely further.
7682    if test -x /sbin/sysctl; then
7683      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7684    elif test -x /usr/sbin/sysctl; then
7685      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7686    else
7687      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7688    fi
7689    # And add a safety zone
7690    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7691    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7692    ;;
7693
7694  interix*)
7695    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7696    lt_cv_sys_max_cmd_len=196608
7697    ;;
7698
7699  osf*)
7700    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7701    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7702    # nice to cause kernel panics so lets avoid the loop below.
7703    # First set a reasonable default.
7704    lt_cv_sys_max_cmd_len=16384
7705    #
7706    if test -x /sbin/sysconfig; then
7707      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7708        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7709      esac
7710    fi
7711    ;;
7712  sco3.2v5*)
7713    lt_cv_sys_max_cmd_len=102400
7714    ;;
7715  sysv5* | sco5v6* | sysv4.2uw2*)
7716    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7717    if test -n "$kargmax"; then
7718      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7719    else
7720      lt_cv_sys_max_cmd_len=32768
7721    fi
7722    ;;
7723  *)
7724    # If test is not a shell built-in, we'll probably end up computing a
7725    # maximum length that is only half of the actual maximum length, but
7726    # we can't tell.
7727    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7728    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7729               = "XX$teststring") >/dev/null 2>&1 &&
7730            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7731            lt_cv_sys_max_cmd_len=$new_result &&
7732            test $i != 17 # 1/2 MB should be enough
7733    do
7734      i=`expr $i + 1`
7735      teststring=$teststring$teststring
7736    done
7737    teststring=
7738    # Add a significant safety factor because C++ compilers can tack on massive
7739    # amounts of additional arguments before passing them to the linker.
7740    # It appears as though 1/2 is a usable value.
7741    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7742    ;;
7743  esac
7744
7745fi
7746
7747if test -n $lt_cv_sys_max_cmd_len ; then
7748  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7749echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7750else
7751  echo "$as_me:$LINENO: result: none" >&5
7752echo "${ECHO_T}none" >&6
7753fi
7754
7755
7756
7757
7758# Check for command to grab the raw symbol name followed by C symbol from nm.
7759echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7760echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7761if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764
7765# These are sane defaults that work on at least a few old systems.
7766# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7767
7768# Character class describing NM global symbol codes.
7769symcode='[BCDEGRST]'
7770
7771# Regexp to match symbols that can be accessed directly from C.
7772sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7773
7774# Transform an extracted symbol line into a proper C declaration
7775lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7776
7777# Transform an extracted symbol line into symbol name and symbol address
7778lt_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'"
7779
7780# Define system-specific variables.
7781case $host_os in
7782aix*)
7783  symcode='[BCDT]'
7784  ;;
7785cygwin* | mingw* | pw32*)
7786  symcode='[ABCDGISTW]'
7787  ;;
7788hpux*) # Its linker distinguishes data from code symbols
7789  if test "$host_cpu" = ia64; then
7790    symcode='[ABCDEGRST]'
7791  fi
7792  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7793  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'"
7794  ;;
7795linux*)
7796  if test "$host_cpu" = ia64; then
7797    symcode='[ABCDGIRSTW]'
7798    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7799    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'"
7800  fi
7801  ;;
7802irix* | nonstopux*)
7803  symcode='[BCDEGRST]'
7804  ;;
7805osf*)
7806  symcode='[BCDEGQRST]'
7807  ;;
7808solaris*)
7809  symcode='[BDRT]'
7810  ;;
7811sco3.2v5*)
7812  symcode='[DT]'
7813  ;;
7814sysv4.2uw2*)
7815  symcode='[DT]'
7816  ;;
7817sysv5* | sco5v6* | unixware* | OpenUNIX*)
7818  symcode='[ABDT]'
7819  ;;
7820sysv4)
7821  symcode='[DFNSTU]'
7822  ;;
7823esac
7824
7825# Handle CRLF in mingw tool chain
7826opt_cr=
7827case $build_os in
7828mingw*)
7829  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7830  ;;
7831esac
7832
7833# If we're using GNU nm, then use its standard symbol codes.
7834case `$NM -V 2>&1` in
7835*GNU* | *'with BFD'*)
7836  symcode='[ABCDGIRSTW]' ;;
7837esac
7838
7839# Try without a prefix undercore, then with it.
7840for ac_symprfx in "" "_"; do
7841
7842  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7843  symxfrm="\\1 $ac_symprfx\\2 \\2"
7844
7845  # Write the raw and C identifiers.
7846  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7847
7848  # Check to see that the pipe works correctly.
7849  pipe_works=no
7850
7851  rm -f conftest*
7852  cat > conftest.$ac_ext <<EOF
7853#ifdef __cplusplus
7854extern "C" {
7855#endif
7856char nm_test_var;
7857void nm_test_func(){}
7858#ifdef __cplusplus
7859}
7860#endif
7861int main(){nm_test_var='a';nm_test_func();return(0);}
7862EOF
7863
7864  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7865  (eval $ac_compile) 2>&5
7866  ac_status=$?
7867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868  (exit $ac_status); }; then
7869    # Now try to grab the symbols.
7870    nlist=conftest.nm
7871    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7872  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); } && test -s "$nlist"; then
7876      # Try sorting and uniquifying the output.
7877      if sort "$nlist" | uniq > "$nlist"T; then
7878        mv -f "$nlist"T "$nlist"
7879      else
7880        rm -f "$nlist"T
7881      fi
7882
7883      # Make sure that we snagged all the symbols we need.
7884      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7885        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7886          cat <<EOF > conftest.$ac_ext
7887#ifdef __cplusplus
7888extern "C" {
7889#endif
7890
7891EOF
7892          # Now generate the symbol file.
7893          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7894
7895          cat <<EOF >> conftest.$ac_ext
7896#if defined (__STDC__) && __STDC__
7897# define lt_ptr_t void *
7898#else
7899# define lt_ptr_t char *
7900# define const
7901#endif
7902
7903/* The mapping between symbol names and symbols. */
7904const struct {
7905  const char *name;
7906  lt_ptr_t address;
7907}
7908lt_preloaded_symbols[] =
7909{
7910EOF
7911          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7912          cat <<\EOF >> conftest.$ac_ext
7913  {0, (lt_ptr_t) 0}
7914};
7915
7916#ifdef __cplusplus
7917}
7918#endif
7919EOF
7920          # Now try linking the two files.
7921          mv conftest.$ac_objext conftstm.$ac_objext
7922          lt_save_LIBS="$LIBS"
7923          lt_save_CFLAGS="$CFLAGS"
7924          LIBS="conftstm.$ac_objext"
7925          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7926          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7927  (eval $ac_link) 2>&5
7928  ac_status=$?
7929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7931            pipe_works=yes
7932          fi
7933          LIBS="$lt_save_LIBS"
7934          CFLAGS="$lt_save_CFLAGS"
7935        else
7936          echo "cannot find nm_test_func in $nlist" >&5
7937        fi
7938      else
7939        echo "cannot find nm_test_var in $nlist" >&5
7940      fi
7941    else
7942      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7943    fi
7944  else
7945    echo "$progname: failed program was:" >&5
7946    cat conftest.$ac_ext >&5
7947  fi
7948  rm -f conftest* conftst*
7949
7950  # Do not use the global_symbol_pipe unless it works.
7951  if test "$pipe_works" = yes; then
7952    break
7953  else
7954    lt_cv_sys_global_symbol_pipe=
7955  fi
7956done
7957
7958fi
7959
7960if test -z "$lt_cv_sys_global_symbol_pipe"; then
7961  lt_cv_sys_global_symbol_to_cdecl=
7962fi
7963if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7964  echo "$as_me:$LINENO: result: failed" >&5
7965echo "${ECHO_T}failed" >&6
7966else
7967  echo "$as_me:$LINENO: result: ok" >&5
7968echo "${ECHO_T}ok" >&6
7969fi
7970
7971echo "$as_me:$LINENO: checking for objdir" >&5
7972echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7973if test "${lt_cv_objdir+set}" = set; then
7974  echo $ECHO_N "(cached) $ECHO_C" >&6
7975else
7976  rm -f .libs 2>/dev/null
7977mkdir .libs 2>/dev/null
7978if test -d .libs; then
7979  lt_cv_objdir=.libs
7980else
7981  # MS-DOS does not allow filenames that begin with a dot.
7982  lt_cv_objdir=_libs
7983fi
7984rmdir .libs 2>/dev/null
7985fi
7986echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7987echo "${ECHO_T}$lt_cv_objdir" >&6
7988objdir=$lt_cv_objdir
7989
7990
7991
7992
7993
7994case $host_os in
7995aix3*)
7996  # AIX sometimes has problems with the GCC collect2 program.  For some
7997  # reason, if we set the COLLECT_NAMES environment variable, the problems
7998  # vanish in a puff of smoke.
7999  if test "X${COLLECT_NAMES+set}" != Xset; then
8000    COLLECT_NAMES=
8001    export COLLECT_NAMES
8002  fi
8003  ;;
8004esac
8005
8006# Sed substitution that helps us do robust quoting.  It backslashifies
8007# metacharacters that are still active within double-quoted strings.
8008Xsed='sed -e 1s/^X//'
8009sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8010
8011# Same as above, but do not quote variable references.
8012double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8013
8014# Sed substitution to delay expansion of an escaped shell variable in a
8015# double_quote_subst'ed string.
8016delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8017
8018# Sed substitution to avoid accidental globbing in evaled expressions
8019no_glob_subst='s/\*/\\\*/g'
8020
8021# Constants:
8022rm="rm -f"
8023
8024# Global variables:
8025default_ofile=libtool
8026can_build_shared=yes
8027
8028# All known linkers require a `.a' archive for static linking (except MSVC,
8029# which needs '.lib').
8030libext=a
8031ltmain="$ac_aux_dir/ltmain.sh"
8032ofile="$default_ofile"
8033with_gnu_ld="$lt_cv_prog_gnu_ld"
8034
8035if test -n "$ac_tool_prefix"; then
8036  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8037set dummy ${ac_tool_prefix}ar; ac_word=$2
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040if test "${ac_cv_prog_AR+set}" = set; then
8041  echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043  if test -n "$AR"; then
8044  ac_cv_prog_AR="$AR" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049  IFS=$as_save_IFS
8050  test -z "$as_dir" && as_dir=.
8051  for ac_exec_ext in '' $ac_executable_extensions; do
8052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053    ac_cv_prog_AR="${ac_tool_prefix}ar"
8054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055    break 2
8056  fi
8057done
8058done
8059
8060fi
8061fi
8062AR=$ac_cv_prog_AR
8063if test -n "$AR"; then
8064  echo "$as_me:$LINENO: result: $AR" >&5
8065echo "${ECHO_T}$AR" >&6
8066else
8067  echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069fi
8070
8071fi
8072if test -z "$ac_cv_prog_AR"; then
8073  ac_ct_AR=$AR
8074  # Extract the first word of "ar", so it can be a program name with args.
8075set dummy ar; ac_word=$2
8076echo "$as_me:$LINENO: checking for $ac_word" >&5
8077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8078if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  if test -n "$ac_ct_AR"; then
8082  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  test -z "$as_dir" && as_dir=.
8089  for ac_exec_ext in '' $ac_executable_extensions; do
8090  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091    ac_cv_prog_ac_ct_AR="ar"
8092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093    break 2
8094  fi
8095done
8096done
8097
8098  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8099fi
8100fi
8101ac_ct_AR=$ac_cv_prog_ac_ct_AR
8102if test -n "$ac_ct_AR"; then
8103  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8104echo "${ECHO_T}$ac_ct_AR" >&6
8105else
8106  echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108fi
8109
8110  AR=$ac_ct_AR
8111else
8112  AR="$ac_cv_prog_AR"
8113fi
8114
8115if test -n "$ac_tool_prefix"; then
8116  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8117set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8118echo "$as_me:$LINENO: checking for $ac_word" >&5
8119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120if test "${ac_cv_prog_RANLIB+set}" = set; then
8121  echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123  if test -n "$RANLIB"; then
8124  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129  IFS=$as_save_IFS
8130  test -z "$as_dir" && as_dir=.
8131  for ac_exec_ext in '' $ac_executable_extensions; do
8132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135    break 2
8136  fi
8137done
8138done
8139
8140fi
8141fi
8142RANLIB=$ac_cv_prog_RANLIB
8143if test -n "$RANLIB"; then
8144  echo "$as_me:$LINENO: result: $RANLIB" >&5
8145echo "${ECHO_T}$RANLIB" >&6
8146else
8147  echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149fi
8150
8151fi
8152if test -z "$ac_cv_prog_RANLIB"; then
8153  ac_ct_RANLIB=$RANLIB
8154  # Extract the first word of "ranlib", so it can be a program name with args.
8155set dummy ranlib; ac_word=$2
8156echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8158if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  if test -n "$ac_ct_RANLIB"; then
8162  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169  for ac_exec_ext in '' $ac_executable_extensions; do
8170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171    ac_cv_prog_ac_ct_RANLIB="ranlib"
8172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176done
8177
8178  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8179fi
8180fi
8181ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8182if test -n "$ac_ct_RANLIB"; then
8183  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8184echo "${ECHO_T}$ac_ct_RANLIB" >&6
8185else
8186  echo "$as_me:$LINENO: result: no" >&5
8187echo "${ECHO_T}no" >&6
8188fi
8189
8190  RANLIB=$ac_ct_RANLIB
8191else
8192  RANLIB="$ac_cv_prog_RANLIB"
8193fi
8194
8195if test -n "$ac_tool_prefix"; then
8196  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8197set dummy ${ac_tool_prefix}strip; ac_word=$2
8198echo "$as_me:$LINENO: checking for $ac_word" >&5
8199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200if test "${ac_cv_prog_STRIP+set}" = set; then
8201  echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203  if test -n "$STRIP"; then
8204  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8205else
8206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209  IFS=$as_save_IFS
8210  test -z "$as_dir" && as_dir=.
8211  for ac_exec_ext in '' $ac_executable_extensions; do
8212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215    break 2
8216  fi
8217done
8218done
8219
8220fi
8221fi
8222STRIP=$ac_cv_prog_STRIP
8223if test -n "$STRIP"; then
8224  echo "$as_me:$LINENO: result: $STRIP" >&5
8225echo "${ECHO_T}$STRIP" >&6
8226else
8227  echo "$as_me:$LINENO: result: no" >&5
8228echo "${ECHO_T}no" >&6
8229fi
8230
8231fi
8232if test -z "$ac_cv_prog_STRIP"; then
8233  ac_ct_STRIP=$STRIP
8234  # Extract the first word of "strip", so it can be a program name with args.
8235set dummy strip; ac_word=$2
8236echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8238if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8239  echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241  if test -n "$ac_ct_STRIP"; then
8242  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8243else
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247  IFS=$as_save_IFS
8248  test -z "$as_dir" && as_dir=.
8249  for ac_exec_ext in '' $ac_executable_extensions; do
8250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251    ac_cv_prog_ac_ct_STRIP="strip"
8252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253    break 2
8254  fi
8255done
8256done
8257
8258  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8259fi
8260fi
8261ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8262if test -n "$ac_ct_STRIP"; then
8263  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8264echo "${ECHO_T}$ac_ct_STRIP" >&6
8265else
8266  echo "$as_me:$LINENO: result: no" >&5
8267echo "${ECHO_T}no" >&6
8268fi
8269
8270  STRIP=$ac_ct_STRIP
8271else
8272  STRIP="$ac_cv_prog_STRIP"
8273fi
8274
8275
8276old_CC="$CC"
8277old_CFLAGS="$CFLAGS"
8278
8279# Set sane defaults for various variables
8280test -z "$AR" && AR=ar
8281test -z "$AR_FLAGS" && AR_FLAGS=cru
8282test -z "$AS" && AS=as
8283test -z "$CC" && CC=cc
8284test -z "$LTCC" && LTCC=$CC
8285test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8286test -z "$DLLTOOL" && DLLTOOL=dlltool
8287test -z "$LD" && LD=ld
8288test -z "$LN_S" && LN_S="ln -s"
8289test -z "$MAGIC_CMD" && MAGIC_CMD=file
8290test -z "$NM" && NM=nm
8291test -z "$SED" && SED=sed
8292test -z "$OBJDUMP" && OBJDUMP=objdump
8293test -z "$RANLIB" && RANLIB=:
8294test -z "$STRIP" && STRIP=:
8295test -z "$ac_objext" && ac_objext=o
8296
8297# Determine commands to create old-style static archives.
8298old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8299old_postinstall_cmds='chmod 644 $oldlib'
8300old_postuninstall_cmds=
8301
8302if test -n "$RANLIB"; then
8303  case $host_os in
8304  openbsd*)
8305    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8306    ;;
8307  *)
8308    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8309    ;;
8310  esac
8311  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8312fi
8313
8314for cc_temp in $compiler""; do
8315  case $cc_temp in
8316    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8317    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8318    \-*) ;;
8319    *) break;;
8320  esac
8321done
8322cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8323
8324
8325# Only perform the check for file, if the check method requires it
8326case $deplibs_check_method in
8327file_magic*)
8328  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8329    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8330echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8331if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8332  echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334  case $MAGIC_CMD in
8335[\\/*] |  ?:[\\/]*)
8336  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8337  ;;
8338*)
8339  lt_save_MAGIC_CMD="$MAGIC_CMD"
8340  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8341  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8342  for ac_dir in $ac_dummy; do
8343    IFS="$lt_save_ifs"
8344    test -z "$ac_dir" && ac_dir=.
8345    if test -f $ac_dir/${ac_tool_prefix}file; then
8346      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8347      if test -n "$file_magic_test_file"; then
8348        case $deplibs_check_method in
8349        "file_magic "*)
8350          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8351          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8353            $EGREP "$file_magic_regex" > /dev/null; then
8354            :
8355          else
8356            cat <<EOF 1>&2
8357
8358*** Warning: the command libtool uses to detect shared libraries,
8359*** $file_magic_cmd, produces output that libtool cannot recognize.
8360*** The result is that libtool may fail to recognize shared libraries
8361*** as such.  This will affect the creation of libtool libraries that
8362*** depend on shared libraries, but programs linked with such libtool
8363*** libraries will work regardless of this problem.  Nevertheless, you
8364*** may want to report the problem to your system manager and/or to
8365*** bug-libtool@gnu.org
8366
8367EOF
8368          fi ;;
8369        esac
8370      fi
8371      break
8372    fi
8373  done
8374  IFS="$lt_save_ifs"
8375  MAGIC_CMD="$lt_save_MAGIC_CMD"
8376  ;;
8377esac
8378fi
8379
8380MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381if test -n "$MAGIC_CMD"; then
8382  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8383echo "${ECHO_T}$MAGIC_CMD" >&6
8384else
8385  echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
8387fi
8388
8389if test -z "$lt_cv_path_MAGIC_CMD"; then
8390  if test -n "$ac_tool_prefix"; then
8391    echo "$as_me:$LINENO: checking for file" >&5
8392echo $ECHO_N "checking for file... $ECHO_C" >&6
8393if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8394  echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396  case $MAGIC_CMD in
8397[\\/*] |  ?:[\\/]*)
8398  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8399  ;;
8400*)
8401  lt_save_MAGIC_CMD="$MAGIC_CMD"
8402  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8403  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8404  for ac_dir in $ac_dummy; do
8405    IFS="$lt_save_ifs"
8406    test -z "$ac_dir" && ac_dir=.
8407    if test -f $ac_dir/file; then
8408      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8409      if test -n "$file_magic_test_file"; then
8410        case $deplibs_check_method in
8411        "file_magic "*)
8412          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8414          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8415            $EGREP "$file_magic_regex" > /dev/null; then
8416            :
8417          else
8418            cat <<EOF 1>&2
8419
8420*** Warning: the command libtool uses to detect shared libraries,
8421*** $file_magic_cmd, produces output that libtool cannot recognize.
8422*** The result is that libtool may fail to recognize shared libraries
8423*** as such.  This will affect the creation of libtool libraries that
8424*** depend on shared libraries, but programs linked with such libtool
8425*** libraries will work regardless of this problem.  Nevertheless, you
8426*** may want to report the problem to your system manager and/or to
8427*** bug-libtool@gnu.org
8428
8429EOF
8430          fi ;;
8431        esac
8432      fi
8433      break
8434    fi
8435  done
8436  IFS="$lt_save_ifs"
8437  MAGIC_CMD="$lt_save_MAGIC_CMD"
8438  ;;
8439esac
8440fi
8441
8442MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443if test -n "$MAGIC_CMD"; then
8444  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8445echo "${ECHO_T}$MAGIC_CMD" >&6
8446else
8447  echo "$as_me:$LINENO: result: no" >&5
8448echo "${ECHO_T}no" >&6
8449fi
8450
8451  else
8452    MAGIC_CMD=:
8453  fi
8454fi
8455
8456  fi
8457  ;;
8458esac
8459
8460enable_dlopen=no
8461enable_win32_dll=no
8462
8463# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8464if test "${enable_libtool_lock+set}" = set; then
8465  enableval="$enable_libtool_lock"
8466
8467fi;
8468test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8469
8470
8471# Check whether --with-pic or --without-pic was given.
8472if test "${with_pic+set}" = set; then
8473  withval="$with_pic"
8474  pic_mode="$withval"
8475else
8476  pic_mode=default
8477fi;
8478test -z "$pic_mode" && pic_mode=default
8479
8480# Use C for the default configuration in the libtool script
8481tagname=
8482lt_save_CC="$CC"
8483ac_ext=c
8484ac_cpp='$CPP $CPPFLAGS'
8485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8487ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488
8489
8490# Source file extension for C test sources.
8491ac_ext=c
8492
8493# Object file extension for compiled C test sources.
8494objext=o
8495objext=$objext
8496
8497# Code to be used in simple compile tests
8498lt_simple_compile_test_code="int some_variable = 0;\n"
8499
8500# Code to be used in simple link tests
8501lt_simple_link_test_code='int main(){return(0);}\n'
8502
8503
8504# If no C compiler was specified, use CC.
8505LTCC=${LTCC-"$CC"}
8506
8507# If no C compiler flags were specified, use CFLAGS.
8508LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509
8510# Allow CC to be a program name with arguments.
8511compiler=$CC
8512
8513
8514# save warnings/boilerplate of simple test code
8515ac_outfile=conftest.$ac_objext
8516printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8517eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8518_lt_compiler_boilerplate=`cat conftest.err`
8519$rm conftest*
8520
8521ac_outfile=conftest.$ac_objext
8522printf "$lt_simple_link_test_code" >conftest.$ac_ext
8523eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524_lt_linker_boilerplate=`cat conftest.err`
8525$rm conftest*
8526
8527
8528## CAVEAT EMPTOR:
8529## There is no encapsulation within the following macros, do not change
8530## the running order or otherwise move them around unless you know exactly
8531## what you are doing...
8532
8533lt_prog_compiler_no_builtin_flag=
8534
8535if test "$GCC" = yes; then
8536  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8537
8538
8539echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8541if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8542  echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544  lt_cv_prog_compiler_rtti_exceptions=no
8545  ac_outfile=conftest.$ac_objext
8546   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8547   lt_compiler_flag="-fno-rtti -fno-exceptions"
8548   # Insert the option either (1) after the last *FLAGS variable, or
8549   # (2) before a word containing "conftest.", or (3) at the end.
8550   # Note that $ac_compile itself does not contain backslashes and begins
8551   # with a dollar sign (not a hyphen), so the echo should work correctly.
8552   # The option is referenced via a variable to avoid confusing sed.
8553   lt_compile=`echo "$ac_compile" | $SED \
8554   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556   -e 's:$: $lt_compiler_flag:'`
8557   (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
8558   (eval "$lt_compile" 2>conftest.err)
8559   ac_status=$?
8560   cat conftest.err >&5
8561   echo "$as_me:8561: \$? = $ac_status" >&5
8562   if (exit $ac_status) && test -s "$ac_outfile"; then
8563     # The compiler can only warn and ignore the option if not recognized
8564     # So say no if there are warnings other than the usual output.
8565     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8566     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568       lt_cv_prog_compiler_rtti_exceptions=yes
8569     fi
8570   fi
8571   $rm conftest*
8572
8573fi
8574echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8576
8577if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579else
8580    :
8581fi
8582
8583fi
8584
8585lt_prog_compiler_wl=
8586lt_prog_compiler_pic=
8587lt_prog_compiler_static=
8588
8589echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8591
8592  if test "$GCC" = yes; then
8593    lt_prog_compiler_wl='-Wl,'
8594    lt_prog_compiler_static='-static'
8595
8596    case $host_os in
8597      aix*)
8598      # All AIX code is PIC.
8599      if test "$host_cpu" = ia64; then
8600        # AIX 5 now supports IA64 processor
8601        lt_prog_compiler_static='-Bstatic'
8602      fi
8603      ;;
8604
8605    amigaos*)
8606      # FIXME: we need at least 68020 code to build shared libraries, but
8607      # adding the `-m68020' flag to GCC prevents building anything better,
8608      # like `-m68040'.
8609      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8610      ;;
8611
8612    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8613      # PIC is the default for these OSes.
8614      ;;
8615
8616    mingw* | pw32* | os2*)
8617      # This hack is so that the source file can tell whether it is being
8618      # built for inclusion in a dll (and should export symbols for example).
8619      lt_prog_compiler_pic='-DDLL_EXPORT'
8620      ;;
8621
8622    darwin* | rhapsody*)
8623      # PIC is the default on this platform
8624      # Common symbols not allowed in MH_DYLIB files
8625      lt_prog_compiler_pic='-fno-common'
8626      ;;
8627
8628    interix3*)
8629      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8630      # Instead, we relocate shared libraries at runtime.
8631      ;;
8632
8633    msdosdjgpp*)
8634      # Just because we use GCC doesn't mean we suddenly get shared libraries
8635      # on systems that don't support them.
8636      lt_prog_compiler_can_build_shared=no
8637      enable_shared=no
8638      ;;
8639
8640    sysv4*MP*)
8641      if test -d /usr/nec; then
8642        lt_prog_compiler_pic=-Kconform_pic
8643      fi
8644      ;;
8645
8646    hpux*)
8647      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8648      # not for PA HP-UX.
8649      case $host_cpu in
8650      hppa*64*|ia64*)
8651        # +Z the default
8652        ;;
8653      *)
8654        lt_prog_compiler_pic='-fPIC'
8655        ;;
8656      esac
8657      ;;
8658
8659    *)
8660      lt_prog_compiler_pic='-fPIC'
8661      ;;
8662    esac
8663  else
8664    # PORTME Check for flag to pass linker flags through the system compiler.
8665    case $host_os in
8666    aix*)
8667      lt_prog_compiler_wl='-Wl,'
8668      if test "$host_cpu" = ia64; then
8669        # AIX 5 now supports IA64 processor
8670        lt_prog_compiler_static='-Bstatic'
8671      else
8672        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8673      fi
8674      ;;
8675      darwin*)
8676        # PIC is the default on this platform
8677        # Common symbols not allowed in MH_DYLIB files
8678       case $cc_basename in
8679         xlc*)
8680         lt_prog_compiler_pic='-qnocommon'
8681         lt_prog_compiler_wl='-Wl,'
8682         ;;
8683       esac
8684       ;;
8685
8686    mingw* | pw32* | os2*)
8687      # This hack is so that the source file can tell whether it is being
8688      # built for inclusion in a dll (and should export symbols for example).
8689      lt_prog_compiler_pic='-DDLL_EXPORT'
8690      ;;
8691
8692    hpux9* | hpux10* | hpux11*)
8693      lt_prog_compiler_wl='-Wl,'
8694      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8695      # not for PA HP-UX.
8696      case $host_cpu in
8697      hppa*64*|ia64*)
8698        # +Z the default
8699        ;;
8700      *)
8701        lt_prog_compiler_pic='+Z'
8702        ;;
8703      esac
8704      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8705      lt_prog_compiler_static='${wl}-a ${wl}archive'
8706      ;;
8707
8708    irix5* | irix6* | nonstopux*)
8709      lt_prog_compiler_wl='-Wl,'
8710      # PIC (with -KPIC) is the default.
8711      lt_prog_compiler_static='-non_shared'
8712      ;;
8713
8714    newsos6)
8715      lt_prog_compiler_pic='-KPIC'
8716      lt_prog_compiler_static='-Bstatic'
8717      ;;
8718
8719    linux*)
8720      case $cc_basename in
8721      icc* | ecc*)
8722        lt_prog_compiler_wl='-Wl,'
8723        lt_prog_compiler_pic='-KPIC'
8724        lt_prog_compiler_static='-static'
8725        ;;
8726      pgcc* | pgf77* | pgf90* | pgf95*)
8727        # Portland Group compilers (*not* the Pentium gcc compiler,
8728        # which looks to be a dead project)
8729        lt_prog_compiler_wl='-Wl,'
8730        lt_prog_compiler_pic='-fpic'
8731        lt_prog_compiler_static='-Bstatic'
8732        ;;
8733      ccc*)
8734        lt_prog_compiler_wl='-Wl,'
8735        # All Alpha code is PIC.
8736        lt_prog_compiler_static='-non_shared'
8737        ;;
8738      esac
8739      ;;
8740
8741    osf3* | osf4* | osf5*)
8742      lt_prog_compiler_wl='-Wl,'
8743      # All OSF/1 code is PIC.
8744      lt_prog_compiler_static='-non_shared'
8745      ;;
8746
8747    solaris*)
8748      lt_prog_compiler_pic='-KPIC'
8749      lt_prog_compiler_static='-Bstatic'
8750      case $cc_basename in
8751      f77* | f90* | f95*)
8752        lt_prog_compiler_wl='-Qoption ld ';;
8753      *)
8754        lt_prog_compiler_wl='-Wl,';;
8755      esac
8756      ;;
8757
8758    sunos4*)
8759      lt_prog_compiler_wl='-Qoption ld '
8760      lt_prog_compiler_pic='-PIC'
8761      lt_prog_compiler_static='-Bstatic'
8762      ;;
8763
8764    sysv4 | sysv4.2uw2* | sysv4.3*)
8765      lt_prog_compiler_wl='-Wl,'
8766      lt_prog_compiler_pic='-KPIC'
8767      lt_prog_compiler_static='-Bstatic'
8768      ;;
8769
8770    sysv4*MP*)
8771      if test -d /usr/nec ;then
8772        lt_prog_compiler_pic='-Kconform_pic'
8773        lt_prog_compiler_static='-Bstatic'
8774      fi
8775      ;;
8776
8777    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8778      lt_prog_compiler_wl='-Wl,'
8779      lt_prog_compiler_pic='-KPIC'
8780      lt_prog_compiler_static='-Bstatic'
8781      ;;
8782
8783    unicos*)
8784      lt_prog_compiler_wl='-Wl,'
8785      lt_prog_compiler_can_build_shared=no
8786      ;;
8787
8788    uts4*)
8789      lt_prog_compiler_pic='-pic'
8790      lt_prog_compiler_static='-Bstatic'
8791      ;;
8792
8793    *)
8794      lt_prog_compiler_can_build_shared=no
8795      ;;
8796    esac
8797  fi
8798
8799echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8800echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8801
8802#
8803# Check to make sure the PIC flag actually works.
8804#
8805if test -n "$lt_prog_compiler_pic"; then
8806
8807echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8808echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8809if test "${lt_prog_compiler_pic_works+set}" = set; then
8810  echo $ECHO_N "(cached) $ECHO_C" >&6
8811else
8812  lt_prog_compiler_pic_works=no
8813  ac_outfile=conftest.$ac_objext
8814   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8815   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8816   # Insert the option either (1) after the last *FLAGS variable, or
8817   # (2) before a word containing "conftest.", or (3) at the end.
8818   # Note that $ac_compile itself does not contain backslashes and begins
8819   # with a dollar sign (not a hyphen), so the echo should work correctly.
8820   # The option is referenced via a variable to avoid confusing sed.
8821   lt_compile=`echo "$ac_compile" | $SED \
8822   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824   -e 's:$: $lt_compiler_flag:'`
8825   (eval echo "\"\$as_me:8825: $lt_compile\"" >&5)
8826   (eval "$lt_compile" 2>conftest.err)
8827   ac_status=$?
8828   cat conftest.err >&5
8829   echo "$as_me:8829: \$? = $ac_status" >&5
8830   if (exit $ac_status) && test -s "$ac_outfile"; then
8831     # The compiler can only warn and ignore the option if not recognized
8832     # So say no if there are warnings other than the usual output.
8833     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8834     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8836       lt_prog_compiler_pic_works=yes
8837     fi
8838   fi
8839   $rm conftest*
8840
8841fi
8842echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8843echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8844
8845if test x"$lt_prog_compiler_pic_works" = xyes; then
8846    case $lt_prog_compiler_pic in
8847     "" | " "*) ;;
8848     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8849     esac
8850else
8851    lt_prog_compiler_pic=
8852     lt_prog_compiler_can_build_shared=no
8853fi
8854
8855fi
8856case $host_os in
8857  # For platforms which do not support PIC, -DPIC is meaningless:
8858  *djgpp*)
8859    lt_prog_compiler_pic=
8860    ;;
8861  *)
8862    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8863    ;;
8864esac
8865
8866#
8867# Check to make sure the static flag actually works.
8868#
8869wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8870echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8871echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8872if test "${lt_prog_compiler_static_works+set}" = set; then
8873  echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875  lt_prog_compiler_static_works=no
8876   save_LDFLAGS="$LDFLAGS"
8877   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8878   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8879   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8880     # The linker can only warn and ignore the option if not recognized
8881     # So say no if there are warnings
8882     if test -s conftest.err; then
8883       # Append any errors to the config.log.
8884       cat conftest.err 1>&5
8885       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8886       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887       if diff conftest.exp conftest.er2 >/dev/null; then
8888         lt_prog_compiler_static_works=yes
8889       fi
8890     else
8891       lt_prog_compiler_static_works=yes
8892     fi
8893   fi
8894   $rm conftest*
8895   LDFLAGS="$save_LDFLAGS"
8896
8897fi
8898echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8899echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8900
8901if test x"$lt_prog_compiler_static_works" = xyes; then
8902    :
8903else
8904    lt_prog_compiler_static=
8905fi
8906
8907
8908echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8910if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8911  echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913  lt_cv_prog_compiler_c_o=no
8914   $rm -r conftest 2>/dev/null
8915   mkdir conftest
8916   cd conftest
8917   mkdir out
8918   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920   lt_compiler_flag="-o out/conftest2.$ac_objext"
8921   # Insert the option either (1) after the last *FLAGS variable, or
8922   # (2) before a word containing "conftest.", or (3) at the end.
8923   # Note that $ac_compile itself does not contain backslashes and begins
8924   # with a dollar sign (not a hyphen), so the echo should work correctly.
8925   lt_compile=`echo "$ac_compile" | $SED \
8926   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928   -e 's:$: $lt_compiler_flag:'`
8929   (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
8930   (eval "$lt_compile" 2>out/conftest.err)
8931   ac_status=$?
8932   cat out/conftest.err >&5
8933   echo "$as_me:8933: \$? = $ac_status" >&5
8934   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8935   then
8936     # The compiler can only warn and ignore the option if not recognized
8937     # So say no if there are warnings
8938     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8939     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8940     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8941       lt_cv_prog_compiler_c_o=yes
8942     fi
8943   fi
8944   chmod u+w . 2>&5
8945   $rm conftest*
8946   # SGI C++ compiler will create directory out/ii_files/ for
8947   # template instantiation
8948   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8949   $rm out/* && rmdir out
8950   cd ..
8951   rmdir conftest
8952   $rm conftest*
8953
8954fi
8955echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8956echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8957
8958
8959hard_links="nottested"
8960if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8961  # do not overwrite the value of need_locks provided by the user
8962  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8963echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8964  hard_links=yes
8965  $rm conftest*
8966  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967  touch conftest.a
8968  ln conftest.a conftest.b 2>&5 || hard_links=no
8969  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8970  echo "$as_me:$LINENO: result: $hard_links" >&5
8971echo "${ECHO_T}$hard_links" >&6
8972  if test "$hard_links" = no; then
8973    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8974echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8975    need_locks=warn
8976  fi
8977else
8978  need_locks=no
8979fi
8980
8981echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8982echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8983
8984  runpath_var=
8985  allow_undefined_flag=
8986  enable_shared_with_static_runtimes=no
8987  archive_cmds=
8988  archive_expsym_cmds=
8989  old_archive_From_new_cmds=
8990  old_archive_from_expsyms_cmds=
8991  export_dynamic_flag_spec=
8992  whole_archive_flag_spec=
8993  thread_safe_flag_spec=
8994  hardcode_libdir_flag_spec=
8995  hardcode_libdir_flag_spec_ld=
8996  hardcode_libdir_separator=
8997  hardcode_direct=no
8998  hardcode_minus_L=no
8999  hardcode_shlibpath_var=unsupported
9000  link_all_deplibs=unknown
9001  hardcode_automatic=no
9002  module_cmds=
9003  module_expsym_cmds=
9004  always_export_symbols=no
9005  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9006  # include_expsyms should be a list of space-separated symbols to be *always*
9007  # included in the symbol list
9008  include_expsyms=
9009  # exclude_expsyms can be an extended regexp of symbols to exclude
9010  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9011  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9012  # as well as any symbol that contains `d'.
9013  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9014  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9015  # platforms (ab)use it in PIC code, but their linkers get confused if
9016  # the symbol is explicitly referenced.  Since portable code cannot
9017  # rely on this symbol name, it's probably fine to never include it in
9018  # preloaded symbol tables.
9019  extract_expsyms_cmds=
9020  # Just being paranoid about ensuring that cc_basename is set.
9021  for cc_temp in $compiler""; do
9022  case $cc_temp in
9023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9025    \-*) ;;
9026    *) break;;
9027  esac
9028done
9029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9030
9031  case $host_os in
9032  cygwin* | mingw* | pw32*)
9033    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9034    # When not using gcc, we currently assume that we are using
9035    # Microsoft Visual C++.
9036    if test "$GCC" != yes; then
9037      with_gnu_ld=no
9038    fi
9039    ;;
9040  interix*)
9041    # we just hope/assume this is gcc and not c89 (= MSVC++)
9042    with_gnu_ld=yes
9043    ;;
9044  openbsd*)
9045    with_gnu_ld=no
9046    ;;
9047  esac
9048
9049  ld_shlibs=yes
9050  if test "$with_gnu_ld" = yes; then
9051    # If archive_cmds runs LD, not CC, wlarc should be empty
9052    wlarc='${wl}'
9053
9054    # Set some defaults for GNU ld with shared library support. These
9055    # are reset later if shared libraries are not supported. Putting them
9056    # here allows them to be overridden if necessary.
9057    runpath_var=LD_RUN_PATH
9058    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9059    export_dynamic_flag_spec='${wl}--export-dynamic'
9060    # ancient GNU ld didn't support --whole-archive et. al.
9061    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9062        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9063      else
9064        whole_archive_flag_spec=
9065    fi
9066    supports_anon_versioning=no
9067    case `$LD -v 2>/dev/null` in
9068      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9069      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9070      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9071      *\ 2.11.*) ;; # other 2.11 versions
9072      *) supports_anon_versioning=yes ;;
9073    esac
9074
9075    # See if GNU ld supports shared libraries.
9076    case $host_os in
9077    aix3* | aix4* | aix5*)
9078      # On AIX/PPC, the GNU linker is very broken
9079      if test "$host_cpu" != ia64; then
9080        ld_shlibs=no
9081        cat <<EOF 1>&2
9082
9083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9084*** to be unable to reliably create shared libraries on AIX.
9085*** Therefore, libtool is disabling shared libraries support.  If you
9086*** really care for shared libraries, you may want to modify your PATH
9087*** so that a non-GNU linker is found, and then restart.
9088
9089EOF
9090      fi
9091      ;;
9092
9093    amigaos*)
9094      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)'
9095      hardcode_libdir_flag_spec='-L$libdir'
9096      hardcode_minus_L=yes
9097
9098      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9099      # that the semantics of dynamic libraries on AmigaOS, at least up
9100      # to version 4, is to share data among multiple programs linked
9101      # with the same dynamic library.  Since this doesn't match the
9102      # behavior of shared libraries on other platforms, we can't use
9103      # them.
9104      ld_shlibs=no
9105      ;;
9106
9107    beos*)
9108      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9109        allow_undefined_flag=unsupported
9110        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9111        # support --undefined.  This deserves some investigation.  FIXME
9112        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113      else
9114        ld_shlibs=no
9115      fi
9116      ;;
9117
9118    cygwin* | mingw* | pw32*)
9119      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9120      # as there is no search path for DLLs.
9121      hardcode_libdir_flag_spec='-L$libdir'
9122      allow_undefined_flag=unsupported
9123      always_export_symbols=no
9124      enable_shared_with_static_runtimes=yes
9125      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9126
9127      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9128        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9129        # If the export-symbols file already is a .def file (1st line
9130        # is EXPORTS), use it as is; otherwise, prepend...
9131        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9132          cp $export_symbols $output_objdir/$soname.def;
9133        else
9134          echo EXPORTS > $output_objdir/$soname.def;
9135          cat $export_symbols >> $output_objdir/$soname.def;
9136        fi~
9137        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9138      else
9139        ld_shlibs=no
9140      fi
9141      ;;
9142
9143    interix3*)
9144      hardcode_direct=no
9145      hardcode_shlibpath_var=no
9146      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9147      export_dynamic_flag_spec='${wl}-E'
9148      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9149      # Instead, shared libraries are loaded at an image base (0x10000000 by
9150      # default) and relocated if they conflict, which is a slow very memory
9151      # consuming and fragmenting process.  To avoid this, we pick a random,
9152      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9153      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9154      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9155      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'
9156      ;;
9157
9158    linux*)
9159      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9160        tmp_addflag=
9161        case $cc_basename,$host_cpu in
9162        pgcc*)                          # Portland Group C compiler
9163          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'
9164          tmp_addflag=' $pic_flag'
9165          ;;
9166        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9167          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'
9168          tmp_addflag=' $pic_flag -Mnomain' ;;
9169        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9170          tmp_addflag=' -i_dynamic' ;;
9171        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9172          tmp_addflag=' -i_dynamic -nofor_main' ;;
9173        ifc* | ifort*)                  # Intel Fortran compiler
9174          tmp_addflag=' -nofor_main' ;;
9175        esac
9176        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177
9178        if test $supports_anon_versioning = yes; then
9179          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9180  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9181  $echo "local: *; };" >> $output_objdir/$libname.ver~
9182          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9183        fi
9184      else
9185        ld_shlibs=no
9186      fi
9187      ;;
9188
9189    netbsd*)
9190      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9192        wlarc=
9193      else
9194        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9196      fi
9197      ;;
9198
9199    solaris*)
9200      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9201        ld_shlibs=no
9202        cat <<EOF 1>&2
9203
9204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9205*** create shared libraries on Solaris systems.  Therefore, libtool
9206*** is disabling shared libraries support.  We urge you to upgrade GNU
9207*** binutils to release 2.9.1 or newer.  Another option is to modify
9208*** your PATH or compiler configuration so that the native linker is
9209*** used, and then restart.
9210
9211EOF
9212      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9213        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215      else
9216        ld_shlibs=no
9217      fi
9218      ;;
9219
9220    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9221      case `$LD -v 2>&1` in
9222        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9223        ld_shlibs=no
9224        cat <<_LT_EOF 1>&2
9225
9226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9227*** reliably create shared libraries on SCO systems.  Therefore, libtool
9228*** is disabling shared libraries support.  We urge you to upgrade GNU
9229*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9230*** your PATH or compiler configuration so that the native linker is
9231*** used, and then restart.
9232
9233_LT_EOF
9234        ;;
9235        *)
9236          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9237            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9238            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9239            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9240          else
9241            ld_shlibs=no
9242          fi
9243        ;;
9244      esac
9245      ;;
9246
9247    sunos4*)
9248      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249      wlarc=
9250      hardcode_direct=yes
9251      hardcode_shlibpath_var=no
9252      ;;
9253
9254    *)
9255      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9256        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258      else
9259        ld_shlibs=no
9260      fi
9261      ;;
9262    esac
9263
9264    if test "$ld_shlibs" = no; then
9265      runpath_var=
9266      hardcode_libdir_flag_spec=
9267      export_dynamic_flag_spec=
9268      whole_archive_flag_spec=
9269    fi
9270  else
9271    # PORTME fill in a description of your system's linker (not GNU ld)
9272    case $host_os in
9273    aix3*)
9274      allow_undefined_flag=unsupported
9275      always_export_symbols=yes
9276      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'
9277      # Note: this linker hardcodes the directories in LIBPATH if there
9278      # are no directories specified by -L.
9279      hardcode_minus_L=yes
9280      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9281        # Neither direct hardcoding nor static linking is supported with a
9282        # broken collect2.
9283        hardcode_direct=unsupported
9284      fi
9285      ;;
9286
9287    aix4* | aix5*)
9288      if test "$host_cpu" = ia64; then
9289        # On IA64, the linker does run time linking by default, so we don't
9290        # have to do anything special.
9291        aix_use_runtimelinking=no
9292        exp_sym_flag='-Bexport'
9293        no_entry_flag=""
9294      else
9295        # If we're using GNU nm, then we don't want the "-C" option.
9296        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9297        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9298          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'
9299        else
9300          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'
9301        fi
9302        aix_use_runtimelinking=no
9303
9304        # Test if we are trying to use run time linking or normal
9305        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9306        # need to do runtime linking.
9307        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9308          for ld_flag in $LDFLAGS; do
9309          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9310            aix_use_runtimelinking=yes
9311            break
9312          fi
9313          done
9314          ;;
9315        esac
9316
9317        exp_sym_flag='-bexport'
9318        no_entry_flag='-bnoentry'
9319      fi
9320
9321      # When large executables or shared objects are built, AIX ld can
9322      # have problems creating the table of contents.  If linking a library
9323      # or program results in "error TOC overflow" add -mminimal-toc to
9324      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9325      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9326
9327      archive_cmds=''
9328      hardcode_direct=yes
9329      hardcode_libdir_separator=':'
9330      link_all_deplibs=yes
9331
9332      if test "$GCC" = yes; then
9333        case $host_os in aix4.[012]|aix4.[012].*)
9334        # We only want to do this on AIX 4.2 and lower, the check
9335        # below for broken collect2 doesn't work under 4.3+
9336          collect2name=`${CC} -print-prog-name=collect2`
9337          if test -f "$collect2name" && \
9338           strings "$collect2name" | grep resolve_lib_name >/dev/null
9339          then
9340          # We have reworked collect2
9341          hardcode_direct=yes
9342          else
9343          # We have old collect2
9344          hardcode_direct=unsupported
9345          # It fails to find uninstalled libraries when the uninstalled
9346          # path is not listed in the libpath.  Setting hardcode_minus_L
9347          # to unsupported forces relinking
9348          hardcode_minus_L=yes
9349          hardcode_libdir_flag_spec='-L$libdir'
9350          hardcode_libdir_separator=
9351          fi
9352          ;;
9353        esac
9354        shared_flag='-shared'
9355        if test "$aix_use_runtimelinking" = yes; then
9356          shared_flag="$shared_flag "'${wl}-G'
9357        fi
9358      else
9359        # not using gcc
9360        if test "$host_cpu" = ia64; then
9361        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9362        # chokes on -Wl,-G. The following line is correct:
9363          shared_flag='-G'
9364        else
9365          if test "$aix_use_runtimelinking" = yes; then
9366            shared_flag='${wl}-G'
9367          else
9368            shared_flag='${wl}-bM:SRE'
9369          fi
9370        fi
9371      fi
9372
9373      # It seems that -bexpall does not export symbols beginning with
9374      # underscore (_), so it is better to generate a list of symbols to export.
9375      always_export_symbols=yes
9376      if test "$aix_use_runtimelinking" = yes; then
9377        # Warning - without using the other runtime loading flags (-brtl),
9378        # -berok will link without error, but may produce a broken library.
9379        allow_undefined_flag='-berok'
9380       # Determine the default libpath from the value encoded in an empty executable.
9381       cat >conftest.$ac_ext <<_ACEOF
9382/* confdefs.h.  */
9383_ACEOF
9384cat confdefs.h >>conftest.$ac_ext
9385cat >>conftest.$ac_ext <<_ACEOF
9386/* end confdefs.h.  */
9387
9388int
9389main ()
9390{
9391
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396rm -f conftest.$ac_objext conftest$ac_exeext
9397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398  (eval $ac_link) 2>conftest.er1
9399  ac_status=$?
9400  grep -v '^ *+' conftest.er1 >conftest.err
9401  rm -f conftest.er1
9402  cat conftest.err >&5
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); } &&
9405         { ac_try='test -z "$ac_c_werror_flag"
9406                         || test ! -s conftest.err'
9407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408  (eval $ac_try) 2>&5
9409  ac_status=$?
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); }; } &&
9412         { ac_try='test -s conftest$ac_exeext'
9413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414  (eval $ac_try) 2>&5
9415  ac_status=$?
9416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417  (exit $ac_status); }; }; then
9418
9419aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9420}'`
9421# Check for a 64-bit object if we didn't find anything.
9422if 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; }
9423}'`; fi
9424else
9425  echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
9428fi
9429rm -f conftest.err conftest.$ac_objext \
9430      conftest$ac_exeext conftest.$ac_ext
9431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9432
9433       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9434        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"
9435       else
9436        if test "$host_cpu" = ia64; then
9437          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9438          allow_undefined_flag="-z nodefs"
9439          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"
9440        else
9441         # Determine the default libpath from the value encoded in an empty executable.
9442         cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h.  */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h.  */
9448
9449int
9450main ()
9451{
9452
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457rm -f conftest.$ac_objext conftest$ac_exeext
9458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459  (eval $ac_link) 2>conftest.er1
9460  ac_status=$?
9461  grep -v '^ *+' conftest.er1 >conftest.err
9462  rm -f conftest.er1
9463  cat conftest.err >&5
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); } &&
9466         { ac_try='test -z "$ac_c_werror_flag"
9467                         || test ! -s conftest.err'
9468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469  (eval $ac_try) 2>&5
9470  ac_status=$?
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); }; } &&
9473         { ac_try='test -s conftest$ac_exeext'
9474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475  (eval $ac_try) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); }; }; then
9479
9480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9481}'`
9482# Check for a 64-bit object if we didn't find anything.
9483if 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; }
9484}'`; fi
9485else
9486  echo "$as_me: failed program was:" >&5
9487sed 's/^/| /' conftest.$ac_ext >&5
9488
9489fi
9490rm -f conftest.err conftest.$ac_objext \
9491      conftest$ac_exeext conftest.$ac_ext
9492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9493
9494         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9495          # Warning - without using the other run time loading flags,
9496          # -berok will link without error, but may produce a broken library.
9497          no_undefined_flag=' ${wl}-bernotok'
9498          allow_undefined_flag=' ${wl}-berok'
9499          # Exported symbols can be pulled into shared objects from archives
9500          whole_archive_flag_spec='$convenience'
9501          archive_cmds_need_lc=yes
9502          # This is similar to how AIX traditionally builds its shared libraries.
9503          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'
9504        fi
9505      fi
9506      ;;
9507
9508    amigaos*)
9509      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)'
9510      hardcode_libdir_flag_spec='-L$libdir'
9511      hardcode_minus_L=yes
9512      # see comment about different semantics on the GNU ld section
9513      ld_shlibs=no
9514      ;;
9515
9516    bsdi[45]*)
9517      export_dynamic_flag_spec=-rdynamic
9518      ;;
9519
9520    cygwin* | mingw* | pw32*)
9521      # When not using gcc, we currently assume that we are using
9522      # Microsoft Visual C++.
9523      # hardcode_libdir_flag_spec is actually meaningless, as there is
9524      # no search path for DLLs.
9525      hardcode_libdir_flag_spec=' '
9526      allow_undefined_flag=unsupported
9527      # Tell ltmain to make .lib files, not .a files.
9528      libext=lib
9529      # Tell ltmain to make .dll files, not .so files.
9530      shrext_cmds=".dll"
9531      # FIXME: Setting linknames here is a bad hack.
9532      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9533      # The linker will automatically build a .lib file if we build a DLL.
9534      old_archive_From_new_cmds='true'
9535      # FIXME: Should let the user specify the lib program.
9536      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9537      fix_srcfile_path='`cygpath -w "$srcfile"`'
9538      enable_shared_with_static_runtimes=yes
9539      ;;
9540
9541    darwin* | rhapsody*)
9542      case $host_os in
9543        rhapsody* | darwin1.[012])
9544         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9545         ;;
9546       *) # Darwin 1.3 on
9547         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9548           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9549         else
9550           case ${MACOSX_DEPLOYMENT_TARGET} in
9551             10.[012])
9552               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9553               ;;
9554             10.*)
9555               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9556               ;;
9557           esac
9558         fi
9559         ;;
9560      esac
9561      archive_cmds_need_lc=no
9562      hardcode_direct=no
9563      hardcode_automatic=yes
9564      hardcode_shlibpath_var=unsupported
9565      whole_archive_flag_spec=''
9566      link_all_deplibs=yes
9567    if test "$GCC" = yes ; then
9568        output_verbose_link_cmd='echo'
9569        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9570      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9571      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9572      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}'
9573      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}'
9574    else
9575      case $cc_basename in
9576        xlc*)
9577         output_verbose_link_cmd='echo'
9578         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9579         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9580          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9581         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}'
9582          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}'
9583          ;;
9584       *)
9585         ld_shlibs=no
9586          ;;
9587      esac
9588    fi
9589      ;;
9590
9591    dgux*)
9592      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593      hardcode_libdir_flag_spec='-L$libdir'
9594      hardcode_shlibpath_var=no
9595      ;;
9596
9597    freebsd1*)
9598      ld_shlibs=no
9599      ;;
9600
9601    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9602    # support.  Future versions do this automatically, but an explicit c++rt0.o
9603    # does not break anything, and helps significantly (at the cost of a little
9604    # extra space).
9605    freebsd2.2*)
9606      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9607      hardcode_libdir_flag_spec='-R$libdir'
9608      hardcode_direct=yes
9609      hardcode_shlibpath_var=no
9610      ;;
9611
9612    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9613    freebsd2*)
9614      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615      hardcode_direct=yes
9616      hardcode_minus_L=yes
9617      hardcode_shlibpath_var=no
9618      ;;
9619
9620    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9621    freebsd* | kfreebsd*-gnu | dragonfly*)
9622      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9623      hardcode_libdir_flag_spec='-R$libdir'
9624      hardcode_direct=yes
9625      hardcode_shlibpath_var=no
9626      ;;
9627
9628    hpux9*)
9629      if test "$GCC" = yes; then
9630        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'
9631      else
9632        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'
9633      fi
9634      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9635      hardcode_libdir_separator=:
9636      hardcode_direct=yes
9637
9638      # hardcode_minus_L: Not really in the search PATH,
9639      # but as the default location of the library.
9640      hardcode_minus_L=yes
9641      export_dynamic_flag_spec='${wl}-E'
9642      ;;
9643
9644    hpux10*)
9645      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9646        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9647      else
9648        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9649      fi
9650      if test "$with_gnu_ld" = no; then
9651        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652        hardcode_libdir_separator=:
9653
9654        hardcode_direct=yes
9655        export_dynamic_flag_spec='${wl}-E'
9656
9657        # hardcode_minus_L: Not really in the search PATH,
9658        # but as the default location of the library.
9659        hardcode_minus_L=yes
9660      fi
9661      ;;
9662
9663    hpux11*)
9664      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9665        case $host_cpu in
9666        hppa*64*)
9667          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9668          ;;
9669        ia64*)
9670          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9671          ;;
9672        *)
9673          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674          ;;
9675        esac
9676      else
9677        case $host_cpu in
9678        hppa*64*)
9679          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680          ;;
9681        ia64*)
9682          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9683          ;;
9684        *)
9685          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9686          ;;
9687        esac
9688      fi
9689      if test "$with_gnu_ld" = no; then
9690        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9691        hardcode_libdir_separator=:
9692
9693        case $host_cpu in
9694        hppa*64*|ia64*)
9695          hardcode_libdir_flag_spec_ld='+b $libdir'
9696          hardcode_direct=no
9697          hardcode_shlibpath_var=no
9698          ;;
9699        *)
9700          hardcode_direct=yes
9701          export_dynamic_flag_spec='${wl}-E'
9702
9703          # hardcode_minus_L: Not really in the search PATH,
9704          # but as the default location of the library.
9705          hardcode_minus_L=yes
9706          ;;
9707        esac
9708      fi
9709      ;;
9710
9711    irix5* | irix6* | nonstopux*)
9712      if test "$GCC" = yes; then
9713        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'
9714      else
9715        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'
9716        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9717      fi
9718      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719      hardcode_libdir_separator=:
9720      link_all_deplibs=yes
9721      ;;
9722
9723    netbsd*)
9724      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9725        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9726      else
9727        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9728      fi
9729      hardcode_libdir_flag_spec='-R$libdir'
9730      hardcode_direct=yes
9731      hardcode_shlibpath_var=no
9732      ;;
9733
9734    newsos6)
9735      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736      hardcode_direct=yes
9737      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738      hardcode_libdir_separator=:
9739      hardcode_shlibpath_var=no
9740      ;;
9741
9742    openbsd*)
9743      hardcode_direct=yes
9744      hardcode_shlibpath_var=no
9745      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9746        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9747        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9748        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9749        export_dynamic_flag_spec='${wl}-E'
9750      else
9751       case $host_os in
9752         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9753           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9754           hardcode_libdir_flag_spec='-R$libdir'
9755           ;;
9756         *)
9757           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9758           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759           ;;
9760       esac
9761      fi
9762      ;;
9763
9764    os2*)
9765      hardcode_libdir_flag_spec='-L$libdir'
9766      hardcode_minus_L=yes
9767      allow_undefined_flag=unsupported
9768      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'
9769      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9770      ;;
9771
9772    osf3*)
9773      if test "$GCC" = yes; then
9774        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9775        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'
9776      else
9777        allow_undefined_flag=' -expect_unresolved \*'
9778        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'
9779      fi
9780      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781      hardcode_libdir_separator=:
9782      ;;
9783
9784    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9785      if test "$GCC" = yes; then
9786        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9787        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'
9788        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9789      else
9790        allow_undefined_flag=' -expect_unresolved \*'
9791        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'
9792        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9793        $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'
9794
9795        # Both c and cxx compiler support -rpath directly
9796        hardcode_libdir_flag_spec='-rpath $libdir'
9797      fi
9798      hardcode_libdir_separator=:
9799      ;;
9800
9801    solaris*)
9802      no_undefined_flag=' -z text'
9803      if test "$GCC" = yes; then
9804        wlarc='${wl}'
9805        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9806        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9807          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9808      else
9809        wlarc=''
9810        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9812        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9813      fi
9814      hardcode_libdir_flag_spec='-R$libdir'
9815      hardcode_shlibpath_var=no
9816      case $host_os in
9817      solaris2.[0-5] | solaris2.[0-5].*) ;;
9818      *)
9819        # The compiler driver will combine linker options so we
9820        # cannot just pass the convience library names through
9821        # without $wl, iff we do not link with $LD.
9822        # Luckily, gcc supports the same syntax we need for Sun Studio.
9823        # Supported since Solaris 2.6 (maybe 2.5.1?)
9824        case $wlarc in
9825        '')
9826          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9827        *)
9828          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' ;;
9829        esac ;;
9830      esac
9831      link_all_deplibs=yes
9832      ;;
9833
9834    sunos4*)
9835      if test "x$host_vendor" = xsequent; then
9836        # Use $CC to link under sequent, because it throws in some extra .o
9837        # files that make .init and .fini sections work.
9838        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9839      else
9840        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9841      fi
9842      hardcode_libdir_flag_spec='-L$libdir'
9843      hardcode_direct=yes
9844      hardcode_minus_L=yes
9845      hardcode_shlibpath_var=no
9846      ;;
9847
9848    sysv4)
9849      case $host_vendor in
9850        sni)
9851          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852          hardcode_direct=yes # is this really true???
9853        ;;
9854        siemens)
9855          ## LD is ld it makes a PLAMLIB
9856          ## CC just makes a GrossModule.
9857          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9858          reload_cmds='$CC -r -o $output$reload_objs'
9859          hardcode_direct=no
9860        ;;
9861        motorola)
9862          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9863          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9864        ;;
9865      esac
9866      runpath_var='LD_RUN_PATH'
9867      hardcode_shlibpath_var=no
9868      ;;
9869
9870    sysv4.3*)
9871      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872      hardcode_shlibpath_var=no
9873      export_dynamic_flag_spec='-Bexport'
9874      ;;
9875
9876    sysv4*MP*)
9877      if test -d /usr/nec; then
9878        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879        hardcode_shlibpath_var=no
9880        runpath_var=LD_RUN_PATH
9881        hardcode_runpath_var=yes
9882        ld_shlibs=yes
9883      fi
9884      ;;
9885
9886    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9887      no_undefined_flag='${wl}-z,text'
9888      archive_cmds_need_lc=no
9889      hardcode_shlibpath_var=no
9890      runpath_var='LD_RUN_PATH'
9891
9892      if test "$GCC" = yes; then
9893        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9895      else
9896        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9898      fi
9899      ;;
9900
9901    sysv5* | sco3.2v5* | sco5v6*)
9902      # Note: We can NOT use -z defs as we might desire, because we do not
9903      # link with -lc, and that would cause any symbols used from libc to
9904      # always be unresolved, which means just about no library would
9905      # ever link correctly.  If we're not using GNU ld we use -z text
9906      # though, which does catch some bad symbols but isn't as heavy-handed
9907      # as -z defs.
9908      no_undefined_flag='${wl}-z,text'
9909      allow_undefined_flag='${wl}-z,nodefs'
9910      archive_cmds_need_lc=no
9911      hardcode_shlibpath_var=no
9912      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9913      hardcode_libdir_separator=':'
9914      link_all_deplibs=yes
9915      export_dynamic_flag_spec='${wl}-Bexport'
9916      runpath_var='LD_RUN_PATH'
9917
9918      if test "$GCC" = yes; then
9919        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9920        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9921      else
9922        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924      fi
9925      ;;
9926
9927    uts4*)
9928      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929      hardcode_libdir_flag_spec='-L$libdir'
9930      hardcode_shlibpath_var=no
9931      ;;
9932
9933    *)
9934      ld_shlibs=no
9935      ;;
9936    esac
9937  fi
9938
9939echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9940echo "${ECHO_T}$ld_shlibs" >&6
9941test "$ld_shlibs" = no && can_build_shared=no
9942
9943#
9944# Do we need to explicitly link libc?
9945#
9946case "x$archive_cmds_need_lc" in
9947x|xyes)
9948  # Assume -lc should be added
9949  archive_cmds_need_lc=yes
9950
9951  if test "$enable_shared" = yes && test "$GCC" = yes; then
9952    case $archive_cmds in
9953    *'~'*)
9954      # FIXME: we may have to deal with multi-command sequences.
9955      ;;
9956    '$CC '*)
9957      # Test whether the compiler implicitly links with -lc since on some
9958      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9959      # to ld, don't add -lc before -lgcc.
9960      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9961echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9962      $rm conftest*
9963      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9964
9965      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966  (eval $ac_compile) 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); } 2>conftest.err; then
9970        soname=conftest
9971        lib=conftest
9972        libobjs=conftest.$ac_objext
9973        deplibs=
9974        wl=$lt_prog_compiler_wl
9975        pic_flag=$lt_prog_compiler_pic
9976        compiler_flags=-v
9977        linker_flags=-v
9978        verstring=
9979        output_objdir=.
9980        libname=conftest
9981        lt_save_allow_undefined_flag=$allow_undefined_flag
9982        allow_undefined_flag=
9983        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9984  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9985  ac_status=$?
9986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987  (exit $ac_status); }
9988        then
9989          archive_cmds_need_lc=no
9990        else
9991          archive_cmds_need_lc=yes
9992        fi
9993        allow_undefined_flag=$lt_save_allow_undefined_flag
9994      else
9995        cat conftest.err 1>&5
9996      fi
9997      $rm conftest*
9998      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9999echo "${ECHO_T}$archive_cmds_need_lc" >&6
10000      ;;
10001    esac
10002  fi
10003  ;;
10004esac
10005
10006echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10007echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10008library_names_spec=
10009libname_spec='lib$name'
10010soname_spec=
10011shrext_cmds=".so"
10012postinstall_cmds=
10013postuninstall_cmds=
10014finish_cmds=
10015finish_eval=
10016shlibpath_var=
10017shlibpath_overrides_runpath=unknown
10018version_type=none
10019dynamic_linker="$host_os ld.so"
10020sys_lib_dlsearch_path_spec="/lib /usr/lib"
10021if test "$GCC" = yes; then
10022  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10023  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10024    # if the path contains ";" then we assume it to be the separator
10025    # otherwise default to the standard path separator (i.e. ":") - it is
10026    # assumed that no part of a normal pathname contains ";" but that should
10027    # okay in the real world where ";" in dirpaths is itself problematic.
10028    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10029  else
10030    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10031  fi
10032else
10033  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10034fi
10035need_lib_prefix=unknown
10036hardcode_into_libs=no
10037
10038# when you set need_version to no, make sure it does not cause -set_version
10039# flags to be left without arguments
10040need_version=unknown
10041
10042case $host_os in
10043aix3*)
10044  version_type=linux
10045  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10046  shlibpath_var=LIBPATH
10047
10048  # AIX 3 has no versioning support, so we append a major version to the name.
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  ;;
10051
10052aix4* | aix5*)
10053  version_type=linux
10054  need_lib_prefix=no
10055  need_version=no
10056  hardcode_into_libs=yes
10057  if test "$host_cpu" = ia64; then
10058    # AIX 5 supports IA64
10059    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10060    shlibpath_var=LD_LIBRARY_PATH
10061  else
10062    # With GCC up to 2.95.x, collect2 would create an import file
10063    # for dependence libraries.  The import file would start with
10064    # the line `#! .'.  This would cause the generated library to
10065    # depend on `.', always an invalid library.  This was fixed in
10066    # development snapshots of GCC prior to 3.0.
10067    case $host_os in
10068      aix4 | aix4.[01] | aix4.[01].*)
10069      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10070           echo ' yes '
10071           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10072        :
10073      else
10074        can_build_shared=no
10075      fi
10076      ;;
10077    esac
10078    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10079    # soname into executable. Probably we can add versioning support to
10080    # collect2, so additional links can be useful in future.
10081    if test "$aix_use_runtimelinking" = yes; then
10082      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10083      # instead of lib<name>.a to let people know that these are not
10084      # typical AIX shared libraries.
10085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086    else
10087      # We preserve .a as extension for shared libraries through AIX4.2
10088      # and later when we are not doing run time linking.
10089      library_names_spec='${libname}${release}.a $libname.a'
10090      soname_spec='${libname}${release}${shared_ext}$major'
10091    fi
10092    shlibpath_var=LIBPATH
10093  fi
10094  ;;
10095
10096amigaos*)
10097  library_names_spec='$libname.ixlibrary $libname.a'
10098  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10099  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'
10100  ;;
10101
10102beos*)
10103  library_names_spec='${libname}${shared_ext}'
10104  dynamic_linker="$host_os ld.so"
10105  shlibpath_var=LIBRARY_PATH
10106  ;;
10107
10108bsdi[45]*)
10109  version_type=linux
10110  need_version=no
10111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112  soname_spec='${libname}${release}${shared_ext}$major'
10113  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10114  shlibpath_var=LD_LIBRARY_PATH
10115  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10116  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10117  # the default ld.so.conf also contains /usr/contrib/lib and
10118  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10119  # libtool to hard-code these into programs
10120  ;;
10121
10122cygwin* | mingw* | pw32*)
10123  version_type=windows
10124  shrext_cmds=".dll"
10125  need_version=no
10126  need_lib_prefix=no
10127
10128  case $GCC,$host_os in
10129  yes,cygwin* | yes,mingw* | yes,pw32*)
10130    library_names_spec='$libname.dll.a'
10131    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10132    postinstall_cmds='base_file=`basename \${file}`~
10133      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10134      dldir=$destdir/`dirname \$dlpath`~
10135      test -d \$dldir || mkdir -p \$dldir~
10136      $install_prog $dir/$dlname \$dldir/$dlname~
10137      chmod a+x \$dldir/$dlname'
10138    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10139      dlpath=$dir/\$dldll~
10140       $rm \$dlpath'
10141    shlibpath_overrides_runpath=yes
10142
10143    case $host_os in
10144    cygwin*)
10145      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10146      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10148      ;;
10149    mingw*)
10150      # MinGW DLLs use traditional 'lib' prefix
10151      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10152      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10153      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10154        # It is most probably a Windows format PATH printed by
10155        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10156        # path with ; separators, and with drive letters. We can handle the
10157        # drive letters (cygwin fileutils understands them), so leave them,
10158        # especially as we might pass files found there to a mingw objdump,
10159        # which wouldn't understand a cygwinified path. Ahh.
10160        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10161      else
10162        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10163      fi
10164      ;;
10165    pw32*)
10166      # pw32 DLLs use 'pw' prefix rather than 'lib'
10167      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10168      ;;
10169    esac
10170    ;;
10171
10172  *)
10173    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10174    ;;
10175  esac
10176  dynamic_linker='Win32 ld.exe'
10177  # FIXME: first we should search . and the directory the executable is in
10178  shlibpath_var=PATH
10179  ;;
10180
10181darwin* | rhapsody*)
10182  dynamic_linker="$host_os dyld"
10183  version_type=darwin
10184  need_lib_prefix=no
10185  need_version=no
10186  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10187  soname_spec='${libname}${release}${major}$shared_ext'
10188  shlibpath_overrides_runpath=yes
10189  shlibpath_var=DYLD_LIBRARY_PATH
10190  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10191  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10192  if test "$GCC" = yes; then
10193    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"`
10194  else
10195    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10196  fi
10197  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10198  ;;
10199
10200dgux*)
10201  version_type=linux
10202  need_lib_prefix=no
10203  need_version=no
10204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10205  soname_spec='${libname}${release}${shared_ext}$major'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  ;;
10208
10209freebsd1*)
10210  dynamic_linker=no
10211  ;;
10212
10213kfreebsd*-gnu)
10214  version_type=linux
10215  need_lib_prefix=no
10216  need_version=no
10217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10218  soname_spec='${libname}${release}${shared_ext}$major'
10219  shlibpath_var=LD_LIBRARY_PATH
10220  shlibpath_overrides_runpath=no
10221  hardcode_into_libs=yes
10222  dynamic_linker='GNU ld.so'
10223  ;;
10224
10225freebsd* | dragonfly*)
10226  # DragonFly does not have aout.  When/if they implement a new
10227  # versioning mechanism, adjust this.
10228  if test -x /usr/bin/objformat; then
10229    objformat=`/usr/bin/objformat`
10230  else
10231    case $host_os in
10232    freebsd[123]*) objformat=aout ;;
10233    *) objformat=elf ;;
10234    esac
10235  fi
10236  version_type=freebsd-$objformat
10237  case $version_type in
10238    freebsd-elf*)
10239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10240      need_version=no
10241      need_lib_prefix=no
10242      ;;
10243    freebsd-*)
10244      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10245      need_version=yes
10246      ;;
10247  esac
10248  shlibpath_var=LD_LIBRARY_PATH
10249  case $host_os in
10250  freebsd2*)
10251    shlibpath_overrides_runpath=yes
10252    ;;
10253  freebsd3.[01]* | freebsdelf3.[01]*)
10254    shlibpath_overrides_runpath=yes
10255    hardcode_into_libs=yes
10256    ;;
10257  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10258  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10259    shlibpath_overrides_runpath=no
10260    hardcode_into_libs=yes
10261    ;;
10262  freebsd*) # from 4.6 on
10263    shlibpath_overrides_runpath=yes
10264    hardcode_into_libs=yes
10265    ;;
10266  esac
10267  ;;
10268
10269gnu*)
10270  version_type=linux
10271  need_lib_prefix=no
10272  need_version=no
10273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10274  soname_spec='${libname}${release}${shared_ext}$major'
10275  shlibpath_var=LD_LIBRARY_PATH
10276  hardcode_into_libs=yes
10277  ;;
10278
10279hpux9* | hpux10* | hpux11*)
10280  # Give a soname corresponding to the major version so that dld.sl refuses to
10281  # link against other versions.
10282  version_type=sunos
10283  need_lib_prefix=no
10284  need_version=no
10285  case $host_cpu in
10286  ia64*)
10287    shrext_cmds='.so'
10288    hardcode_into_libs=yes
10289    dynamic_linker="$host_os dld.so"
10290    shlibpath_var=LD_LIBRARY_PATH
10291    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293    soname_spec='${libname}${release}${shared_ext}$major'
10294    if test "X$HPUX_IA64_MODE" = X32; then
10295      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10296    else
10297      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10298    fi
10299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10300    ;;
10301   hppa*64*)
10302     shrext_cmds='.sl'
10303     hardcode_into_libs=yes
10304     dynamic_linker="$host_os dld.sl"
10305     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308     soname_spec='${libname}${release}${shared_ext}$major'
10309     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10310     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10311     ;;
10312   *)
10313    shrext_cmds='.sl'
10314    dynamic_linker="$host_os dld.sl"
10315    shlibpath_var=SHLIB_PATH
10316    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10317    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318    soname_spec='${libname}${release}${shared_ext}$major'
10319    ;;
10320  esac
10321  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10322  postinstall_cmds='chmod 555 $lib'
10323  ;;
10324
10325interix3*)
10326  version_type=linux
10327  need_lib_prefix=no
10328  need_version=no
10329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10330  soname_spec='${libname}${release}${shared_ext}$major'
10331  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  shlibpath_overrides_runpath=no
10334  hardcode_into_libs=yes
10335  ;;
10336
10337irix5* | irix6* | nonstopux*)
10338  case $host_os in
10339    nonstopux*) version_type=nonstopux ;;
10340    *)
10341        if test "$lt_cv_prog_gnu_ld" = yes; then
10342                version_type=linux
10343        else
10344                version_type=irix
10345        fi ;;
10346  esac
10347  need_lib_prefix=no
10348  need_version=no
10349  soname_spec='${libname}${release}${shared_ext}$major'
10350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10351  case $host_os in
10352  irix5* | nonstopux*)
10353    libsuff= shlibsuff=
10354    ;;
10355  *)
10356    case $LD in # libtool.m4 will add one of these switches to LD
10357    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10358      libsuff= shlibsuff= libmagic=32-bit;;
10359    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10360      libsuff=32 shlibsuff=N32 libmagic=N32;;
10361    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10362      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10363    *) libsuff= shlibsuff= libmagic=never-match;;
10364    esac
10365    ;;
10366  esac
10367  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10368  shlibpath_overrides_runpath=no
10369  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10370  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10371  hardcode_into_libs=yes
10372  ;;
10373
10374# No shared lib support for Linux oldld, aout, or coff.
10375linux*oldld* | linux*aout* | linux*coff*)
10376  dynamic_linker=no
10377  ;;
10378
10379# This must be Linux ELF.
10380linux*)
10381  version_type=linux
10382  need_lib_prefix=no
10383  need_version=no
10384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385  soname_spec='${libname}${release}${shared_ext}$major'
10386  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10387  shlibpath_var=LD_LIBRARY_PATH
10388  shlibpath_overrides_runpath=no
10389  # This implies no fast_install, which is unacceptable.
10390  # Some rework will be needed to allow for fast_install
10391  # before this can be enabled.
10392  hardcode_into_libs=yes
10393
10394  # Append ld.so.conf contents to the search path
10395  if test -f /etc/ld.so.conf; then
10396    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' ' '`
10397    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10398  fi
10399
10400  # We used to test for /lib/ld.so.1 and disable shared libraries on
10401  # powerpc, because MkLinux only supported shared libraries with the
10402  # GNU dynamic linker.  Since this was broken with cross compilers,
10403  # most powerpc-linux boxes support dynamic linking these days and
10404  # people can always --disable-shared, the test was removed, and we
10405  # assume the GNU/Linux dynamic linker is in use.
10406  dynamic_linker='GNU/Linux ld.so'
10407  ;;
10408
10409knetbsd*-gnu)
10410  version_type=linux
10411  need_lib_prefix=no
10412  need_version=no
10413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10414  soname_spec='${libname}${release}${shared_ext}$major'
10415  shlibpath_var=LD_LIBRARY_PATH
10416  shlibpath_overrides_runpath=no
10417  hardcode_into_libs=yes
10418  dynamic_linker='GNU ld.so'
10419  ;;
10420
10421netbsd*)
10422  version_type=sunos
10423  need_lib_prefix=no
10424  need_version=no
10425  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10427    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10428    dynamic_linker='NetBSD (a.out) ld.so'
10429  else
10430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10431    soname_spec='${libname}${release}${shared_ext}$major'
10432    dynamic_linker='NetBSD ld.elf_so'
10433  fi
10434  shlibpath_var=LD_LIBRARY_PATH
10435  shlibpath_overrides_runpath=yes
10436  hardcode_into_libs=yes
10437  ;;
10438
10439newsos6)
10440  version_type=linux
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442  shlibpath_var=LD_LIBRARY_PATH
10443  shlibpath_overrides_runpath=yes
10444  ;;
10445
10446nto-qnx*)
10447  version_type=linux
10448  need_lib_prefix=no
10449  need_version=no
10450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451  soname_spec='${libname}${release}${shared_ext}$major'
10452  shlibpath_var=LD_LIBRARY_PATH
10453  shlibpath_overrides_runpath=yes
10454  ;;
10455
10456openbsd*)
10457  version_type=sunos
10458  sys_lib_dlsearch_path_spec="/usr/lib"
10459  need_lib_prefix=no
10460  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10461  case $host_os in
10462    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10463    *)                         need_version=no  ;;
10464  esac
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10469    case $host_os in
10470      openbsd2.[89] | openbsd2.[89].*)
10471        shlibpath_overrides_runpath=no
10472        ;;
10473      *)
10474        shlibpath_overrides_runpath=yes
10475        ;;
10476      esac
10477  else
10478    shlibpath_overrides_runpath=yes
10479  fi
10480  ;;
10481
10482os2*)
10483  libname_spec='$name'
10484  shrext_cmds=".dll"
10485  need_lib_prefix=no
10486  library_names_spec='$libname${shared_ext} $libname.a'
10487  dynamic_linker='OS/2 ld.exe'
10488  shlibpath_var=LIBPATH
10489  ;;
10490
10491osf3* | osf4* | osf5*)
10492  version_type=osf
10493  need_lib_prefix=no
10494  need_version=no
10495  soname_spec='${libname}${release}${shared_ext}$major'
10496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497  shlibpath_var=LD_LIBRARY_PATH
10498  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10499  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10500  ;;
10501
10502solaris*)
10503  version_type=linux
10504  need_lib_prefix=no
10505  need_version=no
10506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507  soname_spec='${libname}${release}${shared_ext}$major'
10508  shlibpath_var=LD_LIBRARY_PATH
10509  shlibpath_overrides_runpath=yes
10510  hardcode_into_libs=yes
10511  # ldd complains unless libraries are executable
10512  postinstall_cmds='chmod +x $lib'
10513  ;;
10514
10515sunos4*)
10516  version_type=sunos
10517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10518  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=yes
10521  if test "$with_gnu_ld" = yes; then
10522    need_lib_prefix=no
10523  fi
10524  need_version=yes
10525  ;;
10526
10527sysv4 | sysv4.3*)
10528  version_type=linux
10529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530  soname_spec='${libname}${release}${shared_ext}$major'
10531  shlibpath_var=LD_LIBRARY_PATH
10532  case $host_vendor in
10533    sni)
10534      shlibpath_overrides_runpath=no
10535      need_lib_prefix=no
10536      export_dynamic_flag_spec='${wl}-Blargedynsym'
10537      runpath_var=LD_RUN_PATH
10538      ;;
10539    siemens)
10540      need_lib_prefix=no
10541      ;;
10542    motorola)
10543      need_lib_prefix=no
10544      need_version=no
10545      shlibpath_overrides_runpath=no
10546      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10547      ;;
10548  esac
10549  ;;
10550
10551sysv4*MP*)
10552  if test -d /usr/nec ;then
10553    version_type=linux
10554    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10555    soname_spec='$libname${shared_ext}.$major'
10556    shlibpath_var=LD_LIBRARY_PATH
10557  fi
10558  ;;
10559
10560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10561  version_type=freebsd-elf
10562  need_lib_prefix=no
10563  need_version=no
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10565  soname_spec='${libname}${release}${shared_ext}$major'
10566  shlibpath_var=LD_LIBRARY_PATH
10567  hardcode_into_libs=yes
10568  if test "$with_gnu_ld" = yes; then
10569    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10570    shlibpath_overrides_runpath=no
10571  else
10572    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10573    shlibpath_overrides_runpath=yes
10574    case $host_os in
10575      sco3.2v5*)
10576        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10577        ;;
10578    esac
10579  fi
10580  sys_lib_dlsearch_path_spec='/usr/lib'
10581  ;;
10582
10583uts4*)
10584  version_type=linux
10585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586  soname_spec='${libname}${release}${shared_ext}$major'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  ;;
10589
10590*)
10591  dynamic_linker=no
10592  ;;
10593esac
10594echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10595echo "${ECHO_T}$dynamic_linker" >&6
10596test "$dynamic_linker" = no && can_build_shared=no
10597
10598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10599if test "$GCC" = yes; then
10600  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10601fi
10602
10603echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10604echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10605hardcode_action=
10606if test -n "$hardcode_libdir_flag_spec" || \
10607   test -n "$runpath_var" || \
10608   test "X$hardcode_automatic" = "Xyes" ; then
10609
10610  # We can hardcode non-existant directories.
10611  if test "$hardcode_direct" != no &&
10612     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10613     # have to relink, otherwise we might link with an installed library
10614     # when we should be linking with a yet-to-be-installed one
10615     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10616     test "$hardcode_minus_L" != no; then
10617    # Linking always hardcodes the temporary library directory.
10618    hardcode_action=relink
10619  else
10620    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10621    hardcode_action=immediate
10622  fi
10623else
10624  # We cannot hardcode anything, or else we can only hardcode existing
10625  # directories.
10626  hardcode_action=unsupported
10627fi
10628echo "$as_me:$LINENO: result: $hardcode_action" >&5
10629echo "${ECHO_T}$hardcode_action" >&6
10630
10631if test "$hardcode_action" = relink; then
10632  # Fast installation is not supported
10633  enable_fast_install=no
10634elif test "$shlibpath_overrides_runpath" = yes ||
10635     test "$enable_shared" = no; then
10636  # Fast installation is not necessary
10637  enable_fast_install=needless
10638fi
10639
10640striplib=
10641old_striplib=
10642echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10643echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10644if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10645  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10646  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10647  echo "$as_me:$LINENO: result: yes" >&5
10648echo "${ECHO_T}yes" >&6
10649else
10650# FIXME - insert some real tests, host_os isn't really good enough
10651  case $host_os in
10652   darwin*)
10653       if test -n "$STRIP" ; then
10654         striplib="$STRIP -x"
10655         echo "$as_me:$LINENO: result: yes" >&5
10656echo "${ECHO_T}yes" >&6
10657       else
10658  echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6
10660fi
10661       ;;
10662   *)
10663  echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
10665    ;;
10666  esac
10667fi
10668
10669if test "x$enable_dlopen" != xyes; then
10670  enable_dlopen=unknown
10671  enable_dlopen_self=unknown
10672  enable_dlopen_self_static=unknown
10673else
10674  lt_cv_dlopen=no
10675  lt_cv_dlopen_libs=
10676
10677  case $host_os in
10678  beos*)
10679    lt_cv_dlopen="load_add_on"
10680    lt_cv_dlopen_libs=
10681    lt_cv_dlopen_self=yes
10682    ;;
10683
10684  mingw* | pw32*)
10685    lt_cv_dlopen="LoadLibrary"
10686    lt_cv_dlopen_libs=
10687   ;;
10688
10689  cygwin*)
10690    lt_cv_dlopen="dlopen"
10691    lt_cv_dlopen_libs=
10692   ;;
10693
10694  darwin*)
10695  # if libdl is installed we need to link against it
10696    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10697echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10698if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10699  echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701  ac_check_lib_save_LIBS=$LIBS
10702LIBS="-ldl  $LIBS"
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h.  */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h.  */
10709
10710/* Override any gcc2 internal prototype to avoid an error.  */
10711#ifdef __cplusplus
10712extern "C"
10713#endif
10714/* We use char because int might match the return type of a gcc2
10715   builtin and then its argument prototype would still apply.  */
10716char dlopen ();
10717int
10718main ()
10719{
10720dlopen ();
10721  ;
10722  return 0;
10723}
10724_ACEOF
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727  (eval $ac_link) 2>conftest.er1
10728  ac_status=$?
10729  grep -v '^ *+' conftest.er1 >conftest.err
10730  rm -f conftest.er1
10731  cat conftest.err >&5
10732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733  (exit $ac_status); } &&
10734         { ac_try='test -z "$ac_c_werror_flag"
10735                         || test ! -s conftest.err'
10736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737  (eval $ac_try) 2>&5
10738  ac_status=$?
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); }; } &&
10741         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10747  ac_cv_lib_dl_dlopen=yes
10748else