source: trunk/Clp/configure @ 758

Last change on this file since 758 was 758, checked in by andreasw, 15 years ago

included corrections in BuildTools?

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