source: trunk/configure @ 1770

Last change on this file since 1770 was 1770, checked in by forrest, 8 years ago

New mipstart provided by Haroldo Santos

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