Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/libogg-1.1.3/configure @ 19

Last change on this file since 19 was 15, checked in by landauf, 16 years ago

added libogg

  • Property svn:executable set to *
File size: 712.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68         X"$0" : 'X\(//\)$' \| \
69         X"$0" : 'X\(/\)$' \| \
70         .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73          /^X\/\(\/\/\)$/{ s//\1/; q; }
74          /^X\/\(\/\).*/{ s//\1/; q; }
75          s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136         case $as_dir in
137         /*)
138           if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146             CONFIG_SHELL=$as_dir/$as_base
147             export CONFIG_SHELL
148             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149           fi;;
150         esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='      ' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289       echo_test_string="`eval $cmd`" &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329         test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341         test "X$echo_testing_string" = "X$echo_test_string"; then
342        # Cool, printf works
343        :
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345           test "X$echo_testing_string" = 'X\t' &&
346           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347           test "X$echo_testing_string" = "X$echo_test_string"; then
348        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349        export CONFIG_SHELL
350        SHELL="$CONFIG_SHELL"
351        export SHELL
352        echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359        # maybe with a smaller string...
360        prev=:
361
362        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364          then
365            break
366          fi
367          prev="$cmd"
368        done
369
370        if test "$prev" != 'sed 50q "$0"'; then
371          echo_test_string=`eval $prev`
372          export echo_test_string
373          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374        else
375          # Oops.  We lost completely, so just stick with echo.
376          echo=echo
377        fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/framing.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIB_CURRENT LIB_REVISION LIB_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LIBTOOL_DEPS SIZE16 USIZE16 SIZE32 USIZE32 SIZE64 OPT DEBUG PROFILE LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825              localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865         X"$0" : 'X\(//\)[^/]' \| \
866         X"$0" : 'X\(//\)$' \| \
867         X"$0" : 'X\(/\)' \| \
868         .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872          /^X\(\/\/\)$/{ s//\1/; q; }
873          /^X\(\/\).*/{ s//\1/; q; }
874          s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980                          [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                          [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --enable-maintainer-mode  enable make rules and dependencies not useful
1027                          (and sometimes confusing) to the casual installer
1028  --disable-dependency-tracking  speeds up one-time build
1029  --enable-dependency-tracking   do not reject slow dependency extractors
1030  --enable-shared[=PKGS]
1031                          build shared libraries [default=yes]
1032  --enable-static[=PKGS]
1033                          build static libraries [default=yes]
1034  --enable-fast-install[=PKGS]
1035                          optimize for fast installation [default=yes]
1036  --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038Optional Packages:
1039  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042  --with-pic              try to use only PIC/non-PIC objects [default=use
1043                          both]
1044  --with-tags[=TAGS]
1045                          include additional configurations [automatic]
1046
1047Some influential environment variables:
1048  CC          C compiler command
1049  CFLAGS      C compiler flags
1050  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1051              nonstandard directory <lib dir>
1052  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1053              headers in a nonstandard directory <include dir>
1054  CPP         C preprocessor
1055  CXX         C++ compiler command
1056  CXXFLAGS    C++ compiler flags
1057  CXXCPP      C++ preprocessor
1058  F77         Fortran 77 compiler command
1059  FFLAGS      Fortran 77 compiler flags
1060
1061Use these variables to override the choices made by `configure' or to help
1062it to find libraries and programs with nonstandard names/locations.
1063
1064_ACEOF
1065fi
1066
1067if test "$ac_init_help" = "recursive"; then
1068  # If there are subdirs, report their specific --help.
1069  ac_popdir=`pwd`
1070  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071    test -d $ac_dir || continue
1072    ac_builddir=.
1073
1074if test "$ac_dir" != .; then
1075  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076  # A "../" for each directory in $ac_dir_suffix.
1077  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078else
1079  ac_dir_suffix= ac_top_builddir=
1080fi
1081
1082case $srcdir in
1083  .)  # No --srcdir option.  We are building in place.
1084    ac_srcdir=.
1085    if test -z "$ac_top_builddir"; then
1086       ac_top_srcdir=.
1087    else
1088       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089    fi ;;
1090  [\\/]* | ?:[\\/]* )  # Absolute path.
1091    ac_srcdir=$srcdir$ac_dir_suffix;
1092    ac_top_srcdir=$srcdir ;;
1093  *) # Relative path.
1094    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096esac
1097
1098# Do not use `cd foo && pwd` to compute absolute paths, because
1099# the directories may not exist.
1100case `pwd` in
1101.) ac_abs_builddir="$ac_dir";;
1102*)
1103  case "$ac_dir" in
1104  .) ac_abs_builddir=`pwd`;;
1105  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1106  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107  esac;;
1108esac
1109case $ac_abs_builddir in
1110.) ac_abs_top_builddir=${ac_top_builddir}.;;
1111*)
1112  case ${ac_top_builddir}. in
1113  .) ac_abs_top_builddir=$ac_abs_builddir;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1115  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_srcdir=$ac_srcdir;;
1120*)
1121  case $ac_srcdir in
1122  .) ac_abs_srcdir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1124  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_top_srcdir=$ac_top_srcdir;;
1129*)
1130  case $ac_top_srcdir in
1131  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1133  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1134  esac;;
1135esac
1136
1137    cd $ac_dir
1138    # Check for guested configure; otherwise get Cygnus style configure.
1139    if test -f $ac_srcdir/configure.gnu; then
1140      echo
1141      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1142    elif test -f $ac_srcdir/configure; then
1143      echo
1144      $SHELL $ac_srcdir/configure  --help=recursive
1145    elif test -f $ac_srcdir/configure.ac ||
1146           test -f $ac_srcdir/configure.in; then
1147      echo
1148      $ac_configure --help
1149    else
1150      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1151    fi
1152    cd "$ac_popdir"
1153  done
1154fi
1155
1156test -n "$ac_init_help" && exit 0
1157if $ac_init_version; then
1158  cat <<\_ACEOF
1159
1160Copyright (C) 2003 Free Software Foundation, Inc.
1161This configure script is free software; the Free Software Foundation
1162gives unlimited permission to copy, distribute and modify it.
1163_ACEOF
1164  exit 0
1165fi
1166exec 5>config.log
1167cat >&5 <<_ACEOF
1168This file contains any messages produced by compilers while
1169running configure, to aid debugging if configure makes a mistake.
1170
1171It was created by $as_me, which was
1172generated by GNU Autoconf 2.59.  Invocation command line was
1173
1174  $ $0 $@
1175
1176_ACEOF
1177{
1178cat <<_ASUNAME
1179## --------- ##
1180## Platform. ##
1181## --------- ##
1182
1183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1184uname -m = `(uname -m) 2>/dev/null || echo unknown`
1185uname -r = `(uname -r) 2>/dev/null || echo unknown`
1186uname -s = `(uname -s) 2>/dev/null || echo unknown`
1187uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188
1189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1190/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1191
1192/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1193/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1195hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1196/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1197/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1198/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1199
1200_ASUNAME
1201
1202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1203for as_dir in $PATH
1204do
1205  IFS=$as_save_IFS
1206  test -z "$as_dir" && as_dir=.
1207  echo "PATH: $as_dir"
1208done
1209
1210} >&5
1211
1212cat >&5 <<_ACEOF
1213
1214
1215## ----------- ##
1216## Core tests. ##
1217## ----------- ##
1218
1219_ACEOF
1220
1221
1222# Keep a trace of the command line.
1223# Strip out --no-create and --no-recursion so they do not pile up.
1224# Strip out --silent because we don't want to record it for future runs.
1225# Also quote any args containing shell meta-characters.
1226# Make two passes to allow for proper duplicate-argument suppression.
1227ac_configure_args=
1228ac_configure_args0=
1229ac_configure_args1=
1230ac_sep=
1231ac_must_keep_next=false
1232for ac_pass in 1 2
1233do
1234  for ac_arg
1235  do
1236    case $ac_arg in
1237    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1238    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239    | -silent | --silent | --silen | --sile | --sil)
1240      continue ;;
1241    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1242      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1243    esac
1244    case $ac_pass in
1245    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246    2)
1247      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1248      if test $ac_must_keep_next = true; then
1249        ac_must_keep_next=false # Got value, back to normal.
1250      else
1251        case $ac_arg in
1252          *=* | --config-cache | -C | -disable-* | --disable-* \
1253          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1254          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1255          | -with-* | --with-* | -without-* | --without-* | --x)
1256            case "$ac_configure_args0 " in
1257              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258            esac
1259            ;;
1260          -* ) ac_must_keep_next=true ;;
1261        esac
1262      fi
1263      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1264      # Get rid of the leading space.
1265      ac_sep=" "
1266      ;;
1267    esac
1268  done
1269done
1270$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1271$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272
1273# When interrupted or exit'd, cleanup temporary files, and complete
1274# config.log.  We remove comments because anyway the quotes in there
1275# would cause problems or look ugly.
1276# WARNING: Be sure not to use single quotes in there, as some shells,
1277# such as our DU 5.0 friend, will then `close' the trap.
1278trap 'exit_status=$?
1279  # Save into config.log some information that might help in debugging.
1280  {
1281    echo
1282
1283    cat <<\_ASBOX
1284## ---------------- ##
1285## Cache variables. ##
1286## ---------------- ##
1287_ASBOX
1288    echo
1289    # The following way of writing the cache mishandles newlines in values,
1290{
1291  (set) 2>&1 |
1292    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293    *ac_space=\ *)
1294      sed -n \
1295        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1296          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1297      ;;
1298    *)
1299      sed -n \
1300        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1301      ;;
1302    esac;
1303}
1304    echo
1305
1306    cat <<\_ASBOX
1307## ----------------- ##
1308## Output variables. ##
1309## ----------------- ##
1310_ASBOX
1311    echo
1312    for ac_var in $ac_subst_vars
1313    do
1314      eval ac_val=$`echo $ac_var`
1315      echo "$ac_var='"'"'$ac_val'"'"'"
1316    done | sort
1317    echo
1318
1319    if test -n "$ac_subst_files"; then
1320      cat <<\_ASBOX
1321## ------------- ##
1322## Output files. ##
1323## ------------- ##
1324_ASBOX
1325      echo
1326      for ac_var in $ac_subst_files
1327      do
1328        eval ac_val=$`echo $ac_var`
1329        echo "$ac_var='"'"'$ac_val'"'"'"
1330      done | sort
1331      echo
1332    fi
1333
1334    if test -s confdefs.h; then
1335      cat <<\_ASBOX
1336## ----------- ##
1337## confdefs.h. ##
1338## ----------- ##
1339_ASBOX
1340      echo
1341      sed "/^$/d" confdefs.h | sort
1342      echo
1343    fi
1344    test "$ac_signal" != 0 &&
1345      echo "$as_me: caught signal $ac_signal"
1346    echo "$as_me: exit $exit_status"
1347  } >&5
1348  rm -f core *.core &&
1349  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1350    exit $exit_status
1351     ' 0
1352for ac_signal in 1 2 13 15; do
1353  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1354done
1355ac_signal=0
1356
1357# confdefs.h avoids OS command line length limits that DEFS can exceed.
1358rm -rf conftest* confdefs.h
1359# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360echo >confdefs.h
1361
1362# Predefined preprocessor variables.
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_NAME "$PACKAGE_NAME"
1366_ACEOF
1367
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_VERSION "$PACKAGE_VERSION"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_STRING "$PACKAGE_STRING"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1386_ACEOF
1387
1388
1389# Let the site file select an alternate cache file if it wants to.
1390# Prefer explicitly selected file to automatically selected ones.
1391if test -z "$CONFIG_SITE"; then
1392  if test "x$prefix" != xNONE; then
1393    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394  else
1395    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396  fi
1397fi
1398for ac_site_file in $CONFIG_SITE; do
1399  if test -r "$ac_site_file"; then
1400    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1401echo "$as_me: loading site script $ac_site_file" >&6;}
1402    sed 's/^/| /' "$ac_site_file" >&5
1403    . "$ac_site_file"
1404  fi
1405done
1406
1407if test -r "$cache_file"; then
1408  # Some versions of bash will fail to source /dev/null (special
1409  # files actually), so we avoid doing that.
1410  if test -f "$cache_file"; then
1411    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1412echo "$as_me: loading cache $cache_file" >&6;}
1413    case $cache_file in
1414      [\\/]* | ?:[\\/]* ) . $cache_file;;
1415      *)                      . ./$cache_file;;
1416    esac
1417  fi
1418else
1419  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1420echo "$as_me: creating cache $cache_file" >&6;}
1421  >$cache_file
1422fi
1423
1424# Check that the precious variables saved in the cache have kept the same
1425# value.
1426ac_cache_corrupted=false
1427for ac_var in `(set) 2>&1 |
1428               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1429  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1430  eval ac_new_set=\$ac_env_${ac_var}_set
1431  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1432  eval ac_new_val="\$ac_env_${ac_var}_value"
1433  case $ac_old_set,$ac_new_set in
1434    set,)
1435      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1436echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1437      ac_cache_corrupted=: ;;
1438    ,set)
1439      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1441      ac_cache_corrupted=: ;;
1442    ,);;
1443    *)
1444      if test "x$ac_old_val" != "x$ac_new_val"; then
1445        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1446echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1447        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1448echo "$as_me:   former value:  $ac_old_val" >&2;}
1449        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1450echo "$as_me:   current value: $ac_new_val" >&2;}
1451        ac_cache_corrupted=:
1452      fi;;
1453  esac
1454  # Pass precious variables to config.status.
1455  if test "$ac_new_set" = set; then
1456    case $ac_new_val in
1457    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1458      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1459    *) ac_arg=$ac_var=$ac_new_val ;;
1460    esac
1461    case " $ac_configure_args " in
1462      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1463      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1464    esac
1465  fi
1466done
1467if $ac_cache_corrupted; then
1468  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1469echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1470  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1471echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1472   { (exit 1); exit 1; }; }
1473fi
1474
1475ac_ext=c
1476ac_cpp='$CPP $CPPFLAGS'
1477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500am__api_version="1.9"
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503  if test -f $ac_dir/install-sh; then
1504    ac_aux_dir=$ac_dir
1505    ac_install_sh="$ac_aux_dir/install-sh -c"
1506    break
1507  elif test -f $ac_dir/install.sh; then
1508    ac_aux_dir=$ac_dir
1509    ac_install_sh="$ac_aux_dir/install.sh -c"
1510    break
1511  elif test -f $ac_dir/shtool; then
1512    ac_aux_dir=$ac_dir
1513    ac_install_sh="$ac_aux_dir/shtool install -c"
1514    break
1515  fi
1516done
1517if test -z "$ac_aux_dir"; then
1518  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520   { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Find a good install program.  We prefer a C program (faster),
1527# so one script is as good as another.  But avoid the broken or
1528# incompatible versions:
1529# SysV /etc/install, /usr/sbin/install
1530# SunOS /usr/etc/install
1531# IRIX /sbin/install
1532# AIX /bin/install
1533# AmigaOS /C/install, which installs bootblocks on floppy discs
1534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537# OS/2's system install, which has a completely different semantic
1538# ./install, which can be erroneously created by make from ./install.sh.
1539echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541if test -z "$INSTALL"; then
1542if test "${ac_cv_path_install+set}" = set; then
1543  echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546for as_dir in $PATH
1547do
1548  IFS=$as_save_IFS
1549  test -z "$as_dir" && as_dir=.
1550  # Account for people who put trailing slashes in PATH elements.
1551case $as_dir/ in
1552  ./ | .// | /cC/* | \
1553  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555  /usr/ucb/* ) ;;
1556  *)
1557    # OSF1 and SCO ODT 3.0 have their own names for install.
1558    # Don't use installbsd from OSF since it installs stuff as root
1559    # by default.
1560    for ac_prog in ginstall scoinst install; do
1561      for ac_exec_ext in '' $ac_executable_extensions; do
1562        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563          if test $ac_prog = install &&
1564            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565            # AIX install.  It has an incompatible calling convention.
1566            :
1567          elif test $ac_prog = install &&
1568            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569            # program-specific install script used by HP pwplus--don't use.
1570            :
1571          else
1572            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573            break 3
1574          fi
1575        fi
1576      done
1577    done
1578    ;;
1579esac
1580done
1581
1582
1583fi
1584  if test "${ac_cv_path_install+set}" = set; then
1585    INSTALL=$ac_cv_path_install
1586  else
1587    # As a last resort, use the slow shell script.  We don't cache a
1588    # path for INSTALL within a source directory, because that will
1589    # break other packages using the cache if that directory is
1590    # removed, or if the path is relative.
1591    INSTALL=$ac_install_sh
1592  fi
1593fi
1594echo "$as_me:$LINENO: result: $INSTALL" >&5
1595echo "${ECHO_T}$INSTALL" >&6
1596
1597# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598# It thinks the first close brace ends the variable substitution.
1599test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600
1601test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602
1603test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604
1605echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607# Just in case
1608sleep 1
1609echo timestamp > conftest.file
1610# Do `set' in a subshell so we don't clobber the current shell's
1611# arguments.  Must try -L first in case configure is actually a
1612# symlink; some systems play weird games with the mod time of symlinks
1613# (eg FreeBSD returns the mod time of the symlink's containing
1614# directory).
1615if (
1616   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617   if test "$*" = "X"; then
1618      # -L didn't work.
1619      set X `ls -t $srcdir/configure conftest.file`
1620   fi
1621   rm -f conftest.file
1622   if test "$*" != "X $srcdir/configure conftest.file" \
1623      && test "$*" != "X conftest.file $srcdir/configure"; then
1624
1625      # If neither matched, then we have a broken ls.  This can happen
1626      # if, for instance, CONFIG_SHELL is bash and it inherits a
1627      # broken ls alias from the environment.  This has actually
1628      # happened.  Such a system could not be considered "sane".
1629      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1630alias in your environment" >&5
1631echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1632alias in your environment" >&2;}
1633   { (exit 1); exit 1; }; }
1634   fi
1635
1636   test "$2" = conftest.file
1637   )
1638then
1639   # Ok.
1640   :
1641else
1642   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643Check your system clock" >&5
1644echo "$as_me: error: newly created file is older than distributed files!
1645Check your system clock" >&2;}
1646   { (exit 1); exit 1; }; }
1647fi
1648echo "$as_me:$LINENO: result: yes" >&5
1649echo "${ECHO_T}yes" >&6
1650test "$program_prefix" != NONE &&
1651  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652# Use a double $ so make ignores it.
1653test "$program_suffix" != NONE &&
1654  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655# Double any \ or $.  echo might interpret backslashes.
1656# By default was `s,x,x', remove it if useless.
1657cat <<\_ACEOF >conftest.sed
1658s/[\\$]/&&/g;s/;s,x,x,$//
1659_ACEOF
1660program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661rm conftest.sed
1662
1663# expand $ac_aux_dir to an absolute path
1664am_aux_dir=`cd $ac_aux_dir && pwd`
1665
1666test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667# Use eval to expand $SHELL
1668if eval "$MISSING --run true"; then
1669  am_missing_run="$MISSING --run "
1670else
1671  am_missing_run=
1672  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674fi
1675
1676if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677  # We used to keeping the `.' as first argument, in order to
1678  # allow $(mkdir_p) to be used without argument.  As in
1679  #   $(mkdir_p) $(somedir)
1680  # where $(somedir) is conditionally defined.  However this is wrong
1681  # for two reasons:
1682  #  1. if the package is installed by a user who cannot write `.'
1683  #     make install will fail,
1684  #  2. the above comment should most certainly read
1685  #     $(mkdir_p) $(DESTDIR)$(somedir)
1686  #     so it does not work when $(somedir) is undefined and
1687  #     $(DESTDIR) is not.
1688  #  To support the latter case, we have to write
1689  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690  #  so the `.' trick is pointless.
1691  mkdir_p='mkdir -p --'
1692else
1693  # On NextStep and OpenStep, the `mkdir' command does not
1694  # recognize any option.  It will interpret all options as
1695  # directories to create, and then abort because `.' already
1696  # exists.
1697  for d in ./-p ./--version;
1698  do
1699    test -d $d && rmdir $d
1700  done
1701  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702  if test -f "$ac_aux_dir/mkinstalldirs"; then
1703    mkdir_p='$(mkinstalldirs)'
1704  else
1705    mkdir_p='$(install_sh) -d'
1706  fi
1707fi
1708
1709for ac_prog in gawk mawk nawk awk
1710do
1711  # Extract the first word of "$ac_prog", so it can be a program name with args.
1712set dummy $ac_prog; ac_word=$2
1713echo "$as_me:$LINENO: checking for $ac_word" >&5
1714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715if test "${ac_cv_prog_AWK+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  if test -n "$AWK"; then
1719  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720else
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724  IFS=$as_save_IFS
1725  test -z "$as_dir" && as_dir=.
1726  for ac_exec_ext in '' $ac_executable_extensions; do
1727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728    ac_cv_prog_AWK="$ac_prog"
1729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730    break 2
1731  fi
1732done
1733done
1734
1735fi
1736fi
1737AWK=$ac_cv_prog_AWK
1738if test -n "$AWK"; then
1739  echo "$as_me:$LINENO: result: $AWK" >&5
1740echo "${ECHO_T}$AWK" >&6
1741else
1742  echo "$as_me:$LINENO: result: no" >&5
1743echo "${ECHO_T}no" >&6
1744fi
1745
1746  test -n "$AWK" && break
1747done
1748
1749echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753  echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755  cat >conftest.make <<\_ACEOF
1756all:
1757        @echo 'ac_maketemp="$(MAKE)"'
1758_ACEOF
1759# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761if test -n "$ac_maketemp"; then
1762  eval ac_cv_prog_make_${ac_make}_set=yes
1763else
1764  eval ac_cv_prog_make_${ac_make}_set=no
1765fi
1766rm -f conftest.make
1767fi
1768if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769  echo "$as_me:$LINENO: result: yes" >&5
1770echo "${ECHO_T}yes" >&6
1771  SET_MAKE=
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775  SET_MAKE="MAKE=${MAKE-make}"
1776fi
1777
1778rm -rf .tst 2>/dev/null
1779mkdir .tst 2>/dev/null
1780if test -d .tst; then
1781  am__leading_dot=.
1782else
1783  am__leading_dot=_
1784fi
1785rmdir .tst 2>/dev/null
1786
1787# test to see if srcdir already configured
1788if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789   test -f $srcdir/config.status; then
1790  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792   { (exit 1); exit 1; }; }
1793fi
1794
1795# test whether we have cygpath
1796if test -z "$CYGPATH_W"; then
1797  if (cygpath --version) >/dev/null 2>/dev/null; then
1798    CYGPATH_W='cygpath -w'
1799  else
1800    CYGPATH_W=echo
1801  fi
1802fi
1803
1804
1805# Define the identity of the package.
1806 PACKAGE=libogg
1807 VERSION=1.1.3
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE "$PACKAGE"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define VERSION "$VERSION"
1817_ACEOF
1818
1819# Some tools Automake needs.
1820
1821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822
1823
1824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825
1826
1827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828
1829
1830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831
1832
1833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834
1835install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837# Installed binaries are usually stripped using `strip' when the user
1838# run `make install-strip'.  However `strip' might not be the right
1839# tool to use in cross-compilation environments, therefore Automake
1840# will honor the `STRIP' environment variable to overrule this program.
1841if test "$cross_compiling" != no; then
1842  if test -n "$ac_tool_prefix"; then
1843  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844set dummy ${ac_tool_prefix}strip; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_STRIP+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$STRIP"; then
1851  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869STRIP=$ac_cv_prog_STRIP
1870if test -n "$STRIP"; then
1871  echo "$as_me:$LINENO: result: $STRIP" >&5
1872echo "${ECHO_T}$STRIP" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878fi
1879if test -z "$ac_cv_prog_STRIP"; then
1880  ac_ct_STRIP=$STRIP
1881  # Extract the first word of "strip", so it can be a program name with args.
1882set dummy strip; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$ac_ct_STRIP"; then
1889  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890else
1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892for as_dir in $PATH
1893do
1894  IFS=$as_save_IFS
1895  test -z "$as_dir" && as_dir=.
1896  for ac_exec_ext in '' $ac_executable_extensions; do
1897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898    ac_cv_prog_ac_ct_STRIP="strip"
1899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900    break 2
1901  fi
1902done
1903done
1904
1905  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906fi
1907fi
1908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909if test -n "$ac_ct_STRIP"; then
1910  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911echo "${ECHO_T}$ac_ct_STRIP" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917  STRIP=$ac_ct_STRIP
1918else
1919  STRIP="$ac_cv_prog_STRIP"
1920fi
1921
1922fi
1923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925# We need awk for the "check" target.  The system "awk" is bad on
1926# some platforms.
1927# Always define AMTAR for backward compatibility.
1928
1929AMTAR=${AMTAR-"${am_missing_run}tar"}
1930
1931am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1932
1933
1934
1935
1936
1937echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1938echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1939    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1940if test "${enable_maintainer_mode+set}" = set; then
1941  enableval="$enable_maintainer_mode"
1942  USE_MAINTAINER_MODE=$enableval
1943else
1944  USE_MAINTAINER_MODE=no
1945fi;
1946  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1947echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1948
1949
1950if test $USE_MAINTAINER_MODE = yes; then
1951  MAINTAINER_MODE_TRUE=
1952  MAINTAINER_MODE_FALSE='#'
1953else
1954  MAINTAINER_MODE_TRUE='#'
1955  MAINTAINER_MODE_FALSE=
1956fi
1957
1958  MAINT=$MAINTAINER_MODE_TRUE
1959
1960
1961
1962
1963LIB_CURRENT=5
1964LIB_REVISION=3
1965LIB_AGE=5
1966
1967
1968
1969
1970ac_ext=c
1971ac_cpp='$CPP $CPPFLAGS'
1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975if test -n "$ac_tool_prefix"; then
1976  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1977set dummy ${ac_tool_prefix}gcc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$CC"; then
1984  ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004  echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011fi
2012if test -z "$ac_cv_prog_CC"; then
2013  ac_ct_CC=$CC
2014  # Extract the first word of "gcc", so it can be a program name with args.
2015set dummy gcc; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$ac_ct_CC"; then
2022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027  IFS=$as_save_IFS
2028  test -z "$as_dir" && as_dir=.
2029  for ac_exec_ext in '' $ac_executable_extensions; do
2030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031    ac_cv_prog_ac_ct_CC="gcc"
2032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033    break 2
2034  fi
2035done
2036done
2037
2038fi
2039fi
2040ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041if test -n "$ac_ct_CC"; then
2042  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043echo "${ECHO_T}$ac_ct_CC" >&6
2044else
2045  echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6
2047fi
2048
2049  CC=$ac_ct_CC
2050else
2051  CC="$ac_cv_prog_CC"
2052fi
2053
2054if test -z "$CC"; then
2055  if test -n "$ac_tool_prefix"; then
2056  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2057set dummy ${ac_tool_prefix}cc; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_CC+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  if test -n "$CC"; then
2064  ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    ac_cv_prog_CC="${ac_tool_prefix}cc"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091fi
2092if test -z "$ac_cv_prog_CC"; then
2093  ac_ct_CC=$CC
2094  # Extract the first word of "cc", so it can be a program name with args.
2095set dummy cc; ac_word=$2
2096echo "$as_me:$LINENO: checking for $ac_word" >&5
2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099  echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101  if test -n "$ac_ct_CC"; then
2102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103else
2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105for as_dir in $PATH
2106do
2107  IFS=$as_save_IFS
2108  test -z "$as_dir" && as_dir=.
2109  for ac_exec_ext in '' $ac_executable_extensions; do
2110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111    ac_cv_prog_ac_ct_CC="cc"
2112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113    break 2
2114  fi
2115done
2116done
2117
2118fi
2119fi
2120ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121if test -n "$ac_ct_CC"; then
2122  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123echo "${ECHO_T}$ac_ct_CC" >&6
2124else
2125  echo "$as_me:$LINENO: result: no" >&5
2126echo "${ECHO_T}no" >&6
2127fi
2128
2129  CC=$ac_ct_CC
2130else
2131  CC="$ac_cv_prog_CC"
2132fi
2133
2134fi
2135if test -z "$CC"; then
2136  # Extract the first word of "cc", so it can be a program name with args.
2137set dummy cc; ac_word=$2
2138echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140if test "${ac_cv_prog_CC+set}" = set; then
2141  echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143  if test -n "$CC"; then
2144  ac_cv_prog_CC="$CC" # Let the user override the test.
2145else
2146  ac_prog_rejected=no
2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152  for ac_exec_ext in '' $ac_executable_extensions; do
2153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2155       ac_prog_rejected=yes
2156       continue
2157     fi
2158    ac_cv_prog_CC="cc"
2159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160    break 2
2161  fi
2162done
2163done
2164
2165if test $ac_prog_rejected = yes; then
2166  # We found a bogon in the path, so make sure we never use it.
2167  set dummy $ac_cv_prog_CC
2168  shift
2169  if test $# != 0; then
2170    # We chose a different compiler from the bogus one.
2171    # However, it has the same basename, so the bogon will be chosen
2172    # first if we set CC to just the basename; use the full file name.
2173    shift
2174    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2175  fi
2176fi
2177fi
2178fi
2179CC=$ac_cv_prog_CC
2180if test -n "$CC"; then
2181  echo "$as_me:$LINENO: result: $CC" >&5
2182echo "${ECHO_T}$CC" >&6
2183else
2184  echo "$as_me:$LINENO: result: no" >&5
2185echo "${ECHO_T}no" >&6
2186fi
2187
2188fi
2189if test -z "$CC"; then
2190  if test -n "$ac_tool_prefix"; then
2191  for ac_prog in cl
2192  do
2193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2195echo "$as_me:$LINENO: checking for $ac_word" >&5
2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197if test "${ac_cv_prog_CC+set}" = set; then
2198  echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200  if test -n "$CC"; then
2201  ac_cv_prog_CC="$CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208  for ac_exec_ext in '' $ac_executable_extensions; do
2209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212    break 2
2213  fi
2214done
2215done
2216
2217fi
2218fi
2219CC=$ac_cv_prog_CC
2220if test -n "$CC"; then
2221  echo "$as_me:$LINENO: result: $CC" >&5
2222echo "${ECHO_T}$CC" >&6
2223else
2224  echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6
2226fi
2227
2228    test -n "$CC" && break
2229  done
2230fi
2231if test -z "$CC"; then
2232  ac_ct_CC=$CC
2233  for ac_prog in cl
2234do
2235  # Extract the first word of "$ac_prog", so it can be a program name with args.
2236set dummy $ac_prog; ac_word=$2
2237echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  if test -n "$ac_ct_CC"; then
2243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248  IFS=$as_save_IFS
2249  test -z "$as_dir" && as_dir=.
2250  for ac_exec_ext in '' $ac_executable_extensions; do
2251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252    ac_cv_prog_ac_ct_CC="$ac_prog"
2253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254    break 2
2255  fi
2256done
2257done
2258
2259fi
2260fi
2261ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262if test -n "$ac_ct_CC"; then
2263  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2264echo "${ECHO_T}$ac_ct_CC" >&6
2265else
2266  echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270  test -n "$ac_ct_CC" && break
2271done
2272
2273  CC=$ac_ct_CC
2274fi
2275
2276fi
2277
2278
2279test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2280See \`config.log' for more details." >&5
2281echo "$as_me: error: no acceptable C compiler found in \$PATH
2282See \`config.log' for more details." >&2;}
2283   { (exit 1); exit 1; }; }
2284
2285# Provide some information about the compiler.
2286echo "$as_me:$LINENO:" \
2287     "checking for C compiler version" >&5
2288ac_compiler=`set X $ac_compile; echo $2`
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2290  (eval $ac_compiler --version </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2295  (eval $ac_compiler -v </dev/null >&5) 2>&5
2296  ac_status=$?
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); }
2299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2300  (eval $ac_compiler -V </dev/null >&5) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }
2304
2305cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320ac_clean_files_save=$ac_clean_files
2321ac_clean_files="$ac_clean_files a.out a.exe b.out"
2322# Try to create an executable without -o first, disregard a.out.
2323# It will help us diagnose broken compilers, and finding out an intuition
2324# of exeext.
2325echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2326echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2327ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2328if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2329  (eval $ac_link_default) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  # Find the output, starting from the most likely.  This scheme is
2334# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2335# resort.
2336
2337# Be careful to initialize this variable, since it used to be cached.
2338# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2339ac_cv_exeext=
2340# b.out is created by i960 compilers.
2341for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2342do
2343  test -f "$ac_file" || continue
2344  case $ac_file in
2345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2346        ;;
2347    conftest.$ac_ext )
2348        # This is the source file.
2349        ;;
2350    [ab].out )
2351        # We found the default executable, but exeext='' is most
2352        # certainly right.
2353        break;;
2354    *.* )
2355        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2356        # FIXME: I believe we export ac_cv_exeext for Libtool,
2357        # but it would be cool to find out if it's true.  Does anybody
2358        # maintain Libtool? --akim.
2359        export ac_cv_exeext
2360        break;;
2361    * )
2362        break;;
2363  esac
2364done
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2370See \`config.log' for more details." >&5
2371echo "$as_me: error: C compiler cannot create executables
2372See \`config.log' for more details." >&2;}
2373   { (exit 77); exit 77; }; }
2374fi
2375
2376ac_exeext=$ac_cv_exeext
2377echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6
2379
2380# Check the compiler produces executables we can run.  If not, either
2381# the compiler is broken, or we cross compile.
2382echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2383echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2384# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2385# If not cross compiling, check that we can run a simple program.
2386if test "$cross_compiling" != yes; then
2387  if { ac_try='./$ac_file'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; }; then
2393    cross_compiling=no
2394  else
2395    if test "$cross_compiling" = maybe; then
2396        cross_compiling=yes
2397    else
2398        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2399If you meant to cross compile, use \`--host'.
2400See \`config.log' for more details." >&5
2401echo "$as_me: error: cannot run C compiled programs.
2402If you meant to cross compile, use \`--host'.
2403See \`config.log' for more details." >&2;}
2404   { (exit 1); exit 1; }; }
2405    fi
2406  fi
2407fi
2408echo "$as_me:$LINENO: result: yes" >&5
2409echo "${ECHO_T}yes" >&6
2410
2411rm -f a.out a.exe conftest$ac_cv_exeext b.out
2412ac_clean_files=$ac_clean_files_save
2413# Check the compiler produces executables we can run.  If not, either
2414# the compiler is broken, or we cross compile.
2415echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2416echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2417echo "$as_me:$LINENO: result: $cross_compiling" >&5
2418echo "${ECHO_T}$cross_compiling" >&6
2419
2420echo "$as_me:$LINENO: checking for suffix of executables" >&5
2421echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2423  (eval $ac_link) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; then
2427  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2428# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2429# work properly (i.e., refer to `conftest.exe'), while it won't with
2430# `rm'.
2431for ac_file in conftest.exe conftest conftest.*; do
2432  test -f "$ac_file" || continue
2433  case $ac_file in
2434    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2435    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436          export ac_cv_exeext
2437          break;;
2438    * ) break;;
2439  esac
2440done
2441else
2442  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2443See \`config.log' for more details." >&5
2444echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2445See \`config.log' for more details." >&2;}
2446   { (exit 1); exit 1; }; }
2447fi
2448
2449rm -f conftest$ac_cv_exeext
2450echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2451echo "${ECHO_T}$ac_cv_exeext" >&6
2452
2453rm -f conftest.$ac_ext
2454EXEEXT=$ac_cv_exeext
2455ac_exeext=$EXEEXT
2456echo "$as_me:$LINENO: checking for suffix of object files" >&5
2457echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2458if test "${ac_cv_objext+set}" = set; then
2459  echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461  cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h.  */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h.  */
2467
2468int
2469main ()
2470{
2471
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476rm -f conftest.o conftest.obj
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478  (eval $ac_compile) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; then
2482  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2483  case $ac_file in
2484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2485    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2486       break;;
2487  esac
2488done
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2494See \`config.log' for more details." >&5
2495echo "$as_me: error: cannot compute suffix of object files: cannot compile
2496See \`config.log' for more details." >&2;}
2497   { (exit 1); exit 1; }; }
2498fi
2499
2500rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501fi
2502echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2503echo "${ECHO_T}$ac_cv_objext" >&6
2504OBJEXT=$ac_cv_objext
2505ac_objext=$OBJEXT
2506echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2507echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2508if test "${ac_cv_c_compiler_gnu+set}" = set; then
2509  echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511  cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517
2518int
2519main ()
2520{
2521#ifndef __GNUC__
2522       choke me
2523#endif
2524
2525  ;
2526  return 0;
2527}
2528_ACEOF
2529rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>conftest.er1
2532  ac_status=$?
2533  grep -v '^ *+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); } &&
2538         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540  (eval $ac_try) 2>&5
2541  ac_status=$?
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); }; } &&
2544         { ac_try='test -s conftest.$ac_objext'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; }; then
2550  ac_compiler_gnu=yes
2551else
2552  echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555ac_compiler_gnu=no
2556fi
2557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558ac_cv_c_compiler_gnu=$ac_compiler_gnu
2559
2560fi
2561echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2562echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2563GCC=`test $ac_compiler_gnu = yes && echo yes`
2564ac_test_CFLAGS=${CFLAGS+set}
2565ac_save_CFLAGS=$CFLAGS
2566CFLAGS="-g"
2567echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2568echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2569if test "${ac_cv_prog_cc_g+set}" = set; then
2570  echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572  cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578
2579int
2580main ()
2581{
2582
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; } &&
2602         { ac_try='test -s conftest.$ac_objext'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; }; then
2608  ac_cv_prog_cc_g=yes
2609else
2610  echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613ac_cv_prog_cc_g=no
2614fi
2615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616fi
2617echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2618echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2619if test "$ac_test_CFLAGS" = set; then
2620  CFLAGS=$ac_save_CFLAGS
2621elif test $ac_cv_prog_cc_g = yes; then
2622  if test "$GCC" = yes; then
2623    CFLAGS="-g -O2"
2624  else
2625    CFLAGS="-g"
2626  fi
2627else
2628  if test "$GCC" = yes; then
2629    CFLAGS="-O2"
2630  else
2631    CFLAGS=
2632  fi
2633fi
2634echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2635echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2636if test "${ac_cv_prog_cc_stdc+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  ac_cv_prog_cc_stdc=no
2640ac_save_CC=$CC
2641cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647#include <stdarg.h>
2648#include <stdio.h>
2649#include <sys/types.h>
2650#include <sys/stat.h>
2651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2652struct buf { int x; };
2653FILE * (*rcsopen) (struct buf *, struct stat *, int);
2654static char *e (p, i)
2655     char **p;
2656     int i;
2657{
2658  return p[i];
2659}
2660static char *f (char * (*g) (char **, int), char **p, ...)
2661{
2662  char *s;
2663  va_list v;
2664  va_start (v,p);
2665  s = g (p, va_arg (v,int));
2666  va_end (v);
2667  return s;
2668}
2669
2670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2671   function prototypes and stuff, but not '\xHH' hex character constants.
2672   These don't provoke an error unfortunately, instead are silently treated
2673   as 'x'.  The following induces an error, until -std1 is added to get
2674   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2675   array size at least.  It's necessary to write '\x00'==0 to get something
2676   that's true only with -std1.  */
2677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2678
2679int test (int i, double x);
2680struct s1 {int (*f) (int a);};
2681struct s2 {int (*f) (double a);};
2682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2683int argc;
2684char **argv;
2685int
2686main ()
2687{
2688return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2689  ;
2690  return 0;
2691}
2692_ACEOF
2693# Don't try gcc -ansi; that turns off useful extensions and
2694# breaks some systems' header files.
2695# AIX                   -qlanglvl=ansi
2696# Ultrix and OSF/1      -std1
2697# HP-UX 10.20 and later -Ae
2698# HP-UX older versions  -Aa -D_HPUX_SOURCE
2699# SVR4                  -Xc -D__EXTENSIONS__
2700for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701do
2702  CC="$ac_save_CC $ac_arg"
2703  rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  ac_cv_prog_cc_stdc=$ac_arg
2725break
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.err conftest.$ac_objext
2732done
2733rm -f conftest.$ac_ext conftest.$ac_objext
2734CC=$ac_save_CC
2735
2736fi
2737
2738case "x$ac_cv_prog_cc_stdc" in
2739  x|xno)
2740    echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6 ;;
2742  *)
2743    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2744echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2745    CC="$CC $ac_cv_prog_cc_stdc" ;;
2746esac
2747
2748# Some people use a C++ compiler to compile C.  Since we use `exit',
2749# in C++ we need to declare it.  In case someone uses the same compiler
2750# for both compiling C and C++ we need to have the C++ compiler decide
2751# the declaration of exit, since it's the most demanding environment.
2752cat >conftest.$ac_ext <<_ACEOF
2753#ifndef __cplusplus
2754  choke me
2755#endif
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759  (eval $ac_compile) 2>conftest.er1
2760  ac_status=$?
2761  grep -v '^ *+' conftest.er1 >conftest.err
2762  rm -f conftest.er1
2763  cat conftest.err >&5
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); } &&
2766         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; } &&
2772         { ac_try='test -s conftest.$ac_objext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  for ac_declaration in \
2779   '' \
2780   'extern "C" void std::exit (int) throw (); using std::exit;' \
2781   'extern "C" void std::exit (int); using std::exit;' \
2782   'extern "C" void exit (int) throw ();' \
2783   'extern "C" void exit (int);' \
2784   'void exit (int);'
2785do
2786  cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h.  */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h.  */
2792$ac_declaration
2793#include <stdlib.h>
2794int
2795main ()
2796{
2797exit (42);
2798  ;
2799  return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804  (eval $ac_compile) 2>conftest.er1
2805  ac_status=$?
2806  grep -v '^ *+' conftest.er1 >conftest.err
2807  rm -f conftest.er1
2808  cat conftest.err >&5
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); } &&
2811         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813  (eval $ac_try) 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; } &&
2817         { ac_try='test -s conftest.$ac_objext'
2818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819  (eval $ac_try) 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; }; then
2823  :
2824else
2825  echo "$as_me: failed program was:" >&5
2826sed 's/^/| /' conftest.$ac_ext >&5
2827
2828continue
2829fi
2830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831  cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h.  */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h.  */
2837$ac_declaration
2838int
2839main ()
2840{
2841exit (42);
2842  ;
2843  return 0;
2844}
2845_ACEOF
2846rm -f conftest.$ac_objext
2847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848  (eval $ac_compile) 2>conftest.er1
2849  ac_status=$?
2850  grep -v '^ *+' conftest.er1 >conftest.err
2851  rm -f conftest.er1
2852  cat conftest.err >&5
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); } &&
2855         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857  (eval $ac_try) 2>&5
2858  ac_status=$?
2859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860  (exit $ac_status); }; } &&
2861         { ac_try='test -s conftest.$ac_objext'
2862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863  (eval $ac_try) 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; }; then
2867  break
2868else
2869  echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872fi
2873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874done
2875rm -f conftest*
2876if test -n "$ac_declaration"; then
2877  echo '#ifdef __cplusplus' >>confdefs.h
2878  echo $ac_declaration      >>confdefs.h
2879  echo '#endif'             >>confdefs.h
2880fi
2881
2882else
2883  echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886fi
2887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893DEPDIR="${am__leading_dot}deps"
2894
2895          ac_config_commands="$ac_config_commands depfiles"
2896
2897
2898am_make=${MAKE-make}
2899cat > confinc << 'END'
2900am__doit:
2901        @echo done
2902.PHONY: am__doit
2903END
2904# If we don't find an include directive, just comment out the code.
2905echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2906echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2907am__include="#"
2908am__quote=
2909_am_result=none
2910# First try GNU make style include.
2911echo "include confinc" > confmf
2912# We grep out `Entering directory' and `Leaving directory'
2913# messages which can occur if `w' ends up in MAKEFLAGS.
2914# In particular we don't look at `^make:' because GNU make might
2915# be invoked under some other name (usually "gmake"), in which
2916# case it prints its new name instead of `make'.
2917if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2918   am__include=include
2919   am__quote=
2920   _am_result=GNU
2921fi
2922# Now try BSD make style include.
2923if test "$am__include" = "#"; then
2924   echo '.include "confinc"' > confmf
2925   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2926      am__include=.include
2927      am__quote="\""
2928      _am_result=BSD
2929   fi
2930fi
2931
2932
2933echo "$as_me:$LINENO: result: $_am_result" >&5
2934echo "${ECHO_T}$_am_result" >&6
2935rm -f confinc confmf
2936
2937# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2938if test "${enable_dependency_tracking+set}" = set; then
2939  enableval="$enable_dependency_tracking"
2940
2941fi;
2942if test "x$enable_dependency_tracking" != xno; then
2943  am_depcomp="$ac_aux_dir/depcomp"
2944  AMDEPBACKSLASH='\'
2945fi
2946
2947
2948if test "x$enable_dependency_tracking" != xno; then
2949  AMDEP_TRUE=
2950  AMDEP_FALSE='#'
2951else
2952  AMDEP_TRUE='#'
2953  AMDEP_FALSE=
2954fi
2955
2956
2957
2958
2959depcc="$CC"   am_compiler_list=
2960
2961echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2962echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2963if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2964  echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2967  # We make a subdir and do the tests there.  Otherwise we can end up
2968  # making bogus files that we don't know about and never remove.  For
2969  # instance it was reported that on HP-UX the gcc test will end up
2970  # making a dummy file named `D' -- because `-MD' means `put the output
2971  # in D'.
2972  mkdir conftest.dir
2973  # Copy depcomp to subdir because otherwise we won't find it if we're
2974  # using a relative directory.
2975  cp "$am_depcomp" conftest.dir
2976  cd conftest.dir
2977  # We will build objects and dependencies in a subdirectory because
2978  # it helps to detect inapplicable dependency modes.  For instance
2979  # both Tru64's cc and ICC support -MD to output dependencies as a
2980  # side effect of compilation, but ICC will put the dependencies in
2981  # the current directory while Tru64 will put them in the object
2982  # directory.
2983  mkdir sub
2984
2985  am_cv_CC_dependencies_compiler_type=none
2986  if test "$am_compiler_list" = ""; then
2987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2988  fi
2989  for depmode in $am_compiler_list; do
2990    # Setup a source with many dependencies, because some compilers
2991    # like to wrap large dependency lists on column 80 (with \), and
2992    # we should not choose a depcomp mode which is confused by this.
2993    #
2994    # We need to recreate these files for each test, as the compiler may
2995    # overwrite some of them when testing with obscure command lines.
2996    # This happens at least with the AIX C compiler.
2997    : > sub/conftest.c
2998    for i in 1 2 3 4 5 6; do
2999      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3000      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3001      # Solaris 8's {/usr,}/bin/sh.
3002      touch sub/conftst$i.h
3003    done
3004    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005
3006    case $depmode in
3007    nosideeffect)
3008      # after this tag, mechanisms are not by side-effect, so they'll
3009      # only be used when explicitly requested
3010      if test "x$enable_dependency_tracking" = xyes; then
3011        continue
3012      else
3013        break
3014      fi
3015      ;;
3016    none) break ;;
3017    esac
3018    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3019    # mode.  It turns out that the SunPro C++ compiler does not properly
3020    # handle `-M -o', and we need to detect this.
3021    if depmode=$depmode \
3022       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3023       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3024       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3025         >/dev/null 2>conftest.err &&
3026       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3027       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3028       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3029      # icc doesn't choke on unknown options, it will just issue warnings
3030      # or remarks (even with -Werror).  So we grep stderr for any message
3031      # that says an option was ignored or not supported.
3032      # When given -MP, icc 7.0 and 7.1 complain thusly:
3033      #   icc: Command line warning: ignoring option '-M'; no argument required
3034      # The diagnosis changed in icc 8.0:
3035      #   icc: Command line remark: option '-MP' not supported
3036      if (grep 'ignoring option' conftest.err ||
3037          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3038        am_cv_CC_dependencies_compiler_type=$depmode
3039        break
3040      fi
3041    fi
3042  done
3043
3044  cd ..
3045  rm -rf conftest.dir
3046else
3047  am_cv_CC_dependencies_compiler_type=none
3048fi
3049
3050fi
3051echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3052echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3054
3055
3056
3057if
3058  test "x$enable_dependency_tracking" != xno \
3059  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3060  am__fastdepCC_TRUE=
3061  am__fastdepCC_FALSE='#'
3062else
3063  am__fastdepCC_TRUE='#'
3064  am__fastdepCC_FALSE=
3065fi
3066
3067
3068# Check whether --enable-shared or --disable-shared was given.
3069if test "${enable_shared+set}" = set; then
3070  enableval="$enable_shared"
3071  p=${PACKAGE-default}
3072    case $enableval in
3073    yes) enable_shared=yes ;;
3074    no) enable_shared=no ;;
3075    *)
3076      enable_shared=no
3077      # Look at the argument we got.  We use all the common list separators.
3078      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3079      for pkg in $enableval; do
3080        IFS="$lt_save_ifs"
3081        if test "X$pkg" = "X$p"; then
3082          enable_shared=yes
3083        fi
3084      done
3085      IFS="$lt_save_ifs"
3086      ;;
3087    esac
3088else
3089  enable_shared=yes
3090fi;
3091
3092# Check whether --enable-static or --disable-static was given.
3093if test "${enable_static+set}" = set; then
3094  enableval="$enable_static"
3095  p=${PACKAGE-default}
3096    case $enableval in
3097    yes) enable_static=yes ;;
3098    no) enable_static=no ;;
3099    *)
3100     enable_static=no
3101      # Look at the argument we got.  We use all the common list separators.
3102      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3103      for pkg in $enableval; do
3104        IFS="$lt_save_ifs"
3105        if test "X$pkg" = "X$p"; then
3106          enable_static=yes
3107        fi
3108      done
3109      IFS="$lt_save_ifs"
3110      ;;
3111    esac
3112else
3113  enable_static=yes
3114fi;
3115
3116# Check whether --enable-fast-install or --disable-fast-install was given.
3117if test "${enable_fast_install+set}" = set; then
3118  enableval="$enable_fast_install"
3119  p=${PACKAGE-default}
3120    case $enableval in
3121    yes) enable_fast_install=yes ;;
3122    no) enable_fast_install=no ;;
3123    *)
3124      enable_fast_install=no
3125      # Look at the argument we got.  We use all the common list separators.
3126      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3127      for pkg in $enableval; do
3128        IFS="$lt_save_ifs"
3129        if test "X$pkg" = "X$p"; then
3130          enable_fast_install=yes
3131        fi
3132      done
3133      IFS="$lt_save_ifs"
3134      ;;
3135    esac
3136else
3137  enable_fast_install=yes
3138fi;
3139
3140# Make sure we can run config.sub.
3141$ac_config_sub sun4 >/dev/null 2>&1 ||
3142  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3143echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3144   { (exit 1); exit 1; }; }
3145
3146echo "$as_me:$LINENO: checking build system type" >&5
3147echo $ECHO_N "checking build system type... $ECHO_C" >&6
3148if test "${ac_cv_build+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  ac_cv_build_alias=$build_alias
3152test -z "$ac_cv_build_alias" &&
3153  ac_cv_build_alias=`$ac_config_guess`
3154test -z "$ac_cv_build_alias" &&
3155  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3157   { (exit 1); exit 1; }; }
3158ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3159  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3160echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3161   { (exit 1); exit 1; }; }
3162
3163fi
3164echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3165echo "${ECHO_T}$ac_cv_build" >&6
3166build=$ac_cv_build
3167build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3168build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3169build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3170
3171
3172echo "$as_me:$LINENO: checking host system type" >&5
3173echo $ECHO_N "checking host system type... $ECHO_C" >&6
3174if test "${ac_cv_host+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177  ac_cv_host_alias=$host_alias
3178test -z "$ac_cv_host_alias" &&
3179  ac_cv_host_alias=$ac_cv_build_alias
3180ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3181  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3182echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3183   { (exit 1); exit 1; }; }
3184
3185fi
3186echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3187echo "${ECHO_T}$ac_cv_host" >&6
3188host=$ac_cv_host
3189host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3190host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3191host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3192
3193
3194echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3195echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3196if test "${lt_cv_path_SED+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  # Loop through the user's path and test for sed and gsed.
3200# Then use that list of sed's as ones to test for truncation.
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206  for lt_ac_prog in sed gsed; do
3207    for ac_exec_ext in '' $ac_executable_extensions; do
3208      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3209        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3210      fi
3211    done
3212  done
3213done
3214lt_ac_max=0
3215lt_ac_count=0
3216# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3217# along with /bin/sed that truncates output.
3218for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3219  test ! -f $lt_ac_sed && break
3220  cat /dev/null > conftest.in
3221  lt_ac_count=0
3222  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3223  # Check for GNU sed and select it if it is found.
3224  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3225    lt_cv_path_SED=$lt_ac_sed
3226    break
3227  fi
3228  while true; do
3229    cat conftest.in conftest.in >conftest.tmp
3230    mv conftest.tmp conftest.in
3231    cp conftest.in conftest.nl
3232    echo >>conftest.nl
3233    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3234    cmp -s conftest.out conftest.nl || break
3235    # 10000 chars as input seems more than enough
3236    test $lt_ac_count -gt 10 && break
3237    lt_ac_count=`expr $lt_ac_count + 1`
3238    if test $lt_ac_count -gt $lt_ac_max; then
3239      lt_ac_max=$lt_ac_count
3240      lt_cv_path_SED=$lt_ac_sed
3241    fi
3242  done
3243done
3244SED=$lt_cv_path_SED
3245
3246fi
3247
3248echo "$as_me:$LINENO: result: $SED" >&5
3249echo "${ECHO_T}$SED" >&6
3250
3251echo "$as_me:$LINENO: checking for egrep" >&5
3252echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3253if test "${ac_cv_prog_egrep+set}" = set; then
3254  echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3257    then ac_cv_prog_egrep='grep -E'
3258    else ac_cv_prog_egrep='egrep'
3259    fi
3260fi
3261echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3262echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3263 EGREP=$ac_cv_prog_egrep
3264
3265
3266
3267# Check whether --with-gnu-ld or --without-gnu-ld was given.
3268if test "${with_gnu_ld+set}" = set; then
3269  withval="$with_gnu_ld"
3270  test "$withval" = no || with_gnu_ld=yes
3271else
3272  with_gnu_ld=no
3273fi;
3274ac_prog=ld
3275if test "$GCC" = yes; then
3276  # Check if gcc -print-prog-name=ld gives a path.
3277  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3278echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3279  case $host in
3280  *-*-mingw*)
3281    # gcc leaves a trailing carriage return which upsets mingw
3282    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283  *)
3284    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3285  esac
3286  case $ac_prog in
3287    # Accept absolute paths.
3288    [\\/]* | ?:[\\/]*)
3289      re_direlt='/[^/][^/]*/\.\./'
3290      # Canonicalize the pathname of ld
3291      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3292      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3293        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294      done
3295      test -z "$LD" && LD="$ac_prog"
3296      ;;
3297  "")
3298    # If it fails, then pretend we aren't using GCC.
3299    ac_prog=ld
3300    ;;
3301  *)
3302    # If it is relative, then search for the first ld in PATH.
3303    with_gnu_ld=unknown
3304    ;;
3305  esac
3306elif test "$with_gnu_ld" = yes; then
3307  echo "$as_me:$LINENO: checking for GNU ld" >&5
3308echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309else
3310  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3311echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312fi
3313if test "${lt_cv_path_LD+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  if test -z "$LD"; then
3317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3318  for ac_dir in $PATH; do
3319    IFS="$lt_save_ifs"
3320    test -z "$ac_dir" && ac_dir=.
3321    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3322      lt_cv_path_LD="$ac_dir/$ac_prog"
3323      # Check to see if the program is GNU ld.  I'd rather use --version,
3324      # but apparently some GNU ld's only accept -v.
3325      # Break only if it was the GNU/non-GNU ld that we prefer.
3326      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3327      *GNU* | *'with BFD'*)
3328        test "$with_gnu_ld" != no && break
3329        ;;
3330      *)
3331        test "$with_gnu_ld" != yes && break
3332        ;;
3333      esac
3334    fi
3335  done
3336  IFS="$lt_save_ifs"
3337else
3338  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3339fi
3340fi
3341
3342LD="$lt_cv_path_LD"
3343if test -n "$LD"; then
3344  echo "$as_me:$LINENO: result: $LD" >&5
3345echo "${ECHO_T}$LD" >&6
3346else
3347  echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349fi
3350test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3351echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3352   { (exit 1); exit 1; }; }
3353echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3354echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3355if test "${lt_cv_prog_gnu_ld+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3359case `$LD -v 2>&1 </dev/null` in
3360*GNU* | *'with BFD'*)
3361  lt_cv_prog_gnu_ld=yes
3362  ;;
3363*)
3364  lt_cv_prog_gnu_ld=no
3365  ;;
3366esac
3367fi
3368echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3369echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3370with_gnu_ld=$lt_cv_prog_gnu_ld
3371
3372
3373echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3374echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3375if test "${lt_cv_ld_reload_flag+set}" = set; then
3376  echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
3378  lt_cv_ld_reload_flag='-r'
3379fi
3380echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3381echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3382reload_flag=$lt_cv_ld_reload_flag
3383case $reload_flag in
3384"" | " "*) ;;
3385*) reload_flag=" $reload_flag" ;;
3386esac
3387reload_cmds='$LD$reload_flag -o $output$reload_objs'
3388
3389echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3390echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3391if test "${lt_cv_path_NM+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  if test -n "$NM"; then
3395  # Let the user override the test.
3396  lt_cv_path_NM="$NM"
3397else
3398  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3399  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3400    IFS="$lt_save_ifs"
3401    test -z "$ac_dir" && ac_dir=.
3402    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3403    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3404      # Check to see if the nm accepts a BSD-compat flag.
3405      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406      #   nm: unknown option "B" ignored
3407      # Tru64's nm complains that /dev/null is an invalid object file
3408      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3409      */dev/null* | *'Invalid file or object type'*)
3410        lt_cv_path_NM="$tmp_nm -B"
3411        break
3412        ;;
3413      *)
3414        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415        */dev/null*)
3416          lt_cv_path_NM="$tmp_nm -p"
3417          break
3418          ;;
3419        *)
3420          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3421          continue # so that we can try to find one that supports BSD flags
3422          ;;
3423        esac
3424      esac
3425    fi
3426  done
3427  IFS="$lt_save_ifs"
3428  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3429fi
3430fi
3431echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3432echo "${ECHO_T}$lt_cv_path_NM" >&6
3433NM="$lt_cv_path_NM"
3434
3435echo "$as_me:$LINENO: checking whether ln -s works" >&5
3436echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3437LN_S=$as_ln_s
3438if test "$LN_S" = "ln -s"; then
3439  echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441else
3442  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3443echo "${ECHO_T}no, using $LN_S" >&6
3444fi
3445
3446echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3447echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3448if test "${lt_cv_deplibs_check_method+set}" = set; then
3449  echo $ECHO_N "(cached) $ECHO_C" >&6
3450else
3451  lt_cv_file_magic_cmd='$MAGIC_CMD'
3452lt_cv_file_magic_test_file=
3453lt_cv_deplibs_check_method='unknown'
3454# Need to set the preceding variable on all platforms that support
3455# interlibrary dependencies.
3456# 'none' -- dependencies not supported.
3457# `unknown' -- same as none, but documents that we really don't know.
3458# 'pass_all' -- all dependencies passed with no checks.
3459# 'test_compile' -- check by making test program.
3460# 'file_magic [[regex]]' -- check by looking for files in library path
3461# which responds to the $file_magic_cmd with a given extended regex.
3462# If you have `file' or equivalent on your system and you're not sure
3463# whether `pass_all' will *always* work, you probably want this one.
3464
3465case $host_os in
3466aix4* | aix5*)
3467  lt_cv_deplibs_check_method=pass_all
3468  ;;
3469
3470beos*)
3471  lt_cv_deplibs_check_method=pass_all
3472  ;;
3473
3474bsdi4*)
3475  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3476  lt_cv_file_magic_cmd='/usr/bin/file -L'
3477  lt_cv_file_magic_test_file=/shlib/libc.so
3478  ;;
3479
3480cygwin*)
3481  # func_win32_libid is a shell function defined in ltmain.sh
3482  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3483  lt_cv_file_magic_cmd='func_win32_libid'
3484  ;;
3485
3486mingw* | pw32*)
3487  # Base MSYS/MinGW do not provide the 'file' command needed by
3488  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3489  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3490  lt_cv_file_magic_cmd='$OBJDUMP -f'
3491  ;;
3492
3493darwin* | rhapsody*)
3494  lt_cv_deplibs_check_method=pass_all
3495  ;;
3496
3497freebsd* | kfreebsd*-gnu)
3498  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3499    case $host_cpu in
3500    i*86 )
3501      # Not sure whether the presence of OpenBSD here was a mistake.
3502      # Let's accept both of them until this is cleared up.
3503      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3504      lt_cv_file_magic_cmd=/usr/bin/file
3505      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3506      ;;
3507    esac
3508  else
3509    lt_cv_deplibs_check_method=pass_all
3510  fi
3511  ;;
3512
3513gnu*)
3514  lt_cv_deplibs_check_method=pass_all
3515  ;;
3516
3517hpux10.20* | hpux11*)
3518  lt_cv_file_magic_cmd=/usr/bin/file
3519  case "$host_cpu" in
3520  ia64*)
3521    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3522    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3523    ;;
3524  hppa*64*)
3525    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]'
3526    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3527    ;;
3528  *)
3529    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3530    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3531    ;;
3532  esac
3533  ;;
3534
3535irix5* | irix6* | nonstopux*)
3536  case $LD in
3537  *-32|*"-32 ") libmagic=32-bit;;
3538  *-n32|*"-n32 ") libmagic=N32;;
3539  *-64|*"-64 ") libmagic=64-bit;;
3540  *) libmagic=never-match;;
3541  esac
3542  lt_cv_deplibs_check_method=pass_all
3543  ;;
3544
3545# This must be Linux ELF.
3546linux*)
3547  lt_cv_deplibs_check_method=pass_all
3548  ;;
3549
3550netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3551  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3552    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3553  else
3554    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3555  fi
3556  ;;
3557
3558newos6*)
3559  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3560  lt_cv_file_magic_cmd=/usr/bin/file
3561  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3562  ;;
3563
3564nto-qnx*)
3565  lt_cv_deplibs_check_method=unknown
3566  ;;
3567
3568openbsd*)
3569  lt_cv_file_magic_cmd=/usr/bin/file
3570  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3571  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3572    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3573  else
3574    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3575  fi
3576  ;;
3577
3578osf3* | osf4* | osf5*)
3579  lt_cv_deplibs_check_method=pass_all
3580  ;;
3581
3582sco3.2v5*)
3583  lt_cv_deplibs_check_method=pass_all
3584  ;;
3585
3586solaris*)
3587  lt_cv_deplibs_check_method=pass_all
3588  ;;
3589
3590sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3591  case $host_vendor in
3592  motorola)
3593    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]'
3594    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3595    ;;
3596  ncr)
3597    lt_cv_deplibs_check_method=pass_all
3598    ;;
3599  sequent)
3600    lt_cv_file_magic_cmd='/bin/file'
3601    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3602    ;;
3603  sni)
3604    lt_cv_file_magic_cmd='/bin/file'
3605    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3606    lt_cv_file_magic_test_file=/lib/libc.so
3607    ;;
3608  siemens)
3609    lt_cv_deplibs_check_method=pass_all
3610    ;;
3611  esac
3612  ;;
3613
3614sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3615  lt_cv_deplibs_check_method=pass_all
3616  ;;
3617esac
3618
3619fi
3620echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3621echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3622file_magic_cmd=$lt_cv_file_magic_cmd
3623deplibs_check_method=$lt_cv_deplibs_check_method
3624test -z "$deplibs_check_method" && deplibs_check_method=unknown
3625
3626
3627
3628
3629# If no C compiler was specified, use CC.
3630LTCC=${LTCC-"$CC"}
3631
3632# Allow CC to be a program name with arguments.
3633compiler=$CC
3634
3635
3636# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3637if test "${enable_libtool_lock+set}" = set; then
3638  enableval="$enable_libtool_lock"
3639
3640fi;
3641test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3642
3643# Some flags need to be propagated to the compiler or linker for good
3644# libtool support.
3645case $host in
3646ia64-*-hpux*)
3647  # Find out which ABI we are using.
3648  echo 'int i;' > conftest.$ac_ext
3649  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; then
3654    case `/usr/bin/file conftest.$ac_objext` in
3655    *ELF-32*)
3656      HPUX_IA64_MODE="32"
3657      ;;
3658    *ELF-64*)
3659      HPUX_IA64_MODE="64"
3660      ;;
3661    esac
3662  fi
3663  rm -rf conftest*
3664  ;;
3665*-*-irix6*)
3666  # Find out which ABI we are using.
3667  echo '#line 3667 "configure"' > conftest.$ac_ext
3668  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669  (eval $ac_compile) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; then
3673   if test "$lt_cv_prog_gnu_ld" = yes; then
3674    case `/usr/bin/file conftest.$ac_objext` in
3675    *32-bit*)
3676      LD="${LD-ld} -melf32bsmip"
3677      ;;
3678    *N32*)
3679      LD="${LD-ld} -melf32bmipn32"
3680      ;;
3681    *64-bit*)
3682      LD="${LD-ld} -melf64bmip"
3683      ;;
3684    esac
3685   else
3686    case `/usr/bin/file conftest.$ac_objext` in
3687    *32-bit*)
3688      LD="${LD-ld} -32"
3689      ;;
3690    *N32*)
3691      LD="${LD-ld} -n32"
3692      ;;
3693    *64-bit*)
3694      LD="${LD-ld} -64"
3695      ;;
3696    esac
3697   fi
3698  fi
3699  rm -rf conftest*
3700  ;;
3701
3702x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3703  # Find out which ABI we are using.
3704  echo 'int i;' > conftest.$ac_ext
3705  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706  (eval $ac_compile) 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; then
3710    case "`/usr/bin/file conftest.o`" in
3711    *32-bit*)
3712      case $host in
3713        x86_64-*linux*)
3714          LD="${LD-ld} -m elf_i386"
3715          ;;
3716        ppc64-*linux*|powerpc64-*linux*)
3717          LD="${LD-ld} -m elf32ppclinux"
3718          ;;
3719        s390x-*linux*)
3720          LD="${LD-ld} -m elf_s390"
3721          ;;
3722        sparc64-*linux*)
3723          LD="${LD-ld} -m elf32_sparc"
3724          ;;
3725      esac
3726      ;;
3727    *64-bit*)
3728      case $host in
3729        x86_64-*linux*)
3730          LD="${LD-ld} -m elf_x86_64"
3731          ;;
3732        ppc*-*linux*|powerpc*-*linux*)
3733          LD="${LD-ld} -m elf64ppc"
3734          ;;
3735        s390*-*linux*)
3736          LD="${LD-ld} -m elf64_s390"
3737          ;;
3738        sparc*-*linux*)
3739          LD="${LD-ld} -m elf64_sparc"
3740          ;;
3741      esac
3742      ;;
3743    esac
3744  fi
3745  rm -rf conftest*
3746  ;;
3747
3748*-*-sco3.2v5*)
3749  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3750  SAVE_CFLAGS="$CFLAGS"
3751  CFLAGS="$CFLAGS -belf"
3752  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3753echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3754if test "${lt_cv_cc_needs_belf+set}" = set; then
3755  echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757  ac_ext=c
3758ac_cpp='$CPP $CPPFLAGS'
3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
3763     cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h.  */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h.  */
3769
3770int
3771main ()
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780  (eval $ac_link) 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } &&
3787         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789  (eval $ac_try) 2>&5
3790  ac_status=$?
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); }; } &&
3793         { ac_try='test -s conftest$ac_exeext'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; }; then
3799  lt_cv_cc_needs_belf=yes
3800else
3801  echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804lt_cv_cc_needs_belf=no
3805fi
3806rm -f conftest.err conftest.$ac_objext \
3807      conftest$ac_exeext conftest.$ac_ext
3808     ac_ext=c
3809ac_cpp='$CPP $CPPFLAGS'
3810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813
3814fi
3815echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3816echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3817  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3818    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3819    CFLAGS="$SAVE_CFLAGS"
3820  fi
3821  ;;
3822
3823esac
3824
3825need_locks="$enable_libtool_lock"
3826
3827
3828ac_ext=c
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3834echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3835# On Suns, sometimes $CPP names a directory.
3836if test -n "$CPP" && test -d "$CPP"; then
3837  CPP=
3838fi
3839if test -z "$CPP"; then
3840  if test "${ac_cv_prog_CPP+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843      # Double quotes because CPP needs to be expanded
3844    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3845    do
3846      ac_preproc_ok=false
3847for ac_c_preproc_warn_flag in '' yes
3848do
3849  # Use a header file that comes with gcc, so configuring glibc
3850  # with a fresh cross-compiler works.
3851  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852  # <limits.h> exists even on freestanding compilers.
3853  # On the NeXT, cc -E runs the code through the compiler's parser,
3854  # not just through cpp. "Syntax error" is here to catch this case.
3855  cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h.  */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h.  */
3861#ifdef __STDC__
3862# include <limits.h>
3863#else
3864# include <assert.h>
3865#endif
3866                     Syntax error
3867_ACEOF
3868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } >/dev/null; then
3876  if test -s conftest.err; then
3877    ac_cpp_err=$ac_c_preproc_warn_flag
3878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879  else
3880    ac_cpp_err=
3881  fi
3882else
3883  ac_cpp_err=yes
3884fi
3885if test -z "$ac_cpp_err"; then
3886  :
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891  # Broken: fails on valid input.
3892continue
3893fi
3894rm -f conftest.err conftest.$ac_ext
3895
3896  # OK, works on sane cases.  Now check whether non-existent headers
3897  # can be detected and how.
3898  cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h.  */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h.  */
3904#include <ac_nonexistent.h>
3905_ACEOF
3906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3908  ac_status=$?
3909  grep -v '^ *+' conftest.er1 >conftest.err
3910  rm -f conftest.er1
3911  cat conftest.err >&5
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); } >/dev/null; then
3914  if test -s conftest.err; then
3915    ac_cpp_err=$ac_c_preproc_warn_flag
3916    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3917  else
3918    ac_cpp_err=
3919  fi
3920else
3921  ac_cpp_err=yes
3922fi
3923if test -z "$ac_cpp_err"; then
3924  # Broken: success on invalid input.
3925continue
3926else
3927  echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930  # Passes both tests.
3931ac_preproc_ok=:
3932break
3933fi
3934rm -f conftest.err conftest.$ac_ext
3935
3936done
3937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938rm -f conftest.err conftest.$ac_ext
3939if $ac_preproc_ok; then
3940  break
3941fi
3942
3943    done
3944    ac_cv_prog_CPP=$CPP
3945
3946fi
3947  CPP=$ac_cv_prog_CPP
3948else
3949  ac_cv_prog_CPP=$CPP
3950fi
3951echo "$as_me:$LINENO: result: $CPP" >&5
3952echo "${ECHO_T}$CPP" >&6
3953ac_preproc_ok=false
3954for ac_c_preproc_warn_flag in '' yes
3955do
3956  # Use a header file that comes with gcc, so configuring glibc
3957  # with a fresh cross-compiler works.
3958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959  # <limits.h> exists even on freestanding compilers.
3960  # On the NeXT, cc -E runs the code through the compiler's parser,
3961  # not just through cpp. "Syntax error" is here to catch this case.
3962  cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h.  */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h.  */
3968#ifdef __STDC__
3969# include <limits.h>
3970#else
3971# include <assert.h>
3972#endif
3973                     Syntax error
3974_ACEOF
3975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3976  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3977  ac_status=$?
3978  grep -v '^ *+' conftest.er1 >conftest.err
3979  rm -f conftest.er1
3980  cat conftest.err >&5
3981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982  (exit $ac_status); } >/dev/null; then
3983  if test -s conftest.err; then
3984    ac_cpp_err=$ac_c_preproc_warn_flag
3985    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3986  else
3987    ac_cpp_err=
3988  fi
3989else
3990  ac_cpp_err=yes
3991fi
3992if test -z "$ac_cpp_err"; then
3993  :
3994else
3995  echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998  # Broken: fails on valid input.
3999continue
4000fi
4001rm -f conftest.err conftest.$ac_ext
4002
4003  # OK, works on sane cases.  Now check whether non-existent headers
4004  # can be detected and how.
4005  cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011#include <ac_nonexistent.h>
4012_ACEOF
4013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4014  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4015  ac_status=$?
4016  grep -v '^ *+' conftest.er1 >conftest.err
4017  rm -f conftest.er1
4018  cat conftest.err >&5
4019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020  (exit $ac_status); } >/dev/null; then
4021  if test -s conftest.err; then
4022    ac_cpp_err=$ac_c_preproc_warn_flag
4023    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4024  else
4025    ac_cpp_err=
4026  fi
4027else
4028  ac_cpp_err=yes
4029fi
4030if test -z "$ac_cpp_err"; then
4031  # Broken: success on invalid input.
4032continue
4033else
4034  echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037  # Passes both tests.
4038ac_preproc_ok=:
4039break
4040fi
4041rm -f conftest.err conftest.$ac_ext
4042
4043done
4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045rm -f conftest.err conftest.$ac_ext
4046if $ac_preproc_ok; then
4047  :
4048else
4049  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4050See \`config.log' for more details." >&5
4051echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4052See \`config.log' for more details." >&2;}
4053   { (exit 1); exit 1; }; }
4054fi
4055
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4064echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4065if test "${ac_cv_header_stdc+set}" = set; then
4066  echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068  cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h.  */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h.  */
4074#include <stdlib.h>
4075#include <stdarg.h>
4076#include <string.h>
4077#include <float.h>
4078
4079int
4080main ()
4081{
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext
4088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089  (eval $ac_compile) 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } &&
4096         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098  (eval $ac_try) 2>&5
4099  ac_status=$?
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); }; } &&
4102         { ac_try='test -s conftest.$ac_objext'
4103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104  (eval $ac_try) 2>&5
4105  ac_status=$?
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }; }; then
4108  ac_cv_header_stdc=yes
4109else
4110  echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113ac_cv_header_stdc=no
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117if test $ac_cv_header_stdc = yes; then
4118  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119  cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125#include <string.h>
4126
4127_ACEOF
4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129  $EGREP "memchr" >/dev/null 2>&1; then
4130  :
4131else
4132  ac_cv_header_stdc=no
4133fi
4134rm -f conftest*
4135
4136fi
4137
4138if test $ac_cv_header_stdc = yes; then
4139  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140  cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h.  */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h.  */
4146#include <stdlib.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150  $EGREP "free" >/dev/null 2>&1; then
4151  :
4152else
4153  ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161  if test "$cross_compiling" = yes; then
4162  :
4163else
4164  cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170#include <ctype.h>
4171#if ((' ' & 0x0FF) == 0x020)
4172# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4173# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174#else
4175# define ISLOWER(c) \
4176                   (('a' <= (c) && (c) <= 'i') \
4177                     || ('j' <= (c) && (c) <= 'r') \
4178                     || ('s' <= (c) && (c) <= 'z'))
4179# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180#endif
4181
4182#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4183int
4184main ()
4185{
4186  int i;
4187  for (i = 0; i < 256; i++)
4188    if (XOR (islower (i), ISLOWER (i))
4189        || toupper (i) != TOUPPER (i))
4190      exit(2);
4191  exit (0);
4192}
4193_ACEOF
4194rm -f conftest$ac_exeext
4195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196  (eval $ac_link) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  :
4206else
4207  echo "$as_me: program exited with status $ac_status" >&5
4208echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211( exit $ac_status )
4212ac_cv_header_stdc=no
4213fi
4214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215fi
4216fi
4217fi
4218echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219echo "${ECHO_T}$ac_cv_header_stdc" >&6
4220if test $ac_cv_header_stdc = yes; then
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define STDC_HEADERS 1
4224_ACEOF
4225
4226fi
4227
4228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239                  inttypes.h stdint.h unistd.h
4240do
4241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242echo "$as_me:$LINENO: checking for $ac_header" >&5
4243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h.  */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h.  */
4253$ac_includes_default
4254
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259  (eval $ac_compile) 2>conftest.er1
4260  ac_status=$?
4261  grep -v '^ *+' conftest.er1 >conftest.err
4262  rm -f conftest.er1
4263  cat conftest.err >&5
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } &&
4266         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268  (eval $ac_try) 2>&5
4269  ac_status=$?
4270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271  (exit $ac_status); }; } &&
4272         { ac_try='test -s conftest.$ac_objext'
4273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274  (eval $ac_try) 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; }; then
4278  eval "$as_ac_Header=yes"
4279else
4280  echo "$as_me: failed program was:" >&5
4281sed 's/^/| /' conftest.$ac_ext >&5
4282
4283eval "$as_ac_Header=no"
4284fi
4285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4286fi
4287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4289if test `eval echo '${'$as_ac_Header'}'` = yes; then
4290  cat >>confdefs.h <<_ACEOF
4291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292_ACEOF
4293
4294fi
4295
4296done
4297
4298
4299
4300for ac_header in dlfcn.h
4301do
4302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4303if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304  echo "$as_me:$LINENO: checking for $ac_header" >&5
4305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308fi
4309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4311else
4312  # Is the header compilable?
4313echo "$as_me:$LINENO: checking $ac_header usability" >&5
4314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4315cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h.  */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h.  */
4321$ac_includes_default
4322#include <$ac_header>
4323_ACEOF
4324rm -f conftest.$ac_objext
4325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326  (eval $ac_compile) 2>conftest.er1
4327  ac_status=$?
4328  grep -v '^ *+' conftest.er1 >conftest.err
4329  rm -f conftest.er1
4330  cat conftest.err >&5
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); } &&
4333         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335  (eval $ac_try) 2>&5
4336  ac_status=$?
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); }; } &&
4339         { ac_try='test -s conftest.$ac_objext'
4340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341  (eval $ac_try) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; }; then
4345  ac_header_compiler=yes
4346else
4347  echo "$as_me: failed program was:" >&5
4348sed 's/^/| /' conftest.$ac_ext >&5
4349
4350ac_header_compiler=no
4351fi
4352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4354echo "${ECHO_T}$ac_header_compiler" >&6
4355
4356# Is the header present?
4357echo "$as_me:$LINENO: checking $ac_header presence" >&5
4358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4359cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h.  */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h.  */
4365#include <$ac_header>
4366_ACEOF
4367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4369  ac_status=$?
4370  grep -v '^ *+' conftest.er1 >conftest.err
4371  rm -f conftest.er1
4372  cat conftest.err >&5
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); } >/dev/null; then
4375  if test -s conftest.err; then
4376    ac_cpp_err=$ac_c_preproc_warn_flag
4377    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4378  else
4379    ac_cpp_err=
4380  fi
4381else
4382  ac_cpp_err=yes
4383fi
4384if test -z "$ac_cpp_err"; then
4385  ac_header_preproc=yes
4386else
4387  echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390  ac_header_preproc=no
4391fi
4392rm -f conftest.err conftest.$ac_ext
4393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4394echo "${ECHO_T}$ac_header_preproc" >&6
4395
4396# So?  What about this header?
4397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4398  yes:no: )
4399    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4401    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4403    ac_header_preproc=yes
4404    ;;
4405  no:yes:* )
4406    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4408    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4409echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4410    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4412    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4413echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4414    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4416    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4418    (
4419      cat <<\_ASBOX
4420## ------------------------------------------ ##
4421## Report this to the AC_PACKAGE_NAME lists.  ##
4422## ------------------------------------------ ##
4423_ASBOX
4424    ) |
4425      sed "s/^/$as_me: WARNING:     /" >&2
4426    ;;
4427esac
4428echo "$as_me:$LINENO: checking for $ac_header" >&5
4429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4430if eval "test \"\${$as_ac_Header+set}\" = set"; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433  eval "$as_ac_Header=\$ac_header_preproc"
4434fi
4435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437
4438fi
4439if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440  cat >>confdefs.h <<_ACEOF
4441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442_ACEOF
4443
4444fi
4445
4446done
4447
4448ac_ext=cc
4449ac_cpp='$CXXCPP $CPPFLAGS'
4450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4453if test -n "$ac_tool_prefix"; then
4454  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4455  do
4456    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458echo "$as_me:$LINENO: checking for $ac_word" >&5
4459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4460if test "${ac_cv_prog_CXX+set}" = set; then
4461  echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463  if test -n "$CXX"; then
4464  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471  for ac_exec_ext in '' $ac_executable_extensions; do
4472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475    break 2
4476  fi
4477done
4478done
4479
4480fi
4481fi
4482CXX=$ac_cv_prog_CXX
4483if test -n "$CXX"; then
4484  echo "$as_me:$LINENO: result: $CXX" >&5
4485echo "${ECHO_T}$CXX" >&6
4486else
4487  echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489fi
4490
4491    test -n "$CXX" && break
4492  done
4493fi
4494if test -z "$CXX"; then
4495  ac_ct_CXX=$CXX
4496  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4497do
4498  # Extract the first word of "$ac_prog", so it can be a program name with args.
4499set dummy $ac_prog; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  if test -n "$ac_ct_CXX"; then
4506  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513  for ac_exec_ext in '' $ac_executable_extensions; do
4514  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515    ac_cv_prog_ac_ct_CXX="$ac_prog"
4516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517    break 2
4518  fi
4519done
4520done
4521
4522fi
4523fi
4524ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4525if test -n "$ac_ct_CXX"; then
4526  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4527echo "${ECHO_T}$ac_ct_CXX" >&6
4528else
4529  echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
4532
4533  test -n "$ac_ct_CXX" && break
4534done
4535test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4536
4537  CXX=$ac_ct_CXX
4538fi
4539
4540
4541# Provide some information about the compiler.
4542echo "$as_me:$LINENO:" \
4543     "checking for C++ compiler version" >&5
4544ac_compiler=`set X $ac_compile; echo $2`
4545{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4546  (eval $ac_compiler --version </dev/null >&5) 2>&5
4547  ac_status=$?
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); }
4550{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4551  (eval $ac_compiler -v </dev/null >&5) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }
4555{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4556  (eval $ac_compiler -V </dev/null >&5) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }
4560
4561echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4562echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4563if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4564  echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566  cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h.  */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h.  */
4572
4573int
4574main ()
4575{
4576#ifndef __GNUC__
4577       choke me
4578#endif
4579
4580  ;
4581  return 0;
4582}
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586  (eval $ac_compile) 2>conftest.er1
4587  ac_status=$?
4588  grep -v '^ *+' conftest.er1 >conftest.err
4589  rm -f conftest.er1
4590  cat conftest.err >&5
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); } &&
4593         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595  (eval $ac_try) 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; } &&
4599         { ac_try='test -s conftest.$ac_objext'
4600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601  (eval $ac_try) 2>&5
4602  ac_status=$?
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); }; }; then
4605  ac_compiler_gnu=yes
4606else
4607  echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610ac_compiler_gnu=no
4611fi
4612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4614
4615fi
4616echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4617echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4618GXX=`test $ac_compiler_gnu = yes && echo yes`
4619ac_test_CXXFLAGS=${CXXFLAGS+set}
4620ac_save_CXXFLAGS=$CXXFLAGS
4621CXXFLAGS="-g"
4622echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4623echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4624if test "${ac_cv_prog_cxx_g+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627  cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h.  */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h.  */
4633
4634int
4635main ()
4636{
4637
4638  ;
4639  return 0;
4640}
4641_ACEOF
4642rm -f conftest.$ac_objext
4643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644  (eval $ac_compile) 2>conftest.er1
4645  ac_status=$?
4646  grep -v '^ *+' conftest.er1 >conftest.err
4647  rm -f conftest.er1
4648  cat conftest.err >&5
4649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650  (exit $ac_status); } &&
4651         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653  (eval $ac_try) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; } &&
4657         { ac_try='test -s conftest.$ac_objext'
4658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659  (eval $ac_try) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }; }; then
4663  ac_cv_prog_cxx_g=yes
4664else
4665  echo "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668ac_cv_prog_cxx_g=no
4669fi
4670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4671fi
4672echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4673echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4674if test "$ac_test_CXXFLAGS" = set; then
4675  CXXFLAGS=$ac_save_CXXFLAGS
4676elif test $ac_cv_prog_cxx_g = yes; then
4677  if test "$GXX" = yes; then
4678    CXXFLAGS="-g -O2"
4679  else
4680    CXXFLAGS="-g"
4681  fi
4682else
4683  if test "$GXX" = yes; then
4684    CXXFLAGS="-O2"
4685  else
4686    CXXFLAGS=
4687  fi
4688fi
4689for ac_declaration in \
4690   '' \
4691   'extern "C" void std::exit (int) throw (); using std::exit;' \
4692   'extern "C" void std::exit (int); using std::exit;' \
4693   'extern "C" void exit (int) throw ();' \
4694   'extern "C" void exit (int);' \
4695   'void exit (int);'
4696do
4697  cat >conftest.$ac_ext <<_ACEOF
4698/* confdefs.h.  */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h.  */
4703$ac_declaration
4704#include <stdlib.h>
4705int
4706main ()
4707{
4708exit (42);
4709  ;
4710  return 0;
4711}
4712_ACEOF
4713rm -f conftest.$ac_objext
4714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715  (eval $ac_compile) 2>conftest.er1
4716  ac_status=$?
4717  grep -v '^ *+' conftest.er1 >conftest.err
4718  rm -f conftest.er1
4719  cat conftest.err >&5
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); } &&
4722         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724  (eval $ac_try) 2>&5
4725  ac_status=$?
4726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727  (exit $ac_status); }; } &&
4728         { ac_try='test -s conftest.$ac_objext'
4729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730  (eval $ac_try) 2>&5
4731  ac_status=$?
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); }; }; then
4734  :
4735else
4736  echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739continue
4740fi
4741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4742  cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748$ac_declaration
4749int
4750main ()
4751{
4752exit (42);
4753  ;
4754  return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext
4758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759  (eval $ac_compile) 2>conftest.er1
4760  ac_status=$?
4761  grep -v '^ *+' conftest.er1 >conftest.err
4762  rm -f conftest.er1
4763  cat conftest.err >&5
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); } &&
4766         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768  (eval $ac_try) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }; } &&
4772         { ac_try='test -s conftest.$ac_objext'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; }; then
4778  break
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783fi
4784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785done
4786rm -f conftest*
4787if test -n "$ac_declaration"; then
4788  echo '#ifdef __cplusplus' >>confdefs.h
4789  echo $ac_declaration      >>confdefs.h
4790  echo '#endif'             >>confdefs.h
4791fi
4792
4793ac_ext=cc
4794ac_cpp='$CXXCPP $CPPFLAGS'
4795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798
4799depcc="$CXX"  am_compiler_list=
4800
4801echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4802echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4803if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4807  # We make a subdir and do the tests there.  Otherwise we can end up
4808  # making bogus files that we don't know about and never remove.  For
4809  # instance it was reported that on HP-UX the gcc test will end up
4810  # making a dummy file named `D' -- because `-MD' means `put the output
4811  # in D'.
4812  mkdir conftest.dir
4813  # Copy depcomp to subdir because otherwise we won't find it if we're
4814  # using a relative directory.
4815  cp "$am_depcomp" conftest.dir
4816  cd conftest.dir
4817  # We will build objects and dependencies in a subdirectory because
4818  # it helps to detect inapplicable dependency modes.  For instance
4819  # both Tru64's cc and ICC support -MD to output dependencies as a
4820  # side effect of compilation, but ICC will put the dependencies in
4821  # the current directory while Tru64 will put them in the object
4822  # directory.
4823  mkdir sub
4824
4825  am_cv_CXX_dependencies_compiler_type=none
4826  if test "$am_compiler_list" = ""; then
4827     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4828  fi
4829  for depmode in $am_compiler_list; do
4830    # Setup a source with many dependencies, because some compilers
4831    # like to wrap large dependency lists on column 80 (with \), and
4832    # we should not choose a depcomp mode which is confused by this.
4833    #
4834    # We need to recreate these files for each test, as the compiler may
4835    # overwrite some of them when testing with obscure command lines.
4836    # This happens at least with the AIX C compiler.
4837    : > sub/conftest.c
4838    for i in 1 2 3 4 5 6; do
4839      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4840      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4841      # Solaris 8's {/usr,}/bin/sh.
4842      touch sub/conftst$i.h
4843    done
4844    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4845
4846    case $depmode in
4847    nosideeffect)
4848      # after this tag, mechanisms are not by side-effect, so they'll
4849      # only be used when explicitly requested
4850      if test "x$enable_dependency_tracking" = xyes; then
4851        continue
4852      else
4853        break
4854      fi
4855      ;;
4856    none) break ;;
4857    esac
4858    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4859    # mode.  It turns out that the SunPro C++ compiler does not properly
4860    # handle `-M -o', and we need to detect this.
4861    if depmode=$depmode \
4862       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4863       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4864       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4865         >/dev/null 2>conftest.err &&
4866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4867       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4869      # icc doesn't choke on unknown options, it will just issue warnings
4870      # or remarks (even with -Werror).  So we grep stderr for any message
4871      # that says an option was ignored or not supported.
4872      # When given -MP, icc 7.0 and 7.1 complain thusly:
4873      #   icc: Command line warning: ignoring option '-M'; no argument required
4874      # The diagnosis changed in icc 8.0:
4875      #   icc: Command line remark: option '-MP' not supported
4876      if (grep 'ignoring option' conftest.err ||
4877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4878        am_cv_CXX_dependencies_compiler_type=$depmode
4879        break
4880      fi
4881    fi
4882  done
4883
4884  cd ..
4885  rm -rf conftest.dir
4886else
4887  am_cv_CXX_dependencies_compiler_type=none
4888fi
4889
4890fi
4891echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4892echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4894
4895
4896
4897if
4898  test "x$enable_dependency_tracking" != xno \
4899  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4900  am__fastdepCXX_TRUE=
4901  am__fastdepCXX_FALSE='#'
4902else
4903  am__fastdepCXX_TRUE='#'
4904  am__fastdepCXX_FALSE=
4905fi
4906
4907
4908ac_ext=cc
4909ac_cpp='$CXXCPP $CPPFLAGS'
4910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4914echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4915if test -z "$CXXCPP"; then
4916  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919      # Double quotes because CXXCPP needs to be expanded
4920    for CXXCPP in "$CXX -E" "/lib/cpp"
4921    do
4922      ac_preproc_ok=false
4923for ac_cxx_preproc_warn_flag in '' yes
4924do
4925  # Use a header file that comes with gcc, so configuring glibc
4926  # with a fresh cross-compiler works.
4927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928  # <limits.h> exists even on freestanding compilers.
4929  # On the NeXT, cc -E runs the code through the compiler's parser,
4930  # not just through cpp. "Syntax error" is here to catch this case.
4931  cat >conftest.$ac_ext <<_ACEOF
4932/* confdefs.h.  */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h.  */
4937#ifdef __STDC__
4938# include <limits.h>
4939#else
4940# include <assert.h>
4941#endif
4942                     Syntax error
4943_ACEOF
4944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946  ac_status=$?
4947  grep -v '^ *+' conftest.er1 >conftest.err
4948  rm -f conftest.er1
4949  cat conftest.err >&5
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } >/dev/null; then
4952  if test -s conftest.err; then
4953    ac_cpp_err=$ac_cxx_preproc_warn_flag
4954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4955  else
4956    ac_cpp_err=
4957  fi
4958else
4959  ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962  :
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967  # Broken: fails on valid input.
4968continue
4969fi
4970rm -f conftest.err conftest.$ac_ext
4971
4972  # OK, works on sane cases.  Now check whether non-existent headers
4973  # can be detected and how.
4974  cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980#include <ac_nonexistent.h>
4981_ACEOF
4982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } >/dev/null; then
4990  if test -s conftest.err; then
4991    ac_cpp_err=$ac_cxx_preproc_warn_flag
4992    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4993  else
4994    ac_cpp_err=
4995  fi
4996else
4997  ac_cpp_err=yes
4998fi
4999if test -z "$ac_cpp_err"; then
5000  # Broken: success on invalid input.
5001continue
5002else
5003  echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006  # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016  break
5017fi
5018
5019    done
5020    ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023  CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025  ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032  # Use a header file that comes with gcc, so configuring glibc
5033  # with a fresh cross-compiler works.
5034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035  # <limits.h> exists even on freestanding compilers.
5036  # On the NeXT, cc -E runs the code through the compiler's parser,
5037  # not just through cpp. "Syntax error" is here to catch this case.
5038  cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h.  */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h.  */
5044#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049                     Syntax error
5050_ACEOF
5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053  ac_status=$?
5054  grep -v '^ *+' conftest.er1 >conftest.err
5055  rm -f conftest.er1
5056  cat conftest.err >&5
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); } >/dev/null; then
5059  if test -s conftest.err; then
5060    ac_cpp_err=$ac_cxx_preproc_warn_flag
5061    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062  else
5063    ac_cpp_err=
5064  fi
5065else
5066  ac_cpp_err=yes
5067fi
5068if test -z "$ac_cpp_err"; then
5069  :
5070else
5071  echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074  # Broken: fails on valid input.
5075continue
5076fi
5077rm -f conftest.err conftest.$ac_ext
5078
5079  # OK, works on sane cases.  Now check whether non-existent headers
5080  # can be detected and how.
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087#include <ac_nonexistent.h>
5088_ACEOF
5089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } >/dev/null; then
5097  if test -s conftest.err; then
5098    ac_cpp_err=$ac_cxx_preproc_warn_flag
5099    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5100  else
5101    ac_cpp_err=
5102  fi
5103else
5104  ac_cpp_err=yes
5105fi
5106if test -z "$ac_cpp_err"; then
5107  # Broken: success on invalid input.
5108continue
5109else
5110  echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113  # Passes both tests.
5114ac_preproc_ok=:
5115break
5116fi
5117rm -f conftest.err conftest.$ac_ext
5118
5119done
5120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121rm -f conftest.err conftest.$ac_ext
5122if $ac_preproc_ok; then
5123  :
5124else
5125  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&5
5127echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5128See \`config.log' for more details." >&2;}
5129   { (exit 1); exit 1; }; }
5130fi
5131
5132ac_ext=cc
5133ac_cpp='$CXXCPP $CPPFLAGS'
5134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137
5138
5139ac_ext=f
5140ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5141ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5143if test -n "$ac_tool_prefix"; then
5144  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5145  do
5146    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150if test "${ac_cv_prog_F77+set}" = set; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153  if test -n "$F77"; then
5154  ac_cv_prog_F77="$F77" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159  IFS=$as_save_IFS
5160  test -z "$as_dir" && as_dir=.
5161  for ac_exec_ext in '' $ac_executable_extensions; do
5162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165    break 2
5166  fi
5167done
5168done
5169
5170fi
5171fi
5172F77=$ac_cv_prog_F77
5173if test -n "$F77"; then
5174  echo "$as_me:$LINENO: result: $F77" >&5
5175echo "${ECHO_T}$F77" >&6
5176else
5177  echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179fi
5180
5181    test -n "$F77" && break
5182  done
5183fi
5184if test -z "$F77"; then
5185  ac_ct_F77=$F77
5186  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5187do
5188  # Extract the first word of "$ac_prog", so it can be a program name with args.
5189set dummy $ac_prog; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5193  echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195  if test -n "$ac_ct_F77"; then
5196  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203  for ac_exec_ext in '' $ac_executable_extensions; do
5204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205    ac_cv_prog_ac_ct_F77="$ac_prog"
5206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210done
5211
5212fi
5213fi
5214ac_ct_F77=$ac_cv_prog_ac_ct_F77
5215if test -n "$ac_ct_F77"; then
5216  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5217echo "${ECHO_T}$ac_ct_F77" >&6
5218else
5219  echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221fi
5222
5223  test -n "$ac_ct_F77" && break
5224done
5225
5226  F77=$ac_ct_F77
5227fi
5228
5229
5230# Provide some information about the compiler.
5231echo "$as_me:5231:" \
5232     "checking for Fortran 77 compiler version" >&5
5233ac_compiler=`set X $ac_compile; echo $2`
5234{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5235  (eval $ac_compiler --version </dev/null >&5) 2>&5
5236  ac_status=$?
5237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); }
5239{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5240  (eval $ac_compiler -v </dev/null >&5) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }
5244{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5245  (eval $ac_compiler -V </dev/null >&5) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }
5249rm -f a.out
5250
5251# If we don't use `.F' as extension, the preprocessor is not run on the
5252# input file.  (Note that this only needs to work for GNU compilers.)
5253ac_save_ext=$ac_ext
5254ac_ext=F
5255echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5256echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5257if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5258  echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260  cat >conftest.$ac_ext <<_ACEOF
5261      program main
5262#ifndef __GNUC__
5263       choke me
5264#endif
5265
5266      end
5267_ACEOF
5268rm -f conftest.$ac_objext
5269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270  (eval $ac_compile) 2>conftest.er1
5271  ac_status=$?
5272  grep -v '^ *+' conftest.er1 >conftest.err
5273  rm -f conftest.er1
5274  cat conftest.err >&5
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); } &&
5277         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; } &&
5283         { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_compiler_gnu=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294ac_compiler_gnu=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5298
5299fi
5300echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5301echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5302ac_ext=$ac_save_ext
5303ac_test_FFLAGS=${FFLAGS+set}
5304ac_save_FFLAGS=$FFLAGS
5305FFLAGS=
5306echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5307echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5308if test "${ac_cv_prog_f77_g+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311  FFLAGS=-g
5312cat >conftest.$ac_ext <<_ACEOF
5313      program main
5314
5315      end
5316_ACEOF
5317rm -f conftest.$ac_objext
5318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319  (eval $ac_compile) 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } &&
5326         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328  (eval $ac_try) 2>&5
5329  ac_status=$?
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); }; } &&
5332         { ac_try='test -s conftest.$ac_objext'
5333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334  (eval $ac_try) 2>&5
5335  ac_status=$?
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); }; }; then
5338  ac_cv_prog_f77_g=yes
5339else
5340  echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343ac_cv_prog_f77_g=no
5344fi
5345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346
5347fi
5348echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350if test "$ac_test_FFLAGS" = set; then
5351  FFLAGS=$ac_save_FFLAGS
5352elif test $ac_cv_prog_f77_g = yes; then
5353  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5354    FFLAGS="-g -O2"
5355  else
5356    FFLAGS="-g"
5357  fi
5358else
5359  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5360    FFLAGS="-O2"
5361  else
5362    FFLAGS=
5363  fi
5364fi
5365
5366G77=`test $ac_compiler_gnu = yes && echo yes`
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373
5374
5375# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376
5377# find the maximum length of command line arguments
5378echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381  echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383    i=0
5384  teststring="ABCD"
5385
5386  case $build_os in
5387  msdosdjgpp*)
5388    # On DJGPP, this test can blow up pretty badly due to problems in libc
5389    # (any single argument exceeding 2000 bytes causes a buffer overrun
5390    # during glob expansion).  Even if it were fixed, the result of this
5391    # check would be larger than it should be.
5392    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5393    ;;
5394
5395  gnu*)
5396    # Under GNU Hurd, this test is not required because there is
5397    # no limit to the length of command line arguments.
5398    # Libtool will interpret -1 as no limit whatsoever
5399    lt_cv_sys_max_cmd_len=-1;
5400    ;;
5401
5402  cygwin* | mingw*)
5403    # On Win9x/ME, this test blows up -- it succeeds, but takes
5404    # about 5 minutes as the teststring grows exponentially.
5405    # Worse, since 9x/ME are not pre-emptively multitasking,
5406    # you end up with a "frozen" computer, even though with patience
5407    # the test eventually succeeds (with a max line length of 256k).
5408    # Instead, let's just punt: use the minimum linelength reported by
5409    # all of the supported platforms: 8192 (on NT/2K/XP).
5410    lt_cv_sys_max_cmd_len=8192;
5411    ;;
5412
5413  amigaos*)
5414    # On AmigaOS with pdksh, this test takes hours, literally.
5415    # So we just punt and use a minimum line length of 8192.
5416    lt_cv_sys_max_cmd_len=8192;
5417    ;;
5418
5419 *)
5420    # If test is not a shell built-in, we'll probably end up computing a
5421    # maximum length that is only half of the actual maximum length, but
5422    # we can't tell.
5423    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5424               = "XX$teststring") >/dev/null 2>&1 &&
5425            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5426            lt_cv_sys_max_cmd_len=$new_result &&
5427            test $i != 17 # 1/2 MB should be enough
5428    do
5429      i=`expr $i + 1`
5430      teststring=$teststring$teststring
5431    done
5432    teststring=
5433    # Add a significant safety factor because C++ compilers can tack on massive
5434    # amounts of additional arguments before passing them to the linker.
5435    # It appears as though 1/2 is a usable value.
5436    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5437    ;;
5438  esac
5439
5440fi
5441
5442if test -n $lt_cv_sys_max_cmd_len ; then
5443  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5444echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5445else
5446  echo "$as_me:$LINENO: result: none" >&5
5447echo "${ECHO_T}none" >&6
5448fi
5449
5450
5451
5452
5453# Check for command to grab the raw symbol name followed by C symbol from nm.
5454echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5455echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5456if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459
5460# These are sane defaults that work on at least a few old systems.
5461# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5462
5463# Character class describing NM global symbol codes.
5464symcode='[BCDEGRST]'
5465
5466# Regexp to match symbols that can be accessed directly from C.
5467sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5468
5469# Transform the above into a raw symbol and a C symbol.
5470symxfrm='\1 \2\3 \3'
5471
5472# Transform an extracted symbol line into a proper C declaration
5473lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5474
5475# Transform an extracted symbol line into symbol name and symbol address
5476lt_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'"
5477
5478# Define system-specific variables.
5479case $host_os in
5480aix*)
5481  symcode='[BCDT]'
5482  ;;
5483cygwin* | mingw* | pw32*)
5484  symcode='[ABCDGISTW]'
5485  ;;
5486hpux*) # Its linker distinguishes data from code symbols
5487  if test "$host_cpu" = ia64; then
5488    symcode='[ABCDEGRST]'
5489  fi
5490  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5491  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'"
5492  ;;
5493irix* | nonstopux*)
5494  symcode='[BCDEGRST]'
5495  ;;
5496osf*)
5497  symcode='[BCDEGQRST]'
5498  ;;
5499solaris* | sysv5*)
5500  symcode='[BDRT]'
5501  ;;
5502sysv4)
5503  symcode='[DFNSTU]'
5504  ;;
5505esac
5506
5507# Handle CRLF in mingw tool chain
5508opt_cr=
5509case $build_os in
5510mingw*)
5511  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5512  ;;
5513esac
5514
5515# If we're using GNU nm, then use its standard symbol codes.
5516case `$NM -V 2>&1` in
5517*GNU* | *'with BFD'*)
5518  symcode='[ABCDGIRSTW]' ;;
5519esac
5520
5521# Try without a prefix undercore, then with it.
5522for ac_symprfx in "" "_"; do
5523
5524  # Write the raw and C identifiers.
5525  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5526
5527  # Check to see that the pipe works correctly.
5528  pipe_works=no
5529
5530  rm -f conftest*
5531  cat > conftest.$ac_ext <<EOF
5532#ifdef __cplusplus
5533extern "C" {
5534#endif
5535char nm_test_var;
5536void nm_test_func(){}
5537#ifdef __cplusplus
5538}
5539#endif
5540int main(){nm_test_var='a';nm_test_func();return(0);}
5541EOF
5542
5543  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544  (eval $ac_compile) 2>&5
5545  ac_status=$?
5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547  (exit $ac_status); }; then
5548    # Now try to grab the symbols.
5549    nlist=conftest.nm
5550    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5551  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); } && test -s "$nlist"; then
5555      # Try sorting and uniquifying the output.
5556      if sort "$nlist" | uniq > "$nlist"T; then
5557        mv -f "$nlist"T "$nlist"
5558      else
5559        rm -f "$nlist"T
5560      fi
5561
5562      # Make sure that we snagged all the symbols we need.
5563      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5564        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5565          cat <<EOF > conftest.$ac_ext
5566#ifdef __cplusplus
5567extern "C" {
5568#endif
5569
5570EOF
5571          # Now generate the symbol file.
5572          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5573
5574          cat <<EOF >> conftest.$ac_ext
5575#if defined (__STDC__) && __STDC__
5576# define lt_ptr_t void *
5577#else
5578# define lt_ptr_t char *
5579# define const
5580#endif
5581
5582/* The mapping between symbol names and symbols. */
5583const struct {
5584  const char *name;
5585  lt_ptr_t address;
5586}
5587lt_preloaded_symbols[] =
5588{
5589EOF
5590          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5591          cat <<\EOF >> conftest.$ac_ext
5592  {0, (lt_ptr_t) 0}
5593};
5594
5595#ifdef __cplusplus
5596}
5597#endif
5598EOF
5599          # Now try linking the two files.
5600          mv conftest.$ac_objext conftstm.$ac_objext
5601          lt_save_LIBS="$LIBS"
5602          lt_save_CFLAGS="$CFLAGS"
5603          LIBS="conftstm.$ac_objext"
5604          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5605          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606  (eval $ac_link) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5610            pipe_works=yes
5611          fi
5612          LIBS="$lt_save_LIBS"
5613          CFLAGS="$lt_save_CFLAGS"
5614        else
5615          echo "cannot find nm_test_func in $nlist" >&5
5616        fi
5617      else
5618        echo "cannot find nm_test_var in $nlist" >&5
5619      fi
5620    else
5621      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5622    fi
5623  else
5624    echo "$progname: failed program was:" >&5
5625    cat conftest.$ac_ext >&5
5626  fi
5627  rm -f conftest* conftst*
5628
5629  # Do not use the global_symbol_pipe unless it works.
5630  if test "$pipe_works" = yes; then
5631    break
5632  else
5633    lt_cv_sys_global_symbol_pipe=
5634  fi
5635done
5636
5637fi
5638
5639if test -z "$lt_cv_sys_global_symbol_pipe"; then
5640  lt_cv_sys_global_symbol_to_cdecl=
5641fi
5642if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5643  echo "$as_me:$LINENO: result: failed" >&5
5644echo "${ECHO_T}failed" >&6
5645else
5646  echo "$as_me:$LINENO: result: ok" >&5
5647echo "${ECHO_T}ok" >&6
5648fi
5649
5650echo "$as_me:$LINENO: checking for objdir" >&5
5651echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5652if test "${lt_cv_objdir+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  rm -f .libs 2>/dev/null
5656mkdir .libs 2>/dev/null
5657if test -d .libs; then
5658  lt_cv_objdir=.libs
5659else
5660  # MS-DOS does not allow filenames that begin with a dot.
5661  lt_cv_objdir=_libs
5662fi
5663rmdir .libs 2>/dev/null
5664fi
5665echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5666echo "${ECHO_T}$lt_cv_objdir" >&6
5667objdir=$lt_cv_objdir
5668
5669
5670
5671
5672
5673case $host_os in
5674aix3*)
5675  # AIX sometimes has problems with the GCC collect2 program.  For some
5676  # reason, if we set the COLLECT_NAMES environment variable, the problems
5677  # vanish in a puff of smoke.
5678  if test "X${COLLECT_NAMES+set}" != Xset; then
5679    COLLECT_NAMES=
5680    export COLLECT_NAMES
5681  fi
5682  ;;
5683esac
5684
5685# Sed substitution that helps us do robust quoting.  It backslashifies
5686# metacharacters that are still active within double-quoted strings.
5687Xsed='sed -e s/^X//'
5688sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5689
5690# Same as above, but do not quote variable references.
5691double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5692
5693# Sed substitution to delay expansion of an escaped shell variable in a
5694# double_quote_subst'ed string.
5695delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5696
5697# Sed substitution to avoid accidental globbing in evaled expressions
5698no_glob_subst='s/\*/\\\*/g'
5699
5700# Constants:
5701rm="rm -f"
5702
5703# Global variables:
5704default_ofile=libtool
5705can_build_shared=yes
5706
5707# All known linkers require a `.a' archive for static linking (except M$VC,
5708# which needs '.lib').
5709libext=a
5710ltmain="$ac_aux_dir/ltmain.sh"
5711ofile="$default_ofile"
5712with_gnu_ld="$lt_cv_prog_gnu_ld"
5713
5714if test -n "$ac_tool_prefix"; then
5715  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}ar; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_AR+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$AR"; then
5723  ac_cv_prog_AR="$AR" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_AR="${ac_tool_prefix}ar"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739fi
5740fi
5741AR=$ac_cv_prog_AR
5742if test -n "$AR"; then
5743  echo "$as_me:$LINENO: result: $AR" >&5
5744echo "${ECHO_T}$AR" >&6
5745else
5746  echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750fi
5751if test -z "$ac_cv_prog_AR"; then
5752  ac_ct_AR=$AR
5753  # Extract the first word of "ar", so it can be a program name with args.
5754set dummy ar; ac_word=$2
5755echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  if test -n "$ac_ct_AR"; then
5761  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768  for ac_exec_ext in '' $ac_executable_extensions; do
5769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770    ac_cv_prog_ac_ct_AR="ar"
5771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775done
5776
5777  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5778fi
5779fi
5780ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781if test -n "$ac_ct_AR"; then
5782  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783echo "${ECHO_T}$ac_ct_AR" >&6
5784else
5785  echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787fi
5788
5789  AR=$ac_ct_AR
5790else
5791  AR="$ac_cv_prog_AR"
5792fi
5793
5794if test -n "$ac_tool_prefix"; then
5795  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5796set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5797echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799if test "${ac_cv_prog_RANLIB+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  if test -n "$RANLIB"; then
5803  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808  IFS=$as_save_IFS
5809  test -z "$as_dir" && as_dir=.
5810  for ac_exec_ext in '' $ac_executable_extensions; do
5811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814    break 2
5815  fi
5816done
5817done
5818
5819fi
5820fi
5821RANLIB=$ac_cv_prog_RANLIB
5822if test -n "$RANLIB"; then
5823  echo "$as_me:$LINENO: result: $RANLIB" >&5
5824echo "${ECHO_T}$RANLIB" >&6
5825else
5826  echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829
5830fi
5831if test -z "$ac_cv_prog_RANLIB"; then
5832  ac_ct_RANLIB=$RANLIB
5833  # Extract the first word of "ranlib", so it can be a program name with args.
5834set dummy ranlib; ac_word=$2
5835echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840  if test -n "$ac_ct_RANLIB"; then
5841  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848  for ac_exec_ext in '' $ac_executable_extensions; do
5849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850    ac_cv_prog_ac_ct_RANLIB="ranlib"
5851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852    break 2
5853  fi
5854done
5855done
5856
5857  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5858fi
5859fi
5860ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5861if test -n "$ac_ct_RANLIB"; then
5862  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5863echo "${ECHO_T}$ac_ct_RANLIB" >&6
5864else
5865  echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867fi
5868
5869  RANLIB=$ac_ct_RANLIB
5870else
5871  RANLIB="$ac_cv_prog_RANLIB"
5872fi
5873
5874if test -n "$ac_tool_prefix"; then
5875  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5876set dummy ${ac_tool_prefix}strip; ac_word=$2
5877echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879if test "${ac_cv_prog_STRIP+set}" = set; then
5880  echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882  if test -n "$STRIP"; then
5883  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890  for ac_exec_ext in '' $ac_executable_extensions; do
5891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897done
5898
5899fi
5900fi
5901STRIP=$ac_cv_prog_STRIP
5902if test -n "$STRIP"; then
5903  echo "$as_me:$LINENO: result: $STRIP" >&5
5904echo "${ECHO_T}$STRIP" >&6
5905else
5906  echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908fi
5909
5910fi
5911if test -z "$ac_cv_prog_STRIP"; then
5912  ac_ct_STRIP=$STRIP
5913  # Extract the first word of "strip", so it can be a program name with args.
5914set dummy strip; ac_word=$2
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  if test -n "$ac_ct_STRIP"; then
5921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928  for ac_exec_ext in '' $ac_executable_extensions; do
5929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930    ac_cv_prog_ac_ct_STRIP="strip"
5931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935done
5936
5937  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5938fi
5939fi
5940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5941if test -n "$ac_ct_STRIP"; then
5942  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5943echo "${ECHO_T}$ac_ct_STRIP" >&6
5944else
5945  echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947fi
5948
5949  STRIP=$ac_ct_STRIP
5950else
5951  STRIP="$ac_cv_prog_STRIP"
5952fi
5953
5954
5955old_CC="$CC"
5956old_CFLAGS="$CFLAGS"
5957
5958# Set sane defaults for various variables
5959test -z "$AR" && AR=ar
5960test -z "$AR_FLAGS" && AR_FLAGS=cru
5961test -z "$AS" && AS=as
5962test -z "$CC" && CC=cc
5963test -z "$LTCC" && LTCC=$CC
5964test -z "$DLLTOOL" && DLLTOOL=dlltool
5965test -z "$LD" && LD=ld
5966test -z "$LN_S" && LN_S="ln -s"
5967test -z "$MAGIC_CMD" && MAGIC_CMD=file
5968test -z "$NM" && NM=nm
5969test -z "$SED" && SED=sed
5970test -z "$OBJDUMP" && OBJDUMP=objdump
5971test -z "$RANLIB" && RANLIB=:
5972test -z "$STRIP" && STRIP=:
5973test -z "$ac_objext" && ac_objext=o
5974
5975# Determine commands to create old-style static archives.
5976old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5977old_postinstall_cmds='chmod 644 $oldlib'
5978old_postuninstall_cmds=
5979
5980if test -n "$RANLIB"; then
5981  case $host_os in
5982  openbsd*)
5983    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5984    ;;
5985  *)
5986    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5987    ;;
5988  esac
5989  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5990fi
5991
5992# Only perform the check for file, if the check method requires it
5993case $deplibs_check_method in
5994file_magic*)
5995  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5996    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5997echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  case $MAGIC_CMD in
6002[\\/*] |  ?:[\\/]*)
6003  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6004  ;;
6005*)
6006  lt_save_MAGIC_CMD="$MAGIC_CMD"
6007  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6008  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6009  for ac_dir in $ac_dummy; do
6010    IFS="$lt_save_ifs"
6011    test -z "$ac_dir" && ac_dir=.
6012    if test -f $ac_dir/${ac_tool_prefix}file; then
6013      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6014      if test -n "$file_magic_test_file"; then
6015        case $deplibs_check_method in
6016        "file_magic "*)
6017          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6018          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6019          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6020            $EGREP "$file_magic_regex" > /dev/null; then
6021            :
6022          else
6023            cat <<EOF 1>&2
6024
6025*** Warning: the command libtool uses to detect shared libraries,
6026*** $file_magic_cmd, produces output that libtool cannot recognize.
6027*** The result is that libtool may fail to recognize shared libraries
6028*** as such.  This will affect the creation of libtool libraries that
6029*** depend on shared libraries, but programs linked with such libtool
6030*** libraries will work regardless of this problem.  Nevertheless, you
6031*** may want to report the problem to your system manager and/or to
6032*** bug-libtool@gnu.org
6033
6034EOF
6035          fi ;;
6036        esac
6037      fi
6038      break
6039    fi
6040  done
6041  IFS="$lt_save_ifs"
6042  MAGIC_CMD="$lt_save_MAGIC_CMD"
6043  ;;
6044esac
6045fi
6046
6047MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6048if test -n "$MAGIC_CMD"; then
6049  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6050echo "${ECHO_T}$MAGIC_CMD" >&6
6051else
6052  echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054fi
6055
6056if test -z "$lt_cv_path_MAGIC_CMD"; then
6057  if test -n "$ac_tool_prefix"; then
6058    echo "$as_me:$LINENO: checking for file" >&5
6059echo $ECHO_N "checking for file... $ECHO_C" >&6
6060if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  case $MAGIC_CMD in
6064[\\/*] |  ?:[\\/]*)
6065  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6066  ;;
6067*)
6068  lt_save_MAGIC_CMD="$MAGIC_CMD"
6069  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6070  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6071  for ac_dir in $ac_dummy; do
6072    IFS="$lt_save_ifs"
6073    test -z "$ac_dir" && ac_dir=.
6074    if test -f $ac_dir/file; then
6075      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6076      if test -n "$file_magic_test_file"; then
6077        case $deplibs_check_method in
6078        "file_magic "*)
6079          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6080          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6081          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6082            $EGREP "$file_magic_regex" > /dev/null; then
6083            :
6084          else
6085            cat <<EOF 1>&2
6086
6087*** Warning: the command libtool uses to detect shared libraries,
6088*** $file_magic_cmd, produces output that libtool cannot recognize.
6089*** The result is that libtool may fail to recognize shared libraries
6090*** as such.  This will affect the creation of libtool libraries that
6091*** depend on shared libraries, but programs linked with such libtool
6092*** libraries will work regardless of this problem.  Nevertheless, you
6093*** may want to report the problem to your system manager and/or to
6094*** bug-libtool@gnu.org
6095
6096EOF
6097          fi ;;
6098        esac
6099      fi
6100      break
6101    fi
6102  done
6103  IFS="$lt_save_ifs"
6104  MAGIC_CMD="$lt_save_MAGIC_CMD"
6105  ;;
6106esac
6107fi
6108
6109MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6110if test -n "$MAGIC_CMD"; then
6111  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6112echo "${ECHO_T}$MAGIC_CMD" >&6
6113else
6114  echo "$as_me:$LINENO: result: no" >&5
6115echo "${ECHO_T}no" >&6
6116fi
6117
6118  else
6119    MAGIC_CMD=:
6120  fi
6121fi
6122
6123  fi
6124  ;;
6125esac
6126
6127enable_dlopen=no
6128enable_win32_dll=no
6129
6130# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6131if test "${enable_libtool_lock+set}" = set; then
6132  enableval="$enable_libtool_lock"
6133
6134fi;
6135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6136
6137
6138# Check whether --with-pic or --without-pic was given.
6139if test "${with_pic+set}" = set; then
6140  withval="$with_pic"
6141  pic_mode="$withval"
6142else
6143  pic_mode=default
6144fi;
6145test -z "$pic_mode" && pic_mode=default
6146
6147# Use C for the default configuration in the libtool script
6148tagname=
6149lt_save_CC="$CC"
6150ac_ext=c
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157# Source file extension for C test sources.
6158ac_ext=c
6159
6160# Object file extension for compiled C test sources.
6161objext=o
6162objext=$objext
6163
6164# Code to be used in simple compile tests
6165lt_simple_compile_test_code="int some_variable = 0;\n"
6166
6167# Code to be used in simple link tests
6168lt_simple_link_test_code='int main(){return(0);}\n'
6169
6170
6171# If no C compiler was specified, use CC.
6172LTCC=${LTCC-"$CC"}
6173
6174# Allow CC to be a program name with arguments.
6175compiler=$CC
6176
6177
6178#
6179# Check for any special shared library compilation flags.
6180#
6181lt_prog_cc_shlib=
6182if test "$GCC" = no; then
6183  case $host_os in
6184  sco3.2v5*)
6185    lt_prog_cc_shlib='-belf'
6186    ;;
6187  esac
6188fi
6189if test -n "$lt_prog_cc_shlib"; then
6190  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6191echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6192  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6193  else
6194    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6195echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6196    lt_cv_prog_cc_can_build_shared=no
6197  fi
6198fi
6199
6200
6201#
6202# Check to make sure the static flag actually works.
6203#
6204echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6205echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6206if test "${lt_prog_compiler_static_works+set}" = set; then
6207  echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209  lt_prog_compiler_static_works=no
6210   save_LDFLAGS="$LDFLAGS"
6211   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6212   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6213   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6214     # The compiler can only warn and ignore the option if not recognized
6215     # So say no if there are warnings
6216     if test -s conftest.err; then
6217       # Append any errors to the config.log.
6218       cat conftest.err 1>&5
6219     else
6220       lt_prog_compiler_static_works=yes
6221     fi
6222   fi
6223   $rm conftest*
6224   LDFLAGS="$save_LDFLAGS"
6225
6226fi
6227echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6228echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6229
6230if test x"$lt_prog_compiler_static_works" = xyes; then
6231    :
6232else
6233    lt_prog_compiler_static=
6234fi
6235
6236
6237
6238
6239lt_prog_compiler_no_builtin_flag=
6240
6241if test "$GCC" = yes; then
6242  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6243
6244
6245echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6246echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6247if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6248  echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250  lt_cv_prog_compiler_rtti_exceptions=no
6251  ac_outfile=conftest.$ac_objext
6252   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6253   lt_compiler_flag="-fno-rtti -fno-exceptions"
6254   # Insert the option either (1) after the last *FLAGS variable, or
6255   # (2) before a word containing "conftest.", or (3) at the end.
6256   # Note that $ac_compile itself does not contain backslashes and begins
6257   # with a dollar sign (not a hyphen), so the echo should work correctly.
6258   # The option is referenced via a variable to avoid confusing sed.
6259   lt_compile=`echo "$ac_compile" | $SED \
6260   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262   -e 's:$: $lt_compiler_flag:'`
6263   (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
6264   (eval "$lt_compile" 2>conftest.err)
6265   ac_status=$?
6266   cat conftest.err >&5
6267   echo "$as_me:6267: \$? = $ac_status" >&5
6268   if (exit $ac_status) && test -s "$ac_outfile"; then
6269     # The compiler can only warn and ignore the option if not recognized
6270     # So say no if there are warnings
6271     if test ! -s conftest.err; then
6272       lt_cv_prog_compiler_rtti_exceptions=yes
6273     fi
6274   fi
6275   $rm conftest*
6276
6277fi
6278echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6279echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6280
6281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6282    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6283else
6284    :
6285fi
6286
6287fi
6288
6289lt_prog_compiler_wl=
6290lt_prog_compiler_pic=
6291lt_prog_compiler_static=
6292
6293echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6294echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6295
6296  if test "$GCC" = yes; then
6297    lt_prog_compiler_wl='-Wl,'
6298    lt_prog_compiler_static='-static'
6299
6300    case $host_os in
6301      aix*)
6302      # All AIX code is PIC.
6303      if test "$host_cpu" = ia64; then
6304        # AIX 5 now supports IA64 processor
6305        lt_prog_compiler_static='-Bstatic'
6306      fi
6307      ;;
6308
6309    amigaos*)
6310      # FIXME: we need at least 68020 code to build shared libraries, but
6311      # adding the `-m68020' flag to GCC prevents building anything better,
6312      # like `-m68040'.
6313      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6314      ;;
6315
6316    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6317      # PIC is the default for these OSes.
6318      ;;
6319
6320    mingw* | pw32* | os2*)
6321      # This hack is so that the source file can tell whether it is being
6322      # built for inclusion in a dll (and should export symbols for example).
6323      lt_prog_compiler_pic='-DDLL_EXPORT'
6324      ;;
6325
6326    darwin* | rhapsody*)
6327      # PIC is the default on this platform
6328      # Common symbols not allowed in MH_DYLIB files
6329      lt_prog_compiler_pic='-fno-common'
6330      ;;
6331
6332    msdosdjgpp*)
6333      # Just because we use GCC doesn't mean we suddenly get shared libraries
6334      # on systems that don't support them.
6335      lt_prog_compiler_can_build_shared=no
6336      enable_shared=no
6337      ;;
6338
6339    sysv4*MP*)
6340      if test -d /usr/nec; then
6341        lt_prog_compiler_pic=-Kconform_pic
6342      fi
6343      ;;
6344
6345    hpux*)
6346      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6347      # not for PA HP-UX.
6348      case "$host_cpu" in
6349      hppa*64*|ia64*)
6350        # +Z the default
6351        ;;
6352      *)
6353        lt_prog_compiler_pic='-fPIC'
6354        ;;
6355      esac
6356      ;;
6357
6358    *)
6359      lt_prog_compiler_pic='-fPIC'
6360      ;;
6361    esac
6362  else
6363    # PORTME Check for flag to pass linker flags through the system compiler.
6364    case $host_os in
6365    aix*)
6366      lt_prog_compiler_wl='-Wl,'
6367      if test "$host_cpu" = ia64; then
6368        # AIX 5 now supports IA64 processor
6369        lt_prog_compiler_static='-Bstatic'
6370      else
6371        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6372      fi
6373      ;;
6374
6375    mingw* | pw32* | os2*)
6376      # This hack is so that the source file can tell whether it is being
6377      # built for inclusion in a dll (and should export symbols for example).
6378      lt_prog_compiler_pic='-DDLL_EXPORT'
6379      ;;
6380
6381    hpux9* | hpux10* | hpux11*)
6382      lt_prog_compiler_wl='-Wl,'
6383      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6384      # not for PA HP-UX.
6385      case "$host_cpu" in
6386      hppa*64*|ia64*)
6387        # +Z the default
6388        ;;
6389      *)
6390        lt_prog_compiler_pic='+Z'
6391        ;;
6392      esac
6393      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6394      lt_prog_compiler_static='${wl}-a ${wl}archive'
6395      ;;
6396
6397    irix5* | irix6* | nonstopux*)
6398      lt_prog_compiler_wl='-Wl,'
6399      # PIC (with -KPIC) is the default.
6400      lt_prog_compiler_static='-non_shared'
6401      ;;
6402
6403    newsos6)
6404      lt_prog_compiler_pic='-KPIC'
6405      lt_prog_compiler_static='-Bstatic'
6406      ;;
6407
6408    linux*)
6409      case $CC in
6410      icc* | ecc*)
6411        lt_prog_compiler_wl='-Wl,'
6412        lt_prog_compiler_pic='-KPIC'
6413        lt_prog_compiler_static='-static'
6414        ;;
6415      ccc*)
6416        lt_prog_compiler_wl='-Wl,'
6417        # All Alpha code is PIC.
6418        lt_prog_compiler_static='-non_shared'
6419        ;;
6420      esac
6421      ;;
6422
6423    osf3* | osf4* | osf5*)
6424      lt_prog_compiler_wl='-Wl,'
6425      # All OSF/1 code is PIC.
6426      lt_prog_compiler_static='-non_shared'
6427      ;;
6428
6429    sco3.2v5*)
6430      lt_prog_compiler_pic='-Kpic'
6431      lt_prog_compiler_static='-dn'
6432      ;;
6433
6434    solaris*)
6435      lt_prog_compiler_wl='-Wl,'
6436      lt_prog_compiler_pic='-KPIC'
6437      lt_prog_compiler_static='-Bstatic'
6438      ;;
6439
6440    sunos4*)
6441      lt_prog_compiler_wl='-Qoption ld '
6442      lt_prog_compiler_pic='-PIC'
6443      lt_prog_compiler_static='-Bstatic'
6444      ;;
6445
6446    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6447      lt_prog_compiler_wl='-Wl,'
6448      lt_prog_compiler_pic='-KPIC'
6449      lt_prog_compiler_static='-Bstatic'
6450      ;;
6451
6452    sysv4*MP*)
6453      if test -d /usr/nec ;then
6454        lt_prog_compiler_pic='-Kconform_pic'
6455        lt_prog_compiler_static='-Bstatic'
6456      fi
6457      ;;
6458
6459    uts4*)
6460      lt_prog_compiler_pic='-pic'
6461      lt_prog_compiler_static='-Bstatic'
6462      ;;
6463
6464    *)
6465      lt_prog_compiler_can_build_shared=no
6466      ;;
6467    esac
6468  fi
6469
6470echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6471echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6472
6473#
6474# Check to make sure the PIC flag actually works.
6475#
6476if test -n "$lt_prog_compiler_pic"; then
6477
6478echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6479echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6480if test "${lt_prog_compiler_pic_works+set}" = set; then
6481  echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
6483  lt_prog_compiler_pic_works=no
6484  ac_outfile=conftest.$ac_objext
6485   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6486   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6487   # Insert the option either (1) after the last *FLAGS variable, or
6488   # (2) before a word containing "conftest.", or (3) at the end.
6489   # Note that $ac_compile itself does not contain backslashes and begins
6490   # with a dollar sign (not a hyphen), so the echo should work correctly.
6491   # The option is referenced via a variable to avoid confusing sed.
6492   lt_compile=`echo "$ac_compile" | $SED \
6493   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495   -e 's:$: $lt_compiler_flag:'`
6496   (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
6497   (eval "$lt_compile" 2>conftest.err)
6498   ac_status=$?
6499   cat conftest.err >&5
6500   echo "$as_me:6500: \$? = $ac_status" >&5
6501   if (exit $ac_status) && test -s "$ac_outfile"; then
6502     # The compiler can only warn and ignore the option if not recognized
6503     # So say no if there are warnings
6504     if test ! -s conftest.err; then
6505       lt_prog_compiler_pic_works=yes
6506     fi
6507   fi
6508   $rm conftest*
6509
6510fi
6511echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6512echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6513
6514if test x"$lt_prog_compiler_pic_works" = xyes; then
6515    case $lt_prog_compiler_pic in
6516     "" | " "*) ;;
6517     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6518     esac
6519else
6520    lt_prog_compiler_pic=
6521     lt_prog_compiler_can_build_shared=no
6522fi
6523
6524fi
6525case "$host_os" in
6526  # For platforms which do not support PIC, -DPIC is meaningless:
6527  *djgpp*)
6528    lt_prog_compiler_pic=
6529    ;;
6530  *)
6531    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6532    ;;
6533esac
6534
6535echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6536echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6537if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540  lt_cv_prog_compiler_c_o=no
6541   $rm -r conftest 2>/dev/null
6542   mkdir conftest
6543   cd conftest
6544   mkdir out
6545   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6546
6547   lt_compiler_flag="-o out/conftest2.$ac_objext"
6548   # Insert the option either (1) after the last *FLAGS variable, or
6549   # (2) before a word containing "conftest.", or (3) at the end.
6550   # Note that $ac_compile itself does not contain backslashes and begins
6551   # with a dollar sign (not a hyphen), so the echo should work correctly.
6552   lt_compile=`echo "$ac_compile" | $SED \
6553   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6555   -e 's:$: $lt_compiler_flag:'`
6556   (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
6557   (eval "$lt_compile" 2>out/conftest.err)
6558   ac_status=$?
6559   cat out/conftest.err >&5
6560   echo "$as_me:6560: \$? = $ac_status" >&5
6561   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6562   then
6563     # The compiler can only warn and ignore the option if not recognized
6564     # So say no if there are warnings
6565     if test ! -s out/conftest.err; then
6566       lt_cv_prog_compiler_c_o=yes
6567     fi
6568   fi
6569   chmod u+w .
6570   $rm conftest*
6571   # SGI C++ compiler will create directory out/ii_files/ for
6572   # template instantiation
6573   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6574   $rm out/* && rmdir out
6575   cd ..
6576   rmdir conftest
6577   $rm conftest*
6578
6579fi
6580echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6581echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6582
6583
6584hard_links="nottested"
6585if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6586  # do not overwrite the value of need_locks provided by the user
6587  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6588echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6589  hard_links=yes
6590  $rm conftest*
6591  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592  touch conftest.a
6593  ln conftest.a conftest.b 2>&5 || hard_links=no
6594  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6595  echo "$as_me:$LINENO: result: $hard_links" >&5
6596echo "${ECHO_T}$hard_links" >&6
6597  if test "$hard_links" = no; then
6598    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6599echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6600    need_locks=warn
6601  fi
6602else
6603  need_locks=no
6604fi
6605
6606echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6607echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6608
6609  runpath_var=
6610  allow_undefined_flag=
6611  enable_shared_with_static_runtimes=no
6612  archive_cmds=
6613  archive_expsym_cmds=
6614  old_archive_From_new_cmds=
6615  old_archive_from_expsyms_cmds=
6616  export_dynamic_flag_spec=
6617  whole_archive_flag_spec=
6618  thread_safe_flag_spec=
6619  hardcode_libdir_flag_spec=
6620  hardcode_libdir_flag_spec_ld=
6621  hardcode_libdir_separator=
6622  hardcode_direct=no
6623  hardcode_minus_L=no
6624  hardcode_shlibpath_var=unsupported
6625  link_all_deplibs=unknown
6626  hardcode_automatic=no
6627  module_cmds=
6628  module_expsym_cmds=
6629  always_export_symbols=no
6630  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6631  # include_expsyms should be a list of space-separated symbols to be *always*
6632  # included in the symbol list
6633  include_expsyms=
6634  # exclude_expsyms can be an extended regexp of symbols to exclude
6635  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6636  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6637  # as well as any symbol that contains `d'.
6638  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6639  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6640  # platforms (ab)use it in PIC code, but their linkers get confused if
6641  # the symbol is explicitly referenced.  Since portable code cannot
6642  # rely on this symbol name, it's probably fine to never include it in
6643  # preloaded symbol tables.
6644  extract_expsyms_cmds=
6645
6646  case $host_os in
6647  cygwin* | mingw* | pw32*)
6648    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6649    # When not using gcc, we currently assume that we are using
6650    # Microsoft Visual C++.
6651    if test "$GCC" != yes; then
6652      with_gnu_ld=no
6653    fi
6654    ;;
6655  openbsd*)
6656    with_gnu_ld=no
6657    ;;
6658  esac
6659
6660  ld_shlibs=yes
6661  if test "$with_gnu_ld" = yes; then
6662    # If archive_cmds runs LD, not CC, wlarc should be empty
6663    wlarc='${wl}'
6664
6665    # See if GNU ld supports shared libraries.
6666    case $host_os in
6667    aix3* | aix4* | aix5*)
6668      # On AIX/PPC, the GNU linker is very broken
6669      if test "$host_cpu" != ia64; then
6670        ld_shlibs=no
6671        cat <<EOF 1>&2
6672
6673*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6674*** to be unable to reliably create shared libraries on AIX.
6675*** Therefore, libtool is disabling shared libraries support.  If you
6676*** really care for shared libraries, you may want to modify your PATH
6677*** so that a non-GNU linker is found, and then restart.
6678
6679EOF
6680      fi
6681      ;;
6682
6683    amigaos*)
6684      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)'
6685      hardcode_libdir_flag_spec='-L$libdir'
6686      hardcode_minus_L=yes
6687
6688      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6689      # that the semantics of dynamic libraries on AmigaOS, at least up
6690      # to version 4, is to share data among multiple programs linked
6691      # with the same dynamic library.  Since this doesn't match the
6692      # behavior of shared libraries on other platforms, we can't use
6693      # them.
6694      ld_shlibs=no
6695      ;;
6696
6697    beos*)
6698      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6699        allow_undefined_flag=unsupported
6700        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6701        # support --undefined.  This deserves some investigation.  FIXME
6702        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6703      else
6704        ld_shlibs=no
6705      fi
6706      ;;
6707
6708    cygwin* | mingw* | pw32*)
6709      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6710      # as there is no search path for DLLs.
6711      hardcode_libdir_flag_spec='-L$libdir'
6712      allow_undefined_flag=unsupported
6713      always_export_symbols=no
6714      enable_shared_with_static_runtimes=yes
6715      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6716
6717      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6718        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6719        # If the export-symbols file already is a .def file (1st line
6720        # is EXPORTS), use it as is; otherwise, prepend...
6721        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6722          cp $export_symbols $output_objdir/$soname.def;
6723        else
6724          echo EXPORTS > $output_objdir/$soname.def;
6725          cat $export_symbols >> $output_objdir/$soname.def;
6726        fi~
6727        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6728      else
6729        ld_shlibs=no
6730      fi
6731      ;;
6732
6733    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6734      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6735        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6736        wlarc=
6737      else
6738        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6740      fi
6741      ;;
6742
6743    solaris* | sysv5*)
6744      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6745        ld_shlibs=no
6746        cat <<EOF 1>&2
6747
6748*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6749*** create shared libraries on Solaris systems.  Therefore, libtool
6750*** is disabling shared libraries support.  We urge you to upgrade GNU
6751*** binutils to release 2.9.1 or newer.  Another option is to modify
6752*** your PATH or compiler configuration so that the native linker is
6753*** used, and then restart.
6754
6755EOF
6756      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759      else
6760        ld_shlibs=no
6761      fi
6762      ;;
6763
6764    sunos4*)
6765      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6766      wlarc=
6767      hardcode_direct=yes
6768      hardcode_shlibpath_var=no
6769      ;;
6770
6771  linux*)
6772    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6773        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774        archive_cmds="$tmp_archive_cmds"
6775      supports_anon_versioning=no
6776      case `$LD -v 2>/dev/null` in
6777        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6778        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6779        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6780        *\ 2.11.*) ;; # other 2.11 versions
6781        *) supports_anon_versioning=yes ;;
6782      esac
6783      if test $supports_anon_versioning = yes; then
6784        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6785cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6786$echo "local: *; };" >> $output_objdir/$libname.ver~
6787        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6788      else
6789        archive_expsym_cmds="$tmp_archive_cmds"
6790      fi
6791      link_all_deplibs=no
6792    else
6793      ld_shlibs=no
6794    fi
6795    ;;
6796
6797    *)
6798      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6799        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6801      else
6802        ld_shlibs=no
6803      fi
6804      ;;
6805    esac
6806
6807    if test "$ld_shlibs" = yes; then
6808      runpath_var=LD_RUN_PATH
6809      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6810      export_dynamic_flag_spec='${wl}--export-dynamic'
6811      # ancient GNU ld didn't support --whole-archive et. al.
6812      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6813        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6814      else
6815        whole_archive_flag_spec=
6816      fi
6817    fi
6818  else
6819    # PORTME fill in a description of your system's linker (not GNU ld)
6820    case $host_os in
6821    aix3*)
6822      allow_undefined_flag=unsupported
6823      always_export_symbols=yes
6824      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'
6825      # Note: this linker hardcodes the directories in LIBPATH if there
6826      # are no directories specified by -L.
6827      hardcode_minus_L=yes
6828      if test "$GCC" = yes && test -z "$link_static_flag"; then
6829        # Neither direct hardcoding nor static linking is supported with a
6830        # broken collect2.
6831        hardcode_direct=unsupported
6832      fi
6833      ;;
6834
6835    aix4* | aix5*)
6836      if test "$host_cpu" = ia64; then
6837        # On IA64, the linker does run time linking by default, so we don't
6838        # have to do anything special.
6839        aix_use_runtimelinking=no
6840        exp_sym_flag='-Bexport'
6841        no_entry_flag=""
6842      else
6843        # If we're using GNU nm, then we don't want the "-C" option.
6844        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6845        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6846          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'
6847        else
6848          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'
6849        fi
6850        aix_use_runtimelinking=no
6851
6852        # Test if we are trying to use run time linking or normal
6853        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6854        # need to do runtime linking.
6855        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6856          for ld_flag in $LDFLAGS; do
6857          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6858            aix_use_runtimelinking=yes
6859            break
6860          fi
6861          done
6862        esac
6863
6864        exp_sym_flag='-bexport'
6865        no_entry_flag='-bnoentry'
6866      fi
6867
6868      # When large executables or shared objects are built, AIX ld can
6869      # have problems creating the table of contents.  If linking a library
6870      # or program results in "error TOC overflow" add -mminimal-toc to
6871      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6872      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6873
6874      archive_cmds=''
6875      hardcode_direct=yes
6876      hardcode_libdir_separator=':'
6877      link_all_deplibs=yes
6878
6879      if test "$GCC" = yes; then
6880        case $host_os in aix4.012|aix4.012.*)
6881        # We only want to do this on AIX 4.2 and lower, the check
6882        # below for broken collect2 doesn't work under 4.3+
6883          collect2name=`${CC} -print-prog-name=collect2`
6884          if test -f "$collect2name" && \
6885           strings "$collect2name" | grep resolve_lib_name >/dev/null
6886          then
6887          # We have reworked collect2
6888          hardcode_direct=yes
6889          else
6890          # We have old collect2
6891          hardcode_direct=unsupported
6892          # It fails to find uninstalled libraries when the uninstalled
6893          # path is not listed in the libpath.  Setting hardcode_minus_L
6894          # to unsupported forces relinking
6895          hardcode_minus_L=yes
6896          hardcode_libdir_flag_spec='-L$libdir'
6897          hardcode_libdir_separator=
6898          fi
6899        esac
6900        shared_flag='-shared'
6901      else
6902        # not using gcc
6903        if test "$host_cpu" = ia64; then
6904        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6905        # chokes on -Wl,-G. The following line is correct:
6906          shared_flag='-G'
6907        else
6908        if test "$aix_use_runtimelinking" = yes; then
6909            shared_flag='${wl}-G'
6910          else
6911            shared_flag='${wl}-bM:SRE'
6912        fi
6913        fi
6914      fi
6915
6916      # It seems that -bexpall does not export symbols beginning with
6917      # underscore (_), so it is better to generate a list of symbols to export.
6918      always_export_symbols=yes
6919      if test "$aix_use_runtimelinking" = yes; then
6920        # Warning - without using the other runtime loading flags (-brtl),
6921        # -berok will link without error, but may produce a broken library.
6922        allow_undefined_flag='-berok'
6923       # Determine the default libpath from the value encoded in an empty executable.
6924       cat >conftest.$ac_ext <<_ACEOF
6925/* confdefs.h.  */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h.  */
6930
6931int
6932main ()
6933{
6934
6935  ;
6936  return 0;
6937}
6938_ACEOF
6939rm -f conftest.$ac_objext conftest$ac_exeext
6940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941  (eval $ac_link) 2>conftest.er1
6942  ac_status=$?
6943  grep -v '^ *+' conftest.er1 >conftest.err
6944  rm -f conftest.er1
6945  cat conftest.err >&5
6946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947  (exit $ac_status); } &&
6948         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950  (eval $ac_try) 2>&5
6951  ac_status=$?
6952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953  (exit $ac_status); }; } &&
6954         { ac_try='test -s conftest$ac_exeext'
6955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956  (eval $ac_try) 2>&5
6957  ac_status=$?
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); }; }; then
6960
6961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6962}'`
6963# Check for a 64-bit object if we didn't find anything.
6964if 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; }
6965}'`; fi
6966else
6967  echo "$as_me: failed program was:" >&5
6968sed 's/^/| /' conftest.$ac_ext >&5
6969
6970fi
6971rm -f conftest.err conftest.$ac_objext \
6972      conftest$ac_exeext conftest.$ac_ext
6973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6974
6975       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6976        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6977       else
6978        if test "$host_cpu" = ia64; then
6979          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6980          allow_undefined_flag="-z nodefs"
6981          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6982        else
6983         # Determine the default libpath from the value encoded in an empty executable.
6984         cat >conftest.$ac_ext <<_ACEOF
6985/* confdefs.h.  */
6986_ACEOF
6987cat confdefs.h >>conftest.$ac_ext
6988cat >>conftest.$ac_ext <<_ACEOF
6989/* end confdefs.h.  */
6990
6991int
6992main ()
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext conftest$ac_exeext
7000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001  (eval $ac_link) 2>conftest.er1
7002  ac_status=$?
7003  grep -v '^ *+' conftest.er1 >conftest.err
7004  rm -f conftest.er1
7005  cat conftest.err >&5
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); } &&
7008         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010  (eval $ac_try) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); }; } &&
7014         { ac_try='test -s conftest$ac_exeext'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; }; then
7020
7021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7022}'`
7023# Check for a 64-bit object if we didn't find anything.
7024if 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; }
7025}'`; fi
7026else
7027  echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030fi
7031rm -f conftest.err conftest.$ac_objext \
7032      conftest$ac_exeext conftest.$ac_ext
7033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7034
7035         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7036          # Warning - without using the other run time loading flags,
7037          # -berok will link without error, but may produce a broken library.
7038          no_undefined_flag=' ${wl}-bernotok'
7039          allow_undefined_flag=' ${wl}-berok'
7040          # -bexpall does not export symbols beginning with underscore (_)
7041          always_export_symbols=yes
7042          # Exported symbols can be pulled into shared objects from archives
7043          whole_archive_flag_spec=' '
7044          archive_cmds_need_lc=yes
7045          # This is similar to how AIX traditionally builds it's shared libraries.
7046          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7047        fi
7048      fi
7049      ;;
7050
7051    amigaos*)
7052      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)'
7053      hardcode_libdir_flag_spec='-L$libdir'
7054      hardcode_minus_L=yes
7055      # see comment about different semantics on the GNU ld section
7056      ld_shlibs=no
7057      ;;
7058
7059    bsdi4*)
7060      export_dynamic_flag_spec=-rdynamic
7061      ;;
7062
7063    cygwin* | mingw* | pw32*)
7064      # When not using gcc, we currently assume that we are using
7065      # Microsoft Visual C++.
7066      # hardcode_libdir_flag_spec is actually meaningless, as there is
7067      # no search path for DLLs.
7068      hardcode_libdir_flag_spec=' '
7069      allow_undefined_flag=unsupported
7070      # Tell ltmain to make .lib files, not .a files.
7071      libext=lib
7072      # Tell ltmain to make .dll files, not .so files.
7073      shrext_cmds=".dll"
7074      # FIXME: Setting linknames here is a bad hack.
7075      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7076      # The linker will automatically build a .lib file if we build a DLL.
7077      old_archive_From_new_cmds='true'
7078      # FIXME: Should let the user specify the lib program.
7079      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7080      fix_srcfile_path='`cygpath -w "$srcfile"`'
7081      enable_shared_with_static_runtimes=yes
7082      ;;
7083
7084    darwin* | rhapsody*)
7085    if test "$GXX" = yes ; then
7086      archive_cmds_need_lc=no
7087      case "$host_os" in
7088      rhapsody* | darwin1.[012])
7089        allow_undefined_flag='-undefined suppress'
7090        ;;
7091      *) # Darwin 1.3 on
7092      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7093        allow_undefined_flag='-flat_namespace -undefined suppress'
7094      else
7095        case ${MACOSX_DEPLOYMENT_TARGET} in
7096          10.[012])
7097            allow_undefined_flag='-flat_namespace -undefined suppress'
7098            ;;
7099          10.*)
7100            allow_undefined_flag='-undefined dynamic_lookup'
7101            ;;
7102        esac
7103      fi
7104        ;;
7105      esac
7106        lt_int_apple_cc_single_mod=no
7107        output_verbose_link_cmd='echo'
7108        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7109          lt_int_apple_cc_single_mod=yes
7110        fi
7111        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7112          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7113        else
7114        archive_cmds='$CC -r ${wl}-bind_at_load -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'
7115      fi
7116      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7117      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7118        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7119          archive_expsym_cmds='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}'
7120        else
7121          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7122        fi
7123          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}'
7124      hardcode_direct=no
7125      hardcode_automatic=yes
7126      hardcode_shlibpath_var=unsupported
7127      whole_archive_flag_spec='-all_load $convenience'
7128      link_all_deplibs=yes
7129    else
7130      ld_shlibs=no
7131    fi
7132      ;;
7133
7134    dgux*)
7135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7136      hardcode_libdir_flag_spec='-L$libdir'
7137      hardcode_shlibpath_var=no
7138      ;;
7139
7140    freebsd1*)
7141      ld_shlibs=no
7142      ;;
7143
7144    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7145    # support.  Future versions do this automatically, but an explicit c++rt0.o
7146    # does not break anything, and helps significantly (at the cost of a little
7147    # extra space).
7148    freebsd2.2*)
7149      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7150      hardcode_libdir_flag_spec='-R$libdir'
7151      hardcode_direct=yes
7152      hardcode_shlibpath_var=no
7153      ;;
7154
7155    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7156    freebsd2*)
7157      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7158      hardcode_direct=yes
7159      hardcode_minus_L=yes
7160      hardcode_shlibpath_var=no
7161      ;;
7162
7163    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7164    freebsd* | kfreebsd*-gnu)
7165      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7166      hardcode_libdir_flag_spec='-R$libdir'
7167      hardcode_direct=yes
7168      hardcode_shlibpath_var=no
7169      ;;
7170
7171    hpux9*)
7172      if test "$GCC" = yes; then
7173        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'
7174      else
7175        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'
7176      fi
7177      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7178      hardcode_libdir_separator=:
7179      hardcode_direct=yes
7180
7181      # hardcode_minus_L: Not really in the search PATH,
7182      # but as the default location of the library.
7183      hardcode_minus_L=yes
7184      export_dynamic_flag_spec='${wl}-E'
7185      ;;
7186
7187    hpux10* | hpux11*)
7188      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7189        case "$host_cpu" in
7190        hppa*64*|ia64*)
7191          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192          ;;
7193        *)
7194          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7195          ;;
7196        esac
7197      else
7198        case "$host_cpu" in
7199        hppa*64*|ia64*)
7200          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7201          ;;
7202        *)
7203          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7204          ;;
7205        esac
7206      fi
7207      if test "$with_gnu_ld" = no; then
7208        case "$host_cpu" in
7209        hppa*64*)
7210          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7211          hardcode_libdir_flag_spec_ld='+b $libdir'
7212          hardcode_libdir_separator=:
7213          hardcode_direct=no
7214          hardcode_shlibpath_var=no
7215          ;;
7216        ia64*)
7217          hardcode_libdir_flag_spec='-L$libdir'
7218          hardcode_direct=no
7219          hardcode_shlibpath_var=no
7220
7221          # hardcode_minus_L: Not really in the search PATH,
7222          # but as the default location of the library.
7223          hardcode_minus_L=yes
7224          ;;
7225        *)
7226          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7227          hardcode_libdir_separator=:
7228          hardcode_direct=yes
7229          export_dynamic_flag_spec='${wl}-E'
7230
7231          # hardcode_minus_L: Not really in the search PATH,
7232          # but as the default location of the library.
7233          hardcode_minus_L=yes
7234          ;;
7235        esac
7236      fi
7237      ;;
7238
7239    irix5* | irix6* | nonstopux*)
7240      if test "$GCC" = yes; then
7241        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'
7242      else
7243        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'
7244        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7245      fi
7246      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247      hardcode_libdir_separator=:
7248      link_all_deplibs=yes
7249      ;;
7250
7251    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7252      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7253        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7254      else
7255        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7256      fi
7257      hardcode_libdir_flag_spec='-R$libdir'
7258      hardcode_direct=yes
7259      hardcode_shlibpath_var=no
7260      ;;
7261
7262    newsos6)
7263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264      hardcode_direct=yes
7265      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7266      hardcode_libdir_separator=:
7267      hardcode_shlibpath_var=no
7268      ;;
7269
7270    openbsd*)
7271      hardcode_direct=yes
7272      hardcode_shlibpath_var=no
7273      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7274        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7275        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7276        export_dynamic_flag_spec='${wl}-E'
7277      else
7278       case $host_os in
7279         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7280           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7281           hardcode_libdir_flag_spec='-R$libdir'
7282           ;;
7283         *)
7284           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7285           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7286           ;;
7287       esac
7288      fi
7289      ;;
7290
7291    os2*)
7292      hardcode_libdir_flag_spec='-L$libdir'
7293      hardcode_minus_L=yes
7294      allow_undefined_flag=unsupported
7295      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'
7296      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7297      ;;
7298
7299    osf3*)
7300      if test "$GCC" = yes; then
7301        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7302        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'
7303      else
7304        allow_undefined_flag=' -expect_unresolved \*'
7305        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'
7306      fi
7307      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7308      hardcode_libdir_separator=:
7309      ;;
7310
7311    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7312      if test "$GCC" = yes; then
7313        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7314        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'
7315        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7316      else
7317        allow_undefined_flag=' -expect_unresolved \*'
7318        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'
7319        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7320        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7321
7322        # Both c and cxx compiler support -rpath directly
7323        hardcode_libdir_flag_spec='-rpath $libdir'
7324      fi
7325      hardcode_libdir_separator=:
7326      ;;
7327
7328    sco3.2v5*)
7329      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330      hardcode_shlibpath_var=no
7331      export_dynamic_flag_spec='${wl}-Bexport'
7332      runpath_var=LD_RUN_PATH
7333      hardcode_runpath_var=yes
7334      ;;
7335
7336    solaris*)
7337      no_undefined_flag=' -z text'
7338      if test "$GCC" = yes; then
7339        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7340        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7341          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7342      else
7343        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7345        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7346      fi
7347      hardcode_libdir_flag_spec='-R$libdir'
7348      hardcode_shlibpath_var=no
7349      case $host_os in
7350      solaris2.[0-5] | solaris2.[0-5].*) ;;
7351      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7352        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7353      esac
7354      link_all_deplibs=yes
7355      ;;
7356
7357    sunos4*)
7358      if test "x$host_vendor" = xsequent; then
7359        # Use $CC to link under sequent, because it throws in some extra .o
7360        # files that make .init and .fini sections work.
7361        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7362      else
7363        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7364      fi
7365      hardcode_libdir_flag_spec='-L$libdir'
7366      hardcode_direct=yes
7367      hardcode_minus_L=yes
7368      hardcode_shlibpath_var=no
7369      ;;
7370
7371    sysv4)
7372      case $host_vendor in
7373        sni)
7374          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375          hardcode_direct=yes # is this really true???
7376        ;;
7377        siemens)
7378          ## LD is ld it makes a PLAMLIB
7379          ## CC just makes a GrossModule.
7380          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7381          reload_cmds='$CC -r -o $output$reload_objs'
7382          hardcode_direct=no
7383        ;;
7384        motorola)
7385          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7386          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7387        ;;
7388      esac
7389      runpath_var='LD_RUN_PATH'
7390      hardcode_shlibpath_var=no
7391      ;;
7392
7393    sysv4.3*)
7394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395      hardcode_shlibpath_var=no
7396      export_dynamic_flag_spec='-Bexport'
7397      ;;
7398
7399    sysv4*MP*)
7400      if test -d /usr/nec; then
7401        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402        hardcode_shlibpath_var=no
7403        runpath_var=LD_RUN_PATH
7404        hardcode_runpath_var=yes
7405        ld_shlibs=yes
7406      fi
7407      ;;
7408
7409    sysv4.2uw2*)
7410      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7411      hardcode_direct=yes
7412      hardcode_minus_L=no
7413      hardcode_shlibpath_var=no
7414      hardcode_runpath_var=yes
7415      runpath_var=LD_RUN_PATH
7416      ;;
7417
7418   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7419      no_undefined_flag='${wl}-z ${wl}text'
7420      if test "$GCC" = yes; then
7421        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422      else
7423        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7424      fi
7425      runpath_var='LD_RUN_PATH'
7426      hardcode_shlibpath_var=no
7427      ;;
7428
7429    sysv5*)
7430      no_undefined_flag=' -z text'
7431      # $CC -shared without GNU ld will not create a library from C++
7432      # object files and a static libstdc++, better avoid it by now
7433      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7435                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7436      hardcode_libdir_flag_spec=
7437      hardcode_shlibpath_var=no
7438      runpath_var='LD_RUN_PATH'
7439      ;;
7440
7441    uts4*)
7442      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443      hardcode_libdir_flag_spec='-L$libdir'
7444      hardcode_shlibpath_var=no
7445      ;;
7446
7447    *)
7448      ld_shlibs=no
7449      ;;
7450    esac
7451  fi
7452
7453echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7454echo "${ECHO_T}$ld_shlibs" >&6
7455test "$ld_shlibs" = no && can_build_shared=no
7456
7457variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7458if test "$GCC" = yes; then
7459  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7460fi
7461
7462#
7463# Do we need to explicitly link libc?
7464#
7465case "x$archive_cmds_need_lc" in
7466x|xyes)
7467  # Assume -lc should be added
7468  archive_cmds_need_lc=yes
7469
7470  if test "$enable_shared" = yes && test "$GCC" = yes; then
7471    case $archive_cmds in
7472    *'~'*)
7473      # FIXME: we may have to deal with multi-command sequences.
7474      ;;
7475    '$CC '*)
7476      # Test whether the compiler implicitly links with -lc since on some
7477      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7478      # to ld, don't add -lc before -lgcc.
7479      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7480echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7481      $rm conftest*
7482      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7483
7484      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485  (eval $ac_compile) 2>&5
7486  ac_status=$?
7487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488  (exit $ac_status); } 2>conftest.err; then
7489        soname=conftest
7490        lib=conftest
7491        libobjs=conftest.$ac_objext
7492        deplibs=
7493        wl=$lt_prog_compiler_wl
7494        compiler_flags=-v
7495        linker_flags=-v
7496        verstring=
7497        output_objdir=.
7498        libname=conftest
7499        lt_save_allow_undefined_flag=$allow_undefined_flag
7500        allow_undefined_flag=
7501        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7502  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7503  ac_status=$?
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); }
7506        then
7507          archive_cmds_need_lc=no
7508        else
7509          archive_cmds_need_lc=yes
7510        fi
7511        allow_undefined_flag=$lt_save_allow_undefined_flag
7512      else
7513        cat conftest.err 1>&5
7514      fi
7515      $rm conftest*
7516      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7517echo "${ECHO_T}$archive_cmds_need_lc" >&6
7518      ;;
7519    esac
7520  fi
7521  ;;
7522esac
7523
7524echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7525echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7526library_names_spec=
7527libname_spec='lib$name'
7528soname_spec=
7529shrext_cmds=".so"
7530postinstall_cmds=
7531postuninstall_cmds=
7532finish_cmds=
7533finish_eval=
7534shlibpath_var=
7535shlibpath_overrides_runpath=unknown
7536version_type=none
7537dynamic_linker="$host_os ld.so"
7538sys_lib_dlsearch_path_spec="/lib /usr/lib"
7539if test "$GCC" = yes; then
7540  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7542    # if the path contains ";" then we assume it to be the separator
7543    # otherwise default to the standard path separator (i.e. ":") - it is
7544    # assumed that no part of a normal pathname contains ";" but that should
7545    # okay in the real world where ";" in dirpaths is itself problematic.
7546    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7547  else
7548    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7549  fi
7550else
7551  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7552fi
7553need_lib_prefix=unknown
7554hardcode_into_libs=no
7555
7556# when you set need_version to no, make sure it does not cause -set_version
7557# flags to be left without arguments
7558need_version=unknown
7559
7560case $host_os in
7561aix3*)
7562  version_type=linux
7563  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7564  shlibpath_var=LIBPATH
7565
7566  # AIX 3 has no versioning support, so we append a major version to the name.
7567  soname_spec='${libname}${release}${shared_ext}$major'
7568  ;;
7569
7570aix4* | aix5*)
7571  version_type=linux
7572  need_lib_prefix=no
7573  need_version=no
7574  hardcode_into_libs=yes
7575  if test "$host_cpu" = ia64; then
7576    # AIX 5 supports IA64
7577    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7578    shlibpath_var=LD_LIBRARY_PATH
7579  else
7580    # With GCC up to 2.95.x, collect2 would create an import file
7581    # for dependence libraries.  The import file would start with
7582    # the line `#! .'.  This would cause the generated library to
7583    # depend on `.', always an invalid library.  This was fixed in
7584    # development snapshots of GCC prior to 3.0.
7585    case $host_os in
7586      aix4 | aix4.[01] | aix4.[01].*)
7587      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7588           echo ' yes '
7589           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7590        :
7591      else
7592        can_build_shared=no
7593      fi
7594      ;;
7595    esac
7596    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7597    # soname into executable. Probably we can add versioning support to
7598    # collect2, so additional links can be useful in future.
7599    if test "$aix_use_runtimelinking" = yes; then
7600      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7601      # instead of lib<name>.a to let people know that these are not
7602      # typical AIX shared libraries.
7603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7604    else
7605      # We preserve .a as extension for shared libraries through AIX4.2
7606      # and later when we are not doing run time linking.
7607      library_names_spec='${libname}${release}.a $libname.a'
7608      soname_spec='${libname}${release}${shared_ext}$major'
7609    fi
7610    shlibpath_var=LIBPATH
7611  fi
7612  ;;
7613
7614amigaos*)
7615  library_names_spec='$libname.ixlibrary $libname.a'
7616  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7617  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'
7618  ;;
7619
7620beos*)
7621  library_names_spec='${libname}${shared_ext}'
7622  dynamic_linker="$host_os ld.so"
7623  shlibpath_var=LIBRARY_PATH
7624  ;;
7625
7626bsdi4*)
7627  version_type=linux
7628  need_version=no
7629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7630  soname_spec='${libname}${release}${shared_ext}$major'
7631  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7632  shlibpath_var=LD_LIBRARY_PATH
7633  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7634  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7635  # the default ld.so.conf also contains /usr/contrib/lib and
7636  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7637  # libtool to hard-code these into programs
7638  ;;
7639
7640cygwin* | mingw* | pw32*)
7641  version_type=windows
7642  shrext_cmds=".dll"
7643  need_version=no
7644  need_lib_prefix=no
7645
7646  case $GCC,$host_os in
7647  yes,cygwin* | yes,mingw* | yes,pw32*)
7648    library_names_spec='$libname.dll.a'
7649    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7650    postinstall_cmds='base_file=`basename \${file}`~
7651      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7652      dldir=$destdir/`dirname \$dlpath`~
7653      test -d \$dldir || mkdir -p \$dldir~
7654      $install_prog $dir/$dlname \$dldir/$dlname'
7655    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7656      dlpath=$dir/\$dldll~
7657       $rm \$dlpath'
7658    shlibpath_overrides_runpath=yes
7659
7660    case $host_os in
7661    cygwin*)
7662      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7663      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7664      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7665      ;;
7666    mingw*)
7667      # MinGW DLLs use traditional 'lib' prefix
7668      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7669      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7670      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7671        # It is most probably a Windows format PATH printed by
7672        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7673        # path with ; separators, and with drive letters. We can handle the
7674        # drive letters (cygwin fileutils understands them), so leave them,
7675        # especially as we might pass files found there to a mingw objdump,
7676        # which wouldn't understand a cygwinified path. Ahh.
7677        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7678      else
7679        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7680      fi
7681      ;;
7682    pw32*)
7683      # pw32 DLLs use 'pw' prefix rather than 'lib'
7684      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7685      ;;
7686    esac
7687    ;;
7688
7689  *)
7690    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7691    ;;
7692  esac
7693  dynamic_linker='Win32 ld.exe'
7694  # FIXME: first we should search . and the directory the executable is in
7695  shlibpath_var=PATH
7696  ;;
7697
7698darwin* | rhapsody*)
7699  dynamic_linker="$host_os dyld"
7700  version_type=darwin
7701  need_lib_prefix=no
7702  need_version=no
7703  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7704  soname_spec='${libname}${release}${major}$shared_ext'
7705  shlibpath_overrides_runpath=yes
7706  shlibpath_var=DYLD_LIBRARY_PATH
7707  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7708  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7709  if test "$GCC" = yes; then
7710    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"`
7711  else
7712    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7713  fi
7714  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7715  ;;
7716
7717dgux*)
7718  version_type=linux
7719  need_lib_prefix=no
7720  need_version=no
7721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7722  soname_spec='${libname}${release}${shared_ext}$major'
7723  shlibpath_var=LD_LIBRARY_PATH
7724  ;;
7725
7726freebsd1*)
7727  dynamic_linker=no
7728  ;;
7729
7730kfreebsd*-gnu)
7731  version_type=linux
7732  need_lib_prefix=no
7733  need_version=no
7734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7735  soname_spec='${libname}${release}${shared_ext}$major'
7736  shlibpath_var=LD_LIBRARY_PATH
7737  shlibpath_overrides_runpath=no
7738  hardcode_into_libs=yes
7739  dynamic_linker='GNU ld.so'
7740  ;;
7741
7742freebsd*)
7743  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7744  version_type=freebsd-$objformat
7745  case $version_type in
7746    freebsd-elf*)
7747      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7748      need_version=no
7749      need_lib_prefix=no
7750      ;;
7751    freebsd-*)
7752      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7753      need_version=yes
7754      ;;
7755  esac
7756  shlibpath_var=LD_LIBRARY_PATH
7757  case $host_os in
7758  freebsd2*)
7759    shlibpath_overrides_runpath=yes
7760    ;;
7761  freebsd3.01* | freebsdelf3.01*)
7762    shlibpath_overrides_runpath=yes
7763    hardcode_into_libs=yes
7764    ;;
7765  *) # from 3.2 on
7766    shlibpath_overrides_runpath=no
7767    hardcode_into_libs=yes
7768    ;;
7769  esac
7770  ;;
7771
7772gnu*)
7773  version_type=linux
7774  need_lib_prefix=no
7775  need_version=no
7776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7777  soname_spec='${libname}${release}${shared_ext}$major'
7778  shlibpath_var=LD_LIBRARY_PATH
7779  hardcode_into_libs=yes
7780  ;;
7781
7782hpux9* | hpux10* | hpux11*)
7783  # Give a soname corresponding to the major version so that dld.sl refuses to
7784  # link against other versions.
7785  version_type=sunos
7786  need_lib_prefix=no
7787  need_version=no
7788  case "$host_cpu" in
7789  ia64*)
7790    shrext_cmds='.so'
7791    hardcode_into_libs=yes
7792    dynamic_linker="$host_os dld.so"
7793    shlibpath_var=LD_LIBRARY_PATH
7794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7795    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796    soname_spec='${libname}${release}${shared_ext}$major'
7797    if test "X$HPUX_IA64_MODE" = X32; then
7798      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7799    else
7800      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7801    fi
7802    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7803    ;;
7804   hppa*64*)
7805     shrext_cmds='.sl'
7806     hardcode_into_libs=yes
7807     dynamic_linker="$host_os dld.sl"
7808     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7809     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7811     soname_spec='${libname}${release}${shared_ext}$major'
7812     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7813     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7814     ;;
7815   *)
7816    shrext_cmds='.sl'
7817    dynamic_linker="$host_os dld.sl"
7818    shlibpath_var=SHLIB_PATH
7819    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7820    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821    soname_spec='${libname}${release}${shared_ext}$major'
7822    ;;
7823  esac
7824  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7825  postinstall_cmds='chmod 555 $lib'
7826  ;;
7827
7828irix5* | irix6* | nonstopux*)
7829  case $host_os in
7830    nonstopux*) version_type=nonstopux ;;
7831    *)
7832        if test "$lt_cv_prog_gnu_ld" = yes; then
7833                version_type=linux
7834        else
7835                version_type=irix
7836        fi ;;
7837  esac
7838  need_lib_prefix=no
7839  need_version=no
7840  soname_spec='${libname}${release}${shared_ext}$major'
7841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7842  case $host_os in
7843  irix5* | nonstopux*)
7844    libsuff= shlibsuff=
7845    ;;
7846  *)
7847    case $LD in # libtool.m4 will add one of these switches to LD
7848    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7849      libsuff= shlibsuff= libmagic=32-bit;;
7850    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7851      libsuff=32 shlibsuff=N32 libmagic=N32;;
7852    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7853      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7854    *) libsuff= shlibsuff= libmagic=never-match;;
7855    esac
7856    ;;
7857  esac
7858  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7859  shlibpath_overrides_runpath=no
7860  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7861  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7862  hardcode_into_libs=yes
7863  ;;
7864
7865# No shared lib support for Linux oldld, aout, or coff.
7866linux*oldld* | linux*aout* | linux*coff*)
7867  dynamic_linker=no
7868  ;;
7869
7870# This must be Linux ELF.
7871linux*)
7872  version_type=linux
7873  need_lib_prefix=no
7874  need_version=no
7875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7876  soname_spec='${libname}${release}${shared_ext}$major'
7877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7878  shlibpath_var=LD_LIBRARY_PATH
7879  shlibpath_overrides_runpath=no
7880  # This implies no fast_install, which is unacceptable.
7881  # Some rework will be needed to allow for fast_install
7882  # before this can be enabled.
7883  hardcode_into_libs=yes
7884
7885  # Append ld.so.conf contents to the search path
7886  if test -f /etc/ld.so.conf; then
7887    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7888    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7889  fi
7890
7891  # We used to test for /lib/ld.so.1 and disable shared libraries on
7892  # powerpc, because MkLinux only supported shared libraries with the
7893  # GNU dynamic linker.  Since this was broken with cross compilers,
7894  # most powerpc-linux boxes support dynamic linking these days and
7895  # people can always --disable-shared, the test was removed, and we
7896  # assume the GNU/Linux dynamic linker is in use.
7897  dynamic_linker='GNU/Linux ld.so'
7898  ;;
7899
7900netbsdelf*-gnu)
7901  version_type=linux
7902  need_lib_prefix=no
7903  need_version=no
7904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7905  soname_spec='${libname}${release}${shared_ext}$major'
7906  shlibpath_var=LD_LIBRARY_PATH
7907  shlibpath_overrides_runpath=no
7908  hardcode_into_libs=yes
7909  dynamic_linker='NetBSD ld.elf_so'
7910  ;;
7911
7912knetbsd*-gnu)
7913  version_type=linux
7914  need_lib_prefix=no
7915  need_version=no
7916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7917  soname_spec='${libname}${release}${shared_ext}$major'
7918  shlibpath_var=LD_LIBRARY_PATH
7919  shlibpath_overrides_runpath=no
7920  hardcode_into_libs=yes
7921  dynamic_linker='GNU ld.so'
7922  ;;
7923
7924netbsd*)
7925  version_type=sunos
7926  need_lib_prefix=no
7927  need_version=no
7928  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931    dynamic_linker='NetBSD (a.out) ld.so'
7932  else
7933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7934    soname_spec='${libname}${release}${shared_ext}$major'
7935    dynamic_linker='NetBSD ld.elf_so'
7936  fi
7937  shlibpath_var=LD_LIBRARY_PATH
7938  shlibpath_overrides_runpath=yes
7939  hardcode_into_libs=yes
7940  ;;
7941
7942newsos6)
7943  version_type=linux
7944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945  shlibpath_var=LD_LIBRARY_PATH
7946  shlibpath_overrides_runpath=yes
7947  ;;
7948
7949nto-qnx*)
7950  version_type=linux
7951  need_lib_prefix=no
7952  need_version=no
7953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954  soname_spec='${libname}${release}${shared_ext}$major'
7955  shlibpath_var=LD_LIBRARY_PATH
7956  shlibpath_overrides_runpath=yes
7957  ;;
7958
7959openbsd*)
7960  version_type=sunos
7961  need_lib_prefix=no
7962  need_version=yes
7963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7964  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7965  shlibpath_var=LD_LIBRARY_PATH
7966  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7967    case $host_os in
7968      openbsd2.[89] | openbsd2.[89].*)
7969        shlibpath_overrides_runpath=no
7970        ;;
7971      *)
7972        shlibpath_overrides_runpath=yes
7973        ;;
7974      esac
7975  else
7976    shlibpath_overrides_runpath=yes
7977  fi
7978  ;;
7979
7980os2*)
7981  libname_spec='$name'
7982  shrext_cmds=".dll"
7983  need_lib_prefix=no
7984  library_names_spec='$libname${shared_ext} $libname.a'
7985  dynamic_linker='OS/2 ld.exe'
7986  shlibpath_var=LIBPATH
7987  ;;
7988
7989osf3* | osf4* | osf5*)
7990  version_type=osf
7991  need_lib_prefix=no
7992  need_version=no
7993  soname_spec='${libname}${release}${shared_ext}$major'
7994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7995  shlibpath_var=LD_LIBRARY_PATH
7996  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7997  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7998  ;;
7999
8000sco3.2v5*)
8001  version_type=osf
8002  soname_spec='${libname}${release}${shared_ext}$major'
8003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004  shlibpath_var=LD_LIBRARY_PATH
8005  ;;
8006
8007solaris*)
8008  version_type=linux
8009  need_lib_prefix=no
8010  need_version=no
8011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012  soname_spec='${libname}${release}${shared_ext}$major'
8013  shlibpath_var=LD_LIBRARY_PATH
8014  shlibpath_overrides_runpath=yes
8015  hardcode_into_libs=yes
8016  # ldd complains unless libraries are executable
8017  postinstall_cmds='chmod +x $lib'
8018  ;;
8019
8020sunos4*)
8021  version_type=sunos
8022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8023  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8024  shlibpath_var=LD_LIBRARY_PATH
8025  shlibpath_overrides_runpath=yes
8026  if test "$with_gnu_ld" = yes; then
8027    need_lib_prefix=no
8028  fi
8029  need_version=yes
8030  ;;
8031
8032sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8033  version_type=linux
8034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8035  soname_spec='${libname}${release}${shared_ext}$major'
8036  shlibpath_var=LD_LIBRARY_PATH
8037  case $host_vendor in
8038    sni)
8039      shlibpath_overrides_runpath=no
8040      need_lib_prefix=no
8041      export_dynamic_flag_spec='${wl}-Blargedynsym'
8042      runpath_var=LD_RUN_PATH
8043      ;;
8044    siemens)
8045      need_lib_prefix=no
8046      ;;
8047    motorola)
8048      need_lib_prefix=no
8049      need_version=no
8050      shlibpath_overrides_runpath=no
8051      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8052      ;;
8053  esac
8054  ;;
8055
8056sysv4*MP*)
8057  if test -d /usr/nec ;then
8058    version_type=linux
8059    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8060    soname_spec='$libname${shared_ext}.$major'
8061    shlibpath_var=LD_LIBRARY_PATH
8062  fi
8063  ;;
8064
8065uts4*)
8066  version_type=linux
8067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8068  soname_spec='${libname}${release}${shared_ext}$major'
8069  shlibpath_var=LD_LIBRARY_PATH
8070  ;;
8071
8072*)
8073  dynamic_linker=no
8074  ;;
8075esac
8076echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8077echo "${ECHO_T}$dynamic_linker" >&6
8078test "$dynamic_linker" = no && can_build_shared=no
8079
8080echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8081echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8082hardcode_action=
8083if test -n "$hardcode_libdir_flag_spec" || \
8084   test -n "$runpath_var " || \
8085   test "X$hardcode_automatic"="Xyes" ; then
8086
8087  # We can hardcode non-existant directories.
8088  if test "$hardcode_direct" != no &&
8089     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8090     # have to relink, otherwise we might link with an installed library
8091     # when we should be linking with a yet-to-be-installed one
8092     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8093     test "$hardcode_minus_L" != no; then
8094    # Linking always hardcodes the temporary library directory.
8095    hardcode_action=relink
8096  else
8097    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8098    hardcode_action=immediate
8099  fi
8100else
8101  # We cannot hardcode anything, or else we can only hardcode existing
8102  # directories.
8103  hardcode_action=unsupported
8104fi
8105echo "$as_me:$LINENO: result: $hardcode_action" >&5
8106echo "${ECHO_T}$hardcode_action" >&6
8107
8108if test "$hardcode_action" = relink; then
8109  # Fast installation is not supported
8110  enable_fast_install=no
8111elif test "$shlibpath_overrides_runpath" = yes ||
8112     test "$enable_shared" = no; then
8113  # Fast installation is not necessary
8114  enable_fast_install=needless
8115fi
8116
8117striplib=
8118old_striplib=
8119echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8120echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8121if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8122  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8123  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8124  echo "$as_me:$LINENO: result: yes" >&5
8125echo "${ECHO_T}yes" >&6
8126else
8127# FIXME - insert some real tests, host_os isn't really good enough
8128  case $host_os in
8129   darwin*)
8130       if test -n "$STRIP" ; then
8131         striplib="$STRIP -x"
8132         echo "$as_me:$LINENO: result: yes" >&5
8133echo "${ECHO_T}yes" >&6
8134       else
8135  echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
8137fi
8138       ;;
8139   *)
8140  echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6
8142    ;;
8143  esac
8144fi
8145
8146if test "x$enable_dlopen" != xyes; then
8147  enable_dlopen=unknown
8148  enable_dlopen_self=unknown
8149  enable_dlopen_self_static=unknown
8150else
8151  lt_cv_dlopen=no
8152  lt_cv_dlopen_libs=
8153
8154  case $host_os in
8155  beos*)
8156    lt_cv_dlopen="load_add_on"
8157    lt_cv_dlopen_libs=
8158    lt_cv_dlopen_self=yes
8159    ;;
8160
8161  mingw* | pw32*)
8162    lt_cv_dlopen="LoadLibrary"
8163    lt_cv_dlopen_libs=
8164   ;;
8165
8166  cygwin*)
8167    lt_cv_dlopen="dlopen"
8168    lt_cv_dlopen_libs=
8169   ;;
8170
8171  darwin*)
8172  # if libdl is installed we need to link against it
8173    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8174echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8175if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8176  echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178  ac_check_lib_save_LIBS=$LIBS
8179LIBS="-ldl  $LIBS"
8180cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h.  */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h.  */
8186
8187/* Override any gcc2 internal prototype to avoid an error.  */
8188#ifdef __cplusplus
8189extern "C"
8190#endif
8191/* We use char because int might match the return type of a gcc2
8192   builtin and then its argument prototype would still apply.  */
8193char dlopen ();
8194int
8195main ()
8196{
8197dlopen ();
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext conftest$ac_exeext
8203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204  (eval $ac_link) 2>conftest.er1
8205  ac_status=$?
8206  grep -v '^ *+' conftest.er1 >conftest.err
8207  rm -f conftest.er1
8208  cat conftest.err >&5
8209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210  (exit $ac_status); } &&
8211         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213  (eval $ac_try) 2>&5
8214  ac_status=$?
8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); }; } &&
8217         { ac_try='test -s conftest$ac_exeext'
8218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219  (eval $ac_try) 2>&5
8220  ac_status=$?
8221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222  (exit $ac_status); }; }; then
8223  ac_cv_lib_dl_dlopen=yes
8224else
8225  echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228ac_cv_lib_dl_dlopen=no
8229fi
8230rm -f conftest.err conftest.$ac_objext \
8231      conftest$ac_exeext conftest.$ac_ext
8232LIBS=$ac_check_lib_save_LIBS
8233fi
8234echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8235echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8236if test $ac_cv_lib_dl_dlopen = yes; then
8237  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8238else
8239
8240    lt_cv_dlopen="dyld"
8241    lt_cv_dlopen_libs=
8242    lt_cv_dlopen_self=yes
8243
8244fi
8245
8246   ;;
8247
8248  *)
8249    echo "$as_me:$LINENO: checking for shl_load" >&5
8250echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8251if test "${ac_cv_func_shl_load+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h.  */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h.  */
8260/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8261   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8262#define shl_load innocuous_shl_load
8263
8264/* System header to define __stub macros and hopefully few prototypes,
8265    which can conflict with char shl_load (); below.
8266    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267    <limits.h> exists even on freestanding compilers.  */
8268
8269#ifdef __STDC__
8270# include <limits.h>
8271#else
8272# include <assert.h>
8273#endif
8274
8275#undef shl_load
8276
8277/* Override any gcc2 internal prototype to avoid an error.  */
8278#ifdef __cplusplus
8279extern "C"
8280{
8281#endif
8282/* We use char because int might match the return type of a gcc2
8283   builtin and then its argument prototype would still apply.  */
8284char shl_load ();
8285/* The GNU C library defines this for functions which it implements
8286    to always fail with ENOSYS.  Some functions are actually named
8287    something starting with __ and the normal name is an alias.  */
8288#if defined (__stub_shl_load) || defined (__stub___shl_load)
8289choke me
8290#else
8291char (*f) () = shl_load;
8292#endif
8293#ifdef __cplusplus
8294}
8295#endif
8296
8297int
8298main ()
8299{
8300return f != shl_load;
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305rm -f conftest.$ac_objext conftest$ac_exeext
8306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307  (eval $ac_link) 2>conftest.er1
8308  ac_status=$?
8309  grep -v '^ *+' conftest.er1 >conftest.err
8310  rm -f conftest.er1
8311  cat conftest.err >&5
8312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); } &&
8314         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316  (eval $ac_try) 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); }; } &&
8320         { ac_try='test -s conftest$ac_exeext'
8321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322  (eval $ac_try) 2>&5
8323  ac_status=$?
8324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325  (exit $ac_status); }; }; then
8326  ac_cv_func_shl_load=yes
8327else
8328  echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331ac_cv_func_shl_load=no
8332fi
8333rm -f conftest.err conftest.$ac_objext \
8334      conftest$ac_exeext conftest.$ac_ext
8335fi
8336echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8337echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8338if test $ac_cv_func_shl_load = yes; then
8339  lt_cv_dlopen="shl_load"
8340else
8341  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8342echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8343if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8344  echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346  ac_check_lib_save_LIBS=$LIBS
8347LIBS="-ldld  $LIBS"
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h.  */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h.  */
8354
8355/* Override any gcc2 internal prototype to avoid an error.  */
8356#ifdef __cplusplus
8357extern "C"
8358#endif
8359/* We use char because int might match the return type of a gcc2
8360   builtin and then its argument prototype would still apply.  */
8361char shl_load ();
8362int
8363main ()
8364{
8365shl_load ();
8366  ;
8367  return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372  (eval $ac_link) 2>conftest.er1
8373  ac_status=$?
8374  grep -v '^ *+' conftest.er1 >conftest.err
8375  rm -f conftest.er1
8376  cat conftest.err >&5
8377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378  (exit $ac_status); } &&
8379         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381  (eval $ac_try) 2>&5
8382  ac_status=$?
8383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384  (exit $ac_status); }; } &&
8385         { ac_try='test -s conftest$ac_exeext'
8386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387  (eval $ac_try) 2>&5
8388  ac_status=$?
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); }; }; then
8391  ac_cv_lib_dld_shl_load=yes
8392else
8393  echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396ac_cv_lib_dld_shl_load=no
8397fi
8398rm -f conftest.err conftest.$ac_objext \
8399      conftest$ac_exeext conftest.$ac_ext
8400LIBS=$ac_check_lib_save_LIBS
8401fi
8402echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8403echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8404if test $ac_cv_lib_dld_shl_load = yes; then
8405  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8406else
8407  echo "$as_me:$LINENO: checking for dlopen" >&5
8408echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8409if test "${ac_cv_func_dlopen+set}" = set; then
8410  echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412  cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h.  */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h.  */
8418/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8420#define dlopen innocuous_dlopen
8421
8422/* System header to define __stub macros and hopefully few prototypes,
8423    which can conflict with char dlopen (); below.
8424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8425    <limits.h> exists even on freestanding compilers.  */
8426
8427#ifdef __STDC__
8428# include <limits.h>
8429#else
8430# include <assert.h>
8431#endif
8432
8433#undef dlopen
8434
8435/* Override any gcc2 internal prototype to avoid an error.  */
8436#ifdef __cplusplus
8437extern "C"
8438{
8439#endif
8440/* We use char because int might match the return type of a gcc2
8441   builtin and then its argument prototype would still apply.  */
8442char dlopen ();
8443/* The GNU C library defines this for functions which it implements
8444    to always fail with ENOSYS.  Some functions are actually named
8445    something starting with __ and the normal name is an alias.  */
8446#if defined (__stub_dlopen) || defined (__stub___dlopen)
8447choke me
8448#else
8449char (*f) () = dlopen;
8450#endif
8451#ifdef __cplusplus
8452}
8453#endif
8454
8455int
8456main ()
8457{
8458return f != dlopen;
8459  ;
8460  return 0;
8461}
8462_ACEOF
8463rm -f conftest.$ac_objext conftest$ac_exeext
8464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465  (eval $ac_link) 2>conftest.er1
8466  ac_status=$?
8467  grep -v '^ *+' conftest.er1 >conftest.err
8468  rm -f conftest.er1
8469  cat conftest.err >&5
8470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471  (exit $ac_status); } &&
8472         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474  (eval $ac_try) 2>&5
8475  ac_status=$?
8476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477  (exit $ac_status); }; } &&
8478         { ac_try='test -s conftest$ac_exeext'
8479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480  (eval $ac_try) 2>&5
8481  ac_status=$?
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); }; }; then
8484  ac_cv_func_dlopen=yes
8485else
8486  echo "$as_me: failed program was:" >&5
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489ac_cv_func_dlopen=no
8490fi
8491rm -f conftest.err conftest.$ac_objext \
8492      conftest$ac_exeext conftest.$ac_ext
8493fi
8494echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8495echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8496if test $ac_cv_func_dlopen = yes; then
8497  lt_cv_dlopen="dlopen"
8498else
8499  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8500echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8501if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  ac_check_lib_save_LIBS=$LIBS
8505LIBS="-ldl  $LIBS"
8506cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h.  */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h.  */
8512
8513/* Override any gcc2 internal prototype to avoid an error.  */
8514#ifdef __cplusplus
8515extern "C"
8516#endif
8517/* We use char because int might match the return type of a gcc2
8518   builtin and then its argument prototype would still apply.  */
8519char dlopen ();
8520int
8521main ()
8522{
8523dlopen ();
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530  (eval $ac_link) 2>conftest.er1
8531  ac_status=$?
8532  grep -v '^ *+' conftest.er1 >conftest.err
8533  rm -f conftest.er1
8534  cat conftest.err >&5
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); } &&
8537         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; } &&
8543         { ac_try='test -s conftest$ac_exeext'
8544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545  (eval $ac_try) 2>&5
8546  ac_status=$?
8547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); }; }; then
8549  ac_cv_lib_dl_dlopen=yes
8550else
8551  echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554ac_cv_lib_dl_dlopen=no
8555fi
8556rm -f conftest.err conftest.$ac_objext \
8557      conftest$ac_exeext conftest.$ac_ext
8558LIBS=$ac_check_lib_save_LIBS
8559fi
8560echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8561echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8562if test $ac_cv_lib_dl_dlopen = yes; then
8563  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8564else
8565  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8566echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8567if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8568  echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570  ac_check_lib_save_LIBS=$LIBS
8571LIBS="-lsvld  $LIBS"
8572cat >conftest.$ac_ext <<_ACEOF
8573/* confdefs.h.  */
8574_ACEOF
8575cat confdefs.h >>conftest.$ac_ext
8576cat >>conftest.$ac_ext <<_ACEOF
8577/* end confdefs.h.  */
8578
8579/* Override any gcc2 internal prototype to avoid an error.  */
8580#ifdef __cplusplus
8581extern "C"
8582#endif
8583/* We use char because int might match the return type of a gcc2
8584   builtin and then its argument prototype would still apply.  */
8585char dlopen ();
8586int
8587main ()
8588{
8589dlopen ();
8590  ;
8591  return 0;
8592}
8593_ACEOF
8594rm -f conftest.$ac_objext conftest$ac_exeext
8595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596  (eval $ac_link) 2>conftest.er1
8597  ac_status=$?
8598  grep -v '^ *+' conftest.er1 >conftest.err
8599  rm -f conftest.er1
8600  cat conftest.err >&5
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); } &&
8603         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605  (eval $ac_try) 2>&5
8606  ac_status=$?
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); }; } &&
8609         { ac_try='test -s conftest$ac_exeext'
8610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611  (eval $ac_try) 2>&5
8612  ac_status=$?
8613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614  (exit $ac_status); }; }; then
8615  ac_cv_lib_svld_dlopen=yes
8616else
8617  echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
8620ac_cv_lib_svld_dlopen=no
8621fi
8622rm -f conftest.err conftest.$ac_objext \
8623      conftest$ac_exeext conftest.$ac_ext
8624LIBS=$ac_check_lib_save_LIBS
8625fi
8626echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8627echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8628if test $ac_cv_lib_svld_dlopen = yes; then
8629  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8630else
8631  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8632echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8633if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  ac_check_lib_save_LIBS=$LIBS
8637LIBS="-ldld  $LIBS"
8638cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h.  */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h.  */
8644
8645/* Override any gcc2 internal prototype to avoid an error.  */
8646#ifdef __cplusplus
8647extern "C"
8648#endif
8649/* We use char because int might match the return type of a gcc2
8650   builtin and then its argument prototype would still apply.  */
8651char dld_link ();
8652int
8653main ()
8654{
8655dld_link ();
8656  ;
8657  return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext conftest$ac_exeext
8661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8662  (eval $ac_link) 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } &&
8669         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671  (eval $ac_try) 2>&5
8672  ac_status=$?
8673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674  (exit $ac_status); }; } &&
8675         { ac_try='test -s conftest$ac_exeext'
8676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677  (eval $ac_try) 2>&5
8678  ac_status=$?
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); }; }; then
8681  ac_cv_lib_dld_dld_link=yes
8682else
8683  echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686ac_cv_lib_dld_dld_link=no
8687fi
8688rm -f conftest.err conftest.$ac_objext \
8689      conftest$ac_exeext conftest.$ac_ext
8690LIBS=$ac_check_lib_save_LIBS
8691fi
8692echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8693echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8694if test $ac_cv_lib_dld_dld_link = yes; then
8695  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8696fi
8697
8698
8699fi
8700
8701
8702fi
8703
8704
8705fi
8706
8707
8708fi
8709
8710
8711fi
8712
8713    ;;
8714  esac
8715
8716  if test "x$lt_cv_dlopen" != xno; then
8717    enable_dlopen=yes
8718  else
8719    enable_dlopen=no
8720  fi
8721
8722  case $lt_cv_dlopen in
8723  dlopen)
8724    save_CPPFLAGS="$CPPFLAGS"
8725    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8726
8727    save_LDFLAGS="$LDFLAGS"
8728    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8729
8730    save_LIBS="$LIBS"
8731    LIBS="$lt_cv_dlopen_libs $LIBS"
8732
8733    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8734echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8735if test "${lt_cv_dlopen_self+set}" = set; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738          if test "$cross_compiling" = yes; then :
8739  lt_cv_dlopen_self=cross
8740else
8741  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8742  lt_status=$lt_dlunknown
8743  cat > conftest.$ac_ext <<EOF
8744#line 8744 "configure"
8745#include "confdefs.h"
8746
8747#if HAVE_DLFCN_H
8748#include <dlfcn.h>
8749#endif
8750
8751#include <stdio.h>
8752
8753#ifdef RTLD_GLOBAL
8754#  define LT_DLGLOBAL           RTLD_GLOBAL
8755#else
8756#  ifdef DL_GLOBAL
8757#    define LT_DLGLOBAL         DL_GLOBAL
8758#  else
8759#    define LT_DLGLOBAL         0
8760#  endif
8761#endif
8762
8763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8764   find out it does not work in some platform. */
8765#ifndef LT_DLLAZY_OR_NOW
8766#  ifdef RTLD_LAZY
8767#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8768#  else
8769#    ifdef DL_LAZY
8770#      define LT_DLLAZY_OR_NOW          DL_LAZY
8771#    else
8772#      ifdef RTLD_NOW
8773#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8774#      else
8775#        ifdef DL_NOW
8776#          define LT_DLLAZY_OR_NOW      DL_NOW
8777#        else
8778#          define LT_DLLAZY_OR_NOW      0
8779#        endif
8780#      endif
8781#    endif
8782#  endif
8783#endif
8784
8785#ifdef __cplusplus
8786extern "C" void exit (int);
8787#endif
8788
8789void fnord() { int i=42;}
8790int main ()
8791{
8792  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8793  int status = $lt_dlunknown;
8794
8795  if (self)
8796    {
8797      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8798      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8799      /* dlclose (self); */
8800    }
8801
8802    exit (status);
8803}
8804EOF
8805  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806  (eval $ac_link) 2>&5
8807  ac_status=$?
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8810    (./conftest; exit; ) 2>/dev/null
8811    lt_status=$?
8812    case x$lt_status in
8813      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8814      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8815      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8816    esac
8817  else :
8818    # compilation failed
8819    lt_cv_dlopen_self=no
8820  fi
8821fi
8822rm -fr conftest*
8823
8824
8825fi
8826echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8827echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8828
8829    if test "x$lt_cv_dlopen_self" = xyes; then
8830      LDFLAGS="$LDFLAGS $link_static_flag"
8831      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8832echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8833if test "${lt_cv_dlopen_self_static+set}" = set; then
8834  echo $ECHO_N "(cached) $ECHO_C" >&6
8835else
8836          if test "$cross_compiling" = yes; then :
8837  lt_cv_dlopen_self_static=cross
8838else
8839  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8840  lt_status=$lt_dlunknown
8841  cat > conftest.$ac_ext <<EOF
8842#line 8842 "configure"
8843#include "confdefs.h"
8844
8845#if HAVE_DLFCN_H
8846#include <dlfcn.h>
8847#endif
8848
8849#include <stdio.h>
8850
8851#ifdef RTLD_GLOBAL
8852#  define LT_DLGLOBAL           RTLD_GLOBAL
8853#else
8854#  ifdef DL_GLOBAL
8855#    define LT_DLGLOBAL         DL_GLOBAL
8856#  else
8857#    define LT_DLGLOBAL         0
8858#  endif
8859#endif
8860
8861/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8862   find out it does not work in some platform. */
8863#ifndef LT_DLLAZY_OR_NOW
8864#  ifdef RTLD_LAZY
8865#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8866#  else
8867#    ifdef DL_LAZY
8868#      define LT_DLLAZY_OR_NOW          DL_LAZY
8869#    else
8870#      ifdef RTLD_NOW
8871#        define LT_DLLAZY_OR_NOW        RTLD_NOW
8872#      else
8873#        ifdef DL_NOW
8874#          define LT_DLLAZY_OR_NOW      DL_NOW
8875#        else
8876#          define LT_DLLAZY_OR_NOW      0
8877#        endif
8878#      endif
8879#    endif
8880#  endif
8881#endif
8882
8883#ifdef __cplusplus
8884extern "C" void exit (int);
8885#endif
8886
8887void fnord() { int i=42;}
8888int main ()
8889{
8890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8891  int status = $lt_dlunknown;
8892
8893  if (self)
8894    {
8895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8896      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8897      /* dlclose (self); */
8898    }
8899
8900    exit (status);
8901}
8902EOF
8903  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904  (eval $ac_link) 2>&5
8905  ac_status=$?
8906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8908    (./conftest; exit; ) 2>/dev/null
8909    lt_status=$?
8910    case x$lt_status in
8911      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8912      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8913      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8914    esac
8915  else :
8916    # compilation failed
8917    lt_cv_dlopen_self_static=no
8918  fi
8919fi
8920rm -fr conftest*
8921
8922
8923fi
8924echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8925echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8926    fi
8927
8928    CPPFLAGS="$save_CPPFLAGS"
8929    LDFLAGS="$save_LDFLAGS"
8930    LIBS="$save_LIBS"
8931    ;;
8932  esac
8933
8934  case $lt_cv_dlopen_self in
8935  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8936  *) enable_dlopen_self=unknown ;;
8937  esac
8938
8939  case $lt_cv_dlopen_self_static in
8940  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8941  *) enable_dlopen_self_static=unknown ;;
8942  esac
8943fi
8944
8945
8946# Report which librarie types wil actually be built
8947echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8948echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8949echo "$as_me:$LINENO: result: $can_build_shared" >&5
8950echo "${ECHO_T}$can_build_shared" >&6
8951
8952echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8953echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8954test "$can_build_shared" = "no" && enable_shared=no
8955
8956# On AIX, shared libraries and static libraries use the same namespace, and
8957# are all built from PIC.
8958case "$host_os" in
8959aix3*)
8960  test "$enable_shared" = yes && enable_static=no
8961  if test -n "$RANLIB"; then
8962    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8963    postinstall_cmds='$RANLIB $lib'
8964  fi
8965  ;;
8966
8967aix4* | aix5*)
8968  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8969    test "$enable_shared" = yes && enable_static=no
8970  fi
8971  ;;
8972  darwin* | rhapsody*)
8973  if test "$GCC" = yes; then
8974    archive_cmds_need_lc=no
8975    case "$host_os" in
8976    rhapsody* | darwin1.[012])
8977      allow_undefined_flag='-undefined suppress'
8978      ;;
8979    *) # Darwin 1.3 on
8980      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8981        allow_undefined_flag='-flat_namespace -undefined suppress'
8982      else
8983        case ${MACOSX_DEPLOYMENT_TARGET} in
8984          10.[012])
8985            allow_undefined_flag='-flat_namespace -undefined suppress'
8986            ;;
8987          10.*)
8988            allow_undefined_flag='-undefined dynamic_lookup'
8989            ;;
8990        esac
8991      fi
8992      ;;
8993    esac
8994    output_verbose_link_cmd='echo'
8995    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8996    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8997    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8998    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}'
8999    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}'
9000    hardcode_direct=no
9001    hardcode_automatic=yes
9002    hardcode_shlibpath_var=unsupported
9003    whole_archive_flag_spec='-all_load $convenience'
9004    link_all_deplibs=yes
9005  else
9006    ld_shlibs=no
9007  fi
9008    ;;
9009esac
9010echo "$as_me:$LINENO: result: $enable_shared" >&5
9011echo "${ECHO_T}$enable_shared" >&6
9012
9013echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9014echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9015# Make sure either enable_shared or enable_static is yes.
9016test "$enable_shared" = yes || enable_static=yes
9017echo "$as_me:$LINENO: result: $enable_static" >&5
9018echo "${ECHO_T}$enable_static" >&6
9019
9020# The else clause should only fire when bootstrapping the
9021# libtool distribution, otherwise you forgot to ship ltmain.sh
9022# with your package, and you will get complaints that there are
9023# no rules to generate ltmain.sh.
9024if test -f "$ltmain"; then
9025  # See if we are running on zsh, and set the options which allow our commands through
9026  # without removal of \ escapes.
9027  if test -n "${ZSH_VERSION+set}" ; then
9028    setopt NO_GLOB_SUBST
9029  fi
9030  # Now quote all the things that may contain metacharacters while being
9031  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9032  # variables and quote the copies for generation of the libtool script.
9033  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9034    SED SHELL STRIP \
9035    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9036    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9037    deplibs_check_method reload_flag reload_cmds need_locks \
9038    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9039    lt_cv_sys_global_symbol_to_c_name_address \
9040    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9041    old_postinstall_cmds old_postuninstall_cmds \
9042    compiler \
9043    CC \
9044    LD \
9045    lt_prog_compiler_wl \
9046    lt_prog_compiler_pic \
9047    lt_prog_compiler_static \
9048    lt_prog_compiler_no_builtin_flag \
9049    export_dynamic_flag_spec \
9050    thread_safe_flag_spec \
9051    whole_archive_flag_spec \
9052    enable_shared_with_static_runtimes \
9053    old_archive_cmds \
9054    old_archive_from_new_cmds \
9055    predep_objects \
9056    postdep_objects \
9057    predeps \
9058    postdeps \
9059    compiler_lib_search_path \
9060    archive_cmds \
9061    archive_expsym_cmds \
9062    postinstall_cmds \
9063    postuninstall_cmds \
9064    old_archive_from_expsyms_cmds \
9065    allow_undefined_flag \
9066    no_undefined_flag \
9067    export_symbols_cmds \
9068    hardcode_libdir_flag_spec \
9069    hardcode_libdir_flag_spec_ld \
9070    hardcode_libdir_separator \
9071    hardcode_automatic \
9072    module_cmds \
9073    module_expsym_cmds \
9074    lt_cv_prog_compiler_c_o \
9075    exclude_expsyms \
9076    include_expsyms; do
9077
9078    case $var in
9079    old_archive_cmds | \
9080    old_archive_from_new_cmds | \
9081    archive_cmds | \
9082    archive_expsym_cmds | \
9083    module_cmds | \
9084    module_expsym_cmds | \
9085    old_archive_from_expsyms_cmds | \
9086    export_symbols_cmds | \
9087    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9088    postinstall_cmds | postuninstall_cmds | \
9089    old_postinstall_cmds | old_postuninstall_cmds | \
9090    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9091      # Double-quote double-evaled strings.
9092      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9093      ;;
9094    *)
9095      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9096      ;;
9097    esac
9098  done
9099
9100  case $lt_echo in
9101  *'\$0 --fallback-echo"')
9102    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9103    ;;
9104  esac
9105
9106cfgfile="${ofile}T"
9107  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9108  $rm -f "$cfgfile"
9109  { echo "$as_me:$LINENO: creating $ofile" >&5
9110echo "$as_me: creating $ofile" >&6;}
9111
9112  cat <<__EOF__ >> "$cfgfile"
9113#! $SHELL
9114
9115# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9116# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9118#
9119# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9120# Free Software Foundation, Inc.
9121#
9122# This file is part of GNU Libtool:
9123# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9124#
9125# This program is free software; you can redistribute it and/or modify
9126# it under the terms of the GNU General Public License as published by
9127# the Free Software Foundation; either version 2 of the License, or
9128# (at your option) any later version.
9129#
9130# This program is distributed in the hope that it will be useful, but
9131# WITHOUT ANY WARRANTY; without even the implied warranty of
9132# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9133# General Public License for more details.
9134#
9135# You should have received a copy of the GNU General Public License
9136# along with this program; if not, write to the Free Software
9137# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9138#
9139# As a special exception to the GNU General Public License, if you
9140# distribute this file as part of a program that contains a
9141# configuration script generated by Autoconf, you may include it under
9142# the same distribution terms that you use for the rest of that program.
9143
9144# A sed program that does not truncate output.
9145SED=$lt_SED
9146
9147# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9148Xsed="$SED -e s/^X//"
9149
9150# The HP-UX ksh and POSIX shell print the target directory to stdout
9151# if CDPATH is set.
9152if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9153
9154# The names of the tagged configurations supported by this script.
9155available_tags=
9156
9157# ### BEGIN LIBTOOL CONFIG
9158
9159# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9160
9161# Shell to use when invoking shell scripts.
9162SHELL=$lt_SHELL
9163
9164# Whether or not to build shared libraries.
9165build_libtool_libs=$enable_shared
9166
9167# Whether or not to build static libraries.
9168build_old_libs=$enable_static
9169
9170# Whether or not to add -lc for building shared libraries.
9171build_libtool_need_lc=$archive_cmds_need_lc
9172
9173# Whether or not to disallow shared libs when runtime libs are static
9174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9175
9176# Whether or not to optimize for fast installation.
9177fast_install=$enable_fast_install
9178
9179# The host system.
9180host_alias=$host_alias
9181host=$host
9182
9183# An echo program that does not interpret backslashes.
9184echo=$lt_echo
9185
9186# The archiver.
9187AR=$lt_AR
9188AR_FLAGS=$lt_AR_FLAGS
9189
9190# A C compiler.
9191LTCC=$lt_LTCC
9192
9193# A language-specific compiler.
9194CC=$lt_compiler
9195
9196# Is the compiler the GNU C compiler?
9197with_gcc=$GCC
9198
9199# An ERE matcher.
9200EGREP=$lt_EGREP
9201
9202# The linker used to build libraries.
9203LD=$lt_LD
9204
9205# Whether we need hard or soft links.
9206LN_S=$lt_LN_S
9207
9208# A BSD-compatible nm program.
9209NM=$lt_NM
9210
9211# A symbol stripping program
9212STRIP=$lt_STRIP
9213
9214# Used to examine libraries when file_magic_cmd begins "file"
9215MAGIC_CMD=$MAGIC_CMD
9216
9217# Used on cygwin: DLL creation program.
9218DLLTOOL="$DLLTOOL"
9219
9220# Used on cygwin: object dumper.
9221OBJDUMP="$OBJDUMP"
9222
9223# Used on cygwin: assembler.
9224AS="$AS"
9225
9226# The name of the directory that contains temporary libtool files.
9227objdir=$objdir
9228
9229# How to create reloadable object files.
9230reload_flag=$lt_reload_flag
9231reload_cmds=$lt_reload_cmds
9232
9233# How to pass a linker flag through the compiler.
9234wl=$lt_lt_prog_compiler_wl
9235
9236# Object file suffix (normally "o").
9237objext="$ac_objext"
9238
9239# Old archive suffix (normally "a").
9240libext="$libext"
9241
9242# Shared library suffix (normally ".so").
9243shrext_cmds='$shrext_cmds'
9244
9245# Executable file suffix (normally "").
9246exeext="$exeext"
9247
9248# Additional compiler flags for building library objects.
9249pic_flag=$lt_lt_prog_compiler_pic
9250pic_mode=$pic_mode
9251
9252# What is the maximum length of a command?
9253max_cmd_len=$lt_cv_sys_max_cmd_len
9254
9255# Does compiler simultaneously support -c and -o options?
9256compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9257
9258# Must we lock files when doing compilation ?
9259need_locks=$lt_need_locks
9260
9261# Do we need the lib prefix for modules?
9262need_lib_prefix=$need_lib_prefix
9263
9264# Do we need a version for libraries?
9265need_version=$need_version
9266
9267# Whether dlopen is supported.
9268dlopen_support=$enable_dlopen
9269
9270# Whether dlopen of programs is supported.
9271dlopen_self=$enable_dlopen_self
9272
9273# Whether dlopen of statically linked programs is supported.
9274dlopen_self_static=$enable_dlopen_self_static
9275
9276# Compiler flag to prevent dynamic linking.
9277link_static_flag=$lt_lt_prog_compiler_static
9278
9279# Compiler flag to turn off builtin functions.
9280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9281
9282# Compiler flag to allow reflexive dlopens.
9283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9284
9285# Compiler flag to generate shared objects directly from archives.
9286whole_archive_flag_spec=$lt_whole_archive_flag_spec
9287
9288# Compiler flag to generate thread-safe objects.
9289thread_safe_flag_spec=$lt_thread_safe_flag_spec
9290
9291# Library versioning type.
9292version_type=$version_type
9293
9294# Format of library name prefix.
9295libname_spec=$lt_libname_spec
9296
9297# List of archive names.  First name is the real one, the rest are links.
9298# The last name is the one that the linker finds with -lNAME.
9299library_names_spec=$lt_library_names_spec
9300
9301# The coded name of the library, if different from the real name.
9302soname_spec=$lt_soname_spec
9303
9304# Commands used to build and install an old-style archive.
9305RANLIB=$lt_RANLIB
9306old_archive_cmds=$lt_old_archive_cmds
9307old_postinstall_cmds=$lt_old_postinstall_cmds
9308old_postuninstall_cmds=$lt_old_postuninstall_cmds
9309
9310# Create an old-style archive from a shared archive.
9311old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9312
9313# Create a temporary old-style archive to link instead of a shared archive.
9314old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9315
9316# Commands used to build and install a shared archive.
9317archive_cmds=$lt_archive_cmds
9318archive_expsym_cmds=$lt_archive_expsym_cmds
9319postinstall_cmds=$lt_postinstall_cmds
9320postuninstall_cmds=$lt_postuninstall_cmds
9321
9322# Commands used to build a loadable module (assumed same as above if empty)
9323module_cmds=$lt_module_cmds
9324module_expsym_cmds=$lt_module_expsym_cmds
9325
9326# Commands to strip libraries.
9327old_striplib=$lt_old_striplib
9328striplib=$lt_striplib
9329
9330# Dependencies to place before the objects being linked to create a
9331# shared library.
9332predep_objects=$lt_predep_objects
9333
9334# Dependencies to place after the objects being linked to create a
9335# shared library.
9336postdep_objects=$lt_postdep_objects
9337
9338# Dependencies to place before the objects being linked to create a
9339# shared library.
9340predeps=$lt_predeps
9341
9342# Dependencies to place after the objects being linked to create a
9343# shared library.
9344postdeps=$lt_postdeps
9345
9346# The library search path used internally by the compiler when linking
9347# a shared library.
9348compiler_lib_search_path=$lt_compiler_lib_search_path
9349
9350# Method to check whether dependent libraries are shared objects.
9351deplibs_check_method=$lt_deplibs_check_method
9352
9353# Command to use when deplibs_check_method == file_magic.
9354file_magic_cmd=$lt_file_magic_cmd
9355
9356# Flag that allows shared libraries with undefined symbols to be built.
9357allow_undefined_flag=$lt_allow_undefined_flag
9358
9359# Flag that forces no undefined symbols.
9360no_undefined_flag=$lt_no_undefined_flag
9361
9362# Commands used to finish a libtool library installation in a directory.
9363finish_cmds=$lt_finish_cmds
9364
9365# Same as above, but a single script fragment to be evaled but not shown.
9366finish_eval=$lt_finish_eval
9367
9368# Take the output of nm and produce a listing of raw symbols and C names.
9369global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9370
9371# Transform the output of nm in a proper C declaration
9372global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9373
9374# Transform the output of nm in a C name address pair
9375global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9376
9377# This is the shared library runtime path variable.
9378runpath_var=$runpath_var
9379
9380# This is the shared library path variable.
9381shlibpath_var=$shlibpath_var
9382
9383# Is shlibpath searched before the hard-coded library search path?
9384shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9385
9386# How to hardcode a shared library path into an executable.
9387hardcode_action=$hardcode_action
9388
9389# Whether we should hardcode library paths into libraries.
9390hardcode_into_libs=$hardcode_into_libs
9391
9392# Flag to hardcode \$libdir into a binary during linking.
9393# This must work even if \$libdir does not exist.
9394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9395
9396# If ld is used when linking, flag to hardcode \$libdir into
9397# a binary during linking. This must work even if \$libdir does
9398# not exist.
9399hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9400
9401# Whether we need a single -rpath flag with a separated argument.
9402hardcode_libdir_separator=$lt_hardcode_libdir_separator
9403
9404# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9405# resulting binary.
9406hardcode_direct=$hardcode_direct
9407
9408# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9409# resulting binary.
9410hardcode_minus_L=$hardcode_minus_L
9411
9412# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9413# the resulting binary.
9414hardcode_shlibpath_var=$hardcode_shlibpath_var
9415
9416# Set to yes if building a shared library automatically hardcodes DIR into the library
9417# and all subsequent libraries and executables linked against it.
9418hardcode_automatic=$hardcode_automatic
9419
9420# Variables whose values should be saved in libtool wrapper scripts and
9421# restored at relink time.
9422variables_saved_for_relink="$variables_saved_for_relink"
9423
9424# Whether libtool must link a program against all its dependency libraries.
9425link_all_deplibs=$link_all_deplibs
9426
9427# Compile-time system search path for libraries
9428sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9429
9430# Run-time system search path for libraries
9431sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9432
9433# Fix the shell variable \$srcfile for the compiler.
9434fix_srcfile_path="$fix_srcfile_path"
9435
9436# Set to yes if exported symbols are required.
9437always_export_symbols=$always_export_symbols
9438
9439# The commands to list exported symbols.
9440export_symbols_cmds=$lt_export_symbols_cmds
9441
9442# The commands to extract the exported symbol list from a shared archive.
9443extract_expsyms_cmds=$lt_extract_expsyms_cmds
9444
9445# Symbols that should not be listed in the preloaded symbols.
9446exclude_expsyms=$lt_exclude_expsyms
9447
9448# Symbols that must always be exported.
9449include_expsyms=$lt_include_expsyms
9450
9451# ### END LIBTOOL CONFIG
9452
9453__EOF__
9454
9455
9456  case $host_os in
9457  aix3*)
9458    cat <<\EOF >> "$cfgfile"
9459
9460# AIX sometimes has problems with the GCC collect2 program.  For some
9461# reason, if we set the COLLECT_NAMES environment variable, the problems
9462# vanish in a puff of smoke.
9463if test "X${COLLECT_NAMES+set}" != Xset; then
9464  COLLECT_NAMES=
9465  export COLLECT_NAMES
9466fi
9467EOF
9468    ;;
9469  esac
9470
9471  # We use sed instead of cat because bash on DJGPP gets confused if
9472  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9473  # text mode, it properly converts lines to CR/LF.  This bash problem
9474  # is reportedly fixed, but why not run on old versions too?
9475  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9476
9477  mv -f "$cfgfile" "$ofile" || \
9478    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9479  chmod +x "$ofile"
9480
9481else
9482  # If there is no Makefile yet, we rely on a make rule to execute
9483  # `config.status --recheck' to rerun these tests and create the
9484  # libtool script then.
9485  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9486  if test -f "$ltmain_in"; then
9487    test -f Makefile && make "$ltmain"
9488  fi
9489fi
9490
9491
9492ac_ext=c
9493ac_cpp='$CPP $CPPFLAGS'
9494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498CC="$lt_save_CC"
9499
9500
9501# Check whether --with-tags or --without-tags was given.
9502if test "${with_tags+set}" = set; then
9503  withval="$with_tags"
9504  tagnames="$withval"
9505fi;
9506
9507if test -f "$ltmain" && test -n "$tagnames"; then
9508  if test ! -f "${ofile}"; then
9509    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9510echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9511  fi
9512
9513  if test -z "$LTCC"; then
9514    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9515    if test -z "$LTCC"; then
9516      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9517echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9518    else
9519      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9520echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9521    fi
9522  fi
9523
9524  # Extract list of available tagged configurations in $ofile.
9525  # Note that this assumes the entire list is on one line.
9526  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9527
9528  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9529  for tagname in $tagnames; do
9530    IFS="$lt_save_ifs"
9531    # Check whether tagname contains only valid characters
9532    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9533    "") ;;
9534    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9535echo "$as_me: error: invalid tag name: $tagname" >&2;}
9536   { (exit 1); exit 1; }; }
9537        ;;
9538    esac
9539
9540    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9541    then
9542      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9543echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9544   { (exit 1); exit 1; }; }
9545    fi
9546
9547    # Update the list of available tags.
9548    if test -n "$tagname"; then
9549      echo appending configuration tag \"$tagname\" to $ofile
9550
9551      case $tagname in
9552      CXX)
9553        if test -n "$CXX" && test "X$CXX" != "Xno"; then
9554          ac_ext=cc
9555ac_cpp='$CXXCPP $CPPFLAGS'
9556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9559
9560
9561
9562
9563archive_cmds_need_lc_CXX=no
9564allow_undefined_flag_CXX=
9565always_export_symbols_CXX=no
9566archive_expsym_cmds_CXX=
9567export_dynamic_flag_spec_CXX=
9568hardcode_direct_CXX=no
9569hardcode_libdir_flag_spec_CXX=
9570hardcode_libdir_flag_spec_ld_CXX=
9571hardcode_libdir_separator_CXX=
9572hardcode_minus_L_CXX=no
9573hardcode_automatic_CXX=no
9574module_cmds_CXX=
9575module_expsym_cmds_CXX=
9576link_all_deplibs_CXX=unknown
9577old_archive_cmds_CXX=$old_archive_cmds
9578no_undefined_flag_CXX=
9579whole_archive_flag_spec_CXX=
9580enable_shared_with_static_runtimes_CXX=no
9581
9582# Dependencies to place before and after the object being linked:
9583predep_objects_CXX=
9584postdep_objects_CXX=
9585predeps_CXX=
9586postdeps_CXX=
9587compiler_lib_search_path_CXX=
9588
9589# Source file extension for C++ test sources.
9590ac_ext=cc
9591
9592# Object file extension for compiled C++ test sources.
9593objext=o
9594objext_CXX=$objext
9595
9596# Code to be used in simple compile tests
9597lt_simple_compile_test_code="int some_variable = 0;\n"
9598
9599# Code to be used in simple link tests
9600lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9601
9602# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9603
9604# If no C compiler was specified, use CC.
9605LTCC=${LTCC-"$CC"}
9606
9607# Allow CC to be a program name with arguments.
9608compiler=$CC
9609
9610
9611# Allow CC to be a program name with arguments.
9612lt_save_CC=$CC
9613lt_save_LD=$LD
9614lt_save_GCC=$GCC
9615GCC=$GXX
9616lt_save_with_gnu_ld=$with_gnu_ld
9617lt_save_path_LD=$lt_cv_path_LD
9618if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9619  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9620else
9621  unset lt_cv_prog_gnu_ld
9622fi
9623if test -n "${lt_cv_path_LDCXX+set}"; then
9624  lt_cv_path_LD=$lt_cv_path_LDCXX
9625else
9626  unset lt_cv_path_LD
9627fi
9628test -z "${LDCXX+set}" || LD=$LDCXX
9629CC=${CXX-"c++"}
9630compiler=$CC
9631compiler_CXX=$CC
9632cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9633
9634# We don't want -fno-exception wen compiling C++ code, so set the
9635# no_builtin_flag separately
9636if test "$GXX" = yes; then
9637  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9638else
9639  lt_prog_compiler_no_builtin_flag_CXX=
9640fi
9641
9642if test "$GXX" = yes; then
9643  # Set up default GNU C++ configuration
9644
9645
9646# Check whether --with-gnu-ld or --without-gnu-ld was given.
9647if test "${with_gnu_ld+set}" = set; then
9648  withval="$with_gnu_ld"
9649  test "$withval" = no || with_gnu_ld=yes
9650else
9651  with_gnu_ld=no
9652fi;
9653ac_prog=ld
9654if test "$GCC" = yes; then
9655  # Check if gcc -print-prog-name=ld gives a path.
9656  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9657echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9658  case $host in
9659  *-*-mingw*)
9660    # gcc leaves a trailing carriage return which upsets mingw
9661    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662  *)
9663    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9664  esac
9665  case $ac_prog in
9666    # Accept absolute paths.
9667    [\\/]* | ?:[\\/]*)
9668      re_direlt='/[^/][^/]*/\.\./'
9669      # Canonicalize the pathname of ld
9670      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9671      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9672        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9673      done
9674      test -z "$LD" && LD="$ac_prog"
9675      ;;
9676  "")
9677    # If it fails, then pretend we aren't using GCC.
9678    ac_prog=ld
9679    ;;
9680  *)
9681    # If it is relative, then search for the first ld in PATH.
9682    with_gnu_ld=unknown
9683    ;;
9684  esac
9685elif test "$with_gnu_ld" = yes; then
9686  echo "$as_me:$LINENO: checking for GNU ld" >&5
9687echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9688else
9689  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9690echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9691fi
9692if test "${lt_cv_path_LD+set}" = set; then
9693  echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695  if test -z "$LD"; then
9696  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9697  for ac_dir in $PATH; do
9698    IFS="$lt_save_ifs"
9699    test -z "$ac_dir" && ac_dir=.
9700    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9701      lt_cv_path_LD="$ac_dir/$ac_prog"
9702      # Check to see if the program is GNU ld.  I'd rather use --version,
9703      # but apparently some GNU ld's only accept -v.
9704      # Break only if it was the GNU/non-GNU ld that we prefer.
9705      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9706      *GNU* | *'with BFD'*)
9707        test "$with_gnu_ld" != no && break
9708        ;;
9709      *)
9710        test "$with_gnu_ld" != yes && break
9711        ;;
9712      esac
9713    fi
9714  done
9715  IFS="$lt_save_ifs"
9716else
9717  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9718fi
9719fi
9720
9721LD="$lt_cv_path_LD"
9722if test -n "$LD"; then
9723  echo "$as_me:$LINENO: result: $LD" >&5
9724echo "${ECHO_T}$LD" >&6
9725else
9726  echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
9728fi
9729test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9730echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9731   { (exit 1); exit 1; }; }
9732echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9733echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9734if test "${lt_cv_prog_gnu_ld+set}" = set; then
9735  echo $ECHO_N "(cached) $ECHO_C" >&6
9736else
9737  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9738case `$LD -v 2>&1 </dev/null` in
9739*GNU* | *'with BFD'*)
9740  lt_cv_prog_gnu_ld=yes
9741  ;;
9742*)
9743  lt_cv_prog_gnu_ld=no
9744  ;;
9745esac
9746fi
9747echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9748echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9749with_gnu_ld=$lt_cv_prog_gnu_ld
9750
9751
9752
9753  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9754  # archiving commands below assume that GNU ld is being used.
9755  if test "$with_gnu_ld" = yes; then
9756    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757    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'
9758
9759    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9760    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9761
9762    # If archive_cmds runs LD, not CC, wlarc should be empty
9763    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9764    #     investigate it a little bit more. (MM)
9765    wlarc='${wl}'
9766
9767    # ancient GNU ld didn't support --whole-archive et. al.
9768    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9769        grep 'no-whole-archive' > /dev/null; then
9770      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9771    else
9772      whole_archive_flag_spec_CXX=
9773    fi
9774  else
9775    with_gnu_ld=no
9776    wlarc=
9777
9778    # A generic and very simple default shared library creation
9779    # command for GNU C++ for the case where it uses the native
9780    # linker, instead of GNU ld.  If possible, this setting should
9781    # overridden to take advantage of the native linker features on
9782    # the platform it is being used on.
9783    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9784  fi
9785
9786  # Commands to make compiler produce verbose output that lists
9787  # what "hidden" libraries, object files and flags are used when
9788  # linking a shared library.
9789  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9790
9791else
9792  GXX=no
9793  with_gnu_ld=no
9794  wlarc=
9795fi
9796
9797# PORTME: fill in a description of your system's C++ link characteristics
9798echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9799echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9800ld_shlibs_CXX=yes
9801case $host_os in
9802  aix3*)
9803    # FIXME: insert proper C++ library support
9804    ld_shlibs_CXX=no
9805    ;;
9806  aix4* | aix5*)
9807    if test "$host_cpu" = ia64; then
9808      # On IA64, the linker does run time linking by default, so we don't
9809      # have to do anything special.
9810      aix_use_runtimelinking=no
9811      exp_sym_flag='-Bexport'
9812      no_entry_flag=""
9813    else
9814      aix_use_runtimelinking=no
9815
9816      # Test if we are trying to use run time linking or normal
9817      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9818      # need to do runtime linking.
9819      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9820        for ld_flag in $LDFLAGS; do
9821          case $ld_flag in
9822          *-brtl*)
9823            aix_use_runtimelinking=yes
9824            break
9825            ;;
9826          esac
9827        done
9828      esac
9829
9830      exp_sym_flag='-bexport'
9831      no_entry_flag='-bnoentry'
9832    fi
9833
9834    # When large executables or shared objects are built, AIX ld can
9835    # have problems creating the table of contents.  If linking a library
9836    # or program results in "error TOC overflow" add -mminimal-toc to
9837    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9838    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9839
9840    archive_cmds_CXX=''
9841    hardcode_direct_CXX=yes
9842    hardcode_libdir_separator_CXX=':'
9843    link_all_deplibs_CXX=yes
9844
9845    if test "$GXX" = yes; then
9846      case $host_os in aix4.012|aix4.012.*)
9847      # We only want to do this on AIX 4.2 and lower, the check
9848      # below for broken collect2 doesn't work under 4.3+
9849        collect2name=`${CC} -print-prog-name=collect2`
9850        if test -f "$collect2name" && \
9851           strings "$collect2name" | grep resolve_lib_name >/dev/null
9852        then
9853          # We have reworked collect2
9854          hardcode_direct_CXX=yes
9855        else
9856          # We have old collect2
9857          hardcode_direct_CXX=unsupported
9858          # It fails to find uninstalled libraries when the uninstalled
9859          # path is not listed in the libpath.  Setting hardcode_minus_L
9860          # to unsupported forces relinking
9861          hardcode_minus_L_CXX=yes
9862          hardcode_libdir_flag_spec_CXX='-L$libdir'
9863          hardcode_libdir_separator_CXX=
9864        fi
9865      esac
9866      shared_flag='-shared'
9867    else
9868      # not using gcc
9869      if test "$host_cpu" = ia64; then
9870        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9871        # chokes on -Wl,-G. The following line is correct:
9872        shared_flag='-G'
9873      else
9874        if test "$aix_use_runtimelinking" = yes; then
9875          shared_flag='${wl}-G'
9876        else
9877          shared_flag='${wl}-bM:SRE'
9878        fi
9879      fi
9880    fi
9881
9882    # It seems that -bexpall does not export symbols beginning with
9883    # underscore (_), so it is better to generate a list of symbols to export.
9884    always_export_symbols_CXX=yes
9885    if test "$aix_use_runtimelinking" = yes; then
9886      # Warning - without using the other runtime loading flags (-brtl),
9887      # -berok will link without error, but may produce a broken library.
9888      allow_undefined_flag_CXX='-berok'
9889      # Determine the default libpath from the value encoded in an empty executable.
9890      cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896
9897int
9898main ()
9899{
9900
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907  (eval $ac_link) 2>conftest.er1
9908  ac_status=$?
9909  grep -v '^ *+' conftest.er1 >conftest.err
9910  rm -f conftest.er1
9911  cat conftest.err >&5
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } &&
9914         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916  (eval $ac_try) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); }; } &&
9920         { ac_try='test -s conftest$ac_exeext'
9921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922  (eval $ac_try) 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926
9927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928}'`
9929# Check for a 64-bit object if we didn't find anything.
9930if 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; }
9931}'`; fi
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936fi
9937rm -f conftest.err conftest.$ac_objext \
9938      conftest$ac_exeext conftest.$ac_ext
9939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9942
9943      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9944     else
9945      if test "$host_cpu" = ia64; then
9946        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9947        allow_undefined_flag_CXX="-z nodefs"
9948        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9949      else
9950        # Determine the default libpath from the value encoded in an empty executable.
9951        cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957
9958int
9959main ()
9960{
9961
9962  ;
9963  return 0;
9964}
9965_ACEOF
9966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968  (eval $ac_link) 2>conftest.er1
9969  ac_status=$?
9970  grep -v '^ *+' conftest.er1 >conftest.err
9971  rm -f conftest.er1
9972  cat conftest.err >&5
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); } &&
9975         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977  (eval $ac_try) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; } &&
9981         { ac_try='test -s conftest$ac_exeext'
9982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983  (eval $ac_try) 2>&5
9984  ac_status=$?
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); }; }; then
9987
9988aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9989}'`
9990# Check for a 64-bit object if we didn't find anything.
9991if 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; }
9992}'`; fi
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997fi
9998rm -f conftest.err conftest.$ac_objext \
9999      conftest$ac_exeext conftest.$ac_ext
10000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10001
10002        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10003        # Warning - without using the other run time loading flags,
10004        # -berok will link without error, but may produce a broken library.
10005        no_undefined_flag_CXX=' ${wl}-bernotok'
10006        allow_undefined_flag_CXX=' ${wl}-berok'
10007        # -bexpall does not export symbols beginning with underscore (_)
10008        always_export_symbols_CXX=yes
10009        # Exported symbols can be pulled into shared objects from archives
10010        whole_archive_flag_spec_CXX=' '
10011        archive_cmds_need_lc_CXX=yes
10012        # This is similar to how AIX traditionally builds it's shared libraries.
10013        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10014      fi
10015    fi
10016    ;;
10017  chorus*)
10018    case $cc_basename in
10019      *)
10020        # FIXME: insert proper C++ library support
10021        ld_shlibs_CXX=no
10022        ;;
10023    esac
10024    ;;
10025
10026  cygwin* | mingw* | pw32*)
10027    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10028    # as there is no search path for DLLs.
10029    hardcode_libdir_flag_spec_CXX='-L$libdir'
10030    allow_undefined_flag_CXX=unsupported
10031    always_export_symbols_CXX=no
10032    enable_shared_with_static_runtimes_CXX=yes
10033
10034    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10035      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10036      # If the export-symbols file already is a .def file (1st line
10037      # is EXPORTS), use it as is; otherwise, prepend...
10038      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10039        cp $export_symbols $output_objdir/$soname.def;
10040      else
10041        echo EXPORTS > $output_objdir/$soname.def;
10042        cat $export_symbols >> $output_objdir/$soname.def;
10043      fi~
10044      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10045    else
10046      ld_shlibs_CXX=no
10047    fi
10048  ;;
10049
10050  darwin* | rhapsody*)
10051  if test "$GXX" = yes; then
10052    archive_cmds_need_lc_CXX=no
10053    case "$host_os" in
10054    rhapsody* | darwin1.[012])
10055      allow_undefined_flag_CXX='-undefined suppress'
10056      ;;
10057    *) # Darwin 1.3 on
10058      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10059        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10060      else
10061        case ${MACOSX_DEPLOYMENT_TARGET} in
10062          10.[012])
10063            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10064            ;;
10065          10.*)
10066            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10067            ;;
10068        esac
10069      fi
10070      ;;
10071    esac
10072    lt_int_apple_cc_single_mod=no
10073    output_verbose_link_cmd='echo'
10074    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10075      lt_int_apple_cc_single_mod=yes
10076    fi
10077    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10078      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10079    else
10080      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10081    fi
10082    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10083
10084    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10085    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10086      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}'
10087    else
10088      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10089    fi
10090    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}'
10091    hardcode_direct_CXX=no
10092    hardcode_automatic_CXX=yes
10093    hardcode_shlibpath_var_CXX=unsupported
10094    whole_archive_flag_spec_CXX='-all_load $convenience'
10095    link_all_deplibs_CXX=yes
10096  else
10097    ld_shlibs_CXX=no
10098  fi
10099    ;;
10100
10101  dgux*)
10102    case $cc_basename in
10103      ec++)
10104        # FIXME: insert proper C++ library support
10105        ld_shlibs_CXX=no
10106        ;;
10107      ghcx)
10108        # Green Hills C++ Compiler
10109        # FIXME: insert proper C++ library support
10110        ld_shlibs_CXX=no
10111        ;;
10112      *)
10113        # FIXME: insert proper C++ library support
10114        ld_shlibs_CXX=no
10115        ;;
10116    esac
10117    ;;
10118  freebsd12*)
10119    # C++ shared libraries reported to be fairly broken before switch to ELF
10120    ld_shlibs_CXX=no
10121    ;;
10122  freebsd-elf*)
10123    archive_cmds_need_lc_CXX=no
10124    ;;
10125  freebsd* | kfreebsd*-gnu)
10126    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10127    # conventions
10128    ld_shlibs_CXX=yes
10129    ;;
10130  gnu*)
10131    ;;
10132  hpux9*)
10133    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10134    hardcode_libdir_separator_CXX=:
10135    export_dynamic_flag_spec_CXX='${wl}-E'
10136    hardcode_direct_CXX=yes
10137    hardcode_minus_L_CXX=yes # Not in the search PATH,
10138                                # but as the default
10139                                # location of the library.
10140
10141    case $cc_basename in
10142    CC)
10143      # FIXME: insert proper C++ library support
10144      ld_shlibs_CXX=no
10145      ;;
10146    aCC)
10147      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10148      # Commands to make compiler produce verbose output that lists
10149      # what "hidden" libraries, object files and flags are used when
10150      # linking a shared library.
10151      #
10152      # There doesn't appear to be a way to prevent this compiler from
10153      # explicitly linking system object files so we need to strip them
10154      # from the output so that they don't get included in the library
10155      # dependencies.
10156      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10157      ;;
10158    *)
10159      if test "$GXX" = yes; then
10160        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10161      else
10162        # FIXME: insert proper C++ library support
10163        ld_shlibs_CXX=no
10164      fi
10165      ;;
10166    esac
10167    ;;
10168  hpux10*|hpux11*)
10169    if test $with_gnu_ld = no; then
10170      case "$host_cpu" in
10171      hppa*64*)
10172        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10173        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10174        hardcode_libdir_separator_CXX=:
10175        ;;
10176      ia64*)
10177        hardcode_libdir_flag_spec_CXX='-L$libdir'
10178        ;;
10179      *)
10180        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181        hardcode_libdir_separator_CXX=:
10182        export_dynamic_flag_spec_CXX='${wl}-E'
10183        ;;
10184      esac
10185    fi
10186    case "$host_cpu" in
10187    hppa*64*)
10188      hardcode_direct_CXX=no
10189      hardcode_shlibpath_var_CXX=no
10190      ;;
10191    ia64*)
10192      hardcode_direct_CXX=no
10193      hardcode_shlibpath_var_CXX=no
10194      hardcode_minus_L_CXX=yes # Not in the search PATH,
10195                                              # but as the default
10196                                              # location of the library.
10197      ;;
10198    *)
10199      hardcode_direct_CXX=yes
10200      hardcode_minus_L_CXX=yes # Not in the search PATH,
10201                                              # but as the default
10202                                              # location of the library.
10203      ;;
10204    esac
10205
10206    case $cc_basename in
10207      CC)
10208        # FIXME: insert proper C++ library support
10209        ld_shlibs_CXX=no
10210        ;;
10211      aCC)
10212        case "$host_cpu" in
10213        hppa*64*|ia64*)
10214          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10215          ;;
10216        *)
10217          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10218          ;;
10219        esac
10220        # Commands to make compiler produce verbose output that lists
10221        # what "hidden" libraries, object files and flags are used when
10222        # linking a shared library.
10223        #
10224        # There doesn't appear to be a way to prevent this compiler from
10225        # explicitly linking system object files so we need to strip them
10226        # from the output so that they don't get included in the library
10227        # dependencies.
10228        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10229        ;;
10230      *)
10231        if test "$GXX" = yes; then
10232          if test $with_gnu_ld = no; then
10233            case "$host_cpu" in
10234            ia64*|hppa*64*)
10235              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10236              ;;
10237            *)
10238              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10239              ;;
10240            esac
10241          fi
10242        else
10243          # FIXME: insert proper C++ library support
10244          ld_shlibs_CXX=no
10245        fi
10246        ;;
10247    esac
10248    ;;
10249  irix5* | irix6*)
10250    case $cc_basename in
10251      CC)
10252        # SGI C++
10253        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10254
10255        # Archives containing C++ object files must be created using
10256        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10257        # necessary to make sure instantiated templates are included
10258        # in the archive.
10259        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10260        ;;
10261      *)
10262        if test "$GXX" = yes; then
10263          if test "$with_gnu_ld" = no; then
10264            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10265          else
10266            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10267          fi
10268        fi
10269        link_all_deplibs_CXX=yes
10270        ;;
10271    esac
10272    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273    hardcode_libdir_separator_CXX=:
10274    ;;
10275  linux*)
10276    case $cc_basename in
10277      KCC)
10278        # Kuck and Associates, Inc. (KAI) C++ Compiler
10279
10280        # KCC will only create a shared library if the output file
10281        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10282        # to its proper name (with version) after linking.
10283        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10284        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10285        # Commands to make compiler produce verbose output that lists
10286        # what "hidden" libraries, object files and flags are used when
10287        # linking a shared library.
10288        #
10289        # There doesn't appear to be a way to prevent this compiler from
10290        # explicitly linking system object files so we need to strip them
10291        # from the output so that they don't get included in the library
10292        # dependencies.
10293        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10294
10295        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10296        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10297
10298        # Archives containing C++ object files must be created using
10299        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10300        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10301        ;;
10302      icpc)
10303        # Intel C++
10304        with_gnu_ld=yes
10305        archive_cmds_need_lc_CXX=no
10306        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10307        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10308        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10309        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10311        ;;
10312      cxx)
10313        # Compaq C++
10314        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10316
10317        runpath_var=LD_RUN_PATH
10318        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319        hardcode_libdir_separator_CXX=:
10320
10321        # Commands to make compiler produce verbose output that lists
10322        # what "hidden" libraries, object files and flags are used when
10323        # linking a shared library.
10324        #
10325        # There doesn't appear to be a way to prevent this compiler from
10326        # explicitly linking system object files so we need to strip them
10327        # from the output so that they don't get included in the library
10328        # dependencies.
10329        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10330        ;;
10331    esac
10332    ;;
10333  lynxos*)
10334    # FIXME: insert proper C++ library support
10335    ld_shlibs_CXX=no
10336    ;;
10337  m88k*)
10338    # FIXME: insert proper C++ library support
10339    ld_shlibs_CXX=no
10340    ;;
10341  mvs*)
10342    case $cc_basename in
10343      cxx)
10344        # FIXME: insert proper C++ library support
10345        ld_shlibs_CXX=no
10346        ;;
10347      *)
10348        # FIXME: insert proper C++ library support
10349        ld_shlibs_CXX=no
10350        ;;
10351    esac
10352    ;;
10353  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10354    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10355      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10356      wlarc=
10357      hardcode_libdir_flag_spec_CXX='-R$libdir'
10358      hardcode_direct_CXX=yes
10359      hardcode_shlibpath_var_CXX=no
10360    fi
10361    # Workaround some broken pre-1.5 toolchains
10362    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10363    ;;
10364  osf3*)
10365    case $cc_basename in
10366      KCC)
10367        # Kuck and Associates, Inc. (KAI) C++ Compiler
10368
10369        # KCC will only create a shared library if the output file
10370        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10371        # to its proper name (with version) after linking.
10372        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10373
10374        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10375        hardcode_libdir_separator_CXX=:
10376
10377        # Archives containing C++ object files must be created using
10378        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10379        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10380
10381        ;;
10382      RCC)
10383        # Rational C++ 2.4.1
10384        # FIXME: insert proper C++ library support
10385        ld_shlibs_CXX=no
10386        ;;
10387      cxx)
10388        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10389        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10390
10391        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10392        hardcode_libdir_separator_CXX=:
10393
10394        # Commands to make compiler produce verbose output that lists
10395        # what "hidden" libraries, object files and flags are used when
10396        # linking a shared library.
10397        #
10398        # There doesn't appear to be a way to prevent this compiler from
10399        # explicitly linking system object files so we need to strip them
10400        # from the output so that they don't get included in the library
10401        # dependencies.
10402        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10403        ;;
10404      *)
10405        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10406          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10407          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10408
10409          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10410          hardcode_libdir_separator_CXX=:
10411
10412          # Commands to make compiler produce verbose output that lists
10413          # what "hidden" libraries, object files and flags are used when
10414          # linking a shared library.
10415          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10416
10417        else
10418          # FIXME: insert proper C++ library support
10419          ld_shlibs_CXX=no
10420        fi
10421        ;;
10422    esac
10423    ;;
10424  osf4* | osf5*)
10425    case $cc_basename in
10426      KCC)
10427        # Kuck and Associates, Inc. (KAI) C++ Compiler
10428
10429        # KCC will only create a shared library if the output file
10430        # ends with ".so" (or ".sl" for HP-UX), so rename the library
10431        # to its proper name (with version) after linking.
10432        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10433
10434        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10435        hardcode_libdir_separator_CXX=:
10436
10437        # Archives containing C++ object files must be created using
10438        # the KAI C++ compiler.
10439        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10440        ;;
10441      RCC)
10442        # Rational C++ 2.4.1
10443        # FIXME: insert proper C++ library support
10444        ld_shlibs_CXX=no
10445        ;;
10446      cxx)
10447        allow_undefined_flag_CXX=' -expect_unresolved \*'
10448        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10449        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10450          echo "-hidden">> $lib.exp~
10451          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10452          $rm $lib.exp'
10453
10454        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10455        hardcode_libdir_separator_CXX=:
10456
10457        # Commands to make compiler produce verbose output that lists
10458        # what "hidden" libraries, object files and flags are used when
10459        # linking a shared library.
10460        #
10461        # There doesn't appear to be a way to prevent this compiler from
10462        # explicitly linking system object files so we need to strip them
10463        # from the output so that they don't get included in the library
10464        # dependencies.
10465        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10466        ;;
10467      *)
10468        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10469          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10470         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10471
10472          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10473          hardcode_libdir_separator_CXX=:
10474
10475          # Commands to make compiler produce verbose output that lists
10476          # what "hidden" libraries, object files and flags are used when
10477          # linking a shared library.
10478          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10479
10480        else
10481          # FIXME: insert proper C++ library support
10482          ld_shlibs_CXX=no
10483        fi
10484        ;;
10485    esac
10486    ;;
10487  psos*)
10488    # FIXME: insert proper C++ library support
10489    ld_shlibs_CXX=no
10490    ;;
10491  sco*)
10492    archive_cmds_need_lc_CXX=no
10493    case $cc_basename in
10494      CC)
10495        # FIXME: insert proper C++ library support
10496        ld_shlibs_CXX=no
10497        ;;
10498      *)
10499        # FIXME: insert proper C++ library support
10500        ld_shlibs_CXX=no
10501        ;;
10502    esac
10503    ;;
10504  sunos4*)
10505    case $cc_basename in
10506      CC)
10507        # Sun C++ 4.x
10508        # FIXME: insert proper C++ library support
10509        ld_shlibs_CXX=no
10510        ;;
10511      lcc)
10512        # Lucid
10513        # FIXME: insert proper C++ library support
10514        ld_shlibs_CXX=no
10515        ;;
10516      *)
10517        # FIXME: insert proper C++ library support
10518        ld_shlibs_CXX=no
10519        ;;
10520    esac
10521    ;;
10522  solaris*)
10523    case $cc_basename in
10524      CC)
10525        # Sun C++ 4.2, 5.x and Centerline C++
10526        no_undefined_flag_CXX=' -zdefs'
10527        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10528        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10529        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10530
10531        hardcode_libdir_flag_spec_CXX='-R$libdir'
10532        hardcode_shlibpath_var_CXX=no
10533        case $host_os in
10534          solaris2.0-5 | solaris2.0-5.*) ;;
10535          *)
10536            # The C++ compiler is used as linker so we must use $wl
10537            # flag to pass the commands to the underlying system
10538            # linker.
10539            # Supported since Solaris 2.6 (maybe 2.5.1?)
10540            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10541            ;;
10542        esac
10543        link_all_deplibs_CXX=yes
10544
10545        # Commands to make compiler produce verbose output that lists
10546        # what "hidden" libraries, object files and flags are used when
10547        # linking a shared library.
10548        #
10549        # There doesn't appear to be a way to prevent this compiler from
10550        # explicitly linking system object files so we need to strip them
10551        # from the output so that they don't get included in the library
10552        # dependencies.
10553        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10554
10555        # Archives containing C++ object files must be created using
10556        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10557        # necessary to make sure instantiated templates are included
10558        # in the archive.
10559        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10560        ;;
10561      gcx)
10562        # Green Hills C++ Compiler
10563        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10564
10565        # The C++ compiler must be used to create the archive.
10566        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10567        ;;
10568      *)
10569        # GNU C++ compiler with Solaris linker
10570        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10571          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10572          if $CC --version | grep -v '^2\.7' > /dev/null; then
10573            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10574            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10575                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10576
10577            # Commands to make compiler produce verbose output that lists
10578            # what "hidden" libraries, object files and flags are used when
10579            # linking a shared library.
10580            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10581          else
10582            # g++ 2.7 appears to require `-G' NOT `-shared' on this
10583            # platform.
10584            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10585            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10586                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10587
10588            # Commands to make compiler produce verbose output that lists
10589            # what "hidden" libraries, object files and flags are used when
10590            # linking a shared library.
10591            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10592          fi
10593
10594          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10595        fi
10596        ;;
10597    esac
10598    ;;
10599  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10600    archive_cmds_need_lc_CXX=no
10601    ;;
10602  tandem*)
10603    case $cc_basename in
10604      NCC)
10605        # NonStop-UX NCC 3.20
10606        # FIXME: insert proper C++ library support
10607        ld_shlibs_CXX=no
10608        ;;
10609      *)
10610        # FIXME: insert proper C++ library support
10611        ld_shlibs_CXX=no
10612        ;;
10613    esac
10614    ;;
10615  vxworks*)
10616    # FIXME: insert proper C++ library support
10617    ld_shlibs_CXX=no
10618    ;;
10619  *)
10620    # FIXME: insert proper C++ library support
10621    ld_shlibs_CXX=no
10622    ;;
10623esac
10624echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10625echo "${ECHO_T}$ld_shlibs_CXX" >&6
10626test "$ld_shlibs_CXX" = no && can_build_shared=no
10627
10628GCC_CXX="$GXX"
10629LD_CXX="$LD"
10630
10631
10632cat > conftest.$ac_ext <<EOF
10633class Foo
10634{
10635public:
10636  Foo (void) { a = 0; }
10637private:
10638  int a;
10639};
10640EOF
10641
10642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643  (eval $ac_compile) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; then
10647  # Parse the compiler output and extract the necessary
10648  # objects, libraries and library flags.
10649
10650  # Sentinel used to keep track of whether or not we are before
10651  # the conftest object file.
10652  pre_test_object_deps_done=no
10653
10654  # The `*' in the case matches for architectures that use `case' in
10655  # $output_verbose_cmd can trigger glob expansion during the loop
10656  # eval without this substitution.
10657  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10658
10659  for p in `eval $output_verbose_link_cmd`; do
10660    case $p in
10661
10662    -L* | -R* | -l*)
10663       # Some compilers place space between "-{L,R}" and the path.
10664       # Remove the space.
10665       if test $p = "-L" \
10666          || test $p = "-R"; then
10667         prev=$p
10668         continue
10669       else
10670         prev=
10671       fi
10672
10673       if test "$pre_test_object_deps_done" = no; then
10674         case $p in
10675         -L* | -R*)
10676           # Internal compiler library paths should come after those
10677           # provided the user.  The postdeps already come after the
10678           # user supplied libs so there is no need to process them.
10679           if test -z "$compiler_lib_search_path_CXX"; then
10680             compiler_lib_search_path_CXX="${prev}${p}"
10681           else
10682             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10683           fi
10684           ;;
10685         # The "-l" case would never come before the object being
10686         # linked, so don't bother handling this case.
10687         esac
10688       else
10689         if test -z "$postdeps_CXX"; then
10690           postdeps_CXX="${prev}${p}"
10691         else
10692           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10693         fi
10694       fi
10695       ;;
10696
10697    *.$objext)
10698       # This assumes that the test object file only shows up
10699       # once in the compiler output.
10700       if test "$p" = "conftest.$objext"; then
10701         pre_test_object_deps_done=yes
10702         continue
10703       fi
10704
10705       if test "$pre_test_object_deps_done" = no; then
10706         if test -z "$predep_objects_CXX"; then
10707           predep_objects_CXX="$p"
10708         else
10709           predep_objects_CXX="$predep_objects_CXX $p"
10710         fi
10711       else
10712         if test -z "$postdep_objects_CXX"; then
10713           postdep_objects_CXX="$p"
10714         else
10715           postdep_objects_CXX="$postdep_objects_CXX $p"
10716         fi
10717       fi
10718       ;;
10719
10720    *) ;; # Ignore the rest.
10721
10722    esac
10723  done
10724
10725  # Clean up.
10726  rm -f a.out a.exe
10727else
10728  echo "libtool.m4: error: problem compiling CXX test program"
10729fi
10730
10731$rm -f confest.$objext
10732
10733case " $postdeps_CXX " in
10734*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10735esac
10736
10737lt_prog_compiler_wl_CXX=
10738lt_prog_compiler_pic_CXX=
10739lt_prog_compiler_static_CXX=
10740
10741echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10742echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10743
10744  # C++ specific cases for pic, static, wl, etc.
10745  if test "$GXX" = yes; then
10746    lt_prog_compiler_wl_CXX='-Wl,'
10747    lt_prog_compiler_static_CXX='-static'
10748
10749    case $host_os in
10750    aix*)
10751      # All AIX code is PIC.
10752      if test "$host_cpu" = ia64; then
10753        # AIX 5 now supports IA64 processor
10754        lt_prog_compiler_static_CXX='-Bstatic'
10755      fi
10756      ;;
10757    amigaos*)
10758      # FIXME: we need at least 68020 code to build shared libraries, but
10759      # adding the `-m68020' flag to GCC prevents building anything better,
10760      # like `-m68040'.
10761      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10762      ;;
10763    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10764      # PIC is the default for these OSes.
10765      ;;
10766    mingw* | os2* | pw32*)
10767      # This hack is so that the source file can tell whether it is being
10768      # built for inclusion in a dll (and should export symbols for example).
10769      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10770      ;;
10771    darwin* | rhapsody*)
10772      # PIC is the default on this platform
10773      # Common symbols not allowed in MH_DYLIB files
10774      lt_prog_compiler_pic_CXX='-fno-common'
10775      ;;
10776    *djgpp*)
10777      # DJGPP does not support shared libraries at all
10778      lt_prog_compiler_pic_CXX=
10779      ;;
10780    sysv4*MP*)
10781      if test -d /usr/nec; then
10782        lt_prog_compiler_pic_CXX=-Kconform_pic
10783      fi
10784      ;;
10785    hpux*)
10786      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10787      # not for PA HP-UX.
10788      case "$host_cpu" in
10789      hppa*64*|ia64*)
10790        ;;
10791      *)
10792        lt_prog_compiler_pic_CXX='-fPIC'
10793        ;;
10794      esac
10795      ;;
10796    *)
10797      lt_prog_compiler_pic_CXX='-fPIC'
10798      ;;
10799    esac
10800  else
10801    case $host_os in
10802      aix4* | aix5*)
10803        # All AIX code is PIC.
10804        if test "$host_cpu" = ia64; then
10805          # AIX 5 now supports IA64 processor
10806          lt_prog_compiler_static_CXX='-Bstatic'
10807        else
10808          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10809        fi
10810        ;;
10811      chorus*)
10812        case $cc_basename in
10813        cxch68)
10814          # Green Hills C++ Compiler
10815          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10816          ;;
10817        esac
10818        ;;
10819      dgux*)
10820        case $cc_basename in
10821          ec++)
10822            lt_prog_compiler_pic_CXX='-KPIC'
10823            ;;
10824          ghcx)
10825            # Green Hills C++ Compiler
10826            lt_prog_compiler_pic_CXX='-pic'
10827            ;;
10828          *)
10829            ;;
10830        esac
10831        ;;
10832      freebsd* | kfreebsd*-gnu)
10833        # FreeBSD uses GNU C++
10834        ;;
10835      hpux9* | hpux10* | hpux11*)
10836        case $cc_basename in
10837          CC)
10838            lt_prog_compiler_wl_CXX='-Wl,'
10839            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10840            if test "$host_cpu" != ia64; then
10841              lt_prog_compiler_pic_CXX='+Z'
10842            fi
10843            ;;
10844          aCC)
10845            lt_prog_compiler_wl_CXX='-Wl,'
10846            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10847            case "$host_cpu" in
10848            hppa*64*|ia64*)
10849              # +Z the default
10850              ;;
10851            *)
10852              lt_prog_compiler_pic_CXX='+Z'
10853              ;;
10854            esac
10855            ;;
10856          *)
10857            ;;
10858        esac
10859        ;;
10860      irix5* | irix6* | nonstopux*)
10861        case $cc_basename in
10862          CC)
10863            lt_prog_compiler_wl_CXX='-Wl,'
10864            lt_prog_compiler_static_CXX='-non_shared'
10865            # CC pic flag -KPIC is the default.
10866            ;;
10867          *)
10868            ;;
10869        esac
10870        ;;
10871      linux*)
10872        case $cc_basename in
10873          KCC)
10874            # KAI C++ Compiler
10875            lt_prog_compiler_wl_CXX='--backend -Wl,'
10876            lt_prog_compiler_pic_CXX='-fPIC'
10877            ;;
10878          icpc)
10879            # Intel C++
10880            lt_prog_compiler_wl_CXX='-Wl,'
10881            lt_prog_compiler_pic_CXX='-KPIC'
10882            lt_prog_compiler_static_CXX='-static'
10883            ;;
10884          cxx)
10885            # Compaq C++
10886            # Make sure the PIC flag is empty.  It appears that all Alpha
10887            # Linux and Compaq Tru64 Unix objects are PIC.
10888            lt_prog_compiler_pic_CXX=
10889            lt_prog_compiler_static_CXX='-non_shared'
10890            ;;
10891          *)
10892            ;;
10893        esac
10894        ;;
10895      lynxos*)
10896        ;;
10897      m88k*)
10898        ;;
10899      mvs*)
10900        case $cc_basename in
10901          cxx)
10902            lt_prog_compiler_pic_CXX='-W c,exportall'
10903            ;;
10904          *)
10905            ;;
10906        esac
10907        ;;
10908      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10909        ;;
10910      osf3* | osf4* | osf5*)
10911        case $cc_basename in
10912          KCC)
10913            lt_prog_compiler_wl_CXX='--backend -Wl,'
10914            ;;
10915          RCC)
10916            # Rational C++ 2.4.1
10917            lt_prog_compiler_pic_CXX='-pic'
10918            ;;
10919          cxx)
10920            # Digital/Compaq C++
10921            lt_prog_compiler_wl_CXX='-Wl,'
10922            # Make sure the PIC flag is empty.  It appears that all Alpha
10923            # Linux and Compaq Tru64 Unix objects are PIC.
10924            lt_prog_compiler_pic_CXX=
10925            lt_prog_compiler_static_CXX='-non_shared'
10926            ;;
10927          *)
10928            ;;
10929        esac
10930        ;;
10931      psos*)
10932        ;;
10933      sco*)
10934        case $cc_basename in
10935          CC)
10936            lt_prog_compiler_pic_CXX='-fPIC'
10937            ;;
10938          *)
10939            ;;
10940        esac
10941        ;;
10942      solaris*)
10943        case $cc_basename in
10944          CC)
10945            # Sun C++ 4.2, 5.x and Centerline C++
10946            lt_prog_compiler_pic_CXX='-KPIC'
10947            lt_prog_compiler_static_CXX='-Bstatic'
10948            lt_prog_compiler_wl_CXX='-Qoption ld '
10949            ;;
10950          gcx)
10951            # Green Hills C++ Compiler
10952            lt_prog_compiler_pic_CXX='-PIC'
10953            ;;
10954          *)
10955            ;;
10956        esac
10957        ;;
10958      sunos4*)
10959        case $cc_basename in
10960          CC)
10961            # Sun C++ 4.x
10962            lt_prog_compiler_pic_CXX='-pic'
10963            lt_prog_compiler_static_CXX='-Bstatic'
10964            ;;
10965          lcc)
10966            # Lucid
10967            lt_prog_compiler_pic_CXX='-pic'
10968            ;;
10969          *)
10970            ;;
10971        esac
10972        ;;
10973      tandem*)
10974        case $cc_basename in
10975          NCC)
10976            # NonStop-UX NCC 3.20
10977            lt_prog_compiler_pic_CXX='-KPIC'
10978            ;;
10979          *)
10980            ;;
10981        esac
10982        ;;
10983      unixware*)
10984        ;;
10985      vxworks*)
10986        ;;
10987      *)
10988        lt_prog_compiler_can_build_shared_CXX=no
10989        ;;
10990    esac
10991  fi
10992
10993echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10994echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10995
10996#
10997# Check to make sure the PIC flag actually works.
10998#
10999if test -n "$lt_prog_compiler_pic_CXX"; then
11000
11001echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11002echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11003if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11004  echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006  lt_prog_compiler_pic_works_CXX=no
11007  ac_outfile=conftest.$ac_objext
11008   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11009   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11010   # Insert the option either (1) after the last *FLAGS variable, or
11011   # (2) before a word containing "conftest.", or (3) at the end.
11012   # Note that $ac_compile itself does not contain backslashes and begins
11013   # with a dollar sign (not a hyphen), so the echo should work correctly.
11014   # The option is referenced via a variable to avoid confusing sed.
11015   lt_compile=`echo "$ac_compile" | $SED \
11016   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11018   -e 's:$: $lt_compiler_flag:'`
11019   (eval echo "\"\$as_me:11019: $lt_compile\"" >&5)
11020   (eval "$lt_compile" 2>conftest.err)
11021   ac_status=$?
11022   cat conftest.err >&5
11023   echo "$as_me:11023: \$? = $ac_status" >&5
11024   if (exit $ac_status) && test -s "$ac_outfile"; then
11025     # The compiler can only warn and ignore the option if not recognized
11026     # So say no if there are warnings
11027     if test ! -s conftest.err; then
11028       lt_prog_compiler_pic_works_CXX=yes
11029     fi
11030   fi
11031   $rm conftest*
11032
11033fi
11034echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11035echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11036
11037if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11038    case $lt_prog_compiler_pic_CXX in
11039     "" | " "*) ;;
11040     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11041     esac
11042else
11043    lt_prog_compiler_pic_CXX=
11044     lt_prog_compiler_can_build_shared_CXX=no
11045fi
11046
11047fi
11048case "$host_os" in
11049  # For platforms which do not support PIC, -DPIC is meaningless:
11050  *djgpp*)
11051    lt_prog_compiler_pic_CXX=
11052    ;;
11053  *)
11054    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11055    ;;
11056esac
11057
11058echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11059echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11060if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11061  echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063  lt_cv_prog_compiler_c_o_CXX=no
11064   $rm -r conftest 2>/dev/null
11065   mkdir conftest
11066   cd conftest
11067   mkdir out
11068   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11069
11070   lt_compiler_flag="-o out/conftest2.$ac_objext"
11071   # Insert the option either (1) after the last *FLAGS variable, or
11072   # (2) before a word containing "conftest.", or (3) at the end.
11073   # Note that $ac_compile itself does not contain backslashes and begins
11074   # with a dollar sign (not a hyphen), so the echo should work correctly.
11075   lt_compile=`echo "$ac_compile" | $SED \
11076   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11078   -e 's:$: $lt_compiler_flag:'`
11079   (eval echo "\"\$as_me:11079: $lt_compile\"" >&5)
11080   (eval "$lt_compile" 2>out/conftest.err)
11081   ac_status=$?
11082   cat out/conftest.err >&5
11083   echo "$as_me:11083: \$? = $ac_status" >&5
11084   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11085   then
11086     # The compiler can only warn and ignore the option if not recognized
11087     # So say no if there are warnings
11088     if test ! -s out/conftest.err; then
11089       lt_cv_prog_compiler_c_o_CXX=yes
11090     fi
11091   fi
11092   chmod u+w .
11093   $rm conftest*
11094   # SGI C++ compiler will create directory out/ii_files/ for
11095   # template instantiation
11096   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11097   $rm out/* && rmdir out
11098   cd ..
11099   rmdir conftest
11100   $rm conftest*
11101
11102fi
11103echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11104echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11105
11106
11107hard_links="nottested"
11108if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11109  # do not overwrite the value of need_locks provided by the user
11110  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11112  hard_links=yes
11113  $rm conftest*
11114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11115  touch conftest.a
11116  ln conftest.a conftest.b 2>&5 || hard_links=no
11117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11118  echo "$as_me:$LINENO: result: $hard_links" >&5
11119echo "${ECHO_T}$hard_links" >&6
11120  if test "$hard_links" = no; then
11121    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11123    need_locks=warn
11124  fi
11125else
11126  need_locks=no
11127fi
11128
11129echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11131
11132  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11133  case $host_os in
11134  aix4* | aix5*)
11135    # If we're using GNU nm, then we don't want the "-C" option.
11136    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11137    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11138      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11139    else
11140      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11141    fi
11142    ;;
11143  pw32*)
11144    export_symbols_cmds_CXX="$ltdll_cmds"
11145  ;;
11146  cygwin* | mingw*)
11147    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11148  ;;
11149  linux*)
11150    link_all_deplibs_CXX=no
11151  ;;
11152  *)
11153    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11154  ;;
11155  esac
11156
11157echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11158echo "${ECHO_T}$ld_shlibs_CXX" >&6
11159test "$ld_shlibs_CXX" = no && can_build_shared=no
11160
11161variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11162if test "$GCC" = yes; then
11163  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11164fi
11165
11166#
11167# Do we need to explicitly link libc?
11168#
11169case "x$archive_cmds_need_lc_CXX" in
11170x|xyes)
11171  # Assume -lc should be added
11172  archive_cmds_need_lc_CXX=yes
11173
11174  if test "$enable_shared" = yes && test "$GCC" = yes; then
11175    case $archive_cmds_CXX in
11176    *'~'*)
11177      # FIXME: we may have to deal with multi-command sequences.
11178      ;;
11179    '$CC '*)
11180      # Test whether the compiler implicitly links with -lc since on some
11181      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11182      # to ld, don't add -lc before -lgcc.
11183      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11184echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11185      $rm conftest*
11186      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11187
11188      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189  (eval $ac_compile) 2>&5
11190  ac_status=$?
11191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192  (exit $ac_status); } 2>conftest.err; then
11193        soname=conftest
11194        lib=conftest
11195        libobjs=conftest.$ac_objext
11196        deplibs=
11197        wl=$lt_prog_compiler_wl_CXX
11198        compiler_flags=-v
11199        linker_flags=-v
11200        verstring=
11201        output_objdir=.
11202        libname=conftest
11203        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11204        allow_undefined_flag_CXX=
11205        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11206  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11207  ac_status=$?
11208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209  (exit $ac_status); }
11210        then
11211          archive_cmds_need_lc_CXX=no
11212        else
11213          archive_cmds_need_lc_CXX=yes
11214        fi
11215        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11216      else
11217        cat conftest.err 1>&5
11218      fi
11219      $rm conftest*
11220      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11221echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11222      ;;
11223    esac
11224  fi
11225  ;;
11226esac
11227
11228echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11229echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11230library_names_spec=
11231libname_spec='lib$name'
11232soname_spec=
11233shrext_cmds=".so"
11234postinstall_cmds=
11235postuninstall_cmds=
11236finish_cmds=
11237finish_eval=
11238shlibpath_var=
11239shlibpath_overrides_runpath=unknown
11240version_type=none
11241dynamic_linker="$host_os ld.so"
11242sys_lib_dlsearch_path_spec="/lib /usr/lib"
11243if test "$GCC" = yes; then
11244  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11246    # if the path contains ";" then we assume it to be the separator
11247    # otherwise default to the standard path separator (i.e. ":") - it is
11248    # assumed that no part of a normal pathname contains ";" but that should
11249    # okay in the real world where ";" in dirpaths is itself problematic.
11250    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11251  else
11252    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11253  fi
11254else
11255  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11256fi
11257need_lib_prefix=unknown
11258hardcode_into_libs=no
11259
11260# when you set need_version to no, make sure it does not cause -set_version
11261# flags to be left without arguments
11262need_version=unknown
11263
11264case $host_os in
11265aix3*)
11266  version_type=linux
11267  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11268  shlibpath_var=LIBPATH
11269
11270  # AIX 3 has no versioning support, so we append a major version to the name.
11271  soname_spec='${libname}${release}${shared_ext}$major'
11272  ;;
11273
11274aix4* | aix5*)
11275  version_type=linux
11276  need_lib_prefix=no
11277  need_version=no
11278  hardcode_into_libs=yes
11279  if test "$host_cpu" = ia64; then
11280    # AIX 5 supports IA64
11281    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11282    shlibpath_var=LD_LIBRARY_PATH
11283  else
11284    # With GCC up to 2.95.x, collect2 would create an import file
11285    # for dependence libraries.  The import file would start with
11286    # the line `#! .'.  This would cause the generated library to
11287    # depend on `.', always an invalid library.  This was fixed in
11288    # development snapshots of GCC prior to 3.0.
11289    case $host_os in
11290      aix4 | aix4.[01] | aix4.[01].*)
11291      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11292           echo ' yes '
11293           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11294        :
11295      else
11296        can_build_shared=no
11297      fi
11298      ;;
11299    esac
11300    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11301    # soname into executable. Probably we can add versioning support to
11302    # collect2, so additional links can be useful in future.
11303    if test "$aix_use_runtimelinking" = yes; then
11304      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11305      # instead of lib<name>.a to let people know that these are not
11306      # typical AIX shared libraries.
11307      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308    else
11309      # We preserve .a as extension for shared libraries through AIX4.2
11310      # and later when we are not doing run time linking.
11311      library_names_spec='${libname}${release}.a $libname.a'
11312      soname_spec='${libname}${release}${shared_ext}$major'
11313    fi
11314    shlibpath_var=LIBPATH
11315  fi
11316  ;;
11317
11318amigaos*)
11319  library_names_spec='$libname.ixlibrary $libname.a'
11320  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11321  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'
11322  ;;
11323
11324beos*)
11325  library_names_spec='${libname}${shared_ext}'
11326  dynamic_linker="$host_os ld.so"
11327  shlibpath_var=LIBRARY_PATH
11328  ;;
11329
11330bsdi4*)
11331  version_type=linux
11332  need_version=no
11333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334  soname_spec='${libname}${release}${shared_ext}$major'
11335  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11336  shlibpath_var=LD_LIBRARY_PATH
11337  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11338  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11339  # the default ld.so.conf also contains /usr/contrib/lib and
11340  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11341  # libtool to hard-code these into programs
11342  ;;
11343
11344cygwin* | mingw* | pw32*)
11345  version_type=windows
11346  shrext_cmds=".dll"
11347  need_version=no
11348  need_lib_prefix=no
11349
11350  case $GCC,$host_os in
11351  yes,cygwin* | yes,mingw* | yes,pw32*)
11352    library_names_spec='$libname.dll.a'
11353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11354    postinstall_cmds='base_file=`basename \${file}`~
11355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11356      dldir=$destdir/`dirname \$dlpath`~
11357      test -d \$dldir || mkdir -p \$dldir~
11358      $install_prog $dir/$dlname \$dldir/$dlname'
11359    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11360      dlpath=$dir/\$dldll~
11361       $rm \$dlpath'
11362    shlibpath_overrides_runpath=yes
11363
11364    case $host_os in
11365    cygwin*)
11366      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11367      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11368      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11369      ;;
11370    mingw*)
11371      # MinGW DLLs use traditional 'lib' prefix
11372      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11374      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11375        # It is most probably a Windows format PATH printed by
11376        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11377        # path with ; separators, and with drive letters. We can handle the
11378        # drive letters (cygwin fileutils understands them), so leave them,
11379        # especially as we might pass files found there to a mingw objdump,
11380        # which wouldn't understand a cygwinified path. Ahh.
11381        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11382      else
11383        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11384      fi
11385      ;;
11386    pw32*)
11387      # pw32 DLLs use 'pw' prefix rather than 'lib'
11388      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11389      ;;
11390    esac
11391    ;;
11392
11393  *)
11394    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11395    ;;
11396  esac
11397  dynamic_linker='Win32 ld.exe'
11398  # FIXME: first we should search . and the directory the executable is in
11399  shlibpath_var=PATH
11400  ;;
11401
11402darwin* | rhapsody*)
11403  dynamic_linker="$host_os dyld"
11404  version_type=darwin
11405  need_lib_prefix=no
11406  need_version=no
11407  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11408  soname_spec='${libname}${release}${major}$shared_ext'
11409  shlibpath_overrides_runpath=yes
11410  shlibpath_var=DYLD_LIBRARY_PATH
11411  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11412  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11413  if test "$GCC" = yes; then
11414    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"`
11415  else
11416    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11417  fi
11418  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11419  ;;
11420
11421dgux*)
11422  version_type=linux
11423  need_lib_prefix=no
11424  need_version=no
11425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11426  soname_spec='${libname}${release}${shared_ext}$major'
11427  shlibpath_var=LD_LIBRARY_PATH
11428  ;;
11429
11430freebsd1*)
11431  dynamic_linker=no
11432  ;;
11433
11434kfreebsd*-gnu)
11435  version_type=linux
11436  need_lib_prefix=no
11437  need_version=no
11438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439  soname_spec='${libname}${release}${shared_ext}$major'
11440  shlibpath_var=LD_LIBRARY_PATH
11441  shlibpath_overrides_runpath=no
11442  hardcode_into_libs=yes
11443  dynamic_linker='GNU ld.so'
11444  ;;
11445
11446freebsd*)
11447  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11448  version_type=freebsd-$objformat
11449  case $version_type in
11450    freebsd-elf*)
11451      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11452      need_version=no
11453      need_lib_prefix=no
11454      ;;
11455    freebsd-*)
11456      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11457      need_version=yes
11458      ;;
11459  esac
11460  shlibpath_var=LD_LIBRARY_PATH
11461  case $host_os in
11462  freebsd2*)
11463    shlibpath_overrides_runpath=yes
11464    ;;
11465  freebsd3.01* | freebsdelf3.01*)
11466    shlibpath_overrides_runpath=yes
11467    hardcode_into_libs=yes
11468    ;;
11469  *) # from 3.2 on
11470    shlibpath_overrides_runpath=no
11471    hardcode_into_libs=yes
11472    ;;
11473  esac
11474  ;;
11475
11476gnu*)
11477  version_type=linux
11478  need_lib_prefix=no
11479  need_version=no
11480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11481  soname_spec='${libname}${release}${shared_ext}$major'
11482  shlibpath_var=LD_LIBRARY_PATH
11483  hardcode_into_libs=yes
11484  ;;
11485
11486hpux9* | hpux10* | hpux11*)
11487  # Give a soname corresponding to the major version so that dld.sl refuses to
11488  # link against other versions.
11489  version_type=sunos
11490  need_lib_prefix=no
11491  need_version=no
11492  case "$host_cpu" in
11493  ia64*)
11494    shrext_cmds='.so'
11495    hardcode_into_libs=yes
11496    dynamic_linker="$host_os dld.so"
11497    shlibpath_var=LD_LIBRARY_PATH
11498    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500    soname_spec='${libname}${release}${shared_ext}$major'
11501    if test "X$HPUX_IA64_MODE" = X32; then
11502      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503    else
11504      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11505    fi
11506    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11507    ;;
11508   hppa*64*)
11509     shrext_cmds='.sl'
11510     hardcode_into_libs=yes
11511     dynamic_linker="$host_os dld.sl"
11512     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515     soname_spec='${libname}${release}${shared_ext}$major'
11516     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11518     ;;
11519   *)
11520    shrext_cmds='.sl'
11521    dynamic_linker="$host_os dld.sl"
11522    shlibpath_var=SHLIB_PATH
11523    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525    soname_spec='${libname}${release}${shared_ext}$major'
11526    ;;
11527  esac
11528  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11529  postinstall_cmds='chmod 555 $lib'
11530  ;;
11531
11532irix5* | irix6* | nonstopux*)
11533  case $host_os in
11534    nonstopux*) version_type=nonstopux ;;
11535    *)
11536        if test "$lt_cv_prog_gnu_ld" = yes; then
11537                version_type=linux
11538        else
11539                version_type=irix
11540        fi ;;
11541  esac
11542  need_lib_prefix=no
11543  need_version=no
11544  soname_spec='${libname}${release}${shared_ext}$major'
11545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11546  case $host_os in
11547  irix5* | nonstopux*)
11548    libsuff= shlibsuff=
11549    ;;
11550  *)
11551    case $LD in # libtool.m4 will add one of these switches to LD
11552    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11553      libsuff= shlibsuff= libmagic=32-bit;;
11554    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11555      libsuff=32 shlibsuff=N32 libmagic=N32;;
11556    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11557      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11558    *) libsuff= shlibsuff= libmagic=never-match;;
11559    esac
11560    ;;
11561  esac
11562  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11563  shlibpath_overrides_runpath=no
11564  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11565  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11566  hardcode_into_libs=yes
11567  ;;
11568
11569# No shared lib support for Linux oldld, aout, or coff.
11570linux*oldld* | linux*aout* | linux*coff*)
11571  dynamic_linker=no
11572  ;;
11573
11574# This must be Linux ELF.
11575linux*)
11576  version_type=linux
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580  soname_spec='${libname}${release}${shared_ext}$major'
11581  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11582  shlibpath_var=LD_LIBRARY_PATH
11583  shlibpath_overrides_runpath=no
11584  # This implies no fast_install, which is unacceptable.
11585  # Some rework will be needed to allow for fast_install
11586  # before this can be enabled.
11587  hardcode_into_libs=yes
11588
11589  # Append ld.so.conf contents to the search path
11590  if test -f /etc/ld.so.conf; then
11591    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11592    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11593  fi
11594
11595  # We used to test for /lib/ld.so.1 and disable shared libraries on
11596  # powerpc, because MkLinux only supported shared libraries with the
11597  # GNU dynamic linker.  Since this was broken with cross compilers,
11598  # most powerpc-linux boxes support dynamic linking these days and
11599  # people can always --disable-shared, the test was removed, and we
11600  # assume the GNU/Linux dynamic linker is in use.
11601  dynamic_linker='GNU/Linux ld.so'
11602  ;;
11603
11604netbsdelf*-gnu)
11605  version_type=linux
11606  need_lib_prefix=no
11607  need_version=no
11608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609  soname_spec='${libname}${release}${shared_ext}$major'
11610  shlibpath_var=LD_LIBRARY_PATH
11611  shlibpath_overrides_runpath=no
11612  hardcode_into_libs=yes
11613  dynamic_linker='NetBSD ld.elf_so'
11614  ;;
11615
11616knetbsd*-gnu)
11617  version_type=linux
11618  need_lib_prefix=no
11619  need_version=no
11620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621  soname_spec='${libname}${release}${shared_ext}$major'
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=no
11624  hardcode_into_libs=yes
11625  dynamic_linker='GNU ld.so'
11626  ;;
11627
11628netbsd*)
11629  version_type=sunos
11630  need_lib_prefix=no
11631  need_version=no
11632  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11633    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635    dynamic_linker='NetBSD (a.out) ld.so'
11636  else
11637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11638    soname_spec='${libname}${release}${shared_ext}$major'
11639    dynamic_linker='NetBSD ld.elf_so'
11640  fi
11641  shlibpath_var=LD_LIBRARY_PATH
11642  shlibpath_overrides_runpath=yes
11643  hardcode_into_libs=yes
11644  ;;
11645
11646newsos6)
11647  version_type=linux
11648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649  shlibpath_var=LD_LIBRARY_PATH
11650  shlibpath_overrides_runpath=yes
11651  ;;
11652
11653nto-qnx*)
11654  version_type=linux
11655  need_lib_prefix=no
11656  need_version=no
11657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658  soname_spec='${libname}${release}${shared_ext}$major'
11659  shlibpath_var=LD_LIBRARY_PATH
11660  shlibpath_overrides_runpath=yes
11661  ;;
11662
11663openbsd*)
11664  version_type=sunos
11665  need_lib_prefix=no
11666  need_version=yes
11667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11668  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11669  shlibpath_var=LD_LIBRARY_PATH
11670  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11671    case $host_os in
11672      openbsd2.[89] | openbsd2.[89].*)
11673        shlibpath_overrides_runpath=no
11674        ;;
11675      *)
11676        shlibpath_overrides_runpath=yes
11677        ;;
11678      esac
11679  else
11680    shlibpath_overrides_runpath=yes
11681  fi
11682  ;;
11683
11684os2*)
11685  libname_spec='$name'
11686  shrext_cmds=".dll"
11687  need_lib_prefix=no
11688  library_names_spec='$libname${shared_ext} $libname.a'
11689  dynamic_linker='OS/2 ld.exe'
11690  shlibpath_var=LIBPATH
11691  ;;
11692
11693osf3* | osf4* | osf5*)
11694  version_type=osf
11695  need_lib_prefix=no
11696  need_version=no
11697  soname_spec='${libname}${release}${shared_ext}$major'
11698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11701  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11702  ;;
11703
11704sco3.2v5*)
11705  version_type=osf
11706  soname_spec='${libname}${release}${shared_ext}$major'
11707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708  shlibpath_var=LD_LIBRARY_PATH
11709  ;;
11710
11711solaris*)
11712  version_type=linux
11713  need_lib_prefix=no
11714  need_version=no
11715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716  soname_spec='${libname}${release}${shared_ext}$major'
11717  shlibpath_var=LD_LIBRARY_PATH
11718  shlibpath_overrides_runpath=yes
11719  hardcode_into_libs=yes
11720  # ldd complains unless libraries are executable
11721  postinstall_cmds='chmod +x $lib'
11722  ;;
11723
11724sunos4*)
11725  version_type=sunos
11726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728  shlibpath_var=LD_LIBRARY_PATH
11729  shlibpath_overrides_runpath=yes
11730  if test "$with_gnu_ld" = yes; then
11731    need_lib_prefix=no
11732  fi
11733  need_version=yes
11734  ;;
11735
11736sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11737  version_type=linux
11738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739  soname_spec='${libname}${release}${shared_ext}$major'
11740  shlibpath_var=LD_LIBRARY_PATH
11741  case $host_vendor in
11742    sni)
11743      shlibpath_overrides_runpath=no
11744      need_lib_prefix=no
11745      export_dynamic_flag_spec='${wl}-Blargedynsym'
11746      runpath_var=LD_RUN_PATH
11747      ;;
11748    siemens)
11749      need_lib_prefix=no
11750      ;;
11751    motorola)
11752      need_lib_prefix=no
11753      need_version=no
11754      shlibpath_overrides_runpath=no
11755      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11756      ;;
11757  esac
11758  ;;
11759
11760sysv4*MP*)
11761  if test -d /usr/nec ;then
11762    version_type=linux
11763    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11764    soname_spec='$libname${shared_ext}.$major'
11765    shlibpath_var=LD_LIBRARY_PATH
11766  fi
11767  ;;
11768
11769uts4*)
11770  version_type=linux
11771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772  soname_spec='${libname}${release}${shared_ext}$major'
11773  shlibpath_var=LD_LIBRARY_PATH
11774  ;;
11775
11776*)
11777  dynamic_linker=no
11778  ;;
11779esac
11780echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11781echo "${ECHO_T}$dynamic_linker" >&6
11782test "$dynamic_linker" = no && can_build_shared=no
11783
11784echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11785echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11786hardcode_action_CXX=
11787if test -n "$hardcode_libdir_flag_spec_CXX" || \
11788   test -n "$runpath_var CXX" || \
11789   test "X$hardcode_automatic_CXX"="Xyes" ; then
11790
11791  # We can hardcode non-existant directories.
11792  if test "$hardcode_direct_CXX" != no &&
11793     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794     # have to relink, otherwise we might link with an installed library
11795     # when we should be linking with a yet-to-be-installed one
11796     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11797     test "$hardcode_minus_L_CXX" != no; then
11798    # Linking always hardcodes the temporary library directory.
11799    hardcode_action_CXX=relink
11800  else
11801    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802    hardcode_action_CXX=immediate
11803  fi
11804else
11805  # We cannot hardcode anything, or else we can only hardcode existing
11806  # directories.
11807  hardcode_action_CXX=unsupported
11808fi
11809echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11810echo "${ECHO_T}$hardcode_action_CXX" >&6
11811
11812if test "$hardcode_action_CXX" = relink; then
11813  # Fast installation is not supported
11814  enable_fast_install=no
11815elif test "$shlibpath_overrides_runpath" = yes ||
11816     test "$enable_shared" = no; then
11817  # Fast installation is not necessary
11818  enable_fast_install=needless
11819fi
11820
11821striplib=
11822old_striplib=
11823echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11824echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11825if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11826  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11827  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11828  echo "$as_me:$LINENO: result: yes" >&5
11829echo "${ECHO_T}yes" >&6
11830else
11831# FIXME - insert some real tests, host_os isn't really good enough
11832  case $host_os in
11833   darwin*)
11834       if test -n "$STRIP" ; then
11835         striplib="$STRIP -x"
11836         echo "$as_me:$LINENO: result: yes" >&5
11837echo "${ECHO_T}yes" >&6
11838       else
11839  echo "$as_me:$LINENO: result: no" >&5
11840echo "${ECHO_T}no" >&6
11841fi
11842       ;;
11843   *)
11844  echo "$as_me:$LINENO: result: no" >&5
11845echo "${ECHO_T}no" >&6
11846    ;;
11847  esac
11848fi
11849
11850if test "x$enable_dlopen" != xyes; then
11851  enable_dlopen=unknown
11852  enable_dlopen_self=unknown
11853  enable_dlopen_self_static=unknown
11854else
11855  lt_cv_dlopen=no
11856  lt_cv_dlopen_libs=
11857
11858  case $host_os in
11859  beos*)
11860    lt_cv_dlopen="load_add_on"
11861    lt_cv_dlopen_libs=
11862    lt_cv_dlopen_self=yes
11863    ;;
11864
11865  mingw* | pw32*)
11866    lt_cv_dlopen="LoadLibrary"
11867    lt_cv_dlopen_libs=
11868   ;;
11869
11870  cygwin*)
11871    lt_cv_dlopen="dlopen"
11872    lt_cv_dlopen_libs=
11873   ;;
11874
11875  darwin*)
11876  # if libdl is installed we need to link against it
11877    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11878echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11879if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11880  echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882  ac_check_lib_save_LIBS=$LIBS
11883LIBS="-ldl  $LIBS"
11884cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h.  */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h.  */
11890
11891/* Override any gcc2 internal prototype to avoid an error.  */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895/* We use char because int might match the return type of a gcc2
11896   builtin and then its argument prototype would still apply.  */
11897char dlopen ();
11898int
11899main ()
11900{
11901dlopen ();
11902  ;
11903  return 0;
11904}
11905_ACEOF
11906rm -f conftest.$ac_objext conftest$ac_exeext
11907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11908  (eval $ac_link) 2>conftest.er1
11909  ac_status=$?
11910  grep -v '^ *+' conftest.er1 >conftest.err
11911  rm -f conftest.er1
11912  cat conftest.err >&5
11913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914  (exit $ac_status); } &&
11915         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917  (eval $ac_try) 2>&5
11918  ac_status=$?
11919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920  (exit $ac_status); }; } &&
11921         { ac_try='test -s conftest$ac_exeext'
11922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923  (eval $ac_try) 2>&5
11924  ac_status=$?
11925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926  (exit $ac_status); }; }; then
11927  ac_cv_lib_dl_dlopen=yes
11928else
11929  echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932ac_cv_lib_dl_dlopen=no
11933fi
11934rm -f conftest.err conftest.$ac_objext \
11935      conftest$ac_exeext conftest.$ac_ext
11936LIBS=$ac_check_lib_save_LIBS
11937fi
11938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11940if test $ac_cv_lib_dl_dlopen = yes; then
11941  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11942else
11943
11944    lt_cv_dlopen="dyld"
11945    lt_cv_dlopen_libs=
11946    lt_cv_dlopen_self=yes
11947
11948fi
11949
11950   ;;
11951
11952  *)
11953    echo "$as_me:$LINENO: checking for shl_load" >&5
11954echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11955if test "${ac_cv_func_shl_load+set}" = set; then
11956  echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958  cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h.  */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h.  */
11964/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11966#define shl_load innocuous_shl_load
11967
11968/* System header to define __stub macros and hopefully few prototypes,
11969    which can conflict with char shl_load (); below.
11970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11971    <limits.h> exists even on freestanding compilers.  */
11972
11973#ifdef __STDC__
11974# include <limits.h>
11975#else
11976# include <assert.h>
11977#endif
11978
11979#undef shl_load
11980
11981/* Override any gcc2 internal prototype to avoid an error.  */
11982#ifdef __cplusplus
11983extern "C"
11984{
11985#endif
11986/* We use char because int might match the return type of a gcc2
11987   builtin and then its argument prototype would still apply.  */
11988char shl_load ();
11989/* The GNU C library defines this for functions which it implements
11990    to always fail with ENOSYS.  Some functions are actually named
11991    something starting with __ and the normal name is an alias.  */
11992#if defined (__stub_shl_load) || defined (__stub___shl_load)
11993choke me
11994#else
11995char (*f) () = shl_load;
11996#endif
11997#ifdef __cplusplus
11998}
11999#endif
12000
12001int
12002main ()
12003{
12004return f != shl_load;
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011  (eval $ac_link) 2>conftest.er1
12012  ac_status=$?
12013  grep -v '^ *+' conftest.er1 >conftest.err
12014  rm -f conftest.er1
12015  cat conftest.err >&5
12016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017  (exit $ac_status); } &&
12018         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020  (eval $ac_try) 2>&5
12021  ac_status=$?
12022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); }; } &&
12024         { ac_try='test -s conftest$ac_exeext'
12025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026  (eval $ac_try) 2>&5
12027  ac_status=$?
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); }; }; then
12030  ac_cv_func_shl_load=yes
12031else
12032  echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035ac_cv_func_shl_load=no
12036fi
12037rm -f conftest.err conftest.$ac_objext \
12038      conftest$ac_exeext conftest.$ac_ext
12039fi
12040echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12041echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12042if test $ac_cv_func_shl_load = yes; then
12043  lt_cv_dlopen="shl_load"
12044else
12045  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12046echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12047if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12048  echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050  ac_check_lib_save_LIBS=$LIBS
12051LIBS="-ldld  $LIBS"
12052cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h.  */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h.  */
12058
12059/* Override any gcc2 internal prototype to avoid an error.  */
12060#ifdef __cplusplus
12061extern "C"
12062#endif
12063/* We use char because int might match the return type of a gcc2
12064   builtin and then its argument prototype would still apply.  */
12065char shl_load ();
12066int
12067main ()
12068{
12069shl_load ();
12070  ;
12071  return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext conftest$ac_exeext
12075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076  (eval $ac_link) 2>conftest.er1
12077  ac_status=$?
12078  grep -v '^ *+' conftest.er1 >conftest.err
12079  rm -f conftest.er1
12080  cat conftest.err >&5
12081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082  (exit $ac_status); } &&
12083         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085  (eval $ac_try) 2>&5
12086  ac_status=$?
12087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088  (exit $ac_status); }; } &&
12089         { ac_try='test -s conftest$ac_exeext'
12090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091  (eval $ac_try) 2>&5
12092  ac_status=$?
12093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); }; }; then
12095  ac_cv_lib_dld_shl_load=yes
12096else
12097  echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100ac_cv_lib_dld_shl_load=no
12101fi
12102rm -f conftest.err conftest.$ac_objext \
12103      conftest$ac_exeext conftest.$ac_ext
12104LIBS=$ac_check_lib_save_LIBS
12105fi
12106echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12107echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12108if test $ac_cv_lib_dld_shl_load = yes; then
12109  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12110else
12111  echo "$as_me:$LINENO: checking for dlopen" >&5
12112echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12113if test "${ac_cv_func_dlopen+set}" = set; then
12114  echo $ECHO_N "(cached) $ECHO_C" >&6
12115else
12116  cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h.  */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h.  */
12122/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12124#define dlopen innocuous_dlopen
12125
12126/* System header to define __stub macros and hopefully few prototypes,
12127    which can conflict with char dlopen (); below.
12128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129    <limits.h> exists even on freestanding compilers.  */
12130
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
12136
12137#undef dlopen
12138
12139/* Override any gcc2 internal prototype to avoid an error.  */
12140#ifdef __cplusplus
12141extern "C"
12142{
12143#endif
12144/* We use char because int might match the return type of a gcc2
12145   builtin and then its argument prototype would still apply.  */
12146char dlopen ();
12147/* The GNU C library defines this for functions which it implements
12148    to always fail with ENOSYS.  Some functions are actually named
12149    something starting with __ and the normal name is an alias.  */
12150#if defined (__stub_dlopen) || defined (__stub___dlopen)
12151choke me
12152#else
12153char (*f) () = dlopen;
12154#endif
12155#ifdef __cplusplus
12156}
12157#endif
12158
12159int
12160main ()
12161{
12162return f != dlopen;
12163  ;
12164  return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext conftest$ac_exeext
12168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169  (eval $ac_link) 2>conftest.er1
12170  ac_status=$?
12171  grep -v '^ *+' conftest.er1 >conftest.err
12172  rm -f conftest.er1
12173  cat conftest.err >&5
12174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175  (exit $ac_status); } &&
12176         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178  (eval $ac_try) 2>&5
12179  ac_status=$?
12180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181  (exit $ac_status); }; } &&
12182         { ac_try='test -s conftest$ac_exeext'
12183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184  (eval $ac_try) 2>&5
12185  ac_status=$?
12186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187  (exit $ac_status); }; }; then
12188  ac_cv_func_dlopen=yes
12189else
12190  echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_cv_func_dlopen=no
12194fi
12195rm -f conftest.err conftest.$ac_objext \
12196      conftest$ac_exeext conftest.$ac_ext
12197fi
12198echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12199echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12200if test $ac_cv_func_dlopen = yes; then
12201  lt_cv_dlopen="dlopen"
12202else
12203  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12206  echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208  ac_check_lib_save_LIBS=$LIBS
12209LIBS="-ldl  $LIBS"
12210cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h.  */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h.  */
12216
12217/* Override any gcc2 internal prototype to avoid an error.  */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221/* We use char because int might match the return type of a gcc2
12222   builtin and then its argument prototype would still apply.  */
12223char dlopen ();
12224int
12225main ()
12226{
12227dlopen ();
12228  ;
12229  return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext conftest$ac_exeext
12233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234  (eval $ac_link) 2>conftest.er1
12235  ac_status=$?
12236  grep -v '^ *+' conftest.er1 >conftest.err
12237  rm -f conftest.er1
12238  cat conftest.err >&5
12239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240  (exit $ac_status); } &&
12241         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243  (eval $ac_try) 2>&5
12244  ac_status=$?
12245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246  (exit $ac_status); }; } &&
12247         { ac_try='test -s conftest$ac_exeext'
12248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249  (eval $ac_try) 2>&5
12250  ac_status=$?
12251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252  (exit $ac_status); }; }; then
12253  ac_cv_lib_dl_dlopen=yes
12254else
12255  echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258ac_cv_lib_dl_dlopen=no
12259fi
12260rm -f conftest.err conftest.$ac_objext \
12261      conftest$ac_exeext conftest.$ac_ext
12262LIBS=$ac_check_lib_save_LIBS
12263fi
12264echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12265echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12266if test $ac_cv_lib_dl_dlopen = yes; then
12267  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12268else
12269  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12270echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12271if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12272  echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274  ac_check_lib_save_LIBS=$LIBS
12275LIBS="-lsvld  $LIBS"
12276cat >conftest.$ac_ext <<_ACEOF
12277/* confdefs.h.  */
12278_ACEOF
12279cat confdefs.h >>conftest.$ac_ext
12280cat >>conftest.$ac_ext <<_ACEOF
12281/* end confdefs.h.  */
12282
12283/* Override any gcc2 internal prototype to avoid an error.  */
12284#ifdef __cplusplus
12285extern "C"
12286#endif
12287/* We use char because int might match the return type of a gcc2
12288   builtin and then its argument prototype would still apply.  */
12289char dlopen ();
12290int
12291main ()
12292{
12293dlopen ();
12294  ;
12295  return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300  (eval $ac_link) 2>conftest.er1
12301  ac_status=$?
12302  grep -v '^ *+' conftest.er1 >conftest.err
12303  rm -f conftest.er1
12304  cat conftest.err >&5
12305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306  (exit $ac_status); } &&
12307         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309  (eval $ac_try) 2>&5
12310  ac_status=$?
12311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312  (exit $ac_status); }; } &&
12313         { ac_try='test -s conftest$ac_exeext'
12314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315  (eval $ac_try) 2>&5
12316  ac_status=$?
12317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318  (exit $ac_status); }; }; then
12319  ac_cv_lib_svld_dlopen=yes
12320else
12321  echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324ac_cv_lib_svld_dlopen=no
12325fi
12326rm -f conftest.err conftest.$ac_objext \
12327      conftest$ac_exeext conftest.$ac_ext
12328LIBS=$ac_check_lib_save_LIBS
12329fi
12330echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12331echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12332if test $ac_cv_lib_svld_dlopen = yes; then
12333  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12334else
12335  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12336echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12337if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12338  echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340  ac_check_lib_save_LIBS=$LIBS
12341LIBS="-ldld  $LIBS"
12342cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h.  */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h.  */
12348
12349/* Override any gcc2 internal prototype to avoid an error.  */
12350#ifdef __cplusplus
12351extern "C"
12352#endif
12353/* We use char because int might match the return type of a gcc2
12354   builtin and then its argument prototype would still apply.  */
12355char dld_link ();
12356int
12357main ()
12358{
12359dld_link ();
12360  ;
12361  return 0;
12362}
12363_ACEOF
12364rm -f conftest.$ac_objext conftest$ac_exeext
12365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366  (eval $ac_link) 2>conftest.er1
12367  ac_status=$?
12368  grep -v '^ *+' conftest.er1 >conftest.err
12369  rm -f conftest.er1
12370  cat conftest.err >&5
12371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372  (exit $ac_status); } &&
12373         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375  (eval $ac_try) 2>&5
12376  ac_status=$?
12377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378  (exit $ac_status); }; } &&
12379         { ac_try='test -s conftest$ac_exeext'
12380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381  (eval $ac_try) 2>&5
12382  ac_status=$?
12383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384  (exit $ac_status); }; }; then
12385  ac_cv_lib_dld_dld_link=yes
12386else
12387  echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390ac_cv_lib_dld_dld_link=no
12391fi
12392rm -f conftest.err conftest.$ac_objext \
12393      conftest$ac_exeext conftest.$ac_ext
12394LIBS=$ac_check_lib_save_LIBS
12395fi
12396echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12397echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12398if test $ac_cv_lib_dld_dld_link = yes; then
12399  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12400fi
12401
12402
12403fi
12404
12405
12406fi
12407
12408
12409fi
12410
12411
12412fi
12413
12414
12415fi
12416
12417    ;;
12418  esac
12419
12420  if test "x$lt_cv_dlopen" != xno; then
12421    enable_dlopen=yes
12422  else
12423    enable_dlopen=no
12424  fi
12425
12426  case $lt_cv_dlopen in
12427  dlopen)
12428    save_CPPFLAGS="$CPPFLAGS"
12429    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12430
12431    save_LDFLAGS="$LDFLAGS"
12432    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12433
12434    save_LIBS="$LIBS"
12435    LIBS="$lt_cv_dlopen_libs $LIBS"
12436
12437    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12438echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12439if test "${lt_cv_dlopen_self+set}" = set; then
12440  echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442          if test "$cross_compiling" = yes; then :
12443  lt_cv_dlopen_self=cross
12444else
12445  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12446  lt_status=$lt_dlunknown
12447  cat > conftest.$ac_ext <<EOF
12448#line 12448 "configure"
12449#include "confdefs.h"
12450
12451#if HAVE_DLFCN_H
12452#include <dlfcn.h>
12453#endif
12454
12455#include <stdio.h>
12456
12457#ifdef RTLD_GLOBAL
12458#  define LT_DLGLOBAL           RTLD_GLOBAL
12459#else
12460#  ifdef DL_GLOBAL
12461#    define LT_DLGLOBAL         DL_GLOBAL
12462#  else
12463#    define LT_DLGLOBAL         0
12464#  endif
12465#endif
12466
12467/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12468   find out it does not work in some platform. */
12469#ifndef LT_DLLAZY_OR_NOW
12470#  ifdef RTLD_LAZY
12471#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12472#  else
12473#    ifdef DL_LAZY
12474#      define LT_DLLAZY_OR_NOW          DL_LAZY
12475#    else
12476#      ifdef RTLD_NOW
12477#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12478#      else
12479#        ifdef DL_NOW
12480#          define LT_DLLAZY_OR_NOW      DL_NOW
12481#        else
12482#          define LT_DLLAZY_OR_NOW      0
12483#        endif
12484#      endif
12485#    endif
12486#  endif
12487#endif
12488
12489#ifdef __cplusplus
12490extern "C" void exit (int);
12491#endif
12492
12493void fnord() { int i=42;}
12494int main ()
12495{
12496  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12497  int status = $lt_dlunknown;
12498
12499  if (self)
12500    {
12501      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12502      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12503      /* dlclose (self); */
12504    }
12505
12506    exit (status);
12507}
12508EOF
12509  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510  (eval $ac_link) 2>&5
12511  ac_status=$?
12512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12514    (./conftest; exit; ) 2>/dev/null
12515    lt_status=$?
12516    case x$lt_status in
12517      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12518      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12519      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12520    esac
12521  else :
12522    # compilation failed
12523    lt_cv_dlopen_self=no
12524  fi
12525fi
12526rm -fr conftest*
12527
12528
12529fi
12530echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12531echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12532
12533    if test "x$lt_cv_dlopen_self" = xyes; then
12534      LDFLAGS="$LDFLAGS $link_static_flag"
12535      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12536echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12537if test "${lt_cv_dlopen_self_static+set}" = set; then
12538  echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540          if test "$cross_compiling" = yes; then :
12541  lt_cv_dlopen_self_static=cross
12542else
12543  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12544  lt_status=$lt_dlunknown
12545  cat > conftest.$ac_ext <<EOF
12546#line 12546 "configure"
12547#include "confdefs.h"
12548
12549#if HAVE_DLFCN_H
12550#include <dlfcn.h>
12551#endif
12552
12553#include <stdio.h>
12554
12555#ifdef RTLD_GLOBAL
12556#  define LT_DLGLOBAL           RTLD_GLOBAL
12557#else
12558#  ifdef DL_GLOBAL
12559#    define LT_DLGLOBAL         DL_GLOBAL
12560#  else
12561#    define LT_DLGLOBAL         0
12562#  endif
12563#endif
12564
12565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12566   find out it does not work in some platform. */
12567#ifndef LT_DLLAZY_OR_NOW
12568#  ifdef RTLD_LAZY
12569#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12570#  else
12571#    ifdef DL_LAZY
12572#      define LT_DLLAZY_OR_NOW          DL_LAZY
12573#    else
12574#      ifdef RTLD_NOW
12575#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12576#      else
12577#        ifdef DL_NOW
12578#          define LT_DLLAZY_OR_NOW      DL_NOW
12579#        else
12580#          define LT_DLLAZY_OR_NOW      0
12581#        endif
12582#      endif
12583#    endif
12584#  endif
12585#endif
12586
12587#ifdef __cplusplus
12588extern "C" void exit (int);
12589#endif
12590
12591void fnord() { int i=42;}
12592int main ()
12593{
12594  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12595  int status = $lt_dlunknown;
12596
12597  if (self)
12598    {
12599      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12600      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12601      /* dlclose (self); */
12602    }
12603
12604    exit (status);
12605}
12606EOF
12607  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608  (eval $ac_link) 2>&5
12609  ac_status=$?
12610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12612    (./conftest; exit; ) 2>/dev/null
12613    lt_status=$?
12614    case x$lt_status in
12615      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12616      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12617      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12618    esac
12619  else :
12620    # compilation failed
12621    lt_cv_dlopen_self_static=no
12622  fi
12623fi
12624rm -fr conftest*
12625
12626
12627fi
12628echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12629echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12630    fi
12631
12632    CPPFLAGS="$save_CPPFLAGS"
12633    LDFLAGS="$save_LDFLAGS"
12634    LIBS="$save_LIBS"
12635    ;;
12636  esac
12637
12638  case $lt_cv_dlopen_self in
12639  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12640  *) enable_dlopen_self=unknown ;;
12641  esac
12642
12643  case $lt_cv_dlopen_self_static in
12644  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12645  *) enable_dlopen_self_static=unknown ;;
12646  esac
12647fi
12648
12649
12650# The else clause should only fire when bootstrapping the
12651# libtool distribution, otherwise you forgot to ship ltmain.sh
12652# with your package, and you will get complaints that there are
12653# no rules to generate ltmain.sh.
12654if test -f "$ltmain"; then
12655  # See if we are running on zsh, and set the options which allow our commands through
12656  # without removal of \ escapes.
12657  if test -n "${ZSH_VERSION+set}" ; then
12658    setopt NO_GLOB_SUBST
12659  fi
12660  # Now quote all the things that may contain metacharacters while being
12661  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12662  # variables and quote the copies for generation of the libtool script.
12663  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12664    SED SHELL STRIP \
12665    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12666    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12667    deplibs_check_method reload_flag reload_cmds need_locks \
12668    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12669    lt_cv_sys_global_symbol_to_c_name_address \
12670    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12671    old_postinstall_cmds old_postuninstall_cmds \
12672    compiler_CXX \
12673    CC_CXX \
12674    LD_CXX \
12675    lt_prog_compiler_wl_CXX \
12676    lt_prog_compiler_pic_CXX \
12677    lt_prog_compiler_static_CXX \
12678    lt_prog_compiler_no_builtin_flag_CXX \
12679    export_dynamic_flag_spec_CXX \
12680    thread_safe_flag_spec_CXX \
12681    whole_archive_flag_spec_CXX \
12682    enable_shared_with_static_runtimes_CXX \
12683    old_archive_cmds_CXX \
12684    old_archive_from_new_cmds_CXX \
12685    predep_objects_CXX \
12686    postdep_objects_CXX \
12687    predeps_CXX \
12688    postdeps_CXX \
12689    compiler_lib_search_path_CXX \
12690    archive_cmds_CXX \
12691    archive_expsym_cmds_CXX \
12692    postinstall_cmds_CXX \
12693    postuninstall_cmds_CXX \
12694    old_archive_from_expsyms_cmds_CXX \
12695    allow_undefined_flag_CXX \
12696    no_undefined_flag_CXX \
12697    export_symbols_cmds_CXX \
12698    hardcode_libdir_flag_spec_CXX \
12699    hardcode_libdir_flag_spec_ld_CXX \
12700    hardcode_libdir_separator_CXX \
12701    hardcode_automatic_CXX \
12702    module_cmds_CXX \
12703    module_expsym_cmds_CXX \
12704    lt_cv_prog_compiler_c_o_CXX \
12705    exclude_expsyms_CXX \
12706    include_expsyms_CXX; do
12707
12708    case $var in
12709    old_archive_cmds_CXX | \
12710    old_archive_from_new_cmds_CXX | \
12711    archive_cmds_CXX | \
12712    archive_expsym_cmds_CXX | \
12713    module_cmds_CXX | \
12714    module_expsym_cmds_CXX | \
12715    old_archive_from_expsyms_cmds_CXX | \
12716    export_symbols_cmds_CXX | \
12717    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12718    postinstall_cmds | postuninstall_cmds | \
12719    old_postinstall_cmds | old_postuninstall_cmds | \
12720    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12721      # Double-quote double-evaled strings.
12722      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12723      ;;
12724    *)
12725      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12726      ;;
12727    esac
12728  done
12729
12730  case $lt_echo in
12731  *'\$0 --fallback-echo"')
12732    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12733    ;;
12734  esac
12735
12736cfgfile="$ofile"
12737
12738  cat <<__EOF__ >> "$cfgfile"
12739# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12740
12741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12742
12743# Shell to use when invoking shell scripts.
12744SHELL=$lt_SHELL
12745
12746# Whether or not to build shared libraries.
12747build_libtool_libs=$enable_shared
12748
12749# Whether or not to build static libraries.
12750build_old_libs=$enable_static
12751
12752# Whether or not to add -lc for building shared libraries.
12753build_libtool_need_lc=$archive_cmds_need_lc_CXX
12754
12755# Whether or not to disallow shared libs when runtime libs are static
12756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12757
12758# Whether or not to optimize for fast installation.
12759fast_install=$enable_fast_install
12760
12761# The host system.
12762host_alias=$host_alias
12763host=$host
12764
12765# An echo program that does not interpret backslashes.
12766echo=$lt_echo
12767
12768# The archiver.
12769AR=$lt_AR
12770AR_FLAGS=$lt_AR_FLAGS
12771
12772# A C compiler.
12773LTCC=$lt_LTCC
12774
12775# A language-specific compiler.
12776CC=$lt_compiler_CXX
12777
12778# Is the compiler the GNU C compiler?
12779with_gcc=$GCC_CXX
12780
12781# An ERE matcher.
12782EGREP=$lt_EGREP
12783
12784# The linker used to build libraries.
12785LD=$lt_LD_CXX
12786
12787# Whether we need hard or soft links.
12788LN_S=$lt_LN_S
12789
12790# A BSD-compatible nm program.
12791NM=$lt_NM
12792
12793# A symbol stripping program
12794STRIP=$lt_STRIP
12795
12796# Used to examine libraries when file_magic_cmd begins "file"
12797MAGIC_CMD=$MAGIC_CMD
12798
12799# Used on cygwin: DLL creation program.
12800DLLTOOL="$DLLTOOL"
12801
12802# Used on cygwin: object dumper.
12803OBJDUMP="$OBJDUMP"
12804
12805# Used on cygwin: assembler.
12806AS="$AS"
12807
12808# The name of the directory that contains temporary libtool files.
12809objdir=$objdir
12810
12811# How to create reloadable object files.
12812reload_flag=$lt_reload_flag
12813reload_cmds=$lt_reload_cmds
12814
12815# How to pass a linker flag through the compiler.
12816wl=$lt_lt_prog_compiler_wl_CXX
12817
12818# Object file suffix (normally "o").
12819objext="$ac_objext"
12820
12821# Old archive suffix (normally "a").
12822libext="$libext"
12823
12824# Shared library suffix (normally ".so").
12825shrext_cmds='$shrext_cmds'
12826
12827# Executable file suffix (normally "").
12828exeext="$exeext"
12829
12830# Additional compiler flags for building library objects.
12831pic_flag=$lt_lt_prog_compiler_pic_CXX
12832pic_mode=$pic_mode
12833
12834# What is the maximum length of a command?
12835max_cmd_len=$lt_cv_sys_max_cmd_len
12836
12837# Does compiler simultaneously support -c and -o options?
12838compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12839
12840# Must we lock files when doing compilation ?
12841need_locks=$lt_need_locks
12842
12843# Do we need the lib prefix for modules?
12844need_lib_prefix=$need_lib_prefix
12845
12846# Do we need a version for libraries?
12847need_version=$need_version
12848
12849# Whether dlopen is supported.
12850dlopen_support=$enable_dlopen
12851
12852# Whether dlopen of programs is supported.
12853dlopen_self=$enable_dlopen_self
12854
12855# Whether dlopen of statically linked programs is supported.
12856dlopen_self_static=$enable_dlopen_self_static
12857
12858# Compiler flag to prevent dynamic linking.
12859link_static_flag=$lt_lt_prog_compiler_static_CXX
12860
12861# Compiler flag to turn off builtin functions.
12862no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12863
12864# Compiler flag to allow reflexive dlopens.
12865export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12866
12867# Compiler flag to generate shared objects directly from archives.
12868whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12869
12870# Compiler flag to generate thread-safe objects.
12871thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12872
12873# Library versioning type.
12874version_type=$version_type
12875
12876# Format of library name prefix.
12877libname_spec=$lt_libname_spec
12878
12879# List of archive names.  First name is the real one, the rest are links.
12880# The last name is the one that the linker finds with -lNAME.
12881library_names_spec=$lt_library_names_spec
12882
12883# The coded name of the library, if different from the real name.
12884soname_spec=$lt_soname_spec
12885
12886# Commands used to build and install an old-style archive.
12887RANLIB=$lt_RANLIB
12888old_archive_cmds=$lt_old_archive_cmds_CXX
12889old_postinstall_cmds=$lt_old_postinstall_cmds
12890old_postuninstall_cmds=$lt_old_postuninstall_cmds
12891
12892# Create an old-style archive from a shared archive.
12893old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12894
12895# Create a temporary old-style archive to link instead of a shared archive.
12896old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12897
12898# Commands used to build and install a shared archive.
12899archive_cmds=$lt_archive_cmds_CXX
12900archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12901postinstall_cmds=$lt_postinstall_cmds
12902postuninstall_cmds=$lt_postuninstall_cmds
12903
12904# Commands used to build a loadable module (assumed same as above if empty)
12905module_cmds=$lt_module_cmds_CXX
12906module_expsym_cmds=$lt_module_expsym_cmds_CXX
12907
12908# Commands to strip libraries.
12909old_striplib=$lt_old_striplib
12910striplib=$lt_striplib
12911
12912# Dependencies to place before the objects being linked to create a
12913# shared library.
12914predep_objects=$lt_predep_objects_CXX
12915
12916# Dependencies to place after the objects being linked to create a
12917# shared library.
12918postdep_objects=$lt_postdep_objects_CXX
12919
12920# Dependencies to place before the objects being linked to create a
12921# shared library.
12922predeps=$lt_predeps_CXX
12923
12924# Dependencies to place after the objects being linked to create a
12925# shared library.
12926postdeps=$lt_postdeps_CXX
12927
12928# The library search path used internally by the compiler when linking
12929# a shared library.
12930compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12931
12932# Method to check whether dependent libraries are shared objects.
12933deplibs_check_method=$lt_deplibs_check_method
12934
12935# Command to use when deplibs_check_method == file_magic.
12936file_magic_cmd=$lt_file_magic_cmd
12937
12938# Flag that allows shared libraries with undefined symbols to be built.
12939allow_undefined_flag=$lt_allow_undefined_flag_CXX
12940
12941# Flag that forces no undefined symbols.
12942no_undefined_flag=$lt_no_undefined_flag_CXX
12943
12944# Commands used to finish a libtool library installation in a directory.
12945finish_cmds=$lt_finish_cmds
12946
12947# Same as above, but a single script fragment to be evaled but not shown.
12948finish_eval=$lt_finish_eval
12949
12950# Take the output of nm and produce a listing of raw symbols and C names.
12951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12952
12953# Transform the output of nm in a proper C declaration
12954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12955
12956# Transform the output of nm in a C name address pair
12957global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12958
12959# This is the shared library runtime path variable.
12960runpath_var=$runpath_var
12961
12962# This is the shared library path variable.
12963shlibpath_var=$shlibpath_var
12964
12965# Is shlibpath searched before the hard-coded library search path?
12966shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12967
12968# How to hardcode a shared library path into an executable.
12969hardcode_action=$hardcode_action_CXX
12970
12971# Whether we should hardcode library paths into libraries.
12972hardcode_into_libs=$hardcode_into_libs
12973
12974# Flag to hardcode \$libdir into a binary during linking.
12975# This must work even if \$libdir does not exist.
12976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12977
12978# If ld is used when linking, flag to hardcode \$libdir into
12979# a binary during linking. This must work even if \$libdir does
12980# not exist.
12981hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12982
12983# Whether we need a single -rpath flag with a separated argument.
12984hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12985
12986# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12987# resulting binary.
12988hardcode_direct=$hardcode_direct_CXX
12989
12990# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12991# resulting binary.
12992hardcode_minus_L=$hardcode_minus_L_CXX
12993
12994# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12995# the resulting binary.
12996hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12997
12998# Set to yes if building a shared library automatically hardcodes DIR into the library
12999# and all subsequent libraries and executables linked against it.
13000hardcode_automatic=$hardcode_automatic_CXX
13001
13002# Variables whose values should be saved in libtool wrapper scripts and
13003# restored at relink time.
13004variables_saved_for_relink="$variables_saved_for_relink"
13005
13006# Whether libtool must link a program against all its dependency libraries.
13007link_all_deplibs=$link_all_deplibs_CXX
13008
13009# Compile-time system search path for libraries
13010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13011
13012# Run-time system search path for libraries
13013sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13014
13015# Fix the shell variable \$srcfile for the compiler.
13016fix_srcfile_path="$fix_srcfile_path_CXX"
13017
13018# Set to yes if exported symbols are required.
13019always_export_symbols=$always_export_symbols_CXX
13020
13021# The commands to list exported symbols.
13022export_symbols_cmds=$lt_export_symbols_cmds_CXX
13023
13024# The commands to extract the exported symbol list from a shared archive.
13025extract_expsyms_cmds=$lt_extract_expsyms_cmds
13026
13027# Symbols that should not be listed in the preloaded symbols.
13028exclude_expsyms=$lt_exclude_expsyms_CXX
13029
13030# Symbols that must always be exported.
13031include_expsyms=$lt_include_expsyms_CXX
13032
13033# ### END LIBTOOL TAG CONFIG: $tagname
13034
13035__EOF__
13036
13037
13038else
13039  # If there is no Makefile yet, we rely on a make rule to execute
13040  # `config.status --recheck' to rerun these tests and create the
13041  # libtool script then.
13042  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13043  if test -f "$ltmain_in"; then
13044    test -f Makefile && make "$ltmain"
13045  fi
13046fi
13047
13048
13049ac_ext=c
13050ac_cpp='$CPP $CPPFLAGS'
13051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13053ac_compiler_gnu=$ac_cv_c_compiler_gnu
13054
13055CC=$lt_save_CC
13056LDCXX=$LD
13057LD=$lt_save_LD
13058GCC=$lt_save_GCC
13059with_gnu_ldcxx=$with_gnu_ld
13060with_gnu_ld=$lt_save_with_gnu_ld
13061lt_cv_path_LDCXX=$lt_cv_path_LD
13062lt_cv_path_LD=$lt_save_path_LD
13063lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13064lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13065
13066        else
13067          tagname=""
13068        fi
13069        ;;
13070
13071      F77)
13072        if test -n "$F77" && test "X$F77" != "Xno"; then
13073
13074ac_ext=f
13075ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13076ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13078
13079
13080archive_cmds_need_lc_F77=no
13081allow_undefined_flag_F77=
13082always_export_symbols_F77=no
13083archive_expsym_cmds_F77=
13084export_dynamic_flag_spec_F77=
13085hardcode_direct_F77=no
13086hardcode_libdir_flag_spec_F77=
13087hardcode_libdir_flag_spec_ld_F77=
13088hardcode_libdir_separator_F77=
13089hardcode_minus_L_F77=no
13090hardcode_automatic_F77=no
13091module_cmds_F77=
13092module_expsym_cmds_F77=
13093link_all_deplibs_F77=unknown
13094old_archive_cmds_F77=$old_archive_cmds
13095no_undefined_flag_F77=
13096whole_archive_flag_spec_F77=
13097enable_shared_with_static_runtimes_F77=no
13098
13099# Source file extension for f77 test sources.
13100ac_ext=f
13101
13102# Object file extension for compiled f77 test sources.
13103objext=o
13104objext_F77=$objext
13105
13106# Code to be used in simple compile tests
13107lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13108
13109# Code to be used in simple link tests
13110lt_simple_link_test_code="      program t\n      end\n"
13111
13112# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13113
13114# If no C compiler was specified, use CC.
13115LTCC=${LTCC-"$CC"}
13116
13117# Allow CC to be a program name with arguments.
13118compiler=$CC
13119
13120
13121# Allow CC to be a program name with arguments.
13122lt_save_CC="$CC"
13123CC=${F77-"f77"}
13124compiler=$CC
13125compiler_F77=$CC
13126cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13127
13128echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13129echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13130echo "$as_me:$LINENO: result: $can_build_shared" >&5
13131echo "${ECHO_T}$can_build_shared" >&6
13132
13133echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13134echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13135test "$can_build_shared" = "no" && enable_shared=no
13136
13137# On AIX, shared libraries and static libraries use the same namespace, and
13138# are all built from PIC.
13139case "$host_os" in
13140aix3*)
13141  test "$enable_shared" = yes && enable_static=no
13142  if test -n "$RANLIB"; then
13143    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13144    postinstall_cmds='$RANLIB $lib'
13145  fi
13146  ;;
13147aix4* | aix5*)
13148  test "$enable_shared" = yes && enable_static=no
13149  ;;
13150esac
13151echo "$as_me:$LINENO: result: $enable_shared" >&5
13152echo "${ECHO_T}$enable_shared" >&6
13153
13154echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13155echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13156# Make sure either enable_shared or enable_static is yes.
13157test "$enable_shared" = yes || enable_static=yes
13158echo "$as_me:$LINENO: result: $enable_static" >&5
13159echo "${ECHO_T}$enable_static" >&6
13160
13161test "$ld_shlibs_F77" = no && can_build_shared=no
13162
13163GCC_F77="$G77"
13164LD_F77="$LD"
13165
13166lt_prog_compiler_wl_F77=
13167lt_prog_compiler_pic_F77=
13168lt_prog_compiler_static_F77=
13169
13170echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13171echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13172
13173  if test "$GCC" = yes; then
13174    lt_prog_compiler_wl_F77='-Wl,'
13175    lt_prog_compiler_static_F77='-static'
13176
13177    case $host_os in
13178      aix*)
13179      # All AIX code is PIC.
13180      if test "$host_cpu" = ia64; then
13181        # AIX 5 now supports IA64 processor
13182        lt_prog_compiler_static_F77='-Bstatic'
13183      fi
13184      ;;
13185
13186    amigaos*)
13187      # FIXME: we need at least 68020 code to build shared libraries, but
13188      # adding the `-m68020' flag to GCC prevents building anything better,
13189      # like `-m68040'.
13190      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13191      ;;
13192
13193    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13194      # PIC is the default for these OSes.
13195      ;;
13196
13197    mingw* | pw32* | os2*)
13198      # This hack is so that the source file can tell whether it is being
13199      # built for inclusion in a dll (and should export symbols for example).
13200      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13201      ;;
13202
13203    darwin* | rhapsody*)
13204      # PIC is the default on this platform
13205      # Common symbols not allowed in MH_DYLIB files
13206      lt_prog_compiler_pic_F77='-fno-common'
13207      ;;
13208
13209    msdosdjgpp*)
13210      # Just because we use GCC doesn't mean we suddenly get shared libraries
13211      # on systems that don't support them.
13212      lt_prog_compiler_can_build_shared_F77=no
13213      enable_shared=no
13214      ;;
13215
13216    sysv4*MP*)
13217      if test -d /usr/nec; then
13218        lt_prog_compiler_pic_F77=-Kconform_pic
13219      fi
13220      ;;
13221
13222    hpux*)
13223      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13224      # not for PA HP-UX.
13225      case "$host_cpu" in
13226      hppa*64*|ia64*)
13227        # +Z the default
13228        ;;
13229      *)
13230        lt_prog_compiler_pic_F77='-fPIC'
13231        ;;
13232      esac
13233      ;;
13234
13235    *)
13236      lt_prog_compiler_pic_F77='-fPIC'
13237      ;;
13238    esac
13239  else
13240    # PORTME Check for flag to pass linker flags through the system compiler.
13241    case $host_os in
13242    aix*)
13243      lt_prog_compiler_wl_F77='-Wl,'
13244      if test "$host_cpu" = ia64; then
13245        # AIX 5 now supports IA64 processor
13246        lt_prog_compiler_static_F77='-Bstatic'
13247      else
13248        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13249      fi
13250      ;;
13251
13252    mingw* | pw32* | os2*)
13253      # This hack is so that the source file can tell whether it is being
13254      # built for inclusion in a dll (and should export symbols for example).
13255      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13256      ;;
13257
13258    hpux9* | hpux10* | hpux11*)
13259      lt_prog_compiler_wl_F77='-Wl,'
13260      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13261      # not for PA HP-UX.
13262      case "$host_cpu" in
13263      hppa*64*|ia64*)
13264        # +Z the default
13265        ;;
13266      *)
13267        lt_prog_compiler_pic_F77='+Z'
13268        ;;
13269      esac
13270      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13271      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13272      ;;
13273
13274    irix5* | irix6* | nonstopux*)
13275      lt_prog_compiler_wl_F77='-Wl,'
13276      # PIC (with -KPIC) is the default.
13277      lt_prog_compiler_static_F77='-non_shared'
13278      ;;
13279
13280    newsos6)
13281      lt_prog_compiler_pic_F77='-KPIC'
13282      lt_prog_compiler_static_F77='-Bstatic'
13283      ;;
13284
13285    linux*)
13286      case $CC in
13287      icc* | ecc*)
13288        lt_prog_compiler_wl_F77='-Wl,'
13289        lt_prog_compiler_pic_F77='-KPIC'
13290        lt_prog_compiler_static_F77='-static'
13291        ;;
13292      ccc*)
13293        lt_prog_compiler_wl_F77='-Wl,'
13294        # All Alpha code is PIC.
13295        lt_prog_compiler_static_F77='-non_shared'
13296        ;;
13297      esac
13298      ;;
13299
13300    osf3* | osf4* | osf5*)
13301      lt_prog_compiler_wl_F77='-Wl,'
13302      # All OSF/1 code is PIC.
13303      lt_prog_compiler_static_F77='-non_shared'
13304      ;;
13305
13306    sco3.2v5*)
13307      lt_prog_compiler_pic_F77='-Kpic'
13308      lt_prog_compiler_static_F77='-dn'
13309      ;;
13310
13311    solaris*)
13312      lt_prog_compiler_wl_F77='-Wl,'
13313      lt_prog_compiler_pic_F77='-KPIC'
13314      lt_prog_compiler_static_F77='-Bstatic'
13315      ;;
13316
13317    sunos4*)
13318      lt_prog_compiler_wl_F77='-Qoption ld '
13319      lt_prog_compiler_pic_F77='-PIC'
13320      lt_prog_compiler_static_F77='-Bstatic'
13321      ;;
13322
13323    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13324      lt_prog_compiler_wl_F77='-Wl,'
13325      lt_prog_compiler_pic_F77='-KPIC'
13326      lt_prog_compiler_static_F77='-Bstatic'
13327      ;;
13328
13329    sysv4*MP*)
13330      if test -d /usr/nec ;then
13331        lt_prog_compiler_pic_F77='-Kconform_pic'
13332        lt_prog_compiler_static_F77='-Bstatic'
13333      fi
13334      ;;
13335
13336    uts4*)
13337      lt_prog_compiler_pic_F77='-pic'
13338      lt_prog_compiler_static_F77='-Bstatic'
13339      ;;
13340
13341    *)
13342      lt_prog_compiler_can_build_shared_F77=no
13343      ;;
13344    esac
13345  fi
13346
13347echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13348echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13349
13350#
13351# Check to make sure the PIC flag actually works.
13352#
13353if test -n "$lt_prog_compiler_pic_F77"; then
13354
13355echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13356echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13357if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13358  echo $ECHO_N "(cached) $ECHO_C" >&6
13359else
13360  lt_prog_compiler_pic_works_F77=no
13361  ac_outfile=conftest.$ac_objext
13362   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13363   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13364   # Insert the option either (1) after the last *FLAGS variable, or
13365   # (2) before a word containing "conftest.", or (3) at the end.
13366   # Note that $ac_compile itself does not contain backslashes and begins
13367   # with a dollar sign (not a hyphen), so the echo should work correctly.
13368   # The option is referenced via a variable to avoid confusing sed.
13369   lt_compile=`echo "$ac_compile" | $SED \
13370   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13372   -e 's:$: $lt_compiler_flag:'`
13373   (eval echo "\"\$as_me:13373: $lt_compile\"" >&5)
13374   (eval "$lt_compile" 2>conftest.err)
13375   ac_status=$?
13376   cat conftest.err >&5
13377   echo "$as_me:13377: \$? = $ac_status" >&5
13378   if (exit $ac_status) && test -s "$ac_outfile"; then
13379     # The compiler can only warn and ignore the option if not recognized
13380     # So say no if there are warnings
13381     if test ! -s conftest.err; then
13382       lt_prog_compiler_pic_works_F77=yes
13383     fi
13384   fi
13385   $rm conftest*
13386
13387fi
13388echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13389echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13390
13391if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13392    case $lt_prog_compiler_pic_F77 in
13393     "" | " "*) ;;
13394     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13395     esac
13396else
13397    lt_prog_compiler_pic_F77=
13398     lt_prog_compiler_can_build_shared_F77=no
13399fi
13400
13401fi
13402case "$host_os" in
13403  # For platforms which do not support PIC, -DPIC is meaningless:
13404  *djgpp*)
13405    lt_prog_compiler_pic_F77=
13406    ;;
13407  *)
13408    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13409    ;;
13410esac
13411
13412echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13413echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13414if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13415  echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417  lt_cv_prog_compiler_c_o_F77=no
13418   $rm -r conftest 2>/dev/null
13419   mkdir conftest
13420   cd conftest
13421   mkdir out
13422   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13423
13424   lt_compiler_flag="-o out/conftest2.$ac_objext"
13425   # Insert the option either (1) after the last *FLAGS variable, or
13426   # (2) before a word containing "conftest.", or (3) at the end.
13427   # Note that $ac_compile itself does not contain backslashes and begins
13428   # with a dollar sign (not a hyphen), so the echo should work correctly.
13429   lt_compile=`echo "$ac_compile" | $SED \
13430   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13431   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13432   -e 's:$: $lt_compiler_flag:'`
13433   (eval echo "\"\$as_me:13433: $lt_compile\"" >&5)
13434   (eval "$lt_compile" 2>out/conftest.err)
13435   ac_status=$?
13436   cat out/conftest.err >&5
13437   echo "$as_me:13437: \$? = $ac_status" >&5
13438   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13439   then
13440     # The compiler can only warn and ignore the option if not recognized
13441     # So say no if there are warnings
13442     if test ! -s out/conftest.err; then
13443       lt_cv_prog_compiler_c_o_F77=yes
13444     fi
13445   fi
13446   chmod u+w .
13447   $rm conftest*
13448   # SGI C++ compiler will create directory out/ii_files/ for
13449   # template instantiation
13450   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13451   $rm out/* && rmdir out
13452   cd ..
13453   rmdir conftest
13454   $rm conftest*
13455
13456fi
13457echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13458echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13459
13460
13461hard_links="nottested"
13462if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13463  # do not overwrite the value of need_locks provided by the user
13464  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13465echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13466  hard_links=yes
13467  $rm conftest*
13468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13469  touch conftest.a
13470  ln conftest.a conftest.b 2>&5 || hard_links=no
13471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13472  echo "$as_me:$LINENO: result: $hard_links" >&5
13473echo "${ECHO_T}$hard_links" >&6
13474  if test "$hard_links" = no; then
13475    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13476echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13477    need_locks=warn
13478  fi
13479else
13480  need_locks=no
13481fi
13482
13483echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13485
13486  runpath_var=
13487  allow_undefined_flag_F77=
13488  enable_shared_with_static_runtimes_F77=no
13489  archive_cmds_F77=
13490  archive_expsym_cmds_F77=
13491  old_archive_From_new_cmds_F77=
13492  old_archive_from_expsyms_cmds_F77=
13493  export_dynamic_flag_spec_F77=
13494  whole_archive_flag_spec_F77=
13495  thread_safe_flag_spec_F77=
13496  hardcode_libdir_flag_spec_F77=
13497  hardcode_libdir_flag_spec_ld_F77=
13498  hardcode_libdir_separator_F77=
13499  hardcode_direct_F77=no
13500  hardcode_minus_L_F77=no
13501  hardcode_shlibpath_var_F77=unsupported
13502  link_all_deplibs_F77=unknown
13503  hardcode_automatic_F77=no
13504  module_cmds_F77=
13505  module_expsym_cmds_F77=
13506  always_export_symbols_F77=no
13507  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13508  # include_expsyms should be a list of space-separated symbols to be *always*
13509  # included in the symbol list
13510  include_expsyms_F77=
13511  # exclude_expsyms can be an extended regexp of symbols to exclude
13512  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13513  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13514  # as well as any symbol that contains `d'.
13515  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13516  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13517  # platforms (ab)use it in PIC code, but their linkers get confused if
13518  # the symbol is explicitly referenced.  Since portable code cannot
13519  # rely on this symbol name, it's probably fine to never include it in
13520  # preloaded symbol tables.
13521  extract_expsyms_cmds=
13522
13523  case $host_os in
13524  cygwin* | mingw* | pw32*)
13525    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13526    # When not using gcc, we currently assume that we are using
13527    # Microsoft Visual C++.
13528    if test "$GCC" != yes; then
13529      with_gnu_ld=no
13530    fi
13531    ;;
13532  openbsd*)
13533    with_gnu_ld=no
13534    ;;
13535  esac
13536
13537  ld_shlibs_F77=yes
13538  if test "$with_gnu_ld" = yes; then
13539    # If archive_cmds runs LD, not CC, wlarc should be empty
13540    wlarc='${wl}'
13541
13542    # See if GNU ld supports shared libraries.
13543    case $host_os in
13544    aix3* | aix4* | aix5*)
13545      # On AIX/PPC, the GNU linker is very broken
13546      if test "$host_cpu" != ia64; then
13547        ld_shlibs_F77=no
13548        cat <<EOF 1>&2
13549
13550*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13551*** to be unable to reliably create shared libraries on AIX.
13552*** Therefore, libtool is disabling shared libraries support.  If you
13553*** really care for shared libraries, you may want to modify your PATH
13554*** so that a non-GNU linker is found, and then restart.
13555
13556EOF
13557      fi
13558      ;;
13559
13560    amigaos*)
13561      archive_cmds_F77='$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)'
13562      hardcode_libdir_flag_spec_F77='-L$libdir'
13563      hardcode_minus_L_F77=yes
13564
13565      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13566      # that the semantics of dynamic libraries on AmigaOS, at least up
13567      # to version 4, is to share data among multiple programs linked
13568      # with the same dynamic library.  Since this doesn't match the
13569      # behavior of shared libraries on other platforms, we can't use
13570      # them.
13571      ld_shlibs_F77=no
13572      ;;
13573
13574    beos*)
13575      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13576        allow_undefined_flag_F77=unsupported
13577        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13578        # support --undefined.  This deserves some investigation.  FIXME
13579        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580      else
13581        ld_shlibs_F77=no
13582      fi
13583      ;;
13584
13585    cygwin* | mingw* | pw32*)
13586      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13587      # as there is no search path for DLLs.
13588      hardcode_libdir_flag_spec_F77='-L$libdir'
13589      allow_undefined_flag_F77=unsupported
13590      always_export_symbols_F77=no
13591      enable_shared_with_static_runtimes_F77=yes
13592      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13593
13594      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13595        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13596        # If the export-symbols file already is a .def file (1st line
13597        # is EXPORTS), use it as is; otherwise, prepend...
13598        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13599          cp $export_symbols $output_objdir/$soname.def;
13600        else
13601          echo EXPORTS > $output_objdir/$soname.def;
13602          cat $export_symbols >> $output_objdir/$soname.def;
13603        fi~
13604        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13605      else
13606        ld_shlibs=no
13607      fi
13608      ;;
13609
13610    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13611      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13612        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13613        wlarc=
13614      else
13615        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13617      fi
13618      ;;
13619
13620    solaris* | sysv5*)
13621      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13622        ld_shlibs_F77=no
13623        cat <<EOF 1>&2
13624
13625*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13626*** create shared libraries on Solaris systems.  Therefore, libtool
13627*** is disabling shared libraries support.  We urge you to upgrade GNU
13628*** binutils to release 2.9.1 or newer.  Another option is to modify
13629*** your PATH or compiler configuration so that the native linker is
13630*** used, and then restart.
13631
13632EOF
13633      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636      else
13637        ld_shlibs_F77=no
13638      fi
13639      ;;
13640
13641    sunos4*)
13642      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643      wlarc=
13644      hardcode_direct_F77=yes
13645      hardcode_shlibpath_var_F77=no
13646      ;;
13647
13648  linux*)
13649    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13650        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651        archive_cmds_F77="$tmp_archive_cmds"
13652      supports_anon_versioning=no
13653      case `$LD -v 2>/dev/null` in
13654        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13655        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13656        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13657        *\ 2.11.*) ;; # other 2.11 versions
13658        *) supports_anon_versioning=yes ;;
13659      esac
13660      if test $supports_anon_versioning = yes; then
13661        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13662cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13663$echo "local: *; };" >> $output_objdir/$libname.ver~
13664        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13665      else
13666        archive_expsym_cmds_F77="$tmp_archive_cmds"
13667      fi
13668      link_all_deplibs_F77=no
13669    else
13670      ld_shlibs_F77=no
13671    fi
13672    ;;
13673
13674    *)
13675      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13676        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13677        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13678      else
13679        ld_shlibs_F77=no
13680      fi
13681      ;;
13682    esac
13683
13684    if test "$ld_shlibs_F77" = yes; then
13685      runpath_var=LD_RUN_PATH
13686      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13687      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13688      # ancient GNU ld didn't support --whole-archive et. al.
13689      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13690        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13691      else
13692        whole_archive_flag_spec_F77=
13693      fi
13694    fi
13695  else
13696    # PORTME fill in a description of your system's linker (not GNU ld)
13697    case $host_os in
13698    aix3*)
13699      allow_undefined_flag_F77=unsupported
13700      always_export_symbols_F77=yes
13701      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13702      # Note: this linker hardcodes the directories in LIBPATH if there
13703      # are no directories specified by -L.
13704      hardcode_minus_L_F77=yes
13705      if test "$GCC" = yes && test -z "$link_static_flag"; then
13706        # Neither direct hardcoding nor static linking is supported with a
13707        # broken collect2.
13708        hardcode_direct_F77=unsupported
13709      fi
13710      ;;
13711
13712    aix4* | aix5*)
13713      if test "$host_cpu" = ia64; then
13714        # On IA64, the linker does run time linking by default, so we don't
13715        # have to do anything special.
13716        aix_use_runtimelinking=no
13717        exp_sym_flag='-Bexport'
13718        no_entry_flag=""
13719      else
13720        # If we're using GNU nm, then we don't want the "-C" option.
13721        # -C means demangle to AIX nm, but means don't demangle with GNU nm
13722        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13723          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13724        else
13725          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13726        fi
13727        aix_use_runtimelinking=no
13728
13729        # Test if we are trying to use run time linking or normal
13730        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13731        # need to do runtime linking.
13732        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13733          for ld_flag in $LDFLAGS; do
13734          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13735            aix_use_runtimelinking=yes
13736            break
13737          fi
13738          done
13739        esac
13740
13741        exp_sym_flag='-bexport'
13742        no_entry_flag='-bnoentry'
13743      fi
13744
13745      # When large executables or shared objects are built, AIX ld can
13746      # have problems creating the table of contents.  If linking a library
13747      # or program results in "error TOC overflow" add -mminimal-toc to
13748      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13749      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13750
13751      archive_cmds_F77=''
13752      hardcode_direct_F77=yes
13753      hardcode_libdir_separator_F77=':'
13754      link_all_deplibs_F77=yes
13755
13756      if test "$GCC" = yes; then
13757        case $host_os in aix4.012|aix4.012.*)
13758        # We only want to do this on AIX 4.2 and lower, the check
13759        # below for broken collect2 doesn't work under 4.3+
13760          collect2name=`${CC} -print-prog-name=collect2`
13761          if test -f "$collect2name" && \
13762           strings "$collect2name" | grep resolve_lib_name >/dev/null
13763          then
13764          # We have reworked collect2
13765          hardcode_direct_F77=yes
13766          else
13767          # We have old collect2
13768          hardcode_direct_F77=unsupported
13769          # It fails to find uninstalled libraries when the uninstalled
13770          # path is not listed in the libpath.  Setting hardcode_minus_L
13771          # to unsupported forces relinking
13772          hardcode_minus_L_F77=yes
13773          hardcode_libdir_flag_spec_F77='-L$libdir'
13774          hardcode_libdir_separator_F77=
13775          fi
13776        esac
13777        shared_flag='-shared'
13778      else
13779        # not using gcc
13780        if test "$host_cpu" = ia64; then
13781        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13782        # chokes on -Wl,-G. The following line is correct:
13783          shared_flag='-G'
13784        else
13785        if test "$aix_use_runtimelinking" = yes; then
13786            shared_flag='${wl}-G'
13787          else
13788            shared_flag='${wl}-bM:SRE'
13789        fi
13790        fi
13791      fi
13792
13793      # It seems that -bexpall does not export symbols beginning with
13794      # underscore (_), so it is better to generate a list of symbols to export.
13795      always_export_symbols_F77=yes
13796      if test "$aix_use_runtimelinking" = yes; then
13797        # Warning - without using the other runtime loading flags (-brtl),
13798        # -berok will link without error, but may produce a broken library.
13799        allow_undefined_flag_F77='-berok'
13800       # Determine the default libpath from the value encoded in an empty executable.
13801       cat >conftest.$ac_ext <<_ACEOF
13802      program main
13803
13804      end
13805_ACEOF
13806rm -f conftest.$ac_objext conftest$ac_exeext
13807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13808  (eval $ac_link) 2>conftest.er1
13809  ac_status=$?
13810  grep -v '^ *+' conftest.er1 >conftest.err
13811  rm -f conftest.er1
13812  cat conftest.err >&5
13813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814  (exit $ac_status); } &&
13815         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817  (eval $ac_try) 2>&5
13818  ac_status=$?
13819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820  (exit $ac_status); }; } &&
13821         { ac_try='test -s conftest$ac_exeext'
13822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823  (eval $ac_try) 2>&5
13824  ac_status=$?
13825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826  (exit $ac_status); }; }; then
13827
13828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13829}'`
13830# Check for a 64-bit object if we didn't find anything.
13831if 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; }
13832}'`; fi
13833else
13834  echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837fi
13838rm -f conftest.err conftest.$ac_objext \
13839      conftest$ac_exeext conftest.$ac_ext
13840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13841
13842       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13843        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13844       else
13845        if test "$host_cpu" = ia64; then
13846          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13847          allow_undefined_flag_F77="-z nodefs"
13848          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13849        else
13850         # Determine the default libpath from the value encoded in an empty executable.
13851         cat >conftest.$ac_ext <<_ACEOF
13852      program main
13853
13854      end
13855_ACEOF
13856rm -f conftest.$ac_objext conftest$ac_exeext
13857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13858  (eval $ac_link) 2>conftest.er1
13859  ac_status=$?
13860  grep -v '^ *+' conftest.er1 >conftest.err
13861  rm -f conftest.er1
13862  cat conftest.err >&5
13863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864  (exit $ac_status); } &&
13865         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867  (eval $ac_try) 2>&5
13868  ac_status=$?
13869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870  (exit $ac_status); }; } &&
13871         { ac_try='test -s conftest$ac_exeext'
13872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873  (eval $ac_try) 2>&5
13874  ac_status=$?
13875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876  (exit $ac_status); }; }; then
13877
13878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13879}'`
13880# Check for a 64-bit object if we didn't find anything.
13881if 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; }
13882}'`; fi
13883else
13884  echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887fi
13888rm -f conftest.err conftest.$ac_objext \
13889      conftest$ac_exeext conftest.$ac_ext
13890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13891
13892         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13893          # Warning - without using the other run time loading flags,
13894          # -berok will link without error, but may produce a broken library.
13895          no_undefined_flag_F77=' ${wl}-bernotok'
13896          allow_undefined_flag_F77=' ${wl}-berok'
13897          # -bexpall does not export symbols beginning with underscore (_)
13898          always_export_symbols_F77=yes
13899          # Exported symbols can be pulled into shared objects from archives
13900          whole_archive_flag_spec_F77=' '
13901          archive_cmds_need_lc_F77=yes
13902          # This is similar to how AIX traditionally builds it's shared libraries.
13903          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13904        fi
13905      fi
13906      ;;
13907
13908    amigaos*)
13909      archive_cmds_F77='$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)'
13910      hardcode_libdir_flag_spec_F77='-L$libdir'
13911      hardcode_minus_L_F77=yes
13912      # see comment about different semantics on the GNU ld section
13913      ld_shlibs_F77=no
13914      ;;
13915
13916    bsdi4*)
13917      export_dynamic_flag_spec_F77=-rdynamic
13918      ;;
13919
13920    cygwin* | mingw* | pw32*)
13921      # When not using gcc, we currently assume that we are using
13922      # Microsoft Visual C++.
13923      # hardcode_libdir_flag_spec is actually meaningless, as there is
13924      # no search path for DLLs.
13925      hardcode_libdir_flag_spec_F77=' '
13926      allow_undefined_flag_F77=unsupported
13927      # Tell ltmain to make .lib files, not .a files.
13928      libext=lib
13929      # Tell ltmain to make .dll files, not .so files.
13930      shrext_cmds=".dll"
13931      # FIXME: Setting linknames here is a bad hack.
13932      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13933      # The linker will automatically build a .lib file if we build a DLL.
13934      old_archive_From_new_cmds_F77='true'
13935      # FIXME: Should let the user specify the lib program.
13936      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13937      fix_srcfile_path='`cygpath -w "$srcfile"`'
13938      enable_shared_with_static_runtimes_F77=yes
13939      ;;
13940
13941    darwin* | rhapsody*)
13942    if test "$GXX" = yes ; then
13943      archive_cmds_need_lc_F77=no
13944      case "$host_os" in
13945      rhapsody* | darwin1.[012])
13946        allow_undefined_flag_F77='-undefined suppress'
13947        ;;
13948      *) # Darwin 1.3 on
13949      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13950        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13951      else
13952        case ${MACOSX_DEPLOYMENT_TARGET} in
13953          10.[012])
13954            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13955            ;;
13956          10.*)
13957            allow_undefined_flag_F77='-undefined dynamic_lookup'
13958            ;;
13959        esac
13960      fi
13961        ;;
13962      esac
13963        lt_int_apple_cc_single_mod=no
13964        output_verbose_link_cmd='echo'
13965        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13966          lt_int_apple_cc_single_mod=yes
13967        fi
13968        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13969          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13970        else
13971        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13972      fi
13973      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13974      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13975        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13976          archive_expsym_cmds_F77='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}'
13977        else
13978          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13979        fi
13980          module_expsym_cmds_F77='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}'
13981      hardcode_direct_F77=no
13982      hardcode_automatic_F77=yes
13983      hardcode_shlibpath_var_F77=unsupported
13984      whole_archive_flag_spec_F77='-all_load $convenience'
13985      link_all_deplibs_F77=yes
13986    else
13987      ld_shlibs_F77=no
13988    fi
13989      ;;
13990
13991    dgux*)
13992      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13993      hardcode_libdir_flag_spec_F77='-L$libdir'
13994      hardcode_shlibpath_var_F77=no
13995      ;;
13996
13997    freebsd1*)
13998      ld_shlibs_F77=no
13999      ;;
14000
14001    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14002    # support.  Future versions do this automatically, but an explicit c++rt0.o
14003    # does not break anything, and helps significantly (at the cost of a little
14004    # extra space).
14005    freebsd2.2*)
14006      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14007      hardcode_libdir_flag_spec_F77='-R$libdir'
14008      hardcode_direct_F77=yes
14009      hardcode_shlibpath_var_F77=no
14010      ;;
14011
14012    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14013    freebsd2*)
14014      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14015      hardcode_direct_F77=yes
14016      hardcode_minus_L_F77=yes
14017      hardcode_shlibpath_var_F77=no
14018      ;;
14019
14020    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14021    freebsd* | kfreebsd*-gnu)
14022      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14023      hardcode_libdir_flag_spec_F77='-R$libdir'
14024      hardcode_direct_F77=yes
14025      hardcode_shlibpath_var_F77=no
14026      ;;
14027
14028    hpux9*)
14029      if test "$GCC" = yes; then
14030        archive_cmds_F77='$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'
14031      else
14032        archive_cmds_F77='$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'
14033      fi
14034      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14035      hardcode_libdir_separator_F77=:
14036      hardcode_direct_F77=yes
14037
14038      # hardcode_minus_L: Not really in the search PATH,
14039      # but as the default location of the library.
14040      hardcode_minus_L_F77=yes
14041      export_dynamic_flag_spec_F77='${wl}-E'
14042      ;;
14043
14044    hpux10* | hpux11*)
14045      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14046        case "$host_cpu" in
14047        hppa*64*|ia64*)
14048          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14049          ;;
14050        *)
14051          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14052          ;;
14053        esac
14054      else
14055        case "$host_cpu" in
14056        hppa*64*|ia64*)
14057          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14058          ;;
14059        *)
14060          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14061          ;;
14062        esac
14063      fi
14064      if test "$with_gnu_ld" = no; then
14065        case "$host_cpu" in
14066        hppa*64*)
14067          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14069          hardcode_libdir_separator_F77=:
14070          hardcode_direct_F77=no
14071          hardcode_shlibpath_var_F77=no
14072          ;;
14073        ia64*)
14074          hardcode_libdir_flag_spec_F77='-L$libdir'
14075          hardcode_direct_F77=no
14076          hardcode_shlibpath_var_F77=no
14077
14078          # hardcode_minus_L: Not really in the search PATH,
14079          # but as the default location of the library.
14080          hardcode_minus_L_F77=yes
14081          ;;
14082        *)
14083          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14084          hardcode_libdir_separator_F77=:
14085          hardcode_direct_F77=yes
14086          export_dynamic_flag_spec_F77='${wl}-E'
14087
14088          # hardcode_minus_L: Not really in the search PATH,
14089          # but as the default location of the library.
14090          hardcode_minus_L_F77=yes
14091          ;;
14092        esac
14093      fi
14094      ;;
14095
14096    irix5* | irix6* | nonstopux*)
14097      if test "$GCC" = yes; then
14098        archive_cmds_F77='$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'
14099      else
14100        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14101        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14102      fi
14103      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104      hardcode_libdir_separator_F77=:
14105      link_all_deplibs_F77=yes
14106      ;;
14107
14108    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14109      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14110        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14111      else
14112        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14113      fi
14114      hardcode_libdir_flag_spec_F77='-R$libdir'
14115      hardcode_direct_F77=yes
14116      hardcode_shlibpath_var_F77=no
14117      ;;
14118
14119    newsos6)
14120      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121      hardcode_direct_F77=yes
14122      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123      hardcode_libdir_separator_F77=:
14124      hardcode_shlibpath_var_F77=no
14125      ;;
14126
14127    openbsd*)
14128      hardcode_direct_F77=yes
14129      hardcode_shlibpath_var_F77=no
14130      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14131        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14132        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14133        export_dynamic_flag_spec_F77='${wl}-E'
14134      else
14135       case $host_os in
14136         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14137           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14138           hardcode_libdir_flag_spec_F77='-R$libdir'
14139           ;;
14140         *)
14141           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14142           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14143           ;;
14144       esac
14145      fi
14146      ;;
14147
14148    os2*)
14149      hardcode_libdir_flag_spec_F77='-L$libdir'
14150      hardcode_minus_L_F77=yes
14151      allow_undefined_flag_F77=unsupported
14152      archive_cmds_F77='$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'
14153      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14154      ;;
14155
14156    osf3*)
14157      if test "$GCC" = yes; then
14158        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14159        archive_cmds_F77='$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'
14160      else
14161        allow_undefined_flag_F77=' -expect_unresolved \*'
14162        archive_cmds_F77='$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'
14163      fi
14164      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14165      hardcode_libdir_separator_F77=:
14166      ;;
14167
14168    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14169      if test "$GCC" = yes; then
14170        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14171        archive_cmds_F77='$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'
14172        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14173      else
14174        allow_undefined_flag_F77=' -expect_unresolved \*'
14175        archive_cmds_F77='$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'
14176        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14177        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14178
14179        # Both c and cxx compiler support -rpath directly
14180        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14181      fi
14182      hardcode_libdir_separator_F77=:
14183      ;;
14184
14185    sco3.2v5*)
14186      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187      hardcode_shlibpath_var_F77=no
14188      export_dynamic_flag_spec_F77='${wl}-Bexport'
14189      runpath_var=LD_RUN_PATH
14190      hardcode_runpath_var=yes
14191      ;;
14192
14193    solaris*)
14194      no_undefined_flag_F77=' -z text'
14195      if test "$GCC" = yes; then
14196        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14197        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14198          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14199      else
14200        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14202        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14203      fi
14204      hardcode_libdir_flag_spec_F77='-R$libdir'
14205      hardcode_shlibpath_var_F77=no
14206      case $host_os in
14207      solaris2.[0-5] | solaris2.[0-5].*) ;;
14208      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14209        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14210      esac
14211      link_all_deplibs_F77=yes
14212      ;;
14213
14214    sunos4*)
14215      if test "x$host_vendor" = xsequent; then
14216        # Use $CC to link under sequent, because it throws in some extra .o
14217        # files that make .init and .fini sections work.
14218        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14219      else
14220        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14221      fi
14222      hardcode_libdir_flag_spec_F77='-L$libdir'
14223      hardcode_direct_F77=yes
14224      hardcode_minus_L_F77=yes
14225      hardcode_shlibpath_var_F77=no
14226      ;;
14227
14228    sysv4)
14229      case $host_vendor in
14230        sni)
14231          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232          hardcode_direct_F77=yes # is this really true???
14233        ;;
14234        siemens)
14235          ## LD is ld it makes a PLAMLIB
14236          ## CC just makes a GrossModule.
14237          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14238          reload_cmds_F77='$CC -r -o $output$reload_objs'
14239          hardcode_direct_F77=no
14240        ;;
14241        motorola)
14242          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14244        ;;
14245      esac
14246      runpath_var='LD_RUN_PATH'
14247      hardcode_shlibpath_var_F77=no
14248      ;;
14249
14250    sysv4.3*)
14251      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252      hardcode_shlibpath_var_F77=no
14253      export_dynamic_flag_spec_F77='-Bexport'
14254      ;;
14255
14256    sysv4*MP*)
14257      if test -d /usr/nec; then
14258        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259        hardcode_shlibpath_var_F77=no
14260        runpath_var=LD_RUN_PATH
14261        hardcode_runpath_var=yes
14262        ld_shlibs_F77=yes
14263      fi
14264      ;;
14265
14266    sysv4.2uw2*)
14267      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14268      hardcode_direct_F77=yes
14269      hardcode_minus_L_F77=no
14270      hardcode_shlibpath_var_F77=no
14271      hardcode_runpath_var=yes
14272      runpath_var=LD_RUN_PATH
14273      ;;
14274
14275   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14276      no_undefined_flag_F77='${wl}-z ${wl}text'
14277      if test "$GCC" = yes; then
14278        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279      else
14280        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14281      fi
14282      runpath_var='LD_RUN_PATH'
14283      hardcode_shlibpath_var_F77=no
14284      ;;
14285
14286    sysv5*)
14287      no_undefined_flag_F77=' -z text'
14288      # $CC -shared without GNU ld will not create a library from C++
14289      # object files and a static libstdc++, better avoid it by now
14290      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14291      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14292                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14293      hardcode_libdir_flag_spec_F77=
14294      hardcode_shlibpath_var_F77=no
14295      runpath_var='LD_RUN_PATH'
14296      ;;
14297
14298    uts4*)
14299      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300      hardcode_libdir_flag_spec_F77='-L$libdir'
14301      hardcode_shlibpath_var_F77=no
14302      ;;
14303
14304    *)
14305      ld_shlibs_F77=no
14306      ;;
14307    esac
14308  fi
14309
14310echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14311echo "${ECHO_T}$ld_shlibs_F77" >&6
14312test "$ld_shlibs_F77" = no && can_build_shared=no
14313
14314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14315if test "$GCC" = yes; then
14316  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14317fi
14318
14319#
14320# Do we need to explicitly link libc?
14321#
14322case "x$archive_cmds_need_lc_F77" in
14323x|xyes)
14324  # Assume -lc should be added
14325  archive_cmds_need_lc_F77=yes
14326
14327  if test "$enable_shared" = yes && test "$GCC" = yes; then
14328    case $archive_cmds_F77 in
14329    *'~'*)
14330      # FIXME: we may have to deal with multi-command sequences.
14331      ;;
14332    '$CC '*)
14333      # Test whether the compiler implicitly links with -lc since on some
14334      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14335      # to ld, don't add -lc before -lgcc.
14336      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14338      $rm conftest*
14339      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342  (eval $ac_compile) 2>&5
14343  ac_status=$?
14344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345  (exit $ac_status); } 2>conftest.err; then
14346        soname=conftest
14347        lib=conftest
14348        libobjs=conftest.$ac_objext
14349        deplibs=
14350        wl=$lt_prog_compiler_wl_F77
14351        compiler_flags=-v
14352        linker_flags=-v
14353        verstring=
14354        output_objdir=.
14355        libname=conftest
14356        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14357        allow_undefined_flag_F77=
14358        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14359  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14360  ac_status=$?
14361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362  (exit $ac_status); }
14363        then
14364          archive_cmds_need_lc_F77=no
14365        else
14366          archive_cmds_need_lc_F77=yes
14367        fi
14368        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14369      else
14370        cat conftest.err 1>&5
14371      fi
14372      $rm conftest*
14373      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14374echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14375      ;;
14376    esac
14377  fi
14378  ;;
14379esac
14380
14381echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14383library_names_spec=
14384libname_spec='lib$name'
14385soname_spec=
14386shrext_cmds=".so"
14387postinstall_cmds=
14388postuninstall_cmds=
14389finish_cmds=
14390finish_eval=
14391shlibpath_var=
14392shlibpath_overrides_runpath=unknown
14393version_type=none
14394dynamic_linker="$host_os ld.so"
14395sys_lib_dlsearch_path_spec="/lib /usr/lib"
14396if test "$GCC" = yes; then
14397  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14398  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14399    # if the path contains ";" then we assume it to be the separator
14400    # otherwise default to the standard path separator (i.e. ":") - it is
14401    # assumed that no part of a normal pathname contains ";" but that should
14402    # okay in the real world where ";" in dirpaths is itself problematic.
14403    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14404  else
14405    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14406  fi
14407else
14408  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14409fi
14410need_lib_prefix=unknown
14411hardcode_into_libs=no
14412
14413# when you set need_version to no, make sure it does not cause -set_version
14414# flags to be left without arguments
14415need_version=unknown
14416
14417case $host_os in
14418aix3*)
14419  version_type=linux
14420  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14421  shlibpath_var=LIBPATH
14422
14423  # AIX 3 has no versioning support, so we append a major version to the name.
14424  soname_spec='${libname}${release}${shared_ext}$major'
14425  ;;
14426
14427aix4* | aix5*)
14428  version_type=linux
14429  need_lib_prefix=no
14430  need_version=no
14431  hardcode_into_libs=yes
14432  if test "$host_cpu" = ia64; then
14433    # AIX 5 supports IA64
14434    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14435    shlibpath_var=LD_LIBRARY_PATH
14436  else
14437    # With GCC up to 2.95.x, collect2 would create an import file
14438    # for dependence libraries.  The import file would start with
14439    # the line `#! .'.  This would cause the generated library to
14440    # depend on `.', always an invalid library.  This was fixed in
14441    # development snapshots of GCC prior to 3.0.
14442    case $host_os in
14443      aix4 | aix4.[01] | aix4.[01].*)
14444      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14445           echo ' yes '
14446           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14447        :
14448      else
14449        can_build_shared=no
14450      fi
14451      ;;
14452    esac
14453    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14454    # soname into executable. Probably we can add versioning support to
14455    # collect2, so additional links can be useful in future.
14456    if test "$aix_use_runtimelinking" = yes; then
14457      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14458      # instead of lib<name>.a to let people know that these are not
14459      # typical AIX shared libraries.
14460      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461    else
14462      # We preserve .a as extension for shared libraries through AIX4.2
14463      # and later when we are not doing run time linking.
14464      library_names_spec='${libname}${release}.a $libname.a'
14465      soname_spec='${libname}${release}${shared_ext}$major'
14466    fi
14467    shlibpath_var=LIBPATH
14468  fi
14469  ;;
14470
14471amigaos*)
14472  library_names_spec='$libname.ixlibrary $libname.a'
14473  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14474  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'
14475  ;;
14476
14477beos*)
14478  library_names_spec='${libname}${shared_ext}'
14479  dynamic_linker="$host_os ld.so"
14480  shlibpath_var=LIBRARY_PATH
14481  ;;
14482
14483bsdi4*)
14484  version_type=linux
14485  need_version=no
14486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487  soname_spec='${libname}${release}${shared_ext}$major'
14488  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14489  shlibpath_var=LD_LIBRARY_PATH
14490  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14491  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14492  # the default ld.so.conf also contains /usr/contrib/lib and
14493  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14494  # libtool to hard-code these into programs
14495  ;;
14496
14497cygwin* | mingw* | pw32*)
14498  version_type=windows
14499  shrext_cmds=".dll"
14500  need_version=no
14501  need_lib_prefix=no
14502
14503  case $GCC,$host_os in
14504  yes,cygwin* | yes,mingw* | yes,pw32*)
14505    library_names_spec='$libname.dll.a'
14506    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14507    postinstall_cmds='base_file=`basename \${file}`~
14508      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14509      dldir=$destdir/`dirname \$dlpath`~
14510      test -d \$dldir || mkdir -p \$dldir~
14511      $install_prog $dir/$dlname \$dldir/$dlname'
14512    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14513      dlpath=$dir/\$dldll~
14514       $rm \$dlpath'
14515    shlibpath_overrides_runpath=yes
14516
14517    case $host_os in
14518    cygwin*)
14519      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14520      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14522      ;;
14523    mingw*)
14524      # MinGW DLLs use traditional 'lib' prefix
14525      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14526      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14527      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14528        # It is most probably a Windows format PATH printed by
14529        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14530        # path with ; separators, and with drive letters. We can handle the
14531        # drive letters (cygwin fileutils understands them), so leave them,
14532        # especially as we might pass files found there to a mingw objdump,
14533        # which wouldn't understand a cygwinified path. Ahh.
14534        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14535      else
14536        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14537      fi
14538      ;;
14539    pw32*)
14540      # pw32 DLLs use 'pw' prefix rather than 'lib'
14541      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14542      ;;
14543    esac
14544    ;;
14545
14546  *)
14547    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14548    ;;
14549  esac
14550  dynamic_linker='Win32 ld.exe'
14551  # FIXME: first we should search . and the directory the executable is in
14552  shlibpath_var=PATH
14553  ;;
14554
14555darwin* | rhapsody*)
14556  dynamic_linker="$host_os dyld"
14557  version_type=darwin
14558  need_lib_prefix=no
14559  need_version=no
14560  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14561  soname_spec='${libname}${release}${major}$shared_ext'
14562  shlibpath_overrides_runpath=yes
14563  shlibpath_var=DYLD_LIBRARY_PATH
14564  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14565  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14566  if test "$GCC" = yes; then
14567    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"`
14568  else
14569    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14570  fi
14571  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14572  ;;
14573
14574dgux*)
14575  version_type=linux
14576  need_lib_prefix=no
14577  need_version=no
14578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14579  soname_spec='${libname}${release}${shared_ext}$major'
14580  shlibpath_var=LD_LIBRARY_PATH
14581  ;;
14582
14583freebsd1*)
14584  dynamic_linker=no
14585  ;;
14586
14587kfreebsd*-gnu)
14588  version_type=linux
14589  need_lib_prefix=no
14590  need_version=no
14591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14592  soname_spec='${libname}${release}${shared_ext}$major'
14593  shlibpath_var=LD_LIBRARY_PATH
14594  shlibpath_overrides_runpath=no
14595  hardcode_into_libs=yes
14596  dynamic_linker='GNU ld.so'
14597  ;;
14598
14599freebsd*)
14600  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14601  version_type=freebsd-$objformat
14602  case $version_type in
14603    freebsd-elf*)
14604      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14605      need_version=no
14606      need_lib_prefix=no
14607      ;;
14608    freebsd-*)
14609      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14610      need_version=yes
14611      ;;
14612  esac
14613  shlibpath_var=LD_LIBRARY_PATH
14614  case $host_os in
14615  freebsd2*)
14616    shlibpath_overrides_runpath=yes
14617    ;;
14618  freebsd3.01* | freebsdelf3.01*)
14619    shlibpath_overrides_runpath=yes
14620    hardcode_into_libs=yes
14621    ;;
14622  *) # from 3.2 on
14623    shlibpath_overrides_runpath=no
14624    hardcode_into_libs=yes
14625    ;;
14626  esac
14627  ;;
14628
14629gnu*)
14630  version_type=linux
14631  need_lib_prefix=no
14632  need_version=no
14633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14634  soname_spec='${libname}${release}${shared_ext}$major'
14635  shlibpath_var=LD_LIBRARY_PATH
14636  hardcode_into_libs=yes
14637  ;;
14638
14639hpux9* | hpux10* | hpux11*)
14640  # Give a soname corresponding to the major version so that dld.sl refuses to
14641  # link against other versions.
14642  version_type=sunos
14643  need_lib_prefix=no
14644  need_version=no
14645  case "$host_cpu" in
14646  ia64*)
14647    shrext_cmds='.so'
14648    hardcode_into_libs=yes
14649    dynamic_linker="$host_os dld.so"
14650    shlibpath_var=LD_LIBRARY_PATH
14651    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653    soname_spec='${libname}${release}${shared_ext}$major'
14654    if test "X$HPUX_IA64_MODE" = X32; then
14655      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656    else
14657      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14658    fi
14659    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660    ;;
14661   hppa*64*)
14662     shrext_cmds='.sl'
14663     hardcode_into_libs=yes
14664     dynamic_linker="$host_os dld.sl"
14665     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668     soname_spec='${libname}${release}${shared_ext}$major'
14669     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14671     ;;
14672   *)
14673    shrext_cmds='.sl'
14674    dynamic_linker="$host_os dld.sl"
14675    shlibpath_var=SHLIB_PATH
14676    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14677    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678    soname_spec='${libname}${release}${shared_ext}$major'
14679    ;;
14680  esac
14681  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14682  postinstall_cmds='chmod 555 $lib'
14683  ;;
14684
14685irix5* | irix6* | nonstopux*)
14686  case $host_os in
14687    nonstopux*) version_type=nonstopux ;;
14688    *)
14689        if test "$lt_cv_prog_gnu_ld" = yes; then
14690                version_type=linux
14691        else
14692                version_type=irix
14693        fi ;;
14694  esac
14695  need_lib_prefix=no
14696  need_version=no
14697  soname_spec='${libname}${release}${shared_ext}$major'
14698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14699  case $host_os in
14700  irix5* | nonstopux*)
14701    libsuff= shlibsuff=
14702    ;;
14703  *)
14704    case $LD in # libtool.m4 will add one of these switches to LD
14705    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706      libsuff= shlibsuff= libmagic=32-bit;;
14707    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708      libsuff=32 shlibsuff=N32 libmagic=N32;;
14709    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711    *) libsuff= shlibsuff= libmagic=never-match;;
14712    esac
14713    ;;
14714  esac
14715  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716  shlibpath_overrides_runpath=no
14717  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719  hardcode_into_libs=yes
14720  ;;
14721
14722# No shared lib support for Linux oldld, aout, or coff.
14723linux*oldld* | linux*aout* | linux*coff*)
14724  dynamic_linker=no
14725  ;;
14726
14727# This must be Linux ELF.
14728linux*)
14729  version_type=linux
14730  need_lib_prefix=no
14731  need_version=no
14732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733  soname_spec='${libname}${release}${shared_ext}$major'
14734  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735  shlibpath_var=LD_LIBRARY_PATH
14736  shlibpath_overrides_runpath=no
14737  # This implies no fast_install, which is unacceptable.
14738  # Some rework will be needed to allow for fast_install
14739  # before this can be enabled.
14740  hardcode_into_libs=yes
14741
14742  # Append ld.so.conf contents to the search path
14743  if test -f /etc/ld.so.conf; then
14744    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14745    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14746  fi
14747
14748  # We used to test for /lib/ld.so.1 and disable shared libraries on
14749  # powerpc, because MkLinux only supported shared libraries with the
14750  # GNU dynamic linker.  Since this was broken with cross compilers,
14751  # most powerpc-linux boxes support dynamic linking these days and
14752  # people can always --disable-shared, the test was removed, and we
14753  # assume the GNU/Linux dynamic linker is in use.
14754  dynamic_linker='GNU/Linux ld.so'
14755  ;;
14756
14757netbsdelf*-gnu)
14758  version_type=linux
14759  need_lib_prefix=no
14760  need_version=no
14761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762  soname_spec='${libname}${release}${shared_ext}$major'
14763  shlibpath_var=LD_LIBRARY_PATH
14764  shlibpath_overrides_runpath=no
14765  hardcode_into_libs=yes
14766  dynamic_linker='NetBSD ld.elf_so'
14767  ;;
14768
14769knetbsd*-gnu)
14770  version_type=linux
14771  need_lib_prefix=no
14772  need_version=no
14773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774  soname_spec='${libname}${release}${shared_ext}$major'
14775  shlibpath_var=LD_LIBRARY_PATH
14776  shlibpath_overrides_runpath=no
14777  hardcode_into_libs=yes
14778  dynamic_linker='GNU ld.so'
14779  ;;
14780
14781netbsd*)
14782  version_type=sunos
14783  need_lib_prefix=no
14784  need_version=no
14785  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788    dynamic_linker='NetBSD (a.out) ld.so'
14789  else
14790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791    soname_spec='${libname}${release}${shared_ext}$major'
14792    dynamic_linker='NetBSD ld.elf_so'
14793  fi
14794  shlibpath_var=LD_LIBRARY_PATH
14795  shlibpath_overrides_runpath=yes
14796  hardcode_into_libs=yes
14797  ;;
14798
14799newsos6)
14800  version_type=linux
14801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802  shlibpath_var=LD_LIBRARY_PATH
14803  shlibpath_overrides_runpath=yes
14804  ;;
14805
14806nto-qnx*)
14807  version_type=linux
14808  need_lib_prefix=no
14809  need_version=no
14810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811  soname_spec='${libname}${release}${shared_ext}$major'
14812  shlibpath_var=LD_LIBRARY_PATH
14813  shlibpath_overrides_runpath=yes
14814  ;;
14815
14816openbsd*)
14817  version_type=sunos
14818  need_lib_prefix=no
14819  need_version=yes
14820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14822  shlibpath_var=LD_LIBRARY_PATH
14823  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14824    case $host_os in
14825      openbsd2.[89] | openbsd2.[89].*)
14826        shlibpath_overrides_runpath=no
14827        ;;
14828      *)
14829        shlibpath_overrides_runpath=yes
14830        ;;
14831      esac
14832  else
14833    shlibpath_overrides_runpath=yes
14834  fi
14835  ;;
14836
14837os2*)
14838  libname_spec='$name'
14839  shrext_cmds=".dll"
14840  need_lib_prefix=no
14841  library_names_spec='$libname${shared_ext} $libname.a'
14842  dynamic_linker='OS/2 ld.exe'
14843  shlibpath_var=LIBPATH
14844  ;;
14845
14846osf3* | osf4* | osf5*)
14847  version_type=osf
14848  need_lib_prefix=no
14849  need_version=no
14850  soname_spec='${libname}${release}${shared_ext}$major'
14851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852  shlibpath_var=LD_LIBRARY_PATH
14853  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14854  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14855  ;;
14856
14857sco3.2v5*)
14858  version_type=osf
14859  soname_spec='${libname}${release}${shared_ext}$major'
14860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861  shlibpath_var=LD_LIBRARY_PATH
14862  ;;
14863
14864solaris*)
14865  version_type=linux
14866  need_lib_prefix=no
14867  need_version=no
14868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869  soname_spec='${libname}${release}${shared_ext}$major'
14870  shlibpath_var=LD_LIBRARY_PATH
14871  shlibpath_overrides_runpath=yes
14872  hardcode_into_libs=yes
14873  # ldd complains unless libraries are executable
14874  postinstall_cmds='chmod +x $lib'
14875  ;;
14876
14877sunos4*)
14878  version_type=sunos
14879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14880  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14881  shlibpath_var=LD_LIBRARY_PATH
14882  shlibpath_overrides_runpath=yes
14883  if test "$with_gnu_ld" = yes; then
14884    need_lib_prefix=no
14885  fi
14886  need_version=yes
14887  ;;
14888
14889sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14890  version_type=linux
14891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892  soname_spec='${libname}${release}${shared_ext}$major'
14893  shlibpath_var=LD_LIBRARY_PATH
14894  case $host_vendor in
14895    sni)
14896      shlibpath_overrides_runpath=no
14897      need_lib_prefix=no
14898      export_dynamic_flag_spec='${wl}-Blargedynsym'
14899      runpath_var=LD_RUN_PATH
14900      ;;
14901    siemens)
14902      need_lib_prefix=no
14903      ;;
14904    motorola)
14905      need_lib_prefix=no
14906      need_version=no
14907      shlibpath_overrides_runpath=no
14908      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14909      ;;
14910  esac
14911  ;;
14912
14913sysv4*MP*)
14914  if test -d /usr/nec ;then
14915    version_type=linux
14916    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14917    soname_spec='$libname${shared_ext}.$major'
14918    shlibpath_var=LD_LIBRARY_PATH
14919  fi
14920  ;;
14921
14922uts4*)
14923  version_type=linux
14924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925  soname_spec='${libname}${release}${shared_ext}$major'
14926  shlibpath_var=LD_LIBRARY_PATH
14927  ;;
14928
14929*)
14930  dynamic_linker=no
14931  ;;
14932esac
14933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14934echo "${ECHO_T}$dynamic_linker" >&6
14935test "$dynamic_linker" = no && can_build_shared=no
14936
14937echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14938echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14939hardcode_action_F77=
14940if test -n "$hardcode_libdir_flag_spec_F77" || \
14941   test -n "$runpath_var F77" || \
14942   test "X$hardcode_automatic_F77"="Xyes" ; then
14943
14944  # We can hardcode non-existant directories.
14945  if test "$hardcode_direct_F77" != no &&
14946     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14947     # have to relink, otherwise we might link with an installed library
14948     # when we should be linking with a yet-to-be-installed one
14949     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14950     test "$hardcode_minus_L_F77" != no; then
14951    # Linking always hardcodes the temporary library directory.
14952    hardcode_action_F77=relink
14953  else
14954    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14955    hardcode_action_F77=immediate
14956  fi
14957else
14958  # We cannot hardcode anything, or else we can only hardcode existing
14959  # directories.
14960  hardcode_action_F77=unsupported
14961fi
14962echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14963echo "${ECHO_T}$hardcode_action_F77" >&6
14964
14965if test "$hardcode_action_F77" = relink; then
14966  # Fast installation is not supported
14967  enable_fast_install=no
14968elif test "$shlibpath_overrides_runpath" = yes ||
14969     test "$enable_shared" = no; then
14970  # Fast installation is not necessary
14971  enable_fast_install=needless
14972fi
14973
14974striplib=
14975old_striplib=
14976echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14977echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14978if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14979  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14980  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14981  echo "$as_me:$LINENO: result: yes" >&5
14982echo "${ECHO_T}yes" >&6
14983else
14984# FIXME - insert some real tests, host_os isn't really good enough
14985  case $host_os in
14986   darwin*)
14987       if test -n "$STRIP" ; then
14988         striplib="$STRIP -x"
14989         echo "$as_me:$LINENO: result: yes" >&5
14990echo "${ECHO_T}yes" >&6
14991       else
14992  echo "$as_me:$LINENO: result: no" >&5
14993echo "${ECHO_T}no" >&6
14994fi
14995       ;;
14996   *)
14997  echo "$as_me:$LINENO: result: no" >&5
14998echo "${ECHO_T}no" >&6
14999    ;;
15000  esac
15001fi
15002
15003
15004
15005# The else clause should only fire when bootstrapping the
15006# libtool distribution, otherwise you forgot to ship ltmain.sh
15007# with your package, and you will get complaints that there are
15008# no rules to generate ltmain.sh.
15009if test -f "$ltmain"; then
15010  # See if we are running on zsh, and set the options which allow our commands through
15011  # without removal of \ escapes.
15012  if test -n "${ZSH_VERSION+set}" ; then
15013    setopt NO_GLOB_SUBST
15014  fi
15015  # Now quote all the things that may contain metacharacters while being
15016  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15017  # variables and quote the copies for generation of the libtool script.
15018  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15019    SED SHELL STRIP \
15020    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15021    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15022    deplibs_check_method reload_flag reload_cmds need_locks \
15023    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15024    lt_cv_sys_global_symbol_to_c_name_address \
15025    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15026    old_postinstall_cmds old_postuninstall_cmds \
15027    compiler_F77 \
15028    CC_F77 \
15029    LD_F77 \
15030    lt_prog_compiler_wl_F77 \
15031    lt_prog_compiler_pic_F77 \
15032    lt_prog_compiler_static_F77 \
15033    lt_prog_compiler_no_builtin_flag_F77 \
15034    export_dynamic_flag_spec_F77 \
15035    thread_safe_flag_spec_F77 \
15036    whole_archive_flag_spec_F77 \
15037    enable_shared_with_static_runtimes_F77 \
15038    old_archive_cmds_F77 \
15039    old_archive_from_new_cmds_F77 \
15040    predep_objects_F77 \
15041    postdep_objects_F77 \
15042    predeps_F77 \
15043    postdeps_F77 \
15044    compiler_lib_search_path_F77 \
15045    archive_cmds_F77 \
15046    archive_expsym_cmds_F77 \
15047    postinstall_cmds_F77 \
15048    postuninstall_cmds_F77 \
15049    old_archive_from_expsyms_cmds_F77 \
15050    allow_undefined_flag_F77 \
15051    no_undefined_flag_F77 \
15052    export_symbols_cmds_F77 \
15053    hardcode_libdir_flag_spec_F77 \
15054    hardcode_libdir_flag_spec_ld_F77 \
15055    hardcode_libdir_separator_F77 \
15056    hardcode_automatic_F77 \
15057    module_cmds_F77 \
15058    module_expsym_cmds_F77 \
15059    lt_cv_prog_compiler_c_o_F77 \
15060    exclude_expsyms_F77 \
15061    include_expsyms_F77; do
15062
15063    case $var in
15064    old_archive_cmds_F77 | \
15065    old_archive_from_new_cmds_F77 | \
15066    archive_cmds_F77 | \
15067    archive_expsym_cmds_F77 | \
15068    module_cmds_F77 | \
15069    module_expsym_cmds_F77 | \
15070    old_archive_from_expsyms_cmds_F77 | \
15071    export_symbols_cmds_F77 | \
15072    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15073    postinstall_cmds | postuninstall_cmds | \
15074    old_postinstall_cmds | old_postuninstall_cmds | \
15075    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15076      # Double-quote double-evaled strings.
15077      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15078      ;;
15079    *)
15080      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15081      ;;
15082    esac
15083  done
15084
15085  case $lt_echo in
15086  *'\$0 --fallback-echo"')
15087    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15088    ;;
15089  esac
15090
15091cfgfile="$ofile"
15092
15093  cat <<__EOF__ >> "$cfgfile"
15094# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15095
15096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15097
15098# Shell to use when invoking shell scripts.
15099SHELL=$lt_SHELL
15100
15101# Whether or not to build shared libraries.
15102build_libtool_libs=$enable_shared
15103
15104# Whether or not to build static libraries.
15105build_old_libs=$enable_static
15106
15107# Whether or not to add -lc for building shared libraries.
15108build_libtool_need_lc=$archive_cmds_need_lc_F77
15109
15110# Whether or not to disallow shared libs when runtime libs are static
15111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15112
15113# Whether or not to optimize for fast installation.
15114fast_install=$enable_fast_install
15115
15116# The host system.
15117host_alias=$host_alias
15118host=$host
15119
15120# An echo program that does not interpret backslashes.
15121echo=$lt_echo
15122
15123# The archiver.
15124AR=$lt_AR
15125AR_FLAGS=$lt_AR_FLAGS
15126
15127# A C compiler.
15128LTCC=$lt_LTCC
15129
15130# A language-specific compiler.
15131CC=$lt_compiler_F77
15132
15133# Is the compiler the GNU C compiler?
15134with_gcc=$GCC_F77
15135
15136# An ERE matcher.
15137EGREP=$lt_EGREP
15138
15139# The linker used to build libraries.
15140LD=$lt_LD_F77
15141
15142# Whether we need hard or soft links.
15143LN_S=$lt_LN_S
15144
15145# A BSD-compatible nm program.
15146NM=$lt_NM
15147
15148# A symbol stripping program
15149STRIP=$lt_STRIP
15150
15151# Used to examine libraries when file_magic_cmd begins "file"
15152MAGIC_CMD=$MAGIC_CMD
15153
15154# Used on cygwin: DLL creation program.
15155DLLTOOL="$DLLTOOL"
15156
15157# Used on cygwin: object dumper.
15158OBJDUMP="$OBJDUMP"
15159
15160# Used on cygwin: assembler.
15161AS="$AS"
15162
15163# The name of the directory that contains temporary libtool files.
15164objdir=$objdir
15165
15166# How to create reloadable object files.
15167reload_flag=$lt_reload_flag
15168reload_cmds=$lt_reload_cmds
15169
15170# How to pass a linker flag through the compiler.
15171wl=$lt_lt_prog_compiler_wl_F77
15172
15173# Object file suffix (normally "o").
15174objext="$ac_objext"
15175
15176# Old archive suffix (normally "a").
15177libext="$libext"
15178
15179# Shared library suffix (normally ".so").
15180shrext_cmds='$shrext_cmds'
15181
15182# Executable file suffix (normally "").
15183exeext="$exeext"
15184
15185# Additional compiler flags for building library objects.
15186pic_flag=$lt_lt_prog_compiler_pic_F77
15187pic_mode=$pic_mode
15188
15189# What is the maximum length of a command?
15190max_cmd_len=$lt_cv_sys_max_cmd_len
15191
15192# Does compiler simultaneously support -c and -o options?
15193compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15194
15195# Must we lock files when doing compilation ?
15196need_locks=$lt_need_locks
15197
15198# Do we need the lib prefix for modules?
15199need_lib_prefix=$need_lib_prefix
15200
15201# Do we need a version for libraries?
15202need_version=$need_version
15203
15204# Whether dlopen is supported.
15205dlopen_support=$enable_dlopen
15206
15207# Whether dlopen of programs is supported.
15208dlopen_self=$enable_dlopen_self
15209
15210# Whether dlopen of statically linked programs is supported.
15211dlopen_self_static=$enable_dlopen_self_static
15212
15213# Compiler flag to prevent dynamic linking.
15214link_static_flag=$lt_lt_prog_compiler_static_F77
15215
15216# Compiler flag to turn off builtin functions.
15217no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15218
15219# Compiler flag to allow reflexive dlopens.
15220export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15221
15222# Compiler flag to generate shared objects directly from archives.
15223whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15224
15225# Compiler flag to generate thread-safe objects.
15226thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15227
15228# Library versioning type.
15229version_type=$version_type
15230
15231# Format of library name prefix.
15232libname_spec=$lt_libname_spec
15233
15234# List of archive names.  First name is the real one, the rest are links.
15235# The last name is the one that the linker finds with -lNAME.
15236library_names_spec=$lt_library_names_spec
15237
15238# The coded name of the library, if different from the real name.
15239soname_spec=$lt_soname_spec
15240
15241# Commands used to build and install an old-style archive.
15242RANLIB=$lt_RANLIB
15243old_archive_cmds=$lt_old_archive_cmds_F77
15244old_postinstall_cmds=$lt_old_postinstall_cmds
15245old_postuninstall_cmds=$lt_old_postuninstall_cmds
15246
15247# Create an old-style archive from a shared archive.
15248old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15249
15250# Create a temporary old-style archive to link instead of a shared archive.
15251old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15252
15253# Commands used to build and install a shared archive.
15254archive_cmds=$lt_archive_cmds_F77
15255archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15256postinstall_cmds=$lt_postinstall_cmds
15257postuninstall_cmds=$lt_postuninstall_cmds
15258
15259# Commands used to build a loadable module (assumed same as above if empty)
15260module_cmds=$lt_module_cmds_F77
15261module_expsym_cmds=$lt_module_expsym_cmds_F77
15262
15263# Commands to strip libraries.
15264old_striplib=$lt_old_striplib
15265striplib=$lt_striplib
15266
15267# Dependencies to place before the objects being linked to create a
15268# shared library.
15269predep_objects=$lt_predep_objects_F77
15270
15271# Dependencies to place after the objects being linked to create a
15272# shared library.
15273postdep_objects=$lt_postdep_objects_F77
15274
15275# Dependencies to place before the objects being linked to create a
15276# shared library.
15277predeps=$lt_predeps_F77
15278
15279# Dependencies to place after the objects being linked to create a
15280# shared library.
15281postdeps=$lt_postdeps_F77
15282
15283# The library search path used internally by the compiler when linking
15284# a shared library.
15285compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15286
15287# Method to check whether dependent libraries are shared objects.
15288deplibs_check_method=$lt_deplibs_check_method
15289
15290# Command to use when deplibs_check_method == file_magic.
15291file_magic_cmd=$lt_file_magic_cmd
15292
15293# Flag that allows shared libraries with undefined symbols to be built.
15294allow_undefined_flag=$lt_allow_undefined_flag_F77
15295
15296# Flag that forces no undefined symbols.
15297no_undefined_flag=$lt_no_undefined_flag_F77
15298
15299# Commands used to finish a libtool library installation in a directory.
15300finish_cmds=$lt_finish_cmds
15301
15302# Same as above, but a single script fragment to be evaled but not shown.
15303finish_eval=$lt_finish_eval
15304
15305# Take the output of nm and produce a listing of raw symbols and C names.
15306global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15307
15308# Transform the output of nm in a proper C declaration
15309global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15310
15311# Transform the output of nm in a C name address pair
15312global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15313
15314# This is the shared library runtime path variable.
15315runpath_var=$runpath_var
15316
15317# This is the shared library path variable.
15318shlibpath_var=$shlibpath_var
15319
15320# Is shlibpath searched before the hard-coded library search path?
15321shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15322
15323# How to hardcode a shared library path into an executable.
15324hardcode_action=$hardcode_action_F77
15325
15326# Whether we should hardcode library paths into libraries.
15327hardcode_into_libs=$hardcode_into_libs
15328
15329# Flag to hardcode \$libdir into a binary during linking.
15330# This must work even if \$libdir does not exist.
15331hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15332
15333# If ld is used when linking, flag to hardcode \$libdir into
15334# a binary during linking. This must work even if \$libdir does
15335# not exist.
15336hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15337
15338# Whether we need a single -rpath flag with a separated argument.
15339hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15340
15341# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15342# resulting binary.
15343hardcode_direct=$hardcode_direct_F77
15344
15345# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15346# resulting binary.
15347hardcode_minus_L=$hardcode_minus_L_F77
15348
15349# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15350# the resulting binary.
15351hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15352
15353# Set to yes if building a shared library automatically hardcodes DIR into the library
15354# and all subsequent libraries and executables linked against it.
15355hardcode_automatic=$hardcode_automatic_F77
15356
15357# Variables whose values should be saved in libtool wrapper scripts and
15358# restored at relink time.
15359variables_saved_for_relink="$variables_saved_for_relink"
15360
15361# Whether libtool must link a program against all its dependency libraries.
15362link_all_deplibs=$link_all_deplibs_F77
15363
15364# Compile-time system search path for libraries
15365sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15366
15367# Run-time system search path for libraries
15368sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15369
15370# Fix the shell variable \$srcfile for the compiler.
15371fix_srcfile_path="$fix_srcfile_path_F77"
15372
15373# Set to yes if exported symbols are required.
15374always_export_symbols=$always_export_symbols_F77
15375
15376# The commands to list exported symbols.
15377export_symbols_cmds=$lt_export_symbols_cmds_F77
15378
15379# The commands to extract the exported symbol list from a shared archive.
15380extract_expsyms_cmds=$lt_extract_expsyms_cmds
15381
15382# Symbols that should not be listed in the preloaded symbols.
15383exclude_expsyms=$lt_exclude_expsyms_F77
15384
15385# Symbols that must always be exported.
15386include_expsyms=$lt_include_expsyms_F77
15387
15388# ### END LIBTOOL TAG CONFIG: $tagname
15389
15390__EOF__
15391
15392
15393else
15394  # If there is no Makefile yet, we rely on a make rule to execute
15395  # `config.status --recheck' to rerun these tests and create the
15396  # libtool script then.
15397  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15398  if test -f "$ltmain_in"; then
15399    test -f Makefile && make "$ltmain"
15400  fi
15401fi
15402
15403
15404ac_ext=c
15405ac_cpp='$CPP $CPPFLAGS'
15406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15408ac_compiler_gnu=$ac_cv_c_compiler_gnu
15409
15410CC="$lt_save_CC"
15411
15412        else
15413          tagname=""
15414        fi
15415        ;;
15416
15417      GCJ)
15418        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15419
15420
15421
15422# Source file extension for Java test sources.
15423ac_ext=java
15424
15425# Object file extension for compiled Java test sources.
15426objext=o
15427objext_GCJ=$objext
15428
15429# Code to be used in simple compile tests
15430lt_simple_compile_test_code="class foo {}\n"
15431
15432# Code to be used in simple link tests
15433lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15434
15435# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15436
15437# If no C compiler was specified, use CC.
15438LTCC=${LTCC-"$CC"}
15439
15440# Allow CC to be a program name with arguments.
15441compiler=$CC
15442
15443
15444# Allow CC to be a program name with arguments.
15445lt_save_CC="$CC"
15446CC=${GCJ-"gcj"}
15447compiler=$CC
15448compiler_GCJ=$CC
15449
15450# GCJ did not exist at the time GCC didn't implicitly link libc in.
15451archive_cmds_need_lc_GCJ=no
15452
15453
15454lt_prog_compiler_no_builtin_flag_GCJ=
15455
15456if test "$GCC" = yes; then
15457  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15458
15459
15460echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15461echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15463  echo $ECHO_N "(cached) $ECHO_C" >&6
15464else
15465  lt_cv_prog_compiler_rtti_exceptions=no
15466  ac_outfile=conftest.$ac_objext
15467   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15468   lt_compiler_flag="-fno-rtti -fno-exceptions"
15469   # Insert the option either (1) after the last *FLAGS variable, or
15470   # (2) before a word containing "conftest.", or (3) at the end.
15471   # Note that $ac_compile itself does not contain backslashes and begins
15472   # with a dollar sign (not a hyphen), so the echo should work correctly.
15473   # The option is referenced via a variable to avoid confusing sed.
15474   lt_compile=`echo "$ac_compile" | $SED \
15475   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15477   -e 's:$: $lt_compiler_flag:'`
15478   (eval echo "\"\$as_me:15478: $lt_compile\"" >&5)
15479   (eval "$lt_compile" 2>conftest.err)
15480   ac_status=$?
15481   cat conftest.err >&5
15482   echo "$as_me:15482: \$? = $ac_status" >&5
15483   if (exit $ac_status) && test -s "$ac_outfile"; then
15484     # The compiler can only warn and ignore the option if not recognized
15485     # So say no if there are warnings
15486     if test ! -s conftest.err; then
15487       lt_cv_prog_compiler_rtti_exceptions=yes
15488     fi
15489   fi
15490   $rm conftest*
15491
15492fi
15493echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15494echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15495
15496if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15497    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15498else
15499    :
15500fi
15501
15502fi
15503
15504lt_prog_compiler_wl_GCJ=
15505lt_prog_compiler_pic_GCJ=
15506lt_prog_compiler_static_GCJ=
15507
15508echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15510
15511  if test "$GCC" = yes; then
15512    lt_prog_compiler_wl_GCJ='-Wl,'
15513    lt_prog_compiler_static_GCJ='-static'
15514
15515    case $host_os in
15516      aix*)
15517      # All AIX code is PIC.
15518      if test "$host_cpu" = ia64; then
15519        # AIX 5 now supports IA64 processor
15520        lt_prog_compiler_static_GCJ='-Bstatic'
15521      fi
15522      ;;
15523
15524    amigaos*)
15525      # FIXME: we need at least 68020 code to build shared libraries, but
15526      # adding the `-m68020' flag to GCC prevents building anything better,
15527      # like `-m68040'.
15528      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15529      ;;
15530
15531    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15532      # PIC is the default for these OSes.
15533      ;;
15534
15535    mingw* | pw32* | os2*)
15536      # This hack is so that the source file can tell whether it is being
15537      # built for inclusion in a dll (and should export symbols for example).
15538      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15539      ;;
15540
15541    darwin* | rhapsody*)
15542      # PIC is the default on this platform
15543      # Common symbols not allowed in MH_DYLIB files
15544      lt_prog_compiler_pic_GCJ='-fno-common'
15545      ;;
15546
15547    msdosdjgpp*)
15548      # Just because we use GCC doesn't mean we suddenly get shared libraries
15549      # on systems that don't support them.
15550      lt_prog_compiler_can_build_shared_GCJ=no
15551      enable_shared=no
15552      ;;
15553
15554    sysv4*MP*)
15555      if test -d /usr/nec; then
15556        lt_prog_compiler_pic_GCJ=-Kconform_pic
15557      fi
15558      ;;
15559
15560    hpux*)
15561      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15562      # not for PA HP-UX.
15563      case "$host_cpu" in
15564      hppa*64*|ia64*)
15565        # +Z the default
15566        ;;
15567      *)
15568        lt_prog_compiler_pic_GCJ='-fPIC'
15569        ;;
15570      esac
15571      ;;
15572
15573    *)
15574      lt_prog_compiler_pic_GCJ='-fPIC'
15575      ;;
15576    esac
15577  else
15578    # PORTME Check for flag to pass linker flags through the system compiler.
15579    case $host_os in
15580    aix*)
15581      lt_prog_compiler_wl_GCJ='-Wl,'
15582      if test "$host_cpu" = ia64; then
15583        # AIX 5 now supports IA64 processor
15584        lt_prog_compiler_static_GCJ='-Bstatic'
15585      else
15586        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15587      fi
15588      ;;
15589
15590    mingw* | pw32* | os2*)
15591      # This hack is so that the source file can tell whether it is being
15592      # built for inclusion in a dll (and should export symbols for example).
15593      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15594      ;;
15595
15596    hpux9* | hpux10* | hpux11*)
15597      lt_prog_compiler_wl_GCJ='-Wl,'
15598      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15599      # not for PA HP-UX.
15600      case "$host_cpu" in
15601      hppa*64*|ia64*)
15602        # +Z the default
15603        ;;
15604      *)
15605        lt_prog_compiler_pic_GCJ='+Z'
15606        ;;
15607      esac
15608      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15609      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15610      ;;
15611
15612    irix5* | irix6* | nonstopux*)
15613      lt_prog_compiler_wl_GCJ='-Wl,'
15614      # PIC (with -KPIC) is the default.
15615      lt_prog_compiler_static_GCJ='-non_shared'
15616      ;;
15617
15618    newsos6)
15619      lt_prog_compiler_pic_GCJ='-KPIC'
15620      lt_prog_compiler_static_GCJ='-Bstatic'
15621      ;;
15622
15623    linux*)
15624      case $CC in
15625      icc* | ecc*)
15626        lt_prog_compiler_wl_GCJ='-Wl,'
15627        lt_prog_compiler_pic_GCJ='-KPIC'
15628        lt_prog_compiler_static_GCJ='-static'
15629        ;;
15630      ccc*)
15631        lt_prog_compiler_wl_GCJ='-Wl,'
15632        # All Alpha code is PIC.
15633        lt_prog_compiler_static_GCJ='-non_shared'
15634        ;;
15635      esac
15636      ;;
15637
15638    osf3* | osf4* | osf5*)
15639      lt_prog_compiler_wl_GCJ='-Wl,'
15640      # All OSF/1 code is PIC.
15641      lt_prog_compiler_static_GCJ='-non_shared'
15642      ;;
15643
15644    sco3.2v5*)
15645      lt_prog_compiler_pic_GCJ='-Kpic'
15646      lt_prog_compiler_static_GCJ='-dn'
15647      ;;
15648
15649    solaris*)
15650      lt_prog_compiler_wl_GCJ='-Wl,'
15651      lt_prog_compiler_pic_GCJ='-KPIC'
15652      lt_prog_compiler_static_GCJ='-Bstatic'
15653      ;;
15654
15655    sunos4*)
15656      lt_prog_compiler_wl_GCJ='-Qoption ld '
15657      lt_prog_compiler_pic_GCJ='-PIC'
15658      lt_prog_compiler_static_GCJ='-Bstatic'
15659      ;;
15660
15661    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15662      lt_prog_compiler_wl_GCJ='-Wl,'
15663      lt_prog_compiler_pic_GCJ='-KPIC'
15664      lt_prog_compiler_static_GCJ='-Bstatic'
15665      ;;
15666
15667    sysv4*MP*)
15668      if test -d /usr/nec ;then
15669        lt_prog_compiler_pic_GCJ='-Kconform_pic'
15670        lt_prog_compiler_static_GCJ='-Bstatic'
15671      fi
15672      ;;
15673
15674    uts4*)
15675      lt_prog_compiler_pic_GCJ='-pic'
15676      lt_prog_compiler_static_GCJ='-Bstatic'
15677      ;;
15678
15679    *)
15680      lt_prog_compiler_can_build_shared_GCJ=no
15681      ;;
15682    esac
15683  fi
15684
15685echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15686echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15687
15688#
15689# Check to make sure the PIC flag actually works.
15690#
15691if test -n "$lt_prog_compiler_pic_GCJ"; then
15692
15693echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15694echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15695if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15696  echo $ECHO_N "(cached) $ECHO_C" >&6
15697else
15698  lt_prog_compiler_pic_works_GCJ=no
15699  ac_outfile=conftest.$ac_objext
15700   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15701   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15702   # Insert the option either (1) after the last *FLAGS variable, or
15703   # (2) before a word containing "conftest.", or (3) at the end.
15704   # Note that $ac_compile itself does not contain backslashes and begins
15705   # with a dollar sign (not a hyphen), so the echo should work correctly.
15706   # The option is referenced via a variable to avoid confusing sed.
15707   lt_compile=`echo "$ac_compile" | $SED \
15708   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15709   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15710   -e 's:$: $lt_compiler_flag:'`
15711   (eval echo "\"\$as_me:15711: $lt_compile\"" >&5)
15712   (eval "$lt_compile" 2>conftest.err)
15713   ac_status=$?
15714   cat conftest.err >&5
15715   echo "$as_me:15715: \$? = $ac_status" >&5
15716   if (exit $ac_status) && test -s "$ac_outfile"; then
15717     # The compiler can only warn and ignore the option if not recognized
15718     # So say no if there are warnings
15719     if test ! -s conftest.err; then
15720       lt_prog_compiler_pic_works_GCJ=yes
15721     fi
15722   fi
15723   $rm conftest*
15724
15725fi
15726echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15727echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15728
15729if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15730    case $lt_prog_compiler_pic_GCJ in
15731     "" | " "*) ;;
15732     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15733     esac
15734else
15735    lt_prog_compiler_pic_GCJ=
15736     lt_prog_compiler_can_build_shared_GCJ=no
15737fi
15738
15739fi
15740case "$host_os" in
15741  # For platforms which do not support PIC, -DPIC is meaningless:
15742  *djgpp*)
15743    lt_prog_compiler_pic_GCJ=
15744    ;;
15745  *)
15746    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15747    ;;
15748esac
15749
15750echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15751echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15752if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15753  echo $ECHO_N "(cached) $ECHO_C" >&6
15754else
15755  lt_cv_prog_compiler_c_o_GCJ=no
15756   $rm -r conftest 2>/dev/null
15757   mkdir conftest
15758   cd conftest
15759   mkdir out
15760   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15761
15762   lt_compiler_flag="-o out/conftest2.$ac_objext"
15763   # Insert the option either (1) after the last *FLAGS variable, or
15764   # (2) before a word containing "conftest.", or (3) at the end.
15765   # Note that $ac_compile itself does not contain backslashes and begins
15766   # with a dollar sign (not a hyphen), so the echo should work correctly.
15767   lt_compile=`echo "$ac_compile" | $SED \
15768   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15770   -e 's:$: $lt_compiler_flag:'`
15771   (eval echo "\"\$as_me:15771: $lt_compile\"" >&5)
15772   (eval "$lt_compile" 2>out/conftest.err)
15773   ac_status=$?
15774   cat out/conftest.err >&5
15775   echo "$as_me:15775: \$? = $ac_status" >&5
15776   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15777   then
15778     # The compiler can only warn and ignore the option if not recognized
15779     # So say no if there are warnings
15780     if test ! -s out/conftest.err; then
15781       lt_cv_prog_compiler_c_o_GCJ=yes
15782     fi
15783   fi
15784   chmod u+w .
15785   $rm conftest*
15786   # SGI C++ compiler will create directory out/ii_files/ for
15787   # template instantiation
15788   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15789   $rm out/* && rmdir out
15790   cd ..
15791   rmdir conftest
15792   $rm conftest*
15793
15794fi
15795echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15796echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15797
15798
15799hard_links="nottested"
15800if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15801  # do not overwrite the value of need_locks provided by the user
15802  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15803echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15804  hard_links=yes
15805  $rm conftest*
15806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15807  touch conftest.a
15808  ln conftest.a conftest.b 2>&5 || hard_links=no
15809  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15810  echo "$as_me:$LINENO: result: $hard_links" >&5
15811echo "${ECHO_T}$hard_links" >&6
15812  if test "$hard_links" = no; then
15813    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15814echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15815    need_locks=warn
15816  fi
15817else
15818  need_locks=no
15819fi
15820
15821echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15822echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15823
15824  runpath_var=
15825  allow_undefined_flag_GCJ=
15826  enable_shared_with_static_runtimes_GCJ=no
15827  archive_cmds_GCJ=
15828  archive_expsym_cmds_GCJ=
15829  old_archive_From_new_cmds_GCJ=
15830  old_archive_from_expsyms_cmds_GCJ=
15831  export_dynamic_flag_spec_GCJ=
15832  whole_archive_flag_spec_GCJ=
15833  thread_safe_flag_spec_GCJ=
15834  hardcode_libdir_flag_spec_GCJ=
15835  hardcode_libdir_flag_spec_ld_GCJ=
15836  hardcode_libdir_separator_GCJ=
15837  hardcode_direct_GCJ=no
15838  hardcode_minus_L_GCJ=no
15839  hardcode_shlibpath_var_GCJ=unsupported
15840  link_all_deplibs_GCJ=unknown
15841  hardcode_automatic_GCJ=no
15842  module_cmds_GCJ=
15843  module_expsym_cmds_GCJ=
15844  always_export_symbols_GCJ=no
15845  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15846  # include_expsyms should be a list of space-separated symbols to be *always*
15847  # included in the symbol list
15848  include_expsyms_GCJ=
15849  # exclude_expsyms can be an extended regexp of symbols to exclude
15850  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15851  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15852  # as well as any symbol that contains `d'.
15853  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15854  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15855  # platforms (ab)use it in PIC code, but their linkers get confused if
15856  # the symbol is explicitly referenced.  Since portable code cannot
15857  # rely on this symbol name, it's probably fine to never include it in
15858  # preloaded symbol tables.
15859  extract_expsyms_cmds=
15860
15861  case $host_os in
15862  cygwin* | mingw* | pw32*)
15863    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15864    # When not using gcc, we currently assume that we are using
15865    # Microsoft Visual C++.
15866    if test "$GCC" != yes; then
15867      with_gnu_ld=no
15868    fi
15869    ;;
15870  openbsd*)
15871    with_gnu_ld=no
15872    ;;
15873  esac
15874
15875  ld_shlibs_GCJ=yes
15876  if test "$with_gnu_ld" = yes; then
15877    # If archive_cmds runs LD, not CC, wlarc should be empty
15878    wlarc='${wl}'
15879
15880    # See if GNU ld supports shared libraries.
15881    case $host_os in
15882    aix3* | aix4* | aix5*)
15883      # On AIX/PPC, the GNU linker is very broken
15884      if test "$host_cpu" != ia64; then
15885        ld_shlibs_GCJ=no
15886        cat <<EOF 1>&2
15887
15888*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15889*** to be unable to reliably create shared libraries on AIX.
15890*** Therefore, libtool is disabling shared libraries support.  If you
15891*** really care for shared libraries, you may want to modify your PATH
15892*** so that a non-GNU linker is found, and then restart.
15893
15894EOF
15895      fi
15896      ;;
15897
15898    amigaos*)
15899      archive_cmds_GCJ='$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)'
15900      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15901      hardcode_minus_L_GCJ=yes
15902
15903      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15904      # that the semantics of dynamic libraries on AmigaOS, at least up
15905      # to version 4, is to share data among multiple programs linked
15906      # with the same dynamic library.  Since this doesn't match the
15907      # behavior of shared libraries on other platforms, we can't use
15908      # them.
15909      ld_shlibs_GCJ=no
15910      ;;
15911
15912    beos*)
15913      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15914        allow_undefined_flag_GCJ=unsupported
15915        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15916        # support --undefined.  This deserves some investigation.  FIXME
15917        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918      else
15919        ld_shlibs_GCJ=no
15920      fi
15921      ;;
15922
15923    cygwin* | mingw* | pw32*)
15924      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15925      # as there is no search path for DLLs.
15926      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15927      allow_undefined_flag_GCJ=unsupported
15928      always_export_symbols_GCJ=no
15929      enable_shared_with_static_runtimes_GCJ=yes
15930      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15931
15932      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15933        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15934        # If the export-symbols file already is a .def file (1st line
15935        # is EXPORTS), use it as is; otherwise, prepend...
15936        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15937          cp $export_symbols $output_objdir/$soname.def;
15938        else
15939          echo EXPORTS > $output_objdir/$soname.def;
15940          cat $export_symbols >> $output_objdir/$soname.def;
15941        fi~
15942        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15943      else
15944        ld_shlibs=no
15945      fi
15946      ;;
15947
15948    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15949      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15950        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15951        wlarc=
15952      else
15953        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15954        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15955      fi
15956      ;;
15957
15958    solaris* | sysv5*)
15959      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15960        ld_shlibs_GCJ=no
15961        cat <<EOF 1>&2
15962
15963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15964*** create shared libraries on Solaris systems.  Therefore, libtool
15965*** is disabling shared libraries support.  We urge you to upgrade GNU
15966*** binutils to release 2.9.1 or newer.  Another option is to modify
15967*** your PATH or compiler configuration so that the native linker is
15968*** used, and then restart.
15969
15970EOF
15971      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15972        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15974      else
15975        ld_shlibs_GCJ=no
15976      fi
15977      ;;
15978
15979    sunos4*)
15980      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15981      wlarc=
15982      hardcode_direct_GCJ=yes
15983      hardcode_shlibpath_var_GCJ=no
15984      ;;
15985
15986  linux*)
15987    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15988        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989        archive_cmds_GCJ="$tmp_archive_cmds"
15990      supports_anon_versioning=no
15991      case `$LD -v 2>/dev/null` in
15992        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15993        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15994        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15995        *\ 2.11.*) ;; # other 2.11 versions
15996        *) supports_anon_versioning=yes ;;
15997      esac
15998      if test $supports_anon_versioning = yes; then
15999        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16000cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16001$echo "local: *; };" >> $output_objdir/$libname.ver~
16002        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16003      else
16004        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16005      fi
16006      link_all_deplibs_GCJ=no
16007    else
16008      ld_shlibs_GCJ=no
16009    fi
16010    ;;
16011
16012    *)
16013      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16014        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16015        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016      else
16017        ld_shlibs_GCJ=no
16018      fi
16019      ;;
16020    esac
16021
16022    if test "$ld_shlibs_GCJ" = yes; then
16023      runpath_var=LD_RUN_PATH
16024      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16025      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16026      # ancient GNU ld didn't support --whole-archive et. al.
16027      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16028        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16029      else
16030        whole_archive_flag_spec_GCJ=
16031      fi
16032    fi
16033  else
16034    # PORTME fill in a description of your system's linker (not GNU ld)
16035    case $host_os in
16036    aix3*)
16037      allow_undefined_flag_GCJ=unsupported
16038      always_export_symbols_GCJ=yes
16039      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16040      # Note: this linker hardcodes the directories in LIBPATH if there
16041      # are no directories specified by -L.
16042      hardcode_minus_L_GCJ=yes
16043      if test "$GCC" = yes && test -z "$link_static_flag"; then
16044        # Neither direct hardcoding nor static linking is supported with a
16045        # broken collect2.
16046        hardcode_direct_GCJ=unsupported
16047      fi
16048      ;;
16049
16050    aix4* | aix5*)
16051      if test "$host_cpu" = ia64; then
16052        # On IA64, the linker does run time linking by default, so we don't
16053        # have to do anything special.
16054        aix_use_runtimelinking=no
16055        exp_sym_flag='-Bexport'
16056        no_entry_flag=""
16057      else
16058        # If we're using GNU nm, then we don't want the "-C" option.
16059        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16060        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16061          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16062        else
16063          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16064        fi
16065        aix_use_runtimelinking=no
16066
16067        # Test if we are trying to use run time linking or normal
16068        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16069        # need to do runtime linking.
16070        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16071          for ld_flag in $LDFLAGS; do
16072          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16073            aix_use_runtimelinking=yes
16074            break
16075          fi
16076          done
16077        esac
16078
16079        exp_sym_flag='-bexport'
16080        no_entry_flag='-bnoentry'
16081      fi
16082
16083      # When large executables or shared objects are built, AIX ld can
16084      # have problems creating the table of contents.  If linking a library
16085      # or program results in "error TOC overflow" add -mminimal-toc to
16086      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16087      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16088
16089      archive_cmds_GCJ=''
16090      hardcode_direct_GCJ=yes
16091      hardcode_libdir_separator_GCJ=':'
16092      link_all_deplibs_GCJ=yes
16093
16094      if test "$GCC" = yes; then
16095        case $host_os in aix4.012|aix4.012.*)
16096        # We only want to do this on AIX 4.2 and lower, the check
16097        # below for broken collect2 doesn't work under 4.3+
16098          collect2name=`${CC} -print-prog-name=collect2`
16099          if test -f "$collect2name" && \
16100           strings "$collect2name" | grep resolve_lib_name >/dev/null
16101          then
16102          # We have reworked collect2
16103          hardcode_direct_GCJ=yes
16104          else
16105          # We have old collect2
16106          hardcode_direct_GCJ=unsupported
16107          # It fails to find uninstalled libraries when the uninstalled
16108          # path is not listed in the libpath.  Setting hardcode_minus_L
16109          # to unsupported forces relinking
16110          hardcode_minus_L_GCJ=yes
16111          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112          hardcode_libdir_separator_GCJ=
16113          fi
16114        esac
16115        shared_flag='-shared'
16116      else
16117        # not using gcc
16118        if test "$host_cpu" = ia64; then
16119        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16120        # chokes on -Wl,-G. The following line is correct:
16121          shared_flag='-G'
16122        else
16123        if test "$aix_use_runtimelinking" = yes; then
16124            shared_flag='${wl}-G'
16125          else
16126            shared_flag='${wl}-bM:SRE'
16127        fi
16128        fi
16129      fi
16130
16131      # It seems that -bexpall does not export symbols beginning with
16132      # underscore (_), so it is better to generate a list of symbols to export.
16133      always_export_symbols_GCJ=yes
16134      if test "$aix_use_runtimelinking" = yes; then
16135        # Warning - without using the other runtime loading flags (-brtl),
16136        # -berok will link without error, but may produce a broken library.
16137        allow_undefined_flag_GCJ='-berok'
16138       # Determine the default libpath from the value encoded in an empty executable.
16139       cat >conftest.$ac_ext <<_ACEOF
16140/* confdefs.h.  */
16141_ACEOF
16142cat confdefs.h >>conftest.$ac_ext
16143cat >>conftest.$ac_ext <<_ACEOF
16144/* end confdefs.h.  */
16145
16146int
16147main ()
16148{
16149
16150  ;
16151  return 0;
16152}
16153_ACEOF
16154rm -f conftest.$ac_objext conftest$ac_exeext
16155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156  (eval $ac_link) 2>conftest.er1
16157  ac_status=$?
16158  grep -v '^ *+' conftest.er1 >conftest.err
16159  rm -f conftest.er1
16160  cat conftest.err >&5
16161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162  (exit $ac_status); } &&
16163         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165  (eval $ac_try) 2>&5
16166  ac_status=$?
16167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168  (exit $ac_status); }; } &&
16169         { ac_try='test -s conftest$ac_exeext'
16170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171  (eval $ac_try) 2>&5
16172  ac_status=$?
16173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174  (exit $ac_status); }; }; then
16175
16176aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16177}'`
16178# Check for a 64-bit object if we didn't find anything.
16179if 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; }
16180}'`; fi
16181else
16182  echo "$as_me: failed program was:" >&5
16183sed 's/^/| /' conftest.$ac_ext >&5
16184
16185fi
16186rm -f conftest.err conftest.$ac_objext \
16187      conftest$ac_exeext conftest.$ac_ext
16188if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16189
16190       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16191        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16192       else
16193        if test "$host_cpu" = ia64; then
16194          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16195          allow_undefined_flag_GCJ="-z nodefs"
16196          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16197        else
16198         # Determine the default libpath from the value encoded in an empty executable.
16199         cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h.  */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h.  */
16205
16206int
16207main ()
16208{
16209
16210  ;
16211  return 0;
16212}
16213_ACEOF
16214rm -f conftest.$ac_objext conftest$ac_exeext
16215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216  (eval $ac_link) 2>conftest.er1
16217  ac_status=$?
16218  grep -v '^ *+' conftest.er1 >conftest.err
16219  rm -f conftest.er1
16220  cat conftest.err >&5
16221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222  (exit $ac_status); } &&
16223         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225  (eval $ac_try) 2>&5
16226  ac_status=$?
16227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228  (exit $ac_status); }; } &&
16229         { ac_try='test -s conftest$ac_exeext'
16230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231  (eval $ac_try) 2>&5
16232  ac_status=$?
16233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234  (exit $ac_status); }; }; then
16235
16236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16237}'`
16238# Check for a 64-bit object if we didn't find anything.
16239if 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; }
16240}'`; fi
16241else
16242  echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245fi
16246rm -f conftest.err conftest.$ac_objext \
16247      conftest$ac_exeext conftest.$ac_ext
16248if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16249
16250         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16251          # Warning - without using the other run time loading flags,
16252          # -berok will link without error, but may produce a broken library.
16253          no_undefined_flag_GCJ=' ${wl}-bernotok'
16254          allow_undefined_flag_GCJ=' ${wl}-berok'
16255          # -bexpall does not export symbols beginning with underscore (_)
16256          always_export_symbols_GCJ=yes
16257          # Exported symbols can be pulled into shared objects from archives
16258          whole_archive_flag_spec_GCJ=' '
16259          archive_cmds_need_lc_GCJ=yes
16260          # This is similar to how AIX traditionally builds it's shared libraries.
16261          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16262        fi
16263      fi
16264      ;;
16265
16266    amigaos*)
16267      archive_cmds_GCJ='$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)'
16268      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16269      hardcode_minus_L_GCJ=yes
16270      # see comment about different semantics on the GNU ld section
16271      ld_shlibs_GCJ=no
16272      ;;
16273
16274    bsdi4*)
16275      export_dynamic_flag_spec_GCJ=-rdynamic
16276      ;;
16277
16278    cygwin* | mingw* | pw32*)
16279      # When not using gcc, we currently assume that we are using
16280      # Microsoft Visual C++.
16281      # hardcode_libdir_flag_spec is actually meaningless, as there is
16282      # no search path for DLLs.
16283      hardcode_libdir_flag_spec_GCJ=' '
16284      allow_undefined_flag_GCJ=unsupported
16285      # Tell ltmain to make .lib files, not .a files.
16286      libext=lib
16287      # Tell ltmain to make .dll files, not .so files.
16288      shrext_cmds=".dll"
16289      # FIXME: Setting linknames here is a bad hack.
16290      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16291      # The linker will automatically build a .lib file if we build a DLL.
16292      old_archive_From_new_cmds_GCJ='true'
16293      # FIXME: Should let the user specify the lib program.
16294      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16295      fix_srcfile_path='`cygpath -w "$srcfile"`'
16296      enable_shared_with_static_runtimes_GCJ=yes
16297      ;;
16298
16299    darwin* | rhapsody*)
16300    if test "$GXX" = yes ; then
16301      archive_cmds_need_lc_GCJ=no
16302      case "$host_os" in
16303      rhapsody* | darwin1.[012])
16304        allow_undefined_flag_GCJ='-undefined suppress'
16305        ;;
16306      *) # Darwin 1.3 on
16307      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16308        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16309      else
16310        case ${MACOSX_DEPLOYMENT_TARGET} in
16311          10.[012])
16312            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16313            ;;
16314          10.*)
16315            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16316            ;;
16317        esac
16318      fi
16319        ;;
16320      esac
16321        lt_int_apple_cc_single_mod=no
16322        output_verbose_link_cmd='echo'
16323        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16324          lt_int_apple_cc_single_mod=yes
16325        fi
16326        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16327          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16328        else
16329        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16330      fi
16331      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16332      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16333        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16334          archive_expsym_cmds_GCJ='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}'
16335        else
16336          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16337        fi
16338          module_expsym_cmds_GCJ='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}'
16339      hardcode_direct_GCJ=no
16340      hardcode_automatic_GCJ=yes
16341      hardcode_shlibpath_var_GCJ=unsupported
16342      whole_archive_flag_spec_GCJ='-all_load $convenience'
16343      link_all_deplibs_GCJ=yes
16344    else
16345      ld_shlibs_GCJ=no
16346    fi
16347      ;;
16348
16349    dgux*)
16350      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16351      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16352      hardcode_shlibpath_var_GCJ=no
16353      ;;
16354
16355    freebsd1*)
16356      ld_shlibs_GCJ=no
16357      ;;
16358
16359    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16360    # support.  Future versions do this automatically, but an explicit c++rt0.o
16361    # does not break anything, and helps significantly (at the cost of a little
16362    # extra space).
16363    freebsd2.2*)
16364      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16365      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16366      hardcode_direct_GCJ=yes
16367      hardcode_shlibpath_var_GCJ=no
16368      ;;
16369
16370    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16371    freebsd2*)
16372      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16373      hardcode_direct_GCJ=yes
16374      hardcode_minus_L_GCJ=yes
16375      hardcode_shlibpath_var_GCJ=no
16376      ;;
16377
16378    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16379    freebsd* | kfreebsd*-gnu)
16380      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16381      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16382      hardcode_direct_GCJ=yes
16383      hardcode_shlibpath_var_GCJ=no
16384      ;;
16385
16386    hpux9*)
16387      if test "$GCC" = yes; then
16388        archive_cmds_GCJ='$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'
16389      else
16390        archive_cmds_GCJ='$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'
16391      fi
16392      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16393      hardcode_libdir_separator_GCJ=:
16394      hardcode_direct_GCJ=yes
16395
16396      # hardcode_minus_L: Not really in the search PATH,
16397      # but as the default location of the library.
16398      hardcode_minus_L_GCJ=yes
16399      export_dynamic_flag_spec_GCJ='${wl}-E'
16400      ;;
16401
16402    hpux10* | hpux11*)
16403      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16404        case "$host_cpu" in
16405        hppa*64*|ia64*)
16406          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16407          ;;
16408        *)
16409          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16410          ;;
16411        esac
16412      else
16413        case "$host_cpu" in
16414        hppa*64*|ia64*)
16415          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16416          ;;
16417        *)
16418          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16419          ;;
16420        esac
16421      fi
16422      if test "$with_gnu_ld" = no; then
16423        case "$host_cpu" in
16424        hppa*64*)
16425          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16426          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16427          hardcode_libdir_separator_GCJ=:
16428          hardcode_direct_GCJ=no
16429          hardcode_shlibpath_var_GCJ=no
16430          ;;
16431        ia64*)
16432          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16433          hardcode_direct_GCJ=no
16434          hardcode_shlibpath_var_GCJ=no
16435
16436          # hardcode_minus_L: Not really in the search PATH,
16437          # but as the default location of the library.
16438          hardcode_minus_L_GCJ=yes
16439          ;;
16440        *)
16441          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16442          hardcode_libdir_separator_GCJ=:
16443          hardcode_direct_GCJ=yes
16444          export_dynamic_flag_spec_GCJ='${wl}-E'
16445
16446          # hardcode_minus_L: Not really in the search PATH,
16447          # but as the default location of the library.
16448          hardcode_minus_L_GCJ=yes
16449          ;;
16450        esac
16451      fi
16452      ;;
16453
16454    irix5* | irix6* | nonstopux*)
16455      if test "$GCC" = yes; then
16456        archive_cmds_GCJ='$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'
16457      else
16458        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16459        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16460      fi
16461      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16462      hardcode_libdir_separator_GCJ=:
16463      link_all_deplibs_GCJ=yes
16464      ;;
16465
16466    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16467      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16468        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16469      else
16470        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16471      fi
16472      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16473      hardcode_direct_GCJ=yes
16474      hardcode_shlibpath_var_GCJ=no
16475      ;;
16476
16477    newsos6)
16478      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16479      hardcode_direct_GCJ=yes
16480      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16481      hardcode_libdir_separator_GCJ=:
16482      hardcode_shlibpath_var_GCJ=no
16483      ;;
16484
16485    openbsd*)
16486      hardcode_direct_GCJ=yes
16487      hardcode_shlibpath_var_GCJ=no
16488      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16489        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16490        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16491        export_dynamic_flag_spec_GCJ='${wl}-E'
16492      else
16493       case $host_os in
16494         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16495           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16496           hardcode_libdir_flag_spec_GCJ='-R$libdir'
16497           ;;
16498         *)
16499           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16500           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16501           ;;
16502       esac
16503      fi
16504      ;;
16505
16506    os2*)
16507      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16508      hardcode_minus_L_GCJ=yes
16509      allow_undefined_flag_GCJ=unsupported
16510      archive_cmds_GCJ='$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'
16511      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16512      ;;
16513
16514    osf3*)
16515      if test "$GCC" = yes; then
16516        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16517        archive_cmds_GCJ='$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'
16518      else
16519        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16520        archive_cmds_GCJ='$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'
16521      fi
16522      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16523      hardcode_libdir_separator_GCJ=:
16524      ;;
16525
16526    osf4* | osf5*)      # as osf3* with the addition of -msym flag
16527      if test "$GCC" = yes; then
16528        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16529        archive_cmds_GCJ='$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'
16530        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16531      else
16532        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16533        archive_cmds_GCJ='$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'
16534        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16535        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16536
16537        # Both c and cxx compiler support -rpath directly
16538        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16539      fi
16540      hardcode_libdir_separator_GCJ=:
16541      ;;
16542
16543    sco3.2v5*)
16544      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545      hardcode_shlibpath_var_GCJ=no
16546      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16547      runpath_var=LD_RUN_PATH
16548      hardcode_runpath_var=yes
16549      ;;
16550
16551    solaris*)
16552      no_undefined_flag_GCJ=' -z text'
16553      if test "$GCC" = yes; then
16554        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16555        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16556          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16557      else
16558        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16559        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16560        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16561      fi
16562      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16563      hardcode_shlibpath_var_GCJ=no
16564      case $host_os in
16565      solaris2.[0-5] | solaris2.[0-5].*) ;;
16566      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16567        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16568      esac
16569      link_all_deplibs_GCJ=yes
16570      ;;
16571
16572    sunos4*)
16573      if test "x$host_vendor" = xsequent; then
16574        # Use $CC to link under sequent, because it throws in some extra .o
16575        # files that make .init and .fini sections work.
16576        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16577      else
16578        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16579      fi
16580      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16581      hardcode_direct_GCJ=yes
16582      hardcode_minus_L_GCJ=yes
16583      hardcode_shlibpath_var_GCJ=no
16584      ;;
16585
16586    sysv4)
16587      case $host_vendor in
16588        sni)
16589          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590          hardcode_direct_GCJ=yes # is this really true???
16591        ;;
16592        siemens)
16593          ## LD is ld it makes a PLAMLIB
16594          ## CC just makes a GrossModule.
16595          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16596          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16597          hardcode_direct_GCJ=no
16598        ;;
16599        motorola)
16600          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16602        ;;
16603      esac
16604      runpath_var='LD_RUN_PATH'
16605      hardcode_shlibpath_var_GCJ=no
16606      ;;
16607
16608    sysv4.3*)
16609      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16610      hardcode_shlibpath_var_GCJ=no
16611      export_dynamic_flag_spec_GCJ='-Bexport'
16612      ;;
16613
16614    sysv4*MP*)
16615      if test -d /usr/nec; then
16616        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617        hardcode_shlibpath_var_GCJ=no
16618        runpath_var=LD_RUN_PATH
16619        hardcode_runpath_var=yes
16620        ld_shlibs_GCJ=yes
16621      fi
16622      ;;
16623
16624    sysv4.2uw2*)
16625      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16626      hardcode_direct_GCJ=yes
16627      hardcode_minus_L_GCJ=no
16628      hardcode_shlibpath_var_GCJ=no
16629      hardcode_runpath_var=yes
16630      runpath_var=LD_RUN_PATH
16631      ;;
16632
16633   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16634      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16635      if test "$GCC" = yes; then
16636        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16637      else
16638        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16639      fi
16640      runpath_var='LD_RUN_PATH'
16641      hardcode_shlibpath_var_GCJ=no
16642      ;;
16643
16644    sysv5*)
16645      no_undefined_flag_GCJ=' -z text'
16646      # $CC -shared without GNU ld will not create a library from C++
16647      # object files and a static libstdc++, better avoid it by now
16648      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16649      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16650                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16651      hardcode_libdir_flag_spec_GCJ=
16652      hardcode_shlibpath_var_GCJ=no
16653      runpath_var='LD_RUN_PATH'
16654      ;;
16655
16656    uts4*)
16657      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16659      hardcode_shlibpath_var_GCJ=no
16660      ;;
16661
16662    *)
16663      ld_shlibs_GCJ=no
16664      ;;
16665    esac
16666  fi
16667
16668echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16669echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16670test "$ld_shlibs_GCJ" = no && can_build_shared=no
16671
16672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673if test "$GCC" = yes; then
16674  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16675fi
16676
16677#
16678# Do we need to explicitly link libc?
16679#
16680case "x$archive_cmds_need_lc_GCJ" in
16681x|xyes)
16682  # Assume -lc should be added
16683  archive_cmds_need_lc_GCJ=yes
16684
16685  if test "$enable_shared" = yes && test "$GCC" = yes; then
16686    case $archive_cmds_GCJ in
16687    *'~'*)
16688      # FIXME: we may have to deal with multi-command sequences.
16689      ;;
16690    '$CC '*)
16691      # Test whether the compiler implicitly links with -lc since on some
16692      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16693      # to ld, don't add -lc before -lgcc.
16694      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16695echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16696      $rm conftest*
16697      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16698
16699      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700  (eval $ac_compile) 2>&5
16701  ac_status=$?
16702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703  (exit $ac_status); } 2>conftest.err; then
16704        soname=conftest
16705        lib=conftest
16706        libobjs=conftest.$ac_objext
16707        deplibs=
16708        wl=$lt_prog_compiler_wl_GCJ
16709        compiler_flags=-v
16710        linker_flags=-v
16711        verstring=
16712        output_objdir=.
16713        libname=conftest
16714        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16715        allow_undefined_flag_GCJ=
16716        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16717  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16718  ac_status=$?
16719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720  (exit $ac_status); }
16721        then
16722          archive_cmds_need_lc_GCJ=no
16723        else
16724          archive_cmds_need_lc_GCJ=yes
16725        fi
16726        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16727      else
16728        cat conftest.err 1>&5
16729      fi
16730      $rm conftest*
16731      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16732echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16733      ;;
16734    esac
16735  fi
16736  ;;
16737esac
16738
16739echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16740echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16741library_names_spec=
16742libname_spec='lib$name'
16743soname_spec=
16744shrext_cmds=".so"
16745postinstall_cmds=
16746postuninstall_cmds=
16747finish_cmds=
16748finish_eval=
16749shlibpath_var=
16750shlibpath_overrides_runpath=unknown
16751version_type=none
16752dynamic_linker="$host_os ld.so"
16753sys_lib_dlsearch_path_spec="/lib /usr/lib"
16754if test "$GCC" = yes; then
16755  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16756  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16757    # if the path contains ";" then we assume it to be the separator
16758    # otherwise default to the standard path separator (i.e. ":") - it is
16759    # assumed that no part of a normal pathname contains ";" but that should
16760    # okay in the real world where ";" in dirpaths is itself problematic.
16761    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16762  else
16763    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16764  fi
16765else
16766  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16767fi
16768need_lib_prefix=unknown
16769hardcode_into_libs=no
16770
16771# when you set need_version to no, make sure it does not cause -set_version
16772# flags to be left without arguments
16773need_version=unknown
16774
16775case $host_os in
16776aix3*)
16777  version_type=linux
16778  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16779  shlibpath_var=LIBPATH
16780
16781  # AIX 3 has no versioning support, so we append a major version to the name.
16782  soname_spec='${libname}${release}${shared_ext}$major'
16783  ;;
16784
16785aix4* | aix5*)
16786  version_type=linux
16787  need_lib_prefix=no
16788  need_version=no
16789  hardcode_into_libs=yes
16790  if test "$host_cpu" = ia64; then
16791    # AIX 5 supports IA64
16792    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16793    shlibpath_var=LD_LIBRARY_PATH
16794  else
16795    # With GCC up to 2.95.x, collect2 would create an import file
16796    # for dependence libraries.  The import file would start with
16797    # the line `#! .'.  This would cause the generated library to
16798    # depend on `.', always an invalid library.  This was fixed in
16799    # development snapshots of GCC prior to 3.0.
16800    case $host_os in
16801      aix4 | aix4.[01] | aix4.[01].*)
16802      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16803           echo ' yes '
16804           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16805        :
16806      else
16807        can_build_shared=no
16808      fi
16809      ;;
16810    esac
16811    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16812    # soname into executable. Probably we can add versioning support to
16813    # collect2, so additional links can be useful in future.
16814    if test "$aix_use_runtimelinking" = yes; then
16815      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16816      # instead of lib<name>.a to let people know that these are not
16817      # typical AIX shared libraries.
16818      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819    else
16820      # We preserve .a as extension for shared libraries through AIX4.2
16821      # and later when we are not doing run time linking.
16822      library_names_spec='${libname}${release}.a $libname.a'
16823      soname_spec='${libname}${release}${shared_ext}$major'
16824    fi
16825    shlibpath_var=LIBPATH
16826  fi
16827  ;;
16828
16829amigaos*)
16830  library_names_spec='$libname.ixlibrary $libname.a'
16831  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16832  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'
16833  ;;
16834
16835beos*)
16836  library_names_spec='${libname}${shared_ext}'
16837  dynamic_linker="$host_os ld.so"
16838  shlibpath_var=LIBRARY_PATH
16839  ;;
16840
16841bsdi4*)
16842  version_type=linux
16843  need_version=no
16844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845  soname_spec='${libname}${release}${shared_ext}$major'
16846  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16847  shlibpath_var=LD_LIBRARY_PATH
16848  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16849  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16850  # the default ld.so.conf also contains /usr/contrib/lib and
16851  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16852  # libtool to hard-code these into programs
16853  ;;
16854
16855cygwin* | mingw* | pw32*)
16856  version_type=windows
16857  shrext_cmds=".dll"
16858  need_version=no
16859  need_lib_prefix=no
16860
16861  case $GCC,$host_os in
16862  yes,cygwin* | yes,mingw* | yes,pw32*)
16863    library_names_spec='$libname.dll.a'
16864    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16865    postinstall_cmds='base_file=`basename \${file}`~
16866      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16867      dldir=$destdir/`dirname \$dlpath`~
16868      test -d \$dldir || mkdir -p \$dldir~
16869      $install_prog $dir/$dlname \$dldir/$dlname'
16870    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16871      dlpath=$dir/\$dldll~
16872       $rm \$dlpath'
16873    shlibpath_overrides_runpath=yes
16874
16875    case $host_os in
16876    cygwin*)
16877      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16878      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16879      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16880      ;;
16881    mingw*)
16882      # MinGW DLLs use traditional 'lib' prefix
16883      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16884      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16885      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16886        # It is most probably a Windows format PATH printed by
16887        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16888        # path with ; separators, and with drive letters. We can handle the
16889        # drive letters (cygwin fileutils understands them), so leave them,
16890        # especially as we might pass files found there to a mingw objdump,
16891        # which wouldn't understand a cygwinified path. Ahh.
16892        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16893      else
16894        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16895      fi
16896      ;;
16897    pw32*)
16898      # pw32 DLLs use 'pw' prefix rather than 'lib'
16899      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16900      ;;
16901    esac
16902    ;;
16903
16904  *)
16905    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16906    ;;
16907  esac
16908  dynamic_linker='Win32 ld.exe'
16909  # FIXME: first we should search . and the directory the executable is in
16910  shlibpath_var=PATH
16911  ;;
16912
16913darwin* | rhapsody*)
16914  dynamic_linker="$host_os dyld"
16915  version_type=darwin
16916  need_lib_prefix=no
16917  need_version=no
16918  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16919  soname_spec='${libname}${release}${major}$shared_ext'
16920  shlibpath_overrides_runpath=yes
16921  shlibpath_var=DYLD_LIBRARY_PATH
16922  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16923  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16924  if test "$GCC" = yes; then
16925    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"`
16926  else
16927    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16928  fi
16929  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16930  ;;
16931
16932dgux*)
16933  version_type=linux
16934  need_lib_prefix=no
16935  need_version=no
16936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16937  soname_spec='${libname}${release}${shared_ext}$major'
16938  shlibpath_var=LD_LIBRARY_PATH
16939  ;;
16940
16941freebsd1*)
16942  dynamic_linker=no
16943  ;;
16944
16945kfreebsd*-gnu)
16946  version_type=linux
16947  need_lib_prefix=no
16948  need_version=no
16949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16950  soname_spec='${libname}${release}${shared_ext}$major'
16951  shlibpath_var=LD_LIBRARY_PATH
16952  shlibpath_overrides_runpath=no
16953  hardcode_into_libs=yes
16954  dynamic_linker='GNU ld.so'
16955  ;;
16956
16957freebsd*)
16958  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16959  version_type=freebsd-$objformat
16960  case $version_type in
16961    freebsd-elf*)
16962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16963      need_version=no
16964      need_lib_prefix=no
16965      ;;
16966    freebsd-*)
16967      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16968      need_version=yes
16969      ;;
16970  esac
16971  shlibpath_var=LD_LIBRARY_PATH
16972  case $host_os in
16973  freebsd2*)
16974    shlibpath_overrides_runpath=yes
16975    ;;
16976  freebsd3.01* | freebsdelf3.01*)
16977    shlibpath_overrides_runpath=yes
16978    hardcode_into_libs=yes
16979    ;;
16980  *) # from 3.2 on
16981    shlibpath_overrides_runpath=no
16982    hardcode_into_libs=yes
16983    ;;
16984  esac
16985  ;;
16986
16987gnu*)
16988  version_type=linux
16989  need_lib_prefix=no
16990  need_version=no
16991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16992  soname_spec='${libname}${release}${shared_ext}$major'
16993  shlibpath_var=LD_LIBRARY_PATH
16994  hardcode_into_libs=yes
16995  ;;
16996
16997hpux9* | hpux10* | hpux11*)
16998  # Give a soname corresponding to the major version so that dld.sl refuses to
16999  # link against other versions.
17000  version_type=sunos
17001  need_lib_prefix=no
17002  need_version=no
17003  case "$host_cpu" in
17004  ia64*)
17005    shrext_cmds='.so'
17006    hardcode_into_libs=yes
17007    dynamic_linker="$host_os dld.so"
17008    shlibpath_var=LD_LIBRARY_PATH
17009    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17010    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011    soname_spec='${libname}${release}${shared_ext}$major'
17012    if test "X$HPUX_IA64_MODE" = X32; then
17013      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17014    else
17015      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17016    fi
17017    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17018    ;;
17019   hppa*64*)
17020     shrext_cmds='.sl'
17021     hardcode_into_libs=yes
17022     dynamic_linker="$host_os dld.sl"
17023     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17024     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026     soname_spec='${libname}${release}${shared_ext}$major'
17027     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17028     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17029     ;;
17030   *)
17031    shrext_cmds='.sl'
17032    dynamic_linker="$host_os dld.sl"
17033    shlibpath_var=SHLIB_PATH
17034    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17035    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036    soname_spec='${libname}${release}${shared_ext}$major'
17037    ;;
17038  esac
17039  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17040  postinstall_cmds='chmod 555 $lib'
17041  ;;
17042
17043irix5* | irix6* | nonstopux*)
17044  case $host_os in
17045    nonstopux*) version_type=nonstopux ;;
17046    *)
17047        if test "$lt_cv_prog_gnu_ld" = yes; then
17048                version_type=linux
17049        else
17050                version_type=irix
17051        fi ;;
17052  esac
17053  need_lib_prefix=no
17054  need_version=no
17055  soname_spec='${libname}${release}${shared_ext}$major'
17056  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17057  case $host_os in
17058  irix5* | nonstopux*)
17059    libsuff= shlibsuff=
17060    ;;
17061  *)
17062    case $LD in # libtool.m4 will add one of these switches to LD
17063    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17064      libsuff= shlibsuff= libmagic=32-bit;;
17065    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17066      libsuff=32 shlibsuff=N32 libmagic=N32;;
17067    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17068      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17069    *) libsuff= shlibsuff= libmagic=never-match;;
17070    esac
17071    ;;
17072  esac
17073  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17074  shlibpath_overrides_runpath=no
17075  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17076  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17077  hardcode_into_libs=yes
17078  ;;
17079
17080# No shared lib support for Linux oldld, aout, or coff.
17081linux*oldld* | linux*aout* | linux*coff*)
17082  dynamic_linker=no
17083  ;;
17084
17085# This must be Linux ELF.
17086linux*)
17087  version_type=linux
17088  need_lib_prefix=no
17089  need_version=no
17090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091  soname_spec='${libname}${release}${shared_ext}$major'
17092  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17093  shlibpath_var=LD_LIBRARY_PATH
17094  shlibpath_overrides_runpath=no
17095  # This implies no fast_install, which is unacceptable.
17096  # Some rework will be needed to allow for fast_install
17097  # before this can be enabled.
17098  hardcode_into_libs=yes
17099
17100  # Append ld.so.conf contents to the search path
17101  if test -f /etc/ld.so.conf; then
17102    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17103    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17104  fi
17105
17106  # We used to test for /lib/ld.so.1 and disable shared libraries on
17107  # powerpc, because MkLinux only supported shared libraries with the
17108  # GNU dynamic linker.  Since this was broken with cross compilers,
17109  # most powerpc-linux boxes support dynamic linking these days and
17110  # people can always --disable-shared, the test was removed, and we
17111  # assume the GNU/Linux dynamic linker is in use.
17112  dynamic_linker='GNU/Linux ld.so'
17113  ;;
17114
17115netbsdelf*-gnu)
17116  version_type=linux
17117  need_lib_prefix=no
17118  need_version=no
17119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17120  soname_spec='${libname}${release}${shared_ext}$major'
17121  shlibpath_var=LD_LIBRARY_PATH
17122  shlibpath_overrides_runpath=no
17123  hardcode_into_libs=yes
17124  dynamic_linker='NetBSD ld.elf_so'
17125  ;;
17126
17127knetbsd*-gnu)
17128  version_type=linux
17129  need_lib_prefix=no
17130  need_version=no
17131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17132  soname_spec='${libname}${release}${shared_ext}$major'
17133  shlibpath_var=LD_LIBRARY_PATH
17134  shlibpath_overrides_runpath=no
17135  hardcode_into_libs=yes
17136  dynamic_linker='GNU ld.so'
17137  ;;
17138
17139netbsd*)
17140  version_type=sunos
17141  need_lib_prefix=no
17142  need_version=no
17143  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17144    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17145    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17146    dynamic_linker='NetBSD (a.out) ld.so'
17147  else
17148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17149    soname_spec='${libname}${release}${shared_ext}$major'
17150    dynamic_linker='NetBSD ld.elf_so'
17151  fi
17152  shlibpath_var=LD_LIBRARY_PATH
17153  shlibpath_overrides_runpath=yes
17154  hardcode_into_libs=yes
17155  ;;
17156
17157newsos6)
17158  version_type=linux
17159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160  shlibpath_var=LD_LIBRARY_PATH
17161  shlibpath_overrides_runpath=yes
17162  ;;
17163
17164nto-qnx*)
17165  version_type=linux
17166  need_lib_prefix=no
17167  need_version=no
17168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169  soname_spec='${libname}${release}${shared_ext}$major'
17170  shlibpath_var=LD_LIBRARY_PATH
17171  shlibpath_overrides_runpath=yes
17172  ;;
17173
17174openbsd*)
17175  version_type=sunos
17176  need_lib_prefix=no
17177  need_version=yes
17178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17179  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17180  shlibpath_var=LD_LIBRARY_PATH
17181  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17182    case $host_os in
17183      openbsd2.[89] | openbsd2.[89].*)
17184        shlibpath_overrides_runpath=no
17185        ;;
17186      *)
17187        shlibpath_overrides_runpath=yes
17188        ;;
17189      esac
17190  else
17191    shlibpath_overrides_runpath=yes
17192  fi
17193  ;;
17194
17195os2*)
17196  libname_spec='$name'
17197  shrext_cmds=".dll"
17198  need_lib_prefix=no
17199  library_names_spec='$libname${shared_ext} $libname.a'
17200  dynamic_linker='OS/2 ld.exe'
17201  shlibpath_var=LIBPATH
17202  ;;
17203
17204osf3* | osf4* | osf5*)
17205  version_type=osf
17206  need_lib_prefix=no
17207  need_version=no
17208  soname_spec='${libname}${release}${shared_ext}$major'
17209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210  shlibpath_var=LD_LIBRARY_PATH
17211  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17212  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17213  ;;
17214
17215sco3.2v5*)
17216  version_type=osf
17217  soname_spec='${libname}${release}${shared_ext}$major'
17218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219  shlibpath_var=LD_LIBRARY_PATH
17220  ;;
17221
17222solaris*)
17223  version_type=linux
17224  need_lib_prefix=no
17225  need_version=no
17226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227  soname_spec='${libname}${release}${shared_ext}$major'
17228  shlibpath_var=LD_LIBRARY_PATH
17229  shlibpath_overrides_runpath=yes
17230  hardcode_into_libs=yes
17231  # ldd complains unless libraries are executable
17232  postinstall_cmds='chmod +x $lib'
17233  ;;
17234
17235sunos4*)
17236  version_type=sunos
17237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17238  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17239  shlibpath_var=LD_LIBRARY_PATH
17240  shlibpath_overrides_runpath=yes
17241  if test "$with_gnu_ld" = yes; then
17242    need_lib_prefix=no
17243  fi
17244  need_version=yes
17245  ;;
17246
17247sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17248  version_type=linux
17249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250  soname_spec='${libname}${release}${shared_ext}$major'
17251  shlibpath_var=LD_LIBRARY_PATH
17252  case $host_vendor in
17253    sni)
17254      shlibpath_overrides_runpath=no
17255      need_lib_prefix=no
17256      export_dynamic_flag_spec='${wl}-Blargedynsym'
17257      runpath_var=LD_RUN_PATH
17258      ;;
17259    siemens)
17260      need_lib_prefix=no
17261      ;;
17262    motorola)
17263      need_lib_prefix=no
17264      need_version=no
17265      shlibpath_overrides_runpath=no
17266      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17267      ;;
17268  esac
17269  ;;
17270
17271sysv4*MP*)
17272  if test -d /usr/nec ;then
17273    version_type=linux
17274    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17275    soname_spec='$libname${shared_ext}.$major'
17276    shlibpath_var=LD_LIBRARY_PATH
17277  fi
17278  ;;
17279
17280uts4*)
17281  version_type=linux
17282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283  soname_spec='${libname}${release}${shared_ext}$major'
17284  shlibpath_var=LD_LIBRARY_PATH
17285  ;;
17286
17287*)
17288  dynamic_linker=no
17289  ;;
17290esac
17291echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17292echo "${ECHO_T}$dynamic_linker" >&6
17293test "$dynamic_linker" = no && can_build_shared=no
17294
17295echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17296echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17297hardcode_action_GCJ=
17298if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17299   test -n "$runpath_var GCJ" || \
17300   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17301
17302  # We can hardcode non-existant directories.
17303  if test "$hardcode_direct_GCJ" != no &&
17304     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17305     # have to relink, otherwise we might link with an installed library
17306     # when we should be linking with a yet-to-be-installed one
17307     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17308     test "$hardcode_minus_L_GCJ" != no; then
17309    # Linking always hardcodes the temporary library directory.
17310    hardcode_action_GCJ=relink
17311  else
17312    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17313    hardcode_action_GCJ=immediate
17314  fi
17315else
17316  # We cannot hardcode anything, or else we can only hardcode existing
17317  # directories.
17318  hardcode_action_GCJ=unsupported
17319fi
17320echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17321echo "${ECHO_T}$hardcode_action_GCJ" >&6
17322
17323if test "$hardcode_action_GCJ" = relink; then
17324  # Fast installation is not supported
17325  enable_fast_install=no
17326elif test "$shlibpath_overrides_runpath" = yes ||
17327     test "$enable_shared" = no; then
17328  # Fast installation is not necessary
17329  enable_fast_install=needless
17330fi
17331
17332striplib=
17333old_striplib=
17334echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17335echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17336if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17337  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17338  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17339  echo "$as_me:$LINENO: result: yes" >&5
17340echo "${ECHO_T}yes" >&6
17341else
17342# FIXME - insert some real tests, host_os isn't really good enough
17343  case $host_os in
17344   darwin*)
17345       if test -n "$STRIP" ; then
17346         striplib="$STRIP -x"
17347         echo "$as_me:$LINENO: result: yes" >&5
17348echo "${ECHO_T}yes" >&6
17349       else
17350  echo "$as_me:$LINENO: result: no" >&5
17351echo "${ECHO_T}no" >&6
17352fi
17353       ;;
17354   *)
17355  echo "$as_me:$LINENO: result: no" >&5
17356echo "${ECHO_T}no" >&6
17357    ;;
17358  esac
17359fi
17360
17361if test "x$enable_dlopen" != xyes; then
17362  enable_dlopen=unknown
17363  enable_dlopen_self=unknown
17364  enable_dlopen_self_static=unknown
17365else
17366  lt_cv_dlopen=no
17367  lt_cv_dlopen_libs=
17368
17369  case $host_os in
17370  beos*)
17371    lt_cv_dlopen="load_add_on"
17372    lt_cv_dlopen_libs=
17373    lt_cv_dlopen_self=yes
17374    ;;
17375
17376  mingw* | pw32*)
17377    lt_cv_dlopen="LoadLibrary"
17378    lt_cv_dlopen_libs=
17379   ;;
17380
17381  cygwin*)
17382    lt_cv_dlopen="dlopen"
17383    lt_cv_dlopen_libs=
17384   ;;
17385
17386  darwin*)
17387  # if libdl is installed we need to link against it
17388    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17389echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17390if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17391  echo $ECHO_N "(cached) $ECHO_C" >&6
17392else
17393  ac_check_lib_save_LIBS=$LIBS
17394LIBS="-ldl  $LIBS"
17395cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h.  */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h.  */
17401
17402/* Override any gcc2 internal prototype to avoid an error.  */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406/* We use char because int might match the return type of a gcc2
17407   builtin and then its argument prototype would still apply.  */
17408char dlopen ();
17409int
17410main ()
17411{
17412dlopen ();
17413  ;
17414  return 0;
17415}
17416_ACEOF
17417rm -f conftest.$ac_objext conftest$ac_exeext
17418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419  (eval $ac_link) 2>conftest.er1
17420  ac_status=$?
17421  grep -v '^ *+' conftest.er1 >conftest.err
17422  rm -f conftest.er1
17423  cat conftest.err >&5
17424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425  (exit $ac_status); } &&
17426         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428  (eval $ac_try) 2>&5
17429  ac_status=$?
17430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431  (exit $ac_status); }; } &&
17432         { ac_try='test -s conftest$ac_exeext'
17433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434  (eval $ac_try) 2>&5
17435  ac_status=$?
17436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437  (exit $ac_status); }; }; then
17438  ac_cv_lib_dl_dlopen=yes
17439else
17440  echo "$as_me: failed program was:" >&5
17441sed 's/^/| /' conftest.$ac_ext >&5
17442
17443ac_cv_lib_dl_dlopen=no
17444fi
17445rm -f conftest.err conftest.$ac_objext \
17446      conftest$ac_exeext conftest.$ac_ext
17447LIBS=$ac_check_lib_save_LIBS
17448fi
17449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17451if test $ac_cv_lib_dl_dlopen = yes; then
17452  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17453else
17454
17455    lt_cv_dlopen="dyld"
17456    lt_cv_dlopen_libs=
17457    lt_cv_dlopen_self=yes
17458
17459fi
17460
17461   ;;
17462
17463  *)
17464    echo "$as_me:$LINENO: checking for shl_load" >&5
17465echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17466if test "${ac_cv_func_shl_load+set}" = set; then
17467  echo $ECHO_N "(cached) $ECHO_C" >&6
17468else
17469  cat >conftest.$ac_ext <<_ACEOF
17470/* confdefs.h.  */
17471_ACEOF
17472cat confdefs.h >>conftest.$ac_ext
17473cat >>conftest.$ac_ext <<_ACEOF
17474/* end confdefs.h.  */
17475/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17476   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17477#define shl_load innocuous_shl_load
17478
17479/* System header to define __stub macros and hopefully few prototypes,
17480    which can conflict with char shl_load (); below.
17481    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17482    <limits.h> exists even on freestanding compilers.  */
17483
17484#ifdef __STDC__
17485# include <limits.h>
17486#else
17487# include <assert.h>
17488#endif
17489
17490#undef shl_load
17491
17492/* Override any gcc2 internal prototype to avoid an error.  */
17493#ifdef __cplusplus
17494extern "C"
17495{
17496#endif
17497/* We use char because int might match the return type of a gcc2
17498   builtin and then its argument prototype would still apply.  */
17499char shl_load ();
17500/* The GNU C library defines this for functions which it implements
17501    to always fail with ENOSYS.  Some functions are actually named
17502    something starting with __ and the normal name is an alias.  */
17503#if defined (__stub_shl_load) || defined (__stub___shl_load)
17504choke me
17505#else
17506char (*f) () = shl_load;
17507#endif
17508#ifdef __cplusplus
17509}
17510#endif
17511
17512int
17513main ()
17514{
17515return f != shl_load;
17516  ;
17517  return 0;
17518}
17519_ACEOF
17520rm -f conftest.$ac_objext conftest$ac_exeext
17521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17522  (eval $ac_link) 2>conftest.er1
17523  ac_status=$?
17524  grep -v '^ *+' conftest.er1 >conftest.err
17525  rm -f conftest.er1
17526  cat conftest.err >&5
17527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528  (exit $ac_status); } &&
17529         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531  (eval $ac_try) 2>&5
17532  ac_status=$?
17533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534  (exit $ac_status); }; } &&
17535         { ac_try='test -s conftest$ac_exeext'
17536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537  (eval $ac_try) 2>&5
17538  ac_status=$?
17539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540  (exit $ac_status); }; }; then
17541  ac_cv_func_shl_load=yes
17542else
17543  echo "$as_me: failed program was:" >&5
17544sed 's/^/| /' conftest.$ac_ext >&5
17545
17546ac_cv_func_shl_load=no
17547fi
17548rm -f conftest.err conftest.$ac_objext \
17549      conftest$ac_exeext conftest.$ac_ext
17550fi
17551echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17552echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17553if test $ac_cv_func_shl_load = yes; then
17554  lt_cv_dlopen="shl_load"
17555else
17556  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17557echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17558if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17559  echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561  ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldld  $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h.  */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h.  */
17569
17570/* Override any gcc2 internal prototype to avoid an error.  */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574/* We use char because int might match the return type of a gcc2
17575   builtin and then its argument prototype would still apply.  */
17576char shl_load ();
17577int
17578main ()
17579{
17580shl_load ();
17581  ;
17582  return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
17586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587  (eval $ac_link) 2>conftest.er1
17588  ac_status=$?
17589  grep -v '^ *+' conftest.er1 >conftest.err
17590  rm -f conftest.er1
17591  cat conftest.err >&5
17592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593  (exit $ac_status); } &&
17594         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596  (eval $ac_try) 2>&5
17597  ac_status=$?
17598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599  (exit $ac_status); }; } &&
17600         { ac_try='test -s conftest$ac_exeext'
17601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602  (eval $ac_try) 2>&5
17603  ac_status=$?
17604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605  (exit $ac_status); }; }; then
17606  ac_cv_lib_dld_shl_load=yes
17607else
17608  echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611ac_cv_lib_dld_shl_load=no
17612fi
17613rm -f conftest.err conftest.$ac_objext \
17614      conftest$ac_exeext conftest.$ac_ext
17615LIBS=$ac_check_lib_save_LIBS
17616fi
17617echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17618echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17619if test $ac_cv_lib_dld_shl_load = yes; then
17620  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17621else
17622  echo "$as_me:$LINENO: checking for dlopen" >&5
17623echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17624if test "${ac_cv_func_dlopen+set}" = set; then
17625  echo $ECHO_N "(cached) $ECHO_C" >&6
17626else
17627  cat >conftest.$ac_ext <<_ACEOF
17628/* confdefs.h.  */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h.  */
17633/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17634   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17635#define dlopen innocuous_dlopen
17636
17637/* System header to define __stub macros and hopefully few prototypes,
17638    which can conflict with char dlopen (); below.
17639    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17640    <limits.h> exists even on freestanding compilers.  */
17641
17642#ifdef __STDC__
17643# include <limits.h>
17644#else
17645# include <assert.h>
17646#endif
17647
17648#undef dlopen
17649
17650/* Override any gcc2 internal prototype to avoid an error.  */
17651#ifdef __cplusplus
17652extern "C"
17653{
17654#endif
17655/* We use char because int might match the return type of a gcc2
17656   builtin and then its argument prototype would still apply.  */
17657char dlopen ();
17658/* The GNU C library defines this for functions which it implements
17659    to always fail with ENOSYS.  Some functions are actually named
17660    something starting with __ and the normal name is an alias.  */
17661#if defined (__stub_dlopen) || defined (__stub___dlopen)
17662choke me
17663#else
17664char (*f) () = dlopen;
17665#endif
17666#ifdef __cplusplus
17667}
17668#endif
17669
17670int
17671main ()
17672{
17673return f != dlopen;
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678rm -f conftest.$ac_objext conftest$ac_exeext
17679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680  (eval $ac_link) 2>conftest.er1
17681  ac_status=$?
17682  grep -v '^ *+' conftest.er1 >conftest.err
17683  rm -f conftest.er1
17684  cat conftest.err >&5
17685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686  (exit $ac_status); } &&
17687         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689  (eval $ac_try) 2>&5
17690  ac_status=$?
17691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692  (exit $ac_status); }; } &&
17693         { ac_try='test -s conftest$ac_exeext'
17694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695  (eval $ac_try) 2>&5
17696  ac_status=$?
17697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698  (exit $ac_status); }; }; then
17699  ac_cv_func_dlopen=yes
17700else
17701  echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704ac_cv_func_dlopen=no
17705fi
17706rm -f conftest.err conftest.$ac_objext \
17707      conftest$ac_exeext conftest.$ac_ext
17708fi
17709echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17710echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17711if test $ac_cv_func_dlopen = yes; then
17712  lt_cv_dlopen="dlopen"
17713else
17714  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17717  echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719  ac_check_lib_save_LIBS=$LIBS
17720LIBS="-ldl  $LIBS"
17721cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h.  */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h.  */
17727
17728/* Override any gcc2 internal prototype to avoid an error.  */
17729#ifdef __cplusplus
17730extern "C"
17731#endif
17732/* We use char because int might match the return type of a gcc2
17733   builtin and then its argument prototype would still apply.  */
17734char dlopen ();
17735int
17736main ()
17737{
17738dlopen ();
17739  ;
17740  return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext conftest$ac_exeext
17744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745  (eval $ac_link) 2>conftest.er1
17746  ac_status=$?
17747  grep -v '^ *+' conftest.er1 >conftest.err
17748  rm -f conftest.er1
17749  cat conftest.err >&5
17750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751  (exit $ac_status); } &&
17752         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754  (eval $ac_try) 2>&5
17755  ac_status=$?
17756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757  (exit $ac_status); }; } &&
17758         { ac_try='test -s conftest$ac_exeext'
17759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760  (eval $ac_try) 2>&5
17761  ac_status=$?
17762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763  (exit $ac_status); }; }; then
17764  ac_cv_lib_dl_dlopen=yes
17765else
17766  echo "$as_me: failed program was:" >&5
17767sed 's/^/| /' conftest.$ac_ext >&5
17768
17769ac_cv_lib_dl_dlopen=no
17770fi
17771rm -f conftest.err conftest.$ac_objext \
17772      conftest$ac_exeext conftest.$ac_ext
17773LIBS=$ac_check_lib_save_LIBS
17774fi
17775echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777if test $ac_cv_lib_dl_dlopen = yes; then
17778  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17779else
17780  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17781echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17782if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17783  echo $ECHO_N "(cached) $ECHO_C" >&6
17784else
17785  ac_check_lib_save_LIBS=$LIBS
17786LIBS="-lsvld  $LIBS"
17787cat >conftest.$ac_ext <<_ACEOF
17788/* confdefs.h.  */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h.  */
17793
17794/* Override any gcc2 internal prototype to avoid an error.  */
17795#ifdef __cplusplus
17796extern "C"
17797#endif
17798/* We use char because int might match the return type of a gcc2
17799   builtin and then its argument prototype would still apply.  */
17800char dlopen ();
17801int
17802main ()
17803{
17804dlopen ();
17805  ;
17806  return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext conftest$ac_exeext
17810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811  (eval $ac_link) 2>conftest.er1
17812  ac_status=$?
17813  grep -v '^ *+' conftest.er1 >conftest.err
17814  rm -f conftest.er1
17815  cat conftest.err >&5
17816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817  (exit $ac_status); } &&
17818         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820  (eval $ac_try) 2>&5
17821  ac_status=$?
17822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823  (exit $ac_status); }; } &&
17824         { ac_try='test -s conftest$ac_exeext'
17825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826  (eval $ac_try) 2>&5
17827  ac_status=$?
17828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829  (exit $ac_status); }; }; then
17830  ac_cv_lib_svld_dlopen=yes
17831else
17832  echo "$as_me: failed program was:" >&5
17833sed 's/^/| /' conftest.$ac_ext >&5
17834
17835ac_cv_lib_svld_dlopen=no
17836fi
17837rm -f conftest.err conftest.$ac_objext \
17838      conftest$ac_exeext conftest.$ac_ext
17839LIBS=$ac_check_lib_save_LIBS
17840fi
17841echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17842echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17843if test $ac_cv_lib_svld_dlopen = yes; then
17844  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17845else
17846  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17847echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17848if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17849  echo $ECHO_N "(cached) $ECHO_C" >&6
17850else
17851  ac_check_lib_save_LIBS=$LIBS
17852LIBS="-ldld  $LIBS"
17853cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h.  */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h.  */
17859
17860/* Override any gcc2 internal prototype to avoid an error.  */
17861#ifdef __cplusplus
17862extern "C"
17863#endif
17864/* We use char because int might match the return type of a gcc2
17865   builtin and then its argument prototype would still apply.  */
17866char dld_link ();
17867int
17868main ()
17869{
17870dld_link ();
17871  ;
17872  return 0;
17873}
17874_ACEOF
17875rm -f conftest.$ac_objext conftest$ac_exeext
17876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17877  (eval $ac_link) 2>conftest.er1
17878  ac_status=$?
17879  grep -v '^ *+' conftest.er1 >conftest.err
17880  rm -f conftest.er1
17881  cat conftest.err >&5
17882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883  (exit $ac_status); } &&
17884         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886  (eval $ac_try) 2>&5
17887  ac_status=$?
17888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889  (exit $ac_status); }; } &&
17890         { ac_try='test -s conftest$ac_exeext'
17891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892  (eval $ac_try) 2>&5
17893  ac_status=$?
17894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895  (exit $ac_status); }; }; then
17896  ac_cv_lib_dld_dld_link=yes
17897else
17898  echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_lib_dld_dld_link=no
17902fi
17903rm -f conftest.err conftest.$ac_objext \
17904      conftest$ac_exeext conftest.$ac_ext
17905LIBS=$ac_check_lib_save_LIBS
17906fi
17907echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17908echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17909if test $ac_cv_lib_dld_dld_link = yes; then
17910  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17911fi
17912
17913
17914fi
17915
17916
17917fi
17918
17919
17920fi
17921
17922
17923fi
17924
17925
17926fi
17927
17928    ;;
17929  esac
17930
17931  if test "x$lt_cv_dlopen" != xno; then
17932    enable_dlopen=yes
17933  else
17934    enable_dlopen=no
17935  fi
17936
17937  case $lt_cv_dlopen in
17938  dlopen)
17939    save_CPPFLAGS="$CPPFLAGS"
17940    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17941
17942    save_LDFLAGS="$LDFLAGS"
17943    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17944
17945    save_LIBS="$LIBS"
17946    LIBS="$lt_cv_dlopen_libs $LIBS"
17947
17948    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17949echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17950if test "${lt_cv_dlopen_self+set}" = set; then
17951  echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953          if test "$cross_compiling" = yes; then :
17954  lt_cv_dlopen_self=cross
17955else
17956  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17957  lt_status=$lt_dlunknown
17958  cat > conftest.$ac_ext <<EOF
17959#line 17959 "configure"
17960#include "confdefs.h"
17961
17962#if HAVE_DLFCN_H
17963#include <dlfcn.h>
17964#endif
17965
17966#include <stdio.h>
17967
17968#ifdef RTLD_GLOBAL
17969#  define LT_DLGLOBAL           RTLD_GLOBAL
17970#else
17971#  ifdef DL_GLOBAL
17972#    define LT_DLGLOBAL         DL_GLOBAL
17973#  else
17974#    define LT_DLGLOBAL         0
17975#  endif
17976#endif
17977
17978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17979   find out it does not work in some platform. */
17980#ifndef LT_DLLAZY_OR_NOW
17981#  ifdef RTLD_LAZY
17982#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17983#  else
17984#    ifdef DL_LAZY
17985#      define LT_DLLAZY_OR_NOW          DL_LAZY
17986#    else
17987#      ifdef RTLD_NOW
17988#        define LT_DLLAZY_OR_NOW        RTLD_NOW
17989#      else
17990#        ifdef DL_NOW
17991#          define LT_DLLAZY_OR_NOW      DL_NOW
17992#        else
17993#          define LT_DLLAZY_OR_NOW      0
17994#        endif
17995#      endif
17996#    endif
17997#  endif
17998#endif
17999
18000#ifdef __cplusplus
18001extern "C" void exit (int);
18002#endif
18003
18004void fnord() { int i=42;}
18005int main ()
18006{
18007  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18008  int status = $lt_dlunknown;
18009
18010  if (self)
18011    {
18012      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18013      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18014      /* dlclose (self); */
18015    }
18016
18017    exit (status);
18018}
18019EOF
18020  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021  (eval $ac_link) 2>&5
18022  ac_status=$?
18023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18025    (./conftest; exit; ) 2>/dev/null
18026    lt_status=$?
18027    case x$lt_status in
18028      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18029      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18030      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18031    esac
18032  else :
18033    # compilation failed
18034    lt_cv_dlopen_self=no
18035  fi
18036fi
18037rm -fr conftest*
18038
18039
18040fi
18041echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18042echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18043
18044    if test "x$lt_cv_dlopen_self" = xyes; then
18045      LDFLAGS="$LDFLAGS $link_static_flag"
18046      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18047echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18048if test "${lt_cv_dlopen_self_static+set}" = set; then
18049  echo $ECHO_N "(cached) $ECHO_C" >&6
18050else
18051          if test "$cross_compiling" = yes; then :
18052  lt_cv_dlopen_self_static=cross
18053else
18054  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18055  lt_status=$lt_dlunknown
18056  cat > conftest.$ac_ext <<EOF
18057#line 18057 "configure"
18058#include "confdefs.h"
18059
18060#if HAVE_DLFCN_H
18061#include <dlfcn.h>
18062#endif
18063
18064#include <stdio.h>
18065
18066#ifdef RTLD_GLOBAL
18067#  define LT_DLGLOBAL           RTLD_GLOBAL
18068#else
18069#  ifdef DL_GLOBAL
18070#    define LT_DLGLOBAL         DL_GLOBAL
18071#  else
18072#    define LT_DLGLOBAL         0
18073#  endif
18074#endif
18075
18076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18077   find out it does not work in some platform. */
18078#ifndef LT_DLLAZY_OR_NOW
18079#  ifdef RTLD_LAZY
18080#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18081#  else
18082#    ifdef DL_LAZY
18083#      define LT_DLLAZY_OR_NOW          DL_LAZY
18084#    else
18085#      ifdef RTLD_NOW
18086#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18087#      else
18088#        ifdef DL_NOW
18089#          define LT_DLLAZY_OR_NOW      DL_NOW
18090#        else
18091#          define LT_DLLAZY_OR_NOW      0
18092#        endif
18093#      endif
18094#    endif
18095#  endif
18096#endif
18097
18098#ifdef __cplusplus
18099extern "C" void exit (int);
18100#endif
18101
18102void fnord() { int i=42;}
18103int main ()
18104{
18105  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18106  int status = $lt_dlunknown;
18107
18108  if (self)
18109    {
18110      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18111      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18112      /* dlclose (self); */
18113    }
18114
18115    exit (status);
18116}
18117EOF
18118  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119  (eval $ac_link) 2>&5
18120  ac_status=$?
18121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18123    (./conftest; exit; ) 2>/dev/null
18124    lt_status=$?
18125    case x$lt_status in
18126      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18127      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18128      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18129    esac
18130  else :
18131    # compilation failed
18132    lt_cv_dlopen_self_static=no
18133  fi
18134fi
18135rm -fr conftest*
18136
18137
18138fi
18139echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18140echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18141    fi
18142
18143    CPPFLAGS="$save_CPPFLAGS"
18144    LDFLAGS="$save_LDFLAGS"
18145    LIBS="$save_LIBS"
18146    ;;
18147  esac
18148
18149  case $lt_cv_dlopen_self in
18150  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18151  *) enable_dlopen_self=unknown ;;
18152  esac
18153
18154  case $lt_cv_dlopen_self_static in
18155  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18156  *) enable_dlopen_self_static=unknown ;;
18157  esac
18158fi
18159
18160
18161# The else clause should only fire when bootstrapping the
18162# libtool distribution, otherwise you forgot to ship ltmain.sh
18163# with your package, and you will get complaints that there are
18164# no rules to generate ltmain.sh.
18165if test -f "$ltmain"; then
18166  # See if we are running on zsh, and set the options which allow our commands through
18167  # without removal of \ escapes.
18168  if test -n "${ZSH_VERSION+set}" ; then
18169    setopt NO_GLOB_SUBST
18170  fi
18171  # Now quote all the things that may contain metacharacters while being
18172  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18173  # variables and quote the copies for generation of the libtool script.
18174  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18175    SED SHELL STRIP \
18176    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18177    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18178    deplibs_check_method reload_flag reload_cmds need_locks \
18179    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18180    lt_cv_sys_global_symbol_to_c_name_address \
18181    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18182    old_postinstall_cmds old_postuninstall_cmds \
18183    compiler_GCJ \
18184    CC_GCJ \
18185    LD_GCJ \
18186    lt_prog_compiler_wl_GCJ \
18187    lt_prog_compiler_pic_GCJ \
18188    lt_prog_compiler_static_GCJ \
18189    lt_prog_compiler_no_builtin_flag_GCJ \
18190    export_dynamic_flag_spec_GCJ \
18191    thread_safe_flag_spec_GCJ \
18192    whole_archive_flag_spec_GCJ \
18193    enable_shared_with_static_runtimes_GCJ \
18194    old_archive_cmds_GCJ \
18195    old_archive_from_new_cmds_GCJ \
18196    predep_objects_GCJ \
18197    postdep_objects_GCJ \
18198    predeps_GCJ \
18199    postdeps_GCJ \
18200    compiler_lib_search_path_GCJ \
18201    archive_cmds_GCJ \
18202    archive_expsym_cmds_GCJ \
18203    postinstall_cmds_GCJ \
18204    postuninstall_cmds_GCJ \
18205    old_archive_from_expsyms_cmds_GCJ \
18206    allow_undefined_flag_GCJ \
18207    no_undefined_flag_GCJ \
18208    export_symbols_cmds_GCJ \
18209    hardcode_libdir_flag_spec_GCJ \
18210    hardcode_libdir_flag_spec_ld_GCJ \
18211    hardcode_libdir_separator_GCJ \
18212    hardcode_automatic_GCJ \
18213    module_cmds_GCJ \
18214    module_expsym_cmds_GCJ \
18215    lt_cv_prog_compiler_c_o_GCJ \
18216    exclude_expsyms_GCJ \
18217    include_expsyms_GCJ; do
18218
18219    case $var in
18220    old_archive_cmds_GCJ | \
18221    old_archive_from_new_cmds_GCJ | \
18222    archive_cmds_GCJ | \
18223    archive_expsym_cmds_GCJ | \
18224    module_cmds_GCJ | \
18225    module_expsym_cmds_GCJ | \
18226    old_archive_from_expsyms_cmds_GCJ | \
18227    export_symbols_cmds_GCJ | \
18228    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18229    postinstall_cmds | postuninstall_cmds | \
18230    old_postinstall_cmds | old_postuninstall_cmds | \
18231    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18232      # Double-quote double-evaled strings.
18233      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18234      ;;
18235    *)
18236      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18237      ;;
18238    esac
18239  done
18240
18241  case $lt_echo in
18242  *'\$0 --fallback-echo"')
18243    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18244    ;;
18245  esac
18246
18247cfgfile="$ofile"
18248
18249  cat <<__EOF__ >> "$cfgfile"
18250# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18251
18252# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18253
18254# Shell to use when invoking shell scripts.
18255SHELL=$lt_SHELL
18256
18257# Whether or not to build shared libraries.
18258build_libtool_libs=$enable_shared
18259
18260# Whether or not to build static libraries.
18261build_old_libs=$enable_static
18262
18263# Whether or not to add -lc for building shared libraries.
18264build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18265
18266# Whether or not to disallow shared libs when runtime libs are static
18267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18268
18269# Whether or not to optimize for fast installation.
18270fast_install=$enable_fast_install
18271
18272# The host system.
18273host_alias=$host_alias
18274host=$host
18275
18276# An echo program that does not interpret backslashes.
18277echo=$lt_echo
18278
18279# The archiver.
18280AR=$lt_AR
18281AR_FLAGS=$lt_AR_FLAGS
18282
18283# A C compiler.
18284LTCC=$lt_LTCC
18285
18286# A language-specific compiler.
18287CC=$lt_compiler_GCJ
18288
18289# Is the compiler the GNU C compiler?
18290with_gcc=$GCC_GCJ
18291
18292# An ERE matcher.
18293EGREP=$lt_EGREP
18294
18295# The linker used to build libraries.
18296LD=$lt_LD_GCJ
18297
18298# Whether we need hard or soft links.
18299LN_S=$lt_LN_S
18300
18301# A BSD-compatible nm program.
18302NM=$lt_NM
18303
18304# A symbol stripping program
18305STRIP=$lt_STRIP
18306
18307# Used to examine libraries when file_magic_cmd begins "file"
18308MAGIC_CMD=$MAGIC_CMD
18309
18310# Used on cygwin: DLL creation program.
18311DLLTOOL="$DLLTOOL"
18312
18313# Used on cygwin: object dumper.
18314OBJDUMP="$OBJDUMP"
18315
18316# Used on cygwin: assembler.
18317AS="$AS"
18318
18319# The name of the directory that contains temporary libtool files.
18320objdir=$objdir
18321
18322# How to create reloadable object files.
18323reload_flag=$lt_reload_flag
18324reload_cmds=$lt_reload_cmds
18325
18326# How to pass a linker flag through the compiler.
18327wl=$lt_lt_prog_compiler_wl_GCJ
18328
18329# Object file suffix (normally "o").
18330objext="$ac_objext"
18331
18332# Old archive suffix (normally "a").
18333libext="$libext"
18334
18335# Shared library suffix (normally ".so").
18336shrext_cmds='$shrext_cmds'
18337
18338# Executable file suffix (normally "").
18339exeext="$exeext"
18340
18341# Additional compiler flags for building library objects.
18342pic_flag=$lt_lt_prog_compiler_pic_GCJ
18343pic_mode=$pic_mode
18344
18345# What is the maximum length of a command?
18346max_cmd_len=$lt_cv_sys_max_cmd_len
18347
18348# Does compiler simultaneously support -c and -o options?
18349compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18350
18351# Must we lock files when doing compilation ?
18352need_locks=$lt_need_locks
18353
18354# Do we need the lib prefix for modules?
18355need_lib_prefix=$need_lib_prefix
18356
18357# Do we need a version for libraries?
18358need_version=$need_version
18359
18360# Whether dlopen is supported.
18361dlopen_support=$enable_dlopen
18362
18363# Whether dlopen of programs is supported.
18364dlopen_self=$enable_dlopen_self
18365
18366# Whether dlopen of statically linked programs is supported.
18367dlopen_self_static=$enable_dlopen_self_static
18368
18369# Compiler flag to prevent dynamic linking.
18370link_static_flag=$lt_lt_prog_compiler_static_GCJ
18371
18372# Compiler flag to turn off builtin functions.
18373no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18374
18375# Compiler flag to allow reflexive dlopens.
18376export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18377
18378# Compiler flag to generate shared objects directly from archives.
18379whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18380
18381# Compiler flag to generate thread-safe objects.
18382thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18383
18384# Library versioning type.
18385version_type=$version_type
18386
18387# Format of library name prefix.
18388libname_spec=$lt_libname_spec
18389
18390# List of archive names.  First name is the real one, the rest are links.
18391# The last name is the one that the linker finds with -lNAME.
18392library_names_spec=$lt_library_names_spec
18393
18394# The coded name of the library, if different from the real name.
18395soname_spec=$lt_soname_spec
18396
18397# Commands used to build and install an old-style archive.
18398RANLIB=$lt_RANLIB
18399old_archive_cmds=$lt_old_archive_cmds_GCJ
18400old_postinstall_cmds=$lt_old_postinstall_cmds
18401old_postuninstall_cmds=$lt_old_postuninstall_cmds
18402
18403# Create an old-style archive from a shared archive.
18404old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18405
18406# Create a temporary old-style archive to link instead of a shared archive.
18407old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18408
18409# Commands used to build and install a shared archive.
18410archive_cmds=$lt_archive_cmds_GCJ
18411archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18412postinstall_cmds=$lt_postinstall_cmds
18413postuninstall_cmds=$lt_postuninstall_cmds
18414
18415# Commands used to build a loadable module (assumed same as above if empty)
18416module_cmds=$lt_module_cmds_GCJ
18417module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18418
18419# Commands to strip libraries.
18420old_striplib=$lt_old_striplib
18421striplib=$lt_striplib
18422
18423# Dependencies to place before the objects being linked to create a
18424# shared library.
18425predep_objects=$lt_predep_objects_GCJ
18426
18427# Dependencies to place after the objects being linked to create a
18428# shared library.
18429postdep_objects=$lt_postdep_objects_GCJ
18430
18431# Dependencies to place before the objects being linked to create a
18432# shared library.
18433predeps=$lt_predeps_GCJ
18434
18435# Dependencies to place after the objects being linked to create a
18436# shared library.
18437postdeps=$lt_postdeps_GCJ
18438
18439# The library search path used internally by the compiler when linking
18440# a shared library.
18441compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18442
18443# Method to check whether dependent libraries are shared objects.
18444deplibs_check_method=$lt_deplibs_check_method
18445
18446# Command to use when deplibs_check_method == file_magic.
18447file_magic_cmd=$lt_file_magic_cmd
18448
18449# Flag that allows shared libraries with undefined symbols to be built.
18450allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18451
18452# Flag that forces no undefined symbols.
18453no_undefined_flag=$lt_no_undefined_flag_GCJ
18454
18455# Commands used to finish a libtool library installation in a directory.
18456finish_cmds=$lt_finish_cmds
18457
18458# Same as above, but a single script fragment to be evaled but not shown.
18459finish_eval=$lt_finish_eval
18460
18461# Take the output of nm and produce a listing of raw symbols and C names.
18462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18463
18464# Transform the output of nm in a proper C declaration
18465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18466
18467# Transform the output of nm in a C name address pair
18468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18469
18470# This is the shared library runtime path variable.
18471runpath_var=$runpath_var
18472
18473# This is the shared library path variable.
18474shlibpath_var=$shlibpath_var
18475
18476# Is shlibpath searched before the hard-coded library search path?
18477shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18478
18479# How to hardcode a shared library path into an executable.
18480hardcode_action=$hardcode_action_GCJ
18481
18482# Whether we should hardcode library paths into libraries.
18483hardcode_into_libs=$hardcode_into_libs
18484
18485# Flag to hardcode \$libdir into a binary during linking.
18486# This must work even if \$libdir does not exist.
18487hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18488
18489# If ld is used when linking, flag to hardcode \$libdir into
18490# a binary during linking. This must work even if \$libdir does
18491# not exist.
18492hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18493
18494# Whether we need a single -rpath flag with a separated argument.
18495hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18496
18497# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18498# resulting binary.
18499hardcode_direct=$hardcode_direct_GCJ
18500
18501# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18502# resulting binary.
18503hardcode_minus_L=$hardcode_minus_L_GCJ
18504
18505# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18506# the resulting binary.
18507hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18508
18509# Set to yes if building a shared library automatically hardcodes DIR into the library
18510# and all subsequent libraries and executables linked against it.
18511hardcode_automatic=$hardcode_automatic_GCJ
18512
18513# Variables whose values should be saved in libtool wrapper scripts and
18514# restored at relink time.
18515variables_saved_for_relink="$variables_saved_for_relink"
18516
18517# Whether libtool must link a program against all its dependency libraries.
18518link_all_deplibs=$link_all_deplibs_GCJ
18519
18520# Compile-time system search path for libraries
18521sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18522
18523# Run-time system search path for libraries
18524sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18525
18526# Fix the shell variable \$srcfile for the compiler.
18527fix_srcfile_path="$fix_srcfile_path_GCJ"
18528
18529# Set to yes if exported symbols are required.
18530always_export_symbols=$always_export_symbols_GCJ
18531
18532# The commands to list exported symbols.
18533export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18534
18535# The commands to extract the exported symbol list from a shared archive.
18536extract_expsyms_cmds=$lt_extract_expsyms_cmds
18537
18538# Symbols that should not be listed in the preloaded symbols.
18539exclude_expsyms=$lt_exclude_expsyms_GCJ
18540
18541# Symbols that must always be exported.
18542include_expsyms=$lt_include_expsyms_GCJ
18543
18544# ### END LIBTOOL TAG CONFIG: $tagname
18545
18546__EOF__
18547
18548
18549else
18550  # If there is no Makefile yet, we rely on a make rule to execute
18551  # `config.status --recheck' to rerun these tests and create the
18552  # libtool script then.
18553  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18554  if test -f "$ltmain_in"; then
18555    test -f Makefile && make "$ltmain"
18556  fi
18557fi
18558
18559
18560ac_ext=c
18561ac_cpp='$CPP $CPPFLAGS'
18562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18564ac_compiler_gnu=$ac_cv_c_compiler_gnu
18565
18566CC="$lt_save_CC"
18567
18568        else
18569          tagname=""
18570        fi
18571        ;;
18572
18573      RC)
18574
18575
18576
18577# Source file extension for RC test sources.
18578ac_ext=rc
18579
18580# Object file extension for compiled RC test sources.
18581objext=o
18582objext_RC=$objext
18583
18584# Code to be used in simple compile tests
18585lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18586
18587# Code to be used in simple link tests
18588lt_simple_link_test_code="$lt_simple_compile_test_code"
18589
18590# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18591
18592# If no C compiler was specified, use CC.
18593LTCC=${LTCC-"$CC"}
18594
18595# Allow CC to be a program name with arguments.
18596compiler=$CC
18597
18598
18599# Allow CC to be a program name with arguments.
18600lt_save_CC="$CC"
18601CC=${RC-"windres"}
18602compiler=$CC
18603compiler_RC=$CC
18604lt_cv_prog_compiler_c_o_RC=yes
18605
18606# The else clause should only fire when bootstrapping the
18607# libtool distribution, otherwise you forgot to ship ltmain.sh
18608# with your package, and you will get complaints that there are
18609# no rules to generate ltmain.sh.
18610if test -f "$ltmain"; then
18611  # See if we are running on zsh, and set the options which allow our commands through
18612  # without removal of \ escapes.
18613  if test -n "${ZSH_VERSION+set}" ; then
18614    setopt NO_GLOB_SUBST
18615  fi
18616  # Now quote all the things that may contain metacharacters while being
18617  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18618  # variables and quote the copies for generation of the libtool script.
18619  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18620    SED SHELL STRIP \
18621    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18622    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18623    deplibs_check_method reload_flag reload_cmds need_locks \
18624    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18625    lt_cv_sys_global_symbol_to_c_name_address \
18626    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18627    old_postinstall_cmds old_postuninstall_cmds \
18628    compiler_RC \
18629    CC_RC \
18630    LD_RC \
18631    lt_prog_compiler_wl_RC \
18632    lt_prog_compiler_pic_RC \
18633    lt_prog_compiler_static_RC \
18634    lt_prog_compiler_no_builtin_flag_RC \
18635    export_dynamic_flag_spec_RC \
18636    thread_safe_flag_spec_RC \
18637    whole_archive_flag_spec_RC \
18638    enable_shared_with_static_runtimes_RC \
18639    old_archive_cmds_RC \
18640    old_archive_from_new_cmds_RC \
18641    predep_objects_RC \
18642    postdep_objects_RC \
18643    predeps_RC \
18644    postdeps_RC \
18645    compiler_lib_search_path_RC \
18646    archive_cmds_RC \
18647    archive_expsym_cmds_RC \
18648    postinstall_cmds_RC \
18649    postuninstall_cmds_RC \
18650    old_archive_from_expsyms_cmds_RC \
18651    allow_undefined_flag_RC \
18652    no_undefined_flag_RC \
18653    export_symbols_cmds_RC \
18654    hardcode_libdir_flag_spec_RC \
18655    hardcode_libdir_flag_spec_ld_RC \
18656    hardcode_libdir_separator_RC \
18657    hardcode_automatic_RC \
18658    module_cmds_RC \
18659    module_expsym_cmds_RC \
18660    lt_cv_prog_compiler_c_o_RC \
18661    exclude_expsyms_RC \
18662    include_expsyms_RC; do
18663
18664    case $var in
18665    old_archive_cmds_RC | \
18666    old_archive_from_new_cmds_RC | \
18667    archive_cmds_RC | \
18668    archive_expsym_cmds_RC | \
18669    module_cmds_RC | \
18670    module_expsym_cmds_RC | \
18671    old_archive_from_expsyms_cmds_RC | \
18672    export_symbols_cmds_RC | \
18673    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18674    postinstall_cmds | postuninstall_cmds | \
18675    old_postinstall_cmds | old_postuninstall_cmds | \
18676    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18677      # Double-quote double-evaled strings.
18678      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18679      ;;
18680    *)
18681      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18682      ;;
18683    esac
18684  done
18685
18686  case $lt_echo in
18687  *'\$0 --fallback-echo"')
18688    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18689    ;;
18690  esac
18691
18692cfgfile="$ofile"
18693
18694  cat <<__EOF__ >> "$cfgfile"
18695# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18696
18697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18698
18699# Shell to use when invoking shell scripts.
18700SHELL=$lt_SHELL
18701
18702# Whether or not to build shared libraries.
18703build_libtool_libs=$enable_shared
18704
18705# Whether or not to build static libraries.
18706build_old_libs=$enable_static
18707
18708# Whether or not to add -lc for building shared libraries.
18709build_libtool_need_lc=$archive_cmds_need_lc_RC
18710
18711# Whether or not to disallow shared libs when runtime libs are static
18712allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18713
18714# Whether or not to optimize for fast installation.
18715fast_install=$enable_fast_install
18716
18717# The host system.
18718host_alias=$host_alias
18719host=$host
18720
18721# An echo program that does not interpret backslashes.
18722echo=$lt_echo
18723
18724# The archiver.
18725AR=$lt_AR
18726AR_FLAGS=$lt_AR_FLAGS
18727
18728# A C compiler.
18729LTCC=$lt_LTCC
18730
18731# A language-specific compiler.
18732CC=$lt_compiler_RC
18733
18734# Is the compiler the GNU C compiler?
18735with_gcc=$GCC_RC
18736
18737# An ERE matcher.
18738EGREP=$lt_EGREP
18739
18740# The linker used to build libraries.
18741LD=$lt_LD_RC
18742
18743# Whether we need hard or soft links.
18744LN_S=$lt_LN_S
18745
18746# A BSD-compatible nm program.
18747NM=$lt_NM
18748
18749# A symbol stripping program
18750STRIP=$lt_STRIP
18751
18752# Used to examine libraries when file_magic_cmd begins "file"
18753MAGIC_CMD=$MAGIC_CMD
18754
18755# Used on cygwin: DLL creation program.
18756DLLTOOL="$DLLTOOL"
18757
18758# Used on cygwin: object dumper.
18759OBJDUMP="$OBJDUMP"
18760
18761# Used on cygwin: assembler.
18762AS="$AS"
18763
18764# The name of the directory that contains temporary libtool files.
18765objdir=$objdir
18766
18767# How to create reloadable object files.
18768reload_flag=$lt_reload_flag
18769reload_cmds=$lt_reload_cmds
18770
18771# How to pass a linker flag through the compiler.
18772wl=$lt_lt_prog_compiler_wl_RC
18773
18774# Object file suffix (normally "o").
18775objext="$ac_objext"
18776
18777# Old archive suffix (normally "a").
18778libext="$libext"
18779
18780# Shared library suffix (normally ".so").
18781shrext_cmds='$shrext_cmds'
18782
18783# Executable file suffix (normally "").
18784exeext="$exeext"
18785
18786# Additional compiler flags for building library objects.
18787pic_flag=$lt_lt_prog_compiler_pic_RC
18788pic_mode=$pic_mode
18789
18790# What is the maximum length of a command?
18791max_cmd_len=$lt_cv_sys_max_cmd_len
18792
18793# Does compiler simultaneously support -c and -o options?
18794compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18795
18796# Must we lock files when doing compilation ?
18797need_locks=$lt_need_locks
18798
18799# Do we need the lib prefix for modules?
18800need_lib_prefix=$need_lib_prefix
18801
18802# Do we need a version for libraries?
18803need_version=$need_version
18804
18805# Whether dlopen is supported.
18806dlopen_support=$enable_dlopen
18807
18808# Whether dlopen of programs is supported.
18809dlopen_self=$enable_dlopen_self
18810
18811# Whether dlopen of statically linked programs is supported.
18812dlopen_self_static=$enable_dlopen_self_static
18813
18814# Compiler flag to prevent dynamic linking.
18815link_static_flag=$lt_lt_prog_compiler_static_RC
18816
18817# Compiler flag to turn off builtin functions.
18818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18819
18820# Compiler flag to allow reflexive dlopens.
18821export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18822
18823# Compiler flag to generate shared objects directly from archives.
18824whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18825
18826# Compiler flag to generate thread-safe objects.
18827thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18828
18829# Library versioning type.
18830version_type=$version_type
18831
18832# Format of library name prefix.
18833libname_spec=$lt_libname_spec
18834
18835# List of archive names.  First name is the real one, the rest are links.
18836# The last name is the one that the linker finds with -lNAME.
18837library_names_spec=$lt_library_names_spec
18838
18839# The coded name of the library, if different from the real name.
18840soname_spec=$lt_soname_spec
18841
18842# Commands used to build and install an old-style archive.
18843RANLIB=$lt_RANLIB
18844old_archive_cmds=$lt_old_archive_cmds_RC
18845old_postinstall_cmds=$lt_old_postinstall_cmds
18846old_postuninstall_cmds=$lt_old_postuninstall_cmds
18847
18848# Create an old-style archive from a shared archive.
18849old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18850
18851# Create a temporary old-style archive to link instead of a shared archive.
18852old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18853
18854# Commands used to build and install a shared archive.
18855archive_cmds=$lt_archive_cmds_RC
18856archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18857postinstall_cmds=$lt_postinstall_cmds
18858postuninstall_cmds=$lt_postuninstall_cmds
18859
18860# Commands used to build a loadable module (assumed same as above if empty)
18861module_cmds=$lt_module_cmds_RC
18862module_expsym_cmds=$lt_module_expsym_cmds_RC
18863
18864# Commands to strip libraries.
18865old_striplib=$lt_old_striplib
18866striplib=$lt_striplib
18867
18868# Dependencies to place before the objects being linked to create a
18869# shared library.
18870predep_objects=$lt_predep_objects_RC
18871
18872# Dependencies to place after the objects being linked to create a
18873# shared library.
18874postdep_objects=$lt_postdep_objects_RC
18875
18876# Dependencies to place before the objects being linked to create a
18877# shared library.
18878predeps=$lt_predeps_RC
18879
18880# Dependencies to place after the objects being linked to create a
18881# shared library.
18882postdeps=$lt_postdeps_RC
18883
18884# The library search path used internally by the compiler when linking
18885# a shared library.
18886compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18887
18888# Method to check whether dependent libraries are shared objects.
18889deplibs_check_method=$lt_deplibs_check_method
18890
18891# Command to use when deplibs_check_method == file_magic.
18892file_magic_cmd=$lt_file_magic_cmd
18893
18894# Flag that allows shared libraries with undefined symbols to be built.
18895allow_undefined_flag=$lt_allow_undefined_flag_RC
18896
18897# Flag that forces no undefined symbols.
18898no_undefined_flag=$lt_no_undefined_flag_RC
18899
18900# Commands used to finish a libtool library installation in a directory.
18901finish_cmds=$lt_finish_cmds
18902
18903# Same as above, but a single script fragment to be evaled but not shown.
18904finish_eval=$lt_finish_eval
18905
18906# Take the output of nm and produce a listing of raw symbols and C names.
18907global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18908
18909# Transform the output of nm in a proper C declaration
18910global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18911
18912# Transform the output of nm in a C name address pair
18913global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18914
18915# This is the shared library runtime path variable.
18916runpath_var=$runpath_var
18917
18918# This is the shared library path variable.
18919shlibpath_var=$shlibpath_var
18920
18921# Is shlibpath searched before the hard-coded library search path?
18922shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18923
18924# How to hardcode a shared library path into an executable.
18925hardcode_action=$hardcode_action_RC
18926
18927# Whether we should hardcode library paths into libraries.
18928hardcode_into_libs=$hardcode_into_libs
18929
18930# Flag to hardcode \$libdir into a binary during linking.
18931# This must work even if \$libdir does not exist.
18932hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18933
18934# If ld is used when linking, flag to hardcode \$libdir into
18935# a binary during linking. This must work even if \$libdir does
18936# not exist.
18937hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18938
18939# Whether we need a single -rpath flag with a separated argument.
18940hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18941
18942# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18943# resulting binary.
18944hardcode_direct=$hardcode_direct_RC
18945
18946# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18947# resulting binary.
18948hardcode_minus_L=$hardcode_minus_L_RC
18949
18950# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18951# the resulting binary.
18952hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18953
18954# Set to yes if building a shared library automatically hardcodes DIR into the library
18955# and all subsequent libraries and executables linked against it.
18956hardcode_automatic=$hardcode_automatic_RC
18957
18958# Variables whose values should be saved in libtool wrapper scripts and
18959# restored at relink time.
18960variables_saved_for_relink="$variables_saved_for_relink"
18961
18962# Whether libtool must link a program against all its dependency libraries.
18963link_all_deplibs=$link_all_deplibs_RC
18964
18965# Compile-time system search path for libraries
18966sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18967
18968# Run-time system search path for libraries
18969sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18970
18971# Fix the shell variable \$srcfile for the compiler.
18972fix_srcfile_path="$fix_srcfile_path_RC"
18973
18974# Set to yes if exported symbols are required.
18975always_export_symbols=$always_export_symbols_RC
18976
18977# The commands to list exported symbols.
18978export_symbols_cmds=$lt_export_symbols_cmds_RC
18979
18980# The commands to extract the exported symbol list from a shared archive.
18981extract_expsyms_cmds=$lt_extract_expsyms_cmds
18982
18983# Symbols that should not be listed in the preloaded symbols.
18984exclude_expsyms=$lt_exclude_expsyms_RC
18985
18986# Symbols that must always be exported.
18987include_expsyms=$lt_include_expsyms_RC
18988
18989# ### END LIBTOOL TAG CONFIG: $tagname
18990
18991__EOF__
18992
18993
18994else
18995  # If there is no Makefile yet, we rely on a make rule to execute
18996  # `config.status --recheck' to rerun these tests and create the
18997  # libtool script then.
18998  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18999  if test -f "$ltmain_in"; then
19000    test -f Makefile && make "$ltmain"
19001  fi
19002fi
19003
19004
19005ac_ext=c
19006ac_cpp='$CPP $CPPFLAGS'
19007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19009ac_compiler_gnu=$ac_cv_c_compiler_gnu
19010
19011CC="$lt_save_CC"
19012
19013        ;;
19014
19015      *)
19016        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19017echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19018   { (exit 1); exit 1; }; }
19019        ;;
19020      esac
19021
19022      # Append the new tag name to the list of available tags.
19023      if test -n "$tagname" ; then
19024      available_tags="$available_tags $tagname"
19025    fi
19026    fi
19027  done
19028  IFS="$lt_save_ifs"
19029
19030  # Now substitute the updated list of available tags.
19031  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19032    mv "${ofile}T" "$ofile"
19033    chmod +x "$ofile"
19034  else
19035    rm -f "${ofile}T"
19036    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19037echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19038   { (exit 1); exit 1; }; }
19039  fi
19040fi
19041
19042
19043
19044# This can be used to rebuild libtool when needed
19045LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19046
19047# Always use our own libtool.
19048LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19049
19050# Prevent multiple expansion
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072          ac_config_headers="$ac_config_headers config.h"
19073
19074
19075
19076cflags_save="$CFLAGS"
19077if test -z "$GCC"; then
19078        case $host in
19079        *-*-irix*)
19080                DEBUG="-g -signed"
19081                CFLAGS="-O2 -w -signed"
19082                PROFILE="-p -g3 -O2 -signed"
19083                ;;
19084        sparc-sun-solaris*)
19085                DEBUG="-v -g"
19086                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
19087                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
19088                ;;
19089        *)
19090                DEBUG="-g"
19091                CFLAGS="-O"
19092                PROFILE="-g -p"
19093                ;;
19094        esac
19095else
19096        case $host in
19097        *-*-linux*)
19098                DEBUG="-g -Wall -fsigned-char"
19099                CFLAGS="-O20 -ffast-math -fsigned-char"
19100                PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
19101                ;;
19102        sparc-sun-*)
19103                DEBUG="-g -Wall -fsigned-char -mv8"
19104                CFLAGS="-O20 -ffast-math -fsigned-char -mv8"
19105                PROFILE="-pg -g -O20 -fsigned-char -mv8"
19106                ;;
19107        *-*-darwin*)
19108                DEBUG="-fno-common -g -Wall -fsigned-char"
19109                CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
19110                PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
19111                ;;
19112        *)
19113                DEBUG="-g -Wall -fsigned-char"
19114                CFLAGS="-O20 -fsigned-char"
19115                PROFILE="-O20 -g -pg -fsigned-char"
19116                ;;
19117        esac
19118fi
19119CFLAGS="$CFLAGS $cflags_save"
19120DEBUG="$DEBUG $cflags_save"
19121PROFILE="$PROFILE $cflags_save"
19122
19123
19124
19125echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19126echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19127if test "${ac_cv_header_stdc+set}" = set; then
19128  echo $ECHO_N "(cached) $ECHO_C" >&6
19129else
19130  cat >conftest.$ac_ext <<_ACEOF
19131/* confdefs.h.  */
19132_ACEOF
19133cat confdefs.h >>conftest.$ac_ext
19134cat >>conftest.$ac_ext <<_ACEOF
19135/* end confdefs.h.  */
19136#include <stdlib.h>
19137#include <stdarg.h>
19138#include <string.h>
19139#include <float.h>
19140
19141int
19142main ()
19143{
19144
19145  ;
19146  return 0;
19147}
19148_ACEOF
19149rm -f conftest.$ac_objext
19150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19151  (eval $ac_compile) 2>conftest.er1
19152  ac_status=$?
19153  grep -v '^ *+' conftest.er1 >conftest.err
19154  rm -f conftest.er1
19155  cat conftest.err >&5
19156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157  (exit $ac_status); } &&
19158         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160  (eval $ac_try) 2>&5
19161  ac_status=$?
19162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163  (exit $ac_status); }; } &&
19164         { ac_try='test -s conftest.$ac_objext'
19165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166  (eval $ac_try) 2>&5
19167  ac_status=$?
19168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169  (exit $ac_status); }; }; then
19170  ac_cv_header_stdc=yes
19171else
19172  echo "$as_me: failed program was:" >&5
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
19175ac_cv_header_stdc=no
19176fi
19177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19178
19179if test $ac_cv_header_stdc = yes; then
19180  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19181  cat >conftest.$ac_ext <<_ACEOF
19182/* confdefs.h.  */
19183_ACEOF
19184cat confdefs.h >>conftest.$ac_ext
19185cat >>conftest.$ac_ext <<_ACEOF
19186/* end confdefs.h.  */
19187#include <string.h>
19188
19189_ACEOF
19190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19191  $EGREP "memchr" >/dev/null 2>&1; then
19192  :
19193else
19194  ac_cv_header_stdc=no
19195fi
19196rm -f conftest*
19197
19198fi
19199
19200if test $ac_cv_header_stdc = yes; then
19201  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19202  cat >conftest.$ac_ext <<_ACEOF
19203/* confdefs.h.  */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h.  */
19208#include <stdlib.h>
19209
19210_ACEOF
19211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19212  $EGREP "free" >/dev/null 2>&1; then
19213  :
19214else
19215  ac_cv_header_stdc=no
19216fi
19217rm -f conftest*
19218
19219fi
19220
19221if test $ac_cv_header_stdc = yes; then
19222  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19223  if test "$cross_compiling" = yes; then
19224  :
19225else
19226  cat >conftest.$ac_ext <<_ACEOF
19227/* confdefs.h.  */
19228_ACEOF
19229cat confdefs.h >>conftest.$ac_ext
19230cat >>conftest.$ac_ext <<_ACEOF
19231/* end confdefs.h.  */
19232#include <ctype.h>
19233#if ((' ' & 0x0FF) == 0x020)
19234# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19235# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19236#else
19237# define ISLOWER(c) \
19238                   (('a' <= (c) && (c) <= 'i') \
19239                     || ('j' <= (c) && (c) <= 'r') \
19240                     || ('s' <= (c) && (c) <= 'z'))
19241# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19242#endif
19243
19244#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19245int
19246main ()
19247{
19248  int i;
19249  for (i = 0; i < 256; i++)
19250    if (XOR (islower (i), ISLOWER (i))
19251        || toupper (i) != TOUPPER (i))
19252      exit(2);
19253  exit (0);
19254}
19255_ACEOF
19256rm -f conftest$ac_exeext
19257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258  (eval $ac_link) 2>&5
19259  ac_status=$?
19260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263  (eval $ac_try) 2>&5
19264  ac_status=$?
19265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266  (exit $ac_status); }; }; then
19267  :
19268else
19269  echo "$as_me: program exited with status $ac_status" >&5
19270echo "$as_me: failed program was:" >&5
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
19273( exit $ac_status )
19274ac_cv_header_stdc=no
19275fi
19276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19277fi
19278fi
19279fi
19280echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19281echo "${ECHO_T}$ac_cv_header_stdc" >&6
19282if test $ac_cv_header_stdc = yes; then
19283
19284cat >>confdefs.h <<\_ACEOF
19285#define STDC_HEADERS 1
19286_ACEOF
19287
19288fi
19289
19290
19291echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19292echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19293if test "${ac_cv_c_const+set}" = set; then
19294  echo $ECHO_N "(cached) $ECHO_C" >&6
19295else
19296  cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h.  */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h.  */
19302
19303int
19304main ()
19305{
19306/* FIXME: Include the comments suggested by Paul. */
19307#ifndef __cplusplus
19308  /* Ultrix mips cc rejects this.  */
19309  typedef int charset[2];
19310  const charset x;
19311  /* SunOS 4.1.1 cc rejects this.  */
19312  char const *const *ccp;
19313  char **p;
19314  /* NEC SVR4.0.2 mips cc rejects this.  */
19315  struct point {int x, y;};
19316  static struct point const zero = {0,0};
19317  /* AIX XL C 1.02.0.0 rejects this.
19318     It does not let you subtract one const X* pointer from another in
19319     an arm of an if-expression whose if-part is not a constant
19320     expression */
19321  const char *g = "string";
19322  ccp = &g + (g ? g-g : 0);
19323  /* HPUX 7.0 cc rejects these. */
19324  ++ccp;
19325  p = (char**) ccp;
19326  ccp = (char const *const *) p;
19327  { /* SCO 3.2v4 cc rejects this.  */
19328    char *t;
19329    char const *s = 0 ? (char *) 0 : (char const *) 0;
19330
19331    *t++ = 0;
19332  }
19333  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19334    int x[] = {25, 17};
19335    const int *foo = &x[0];
19336    ++foo;
19337  }
19338  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19339    typedef const int *iptr;
19340    iptr p = 0;
19341    ++p;
19342  }
19343  { /* AIX XL C 1.02.0.0 rejects this saying
19344       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19345    struct s { int j; const int *ap[3]; };
19346    struct s *b; b->j = 5;
19347  }
19348  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19349    const int foo = 10;
19350  }
19351#endif
19352
19353  ;
19354  return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext
19358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359  (eval $ac_compile) 2>conftest.er1
19360  ac_status=$?
19361  grep -v '^ *+' conftest.er1 >conftest.err
19362  rm -f conftest.er1
19363  cat conftest.err >&5
19364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365  (exit $ac_status); } &&
19366         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368  (eval $ac_try) 2>&5
19369  ac_status=$?
19370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371  (exit $ac_status); }; } &&
19372         { ac_try='test -s conftest.$ac_objext'
19373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374  (eval $ac_try) 2>&5
19375  ac_status=$?
19376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377  (exit $ac_status); }; }; then
19378  ac_cv_c_const=yes
19379else
19380  echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_cv_c_const=no
19384fi
19385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386fi
19387echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19388echo "${ECHO_T}$ac_cv_c_const" >&6
19389if test $ac_cv_c_const = no; then
19390
19391cat >>confdefs.h <<\_ACEOF
19392#define const
19393_ACEOF
19394
19395fi
19396
19397
19398
19399echo "$as_me:$LINENO: checking for int16_t" >&5
19400echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
19401if test "${has_int16_t+set}" = set; then
19402  echo $ECHO_N "(cached) $ECHO_C" >&6
19403else
19404  if test "$cross_compiling" = yes; then
19405  has_int16_t=no
19406
19407else
19408  cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h.  */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h.  */
19414
19415#ifdef __BEOS__
19416#include <inttypes.h>
19417#endif
19418#include <sys/types.h>
19419int16_t foo;
19420int main() {return 0;}
19421
19422_ACEOF
19423rm -f conftest$ac_exeext
19424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19425  (eval $ac_link) 2>&5
19426  ac_status=$?
19427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430  (eval $ac_try) 2>&5
19431  ac_status=$?
19432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433  (exit $ac_status); }; }; then
19434  has_int16_t=yes
19435else
19436  echo "$as_me: program exited with status $ac_status" >&5
19437echo "$as_me: failed program was:" >&5
19438sed 's/^/| /' conftest.$ac_ext >&5
19439
19440( exit $ac_status )
19441has_int16_t=no
19442fi
19443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444fi
19445fi
19446
19447echo "$as_me:$LINENO: result: $has_int16_t" >&5
19448echo "${ECHO_T}$has_int16_t" >&6
19449
19450echo "$as_me:$LINENO: checking for int32_t" >&5
19451echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
19452if test "${has_int32_t+set}" = set; then
19453  echo $ECHO_N "(cached) $ECHO_C" >&6
19454else
19455  if test "$cross_compiling" = yes; then
19456  has_int32_t=no
19457
19458else
19459  cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h.  */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h.  */
19465
19466#ifdef __BEOS__
19467#include <inttypes.h>
19468#endif
19469#include <sys/types.h>
19470int32_t foo;
19471int main() {return 0;}
19472
19473_ACEOF
19474rm -f conftest$ac_exeext
19475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476  (eval $ac_link) 2>&5
19477  ac_status=$?
19478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481  (eval $ac_try) 2>&5
19482  ac_status=$?
19483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484  (exit $ac_status); }; }; then
19485  has_int32_t=yes
19486else
19487  echo "$as_me: program exited with status $ac_status" >&5
19488echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491( exit $ac_status )
19492has_int32_t=no
19493fi
19494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19495fi
19496fi
19497
19498echo "$as_me:$LINENO: result: $has_int32_t" >&5
19499echo "${ECHO_T}$has_int32_t" >&6
19500
19501echo "$as_me:$LINENO: checking for uint32_t" >&5
19502echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
19503if test "${has_uint32_t+set}" = set; then
19504  echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506  if test "$cross_compiling" = yes; then
19507  has_uint32_t=no
19508
19509else
19510  cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h.  */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h.  */
19516
19517#ifdef __BEOS__
19518#include <inttypes.h>
19519#endif
19520#include <sys/types.h>
19521uint32_t foo;
19522int main() {return 0;}
19523
19524_ACEOF
19525rm -f conftest$ac_exeext
19526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527  (eval $ac_link) 2>&5
19528  ac_status=$?
19529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532  (eval $ac_try) 2>&5
19533  ac_status=$?
19534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535  (exit $ac_status); }; }; then
19536  has_uint32_t=yes
19537else
19538  echo "$as_me: program exited with status $ac_status" >&5
19539echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542( exit $ac_status )
19543has_uint32_t=no
19544fi
19545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19546fi
19547fi
19548
19549echo "$as_me:$LINENO: result: $has_uint32_t" >&5
19550echo "${ECHO_T}$has_uint32_t" >&6
19551
19552echo "$as_me:$LINENO: checking for uint16_t" >&5
19553echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
19554if test "${has_uint16_t+set}" = set; then
19555  echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557  if test "$cross_compiling" = yes; then
19558  has_uint16_t=no
19559
19560else
19561  cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h.  */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h.  */
19567
19568#ifdef __BEOS__
19569#include <inttypes.h>
19570#endif
19571#include <sys/types.h>
19572uint16_t foo;
19573int main() {return 0;}
19574
19575_ACEOF
19576rm -f conftest$ac_exeext
19577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578  (eval $ac_link) 2>&5
19579  ac_status=$?
19580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583  (eval $ac_try) 2>&5
19584  ac_status=$?
19585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586  (exit $ac_status); }; }; then
19587  has_uint16_t=yes
19588else
19589  echo "$as_me: program exited with status $ac_status" >&5
19590echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593( exit $ac_status )
19594has_uint16_t=no
19595fi
19596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19597fi
19598fi
19599
19600echo "$as_me:$LINENO: result: $has_uint16_t" >&5
19601echo "${ECHO_T}$has_uint16_t" >&6
19602
19603echo "$as_me:$LINENO: checking for u_int32_t" >&5
19604echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
19605if test "${has_u_int32_t+set}" = set; then
19606  echo $ECHO_N "(cached) $ECHO_C" >&6
19607else
19608  if test "$cross_compiling" = yes; then
19609  has_u_int32_t=no
19610
19611else
19612  cat >conftest.$ac_ext <<_ACEOF
19613/* confdefs.h.  */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h.  */
19618
19619#ifdef __BEOS__
19620#include <inttypes.h>
19621#endif
19622#include <sys/types.h>
19623u_int32_t foo;
19624int main() {return 0;}
19625
19626_ACEOF
19627rm -f conftest$ac_exeext
19628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19629  (eval $ac_link) 2>&5
19630  ac_status=$?
19631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634  (eval $ac_try) 2>&5
19635  ac_status=$?
19636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637  (exit $ac_status); }; }; then
19638  has_u_int32_t=yes
19639else
19640  echo "$as_me: program exited with status $ac_status" >&5
19641echo "$as_me: failed program was:" >&5
19642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644( exit $ac_status )
19645has_u_int32_t=no
19646fi
19647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19648fi
19649fi
19650
19651echo "$as_me:$LINENO: result: $has_u_int32_t" >&5
19652echo "${ECHO_T}$has_u_int32_t" >&6
19653
19654echo "$as_me:$LINENO: checking for u_int16_t" >&5
19655echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
19656if test "${has_u_int16_t+set}" = set; then
19657  echo $ECHO_N "(cached) $ECHO_C" >&6
19658else
19659  if test "$cross_compiling" = yes; then
19660  has_u_int16_t=no
19661
19662else
19663  cat >conftest.$ac_ext <<_ACEOF
19664/* confdefs.h.  */
19665_ACEOF
19666cat confdefs.h >>conftest.$ac_ext
19667cat >>conftest.$ac_ext <<_ACEOF
19668/* end confdefs.h.  */
19669
19670#ifdef __BEOS__
19671#include <inttypes.h>
19672#endif
19673#include <sys/types.h>
19674u_int16_t foo;
19675int main() {return 0;}
19676
19677_ACEOF
19678rm -f conftest$ac_exeext
19679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19680  (eval $ac_link) 2>&5
19681  ac_status=$?
19682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685  (eval $ac_try) 2>&5
19686  ac_status=$?
19687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688  (exit $ac_status); }; }; then
19689  has_u_int16_t=yes
19690else
19691  echo "$as_me: program exited with status $ac_status" >&5
19692echo "$as_me: failed program was:" >&5
19693sed 's/^/| /' conftest.$ac_ext >&5
19694
19695( exit $ac_status )
19696has_u_int16_t=no
19697fi
19698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19699fi
19700fi
19701
19702echo "$as_me:$LINENO: result: $has_u_int16_t" >&5
19703echo "${ECHO_T}$has_u_int16_t" >&6
19704
19705echo "$as_me:$LINENO: checking for int64_t" >&5
19706echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19707if test "${has_int64_t+set}" = set; then
19708  echo $ECHO_N "(cached) $ECHO_C" >&6
19709else
19710  if test "$cross_compiling" = yes; then
19711  has_int64_t=no
19712
19713else
19714  cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h.  */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h.  */
19720
19721#ifdef __BEOS__
19722#include <inttypes.h>
19723#endif
19724#include <sys/types.h>
19725int64_t foo;
19726int main() {return 0;}
19727
19728_ACEOF
19729rm -f conftest$ac_exeext
19730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731  (eval $ac_link) 2>&5
19732  ac_status=$?
19733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736  (eval $ac_try) 2>&5
19737  ac_status=$?
19738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739  (exit $ac_status); }; }; then
19740  has_int64_t=yes
19741else
19742  echo "$as_me: program exited with status $ac_status" >&5
19743echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746( exit $ac_status )
19747has_int64_t=no
19748fi
19749rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19750fi
19751fi
19752
19753echo "$as_me:$LINENO: result: $has_int64_t" >&5
19754echo "${ECHO_T}$has_int64_t" >&6
19755
19756echo "$as_me:$LINENO: checking for short" >&5
19757echo $ECHO_N "checking for short... $ECHO_C" >&6
19758if test "${ac_cv_type_short+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761  cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h.  */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h.  */
19767$ac_includes_default
19768int
19769main ()
19770{
19771if ((short *) 0)
19772  return 0;
19773if (sizeof (short))
19774  return 0;
19775  ;
19776  return 0;
19777}
19778_ACEOF
19779rm -f conftest.$ac_objext
19780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781  (eval $ac_compile) 2>conftest.er1
19782  ac_status=$?
19783  grep -v '^ *+' conftest.er1 >conftest.err
19784  rm -f conftest.er1
19785  cat conftest.err >&5
19786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787  (exit $ac_status); } &&
19788         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790  (eval $ac_try) 2>&5
19791  ac_status=$?
19792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793  (exit $ac_status); }; } &&
19794         { ac_try='test -s conftest.$ac_objext'
19795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796  (eval $ac_try) 2>&5
19797  ac_status=$?
19798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799  (exit $ac_status); }; }; then
19800  ac_cv_type_short=yes
19801else
19802  echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
19805ac_cv_type_short=no
19806fi
19807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19808fi
19809echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19810echo "${ECHO_T}$ac_cv_type_short" >&6
19811
19812echo "$as_me:$LINENO: checking size of short" >&5
19813echo $ECHO_N "checking size of short... $ECHO_C" >&6
19814if test "${ac_cv_sizeof_short+set}" = set; then
19815  echo $ECHO_N "(cached) $ECHO_C" >&6
19816else
19817  if test "$ac_cv_type_short" = yes; then
19818  # The cast to unsigned long works around a bug in the HP C Compiler
19819  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19820  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19821  # This bug is HP SR number 8606223364.
19822  if test "$cross_compiling" = yes; then
19823  # Depending upon the size, compute the lo and hi bounds.
19824cat >conftest.$ac_ext <<_ACEOF
19825/* confdefs.h.  */
19826_ACEOF
19827cat confdefs.h >>conftest.$ac_ext
19828cat >>conftest.$ac_ext <<_ACEOF
19829/* end confdefs.h.  */
19830$ac_includes_default
19831int
19832main ()
19833{
19834static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
19835test_array [0] = 0
19836
19837  ;
19838  return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843  (eval $ac_compile) 2>conftest.er1
19844  ac_status=$?
19845  grep -v '^ *+' conftest.er1 >conftest.err
19846  rm -f conftest.er1
19847  cat conftest.err >&5
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); } &&
19850         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852  (eval $ac_try) 2>&5
19853  ac_status=$?
19854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855  (exit $ac_status); }; } &&
19856         { ac_try='test -s conftest.$ac_objext'
19857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858  (eval $ac_try) 2>&5
19859  ac_status=$?
19860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861  (exit $ac_status); }; }; then
19862  ac_lo=0 ac_mid=0
19863  while :; do
19864    cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h.  */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h.  */
19870$ac_includes_default
19871int
19872main ()
19873{
19874static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
19875test_array [0] = 0
19876
19877  ;
19878  return 0;
19879}
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883  (eval $ac_compile) 2>conftest.er1
19884  ac_status=$?
19885  grep -v '^ *+' conftest.er1 >conftest.err
19886  rm -f conftest.er1
19887  cat conftest.err >&5
19888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889  (exit $ac_status); } &&
19890         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892  (eval $ac_try) 2>&5
19893  ac_status=$?
19894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895  (exit $ac_status); }; } &&
19896         { ac_try='test -s conftest.$ac_objext'
19897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898  (eval $ac_try) 2>&5
19899  ac_status=$?
19900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901  (exit $ac_status); }; }; then
19902  ac_hi=$ac_mid; break
19903else
19904  echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907ac_lo=`expr $ac_mid + 1`
19908                    if test $ac_lo -le $ac_mid; then
19909                      ac_lo= ac_hi=
19910                      break
19911                    fi
19912                    ac_mid=`expr 2 '*' $ac_mid + 1`
19913fi
19914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19915  done
19916else
19917  echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h.  */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h.  */
19926$ac_includes_default
19927int
19928main ()
19929{
19930static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
19931test_array [0] = 0
19932
19933  ;
19934  return 0;
19935}
19936_ACEOF
19937rm -f conftest.$ac_objext
19938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939  (eval $ac_compile) 2>conftest.er1
19940  ac_status=$?
19941  grep -v '^ *+' conftest.er1 >conftest.err
19942  rm -f conftest.er1
19943  cat conftest.err >&5
19944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945  (exit $ac_status); } &&
19946         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948  (eval $ac_try) 2>&5
19949  ac_status=$?
19950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951  (exit $ac_status); }; } &&
19952         { ac_try='test -s conftest.$ac_objext'
19953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954  (eval $ac_try) 2>&5
19955  ac_status=$?
19956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957  (exit $ac_status); }; }; then
19958  ac_hi=-1 ac_mid=-1
19959  while :; do
19960    cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h.  */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h.  */
19966$ac_includes_default
19967int
19968main ()
19969{
19970static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
19971test_array [0] = 0
19972
19973  ;
19974  return 0;
19975}
19976_ACEOF
19977rm -f conftest.$ac_objext
19978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979  (eval $ac_compile) 2>conftest.er1
19980  ac_status=$?
19981  grep -v '^ *+' conftest.er1 >conftest.err
19982  rm -f conftest.er1
19983  cat conftest.err >&5
19984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985  (exit $ac_status); } &&
19986         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988  (eval $ac_try) 2>&5
19989  ac_status=$?
19990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991  (exit $ac_status); }; } &&
19992         { ac_try='test -s conftest.$ac_objext'
19993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994  (eval $ac_try) 2>&5
19995  ac_status=$?
19996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997  (exit $ac_status); }; }; then
19998  ac_lo=$ac_mid; break
19999else
20000  echo "$as_me: failed program was:" >&5
20001sed 's/^/| /' conftest.$ac_ext >&5
20002
20003ac_hi=`expr '(' $ac_mid ')' - 1`
20004                       if test $ac_mid -le $ac_hi; then
20005                         ac_lo= ac_hi=
20006                         break
20007                       fi
20008                       ac_mid=`expr 2 '*' $ac_mid`
20009fi
20010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20011  done
20012else
20013  echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016ac_lo= ac_hi=
20017fi
20018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20019fi
20020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20021# Binary search between lo and hi bounds.
20022while test "x$ac_lo" != "x$ac_hi"; do
20023  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20024  cat >conftest.$ac_ext <<_ACEOF
20025/* confdefs.h.  */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h.  */
20030$ac_includes_default
20031int
20032main ()
20033{
20034static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20035test_array [0] = 0
20036
20037  ;
20038  return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext
20042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043  (eval $ac_compile) 2>conftest.er1
20044  ac_status=$?
20045  grep -v '^ *+' conftest.er1 >conftest.err
20046  rm -f conftest.er1
20047  cat conftest.err >&5
20048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049  (exit $ac_status); } &&
20050         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052  (eval $ac_try) 2>&5
20053  ac_status=$?
20054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055  (exit $ac_status); }; } &&
20056         { ac_try='test -s conftest.$ac_objext'
20057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058  (eval $ac_try) 2>&5
20059  ac_status=$?
20060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061  (exit $ac_status); }; }; then
20062  ac_hi=$ac_mid
20063else
20064  echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067ac_lo=`expr '(' $ac_mid ')' + 1`
20068fi
20069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070done
20071case $ac_lo in
20072?*) ac_cv_sizeof_short=$ac_lo;;
20073'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20074See \`config.log' for more details." >&5
20075echo "$as_me: error: cannot compute sizeof (short), 77
20076See \`config.log' for more details." >&2;}
20077   { (exit 1); exit 1; }; } ;;
20078esac
20079else
20080  if test "$cross_compiling" = yes; then
20081  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20082echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20083   { (exit 1); exit 1; }; }
20084else
20085  cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h.  */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h.  */
20091$ac_includes_default
20092long longval () { return (long) (sizeof (short)); }
20093unsigned long ulongval () { return (long) (sizeof (short)); }
20094#include <stdio.h>
20095#include <stdlib.h>
20096int
20097main ()
20098{
20099
20100  FILE *f = fopen ("conftest.val", "w");
20101  if (! f)
20102    exit (1);
20103  if (((long) (sizeof (short))) < 0)
20104    {
20105      long i = longval ();
20106      if (i != ((long) (sizeof (short))))
20107        exit (1);
20108      fprintf (f, "%ld\n", i);
20109    }
20110  else
20111    {
20112      unsigned long i = ulongval ();
20113      if (i != ((long) (sizeof (short))))
20114        exit (1);
20115      fprintf (f, "%lu\n", i);
20116    }
20117  exit (ferror (f) || fclose (f) != 0);
20118
20119  ;
20120  return 0;
20121}
20122_ACEOF
20123rm -f conftest$ac_exeext
20124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125  (eval $ac_link) 2>&5
20126  ac_status=$?
20127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130  (eval $ac_try) 2>&5
20131  ac_status=$?
20132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133  (exit $ac_status); }; }; then
20134  ac_cv_sizeof_short=`cat conftest.val`
20135else
20136  echo "$as_me: program exited with status $ac_status" >&5
20137echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140( exit $ac_status )
20141{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20142See \`config.log' for more details." >&5
20143echo "$as_me: error: cannot compute sizeof (short), 77
20144See \`config.log' for more details." >&2;}
20145   { (exit 1); exit 1; }; }
20146fi
20147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20148fi
20149fi
20150rm -f conftest.val
20151else
20152  ac_cv_sizeof_short=0
20153fi
20154fi
20155echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20156echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20157cat >>confdefs.h <<_ACEOF
20158#define SIZEOF_SHORT $ac_cv_sizeof_short
20159_ACEOF
20160
20161
20162echo "$as_me:$LINENO: checking for int" >&5
20163echo $ECHO_N "checking for int... $ECHO_C" >&6
20164if test "${ac_cv_type_int+set}" = set; then
20165  echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167  cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h.  */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h.  */
20173$ac_includes_default
20174int
20175main ()
20176{
20177if ((int *) 0)
20178  return 0;
20179if (sizeof (int))
20180  return 0;
20181  ;
20182  return 0;
20183}
20184_ACEOF
20185rm -f conftest.$ac_objext
20186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20187  (eval $ac_compile) 2>conftest.er1
20188  ac_status=$?
20189  grep -v '^ *+' conftest.er1 >conftest.err
20190  rm -f conftest.er1
20191  cat conftest.err >&5
20192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193  (exit $ac_status); } &&
20194         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196  (eval $ac_try) 2>&5
20197  ac_status=$?
20198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199  (exit $ac_status); }; } &&
20200         { ac_try='test -s conftest.$ac_objext'
20201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202  (eval $ac_try) 2>&5
20203  ac_status=$?
20204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205  (exit $ac_status); }; }; then
20206  ac_cv_type_int=yes
20207else
20208  echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211ac_cv_type_int=no
20212fi
20213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20214fi
20215echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20216echo "${ECHO_T}$ac_cv_type_int" >&6
20217
20218echo "$as_me:$LINENO: checking size of int" >&5
20219echo $ECHO_N "checking size of int... $ECHO_C" >&6
20220if test "${ac_cv_sizeof_int+set}" = set; then
20221  echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223  if test "$ac_cv_type_int" = yes; then
20224  # The cast to unsigned long works around a bug in the HP C Compiler
20225  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20226  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20227  # This bug is HP SR number 8606223364.
20228  if test "$cross_compiling" = yes; then
20229  # Depending upon the size, compute the lo and hi bounds.
20230cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h.  */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h.  */
20236$ac_includes_default
20237int
20238main ()
20239{
20240static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20241test_array [0] = 0
20242
20243  ;
20244  return 0;
20245}
20246_ACEOF
20247rm -f conftest.$ac_objext
20248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20249  (eval $ac_compile) 2>conftest.er1
20250  ac_status=$?
20251  grep -v '^ *+' conftest.er1 >conftest.err
20252  rm -f conftest.er1
20253  cat conftest.err >&5
20254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255  (exit $ac_status); } &&
20256         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258  (eval $ac_try) 2>&5
20259  ac_status=$?
20260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261  (exit $ac_status); }; } &&
20262         { ac_try='test -s conftest.$ac_objext'
20263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264  (eval $ac_try) 2>&5
20265  ac_status=$?
20266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267  (exit $ac_status); }; }; then
20268  ac_lo=0 ac_mid=0
20269  while :; do
20270    cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h.  */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h.  */
20276$ac_includes_default
20277int
20278main ()
20279{
20280static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20281test_array [0] = 0
20282
20283  ;
20284  return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289  (eval $ac_compile) 2>conftest.er1
20290  ac_status=$?
20291  grep -v '^ *+' conftest.er1 >conftest.err
20292  rm -f conftest.er1
20293  cat conftest.err >&5
20294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295  (exit $ac_status); } &&
20296         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298  (eval $ac_try) 2>&5
20299  ac_status=$?
20300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301  (exit $ac_status); }; } &&
20302         { ac_try='test -s conftest.$ac_objext'
20303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304  (eval $ac_try) 2>&5
20305  ac_status=$?
20306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307  (exit $ac_status); }; }; then
20308  ac_hi=$ac_mid; break
20309else
20310  echo "$as_me: failed program was:" >&5
20311sed 's/^/| /' conftest.$ac_ext >&5
20312
20313ac_lo=`expr $ac_mid + 1`
20314                    if test $ac_lo -le $ac_mid; then
20315                      ac_lo= ac_hi=
20316                      break
20317                    fi
20318                    ac_mid=`expr 2 '*' $ac_mid + 1`
20319fi
20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321  done
20322else
20323  echo "$as_me: failed program was:" >&5
20324sed 's/^/| /' conftest.$ac_ext >&5
20325
20326cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h.  */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h.  */
20332$ac_includes_default
20333int
20334main ()
20335{
20336static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20337test_array [0] = 0
20338
20339  ;
20340  return 0;
20341}
20342_ACEOF
20343rm -f conftest.$ac_objext
20344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345  (eval $ac_compile) 2>conftest.er1
20346  ac_status=$?
20347  grep -v '^ *+' conftest.er1 >conftest.err
20348  rm -f conftest.er1
20349  cat conftest.err >&5
20350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351  (exit $ac_status); } &&
20352         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354  (eval $ac_try) 2>&5
20355  ac_status=$?
20356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357  (exit $ac_status); }; } &&
20358         { ac_try='test -s conftest.$ac_objext'
20359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360  (eval $ac_try) 2>&5
20361  ac_status=$?
20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); }; }; then
20364  ac_hi=-1 ac_mid=-1
20365  while :; do
20366    cat >conftest.$ac_ext <<_ACEOF
20367/* confdefs.h.  */
20368_ACEOF
20369cat confdefs.h >>conftest.$ac_ext
20370cat >>conftest.$ac_ext <<_ACEOF
20371/* end confdefs.h.  */
20372$ac_includes_default
20373int
20374main ()
20375{
20376static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20377test_array [0] = 0
20378
20379  ;
20380  return 0;
20381}
20382_ACEOF
20383rm -f conftest.$ac_objext
20384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385  (eval $ac_compile) 2>conftest.er1
20386  ac_status=$?
20387  grep -v '^ *+' conftest.er1 >conftest.err
20388  rm -f conftest.er1
20389  cat conftest.err >&5
20390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391  (exit $ac_status); } &&
20392         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394  (eval $ac_try) 2>&5
20395  ac_status=$?
20396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397  (exit $ac_status); }; } &&
20398         { ac_try='test -s conftest.$ac_objext'
20399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400  (eval $ac_try) 2>&5
20401  ac_status=$?
20402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403  (exit $ac_status); }; }; then
20404  ac_lo=$ac_mid; break
20405else
20406  echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409ac_hi=`expr '(' $ac_mid ')' - 1`
20410                       if test $ac_mid -le $ac_hi; then
20411                         ac_lo= ac_hi=
20412                         break
20413                       fi
20414                       ac_mid=`expr 2 '*' $ac_mid`
20415fi
20416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20417  done
20418else
20419  echo "$as_me: failed program was:" >&5
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
20422ac_lo= ac_hi=
20423fi
20424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425fi
20426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20427# Binary search between lo and hi bounds.
20428while test "x$ac_lo" != "x$ac_hi"; do
20429  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20430  cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h.  */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h.  */
20436$ac_includes_default
20437int
20438main ()
20439{
20440static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20441test_array [0] = 0
20442
20443  ;
20444  return 0;
20445}
20446_ACEOF
20447rm -f conftest.$ac_objext
20448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20449  (eval $ac_compile) 2>conftest.er1
20450  ac_status=$?
20451  grep -v '^ *+' conftest.er1 >conftest.err
20452  rm -f conftest.er1
20453  cat conftest.err >&5
20454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455  (exit $ac_status); } &&
20456         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458  (eval $ac_try) 2>&5
20459  ac_status=$?
20460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461  (exit $ac_status); }; } &&
20462         { ac_try='test -s conftest.$ac_objext'
20463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464  (eval $ac_try) 2>&5
20465  ac_status=$?
20466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467  (exit $ac_status); }; }; then
20468  ac_hi=$ac_mid
20469else
20470  echo "$as_me: failed program was:" >&5
20471sed 's/^/| /' conftest.$ac_ext >&5
20472
20473ac_lo=`expr '(' $ac_mid ')' + 1`
20474fi
20475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20476done
20477case $ac_lo in
20478?*) ac_cv_sizeof_int=$ac_lo;;
20479'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20480See \`config.log' for more details." >&5
20481echo "$as_me: error: cannot compute sizeof (int), 77
20482See \`config.log' for more details." >&2;}
20483   { (exit 1); exit 1; }; } ;;
20484esac
20485else
20486  if test "$cross_compiling" = yes; then
20487  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20488echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20489   { (exit 1); exit 1; }; }
20490else
20491  cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h.  */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h.  */
20497$ac_includes_default
20498long longval () { return (long) (sizeof (int)); }
20499unsigned long ulongval () { return (long) (sizeof (int)); }
20500#include <stdio.h>
20501#include <stdlib.h>
20502int
20503main ()
20504{
20505
20506  FILE *f = fopen ("conftest.val", "w");
20507  if (! f)
20508    exit (1);
20509  if (((long) (sizeof (int))) < 0)
20510    {
20511      long i = longval ();
20512      if (i != ((long) (sizeof (int))))
20513        exit (1);
20514      fprintf (f, "%ld\n", i);
20515    }
20516  else
20517    {
20518      unsigned long i = ulongval ();
20519      if (i != ((long) (sizeof (int))))
20520        exit (1);
20521      fprintf (f, "%lu\n", i);
20522    }
20523  exit (ferror (f) || fclose (f) != 0);
20524
20525  ;
20526  return 0;
20527}
20528_ACEOF
20529rm -f conftest$ac_exeext
20530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20531  (eval $ac_link) 2>&5
20532  ac_status=$?
20533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536  (eval $ac_try) 2>&5
20537  ac_status=$?
20538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539  (exit $ac_status); }; }; then
20540  ac_cv_sizeof_int=`cat conftest.val`
20541else
20542  echo "$as_me: program exited with status $ac_status" >&5
20543echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
20546( exit $ac_status )
20547{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20548See \`config.log' for more details." >&5
20549echo "$as_me: error: cannot compute sizeof (int), 77
20550See \`config.log' for more details." >&2;}
20551   { (exit 1); exit 1; }; }
20552fi
20553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20554fi
20555fi
20556rm -f conftest.val
20557else
20558  ac_cv_sizeof_int=0
20559fi
20560fi
20561echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20562echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20563cat >>confdefs.h <<_ACEOF
20564#define SIZEOF_INT $ac_cv_sizeof_int
20565_ACEOF
20566
20567
20568echo "$as_me:$LINENO: checking for long" >&5
20569echo $ECHO_N "checking for long... $ECHO_C" >&6
20570if test "${ac_cv_type_long+set}" = set; then
20571  echo $ECHO_N "(cached) $ECHO_C" >&6
20572else
20573  cat >conftest.$ac_ext <<_ACEOF
20574/* confdefs.h.  */
20575_ACEOF
20576cat confdefs.h >>conftest.$ac_ext
20577cat >>conftest.$ac_ext <<_ACEOF
20578/* end confdefs.h.  */
20579$ac_includes_default
20580int
20581main ()
20582{
20583if ((long *) 0)
20584  return 0;
20585if (sizeof (long))
20586  return 0;
20587  ;
20588  return 0;
20589}
20590_ACEOF
20591rm -f conftest.$ac_objext
20592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20593  (eval $ac_compile) 2>conftest.er1
20594  ac_status=$?
20595  grep -v '^ *+' conftest.er1 >conftest.err
20596  rm -f conftest.er1
20597  cat conftest.err >&5
20598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599  (exit $ac_status); } &&
20600         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602  (eval $ac_try) 2>&5
20603  ac_status=$?
20604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605  (exit $ac_status); }; } &&
20606         { ac_try='test -s conftest.$ac_objext'
20607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608  (eval $ac_try) 2>&5
20609  ac_status=$?
20610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611  (exit $ac_status); }; }; then
20612  ac_cv_type_long=yes
20613else
20614  echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
20617ac_cv_type_long=no
20618fi
20619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20620fi
20621echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20622echo "${ECHO_T}$ac_cv_type_long" >&6
20623
20624echo "$as_me:$LINENO: checking size of long" >&5
20625echo $ECHO_N "checking size of long... $ECHO_C" >&6
20626if test "${ac_cv_sizeof_long+set}" = set; then
20627  echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629  if test "$ac_cv_type_long" = yes; then
20630  # The cast to unsigned long works around a bug in the HP C Compiler
20631  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20632  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20633  # This bug is HP SR number 8606223364.
20634  if test "$cross_compiling" = yes; then
20635  # Depending upon the size, compute the lo and hi bounds.
20636cat >conftest.$ac_ext <<_ACEOF
20637/* confdefs.h.  */
20638_ACEOF
20639cat confdefs.h >>conftest.$ac_ext
20640cat >>conftest.$ac_ext <<_ACEOF
20641/* end confdefs.h.  */
20642$ac_includes_default
20643int
20644main ()
20645{
20646static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20647test_array [0] = 0
20648
20649  ;
20650  return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655  (eval $ac_compile) 2>conftest.er1
20656  ac_status=$?
20657  grep -v '^ *+' conftest.er1 >conftest.err
20658  rm -f conftest.er1
20659  cat conftest.err >&5
20660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661  (exit $ac_status); } &&
20662         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664  (eval $ac_try) 2>&5
20665  ac_status=$?
20666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667  (exit $ac_status); }; } &&
20668         { ac_try='test -s conftest.$ac_objext'
20669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670  (eval $ac_try) 2>&5
20671  ac_status=$?
20672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673  (exit $ac_status); }; }; then
20674  ac_lo=0 ac_mid=0
20675  while :; do
20676    cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h.  */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h.  */
20682$ac_includes_default
20683int
20684main ()
20685{
20686static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20687test_array [0] = 0
20688
20689  ;
20690  return 0;
20691}
20692_ACEOF
20693rm -f conftest.$ac_objext
20694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695  (eval $ac_compile) 2>conftest.er1
20696  ac_status=$?
20697  grep -v '^ *+' conftest.er1 >conftest.err
20698  rm -f conftest.er1
20699  cat conftest.err >&5
20700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701  (exit $ac_status); } &&
20702         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704  (eval $ac_try) 2>&5
20705  ac_status=$?
20706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707  (exit $ac_status); }; } &&
20708         { ac_try='test -s conftest.$ac_objext'
20709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710  (eval $ac_try) 2>&5
20711  ac_status=$?
20712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713  (exit $ac_status); }; }; then
20714  ac_hi=$ac_mid; break
20715else
20716  echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719ac_lo=`expr $ac_mid + 1`
20720                    if test $ac_lo -le $ac_mid; then
20721                      ac_lo= ac_hi=
20722                      break
20723                    fi
20724                    ac_mid=`expr 2 '*' $ac_mid + 1`
20725fi
20726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20727  done
20728else
20729  echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732cat >conftest.$ac_ext <<_ACEOF
20733/* confdefs.h.  */
20734_ACEOF
20735cat confdefs.h >>conftest.$ac_ext
20736cat >>conftest.$ac_ext <<_ACEOF
20737/* end confdefs.h.  */
20738$ac_includes_default
20739int
20740main ()
20741{
20742static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20743test_array [0] = 0
20744
20745  ;
20746  return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext
20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751  (eval $ac_compile) 2>conftest.er1
20752  ac_status=$?
20753  grep -v '^ *+' conftest.er1 >conftest.err
20754  rm -f conftest.er1
20755  cat conftest.err >&5
20756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757  (exit $ac_status); } &&
20758         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760  (eval $ac_try) 2>&5
20761  ac_status=$?
20762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763  (exit $ac_status); }; } &&
20764         { ac_try='test -s conftest.$ac_objext'
20765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766  (eval $ac_try) 2>&5
20767  ac_status=$?
20768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769  (exit $ac_status); }; }; then
20770  ac_hi=-1 ac_mid=-1
20771  while :; do
20772    cat >conftest.$ac_ext <<_ACEOF
20773/* confdefs.h.  */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h.  */
20778$ac_includes_default
20779int
20780main ()
20781{
20782static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20783test_array [0] = 0
20784
20785  ;
20786  return 0;
20787}
20788_ACEOF
20789rm -f conftest.$ac_objext
20790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20791  (eval $ac_compile) 2>conftest.er1
20792  ac_status=$?
20793  grep -v '^ *+' conftest.er1 >conftest.err
20794  rm -f conftest.er1
20795  cat conftest.err >&5
20796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797  (exit $ac_status); } &&
20798         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800  (eval $ac_try) 2>&5
20801  ac_status=$?
20802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803  (exit $ac_status); }; } &&
20804         { ac_try='test -s conftest.$ac_objext'
20805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806  (eval $ac_try) 2>&5
20807  ac_status=$?
20808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809  (exit $ac_status); }; }; then
20810  ac_lo=$ac_mid; break
20811else
20812  echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_hi=`expr '(' $ac_mid ')' - 1`
20816                       if test $ac_mid -le $ac_hi; then
20817                         ac_lo= ac_hi=
20818                         break
20819                       fi
20820                       ac_mid=`expr 2 '*' $ac_mid`
20821fi
20822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20823  done
20824else
20825  echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828ac_lo= ac_hi=
20829fi
20830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20831fi
20832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20833# Binary search between lo and hi bounds.
20834while test "x$ac_lo" != "x$ac_hi"; do
20835  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20836  cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h.  */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h.  */
20842$ac_includes_default
20843int
20844main ()
20845{
20846static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20847test_array [0] = 0
20848
20849  ;
20850  return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext
20854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20855  (eval $ac_compile) 2>conftest.er1
20856  ac_status=$?
20857  grep -v '^ *+' conftest.er1 >conftest.err
20858  rm -f conftest.er1
20859  cat conftest.err >&5
20860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861  (exit $ac_status); } &&
20862         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864  (eval $ac_try) 2>&5
20865  ac_status=$?
20866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867  (exit $ac_status); }; } &&
20868         { ac_try='test -s conftest.$ac_objext'
20869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870  (eval $ac_try) 2>&5
20871  ac_status=$?
20872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873  (exit $ac_status); }; }; then
20874  ac_hi=$ac_mid
20875else
20876  echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879ac_lo=`expr '(' $ac_mid ')' + 1`
20880fi
20881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20882done
20883case $ac_lo in
20884?*) ac_cv_sizeof_long=$ac_lo;;
20885'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20886See \`config.log' for more details." >&5
20887echo "$as_me: error: cannot compute sizeof (long), 77
20888See \`config.log' for more details." >&2;}
20889   { (exit 1); exit 1; }; } ;;
20890esac
20891else
20892  if test "$cross_compiling" = yes; then
20893  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20894echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20895   { (exit 1); exit 1; }; }
20896else
20897  cat >conftest.$ac_ext <<_ACEOF
20898/* confdefs.h.  */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h.  */
20903$ac_includes_default
20904long longval () { return (long) (sizeof (long)); }
20905unsigned long ulongval () { return (long) (sizeof (long)); }
20906#include <stdio.h>
20907#include <stdlib.h>
20908int
20909main ()
20910{
20911
20912  FILE *f = fopen ("conftest.val", "w");
20913  if (! f)
20914    exit (1);
20915  if (((long) (sizeof (long))) < 0)
20916    {
20917      long i = longval ();
20918      if (i != ((long) (sizeof (long))))
20919        exit (1);
20920      fprintf (f, "%ld\n", i);
20921    }
20922  else
20923    {
20924      unsigned long i = ulongval ();
20925      if (i != ((long) (sizeof (long))))
20926        exit (1);
20927      fprintf (f, "%lu\n", i);
20928    }
20929  exit (ferror (f) || fclose (f) != 0);
20930
20931  ;
20932  return 0;
20933}
20934_ACEOF
20935rm -f conftest$ac_exeext
20936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20937  (eval $ac_link) 2>&5
20938  ac_status=$?
20939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942  (eval $ac_try) 2>&5
20943  ac_status=$?
20944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945  (exit $ac_status); }; }; then
20946  ac_cv_sizeof_long=`cat conftest.val`
20947else
20948  echo "$as_me: program exited with status $ac_status" >&5
20949echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952( exit $ac_status )
20953{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20954See \`config.log' for more details." >&5
20955echo "$as_me: error: cannot compute sizeof (long), 77
20956See \`config.log' for more details." >&2;}
20957   { (exit 1); exit 1; }; }
20958fi
20959rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20960fi
20961fi
20962rm -f conftest.val
20963else
20964  ac_cv_sizeof_long=0
20965fi
20966fi
20967echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20968echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20969cat >>confdefs.h <<_ACEOF
20970#define SIZEOF_LONG $ac_cv_sizeof_long
20971_ACEOF
20972
20973
20974echo "$as_me:$LINENO: checking for long long" >&5
20975echo $ECHO_N "checking for long long... $ECHO_C" >&6
20976if test "${ac_cv_type_long_long+set}" = set; then
20977  echo $ECHO_N "(cached) $ECHO_C" >&6
20978else
20979  cat >conftest.$ac_ext <<_ACEOF
20980/* confdefs.h.  */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h.  */
20985$ac_includes_default
20986int
20987main ()
20988{
20989if ((long long *) 0)
20990  return 0;
20991if (sizeof (long long))
20992  return 0;
20993  ;
20994  return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999  (eval $ac_compile) 2>conftest.er1
21000  ac_status=$?
21001  grep -v '^ *+' conftest.er1 >conftest.err
21002  rm -f conftest.er1
21003  cat conftest.err >&5
21004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005  (exit $ac_status); } &&
21006         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008  (eval $ac_try) 2>&5
21009  ac_status=$?
21010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011  (exit $ac_status); }; } &&
21012         { ac_try='test -s conftest.$ac_objext'
21013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014  (eval $ac_try) 2>&5
21015  ac_status=$?
21016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017  (exit $ac_status); }; }; then
21018  ac_cv_type_long_long=yes
21019else
21020  echo "$as_me: failed program was:" >&5
21021sed 's/^/| /' conftest.$ac_ext >&5
21022
21023ac_cv_type_long_long=no
21024fi
21025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026fi
21027echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21028echo "${ECHO_T}$ac_cv_type_long_long" >&6
21029
21030echo "$as_me:$LINENO: checking size of long long" >&5
21031echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21032if test "${ac_cv_sizeof_long_long+set}" = set; then
21033  echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035  if test "$ac_cv_type_long_long" = yes; then
21036  # The cast to unsigned long works around a bug in the HP C Compiler
21037  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21038  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21039  # This bug is HP SR number 8606223364.
21040  if test "$cross_compiling" = yes; then
21041  # Depending upon the size, compute the lo and hi bounds.
21042cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h.  */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h.  */
21048$ac_includes_default
21049int
21050main ()
21051{
21052static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21053test_array [0] = 0
21054
21055  ;
21056  return 0;
21057}
21058_ACEOF
21059rm -f conftest.$ac_objext
21060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21061  (eval $ac_compile) 2>conftest.er1
21062  ac_status=$?
21063  grep -v '^ *+' conftest.er1 >conftest.err
21064  rm -f conftest.er1
21065  cat conftest.err >&5
21066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067  (exit $ac_status); } &&
21068         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070  (eval $ac_try) 2>&5
21071  ac_status=$?
21072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073  (exit $ac_status); }; } &&
21074         { ac_try='test -s conftest.$ac_objext'
21075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076  (eval $ac_try) 2>&5
21077  ac_status=$?
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); }; }; then
21080  ac_lo=0 ac_mid=0
21081  while :; do
21082    cat >conftest.$ac_ext <<_ACEOF
21083/* confdefs.h.  */
21084_ACEOF
21085cat confdefs.h >>conftest.$ac_ext
21086cat >>conftest.$ac_ext <<_ACEOF
21087/* end confdefs.h.  */
21088$ac_includes_default
21089int
21090main ()
21091{
21092static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21093test_array [0] = 0
21094
21095  ;
21096  return 0;
21097}
21098_ACEOF
21099rm -f conftest.$ac_objext
21100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101  (eval $ac_compile) 2>conftest.er1
21102  ac_status=$?
21103  grep -v '^ *+' conftest.er1 >conftest.err
21104  rm -f conftest.er1
21105  cat conftest.err >&5
21106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107  (exit $ac_status); } &&
21108         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110  (eval $ac_try) 2>&5
21111  ac_status=$?
21112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113  (exit $ac_status); }; } &&
21114         { ac_try='test -s conftest.$ac_objext'
21115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116  (eval $ac_try) 2>&5
21117  ac_status=$?
21118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119  (exit $ac_status); }; }; then
21120  ac_hi=$ac_mid; break
21121else
21122  echo "$as_me: failed program was:" >&5
21123sed 's/^/| /' conftest.$ac_ext >&5
21124
21125ac_lo=`expr $ac_mid + 1`
21126                    if test $ac_lo -le $ac_mid; then
21127                      ac_lo= ac_hi=
21128                      break
21129                    fi
21130                    ac_mid=`expr 2 '*' $ac_mid + 1`
21131fi
21132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133  done
21134else
21135  echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h.  */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h.  */
21144$ac_includes_default
21145int
21146main ()
21147{
21148static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21149test_array [0] = 0
21150
21151  ;
21152  return 0;
21153}
21154_ACEOF
21155rm -f conftest.$ac_objext
21156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21157  (eval $ac_compile) 2>conftest.er1
21158  ac_status=$?
21159  grep -v '^ *+' conftest.er1 >conftest.err
21160  rm -f conftest.er1
21161  cat conftest.err >&5
21162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163  (exit $ac_status); } &&
21164         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166  (eval $ac_try) 2>&5
21167  ac_status=$?
21168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169  (exit $ac_status); }; } &&
21170         { ac_try='test -s conftest.$ac_objext'
21171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172  (eval $ac_try) 2>&5
21173  ac_status=$?
21174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175  (exit $ac_status); }; }; then
21176  ac_hi=-1 ac_mid=-1
21177  while :; do
21178    cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h.  */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h.  */
21184$ac_includes_default
21185int
21186main ()
21187{
21188static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21189test_array [0] = 0
21190
21191  ;
21192  return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext
21196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197  (eval $ac_compile) 2>conftest.er1
21198  ac_status=$?
21199  grep -v '^ *+' conftest.er1 >conftest.err
21200  rm -f conftest.er1
21201  cat conftest.err >&5
21202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203  (exit $ac_status); } &&
21204         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206  (eval $ac_try) 2>&5
21207  ac_status=$?
21208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209  (exit $ac_status); }; } &&
21210         { ac_try='test -s conftest.$ac_objext'
21211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212  (eval $ac_try) 2>&5
21213  ac_status=$?
21214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215  (exit $ac_status); }; }; then
21216  ac_lo=$ac_mid; break
21217else
21218  echo "$as_me: failed program was:" >&5
21219sed 's/^/| /' conftest.$ac_ext >&5
21220
21221ac_hi=`expr '(' $ac_mid ')' - 1`
21222                       if test $ac_mid -le $ac_hi; then
21223                         ac_lo= ac_hi=
21224                         break
21225                       fi
21226                       ac_mid=`expr 2 '*' $ac_mid`
21227fi
21228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229  done
21230else
21231  echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234ac_lo= ac_hi=
21235fi
21236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21237fi
21238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21239# Binary search between lo and hi bounds.
21240while test "x$ac_lo" != "x$ac_hi"; do
21241  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21242  cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h.  */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h.  */
21248$ac_includes_default
21249int
21250main ()
21251{
21252static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21253test_array [0] = 0
21254
21255  ;
21256  return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext
21260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261  (eval $ac_compile) 2>conftest.er1
21262  ac_status=$?
21263  grep -v '^ *+' conftest.er1 >conftest.err
21264  rm -f conftest.er1
21265  cat conftest.err >&5
21266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267  (exit $ac_status); } &&
21268         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270  (eval $ac_try) 2>&5
21271  ac_status=$?
21272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273  (exit $ac_status); }; } &&
21274         { ac_try='test -s conftest.$ac_objext'
21275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276  (eval $ac_try) 2>&5
21277  ac_status=$?
21278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279  (exit $ac_status); }; }; then
21280  ac_hi=$ac_mid
21281else
21282  echo "$as_me: failed program was:" >&5
21283sed 's/^/| /' conftest.$ac_ext >&5
21284
21285ac_lo=`expr '(' $ac_mid ')' + 1`
21286fi
21287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288done
21289case $ac_lo in
21290?*) ac_cv_sizeof_long_long=$ac_lo;;
21291'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21292See \`config.log' for more details." >&5
21293echo "$as_me: error: cannot compute sizeof (long long), 77
21294See \`config.log' for more details." >&2;}
21295   { (exit 1); exit 1; }; } ;;
21296esac
21297else
21298  if test "$cross_compiling" = yes; then
21299  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21300echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21301   { (exit 1); exit 1; }; }
21302else
21303  cat >conftest.$ac_ext <<_ACEOF
21304/* confdefs.h.  */
21305_ACEOF
21306cat confdefs.h >>conftest.$ac_ext
21307cat >>conftest.$ac_ext <<_ACEOF
21308/* end confdefs.h.  */
21309$ac_includes_default
21310long longval () { return (long) (sizeof (long long)); }
21311unsigned long ulongval () { return (long) (sizeof (long long)); }
21312#include <stdio.h>
21313#include <stdlib.h>
21314int
21315main ()
21316{
21317
21318  FILE *f = fopen ("conftest.val", "w");
21319  if (! f)
21320    exit (1);
21321  if (((long) (sizeof (long long))) < 0)
21322    {
21323      long i = longval ();
21324      if (i != ((long) (sizeof (long long))))
21325        exit (1);
21326      fprintf (f, "%ld\n", i);
21327    }
21328  else
21329    {
21330      unsigned long i = ulongval ();
21331      if (i != ((long) (sizeof (long long))))
21332        exit (1);
21333      fprintf (f, "%lu\n", i);
21334    }
21335  exit (ferror (f) || fclose (f) != 0);
21336
21337  ;
21338  return 0;
21339}
21340_ACEOF
21341rm -f conftest$ac_exeext
21342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343  (eval $ac_link) 2>&5
21344  ac_status=$?
21345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348  (eval $ac_try) 2>&5
21349  ac_status=$?
21350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351  (exit $ac_status); }; }; then
21352  ac_cv_sizeof_long_long=`cat conftest.val`
21353else
21354  echo "$as_me: program exited with status $ac_status" >&5
21355echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
21358( exit $ac_status )
21359{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21360See \`config.log' for more details." >&5
21361echo "$as_me: error: cannot compute sizeof (long long), 77
21362See \`config.log' for more details." >&2;}
21363   { (exit 1); exit 1; }; }
21364fi
21365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21366fi
21367fi
21368rm -f conftest.val
21369else
21370  ac_cv_sizeof_long_long=0
21371fi
21372fi
21373echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21374echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21375cat >>confdefs.h <<_ACEOF
21376#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21377_ACEOF
21378
21379
21380
21381
21382if test x$has_int16_t = "xyes" ; then
21383        SIZE16="int16_t"
21384else
21385        case 2 in
21386                $ac_cv_sizeof_short) SIZE16="short";;
21387                $ac_cv_sizeof_int) SIZE16="int";;
21388        esac
21389fi
21390
21391if test x$has_int32_t = "xyes" ; then
21392        SIZE32="int32_t"
21393else
21394        case 4 in
21395                $ac_cv_sizeof_short) SIZE32="short";;
21396                $ac_cv_sizeof_int) SIZE32="int";;
21397                $ac_cv_sizeof_long) SIZE32="long";;
21398        esac
21399fi
21400
21401if test x$has_uint32_t = "xyes" ; then
21402        USIZE32="uint32_t"
21403else
21404        if test x$has_u_int32_t = "xyes" ; then
21405                USIZE32="u_int32_t"
21406        else
21407                case 4 in
21408                        $ac_cv_sizeof_short) USIZE32="unsigned short";;
21409                        $ac_cv_sizeof_int) USIZE32="unsigned int";;
21410                        $ac_cv_sizeof_long) USIZE32="unsigned long";;
21411                esac
21412        fi
21413fi
21414
21415if test x$has_uint16_t = "xyes" ; then
21416        USIZE16="uint16_t"
21417else
21418        if test x$has_u_int16_t = "xyes" ; then
21419                USIZE16="u_int16_t"
21420        else
21421                case 2 in
21422                        $ac_cv_sizeof_short) USIZE16="unsigned short";;
21423                        $ac_cv_sizeof_int) USIZE16="unsigned int";;
21424                        $ac_cv_sizeof_long) USIZE16="unsigned long";;
21425                esac
21426        fi
21427fi
21428
21429if test x$has_int64_t = "xyes" ; then
21430        SIZE64="int64_t"
21431else
21432case 8 in
21433        $ac_cv_sizeof_int) SIZE64="int";;
21434        $ac_cv_sizeof_long) SIZE64="long";;
21435        $ac_cv_sizeof_long_long) SIZE64="long long";;
21436esac
21437fi
21438
21439if test -z "$SIZE16"; then
21440        { { echo "$as_me:$LINENO: error: No 16 bit type found on this platform!" >&5
21441echo "$as_me: error: No 16 bit type found on this platform!" >&2;}
21442   { (exit 1); exit 1; }; }
21443fi
21444if test -z "$USIZE16"; then
21445        { { echo "$as_me:$LINENO: error: No unsigned 16 bit type found on this platform!" >&5
21446echo "$as_me: error: No unsigned 16 bit type found on this platform!" >&2;}
21447   { (exit 1); exit 1; }; }
21448fi
21449if test -z "$SIZE32"; then
21450        { { echo "$as_me:$LINENO: error: No 32 bit type found on this platform!" >&5
21451echo "$as_me: error: No 32 bit type found on this platform!" >&2;}
21452   { (exit 1); exit 1; }; }
21453fi
21454if test -z "$USIZE32"; then
21455        { { echo "$as_me:$LINENO: error: No unsigned 32 bit type found on this platform!" >&5
21456echo "$as_me: error: No unsigned 32 bit type found on this platform!" >&2;}
21457   { (exit 1); exit 1; }; }
21458fi
21459if test -z "$SIZE64"; then
21460        { echo "$as_me:$LINENO: WARNING: No 64 bit type found on this platform!" >&5
21461echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
21462fi
21463
21464echo "$as_me:$LINENO: checking for working memcmp" >&5
21465echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21466if test "${ac_cv_func_memcmp_working+set}" = set; then
21467  echo $ECHO_N "(cached) $ECHO_C" >&6
21468else
21469  if test "$cross_compiling" = yes; then
21470  ac_cv_func_memcmp_working=no
21471else
21472  cat >conftest.$ac_ext <<_ACEOF
21473/* confdefs.h.  */
21474_ACEOF
21475cat confdefs.h >>conftest.$ac_ext
21476cat >>conftest.$ac_ext <<_ACEOF
21477/* end confdefs.h.  */
21478$ac_includes_default
21479int
21480main ()
21481{
21482
21483  /* Some versions of memcmp are not 8-bit clean.  */
21484  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21485  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21486    exit (1);
21487
21488  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21489     or more and with at least one buffer not starting on a 4-byte boundary.
21490     William Lewis provided this test program.   */
21491  {
21492    char foo[21];
21493    char bar[21];
21494    int i;
21495    for (i = 0; i < 4; i++)
21496      {
21497        char *a = foo + i;
21498        char *b = bar + i;
21499        strcpy (a, "--------01111111");
21500        strcpy (b, "--------10000000");
21501        if (memcmp (a, b, 16) >= 0)
21502          exit (1);
21503      }
21504    exit (0);
21505  }
21506
21507  ;
21508  return 0;
21509}
21510_ACEOF
21511rm -f conftest$ac_exeext
21512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21513  (eval $ac_link) 2>&5
21514  ac_status=$?
21515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518  (eval $ac_try) 2>&5
21519  ac_status=$?
21520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521  (exit $ac_status); }; }; then
21522  ac_cv_func_memcmp_working=yes
21523else
21524  echo "$as_me: program exited with status $ac_status" >&5
21525echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528( exit $ac_status )
21529ac_cv_func_memcmp_working=no
21530fi
21531rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21532fi
21533fi
21534echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21535echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21536test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21537    "memcmp.$ac_objext"   | \
21538  *" memcmp.$ac_objext"   | \
21539    "memcmp.$ac_objext "* | \
21540  *" memcmp.$ac_objext "* ) ;;
21541  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21542esac
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile libogg.spec ogg.pc ogg-uninstalled.pc"
21560cat >confcache <<\_ACEOF
21561# This file is a shell script that caches the results of configure
21562# tests run on this system so they can be shared between configure
21563# scripts and configure runs, see configure's option --config-cache.
21564# It is not useful on other systems.  If it contains results you don't
21565# want to keep, you may remove or edit it.
21566#
21567# config.status only pays attention to the cache file if you give it
21568# the --recheck option to rerun configure.
21569#
21570# `ac_cv_env_foo' variables (set or unset) will be overridden when
21571# loading this file, other *unset* `ac_cv_foo' will be assigned the
21572# following values.
21573
21574_ACEOF
21575
21576# The following way of writing the cache mishandles newlines in values,
21577# but we know of no workaround that is simple, portable, and efficient.
21578# So, don't put newlines in cache variables' values.
21579# Ultrix sh set writes to stderr and can't be redirected directly,
21580# and sets the high bit in the cache file unless we assign to the vars.
21581{
21582  (set) 2>&1 |
21583    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21584    *ac_space=\ *)
21585      # `set' does not quote correctly, so add quotes (double-quote
21586      # substitution turns \\\\ into \\, and sed turns \\ into \).
21587      sed -n \
21588        "s/'/'\\\\''/g;
21589          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21590      ;;
21591    *)
21592      # `set' quotes correctly as required by POSIX, so do not add quotes.
21593      sed -n \
21594        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21595      ;;
21596    esac;
21597} |
21598  sed '
21599     t clear
21600     : clear
21601     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21602     t end
21603     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21604     : end' >>confcache
21605if diff $cache_file confcache >/dev/null 2>&1; then :; else
21606  if test -w $cache_file; then
21607    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21608    cat confcache >$cache_file
21609  else
21610    echo "not updating unwritable cache $cache_file"
21611  fi
21612fi
21613rm -f confcache
21614
21615test "x$prefix" = xNONE && prefix=$ac_default_prefix
21616# Let make expand exec_prefix.
21617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21618
21619# VPATH may cause trouble with some makes, so we remove $(srcdir),
21620# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21621# trailing colons and then remove the whole line if VPATH becomes empty
21622# (actually we leave an empty line to preserve line numbers).
21623if test "x$srcdir" = x.; then
21624  ac_vpsub='/^[  ]*VPATH[        ]*=/{
21625s/:*\$(srcdir):*/:/;
21626s/:*\${srcdir}:*/:/;
21627s/:*@srcdir@:*/:/;
21628s/^\([^=]*=[     ]*\):*/\1/;
21629s/:*$//;
21630s/^[^=]*=[       ]*$//;
21631}'
21632fi
21633
21634DEFS=-DHAVE_CONFIG_H
21635
21636ac_libobjs=
21637ac_ltlibobjs=
21638for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21639  # 1. Remove the extension, and $U if already installed.
21640  ac_i=`echo "$ac_i" |
21641         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21642  # 2. Add them.
21643  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21644  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21645done
21646LIBOBJS=$ac_libobjs
21647
21648LTLIBOBJS=$ac_ltlibobjs
21649
21650
21651if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21652  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21653Usually this means the macro was only invoked conditionally." >&5
21654echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21655Usually this means the macro was only invoked conditionally." >&2;}
21656   { (exit 1); exit 1; }; }
21657fi
21658if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21659  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21660Usually this means the macro was only invoked conditionally." >&5
21661echo "$as_me: error: conditional \"AMDEP\" was never defined.
21662Usually this means the macro was only invoked conditionally." >&2;}
21663   { (exit 1); exit 1; }; }
21664fi
21665if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21666  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21667Usually this means the macro was only invoked conditionally." >&5
21668echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21669Usually this means the macro was only invoked conditionally." >&2;}
21670   { (exit 1); exit 1; }; }
21671fi
21672if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21673  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21674Usually this means the macro was only invoked conditionally." >&5
21675echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21676Usually this means the macro was only invoked conditionally." >&2;}
21677   { (exit 1); exit 1; }; }
21678fi
21679
21680: ${CONFIG_STATUS=./config.status}
21681ac_clean_files_save=$ac_clean_files
21682ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21683{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21684echo "$as_me: creating $CONFIG_STATUS" >&6;}
21685cat >$CONFIG_STATUS <<_ACEOF
21686#! $SHELL
21687# Generated by $as_me.
21688# Run this file to recreate the current configuration.
21689# Compiler output produced by configure, useful for debugging
21690# configure, is in config.log if it exists.
21691
21692debug=false
21693ac_cs_recheck=false
21694ac_cs_silent=false
21695SHELL=\${CONFIG_SHELL-$SHELL}
21696_ACEOF
21697
21698cat >>$CONFIG_STATUS <<\_ACEOF
21699## --------------------- ##
21700## M4sh Initialization.  ##
21701## --------------------- ##
21702
21703# Be Bourne compatible
21704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21705  emulate sh
21706  NULLCMD=:
21707  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21708  # is contrary to our usage.  Disable this feature.
21709  alias -g '${1+"$@"}'='"$@"'
21710elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21711  set -o posix
21712fi
21713DUALCASE=1; export DUALCASE # for MKS sh
21714
21715# Support unset when possible.
21716if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21717  as_unset=unset
21718else
21719  as_unset=false
21720fi
21721
21722
21723# Work around bugs in pre-3.0 UWIN ksh.
21724$as_unset ENV MAIL MAILPATH
21725PS1='$ '
21726PS2='> '
21727PS4='+ '
21728
21729# NLS nuisances.
21730for as_var in \
21731  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21732  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21733  LC_TELEPHONE LC_TIME
21734do
21735  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21736    eval $as_var=C; export $as_var
21737  else
21738    $as_unset $as_var
21739  fi
21740done
21741
21742# Required to use basename.
21743if expr a : '\(a\)' >/dev/null 2>&1; then
21744  as_expr=expr
21745else
21746  as_expr=false
21747fi
21748
21749if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21750  as_basename=basename
21751else
21752  as_basename=false
21753fi
21754
21755
21756# Name of the executable.
21757as_me=`$as_basename "$0" ||
21758$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21759         X"$0" : 'X\(//\)$' \| \
21760         X"$0" : 'X\(/\)$' \| \
21761         .     : '\(.\)' 2>/dev/null ||
21762echo X/"$0" |
21763    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21764          /^X\/\(\/\/\)$/{ s//\1/; q; }
21765          /^X\/\(\/\).*/{ s//\1/; q; }
21766          s/.*/./; q'`
21767
21768
21769# PATH needs CR, and LINENO needs CR and PATH.
21770# Avoid depending upon Character Ranges.
21771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21774as_cr_digits='0123456789'
21775as_cr_alnum=$as_cr_Letters$as_cr_digits
21776
21777# The user is always right.
21778if test "${PATH_SEPARATOR+set}" != set; then
21779  echo "#! /bin/sh" >conf$$.sh
21780  echo  "exit 0"   >>conf$$.sh
21781  chmod +x conf$$.sh
21782  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21783    PATH_SEPARATOR=';'
21784  else
21785    PATH_SEPARATOR=:
21786  fi
21787  rm -f conf$$.sh
21788fi
21789
21790
21791  as_lineno_1=$LINENO
21792  as_lineno_2=$LINENO
21793  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21794  test "x$as_lineno_1" != "x$as_lineno_2" &&
21795  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21796  # Find who we are.  Look in the path if we contain no path at all
21797  # relative or not.
21798  case $0 in
21799    *[\\/]* ) as_myself=$0 ;;
21800    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801for as_dir in $PATH
21802do
21803  IFS=$as_save_IFS
21804  test -z "$as_dir" && as_dir=.
21805  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21806done
21807
21808       ;;
21809  esac
21810  # We did not find ourselves, most probably we were run as `sh COMMAND'
21811  # in which case we are not to be found in the path.
21812  if test "x$as_myself" = x; then
21813    as_myself=$0
21814  fi
21815  if test ! -f "$as_myself"; then
21816    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21817echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21818   { (exit 1); exit 1; }; }
21819  fi
21820  case $CONFIG_SHELL in
21821  '')
21822    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21823for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21824do
21825  IFS=$as_save_IFS
21826  test -z "$as_dir" && as_dir=.
21827  for as_base in sh bash ksh sh5; do
21828         case $as_dir in
21829         /*)
21830           if ("$as_dir/$as_base" -c '
21831  as_lineno_1=$LINENO
21832  as_lineno_2=$LINENO
21833  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21834  test "x$as_lineno_1" != "x$as_lineno_2" &&
21835  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21836             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21837             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21838             CONFIG_SHELL=$as_dir/$as_base
21839             export CONFIG_SHELL
21840             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21841           fi;;
21842         esac
21843       done
21844done
21845;;
21846  esac
21847
21848  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21849  # uniformly replaced by the line number.  The first 'sed' inserts a
21850  # line-number line before each line; the second 'sed' does the real
21851  # work.  The second script uses 'N' to pair each line-number line
21852  # with the numbered line, and appends trailing '-' during
21853  # substitution so that $LINENO is not a special case at line end.
21854  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21855  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21856  sed '=' <$as_myself |
21857    sed '
21858      N
21859      s,$,-,
21860      : loop
21861      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21862      t loop
21863      s,-$,,
21864      s,^['$as_cr_digits']*\n,,
21865    ' >$as_me.lineno &&
21866  chmod +x $as_me.lineno ||
21867    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21868echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21869   { (exit 1); exit 1; }; }
21870
21871  # Don't try to exec as it changes $[0], causing all sort of problems
21872  # (the dirname of $[0] is not the place where we might find the
21873  # original and so on.  Autoconf is especially sensible to this).
21874  . ./$as_me.lineno
21875  # Exit status is that of the last command.
21876  exit
21877}
21878
21879
21880case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21881  *c*,-n*) ECHO_N= ECHO_C='
21882' ECHO_T='      ' ;;
21883  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21884  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21885esac
21886
21887if expr a : '\(a\)' >/dev/null 2>&1; then
21888  as_expr=expr
21889else
21890  as_expr=false
21891fi
21892
21893rm -f conf$$ conf$$.exe conf$$.file
21894echo >conf$$.file
21895if ln -s conf$$.file conf$$ 2>/dev/null; then
21896  # We could just check for DJGPP; but this test a) works b) is more generic
21897  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21898  if test -f conf$$.exe; then
21899    # Don't use ln at all; we don't have any links
21900    as_ln_s='cp -p'
21901  else
21902    as_ln_s='ln -s'
21903  fi
21904elif ln conf$$.file conf$$ 2>/dev/null; then
21905  as_ln_s=ln
21906else
21907  as_ln_s='cp -p'
21908fi
21909rm -f conf$$ conf$$.exe conf$$.file
21910
21911if mkdir -p . 2>/dev/null; then
21912  as_mkdir_p=:
21913else
21914  test -d ./-p && rmdir ./-p
21915  as_mkdir_p=false
21916fi
21917
21918as_executable_p="test -f"
21919
21920# Sed expression to map a string onto a valid CPP name.
21921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21922
21923# Sed expression to map a string onto a valid variable name.
21924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21925
21926
21927# IFS
21928# We need space, tab and new line, in precisely that order.
21929as_nl='
21930'
21931IFS="   $as_nl"
21932
21933# CDPATH.
21934$as_unset CDPATH
21935
21936exec 6>&1
21937
21938# Open the log real soon, to keep \$[0] and so on meaningful, and to
21939# report actual input values of CONFIG_FILES etc. instead of their
21940# values after options handling.  Logging --version etc. is OK.
21941exec 5>>config.log
21942{
21943  echo
21944  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21945## Running $as_me. ##
21946_ASBOX
21947} >&5
21948cat >&5 <<_CSEOF
21949
21950This file was extended by $as_me, which was
21951generated by GNU Autoconf 2.59.  Invocation command line was
21952
21953  CONFIG_FILES    = $CONFIG_FILES
21954  CONFIG_HEADERS  = $CONFIG_HEADERS
21955  CONFIG_LINKS    = $CONFIG_LINKS
21956  CONFIG_COMMANDS = $CONFIG_COMMANDS
21957  $ $0 $@
21958
21959_CSEOF
21960echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21961echo >&5
21962_ACEOF
21963
21964# Files that config.status was made for.
21965if test -n "$ac_config_files"; then
21966  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21967fi
21968
21969if test -n "$ac_config_headers"; then
21970  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21971fi
21972
21973if test -n "$ac_config_links"; then
21974  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21975fi
21976
21977if test -n "$ac_config_commands"; then
21978  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21979fi
21980
21981cat >>$CONFIG_STATUS <<\_ACEOF
21982
21983ac_cs_usage="\
21984\`$as_me' instantiates files from templates according to the
21985current configuration.
21986
21987Usage: $0 [OPTIONS] [FILE]...
21988
21989  -h, --help       print this help, then exit
21990  -V, --version    print version number, then exit
21991  -q, --quiet      do not print progress messages
21992  -d, --debug      don't remove temporary files
21993      --recheck    update $as_me by reconfiguring in the same conditions
21994  --file=FILE[:TEMPLATE]
21995                   instantiate the configuration file FILE
21996  --header=FILE[:TEMPLATE]
21997                   instantiate the configuration header FILE
21998
21999Configuration files:
22000$config_files
22001
22002Configuration headers:
22003$config_headers
22004
22005Configuration commands:
22006$config_commands
22007
22008Report bugs to <bug-autoconf@gnu.org>."
22009_ACEOF
22010
22011cat >>$CONFIG_STATUS <<_ACEOF
22012ac_cs_version="\\
22013config.status
22014configured by $0, generated by GNU Autoconf 2.59,
22015  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22016
22017Copyright (C) 2003 Free Software Foundation, Inc.
22018This config.status script is free software; the Free Software Foundation
22019gives unlimited permission to copy, distribute and modify it."
22020srcdir=$srcdir
22021INSTALL="$INSTALL"
22022_ACEOF
22023
22024cat >>$CONFIG_STATUS <<\_ACEOF
22025# If no file are specified by the user, then we need to provide default
22026# value.  By we need to know if files were specified by the user.
22027ac_need_defaults=:
22028while test $# != 0
22029do
22030  case $1 in
22031  --*=*)
22032    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22033    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22034    ac_shift=:
22035    ;;
22036  -*)
22037    ac_option=$1
22038    ac_optarg=$2
22039    ac_shift=shift
22040    ;;
22041  *) # This is not an option, so the user has probably given explicit
22042     # arguments.
22043     ac_option=$1
22044     ac_need_defaults=false;;
22045  esac
22046
22047  case $ac_option in
22048  # Handling of the options.
22049_ACEOF
22050cat >>$CONFIG_STATUS <<\_ACEOF
22051  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22052    ac_cs_recheck=: ;;
22053  --version | --vers* | -V )
22054    echo "$ac_cs_version"; exit 0 ;;
22055  --he | --h)
22056    # Conflict between --help and --header
22057    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22058Try \`$0 --help' for more information." >&5
22059echo "$as_me: error: ambiguous option: $1
22060Try \`$0 --help' for more information." >&2;}
22061   { (exit 1); exit 1; }; };;
22062  --help | --hel | -h )
22063    echo "$ac_cs_usage"; exit 0 ;;
22064  --debug | --d* | -d )
22065    debug=: ;;
22066  --file | --fil | --fi | --f )
22067    $ac_shift
22068    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22069    ac_need_defaults=false;;
22070  --header | --heade | --head | --hea )
22071    $ac_shift
22072    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22073    ac_need_defaults=false;;
22074  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22075  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22076    ac_cs_silent=: ;;
22077
22078  # This is an error.
22079  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22080Try \`$0 --help' for more information." >&5
22081echo "$as_me: error: unrecognized option: $1
22082Try \`$0 --help' for more information." >&2;}
22083   { (exit 1); exit 1; }; } ;;
22084
22085  *) ac_config_targets="$ac_config_targets $1" ;;
22086
22087  esac
22088  shift
22089done
22090
22091ac_configure_extra_args=
22092
22093if $ac_cs_silent; then
22094  exec 6>/dev/null
22095  ac_configure_extra_args="$ac_configure_extra_args --silent"
22096fi
22097
22098_ACEOF
22099cat >>$CONFIG_STATUS <<_ACEOF
22100if \$ac_cs_recheck; then
22101  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22102  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22103fi
22104
22105_ACEOF
22106
22107cat >>$CONFIG_STATUS <<_ACEOF
22108#
22109# INIT-COMMANDS section.
22110#
22111
22112AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22113
22114_ACEOF
22115
22116
22117
22118cat >>$CONFIG_STATUS <<\_ACEOF
22119for ac_config_target in $ac_config_targets
22120do
22121  case "$ac_config_target" in
22122  # Handling of arguments.
22123  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22124  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22125  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22126  "doc/libogg/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
22127  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22128  "include/ogg/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
22129  "include/ogg/config_types.h" ) CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
22130  "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
22131  "libogg.spec" ) CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
22132  "ogg.pc" ) CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
22133  "ogg-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
22134  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22135  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22136  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22137echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22138   { (exit 1); exit 1; }; };;
22139  esac
22140done
22141
22142# If the user did not use the arguments to specify the items to instantiate,
22143# then the envvar interface is used.  Set only those that are not.
22144# We use the long form for the default assignment because of an extremely
22145# bizarre bug on SunOS 4.1.3.
22146if $ac_need_defaults; then
22147  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22148  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22149  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22150fi
22151
22152# Have a temporary directory for convenience.  Make it in the build tree
22153# simply because there is no reason to put it here, and in addition,
22154# creating and moving files from /tmp can sometimes cause problems.
22155# Create a temporary directory, and hook for its removal unless debugging.
22156$debug ||
22157{
22158  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22159  trap '{ (exit 1); exit 1; }' 1 2 13 15
22160}
22161
22162# Create a (secure) tmp directory for tmp files.
22163
22164{
22165  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22166  test -n "$tmp" && test -d "$tmp"
22167}  ||
22168{
22169  tmp=./confstat$$-$RANDOM
22170  (umask 077 && mkdir $tmp)
22171} ||
22172{
22173   echo "$me: cannot create a temporary directory in ." >&2
22174   { (exit 1); exit 1; }
22175}
22176
22177_ACEOF
22178
22179cat >>$CONFIG_STATUS <<_ACEOF
22180
22181#
22182# CONFIG_FILES section.
22183#
22184
22185# No need to generate the scripts if there are no CONFIG_FILES.
22186# This happens for instance when ./config.status config.h
22187if test -n "\$CONFIG_FILES"; then
22188  # Protect against being on the right side of a sed subst in config.status.
22189  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22190   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22191s,@SHELL@,$SHELL,;t t
22192s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22193s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22194s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22195s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22196s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22197s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22198s,@exec_prefix@,$exec_prefix,;t t
22199s,@prefix@,$prefix,;t t
22200s,@program_transform_name@,$program_transform_name,;t t
22201s,@bindir@,$bindir,;t t
22202s,@sbindir@,$sbindir,;t t
22203s,@libexecdir@,$libexecdir,;t t
22204s,@datadir@,$datadir,;t t
22205s,@sysconfdir@,$sysconfdir,;t t
22206s,@sharedstatedir@,$sharedstatedir,;t t
22207s,@localstatedir@,$localstatedir,;t t
22208s,@libdir@,$libdir,;t t
22209s,@includedir@,$includedir,;t t
22210s,@oldincludedir@,$oldincludedir,;t t
22211s,@infodir@,$infodir,;t t
22212s,@mandir@,$mandir,;t t
22213s,@build_alias@,$build_alias,;t t
22214s,@host_alias@,$host_alias,;t t
22215s,@target_alias@,$target_alias,;t t
22216s,@DEFS@,$DEFS,;t t
22217s,@ECHO_C@,$ECHO_C,;t t
22218s,@ECHO_N@,$ECHO_N,;t t
22219s,@ECHO_T@,$ECHO_T,;t t
22220s,@LIBS@,$LIBS,;t t
22221s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22222s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22223s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22224s,@CYGPATH_W@,$CYGPATH_W,;t t
22225s,@PACKAGE@,$PACKAGE,;t t
22226s,@VERSION@,$VERSION,;t t
22227s,@ACLOCAL@,$ACLOCAL,;t t
22228s,@AUTOCONF@,$AUTOCONF,;t t
22229s,@AUTOMAKE@,$AUTOMAKE,;t t
22230s,@AUTOHEADER@,$AUTOHEADER,;t t
22231s,@MAKEINFO@,$MAKEINFO,;t t
22232s,@install_sh@,$install_sh,;t t
22233s,@STRIP@,$STRIP,;t t
22234s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22235s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22236s,@mkdir_p@,$mkdir_p,;t t
22237s,@AWK@,$AWK,;t t
22238s,@SET_MAKE@,$SET_MAKE,;t t
22239s,@am__leading_dot@,$am__leading_dot,;t t
22240s,@AMTAR@,$AMTAR,;t t
22241s,@am__tar@,$am__tar,;t t
22242s,@am__untar@,$am__untar,;t t
22243s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22244s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22245s,@MAINT@,$MAINT,;t t
22246s,@LIB_CURRENT@,$LIB_CURRENT,;t t
22247s,@LIB_REVISION@,$LIB_REVISION,;t t
22248s,@LIB_AGE@,$LIB_AGE,;t t
22249s,@CC@,$CC,;t t
22250s,@CFLAGS@,$CFLAGS,;t t
22251s,@LDFLAGS@,$LDFLAGS,;t t
22252s,@CPPFLAGS@,$CPPFLAGS,;t t
22253s,@ac_ct_CC@,$ac_ct_CC,;t t
22254s,@EXEEXT@,$EXEEXT,;t t
22255s,@OBJEXT@,$OBJEXT,;t t
22256s,@DEPDIR@,$DEPDIR,;t t
22257s,@am__include@,$am__include,;t t
22258s,@am__quote@,$am__quote,;t t
22259s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22260s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22261s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22262s,@CCDEPMODE@,$CCDEPMODE,;t t
22263s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22264s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22265s,@build@,$build,;t t
22266s,@build_cpu@,$build_cpu,;t t
22267s,@build_vendor@,$build_vendor,;t t
22268s,@build_os@,$build_os,;t t
22269s,@host@,$host,;t t
22270s,@host_cpu@,$host_cpu,;t t
22271s,@host_vendor@,$host_vendor,;t t
22272s,@host_os@,$host_os,;t t
22273s,@EGREP@,$EGREP,;t t
22274s,@LN_S@,$LN_S,;t t
22275s,@ECHO@,$ECHO,;t t
22276s,@AR@,$AR,;t t
22277s,@ac_ct_AR@,$ac_ct_AR,;t t
22278s,@RANLIB@,$RANLIB,;t t
22279s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22280s,@CPP@,$CPP,;t t
22281s,@CXX@,$CXX,;t t
22282s,@CXXFLAGS@,$CXXFLAGS,;t t
22283s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22284s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22285s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22286s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22287s,@CXXCPP@,$CXXCPP,;t t
22288s,@F77@,$F77,;t t
22289s,@FFLAGS@,$FFLAGS,;t t
22290s,@ac_ct_F77@,$ac_ct_F77,;t t
22291s,@LIBTOOL@,$LIBTOOL,;t t
22292s,@LIBOBJS@,$LIBOBJS,;t t
22293s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22294s,@SIZE16@,$SIZE16,;t t
22295s,@USIZE16@,$USIZE16,;t t
22296s,@SIZE32@,$SIZE32,;t t
22297s,@USIZE32@,$USIZE32,;t t
22298s,@SIZE64@,$SIZE64,;t t
22299s,@OPT@,$OPT,;t t
22300s,@DEBUG@,$DEBUG,;t t
22301s,@PROFILE@,$PROFILE,;t t
22302s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22303CEOF
22304
22305_ACEOF
22306
22307  cat >>$CONFIG_STATUS <<\_ACEOF
22308  # Split the substitutions into bite-sized pieces for seds with
22309  # small command number limits, like on Digital OSF/1 and HP-UX.
22310  ac_max_sed_lines=48
22311  ac_sed_frag=1 # Number of current file.
22312  ac_beg=1 # First line for current file.
22313  ac_end=$ac_max_sed_lines # Line after last line for current file.
22314  ac_more_lines=:
22315  ac_sed_cmds=
22316  while $ac_more_lines; do
22317    if test $ac_beg -gt 1; then
22318      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22319    else
22320      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22321    fi
22322    if test ! -s $tmp/subs.frag; then
22323      ac_more_lines=false
22324    else
22325      # The purpose of the label and of the branching condition is to
22326      # speed up the sed processing (if there are no `@' at all, there
22327      # is no need to browse any of the substitutions).
22328      # These are the two extra sed commands mentioned above.
22329      (echo ':t
22330  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22331      if test -z "$ac_sed_cmds"; then
22332        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22333      else
22334        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22335      fi
22336      ac_sed_frag=`expr $ac_sed_frag + 1`
22337      ac_beg=$ac_end
22338      ac_end=`expr $ac_end + $ac_max_sed_lines`
22339    fi
22340  done
22341  if test -z "$ac_sed_cmds"; then
22342    ac_sed_cmds=cat
22343  fi
22344fi # test -n "$CONFIG_FILES"
22345
22346_ACEOF
22347cat >>$CONFIG_STATUS <<\_ACEOF
22348for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22349  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22350  case $ac_file in
22351  - | *:- | *:-:* ) # input from stdin
22352        cat >$tmp/stdin
22353        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22354        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22355  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22356        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22357  * )   ac_file_in=$ac_file.in ;;
22358  esac
22359
22360  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22361  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22363         X"$ac_file" : 'X\(//\)[^/]' \| \
22364         X"$ac_file" : 'X\(//\)$' \| \
22365         X"$ac_file" : 'X\(/\)' \| \
22366         .     : '\(.\)' 2>/dev/null ||
22367echo X"$ac_file" |
22368    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22369          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22370          /^X\(\/\/\)$/{ s//\1/; q; }
22371          /^X\(\/\).*/{ s//\1/; q; }
22372          s/.*/./; q'`
22373  { if $as_mkdir_p; then
22374    mkdir -p "$ac_dir"
22375  else
22376    as_dir="$ac_dir"
22377    as_dirs=
22378    while test ! -d "$as_dir"; do
22379      as_dirs="$as_dir $as_dirs"
22380      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22382         X"$as_dir" : 'X\(//\)[^/]' \| \
22383         X"$as_dir" : 'X\(//\)$' \| \
22384         X"$as_dir" : 'X\(/\)' \| \
22385         .     : '\(.\)' 2>/dev/null ||
22386echo X"$as_dir" |
22387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22388          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22389          /^X\(\/\/\)$/{ s//\1/; q; }
22390          /^X\(\/\).*/{ s//\1/; q; }
22391          s/.*/./; q'`
22392    done
22393    test ! -n "$as_dirs" || mkdir $as_dirs
22394  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22395echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22396   { (exit 1); exit 1; }; }; }
22397
22398  ac_builddir=.
22399
22400if test "$ac_dir" != .; then
22401  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22402  # A "../" for each directory in $ac_dir_suffix.
22403  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22404else
22405  ac_dir_suffix= ac_top_builddir=
22406fi
22407
22408case $srcdir in
22409  .)  # No --srcdir option.  We are building in place.
22410    ac_srcdir=.
22411    if test -z "$ac_top_builddir"; then
22412       ac_top_srcdir=.
22413    else
22414       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22415    fi ;;
22416  [\\/]* | ?:[\\/]* )  # Absolute path.
22417    ac_srcdir=$srcdir$ac_dir_suffix;
22418    ac_top_srcdir=$srcdir ;;
22419  *) # Relative path.
22420    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22421    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22422esac
22423
22424# Do not use `cd foo && pwd` to compute absolute paths, because
22425# the directories may not exist.
22426case `pwd` in
22427.) ac_abs_builddir="$ac_dir";;
22428*)
22429  case "$ac_dir" in
22430  .) ac_abs_builddir=`pwd`;;
22431  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22432  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22433  esac;;
22434esac
22435case $ac_abs_builddir in
22436.) ac_abs_top_builddir=${ac_top_builddir}.;;
22437*)
22438  case ${ac_top_builddir}. in
22439  .) ac_abs_top_builddir=$ac_abs_builddir;;
22440  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22441  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22442  esac;;
22443esac
22444case $ac_abs_builddir in
22445.) ac_abs_srcdir=$ac_srcdir;;
22446*)
22447  case $ac_srcdir in
22448  .) ac_abs_srcdir=$ac_abs_builddir;;
22449  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22450  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22451  esac;;
22452esac
22453case $ac_abs_builddir in
22454.) ac_abs_top_srcdir=$ac_top_srcdir;;
22455*)
22456  case $ac_top_srcdir in
22457  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22458  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22459  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22460  esac;;
22461esac
22462
22463
22464  case $INSTALL in
22465  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22466  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22467  esac
22468
22469  # Let's still pretend it is `configure' which instantiates (i.e., don't
22470  # use $as_me), people would be surprised to read:
22471  #    /* config.h.  Generated by config.status.  */
22472  if test x"$ac_file" = x-; then
22473    configure_input=
22474  else
22475    configure_input="$ac_file.  "
22476  fi
22477  configure_input=$configure_input"Generated from `echo $ac_file_in |
22478                                     sed 's,.*/,,'` by configure."
22479
22480  # First look for the input files in the build tree, otherwise in the
22481  # src tree.
22482  ac_file_inputs=`IFS=:
22483    for f in $ac_file_in; do
22484      case $f in
22485      -) echo $tmp/stdin ;;
22486      [\\/$]*)
22487         # Absolute (can't be DOS-style, as IFS=:)
22488         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22489echo "$as_me: error: cannot find input file: $f" >&2;}
22490   { (exit 1); exit 1; }; }
22491         echo "$f";;
22492      *) # Relative
22493         if test -f "$f"; then
22494           # Build tree
22495           echo "$f"
22496         elif test -f "$srcdir/$f"; then
22497           # Source tree
22498           echo "$srcdir/$f"
22499         else
22500           # /dev/null tree
22501           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22502echo "$as_me: error: cannot find input file: $f" >&2;}
22503   { (exit 1); exit 1; }; }
22504         fi;;
22505      esac
22506    done` || { (exit 1); exit 1; }
22507
22508  if test x"$ac_file" != x-; then
22509    { echo "$as_me:$LINENO: creating $ac_file" >&5
22510echo "$as_me: creating $ac_file" >&6;}
22511    rm -f "$ac_file"
22512  fi
22513_ACEOF
22514cat >>$CONFIG_STATUS <<_ACEOF
22515  sed "$ac_vpsub
22516$extrasub
22517_ACEOF
22518cat >>$CONFIG_STATUS <<\_ACEOF
22519:t
22520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22521s,@configure_input@,$configure_input,;t t
22522s,@srcdir@,$ac_srcdir,;t t
22523s,@abs_srcdir@,$ac_abs_srcdir,;t t
22524s,@top_srcdir@,$ac_top_srcdir,;t t
22525s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22526s,@builddir@,$ac_builddir,;t t
22527s,@abs_builddir@,$ac_abs_builddir,;t t
22528s,@top_builddir@,$ac_top_builddir,;t t
22529s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22530s,@INSTALL@,$ac_INSTALL,;t t
22531" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22532  rm -f $tmp/stdin
22533  if test x"$ac_file" != x-; then
22534    mv $tmp/out $ac_file
22535  else
22536    cat $tmp/out
22537    rm -f $tmp/out
22538  fi
22539
22540done
22541_ACEOF
22542cat >>$CONFIG_STATUS <<\_ACEOF
22543
22544#
22545# CONFIG_HEADER section.
22546#
22547
22548# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22549# NAME is the cpp macro being defined and VALUE is the value it is being given.
22550#
22551# ac_d sets the value in "#define NAME VALUE" lines.
22552ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22553ac_dB='[         ].*$,\1#\2'
22554ac_dC=' '
22555ac_dD=',;t'
22556# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22557ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22558ac_uB='$,\1#\2define\3'
22559ac_uC=' '
22560ac_uD=',;t'
22561
22562for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22563  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22564  case $ac_file in
22565  - | *:- | *:-:* ) # input from stdin
22566        cat >$tmp/stdin
22567        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22568        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22569  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22570        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22571  * )   ac_file_in=$ac_file.in ;;
22572  esac
22573
22574  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22575echo "$as_me: creating $ac_file" >&6;}
22576
22577  # First look for the input files in the build tree, otherwise in the
22578  # src tree.
22579  ac_file_inputs=`IFS=:
22580    for f in $ac_file_in; do
22581      case $f in
22582      -) echo $tmp/stdin ;;
22583      [\\/$]*)
22584         # Absolute (can't be DOS-style, as IFS=:)
22585         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22586echo "$as_me: error: cannot find input file: $f" >&2;}
22587   { (exit 1); exit 1; }; }
22588         # Do quote $f, to prevent DOS paths from being IFS'd.
22589         echo "$f";;
22590      *) # Relative
22591         if test -f "$f"; then
22592           # Build tree
22593           echo "$f"
22594         elif test -f "$srcdir/$f"; then
22595           # Source tree
22596           echo "$srcdir/$f"
22597         else
22598           # /dev/null tree
22599           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22600echo "$as_me: error: cannot find input file: $f" >&2;}
22601   { (exit 1); exit 1; }; }
22602         fi;;
22603      esac
22604    done` || { (exit 1); exit 1; }
22605  # Remove the trailing spaces.
22606  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22607
22608_ACEOF
22609
22610# Transform confdefs.h into two sed scripts, `conftest.defines' and
22611# `conftest.undefs', that substitutes the proper values into
22612# config.h.in to produce config.h.  The first handles `#define'
22613# templates, and the second `#undef' templates.
22614# And first: Protect against being on the right side of a sed subst in
22615# config.status.  Protect against being in an unquoted here document
22616# in config.status.
22617rm -f conftest.defines conftest.undefs
22618# Using a here document instead of a string reduces the quoting nightmare.
22619# Putting comments in sed scripts is not portable.
22620#
22621# `end' is used to avoid that the second main sed command (meant for
22622# 0-ary CPP macros) applies to n-ary macro definitions.
22623# See the Autoconf documentation for `clear'.
22624cat >confdef2sed.sed <<\_ACEOF
22625s/[\\&,]/\\&/g
22626s,[\\$`],\\&,g
22627t clear
22628: clear
22629s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22630t end
22631s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22632: end
22633_ACEOF
22634# If some macros were called several times there might be several times
22635# the same #defines, which is useless.  Nevertheless, we may not want to
22636# sort them, since we want the *last* AC-DEFINE to be honored.
22637uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22638sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22639rm -f confdef2sed.sed
22640
22641# This sed command replaces #undef with comments.  This is necessary, for
22642# example, in the case of _POSIX_SOURCE, which is predefined and required
22643# on some systems where configure will not decide to define it.
22644cat >>conftest.undefs <<\_ACEOF
22645s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22646_ACEOF
22647
22648# Break up conftest.defines because some shells have a limit on the size
22649# of here documents, and old seds have small limits too (100 cmds).
22650echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22651echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22652echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22653echo '  :' >>$CONFIG_STATUS
22654rm -f conftest.tail
22655while grep . conftest.defines >/dev/null
22656do
22657  # Write a limited-size here document to $tmp/defines.sed.
22658  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22659  # Speed up: don't consider the non `#define' lines.
22660  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22661  # Work around the forget-to-reset-the-flag bug.
22662  echo 't clr' >>$CONFIG_STATUS
22663  echo ': clr' >>$CONFIG_STATUS
22664  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22665  echo 'CEOF
22666  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22667  rm -f $tmp/in
22668  mv $tmp/out $tmp/in
22669' >>$CONFIG_STATUS
22670  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22671  rm -f conftest.defines
22672  mv conftest.tail conftest.defines
22673done
22674rm -f conftest.defines
22675echo '  fi # grep' >>$CONFIG_STATUS
22676echo >>$CONFIG_STATUS
22677
22678# Break up conftest.undefs because some shells have a limit on the size
22679# of here documents, and old seds have small limits too (100 cmds).
22680echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22681rm -f conftest.tail
22682while grep . conftest.undefs >/dev/null
22683do
22684  # Write a limited-size here document to $tmp/undefs.sed.
22685  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22686  # Speed up: don't consider the non `#undef'
22687  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22688  # Work around the forget-to-reset-the-flag bug.
22689  echo 't clr' >>$CONFIG_STATUS
22690  echo ': clr' >>$CONFIG_STATUS
22691  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22692  echo 'CEOF
22693  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22694  rm -f $tmp/in
22695  mv $tmp/out $tmp/in
22696' >>$CONFIG_STATUS
22697  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22698  rm -f conftest.undefs
22699  mv conftest.tail conftest.undefs
22700done
22701rm -f conftest.undefs
22702
22703cat >>$CONFIG_STATUS <<\_ACEOF
22704  # Let's still pretend it is `configure' which instantiates (i.e., don't
22705  # use $as_me), people would be surprised to read:
22706  #    /* config.h.  Generated by config.status.  */
22707  if test x"$ac_file" = x-; then
22708    echo "/* Generated by configure.  */" >$tmp/config.h
22709  else
22710    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22711  fi
22712  cat $tmp/in >>$tmp/config.h
22713  rm -f $tmp/in
22714  if test x"$ac_file" != x-; then
22715    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22716      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22717echo "$as_me: $ac_file is unchanged" >&6;}
22718    else
22719      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22721         X"$ac_file" : 'X\(//\)[^/]' \| \
22722         X"$ac_file" : 'X\(//\)$' \| \
22723         X"$ac_file" : 'X\(/\)' \| \
22724         .     : '\(.\)' 2>/dev/null ||
22725echo X"$ac_file" |
22726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22727          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22728          /^X\(\/\/\)$/{ s//\1/; q; }
22729          /^X\(\/\).*/{ s//\1/; q; }
22730          s/.*/./; q'`
22731      { if $as_mkdir_p; then
22732    mkdir -p "$ac_dir"
22733  else
22734    as_dir="$ac_dir"
22735    as_dirs=
22736    while test ! -d "$as_dir"; do
22737      as_dirs="$as_dir $as_dirs"
22738      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22740         X"$as_dir" : 'X\(//\)[^/]' \| \
22741         X"$as_dir" : 'X\(//\)$' \| \
22742         X"$as_dir" : 'X\(/\)' \| \
22743         .     : '\(.\)' 2>/dev/null ||
22744echo X"$as_dir" |
22745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22746          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22747          /^X\(\/\/\)$/{ s//\1/; q; }
22748          /^X\(\/\).*/{ s//\1/; q; }
22749          s/.*/./; q'`
22750    done
22751    test ! -n "$as_dirs" || mkdir $as_dirs
22752  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22753echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22754   { (exit 1); exit 1; }; }; }
22755
22756      rm -f $ac_file
22757      mv $tmp/config.h $ac_file
22758    fi
22759  else
22760    cat $tmp/config.h
22761    rm -f $tmp/config.h
22762  fi
22763# Compute $ac_file's index in $config_headers.
22764_am_stamp_count=1
22765for _am_header in $config_headers :; do
22766  case $_am_header in
22767    $ac_file | $ac_file:* )
22768      break ;;
22769    * )
22770      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22771  esac
22772done
22773echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22774$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775         X$ac_file : 'X\(//\)[^/]' \| \
22776         X$ac_file : 'X\(//\)$' \| \
22777         X$ac_file : 'X\(/\)' \| \
22778         .     : '\(.\)' 2>/dev/null ||
22779echo X$ac_file |
22780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22781          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22782          /^X\(\/\/\)$/{ s//\1/; q; }
22783          /^X\(\/\).*/{ s//\1/; q; }
22784          s/.*/./; q'`/stamp-h$_am_stamp_count
22785done
22786_ACEOF
22787cat >>$CONFIG_STATUS <<\_ACEOF
22788
22789#
22790# CONFIG_COMMANDS section.
22791#
22792for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22793  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22794  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22795  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22796$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22797         X"$ac_dest" : 'X\(//\)[^/]' \| \
22798         X"$ac_dest" : 'X\(//\)$' \| \
22799         X"$ac_dest" : 'X\(/\)' \| \
22800         .     : '\(.\)' 2>/dev/null ||
22801echo X"$ac_dest" |
22802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22803          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22804          /^X\(\/\/\)$/{ s//\1/; q; }
22805          /^X\(\/\).*/{ s//\1/; q; }
22806          s/.*/./; q'`
22807  { if $as_mkdir_p; then
22808    mkdir -p "$ac_dir"
22809  else
22810    as_dir="$ac_dir"
22811    as_dirs=
22812    while test ! -d "$as_dir"; do
22813      as_dirs="$as_dir $as_dirs"
22814      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22816         X"$as_dir" : 'X\(//\)[^/]' \| \
22817         X"$as_dir" : 'X\(//\)$' \| \
22818         X"$as_dir" : 'X\(/\)' \| \
22819         .     : '\(.\)' 2>/dev/null ||
22820echo X"$as_dir" |
22821    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22822          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22823          /^X\(\/\/\)$/{ s//\1/; q; }
22824          /^X\(\/\).*/{ s//\1/; q; }
22825          s/.*/./; q'`
22826    done
22827    test ! -n "$as_dirs" || mkdir $as_dirs
22828  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22829echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22830   { (exit 1); exit 1; }; }; }
22831
22832  ac_builddir=.
22833
22834if test "$ac_dir" != .; then
22835  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22836  # A "../" for each directory in $ac_dir_suffix.
22837  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22838else
22839  ac_dir_suffix= ac_top_builddir=
22840fi
22841
22842case $srcdir in
22843  .)  # No --srcdir option.  We are building in place.
22844    ac_srcdir=.
22845    if test -z "$ac_top_builddir"; then
22846       ac_top_srcdir=.
22847    else
22848       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22849    fi ;;
22850  [\\/]* | ?:[\\/]* )  # Absolute path.
22851    ac_srcdir=$srcdir$ac_dir_suffix;
22852    ac_top_srcdir=$srcdir ;;
22853  *) # Relative path.
22854    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22855    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22856esac
22857
22858# Do not use `cd foo && pwd` to compute absolute paths, because
22859# the directories may not exist.
22860case `pwd` in
22861.) ac_abs_builddir="$ac_dir";;
22862*)
22863  case "$ac_dir" in
22864  .) ac_abs_builddir=`pwd`;;
22865  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22866  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22867  esac;;
22868esac
22869case $ac_abs_builddir in
22870.) ac_abs_top_builddir=${ac_top_builddir}.;;
22871*)
22872  case ${ac_top_builddir}. in
22873  .) ac_abs_top_builddir=$ac_abs_builddir;;
22874  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22875  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22876  esac;;
22877esac
22878case $ac_abs_builddir in
22879.) ac_abs_srcdir=$ac_srcdir;;
22880*)
22881  case $ac_srcdir in
22882  .) ac_abs_srcdir=$ac_abs_builddir;;
22883  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22884  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22885  esac;;
22886esac
22887case $ac_abs_builddir in
22888.) ac_abs_top_srcdir=$ac_top_srcdir;;
22889*)
22890  case $ac_top_srcdir in
22891  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22892  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22893  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22894  esac;;
22895esac
22896
22897
22898  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22899echo "$as_me: executing $ac_dest commands" >&6;}
22900  case $ac_dest in
22901    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22902  # Strip MF so we end up with the name of the file.
22903  mf=`echo "$mf" | sed -e 's/:.*$//'`
22904  # Check whether this is an Automake generated Makefile or not.
22905  # We used to match only the files named `Makefile.in', but
22906  # some people rename them; so instead we look at the file content.
22907  # Grep'ing the first line is not enough: some people post-process
22908  # each Makefile.in and add a new line on top of each file to say so.
22909  # So let's grep whole file.
22910  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22911    dirpart=`(dirname "$mf") 2>/dev/null ||
22912$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22913         X"$mf" : 'X\(//\)[^/]' \| \
22914         X"$mf" : 'X\(//\)$' \| \
22915         X"$mf" : 'X\(/\)' \| \
22916         .     : '\(.\)' 2>/dev/null ||
22917echo X"$mf" |
22918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22919          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22920          /^X\(\/\/\)$/{ s//\1/; q; }
22921          /^X\(\/\).*/{ s//\1/; q; }
22922          s/.*/./; q'`
22923  else
22924    continue
22925  fi
22926  # Extract the definition of DEPDIR, am__include, and am__quote
22927  # from the Makefile without running `make'.
22928  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22929  test -z "$DEPDIR" && continue
22930  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22931  test -z "am__include" && continue
22932  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22933  # When using ansi2knr, U may be empty or an underscore; expand it
22934  U=`sed -n 's/^U = //p' < "$mf"`
22935  # Find all dependency output files, they are included files with
22936  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22937  # simplest approach to changing $(DEPDIR) to its actual value in the
22938  # expansion.
22939  for file in `sed -n "
22940    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22941       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22942    # Make sure the directory exists.
22943    test -f "$dirpart/$file" && continue
22944    fdir=`(dirname "$file") 2>/dev/null ||
22945$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22946         X"$file" : 'X\(//\)[^/]' \| \
22947         X"$file" : 'X\(//\)$' \| \
22948         X"$file" : 'X\(/\)' \| \
22949         .     : '\(.\)' 2>/dev/null ||
22950echo X"$file" |
22951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22952          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22953          /^X\(\/\/\)$/{ s//\1/; q; }
22954          /^X\(\/\).*/{ s//\1/; q; }
22955          s/.*/./; q'`
22956    { if $as_mkdir_p; then
22957    mkdir -p $dirpart/$fdir
22958  else
22959    as_dir=$dirpart/$fdir
22960    as_dirs=
22961    while test ! -d "$as_dir"; do
22962      as_dirs="$as_dir $as_dirs"
22963      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965         X"$as_dir" : 'X\(//\)[^/]' \| \
22966         X"$as_dir" : 'X\(//\)$' \| \
22967         X"$as_dir" : 'X\(/\)' \| \
22968         .     : '\(.\)' 2>/dev/null ||
22969echo X"$as_dir" |
22970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22971          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22972          /^X\(\/\/\)$/{ s//\1/; q; }
22973          /^X\(\/\).*/{ s//\1/; q; }
22974          s/.*/./; q'`
22975    done
22976    test ! -n "$as_dirs" || mkdir $as_dirs
22977  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22978echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22979   { (exit 1); exit 1; }; }; }
22980
22981    # echo "creating $dirpart/$file"
22982    echo '# dummy' > "$dirpart/$file"
22983  done
22984done
22985 ;;
22986  esac
22987done
22988_ACEOF
22989
22990cat >>$CONFIG_STATUS <<\_ACEOF
22991
22992{ (exit 0); exit 0; }
22993_ACEOF
22994chmod +x $CONFIG_STATUS
22995ac_clean_files=$ac_clean_files_save
22996
22997
22998# configure is writing to config.log, and then calls config.status.
22999# config.status does its own redirection, appending to config.log.
23000# Unfortunately, on DOS this fails, as config.log is still kept open
23001# by configure, so config.status won't be able to write to it; its
23002# output is simply discarded.  So we exec the FD to /dev/null,
23003# effectively closing config.log, so it can be properly (re)opened and
23004# appended to by config.status.  When coming back to configure, we
23005# need to make the FD available again.
23006if test "$no_create" != yes; then
23007  ac_cs_success=:
23008  ac_config_status_args=
23009  test "$silent" = yes &&
23010    ac_config_status_args="$ac_config_status_args --quiet"
23011  exec 5>/dev/null
23012  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23013  exec 5>>config.log
23014  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23015  # would make configure fail if this is the last instruction.
23016  $ac_cs_success || { (exit 1); exit 1; }
23017fi
23018
Note: See TracBrowser for help on using the repository browser.