source: branches/split/Cbc/configure @ 1438

Last change on this file since 1438 was 1438, checked in by stefan, 10 years ago

add no pkg-config fallback (not tested)

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