source: stable/2.8/configure @ 1994

Last change on this file since 1994 was 1994, checked in by tkr, 5 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 790.1 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.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.8'
434PACKAGE_STRING='Cbc 2.8.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.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.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.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.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 "$CC" 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          *gcc*)
4731            if test x"$enable_dependency_linking" = xyes; then
4732              coin_disable_shared=no
4733            else
4734              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4735echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4736            fi
4737            ;;
4738          *)
4739            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4740echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4741            ;;
4742        esac
4743      fi
4744    ;;
4745    *-aix*)
4746      coin_disable_shared=yes
4747      platform=AIX
4748      if test x"$enable_shared" = xyes; then
4749        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4750echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4751      fi
4752    ;;
4753  esac
4754fi
4755if test x"$coin_disable_shared" = xyes; then
4756  if test x"$enable_shared" = xyes; then
4757    :
4758  else
4759    # we don't disable shared, because it was not selected anyway
4760    coin_disable_shared=no
4761  fi
4762  enable_shared=no
4763fi
4764# By default, we only want the shared objects to be compiled
4765# Check whether --enable-static or --disable-static was given.
4766if test "${enable_static+set}" = set; then
4767  enableval="$enable_static"
4768  p=${PACKAGE-default}
4769    case $enableval in
4770    yes) enable_static=yes ;;
4771    no) enable_static=no ;;
4772    *)
4773     enable_static=no
4774      # Look at the argument we got.  We use all the common list separators.
4775      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4776      for pkg in $enableval; do
4777        IFS="$lt_save_ifs"
4778        if test "X$pkg" = "X$p"; then
4779          enable_static=yes
4780        fi
4781      done
4782      IFS="$lt_save_ifs"
4783      ;;
4784    esac
4785else
4786  enable_static=no
4787fi;
4788
4789
4790
4791
4792# Initialize automake
4793echo "$as_me:$LINENO: checking for egrep" >&5
4794echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4795if test "${ac_cv_prog_egrep+set}" = set; then
4796  echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4799    then ac_cv_prog_egrep='grep -E'
4800    else ac_cv_prog_egrep='egrep'
4801    fi
4802fi
4803echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4804echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4805 EGREP=$ac_cv_prog_egrep
4806
4807
4808echo "$as_me:$LINENO: checking whether ln -s works" >&5
4809echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4810LN_S=$as_ln_s
4811if test "$LN_S" = "ln -s"; then
4812  echo "$as_me:$LINENO: result: yes" >&5
4813echo "${ECHO_T}yes" >&6
4814else
4815  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4816echo "${ECHO_T}no, using $LN_S" >&6
4817fi
4818
4819am__api_version="1.9"
4820# Find a good install program.  We prefer a C program (faster),
4821# so one script is as good as another.  But avoid the broken or
4822# incompatible versions:
4823# SysV /etc/install, /usr/sbin/install
4824# SunOS /usr/etc/install
4825# IRIX /sbin/install
4826# AIX /bin/install
4827# AmigaOS /C/install, which installs bootblocks on floppy discs
4828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4831# OS/2's system install, which has a completely different semantic
4832# ./install, which can be erroneously created by make from ./install.sh.
4833echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4834echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4835if test -z "$INSTALL"; then
4836if test "${ac_cv_path_install+set}" = set; then
4837  echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  test -z "$as_dir" && as_dir=.
4844  # Account for people who put trailing slashes in PATH elements.
4845case $as_dir/ in
4846  ./ | .// | /cC/* | \
4847  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4848  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4849  /usr/ucb/* ) ;;
4850  *)
4851    # OSF1 and SCO ODT 3.0 have their own names for install.
4852    # Don't use installbsd from OSF since it installs stuff as root
4853    # by default.
4854    for ac_prog in ginstall scoinst install; do
4855      for ac_exec_ext in '' $ac_executable_extensions; do
4856        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4857          if test $ac_prog = install &&
4858            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859            # AIX install.  It has an incompatible calling convention.
4860            :
4861          elif test $ac_prog = install &&
4862            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4863            # program-specific install script used by HP pwplus--don't use.
4864            :
4865          else
4866            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4867            break 3
4868          fi
4869        fi
4870      done
4871    done
4872    ;;
4873esac
4874done
4875
4876
4877fi
4878  if test "${ac_cv_path_install+set}" = set; then
4879    INSTALL=$ac_cv_path_install
4880  else
4881    # As a last resort, use the slow shell script.  We don't cache a
4882    # path for INSTALL within a source directory, because that will
4883    # break other packages using the cache if that directory is
4884    # removed, or if the path is relative.
4885    INSTALL=$ac_install_sh
4886  fi
4887fi
4888echo "$as_me:$LINENO: result: $INSTALL" >&5
4889echo "${ECHO_T}$INSTALL" >&6
4890
4891# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4892# It thinks the first close brace ends the variable substitution.
4893test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4894
4895test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4896
4897test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4898
4899echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4900echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4901# Just in case
4902sleep 1
4903echo timestamp > conftest.file
4904# Do `set' in a subshell so we don't clobber the current shell's
4905# arguments.  Must try -L first in case configure is actually a
4906# symlink; some systems play weird games with the mod time of symlinks
4907# (eg FreeBSD returns the mod time of the symlink's containing
4908# directory).
4909if (
4910   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4911   if test "$*" = "X"; then
4912      # -L didn't work.
4913      set X `ls -t $srcdir/configure conftest.file`
4914   fi
4915   rm -f conftest.file
4916   if test "$*" != "X $srcdir/configure conftest.file" \
4917      && test "$*" != "X conftest.file $srcdir/configure"; then
4918
4919      # If neither matched, then we have a broken ls.  This can happen
4920      # if, for instance, CONFIG_SHELL is bash and it inherits a
4921      # broken ls alias from the environment.  This has actually
4922      # happened.  Such a system could not be considered "sane".
4923      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4924alias in your environment" >&5
4925echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4926alias in your environment" >&2;}
4927   { (exit 1); exit 1; }; }
4928   fi
4929
4930   test "$2" = conftest.file
4931   )
4932then
4933   # Ok.
4934   :
4935else
4936   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4937Check your system clock" >&5
4938echo "$as_me: error: newly created file is older than distributed files!
4939Check your system clock" >&2;}
4940   { (exit 1); exit 1; }; }
4941fi
4942echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944test "$program_prefix" != NONE &&
4945  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4946# Use a double $ so make ignores it.
4947test "$program_suffix" != NONE &&
4948  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4949# Double any \ or $.  echo might interpret backslashes.
4950# By default was `s,x,x', remove it if useless.
4951cat <<\_ACEOF >conftest.sed
4952s/[\\$]/&&/g;s/;s,x,x,$//
4953_ACEOF
4954program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4955rm conftest.sed
4956
4957# expand $ac_aux_dir to an absolute path
4958am_aux_dir=`cd $ac_aux_dir && pwd`
4959
4960test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4961# Use eval to expand $SHELL
4962if eval "$MISSING --run true"; then
4963  am_missing_run="$MISSING --run "
4964else
4965  am_missing_run=
4966  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4967echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4968fi
4969
4970if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4971  # We used to keeping the `.' as first argument, in order to
4972  # allow $(mkdir_p) to be used without argument.  As in
4973  #   $(mkdir_p) $(somedir)
4974  # where $(somedir) is conditionally defined.  However this is wrong
4975  # for two reasons:
4976  #  1. if the package is installed by a user who cannot write `.'
4977  #     make install will fail,
4978  #  2. the above comment should most certainly read
4979  #     $(mkdir_p) $(DESTDIR)$(somedir)
4980  #     so it does not work when $(somedir) is undefined and
4981  #     $(DESTDIR) is not.
4982  #  To support the latter case, we have to write
4983  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4984  #  so the `.' trick is pointless.
4985  mkdir_p='mkdir -p --'
4986else
4987  # On NextStep and OpenStep, the `mkdir' command does not
4988  # recognize any option.  It will interpret all options as
4989  # directories to create, and then abort because `.' already
4990  # exists.
4991  for d in ./-p ./--version;
4992  do
4993    test -d $d && rmdir $d
4994  done
4995  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4996  if test -f "$ac_aux_dir/mkinstalldirs"; then
4997    mkdir_p='$(mkinstalldirs)'
4998  else
4999    mkdir_p='$(install_sh) -d'
5000  fi
5001fi
5002
5003for ac_prog in gawk mawk nawk awk
5004do
5005  # Extract the first word of "$ac_prog", so it can be a program name with args.
5006set dummy $ac_prog; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_prog_AWK+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  if test -n "$AWK"; then
5013  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018  IFS=$as_save_IFS
5019  test -z "$as_dir" && as_dir=.
5020  for ac_exec_ext in '' $ac_executable_extensions; do
5021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022    ac_cv_prog_AWK="$ac_prog"
5023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024    break 2
5025  fi
5026done
5027done
5028
5029fi
5030fi
5031AWK=$ac_cv_prog_AWK
5032if test -n "$AWK"; then
5033  echo "$as_me:$LINENO: result: $AWK" >&5
5034echo "${ECHO_T}$AWK" >&6
5035else
5036  echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038fi
5039
5040  test -n "$AWK" && break
5041done
5042
5043echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5044echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5045set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5046if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5047  echo $ECHO_N "(cached) $ECHO_C" >&6
5048else
5049  cat >conftest.make <<\_ACEOF
5050all:
5051        @echo 'ac_maketemp="$(MAKE)"'
5052_ACEOF
5053# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5054eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5055if test -n "$ac_maketemp"; then
5056  eval ac_cv_prog_make_${ac_make}_set=yes
5057else
5058  eval ac_cv_prog_make_${ac_make}_set=no
5059fi
5060rm -f conftest.make
5061fi
5062if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5063  echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065  SET_MAKE=
5066else
5067  echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6
5069  SET_MAKE="MAKE=${MAKE-make}"
5070fi
5071
5072rm -rf .tst 2>/dev/null
5073mkdir .tst 2>/dev/null
5074if test -d .tst; then
5075  am__leading_dot=.
5076else
5077  am__leading_dot=_
5078fi
5079rmdir .tst 2>/dev/null
5080
5081DEPDIR="${am__leading_dot}deps"
5082
5083          ac_config_commands="$ac_config_commands depfiles"
5084
5085
5086am_make=${MAKE-make}
5087cat > confinc << 'END'
5088am__doit:
5089        @echo done
5090.PHONY: am__doit
5091END
5092# If we don't find an include directive, just comment out the code.
5093echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5094echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5095am__include="#"
5096am__quote=
5097_am_result=none
5098# First try GNU make style include.
5099echo "include confinc" > confmf
5100# We grep out `Entering directory' and `Leaving directory'
5101# messages which can occur if `w' ends up in MAKEFLAGS.
5102# In particular we don't look at `^make:' because GNU make might
5103# be invoked under some other name (usually "gmake"), in which
5104# case it prints its new name instead of `make'.
5105if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5106   am__include=include
5107   am__quote=
5108   _am_result=GNU
5109fi
5110# Now try BSD make style include.
5111if test "$am__include" = "#"; then
5112   echo '.include "confinc"' > confmf
5113   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5114      am__include=.include
5115      am__quote="\""
5116      _am_result=BSD
5117   fi
5118fi
5119
5120
5121echo "$as_me:$LINENO: result: $_am_result" >&5
5122echo "${ECHO_T}$_am_result" >&6
5123rm -f confinc confmf
5124
5125# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5126if test "${enable_dependency_tracking+set}" = set; then
5127  enableval="$enable_dependency_tracking"
5128
5129fi;
5130if test "x$enable_dependency_tracking" != xno; then
5131  am_depcomp="$ac_aux_dir/depcomp"
5132  AMDEPBACKSLASH='\'
5133fi
5134
5135
5136if test "x$enable_dependency_tracking" != xno; then
5137  AMDEP_TRUE=
5138  AMDEP_FALSE='#'
5139else
5140  AMDEP_TRUE='#'
5141  AMDEP_FALSE=
5142fi
5143
5144
5145
5146
5147
5148
5149# AC_MSG_NOTICE([Beginning automake initialisation.])
5150# Stuff for automake
5151# test to see if srcdir already configured
5152if test "`cd $srcdir && pwd`" != "`pwd`" &&
5153   test -f $srcdir/config.status; then
5154  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5155echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5156   { (exit 1); exit 1; }; }
5157fi
5158
5159# test whether we have cygpath
5160if test -z "$CYGPATH_W"; then
5161  if (cygpath --version) >/dev/null 2>/dev/null; then
5162    CYGPATH_W='cygpath -w'
5163  else
5164    CYGPATH_W=echo
5165  fi
5166fi
5167
5168
5169# Define the identity of the package.
5170 PACKAGE='cbc'
5171 VERSION='2.8.8'
5172
5173
5174cat >>confdefs.h <<_ACEOF
5175#define PACKAGE "$PACKAGE"
5176_ACEOF
5177
5178
5179cat >>confdefs.h <<_ACEOF
5180#define VERSION "$VERSION"
5181_ACEOF
5182
5183# Some tools Automake needs.
5184
5185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5186
5187
5188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5189
5190
5191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5192
5193
5194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5195
5196
5197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5198
5199install_sh=${install_sh-"$am_aux_dir/install-sh"}
5200
5201# Installed binaries are usually stripped using `strip' when the user
5202# run `make install-strip'.  However `strip' might not be the right
5203# tool to use in cross-compilation environments, therefore Automake
5204# will honor the `STRIP' environment variable to overrule this program.
5205if test "$cross_compiling" != no; then
5206  if test -n "$ac_tool_prefix"; then
5207  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208set dummy ${ac_tool_prefix}strip; ac_word=$2
5209echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211if test "${ac_cv_prog_STRIP+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214  if test -n "$STRIP"; then
5215  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220  IFS=$as_save_IFS
5221  test -z "$as_dir" && as_dir=.
5222  for ac_exec_ext in '' $ac_executable_extensions; do
5223  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226    break 2
5227  fi
5228done
5229done
5230
5231fi
5232fi
5233STRIP=$ac_cv_prog_STRIP
5234if test -n "$STRIP"; then
5235  echo "$as_me:$LINENO: result: $STRIP" >&5
5236echo "${ECHO_T}$STRIP" >&6
5237else
5238  echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240fi
5241
5242fi
5243if test -z "$ac_cv_prog_STRIP"; then
5244  ac_ct_STRIP=$STRIP
5245  # Extract the first word of "strip", so it can be a program name with args.
5246set dummy strip; ac_word=$2
5247echo "$as_me:$LINENO: checking for $ac_word" >&5
5248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250  echo $ECHO_N "(cached) $ECHO_C" >&6
5251else
5252  if test -n "$ac_ct_STRIP"; then
5253  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258  IFS=$as_save_IFS
5259  test -z "$as_dir" && as_dir=.
5260  for ac_exec_ext in '' $ac_executable_extensions; do
5261  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262    ac_cv_prog_ac_ct_STRIP="strip"
5263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264    break 2
5265  fi
5266done
5267done
5268
5269  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5270fi
5271fi
5272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273if test -n "$ac_ct_STRIP"; then
5274  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275echo "${ECHO_T}$ac_ct_STRIP" >&6
5276else
5277  echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
5279fi
5280
5281  STRIP=$ac_ct_STRIP
5282else
5283  STRIP="$ac_cv_prog_STRIP"
5284fi
5285
5286fi
5287INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5288
5289# We need awk for the "check" target.  The system "awk" is bad on
5290# some platforms.
5291# Always define AMTAR for backward compatibility.
5292
5293AMTAR=${AMTAR-"${am_missing_run}tar"}
5294
5295am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5296
5297
5298
5299
5300depcc="$CC"   am_compiler_list=
5301
5302echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5303echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5304if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5308  # We make a subdir and do the tests there.  Otherwise we can end up
5309  # making bogus files that we don't know about and never remove.  For
5310  # instance it was reported that on HP-UX the gcc test will end up
5311  # making a dummy file named `D' -- because `-MD' means `put the output
5312  # in D'.
5313  mkdir conftest.dir
5314  # Copy depcomp to subdir because otherwise we won't find it if we're
5315  # using a relative directory.
5316  cp "$am_depcomp" conftest.dir
5317  cd conftest.dir
5318  # We will build objects and dependencies in a subdirectory because
5319  # it helps to detect inapplicable dependency modes.  For instance
5320  # both Tru64's cc and ICC support -MD to output dependencies as a
5321  # side effect of compilation, but ICC will put the dependencies in
5322  # the current directory while Tru64 will put them in the object
5323  # directory.
5324  mkdir sub
5325
5326  am_cv_CC_dependencies_compiler_type=none
5327  if test "$am_compiler_list" = ""; then
5328     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5329  fi
5330  for depmode in $am_compiler_list; do
5331    # Setup a source with many dependencies, because some compilers
5332    # like to wrap large dependency lists on column 80 (with \), and
5333    # we should not choose a depcomp mode which is confused by this.
5334    #
5335    # We need to recreate these files for each test, as the compiler may
5336    # overwrite some of them when testing with obscure command lines.
5337    # This happens at least with the AIX C compiler.
5338    : > sub/conftest.c
5339    for i in 1 2 3 4 5 6; do
5340      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5341      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5342      # Solaris 8's {/usr,}/bin/sh.
5343      touch sub/conftst$i.h
5344    done
5345    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5346
5347    case $depmode in
5348    nosideeffect)
5349      # after this tag, mechanisms are not by side-effect, so they'll
5350      # only be used when explicitly requested
5351      if test "x$enable_dependency_tracking" = xyes; then
5352        continue
5353      else
5354        break
5355      fi
5356      ;;
5357    none) break ;;
5358    esac
5359    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5360    # mode.  It turns out that the SunPro C++ compiler does not properly
5361    # handle `-M -o', and we need to detect this.
5362    if depmode=$depmode \
5363       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5364       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5365       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5366         >/dev/null 2>conftest.err &&
5367       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5368       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5369       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5370      # icc doesn't choke on unknown options, it will just issue warnings
5371      # or remarks (even with -Werror).  So we grep stderr for any message
5372      # that says an option was ignored or not supported.
5373      # When given -MP, icc 7.0 and 7.1 complain thusly:
5374      #   icc: Command line warning: ignoring option '-M'; no argument required
5375      # The diagnosis changed in icc 8.0:
5376      #   icc: Command line remark: option '-MP' not supported
5377      if (grep 'ignoring option' conftest.err ||
5378          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5379        am_cv_CC_dependencies_compiler_type=$depmode
5380        break
5381      fi
5382    fi
5383  done
5384
5385  cd ..
5386  rm -rf conftest.dir
5387else
5388  am_cv_CC_dependencies_compiler_type=none
5389fi
5390
5391fi
5392echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5393echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5394CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5395
5396
5397
5398if
5399  test "x$enable_dependency_tracking" != xno \
5400  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5401  am__fastdepCC_TRUE=
5402  am__fastdepCC_FALSE='#'
5403else
5404  am__fastdepCC_TRUE='#'
5405  am__fastdepCC_FALSE=
5406fi
5407
5408
5409depcc="$CXX"  am_compiler_list=
5410
5411echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5412echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5413if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5417  # We make a subdir and do the tests there.  Otherwise we can end up
5418  # making bogus files that we don't know about and never remove.  For
5419  # instance it was reported that on HP-UX the gcc test will end up
5420  # making a dummy file named `D' -- because `-MD' means `put the output
5421  # in D'.
5422  mkdir conftest.dir
5423  # Copy depcomp to subdir because otherwise we won't find it if we're
5424  # using a relative directory.
5425  cp "$am_depcomp" conftest.dir
5426  cd conftest.dir
5427  # We will build objects and dependencies in a subdirectory because
5428  # it helps to detect inapplicable dependency modes.  For instance
5429  # both Tru64's cc and ICC support -MD to output dependencies as a
5430  # side effect of compilation, but ICC will put the dependencies in
5431  # the current directory while Tru64 will put them in the object
5432  # directory.
5433  mkdir sub
5434
5435  am_cv_CXX_dependencies_compiler_type=none
5436  if test "$am_compiler_list" = ""; then
5437     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5438  fi
5439  for depmode in $am_compiler_list; do
5440    # Setup a source with many dependencies, because some compilers
5441    # like to wrap large dependency lists on column 80 (with \), and
5442    # we should not choose a depcomp mode which is confused by this.
5443    #
5444    # We need to recreate these files for each test, as the compiler may
5445    # overwrite some of them when testing with obscure command lines.
5446    # This happens at least with the AIX C compiler.
5447    : > sub/conftest.c
5448    for i in 1 2 3 4 5 6; do
5449      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5450      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5451      # Solaris 8's {/usr,}/bin/sh.
5452      touch sub/conftst$i.h
5453    done
5454    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5455
5456    case $depmode in
5457    nosideeffect)
5458      # after this tag, mechanisms are not by side-effect, so they'll
5459      # only be used when explicitly requested
5460      if test "x$enable_dependency_tracking" = xyes; then
5461        continue
5462      else
5463        break
5464      fi
5465      ;;
5466    none) break ;;
5467    esac
5468    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5469    # mode.  It turns out that the SunPro C++ compiler does not properly
5470    # handle `-M -o', and we need to detect this.
5471    if depmode=$depmode \
5472       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5473       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5474       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5475         >/dev/null 2>conftest.err &&
5476       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5477       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5478       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5479      # icc doesn't choke on unknown options, it will just issue warnings
5480      # or remarks (even with -Werror).  So we grep stderr for any message
5481      # that says an option was ignored or not supported.
5482      # When given -MP, icc 7.0 and 7.1 complain thusly:
5483      #   icc: Command line warning: ignoring option '-M'; no argument required
5484      # The diagnosis changed in icc 8.0:
5485      #   icc: Command line remark: option '-MP' not supported
5486      if (grep 'ignoring option' conftest.err ||
5487          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5488        am_cv_CXX_dependencies_compiler_type=$depmode
5489        break
5490      fi
5491    fi
5492  done
5493
5494  cd ..
5495  rm -rf conftest.dir
5496else
5497  am_cv_CXX_dependencies_compiler_type=none
5498fi
5499
5500fi
5501echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5502echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5503CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5504
5505
5506
5507if
5508  test "x$enable_dependency_tracking" != xno \
5509  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5510  am__fastdepCXX_TRUE=
5511  am__fastdepCXX_FALSE='#'
5512else
5513  am__fastdepCXX_TRUE='#'
5514  am__fastdepCXX_FALSE=
5515fi
5516
5517
5518
5519echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5520echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5521    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5522if test "${enable_maintainer_mode+set}" = set; then
5523  enableval="$enable_maintainer_mode"
5524  USE_MAINTAINER_MODE=$enableval
5525else
5526  USE_MAINTAINER_MODE=no
5527fi;
5528  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5529echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5530
5531
5532if test $USE_MAINTAINER_MODE = yes; then
5533  MAINTAINER_MODE_TRUE=
5534  MAINTAINER_MODE_FALSE='#'
5535else
5536  MAINTAINER_MODE_TRUE='#'
5537  MAINTAINER_MODE_FALSE=
5538fi
5539
5540  MAINT=$MAINTAINER_MODE_TRUE
5541
5542
5543
5544coin_have_externals=no
5545if test "$enable_maintainer_mode" = yes; then
5546
5547  # If maintainer mode is chosen, we make sure that the correct versions
5548  # of the tools are used, and that we know where libtool.m4 is (to
5549  # recreate acinclude.m4)
5550
5551
5552  LIBTOOLM4=
5553  # Normally, $HOME
5554  AUTOTOOLS_DFLT=$HOME
5555
5556  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5557echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5558if test "${ac_cv_use_correct_autotools+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  ac_cv_use_correct_autotools=check
5562fi
5563echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5564echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5565
5566  if test $ac_cv_use_correct_autotools = check; then
5567    ac_cv_use_correct_autotools=yes
5568    # Check if we have autoconf
5569    # Extract the first word of "autoconf", so it can be a program name with args.
5570set dummy autoconf; ac_word=$2
5571echo "$as_me:$LINENO: checking for $ac_word" >&5
5572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573if test "${ac_cv_prog_have_autoconf+set}" = set; then
5574  echo $ECHO_N "(cached) $ECHO_C" >&6
5575else
5576  if test -n "$have_autoconf"; then
5577  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5578else
5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582  IFS=$as_save_IFS
5583  test -z "$as_dir" && as_dir=.
5584  for ac_exec_ext in '' $ac_executable_extensions; do
5585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586    ac_cv_prog_have_autoconf="yes"
5587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588    break 2
5589  fi
5590done
5591done
5592
5593  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5594fi
5595fi
5596have_autoconf=$ac_cv_prog_have_autoconf
5597if test -n "$have_autoconf"; then
5598  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5599echo "${ECHO_T}$have_autoconf" >&6
5600else
5601  echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603fi
5604
5605    if test $have_autoconf = no; then
5606      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5607echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5608   { (exit 1); exit 1; }; }
5609    fi
5610
5611    # Check whether autoconf is the correct version
5612    correct_version='2.59'
5613    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5614    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5615echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5616    autoconf --version > confauto.out 2>&1
5617    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5618      echo "$as_me:$LINENO: result: yes" >&5
5619echo "${ECHO_T}yes" >&6
5620    else
5621      rm -f confauto.out
5622      echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5624      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5625echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5626   { (exit 1); exit 1; }; }
5627    fi
5628    rm -f confauto.out
5629
5630    # Check if the executable autoconf is picked up from the correct location
5631    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5632echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5633    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5634    autoconf_dir=`cd $autoconf_dir; pwd`
5635    if test x$AUTOTOOLS_DIR = x; then
5636      want_dir=$AUTOTOOLS_DFLT/bin
5637    else
5638      want_dir=$AUTOTOOLS_DIR/bin
5639    fi
5640    if test $autoconf_dir = `cd $want_dir; pwd`; then
5641      echo "$as_me:$LINENO: result: yes" >&5
5642echo "${ECHO_T}yes" >&6
5643    else
5644      rm -f confauto.out
5645      echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5648echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5649   { (exit 1); exit 1; }; }
5650    fi
5651
5652    # Check if we have automake
5653    # Extract the first word of "automake", so it can be a program name with args.
5654set dummy automake; ac_word=$2
5655echo "$as_me:$LINENO: checking for $ac_word" >&5
5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657if test "${ac_cv_prog_have_automake+set}" = set; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  if test -n "$have_automake"; then
5661  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668  for ac_exec_ext in '' $ac_executable_extensions; do
5669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670    ac_cv_prog_have_automake="yes"
5671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675done
5676
5677  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5678fi
5679fi
5680have_automake=$ac_cv_prog_have_automake
5681if test -n "$have_automake"; then
5682  echo "$as_me:$LINENO: result: $have_automake" >&5
5683echo "${ECHO_T}$have_automake" >&6
5684else
5685  echo "$as_me:$LINENO: result: no" >&5
5686echo "${ECHO_T}no" >&6
5687fi
5688
5689    if test $have_automake = no; then
5690      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5691echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5692   { (exit 1); exit 1; }; }
5693    fi
5694
5695    # Check whether automake is the correct version
5696    correct_version='1.9.6'
5697    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5698    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5699echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5700    automake --version > confauto.out 2>&1
5701    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5702      echo "$as_me:$LINENO: result: yes" >&5
5703echo "${ECHO_T}yes" >&6
5704    else
5705      rm -f confauto.out
5706      echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6
5708      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5709echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5710   { (exit 1); exit 1; }; }
5711    fi
5712    rm -f confauto.out
5713
5714    # Check if the executable automake is picked up from the correct location
5715    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5716echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5717    automake_dir=`which automake | sed -e 's=/automake=='`
5718    automake_dir=`cd $automake_dir; pwd`
5719    if test x$AUTOTOOLS_DIR = x; then
5720      want_dir=$AUTOTOOLS_DFLT/bin
5721    else
5722      want_dir=$AUTOTOOLS_DIR/bin
5723    fi
5724    if test $automake_dir = `cd $want_dir; pwd`; then
5725      echo "$as_me:$LINENO: result: yes" >&5
5726echo "${ECHO_T}yes" >&6
5727    else
5728      rm -f confauto.out
5729      echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5732echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5733   { (exit 1); exit 1; }; }
5734    fi
5735
5736    # Check if this is the correct version of libtool (with escaped dots)
5737    if test x$AUTOTOOLS_DIR = x; then
5738      want_dir=$AUTOTOOLS_DFLT/share
5739    else
5740      want_dir=$AUTOTOOLS_DIR/share
5741    fi
5742    correct_version='1.5.22'
5743    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5744    if test -r $want_dir/libtool/ltmain.sh; then
5745  have_ltmain=yes
5746  :
5747else
5748  have_ltmain=no
5749  :
5750fi
5751
5752    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5753echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5754    if test $have_ltmain = yes; then
5755    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5756        echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758      else
5759        echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5762echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5763   { (exit 1); exit 1; }; }
5764      fi
5765    else
5766      echo "$as_me:$LINENO: result: no" >&5
5767echo "${ECHO_T}no" >&6
5768      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5769echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5770   { (exit 1); exit 1; }; }
5771    fi
5772  fi
5773
5774  # Check if we can find the libtool file
5775  if test x$AUTOTOOLS_DIR = x; then
5776    want_dir=$AUTOTOOLS_DFLT/share
5777  else
5778    want_dir=$AUTOTOOLS_DIR/share
5779  fi
5780  if test -r $want_dir/aclocal/libtool.m4; then
5781  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5782  :
5783else
5784  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5785echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5786   { (exit 1); exit 1; }; }
5787  :
5788fi
5789
5790
5791  # Check if we have an Dependencies file
5792  if test -r $srcdir/Dependencies; then
5793    coin_have_externals=yes
5794  fi
5795  # Check if subversion is installed and understands https
5796  # Extract the first word of "svn", so it can be a program name with args.
5797set dummy svn; ac_word=$2
5798echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800if test "${ac_cv_prog_have_svn+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  if test -n "$have_svn"; then
5804  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811  for ac_exec_ext in '' $ac_executable_extensions; do
5812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_have_svn="yes"
5814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818done
5819
5820  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5821fi
5822fi
5823have_svn=$ac_cv_prog_have_svn
5824if test -n "$have_svn"; then
5825  echo "$as_me:$LINENO: result: $have_svn" >&5
5826echo "${ECHO_T}$have_svn" >&6
5827else
5828  echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830fi
5831
5832  if test x$have_svn = xyes; then
5833    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5834echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5835if test "${ac_cv_svn_understands_https+set}" = set; then
5836  echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838  svn --version > confauto.out 2>&1
5839                    if $EGREP https confauto.out >/dev/null 2>&1; then
5840                      ac_cv_svn_understands_https=yes
5841                    else
5842                      ac_cv_svn_understands_https=no
5843                      have_svn=no
5844                      ac_cv_prog_have_svn=no
5845                    fi
5846                    rm -f confauto.out
5847fi
5848echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5849echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5850  fi
5851
5852  # Find the location of the BuildTools directory
5853  BUILDTOOLSDIR=
5854  if test -r $srcdir/BuildTools/coin.m4; then
5855    BUILDTOOLSDIR=$srcdir/BuildTools
5856  else
5857    if test -r $srcdir/../BuildTools/coin.m4; then
5858      BUILDTOOLSDIR=$srcdir/../BuildTools
5859    else
5860      if test -r $srcdir/../../BuildTools/coin.m4; then
5861        BUILDTOOLSDIR=$srcdir/../../BuildTools
5862      else
5863        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5864echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5865   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5866      fi
5867    fi
5868  fi
5869
5870
5871  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5872  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5873    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5874  fi
5875
5876  # The following variable is set to the name of the directory where
5877  # the autotool scripts are located
5878
5879  AUX_DIR=$ac_aux_dir
5880fi
5881
5882# helpful variable for the base directory of this package
5883abs_source_dir=`cd $srcdir; pwd`
5884
5885
5886# Stuff for example Makefiles
5887if test x$prefix = xNONE; then
5888  full_prefix=$ac_default_prefix
5889else
5890  full_prefix=$prefix
5891fi
5892full_prefix=`cd $full_prefix ; pwd`
5893
5894abs_lib_dir=$full_prefix/lib
5895
5896abs_include_dir=$full_prefix/include
5897
5898abs_bin_dir=$full_prefix/bin
5899
5900
5901
5902if test $coin_have_externals = yes && test x$have_svn = xyes; then
5903  HAVE_EXTERNALS_TRUE=
5904  HAVE_EXTERNALS_FALSE='#'
5905else
5906  HAVE_EXTERNALS_TRUE='#'
5907  HAVE_EXTERNALS_FALSE=
5908fi
5909
5910
5911# AC_MSG_NOTICE([End automake initialisation.])
5912
5913
5914
5915LIBTOOL=
5916if test -f ../libtool; then
5917  coin_config_dir=..
5918  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5919fi
5920if test "x$LIBTOOL" = x; then
5921  if test -f ../../libtool; then
5922    coin_config_dir=../..
5923    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5924  fi
5925fi
5926
5927if test "x$LIBTOOL" = x; then
5928# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5929  # Stuff for libtool
5930  # Check whether --enable-shared or --disable-shared was given.
5931if test "${enable_shared+set}" = set; then
5932  enableval="$enable_shared"
5933  p=${PACKAGE-default}
5934    case $enableval in
5935    yes) enable_shared=yes ;;
5936    no) enable_shared=no ;;
5937    *)
5938      enable_shared=no
5939      # Look at the argument we got.  We use all the common list separators.
5940      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5941      for pkg in $enableval; do
5942        IFS="$lt_save_ifs"
5943        if test "X$pkg" = "X$p"; then
5944          enable_shared=yes
5945        fi
5946      done
5947      IFS="$lt_save_ifs"
5948      ;;
5949    esac
5950else
5951  enable_shared=yes
5952fi;
5953
5954# Check whether --enable-fast-install or --disable-fast-install was given.
5955if test "${enable_fast_install+set}" = set; then
5956  enableval="$enable_fast_install"
5957  p=${PACKAGE-default}
5958    case $enableval in
5959    yes) enable_fast_install=yes ;;
5960    no) enable_fast_install=no ;;
5961    *)
5962      enable_fast_install=no
5963      # Look at the argument we got.  We use all the common list separators.
5964      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5965      for pkg in $enableval; do
5966        IFS="$lt_save_ifs"
5967        if test "X$pkg" = "X$p"; then
5968          enable_fast_install=yes
5969        fi
5970      done
5971      IFS="$lt_save_ifs"
5972      ;;
5973    esac
5974else
5975  enable_fast_install=yes
5976fi;
5977
5978echo "$as_me:$LINENO: checking host system type" >&5
5979echo $ECHO_N "checking host system type... $ECHO_C" >&6
5980if test "${ac_cv_host+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  ac_cv_host_alias=$host_alias
5984test -z "$ac_cv_host_alias" &&
5985  ac_cv_host_alias=$ac_cv_build_alias
5986ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5987  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5988echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5989   { (exit 1); exit 1; }; }
5990
5991fi
5992echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5993echo "${ECHO_T}$ac_cv_host" >&6
5994host=$ac_cv_host
5995host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5996host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5997host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5998
5999
6000echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6001echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6002if test "${lt_cv_path_SED+set}" = set; then
6003  echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005  # Loop through the user's path and test for sed and gsed.
6006# Then use that list of sed's as ones to test for truncation.
6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008for as_dir in $PATH
6009do
6010  IFS=$as_save_IFS
6011  test -z "$as_dir" && as_dir=.
6012  for lt_ac_prog in sed gsed; do
6013    for ac_exec_ext in '' $ac_executable_extensions; do
6014      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6015        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6016      fi
6017    done
6018  done
6019done
6020lt_ac_max=0
6021lt_ac_count=0
6022# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6023# along with /bin/sed that truncates output.
6024for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6025  test ! -f $lt_ac_sed && continue
6026  cat /dev/null > conftest.in
6027  lt_ac_count=0
6028  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6029  # Check for GNU sed and select it if it is found.
6030  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6031    lt_cv_path_SED=$lt_ac_sed
6032    break
6033  fi
6034  while true; do
6035    cat conftest.in conftest.in >conftest.tmp
6036    mv conftest.tmp conftest.in
6037    cp conftest.in conftest.nl
6038    echo >>conftest.nl
6039    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6040    cmp -s conftest.out conftest.nl || break
6041    # 10000 chars as input seems more than enough
6042    test $lt_ac_count -gt 10 && break
6043    lt_ac_count=`expr $lt_ac_count + 1`
6044    if test $lt_ac_count -gt $lt_ac_max; then
6045      lt_ac_max=$lt_ac_count
6046      lt_cv_path_SED=$lt_ac_sed
6047    fi
6048  done
6049done
6050
6051fi
6052
6053SED=$lt_cv_path_SED
6054echo "$as_me:$LINENO: result: $SED" >&5
6055echo "${ECHO_T}$SED" >&6
6056
6057
6058# Check whether --with-gnu-ld or --without-gnu-ld was given.
6059if test "${with_gnu_ld+set}" = set; then
6060  withval="$with_gnu_ld"
6061  test "$withval" = no || with_gnu_ld=yes
6062else
6063  with_gnu_ld=no
6064fi;
6065ac_prog=ld
6066if test "$GCC" = yes; then
6067  # Check if gcc -print-prog-name=ld gives a path.
6068  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6069echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6070  case $host in
6071  *-*-mingw*)
6072    # gcc leaves a trailing carriage return which upsets mingw
6073    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6074  *)
6075    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6076  esac
6077  case $ac_prog in
6078    # Accept absolute paths.
6079    [\\/]* | ?:[\\/]*)
6080      re_direlt='/[^/][^/]*/\.\./'
6081      # Canonicalize the pathname of ld
6082      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6083      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6084        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6085      done
6086      test -z "$LD" && LD="$ac_prog"
6087      ;;
6088  "")
6089    # If it fails, then pretend we aren't using GCC.
6090    ac_prog=ld
6091    ;;
6092  *)
6093    # If it is relative, then search for the first ld in PATH.
6094    with_gnu_ld=unknown
6095    ;;
6096  esac
6097elif test "$with_gnu_ld" = yes; then
6098  echo "$as_me:$LINENO: checking for GNU ld" >&5
6099echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6100else
6101  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6102echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6103fi
6104if test "${lt_cv_path_LD+set}" = set; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107  if test -z "$LD"; then
6108  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109  for ac_dir in $PATH; do
6110    IFS="$lt_save_ifs"
6111    test -z "$ac_dir" && ac_dir=.
6112    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113      lt_cv_path_LD="$ac_dir/$ac_prog"
6114      # Check to see if the program is GNU ld.  I'd rather use --version,
6115      # but apparently some variants of GNU ld only accept -v.
6116      # Break only if it was the GNU/non-GNU ld that we prefer.
6117      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118      *GNU* | *'with BFD'*)
6119        test "$with_gnu_ld" != no && break
6120        ;;
6121      *)
6122        test "$with_gnu_ld" != yes && break
6123        ;;
6124      esac
6125    fi
6126  done
6127  IFS="$lt_save_ifs"
6128else
6129  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6130fi
6131fi
6132
6133LD="$lt_cv_path_LD"
6134if test -n "$LD"; then
6135  echo "$as_me:$LINENO: result: $LD" >&5
6136echo "${ECHO_T}$LD" >&6
6137else
6138  echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140fi
6141test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6142echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6143   { (exit 1); exit 1; }; }
6144echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6145echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6146if test "${lt_cv_prog_gnu_ld+set}" = set; then
6147  echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6150case `$LD -v 2>&1 </dev/null` in
6151*GNU* | *'with BFD'*)
6152  lt_cv_prog_gnu_ld=yes
6153  ;;
6154*)
6155  lt_cv_prog_gnu_ld=no
6156  ;;
6157esac
6158fi
6159echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6160echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6161with_gnu_ld=$lt_cv_prog_gnu_ld
6162
6163
6164echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6165echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6166if test "${lt_cv_ld_reload_flag+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  lt_cv_ld_reload_flag='-r'
6170fi
6171echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6172echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6173reload_flag=$lt_cv_ld_reload_flag
6174case $reload_flag in
6175"" | " "*) ;;
6176*) reload_flag=" $reload_flag" ;;
6177esac
6178reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179case $host_os in
6180  darwin*)
6181    if test "$GCC" = yes; then
6182      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6183    else
6184      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185    fi
6186    ;;
6187esac
6188
6189echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6190echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6191if test "${lt_cv_path_NM+set}" = set; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  if test -n "$NM"; then
6195  # Let the user override the test.
6196  lt_cv_path_NM="$NM"
6197else
6198  lt_nm_to_check="${ac_tool_prefix}nm"
6199  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6200    lt_nm_to_check="$lt_nm_to_check nm"
6201  fi
6202  for lt_tmp_nm in $lt_nm_to_check; do
6203    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6204    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6205      IFS="$lt_save_ifs"
6206      test -z "$ac_dir" && ac_dir=.
6207      tmp_nm="$ac_dir/$lt_tmp_nm"
6208      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6209        # Check to see if the nm accepts a BSD-compat flag.
6210        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6211        #   nm: unknown option "B" ignored
6212        # Tru64's nm complains that /dev/null is an invalid object file
6213        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6214        */dev/null* | *'Invalid file or object type'*)
6215          lt_cv_path_NM="$tmp_nm -B"
6216          break
6217          ;;
6218        *)
6219          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6220          */dev/null*)
6221            lt_cv_path_NM="$tmp_nm -p"
6222            break
6223            ;;
6224          *)
6225            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6226            continue # so that we can try to find one that supports BSD flags
6227            ;;
6228          esac
6229          ;;
6230        esac
6231      fi
6232    done
6233    IFS="$lt_save_ifs"
6234  done
6235  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6236fi
6237fi
6238echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6239echo "${ECHO_T}$lt_cv_path_NM" >&6
6240NM="$lt_cv_path_NM"
6241
6242echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6243echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6244if test "${lt_cv_deplibs_check_method+set}" = set; then
6245  echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247  lt_cv_file_magic_cmd='$MAGIC_CMD'
6248lt_cv_file_magic_test_file=
6249lt_cv_deplibs_check_method='unknown'
6250# Need to set the preceding variable on all platforms that support
6251# interlibrary dependencies.
6252# 'none' -- dependencies not supported.
6253# `unknown' -- same as none, but documents that we really don't know.
6254# 'pass_all' -- all dependencies passed with no checks.
6255# 'test_compile' -- check by making test program.
6256# 'file_magic [[regex]]' -- check by looking for files in library path
6257# which responds to the $file_magic_cmd with a given extended regex.
6258# If you have `file' or equivalent on your system and you're not sure
6259# whether `pass_all' will *always* work, you probably want this one.
6260
6261case $host_os in
6262aix4* | aix5*)
6263  lt_cv_deplibs_check_method=pass_all
6264  ;;
6265
6266beos*)
6267  lt_cv_deplibs_check_method=pass_all
6268  ;;
6269
6270bsdi[45]*)
6271  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6272  lt_cv_file_magic_cmd='/usr/bin/file -L'
6273  lt_cv_file_magic_test_file=/shlib/libc.so
6274  ;;
6275
6276cygwin*)
6277  # func_win32_libid is a shell function defined in ltmain.sh
6278  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6279  lt_cv_file_magic_cmd='func_win32_libid'
6280  ;;
6281
6282mingw* | pw32*)
6283  # Base MSYS/MinGW do not provide the 'file' command needed by
6284  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6285  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6286  lt_cv_file_magic_cmd='$OBJDUMP -f'
6287  ;;
6288
6289darwin* | rhapsody*)
6290  lt_cv_deplibs_check_method=pass_all
6291  ;;
6292
6293freebsd* | kfreebsd*-gnu | dragonfly*)
6294  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6295    case $host_cpu in
6296    i*86 )
6297      # Not sure whether the presence of OpenBSD here was a mistake.
6298      # Let's accept both of them until this is cleared up.
6299      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6300      lt_cv_file_magic_cmd=/usr/bin/file
6301      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6302      ;;
6303    esac
6304  else
6305    lt_cv_deplibs_check_method=pass_all
6306  fi
6307  ;;
6308
6309gnu*)
6310  lt_cv_deplibs_check_method=pass_all
6311  ;;
6312
6313hpux10.20* | hpux11*)
6314  lt_cv_file_magic_cmd=/usr/bin/file
6315  case $host_cpu in
6316  ia64*)
6317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6318    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6319    ;;
6320  hppa*64*)
6321    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]'
6322    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6323    ;;
6324  *)
6325    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6326    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6327    ;;
6328  esac
6329  ;;
6330
6331interix3*)
6332  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6333  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6334  ;;
6335
6336irix5* | irix6* | nonstopux*)
6337  case $LD in
6338  *-32|*"-32 ") libmagic=32-bit;;
6339  *-n32|*"-n32 ") libmagic=N32;;
6340  *-64|*"-64 ") libmagic=64-bit;;
6341  *) libmagic=never-match;;
6342  esac
6343  lt_cv_deplibs_check_method=pass_all
6344  ;;
6345
6346# This must be Linux ELF.
6347linux*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351netbsd*)
6352  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6354  else
6355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6356  fi
6357  ;;
6358
6359newos6*)
6360  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6361  lt_cv_file_magic_cmd=/usr/bin/file
6362  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6363  ;;
6364
6365nto-qnx*)
6366  lt_cv_deplibs_check_method=unknown
6367  ;;
6368
6369openbsd*)
6370  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6372  else
6373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6374  fi
6375  ;;
6376
6377osf3* | osf4* | osf5*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380
6381solaris*)
6382  lt_cv_deplibs_check_method=pass_all
6383  ;;
6384
6385sysv4 | sysv4.3*)
6386  case $host_vendor in
6387  motorola)
6388    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]'
6389    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6390    ;;
6391  ncr)
6392    lt_cv_deplibs_check_method=pass_all
6393    ;;
6394  sequent)
6395    lt_cv_file_magic_cmd='/bin/file'
6396    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6397    ;;
6398  sni)
6399    lt_cv_file_magic_cmd='/bin/file'
6400    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6401    lt_cv_file_magic_test_file=/lib/libc.so
6402    ;;
6403  siemens)
6404    lt_cv_deplibs_check_method=pass_all
6405    ;;
6406  pc)
6407    lt_cv_deplibs_check_method=pass_all
6408    ;;
6409  esac
6410  ;;
6411
6412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415esac
6416
6417fi
6418echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6420file_magic_cmd=$lt_cv_file_magic_cmd
6421deplibs_check_method=$lt_cv_deplibs_check_method
6422test -z "$deplibs_check_method" && deplibs_check_method=unknown
6423
6424
6425
6426
6427# If no C compiler was specified, use CC.
6428LTCC=${LTCC-"$CC"}
6429
6430# If no C compiler flags were specified, use CFLAGS.
6431LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6432
6433# Allow CC to be a program name with arguments.
6434compiler=$CC
6435
6436# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6437if test "${enable_libtool_lock+set}" = set; then
6438  enableval="$enable_libtool_lock"
6439
6440fi;
6441test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
6443# Some flags need to be propagated to the compiler or linker for good
6444# libtool support.
6445case $host in
6446ia64-*-hpux*)
6447  # Find out which ABI we are using.
6448  echo 'int i;' > conftest.$ac_ext
6449  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450  (eval $ac_compile) 2>&5
6451  ac_status=$?
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); }; then
6454    case `/usr/bin/file conftest.$ac_objext` in
6455    *ELF-32*)
6456      HPUX_IA64_MODE="32"
6457      ;;
6458    *ELF-64*)
6459      HPUX_IA64_MODE="64"
6460      ;;
6461    esac
6462  fi
6463  rm -rf conftest*
6464  ;;
6465*-*-irix6*)
6466  # Find out which ABI we are using.
6467  echo '#line 6467 "configure"' > conftest.$ac_ext
6468  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469  (eval $ac_compile) 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; then
6473   if test "$lt_cv_prog_gnu_ld" = yes; then
6474    case `/usr/bin/file conftest.$ac_objext` in
6475    *32-bit*)
6476      LD="${LD-ld} -melf32bsmip"
6477      ;;
6478    *N32*)
6479      LD="${LD-ld} -melf32bmipn32"
6480      ;;
6481    *64-bit*)
6482      LD="${LD-ld} -melf64bmip"
6483      ;;
6484    esac
6485   else
6486    case `/usr/bin/file conftest.$ac_objext` in
6487    *32-bit*)
6488      LD="${LD-ld} -32"
6489      ;;
6490    *N32*)
6491      LD="${LD-ld} -n32"
6492      ;;
6493    *64-bit*)
6494      LD="${LD-ld} -64"
6495      ;;
6496    esac
6497   fi
6498  fi
6499  rm -rf conftest*
6500  ;;
6501
6502x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503  # Find out which ABI we are using.
6504  echo 'int i;' > conftest.$ac_ext
6505  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506  (eval $ac_compile) 2>&5
6507  ac_status=$?
6508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509  (exit $ac_status); }; then
6510    case `/usr/bin/file conftest.o` in
6511    *32-bit*)
6512      case $host in
6513        x86_64-*linux*)
6514          LD="${LD-ld} -m elf_i386"
6515          ;;
6516        ppc64-*linux*|powerpc64-*linux*)
6517          LD="${LD-ld} -m elf32ppclinux"
6518          ;;
6519        s390x-*linux*)
6520          LD="${LD-ld} -m elf_s390"
6521          ;;
6522        sparc64-*linux*)
6523          LD="${LD-ld} -m elf32_sparc"
6524          ;;
6525      esac
6526      ;;
6527    *64-bit*)
6528      case $host in
6529        x86_64-*linux*)
6530          LD="${LD-ld} -m elf_x86_64"
6531          ;;
6532        ppc*-*linux*|powerpc*-*linux*)
6533          LD="${LD-ld} -m elf64ppc"
6534          ;;
6535        s390*-*linux*)
6536          LD="${LD-ld} -m elf64_s390"
6537          ;;
6538        sparc*-*linux*)
6539          LD="${LD-ld} -m elf64_sparc"
6540          ;;
6541      esac
6542      ;;
6543    esac
6544  fi
6545  rm -rf conftest*
6546  ;;
6547
6548*-*-sco3.2v5*)
6549  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550  SAVE_CFLAGS="$CFLAGS"
6551  CFLAGS="$CFLAGS -belf"
6552  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6554if test "${lt_cv_cc_needs_belf+set}" = set; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557  ac_ext=c
6558ac_cpp='$CPP $CPPFLAGS'
6559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563     cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569
6570int
6571main ()
6572{
6573
6574  ;
6575  return 0;
6576}
6577_ACEOF
6578rm -f conftest.$ac_objext conftest$ac_exeext
6579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580  (eval $ac_link) 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } &&
6587         { ac_try='test -z "$ac_c_werror_flag"
6588                         || test ! -s conftest.err'
6589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590  (eval $ac_try) 2>&5
6591  ac_status=$?
6592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593  (exit $ac_status); }; } &&
6594         { ac_try='test -s conftest$ac_exeext'
6595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596  (eval $ac_try) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; }; then
6600  lt_cv_cc_needs_belf=yes
6601else
6602  echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605lt_cv_cc_needs_belf=no
6606fi
6607rm -f conftest.err conftest.$ac_objext \
6608      conftest$ac_exeext conftest.$ac_ext
6609     ac_ext=c
6610ac_cpp='$CPP $CPPFLAGS'
6611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6613ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614
6615fi
6616echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6617echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6618  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6619    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6620    CFLAGS="$SAVE_CFLAGS"
6621  fi
6622  ;;
6623sparc*-*solaris*)
6624  # Find out which ABI we are using.
6625  echo 'int i;' > conftest.$ac_ext
6626  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627  (eval $ac_compile) 2>&5
6628  ac_status=$?
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); }; then
6631    case `/usr/bin/file conftest.o` in
6632    *64-bit*)
6633      case $lt_cv_prog_gnu_ld in
6634      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6635      *)    LD="${LD-ld} -64" ;;
6636      esac
6637      ;;
6638    esac
6639  fi
6640  rm -rf conftest*
6641  ;;
6642
6643
6644esac
6645
6646need_locks="$enable_libtool_lock"
6647
6648
6649ac_ext=c
6650ac_cpp='$CPP $CPPFLAGS'
6651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653ac_compiler_gnu=$ac_cv_c_compiler_gnu
6654echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6655echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6656# On Suns, sometimes $CPP names a directory.
6657if test -n "$CPP" && test -d "$CPP"; then
6658  CPP=
6659fi
6660if test -z "$CPP"; then
6661  if test "${ac_cv_prog_CPP+set}" = set; then
6662  echo $ECHO_N "(cached) $ECHO_C" >&6
6663else
6664      # Double quotes because CPP needs to be expanded
6665    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6666    do
6667      ac_preproc_ok=false
6668for ac_c_preproc_warn_flag in '' yes
6669do
6670  # Use a header file that comes with gcc, so configuring glibc
6671  # with a fresh cross-compiler works.
6672  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673  # <limits.h> exists even on freestanding compilers.
6674  # On the NeXT, cc -E runs the code through the compiler's parser,
6675  # not just through cpp. "Syntax error" is here to catch this case.
6676  cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682#ifdef __STDC__
6683# include <limits.h>
6684#else
6685# include <assert.h>
6686#endif
6687                     Syntax error
6688_ACEOF
6689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691  ac_status=$?
6692  grep -v '^ *+' conftest.er1 >conftest.err
6693  rm -f conftest.er1
6694  cat conftest.err >&5
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); } >/dev/null; then
6697  if test -s conftest.err; then
6698    ac_cpp_err=$ac_c_preproc_warn_flag
6699    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6700  else
6701    ac_cpp_err=
6702  fi
6703else
6704  ac_cpp_err=yes
6705fi
6706if test -z "$ac_cpp_err"; then
6707  :
6708else
6709  echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
6712  # Broken: fails on valid input.
6713continue
6714fi
6715rm -f conftest.err conftest.$ac_ext
6716
6717  # OK, works on sane cases.  Now check whether non-existent headers
6718  # can be detected and how.
6719  cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h.  */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h.  */
6725#include <ac_nonexistent.h>
6726_ACEOF
6727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6728  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6729  ac_status=$?
6730  grep -v '^ *+' conftest.er1 >conftest.err
6731  rm -f conftest.er1
6732  cat conftest.err >&5
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } >/dev/null; then
6735  if test -s conftest.err; then
6736    ac_cpp_err=$ac_c_preproc_warn_flag
6737    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6738  else
6739    ac_cpp_err=
6740  fi
6741else
6742  ac_cpp_err=yes
6743fi
6744if test -z "$ac_cpp_err"; then
6745  # Broken: success on invalid input.
6746continue
6747else
6748  echo "$as_me: failed program was:" >&5
6749sed 's/^/| /' conftest.$ac_ext >&5
6750
6751  # Passes both tests.
6752ac_preproc_ok=:
6753break
6754fi
6755rm -f conftest.err conftest.$ac_ext
6756
6757done
6758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6759rm -f conftest.err conftest.$ac_ext
6760if $ac_preproc_ok; then
6761  break
6762fi
6763
6764    done
6765    ac_cv_prog_CPP=$CPP
6766
6767fi
6768  CPP=$ac_cv_prog_CPP
6769else
6770  ac_cv_prog_CPP=$CPP
6771fi
6772echo "$as_me:$LINENO: result: $CPP" >&5
6773echo "${ECHO_T}$CPP" >&6
6774ac_preproc_ok=false
6775for ac_c_preproc_warn_flag in '' yes
6776do
6777  # Use a header file that comes with gcc, so configuring glibc
6778  # with a fresh cross-compiler works.
6779  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6780  # <limits.h> exists even on freestanding compilers.
6781  # On the NeXT, cc -E runs the code through the compiler's parser,
6782  # not just through cpp. "Syntax error" is here to catch this case.
6783  cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789#ifdef __STDC__
6790# include <limits.h>
6791#else
6792# include <assert.h>
6793#endif
6794                     Syntax error
6795_ACEOF
6796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798  ac_status=$?
6799  grep -v '^ *+' conftest.er1 >conftest.err
6800  rm -f conftest.er1
6801  cat conftest.err >&5
6802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803  (exit $ac_status); } >/dev/null; then
6804  if test -s conftest.err; then
6805    ac_cpp_err=$ac_c_preproc_warn_flag
6806    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6807  else
6808    ac_cpp_err=
6809  fi
6810else
6811  ac_cpp_err=yes
6812fi
6813if test -z "$ac_cpp_err"; then
6814  :
6815else
6816  echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
6818
6819  # Broken: fails on valid input.
6820continue
6821fi
6822rm -f conftest.err conftest.$ac_ext
6823
6824  # OK, works on sane cases.  Now check whether non-existent headers
6825  # can be detected and how.
6826  cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h.  */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h.  */
6832#include <ac_nonexistent.h>
6833_ACEOF
6834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } >/dev/null; then
6842  if test -s conftest.err; then
6843    ac_cpp_err=$ac_c_preproc_warn_flag
6844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6845  else
6846    ac_cpp_err=
6847  fi
6848else
6849  ac_cpp_err=yes
6850fi
6851if test -z "$ac_cpp_err"; then
6852  # Broken: success on invalid input.
6853continue
6854else
6855  echo "$as_me: failed program was:" >&5
6856sed 's/^/| /' conftest.$ac_ext >&5
6857
6858  # Passes both tests.
6859ac_preproc_ok=:
6860break
6861fi
6862rm -f conftest.err conftest.$ac_ext
6863
6864done
6865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6866rm -f conftest.err conftest.$ac_ext
6867if $ac_preproc_ok; then
6868  :
6869else
6870  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6871See \`config.log' for more details." >&5
6872echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6873See \`config.log' for more details." >&2;}
6874   { (exit 1); exit 1; }; }
6875fi
6876
6877ac_ext=c
6878ac_cpp='$CPP $CPPFLAGS'
6879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882
6883
6884echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6885echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6886if test "${ac_cv_header_stdc+set}" = set; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  cat >conftest.$ac_ext <<_ACEOF
6890/* confdefs.h.  */
6891_ACEOF
6892cat confdefs.h >>conftest.$ac_ext
6893cat >>conftest.$ac_ext <<_ACEOF
6894/* end confdefs.h.  */
6895#include <stdlib.h>
6896#include <stdarg.h>
6897#include <string.h>
6898#include <float.h>
6899
6900int
6901main ()
6902{
6903
6904  ;
6905  return 0;
6906}
6907_ACEOF
6908rm -f conftest.$ac_objext
6909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910  (eval $ac_compile) 2>conftest.er1
6911  ac_status=$?
6912  grep -v '^ *+' conftest.er1 >conftest.err
6913  rm -f conftest.er1
6914  cat conftest.err >&5
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); } &&
6917         { ac_try='test -z "$ac_c_werror_flag"
6918                         || test ! -s conftest.err'
6919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920  (eval $ac_try) 2>&5
6921  ac_status=$?
6922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923  (exit $ac_status); }; } &&
6924         { ac_try='test -s conftest.$ac_objext'
6925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926  (eval $ac_try) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; }; then
6930  ac_cv_header_stdc=yes
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935ac_cv_header_stdc=no
6936fi
6937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938
6939if test $ac_cv_header_stdc = yes; then
6940  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6941  cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947#include <string.h>
6948
6949_ACEOF
6950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951  $EGREP "memchr" >/dev/null 2>&1; then
6952  :
6953else
6954  ac_cv_header_stdc=no
6955fi
6956rm -f conftest*
6957
6958fi
6959
6960if test $ac_cv_header_stdc = yes; then
6961  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6962  cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h.  */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h.  */
6968#include <stdlib.h>
6969
6970_ACEOF
6971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972  $EGREP "free" >/dev/null 2>&1; then
6973  :
6974else
6975  ac_cv_header_stdc=no
6976fi
6977rm -f conftest*
6978
6979fi
6980
6981if test $ac_cv_header_stdc = yes; then
6982  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6983  if test "$cross_compiling" = yes; then
6984  :
6985else
6986  cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h.  */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h.  */
6992#include <ctype.h>
6993#if ((' ' & 0x0FF) == 0x020)
6994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6996#else
6997# define ISLOWER(c) \
6998                   (('a' <= (c) && (c) <= 'i') \
6999                     || ('j' <= (c) && (c) <= 'r') \
7000                     || ('s' <= (c) && (c) <= 'z'))
7001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7002#endif
7003
7004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7005int
7006main ()
7007{
7008  int i;
7009  for (i = 0; i < 256; i++)
7010    if (XOR (islower (i), ISLOWER (i))
7011        || toupper (i) != TOUPPER (i))
7012      exit(2);
7013  exit (0);
7014}
7015_ACEOF
7016rm -f conftest$ac_exeext
7017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018  (eval $ac_link) 2>&5
7019  ac_status=$?
7020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023  (eval $ac_try) 2>&5
7024  ac_status=$?
7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026  (exit $ac_status); }; }; then
7027  :
7028else
7029  echo "$as_me: program exited with status $ac_status" >&5
7030echo "$as_me: failed program was:" >&5
7031sed 's/^/| /' conftest.$ac_ext >&5
7032
7033( exit $ac_status )
7034ac_cv_header_stdc=no
7035fi
7036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037fi
7038fi
7039fi
7040echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7041echo "${ECHO_T}$ac_cv_header_stdc" >&6
7042if test $ac_cv_header_stdc = yes; then
7043
7044cat >>confdefs.h <<\_ACEOF
7045#define STDC_HEADERS 1
7046_ACEOF
7047
7048fi
7049
7050# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7061                  inttypes.h stdint.h unistd.h
7062do
7063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064echo "$as_me:$LINENO: checking for $ac_header" >&5
7065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069  cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h.  */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
7074/* end confdefs.h.  */
7075$ac_includes_default
7076
7077#include <$ac_header>
7078_ACEOF
7079rm -f conftest.$ac_objext
7080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081  (eval $ac_compile) 2>conftest.er1
7082  ac_status=$?
7083  grep -v '^ *+' conftest.er1 >conftest.err
7084  rm -f conftest.er1
7085  cat conftest.err >&5
7086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087  (exit $ac_status); } &&
7088         { ac_try='test -z "$ac_c_werror_flag"
7089                         || test ! -s conftest.err'
7090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091  (eval $ac_try) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; } &&
7095         { ac_try='test -s conftest.$ac_objext'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; }; then
7101  eval "$as_ac_Header=yes"
7102else
7103  echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106eval "$as_ac_Header=no"
7107fi
7108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7109fi
7110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112if test `eval echo '${'$as_ac_Header'}'` = yes; then
7113  cat >>confdefs.h <<_ACEOF
7114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115_ACEOF
7116
7117fi
7118
7119done
7120
7121
7122
7123for ac_header in dlfcn.h
7124do
7125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7126if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127  echo "$as_me:$LINENO: checking for $ac_header" >&5
7128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7129if eval "test \"\${$as_ac_Header+set}\" = set"; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131fi
7132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7134else
7135  # Is the header compilable?
7136echo "$as_me:$LINENO: checking $ac_header usability" >&5
7137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7138cat >conftest.$ac_ext <<_ACEOF
7139/* confdefs.h.  */
7140_ACEOF
7141cat confdefs.h >>conftest.$ac_ext
7142cat >>conftest.$ac_ext <<_ACEOF
7143/* end confdefs.h.  */
7144$ac_includes_default
7145#include <$ac_header>
7146_ACEOF
7147rm -f conftest.$ac_objext
7148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149  (eval $ac_compile) 2>conftest.er1
7150  ac_status=$?
7151  grep -v '^ *+' conftest.er1 >conftest.err
7152  rm -f conftest.er1
7153  cat conftest.err >&5
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } &&
7156         { ac_try='test -z "$ac_c_werror_flag"
7157                         || test ! -s conftest.err'
7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159  (eval $ac_try) 2>&5
7160  ac_status=$?
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); }; } &&
7163         { ac_try='test -s conftest.$ac_objext'
7164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165  (eval $ac_try) 2>&5
7166  ac_status=$?
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); }; }; then
7169  ac_header_compiler=yes
7170else
7171  echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174ac_header_compiler=no
7175fi
7176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7178echo "${ECHO_T}$ac_header_compiler" >&6
7179
7180# Is the header present?
7181echo "$as_me:$LINENO: checking $ac_header presence" >&5
7182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7183cat >conftest.$ac_ext <<_ACEOF
7184/* confdefs.h.  */
7185_ACEOF
7186cat confdefs.h >>conftest.$ac_ext
7187cat >>conftest.$ac_ext <<_ACEOF
7188/* end confdefs.h.  */
7189#include <$ac_header>
7190_ACEOF
7191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } >/dev/null; then
7199  if test -s conftest.err; then
7200    ac_cpp_err=$ac_c_preproc_warn_flag
7201    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7202  else
7203    ac_cpp_err=
7204  fi
7205else
7206  ac_cpp_err=yes
7207fi
7208if test -z "$ac_cpp_err"; then
7209  ac_header_preproc=yes
7210else
7211  echo "$as_me: failed program was:" >&5
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214  ac_header_preproc=no
7215fi
7216rm -f conftest.err conftest.$ac_ext
7217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218echo "${ECHO_T}$ac_header_preproc" >&6
7219
7220# So?  What about this header?
7221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7222  yes:no: )
7223    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7227    ac_header_preproc=yes
7228    ;;
7229  no:yes:* )
7230    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7233echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7234    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7236    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7237echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7238    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7240    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7242    (
7243      cat <<\_ASBOX
7244## ------------------------------------ ##
7245## Report this to cbc@lists.coin-or.org ##
7246## ------------------------------------ ##
7247_ASBOX
7248    ) |
7249      sed "s/^/$as_me: WARNING:     /" >&2
7250    ;;
7251esac
7252echo "$as_me:$LINENO: checking for $ac_header" >&5
7253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7254if eval "test \"\${$as_ac_Header+set}\" = set"; then
7255  echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257  eval "$as_ac_Header=\$ac_header_preproc"
7258fi
7259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7261
7262fi
7263if test `eval echo '${'$as_ac_Header'}'` = yes; then
7264  cat >>confdefs.h <<_ACEOF
7265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266_ACEOF
7267
7268fi
7269
7270done
7271
7272
7273
7274if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7275    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7276    (test "X$CXX" != "Xg++"))) ; then
7277  ac_ext=cc
7278ac_cpp='$CXXCPP $CPPFLAGS'
7279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7283echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7284if test -z "$CXXCPP"; then
7285  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7286  echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288      # Double quotes because CXXCPP needs to be expanded
7289    for CXXCPP in "$CXX -E" "/lib/cpp"
7290    do
7291      ac_preproc_ok=false
7292for ac_cxx_preproc_warn_flag in '' yes
7293do
7294  # Use a header file that comes with gcc, so configuring glibc
7295  # with a fresh cross-compiler works.
7296  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7297  # <limits.h> exists even on freestanding compilers.
7298  # On the NeXT, cc -E runs the code through the compiler's parser,
7299  # not just through cpp. "Syntax error" is here to catch this case.
7300  cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306#ifdef __STDC__
7307# include <limits.h>
7308#else
7309# include <assert.h>
7310#endif
7311                     Syntax error
7312_ACEOF
7313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7314  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7315  ac_status=$?
7316  grep -v '^ *+' conftest.er1 >conftest.err
7317  rm -f conftest.er1
7318  cat conftest.err >&5
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); } >/dev/null; then
7321  if test -s conftest.err; then
7322    ac_cpp_err=$ac_cxx_preproc_warn_flag
7323    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7324  else
7325    ac_cpp_err=
7326  fi
7327else
7328  ac_cpp_err=yes
7329fi
7330if test -z "$ac_cpp_err"; then
7331  :
7332else
7333  echo "$as_me: failed program was:" >&5
7334sed 's/^/| /' conftest.$ac_ext >&5
7335
7336  # Broken: fails on valid input.
7337continue
7338fi
7339rm -f conftest.err conftest.$ac_ext
7340
7341  # OK, works on sane cases.  Now check whether non-existent headers
7342  # can be detected and how.
7343  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349#include <ac_nonexistent.h>
7350_ACEOF
7351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353  ac_status=$?
7354  grep -v '^ *+' conftest.er1 >conftest.err
7355  rm -f conftest.er1
7356  cat conftest.err >&5
7357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358  (exit $ac_status); } >/dev/null; then
7359  if test -s conftest.err; then
7360    ac_cpp_err=$ac_cxx_preproc_warn_flag
7361    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7362  else
7363    ac_cpp_err=
7364  fi
7365else
7366  ac_cpp_err=yes
7367fi
7368if test -z "$ac_cpp_err"; then
7369  # Broken: success on invalid input.
7370continue
7371else
7372  echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
7375  # Passes both tests.
7376ac_preproc_ok=:
7377break
7378fi
7379rm -f conftest.err conftest.$ac_ext
7380
7381done
7382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7383rm -f conftest.err conftest.$ac_ext
7384if $ac_preproc_ok; then
7385  break
7386fi
7387
7388    done
7389    ac_cv_prog_CXXCPP=$CXXCPP
7390
7391fi
7392  CXXCPP=$ac_cv_prog_CXXCPP
7393else
7394  ac_cv_prog_CXXCPP=$CXXCPP
7395fi
7396echo "$as_me:$LINENO: result: $CXXCPP" >&5
7397echo "${ECHO_T}$CXXCPP" >&6
7398ac_preproc_ok=false
7399for ac_cxx_preproc_warn_flag in '' yes
7400do
7401  # Use a header file that comes with gcc, so configuring glibc
7402  # with a fresh cross-compiler works.
7403  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7404  # <limits.h> exists even on freestanding compilers.
7405  # On the NeXT, cc -E runs the code through the compiler's parser,
7406  # not just through cpp. "Syntax error" is here to catch this case.
7407  cat >conftest.$ac_ext <<_ACEOF
7408/* confdefs.h.  */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h.  */
7413#ifdef __STDC__
7414# include <limits.h>
7415#else
7416# include <assert.h>
7417#endif
7418                     Syntax error
7419_ACEOF
7420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7422  ac_status=$?
7423  grep -v '^ *+' conftest.er1 >conftest.err
7424  rm -f conftest.er1
7425  cat conftest.err >&5
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); } >/dev/null; then
7428  if test -s conftest.err; then
7429    ac_cpp_err=$ac_cxx_preproc_warn_flag
7430    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7431  else
7432    ac_cpp_err=
7433  fi
7434else
7435  ac_cpp_err=yes
7436fi
7437if test -z "$ac_cpp_err"; then
7438  :
7439else
7440  echo "$as_me: failed program was:" >&5
7441sed 's/^/| /' conftest.$ac_ext >&5
7442
7443  # Broken: fails on valid input.
7444continue
7445fi
7446rm -f conftest.err conftest.$ac_ext
7447
7448  # OK, works on sane cases.  Now check whether non-existent headers
7449  # can be detected and how.
7450  cat >conftest.$ac_ext <<_ACEOF
7451/* confdefs.h.  */
7452_ACEOF
7453cat confdefs.h >>conftest.$ac_ext
7454cat >>conftest.$ac_ext <<_ACEOF
7455/* end confdefs.h.  */
7456#include <ac_nonexistent.h>
7457_ACEOF
7458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460  ac_status=$?
7461  grep -v '^ *+' conftest.er1 >conftest.err
7462  rm -f conftest.er1
7463  cat conftest.err >&5
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); } >/dev/null; then
7466  if test -s conftest.err; then
7467    ac_cpp_err=$ac_cxx_preproc_warn_flag
7468    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7469  else
7470    ac_cpp_err=
7471  fi
7472else
7473  ac_cpp_err=yes
7474fi
7475if test -z "$ac_cpp_err"; then
7476  # Broken: success on invalid input.
7477continue
7478else
7479  echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
7482  # Passes both tests.
7483ac_preproc_ok=:
7484break
7485fi
7486rm -f conftest.err conftest.$ac_ext
7487
7488done
7489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7490rm -f conftest.err conftest.$ac_ext
7491if $ac_preproc_ok; then
7492  :
7493else
7494  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7495See \`config.log' for more details." >&5
7496echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7497See \`config.log' for more details." >&2;}
7498   { (exit 1); exit 1; }; }
7499fi
7500
7501ac_ext=cc
7502ac_cpp='$CXXCPP $CPPFLAGS'
7503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7506
7507fi
7508
7509
7510# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7511
7512# find the maximum length of command line arguments
7513echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7514echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7515if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518    i=0
7519  teststring="ABCD"
7520
7521  case $build_os in
7522  msdosdjgpp*)
7523    # On DJGPP, this test can blow up pretty badly due to problems in libc
7524    # (any single argument exceeding 2000 bytes causes a buffer overrun
7525    # during glob expansion).  Even if it were fixed, the result of this
7526    # check would be larger than it should be.
7527    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7528    ;;
7529
7530  gnu*)
7531    # Under GNU Hurd, this test is not required because there is
7532    # no limit to the length of command line arguments.
7533    # Libtool will interpret -1 as no limit whatsoever
7534    lt_cv_sys_max_cmd_len=-1;
7535    ;;
7536
7537  cygwin* | mingw*)
7538    # On Win9x/ME, this test blows up -- it succeeds, but takes
7539    # about 5 minutes as the teststring grows exponentially.
7540    # Worse, since 9x/ME are not pre-emptively multitasking,
7541    # you end up with a "frozen" computer, even though with patience
7542    # the test eventually succeeds (with a max line length of 256k).
7543    # Instead, let's just punt: use the minimum linelength reported by
7544    # all of the supported platforms: 8192 (on NT/2K/XP).
7545    lt_cv_sys_max_cmd_len=8192;
7546    ;;
7547
7548  amigaos*)
7549    # On AmigaOS with pdksh, this test takes hours, literally.
7550    # So we just punt and use a minimum line length of 8192.
7551    lt_cv_sys_max_cmd_len=8192;
7552    ;;
7553
7554  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7555    # This has been around since 386BSD, at least.  Likely further.
7556    if test -x /sbin/sysctl; then
7557      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7558    elif test -x /usr/sbin/sysctl; then
7559      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7560    else
7561      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7562    fi
7563    # And add a safety zone
7564    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7565    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7566    ;;
7567
7568  interix*)
7569    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7570    lt_cv_sys_max_cmd_len=196608
7571    ;;
7572
7573  osf*)
7574    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7575    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7576    # nice to cause kernel panics so lets avoid the loop below.
7577    # First set a reasonable default.
7578    lt_cv_sys_max_cmd_len=16384
7579    #
7580    if test -x /sbin/sysconfig; then
7581      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7582        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7583      esac
7584    fi
7585    ;;
7586  sco3.2v5*)
7587    lt_cv_sys_max_cmd_len=102400
7588    ;;
7589  sysv5* | sco5v6* | sysv4.2uw2*)
7590    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7591    if test -n "$kargmax"; then
7592      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7593    else
7594      lt_cv_sys_max_cmd_len=32768
7595    fi
7596    ;;
7597  *)
7598    # If test is not a shell built-in, we'll probably end up computing a
7599    # maximum length that is only half of the actual maximum length, but
7600    # we can't tell.
7601    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7602    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7603               = "XX$teststring") >/dev/null 2>&1 &&
7604            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7605            lt_cv_sys_max_cmd_len=$new_result &&
7606            test $i != 17 # 1/2 MB should be enough
7607    do
7608      i=`expr $i + 1`
7609      teststring=$teststring$teststring
7610    done
7611    teststring=
7612    # Add a significant safety factor because C++ compilers can tack on massive
7613    # amounts of additional arguments before passing them to the linker.
7614    # It appears as though 1/2 is a usable value.
7615    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7616    ;;
7617  esac
7618
7619fi
7620
7621if test -n $lt_cv_sys_max_cmd_len ; then
7622  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7623echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7624else
7625  echo "$as_me:$LINENO: result: none" >&5
7626echo "${ECHO_T}none" >&6
7627fi
7628
7629
7630
7631
7632# Check for command to grab the raw symbol name followed by C symbol from nm.
7633echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7634echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7635if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7636  echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638
7639# These are sane defaults that work on at least a few old systems.
7640# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7641
7642# Character class describing NM global symbol codes.
7643symcode='[BCDEGRST]'
7644
7645# Regexp to match symbols that can be accessed directly from C.
7646sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7647
7648# Transform an extracted symbol line into a proper C declaration
7649lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7650
7651# Transform an extracted symbol line into symbol name and symbol address
7652lt_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'"
7653
7654# Define system-specific variables.
7655case $host_os in
7656aix*)
7657  symcode='[BCDT]'
7658  ;;
7659cygwin* | mingw* | pw32*)
7660  symcode='[ABCDGISTW]'
7661  ;;
7662hpux*) # Its linker distinguishes data from code symbols
7663  if test "$host_cpu" = ia64; then
7664    symcode='[ABCDEGRST]'
7665  fi
7666  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7667  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7668  ;;
7669linux*)
7670  if test "$host_cpu" = ia64; then
7671    symcode='[ABCDGIRSTW]'
7672    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673    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'"
7674  fi
7675  ;;
7676irix* | nonstopux*)
7677  symcode='[BCDEGRST]'
7678  ;;
7679osf*)
7680  symcode='[BCDEGQRST]'
7681  ;;
7682solaris*)
7683  symcode='[BDRT]'
7684  ;;
7685sco3.2v5*)
7686  symcode='[DT]'
7687  ;;
7688sysv4.2uw2*)
7689  symcode='[DT]'
7690  ;;
7691sysv5* | sco5v6* | unixware* | OpenUNIX*)
7692  symcode='[ABDT]'
7693  ;;
7694sysv4)
7695  symcode='[DFNSTU]'
7696  ;;
7697esac
7698
7699# Handle CRLF in mingw tool chain
7700opt_cr=
7701case $build_os in
7702mingw*)
7703  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7704  ;;
7705esac
7706
7707# If we're using GNU nm, then use its standard symbol codes.
7708case `$NM -V 2>&1` in
7709*GNU* | *'with BFD'*)
7710  symcode='[ABCDGIRSTW]' ;;
7711esac
7712
7713# Try without a prefix undercore, then with it.
7714for ac_symprfx in "" "_"; do
7715
7716  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717  symxfrm="\\1 $ac_symprfx\\2 \\2"
7718
7719  # Write the raw and C identifiers.
7720  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7721
7722  # Check to see that the pipe works correctly.
7723  pipe_works=no
7724
7725  rm -f conftest*
7726  cat > conftest.$ac_ext <<EOF
7727#ifdef __cplusplus
7728extern "C" {
7729#endif
7730char nm_test_var;
7731void nm_test_func(){}
7732#ifdef __cplusplus
7733}
7734#endif
7735int main(){nm_test_var='a';nm_test_func();return(0);}
7736EOF
7737
7738  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739  (eval $ac_compile) 2>&5
7740  ac_status=$?
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); }; then
7743    # Now try to grab the symbols.
7744    nlist=conftest.nm
7745    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); } && test -s "$nlist"; then
7750      # Try sorting and uniquifying the output.
7751      if sort "$nlist" | uniq > "$nlist"T; then
7752        mv -f "$nlist"T "$nlist"
7753      else
7754        rm -f "$nlist"T
7755      fi
7756
7757      # Make sure that we snagged all the symbols we need.
7758      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760          cat <<EOF > conftest.$ac_ext
7761#ifdef __cplusplus
7762extern "C" {
7763#endif
7764
7765EOF
7766          # Now generate the symbol file.
7767          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7768
7769          cat <<EOF >> conftest.$ac_ext
7770#if defined (__STDC__) && __STDC__
7771# define lt_ptr_t void *
7772#else
7773# define lt_ptr_t char *
7774# define const
7775#endif
7776
7777/* The mapping between symbol names and symbols. */
7778const struct {
7779  const char *name;
7780  lt_ptr_t address;
7781}
7782lt_preloaded_symbols[] =
7783{
7784EOF
7785          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786          cat <<\EOF >> conftest.$ac_ext
7787  {0, (lt_ptr_t) 0}
7788};
7789
7790#ifdef __cplusplus
7791}
7792#endif
7793EOF
7794          # Now try linking the two files.
7795          mv conftest.$ac_objext conftstm.$ac_objext
7796          lt_save_LIBS="$LIBS"
7797          lt_save_CFLAGS="$CFLAGS"
7798          LIBS="conftstm.$ac_objext"
7799          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801  (eval $ac_link) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7805            pipe_works=yes
7806          fi
7807          LIBS="$lt_save_LIBS"
7808          CFLAGS="$lt_save_CFLAGS"
7809        else
7810          echo "cannot find nm_test_func in $nlist" >&5
7811        fi
7812      else
7813        echo "cannot find nm_test_var in $nlist" >&5
7814      fi
7815    else
7816      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817    fi
7818  else
7819    echo "$progname: failed program was:" >&5
7820    cat conftest.$ac_ext >&5
7821  fi
7822  rm -f conftest* conftst*
7823
7824  # Do not use the global_symbol_pipe unless it works.
7825  if test "$pipe_works" = yes; then
7826    break
7827  else
7828    lt_cv_sys_global_symbol_pipe=
7829  fi
7830done
7831
7832fi
7833
7834if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835  lt_cv_sys_global_symbol_to_cdecl=
7836fi
7837if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838  echo "$as_me:$LINENO: result: failed" >&5
7839echo "${ECHO_T}failed" >&6
7840else
7841  echo "$as_me:$LINENO: result: ok" >&5
7842echo "${ECHO_T}ok" >&6
7843fi
7844
7845echo "$as_me:$LINENO: checking for objdir" >&5
7846echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7847if test "${lt_cv_objdir+set}" = set; then
7848  echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850  rm -f .libs 2>/dev/null
7851mkdir .libs 2>/dev/null
7852if test -d .libs; then
7853  lt_cv_objdir=.libs
7854else
7855  # MS-DOS does not allow filenames that begin with a dot.
7856  lt_cv_objdir=_libs
7857fi
7858rmdir .libs 2>/dev/null
7859fi
7860echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861echo "${ECHO_T}$lt_cv_objdir" >&6
7862objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868case $host_os in
7869aix3*)
7870  # AIX sometimes has problems with the GCC collect2 program.  For some
7871  # reason, if we set the COLLECT_NAMES environment variable, the problems
7872  # vanish in a puff of smoke.
7873  if test "X${COLLECT_NAMES+set}" != Xset; then
7874    COLLECT_NAMES=
7875    export COLLECT_NAMES
7876  fi
7877  ;;
7878esac
7879
7880# Sed substitution that helps us do robust quoting.  It backslashifies
7881# metacharacters that are still active within double-quoted strings.
7882Xsed='sed -e 1s/^X//'
7883sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7884
7885# Same as above, but do not quote variable references.
7886double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7887
7888# Sed substitution to delay expansion of an escaped shell variable in a
7889# double_quote_subst'ed string.
7890delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7891
7892# Sed substitution to avoid accidental globbing in evaled expressions
7893no_glob_subst='s/\*/\\\*/g'
7894
7895# Constants:
7896rm="rm -f"
7897
7898# Global variables:
7899default_ofile=libtool
7900can_build_shared=yes
7901
7902# All known linkers require a `.a' archive for static linking (except MSVC,
7903# which needs '.lib').
7904libext=a
7905ltmain="$ac_aux_dir/ltmain.sh"
7906ofile="$default_ofile"
7907with_gnu_ld="$lt_cv_prog_gnu_ld"
7908
7909if test -n "$ac_tool_prefix"; then
7910  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911set dummy ${ac_tool_prefix}ar; ac_word=$2
7912echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7914if test "${ac_cv_prog_AR+set}" = set; then
7915  echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917  if test -n "$AR"; then
7918  ac_cv_prog_AR="$AR" # Let the user override the test.
7919else
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923  IFS=$as_save_IFS
7924  test -z "$as_dir" && as_dir=.
7925  for ac_exec_ext in '' $ac_executable_extensions; do
7926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927    ac_cv_prog_AR="${ac_tool_prefix}ar"
7928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929    break 2
7930  fi
7931done
7932done
7933
7934fi
7935fi
7936AR=$ac_cv_prog_AR
7937if test -n "$AR"; then
7938  echo "$as_me:$LINENO: result: $AR" >&5
7939echo "${ECHO_T}$AR" >&6
7940else
7941  echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943fi
7944
7945fi
7946if test -z "$ac_cv_prog_AR"; then
7947  ac_ct_AR=$AR
7948  # Extract the first word of "ar", so it can be a program name with args.
7949set dummy ar; ac_word=$2
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955  if test -n "$ac_ct_AR"; then
7956  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_ac_ct_AR="ar"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971
7972  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7973fi
7974fi
7975ac_ct_AR=$ac_cv_prog_ac_ct_AR
7976if test -n "$ac_ct_AR"; then
7977  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7978echo "${ECHO_T}$ac_ct_AR" >&6
7979else
7980  echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
7982fi
7983
7984  AR=$ac_ct_AR
7985else
7986  AR="$ac_cv_prog_AR"
7987fi
7988
7989if test -n "$ac_tool_prefix"; then
7990  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7991set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7992echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7994if test "${ac_cv_prog_RANLIB+set}" = set; then
7995  echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997  if test -n "$RANLIB"; then
7998  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  test -z "$as_dir" && as_dir=.
8005  for ac_exec_ext in '' $ac_executable_extensions; do
8006  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009    break 2
8010  fi
8011done
8012done
8013
8014fi
8015fi
8016RANLIB=$ac_cv_prog_RANLIB
8017if test -n "$RANLIB"; then
8018  echo "$as_me:$LINENO: result: $RANLIB" >&5
8019echo "${ECHO_T}$RANLIB" >&6
8020else
8021  echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
8023fi
8024
8025fi
8026if test -z "$ac_cv_prog_RANLIB"; then
8027  ac_ct_RANLIB=$RANLIB
8028  # Extract the first word of "ranlib", so it can be a program name with args.
8029set dummy ranlib; ac_word=$2
8030echo "$as_me:$LINENO: checking for $ac_word" >&5
8031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035  if test -n "$ac_ct_RANLIB"; then
8036  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043  for ac_exec_ext in '' $ac_executable_extensions; do
8044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045    ac_cv_prog_ac_ct_RANLIB="ranlib"
8046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050done
8051
8052  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8053fi
8054fi
8055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8056if test -n "$ac_ct_RANLIB"; then
8057  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8058echo "${ECHO_T}$ac_ct_RANLIB" >&6
8059else
8060  echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6
8062fi
8063
8064  RANLIB=$ac_ct_RANLIB
8065else
8066  RANLIB="$ac_cv_prog_RANLIB"
8067fi
8068
8069if test -n "$ac_tool_prefix"; then
8070  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8071set dummy ${ac_tool_prefix}strip; ac_word=$2
8072echo "$as_me:$LINENO: checking for $ac_word" >&5
8073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8074if test "${ac_cv_prog_STRIP+set}" = set; then
8075  echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077  if test -n "$STRIP"; then
8078  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083  IFS=$as_save_IFS
8084  test -z "$as_dir" && as_dir=.
8085  for ac_exec_ext in '' $ac_executable_extensions; do
8086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8089    break 2
8090  fi
8091done
8092done
8093
8094fi
8095fi
8096STRIP=$ac_cv_prog_STRIP
8097if test -n "$STRIP"; then
8098  echo "$as_me:$LINENO: result: $STRIP" >&5
8099echo "${ECHO_T}$STRIP" >&6
8100else
8101  echo "$as_me:$LINENO: result: no" >&5
8102echo "${ECHO_T}no" >&6
8103fi
8104
8105fi
8106if test -z "$ac_cv_prog_STRIP"; then
8107  ac_ct_STRIP=$STRIP
8108  # Extract the first word of "strip", so it can be a program name with args.
8109set dummy strip; ac_word=$2
8110echo "$as_me:$LINENO: checking for $ac_word" >&5
8111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8112if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8113  echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115  if test -n "$ac_ct_STRIP"; then
8116  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121  IFS=$as_save_IFS
8122  test -z "$as_dir" && as_dir=.
8123  for ac_exec_ext in '' $ac_executable_extensions; do
8124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125    ac_cv_prog_ac_ct_STRIP="strip"
8126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127    break 2
8128  fi
8129done
8130done
8131
8132  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8133fi
8134fi
8135ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8136if test -n "$ac_ct_STRIP"; then
8137  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8138echo "${ECHO_T}$ac_ct_STRIP" >&6
8139else
8140  echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6
8142fi
8143
8144  STRIP=$ac_ct_STRIP
8145else
8146  STRIP="$ac_cv_prog_STRIP"
8147fi
8148
8149
8150old_CC="$CC"
8151old_CFLAGS="$CFLAGS"
8152
8153# Set sane defaults for various variables
8154test -z "$AR" && AR=ar
8155test -z "$AR_FLAGS" && AR_FLAGS=cru
8156test -z "$AS" && AS=as
8157test -z "$CC" && CC=cc
8158test -z "$LTCC" && LTCC=$CC
8159test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8160test -z "$DLLTOOL" && DLLTOOL=dlltool
8161test -z "$LD" && LD=ld
8162test -z "$LN_S" && LN_S="ln -s"
8163test -z "$MAGIC_CMD" && MAGIC_CMD=file
8164test -z "$NM" && NM=nm
8165test -z "$SED" && SED=sed
8166test -z "$OBJDUMP" && OBJDUMP=objdump
8167test -z "$RANLIB" && RANLIB=:
8168test -z "$STRIP" && STRIP=:
8169test -z "$ac_objext" && ac_objext=o
8170
8171# Determine commands to create old-style static archives.
8172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8173old_postinstall_cmds='chmod 644 $oldlib'
8174old_postuninstall_cmds=
8175
8176if test -n "$RANLIB"; then
8177  case $host_os in
8178  openbsd*)
8179    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8180    ;;
8181  *)
8182    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8183    ;;
8184  esac
8185  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8186fi
8187
8188for cc_temp in $compiler""; do
8189  case $cc_temp in
8190    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192    \-*) ;;
8193    *) break;;
8194  esac
8195done
8196cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8197
8198
8199# Only perform the check for file, if the check method requires it
8200case $deplibs_check_method in
8201file_magic*)
8202  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8203    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8204echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8205if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  case $MAGIC_CMD in
8209[\\/*] |  ?:[\\/]*)
8210  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8211  ;;
8212*)
8213  lt_save_MAGIC_CMD="$MAGIC_CMD"
8214  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8215  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8216  for ac_dir in $ac_dummy; do
8217    IFS="$lt_save_ifs"
8218    test -z "$ac_dir" && ac_dir=.
8219    if test -f $ac_dir/${ac_tool_prefix}file; then
8220      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8221      if test -n "$file_magic_test_file"; then
8222        case $deplibs_check_method in
8223        "file_magic "*)
8224          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8225          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8227            $EGREP "$file_magic_regex" > /dev/null; then
8228            :
8229          else
8230            cat <<EOF 1>&2
8231
8232*** Warning: the command libtool uses to detect shared libraries,
8233*** $file_magic_cmd, produces output that libtool cannot recognize.
8234*** The result is that libtool may fail to recognize shared libraries
8235*** as such.  This will affect the creation of libtool libraries that
8236*** depend on shared libraries, but programs linked with such libtool
8237*** libraries will work regardless of this problem.  Nevertheless, you
8238*** may want to report the problem to your system manager and/or to
8239*** bug-libtool@gnu.org
8240
8241EOF
8242          fi ;;
8243        esac
8244      fi
8245      break
8246    fi
8247  done
8248  IFS="$lt_save_ifs"
8249  MAGIC_CMD="$lt_save_MAGIC_CMD"
8250  ;;
8251esac
8252fi
8253
8254MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255if test -n "$MAGIC_CMD"; then
8256  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8257echo "${ECHO_T}$MAGIC_CMD" >&6
8258else
8259  echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
8261fi
8262
8263if test -z "$lt_cv_path_MAGIC_CMD"; then
8264  if test -n "$ac_tool_prefix"; then
8265    echo "$as_me:$LINENO: checking for file" >&5
8266echo $ECHO_N "checking for file... $ECHO_C" >&6
8267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8268  echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8283      if test -n "$file_magic_test_file"; then
8284        case $deplibs_check_method in
8285        "file_magic "*)
8286          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289            $EGREP "$file_magic_regex" > /dev/null; then
8290            :
8291          else
8292            cat <<EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303EOF
8304          fi ;;
8305        esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8319echo "${ECHO_T}$MAGIC_CMD" >&6
8320else
8321  echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323fi
8324
8325  else
8326    MAGIC_CMD=:
8327  fi
8328fi
8329
8330  fi
8331  ;;
8332esac
8333
8334enable_dlopen=no
8335enable_win32_dll=no
8336
8337# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8338if test "${enable_libtool_lock+set}" = set; then
8339  enableval="$enable_libtool_lock"
8340
8341fi;
8342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8343
8344
8345# Check whether --with-pic or --without-pic was given.
8346if test "${with_pic+set}" = set; then
8347  withval="$with_pic"
8348  pic_mode="$withval"
8349else
8350  pic_mode=default
8351fi;
8352test -z "$pic_mode" && pic_mode=default
8353
8354# Use C for the default configuration in the libtool script
8355tagname=
8356lt_save_CC="$CC"
8357ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363
8364# Source file extension for C test sources.
8365ac_ext=c
8366
8367# Object file extension for compiled C test sources.
8368objext=o
8369objext=$objext
8370
8371# Code to be used in simple compile tests
8372lt_simple_compile_test_code="int some_variable = 0;\n"
8373
8374# Code to be used in simple link tests
8375lt_simple_link_test_code='int main(){return(0);}\n'
8376
8377
8378# If no C compiler was specified, use CC.
8379LTCC=${LTCC-"$CC"}
8380
8381# If no C compiler flags were specified, use CFLAGS.
8382LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8383
8384# Allow CC to be a program name with arguments.
8385compiler=$CC
8386
8387
8388# save warnings/boilerplate of simple test code
8389ac_outfile=conftest.$ac_objext
8390printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8392_lt_compiler_boilerplate=`cat conftest.err`
8393$rm conftest*
8394
8395ac_outfile=conftest.$ac_objext
8396printf "$lt_simple_link_test_code" >conftest.$ac_ext
8397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8398_lt_linker_boilerplate=`cat conftest.err`
8399$rm conftest*
8400
8401
8402## CAVEAT EMPTOR:
8403## There is no encapsulation within the following macros, do not change
8404## the running order or otherwise move them around unless you know exactly
8405## what you are doing...
8406
8407lt_prog_compiler_no_builtin_flag=
8408
8409if test "$GCC" = yes; then
8410  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8411
8412
8413echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8414echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8415if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8416  echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418  lt_cv_prog_compiler_rtti_exceptions=no
8419  ac_outfile=conftest.$ac_objext
8420   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8421   lt_compiler_flag="-fno-rtti -fno-exceptions"
8422   # Insert the option either (1) after the last *FLAGS variable, or
8423   # (2) before a word containing "conftest.", or (3) at the end.
8424   # Note that $ac_compile itself does not contain backslashes and begins
8425   # with a dollar sign (not a hyphen), so the echo should work correctly.
8426   # The option is referenced via a variable to avoid confusing sed.
8427   lt_compile=`echo "$ac_compile" | $SED \
8428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430   -e 's:$: $lt_compiler_flag:'`
8431   (eval echo "\"\$as_me:8431: $lt_compile\"" >&5)
8432   (eval "$lt_compile" 2>conftest.err)
8433   ac_status=$?
8434   cat conftest.err >&5
8435   echo "$as_me:8435: \$? = $ac_status" >&5
8436   if (exit $ac_status) && test -s "$ac_outfile"; then
8437     # The compiler can only warn and ignore the option if not recognized
8438     # So say no if there are warnings other than the usual output.
8439     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8440     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8442       lt_cv_prog_compiler_rtti_exceptions=yes
8443     fi
8444   fi
8445   $rm conftest*
8446
8447fi
8448echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8449echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8450
8451if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8452    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8453else
8454    :
8455fi
8456
8457fi
8458
8459lt_prog_compiler_wl=
8460lt_prog_compiler_pic=
8461lt_prog_compiler_static=
8462
8463echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8464echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8465
8466  if test "$GCC" = yes; then
8467    lt_prog_compiler_wl='-Wl,'
8468    lt_prog_compiler_static='-static'
8469
8470    case $host_os in
8471      aix*)
8472      # All AIX code is PIC.
8473      if test "$host_cpu" = ia64; then
8474        # AIX 5 now supports IA64 processor
8475        lt_prog_compiler_static='-Bstatic'
8476      fi
8477      ;;
8478
8479    amigaos*)
8480      # FIXME: we need at least 68020 code to build shared libraries, but
8481      # adding the `-m68020' flag to GCC prevents building anything better,
8482      # like `-m68040'.
8483      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8484      ;;
8485
8486    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8487      # PIC is the default for these OSes.
8488      ;;
8489
8490    mingw* | pw32* | os2*)
8491      # This hack is so that the source file can tell whether it is being
8492      # built for inclusion in a dll (and should export symbols for example).
8493      lt_prog_compiler_pic='-DDLL_EXPORT'
8494      ;;
8495
8496    darwin* | rhapsody*)
8497      # PIC is the default on this platform
8498      # Common symbols not allowed in MH_DYLIB files
8499      lt_prog_compiler_pic='-fno-common'
8500      ;;
8501
8502    interix3*)
8503      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8504      # Instead, we relocate shared libraries at runtime.
8505      ;;
8506
8507    msdosdjgpp*)
8508      # Just because we use GCC doesn't mean we suddenly get shared libraries
8509      # on systems that don't support them.
8510      lt_prog_compiler_can_build_shared=no
8511      enable_shared=no
8512      ;;
8513
8514    sysv4*MP*)
8515      if test -d /usr/nec; then
8516        lt_prog_compiler_pic=-Kconform_pic
8517      fi
8518      ;;
8519
8520    hpux*)
8521      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522      # not for PA HP-UX.
8523      case $host_cpu in
8524      hppa*64*|ia64*)
8525        # +Z the default
8526        ;;
8527      *)
8528        lt_prog_compiler_pic='-fPIC'
8529        ;;
8530      esac
8531      ;;
8532
8533    *)
8534      lt_prog_compiler_pic='-fPIC'
8535      ;;
8536    esac
8537  else
8538    # PORTME Check for flag to pass linker flags through the system compiler.
8539    case $host_os in
8540    aix*)
8541      lt_prog_compiler_wl='-Wl,'
8542      if test "$host_cpu" = ia64; then
8543        # AIX 5 now supports IA64 processor
8544        lt_prog_compiler_static='-Bstatic'
8545      else
8546        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8547      fi
8548      ;;
8549      darwin*)
8550        # PIC is the default on this platform
8551        # Common symbols not allowed in MH_DYLIB files
8552       case $cc_basename in
8553         xlc*)
8554         lt_prog_compiler_pic='-qnocommon'
8555         lt_prog_compiler_wl='-Wl,'
8556         ;;
8557       esac
8558       ;;
8559
8560    mingw* | pw32* | os2*)
8561      # This hack is so that the source file can tell whether it is being
8562      # built for inclusion in a dll (and should export symbols for example).
8563      lt_prog_compiler_pic='-DDLL_EXPORT'
8564      ;;
8565
8566    hpux9* | hpux10* | hpux11*)
8567      lt_prog_compiler_wl='-Wl,'
8568      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8569      # not for PA HP-UX.
8570      case $host_cpu in
8571      hppa*64*|ia64*)
8572        # +Z the default
8573        ;;
8574      *)
8575        lt_prog_compiler_pic='+Z'
8576        ;;
8577      esac
8578      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8579      lt_prog_compiler_static='${wl}-a ${wl}archive'
8580      ;;
8581
8582    irix5* | irix6* | nonstopux*)
8583      lt_prog_compiler_wl='-Wl,'
8584      # PIC (with -KPIC) is the default.
8585      lt_prog_compiler_static='-non_shared'
8586      ;;
8587
8588    newsos6)
8589      lt_prog_compiler_pic='-KPIC'
8590      lt_prog_compiler_static='-Bstatic'
8591      ;;
8592
8593    linux*)
8594      case $cc_basename in
8595      icc* | ecc*)
8596        lt_prog_compiler_wl='-Wl,'
8597        lt_prog_compiler_pic='-KPIC'
8598        lt_prog_compiler_static='-static'
8599        ;;
8600      pgcc* | pgf77* | pgf90* | pgf95*)
8601        # Portland Group compilers (*not* the Pentium gcc compiler,
8602        # which looks to be a dead project)
8603        lt_prog_compiler_wl='-Wl,'
8604        lt_prog_compiler_pic='-fpic'
8605        lt_prog_compiler_static='-Bstatic'
8606        ;;
8607      ccc*)
8608        lt_prog_compiler_wl='-Wl,'
8609        # All Alpha code is PIC.
8610        lt_prog_compiler_static='-non_shared'
8611        ;;
8612      esac
8613      ;;
8614
8615    osf3* | osf4* | osf5*)
8616      lt_prog_compiler_wl='-Wl,'
8617      # All OSF/1 code is PIC.
8618      lt_prog_compiler_static='-non_shared'
8619      ;;
8620
8621    solaris*)
8622      lt_prog_compiler_pic='-KPIC'
8623      lt_prog_compiler_static='-Bstatic'
8624      case $cc_basename in
8625      f77* | f90* | f95*)
8626        lt_prog_compiler_wl='-Qoption ld ';;
8627      *)
8628        lt_prog_compiler_wl='-Wl,';;
8629      esac
8630      ;;
8631
8632    sunos4*)
8633      lt_prog_compiler_wl='-Qoption ld '
8634      lt_prog_compiler_pic='-PIC'
8635      lt_prog_compiler_static='-Bstatic'
8636      ;;
8637
8638    sysv4 | sysv4.2uw2* | sysv4.3*)
8639      lt_prog_compiler_wl='-Wl,'
8640      lt_prog_compiler_pic='-KPIC'
8641      lt_prog_compiler_static='-Bstatic'
8642      ;;
8643
8644    sysv4*MP*)
8645      if test -d /usr/nec ;then
8646        lt_prog_compiler_pic='-Kconform_pic'
8647        lt_prog_compiler_static='-Bstatic'
8648      fi
8649      ;;
8650
8651    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8652      lt_prog_compiler_wl='-Wl,'
8653      lt_prog_compiler_pic='-KPIC'
8654      lt_prog_compiler_static='-Bstatic'
8655      ;;
8656
8657    unicos*)
8658      lt_prog_compiler_wl='-Wl,'
8659      lt_prog_compiler_can_build_shared=no
8660      ;;
8661
8662    uts4*)
8663      lt_prog_compiler_pic='-pic'
8664      lt_prog_compiler_static='-Bstatic'
8665      ;;
8666
8667    *)
8668      lt_prog_compiler_can_build_shared=no
8669      ;;
8670    esac
8671  fi
8672
8673echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8674echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8675
8676#
8677# Check to make sure the PIC flag actually works.
8678#
8679if test -n "$lt_prog_compiler_pic"; then
8680
8681echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8683if test "${lt_prog_compiler_pic_works+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686  lt_prog_compiler_pic_works=no
8687  ac_outfile=conftest.$ac_objext
8688   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8689   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690   # Insert the option either (1) after the last *FLAGS variable, or
8691   # (2) before a word containing "conftest.", or (3) at the end.
8692   # Note that $ac_compile itself does not contain backslashes and begins
8693   # with a dollar sign (not a hyphen), so the echo should work correctly.
8694   # The option is referenced via a variable to avoid confusing sed.
8695   lt_compile=`echo "$ac_compile" | $SED \
8696   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698   -e 's:$: $lt_compiler_flag:'`
8699   (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700   (eval "$lt_compile" 2>conftest.err)
8701   ac_status=$?
8702   cat conftest.err >&5
8703   echo "$as_me:8703: \$? = $ac_status" >&5
8704   if (exit $ac_status) && test -s "$ac_outfile"; then
8705     # The compiler can only warn and ignore the option if not recognized
8706     # So say no if there are warnings other than the usual output.
8707     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710       lt_prog_compiler_pic_works=yes
8711     fi
8712   fi
8713   $rm conftest*
8714
8715fi
8716echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8717echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8718
8719if test x"$lt_prog_compiler_pic_works" = xyes; then
8720    case $lt_prog_compiler_pic in
8721     "" | " "*) ;;
8722     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723     esac
8724else
8725    lt_prog_compiler_pic=
8726     lt_prog_compiler_can_build_shared=no
8727fi
8728
8729fi
8730case $host_os in
8731  # For platforms which do not support PIC, -DPIC is meaningless:
8732  *djgpp*)
8733    lt_prog_compiler_pic=
8734    ;;
8735  *)
8736    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8737    ;;
8738esac
8739
8740#
8741# Check to make sure the static flag actually works.
8742#
8743wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8744echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8745echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8746if test "${lt_prog_compiler_static_works+set}" = set; then
8747  echo $ECHO_N "(cached) $ECHO_C" >&6
8748else
8749  lt_prog_compiler_static_works=no
8750   save_LDFLAGS="$LDFLAGS"
8751   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8752   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8753   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8754     # The linker can only warn and ignore the option if not recognized
8755     # So say no if there are warnings
8756     if test -s conftest.err; then
8757       # Append any errors to the config.log.
8758       cat conftest.err 1>&5
8759       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8760       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761       if diff conftest.exp conftest.er2 >/dev/null; then
8762         lt_prog_compiler_static_works=yes
8763       fi
8764     else
8765       lt_prog_compiler_static_works=yes
8766     fi
8767   fi
8768   $rm conftest*
8769   LDFLAGS="$save_LDFLAGS"
8770
8771fi
8772echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8773echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8774
8775if test x"$lt_prog_compiler_static_works" = xyes; then
8776    :
8777else
8778    lt_prog_compiler_static=
8779fi
8780
8781
8782echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8783echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8784if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8785  echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787  lt_cv_prog_compiler_c_o=no
8788   $rm -r conftest 2>/dev/null
8789   mkdir conftest
8790   cd conftest
8791   mkdir out
8792   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794   lt_compiler_flag="-o out/conftest2.$ac_objext"
8795   # Insert the option either (1) after the last *FLAGS variable, or
8796   # (2) before a word containing "conftest.", or (3) at the end.
8797   # Note that $ac_compile itself does not contain backslashes and begins
8798   # with a dollar sign (not a hyphen), so the echo should work correctly.
8799   lt_compile=`echo "$ac_compile" | $SED \
8800   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802   -e 's:$: $lt_compiler_flag:'`
8803   (eval echo "\"\$as_me:8803: $lt_compile\"" >&5)
8804   (eval "$lt_compile" 2>out/conftest.err)
8805   ac_status=$?
8806   cat out/conftest.err >&5
8807   echo "$as_me:8807: \$? = $ac_status" >&5
8808   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809   then
8810     # The compiler can only warn and ignore the option if not recognized
8811     # So say no if there are warnings
8812     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8813     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815       lt_cv_prog_compiler_c_o=yes
8816     fi
8817   fi
8818   chmod u+w . 2>&5
8819   $rm conftest*
8820   # SGI C++ compiler will create directory out/ii_files/ for
8821   # template instantiation
8822   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8823   $rm out/* && rmdir out
8824   cd ..
8825   rmdir conftest
8826   $rm conftest*
8827
8828fi
8829echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8830echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8831
8832
8833hard_links="nottested"
8834if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8835  # do not overwrite the value of need_locks provided by the user
8836  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8837echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8838  hard_links=yes
8839  $rm conftest*
8840  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8841  touch conftest.a
8842  ln conftest.a conftest.b 2>&5 || hard_links=no
8843  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8844  echo "$as_me:$LINENO: result: $hard_links" >&5
8845echo "${ECHO_T}$hard_links" >&6
8846  if test "$hard_links" = no; then
8847    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8848echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8849    need_locks=warn
8850  fi
8851else
8852  need_locks=no
8853fi
8854
8855echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8856echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8857
8858  runpath_var=
8859  allow_undefined_flag=
8860  enable_shared_with_static_runtimes=no
8861  archive_cmds=
8862  archive_expsym_cmds=
8863  old_archive_From_new_cmds=
8864  old_archive_from_expsyms_cmds=
8865  export_dynamic_flag_spec=
8866  whole_archive_flag_spec=
8867  thread_safe_flag_spec=
8868  hardcode_libdir_flag_spec=
8869  hardcode_libdir_flag_spec_ld=
8870  hardcode_libdir_separator=
8871  hardcode_direct=no
8872  hardcode_minus_L=no
8873  hardcode_shlibpath_var=unsupported
8874  link_all_deplibs=unknown
8875  hardcode_automatic=no
8876  module_cmds=
8877  module_expsym_cmds=
8878  always_export_symbols=no
8879  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8880  # include_expsyms should be a list of space-separated symbols to be *always*
8881  # included in the symbol list
8882  include_expsyms=
8883  # exclude_expsyms can be an extended regexp of symbols to exclude
8884  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8885  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8886  # as well as any symbol that contains `d'.
8887  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8888  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8889  # platforms (ab)use it in PIC code, but their linkers get confused if
8890  # the symbol is explicitly referenced.  Since portable code cannot
8891  # rely on this symbol name, it's probably fine to never include it in
8892  # preloaded symbol tables.
8893  extract_expsyms_cmds=
8894  # Just being paranoid about ensuring that cc_basename is set.
8895  for cc_temp in $compiler""; do
8896  case $cc_temp in
8897    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8898    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8899    \-*) ;;
8900    *) break;;
8901  esac
8902done
8903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8904
8905  case $host_os in
8906  cygwin* | mingw* | pw32*)
8907    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8908    # When not using gcc, we currently assume that we are using
8909    # Microsoft Visual C++.
8910    if test "$GCC" != yes; then
8911      with_gnu_ld=no
8912    fi
8913    ;;
8914  interix*)
8915    # we just hope/assume this is gcc and not c89 (= MSVC++)
8916    with_gnu_ld=yes
8917    ;;
8918  openbsd*)
8919    with_gnu_ld=no
8920    ;;
8921  esac
8922
8923  ld_shlibs=yes
8924  if test "$with_gnu_ld" = yes; then
8925    # If archive_cmds runs LD, not CC, wlarc should be empty
8926    wlarc='${wl}'
8927
8928    # Set some defaults for GNU ld with shared library support. These
8929    # are reset later if shared libraries are not supported. Putting them
8930    # here allows them to be overridden if necessary.
8931    runpath_var=LD_RUN_PATH
8932    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8933    export_dynamic_flag_spec='${wl}--export-dynamic'
8934    # ancient GNU ld didn't support --whole-archive et. al.
8935    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8936        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8937      else
8938        whole_archive_flag_spec=
8939    fi
8940    supports_anon_versioning=no
8941    case `$LD -v 2>/dev/null` in
8942      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8943      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8944      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8945      *\ 2.11.*) ;; # other 2.11 versions
8946      *) supports_anon_versioning=yes ;;
8947    esac
8948
8949    # See if GNU ld supports shared libraries.
8950    case $host_os in
8951    aix3* | aix4* | aix5*)
8952      # On AIX/PPC, the GNU linker is very broken
8953      if test "$host_cpu" != ia64; then
8954        ld_shlibs=no
8955        cat <<EOF 1>&2
8956
8957*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8958*** to be unable to reliably create shared libraries on AIX.
8959*** Therefore, libtool is disabling shared libraries support.  If you
8960*** really care for shared libraries, you may want to modify your PATH
8961*** so that a non-GNU linker is found, and then restart.
8962
8963EOF
8964      fi
8965      ;;
8966
8967    amigaos*)
8968      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)'
8969      hardcode_libdir_flag_spec='-L$libdir'
8970      hardcode_minus_L=yes
8971
8972      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8973      # that the semantics of dynamic libraries on AmigaOS, at least up
8974      # to version 4, is to share data among multiple programs linked
8975      # with the same dynamic library.  Since this doesn't match the
8976      # behavior of shared libraries on other platforms, we can't use
8977      # them.
8978      ld_shlibs=no
8979      ;;
8980
8981    beos*)
8982      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8983        allow_undefined_flag=unsupported
8984        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8985        # support --undefined.  This deserves some investigation.  FIXME
8986        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987      else
8988        ld_shlibs=no
8989      fi
8990      ;;
8991
8992    cygwin* | mingw* | pw32*)
8993      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8994      # as there is no search path for DLLs.
8995      hardcode_libdir_flag_spec='-L$libdir'
8996      allow_undefined_flag=unsupported
8997      always_export_symbols=no
8998      enable_shared_with_static_runtimes=yes
8999      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9000
9001      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9002        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9003        # If the export-symbols file already is a .def file (1st line
9004        # is EXPORTS), use it as is; otherwise, prepend...
9005        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9006          cp $export_symbols $output_objdir/$soname.def;
9007        else
9008          echo EXPORTS > $output_objdir/$soname.def;
9009          cat $export_symbols >> $output_objdir/$soname.def;
9010        fi~
9011        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9012      else
9013        ld_shlibs=no
9014      fi
9015      ;;
9016
9017    interix3*)
9018      hardcode_direct=no
9019      hardcode_shlibpath_var=no
9020      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9021      export_dynamic_flag_spec='${wl}-E'
9022      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9023      # Instead, shared libraries are loaded at an image base (0x10000000 by
9024      # default) and relocated if they conflict, which is a slow very memory
9025      # consuming and fragmenting process.  To avoid this, we pick a random,
9026      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9027      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9028      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9029      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'
9030      ;;
9031
9032    linux*)
9033      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034        tmp_addflag=
9035        case $cc_basename,$host_cpu in
9036        pgcc*)                          # Portland Group C compiler
9037          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'
9038          tmp_addflag=' $pic_flag'
9039          ;;
9040        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9041          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'
9042          tmp_addflag=' $pic_flag -Mnomain' ;;
9043        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9044          tmp_addflag=' -i_dynamic' ;;
9045        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9046          tmp_addflag=' -i_dynamic -nofor_main' ;;
9047        ifc* | ifort*)                  # Intel Fortran compiler
9048          tmp_addflag=' -nofor_main' ;;
9049        esac
9050        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051
9052        if test $supports_anon_versioning = yes; then
9053          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9054  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9055  $echo "local: *; };" >> $output_objdir/$libname.ver~
9056          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9057        fi
9058      else
9059        ld_shlibs=no
9060      fi
9061      ;;
9062
9063    netbsd*)
9064      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9065        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9066        wlarc=
9067      else
9068        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070      fi
9071      ;;
9072
9073    solaris*)
9074      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9075        ld_shlibs=no
9076        cat <<EOF 1>&2
9077
9078*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9079*** create shared libraries on Solaris systems.  Therefore, libtool
9080*** is disabling shared libraries support.  We urge you to upgrade GNU
9081*** binutils to release 2.9.1 or newer.  Another option is to modify
9082*** your PATH or compiler configuration so that the native linker is
9083*** used, and then restart.
9084
9085EOF
9086      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9087        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089      else
9090        ld_shlibs=no
9091      fi
9092      ;;
9093
9094    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9095      case `$LD -v 2>&1` in
9096        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9097        ld_shlibs=no
9098        cat <<_LT_EOF 1>&2
9099
9100*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9101*** reliably create shared libraries on SCO systems.  Therefore, libtool
9102*** is disabling shared libraries support.  We urge you to upgrade GNU
9103*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9104*** your PATH or compiler configuration so that the native linker is
9105*** used, and then restart.
9106
9107_LT_EOF
9108        ;;
9109        *)
9110          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9111            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9112            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9113            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9114          else
9115            ld_shlibs=no
9116          fi
9117        ;;
9118      esac
9119      ;;
9120
9121    sunos4*)
9122      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9123      wlarc=
9124      hardcode_direct=yes
9125      hardcode_shlibpath_var=no
9126      ;;
9127
9128    *)
9129      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9130        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132      else
9133        ld_shlibs=no
9134      fi
9135      ;;
9136    esac
9137
9138    if test "$ld_shlibs" = no; then
9139      runpath_var=
9140      hardcode_libdir_flag_spec=
9141      export_dynamic_flag_spec=
9142      whole_archive_flag_spec=
9143    fi
9144  else
9145    # PORTME fill in a description of your system's linker (not GNU ld)
9146    case $host_os in
9147    aix3*)
9148      allow_undefined_flag=unsupported
9149      always_export_symbols=yes
9150      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'
9151      # Note: this linker hardcodes the directories in LIBPATH if there
9152      # are no directories specified by -L.
9153      hardcode_minus_L=yes
9154      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9155        # Neither direct hardcoding nor static linking is supported with a
9156        # broken collect2.
9157        hardcode_direct=unsupported
9158      fi
9159      ;;
9160
9161    aix4* | aix5*)
9162      if test "$host_cpu" = ia64; then
9163        # On IA64, the linker does run time linking by default, so we don't
9164        # have to do anything special.
9165        aix_use_runtimelinking=no
9166        exp_sym_flag='-Bexport'
9167        no_entry_flag=""
9168      else
9169        # If we're using GNU nm, then we don't want the "-C" option.
9170        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9171        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9172          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'
9173        else
9174          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'
9175        fi
9176        aix_use_runtimelinking=no
9177
9178        # Test if we are trying to use run time linking or normal
9179        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9180        # need to do runtime linking.
9181        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9182          for ld_flag in $LDFLAGS; do
9183          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9184            aix_use_runtimelinking=yes
9185            break
9186          fi
9187          done
9188          ;;
9189        esac
9190
9191        exp_sym_flag='-bexport'
9192        no_entry_flag='-bnoentry'
9193      fi
9194
9195      # When large executables or shared objects are built, AIX ld can
9196      # have problems creating the table of contents.  If linking a library
9197      # or program results in "error TOC overflow" add -mminimal-toc to
9198      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9199      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9200
9201      archive_cmds=''
9202      hardcode_direct=yes
9203      hardcode_libdir_separator=':'
9204      link_all_deplibs=yes
9205
9206      if test "$GCC" = yes; then
9207        case $host_os in aix4.[012]|aix4.[012].*)
9208        # We only want to do this on AIX 4.2 and lower, the check
9209        # below for broken collect2 doesn't work under 4.3+
9210          collect2name=`${CC} -print-prog-name=collect2`
9211          if test -f "$collect2name" && \
9212           strings "$collect2name" | grep resolve_lib_name >/dev/null
9213          then
9214          # We have reworked collect2
9215          hardcode_direct=yes
9216          else
9217          # We have old collect2
9218          hardcode_direct=unsupported
9219          # It fails to find uninstalled libraries when the uninstalled
9220          # path is not listed in the libpath.  Setting hardcode_minus_L
9221          # to unsupported forces relinking
9222          hardcode_minus_L=yes
9223          hardcode_libdir_flag_spec='-L$libdir'
9224          hardcode_libdir_separator=
9225          fi
9226          ;;
9227        esac
9228        shared_flag='-shared'
9229        if test "$aix_use_runtimelinking" = yes; then
9230          shared_flag="$shared_flag "'${wl}-G'
9231        fi
9232      else
9233        # not using gcc
9234        if test "$host_cpu" = ia64; then
9235        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9236        # chokes on -Wl,-G. The following line is correct:
9237          shared_flag='-G'
9238        else
9239          if test "$aix_use_runtimelinking" = yes; then
9240            shared_flag='${wl}-G'
9241          else
9242            shared_flag='${wl}-bM:SRE'
9243          fi
9244        fi
9245      fi
9246
9247      # It seems that -bexpall does not export symbols beginning with
9248      # underscore (_), so it is better to generate a list of symbols to export.
9249      always_export_symbols=yes
9250      if test "$aix_use_runtimelinking" = yes; then
9251        # Warning - without using the other runtime loading flags (-brtl),
9252        # -berok will link without error, but may produce a broken library.
9253        allow_undefined_flag='-berok'
9254       # Determine the default libpath from the value encoded in an empty executable.
9255       cat >conftest.$ac_ext <<_ACEOF
9256/* confdefs.h.  */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h.  */
9261
9262int
9263main ()
9264{
9265
9266  ;
9267  return 0;
9268}
9269_ACEOF
9270rm -f conftest.$ac_objext conftest$ac_exeext
9271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272  (eval $ac_link) 2>conftest.er1
9273  ac_status=$?
9274  grep -v '^ *+' conftest.er1 >conftest.err
9275  rm -f conftest.er1
9276  cat conftest.err >&5
9277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278  (exit $ac_status); } &&
9279         { ac_try='test -z "$ac_c_werror_flag"
9280                         || test ! -s conftest.err'
9281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282  (eval $ac_try) 2>&5
9283  ac_status=$?
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); }; } &&
9286         { ac_try='test -s conftest$ac_exeext'
9287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288  (eval $ac_try) 2>&5
9289  ac_status=$?
9290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291  (exit $ac_status); }; }; then
9292
9293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9294}'`
9295# Check for a 64-bit object if we didn't find anything.
9296if 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; }
9297}'`; fi
9298else
9299  echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302fi
9303rm -f conftest.err conftest.$ac_objext \
9304      conftest$ac_exeext conftest.$ac_ext
9305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9306
9307       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308        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"
9309       else
9310        if test "$host_cpu" = ia64; then
9311          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9312          allow_undefined_flag="-z nodefs"
9313          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"
9314        else
9315         # Determine the default libpath from the value encoded in an empty executable.
9316         cat >conftest.$ac_ext <<_ACEOF
9317/* confdefs.h.  */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h.  */
9322
9323int
9324main ()
9325{
9326
9327  ;
9328  return 0;
9329}
9330_ACEOF
9331rm -f conftest.$ac_objext conftest$ac_exeext
9332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9333  (eval $ac_link) 2>conftest.er1
9334  ac_status=$?
9335  grep -v '^ *+' conftest.er1 >conftest.err
9336  rm -f conftest.er1
9337  cat conftest.err >&5
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); } &&
9340         { ac_try='test -z "$ac_c_werror_flag"
9341                         || test ! -s conftest.err'
9342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343  (eval $ac_try) 2>&5
9344  ac_status=$?
9345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346  (exit $ac_status); }; } &&
9347         { ac_try='test -s conftest$ac_exeext'
9348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349  (eval $ac_try) 2>&5
9350  ac_status=$?
9351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352  (exit $ac_status); }; }; then
9353
9354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9355}'`
9356# Check for a 64-bit object if we didn't find anything.
9357if 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; }
9358}'`; fi
9359else
9360  echo "$as_me: failed program was:" >&5
9361sed 's/^/| /' conftest.$ac_ext >&5
9362
9363fi
9364rm -f conftest.err conftest.$ac_objext \
9365      conftest$ac_exeext conftest.$ac_ext
9366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9367
9368         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9369          # Warning - without using the other run time loading flags,
9370          # -berok will link without error, but may produce a broken library.
9371          no_undefined_flag=' ${wl}-bernotok'
9372          allow_undefined_flag=' ${wl}-berok'
9373          # Exported symbols can be pulled into shared objects from archives
9374          whole_archive_flag_spec='$convenience'
9375          archive_cmds_need_lc=yes
9376          # This is similar to how AIX traditionally builds its shared libraries.
9377          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'
9378        fi
9379      fi
9380      ;;
9381
9382    amigaos*)
9383      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)'
9384      hardcode_libdir_flag_spec='-L$libdir'
9385      hardcode_minus_L=yes
9386      # see comment about different semantics on the GNU ld section
9387      ld_shlibs=no
9388      ;;
9389
9390    bsdi[45]*)
9391      export_dynamic_flag_spec=-rdynamic
9392      ;;
9393
9394    cygwin* | mingw* | pw32*)
9395      # When not using gcc, we currently assume that we are using
9396      # Microsoft Visual C++.
9397      # hardcode_libdir_flag_spec is actually meaningless, as there is
9398      # no search path for DLLs.
9399      hardcode_libdir_flag_spec=' '
9400      allow_undefined_flag=unsupported
9401      # Tell ltmain to make .lib files, not .a files.
9402      libext=lib
9403      # Tell ltmain to make .dll files, not .so files.
9404      shrext_cmds=".dll"
9405      # FIXME: Setting linknames here is a bad hack.
9406      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9407      # The linker will automatically build a .lib file if we build a DLL.
9408      old_archive_From_new_cmds='true'
9409      # FIXME: Should let the user specify the lib program.
9410      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9411      fix_srcfile_path='`cygpath -w "$srcfile"`'
9412      enable_shared_with_static_runtimes=yes
9413      ;;
9414
9415    darwin* | rhapsody*)
9416      case $host_os in
9417        rhapsody* | darwin1.[012])
9418         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9419         ;;
9420       *) # Darwin 1.3 on
9421         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9422           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9423         else
9424           case ${MACOSX_DEPLOYMENT_TARGET} in
9425             10.[012])
9426               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9427               ;;
9428             10.*)
9429               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9430               ;;
9431           esac
9432         fi
9433         ;;
9434      esac
9435      archive_cmds_need_lc=no
9436      hardcode_direct=no
9437      hardcode_automatic=yes
9438      hardcode_shlibpath_var=unsupported
9439      whole_archive_flag_spec=''
9440      link_all_deplibs=yes
9441    if test "$GCC" = yes ; then
9442        output_verbose_link_cmd='echo'
9443        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9444      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9445      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9446      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}'
9447      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}'
9448    else
9449      case $cc_basename in
9450        xlc*)
9451         output_verbose_link_cmd='echo'
9452         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9453         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455         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}'
9456          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}'
9457          ;;
9458       *)
9459         ld_shlibs=no
9460          ;;
9461      esac
9462    fi
9463      ;;
9464
9465    dgux*)
9466      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467      hardcode_libdir_flag_spec='-L$libdir'
9468      hardcode_shlibpath_var=no
9469      ;;
9470
9471    freebsd1*)
9472      ld_shlibs=no
9473      ;;
9474
9475    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9476    # support.  Future versions do this automatically, but an explicit c++rt0.o
9477    # does not break anything, and helps significantly (at the cost of a little
9478    # extra space).
9479    freebsd2.2*)
9480      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9481      hardcode_libdir_flag_spec='-R$libdir'
9482      hardcode_direct=yes
9483      hardcode_shlibpath_var=no
9484      ;;
9485
9486    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9487    freebsd2*)
9488      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489      hardcode_direct=yes
9490      hardcode_minus_L=yes
9491      hardcode_shlibpath_var=no
9492      ;;
9493
9494    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9495    freebsd* | kfreebsd*-gnu | dragonfly*)
9496      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9497      hardcode_libdir_flag_spec='-R$libdir'
9498      hardcode_direct=yes
9499      hardcode_shlibpath_var=no
9500      ;;
9501
9502    hpux9*)
9503      if test "$GCC" = yes; then
9504        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'
9505      else
9506        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'
9507      fi
9508      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9509      hardcode_libdir_separator=:
9510      hardcode_direct=yes
9511
9512      # hardcode_minus_L: Not really in the search PATH,
9513      # but as the default location of the library.
9514      hardcode_minus_L=yes
9515      export_dynamic_flag_spec='${wl}-E'
9516      ;;
9517
9518    hpux10*)
9519      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9520        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9521      else
9522        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9523      fi
9524      if test "$with_gnu_ld" = no; then
9525        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9526        hardcode_libdir_separator=:
9527
9528        hardcode_direct=yes
9529        export_dynamic_flag_spec='${wl}-E'
9530
9531        # hardcode_minus_L: Not really in the search PATH,
9532        # but as the default location of the library.
9533        hardcode_minus_L=yes
9534      fi
9535      ;;
9536
9537    hpux11*)
9538      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9539        case $host_cpu in
9540        hppa*64*)
9541          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542          ;;
9543        ia64*)
9544          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9545          ;;
9546        *)
9547          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9548          ;;
9549        esac
9550      else
9551        case $host_cpu in
9552        hppa*64*)
9553          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9554          ;;
9555        ia64*)
9556          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9557          ;;
9558        *)
9559          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9560          ;;
9561        esac
9562      fi
9563      if test "$with_gnu_ld" = no; then
9564        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565        hardcode_libdir_separator=:
9566
9567        case $host_cpu in
9568        hppa*64*|ia64*)
9569          hardcode_libdir_flag_spec_ld='+b $libdir'
9570          hardcode_direct=no
9571          hardcode_shlibpath_var=no
9572          ;;
9573        *)
9574          hardcode_direct=yes
9575          export_dynamic_flag_spec='${wl}-E'
9576
9577          # hardcode_minus_L: Not really in the search PATH,
9578          # but as the default location of the library.
9579          hardcode_minus_L=yes
9580          ;;
9581        esac
9582      fi
9583      ;;
9584
9585    irix5* | irix6* | nonstopux*)
9586      if test "$GCC" = yes; then
9587        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'
9588      else
9589        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'
9590        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9591      fi
9592      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593      hardcode_libdir_separator=:
9594      link_all_deplibs=yes
9595      ;;
9596
9597    netbsd*)
9598      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9599        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9600      else
9601        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9602      fi
9603      hardcode_libdir_flag_spec='-R$libdir'
9604      hardcode_direct=yes
9605      hardcode_shlibpath_var=no
9606      ;;
9607
9608    newsos6)
9609      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610      hardcode_direct=yes
9611      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612      hardcode_libdir_separator=:
9613      hardcode_shlibpath_var=no
9614      ;;
9615
9616    openbsd*)
9617      hardcode_direct=yes
9618      hardcode_shlibpath_var=no
9619      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9620        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9621        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9622        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623        export_dynamic_flag_spec='${wl}-E'
9624      else
9625       case $host_os in
9626         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9627           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628           hardcode_libdir_flag_spec='-R$libdir'
9629           ;;
9630         *)
9631           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633           ;;
9634       esac
9635      fi
9636      ;;
9637
9638    os2*)
9639      hardcode_libdir_flag_spec='-L$libdir'
9640      hardcode_minus_L=yes
9641      allow_undefined_flag=unsupported
9642      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'
9643      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9644      ;;
9645
9646    osf3*)
9647      if test "$GCC" = yes; then
9648        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9649        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'
9650      else
9651        allow_undefined_flag=' -expect_unresolved \*'
9652        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'
9653      fi
9654      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655      hardcode_libdir_separator=:
9656      ;;
9657
9658    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9659      if test "$GCC" = yes; then
9660        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661        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'
9662        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663      else
9664        allow_undefined_flag=' -expect_unresolved \*'
9665        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'
9666        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9667        $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'
9668
9669        # Both c and cxx compiler support -rpath directly
9670        hardcode_libdir_flag_spec='-rpath $libdir'
9671      fi
9672      hardcode_libdir_separator=:
9673      ;;
9674
9675    solaris*)
9676      no_undefined_flag=' -z text'
9677      if test "$GCC" = yes; then
9678        wlarc='${wl}'
9679        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682      else
9683        wlarc=''
9684        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9687      fi
9688      hardcode_libdir_flag_spec='-R$libdir'
9689      hardcode_shlibpath_var=no
9690      case $host_os in
9691      solaris2.[0-5] | solaris2.[0-5].*) ;;
9692      *)
9693        # The compiler driver will combine linker options so we
9694        # cannot just pass the convience library names through
9695        # without $wl, iff we do not link with $LD.
9696        # Luckily, gcc supports the same syntax we need for Sun Studio.
9697        # Supported since Solaris 2.6 (maybe 2.5.1?)
9698        case $wlarc in
9699        '')
9700          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9701        *)
9702          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' ;;
9703        esac ;;
9704      esac
9705      link_all_deplibs=yes
9706      ;;
9707
9708    sunos4*)
9709      if test "x$host_vendor" = xsequent; then
9710        # Use $CC to link under sequent, because it throws in some extra .o
9711        # files that make .init and .fini sections work.
9712        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713      else
9714        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9715      fi
9716      hardcode_libdir_flag_spec='-L$libdir'
9717      hardcode_direct=yes
9718      hardcode_minus_L=yes
9719      hardcode_shlibpath_var=no
9720      ;;
9721
9722    sysv4)
9723      case $host_vendor in
9724        sni)
9725          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726          hardcode_direct=yes # is this really true???
9727        ;;
9728        siemens)
9729          ## LD is ld it makes a PLAMLIB
9730          ## CC just makes a GrossModule.
9731          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732          reload_cmds='$CC -r -o $output$reload_objs'
9733          hardcode_direct=no
9734        ;;
9735        motorola)
9736          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738        ;;
9739      esac
9740      runpath_var='LD_RUN_PATH'
9741      hardcode_shlibpath_var=no
9742      ;;
9743
9744    sysv4.3*)
9745      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746      hardcode_shlibpath_var=no
9747      export_dynamic_flag_spec='-Bexport'
9748      ;;
9749
9750    sysv4*MP*)
9751      if test -d /usr/nec; then
9752        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753        hardcode_shlibpath_var=no
9754        runpath_var=LD_RUN_PATH
9755        hardcode_runpath_var=yes
9756        ld_shlibs=yes
9757      fi
9758      ;;
9759
9760    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9761      no_undefined_flag='${wl}-z,text'
9762      archive_cmds_need_lc=no
9763      hardcode_shlibpath_var=no
9764      runpath_var='LD_RUN_PATH'
9765
9766      if test "$GCC" = yes; then
9767        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769      else
9770        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772      fi
9773      ;;
9774
9775    sysv5* | sco3.2v5* | sco5v6*)
9776      # Note: We can NOT use -z defs as we might desire, because we do not
9777      # link with -lc, and that would cause any symbols used from libc to
9778      # always be unresolved, which means just about no library would
9779      # ever link correctly.  If we're not using GNU ld we use -z text
9780      # though, which does catch some bad symbols but isn't as heavy-handed
9781      # as -z defs.
9782      no_undefined_flag='${wl}-z,text'
9783      allow_undefined_flag='${wl}-z,nodefs'
9784      archive_cmds_need_lc=no
9785      hardcode_shlibpath_var=no
9786      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9787      hardcode_libdir_separator=':'
9788      link_all_deplibs=yes
9789      export_dynamic_flag_spec='${wl}-Bexport'
9790      runpath_var='LD_RUN_PATH'
9791
9792      if test "$GCC" = yes; then
9793        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9794        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795      else
9796        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9797        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798      fi
9799      ;;
9800
9801    uts4*)
9802      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803      hardcode_libdir_flag_spec='-L$libdir'
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    *)
9808      ld_shlibs=no
9809      ;;
9810    esac
9811  fi
9812
9813echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9814echo "${ECHO_T}$ld_shlibs" >&6
9815test "$ld_shlibs" = no && can_build_shared=no
9816
9817#
9818# Do we need to explicitly link libc?
9819#
9820case "x$archive_cmds_need_lc" in
9821x|xyes)
9822  # Assume -lc should be added
9823  archive_cmds_need_lc=yes
9824
9825  if test "$enable_shared" = yes && test "$GCC" = yes; then
9826    case $archive_cmds in
9827    *'~'*)
9828      # FIXME: we may have to deal with multi-command sequences.
9829      ;;
9830    '$CC '*)
9831      # Test whether the compiler implicitly links with -lc since on some
9832      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9833      # to ld, don't add -lc before -lgcc.
9834      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9835echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9836      $rm conftest*
9837      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9838
9839      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840  (eval $ac_compile) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); } 2>conftest.err; then
9844        soname=conftest
9845        lib=conftest
9846        libobjs=conftest.$ac_objext
9847        deplibs=
9848        wl=$lt_prog_compiler_wl
9849        pic_flag=$lt_prog_compiler_pic
9850        compiler_flags=-v
9851        linker_flags=-v
9852        verstring=
9853        output_objdir=.
9854        libname=conftest
9855        lt_save_allow_undefined_flag=$allow_undefined_flag
9856        allow_undefined_flag=
9857        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9858  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9859  ac_status=$?
9860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861  (exit $ac_status); }
9862        then
9863          archive_cmds_need_lc=no
9864        else
9865          archive_cmds_need_lc=yes
9866        fi
9867        allow_undefined_flag=$lt_save_allow_undefined_flag
9868      else
9869        cat conftest.err 1>&5
9870      fi
9871      $rm conftest*
9872      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9873echo "${ECHO_T}$archive_cmds_need_lc" >&6
9874      ;;
9875    esac
9876  fi
9877  ;;
9878esac
9879
9880echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9881echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9882library_names_spec=
9883libname_spec='lib$name'
9884soname_spec=
9885shrext_cmds=".so"
9886postinstall_cmds=
9887postuninstall_cmds=
9888finish_cmds=
9889finish_eval=
9890shlibpath_var=
9891shlibpath_overrides_runpath=unknown
9892version_type=none
9893dynamic_linker="$host_os ld.so"
9894sys_lib_dlsearch_path_spec="/lib /usr/lib"
9895if test "$GCC" = yes; then
9896  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9897  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9898    # if the path contains ";" then we assume it to be the separator
9899    # otherwise default to the standard path separator (i.e. ":") - it is
9900    # assumed that no part of a normal pathname contains ";" but that should
9901    # okay in the real world where ";" in dirpaths is itself problematic.
9902    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9903  else
9904    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9905  fi
9906else
9907  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9908fi
9909need_lib_prefix=unknown
9910hardcode_into_libs=no
9911
9912# when you set need_version to no, make sure it does not cause -set_version
9913# flags to be left without arguments
9914need_version=unknown
9915
9916case $host_os in
9917aix3*)
9918  version_type=linux
9919  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9920  shlibpath_var=LIBPATH
9921
9922  # AIX 3 has no versioning support, so we append a major version to the name.
9923  soname_spec='${libname}${release}${shared_ext}$major'
9924  ;;
9925
9926aix4* | aix5*)
9927  version_type=linux
9928  need_lib_prefix=no
9929  need_version=no
9930  hardcode_into_libs=yes
9931  if test "$host_cpu" = ia64; then
9932    # AIX 5 supports IA64
9933    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9934    shlibpath_var=LD_LIBRARY_PATH
9935  else
9936    # With GCC up to 2.95.x, collect2 would create an import file
9937    # for dependence libraries.  The import file would start with
9938    # the line `#! .'.  This would cause the generated library to
9939    # depend on `.', always an invalid library.  This was fixed in
9940    # development snapshots of GCC prior to 3.0.
9941    case $host_os in
9942      aix4 | aix4.[01] | aix4.[01].*)
9943      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9944           echo ' yes '
9945           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9946        :
9947      else
9948        can_build_shared=no
9949      fi
9950      ;;
9951    esac
9952    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9953    # soname into executable. Probably we can add versioning support to
9954    # collect2, so additional links can be useful in future.
9955    if test "$aix_use_runtimelinking" = yes; then
9956      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9957      # instead of lib<name>.a to let people know that these are not
9958      # typical AIX shared libraries.
9959      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960    else
9961      # We preserve .a as extension for shared libraries through AIX4.2
9962      # and later when we are not doing run time linking.
9963      library_names_spec='${libname}${release}.a $libname.a'
9964      soname_spec='${libname}${release}${shared_ext}$major'
9965    fi
9966    shlibpath_var=LIBPATH
9967  fi
9968  ;;
9969
9970amigaos*)
9971  library_names_spec='$libname.ixlibrary $libname.a'
9972  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9973  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'
9974  ;;
9975
9976beos*)
9977  library_names_spec='${libname}${shared_ext}'
9978  dynamic_linker="$host_os ld.so"
9979  shlibpath_var=LIBRARY_PATH
9980  ;;
9981
9982bsdi[45]*)
9983  version_type=linux
9984  need_version=no
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9988  shlibpath_var=LD_LIBRARY_PATH
9989  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9990  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9991  # the default ld.so.conf also contains /usr/contrib/lib and
9992  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9993  # libtool to hard-code these into programs
9994  ;;
9995
9996cygwin* | mingw* | pw32*)
9997  version_type=windows
9998  shrext_cmds=".dll"
9999  need_version=no
10000  need_lib_prefix=no
10001
10002  case $GCC,$host_os in
10003  yes,cygwin* | yes,mingw* | yes,pw32*)
10004    library_names_spec='$libname.dll.a'
10005    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10006    postinstall_cmds='base_file=`basename \${file}`~
10007      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10008      dldir=$destdir/`dirname \$dlpath`~
10009      test -d \$dldir || mkdir -p \$dldir~
10010      $install_prog $dir/$dlname \$dldir/$dlname~
10011      chmod a+x \$dldir/$dlname'
10012    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10013      dlpath=$dir/\$dldll~
10014       $rm \$dlpath'
10015    shlibpath_overrides_runpath=yes
10016
10017    case $host_os in
10018    cygwin*)
10019      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10020      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10022      ;;
10023    mingw*)
10024      # MinGW DLLs use traditional 'lib' prefix
10025      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10026      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10027      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10028        # It is most probably a Windows format PATH printed by
10029        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10030        # path with ; separators, and with drive letters. We can handle the
10031        # drive letters (cygwin fileutils understands them), so leave them,
10032        # especially as we might pass files found there to a mingw objdump,
10033        # which wouldn't understand a cygwinified path. Ahh.
10034        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10035      else
10036        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10037      fi
10038      ;;
10039    pw32*)
10040      # pw32 DLLs use 'pw' prefix rather than 'lib'
10041      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10042      ;;
10043    esac
10044    ;;
10045
10046  *)
10047    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10048    ;;
10049  esac
10050  dynamic_linker='Win32 ld.exe'
10051  # FIXME: first we should search . and the directory the executable is in
10052  shlibpath_var=PATH
10053  ;;
10054
10055darwin* | rhapsody*)
10056  dynamic_linker="$host_os dyld"
10057  version_type=darwin
10058  need_lib_prefix=no
10059  need_version=no
10060  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10061  soname_spec='${libname}${release}${major}$shared_ext'
10062  shlibpath_overrides_runpath=yes
10063  shlibpath_var=DYLD_LIBRARY_PATH
10064  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10065  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10066  if test "$GCC" = yes; then
10067    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"`
10068  else
10069    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10070  fi
10071  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10072  ;;
10073
10074dgux*)
10075  version_type=linux
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  ;;
10082
10083freebsd1*)
10084  dynamic_linker=no
10085  ;;
10086
10087kfreebsd*-gnu)
10088  version_type=linux
10089  need_lib_prefix=no
10090  need_version=no
10091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10092  soname_spec='${libname}${release}${shared_ext}$major'
10093  shlibpath_var=LD_LIBRARY_PATH
10094  shlibpath_overrides_runpath=no
10095  hardcode_into_libs=yes
10096  dynamic_linker='GNU ld.so'
10097  ;;
10098
10099freebsd* | dragonfly*)
10100  # DragonFly does not have aout.  When/if they implement a new
10101  # versioning mechanism, adjust this.
10102  if test -x /usr/bin/objformat; then
10103    objformat=`/usr/bin/objformat`
10104  else
10105    case $host_os in
10106    freebsd[123]*) objformat=aout ;;
10107    *) objformat=elf ;;
10108    esac
10109  fi
10110  version_type=freebsd-$objformat
10111  case $version_type in
10112    freebsd-elf*)
10113      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10114      need_version=no
10115      need_lib_prefix=no
10116      ;;
10117    freebsd-*)
10118      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10119      need_version=yes
10120      ;;
10121  esac
10122  shlibpath_var=LD_LIBRARY_PATH
10123  case $host_os in
10124  freebsd2*)
10125    shlibpath_overrides_runpath=yes
10126    ;;
10127  freebsd3.[01]* | freebsdelf3.[01]*)
10128    shlibpath_overrides_runpath=yes
10129    hardcode_into_libs=yes
10130    ;;
10131  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10132  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10133    shlibpath_overrides_runpath=no
10134    hardcode_into_libs=yes
10135    ;;
10136  freebsd*) # from 4.6 on
10137    shlibpath_overrides_runpath=yes
10138    hardcode_into_libs=yes
10139    ;;
10140  esac
10141  ;;
10142
10143gnu*)
10144  version_type=linux
10145  need_lib_prefix=no
10146  need_version=no
10147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10148  soname_spec='${libname}${release}${shared_ext}$major'
10149  shlibpath_var=LD_LIBRARY_PATH
10150  hardcode_into_libs=yes
10151  ;;
10152
10153hpux9* | hpux10* | hpux11*)
10154  # Give a soname corresponding to the major version so that dld.sl refuses to
10155  # link against other versions.
10156  version_type=sunos
10157  need_lib_prefix=no
10158  need_version=no
10159  case $host_cpu in
10160  ia64*)
10161    shrext_cmds='.so'
10162    hardcode_into_libs=yes
10163    dynamic_linker="$host_os dld.so"
10164    shlibpath_var=LD_LIBRARY_PATH
10165    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167    soname_spec='${libname}${release}${shared_ext}$major'
10168    if test "X$HPUX_IA64_MODE" = X32; then
10169      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10170    else
10171      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10172    fi
10173    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10174    ;;
10175   hppa*64*)
10176     shrext_cmds='.sl'
10177     hardcode_into_libs=yes
10178     dynamic_linker="$host_os dld.sl"
10179     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10180     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182     soname_spec='${libname}${release}${shared_ext}$major'
10183     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10185     ;;
10186   *)
10187    shrext_cmds='.sl'
10188    dynamic_linker="$host_os dld.sl"
10189    shlibpath_var=SHLIB_PATH
10190    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192    soname_spec='${libname}${release}${shared_ext}$major'
10193    ;;
10194  esac
10195  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10196  postinstall_cmds='chmod 555 $lib'
10197  ;;
10198
10199interix3*)
10200  version_type=linux
10201  need_lib_prefix=no
10202  need_version=no
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10204  soname_spec='${libname}${release}${shared_ext}$major'
10205  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  shlibpath_overrides_runpath=no
10208  hardcode_into_libs=yes
10209  ;;
10210
10211irix5* | irix6* | nonstopux*)
10212  case $host_os in
10213    nonstopux*) version_type=nonstopux ;;
10214    *)
10215        if test "$lt_cv_prog_gnu_ld" = yes; then
10216                version_type=linux
10217        else
10218                version_type=irix
10219        fi ;;
10220  esac
10221  need_lib_prefix=no
10222  need_version=no
10223  soname_spec='${libname}${release}${shared_ext}$major'
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10225  case $host_os in
10226  irix5* | nonstopux*)
10227    libsuff= shlibsuff=
10228    ;;
10229  *)
10230    case $LD in # libtool.m4 will add one of these switches to LD
10231    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10232      libsuff= shlibsuff= libmagic=32-bit;;
10233    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10234      libsuff=32 shlibsuff=N32 libmagic=N32;;
10235    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10236      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10237    *) libsuff= shlibsuff= libmagic=never-match;;
10238    esac
10239    ;;
10240  esac
10241  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10242  shlibpath_overrides_runpath=no
10243  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10244  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10245  hardcode_into_libs=yes
10246  ;;
10247
10248# No shared lib support for Linux oldld, aout, or coff.
10249linux*oldld* | linux*aout* | linux*coff*)
10250  dynamic_linker=no
10251  ;;
10252
10253# This must be Linux ELF.
10254linux*)
10255  version_type=linux
10256  need_lib_prefix=no
10257  need_version=no
10258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259  soname_spec='${libname}${release}${shared_ext}$major'
10260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10261  shlibpath_var=LD_LIBRARY_PATH
10262  shlibpath_overrides_runpath=no
10263  # This implies no fast_install, which is unacceptable.
10264  # Some rework will be needed to allow for fast_install
10265  # before this can be enabled.
10266  hardcode_into_libs=yes
10267
10268  # Append ld.so.conf contents to the search path
10269  if test -f /etc/ld.so.conf; then
10270    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' ' '`
10271    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10272  fi
10273
10274  # We used to test for /lib/ld.so.1 and disable shared libraries on
10275  # powerpc, because MkLinux only supported shared libraries with the
10276  # GNU dynamic linker.  Since this was broken with cross compilers,
10277  # most powerpc-linux boxes support dynamic linking these days and
10278  # people can always --disable-shared, the test was removed, and we
10279  # assume the GNU/Linux dynamic linker is in use.
10280  dynamic_linker='GNU/Linux ld.so'
10281  ;;
10282
10283knetbsd*-gnu)
10284  version_type=linux
10285  need_lib_prefix=no
10286  need_version=no
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288  soname_spec='${libname}${release}${shared_ext}$major'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  shlibpath_overrides_runpath=no
10291  hardcode_into_libs=yes
10292  dynamic_linker='GNU ld.so'
10293  ;;
10294
10295netbsd*)
10296  version_type=sunos
10297  need_lib_prefix=no
10298  need_version=no
10299  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10301    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10302    dynamic_linker='NetBSD (a.out) ld.so'
10303  else
10304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10305    soname_spec='${libname}${release}${shared_ext}$major'
10306    dynamic_linker='NetBSD ld.elf_so'
10307  fi
10308  shlibpath_var=LD_LIBRARY_PATH
10309  shlibpath_overrides_runpath=yes
10310  hardcode_into_libs=yes
10311  ;;
10312
10313newsos6)
10314  version_type=linux
10315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  shlibpath_overrides_runpath=yes
10318  ;;
10319
10320nto-qnx*)
10321  version_type=linux
10322  need_lib_prefix=no
10323  need_version=no
10324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325  soname_spec='${libname}${release}${shared_ext}$major'
10326  shlibpath_var=LD_LIBRARY_PATH
10327  shlibpath_overrides_runpath=yes
10328  ;;
10329
10330openbsd*)
10331  version_type=sunos
10332  sys_lib_dlsearch_path_spec="/usr/lib"
10333  need_lib_prefix=no
10334  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10335  case $host_os in
10336    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10337    *)                         need_version=no  ;;
10338  esac
10339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10340  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10341  shlibpath_var=LD_LIBRARY_PATH
10342  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10343    case $host_os in
10344      openbsd2.[89] | openbsd2.[89].*)
10345        shlibpath_overrides_runpath=no
10346        ;;
10347      *)
10348        shlibpath_overrides_runpath=yes
10349        ;;
10350      esac
10351  else
10352    shlibpath_overrides_runpath=yes
10353  fi
10354  ;;
10355
10356os2*)
10357  libname_spec='$name'
10358  shrext_cmds=".dll"
10359  need_lib_prefix=no
10360  library_names_spec='$libname${shared_ext} $libname.a'
10361  dynamic_linker='OS/2 ld.exe'
10362  shlibpath_var=LIBPATH
10363  ;;
10364
10365osf3* | osf4* | osf5*)
10366  version_type=osf
10367  need_lib_prefix=no
10368  need_version=no
10369  soname_spec='${libname}${release}${shared_ext}$major'
10370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371  shlibpath_var=LD_LIBRARY_PATH
10372  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10373  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10374  ;;
10375
10376solaris*)
10377  version_type=linux
10378  need_lib_prefix=no
10379  need_version=no
10380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381  soname_spec='${libname}${release}${shared_ext}$major'
10382  shlibpath_var=LD_LIBRARY_PATH
10383  shlibpath_overrides_runpath=yes
10384  hardcode_into_libs=yes
10385  # ldd complains unless libraries are executable
10386  postinstall_cmds='chmod +x $lib'
10387  ;;
10388
10389sunos4*)
10390  version_type=sunos
10391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10393  shlibpath_var=LD_LIBRARY_PATH
10394  shlibpath_overrides_runpath=yes
10395  if test "$with_gnu_ld" = yes; then
10396    need_lib_prefix=no
10397  fi
10398  need_version=yes
10399  ;;
10400
10401sysv4 | sysv4.3*)
10402  version_type=linux
10403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404  soname_spec='${libname}${release}${shared_ext}$major'
10405  shlibpath_var=LD_LIBRARY_PATH
10406  case $host_vendor in
10407    sni)
10408      shlibpath_overrides_runpath=no
10409      need_lib_prefix=no
10410      export_dynamic_flag_spec='${wl}-Blargedynsym'
10411      runpath_var=LD_RUN_PATH
10412      ;;
10413    siemens)
10414      need_lib_prefix=no
10415      ;;
10416    motorola)
10417      need_lib_prefix=no
10418      need_version=no
10419      shlibpath_overrides_runpath=no
10420      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10421      ;;
10422  esac
10423  ;;
10424
10425sysv4*MP*)
10426  if test -d /usr/nec ;then
10427    version_type=linux
10428    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10429    soname_spec='$libname${shared_ext}.$major'
10430    shlibpath_var=LD_LIBRARY_PATH
10431  fi
10432  ;;
10433
10434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10435  version_type=freebsd-elf
10436  need_lib_prefix=no
10437  need_version=no
10438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10439  soname_spec='${libname}${release}${shared_ext}$major'
10440  shlibpath_var=LD_LIBRARY_PATH
10441  hardcode_into_libs=yes
10442  if test "$with_gnu_ld" = yes; then
10443    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10444    shlibpath_overrides_runpath=no
10445  else
10446    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10447    shlibpath_overrides_runpath=yes
10448    case $host_os in
10449      sco3.2v5*)
10450        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10451        ;;
10452    esac
10453  fi
10454  sys_lib_dlsearch_path_spec='/usr/lib'
10455  ;;
10456
10457uts4*)
10458  version_type=linux
10459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460  soname_spec='${libname}${release}${shared_ext}$major'
10461  shlibpath_var=LD_LIBRARY_PATH
10462  ;;
10463
10464*)
10465  dynamic_linker=no
10466  ;;
10467esac
10468echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10469echo "${ECHO_T}$dynamic_linker" >&6
10470test "$dynamic_linker" = no && can_build_shared=no
10471
10472variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10473if test "$GCC" = yes; then
10474  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10475fi
10476
10477echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10478echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10479hardcode_action=
10480if test -n "$hardcode_libdir_flag_spec" || \
10481   test -n "$runpath_var" || \
10482   test "X$hardcode_automatic" = "Xyes" ; then
10483
10484  # We can hardcode non-existant directories.
10485  if test "$hardcode_direct" != no &&
10486     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10487     # have to relink, otherwise we might link with an installed library
10488     # when we should be linking with a yet-to-be-installed one
10489     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10490     test "$hardcode_minus_L" != no; then
10491    # Linking always hardcodes the temporary library directory.
10492    hardcode_action=relink
10493  else
10494    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10495    hardcode_action=immediate
10496  fi
10497else
10498  # We cannot hardcode anything, or else we can only hardcode existing
10499  # directories.
10500  hardcode_action=unsupported
10501fi
10502echo "$as_me:$LINENO: result: $hardcode_action" >&5
10503echo "${ECHO_T}$hardcode_action" >&6
10504
10505if test "$hardcode_action" = relink; then
10506  # Fast installation is not supported
10507  enable_fast_install=no
10508elif test "$shlibpath_overrides_runpath" = yes ||
10509     test "$enable_shared" = no; then
10510  # Fast installation is not necessary
10511  enable_fast_install=needless
10512fi
10513
10514striplib=
10515old_striplib=
10516echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10517echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10518if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10519  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10520  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10521  echo "$as_me:$LINENO: result: yes" >&5
10522echo "${ECHO_T}yes" >&6
10523else
10524# FIXME - insert some real tests, host_os isn't really good enough
10525  case $host_os in
10526   darwin*)
10527       if test -n "$STRIP" ; then
10528         striplib="$STRIP -x"
10529         echo "$as_me:$LINENO: result: yes" >&5
10530echo "${ECHO_T}yes" >&6
10531       else
10532  echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
10534fi
10535       ;;
10536   *)
10537  echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539    ;;
10540  esac
10541fi
10542
10543if test "x$enable_dlopen" != xyes; then
10544  enable_dlopen=unknown
10545  enable_dlopen_self=unknown
10546  enable_dlopen_self_static=unknown
10547else
10548  lt_cv_dlopen=no
10549  lt_cv_dlopen_libs=
10550
10551  case $host_os in
10552  beos*)
10553    lt_cv_dlopen="load_add_on"
10554    lt_cv_dlopen_libs=
10555    lt_cv_dlopen_self=yes
10556    ;;
10557
10558  mingw* | pw32*)
10559    lt_cv_dlopen="LoadLibrary"
10560    lt_cv_dlopen_libs=
10561   ;;
10562
10563  cygwin*)
10564    lt_cv_dlopen="dlopen"
10565    lt_cv_dlopen_libs=
10566   ;;
10567
10568  darwin*)
10569  # if libdl is installed we need to link against it
10570    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10571echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10572if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10573  echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575  ac_check_lib_save_LIBS=$LIBS
10576LIBS="-ldl  $LIBS"
10577cat >conftest.$ac_ext <<_ACEOF
10578/* confdefs.h.  */
10579_ACEOF
10580cat confdefs.h >>conftest.$ac_ext
10581cat >>conftest.$ac_ext <<_ACEOF
10582/* end confdefs.h.  */
10583
10584/* Override any gcc2 internal prototype to avoid an error.  */
10585#ifdef __cplusplus
10586extern "C"
10587#endif
10588/* We use char because int might match the return type of a gcc2
10589   builtin and then its argument prototype would still apply.  */
10590char dlopen ();
10591int
10592main ()
10593{
10594dlopen ();
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext conftest$ac_exeext
10600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601  (eval $ac_link) 2>conftest.er1
10602  ac_status=$?
10603  grep -v '^ *+' conftest.er1 >conftest.err
10604  rm -f conftest.er1
10605  cat conftest.err >&5
10606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607  (exit $ac_status); } &&
10608         { ac_try='test -z "$ac_c_werror_flag"
10609                         || test ! -s conftest.err'
10610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611  (eval $ac_try) 2>&5
10612  ac_status=$?
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); }; } &&
10615         { ac_try='test -s conftest$ac_exeext'
10616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617  (eval $ac_try) 2>&5
10618  ac_status=$?
10619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620  (exit $ac_status); }; }; then
10621  ac_cv_lib_dl_dlopen=yes
10622else
10623  echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626ac_cv_lib_dl_dlopen=no
10627fi
10628rm -f conftest.err conftest.$ac_objext \
10629      conftest$ac_exeext conftest.$ac_ext
10630LIBS=$ac_check_lib_save_LIBS
10631fi
10632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10634if test $ac_cv_lib_dl_dlopen = yes; then
10635  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10636else
10637
10638    lt_cv_dlopen="dyld"
10639    lt_cv_dlopen_libs=
10640    lt_cv_dlopen_self=yes
10641
10642fi
10643
10644   ;;
10645
10646  *)
10647    echo "$as_me:$LINENO: checking for shl_load" >&5
10648echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10649if test "${ac_cv_func_shl_load+set}" = set; then
10650  echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652  cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h.  */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h.  */
10658/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10659   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10660#define shl_load innocuous_shl_load
10661
10662/* System header to define __stub macros and hopefully few prototypes,
10663    which can conflict with char shl_load (); below.
10664    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665    <limits.h> exists even on freestanding compilers.  */
10666
10667#ifdef __STDC__
10668# include <limits.h>
10669#else
10670# include <assert.h>
10671#endif
10672
10673#undef shl_load
10674
10675/* Override any gcc2 internal prototype to avoid an error.  */
10676#ifdef __cplusplus
10677extern "C"
10678{
10679#endif
10680/* We use char because int might match the return type of a gcc2
10681   builtin and then its argument prototype would still apply.  */
10682char shl_load ();
10683/* The GNU C library defines this for functions which it implements
10684    to always fail with ENOSYS.  Some functions are actually named
10685    something starting with __ and the normal name is an alias.  */
10686#if defined (__stub_shl_load) || defined (__stub___shl_load)
10687choke me
10688#else
10689char (*f) () = shl_load;
10690#endif
10691#ifdef __cplusplus
10692}
10693#endif
10694
10695int
10696main ()
10697{
10698return f != shl_load;
10699  ;
10700  return 0;
10701}
10702_ACEOF
10703rm -f conftest.$ac_objext conftest$ac_exeext
10704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705  (eval $ac_link) 2>conftest.er1
10706  ac_status=$?
10707  grep -v '^ *+' conftest.er1 >conftest.err
10708  rm -f conftest.er1
10709  cat conftest.err >&5
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); } &&
10712         { ac_try='test -z "$ac_c_werror_flag"
10713                         || test ! -s conftest.err'
10714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715  (eval $ac_try) 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); }; } &&
10719         { ac_try='test -s conftest$ac_exeext'
10720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721  (eval $ac_try) 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); }; }; then
10725  ac_cv_func_shl_load=yes
10726else
10727  echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730ac_cv_func_shl_load=no
10731fi
10732rm -f conftest.err conftest.$ac_objext \
10733      conftest$ac_exeext conftest.$ac_ext
10734fi
10735echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10736echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10737if test $ac_cv_func_shl_load = yes; then
10738  lt_cv_dlopen="shl_load"
10739else
10740  echo