source: trunk/Cbc/configure @ 1459

Last change on this file since 1459 was 1459, checked in by lou, 9 years ago

temporarily committing stable candidate

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