source: trunk/Cbc/configure @ 389

Last change on this file since 389 was 389, checked in by andreasw, 14 years ago

integrated latest fixed in BuildTools?

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