source: branches/split/Cbc/configure @ 1439

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

add OsiCbc?

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