source: stable/2.8/configure @ 1985

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

restoring Cbc/stable/2.8

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