source: trunk/Cbc/configure @ 369

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

Enabled Ampl executable for Cbc

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