source: releases/2.8.5/Cbc/configure @ 1968

Last change on this file since 1968 was 1968, checked in by tkr, 8 years ago

Re-running the autotools

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