source: stable/2.7/Cbc/configure @ 1702

Last change on this file since 1702 was 1702, checked in by stefan, 8 years ago

fix version number in configure.ac

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