source: trunk/Cbc/configure @ 382

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

added README file; incorporated corrections in coin.m4

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