source: trunk/Cbc/configure @ 327

Last change on this file since 327 was 327, checked in by andreasw, 13 years ago

temporarily allow shared objects on Cygwin and Msys

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