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.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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="lib/mcrypt.c"
429ac_subdirs_all="$ac_subdirs_all libltdl"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S INCLTDL LIBLTDL LIBLTDL_DIR subdirs INSTALL_ALGORITHM_MODULES INSTALL_MODE_MODULES NOINSTALL_ALGORITHM_MODULES NOINSTALL_MODE_MODULES EXTRA_ALGOS EXTRA_OBJECTS LIBMCRYPT_MAJOR_VERSION LIBMCRYPT_MINOR_VERSION LIBMCRYPT_MICRO_VERSION LIBMCRYPT_VERSION LIBMCRYPT_MOST_RECENT_INTERFACE LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER LIBMCRYPT_OLDEST_INTERFACE LT_CURRENT LT_REVISION LT_AGE EGREP LIBOBJS SED ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBMCRYPT_LIBS LIBMCRYPT_CFLAGS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014System types:
1015  --build=BUILD     configure for building on BUILD [guessed]
1016  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017  --target=TARGET   configure for building compilers for TARGET [HOST]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022
1023  cat <<\_ACEOF
1024
1025Optional Features:
1026  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028  --enable-maintainer-mode  enable make rules and dependencies not useful
1029			  (and sometimes confusing) to the casual installer
1030  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-maintainer-mode enable maintainer mode
1033  --enable-dmalloc-mode enable dmalloc mode
1034  --enable-dynamic-loading   enable dynamic module loading
1035  --enable-static[=PKGS]
1036                          build static libraries [default=no]
1037  --enable-shared[=PKGS]
1038                          build shared libraries [default=yes]
1039  --enable-fast-install[=PKGS]
1040                          optimize for fast installation [default=yes]
1041  --disable-libtool-lock  avoid locking (might break parallel builds)
1042
1043Optional Packages:
1044  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046  --with-included-algos=algo1,algo2,... include algorithms/modes into the library
1047  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048  --with-pic              try to use only PIC/non-PIC objects [default=use
1049                          both]
1050  --with-tags[=TAGS]
1051                          include additional configurations [automatic]
1052
1053Some influential environment variables:
1054  CXX         C++ compiler command
1055  CXXFLAGS    C++ compiler flags
1056  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057              nonstandard directory <lib dir>
1058  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059              headers in a nonstandard directory <include dir>
1060  CC          C compiler command
1061  CFLAGS      C compiler flags
1062  CPP         C preprocessor
1063  CXXCPP      C++ preprocessor
1064  F77         Fortran 77 compiler command
1065  FFLAGS      Fortran 77 compiler flags
1066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074  # If there are subdirs, report their specific --help.
1075  ac_popdir=`pwd`
1076  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077    test -d $ac_dir || continue
1078    ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082  # A "../" for each directory in $ac_dir_suffix.
1083  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085  ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089  .)  # No --srcdir option.  We are building in place.
1090    ac_srcdir=.
1091    if test -z "$ac_top_builddir"; then
1092       ac_top_srcdir=.
1093    else
1094       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095    fi ;;
1096  [\\/]* | ?:[\\/]* )  # Absolute path.
1097    ac_srcdir=$srcdir$ac_dir_suffix;
1098    ac_top_srcdir=$srcdir ;;
1099  *) # Relative path.
1100    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109  case "$ac_dir" in
1110  .) ac_abs_builddir=`pwd`;;
1111  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113  esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118  case ${ac_top_builddir}. in
1119  .) ac_abs_top_builddir=$ac_abs_builddir;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_srcdir=$ac_srcdir;;
1126*)
1127  case $ac_srcdir in
1128  .) ac_abs_srcdir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136  case $ac_top_srcdir in
1137  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140  esac;;
1141esac
1142
1143    cd $ac_dir
1144    # Check for guested configure; otherwise get Cygnus style configure.
1145    if test -f $ac_srcdir/configure.gnu; then
1146      echo
1147      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148    elif test -f $ac_srcdir/configure; then
1149      echo
1150      $SHELL $ac_srcdir/configure  --help=recursive
1151    elif test -f $ac_srcdir/configure.ac ||
1152	   test -f $ac_srcdir/configure.in; then
1153      echo
1154      $ac_configure --help
1155    else
1156      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157    fi
1158    cd $ac_popdir
1159  done
1160fi
1161
1162test -n "$ac_init_help" && exit 0
1163if $ac_init_version; then
1164  cat <<\_ACEOF
1165
1166Copyright (C) 2003 Free Software Foundation, Inc.
1167This configure script is free software; the Free Software Foundation
1168gives unlimited permission to copy, distribute and modify it.
1169_ACEOF
1170  exit 0
1171fi
1172exec 5>config.log
1173cat >&5 <<_ACEOF
1174This file contains any messages produced by compilers while
1175running configure, to aid debugging if configure makes a mistake.
1176
1177It was created by $as_me, which was
1178generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180  $ $0 $@
1181
1182_ACEOF
1183{
1184cat <<_ASUNAME
1185## --------- ##
1186## Platform. ##
1187## --------- ##
1188
1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206_ASUNAME
1207
1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209for as_dir in $PATH
1210do
1211  IFS=$as_save_IFS
1212  test -z "$as_dir" && as_dir=.
1213  echo "PATH: $as_dir"
1214done
1215
1216} >&5
1217
1218cat >&5 <<_ACEOF
1219
1220
1221## ----------- ##
1222## Core tests. ##
1223## ----------- ##
1224
1225_ACEOF
1226
1227
1228# Keep a trace of the command line.
1229# Strip out --no-create and --no-recursion so they do not pile up.
1230# Strip out --silent because we don't want to record it for future runs.
1231# Also quote any args containing shell meta-characters.
1232# Make two passes to allow for proper duplicate-argument suppression.
1233ac_configure_args=
1234ac_configure_args0=
1235ac_configure_args1=
1236ac_sep=
1237ac_must_keep_next=false
1238for ac_pass in 1 2
1239do
1240  for ac_arg
1241  do
1242    case $ac_arg in
1243    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245    | -silent | --silent | --silen | --sile | --sil)
1246      continue ;;
1247    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249    esac
1250    case $ac_pass in
1251    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252    2)
1253      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254      if test $ac_must_keep_next = true; then
1255	ac_must_keep_next=false # Got value, back to normal.
1256      else
1257	case $ac_arg in
1258	  *=* | --config-cache | -C | -disable-* | --disable-* \
1259	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261	  | -with-* | --with-* | -without-* | --without-* | --x)
1262	    case "$ac_configure_args0 " in
1263	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264	    esac
1265	    ;;
1266	  -* ) ac_must_keep_next=true ;;
1267	esac
1268      fi
1269      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270      # Get rid of the leading space.
1271      ac_sep=" "
1272      ;;
1273    esac
1274  done
1275done
1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279# When interrupted or exit'd, cleanup temporary files, and complete
1280# config.log.  We remove comments because anyway the quotes in there
1281# would cause problems or look ugly.
1282# WARNING: Be sure not to use single quotes in there, as some shells,
1283# such as our DU 5.0 friend, will then `close' the trap.
1284trap 'exit_status=$?
1285  # Save into config.log some information that might help in debugging.
1286  {
1287    echo
1288
1289    cat <<\_ASBOX
1290## ---------------- ##
1291## Cache variables. ##
1292## ---------------- ##
1293_ASBOX
1294    echo
1295    # The following way of writing the cache mishandles newlines in values,
1296{
1297  (set) 2>&1 |
1298    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299    *ac_space=\ *)
1300      sed -n \
1301	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303      ;;
1304    *)
1305      sed -n \
1306	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307      ;;
1308    esac;
1309}
1310    echo
1311
1312    cat <<\_ASBOX
1313## ----------------- ##
1314## Output variables. ##
1315## ----------------- ##
1316_ASBOX
1317    echo
1318    for ac_var in $ac_subst_vars
1319    do
1320      eval ac_val=$`echo $ac_var`
1321      echo "$ac_var='"'"'$ac_val'"'"'"
1322    done | sort
1323    echo
1324
1325    if test -n "$ac_subst_files"; then
1326      cat <<\_ASBOX
1327## ------------- ##
1328## Output files. ##
1329## ------------- ##
1330_ASBOX
1331      echo
1332      for ac_var in $ac_subst_files
1333      do
1334	eval ac_val=$`echo $ac_var`
1335	echo "$ac_var='"'"'$ac_val'"'"'"
1336      done | sort
1337      echo
1338    fi
1339
1340    if test -s confdefs.h; then
1341      cat <<\_ASBOX
1342## ----------- ##
1343## confdefs.h. ##
1344## ----------- ##
1345_ASBOX
1346      echo
1347      sed "/^$/d" confdefs.h | sort
1348      echo
1349    fi
1350    test "$ac_signal" != 0 &&
1351      echo "$as_me: caught signal $ac_signal"
1352    echo "$as_me: exit $exit_status"
1353  } >&5
1354  rm -f core *.core &&
1355  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356    exit $exit_status
1357     ' 0
1358for ac_signal in 1 2 13 15; do
1359  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360done
1361ac_signal=0
1362
1363# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364rm -rf conftest* confdefs.h
1365# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366echo >confdefs.h
1367
1368# Predefined preprocessor variables.
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_NAME "$PACKAGE_NAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_STRING "$PACKAGE_STRING"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392_ACEOF
1393
1394
1395# Let the site file select an alternate cache file if it wants to.
1396# Prefer explicitly selected file to automatically selected ones.
1397if test -z "$CONFIG_SITE"; then
1398  if test "x$prefix" != xNONE; then
1399    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400  else
1401    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402  fi
1403fi
1404for ac_site_file in $CONFIG_SITE; do
1405  if test -r "$ac_site_file"; then
1406    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407echo "$as_me: loading site script $ac_site_file" >&6;}
1408    sed 's/^/| /' "$ac_site_file" >&5
1409    . "$ac_site_file"
1410  fi
1411done
1412
1413if test -r "$cache_file"; then
1414  # Some versions of bash will fail to source /dev/null (special
1415  # files actually), so we avoid doing that.
1416  if test -f "$cache_file"; then
1417    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418echo "$as_me: loading cache $cache_file" >&6;}
1419    case $cache_file in
1420      [\\/]* | ?:[\\/]* ) . $cache_file;;
1421      *)                      . ./$cache_file;;
1422    esac
1423  fi
1424else
1425  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426echo "$as_me: creating cache $cache_file" >&6;}
1427  >$cache_file
1428fi
1429
1430# Check that the precious variables saved in the cache have kept the same
1431# value.
1432ac_cache_corrupted=false
1433for ac_var in `(set) 2>&1 |
1434	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436  eval ac_new_set=\$ac_env_${ac_var}_set
1437  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438  eval ac_new_val="\$ac_env_${ac_var}_value"
1439  case $ac_old_set,$ac_new_set in
1440    set,)
1441      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443      ac_cache_corrupted=: ;;
1444    ,set)
1445      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447      ac_cache_corrupted=: ;;
1448    ,);;
1449    *)
1450      if test "x$ac_old_val" != "x$ac_new_val"; then
1451	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454echo "$as_me:   former value:  $ac_old_val" >&2;}
1455	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456echo "$as_me:   current value: $ac_new_val" >&2;}
1457	ac_cache_corrupted=:
1458      fi;;
1459  esac
1460  # Pass precious variables to config.status.
1461  if test "$ac_new_set" = set; then
1462    case $ac_new_val in
1463    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465    *) ac_arg=$ac_var=$ac_new_val ;;
1466    esac
1467    case " $ac_configure_args " in
1468      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470    esac
1471  fi
1472done
1473if $ac_cache_corrupted; then
1474  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478   { (exit 1); exit 1; }; }
1479fi
1480
1481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506LIBMCRYPT_MAJOR_VERSION=2
1507LIBMCRYPT_MINOR_VERSION=5
1508LIBMCRYPT_MICRO_VERSION=8
1509LIBMCRYPT_VERSION=$LIBMCRYPT_MAJOR_VERSION.$LIBMCRYPT_MINOR_VERSION.$LIBMCRYPT_MICRO_VERSION
1510
1511LIBMCRYPT_MOST_RECENT_INTERFACE=8
1512LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER=$LIBMCRYPT_MICRO_VERSION
1513LIBMCRYPT_OLDEST_INTERFACE=4
1514
1515ac_aux_dir=
1516for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1517  if test -f $ac_dir/install-sh; then
1518    ac_aux_dir=$ac_dir
1519    ac_install_sh="$ac_aux_dir/install-sh -c"
1520    break
1521  elif test -f $ac_dir/install.sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install.sh -c"
1524    break
1525  elif test -f $ac_dir/shtool; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/shtool install -c"
1528    break
1529  fi
1530done
1531if test -z "$ac_aux_dir"; then
1532  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1533echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1534   { (exit 1); exit 1; }; }
1535fi
1536ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1537ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1538ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1539
1540# Make sure we can run config.sub.
1541$ac_config_sub sun4 >/dev/null 2>&1 ||
1542  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1543echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544   { (exit 1); exit 1; }; }
1545
1546echo "$as_me:$LINENO: checking build system type" >&5
1547echo $ECHO_N "checking build system type... $ECHO_C" >&6
1548if test "${ac_cv_build+set}" = set; then
1549  echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
1551  ac_cv_build_alias=$build_alias
1552test -z "$ac_cv_build_alias" &&
1553  ac_cv_build_alias=`$ac_config_guess`
1554test -z "$ac_cv_build_alias" &&
1555  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1556echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1557   { (exit 1); exit 1; }; }
1558ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1559  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1560echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1561   { (exit 1); exit 1; }; }
1562
1563fi
1564echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1565echo "${ECHO_T}$ac_cv_build" >&6
1566build=$ac_cv_build
1567build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572echo "$as_me:$LINENO: checking host system type" >&5
1573echo $ECHO_N "checking host system type... $ECHO_C" >&6
1574if test "${ac_cv_host+set}" = set; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  ac_cv_host_alias=$host_alias
1578test -z "$ac_cv_host_alias" &&
1579  ac_cv_host_alias=$ac_cv_build_alias
1580ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1581  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1583   { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1587echo "${ECHO_T}$ac_cv_host" >&6
1588host=$ac_cv_host
1589host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594echo "$as_me:$LINENO: checking target system type" >&5
1595echo $ECHO_N "checking target system type... $ECHO_C" >&6
1596if test "${ac_cv_target+set}" = set; then
1597  echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599  ac_cv_target_alias=$target_alias
1600test "x$ac_cv_target_alias" = "x" &&
1601  ac_cv_target_alias=$ac_cv_host_alias
1602ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1603  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1605   { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1609echo "${ECHO_T}$ac_cv_target" >&6
1610target=$ac_cv_target
1611target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616# The aliases save the names the user supplied, while $host etc.
1617# will get canonicalized.
1618test -n "$target_alias" &&
1619  test "$program_prefix$program_suffix$program_transform_name" = \
1620    NONENONEs,x,x, &&
1621  program_prefix=${target_alias}-
1622am__api_version="1.9"
1623# Find a good install program.  We prefer a C program (faster),
1624# so one script is as good as another.  But avoid the broken or
1625# incompatible versions:
1626# SysV /etc/install, /usr/sbin/install
1627# SunOS /usr/etc/install
1628# IRIX /sbin/install
1629# AIX /bin/install
1630# AmigaOS /C/install, which installs bootblocks on floppy discs
1631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1634# OS/2's system install, which has a completely different semantic
1635# ./install, which can be erroneously created by make from ./install.sh.
1636echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1637echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1638if test -z "$INSTALL"; then
1639if test "${ac_cv_path_install+set}" = set; then
1640  echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645  IFS=$as_save_IFS
1646  test -z "$as_dir" && as_dir=.
1647  # Account for people who put trailing slashes in PATH elements.
1648case $as_dir/ in
1649  ./ | .// | /cC/* | \
1650  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1651  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1652  /usr/ucb/* ) ;;
1653  *)
1654    # OSF1 and SCO ODT 3.0 have their own names for install.
1655    # Don't use installbsd from OSF since it installs stuff as root
1656    # by default.
1657    for ac_prog in ginstall scoinst install; do
1658      for ac_exec_ext in '' $ac_executable_extensions; do
1659	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1660	  if test $ac_prog = install &&
1661	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662	    # AIX install.  It has an incompatible calling convention.
1663	    :
1664	  elif test $ac_prog = install &&
1665	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1666	    # program-specific install script used by HP pwplus--don't use.
1667	    :
1668	  else
1669	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1670	    break 3
1671	  fi
1672	fi
1673      done
1674    done
1675    ;;
1676esac
1677done
1678
1679
1680fi
1681  if test "${ac_cv_path_install+set}" = set; then
1682    INSTALL=$ac_cv_path_install
1683  else
1684    # As a last resort, use the slow shell script.  We don't cache a
1685    # path for INSTALL within a source directory, because that will
1686    # break other packages using the cache if that directory is
1687    # removed, or if the path is relative.
1688    INSTALL=$ac_install_sh
1689  fi
1690fi
1691echo "$as_me:$LINENO: result: $INSTALL" >&5
1692echo "${ECHO_T}$INSTALL" >&6
1693
1694# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1695# It thinks the first close brace ends the variable substitution.
1696test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1697
1698test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1699
1700test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1701
1702echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1703echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1704# Just in case
1705sleep 1
1706echo timestamp > conftest.file
1707# Do `set' in a subshell so we don't clobber the current shell's
1708# arguments.  Must try -L first in case configure is actually a
1709# symlink; some systems play weird games with the mod time of symlinks
1710# (eg FreeBSD returns the mod time of the symlink's containing
1711# directory).
1712if (
1713   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1714   if test "$*" = "X"; then
1715      # -L didn't work.
1716      set X `ls -t $srcdir/configure conftest.file`
1717   fi
1718   rm -f conftest.file
1719   if test "$*" != "X $srcdir/configure conftest.file" \
1720      && test "$*" != "X conftest.file $srcdir/configure"; then
1721
1722      # If neither matched, then we have a broken ls.  This can happen
1723      # if, for instance, CONFIG_SHELL is bash and it inherits a
1724      # broken ls alias from the environment.  This has actually
1725      # happened.  Such a system could not be considered "sane".
1726      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1727alias in your environment" >&5
1728echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1729alias in your environment" >&2;}
1730   { (exit 1); exit 1; }; }
1731   fi
1732
1733   test "$2" = conftest.file
1734   )
1735then
1736   # Ok.
1737   :
1738else
1739   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1740Check your system clock" >&5
1741echo "$as_me: error: newly created file is older than distributed files!
1742Check your system clock" >&2;}
1743   { (exit 1); exit 1; }; }
1744fi
1745echo "$as_me:$LINENO: result: yes" >&5
1746echo "${ECHO_T}yes" >&6
1747test "$program_prefix" != NONE &&
1748  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1749# Use a double $ so make ignores it.
1750test "$program_suffix" != NONE &&
1751  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1752# Double any \ or $.  echo might interpret backslashes.
1753# By default was `s,x,x', remove it if useless.
1754cat <<\_ACEOF >conftest.sed
1755s/[\\$]/&&/g;s/;s,x,x,$//
1756_ACEOF
1757program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1758rm conftest.sed
1759
1760# expand $ac_aux_dir to an absolute path
1761am_aux_dir=`cd $ac_aux_dir && pwd`
1762
1763test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1764# Use eval to expand $SHELL
1765if eval "$MISSING --run true"; then
1766  am_missing_run="$MISSING --run "
1767else
1768  am_missing_run=
1769  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1770echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1771fi
1772
1773if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1774  # We used to keeping the `.' as first argument, in order to
1775  # allow $(mkdir_p) to be used without argument.  As in
1776  #   $(mkdir_p) $(somedir)
1777  # where $(somedir) is conditionally defined.  However this is wrong
1778  # for two reasons:
1779  #  1. if the package is installed by a user who cannot write `.'
1780  #     make install will fail,
1781  #  2. the above comment should most certainly read
1782  #     $(mkdir_p) $(DESTDIR)$(somedir)
1783  #     so it does not work when $(somedir) is undefined and
1784  #     $(DESTDIR) is not.
1785  #  To support the latter case, we have to write
1786  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1787  #  so the `.' trick is pointless.
1788  mkdir_p='mkdir -p --'
1789else
1790  # On NextStep and OpenStep, the `mkdir' command does not
1791  # recognize any option.  It will interpret all options as
1792  # directories to create, and then abort because `.' already
1793  # exists.
1794  for d in ./-p ./--version;
1795  do
1796    test -d $d && rmdir $d
1797  done
1798  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1799  if test -f "$ac_aux_dir/mkinstalldirs"; then
1800    mkdir_p='$(mkinstalldirs)'
1801  else
1802    mkdir_p='$(install_sh) -d'
1803  fi
1804fi
1805
1806for ac_prog in gawk mawk nawk awk
1807do
1808  # Extract the first word of "$ac_prog", so it can be a program name with args.
1809set dummy $ac_prog; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_AWK+set}" = set; then
1813  echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815  if test -n "$AWK"; then
1816  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821  IFS=$as_save_IFS
1822  test -z "$as_dir" && as_dir=.
1823  for ac_exec_ext in '' $ac_executable_extensions; do
1824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825    ac_cv_prog_AWK="$ac_prog"
1826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827    break 2
1828  fi
1829done
1830done
1831
1832fi
1833fi
1834AWK=$ac_cv_prog_AWK
1835if test -n "$AWK"; then
1836  echo "$as_me:$LINENO: result: $AWK" >&5
1837echo "${ECHO_T}$AWK" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843  test -n "$AWK" && break
1844done
1845
1846echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1847echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1848set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1849if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1850  echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852  cat >conftest.make <<\_ACEOF
1853all:
1854	@echo 'ac_maketemp="$(MAKE)"'
1855_ACEOF
1856# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1857eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1858if test -n "$ac_maketemp"; then
1859  eval ac_cv_prog_make_${ac_make}_set=yes
1860else
1861  eval ac_cv_prog_make_${ac_make}_set=no
1862fi
1863rm -f conftest.make
1864fi
1865if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1866  echo "$as_me:$LINENO: result: yes" >&5
1867echo "${ECHO_T}yes" >&6
1868  SET_MAKE=
1869else
1870  echo "$as_me:$LINENO: result: no" >&5
1871echo "${ECHO_T}no" >&6
1872  SET_MAKE="MAKE=${MAKE-make}"
1873fi
1874
1875rm -rf .tst 2>/dev/null
1876mkdir .tst 2>/dev/null
1877if test -d .tst; then
1878  am__leading_dot=.
1879else
1880  am__leading_dot=_
1881fi
1882rmdir .tst 2>/dev/null
1883
1884# test to see if srcdir already configured
1885if test "`cd $srcdir && pwd`" != "`pwd`" &&
1886   test -f $srcdir/config.status; then
1887  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1888echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1889   { (exit 1); exit 1; }; }
1890fi
1891
1892# test whether we have cygpath
1893if test -z "$CYGPATH_W"; then
1894  if (cygpath --version) >/dev/null 2>/dev/null; then
1895    CYGPATH_W='cygpath -w'
1896  else
1897    CYGPATH_W=echo
1898  fi
1899fi
1900
1901
1902# Define the identity of the package.
1903 PACKAGE=libmcrypt
1904 VERSION=$LIBMCRYPT_VERSION
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE "$PACKAGE"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define VERSION "$VERSION"
1914_ACEOF
1915
1916# Some tools Automake needs.
1917
1918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1919
1920
1921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1922
1923
1924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1925
1926
1927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1928
1929
1930MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1931
1932install_sh=${install_sh-"$am_aux_dir/install-sh"}
1933
1934# Installed binaries are usually stripped using `strip' when the user
1935# run `make install-strip'.  However `strip' might not be the right
1936# tool to use in cross-compilation environments, therefore Automake
1937# will honor the `STRIP' environment variable to overrule this program.
1938if test "$cross_compiling" != no; then
1939  if test -n "$ac_tool_prefix"; then
1940  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1941set dummy ${ac_tool_prefix}strip; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_STRIP+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$STRIP"; then
1948  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966STRIP=$ac_cv_prog_STRIP
1967if test -n "$STRIP"; then
1968  echo "$as_me:$LINENO: result: $STRIP" >&5
1969echo "${ECHO_T}$STRIP" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975fi
1976if test -z "$ac_cv_prog_STRIP"; then
1977  ac_ct_STRIP=$STRIP
1978  # Extract the first word of "strip", so it can be a program name with args.
1979set dummy strip; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$ac_ct_STRIP"; then
1986  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_ac_ct_STRIP="strip"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2003fi
2004fi
2005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2006if test -n "$ac_ct_STRIP"; then
2007  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2008echo "${ECHO_T}$ac_ct_STRIP" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014  STRIP=$ac_ct_STRIP
2015else
2016  STRIP="$ac_cv_prog_STRIP"
2017fi
2018
2019fi
2020INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2021
2022# We need awk for the "check" target.  The system "awk" is bad on
2023# some platforms.
2024# Always define AMTAR for backward compatibility.
2025
2026AMTAR=${AMTAR-"${am_missing_run}tar"}
2027
2028am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2029
2030
2031
2032
2033
2034          ac_config_headers="$ac_config_headers config.h"
2035
2036
2037echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2038echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2039    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2040if test "${enable_maintainer_mode+set}" = set; then
2041  enableval="$enable_maintainer_mode"
2042  USE_MAINTAINER_MODE=$enableval
2043else
2044  USE_MAINTAINER_MODE=no
2045fi;
2046  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2047echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2048
2049
2050if test $USE_MAINTAINER_MODE = yes; then
2051  MAINTAINER_MODE_TRUE=
2052  MAINTAINER_MODE_FALSE='#'
2053else
2054  MAINTAINER_MODE_TRUE='#'
2055  MAINTAINER_MODE_FALSE=
2056fi
2057
2058  MAINT=$MAINTAINER_MODE_TRUE
2059
2060
2061
2062echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2063echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2064set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2065if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  cat >conftest.make <<\_ACEOF
2069all:
2070	@echo 'ac_maketemp="$(MAKE)"'
2071_ACEOF
2072# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2073eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2074if test -n "$ac_maketemp"; then
2075  eval ac_cv_prog_make_${ac_make}_set=yes
2076else
2077  eval ac_cv_prog_make_${ac_make}_set=no
2078fi
2079rm -f conftest.make
2080fi
2081if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2082  echo "$as_me:$LINENO: result: yes" >&5
2083echo "${ECHO_T}yes" >&6
2084  SET_MAKE=
2085else
2086  echo "$as_me:$LINENO: result: no" >&5
2087echo "${ECHO_T}no" >&6
2088  SET_MAKE="MAKE=${MAKE-make}"
2089fi
2090
2091
2092ac_ext=cc
2093ac_cpp='$CXXCPP $CPPFLAGS'
2094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2097if test -n "$ac_tool_prefix"; then
2098  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2099  do
2100    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2102echo "$as_me:$LINENO: checking for $ac_word" >&5
2103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104if test "${ac_cv_prog_CXX+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  if test -n "$CXX"; then
2108  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2109else
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115  for ac_exec_ext in '' $ac_executable_extensions; do
2116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119    break 2
2120  fi
2121done
2122done
2123
2124fi
2125fi
2126CXX=$ac_cv_prog_CXX
2127if test -n "$CXX"; then
2128  echo "$as_me:$LINENO: result: $CXX" >&5
2129echo "${ECHO_T}$CXX" >&6
2130else
2131  echo "$as_me:$LINENO: result: no" >&5
2132echo "${ECHO_T}no" >&6
2133fi
2134
2135    test -n "$CXX" && break
2136  done
2137fi
2138if test -z "$CXX"; then
2139  ac_ct_CXX=$CXX
2140  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2141do
2142  # Extract the first word of "$ac_prog", so it can be a program name with args.
2143set dummy $ac_prog; ac_word=$2
2144echo "$as_me:$LINENO: checking for $ac_word" >&5
2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2147  echo $ECHO_N "(cached) $ECHO_C" >&6
2148else
2149  if test -n "$ac_ct_CXX"; then
2150  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2151else
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155  IFS=$as_save_IFS
2156  test -z "$as_dir" && as_dir=.
2157  for ac_exec_ext in '' $ac_executable_extensions; do
2158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159    ac_cv_prog_ac_ct_CXX="$ac_prog"
2160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161    break 2
2162  fi
2163done
2164done
2165
2166fi
2167fi
2168ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2169if test -n "$ac_ct_CXX"; then
2170  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2171echo "${ECHO_T}$ac_ct_CXX" >&6
2172else
2173  echo "$as_me:$LINENO: result: no" >&5
2174echo "${ECHO_T}no" >&6
2175fi
2176
2177  test -n "$ac_ct_CXX" && break
2178done
2179test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2180
2181  CXX=$ac_ct_CXX
2182fi
2183
2184
2185# Provide some information about the compiler.
2186echo "$as_me:$LINENO:" \
2187     "checking for C++ compiler version" >&5
2188ac_compiler=`set X $ac_compile; echo $2`
2189{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2190  (eval $ac_compiler --version </dev/null >&5) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }
2194{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2195  (eval $ac_compiler -v </dev/null >&5) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }
2199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2200  (eval $ac_compiler -V </dev/null >&5) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }
2204
2205cat >conftest.$ac_ext <<_ACEOF
2206/* confdefs.h.  */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h.  */
2211
2212int
2213main ()
2214{
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220ac_clean_files_save=$ac_clean_files
2221ac_clean_files="$ac_clean_files a.out a.exe b.out"
2222# Try to create an executable without -o first, disregard a.out.
2223# It will help us diagnose broken compilers, and finding out an intuition
2224# of exeext.
2225echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2226echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2227ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2228if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2229  (eval $ac_link_default) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; then
2233  # Find the output, starting from the most likely.  This scheme is
2234# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2235# resort.
2236
2237# Be careful to initialize this variable, since it used to be cached.
2238# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2239ac_cv_exeext=
2240# b.out is created by i960 compilers.
2241for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2242do
2243  test -f "$ac_file" || continue
2244  case $ac_file in
2245    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2246	;;
2247    conftest.$ac_ext )
2248	# This is the source file.
2249	;;
2250    [ab].out )
2251	# We found the default executable, but exeext='' is most
2252	# certainly right.
2253	break;;
2254    *.* )
2255	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256	# FIXME: I believe we export ac_cv_exeext for Libtool,
2257	# but it would be cool to find out if it's true.  Does anybody
2258	# maintain Libtool? --akim.
2259	export ac_cv_exeext
2260	break;;
2261    * )
2262	break;;
2263  esac
2264done
2265else
2266  echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: C++ compiler cannot create executables
2272See \`config.log' for more details." >&2;}
2273   { (exit 77); exit 77; }; }
2274fi
2275
2276ac_exeext=$ac_cv_exeext
2277echo "$as_me:$LINENO: result: $ac_file" >&5
2278echo "${ECHO_T}$ac_file" >&6
2279
2280# Check the compiler produces executables we can run.  If not, either
2281# the compiler is broken, or we cross compile.
2282echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2283echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2284# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2285# If not cross compiling, check that we can run a simple program.
2286if test "$cross_compiling" != yes; then
2287  if { ac_try='./$ac_file'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; }; then
2293    cross_compiling=no
2294  else
2295    if test "$cross_compiling" = maybe; then
2296	cross_compiling=yes
2297    else
2298	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&5
2301echo "$as_me: error: cannot run C++ compiled programs.
2302If you meant to cross compile, use \`--host'.
2303See \`config.log' for more details." >&2;}
2304   { (exit 1); exit 1; }; }
2305    fi
2306  fi
2307fi
2308echo "$as_me:$LINENO: result: yes" >&5
2309echo "${ECHO_T}yes" >&6
2310
2311rm -f a.out a.exe conftest$ac_cv_exeext b.out
2312ac_clean_files=$ac_clean_files_save
2313# Check the compiler produces executables we can run.  If not, either
2314# the compiler is broken, or we cross compile.
2315echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2316echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2317echo "$as_me:$LINENO: result: $cross_compiling" >&5
2318echo "${ECHO_T}$cross_compiling" >&6
2319
2320echo "$as_me:$LINENO: checking for suffix of executables" >&5
2321echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2323  (eval $ac_link) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; then
2327  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2328# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2329# work properly (i.e., refer to `conftest.exe'), while it won't with
2330# `rm'.
2331for ac_file in conftest.exe conftest conftest.*; do
2332  test -f "$ac_file" || continue
2333  case $ac_file in
2334    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2335    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2336	  export ac_cv_exeext
2337	  break;;
2338    * ) break;;
2339  esac
2340done
2341else
2342  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2345See \`config.log' for more details." >&2;}
2346   { (exit 1); exit 1; }; }
2347fi
2348
2349rm -f conftest$ac_cv_exeext
2350echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2351echo "${ECHO_T}$ac_cv_exeext" >&6
2352
2353rm -f conftest.$ac_ext
2354EXEEXT=$ac_cv_exeext
2355ac_exeext=$EXEEXT
2356echo "$as_me:$LINENO: checking for suffix of object files" >&5
2357echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2358if test "${ac_cv_objext+set}" = set; then
2359  echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367
2368int
2369main ()
2370{
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.o conftest.obj
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; then
2382  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2383  case $ac_file in
2384    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2385    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386       break;;
2387  esac
2388done
2389else
2390  echo "$as_me: failed program was:" >&5
2391sed 's/^/| /' conftest.$ac_ext >&5
2392
2393{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&5
2395echo "$as_me: error: cannot compute suffix of object files: cannot compile
2396See \`config.log' for more details." >&2;}
2397   { (exit 1); exit 1; }; }
2398fi
2399
2400rm -f conftest.$ac_cv_objext conftest.$ac_ext
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2403echo "${ECHO_T}$ac_cv_objext" >&6
2404OBJEXT=$ac_cv_objext
2405ac_objext=$OBJEXT
2406echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2407echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2408if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2409  echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411  cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h.  */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h.  */
2417
2418int
2419main ()
2420{
2421#ifndef __GNUC__
2422       choke me
2423#endif
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431  (eval $ac_compile) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } &&
2438	 { ac_try='test -z "$ac_cxx_werror_flag"
2439			 || test ! -s conftest.err'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; } &&
2445	 { ac_try='test -s conftest.$ac_objext'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451  ac_compiler_gnu=yes
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456ac_compiler_gnu=no
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2460
2461fi
2462echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2463echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2464GXX=`test $ac_compiler_gnu = yes && echo yes`
2465ac_test_CXXFLAGS=${CXXFLAGS+set}
2466ac_save_CXXFLAGS=$CXXFLAGS
2467CXXFLAGS="-g"
2468echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2469echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2470if test "${ac_cv_prog_cxx_g+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479
2480int
2481main ()
2482{
2483
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490  (eval $ac_compile) 2>conftest.er1
2491  ac_status=$?
2492  grep -v '^ *+' conftest.er1 >conftest.err
2493  rm -f conftest.er1
2494  cat conftest.err >&5
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); } &&
2497	 { ac_try='test -z "$ac_cxx_werror_flag"
2498			 || test ! -s conftest.err'
2499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500  (eval $ac_try) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }; } &&
2504	 { ac_try='test -s conftest.$ac_objext'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; }; then
2510  ac_cv_prog_cxx_g=yes
2511else
2512  echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515ac_cv_prog_cxx_g=no
2516fi
2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518fi
2519echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2520echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2521if test "$ac_test_CXXFLAGS" = set; then
2522  CXXFLAGS=$ac_save_CXXFLAGS
2523elif test $ac_cv_prog_cxx_g = yes; then
2524  if test "$GXX" = yes; then
2525    CXXFLAGS="-g -O2"
2526  else
2527    CXXFLAGS="-g"
2528  fi
2529else
2530  if test "$GXX" = yes; then
2531    CXXFLAGS="-O2"
2532  else
2533    CXXFLAGS=
2534  fi
2535fi
2536for ac_declaration in \
2537   '' \
2538   'extern "C" void std::exit (int) throw (); using std::exit;' \
2539   'extern "C" void std::exit (int); using std::exit;' \
2540   'extern "C" void exit (int) throw ();' \
2541   'extern "C" void exit (int);' \
2542   'void exit (int);'
2543do
2544  cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550$ac_declaration
2551#include <stdlib.h>
2552int
2553main ()
2554{
2555exit (42);
2556  ;
2557  return 0;
2558}
2559_ACEOF
2560rm -f conftest.$ac_objext
2561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562  (eval $ac_compile) 2>conftest.er1
2563  ac_status=$?
2564  grep -v '^ *+' conftest.er1 >conftest.err
2565  rm -f conftest.er1
2566  cat conftest.err >&5
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); } &&
2569	 { ac_try='test -z "$ac_cxx_werror_flag"
2570			 || test ! -s conftest.err'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; } &&
2576	 { ac_try='test -s conftest.$ac_objext'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; }; then
2582  :
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587continue
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590  cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596$ac_declaration
2597int
2598main ()
2599{
2600exit (42);
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext
2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607  (eval $ac_compile) 2>conftest.er1
2608  ac_status=$?
2609  grep -v '^ *+' conftest.er1 >conftest.err
2610  rm -f conftest.er1
2611  cat conftest.err >&5
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); } &&
2614	 { ac_try='test -z "$ac_cxx_werror_flag"
2615			 || test ! -s conftest.err'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; } &&
2621	 { ac_try='test -s conftest.$ac_objext'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; }; then
2627  break
2628else
2629  echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
2632fi
2633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634done
2635rm -f conftest*
2636if test -n "$ac_declaration"; then
2637  echo '#ifdef __cplusplus' >>confdefs.h
2638  echo $ac_declaration      >>confdefs.h
2639  echo '#endif'             >>confdefs.h
2640fi
2641
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647DEPDIR="${am__leading_dot}deps"
2648
2649          ac_config_commands="$ac_config_commands depfiles"
2650
2651
2652am_make=${MAKE-make}
2653cat > confinc << 'END'
2654am__doit:
2655	@echo done
2656.PHONY: am__doit
2657END
2658# If we don't find an include directive, just comment out the code.
2659echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2660echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2661am__include="#"
2662am__quote=
2663_am_result=none
2664# First try GNU make style include.
2665echo "include confinc" > confmf
2666# We grep out `Entering directory' and `Leaving directory'
2667# messages which can occur if `w' ends up in MAKEFLAGS.
2668# In particular we don't look at `^make:' because GNU make might
2669# be invoked under some other name (usually "gmake"), in which
2670# case it prints its new name instead of `make'.
2671if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2672   am__include=include
2673   am__quote=
2674   _am_result=GNU
2675fi
2676# Now try BSD make style include.
2677if test "$am__include" = "#"; then
2678   echo '.include "confinc"' > confmf
2679   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2680      am__include=.include
2681      am__quote="\""
2682      _am_result=BSD
2683   fi
2684fi
2685
2686
2687echo "$as_me:$LINENO: result: $_am_result" >&5
2688echo "${ECHO_T}$_am_result" >&6
2689rm -f confinc confmf
2690
2691# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2692if test "${enable_dependency_tracking+set}" = set; then
2693  enableval="$enable_dependency_tracking"
2694
2695fi;
2696if test "x$enable_dependency_tracking" != xno; then
2697  am_depcomp="$ac_aux_dir/depcomp"
2698  AMDEPBACKSLASH='\'
2699fi
2700
2701
2702if test "x$enable_dependency_tracking" != xno; then
2703  AMDEP_TRUE=
2704  AMDEP_FALSE='#'
2705else
2706  AMDEP_TRUE='#'
2707  AMDEP_FALSE=
2708fi
2709
2710
2711
2712
2713depcc="$CXX"  am_compiler_list=
2714
2715echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2716echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2717if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2721  # We make a subdir and do the tests there.  Otherwise we can end up
2722  # making bogus files that we don't know about and never remove.  For
2723  # instance it was reported that on HP-UX the gcc test will end up
2724  # making a dummy file named `D' -- because `-MD' means `put the output
2725  # in D'.
2726  mkdir conftest.dir
2727  # Copy depcomp to subdir because otherwise we won't find it if we're
2728  # using a relative directory.
2729  cp "$am_depcomp" conftest.dir
2730  cd conftest.dir
2731  # We will build objects and dependencies in a subdirectory because
2732  # it helps to detect inapplicable dependency modes.  For instance
2733  # both Tru64's cc and ICC support -MD to output dependencies as a
2734  # side effect of compilation, but ICC will put the dependencies in
2735  # the current directory while Tru64 will put them in the object
2736  # directory.
2737  mkdir sub
2738
2739  am_cv_CXX_dependencies_compiler_type=none
2740  if test "$am_compiler_list" = ""; then
2741     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2742  fi
2743  for depmode in $am_compiler_list; do
2744    # Setup a source with many dependencies, because some compilers
2745    # like to wrap large dependency lists on column 80 (with \), and
2746    # we should not choose a depcomp mode which is confused by this.
2747    #
2748    # We need to recreate these files for each test, as the compiler may
2749    # overwrite some of them when testing with obscure command lines.
2750    # This happens at least with the AIX C compiler.
2751    : > sub/conftest.c
2752    for i in 1 2 3 4 5 6; do
2753      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2754      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2755      # Solaris 8's {/usr,}/bin/sh.
2756      touch sub/conftst$i.h
2757    done
2758    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2759
2760    case $depmode in
2761    nosideeffect)
2762      # after this tag, mechanisms are not by side-effect, so they'll
2763      # only be used when explicitly requested
2764      if test "x$enable_dependency_tracking" = xyes; then
2765	continue
2766      else
2767	break
2768      fi
2769      ;;
2770    none) break ;;
2771    esac
2772    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2773    # mode.  It turns out that the SunPro C++ compiler does not properly
2774    # handle `-M -o', and we need to detect this.
2775    if depmode=$depmode \
2776       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2777       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2778       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2779         >/dev/null 2>conftest.err &&
2780       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2781       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2782       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2783      # icc doesn't choke on unknown options, it will just issue warnings
2784      # or remarks (even with -Werror).  So we grep stderr for any message
2785      # that says an option was ignored or not supported.
2786      # When given -MP, icc 7.0 and 7.1 complain thusly:
2787      #   icc: Command line warning: ignoring option '-M'; no argument required
2788      # The diagnosis changed in icc 8.0:
2789      #   icc: Command line remark: option '-MP' not supported
2790      if (grep 'ignoring option' conftest.err ||
2791          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2792        am_cv_CXX_dependencies_compiler_type=$depmode
2793        break
2794      fi
2795    fi
2796  done
2797
2798  cd ..
2799  rm -rf conftest.dir
2800else
2801  am_cv_CXX_dependencies_compiler_type=none
2802fi
2803
2804fi
2805echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2806echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2807CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2808
2809
2810
2811if
2812  test "x$enable_dependency_tracking" != xno \
2813  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2814  am__fastdepCXX_TRUE=
2815  am__fastdepCXX_FALSE='#'
2816else
2817  am__fastdepCXX_TRUE='#'
2818  am__fastdepCXX_FALSE=
2819fi
2820
2821
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827if test -n "$ac_tool_prefix"; then
2828  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2829set dummy ${ac_tool_prefix}gcc; ac_word=$2
2830echo "$as_me:$LINENO: checking for $ac_word" >&5
2831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832if test "${ac_cv_prog_CC+set}" = set; then
2833  echo $ECHO_N "(cached) $ECHO_C" >&6
2834else
2835  if test -n "$CC"; then
2836  ac_cv_prog_CC="$CC" # Let the user override the test.
2837else
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  test -z "$as_dir" && as_dir=.
2843  for ac_exec_ext in '' $ac_executable_extensions; do
2844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850done
2851
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
2856  echo "$as_me:$LINENO: result: $CC" >&5
2857echo "${ECHO_T}$CC" >&6
2858else
2859  echo "$as_me:$LINENO: result: no" >&5
2860echo "${ECHO_T}no" >&6
2861fi
2862
2863fi
2864if test -z "$ac_cv_prog_CC"; then
2865  ac_ct_CC=$CC
2866  # Extract the first word of "gcc", so it can be a program name with args.
2867set dummy gcc; ac_word=$2
2868echo "$as_me:$LINENO: checking for $ac_word" >&5
2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871  echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873  if test -n "$ac_ct_CC"; then
2874  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881  for ac_exec_ext in '' $ac_executable_extensions; do
2882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883    ac_cv_prog_ac_ct_CC="gcc"
2884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888done
2889
2890fi
2891fi
2892ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893if test -n "$ac_ct_CC"; then
2894  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2895echo "${ECHO_T}$ac_ct_CC" >&6
2896else
2897  echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6
2899fi
2900
2901  CC=$ac_ct_CC
2902else
2903  CC="$ac_cv_prog_CC"
2904fi
2905
2906if test -z "$CC"; then
2907  if test -n "$ac_tool_prefix"; then
2908  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2909set dummy ${ac_tool_prefix}cc; ac_word=$2
2910echo "$as_me:$LINENO: checking for $ac_word" >&5
2911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912if test "${ac_cv_prog_CC+set}" = set; then
2913  echo $ECHO_N "(cached) $ECHO_C" >&6
2914else
2915  if test -n "$CC"; then
2916  ac_cv_prog_CC="$CC" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923  for ac_exec_ext in '' $ac_executable_extensions; do
2924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925    ac_cv_prog_CC="${ac_tool_prefix}cc"
2926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927    break 2
2928  fi
2929done
2930done
2931
2932fi
2933fi
2934CC=$ac_cv_prog_CC
2935if test -n "$CC"; then
2936  echo "$as_me:$LINENO: result: $CC" >&5
2937echo "${ECHO_T}$CC" >&6
2938else
2939  echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941fi
2942
2943fi
2944if test -z "$ac_cv_prog_CC"; then
2945  ac_ct_CC=$CC
2946  # Extract the first word of "cc", so it can be a program name with args.
2947set dummy cc; ac_word=$2
2948echo "$as_me:$LINENO: checking for $ac_word" >&5
2949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951  echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953  if test -n "$ac_ct_CC"; then
2954  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959  IFS=$as_save_IFS
2960  test -z "$as_dir" && as_dir=.
2961  for ac_exec_ext in '' $ac_executable_extensions; do
2962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_ac_ct_CC="cc"
2964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968done
2969
2970fi
2971fi
2972ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973if test -n "$ac_ct_CC"; then
2974  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2975echo "${ECHO_T}$ac_ct_CC" >&6
2976else
2977  echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
2979fi
2980
2981  CC=$ac_ct_CC
2982else
2983  CC="$ac_cv_prog_CC"
2984fi
2985
2986fi
2987if test -z "$CC"; then
2988  # Extract the first word of "cc", so it can be a program name with args.
2989set dummy cc; ac_word=$2
2990echo "$as_me:$LINENO: checking for $ac_word" >&5
2991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2992if test "${ac_cv_prog_CC+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  if test -n "$CC"; then
2996  ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998  ac_prog_rejected=no
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002  IFS=$as_save_IFS
3003  test -z "$as_dir" && as_dir=.
3004  for ac_exec_ext in '' $ac_executable_extensions; do
3005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007       ac_prog_rejected=yes
3008       continue
3009     fi
3010    ac_cv_prog_CC="cc"
3011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015done
3016
3017if test $ac_prog_rejected = yes; then
3018  # We found a bogon in the path, so make sure we never use it.
3019  set dummy $ac_cv_prog_CC
3020  shift
3021  if test $# != 0; then
3022    # We chose a different compiler from the bogus one.
3023    # However, it has the same basename, so the bogon will be chosen
3024    # first if we set CC to just the basename; use the full file name.
3025    shift
3026    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3027  fi
3028fi
3029fi
3030fi
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
3033  echo "$as_me:$LINENO: result: $CC" >&5
3034echo "${ECHO_T}$CC" >&6
3035else
3036  echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038fi
3039
3040fi
3041if test -z "$CC"; then
3042  if test -n "$ac_tool_prefix"; then
3043  for ac_prog in cl
3044  do
3045    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047echo "$as_me:$LINENO: checking for $ac_word" >&5
3048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3049if test "${ac_cv_prog_CC+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  if test -n "$CC"; then
3053  ac_cv_prog_CC="$CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060  for ac_exec_ext in '' $ac_executable_extensions; do
3061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067done
3068
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073  echo "$as_me:$LINENO: result: $CC" >&5
3074echo "${ECHO_T}$CC" >&6
3075else
3076  echo "$as_me:$LINENO: result: no" >&5
3077echo "${ECHO_T}no" >&6
3078fi
3079
3080    test -n "$CC" && break
3081  done
3082fi
3083if test -z "$CC"; then
3084  ac_ct_CC=$CC
3085  for ac_prog in cl
3086do
3087  # Extract the first word of "$ac_prog", so it can be a program name with args.
3088set dummy $ac_prog; ac_word=$2
3089echo "$as_me:$LINENO: checking for $ac_word" >&5
3090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3091if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3092  echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094  if test -n "$ac_ct_CC"; then
3095  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102  for ac_exec_ext in '' $ac_executable_extensions; do
3103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104    ac_cv_prog_ac_ct_CC="$ac_prog"
3105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106    break 2
3107  fi
3108done
3109done
3110
3111fi
3112fi
3113ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114if test -n "$ac_ct_CC"; then
3115  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3116echo "${ECHO_T}$ac_ct_CC" >&6
3117else
3118  echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120fi
3121
3122  test -n "$ac_ct_CC" && break
3123done
3124
3125  CC=$ac_ct_CC
3126fi
3127
3128fi
3129
3130
3131test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3132See \`config.log' for more details." >&5
3133echo "$as_me: error: no acceptable C compiler found in \$PATH
3134See \`config.log' for more details." >&2;}
3135   { (exit 1); exit 1; }; }
3136
3137# Provide some information about the compiler.
3138echo "$as_me:$LINENO:" \
3139     "checking for C compiler version" >&5
3140ac_compiler=`set X $ac_compile; echo $2`
3141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3142  (eval $ac_compiler --version </dev/null >&5) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }
3146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3147  (eval $ac_compiler -v </dev/null >&5) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); }
3151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3152  (eval $ac_compiler -V </dev/null >&5) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }
3156
3157echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3158echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3159if test "${ac_cv_c_compiler_gnu+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172#ifndef __GNUC__
3173       choke me
3174#endif
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext
3181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182  (eval $ac_compile) 2>conftest.er1
3183  ac_status=$?
3184  grep -v '^ *+' conftest.er1 >conftest.err
3185  rm -f conftest.er1
3186  cat conftest.err >&5
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); } &&
3189	 { ac_try='test -z "$ac_c_werror_flag"
3190			 || test ! -s conftest.err'
3191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192  (eval $ac_try) 2>&5
3193  ac_status=$?
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; } &&
3196	 { ac_try='test -s conftest.$ac_objext'
3197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198  (eval $ac_try) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }; }; then
3202  ac_compiler_gnu=yes
3203else
3204  echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207ac_compiler_gnu=no
3208fi
3209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3210ac_cv_c_compiler_gnu=$ac_compiler_gnu
3211
3212fi
3213echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3214echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3215GCC=`test $ac_compiler_gnu = yes && echo yes`
3216ac_test_CFLAGS=${CFLAGS+set}
3217ac_save_CFLAGS=$CFLAGS
3218CFLAGS="-g"
3219echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3220echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3221if test "${ac_cv_prog_cc_g+set}" = set; then
3222  echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224  cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h.  */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h.  */
3230
3231int
3232main ()
3233{
3234
3235  ;
3236  return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241  (eval $ac_compile) 2>conftest.er1
3242  ac_status=$?
3243  grep -v '^ *+' conftest.er1 >conftest.err
3244  rm -f conftest.er1
3245  cat conftest.err >&5
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); } &&
3248	 { ac_try='test -z "$ac_c_werror_flag"
3249			 || test ! -s conftest.err'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; } &&
3255	 { ac_try='test -s conftest.$ac_objext'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; }; then
3261  ac_cv_prog_cc_g=yes
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266ac_cv_prog_cc_g=no
3267fi
3268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3272if test "$ac_test_CFLAGS" = set; then
3273  CFLAGS=$ac_save_CFLAGS
3274elif test $ac_cv_prog_cc_g = yes; then
3275  if test "$GCC" = yes; then
3276    CFLAGS="-g -O2"
3277  else
3278    CFLAGS="-g"
3279  fi
3280else
3281  if test "$GCC" = yes; then
3282    CFLAGS="-O2"
3283  else
3284    CFLAGS=
3285  fi
3286fi
3287echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3288echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3289if test "${ac_cv_prog_cc_stdc+set}" = set; then
3290  echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292  ac_cv_prog_cc_stdc=no
3293ac_save_CC=$CC
3294cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300#include <stdarg.h>
3301#include <stdio.h>
3302#include <sys/types.h>
3303#include <sys/stat.h>
3304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3305struct buf { int x; };
3306FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307static char *e (p, i)
3308     char **p;
3309     int i;
3310{
3311  return p[i];
3312}
3313static char *f (char * (*g) (char **, int), char **p, ...)
3314{
3315  char *s;
3316  va_list v;
3317  va_start (v,p);
3318  s = g (p, va_arg (v,int));
3319  va_end (v);
3320  return s;
3321}
3322
3323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3324   function prototypes and stuff, but not '\xHH' hex character constants.
3325   These don't provoke an error unfortunately, instead are silently treated
3326   as 'x'.  The following induces an error, until -std1 is added to get
3327   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3328   array size at least.  It's necessary to write '\x00'==0 to get something
3329   that's true only with -std1.  */
3330int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3331
3332int test (int i, double x);
3333struct s1 {int (*f) (int a);};
3334struct s2 {int (*f) (double a);};
3335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336int argc;
3337char **argv;
3338int
3339main ()
3340{
3341return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346# Don't try gcc -ansi; that turns off useful extensions and
3347# breaks some systems' header files.
3348# AIX			-qlanglvl=ansi
3349# Ultrix and OSF/1	-std1
3350# HP-UX 10.20 and later	-Ae
3351# HP-UX older versions	-Aa -D_HPUX_SOURCE
3352# SVR4			-Xc -D__EXTENSIONS__
3353for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3354do
3355  CC="$ac_save_CC $ac_arg"
3356  rm -f conftest.$ac_objext
3357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358  (eval $ac_compile) 2>conftest.er1
3359  ac_status=$?
3360  grep -v '^ *+' conftest.er1 >conftest.err
3361  rm -f conftest.er1
3362  cat conftest.err >&5
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); } &&
3365	 { ac_try='test -z "$ac_c_werror_flag"
3366			 || test ! -s conftest.err'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; } &&
3372	 { ac_try='test -s conftest.$ac_objext'
3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374  (eval $ac_try) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; }; then
3378  ac_cv_prog_cc_stdc=$ac_arg
3379break
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384fi
3385rm -f conftest.err conftest.$ac_objext
3386done
3387rm -f conftest.$ac_ext conftest.$ac_objext
3388CC=$ac_save_CC
3389
3390fi
3391
3392case "x$ac_cv_prog_cc_stdc" in
3393  x|xno)
3394    echo "$as_me:$LINENO: result: none needed" >&5
3395echo "${ECHO_T}none needed" >&6 ;;
3396  *)
3397    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3398echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3399    CC="$CC $ac_cv_prog_cc_stdc" ;;
3400esac
3401
3402# Some people use a C++ compiler to compile C.  Since we use `exit',
3403# in C++ we need to declare it.  In case someone uses the same compiler
3404# for both compiling C and C++ we need to have the C++ compiler decide
3405# the declaration of exit, since it's the most demanding environment.
3406cat >conftest.$ac_ext <<_ACEOF
3407#ifndef __cplusplus
3408  choke me
3409#endif
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413  (eval $ac_compile) 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420	 { ac_try='test -z "$ac_c_werror_flag"
3421			 || test ! -s conftest.err'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; } &&
3427	 { ac_try='test -s conftest.$ac_objext'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433  for ac_declaration in \
3434   '' \
3435   'extern "C" void std::exit (int) throw (); using std::exit;' \
3436   'extern "C" void std::exit (int); using std::exit;' \
3437   'extern "C" void exit (int) throw ();' \
3438   'extern "C" void exit (int);' \
3439   'void exit (int);'
3440do
3441  cat >conftest.$ac_ext <<_ACEOF
3442/* confdefs.h.  */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h.  */
3447$ac_declaration
3448#include <stdlib.h>
3449int
3450main ()
3451{
3452exit (42);
3453  ;
3454  return 0;
3455}
3456_ACEOF
3457rm -f conftest.$ac_objext
3458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459  (eval $ac_compile) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466	 { ac_try='test -z "$ac_c_werror_flag"
3467			 || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473	 { ac_try='test -s conftest.$ac_objext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  :
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484continue
3485fi
3486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3487  cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493$ac_declaration
3494int
3495main ()
3496{
3497exit (42);
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502rm -f conftest.$ac_objext
3503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504  (eval $ac_compile) 2>conftest.er1
3505  ac_status=$?
3506  grep -v '^ *+' conftest.er1 >conftest.err
3507  rm -f conftest.er1
3508  cat conftest.err >&5
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); } &&
3511	 { ac_try='test -z "$ac_c_werror_flag"
3512			 || test ! -s conftest.err'
3513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514  (eval $ac_try) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; } &&
3518	 { ac_try='test -s conftest.$ac_objext'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; }; then
3524  break
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531done
3532rm -f conftest*
3533if test -n "$ac_declaration"; then
3534  echo '#ifdef __cplusplus' >>confdefs.h
3535  echo $ac_declaration      >>confdefs.h
3536  echo '#endif'             >>confdefs.h
3537fi
3538
3539else
3540  echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543fi
3544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545ac_ext=c
3546ac_cpp='$CPP $CPPFLAGS'
3547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551depcc="$CC"   am_compiler_list=
3552
3553echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3554echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3555if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3556  echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559  # We make a subdir and do the tests there.  Otherwise we can end up
3560  # making bogus files that we don't know about and never remove.  For
3561  # instance it was reported that on HP-UX the gcc test will end up
3562  # making a dummy file named `D' -- because `-MD' means `put the output
3563  # in D'.
3564  mkdir conftest.dir
3565  # Copy depcomp to subdir because otherwise we won't find it if we're
3566  # using a relative directory.
3567  cp "$am_depcomp" conftest.dir
3568  cd conftest.dir
3569  # We will build objects and dependencies in a subdirectory because
3570  # it helps to detect inapplicable dependency modes.  For instance
3571  # both Tru64's cc and ICC support -MD to output dependencies as a
3572  # side effect of compilation, but ICC will put the dependencies in
3573  # the current directory while Tru64 will put them in the object
3574  # directory.
3575  mkdir sub
3576
3577  am_cv_CC_dependencies_compiler_type=none
3578  if test "$am_compiler_list" = ""; then
3579     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580  fi
3581  for depmode in $am_compiler_list; do
3582    # Setup a source with many dependencies, because some compilers
3583    # like to wrap large dependency lists on column 80 (with \), and
3584    # we should not choose a depcomp mode which is confused by this.
3585    #
3586    # We need to recreate these files for each test, as the compiler may
3587    # overwrite some of them when testing with obscure command lines.
3588    # This happens at least with the AIX C compiler.
3589    : > sub/conftest.c
3590    for i in 1 2 3 4 5 6; do
3591      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3592      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3593      # Solaris 8's {/usr,}/bin/sh.
3594      touch sub/conftst$i.h
3595    done
3596    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3597
3598    case $depmode in
3599    nosideeffect)
3600      # after this tag, mechanisms are not by side-effect, so they'll
3601      # only be used when explicitly requested
3602      if test "x$enable_dependency_tracking" = xyes; then
3603	continue
3604      else
3605	break
3606      fi
3607      ;;
3608    none) break ;;
3609    esac
3610    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3611    # mode.  It turns out that the SunPro C++ compiler does not properly
3612    # handle `-M -o', and we need to detect this.
3613    if depmode=$depmode \
3614       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3615       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3616       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3617         >/dev/null 2>conftest.err &&
3618       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3619       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3620       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3621      # icc doesn't choke on unknown options, it will just issue warnings
3622      # or remarks (even with -Werror).  So we grep stderr for any message
3623      # that says an option was ignored or not supported.
3624      # When given -MP, icc 7.0 and 7.1 complain thusly:
3625      #   icc: Command line warning: ignoring option '-M'; no argument required
3626      # The diagnosis changed in icc 8.0:
3627      #   icc: Command line remark: option '-MP' not supported
3628      if (grep 'ignoring option' conftest.err ||
3629          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3630        am_cv_CC_dependencies_compiler_type=$depmode
3631        break
3632      fi
3633    fi
3634  done
3635
3636  cd ..
3637  rm -rf conftest.dir
3638else
3639  am_cv_CC_dependencies_compiler_type=none
3640fi
3641
3642fi
3643echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3644echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3645CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3646
3647
3648
3649if
3650  test "x$enable_dependency_tracking" != xno \
3651  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3652  am__fastdepCC_TRUE=
3653  am__fastdepCC_FALSE='#'
3654else
3655  am__fastdepCC_TRUE='#'
3656  am__fastdepCC_FALSE=
3657fi
3658
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3666echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3667# On Suns, sometimes $CPP names a directory.
3668if test -n "$CPP" && test -d "$CPP"; then
3669  CPP=
3670fi
3671if test -z "$CPP"; then
3672  if test "${ac_cv_prog_CPP+set}" = set; then
3673  echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675      # Double quotes because CPP needs to be expanded
3676    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677    do
3678      ac_preproc_ok=false
3679for ac_c_preproc_warn_flag in '' yes
3680do
3681  # Use a header file that comes with gcc, so configuring glibc
3682  # with a fresh cross-compiler works.
3683  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3684  # <limits.h> exists even on freestanding compilers.
3685  # On the NeXT, cc -E runs the code through the compiler's parser,
3686  # not just through cpp. "Syntax error" is here to catch this case.
3687  cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693#ifdef __STDC__
3694# include <limits.h>
3695#else
3696# include <assert.h>
3697#endif
3698		     Syntax error
3699_ACEOF
3700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } >/dev/null; then
3708  if test -s conftest.err; then
3709    ac_cpp_err=$ac_c_preproc_warn_flag
3710    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711  else
3712    ac_cpp_err=
3713  fi
3714else
3715  ac_cpp_err=yes
3716fi
3717if test -z "$ac_cpp_err"; then
3718  :
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723  # Broken: fails on valid input.
3724continue
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727
3728  # OK, works on sane cases.  Now check whether non-existent headers
3729  # can be detected and how.
3730  cat >conftest.$ac_ext <<_ACEOF
3731/* confdefs.h.  */
3732_ACEOF
3733cat confdefs.h >>conftest.$ac_ext
3734cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h.  */
3736#include <ac_nonexistent.h>
3737_ACEOF
3738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3739  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3740  ac_status=$?
3741  grep -v '^ *+' conftest.er1 >conftest.err
3742  rm -f conftest.er1
3743  cat conftest.err >&5
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); } >/dev/null; then
3746  if test -s conftest.err; then
3747    ac_cpp_err=$ac_c_preproc_warn_flag
3748    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3749  else
3750    ac_cpp_err=
3751  fi
3752else
3753  ac_cpp_err=yes
3754fi
3755if test -z "$ac_cpp_err"; then
3756  # Broken: success on invalid input.
3757continue
3758else
3759  echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762  # Passes both tests.
3763ac_preproc_ok=:
3764break
3765fi
3766rm -f conftest.err conftest.$ac_ext
3767
3768done
3769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770rm -f conftest.err conftest.$ac_ext
3771if $ac_preproc_ok; then
3772  break
3773fi
3774
3775    done
3776    ac_cv_prog_CPP=$CPP
3777
3778fi
3779  CPP=$ac_cv_prog_CPP
3780else
3781  ac_cv_prog_CPP=$CPP
3782fi
3783echo "$as_me:$LINENO: result: $CPP" >&5
3784echo "${ECHO_T}$CPP" >&6
3785ac_preproc_ok=false
3786for ac_c_preproc_warn_flag in '' yes
3787do
3788  # Use a header file that comes with gcc, so configuring glibc
3789  # with a fresh cross-compiler works.
3790  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791  # <limits.h> exists even on freestanding compilers.
3792  # On the NeXT, cc -E runs the code through the compiler's parser,
3793  # not just through cpp. "Syntax error" is here to catch this case.
3794  cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h.  */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h.  */
3800#ifdef __STDC__
3801# include <limits.h>
3802#else
3803# include <assert.h>
3804#endif
3805		     Syntax error
3806_ACEOF
3807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809  ac_status=$?
3810  grep -v '^ *+' conftest.er1 >conftest.err
3811  rm -f conftest.er1
3812  cat conftest.err >&5
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); } >/dev/null; then
3815  if test -s conftest.err; then
3816    ac_cpp_err=$ac_c_preproc_warn_flag
3817    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3818  else
3819    ac_cpp_err=
3820  fi
3821else
3822  ac_cpp_err=yes
3823fi
3824if test -z "$ac_cpp_err"; then
3825  :
3826else
3827  echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830  # Broken: fails on valid input.
3831continue
3832fi
3833rm -f conftest.err conftest.$ac_ext
3834
3835  # OK, works on sane cases.  Now check whether non-existent headers
3836  # can be detected and how.
3837  cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } >/dev/null; then
3853  if test -s conftest.err; then
3854    ac_cpp_err=$ac_c_preproc_warn_flag
3855    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3856  else
3857    ac_cpp_err=
3858  fi
3859else
3860  ac_cpp_err=yes
3861fi
3862if test -z "$ac_cpp_err"; then
3863  # Broken: success on invalid input.
3864continue
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869  # Passes both tests.
3870ac_preproc_ok=:
3871break
3872fi
3873rm -f conftest.err conftest.$ac_ext
3874
3875done
3876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877rm -f conftest.err conftest.$ac_ext
3878if $ac_preproc_ok; then
3879  :
3880else
3881  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3882See \`config.log' for more details." >&5
3883echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3884See \`config.log' for more details." >&2;}
3885   { (exit 1); exit 1; }; }
3886fi
3887
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894# Find a good install program.  We prefer a C program (faster),
3895# so one script is as good as another.  But avoid the broken or
3896# incompatible versions:
3897# SysV /etc/install, /usr/sbin/install
3898# SunOS /usr/etc/install
3899# IRIX /sbin/install
3900# AIX /bin/install
3901# AmigaOS /C/install, which installs bootblocks on floppy discs
3902# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3903# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3904# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3905# OS/2's system install, which has a completely different semantic
3906# ./install, which can be erroneously created by make from ./install.sh.
3907echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3908echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3909if test -z "$INSTALL"; then
3910if test "${ac_cv_path_install+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916  IFS=$as_save_IFS
3917  test -z "$as_dir" && as_dir=.
3918  # Account for people who put trailing slashes in PATH elements.
3919case $as_dir/ in
3920  ./ | .// | /cC/* | \
3921  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3922  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3923  /usr/ucb/* ) ;;
3924  *)
3925    # OSF1 and SCO ODT 3.0 have their own names for install.
3926    # Don't use installbsd from OSF since it installs stuff as root
3927    # by default.
3928    for ac_prog in ginstall scoinst install; do
3929      for ac_exec_ext in '' $ac_executable_extensions; do
3930	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3931	  if test $ac_prog = install &&
3932	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933	    # AIX install.  It has an incompatible calling convention.
3934	    :
3935	  elif test $ac_prog = install &&
3936	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937	    # program-specific install script used by HP pwplus--don't use.
3938	    :
3939	  else
3940	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3941	    break 3
3942	  fi
3943	fi
3944      done
3945    done
3946    ;;
3947esac
3948done
3949
3950
3951fi
3952  if test "${ac_cv_path_install+set}" = set; then
3953    INSTALL=$ac_cv_path_install
3954  else
3955    # As a last resort, use the slow shell script.  We don't cache a
3956    # path for INSTALL within a source directory, because that will
3957    # break other packages using the cache if that directory is
3958    # removed, or if the path is relative.
3959    INSTALL=$ac_install_sh
3960  fi
3961fi
3962echo "$as_me:$LINENO: result: $INSTALL" >&5
3963echo "${ECHO_T}$INSTALL" >&6
3964
3965# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3966# It thinks the first close brace ends the variable substitution.
3967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3968
3969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3970
3971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3972
3973echo "$as_me:$LINENO: checking whether ln -s works" >&5
3974echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3975LN_S=$as_ln_s
3976if test "$LN_S" = "ln -s"; then
3977  echo "$as_me:$LINENO: result: yes" >&5
3978echo "${ECHO_T}yes" >&6
3979else
3980  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3981echo "${ECHO_T}no, using $LN_S" >&6
3982fi
3983
3984echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3985echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3986set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3987if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  cat >conftest.make <<\_ACEOF
3991all:
3992	@echo 'ac_maketemp="$(MAKE)"'
3993_ACEOF
3994# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3995eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3996if test -n "$ac_maketemp"; then
3997  eval ac_cv_prog_make_${ac_make}_set=yes
3998else
3999  eval ac_cv_prog_make_${ac_make}_set=no
4000fi
4001rm -f conftest.make
4002fi
4003if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4004  echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6
4006  SET_MAKE=
4007else
4008  echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010  SET_MAKE="MAKE=${MAKE-make}"
4011fi
4012
4013
4014case "$host_os" in
4015        *w32*)
4016                LDFLAGS="$LDFLAGS -no-undefined"
4017
4018cat >>confdefs.h <<\_ACEOF
4019#define WIN32 1
4020_ACEOF
4021
4022        ;;
4023        *win32*)
4024                LDFLAGS="$LDFLAGS -no-undefined"
4025
4026cat >>confdefs.h <<\_ACEOF
4027#define WIN32 1
4028_ACEOF
4029
4030        ;;
4031        cygwin*)
4032                LDFLAGS="$LDFLAGS -no-undefined"
4033
4034cat >>confdefs.h <<\_ACEOF
4035#define WIN32 1
4036_ACEOF
4037
4038        ;;
4039esac
4040
4041# Find a good install program.  We prefer a C program (faster),
4042# so one script is as good as another.  But avoid the broken or
4043# incompatible versions:
4044# SysV /etc/install, /usr/sbin/install
4045# SunOS /usr/etc/install
4046# IRIX /sbin/install
4047# AIX /bin/install
4048# AmigaOS /C/install, which installs bootblocks on floppy discs
4049# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4050# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4051# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4052# OS/2's system install, which has a completely different semantic
4053# ./install, which can be erroneously created by make from ./install.sh.
4054echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4055echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4056if test -z "$INSTALL"; then
4057if test "${ac_cv_path_install+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065  # Account for people who put trailing slashes in PATH elements.
4066case $as_dir/ in
4067  ./ | .// | /cC/* | \
4068  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4070  /usr/ucb/* ) ;;
4071  *)
4072    # OSF1 and SCO ODT 3.0 have their own names for install.
4073    # Don't use installbsd from OSF since it installs stuff as root
4074    # by default.
4075    for ac_prog in ginstall scoinst install; do
4076      for ac_exec_ext in '' $ac_executable_extensions; do
4077	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4078	  if test $ac_prog = install &&
4079	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080	    # AIX install.  It has an incompatible calling convention.
4081	    :
4082	  elif test $ac_prog = install &&
4083	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084	    # program-specific install script used by HP pwplus--don't use.
4085	    :
4086	  else
4087	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4088	    break 3
4089	  fi
4090	fi
4091      done
4092    done
4093    ;;
4094esac
4095done
4096
4097
4098fi
4099  if test "${ac_cv_path_install+set}" = set; then
4100    INSTALL=$ac_cv_path_install
4101  else
4102    # As a last resort, use the slow shell script.  We don't cache a
4103    # path for INSTALL within a source directory, because that will
4104    # break other packages using the cache if that directory is
4105    # removed, or if the path is relative.
4106    INSTALL=$ac_install_sh
4107  fi
4108fi
4109echo "$as_me:$LINENO: result: $INSTALL" >&5
4110echo "${ECHO_T}$INSTALL" >&6
4111
4112# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4113# It thinks the first close brace ends the variable substitution.
4114test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4115
4116test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4117
4118test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4119
4120echo "$as_me:$LINENO: checking whether ln -s works" >&5
4121echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4122LN_S=$as_ln_s
4123if test "$LN_S" = "ln -s"; then
4124  echo "$as_me:$LINENO: result: yes" >&5
4125echo "${ECHO_T}yes" >&6
4126else
4127  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4128echo "${ECHO_T}no, using $LN_S" >&6
4129fi
4130
4131
4132
4133opt_maintainer_mode=no
4134echo "$as_me:$LINENO: checking whether in maintanance mode" >&5
4135echo $ECHO_N "checking whether in maintanance mode... $ECHO_C" >&6
4136# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4137if test "${enable_maintainer_mode+set}" = set; then
4138  enableval="$enable_maintainer_mode"
4139  opt_maintainer_mode=$enableval
4140fi;
4141echo "$as_me:$LINENO: result: $opt_maintainer_mode" >&5
4142echo "${ECHO_T}$opt_maintainer_mode" >&6
4143
4144opt_dmalloc_mode=no
4145echo "$as_me:$LINENO: checking whether in dmalloc mode" >&5
4146echo $ECHO_N "checking whether in dmalloc mode... $ECHO_C" >&6
4147# Check whether --enable-dmalloc-mode or --disable-dmalloc-mode was given.
4148if test "${enable_dmalloc_mode+set}" = set; then
4149  enableval="$enable_dmalloc_mode"
4150  opt_dmalloc_mode=$enableval
4151fi;
4152echo "$as_me:$LINENO: result: $opt_dmalloc_mode" >&5
4153echo "${ECHO_T}$opt_dmalloc_mode" >&6
4154
4155
4156if test x$ac_cv_c_compiler_gnu = xyes; then
4157	if test x$opt_maintainer_mode = xyes; then
4158	  CFLAGS=" -ggdb3 -O2 -Wall -Wpointer-arith"
4159	fi
4160
4161	if test x$opt_dmalloc_mode = xyes; then
4162
4163
4164echo "$as_me:$LINENO: checking for main in -ldmalloc" >&5
4165echo $ECHO_N "checking for main in -ldmalloc... $ECHO_C" >&6
4166if test "${ac_cv_lib_dmalloc_main+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  ac_check_lib_save_LIBS=$LIBS
4170LIBS="-ldmalloc  $LIBS"
4171cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h.  */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h.  */
4177
4178
4179int
4180main ()
4181{
4182main ();
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext conftest$ac_exeext
4188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4189  (eval $ac_link) 2>conftest.er1
4190  ac_status=$?
4191  grep -v '^ *+' conftest.er1 >conftest.err
4192  rm -f conftest.er1
4193  cat conftest.err >&5
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); } &&
4196	 { ac_try='test -z "$ac_c_werror_flag"
4197			 || test ! -s conftest.err'
4198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199  (eval $ac_try) 2>&5
4200  ac_status=$?
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); }; } &&
4203	 { ac_try='test -s conftest$ac_exeext'
4204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205  (eval $ac_try) 2>&5
4206  ac_status=$?
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); }; }; then
4209  ac_cv_lib_dmalloc_main=yes
4210else
4211  echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214ac_cv_lib_dmalloc_main=no
4215fi
4216rm -f conftest.err conftest.$ac_objext \
4217      conftest$ac_exeext conftest.$ac_ext
4218LIBS=$ac_check_lib_save_LIBS
4219fi
4220echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_main" >&5
4221echo "${ECHO_T}$ac_cv_lib_dmalloc_main" >&6
4222if test $ac_cv_lib_dmalloc_main = yes; then
4223  cat >>confdefs.h <<_ACEOF
4224#define HAVE_LIBDMALLOC 1
4225_ACEOF
4226
4227  LIBS="-ldmalloc $LIBS"
4228
4229fi
4230
4231
4232cat >>confdefs.h <<\_ACEOF
4233#define USE_DMALLOC 1
4234_ACEOF
4235
4236	fi
4237fi
4238
4239opt_enable_ltdl=no
4240echo "$as_me:$LINENO: checking whether to enable dynamic module loading" >&5
4241echo $ECHO_N "checking whether to enable dynamic module loading... $ECHO_C" >&6
4242# Check whether --enable-dynamic-loading or --disable-dynamic-loading was given.
4243if test "${enable_dynamic_loading+set}" = set; then
4244  enableval="$enable_dynamic_loading"
4245  opt_enable_ltdl=$enableval
4246fi;
4247echo "$as_me:$LINENO: result: $opt_enable_ltdl" >&5
4248echo "${ECHO_T}$opt_enable_ltdl" >&6
4249
4250MCRYPT_MODE_MODULES="cbc cfb ctr ecb ncfb nofb ofb stream"
4251MCRYPT_ALGORITHM_MODULES="threeway cast-128 gost rijndael-128 safer-sk64 twofish \
4252 arcfour cast-256 loki97 rijndael-192 saferplus wake \
4253 blowfish-compat des rijndael-256 serpent xtea \
4254 blowfish enigma rc2 safer-sk128 tripledes"
4255
4256
4257if test "x$opt_enable_ltdl" != xno; then
4258 touch lib/mcrypt_internal.h
4259
4260 echo "$as_me:$LINENO: checking for lt_dlmutex_register in -lltdl" >&5
4261echo $ECHO_N "checking for lt_dlmutex_register in -lltdl... $ECHO_C" >&6
4262if test "${ac_cv_lib_ltdl_lt_dlmutex_register+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  ac_check_lib_save_LIBS=$LIBS
4266LIBS="-lltdl  $LIBS"
4267cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h.  */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h.  */
4273
4274/* Override any gcc2 internal prototype to avoid an error.  */
4275#ifdef __cplusplus
4276extern "C"
4277#endif
4278/* We use char because int might match the return type of a gcc2
4279   builtin and then its argument prototype would still apply.  */
4280char lt_dlmutex_register ();
4281int
4282main ()
4283{
4284lt_dlmutex_register ();
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext conftest$ac_exeext
4290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291  (eval $ac_link) 2>conftest.er1
4292  ac_status=$?
4293  grep -v '^ *+' conftest.er1 >conftest.err
4294  rm -f conftest.er1
4295  cat conftest.err >&5
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); } &&
4298	 { ac_try='test -z "$ac_c_werror_flag"
4299			 || test ! -s conftest.err'
4300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301  (eval $ac_try) 2>&5
4302  ac_status=$?
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); }; } &&
4305	 { ac_try='test -s conftest$ac_exeext'
4306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307  (eval $ac_try) 2>&5
4308  ac_status=$?
4309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310  (exit $ac_status); }; }; then
4311  ac_cv_lib_ltdl_lt_dlmutex_register=yes
4312else
4313  echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316ac_cv_lib_ltdl_lt_dlmutex_register=no
4317fi
4318rm -f conftest.err conftest.$ac_objext \
4319      conftest$ac_exeext conftest.$ac_ext
4320LIBS=$ac_check_lib_save_LIBS
4321fi
4322echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlmutex_register" >&5
4323echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlmutex_register" >&6
4324if test $ac_cv_lib_ltdl_lt_dlmutex_register = yes; then
4325
4326cat >>confdefs.h <<\_ACEOF
4327#define DLMUTEX 1
4328_ACEOF
4329
4330fi
4331
4332
4333    echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4334echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
4335if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  ac_check_lib_save_LIBS=$LIBS
4339LIBS="-lltdl  $LIBS"
4340cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346
4347/* Override any gcc2 internal prototype to avoid an error.  */
4348#ifdef __cplusplus
4349extern "C"
4350#endif
4351/* We use char because int might match the return type of a gcc2
4352   builtin and then its argument prototype would still apply.  */
4353char lt_dlinit ();
4354int
4355main ()
4356{
4357lt_dlinit ();
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364  (eval $ac_link) 2>conftest.er1
4365  ac_status=$?
4366  grep -v '^ *+' conftest.er1 >conftest.err
4367  rm -f conftest.er1
4368  cat conftest.err >&5
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); } &&
4371	 { ac_try='test -z "$ac_c_werror_flag"
4372			 || test ! -s conftest.err'
4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374  (eval $ac_try) 2>&5
4375  ac_status=$?
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); }; } &&
4378	 { ac_try='test -s conftest$ac_exeext'
4379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380  (eval $ac_try) 2>&5
4381  ac_status=$?
4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383  (exit $ac_status); }; }; then
4384  ac_cv_lib_ltdl_lt_dlinit=yes
4385else
4386  echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389ac_cv_lib_ltdl_lt_dlinit=no
4390fi
4391rm -f conftest.err conftest.$ac_objext \
4392      conftest$ac_exeext conftest.$ac_ext
4393LIBS=$ac_check_lib_save_LIBS
4394fi
4395echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4396echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4397if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4398  test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4399else
4400  if test x"$enable_ltdl_install" = xno; then
4401     { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4402echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4403   else
4404     enable_ltdl_install=yes
4405   fi
4406
4407fi
4408
4409  if test x"$enable_ltdl_install" = x"yes"; then
4410    ac_configure_args="$ac_configure_args --enable-ltdl-install"
4411    LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4412    LTDLINCL='-I${top_srcdir}/''libltdl'
4413  else
4414    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4415    LIBLTDL="-lltdl"
4416    LTDLINCL=
4417  fi
4418  # For backwards non-gettext consistent compatibility...
4419  INCLTDL="$LTDLINCL"
4420
4421
4422
4423 LIBLTDL_DIR=libltdl
4424
4425
4426
4427
4428subdirs="$subdirs libltdl"
4429
4430 # Check whether --enable-static or --disable-static was given.
4431if test "${enable_static+set}" = set; then
4432  enableval="$enable_static"
4433  p=${PACKAGE-default}
4434    case $enableval in
4435    yes) enable_static=yes ;;
4436    no) enable_static=no ;;
4437    *)
4438     enable_static=no
4439      # Look at the argument we got.  We use all the common list separators.
4440      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4441      for pkg in $enableval; do
4442	IFS="$lt_save_ifs"
4443	if test "X$pkg" = "X$p"; then
4444	  enable_static=yes
4445	fi
4446      done
4447      IFS="$lt_save_ifs"
4448      ;;
4449    esac
4450else
4451  enable_static=no
4452fi;
4453
4454
4455
4456
4457cat >>confdefs.h <<\_ACEOF
4458#define USE_LTDL 1
4459_ACEOF
4460
4461
4462 if test x$LIBLTDL = x; then
4463	:
4464 else
4465	LTLIBS="-lltdl"
4466 fi
4467 opt_include_algos=no
4468
4469# create the names of the .la libraries to install
4470 for i in $MCRYPT_ALGORITHM_MODULES
4471 do \
4472  INSTALL_ALGORITHM_MODULES="$INSTALL_ALGORITHM_MODULES $i.la"
4473 done
4474
4475 for i in $MCRYPT_MODE_MODULES
4476 do \
4477  INSTALL_MODE_MODULES="$INSTALL_MODE_MODULES $i.la"
4478 done
4479
4480
4481
4482
4483else
4484 for i in $MCRYPT_ALGORITHM_MODULES
4485 do \
4486  NOINSTALL_ALGORITHM_MODULES="$NOINSTALL_ALGORITHM_MODULES $i.la"
4487 done
4488
4489 for i in $MCRYPT_MODE_MODULES
4490 do \
4491  NOINSTALL_MODE_MODULES="$NOINSTALL_MODE_MODULES $i.la"
4492 done
4493
4494
4495
4496
4497 opt_include_algos="$MCRYPT_MODE_MODULES $MCRYPT_ALGORITHM_MODULES"
4498 echo "***"
4499 echo "*** Dynamic loading has been disabled"
4500fi
4501
4502echo "$as_me:$LINENO: checking which algorithms to include into library" >&5
4503echo $ECHO_N "checking which algorithms to include into library... $ECHO_C" >&6
4504
4505# Check whether --with-included-algos or --without-included-algos was given.
4506if test "${with_included_algos+set}" = set; then
4507  withval="$with_included_algos"
4508  touch lib/mcrypt_internal.h
4509opt_include_algos=$withval
4510fi;
4511
4512if test "x$opt_include_algos" = xyes; then
4513	opt_include_algos=""
4514fi
4515if test "x$opt_include_algos" = xno; then
4516	opt_include_algos=""
4517fi
4518
4519
4520EXTRA_OBJECTS=""
4521ALG=`echo -n $opt_include_algos|sed "s/,/ /g"|sed "s/\n/ /g"`
4522for i in $ALG
4523do \
4524test -f modules/algorithms/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/algorithms/$i.lo"
4525test -f modules/modes/$i.c && EXTRA_OBJECTS="$EXTRA_OBJECTS ../modules/modes/$i.lo"
4526done
4527
4528echo "$as_me:$LINENO: result: $opt_include_algos" >&5
4529echo "${ECHO_T}$opt_include_algos" >&6
4530
4531
4532EXTRA_ALGOS=$ALG
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545LT_CURRENT=$LIBMCRYPT_MOST_RECENT_INTERFACE
4546LT_REVISION=$LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER
4547LT_AGE=`expr $LIBMCRYPT_MOST_RECENT_INTERFACE - $LIBMCRYPT_OLDEST_INTERFACE`
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557ac_header_dirent=no
4558for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4559  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4560echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4561echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563  echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565  cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h.  */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h.  */
4571#include <sys/types.h>
4572#include <$ac_hdr>
4573
4574int
4575main ()
4576{
4577if ((DIR *) 0)
4578return 0;
4579  ;
4580  return 0;
4581}
4582_ACEOF
4583rm -f conftest.$ac_objext
4584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585  (eval $ac_compile) 2>conftest.er1
4586  ac_status=$?
4587  grep -v '^ *+' conftest.er1 >conftest.err
4588  rm -f conftest.er1
4589  cat conftest.err >&5
4590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591  (exit $ac_status); } &&
4592	 { ac_try='test -z "$ac_c_werror_flag"
4593			 || 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  eval "$as_ac_Header=yes"
4606else
4607  echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
4610eval "$as_ac_Header=no"
4611fi
4612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617  cat >>confdefs.h <<_ACEOF
4618#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4619_ACEOF
4620
4621ac_header_dirent=$ac_hdr; break
4622fi
4623
4624done
4625# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4626if test $ac_header_dirent = dirent.h; then
4627  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4628echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4629if test "${ac_cv_search_opendir+set}" = set; then
4630  echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632  ac_func_search_save_LIBS=$LIBS
4633ac_cv_search_opendir=no
4634cat >conftest.$ac_ext <<_ACEOF
4635/* confdefs.h.  */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h.  */
4640
4641/* Override any gcc2 internal prototype to avoid an error.  */
4642#ifdef __cplusplus
4643extern "C"
4644#endif
4645/* We use char because int might match the return type of a gcc2
4646   builtin and then its argument prototype would still apply.  */
4647char opendir ();
4648int
4649main ()
4650{
4651opendir ();
4652  ;
4653  return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext conftest$ac_exeext
4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658  (eval $ac_link) 2>conftest.er1
4659  ac_status=$?
4660  grep -v '^ *+' conftest.er1 >conftest.err
4661  rm -f conftest.er1
4662  cat conftest.err >&5
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } &&
4665	 { ac_try='test -z "$ac_c_werror_flag"
4666			 || test ! -s conftest.err'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; } &&
4672	 { ac_try='test -s conftest$ac_exeext'
4673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674  (eval $ac_try) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; }; then
4678  ac_cv_search_opendir="none required"
4679else
4680  echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683fi
4684rm -f conftest.err conftest.$ac_objext \
4685      conftest$ac_exeext conftest.$ac_ext
4686if test "$ac_cv_search_opendir" = no; then
4687  for ac_lib in dir; do
4688    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4689    cat >conftest.$ac_ext <<_ACEOF
4690/* confdefs.h.  */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h.  */
4695
4696/* Override any gcc2 internal prototype to avoid an error.  */
4697#ifdef __cplusplus
4698extern "C"
4699#endif
4700/* We use char because int might match the return type of a gcc2
4701   builtin and then its argument prototype would still apply.  */
4702char opendir ();
4703int
4704main ()
4705{
4706opendir ();
4707  ;
4708  return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713  (eval $ac_link) 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720	 { ac_try='test -z "$ac_c_werror_flag"
4721			 || test ! -s conftest.err'
4722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723  (eval $ac_try) 2>&5
4724  ac_status=$?
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); }; } &&
4727	 { ac_try='test -s conftest$ac_exeext'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; }; then
4733  ac_cv_search_opendir="-l$ac_lib"
4734break
4735else
4736  echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741      conftest$ac_exeext conftest.$ac_ext
4742  done
4743fi
4744LIBS=$ac_func_search_save_LIBS
4745fi
4746echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4747echo "${ECHO_T}$ac_cv_search_opendir" >&6
4748if test "$ac_cv_search_opendir" != no; then
4749  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4750
4751fi
4752
4753else
4754  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4755echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4756if test "${ac_cv_search_opendir+set}" = set; then
4757  echo $ECHO_N "(cached) $ECHO_C" >&6
4758else
4759  ac_func_search_save_LIBS=$LIBS
4760ac_cv_search_opendir=no
4761cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767
4768/* Override any gcc2 internal prototype to avoid an error.  */
4769#ifdef __cplusplus
4770extern "C"
4771#endif
4772/* We use char because int might match the return type of a gcc2
4773   builtin and then its argument prototype would still apply.  */
4774char opendir ();
4775int
4776main ()
4777{
4778opendir ();
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest.$ac_objext conftest$ac_exeext
4784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785  (eval $ac_link) 2>conftest.er1
4786  ac_status=$?
4787  grep -v '^ *+' conftest.er1 >conftest.err
4788  rm -f conftest.er1
4789  cat conftest.err >&5
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); } &&
4792	 { ac_try='test -z "$ac_c_werror_flag"
4793			 || test ! -s conftest.err'
4794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795  (eval $ac_try) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; } &&
4799	 { ac_try='test -s conftest$ac_exeext'
4800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801  (eval $ac_try) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; }; then
4805  ac_cv_search_opendir="none required"
4806else
4807  echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810fi
4811rm -f conftest.err conftest.$ac_objext \
4812      conftest$ac_exeext conftest.$ac_ext
4813if test "$ac_cv_search_opendir" = no; then
4814  for ac_lib in x; do
4815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4816    cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822
4823/* Override any gcc2 internal prototype to avoid an error.  */
4824#ifdef __cplusplus
4825extern "C"
4826#endif
4827/* We use char because int might match the return type of a gcc2
4828   builtin and then its argument prototype would still apply.  */
4829char opendir ();
4830int
4831main ()
4832{
4833opendir ();
4834  ;
4835  return 0;
4836}
4837_ACEOF
4838rm -f conftest.$ac_objext conftest$ac_exeext
4839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4840  (eval $ac_link) 2>conftest.er1
4841  ac_status=$?
4842  grep -v '^ *+' conftest.er1 >conftest.err
4843  rm -f conftest.er1
4844  cat conftest.err >&5
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } &&
4847	 { ac_try='test -z "$ac_c_werror_flag"
4848			 || test ! -s conftest.err'
4849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850  (eval $ac_try) 2>&5
4851  ac_status=$?
4852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853  (exit $ac_status); }; } &&
4854	 { ac_try='test -s conftest$ac_exeext'
4855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856  (eval $ac_try) 2>&5
4857  ac_status=$?
4858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859  (exit $ac_status); }; }; then
4860  ac_cv_search_opendir="-l$ac_lib"
4861break
4862else
4863  echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866fi
4867rm -f conftest.err conftest.$ac_objext \
4868      conftest$ac_exeext conftest.$ac_ext
4869  done
4870fi
4871LIBS=$ac_func_search_save_LIBS
4872fi
4873echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4874echo "${ECHO_T}$ac_cv_search_opendir" >&6
4875if test "$ac_cv_search_opendir" != no; then
4876  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4877
4878fi
4879
4880fi
4881
4882
4883echo "$as_me:$LINENO: checking for egrep" >&5
4884echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4885if test "${ac_cv_prog_egrep+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4889    then ac_cv_prog_egrep='grep -E'
4890    else ac_cv_prog_egrep='egrep'
4891    fi
4892fi
4893echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4894echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4895 EGREP=$ac_cv_prog_egrep
4896
4897
4898echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4900if test "${ac_cv_header_stdc+set}" = set; then
4901  echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903  cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <stdlib.h>
4910#include <stdarg.h>
4911#include <string.h>
4912#include <float.h>
4913
4914int
4915main ()
4916{
4917
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922rm -f conftest.$ac_objext
4923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924  (eval $ac_compile) 2>conftest.er1
4925  ac_status=$?
4926  grep -v '^ *+' conftest.er1 >conftest.err
4927  rm -f conftest.er1
4928  cat conftest.err >&5
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); } &&
4931	 { ac_try='test -z "$ac_c_werror_flag"
4932			 || test ! -s conftest.err'
4933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934  (eval $ac_try) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); }; } &&
4938	 { ac_try='test -s conftest.$ac_objext'
4939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940  (eval $ac_try) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; }; then
4944  ac_cv_header_stdc=yes
4945else
4946  echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949ac_cv_header_stdc=no
4950fi
4951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952
4953if test $ac_cv_header_stdc = yes; then
4954  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4955  cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h.  */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h.  */
4961#include <string.h>
4962
4963_ACEOF
4964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965  $EGREP "memchr" >/dev/null 2>&1; then
4966  :
4967else
4968  ac_cv_header_stdc=no
4969fi
4970rm -f conftest*
4971
4972fi
4973
4974if test $ac_cv_header_stdc = yes; then
4975  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4976  cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h.  */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h.  */
4982#include <stdlib.h>
4983
4984_ACEOF
4985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986  $EGREP "free" >/dev/null 2>&1; then
4987  :
4988else
4989  ac_cv_header_stdc=no
4990fi
4991rm -f conftest*
4992
4993fi
4994
4995if test $ac_cv_header_stdc = yes; then
4996  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4997  if test "$cross_compiling" = yes; then
4998  :
4999else
5000  cat >conftest.$ac_ext <<_ACEOF
5001/* confdefs.h.  */
5002_ACEOF
5003cat confdefs.h >>conftest.$ac_ext
5004cat >>conftest.$ac_ext <<_ACEOF
5005/* end confdefs.h.  */
5006#include <ctype.h>
5007#if ((' ' & 0x0FF) == 0x020)
5008# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5009# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010#else
5011# define ISLOWER(c) \
5012		   (('a' <= (c) && (c) <= 'i') \
5013		     || ('j' <= (c) && (c) <= 'r') \
5014		     || ('s' <= (c) && (c) <= 'z'))
5015# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5016#endif
5017
5018#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5019int
5020main ()
5021{
5022  int i;
5023  for (i = 0; i < 256; i++)
5024    if (XOR (islower (i), ISLOWER (i))
5025	|| toupper (i) != TOUPPER (i))
5026      exit(2);
5027  exit (0);
5028}
5029_ACEOF
5030rm -f conftest$ac_exeext
5031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032  (eval $ac_link) 2>&5
5033  ac_status=$?
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037  (eval $ac_try) 2>&5
5038  ac_status=$?
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); }; }; then
5041  :
5042else
5043  echo "$as_me: program exited with status $ac_status" >&5
5044echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047( exit $ac_status )
5048ac_cv_header_stdc=no
5049fi
5050rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5051fi
5052fi
5053fi
5054echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5055echo "${ECHO_T}$ac_cv_header_stdc" >&6
5056if test $ac_cv_header_stdc = yes; then
5057
5058cat >>confdefs.h <<\_ACEOF
5059#define STDC_HEADERS 1
5060_ACEOF
5061
5062fi
5063
5064echo "$as_me:$LINENO: checking for inline" >&5
5065echo $ECHO_N "checking for inline... $ECHO_C" >&6
5066if test "${ac_cv_c_inline+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  ac_cv_c_inline=no
5070for ac_kw in inline __inline__ __inline; do
5071  cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h.  */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h.  */
5077#ifndef __cplusplus
5078typedef int foo_t;
5079static $ac_kw foo_t static_foo () {return 0; }
5080$ac_kw foo_t foo () {return 0; }
5081#endif
5082
5083_ACEOF
5084rm -f conftest.$ac_objext
5085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086  (eval $ac_compile) 2>conftest.er1
5087  ac_status=$?
5088  grep -v '^ *+' conftest.er1 >conftest.err
5089  rm -f conftest.er1
5090  cat conftest.err >&5
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); } &&
5093	 { ac_try='test -z "$ac_c_werror_flag"
5094			 || test ! -s conftest.err'
5095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096  (eval $ac_try) 2>&5
5097  ac_status=$?
5098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); }; } &&
5100	 { ac_try='test -s conftest.$ac_objext'
5101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102  (eval $ac_try) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; }; then
5106  ac_cv_c_inline=$ac_kw; break
5107else
5108  echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111fi
5112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5113done
5114
5115fi
5116echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5117echo "${ECHO_T}$ac_cv_c_inline" >&6
5118
5119
5120case $ac_cv_c_inline in
5121  inline | yes) ;;
5122  *)
5123    case $ac_cv_c_inline in
5124      no) ac_val=;;
5125      *) ac_val=$ac_cv_c_inline;;
5126    esac
5127    cat >>confdefs.h <<_ACEOF
5128#ifndef __cplusplus
5129#define inline $ac_val
5130#endif
5131_ACEOF
5132    ;;
5133esac
5134
5135echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5136echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5137if test "${ac_cv_c_const+set}" = set; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h.  */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h.  */
5146
5147int
5148main ()
5149{
5150/* FIXME: Include the comments suggested by Paul. */
5151#ifndef __cplusplus
5152  /* Ultrix mips cc rejects this.  */
5153  typedef int charset[2];
5154  const charset x;
5155  /* SunOS 4.1.1 cc rejects this.  */
5156  char const *const *ccp;
5157  char **p;
5158  /* NEC SVR4.0.2 mips cc rejects this.  */
5159  struct point {int x, y;};
5160  static struct point const zero = {0,0};
5161  /* AIX XL C 1.02.0.0 rejects this.
5162     It does not let you subtract one const X* pointer from another in
5163     an arm of an if-expression whose if-part is not a constant
5164     expression */
5165  const char *g = "string";
5166  ccp = &g + (g ? g-g : 0);
5167  /* HPUX 7.0 cc rejects these. */
5168  ++ccp;
5169  p = (char**) ccp;
5170  ccp = (char const *const *) p;
5171  { /* SCO 3.2v4 cc rejects this.  */
5172    char *t;
5173    char const *s = 0 ? (char *) 0 : (char const *) 0;
5174
5175    *t++ = 0;
5176  }
5177  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5178    int x[] = {25, 17};
5179    const int *foo = &x[0];
5180    ++foo;
5181  }
5182  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5183    typedef const int *iptr;
5184    iptr p = 0;
5185    ++p;
5186  }
5187  { /* AIX XL C 1.02.0.0 rejects this saying
5188       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5189    struct s { int j; const int *ap[3]; };
5190    struct s *b; b->j = 5;
5191  }
5192  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5193    const int foo = 10;
5194  }
5195#endif
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201rm -f conftest.$ac_objext
5202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203  (eval $ac_compile) 2>conftest.er1
5204  ac_status=$?
5205  grep -v '^ *+' conftest.er1 >conftest.err
5206  rm -f conftest.er1
5207  cat conftest.err >&5
5208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); } &&
5210	 { ac_try='test -z "$ac_c_werror_flag"
5211			 || test ! -s conftest.err'
5212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213  (eval $ac_try) 2>&5
5214  ac_status=$?
5215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216  (exit $ac_status); }; } &&
5217	 { ac_try='test -s conftest.$ac_objext'
5218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219  (eval $ac_try) 2>&5
5220  ac_status=$?
5221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222  (exit $ac_status); }; }; then
5223  ac_cv_c_const=yes
5224else
5225  echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228ac_cv_c_const=no
5229fi
5230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231fi
5232echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5233echo "${ECHO_T}$ac_cv_c_const" >&6
5234if test $ac_cv_c_const = no; then
5235
5236cat >>confdefs.h <<\_ACEOF
5237#define const
5238_ACEOF
5239
5240fi
5241
5242
5243# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5254		  inttypes.h stdint.h unistd.h
5255do
5256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257echo "$as_me:$LINENO: checking for $ac_header" >&5
5258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h.  */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h.  */
5268$ac_includes_default
5269
5270#include <$ac_header>
5271_ACEOF
5272rm -f conftest.$ac_objext
5273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274  (eval $ac_compile) 2>conftest.er1
5275  ac_status=$?
5276  grep -v '^ *+' conftest.er1 >conftest.err
5277  rm -f conftest.er1
5278  cat conftest.err >&5
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); } &&
5281	 { ac_try='test -z "$ac_c_werror_flag"
5282			 || test ! -s conftest.err'
5283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284  (eval $ac_try) 2>&5
5285  ac_status=$?
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); }; } &&
5288	 { ac_try='test -s conftest.$ac_objext'
5289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290  (eval $ac_try) 2>&5
5291  ac_status=$?
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); }; }; then
5294  eval "$as_ac_Header=yes"
5295else
5296  echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299eval "$as_ac_Header=no"
5300fi
5301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302fi
5303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305if test `eval echo '${'$as_ac_Header'}'` = yes; then
5306  cat >>confdefs.h <<_ACEOF
5307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5308_ACEOF
5309
5310fi
5311
5312done
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322for ac_header in argz.h byteswap.h dirent.h dlfcn.h endian.h malloc.h memory.h
5323do
5324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5325if eval "test \"\${$as_ac_Header+set}\" = set"; then
5326  echo "$as_me:$LINENO: checking for $ac_header" >&5
5327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5328if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329  echo $ECHO_N "(cached) $ECHO_C" >&6
5330fi
5331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333else
5334  # Is the header compilable?
5335echo "$as_me:$LINENO: checking $ac_header usability" >&5
5336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5337cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h.  */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h.  */
5343$ac_includes_default
5344#include <$ac_header>
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348  (eval $ac_compile) 2>conftest.er1
5349  ac_status=$?
5350  grep -v '^ *+' conftest.er1 >conftest.err
5351  rm -f conftest.er1
5352  cat conftest.err >&5
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } &&
5355	 { ac_try='test -z "$ac_c_werror_flag"
5356			 || test ! -s conftest.err'
5357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358  (eval $ac_try) 2>&5
5359  ac_status=$?
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); }; } &&
5362	 { ac_try='test -s conftest.$ac_objext'
5363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364  (eval $ac_try) 2>&5
5365  ac_status=$?
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); }; }; then
5368  ac_header_compiler=yes
5369else
5370  echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373ac_header_compiler=no
5374fi
5375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5377echo "${ECHO_T}$ac_header_compiler" >&6
5378
5379# Is the header present?
5380echo "$as_me:$LINENO: checking $ac_header presence" >&5
5381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5382cat >conftest.$ac_ext <<_ACEOF
5383/* confdefs.h.  */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h.  */
5388#include <$ac_header>
5389_ACEOF
5390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5392  ac_status=$?
5393  grep -v '^ *+' conftest.er1 >conftest.err
5394  rm -f conftest.er1
5395  cat conftest.err >&5
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); } >/dev/null; then
5398  if test -s conftest.err; then
5399    ac_cpp_err=$ac_c_preproc_warn_flag
5400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5401  else
5402    ac_cpp_err=
5403  fi
5404else
5405  ac_cpp_err=yes
5406fi
5407if test -z "$ac_cpp_err"; then
5408  ac_header_preproc=yes
5409else
5410  echo "$as_me: failed program was:" >&5
5411sed 's/^/| /' conftest.$ac_ext >&5
5412
5413  ac_header_preproc=no
5414fi
5415rm -f conftest.err conftest.$ac_ext
5416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5417echo "${ECHO_T}$ac_header_preproc" >&6
5418
5419# So?  What about this header?
5420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5421  yes:no: )
5422    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5426    ac_header_preproc=yes
5427    ;;
5428  no:yes:* )
5429    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5431    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5432echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5433    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5435    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5436echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5439    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5441    (
5442      cat <<\_ASBOX
5443## ------------------------------------------ ##
5444## Report this to the AC_PACKAGE_NAME lists.  ##
5445## ------------------------------------------ ##
5446_ASBOX
5447    ) |
5448      sed "s/^/$as_me: WARNING:     /" >&2
5449    ;;
5450esac
5451echo "$as_me:$LINENO: checking for $ac_header" >&5
5452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5453if eval "test \"\${$as_ac_Header+set}\" = set"; then
5454  echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456  eval "$as_ac_Header=\$ac_header_preproc"
5457fi
5458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5460
5461fi
5462if test `eval echo '${'$as_ac_Header'}'` = yes; then
5463  cat >>confdefs.h <<_ACEOF
5464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5465_ACEOF
5466
5467fi
5468
5469done
5470
5471
5472
5473
5474for ac_header in stdlib.h string.h strings.h
5475do
5476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477if eval "test \"\${$as_ac_Header+set}\" = set"; then
5478  echo "$as_me:$LINENO: checking for $ac_header" >&5
5479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5480if eval "test \"\${$as_ac_Header+set}\" = set"; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482fi
5483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485else
5486  # Is the header compilable?
5487echo "$as_me:$LINENO: checking $ac_header usability" >&5
5488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5489cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495$ac_includes_default
5496#include <$ac_header>
5497_ACEOF
5498rm -f conftest.$ac_objext
5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500  (eval $ac_compile) 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } &&
5507	 { ac_try='test -z "$ac_c_werror_flag"
5508			 || test ! -s conftest.err'
5509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510  (eval $ac_try) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); }; } &&
5514	 { ac_try='test -s conftest.$ac_objext'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; }; then
5520  ac_header_compiler=yes
5521else
5522  echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525ac_header_compiler=no
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5529echo "${ECHO_T}$ac_header_compiler" >&6
5530
5531# Is the header present?
5532echo "$as_me:$LINENO: checking $ac_header presence" >&5
5533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5534cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h.  */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h.  */
5540#include <$ac_header>
5541_ACEOF
5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } >/dev/null; then
5550  if test -s conftest.err; then
5551    ac_cpp_err=$ac_c_preproc_warn_flag
5552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553  else
5554    ac_cpp_err=
5555  fi
5556else
5557  ac_cpp_err=yes
5558fi
5559if test -z "$ac_cpp_err"; then
5560  ac_header_preproc=yes
5561else
5562  echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565  ac_header_preproc=no
5566fi
5567rm -f conftest.err conftest.$ac_ext
5568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5569echo "${ECHO_T}$ac_header_preproc" >&6
5570
5571# So?  What about this header?
5572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5573  yes:no: )
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5578    ac_header_preproc=yes
5579    ;;
5580  no:yes:* )
5581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5593    (
5594      cat <<\_ASBOX
5595## ------------------------------------------ ##
5596## Report this to the AC_PACKAGE_NAME lists.  ##
5597## ------------------------------------------ ##
5598_ASBOX
5599    ) |
5600      sed "s/^/$as_me: WARNING:     /" >&2
5601    ;;
5602esac
5603echo "$as_me:$LINENO: checking for $ac_header" >&5
5604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  eval "$as_ac_Header=\$ac_header_preproc"
5609fi
5610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612
5613fi
5614if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615  cat >>confdefs.h <<_ACEOF
5616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617_ACEOF
5618
5619fi
5620
5621done
5622
5623
5624
5625
5626for ac_header in sys/endian.h sys/types.h sys/mman.h
5627do
5628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5629if eval "test \"\${$as_ac_Header+set}\" = set"; then
5630  echo "$as_me:$LINENO: checking for $ac_header" >&5
5631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5632if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633  echo $ECHO_N "(cached) $ECHO_C" >&6
5634fi
5635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5637else
5638  # Is the header compilable?
5639echo "$as_me:$LINENO: checking $ac_header usability" >&5
5640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5641cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h.  */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h.  */
5647$ac_includes_default
5648#include <$ac_header>
5649_ACEOF
5650rm -f conftest.$ac_objext
5651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652  (eval $ac_compile) 2>conftest.er1
5653  ac_status=$?
5654  grep -v '^ *+' conftest.er1 >conftest.err
5655  rm -f conftest.er1
5656  cat conftest.err >&5
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); } &&
5659	 { ac_try='test -z "$ac_c_werror_flag"
5660			 || test ! -s conftest.err'
5661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662  (eval $ac_try) 2>&5
5663  ac_status=$?
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); }; } &&
5666	 { ac_try='test -s conftest.$ac_objext'
5667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668  (eval $ac_try) 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; }; then
5672  ac_header_compiler=yes
5673else
5674  echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677ac_header_compiler=no
5678fi
5679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5681echo "${ECHO_T}$ac_header_compiler" >&6
5682
5683# Is the header present?
5684echo "$as_me:$LINENO: checking $ac_header presence" >&5
5685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5686cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h.  */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h.  */
5692#include <$ac_header>
5693_ACEOF
5694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5695  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5696  ac_status=$?
5697  grep -v '^ *+' conftest.er1 >conftest.err
5698  rm -f conftest.er1
5699  cat conftest.err >&5
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); } >/dev/null; then
5702  if test -s conftest.err; then
5703    ac_cpp_err=$ac_c_preproc_warn_flag
5704    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5705  else
5706    ac_cpp_err=
5707  fi
5708else
5709  ac_cpp_err=yes
5710fi
5711if test -z "$ac_cpp_err"; then
5712  ac_header_preproc=yes
5713else
5714  echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
5717  ac_header_preproc=no
5718fi
5719rm -f conftest.err conftest.$ac_ext
5720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5721echo "${ECHO_T}$ac_header_preproc" >&6
5722
5723# So?  What about this header?
5724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5725  yes:no: )
5726    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5730    ac_header_preproc=yes
5731    ;;
5732  no:yes:* )
5733    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5735    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5736echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5737    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5739    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5740echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5741    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5743    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5745    (
5746      cat <<\_ASBOX
5747## ------------------------------------------ ##
5748## Report this to the AC_PACKAGE_NAME lists.  ##
5749## ------------------------------------------ ##
5750_ASBOX
5751    ) |
5752      sed "s/^/$as_me: WARNING:     /" >&2
5753    ;;
5754esac
5755echo "$as_me:$LINENO: checking for $ac_header" >&5
5756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5757if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  eval "$as_ac_Header=\$ac_header_preproc"
5761fi
5762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5764
5765fi
5766if test `eval echo '${'$as_ac_Header'}'` = yes; then
5767  cat >>confdefs.h <<_ACEOF
5768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5769_ACEOF
5770
5771fi
5772
5773done
5774
5775
5776
5777for ac_header in limits.h unistd.h
5778do
5779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781  echo "$as_me:$LINENO: checking for $ac_header" >&5
5782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5783if eval "test \"\${$as_ac_Header+set}\" = set"; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785fi
5786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788else
5789  # Is the header compilable?
5790echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5792cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h.  */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h.  */
5798$ac_includes_default
5799#include <$ac_header>
5800_ACEOF
5801rm -f conftest.$ac_objext
5802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803  (eval $ac_compile) 2>conftest.er1
5804  ac_status=$?
5805  grep -v '^ *+' conftest.er1 >conftest.err
5806  rm -f conftest.er1
5807  cat conftest.err >&5
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); } &&
5810	 { ac_try='test -z "$ac_c_werror_flag"
5811			 || test ! -s conftest.err'
5812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813  (eval $ac_try) 2>&5
5814  ac_status=$?
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); }; } &&
5817	 { ac_try='test -s conftest.$ac_objext'
5818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819  (eval $ac_try) 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); }; }; then
5823  ac_header_compiler=yes
5824else
5825  echo "$as_me: failed program was:" >&5
5826sed 's/^/| /' conftest.$ac_ext >&5
5827
5828ac_header_compiler=no
5829fi
5830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5832echo "${ECHO_T}$ac_header_compiler" >&6
5833
5834# Is the header present?
5835echo "$as_me:$LINENO: checking $ac_header presence" >&5
5836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5837cat >conftest.$ac_ext <<_ACEOF
5838/* confdefs.h.  */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h.  */
5843#include <$ac_header>
5844_ACEOF
5845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847  ac_status=$?
5848  grep -v '^ *+' conftest.er1 >conftest.err
5849  rm -f conftest.er1
5850  cat conftest.err >&5
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } >/dev/null; then
5853  if test -s conftest.err; then
5854    ac_cpp_err=$ac_c_preproc_warn_flag
5855    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856  else
5857    ac_cpp_err=
5858  fi
5859else
5860  ac_cpp_err=yes
5861fi
5862if test -z "$ac_cpp_err"; then
5863  ac_header_preproc=yes
5864else
5865  echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868  ac_header_preproc=no
5869fi
5870rm -f conftest.err conftest.$ac_ext
5871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5872echo "${ECHO_T}$ac_header_preproc" >&6
5873
5874# So?  What about this header?
5875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5876  yes:no: )
5877    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5879    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5881    ac_header_preproc=yes
5882    ;;
5883  no:yes:* )
5884    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5886    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5887echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5888    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5890    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5891echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5894    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5896    (
5897      cat <<\_ASBOX
5898## ------------------------------------------ ##
5899## Report this to the AC_PACKAGE_NAME lists.  ##
5900## ------------------------------------------ ##
5901_ASBOX
5902    ) |
5903      sed "s/^/$as_me: WARNING:     /" >&2
5904    ;;
5905esac
5906echo "$as_me:$LINENO: checking for $ac_header" >&5
5907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  eval "$as_ac_Header=\$ac_header_preproc"
5912fi
5913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5915
5916fi
5917if test `eval echo '${'$as_ac_Header'}'` = yes; then
5918  cat >>confdefs.h <<_ACEOF
5919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5920_ACEOF
5921
5922fi
5923
5924done
5925
5926
5927echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5928echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5929if test "${ac_cv_func_closedir_void+set}" = set; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  if test "$cross_compiling" = yes; then
5933  ac_cv_func_closedir_void=yes
5934else
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941$ac_includes_default
5942#include <$ac_header_dirent>
5943#ifndef __cplusplus
5944int closedir ();
5945#endif
5946
5947int
5948main ()
5949{
5950exit (closedir (opendir (".")) != 0);
5951  ;
5952  return 0;
5953}
5954_ACEOF
5955rm -f conftest$ac_exeext
5956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957  (eval $ac_link) 2>&5
5958  ac_status=$?
5959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962  (eval $ac_try) 2>&5
5963  ac_status=$?
5964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); }; }; then
5966  ac_cv_func_closedir_void=no
5967else
5968  echo "$as_me: program exited with status $ac_status" >&5
5969echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972( exit $ac_status )
5973ac_cv_func_closedir_void=yes
5974fi
5975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976fi
5977fi
5978echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5979echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5980if test $ac_cv_func_closedir_void = yes; then
5981
5982cat >>confdefs.h <<\_ACEOF
5983#define CLOSEDIR_VOID 1
5984_ACEOF
5985
5986fi
5987
5988
5989for ac_header in stdlib.h
5990do
5991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993  echo "$as_me:$LINENO: checking for $ac_header" >&5
5994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997fi
5998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6000else
6001  # Is the header compilable?
6002echo "$as_me:$LINENO: checking $ac_header usability" >&5
6003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010$ac_includes_default
6011#include <$ac_header>
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015  (eval $ac_compile) 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022	 { ac_try='test -z "$ac_c_werror_flag"
6023			 || test ! -s conftest.err'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; } &&
6029	 { ac_try='test -s conftest.$ac_objext'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  ac_header_compiler=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_header_compiler=no
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044echo "${ECHO_T}$ac_header_compiler" >&6
6045
6046# Is the header present?
6047echo "$as_me:$LINENO: checking $ac_header presence" >&5
6048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h.  */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h.  */
6055#include <$ac_header>
6056_ACEOF
6057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059  ac_status=$?
6060  grep -v '^ *+' conftest.er1 >conftest.err
6061  rm -f conftest.er1
6062  cat conftest.err >&5
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); } >/dev/null; then
6065  if test -s conftest.err; then
6066    ac_cpp_err=$ac_c_preproc_warn_flag
6067    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6068  else
6069    ac_cpp_err=
6070  fi
6071else
6072  ac_cpp_err=yes
6073fi
6074if test -z "$ac_cpp_err"; then
6075  ac_header_preproc=yes
6076else
6077  echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080  ac_header_preproc=no
6081fi
6082rm -f conftest.err conftest.$ac_ext
6083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084echo "${ECHO_T}$ac_header_preproc" >&6
6085
6086# So?  What about this header?
6087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088  yes:no: )
6089    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6093    ac_header_preproc=yes
6094    ;;
6095  no:yes:* )
6096    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6098    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6099echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6100    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6102    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6103echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6106    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6108    (
6109      cat <<\_ASBOX
6110## ------------------------------------------ ##
6111## Report this to the AC_PACKAGE_NAME lists.  ##
6112## ------------------------------------------ ##
6113_ASBOX
6114    ) |
6115      sed "s/^/$as_me: WARNING:     /" >&2
6116    ;;
6117esac
6118echo "$as_me:$LINENO: checking for $ac_header" >&5
6119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  eval "$as_ac_Header=\$ac_header_preproc"
6124fi
6125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6127
6128fi
6129if test `eval echo '${'$as_ac_Header'}'` = yes; then
6130  cat >>confdefs.h <<_ACEOF
6131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6132_ACEOF
6133
6134fi
6135
6136done
6137
6138echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6139echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6140if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6141  echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143  if test "$cross_compiling" = yes; then
6144  ac_cv_func_malloc_0_nonnull=no
6145else
6146  cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h.  */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h.  */
6152#if STDC_HEADERS || HAVE_STDLIB_H
6153# include <stdlib.h>
6154#else
6155char *malloc ();
6156#endif
6157
6158int
6159main ()
6160{
6161exit (malloc (0) ? 0 : 1);
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166rm -f conftest$ac_exeext
6167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168  (eval $ac_link) 2>&5
6169  ac_status=$?
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173  (eval $ac_try) 2>&5
6174  ac_status=$?
6175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); }; }; then
6177  ac_cv_func_malloc_0_nonnull=yes
6178else
6179  echo "$as_me: program exited with status $ac_status" >&5
6180echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183( exit $ac_status )
6184ac_cv_func_malloc_0_nonnull=no
6185fi
6186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187fi
6188fi
6189echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6190echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6191if test $ac_cv_func_malloc_0_nonnull = yes; then
6192
6193cat >>confdefs.h <<\_ACEOF
6194#define HAVE_MALLOC 1
6195_ACEOF
6196
6197else
6198  cat >>confdefs.h <<\_ACEOF
6199#define HAVE_MALLOC 0
6200_ACEOF
6201
6202   case $LIBOBJS in
6203    "malloc.$ac_objext"   | \
6204  *" malloc.$ac_objext"   | \
6205    "malloc.$ac_objext "* | \
6206  *" malloc.$ac_objext "* ) ;;
6207  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6208esac
6209
6210
6211cat >>confdefs.h <<\_ACEOF
6212#define malloc rpl_malloc
6213_ACEOF
6214
6215fi
6216
6217
6218
6219echo "$as_me:$LINENO: checking for working memcmp" >&5
6220echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6221if test "${ac_cv_func_memcmp_working+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  if test "$cross_compiling" = yes; then
6225  ac_cv_func_memcmp_working=no
6226else
6227  cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h.  */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h.  */
6233$ac_includes_default
6234int
6235main ()
6236{
6237
6238  /* Some versions of memcmp are not 8-bit clean.  */
6239  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6240  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6241    exit (1);
6242
6243  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6244     or more and with at least one buffer not starting on a 4-byte boundary.
6245     William Lewis provided this test program.   */
6246  {
6247    char foo[21];
6248    char bar[21];
6249    int i;
6250    for (i = 0; i < 4; i++)
6251      {
6252	char *a = foo + i;
6253	char *b = bar + i;
6254	strcpy (a, "--------01111111");
6255	strcpy (b, "--------10000000");
6256	if (memcmp (a, b, 16) >= 0)
6257	  exit (1);
6258      }
6259    exit (0);
6260  }
6261
6262  ;
6263  return 0;
6264}
6265_ACEOF
6266rm -f conftest$ac_exeext
6267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268  (eval $ac_link) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273  (eval $ac_try) 2>&5
6274  ac_status=$?
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); }; }; then
6277  ac_cv_func_memcmp_working=yes
6278else
6279  echo "$as_me: program exited with status $ac_status" >&5
6280echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283( exit $ac_status )
6284ac_cv_func_memcmp_working=no
6285fi
6286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6287fi
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6290echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6291test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6292    "memcmp.$ac_objext"   | \
6293  *" memcmp.$ac_objext"   | \
6294    "memcmp.$ac_objext "* | \
6295  *" memcmp.$ac_objext "* ) ;;
6296  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6297esac
6298
6299
6300
6301for ac_header in stdlib.h
6302do
6303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6304if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305  echo "$as_me:$LINENO: checking for $ac_header" >&5
6306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309fi
6310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312else
6313  # Is the header compilable?
6314echo "$as_me:$LINENO: checking $ac_header usability" >&5
6315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6316cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h.  */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h.  */
6322$ac_includes_default
6323#include <$ac_header>
6324_ACEOF
6325rm -f conftest.$ac_objext
6326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327  (eval $ac_compile) 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } &&
6334	 { ac_try='test -z "$ac_c_werror_flag"
6335			 || test ! -s conftest.err'
6336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337  (eval $ac_try) 2>&5
6338  ac_status=$?
6339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340  (exit $ac_status); }; } &&
6341	 { ac_try='test -s conftest.$ac_objext'
6342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343  (eval $ac_try) 2>&5
6344  ac_status=$?
6345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346  (exit $ac_status); }; }; then
6347  ac_header_compiler=yes
6348else
6349  echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352ac_header_compiler=no
6353fi
6354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356echo "${ECHO_T}$ac_header_compiler" >&6
6357
6358# Is the header present?
6359echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6361cat >conftest.$ac_ext <<_ACEOF
6362/* confdefs.h.  */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h.  */
6367#include <$ac_header>
6368_ACEOF
6369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6371  ac_status=$?
6372  grep -v '^ *+' conftest.er1 >conftest.err
6373  rm -f conftest.er1
6374  cat conftest.err >&5
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); } >/dev/null; then
6377  if test -s conftest.err; then
6378    ac_cpp_err=$ac_c_preproc_warn_flag
6379    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380  else
6381    ac_cpp_err=
6382  fi
6383else
6384  ac_cpp_err=yes
6385fi
6386if test -z "$ac_cpp_err"; then
6387  ac_header_preproc=yes
6388else
6389  echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392  ac_header_preproc=no
6393fi
6394rm -f conftest.err conftest.$ac_ext
6395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396echo "${ECHO_T}$ac_header_preproc" >&6
6397
6398# So?  What about this header?
6399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400  yes:no: )
6401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405    ac_header_preproc=yes
6406    ;;
6407  no:yes:* )
6408    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6411echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6412    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6415echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6416    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6420    (
6421      cat <<\_ASBOX
6422## ------------------------------------------ ##
6423## Report this to the AC_PACKAGE_NAME lists.  ##
6424## ------------------------------------------ ##
6425_ASBOX
6426    ) |
6427      sed "s/^/$as_me: WARNING:     /" >&2
6428    ;;
6429esac
6430echo "$as_me:$LINENO: checking for $ac_header" >&5
6431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6432if eval "test \"\${$as_ac_Header+set}\" = set"; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  eval "$as_ac_Header=\$ac_header_preproc"
6436fi
6437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439
6440fi
6441if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442  cat >>confdefs.h <<_ACEOF
6443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444_ACEOF
6445
6446fi
6447
6448done
6449
6450echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
6451echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
6452if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
6453  echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455  if test "$cross_compiling" = yes; then
6456  ac_cv_func_realloc_0_nonnull=no
6457else
6458  cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464#if STDC_HEADERS || HAVE_STDLIB_H
6465# include <stdlib.h>
6466#else
6467char *realloc ();
6468#endif
6469
6470int
6471main ()
6472{
6473exit (realloc (0, 0) ? 0 : 1);
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478rm -f conftest$ac_exeext
6479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480  (eval $ac_link) 2>&5
6481  ac_status=$?
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485  (eval $ac_try) 2>&5
6486  ac_status=$?
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); }; }; then
6489  ac_cv_func_realloc_0_nonnull=yes
6490else
6491  echo "$as_me: program exited with status $ac_status" >&5
6492echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495( exit $ac_status )
6496ac_cv_func_realloc_0_nonnull=no
6497fi
6498rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6499fi
6500fi
6501echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6502echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
6503if test $ac_cv_func_realloc_0_nonnull = yes; then
6504
6505cat >>confdefs.h <<\_ACEOF
6506#define HAVE_REALLOC 1
6507_ACEOF
6508
6509else
6510  cat >>confdefs.h <<\_ACEOF
6511#define HAVE_REALLOC 0
6512_ACEOF
6513
6514   case $LIBOBJS in
6515    "realloc.$ac_objext"   | \
6516  *" realloc.$ac_objext"   | \
6517    "realloc.$ac_objext "* | \
6518  *" realloc.$ac_objext "* ) ;;
6519  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
6520esac
6521
6522
6523cat >>confdefs.h <<\_ACEOF
6524#define realloc rpl_realloc
6525_ACEOF
6526
6527fi
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540for ac_func in bzero memmove memset mlock readdir_r strchr strdup strrchr
6541do
6542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6543echo "$as_me:$LINENO: checking for $ac_func" >&5
6544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6545if eval "test \"\${$as_ac_var+set}\" = set"; then
6546  echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548  cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h.  */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h.  */
6554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6555   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6556#define $ac_func innocuous_$ac_func
6557
6558/* System header to define __stub macros and hopefully few prototypes,
6559    which can conflict with char $ac_func (); below.
6560    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561    <limits.h> exists even on freestanding compilers.  */
6562
6563#ifdef __STDC__
6564# include <limits.h>
6565#else
6566# include <assert.h>
6567#endif
6568
6569#undef $ac_func
6570
6571/* Override any gcc2 internal prototype to avoid an error.  */
6572#ifdef __cplusplus
6573extern "C"
6574{
6575#endif
6576/* We use char because int might match the return type of a gcc2
6577   builtin and then its argument prototype would still apply.  */
6578char $ac_func ();
6579/* The GNU C library defines this for functions which it implements
6580    to always fail with ENOSYS.  Some functions are actually named
6581    something starting with __ and the normal name is an alias.  */
6582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6583choke me
6584#else
6585char (*f) () = $ac_func;
6586#endif
6587#ifdef __cplusplus
6588}
6589#endif
6590
6591int
6592main ()
6593{
6594return f != $ac_func;
6595  ;
6596  return 0;
6597}
6598_ACEOF
6599rm -f conftest.$ac_objext conftest$ac_exeext
6600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601  (eval $ac_link) 2>conftest.er1
6602  ac_status=$?
6603  grep -v '^ *+' conftest.er1 >conftest.err
6604  rm -f conftest.er1
6605  cat conftest.err >&5
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } &&
6608	 { ac_try='test -z "$ac_c_werror_flag"
6609			 || test ! -s conftest.err'
6610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611  (eval $ac_try) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }; } &&
6615	 { ac_try='test -s conftest$ac_exeext'
6616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617  (eval $ac_try) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; }; then
6621  eval "$as_ac_var=yes"
6622else
6623  echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626eval "$as_ac_var=no"
6627fi
6628rm -f conftest.err conftest.$ac_objext \
6629      conftest$ac_exeext conftest.$ac_ext
6630fi
6631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6633if test `eval echo '${'$as_ac_var'}'` = yes; then
6634  cat >>confdefs.h <<_ACEOF
6635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6636_ACEOF
6637
6638fi
6639done
6640
6641
6642for ac_func in readdir,,
6643do
6644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6645echo "$as_me:$LINENO: checking for $ac_func" >&5
6646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6647if eval "test \"\${$as_ac_var+set}\" = set"; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h.  */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h.  */
6656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6657   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6658#define $ac_func innocuous_$ac_func
6659
6660/* System header to define __stub macros and hopefully few prototypes,
6661    which can conflict with char $ac_func (); below.
6662    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6663    <limits.h> exists even on freestanding compilers.  */
6664
6665#ifdef __STDC__
6666# include <limits.h>
6667#else
6668# include <assert.h>
6669#endif
6670
6671#undef $ac_func
6672
6673/* Override any gcc2 internal prototype to avoid an error.  */
6674#ifdef __cplusplus
6675extern "C"
6676{
6677#endif
6678/* We use char because int might match the return type of a gcc2
6679   builtin and then its argument prototype would still apply.  */
6680char $ac_func ();
6681/* The GNU C library defines this for functions which it implements
6682    to always fail with ENOSYS.  Some functions are actually named
6683    something starting with __ and the normal name is an alias.  */
6684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685choke me
6686#else
6687char (*f) () = $ac_func;
6688#endif
6689#ifdef __cplusplus
6690}
6691#endif
6692
6693int
6694main ()
6695{
6696return f != $ac_func;
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703  (eval $ac_link) 2>conftest.er1
6704  ac_status=$?
6705  grep -v '^ *+' conftest.er1 >conftest.err
6706  rm -f conftest.er1
6707  cat conftest.err >&5
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); } &&
6710	 { ac_try='test -z "$ac_c_werror_flag"
6711			 || test ! -s conftest.err'
6712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713  (eval $ac_try) 2>&5
6714  ac_status=$?
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); }; } &&
6717	 { ac_try='test -s conftest$ac_exeext'
6718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719  (eval $ac_try) 2>&5
6720  ac_status=$?
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); }; }; then
6723  eval "$as_ac_var=yes"
6724else
6725  echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728eval "$as_ac_var=no"
6729fi
6730rm -f conftest.err conftest.$ac_objext \
6731      conftest$ac_exeext conftest.$ac_ext
6732fi
6733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6735if test `eval echo '${'$as_ac_var'}'` = yes; then
6736  cat >>confdefs.h <<_ACEOF
6737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6738_ACEOF
6739
6740fi
6741done
6742
6743
6744for ac_func in bcopy,,
6745do
6746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6747echo "$as_me:$LINENO: checking for $ac_func" >&5
6748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6749if eval "test \"\${$as_ac_var+set}\" = set"; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  cat >conftest.$ac_ext <<_ACEOF
6753/* confdefs.h.  */
6754_ACEOF
6755cat confdefs.h >>conftest.$ac_ext
6756cat >>conftest.$ac_ext <<_ACEOF
6757/* end confdefs.h.  */
6758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6759   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6760#define $ac_func innocuous_$ac_func
6761
6762/* System header to define __stub macros and hopefully few prototypes,
6763    which can conflict with char $ac_func (); below.
6764    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6765    <limits.h> exists even on freestanding compilers.  */
6766
6767#ifdef __STDC__
6768# include <limits.h>
6769#else
6770# include <assert.h>
6771#endif
6772
6773#undef $ac_func
6774
6775/* Override any gcc2 internal prototype to avoid an error.  */
6776#ifdef __cplusplus
6777extern "C"
6778{
6779#endif
6780/* We use char because int might match the return type of a gcc2
6781   builtin and then its argument prototype would still apply.  */
6782char $ac_func ();
6783/* The GNU C library defines this for functions which it implements
6784    to always fail with ENOSYS.  Some functions are actually named
6785    something starting with __ and the normal name is an alias.  */
6786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6787choke me
6788#else
6789char (*f) () = $ac_func;
6790#endif
6791#ifdef __cplusplus
6792}
6793#endif
6794
6795int
6796main ()
6797{
6798return f != $ac_func;
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext conftest$ac_exeext
6804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6805  (eval $ac_link) 2>conftest.er1
6806  ac_status=$?
6807  grep -v '^ *+' conftest.er1 >conftest.err
6808  rm -f conftest.er1
6809  cat conftest.err >&5
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); } &&
6812	 { ac_try='test -z "$ac_c_werror_flag"
6813			 || test ! -s conftest.err'
6814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815  (eval $ac_try) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }; } &&
6819	 { ac_try='test -s conftest$ac_exeext'
6820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821  (eval $ac_try) 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; }; then
6825  eval "$as_ac_var=yes"
6826else
6827  echo "$as_me: failed program was:" >&5
6828sed 's/^/| /' conftest.$ac_ext >&5
6829
6830eval "$as_ac_var=no"
6831fi
6832rm -f conftest.err conftest.$ac_objext \
6833      conftest$ac_exeext conftest.$ac_ext
6834fi
6835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6837if test `eval echo '${'$as_ac_var'}'` = yes; then
6838  cat >>confdefs.h <<_ACEOF
6839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6840_ACEOF
6841
6842fi
6843done
6844
6845
6846echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6847echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6848if test "${ac_cv_c_bigendian+set}" = set; then
6849  echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851  # See if sys/param.h defines the BYTE_ORDER macro.
6852cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h.  */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h.  */
6858#include <sys/types.h>
6859#include <sys/param.h>
6860
6861int
6862main ()
6863{
6864#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6865 bogus endian macros
6866#endif
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872rm -f conftest.$ac_objext
6873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874  (eval $ac_compile) 2>conftest.er1
6875  ac_status=$?
6876  grep -v '^ *+' conftest.er1 >conftest.err
6877  rm -f conftest.er1
6878  cat conftest.err >&5
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); } &&
6881	 { ac_try='test -z "$ac_c_werror_flag"
6882			 || test ! -s conftest.err'
6883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884  (eval $ac_try) 2>&5
6885  ac_status=$?
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); }; } &&
6888	 { ac_try='test -s conftest.$ac_objext'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; }; then
6894  # It does; now see whether it defined to BIG_ENDIAN or not.
6895cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h.  */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h.  */
6901#include <sys/types.h>
6902#include <sys/param.h>
6903
6904int
6905main ()
6906{
6907#if BYTE_ORDER != BIG_ENDIAN
6908 not big endian
6909#endif
6910
6911  ;
6912  return 0;
6913}
6914_ACEOF
6915rm -f conftest.$ac_objext
6916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917  (eval $ac_compile) 2>conftest.er1
6918  ac_status=$?
6919  grep -v '^ *+' conftest.er1 >conftest.err
6920  rm -f conftest.er1
6921  cat conftest.err >&5
6922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923  (exit $ac_status); } &&
6924	 { ac_try='test -z "$ac_c_werror_flag"
6925			 || test ! -s conftest.err'
6926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927  (eval $ac_try) 2>&5
6928  ac_status=$?
6929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930  (exit $ac_status); }; } &&
6931	 { ac_try='test -s conftest.$ac_objext'
6932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933  (eval $ac_try) 2>&5
6934  ac_status=$?
6935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936  (exit $ac_status); }; }; then
6937  ac_cv_c_bigendian=yes
6938else
6939  echo "$as_me: failed program was:" >&5
6940sed 's/^/| /' conftest.$ac_ext >&5
6941
6942ac_cv_c_bigendian=no
6943fi
6944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945else
6946  echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
6949# It does not; compile a test program.
6950if test "$cross_compiling" = yes; then
6951  # try to guess the endianness by grepping values into an object file
6952  ac_cv_c_bigendian=unknown
6953  cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h.  */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h.  */
6959short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6960short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6961void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6962short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6963short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6964void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6965int
6966main ()
6967{
6968 _ascii (); _ebcdic ();
6969  ;
6970  return 0;
6971}
6972_ACEOF
6973rm -f conftest.$ac_objext
6974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975  (eval $ac_compile) 2>conftest.er1
6976  ac_status=$?
6977  grep -v '^ *+' conftest.er1 >conftest.err
6978  rm -f conftest.er1
6979  cat conftest.err >&5
6980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981  (exit $ac_status); } &&
6982	 { ac_try='test -z "$ac_c_werror_flag"
6983			 || test ! -s conftest.err'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; } &&
6989	 { ac_try='test -s conftest.$ac_objext'
6990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991  (eval $ac_try) 2>&5
6992  ac_status=$?
6993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994  (exit $ac_status); }; }; then
6995  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6996  ac_cv_c_bigendian=yes
6997fi
6998if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6999  if test "$ac_cv_c_bigendian" = unknown; then
7000    ac_cv_c_bigendian=no
7001  else
7002    # finding both strings is unlikely to happen, but who knows?
7003    ac_cv_c_bigendian=unknown
7004  fi
7005fi
7006else
7007  echo "$as_me: failed program was:" >&5
7008sed 's/^/| /' conftest.$ac_ext >&5
7009
7010fi
7011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7012else
7013  cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h.  */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h.  */
7019int
7020main ()
7021{
7022  /* Are we little or big endian?  From Harbison&Steele.  */
7023  union
7024  {
7025    long l;
7026    char c[sizeof (long)];
7027  } u;
7028  u.l = 1;
7029  exit (u.c[sizeof (long) - 1] == 1);
7030}
7031_ACEOF
7032rm -f conftest$ac_exeext
7033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034  (eval $ac_link) 2>&5
7035  ac_status=$?
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039  (eval $ac_try) 2>&5
7040  ac_status=$?
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); }; }; then
7043  ac_cv_c_bigendian=no
7044else
7045  echo "$as_me: program exited with status $ac_status" >&5
7046echo "$as_me: failed program was:" >&5
7047sed 's/^/| /' conftest.$ac_ext >&5
7048
7049( exit $ac_status )
7050ac_cv_c_bigendian=yes
7051fi
7052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7053fi
7054fi
7055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056fi
7057echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7058echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7059case $ac_cv_c_bigendian in
7060  yes)
7061
7062cat >>confdefs.h <<\_ACEOF
7063#define WORDS_BIGENDIAN 1
7064_ACEOF
7065 ;;
7066  no)
7067     ;;
7068  *)
7069    { { echo "$as_me:$LINENO: error: unknown endianness
7070presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7071echo "$as_me: error: unknown endianness
7072presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7073   { (exit 1); exit 1; }; } ;;
7074esac
7075
7076echo "$as_me:$LINENO: checking for unsigned long int" >&5
7077echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6
7078if test "${ac_cv_type_unsigned_long_int+set}" = set; then
7079  echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081  cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h.  */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h.  */
7087$ac_includes_default
7088int
7089main ()
7090{
7091if ((unsigned long int *) 0)
7092  return 0;
7093if (sizeof (unsigned long int))
7094  return 0;
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099rm -f conftest.$ac_objext
7100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101  (eval $ac_compile) 2>conftest.er1
7102  ac_status=$?
7103  grep -v '^ *+' conftest.er1 >conftest.err
7104  rm -f conftest.er1
7105  cat conftest.err >&5
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); } &&
7108	 { ac_try='test -z "$ac_c_werror_flag"
7109			 || test ! -s conftest.err'
7110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111  (eval $ac_try) 2>&5
7112  ac_status=$?
7113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114  (exit $ac_status); }; } &&
7115	 { ac_try='test -s conftest.$ac_objext'
7116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117  (eval $ac_try) 2>&5
7118  ac_status=$?
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }; }; then
7121  ac_cv_type_unsigned_long_int=yes
7122else
7123  echo "$as_me: failed program was:" >&5
7124sed 's/^/| /' conftest.$ac_ext >&5
7125
7126ac_cv_type_unsigned_long_int=no
7127fi
7128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129fi
7130echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
7131echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6
7132
7133echo "$as_me:$LINENO: checking size of unsigned long int" >&5
7134echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6
7135if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
7136  echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138  if test "$ac_cv_type_unsigned_long_int" = yes; then
7139  # The cast to unsigned long works around a bug in the HP C Compiler
7140  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7142  # This bug is HP SR number 8606223364.
7143  if test "$cross_compiling" = yes; then
7144  # Depending upon the size, compute the lo and hi bounds.
7145cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151$ac_includes_default
7152int
7153main ()
7154{
7155static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)];
7156test_array [0] = 0
7157
7158  ;
7159  return 0;
7160}
7161_ACEOF
7162rm -f conftest.$ac_objext
7163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164  (eval $ac_compile) 2>conftest.er1
7165  ac_status=$?
7166  grep -v '^ *+' conftest.er1 >conftest.err
7167  rm -f conftest.er1
7168  cat conftest.err >&5
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); } &&
7171	 { ac_try='test -z "$ac_c_werror_flag"
7172			 || test ! -s conftest.err'
7173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174  (eval $ac_try) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; } &&
7178	 { ac_try='test -s conftest.$ac_objext'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; }; then
7184  ac_lo=0 ac_mid=0
7185  while :; do
7186    cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h.  */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
7191/* end confdefs.h.  */
7192$ac_includes_default
7193int
7194main ()
7195{
7196static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
7197test_array [0] = 0
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203rm -f conftest.$ac_objext
7204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205  (eval $ac_compile) 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } &&
7212	 { ac_try='test -z "$ac_c_werror_flag"
7213			 || test ! -s conftest.err'
7214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215  (eval $ac_try) 2>&5
7216  ac_status=$?
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); }; } &&
7219	 { ac_try='test -s conftest.$ac_objext'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; }; then
7225  ac_hi=$ac_mid; break
7226else
7227  echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
7230ac_lo=`expr $ac_mid + 1`
7231		    if test $ac_lo -le $ac_mid; then
7232		      ac_lo= ac_hi=
7233		      break
7234		    fi
7235		    ac_mid=`expr 2 '*' $ac_mid + 1`
7236fi
7237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7238  done
7239else
7240  echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243cat >conftest.$ac_ext <<_ACEOF
7244/* confdefs.h.  */
7245_ACEOF
7246cat confdefs.h >>conftest.$ac_ext
7247cat >>conftest.$ac_ext <<_ACEOF
7248/* end confdefs.h.  */
7249$ac_includes_default
7250int
7251main ()
7252{
7253static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)];
7254test_array [0] = 0
7255
7256  ;
7257  return 0;
7258}
7259_ACEOF
7260rm -f conftest.$ac_objext
7261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262  (eval $ac_compile) 2>conftest.er1
7263  ac_status=$?
7264  grep -v '^ *+' conftest.er1 >conftest.err
7265  rm -f conftest.er1
7266  cat conftest.err >&5
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); } &&
7269	 { ac_try='test -z "$ac_c_werror_flag"
7270			 || test ! -s conftest.err'
7271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272  (eval $ac_try) 2>&5
7273  ac_status=$?
7274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275  (exit $ac_status); }; } &&
7276	 { ac_try='test -s conftest.$ac_objext'
7277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278  (eval $ac_try) 2>&5
7279  ac_status=$?
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); }; }; then
7282  ac_hi=-1 ac_mid=-1
7283  while :; do
7284    cat >conftest.$ac_ext <<_ACEOF
7285/* confdefs.h.  */
7286_ACEOF
7287cat confdefs.h >>conftest.$ac_ext
7288cat >>conftest.$ac_ext <<_ACEOF
7289/* end confdefs.h.  */
7290$ac_includes_default
7291int
7292main ()
7293{
7294static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)];
7295test_array [0] = 0
7296
7297  ;
7298  return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext
7302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303  (eval $ac_compile) 2>conftest.er1
7304  ac_status=$?
7305  grep -v '^ *+' conftest.er1 >conftest.err
7306  rm -f conftest.er1
7307  cat conftest.err >&5
7308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309  (exit $ac_status); } &&
7310	 { ac_try='test -z "$ac_c_werror_flag"
7311			 || test ! -s conftest.err'
7312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313  (eval $ac_try) 2>&5
7314  ac_status=$?
7315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316  (exit $ac_status); }; } &&
7317	 { ac_try='test -s conftest.$ac_objext'
7318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319  (eval $ac_try) 2>&5
7320  ac_status=$?
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); }; }; then
7323  ac_lo=$ac_mid; break
7324else
7325  echo "$as_me: failed program was:" >&5
7326sed 's/^/| /' conftest.$ac_ext >&5
7327
7328ac_hi=`expr '(' $ac_mid ')' - 1`
7329		       if test $ac_mid -le $ac_hi; then
7330			 ac_lo= ac_hi=
7331			 break
7332		       fi
7333		       ac_mid=`expr 2 '*' $ac_mid`
7334fi
7335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336  done
7337else
7338  echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_lo= ac_hi=
7342fi
7343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346# Binary search between lo and hi bounds.
7347while test "x$ac_lo" != "x$ac_hi"; do
7348  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7349  cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h.  */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h.  */
7355$ac_includes_default
7356int
7357main ()
7358{
7359static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
7360test_array [0] = 0
7361
7362  ;
7363  return 0;
7364}
7365_ACEOF
7366rm -f conftest.$ac_objext
7367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368  (eval $ac_compile) 2>conftest.er1
7369  ac_status=$?
7370  grep -v '^ *+' conftest.er1 >conftest.err
7371  rm -f conftest.er1
7372  cat conftest.err >&5
7373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374  (exit $ac_status); } &&
7375	 { ac_try='test -z "$ac_c_werror_flag"
7376			 || test ! -s conftest.err'
7377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378  (eval $ac_try) 2>&5
7379  ac_status=$?
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); }; } &&
7382	 { ac_try='test -s conftest.$ac_objext'
7383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384  (eval $ac_try) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; }; then
7388  ac_hi=$ac_mid
7389else
7390  echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393ac_lo=`expr '(' $ac_mid ')' + 1`
7394fi
7395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7396done
7397case $ac_lo in
7398?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
7399'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
7400See \`config.log' for more details." >&5
7401echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
7402See \`config.log' for more details." >&2;}
7403   { (exit 1); exit 1; }; } ;;
7404esac
7405else
7406  if test "$cross_compiling" = yes; then
7407  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7408See \`config.log' for more details." >&5
7409echo "$as_me: error: cannot run test program while cross compiling
7410See \`config.log' for more details." >&2;}
7411   { (exit 1); exit 1; }; }
7412else
7413  cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h.  */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h.  */
7419$ac_includes_default
7420long longval () { return (long) (sizeof (unsigned long int)); }
7421unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
7422#include <stdio.h>
7423#include <stdlib.h>
7424int
7425main ()
7426{
7427
7428  FILE *f = fopen ("conftest.val", "w");
7429  if (! f)
7430    exit (1);
7431  if (((long) (sizeof (unsigned long int))) < 0)
7432    {
7433      long i = longval ();
7434      if (i != ((long) (sizeof (unsigned long int))))
7435	exit (1);
7436      fprintf (f, "%ld\n", i);
7437    }
7438  else
7439    {
7440      unsigned long i = ulongval ();
7441      if (i != ((long) (sizeof (unsigned long int))))
7442	exit (1);
7443      fprintf (f, "%lu\n", i);
7444    }
7445  exit (ferror (f) || fclose (f) != 0);
7446
7447  ;
7448  return 0;
7449}
7450_ACEOF
7451rm -f conftest$ac_exeext
7452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453  (eval $ac_link) 2>&5
7454  ac_status=$?
7455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458  (eval $ac_try) 2>&5
7459  ac_status=$?
7460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461  (exit $ac_status); }; }; then
7462  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
7463else
7464  echo "$as_me: program exited with status $ac_status" >&5
7465echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468( exit $ac_status )
7469{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
7470See \`config.log' for more details." >&5
7471echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
7472See \`config.log' for more details." >&2;}
7473   { (exit 1); exit 1; }; }
7474fi
7475rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7476fi
7477fi
7478rm -f conftest.val
7479else
7480  ac_cv_sizeof_unsigned_long_int=0
7481fi
7482fi
7483echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
7484echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
7485cat >>confdefs.h <<_ACEOF
7486#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
7487_ACEOF
7488
7489
7490echo "$as_me:$LINENO: checking for unsigned int" >&5
7491echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
7492if test "${ac_cv_type_unsigned_int+set}" = set; then
7493  echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495  cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h.  */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h.  */
7501$ac_includes_default
7502int
7503main ()
7504{
7505if ((unsigned int *) 0)
7506  return 0;
7507if (sizeof (unsigned int))
7508  return 0;
7509  ;
7510  return 0;
7511}
7512_ACEOF
7513rm -f conftest.$ac_objext
7514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515  (eval $ac_compile) 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } &&
7522	 { ac_try='test -z "$ac_c_werror_flag"
7523			 || test ! -s conftest.err'
7524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525  (eval $ac_try) 2>&5
7526  ac_status=$?
7527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528  (exit $ac_status); }; } &&
7529	 { ac_try='test -s conftest.$ac_objext'
7530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531  (eval $ac_try) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); }; }; then
7535  ac_cv_type_unsigned_int=yes
7536else
7537  echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540ac_cv_type_unsigned_int=no
7541fi
7542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543fi
7544echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
7545echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
7546
7547echo "$as_me:$LINENO: checking size of unsigned int" >&5
7548echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
7549if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  if test "$ac_cv_type_unsigned_int" = yes; then
7553  # The cast to unsigned long works around a bug in the HP C Compiler
7554  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7555  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7556  # This bug is HP SR number 8606223364.
7557  if test "$cross_compiling" = yes; then
7558  # Depending upon the size, compute the lo and hi bounds.
7559cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h.  */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h.  */
7565$ac_includes_default
7566int
7567main ()
7568{
7569static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
7570test_array [0] = 0
7571
7572  ;
7573  return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext
7577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578  (eval $ac_compile) 2>conftest.er1
7579  ac_status=$?
7580  grep -v '^ *+' conftest.er1 >conftest.err
7581  rm -f conftest.er1
7582  cat conftest.err >&5
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } &&
7585	 { ac_try='test -z "$ac_c_werror_flag"
7586			 || test ! -s conftest.err'
7587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588  (eval $ac_try) 2>&5
7589  ac_status=$?
7590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591  (exit $ac_status); }; } &&
7592	 { ac_try='test -s conftest.$ac_objext'
7593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7594  (eval $ac_try) 2>&5
7595  ac_status=$?
7596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597  (exit $ac_status); }; }; then
7598  ac_lo=0 ac_mid=0
7599  while :; do
7600    cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h.  */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h.  */
7606$ac_includes_default
7607int
7608main ()
7609{
7610static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
7611test_array [0] = 0
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617rm -f conftest.$ac_objext
7618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619  (eval $ac_compile) 2>conftest.er1
7620  ac_status=$?
7621  grep -v '^ *+' conftest.er1 >conftest.err
7622  rm -f conftest.er1
7623  cat conftest.err >&5
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); } &&
7626	 { ac_try='test -z "$ac_c_werror_flag"
7627			 || test ! -s conftest.err'
7628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629  (eval $ac_try) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); }; } &&
7633	 { ac_try='test -s conftest.$ac_objext'
7634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635  (eval $ac_try) 2>&5
7636  ac_status=$?
7637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638  (exit $ac_status); }; }; then
7639  ac_hi=$ac_mid; break
7640else
7641  echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644ac_lo=`expr $ac_mid + 1`
7645		    if test $ac_lo -le $ac_mid; then
7646		      ac_lo= ac_hi=
7647		      break
7648		    fi
7649		    ac_mid=`expr 2 '*' $ac_mid + 1`
7650fi
7651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652  done
7653else
7654  echo "$as_me: failed program was:" >&5
7655sed 's/^/| /' conftest.$ac_ext >&5
7656
7657cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h.  */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h.  */
7663$ac_includes_default
7664int
7665main ()
7666{
7667static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
7668test_array [0] = 0
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676  (eval $ac_compile) 2>conftest.er1
7677  ac_status=$?
7678  grep -v '^ *+' conftest.er1 >conftest.err
7679  rm -f conftest.er1
7680  cat conftest.err >&5
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); } &&
7683	 { ac_try='test -z "$ac_c_werror_flag"
7684			 || test ! -s conftest.err'
7685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686  (eval $ac_try) 2>&5
7687  ac_status=$?
7688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689  (exit $ac_status); }; } &&
7690	 { ac_try='test -s conftest.$ac_objext'
7691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692  (eval $ac_try) 2>&5
7693  ac_status=$?
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); }; }; then
7696  ac_hi=-1 ac_mid=-1
7697  while :; do
7698    cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704$ac_includes_default
7705int
7706main ()
7707{
7708static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
7709test_array [0] = 0
7710
7711  ;
7712  return 0;
7713}
7714_ACEOF
7715rm -f conftest.$ac_objext
7716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7717  (eval $ac_compile) 2>conftest.er1
7718  ac_status=$?
7719  grep -v '^ *+' conftest.er1 >conftest.err
7720  rm -f conftest.er1
7721  cat conftest.err >&5
7722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723  (exit $ac_status); } &&
7724	 { ac_try='test -z "$ac_c_werror_flag"
7725			 || test ! -s conftest.err'
7726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727  (eval $ac_try) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }; } &&
7731	 { ac_try='test -s conftest.$ac_objext'
7732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733  (eval $ac_try) 2>&5
7734  ac_status=$?
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); }; }; then
7737  ac_lo=$ac_mid; break
7738else
7739  echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742ac_hi=`expr '(' $ac_mid ')' - 1`
7743		       if test $ac_mid -le $ac_hi; then
7744			 ac_lo= ac_hi=
7745			 break
7746		       fi
7747		       ac_mid=`expr 2 '*' $ac_mid`
7748fi
7749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750  done
7751else
7752  echo "$as_me: failed program was:" >&5
7753sed 's/^/| /' conftest.$ac_ext >&5
7754
7755ac_lo= ac_hi=
7756fi
7757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758fi
7759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7760# Binary search between lo and hi bounds.
7761while test "x$ac_lo" != "x$ac_hi"; do
7762  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7763  cat >conftest.$ac_ext <<_ACEOF
7764/* confdefs.h.  */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h.  */
7769$ac_includes_default
7770int
7771main ()
7772{
7773static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
7774test_array [0] = 0
7775
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782  (eval $ac_compile) 2>conftest.er1
7783  ac_status=$?
7784  grep -v '^ *+' conftest.er1 >conftest.err
7785  rm -f conftest.er1
7786  cat conftest.err >&5
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); } &&
7789	 { ac_try='test -z "$ac_c_werror_flag"
7790			 || test ! -s conftest.err'
7791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792  (eval $ac_try) 2>&5
7793  ac_status=$?
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); }; } &&
7796	 { ac_try='test -s conftest.$ac_objext'
7797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798  (eval $ac_try) 2>&5
7799  ac_status=$?
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); }; }; then
7802  ac_hi=$ac_mid
7803else
7804  echo "$as_me: failed program was:" >&5
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7807ac_lo=`expr '(' $ac_mid ')' + 1`
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810done
7811case $ac_lo in
7812?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7813'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
7814See \`config.log' for more details." >&5
7815echo "$as_me: error: cannot compute sizeof (unsigned int), 77
7816See \`config.log' for more details." >&2;}
7817   { (exit 1); exit 1; }; } ;;
7818esac
7819else
7820  if test "$cross_compiling" = yes; then
7821  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7822See \`config.log' for more details." >&5
7823echo "$as_me: error: cannot run test program while cross compiling
7824See \`config.log' for more details." >&2;}
7825   { (exit 1); exit 1; }; }
7826else
7827  cat >conftest.$ac_ext <<_ACEOF
7828/* confdefs.h.  */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h.  */
7833$ac_includes_default
7834long longval () { return (long) (sizeof (unsigned int)); }
7835unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
7836#include <stdio.h>
7837#include <stdlib.h>
7838int
7839main ()
7840{
7841
7842  FILE *f = fopen ("conftest.val", "w");
7843  if (! f)
7844    exit (1);
7845  if (((long) (sizeof (unsigned int))) < 0)
7846    {
7847      long i = longval ();
7848      if (i != ((long) (sizeof (unsigned int))))
7849	exit (1);
7850      fprintf (f, "%ld\n", i);
7851    }
7852  else
7853    {
7854      unsigned long i = ulongval ();
7855      if (i != ((long) (sizeof (unsigned int))))
7856	exit (1);
7857      fprintf (f, "%lu\n", i);
7858    }
7859  exit (ferror (f) || fclose (f) != 0);
7860
7861  ;
7862  return 0;
7863}
7864_ACEOF
7865rm -f conftest$ac_exeext
7866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867  (eval $ac_link) 2>&5
7868  ac_status=$?
7869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872  (eval $ac_try) 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; }; then
7876  ac_cv_sizeof_unsigned_int=`cat conftest.val`
7877else
7878  echo "$as_me: program exited with status $ac_status" >&5
7879echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882( exit $ac_status )
7883{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
7884See \`config.log' for more details." >&5
7885echo "$as_me: error: cannot compute sizeof (unsigned int), 77
7886See \`config.log' for more details." >&2;}
7887   { (exit 1); exit 1; }; }
7888fi
7889rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7890fi
7891fi
7892rm -f conftest.val
7893else
7894  ac_cv_sizeof_unsigned_int=0
7895fi
7896fi
7897echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7898echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
7899cat >>confdefs.h <<_ACEOF
7900#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
7901_ACEOF
7902
7903
7904echo "$as_me:$LINENO: checking for unsigned short int" >&5
7905echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6
7906if test "${ac_cv_type_unsigned_short_int+set}" = set; then
7907  echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909  cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h.  */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h.  */
7915$ac_includes_default
7916int
7917main ()
7918{
7919if ((unsigned short int *) 0)
7920  return 0;
7921if (sizeof (unsigned short int))
7922  return 0;
7923  ;
7924  return 0;
7925}
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929  (eval $ac_compile) 2>conftest.er1
7930  ac_status=$?
7931  grep -v '^ *+' conftest.er1 >conftest.err
7932  rm -f conftest.er1
7933  cat conftest.err >&5
7934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935  (exit $ac_status); } &&
7936	 { ac_try='test -z "$ac_c_werror_flag"
7937			 || test ! -s conftest.err'
7938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939  (eval $ac_try) 2>&5
7940  ac_status=$?
7941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942  (exit $ac_status); }; } &&
7943	 { ac_try='test -s conftest.$ac_objext'
7944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945  (eval $ac_try) 2>&5
7946  ac_status=$?
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); }; }; then
7949  ac_cv_type_unsigned_short_int=yes
7950else
7951  echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954ac_cv_type_unsigned_short_int=no
7955fi
7956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
7959echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6
7960
7961echo "$as_me:$LINENO: checking size of unsigned short int" >&5
7962echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6
7963if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
7964  echo $ECHO_N "(cached) $ECHO_C" >&6
7965else
7966  if test "$ac_cv_type_unsigned_short_int" = yes; then
7967  # The cast to unsigned long works around a bug in the HP C Compiler
7968  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970  # This bug is HP SR number 8606223364.
7971  if test "$cross_compiling" = yes; then
7972  # Depending upon the size, compute the lo and hi bounds.
7973cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979$ac_includes_default
7980int
7981main ()
7982{
7983static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)];
7984test_array [0] = 0
7985
7986  ;
7987  return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext
7991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992  (eval $ac_compile) 2>conftest.er1
7993  ac_status=$?
7994  grep -v '^ *+' conftest.er1 >conftest.err
7995  rm -f conftest.er1
7996  cat conftest.err >&5
7997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998  (exit $ac_status); } &&
7999	 { ac_try='test -z "$ac_c_werror_flag"
8000			 || test ! -s conftest.err'
8001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002  (eval $ac_try) 2>&5
8003  ac_status=$?
8004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005  (exit $ac_status); }; } &&
8006	 { ac_try='test -s conftest.$ac_objext'
8007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008  (eval $ac_try) 2>&5
8009  ac_status=$?
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); }; }; then
8012  ac_lo=0 ac_mid=0
8013  while :; do
8014    cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h.  */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h.  */
8020$ac_includes_default
8021int
8022main ()
8023{
8024static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
8025test_array [0] = 0
8026
8027  ;
8028  return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033  (eval $ac_compile) 2>conftest.er1
8034  ac_status=$?
8035  grep -v '^ *+' conftest.er1 >conftest.err
8036  rm -f conftest.er1
8037  cat conftest.err >&5
8038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039  (exit $ac_status); } &&
8040	 { ac_try='test -z "$ac_c_werror_flag"
8041			 || test ! -s conftest.err'
8042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  (eval $ac_try) 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; } &&
8047	 { ac_try='test -s conftest.$ac_objext'
8048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049  (eval $ac_try) 2>&5
8050  ac_status=$?
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); }; }; then
8053  ac_hi=$ac_mid; break
8054else
8055  echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058ac_lo=`expr $ac_mid + 1`
8059		    if test $ac_lo -le $ac_mid; then
8060		      ac_lo= ac_hi=
8061		      break
8062		    fi
8063		    ac_mid=`expr 2 '*' $ac_mid + 1`
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066  done
8067else
8068  echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h.  */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h.  */
8077$ac_includes_default
8078int
8079main ()
8080{
8081static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)];
8082test_array [0] = 0
8083
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext
8089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090  (eval $ac_compile) 2>conftest.er1
8091  ac_status=$?
8092  grep -v '^ *+' conftest.er1 >conftest.err
8093  rm -f conftest.er1
8094  cat conftest.err >&5
8095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096  (exit $ac_status); } &&
8097	 { ac_try='test -z "$ac_c_werror_flag"
8098			 || test ! -s conftest.err'
8099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100  (eval $ac_try) 2>&5
8101  ac_status=$?
8102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103  (exit $ac_status); }; } &&
8104	 { ac_try='test -s conftest.$ac_objext'
8105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106  (eval $ac_try) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }; }; then
8110  ac_hi=-1 ac_mid=-1
8111  while :; do
8112    cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h.  */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h.  */
8118$ac_includes_default
8119int
8120main ()
8121{
8122static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)];
8123test_array [0] = 0
8124
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129rm -f conftest.$ac_objext
8130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131  (eval $ac_compile) 2>conftest.er1
8132  ac_status=$?
8133  grep -v '^ *+' conftest.er1 >conftest.err
8134  rm -f conftest.er1
8135  cat conftest.err >&5
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); } &&
8138	 { ac_try='test -z "$ac_c_werror_flag"
8139			 || test ! -s conftest.err'
8140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141  (eval $ac_try) 2>&5
8142  ac_status=$?
8143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144  (exit $ac_status); }; } &&
8145	 { ac_try='test -s conftest.$ac_objext'
8146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147  (eval $ac_try) 2>&5
8148  ac_status=$?
8149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150  (exit $ac_status); }; }; then
8151  ac_lo=$ac_mid; break
8152else
8153  echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156ac_hi=`expr '(' $ac_mid ')' - 1`
8157		       if test $ac_mid -le $ac_hi; then
8158			 ac_lo= ac_hi=
8159			 break
8160		       fi
8161		       ac_mid=`expr 2 '*' $ac_mid`
8162fi
8163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8164  done
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169ac_lo= ac_hi=
8170fi
8171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8172fi
8173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8174# Binary search between lo and hi bounds.
8175while test "x$ac_lo" != "x$ac_hi"; do
8176  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8177  cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h.  */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h.  */
8183$ac_includes_default
8184int
8185main ()
8186{
8187static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
8188test_array [0] = 0
8189
8190  ;
8191  return 0;
8192}
8193_ACEOF
8194rm -f conftest.$ac_objext
8195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8196  (eval $ac_compile) 2>conftest.er1
8197  ac_status=$?
8198  grep -v '^ *+' conftest.er1 >conftest.err
8199  rm -f conftest.er1
8200  cat conftest.err >&5
8201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202  (exit $ac_status); } &&
8203	 { ac_try='test -z "$ac_c_werror_flag"
8204			 || test ! -s conftest.err'
8205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206  (eval $ac_try) 2>&5
8207  ac_status=$?
8208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209  (exit $ac_status); }; } &&
8210	 { ac_try='test -s conftest.$ac_objext'
8211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212  (eval $ac_try) 2>&5
8213  ac_status=$?
8214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215  (exit $ac_status); }; }; then
8216  ac_hi=$ac_mid
8217else
8218  echo "$as_me: failed program was:" >&5
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
8221ac_lo=`expr '(' $ac_mid ')' + 1`
8222fi
8223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8224done
8225case $ac_lo in
8226?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
8227'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
8228See \`config.log' for more details." >&5
8229echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
8230See \`config.log' for more details." >&2;}
8231   { (exit 1); exit 1; }; } ;;
8232esac
8233else
8234  if test "$cross_compiling" = yes; then
8235  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8236See \`config.log' for more details." >&5
8237echo "$as_me: error: cannot run test program while cross compiling
8238See \`config.log' for more details." >&2;}
8239   { (exit 1); exit 1; }; }
8240else
8241  cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h.  */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h.  */
8247$ac_includes_default
8248long longval () { return (long) (sizeof (unsigned short int)); }
8249unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
8250#include <stdio.h>
8251#include <stdlib.h>
8252int
8253main ()
8254{
8255
8256  FILE *f = fopen ("conftest.val", "w");
8257  if (! f)
8258    exit (1);
8259  if (((long) (sizeof (unsigned short int))) < 0)
8260    {
8261      long i = longval ();
8262      if (i != ((long) (sizeof (unsigned short int))))
8263	exit (1);
8264      fprintf (f, "%ld\n", i);
8265    }
8266  else
8267    {
8268      unsigned long i = ulongval ();
8269      if (i != ((long) (sizeof (unsigned short int))))
8270	exit (1);
8271      fprintf (f, "%lu\n", i);
8272    }
8273  exit (ferror (f) || fclose (f) != 0);
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279rm -f conftest$ac_exeext
8280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281  (eval $ac_link) 2>&5
8282  ac_status=$?
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286  (eval $ac_try) 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; }; then
8290  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
8291else
8292  echo "$as_me: program exited with status $ac_status" >&5
8293echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296( exit $ac_status )
8297{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
8298See \`config.log' for more details." >&5
8299echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
8300See \`config.log' for more details." >&2;}
8301   { (exit 1); exit 1; }; }
8302fi
8303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8304fi
8305fi
8306rm -f conftest.val
8307else
8308  ac_cv_sizeof_unsigned_short_int=0
8309fi
8310fi
8311echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
8312echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
8313cat >>confdefs.h <<_ACEOF
8314#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
8315_ACEOF
8316
8317
8318echo "$as_me:$LINENO: checking for unsigned char" >&5
8319echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
8320if test "${ac_cv_type_unsigned_char+set}" = set; then
8321  echo $ECHO_N "(cached) $ECHO_C" >&6
8322else
8323  cat >conftest.$ac_ext <<_ACEOF
8324/* confdefs.h.  */
8325_ACEOF
8326cat confdefs.h >>conftest.$ac_ext
8327cat >>conftest.$ac_ext <<_ACEOF
8328/* end confdefs.h.  */
8329$ac_includes_default
8330int
8331main ()
8332{
8333if ((unsigned char *) 0)
8334  return 0;
8335if (sizeof (unsigned char))
8336  return 0;
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341rm -f conftest.$ac_objext
8342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343  (eval $ac_compile) 2>conftest.er1
8344  ac_status=$?
8345  grep -v '^ *+' conftest.er1 >conftest.err
8346  rm -f conftest.er1
8347  cat conftest.err >&5
8348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349  (exit $ac_status); } &&
8350	 { ac_try='test -z "$ac_c_werror_flag"
8351			 || test ! -s conftest.err'
8352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353  (eval $ac_try) 2>&5
8354  ac_status=$?
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); }; } &&
8357	 { ac_try='test -s conftest.$ac_objext'
8358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359  (eval $ac_try) 2>&5
8360  ac_status=$?
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); }; }; then
8363  ac_cv_type_unsigned_char=yes
8364else
8365  echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368ac_cv_type_unsigned_char=no
8369fi
8370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371fi
8372echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
8373echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6
8374
8375echo "$as_me:$LINENO: checking size of unsigned char" >&5
8376echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6
8377if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
8378  echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380  if test "$ac_cv_type_unsigned_char" = yes; then
8381  # The cast to unsigned long works around a bug in the HP C Compiler
8382  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8383  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8384  # This bug is HP SR number 8606223364.
8385  if test "$cross_compiling" = yes; then
8386  # Depending upon the size, compute the lo and hi bounds.
8387cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h.  */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h.  */
8393$ac_includes_default
8394int
8395main ()
8396{
8397static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= 0)];
8398test_array [0] = 0
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext
8405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406  (eval $ac_compile) 2>conftest.er1
8407  ac_status=$?
8408  grep -v '^ *+' conftest.er1 >conftest.err
8409  rm -f conftest.er1
8410  cat conftest.err >&5
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); } &&
8413	 { ac_try='test -z "$ac_c_werror_flag"
8414			 || test ! -s conftest.err'
8415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416  (eval $ac_try) 2>&5
8417  ac_status=$?
8418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419  (exit $ac_status); }; } &&
8420	 { ac_try='test -s conftest.$ac_objext'
8421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422  (eval $ac_try) 2>&5
8423  ac_status=$?
8424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425  (exit $ac_status); }; }; then
8426  ac_lo=0 ac_mid=0
8427  while :; do
8428    cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434$ac_includes_default
8435int
8436main ()
8437{
8438static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
8439test_array [0] = 0
8440
8441  ;
8442  return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext
8446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447  (eval $ac_compile) 2>conftest.er1
8448  ac_status=$?
8449  grep -v '^ *+' conftest.er1 >conftest.err
8450  rm -f conftest.er1
8451  cat conftest.err >&5
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); } &&
8454	 { ac_try='test -z "$ac_c_werror_flag"
8455			 || test ! -s conftest.err'
8456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457  (eval $ac_try) 2>&5
8458  ac_status=$?
8459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460  (exit $ac_status); }; } &&
8461	 { ac_try='test -s conftest.$ac_objext'
8462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463  (eval $ac_try) 2>&5
8464  ac_status=$?
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); }; }; then
8467  ac_hi=$ac_mid; break
8468else
8469  echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472ac_lo=`expr $ac_mid + 1`
8473		    if test $ac_lo -le $ac_mid; then
8474		      ac_lo= ac_hi=
8475		      break
8476		    fi
8477		    ac_mid=`expr 2 '*' $ac_mid + 1`
8478fi
8479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8480  done
8481else
8482  echo "$as_me: failed program was:" >&5
8483sed 's/^/| /' conftest.$ac_ext >&5
8484
8485cat >conftest.$ac_ext <<_ACEOF
8486/* confdefs.h.  */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h.  */
8491$ac_includes_default
8492int
8493main ()
8494{
8495static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) < 0)];
8496test_array [0] = 0
8497
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext
8503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504  (eval $ac_compile) 2>conftest.er1
8505  ac_status=$?
8506  grep -v '^ *+' conftest.er1 >conftest.err
8507  rm -f conftest.er1
8508  cat conftest.err >&5
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); } &&
8511	 { ac_try='test -z "$ac_c_werror_flag"
8512			 || test ! -s conftest.err'
8513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514  (eval $ac_try) 2>&5
8515  ac_status=$?
8516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); }; } &&
8518	 { ac_try='test -s conftest.$ac_objext'
8519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520  (eval $ac_try) 2>&5
8521  ac_status=$?
8522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523  (exit $ac_status); }; }; then
8524  ac_hi=-1 ac_mid=-1
8525  while :; do
8526    cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h.  */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h.  */
8532$ac_includes_default
8533int
8534main ()
8535{
8536static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) >= $ac_mid)];
8537test_array [0] = 0
8538
8539  ;
8540  return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
8544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545  (eval $ac_compile) 2>conftest.er1
8546  ac_status=$?
8547  grep -v '^ *+' conftest.er1 >conftest.err
8548  rm -f conftest.er1
8549  cat conftest.err >&5
8550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551  (exit $ac_status); } &&
8552	 { ac_try='test -z "$ac_c_werror_flag"
8553			 || test ! -s conftest.err'
8554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555  (eval $ac_try) 2>&5
8556  ac_status=$?
8557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558  (exit $ac_status); }; } &&
8559	 { ac_try='test -s conftest.$ac_objext'
8560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561  (eval $ac_try) 2>&5
8562  ac_status=$?
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); }; }; then
8565  ac_lo=$ac_mid; break
8566else
8567  echo "$as_me: failed program was:" >&5
8568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570ac_hi=`expr '(' $ac_mid ')' - 1`
8571		       if test $ac_mid -le $ac_hi; then
8572			 ac_lo= ac_hi=
8573			 break
8574		       fi
8575		       ac_mid=`expr 2 '*' $ac_mid`
8576fi
8577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578  done
8579else
8580  echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583ac_lo= ac_hi=
8584fi
8585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8586fi
8587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588# Binary search between lo and hi bounds.
8589while test "x$ac_lo" != "x$ac_hi"; do
8590  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591  cat >conftest.$ac_ext <<_ACEOF
8592/* confdefs.h.  */
8593_ACEOF
8594cat confdefs.h >>conftest.$ac_ext
8595cat >>conftest.$ac_ext <<_ACEOF
8596/* end confdefs.h.  */
8597$ac_includes_default
8598int
8599main ()
8600{
8601static int test_array [1 - 2 * !(((long) (sizeof (unsigned char))) <= $ac_mid)];
8602test_array [0] = 0
8603
8604  ;
8605  return 0;
8606}
8607_ACEOF
8608rm -f conftest.$ac_objext
8609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610  (eval $ac_compile) 2>conftest.er1
8611  ac_status=$?
8612  grep -v '^ *+' conftest.er1 >conftest.err
8613  rm -f conftest.er1
8614  cat conftest.err >&5
8615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616  (exit $ac_status); } &&
8617	 { ac_try='test -z "$ac_c_werror_flag"
8618			 || test ! -s conftest.err'
8619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620  (eval $ac_try) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }; } &&
8624	 { ac_try='test -s conftest.$ac_objext'
8625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626  (eval $ac_try) 2>&5
8627  ac_status=$?
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); }; }; then
8630  ac_hi=$ac_mid
8631else
8632  echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635ac_lo=`expr '(' $ac_mid ')' + 1`
8636fi
8637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8638done
8639case $ac_lo in
8640?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
8641'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
8642See \`config.log' for more details." >&5
8643echo "$as_me: error: cannot compute sizeof (unsigned char), 77
8644See \`config.log' for more details." >&2;}
8645   { (exit 1); exit 1; }; } ;;
8646esac
8647else
8648  if test "$cross_compiling" = yes; then
8649  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8650See \`config.log' for more details." >&5
8651echo "$as_me: error: cannot run test program while cross compiling
8652See \`config.log' for more details." >&2;}
8653   { (exit 1); exit 1; }; }
8654else
8655  cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h.  */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h.  */
8661$ac_includes_default
8662long longval () { return (long) (sizeof (unsigned char)); }
8663unsigned long ulongval () { return (long) (sizeof (unsigned char)); }
8664#include <stdio.h>
8665#include <stdlib.h>
8666int
8667main ()
8668{
8669
8670  FILE *f = fopen ("conftest.val", "w");
8671  if (! f)
8672    exit (1);
8673  if (((long) (sizeof (unsigned char))) < 0)
8674    {
8675      long i = longval ();
8676      if (i != ((long) (sizeof (unsigned char))))
8677	exit (1);
8678      fprintf (f, "%ld\n", i);
8679    }
8680  else
8681    {
8682      unsigned long i = ulongval ();
8683      if (i != ((long) (sizeof (unsigned char))))
8684	exit (1);
8685      fprintf (f, "%lu\n", i);
8686    }
8687  exit (ferror (f) || fclose (f) != 0);
8688
8689  ;
8690  return 0;
8691}
8692_ACEOF
8693rm -f conftest$ac_exeext
8694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695  (eval $ac_link) 2>&5
8696  ac_status=$?
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700  (eval $ac_try) 2>&5
8701  ac_status=$?
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); }; }; then
8704  ac_cv_sizeof_unsigned_char=`cat conftest.val`
8705else
8706  echo "$as_me: program exited with status $ac_status" >&5
8707echo "$as_me: failed program was:" >&5
8708sed 's/^/| /' conftest.$ac_ext >&5
8709
8710( exit $ac_status )
8711{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char), 77
8712See \`config.log' for more details." >&5
8713echo "$as_me: error: cannot compute sizeof (unsigned char), 77
8714See \`config.log' for more details." >&2;}
8715   { (exit 1); exit 1; }; }
8716fi
8717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8718fi
8719fi
8720rm -f conftest.val
8721else
8722  ac_cv_sizeof_unsigned_char=0
8723fi
8724fi
8725echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
8726echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
8727cat >>confdefs.h <<_ACEOF
8728#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
8729_ACEOF
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740# Check whether --enable-shared or --disable-shared was given.
8741if test "${enable_shared+set}" = set; then
8742  enableval="$enable_shared"
8743  p=${PACKAGE-default}
8744    case $enableval in
8745    yes) enable_shared=yes ;;
8746    no) enable_shared=no ;;
8747    *)
8748      enable_shared=no
8749      # Look at the argument we got.  We use all the common list separators.
8750      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8751      for pkg in $enableval; do
8752	IFS="$lt_save_ifs"
8753	if test "X$pkg" = "X$p"; then
8754	  enable_shared=yes
8755	fi
8756      done
8757      IFS="$lt_save_ifs"
8758      ;;
8759    esac
8760else
8761  enable_shared=yes
8762fi;
8763
8764# Check whether --enable-fast-install or --disable-fast-install was given.
8765if test "${enable_fast_install+set}" = set; then
8766  enableval="$enable_fast_install"
8767  p=${PACKAGE-default}
8768    case $enableval in
8769    yes) enable_fast_install=yes ;;
8770    no) enable_fast_install=no ;;
8771    *)
8772      enable_fast_install=no
8773      # Look at the argument we got.  We use all the common list separators.
8774      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8775      for pkg in $enableval; do
8776	IFS="$lt_save_ifs"
8777	if test "X$pkg" = "X$p"; then
8778	  enable_fast_install=yes
8779	fi
8780      done
8781      IFS="$lt_save_ifs"
8782      ;;
8783    esac
8784else
8785  enable_fast_install=yes
8786fi;
8787
8788echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8789echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
8790if test "${lt_cv_path_SED+set}" = set; then
8791  echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793  # Loop through the user's path and test for sed and gsed.
8794# Then use that list of sed's as ones to test for truncation.
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798  IFS=$as_save_IFS
8799  test -z "$as_dir" && as_dir=.
8800  for lt_ac_prog in sed gsed; do
8801    for ac_exec_ext in '' $ac_executable_extensions; do
8802      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8803        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8804      fi
8805    done
8806  done
8807done
8808IFS=$as_save_IFS
8809lt_ac_max=0
8810lt_ac_count=0
8811# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8812# along with /bin/sed that truncates output.
8813for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8814  test ! -f $lt_ac_sed && continue
8815  cat /dev/null > conftest.in
8816  lt_ac_count=0
8817  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8818  # Check for GNU sed and select it if it is found.
8819  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8820    lt_cv_path_SED=$lt_ac_sed
8821    break
8822  fi
8823  while true; do
8824    cat conftest.in conftest.in >conftest.tmp
8825    mv conftest.tmp conftest.in
8826    cp conftest.in conftest.nl
8827    echo >>conftest.nl
8828    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8829    cmp -s conftest.out conftest.nl || break
8830    # 10000 chars as input seems more than enough
8831    test $lt_ac_count -gt 10 && break
8832    lt_ac_count=`expr $lt_ac_count + 1`
8833    if test $lt_ac_count -gt $lt_ac_max; then
8834      lt_ac_max=$lt_ac_count
8835      lt_cv_path_SED=$lt_ac_sed
8836    fi
8837  done
8838done
8839
8840fi
8841
8842SED=$lt_cv_path_SED
8843
8844echo "$as_me:$LINENO: result: $SED" >&5
8845echo "${ECHO_T}$SED" >&6
8846
8847
8848# Check whether --with-gnu-ld or --without-gnu-ld was given.
8849if test "${with_gnu_ld+set}" = set; then
8850  withval="$with_gnu_ld"
8851  test "$withval" = no || with_gnu_ld=yes
8852else
8853  with_gnu_ld=no
8854fi;
8855ac_prog=ld
8856if test "$GCC" = yes; then
8857  # Check if gcc -print-prog-name=ld gives a path.
8858  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8859echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8860  case $host in
8861  *-*-mingw*)
8862    # gcc leaves a trailing carriage return which upsets mingw
8863    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8864  *)
8865    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8866  esac
8867  case $ac_prog in
8868    # Accept absolute paths.
8869    [\\/]* | ?:[\\/]*)
8870      re_direlt='/[^/][^/]*/\.\./'
8871      # Canonicalize the pathname of ld
8872      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8873      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8874	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8875      done
8876      test -z "$LD" && LD="$ac_prog"
8877      ;;
8878  "")
8879    # If it fails, then pretend we aren't using GCC.
8880    ac_prog=ld
8881    ;;
8882  *)
8883    # If it is relative, then search for the first ld in PATH.
8884    with_gnu_ld=unknown
8885    ;;
8886  esac
8887elif test "$with_gnu_ld" = yes; then
8888  echo "$as_me:$LINENO: checking for GNU ld" >&5
8889echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8890else
8891  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8892echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8893fi
8894if test "${lt_cv_path_LD+set}" = set; then
8895  echo $ECHO_N "(cached) $ECHO_C" >&6
8896else
8897  if test -z "$LD"; then
8898  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8899  for ac_dir in $PATH; do
8900    IFS="$lt_save_ifs"
8901    test -z "$ac_dir" && ac_dir=.
8902    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8903      lt_cv_path_LD="$ac_dir/$ac_prog"
8904      # Check to see if the program is GNU ld.  I'd rather use --version,
8905      # but apparently some variants of GNU ld only accept -v.
8906      # Break only if it was the GNU/non-GNU ld that we prefer.
8907      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8908      *GNU* | *'with BFD'*)
8909	test "$with_gnu_ld" != no && break
8910	;;
8911      *)
8912	test "$with_gnu_ld" != yes && break
8913	;;
8914      esac
8915    fi
8916  done
8917  IFS="$lt_save_ifs"
8918else
8919  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8920fi
8921fi
8922
8923LD="$lt_cv_path_LD"
8924if test -n "$LD"; then
8925  echo "$as_me:$LINENO: result: $LD" >&5
8926echo "${ECHO_T}$LD" >&6
8927else
8928  echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930fi
8931test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8932echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8933   { (exit 1); exit 1; }; }
8934echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8935echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8936if test "${lt_cv_prog_gnu_ld+set}" = set; then
8937  echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
8939  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8940case `$LD -v 2>&1 </dev/null` in
8941*GNU* | *'with BFD'*)
8942  lt_cv_prog_gnu_ld=yes
8943  ;;
8944*)
8945  lt_cv_prog_gnu_ld=no
8946  ;;
8947esac
8948fi
8949echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8950echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8951with_gnu_ld=$lt_cv_prog_gnu_ld
8952
8953
8954echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8955echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
8956if test "${lt_cv_ld_reload_flag+set}" = set; then
8957  echo $ECHO_N "(cached) $ECHO_C" >&6
8958else
8959  lt_cv_ld_reload_flag='-r'
8960fi
8961echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8962echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
8963reload_flag=$lt_cv_ld_reload_flag
8964case $reload_flag in
8965"" | " "*) ;;
8966*) reload_flag=" $reload_flag" ;;
8967esac
8968reload_cmds='$LD$reload_flag -o $output$reload_objs'
8969case $host_os in
8970  darwin*)
8971    if test "$GCC" = yes; then
8972      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8973    else
8974      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8975    fi
8976    ;;
8977esac
8978
8979echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8980echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
8981if test "${lt_cv_path_NM+set}" = set; then
8982  echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984  if test -n "$NM"; then
8985  # Let the user override the test.
8986  lt_cv_path_NM="$NM"
8987else
8988  lt_nm_to_check="${ac_tool_prefix}nm"
8989  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8990    lt_nm_to_check="$lt_nm_to_check nm"
8991  fi
8992  for lt_tmp_nm in $lt_nm_to_check; do
8993    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8994    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8995      IFS="$lt_save_ifs"
8996      test -z "$ac_dir" && ac_dir=.
8997      tmp_nm="$ac_dir/$lt_tmp_nm"
8998      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8999	# Check to see if the nm accepts a BSD-compat flag.
9000	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
9001	#   nm: unknown option "B" ignored
9002	# Tru64's nm complains that /dev/null is an invalid object file
9003	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9004	*/dev/null* | *'Invalid file or object type'*)
9005	  lt_cv_path_NM="$tmp_nm -B"
9006	  break
9007	  ;;
9008	*)
9009	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9010	  */dev/null*)
9011	    lt_cv_path_NM="$tmp_nm -p"
9012	    break
9013	    ;;
9014	  *)
9015	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9016	    continue # so that we can try to find one that supports BSD flags
9017	    ;;
9018	  esac
9019	  ;;
9020	esac
9021      fi
9022    done
9023    IFS="$lt_save_ifs"
9024  done
9025  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9026fi
9027fi
9028echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9029echo "${ECHO_T}$lt_cv_path_NM" >&6
9030NM="$lt_cv_path_NM"
9031
9032echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9033echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9034if test "${lt_cv_deplibs_check_method+set}" = set; then
9035  echo $ECHO_N "(cached) $ECHO_C" >&6
9036else
9037  lt_cv_file_magic_cmd='$MAGIC_CMD'
9038lt_cv_file_magic_test_file=
9039lt_cv_deplibs_check_method='unknown'
9040# Need to set the preceding variable on all platforms that support
9041# interlibrary dependencies.
9042# 'none' -- dependencies not supported.
9043# `unknown' -- same as none, but documents that we really don't know.
9044# 'pass_all' -- all dependencies passed with no checks.
9045# 'test_compile' -- check by making test program.
9046# 'file_magic [[regex]]' -- check by looking for files in library path
9047# which responds to the $file_magic_cmd with a given extended regex.
9048# If you have `file' or equivalent on your system and you're not sure
9049# whether `pass_all' will *always* work, you probably want this one.
9050
9051case $host_os in
9052aix4* | aix5*)
9053  lt_cv_deplibs_check_method=pass_all
9054  ;;
9055
9056beos*)
9057  lt_cv_deplibs_check_method=pass_all
9058  ;;
9059
9060bsdi[45]*)
9061  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9062  lt_cv_file_magic_cmd='/usr/bin/file -L'
9063  lt_cv_file_magic_test_file=/shlib/libc.so
9064  ;;
9065
9066cygwin*)
9067  # func_win32_libid is a shell function defined in ltmain.sh
9068  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9069  lt_cv_file_magic_cmd='func_win32_libid'
9070  ;;
9071
9072mingw* | pw32*)
9073  # Base MSYS/MinGW do not provide the 'file' command needed by
9074  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9075  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9076  lt_cv_file_magic_cmd='$OBJDUMP -f'
9077  ;;
9078
9079darwin* | rhapsody*)
9080  lt_cv_deplibs_check_method=pass_all
9081  ;;
9082
9083freebsd* | kfreebsd*-gnu | dragonfly*)
9084  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9085    case $host_cpu in
9086    i*86 )
9087      # Not sure whether the presence of OpenBSD here was a mistake.
9088      # Let's accept both of them until this is cleared up.
9089      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9090      lt_cv_file_magic_cmd=/usr/bin/file
9091      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9092      ;;
9093    esac
9094  else
9095    lt_cv_deplibs_check_method=pass_all
9096  fi
9097  ;;
9098
9099gnu*)
9100  lt_cv_deplibs_check_method=pass_all
9101  ;;
9102
9103hpux10.20* | hpux11*)
9104  lt_cv_file_magic_cmd=/usr/bin/file
9105  case $host_cpu in
9106  ia64*)
9107    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9108    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9109    ;;
9110  hppa*64*)
9111    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]'
9112    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9113    ;;
9114  *)
9115    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9116    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9117    ;;
9118  esac
9119  ;;
9120
9121interix3*)
9122  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9123  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9124  ;;
9125
9126irix5* | irix6* | nonstopux*)
9127  case $LD in
9128  *-32|*"-32 ") libmagic=32-bit;;
9129  *-n32|*"-n32 ") libmagic=N32;;
9130  *-64|*"-64 ") libmagic=64-bit;;
9131  *) libmagic=never-match;;
9132  esac
9133  lt_cv_deplibs_check_method=pass_all
9134  ;;
9135
9136# This must be Linux ELF.
9137linux*)
9138  lt_cv_deplibs_check_method=pass_all
9139  ;;
9140
9141netbsd*)
9142  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9143    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9144  else
9145    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9146  fi
9147  ;;
9148
9149newos6*)
9150  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9151  lt_cv_file_magic_cmd=/usr/bin/file
9152  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9153  ;;
9154
9155nto-qnx*)
9156  lt_cv_deplibs_check_method=unknown
9157  ;;
9158
9159openbsd*)
9160  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9161    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9162  else
9163    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9164  fi
9165  ;;
9166
9167osf3* | osf4* | osf5*)
9168  lt_cv_deplibs_check_method=pass_all
9169  ;;
9170
9171solaris*)
9172  lt_cv_deplibs_check_method=pass_all
9173  ;;
9174
9175sysv4 | sysv4.3*)
9176  case $host_vendor in
9177  motorola)
9178    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]'
9179    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9180    ;;
9181  ncr)
9182    lt_cv_deplibs_check_method=pass_all
9183    ;;
9184  sequent)
9185    lt_cv_file_magic_cmd='/bin/file'
9186    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9187    ;;
9188  sni)
9189    lt_cv_file_magic_cmd='/bin/file'
9190    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9191    lt_cv_file_magic_test_file=/lib/libc.so
9192    ;;
9193  siemens)
9194    lt_cv_deplibs_check_method=pass_all
9195    ;;
9196  pc)
9197    lt_cv_deplibs_check_method=pass_all
9198    ;;
9199  esac
9200  ;;
9201
9202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9203  lt_cv_deplibs_check_method=pass_all
9204  ;;
9205esac
9206
9207fi
9208echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9209echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9210file_magic_cmd=$lt_cv_file_magic_cmd
9211deplibs_check_method=$lt_cv_deplibs_check_method
9212test -z "$deplibs_check_method" && deplibs_check_method=unknown
9213
9214
9215
9216
9217# If no C compiler was specified, use CC.
9218LTCC=${LTCC-"$CC"}
9219
9220# If no C compiler flags were specified, use CFLAGS.
9221LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9222
9223# Allow CC to be a program name with arguments.
9224compiler=$CC
9225
9226# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9227if test "${enable_libtool_lock+set}" = set; then
9228  enableval="$enable_libtool_lock"
9229
9230fi;
9231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9232
9233# Some flags need to be propagated to the compiler or linker for good
9234# libtool support.
9235case $host in
9236ia64-*-hpux*)
9237  # Find out which ABI we are using.
9238  echo 'int i;' > conftest.$ac_ext
9239  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240  (eval $ac_compile) 2>&5
9241  ac_status=$?
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); }; then
9244    case `/usr/bin/file conftest.$ac_objext` in
9245    *ELF-32*)
9246      HPUX_IA64_MODE="32"
9247      ;;
9248    *ELF-64*)
9249      HPUX_IA64_MODE="64"
9250      ;;
9251    esac
9252  fi
9253  rm -rf conftest*
9254  ;;
9255*-*-irix6*)
9256  # Find out which ABI we are using.
9257  echo '#line 9257 "configure"' > conftest.$ac_ext
9258  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9259  (eval $ac_compile) 2>&5
9260  ac_status=$?
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); }; then
9263   if test "$lt_cv_prog_gnu_ld" = yes; then
9264    case `/usr/bin/file conftest.$ac_objext` in
9265    *32-bit*)
9266      LD="${LD-ld} -melf32bsmip"
9267      ;;
9268    *N32*)
9269      LD="${LD-ld} -melf32bmipn32"
9270      ;;
9271    *64-bit*)
9272      LD="${LD-ld} -melf64bmip"
9273      ;;
9274    esac
9275   else
9276    case `/usr/bin/file conftest.$ac_objext` in
9277    *32-bit*)
9278      LD="${LD-ld} -32"
9279      ;;
9280    *N32*)
9281      LD="${LD-ld} -n32"
9282      ;;
9283    *64-bit*)
9284      LD="${LD-ld} -64"
9285      ;;
9286    esac
9287   fi
9288  fi
9289  rm -rf conftest*
9290  ;;
9291
9292x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
9293  # Find out which ABI we are using.
9294  echo 'int i;' > conftest.$ac_ext
9295  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296  (eval $ac_compile) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; then
9300    case `/usr/bin/file conftest.o` in
9301    *32-bit*)
9302      case $host in
9303        x86_64-*linux*)
9304          LD="${LD-ld} -m elf_i386"
9305          ;;
9306        ppc64-*linux*|powerpc64-*linux*)
9307          LD="${LD-ld} -m elf32ppclinux"
9308          ;;
9309        s390x-*linux*)
9310          LD="${LD-ld} -m elf_s390"
9311          ;;
9312        sparc64-*linux*)
9313          LD="${LD-ld} -m elf32_sparc"
9314          ;;
9315      esac
9316      ;;
9317    *64-bit*)
9318      case $host in
9319        x86_64-*linux*)
9320          LD="${LD-ld} -m elf_x86_64"
9321          ;;
9322        ppc*-*linux*|powerpc*-*linux*)
9323          LD="${LD-ld} -m elf64ppc"
9324          ;;
9325        s390*-*linux*)
9326          LD="${LD-ld} -m elf64_s390"
9327          ;;
9328        sparc*-*linux*)
9329          LD="${LD-ld} -m elf64_sparc"
9330          ;;
9331      esac
9332      ;;
9333    esac
9334  fi
9335  rm -rf conftest*
9336  ;;
9337
9338*-*-sco3.2v5*)
9339  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9340  SAVE_CFLAGS="$CFLAGS"
9341  CFLAGS="$CFLAGS -belf"
9342  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9343echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
9344if test "${lt_cv_cc_needs_belf+set}" = set; then
9345  echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347  ac_ext=c
9348ac_cpp='$CPP $CPPFLAGS'
9349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9351ac_compiler_gnu=$ac_cv_c_compiler_gnu
9352
9353     cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h.  */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h.  */
9359
9360int
9361main ()
9362{
9363
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext conftest$ac_exeext
9369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370  (eval $ac_link) 2>conftest.er1
9371  ac_status=$?
9372  grep -v '^ *+' conftest.er1 >conftest.err
9373  rm -f conftest.er1
9374  cat conftest.err >&5
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); } &&
9377	 { ac_try='test -z "$ac_c_werror_flag"
9378			 || test ! -s conftest.err'
9379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380  (eval $ac_try) 2>&5
9381  ac_status=$?
9382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383  (exit $ac_status); }; } &&
9384	 { ac_try='test -s conftest$ac_exeext'
9385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386  (eval $ac_try) 2>&5
9387  ac_status=$?
9388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389  (exit $ac_status); }; }; then
9390  lt_cv_cc_needs_belf=yes
9391else
9392  echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395lt_cv_cc_needs_belf=no
9396fi
9397rm -f conftest.err conftest.$ac_objext \
9398      conftest$ac_exeext conftest.$ac_ext
9399     ac_ext=c
9400ac_cpp='$CPP $CPPFLAGS'
9401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9403ac_compiler_gnu=$ac_cv_c_compiler_gnu
9404
9405fi
9406echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9407echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
9408  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9409    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9410    CFLAGS="$SAVE_CFLAGS"
9411  fi
9412  ;;
9413sparc*-*solaris*)
9414  # Find out which ABI we are using.
9415  echo 'int i;' > conftest.$ac_ext
9416  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417  (eval $ac_compile) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); }; then
9421    case `/usr/bin/file conftest.o` in
9422    *64-bit*)
9423      case $lt_cv_prog_gnu_ld in
9424      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9425      *)    LD="${LD-ld} -64" ;;
9426      esac
9427      ;;
9428    esac
9429  fi
9430  rm -rf conftest*
9431  ;;
9432
9433*-*-cygwin* | *-*-mingw* | *-*-pw32*)
9434  if test -n "$ac_tool_prefix"; then
9435  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9436set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9437echo "$as_me:$LINENO: checking for $ac_word" >&5
9438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9439if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9440  echo $ECHO_N "(cached) $ECHO_C" >&6
9441else
9442  if test -n "$DLLTOOL"; then
9443  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9444else
9445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446for as_dir in $PATH
9447do
9448  IFS=$as_save_IFS
9449  test -z "$as_dir" && as_dir=.
9450  for ac_exec_ext in '' $ac_executable_extensions; do
9451  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9452    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9454    break 2
9455  fi
9456done
9457done
9458
9459fi
9460fi
9461DLLTOOL=$ac_cv_prog_DLLTOOL
9462if test -n "$DLLTOOL"; then
9463  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9464echo "${ECHO_T}$DLLTOOL" >&6
9465else
9466  echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468fi
9469
9470fi
9471if test -z "$ac_cv_prog_DLLTOOL"; then
9472  ac_ct_DLLTOOL=$DLLTOOL
9473  # Extract the first word of "dlltool", so it can be a program name with args.
9474set dummy dlltool; ac_word=$2
9475echo "$as_me:$LINENO: checking for $ac_word" >&5
9476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9477if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  if test -n "$ac_ct_DLLTOOL"; then
9481  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9482else
9483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484for as_dir in $PATH
9485do
9486  IFS=$as_save_IFS
9487  test -z "$as_dir" && as_dir=.
9488  for ac_exec_ext in '' $ac_executable_extensions; do
9489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9490    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9492    break 2
9493  fi
9494done
9495done
9496
9497  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
9498fi
9499fi
9500ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9501if test -n "$ac_ct_DLLTOOL"; then
9502  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9503echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
9504else
9505  echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507fi
9508
9509  DLLTOOL=$ac_ct_DLLTOOL
9510else
9511  DLLTOOL="$ac_cv_prog_DLLTOOL"
9512fi
9513
9514  if test -n "$ac_tool_prefix"; then
9515  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9516set dummy ${ac_tool_prefix}as; ac_word=$2
9517echo "$as_me:$LINENO: checking for $ac_word" >&5
9518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9519if test "${ac_cv_prog_AS+set}" = set; then
9520  echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522  if test -n "$AS"; then
9523  ac_cv_prog_AS="$AS" # Let the user override the test.
9524else
9525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526for as_dir in $PATH
9527do
9528  IFS=$as_save_IFS
9529  test -z "$as_dir" && as_dir=.
9530  for ac_exec_ext in '' $ac_executable_extensions; do
9531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532    ac_cv_prog_AS="${ac_tool_prefix}as"
9533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9534    break 2
9535  fi
9536done
9537done
9538
9539fi
9540fi
9541AS=$ac_cv_prog_AS
9542if test -n "$AS"; then
9543  echo "$as_me:$LINENO: result: $AS" >&5
9544echo "${ECHO_T}$AS" >&6
9545else
9546  echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548fi
9549
9550fi
9551if test -z "$ac_cv_prog_AS"; then
9552  ac_ct_AS=$AS
9553  # Extract the first word of "as", so it can be a program name with args.
9554set dummy as; ac_word=$2
9555echo "$as_me:$LINENO: checking for $ac_word" >&5
9556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9557if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9558  echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560  if test -n "$ac_ct_AS"; then
9561  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566  IFS=$as_save_IFS
9567  test -z "$as_dir" && as_dir=.
9568  for ac_exec_ext in '' $ac_executable_extensions; do
9569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9570    ac_cv_prog_ac_ct_AS="as"
9571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9572    break 2
9573  fi
9574done
9575done
9576
9577  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
9578fi
9579fi
9580ac_ct_AS=$ac_cv_prog_ac_ct_AS
9581if test -n "$ac_ct_AS"; then
9582  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9583echo "${ECHO_T}$ac_ct_AS" >&6
9584else
9585  echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587fi
9588
9589  AS=$ac_ct_AS
9590else
9591  AS="$ac_cv_prog_AS"
9592fi
9593
9594  if test -n "$ac_tool_prefix"; then
9595  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9596set dummy ${ac_tool_prefix}objdump; ac_word=$2
9597echo "$as_me:$LINENO: checking for $ac_word" >&5
9598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9599if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9600  echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602  if test -n "$OBJDUMP"; then
9603  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608  IFS=$as_save_IFS
9609  test -z "$as_dir" && as_dir=.
9610  for ac_exec_ext in '' $ac_executable_extensions; do
9611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9612    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9614    break 2
9615  fi
9616done
9617done
9618
9619fi
9620fi
9621OBJDUMP=$ac_cv_prog_OBJDUMP
9622if test -n "$OBJDUMP"; then
9623  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9624echo "${ECHO_T}$OBJDUMP" >&6
9625else
9626  echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
9628fi
9629
9630fi
9631if test -z "$ac_cv_prog_OBJDUMP"; then
9632  ac_ct_OBJDUMP=$OBJDUMP
9633  # Extract the first word of "objdump", so it can be a program name with args.
9634set dummy objdump; ac_word=$2
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9638  echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640  if test -n "$ac_ct_OBJDUMP"; then
9641  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646  IFS=$as_save_IFS
9647  test -z "$as_dir" && as_dir=.
9648  for ac_exec_ext in '' $ac_executable_extensions; do
9649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652    break 2
9653  fi
9654done
9655done
9656
9657  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
9658fi
9659fi
9660ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9661if test -n "$ac_ct_OBJDUMP"; then
9662  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9663echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
9664else
9665  echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6
9667fi
9668
9669  OBJDUMP=$ac_ct_OBJDUMP
9670else
9671  OBJDUMP="$ac_cv_prog_OBJDUMP"
9672fi
9673
9674  ;;
9675
9676esac
9677
9678need_locks="$enable_libtool_lock"
9679
9680
9681
9682for ac_header in dlfcn.h
9683do
9684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686  echo "$as_me:$LINENO: checking for $ac_header" >&5
9687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689  echo $ECHO_N "(cached) $ECHO_C" >&6
9690fi
9691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9693else
9694  # Is the header compilable?
9695echo "$as_me:$LINENO: checking $ac_header usability" >&5
9696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9697cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h.  */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h.  */
9703$ac_includes_default
9704#include <$ac_header>
9705_ACEOF
9706rm -f conftest.$ac_objext
9707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708  (eval $ac_compile) 2>conftest.er1
9709  ac_status=$?
9710  grep -v '^ *+' conftest.er1 >conftest.err
9711  rm -f conftest.er1
9712  cat conftest.err >&5
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); } &&
9715	 { ac_try='test -z "$ac_c_werror_flag"
9716			 || test ! -s conftest.err'
9717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718  (eval $ac_try) 2>&5
9719  ac_status=$?
9720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721  (exit $ac_status); }; } &&
9722	 { ac_try='test -s conftest.$ac_objext'
9723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724  (eval $ac_try) 2>&5
9725  ac_status=$?
9726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727  (exit $ac_status); }; }; then
9728  ac_header_compiler=yes
9729else
9730  echo "$as_me: failed program was:" >&5
9731sed 's/^/| /' conftest.$ac_ext >&5
9732
9733ac_header_compiler=no
9734fi
9735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737echo "${ECHO_T}$ac_header_compiler" >&6
9738
9739# Is the header present?
9740echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9742cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h.  */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h.  */
9748#include <$ac_header>
9749_ACEOF
9750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9751  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9752  ac_status=$?
9753  grep -v '^ *+' conftest.er1 >conftest.err
9754  rm -f conftest.er1
9755  cat conftest.err >&5
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); } >/dev/null; then
9758  if test -s conftest.err; then
9759    ac_cpp_err=$ac_c_preproc_warn_flag
9760    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9761  else
9762    ac_cpp_err=
9763  fi
9764else
9765  ac_cpp_err=yes
9766fi
9767if test -z "$ac_cpp_err"; then
9768  ac_header_preproc=yes
9769else
9770  echo "$as_me: failed program was:" >&5
9771sed 's/^/| /' conftest.$ac_ext >&5
9772
9773  ac_header_preproc=no
9774fi
9775rm -f conftest.err conftest.$ac_ext
9776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777echo "${ECHO_T}$ac_header_preproc" >&6
9778
9779# So?  What about this header?
9780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781  yes:no: )
9782    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786    ac_header_preproc=yes
9787    ;;
9788  no:yes:* )
9789    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9792echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9793    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9796echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801    (
9802      cat <<\_ASBOX
9803## ------------------------------------------ ##
9804## Report this to the AC_PACKAGE_NAME lists.  ##
9805## ------------------------------------------ ##
9806_ASBOX
9807    ) |
9808      sed "s/^/$as_me: WARNING:     /" >&2
9809    ;;
9810esac
9811echo "$as_me:$LINENO: checking for $ac_header" >&5
9812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  eval "$as_ac_Header=\$ac_header_preproc"
9817fi
9818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820
9821fi
9822if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823  cat >>confdefs.h <<_ACEOF
9824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9825_ACEOF
9826
9827fi
9828
9829done
9830
9831
9832
9833if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9834    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9835    (test "X$CXX" != "Xg++"))) ; then
9836  ac_ext=cc
9837ac_cpp='$CXXCPP $CPPFLAGS'
9838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9841echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9842echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9843if test -z "$CXXCPP"; then
9844  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9845  echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
9847      # Double quotes because CXXCPP needs to be expanded
9848    for CXXCPP in "$CXX -E" "/lib/cpp"
9849    do
9850      ac_preproc_ok=false
9851for ac_cxx_preproc_warn_flag in '' yes
9852do
9853  # Use a header file that comes with gcc, so configuring glibc
9854  # with a fresh cross-compiler works.
9855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856  # <limits.h> exists even on freestanding compilers.
9857  # On the NeXT, cc -E runs the code through the compiler's parser,
9858  # not just through cpp. "Syntax error" is here to catch this case.
9859  cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h.  */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h.  */
9865#ifdef __STDC__
9866# include <limits.h>
9867#else
9868# include <assert.h>
9869#endif
9870		     Syntax error
9871_ACEOF
9872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9874  ac_status=$?
9875  grep -v '^ *+' conftest.er1 >conftest.err
9876  rm -f conftest.er1
9877  cat conftest.err >&5
9878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879  (exit $ac_status); } >/dev/null; then
9880  if test -s conftest.err; then
9881    ac_cpp_err=$ac_cxx_preproc_warn_flag
9882    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9883  else
9884    ac_cpp_err=
9885  fi
9886else
9887  ac_cpp_err=yes
9888fi
9889if test -z "$ac_cpp_err"; then
9890  :
9891else
9892  echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895  # Broken: fails on valid input.
9896continue
9897fi
9898rm -f conftest.err conftest.$ac_ext
9899
9900  # OK, works on sane cases.  Now check whether non-existent headers
9901  # can be detected and how.
9902  cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h.  */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h.  */
9908#include <ac_nonexistent.h>
9909_ACEOF
9910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9912  ac_status=$?
9913  grep -v '^ *+' conftest.er1 >conftest.err
9914  rm -f conftest.er1
9915  cat conftest.err >&5
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); } >/dev/null; then
9918  if test -s conftest.err; then
9919    ac_cpp_err=$ac_cxx_preproc_warn_flag
9920    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9921  else
9922    ac_cpp_err=
9923  fi
9924else
9925  ac_cpp_err=yes
9926fi
9927if test -z "$ac_cpp_err"; then
9928  # Broken: success on invalid input.
9929continue
9930else
9931  echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
9934  # Passes both tests.
9935ac_preproc_ok=:
9936break
9937fi
9938rm -f conftest.err conftest.$ac_ext
9939
9940done
9941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9942rm -f conftest.err conftest.$ac_ext
9943if $ac_preproc_ok; then
9944  break
9945fi
9946
9947    done
9948    ac_cv_prog_CXXCPP=$CXXCPP
9949
9950fi
9951  CXXCPP=$ac_cv_prog_CXXCPP
9952else
9953  ac_cv_prog_CXXCPP=$CXXCPP
9954fi
9955echo "$as_me:$LINENO: result: $CXXCPP" >&5
9956echo "${ECHO_T}$CXXCPP" >&6
9957ac_preproc_ok=false
9958for ac_cxx_preproc_warn_flag in '' yes
9959do
9960  # Use a header file that comes with gcc, so configuring glibc
9961  # with a fresh cross-compiler works.
9962  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963  # <limits.h> exists even on freestanding compilers.
9964  # On the NeXT, cc -E runs the code through the compiler's parser,
9965  # not just through cpp. "Syntax error" is here to catch this case.
9966  cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972#ifdef __STDC__
9973# include <limits.h>
9974#else
9975# include <assert.h>
9976#endif
9977		     Syntax error
9978_ACEOF
9979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9981  ac_status=$?
9982  grep -v '^ *+' conftest.er1 >conftest.err
9983  rm -f conftest.er1
9984  cat conftest.err >&5
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); } >/dev/null; then
9987  if test -s conftest.err; then
9988    ac_cpp_err=$ac_cxx_preproc_warn_flag
9989    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9990  else
9991    ac_cpp_err=
9992  fi
9993else
9994  ac_cpp_err=yes
9995fi
9996if test -z "$ac_cpp_err"; then
9997  :
9998else
9999  echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
10002  # Broken: fails on valid input.
10003continue
10004fi
10005rm -f conftest.err conftest.$ac_ext
10006
10007  # OK, works on sane cases.  Now check whether non-existent headers
10008  # can be detected and how.
10009  cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h.  */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h.  */
10015#include <ac_nonexistent.h>
10016_ACEOF
10017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10019  ac_status=$?
10020  grep -v '^ *+' conftest.er1 >conftest.err
10021  rm -f conftest.er1
10022  cat conftest.err >&5
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } >/dev/null; then
10025  if test -s conftest.err; then
10026    ac_cpp_err=$ac_cxx_preproc_warn_flag
10027    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10028  else
10029    ac_cpp_err=
10030  fi
10031else
10032  ac_cpp_err=yes
10033fi
10034if test -z "$ac_cpp_err"; then
10035  # Broken: success on invalid input.
10036continue
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041  # Passes both tests.
10042ac_preproc_ok=:
10043break
10044fi
10045rm -f conftest.err conftest.$ac_ext
10046
10047done
10048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10049rm -f conftest.err conftest.$ac_ext
10050if $ac_preproc_ok; then
10051  :
10052else
10053  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10054See \`config.log' for more details." >&5
10055echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10056See \`config.log' for more details." >&2;}
10057   { (exit 1); exit 1; }; }
10058fi
10059
10060ac_ext=cc
10061ac_cpp='$CXXCPP $CPPFLAGS'
10062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10065
10066fi
10067
10068
10069ac_ext=f
10070ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10071ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10072ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10073if test -n "$ac_tool_prefix"; then
10074  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10075  do
10076    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10077set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10078echo "$as_me:$LINENO: checking for $ac_word" >&5
10079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10080if test "${ac_cv_prog_F77+set}" = set; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  if test -n "$F77"; then
10084  ac_cv_prog_F77="$F77" # Let the user override the test.
10085else
10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089  IFS=$as_save_IFS
10090  test -z "$as_dir" && as_dir=.
10091  for ac_exec_ext in '' $ac_executable_extensions; do
10092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095    break 2
10096  fi
10097done
10098done
10099
10100fi
10101fi
10102F77=$ac_cv_prog_F77
10103if test -n "$F77"; then
10104  echo "$as_me:$LINENO: result: $F77" >&5
10105echo "${ECHO_T}$F77" >&6
10106else
10107  echo "$as_me:$LINENO: result: no" >&5
10108echo "${ECHO_T}no" >&6
10109fi
10110
10111    test -n "$F77" && break
10112  done
10113fi
10114if test -z "$F77"; then
10115  ac_ct_F77=$F77
10116  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10117do
10118  # Extract the first word of "$ac_prog", so it can be a program name with args.
10119set dummy $ac_prog; ac_word=$2
10120echo "$as_me:$LINENO: checking for $ac_word" >&5
10121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10122if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10123  echo $ECHO_N "(cached) $ECHO_C" >&6
10124else
10125  if test -n "$ac_ct_F77"; then
10126  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10127else
10128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129for as_dir in $PATH
10130do
10131  IFS=$as_save_IFS
10132  test -z "$as_dir" && as_dir=.
10133  for ac_exec_ext in '' $ac_executable_extensions; do
10134  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135    ac_cv_prog_ac_ct_F77="$ac_prog"
10136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10137    break 2
10138  fi
10139done
10140done
10141
10142fi
10143fi
10144ac_ct_F77=$ac_cv_prog_ac_ct_F77
10145if test -n "$ac_ct_F77"; then
10146  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10147echo "${ECHO_T}$ac_ct_F77" >&6
10148else
10149  echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151fi
10152
10153  test -n "$ac_ct_F77" && break
10154done
10155
10156  F77=$ac_ct_F77
10157fi
10158
10159
10160# Provide some information about the compiler.
10161echo "$as_me:10161:" \
10162     "checking for Fortran 77 compiler version" >&5
10163ac_compiler=`set X $ac_compile; echo $2`
10164{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10165  (eval $ac_compiler --version </dev/null >&5) 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }
10169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10170  (eval $ac_compiler -v </dev/null >&5) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }
10174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10175  (eval $ac_compiler -V </dev/null >&5) 2>&5
10176  ac_status=$?
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); }
10179rm -f a.out
10180
10181# If we don't use `.F' as extension, the preprocessor is not run on the
10182# input file.  (Note that this only needs to work for GNU compilers.)
10183ac_save_ext=$ac_ext
10184ac_ext=F
10185echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10186echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10187if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10188  echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190  cat >conftest.$ac_ext <<_ACEOF
10191      program main
10192#ifndef __GNUC__
10193       choke me
10194#endif
10195
10196      end
10197_ACEOF
10198rm -f conftest.$ac_objext
10199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200  (eval $ac_compile) 2>conftest.er1
10201  ac_status=$?
10202  grep -v '^ *+' conftest.er1 >conftest.err
10203  rm -f conftest.er1
10204  cat conftest.err >&5
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); } &&
10207	 { ac_try='test -z "$ac_f77_werror_flag"
10208			 || test ! -s conftest.err'
10209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210  (eval $ac_try) 2>&5
10211  ac_status=$?
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); }; } &&
10214	 { ac_try='test -s conftest.$ac_objext'
10215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216  (eval $ac_try) 2>&5
10217  ac_status=$?
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); }; }; then
10220  ac_compiler_gnu=yes
10221else
10222  echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225ac_compiler_gnu=no
10226fi
10227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10228ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10229
10230fi
10231echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10232echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10233ac_ext=$ac_save_ext
10234ac_test_FFLAGS=${FFLAGS+set}
10235ac_save_FFLAGS=$FFLAGS
10236FFLAGS=
10237echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10238echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10239if test "${ac_cv_prog_f77_g+set}" = set; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242  FFLAGS=-g
10243cat >conftest.$ac_ext <<_ACEOF
10244      program main
10245
10246      end
10247_ACEOF
10248rm -f conftest.$ac_objext
10249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250  (eval $ac_compile) 2>conftest.er1
10251  ac_status=$?
10252  grep -v '^ *+' conftest.er1 >conftest.err
10253  rm -f conftest.er1
10254  cat conftest.err >&5
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); } &&
10257	 { ac_try='test -z "$ac_f77_werror_flag"
10258			 || test ! -s conftest.err'
10259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260  (eval $ac_try) 2>&5
10261  ac_status=$?
10262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263  (exit $ac_status); }; } &&
10264	 { ac_try='test -s conftest.$ac_objext'
10265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266  (eval $ac_try) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); }; }; then
10270  ac_cv_prog_f77_g=yes
10271else
10272  echo "$as_me: failed program was:" >&5
10273sed 's/^/| /' conftest.$ac_ext >&5
10274
10275ac_cv_prog_f77_g=no
10276fi
10277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278
10279fi
10280echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10281echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10282if test "$ac_test_FFLAGS" = set; then
10283  FFLAGS=$ac_save_FFLAGS
10284elif test $ac_cv_prog_f77_g = yes; then
10285  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10286    FFLAGS="-g -O2"
10287  else
10288    FFLAGS="-g"
10289  fi
10290else
10291  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10292    FFLAGS="-O2"
10293  else
10294    FFLAGS=
10295  fi
10296fi
10297
10298G77=`test $ac_compiler_gnu = yes && echo yes`
10299ac_ext=c
10300ac_cpp='$CPP $CPPFLAGS'
10301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10303ac_compiler_gnu=$ac_cv_c_compiler_gnu
10304
10305
10306
10307# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10308
10309# find the maximum length of command line arguments
10310echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10311echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10312if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10313  echo $ECHO_N "(cached) $ECHO_C" >&6
10314else
10315    i=0
10316  teststring="ABCD"
10317
10318  case $build_os in
10319  msdosdjgpp*)
10320    # On DJGPP, this test can blow up pretty badly due to problems in libc
10321    # (any single argument exceeding 2000 bytes causes a buffer overrun
10322    # during glob expansion).  Even if it were fixed, the result of this
10323    # check would be larger than it should be.
10324    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10325    ;;
10326
10327  gnu*)
10328    # Under GNU Hurd, this test is not required because there is
10329    # no limit to the length of command line arguments.
10330    # Libtool will interpret -1 as no limit whatsoever
10331    lt_cv_sys_max_cmd_len=-1;
10332    ;;
10333
10334  cygwin* | mingw*)
10335    # On Win9x/ME, this test blows up -- it succeeds, but takes
10336    # about 5 minutes as the teststring grows exponentially.
10337    # Worse, since 9x/ME are not pre-emptively multitasking,
10338    # you end up with a "frozen" computer, even though with patience
10339    # the test eventually succeeds (with a max line length of 256k).
10340    # Instead, let's just punt: use the minimum linelength reported by
10341    # all of the supported platforms: 8192 (on NT/2K/XP).
10342    lt_cv_sys_max_cmd_len=8192;
10343    ;;
10344
10345  amigaos*)
10346    # On AmigaOS with pdksh, this test takes hours, literally.
10347    # So we just punt and use a minimum line length of 8192.
10348    lt_cv_sys_max_cmd_len=8192;
10349    ;;
10350
10351  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10352    # This has been around since 386BSD, at least.  Likely further.
10353    if test -x /sbin/sysctl; then
10354      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10355    elif test -x /usr/sbin/sysctl; then
10356      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10357    else
10358      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10359    fi
10360    # And add a safety zone
10361    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10362    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10363    ;;
10364
10365  interix*)
10366    # We know the value 262144 and hardcode it with a safety zone (like BSD)
10367    lt_cv_sys_max_cmd_len=196608
10368    ;;
10369
10370  osf*)
10371    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10372    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10373    # nice to cause kernel panics so lets avoid the loop below.
10374    # First set a reasonable default.
10375    lt_cv_sys_max_cmd_len=16384
10376    #
10377    if test -x /sbin/sysconfig; then
10378      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10379        *1*) lt_cv_sys_max_cmd_len=-1 ;;
10380      esac
10381    fi
10382    ;;
10383  sco3.2v5*)
10384    lt_cv_sys_max_cmd_len=102400
10385    ;;
10386  sysv5* | sco5v6* | sysv4.2uw2*)
10387    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10388    if test -n "$kargmax"; then
10389      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
10390    else
10391      lt_cv_sys_max_cmd_len=32768
10392    fi
10393    ;;
10394  *)
10395    # If test is not a shell built-in, we'll probably end up computing a
10396    # maximum length that is only half of the actual maximum length, but
10397    # we can't tell.
10398    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10399    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10400	       = "XX$teststring") >/dev/null 2>&1 &&
10401	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
10402	    lt_cv_sys_max_cmd_len=$new_result &&
10403	    test $i != 17 # 1/2 MB should be enough
10404    do
10405      i=`expr $i + 1`
10406      teststring=$teststring$teststring
10407    done
10408    teststring=
10409    # Add a significant safety factor because C++ compilers can tack on massive
10410    # amounts of additional arguments before passing them to the linker.
10411    # It appears as though 1/2 is a usable value.
10412    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10413    ;;
10414  esac
10415
10416fi
10417
10418if test -n $lt_cv_sys_max_cmd_len ; then
10419  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10420echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10421else
10422  echo "$as_me:$LINENO: result: none" >&5
10423echo "${ECHO_T}none" >&6
10424fi
10425
10426
10427
10428
10429# Check for command to grab the raw symbol name followed by C symbol from nm.
10430echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10431echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10432if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10433  echo $ECHO_N "(cached) $ECHO_C" >&6
10434else
10435
10436# These are sane defaults that work on at least a few old systems.
10437# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10438
10439# Character class describing NM global symbol codes.
10440symcode='[BCDEGRST]'
10441
10442# Regexp to match symbols that can be accessed directly from C.
10443sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10444
10445# Transform an extracted symbol line into a proper C declaration
10446lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10447
10448# Transform an extracted symbol line into symbol name and symbol address
10449lt_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'"
10450
10451# Define system-specific variables.
10452case $host_os in
10453aix*)
10454  symcode='[BCDT]'
10455  ;;
10456cygwin* | mingw* | pw32*)
10457  symcode='[ABCDGISTW]'
10458  ;;
10459hpux*) # Its linker distinguishes data from code symbols
10460  if test "$host_cpu" = ia64; then
10461    symcode='[ABCDEGRST]'
10462  fi
10463  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10464  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'"
10465  ;;
10466linux*)
10467  if test "$host_cpu" = ia64; then
10468    symcode='[ABCDGIRSTW]'
10469    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10470    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'"
10471  fi
10472  ;;
10473irix* | nonstopux*)
10474  symcode='[BCDEGRST]'
10475  ;;
10476osf*)
10477  symcode='[BCDEGQRST]'
10478  ;;
10479solaris*)
10480  symcode='[BDRT]'
10481  ;;
10482sco3.2v5*)
10483  symcode='[DT]'
10484  ;;
10485sysv4.2uw2*)
10486  symcode='[DT]'
10487  ;;
10488sysv5* | sco5v6* | unixware* | OpenUNIX*)
10489  symcode='[ABDT]'
10490  ;;
10491sysv4)
10492  symcode='[DFNSTU]'
10493  ;;
10494esac
10495
10496# Handle CRLF in mingw tool chain
10497opt_cr=
10498case $build_os in
10499mingw*)
10500  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10501  ;;
10502esac
10503
10504# If we're using GNU nm, then use its standard symbol codes.
10505case `$NM -V 2>&1` in
10506*GNU* | *'with BFD'*)
10507  symcode='[ABCDGIRSTW]' ;;
10508esac
10509
10510# Try without a prefix undercore, then with it.
10511for ac_symprfx in "" "_"; do
10512
10513  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10514  symxfrm="\\1 $ac_symprfx\\2 \\2"
10515
10516  # Write the raw and C identifiers.
10517  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10518
10519  # Check to see that the pipe works correctly.
10520  pipe_works=no
10521
10522  rm -f conftest*
10523  cat > conftest.$ac_ext <<EOF
10524#ifdef __cplusplus
10525extern "C" {
10526#endif
10527char nm_test_var;
10528void nm_test_func(){}
10529#ifdef __cplusplus
10530}
10531#endif
10532int main(){nm_test_var='a';nm_test_func();return(0);}
10533EOF
10534
10535  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536  (eval $ac_compile) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }; then
10540    # Now try to grab the symbols.
10541    nlist=conftest.nm
10542    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10543  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10544  ac_status=$?
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); } && test -s "$nlist"; then
10547      # Try sorting and uniquifying the output.
10548      if sort "$nlist" | uniq > "$nlist"T; then
10549	mv -f "$nlist"T "$nlist"
10550      else
10551	rm -f "$nlist"T
10552      fi
10553
10554      # Make sure that we snagged all the symbols we need.
10555      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10556	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10557	  cat <<EOF > conftest.$ac_ext
10558#ifdef __cplusplus
10559extern "C" {
10560#endif
10561
10562EOF
10563	  # Now generate the symbol file.
10564	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10565
10566	  cat <<EOF >> conftest.$ac_ext
10567#if defined (__STDC__) && __STDC__
10568# define lt_ptr_t void *
10569#else
10570# define lt_ptr_t char *
10571# define const
10572#endif
10573
10574/* The mapping between symbol names and symbols. */
10575const struct {
10576  const char *name;
10577  lt_ptr_t address;
10578}
10579lt_preloaded_symbols[] =
10580{
10581EOF
10582	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10583	  cat <<\EOF >> conftest.$ac_ext
10584  {0, (lt_ptr_t) 0}
10585};
10586
10587#ifdef __cplusplus
10588}
10589#endif
10590EOF
10591	  # Now try linking the two files.
10592	  mv conftest.$ac_objext conftstm.$ac_objext
10593	  lt_save_LIBS="$LIBS"
10594	  lt_save_CFLAGS="$CFLAGS"
10595	  LIBS="conftstm.$ac_objext"
10596	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10597	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598  (eval $ac_link) 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10602	    pipe_works=yes
10603	  fi
10604	  LIBS="$lt_save_LIBS"
10605	  CFLAGS="$lt_save_CFLAGS"
10606	else
10607	  echo "cannot find nm_test_func in $nlist" >&5
10608	fi
10609      else
10610	echo "cannot find nm_test_var in $nlist" >&5
10611      fi
10612    else
10613      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10614    fi
10615  else
10616    echo "$progname: failed program was:" >&5
10617    cat conftest.$ac_ext >&5
10618  fi
10619  rm -f conftest* conftst*
10620
10621  # Do not use the global_symbol_pipe unless it works.
10622  if test "$pipe_works" = yes; then
10623    break
10624  else
10625    lt_cv_sys_global_symbol_pipe=
10626  fi
10627done
10628
10629fi
10630
10631if test -z "$lt_cv_sys_global_symbol_pipe"; then
10632  lt_cv_sys_global_symbol_to_cdecl=
10633fi
10634if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10635  echo "$as_me:$LINENO: result: failed" >&5
10636echo "${ECHO_T}failed" >&6
10637else
10638  echo "$as_me:$LINENO: result: ok" >&5
10639echo "${ECHO_T}ok" >&6
10640fi
10641
10642echo "$as_me:$LINENO: checking for objdir" >&5
10643echo $ECHO_N "checking for objdir... $ECHO_C" >&6
10644if test "${lt_cv_objdir+set}" = set; then
10645  echo $ECHO_N "(cached) $ECHO_C" >&6
10646else
10647  rm -f .libs 2>/dev/null
10648mkdir .libs 2>/dev/null
10649if test -d .libs; then
10650  lt_cv_objdir=.libs
10651else
10652  # MS-DOS does not allow filenames that begin with a dot.
10653  lt_cv_objdir=_libs
10654fi
10655rmdir .libs 2>/dev/null
10656fi
10657echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10658echo "${ECHO_T}$lt_cv_objdir" >&6
10659objdir=$lt_cv_objdir
10660
10661
10662
10663
10664
10665case $host_os in
10666aix3*)
10667  # AIX sometimes has problems with the GCC collect2 program.  For some
10668  # reason, if we set the COLLECT_NAMES environment variable, the problems
10669  # vanish in a puff of smoke.
10670  if test "X${COLLECT_NAMES+set}" != Xset; then
10671    COLLECT_NAMES=
10672    export COLLECT_NAMES
10673  fi
10674  ;;
10675esac
10676
10677# Sed substitution that helps us do robust quoting.  It backslashifies
10678# metacharacters that are still active within double-quoted strings.
10679Xsed='sed -e 1s/^X//'
10680sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
10681
10682# Same as above, but do not quote variable references.
10683double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
10684
10685# Sed substitution to delay expansion of an escaped shell variable in a
10686# double_quote_subst'ed string.
10687delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10688
10689# Sed substitution to avoid accidental globbing in evaled expressions
10690no_glob_subst='s/\*/\\\*/g'
10691
10692# Constants:
10693rm="rm -f"
10694
10695# Global variables:
10696default_ofile=libtool
10697can_build_shared=yes
10698
10699# All known linkers require a `.a' archive for static linking (except MSVC,
10700# which needs '.lib').
10701libext=a
10702ltmain="$ac_aux_dir/ltmain.sh"
10703ofile="$default_ofile"
10704with_gnu_ld="$lt_cv_prog_gnu_ld"
10705
10706if test -n "$ac_tool_prefix"; then
10707  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10708set dummy ${ac_tool_prefix}ar; ac_word=$2
10709echo "$as_me:$LINENO: checking for $ac_word" >&5
10710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10711if test "${ac_cv_prog_AR+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  if test -n "$AR"; then
10715  ac_cv_prog_AR="$AR" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720  IFS=$as_save_IFS
10721  test -z "$as_dir" && as_dir=.
10722  for ac_exec_ext in '' $ac_executable_extensions; do
10723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724    ac_cv_prog_AR="${ac_tool_prefix}ar"
10725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726    break 2
10727  fi
10728done
10729done
10730
10731fi
10732fi
10733AR=$ac_cv_prog_AR
10734if test -n "$AR"; then
10735  echo "$as_me:$LINENO: result: $AR" >&5
10736echo "${ECHO_T}$AR" >&6
10737else
10738  echo "$as_me:$LINENO: result: no" >&5
10739echo "${ECHO_T}no" >&6
10740fi
10741
10742fi
10743if test -z "$ac_cv_prog_AR"; then
10744  ac_ct_AR=$AR
10745  # Extract the first word of "ar", so it can be a program name with args.
10746set dummy ar; ac_word=$2
10747echo "$as_me:$LINENO: checking for $ac_word" >&5
10748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10749if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10750  echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752  if test -n "$ac_ct_AR"; then
10753  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758  IFS=$as_save_IFS
10759  test -z "$as_dir" && as_dir=.
10760  for ac_exec_ext in '' $ac_executable_extensions; do
10761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762    ac_cv_prog_ac_ct_AR="ar"
10763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10764    break 2
10765  fi
10766done
10767done
10768
10769  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
10770fi
10771fi
10772ac_ct_AR=$ac_cv_prog_ac_ct_AR
10773if test -n "$ac_ct_AR"; then
10774  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10775echo "${ECHO_T}$ac_ct_AR" >&6
10776else
10777  echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781  AR=$ac_ct_AR
10782else
10783  AR="$ac_cv_prog_AR"
10784fi
10785
10786if test -n "$ac_tool_prefix"; then
10787  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_RANLIB+set}" = set; then
10792  echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794  if test -n "$RANLIB"; then
10795  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800  IFS=$as_save_IFS
10801  test -z "$as_dir" && as_dir=.
10802  for ac_exec_ext in '' $ac_executable_extensions; do
10803  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806    break 2
10807  fi
10808done
10809done
10810
10811fi
10812fi
10813RANLIB=$ac_cv_prog_RANLIB
10814if test -n "$RANLIB"; then
10815  echo "$as_me:$LINENO: result: $RANLIB" >&5
10816echo "${ECHO_T}$RANLIB" >&6
10817else
10818  echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822fi
10823if test -z "$ac_cv_prog_RANLIB"; then
10824  ac_ct_RANLIB=$RANLIB
10825  # Extract the first word of "ranlib", so it can be a program name with args.
10826set dummy ranlib; ac_word=$2
10827echo "$as_me:$LINENO: checking for $ac_word" >&5
10828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10829if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10830  echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832  if test -n "$ac_ct_RANLIB"; then
10833  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10834else
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838  IFS=$as_save_IFS
10839  test -z "$as_dir" && as_dir=.
10840  for ac_exec_ext in '' $ac_executable_extensions; do
10841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842    ac_cv_prog_ac_ct_RANLIB="ranlib"
10843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10844    break 2
10845  fi
10846done
10847done
10848
10849  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10850fi
10851fi
10852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10853if test -n "$ac_ct_RANLIB"; then
10854  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10855echo "${ECHO_T}$ac_ct_RANLIB" >&6
10856else
10857  echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861  RANLIB=$ac_ct_RANLIB
10862else
10863  RANLIB="$ac_cv_prog_RANLIB"
10864fi
10865
10866if test -n "$ac_tool_prefix"; then
10867  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10868set dummy ${ac_tool_prefix}strip; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_STRIP+set}" = set; then
10872  echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874  if test -n "$STRIP"; then
10875  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880  IFS=$as_save_IFS
10881  test -z "$as_dir" && as_dir=.
10882  for ac_exec_ext in '' $ac_executable_extensions; do
10883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886    break 2
10887  fi
10888done
10889done
10890
10891fi
10892fi
10893STRIP=$ac_cv_prog_STRIP
10894if test -n "$STRIP"; then
10895  echo "$as_me:$LINENO: result: $STRIP" >&5
10896echo "${ECHO_T}$STRIP" >&6
10897else
10898  echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902fi
10903if test -z "$ac_cv_prog_STRIP"; then
10904  ac_ct_STRIP=$STRIP
10905  # Extract the first word of "strip", so it can be a program name with args.
10906set dummy strip; ac_word=$2
10907echo "$as_me:$LINENO: checking for $ac_word" >&5
10908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10910  echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912  if test -n "$ac_ct_STRIP"; then
10913  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10914else
10915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916for as_dir in $PATH
10917do
10918  IFS=$as_save_IFS
10919  test -z "$as_dir" && as_dir=.
10920  for ac_exec_ext in '' $ac_executable_extensions; do
10921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922    ac_cv_prog_ac_ct_STRIP="strip"
10923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924    break 2
10925  fi
10926done
10927done
10928
10929  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10930fi
10931fi
10932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10933if test -n "$ac_ct_STRIP"; then
10934  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10935echo "${ECHO_T}$ac_ct_STRIP" >&6
10936else
10937  echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941  STRIP=$ac_ct_STRIP
10942else
10943  STRIP="$ac_cv_prog_STRIP"
10944fi
10945
10946
10947old_CC="$CC"
10948old_CFLAGS="$CFLAGS"
10949
10950# Set sane defaults for various variables
10951test -z "$AR" && AR=ar
10952test -z "$AR_FLAGS" && AR_FLAGS=cru
10953test -z "$AS" && AS=as
10954test -z "$CC" && CC=cc
10955test -z "$LTCC" && LTCC=$CC
10956test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10957test -z "$DLLTOOL" && DLLTOOL=dlltool
10958test -z "$LD" && LD=ld
10959test -z "$LN_S" && LN_S="ln -s"
10960test -z "$MAGIC_CMD" && MAGIC_CMD=file
10961test -z "$NM" && NM=nm
10962test -z "$SED" && SED=sed
10963test -z "$OBJDUMP" && OBJDUMP=objdump
10964test -z "$RANLIB" && RANLIB=:
10965test -z "$STRIP" && STRIP=:
10966test -z "$ac_objext" && ac_objext=o
10967
10968# Determine commands to create old-style static archives.
10969old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10970old_postinstall_cmds='chmod 644 $oldlib'
10971old_postuninstall_cmds=
10972
10973if test -n "$RANLIB"; then
10974  case $host_os in
10975  openbsd*)
10976    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10977    ;;
10978  *)
10979    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10980    ;;
10981  esac
10982  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10983fi
10984
10985for cc_temp in $compiler""; do
10986  case $cc_temp in
10987    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10988    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10989    \-*) ;;
10990    *) break;;
10991  esac
10992done
10993cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10994
10995
10996# Only perform the check for file, if the check method requires it
10997case $deplibs_check_method in
10998file_magic*)
10999  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11000    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11001echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11002if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11003  echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
11005  case $MAGIC_CMD in
11006[\\/*] |  ?:[\\/]*)
11007  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11008  ;;
11009*)
11010  lt_save_MAGIC_CMD="$MAGIC_CMD"
11011  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11012  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11013  for ac_dir in $ac_dummy; do
11014    IFS="$lt_save_ifs"
11015    test -z "$ac_dir" && ac_dir=.
11016    if test -f $ac_dir/${ac_tool_prefix}file; then
11017      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11018      if test -n "$file_magic_test_file"; then
11019	case $deplibs_check_method in
11020	"file_magic "*)
11021	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11022	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11023	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11024	    $EGREP "$file_magic_regex" > /dev/null; then
11025	    :
11026	  else
11027	    cat <<EOF 1>&2
11028
11029*** Warning: the command libtool uses to detect shared libraries,
11030*** $file_magic_cmd, produces output that libtool cannot recognize.
11031*** The result is that libtool may fail to recognize shared libraries
11032*** as such.  This will affect the creation of libtool libraries that
11033*** depend on shared libraries, but programs linked with such libtool
11034*** libraries will work regardless of this problem.  Nevertheless, you
11035*** may want to report the problem to your system manager and/or to
11036*** bug-libtool@gnu.org
11037
11038EOF
11039	  fi ;;
11040	esac
11041      fi
11042      break
11043    fi
11044  done
11045  IFS="$lt_save_ifs"
11046  MAGIC_CMD="$lt_save_MAGIC_CMD"
11047  ;;
11048esac
11049fi
11050
11051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11052if test -n "$MAGIC_CMD"; then
11053  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11054echo "${ECHO_T}$MAGIC_CMD" >&6
11055else
11056  echo "$as_me:$LINENO: result: no" >&5
11057echo "${ECHO_T}no" >&6
11058fi
11059
11060if test -z "$lt_cv_path_MAGIC_CMD"; then
11061  if test -n "$ac_tool_prefix"; then
11062    echo "$as_me:$LINENO: checking for file" >&5
11063echo $ECHO_N "checking for file... $ECHO_C" >&6
11064if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11065  echo $ECHO_N "(cached) $ECHO_C" >&6
11066else
11067  case $MAGIC_CMD in
11068[\\/*] |  ?:[\\/]*)
11069  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11070  ;;
11071*)
11072  lt_save_MAGIC_CMD="$MAGIC_CMD"
11073  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11074  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11075  for ac_dir in $ac_dummy; do
11076    IFS="$lt_save_ifs"
11077    test -z "$ac_dir" && ac_dir=.
11078    if test -f $ac_dir/file; then
11079      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11080      if test -n "$file_magic_test_file"; then
11081	case $deplibs_check_method in
11082	"file_magic "*)
11083	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11084	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11085	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11086	    $EGREP "$file_magic_regex" > /dev/null; then
11087	    :
11088	  else
11089	    cat <<EOF 1>&2
11090
11091*** Warning: the command libtool uses to detect shared libraries,
11092*** $file_magic_cmd, produces output that libtool cannot recognize.
11093*** The result is that libtool may fail to recognize shared libraries
11094*** as such.  This will affect the creation of libtool libraries that
11095*** depend on shared libraries, but programs linked with such libtool
11096*** libraries will work regardless of this problem.  Nevertheless, you
11097*** may want to report the problem to your system manager and/or to
11098*** bug-libtool@gnu.org
11099
11100EOF
11101	  fi ;;
11102	esac
11103      fi
11104      break
11105    fi
11106  done
11107  IFS="$lt_save_ifs"
11108  MAGIC_CMD="$lt_save_MAGIC_CMD"
11109  ;;
11110esac
11111fi
11112
11113MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11114if test -n "$MAGIC_CMD"; then
11115  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11116echo "${ECHO_T}$MAGIC_CMD" >&6
11117else
11118  echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120fi
11121
11122  else
11123    MAGIC_CMD=:
11124  fi
11125fi
11126
11127  fi
11128  ;;
11129esac
11130
11131enable_dlopen=yes
11132enable_win32_dll=yes
11133
11134# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11135if test "${enable_libtool_lock+set}" = set; then
11136  enableval="$enable_libtool_lock"
11137
11138fi;
11139test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11140
11141
11142# Check whether --with-pic or --without-pic was given.
11143if test "${with_pic+set}" = set; then
11144  withval="$with_pic"
11145  pic_mode="$withval"
11146else
11147  pic_mode=default
11148fi;
11149test -z "$pic_mode" && pic_mode=default
11150
11151# Use C for the default configuration in the libtool script
11152tagname=
11153lt_save_CC="$CC"
11154ac_ext=c
11155ac_cpp='$CPP $CPPFLAGS'
11156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11158ac_compiler_gnu=$ac_cv_c_compiler_gnu
11159
11160
11161# Source file extension for C test sources.
11162ac_ext=c
11163
11164# Object file extension for compiled C test sources.
11165objext=o
11166objext=$objext
11167
11168# Code to be used in simple compile tests
11169lt_simple_compile_test_code="int some_variable = 0;\n"
11170
11171# Code to be used in simple link tests
11172lt_simple_link_test_code='int main(){return(0);}\n'
11173
11174
11175# If no C compiler was specified, use CC.
11176LTCC=${LTCC-"$CC"}
11177
11178# If no C compiler flags were specified, use CFLAGS.
11179LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11180
11181# Allow CC to be a program name with arguments.
11182compiler=$CC
11183
11184
11185# save warnings/boilerplate of simple test code
11186ac_outfile=conftest.$ac_objext
11187printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11189_lt_compiler_boilerplate=`cat conftest.err`
11190$rm conftest*
11191
11192ac_outfile=conftest.$ac_objext
11193printf "$lt_simple_link_test_code" >conftest.$ac_ext
11194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11195_lt_linker_boilerplate=`cat conftest.err`
11196$rm conftest*
11197
11198
11199
11200lt_prog_compiler_no_builtin_flag=
11201
11202if test "$GCC" = yes; then
11203  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11204
11205
11206echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11207echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11208if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11209  echo $ECHO_N "(cached) $ECHO_C" >&6
11210else
11211  lt_cv_prog_compiler_rtti_exceptions=no
11212  ac_outfile=conftest.$ac_objext
11213   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11214   lt_compiler_flag="-fno-rtti -fno-exceptions"
11215   # Insert the option either (1) after the last *FLAGS variable, or
11216   # (2) before a word containing "conftest.", or (3) at the end.
11217   # Note that $ac_compile itself does not contain backslashes and begins
11218   # with a dollar sign (not a hyphen), so the echo should work correctly.
11219   # The option is referenced via a variable to avoid confusing sed.
11220   lt_compile=`echo "$ac_compile" | $SED \
11221   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11222   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11223   -e 's:$: $lt_compiler_flag:'`
11224   (eval echo "\"\$as_me:11224: $lt_compile\"" >&5)
11225   (eval "$lt_compile" 2>conftest.err)
11226   ac_status=$?
11227   cat conftest.err >&5
11228   echo "$as_me:11228: \$? = $ac_status" >&5
11229   if (exit $ac_status) && test -s "$ac_outfile"; then
11230     # The compiler can only warn and ignore the option if not recognized
11231     # So say no if there are warnings other than the usual output.
11232     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11233     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11234     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11235       lt_cv_prog_compiler_rtti_exceptions=yes
11236     fi
11237   fi
11238   $rm conftest*
11239
11240fi
11241echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11242echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11243
11244if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11245    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11246else
11247    :
11248fi
11249
11250fi
11251
11252lt_prog_compiler_wl=
11253lt_prog_compiler_pic=
11254lt_prog_compiler_static=
11255
11256echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11257echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11258
11259  if test "$GCC" = yes; then
11260    lt_prog_compiler_wl='-Wl,'
11261    lt_prog_compiler_static='-static'
11262
11263    case $host_os in
11264      aix*)
11265      # All AIX code is PIC.
11266      if test "$host_cpu" = ia64; then
11267	# AIX 5 now supports IA64 processor
11268	lt_prog_compiler_static='-Bstatic'
11269      fi
11270      ;;
11271
11272    amigaos*)
11273      # FIXME: we need at least 68020 code to build shared libraries, but
11274      # adding the `-m68020' flag to GCC prevents building anything better,
11275      # like `-m68040'.
11276      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11277      ;;
11278
11279    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11280      # PIC is the default for these OSes.
11281      ;;
11282
11283    mingw* | pw32* | os2*)
11284      # This hack is so that the source file can tell whether it is being
11285      # built for inclusion in a dll (and should export symbols for example).
11286      lt_prog_compiler_pic='-DDLL_EXPORT'
11287      ;;
11288
11289    darwin* | rhapsody*)
11290      # PIC is the default on this platform
11291      # Common symbols not allowed in MH_DYLIB files
11292      lt_prog_compiler_pic='-fno-common'
11293      ;;
11294
11295    interix3*)
11296      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11297      # Instead, we relocate shared libraries at runtime.
11298      ;;
11299
11300    msdosdjgpp*)
11301      # Just because we use GCC doesn't mean we suddenly get shared libraries
11302      # on systems that don't support them.
11303      lt_prog_compiler_can_build_shared=no
11304      enable_shared=no
11305      ;;
11306
11307    sysv4*MP*)
11308      if test -d /usr/nec; then
11309	lt_prog_compiler_pic=-Kconform_pic
11310      fi
11311      ;;
11312
11313    hpux*)
11314      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11315      # not for PA HP-UX.
11316      case $host_cpu in
11317      hppa*64*|ia64*)
11318	# +Z the default
11319	;;
11320      *)
11321	lt_prog_compiler_pic='-fPIC'
11322	;;
11323      esac
11324      ;;
11325
11326    *)
11327      lt_prog_compiler_pic='-fPIC'
11328      ;;
11329    esac
11330  else
11331    # PORTME Check for flag to pass linker flags through the system compiler.
11332    case $host_os in
11333    aix*)
11334      lt_prog_compiler_wl='-Wl,'
11335      if test "$host_cpu" = ia64; then
11336	# AIX 5 now supports IA64 processor
11337	lt_prog_compiler_static='-Bstatic'
11338      else
11339	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11340      fi
11341      ;;
11342      darwin*)
11343        # PIC is the default on this platform
11344        # Common symbols not allowed in MH_DYLIB files
11345       case $cc_basename in
11346         xlc*)
11347         lt_prog_compiler_pic='-qnocommon'
11348         lt_prog_compiler_wl='-Wl,'
11349         ;;
11350       esac
11351       ;;
11352
11353    mingw* | pw32* | os2*)
11354      # This hack is so that the source file can tell whether it is being
11355      # built for inclusion in a dll (and should export symbols for example).
11356      lt_prog_compiler_pic='-DDLL_EXPORT'
11357      ;;
11358
11359    hpux9* | hpux10* | hpux11*)
11360      lt_prog_compiler_wl='-Wl,'
11361      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11362      # not for PA HP-UX.
11363      case $host_cpu in
11364      hppa*64*|ia64*)
11365	# +Z the default
11366	;;
11367      *)
11368	lt_prog_compiler_pic='+Z'
11369	;;
11370      esac
11371      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11372      lt_prog_compiler_static='${wl}-a ${wl}archive'
11373      ;;
11374
11375    irix5* | irix6* | nonstopux*)
11376      lt_prog_compiler_wl='-Wl,'
11377      # PIC (with -KPIC) is the default.
11378      lt_prog_compiler_static='-non_shared'
11379      ;;
11380
11381    newsos6)
11382      lt_prog_compiler_pic='-KPIC'
11383      lt_prog_compiler_static='-Bstatic'
11384      ;;
11385
11386    linux*)
11387      case $cc_basename in
11388      icc* | ecc*)
11389	lt_prog_compiler_wl='-Wl,'
11390	lt_prog_compiler_pic='-KPIC'
11391	lt_prog_compiler_static='-static'
11392        ;;
11393      pgcc* | pgf77* | pgf90* | pgf95*)
11394        # Portland Group compilers (*not* the Pentium gcc compiler,
11395	# which looks to be a dead project)
11396	lt_prog_compiler_wl='-Wl,'
11397	lt_prog_compiler_pic='-fpic'
11398	lt_prog_compiler_static='-Bstatic'
11399        ;;
11400      ccc*)
11401        lt_prog_compiler_wl='-Wl,'
11402        # All Alpha code is PIC.
11403        lt_prog_compiler_static='-non_shared'
11404        ;;
11405      esac
11406      ;;
11407
11408    osf3* | osf4* | osf5*)
11409      lt_prog_compiler_wl='-Wl,'
11410      # All OSF/1 code is PIC.
11411      lt_prog_compiler_static='-non_shared'
11412      ;;
11413
11414    solaris*)
11415      lt_prog_compiler_pic='-KPIC'
11416      lt_prog_compiler_static='-Bstatic'
11417      case $cc_basename in
11418      f77* | f90* | f95*)
11419	lt_prog_compiler_wl='-Qoption ld ';;
11420      *)
11421	lt_prog_compiler_wl='-Wl,';;
11422      esac
11423      ;;
11424
11425    sunos4*)
11426      lt_prog_compiler_wl='-Qoption ld '
11427      lt_prog_compiler_pic='-PIC'
11428      lt_prog_compiler_static='-Bstatic'
11429      ;;
11430
11431    sysv4 | sysv4.2uw2* | sysv4.3*)
11432      lt_prog_compiler_wl='-Wl,'
11433      lt_prog_compiler_pic='-KPIC'
11434      lt_prog_compiler_static='-Bstatic'
11435      ;;
11436
11437    sysv4*MP*)
11438      if test -d /usr/nec ;then
11439	lt_prog_compiler_pic='-Kconform_pic'
11440	lt_prog_compiler_static='-Bstatic'
11441      fi
11442      ;;
11443
11444    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11445      lt_prog_compiler_wl='-Wl,'
11446      lt_prog_compiler_pic='-KPIC'
11447      lt_prog_compiler_static='-Bstatic'
11448      ;;
11449
11450    unicos*)
11451      lt_prog_compiler_wl='-Wl,'
11452      lt_prog_compiler_can_build_shared=no
11453      ;;
11454
11455    uts4*)
11456      lt_prog_compiler_pic='-pic'
11457      lt_prog_compiler_static='-Bstatic'
11458      ;;
11459
11460    *)
11461      lt_prog_compiler_can_build_shared=no
11462      ;;
11463    esac
11464  fi
11465
11466echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11467echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11468
11469#
11470# Check to make sure the PIC flag actually works.
11471#
11472if test -n "$lt_prog_compiler_pic"; then
11473
11474echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11475echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11476if test "${lt_prog_compiler_pic_works+set}" = set; then
11477  echo $ECHO_N "(cached) $ECHO_C" >&6
11478else
11479  lt_prog_compiler_pic_works=no
11480  ac_outfile=conftest.$ac_objext
11481   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11482   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11483   # Insert the option either (1) after the last *FLAGS variable, or
11484   # (2) before a word containing "conftest.", or (3) at the end.
11485   # Note that $ac_compile itself does not contain backslashes and begins
11486   # with a dollar sign (not a hyphen), so the echo should work correctly.
11487   # The option is referenced via a variable to avoid confusing sed.
11488   lt_compile=`echo "$ac_compile" | $SED \
11489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11491   -e 's:$: $lt_compiler_flag:'`
11492   (eval echo "\"\$as_me:11492: $lt_compile\"" >&5)
11493   (eval "$lt_compile" 2>conftest.err)
11494   ac_status=$?
11495   cat conftest.err >&5
11496   echo "$as_me:11496: \$? = $ac_status" >&5
11497   if (exit $ac_status) && test -s "$ac_outfile"; then
11498     # The compiler can only warn and ignore the option if not recognized
11499     # So say no if there are warnings other than the usual output.
11500     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11501     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11502     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11503       lt_prog_compiler_pic_works=yes
11504     fi
11505   fi
11506   $rm conftest*
11507
11508fi
11509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11510echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11511
11512if test x"$lt_prog_compiler_pic_works" = xyes; then
11513    case $lt_prog_compiler_pic in
11514     "" | " "*) ;;
11515     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11516     esac
11517else
11518    lt_prog_compiler_pic=
11519     lt_prog_compiler_can_build_shared=no
11520fi
11521
11522fi
11523case $host_os in
11524  # For platforms which do not support PIC, -DPIC is meaningless:
11525  *djgpp*)
11526    lt_prog_compiler_pic=
11527    ;;
11528  *)
11529    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11530    ;;
11531esac
11532
11533#
11534# Check to make sure the static flag actually works.
11535#
11536wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11537echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11538echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11539if test "${lt_prog_compiler_static_works+set}" = set; then
11540  echo $ECHO_N "(cached) $ECHO_C" >&6
11541else
11542  lt_prog_compiler_static_works=no
11543   save_LDFLAGS="$LDFLAGS"
11544   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11545   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11546   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11547     # The linker can only warn and ignore the option if not recognized
11548     # So say no if there are warnings
11549     if test -s conftest.err; then
11550       # Append any errors to the config.log.
11551       cat conftest.err 1>&5
11552       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11553       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11554       if diff conftest.exp conftest.er2 >/dev/null; then
11555         lt_prog_compiler_static_works=yes
11556       fi
11557     else
11558       lt_prog_compiler_static_works=yes
11559     fi
11560   fi
11561   $rm conftest*
11562   LDFLAGS="$save_LDFLAGS"
11563
11564fi
11565echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11566echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11567
11568if test x"$lt_prog_compiler_static_works" = xyes; then
11569    :
11570else
11571    lt_prog_compiler_static=
11572fi
11573
11574
11575echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11577if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11578  echo $ECHO_N "(cached) $ECHO_C" >&6
11579else
11580  lt_cv_prog_compiler_c_o=no
11581   $rm -r conftest 2>/dev/null
11582   mkdir conftest
11583   cd conftest
11584   mkdir out
11585   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11586
11587   lt_compiler_flag="-o out/conftest2.$ac_objext"
11588   # Insert the option either (1) after the last *FLAGS variable, or
11589   # (2) before a word containing "conftest.", or (3) at the end.
11590   # Note that $ac_compile itself does not contain backslashes and begins
11591   # with a dollar sign (not a hyphen), so the echo should work correctly.
11592   lt_compile=`echo "$ac_compile" | $SED \
11593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11595   -e 's:$: $lt_compiler_flag:'`
11596   (eval echo "\"\$as_me:11596: $lt_compile\"" >&5)
11597   (eval "$lt_compile" 2>out/conftest.err)
11598   ac_status=$?
11599   cat out/conftest.err >&5
11600   echo "$as_me:11600: \$? = $ac_status" >&5
11601   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11602   then
11603     # The compiler can only warn and ignore the option if not recognized
11604     # So say no if there are warnings
11605     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11606     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11607     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11608       lt_cv_prog_compiler_c_o=yes
11609     fi
11610   fi
11611   chmod u+w . 2>&5
11612   $rm conftest*
11613   # SGI C++ compiler will create directory out/ii_files/ for
11614   # template instantiation
11615   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11616   $rm out/* && rmdir out
11617   cd ..
11618   rmdir conftest
11619   $rm conftest*
11620
11621fi
11622echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11623echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11624
11625
11626hard_links="nottested"
11627if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11628  # do not overwrite the value of need_locks provided by the user
11629  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11630echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11631  hard_links=yes
11632  $rm conftest*
11633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11634  touch conftest.a
11635  ln conftest.a conftest.b 2>&5 || hard_links=no
11636  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11637  echo "$as_me:$LINENO: result: $hard_links" >&5
11638echo "${ECHO_T}$hard_links" >&6
11639  if test "$hard_links" = no; then
11640    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11641echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11642    need_locks=warn
11643  fi
11644else
11645  need_locks=no
11646fi
11647
11648echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11649echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11650
11651  runpath_var=
11652  allow_undefined_flag=
11653  enable_shared_with_static_runtimes=no
11654  archive_cmds=
11655  archive_expsym_cmds=
11656  old_archive_From_new_cmds=
11657  old_archive_from_expsyms_cmds=
11658  export_dynamic_flag_spec=
11659  whole_archive_flag_spec=
11660  thread_safe_flag_spec=
11661  hardcode_libdir_flag_spec=
11662  hardcode_libdir_flag_spec_ld=
11663  hardcode_libdir_separator=
11664  hardcode_direct=no
11665  hardcode_minus_L=no
11666  hardcode_shlibpath_var=unsupported
11667  link_all_deplibs=unknown
11668  hardcode_automatic=no
11669  module_cmds=
11670  module_expsym_cmds=
11671  always_export_symbols=no
11672  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11673  # include_expsyms should be a list of space-separated symbols to be *always*
11674  # included in the symbol list
11675  include_expsyms=
11676  # exclude_expsyms can be an extended regexp of symbols to exclude
11677  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11678  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11679  # as well as any symbol that contains `d'.
11680  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
11681  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11682  # platforms (ab)use it in PIC code, but their linkers get confused if
11683  # the symbol is explicitly referenced.  Since portable code cannot
11684  # rely on this symbol name, it's probably fine to never include it in
11685  # preloaded symbol tables.
11686  extract_expsyms_cmds=
11687  # Just being paranoid about ensuring that cc_basename is set.
11688  for cc_temp in $compiler""; do
11689  case $cc_temp in
11690    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11691    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11692    \-*) ;;
11693    *) break;;
11694  esac
11695done
11696cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11697
11698  case $host_os in
11699  cygwin* | mingw* | pw32*)
11700    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11701    # When not using gcc, we currently assume that we are using
11702    # Microsoft Visual C++.
11703    if test "$GCC" != yes; then
11704      with_gnu_ld=no
11705    fi
11706    ;;
11707  interix*)
11708    # we just hope/assume this is gcc and not c89 (= MSVC++)
11709    with_gnu_ld=yes
11710    ;;
11711  openbsd*)
11712    with_gnu_ld=no
11713    ;;
11714  esac
11715
11716  ld_shlibs=yes
11717  if test "$with_gnu_ld" = yes; then
11718    # If archive_cmds runs LD, not CC, wlarc should be empty
11719    wlarc='${wl}'
11720
11721    # Set some defaults for GNU ld with shared library support. These
11722    # are reset later if shared libraries are not supported. Putting them
11723    # here allows them to be overridden if necessary.
11724    runpath_var=LD_RUN_PATH
11725    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11726    export_dynamic_flag_spec='${wl}--export-dynamic'
11727    # ancient GNU ld didn't support --whole-archive et. al.
11728    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11729	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11730      else
11731  	whole_archive_flag_spec=
11732    fi
11733    supports_anon_versioning=no
11734    case `$LD -v 2>/dev/null` in
11735      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11736      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11737      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11738      *\ 2.11.*) ;; # other 2.11 versions
11739      *) supports_anon_versioning=yes ;;
11740    esac
11741
11742    # See if GNU ld supports shared libraries.
11743    case $host_os in
11744    aix3* | aix4* | aix5*)
11745      # On AIX/PPC, the GNU linker is very broken
11746      if test "$host_cpu" != ia64; then
11747	ld_shlibs=no
11748	cat <<EOF 1>&2
11749
11750*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11751*** to be unable to reliably create shared libraries on AIX.
11752*** Therefore, libtool is disabling shared libraries support.  If you
11753*** really care for shared libraries, you may want to modify your PATH
11754*** so that a non-GNU linker is found, and then restart.
11755
11756EOF
11757      fi
11758      ;;
11759
11760    amigaos*)
11761      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)'
11762      hardcode_libdir_flag_spec='-L$libdir'
11763      hardcode_minus_L=yes
11764
11765      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11766      # that the semantics of dynamic libraries on AmigaOS, at least up
11767      # to version 4, is to share data among multiple programs linked
11768      # with the same dynamic library.  Since this doesn't match the
11769      # behavior of shared libraries on other platforms, we can't use
11770      # them.
11771      ld_shlibs=no
11772      ;;
11773
11774    beos*)
11775      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11776	allow_undefined_flag=unsupported
11777	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11778	# support --undefined.  This deserves some investigation.  FIXME
11779	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780      else
11781	ld_shlibs=no
11782      fi
11783      ;;
11784
11785    cygwin* | mingw* | pw32*)
11786      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11787      # as there is no search path for DLLs.
11788      hardcode_libdir_flag_spec='-L$libdir'
11789      allow_undefined_flag=unsupported
11790      always_export_symbols=no
11791      enable_shared_with_static_runtimes=yes
11792      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11793
11794      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11795        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11796	# If the export-symbols file already is a .def file (1st line
11797	# is EXPORTS), use it as is; otherwise, prepend...
11798	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11799	  cp $export_symbols $output_objdir/$soname.def;
11800	else
11801	  echo EXPORTS > $output_objdir/$soname.def;
11802	  cat $export_symbols >> $output_objdir/$soname.def;
11803	fi~
11804	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11805      else
11806	ld_shlibs=no
11807      fi
11808      ;;
11809
11810    interix3*)
11811      hardcode_direct=no
11812      hardcode_shlibpath_var=no
11813      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11814      export_dynamic_flag_spec='${wl}-E'
11815      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11816      # Instead, shared libraries are loaded at an image base (0x10000000 by
11817      # default) and relocated if they conflict, which is a slow very memory
11818      # consuming and fragmenting process.  To avoid this, we pick a random,
11819      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11820      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11821      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11822      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11823      ;;
11824
11825    linux*)
11826      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11827	tmp_addflag=
11828	case $cc_basename,$host_cpu in
11829	pgcc*)				# Portland Group C compiler
11830	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11831	  tmp_addflag=' $pic_flag'
11832	  ;;
11833	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11834	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11835	  tmp_addflag=' $pic_flag -Mnomain' ;;
11836	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
11837	  tmp_addflag=' -i_dynamic' ;;
11838	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11839	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11840	ifc* | ifort*)			# Intel Fortran compiler
11841	  tmp_addflag=' -nofor_main' ;;
11842	esac
11843	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11844
11845	if test $supports_anon_versioning = yes; then
11846	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11847  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11848  $echo "local: *; };" >> $output_objdir/$libname.ver~
11849	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11850	fi
11851      else
11852	ld_shlibs=no
11853      fi
11854      ;;
11855
11856    netbsd*)
11857      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11858	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11859	wlarc=
11860      else
11861	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11862	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11863      fi
11864      ;;
11865
11866    solaris*)
11867      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11868	ld_shlibs=no
11869	cat <<EOF 1>&2
11870
11871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11872*** create shared libraries on Solaris systems.  Therefore, libtool
11873*** is disabling shared libraries support.  We urge you to upgrade GNU
11874*** binutils to release 2.9.1 or newer.  Another option is to modify
11875*** your PATH or compiler configuration so that the native linker is
11876*** used, and then restart.
11877
11878EOF
11879      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11880	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11881	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11882      else
11883	ld_shlibs=no
11884      fi
11885      ;;
11886
11887    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11888      case `$LD -v 2>&1` in
11889        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11890	ld_shlibs=no
11891	cat <<_LT_EOF 1>&2
11892
11893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11894*** reliably create shared libraries on SCO systems.  Therefore, libtool
11895*** is disabling shared libraries support.  We urge you to upgrade GNU
11896*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11897*** your PATH or compiler configuration so that the native linker is
11898*** used, and then restart.
11899
11900_LT_EOF
11901	;;
11902	*)
11903	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11904	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11905	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11906	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11907	  else
11908	    ld_shlibs=no
11909	  fi
11910	;;
11911      esac
11912      ;;
11913
11914    sunos4*)
11915      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11916      wlarc=
11917      hardcode_direct=yes
11918      hardcode_shlibpath_var=no
11919      ;;
11920
11921    *)
11922      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11923	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11924	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11925      else
11926	ld_shlibs=no
11927      fi
11928      ;;
11929    esac
11930
11931    if test "$ld_shlibs" = no; then
11932      runpath_var=
11933      hardcode_libdir_flag_spec=
11934      export_dynamic_flag_spec=
11935      whole_archive_flag_spec=
11936    fi
11937  else
11938    # PORTME fill in a description of your system's linker (not GNU ld)
11939    case $host_os in
11940    aix3*)
11941      allow_undefined_flag=unsupported
11942      always_export_symbols=yes
11943      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'
11944      # Note: this linker hardcodes the directories in LIBPATH if there
11945      # are no directories specified by -L.
11946      hardcode_minus_L=yes
11947      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11948	# Neither direct hardcoding nor static linking is supported with a
11949	# broken collect2.
11950	hardcode_direct=unsupported
11951      fi
11952      ;;
11953
11954    aix4* | aix5*)
11955      if test "$host_cpu" = ia64; then
11956	# On IA64, the linker does run time linking by default, so we don't
11957	# have to do anything special.
11958	aix_use_runtimelinking=no
11959	exp_sym_flag='-Bexport'
11960	no_entry_flag=""
11961      else
11962	# If we're using GNU nm, then we don't want the "-C" option.
11963	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11964	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11965	  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'
11966	else
11967	  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'
11968	fi
11969	aix_use_runtimelinking=no
11970
11971	# Test if we are trying to use run time linking or normal
11972	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11973	# need to do runtime linking.
11974	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11975	  for ld_flag in $LDFLAGS; do
11976  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11977  	    aix_use_runtimelinking=yes
11978  	    break
11979  	  fi
11980	  done
11981	  ;;
11982	esac
11983
11984	exp_sym_flag='-bexport'
11985	no_entry_flag='-bnoentry'
11986      fi
11987
11988      # When large executables or shared objects are built, AIX ld can
11989      # have problems creating the table of contents.  If linking a library
11990      # or program results in "error TOC overflow" add -mminimal-toc to
11991      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11992      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11993
11994      archive_cmds=''
11995      hardcode_direct=yes
11996      hardcode_libdir_separator=':'
11997      link_all_deplibs=yes
11998
11999      if test "$GCC" = yes; then
12000	case $host_os in aix4.[012]|aix4.[012].*)
12001	# We only want to do this on AIX 4.2 and lower, the check
12002	# below for broken collect2 doesn't work under 4.3+
12003	  collect2name=`${CC} -print-prog-name=collect2`
12004	  if test -f "$collect2name" && \
12005  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12006	  then
12007  	  # We have reworked collect2
12008  	  hardcode_direct=yes
12009	  else
12010  	  # We have old collect2
12011  	  hardcode_direct=unsupported
12012  	  # It fails to find uninstalled libraries when the uninstalled
12013  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12014  	  # to unsupported forces relinking
12015  	  hardcode_minus_L=yes
12016  	  hardcode_libdir_flag_spec='-L$libdir'
12017  	  hardcode_libdir_separator=
12018	  fi
12019	  ;;
12020	esac
12021	shared_flag='-shared'
12022	if test "$aix_use_runtimelinking" = yes; then
12023	  shared_flag="$shared_flag "'${wl}-G'
12024	fi
12025      else
12026	# not using gcc
12027	if test "$host_cpu" = ia64; then
12028  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12029  	# chokes on -Wl,-G. The following line is correct:
12030	  shared_flag='-G'
12031	else
12032	  if test "$aix_use_runtimelinking" = yes; then
12033	    shared_flag='${wl}-G'
12034	  else
12035	    shared_flag='${wl}-bM:SRE'
12036	  fi
12037	fi
12038      fi
12039
12040      # It seems that -bexpall does not export symbols beginning with
12041      # underscore (_), so it is better to generate a list of symbols to export.
12042      always_export_symbols=yes
12043      if test "$aix_use_runtimelinking" = yes; then
12044	# Warning - without using the other runtime loading flags (-brtl),
12045	# -berok will link without error, but may produce a broken library.
12046	allow_undefined_flag='-berok'
12047       # Determine the default libpath from the value encoded in an empty executable.
12048       cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h.  */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h.  */
12054
12055int
12056main ()
12057{
12058
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065  (eval $ac_link) 2>conftest.er1
12066  ac_status=$?
12067  grep -v '^ *+' conftest.er1 >conftest.err
12068  rm -f conftest.er1
12069  cat conftest.err >&5
12070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071  (exit $ac_status); } &&
12072	 { ac_try='test -z "$ac_c_werror_flag"
12073			 || test ! -s conftest.err'
12074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075  (eval $ac_try) 2>&5
12076  ac_status=$?
12077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078  (exit $ac_status); }; } &&
12079	 { ac_try='test -s conftest$ac_exeext'
12080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081  (eval $ac_try) 2>&5
12082  ac_status=$?
12083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084  (exit $ac_status); }; }; then
12085
12086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12087}'`
12088# Check for a 64-bit object if we didn't find anything.
12089if 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; }
12090}'`; fi
12091else
12092  echo "$as_me: failed program was:" >&5
12093sed 's/^/| /' conftest.$ac_ext >&5
12094
12095fi
12096rm -f conftest.err conftest.$ac_objext \
12097      conftest$ac_exeext conftest.$ac_ext
12098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12099
12100       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12101	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12102       else
12103	if test "$host_cpu" = ia64; then
12104	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12105	  allow_undefined_flag="-z nodefs"
12106	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12107	else
12108	 # Determine the default libpath from the value encoded in an empty executable.
12109	 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h.  */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h.  */
12115
12116int
12117main ()
12118{
12119
12120  ;
12121  return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
12125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126  (eval $ac_link) 2>conftest.er1
12127  ac_status=$?
12128  grep -v '^ *+' conftest.er1 >conftest.err
12129  rm -f conftest.er1
12130  cat conftest.err >&5
12131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132  (exit $ac_status); } &&
12133	 { ac_try='test -z "$ac_c_werror_flag"
12134			 || test ! -s conftest.err'
12135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136  (eval $ac_try) 2>&5
12137  ac_status=$?
12138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139  (exit $ac_status); }; } &&
12140	 { ac_try='test -s conftest$ac_exeext'
12141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142  (eval $ac_try) 2>&5
12143  ac_status=$?
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); }; }; then
12146
12147aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12148}'`
12149# Check for a 64-bit object if we didn't find anything.
12150if 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; }
12151}'`; fi
12152else
12153  echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156fi
12157rm -f conftest.err conftest.$ac_objext \
12158      conftest$ac_exeext conftest.$ac_ext
12159if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12160
12161	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12162	  # Warning - without using the other run time loading flags,
12163	  # -berok will link without error, but may produce a broken library.
12164	  no_undefined_flag=' ${wl}-bernotok'
12165	  allow_undefined_flag=' ${wl}-berok'
12166	  # Exported symbols can be pulled into shared objects from archives
12167	  whole_archive_flag_spec='$convenience'
12168	  archive_cmds_need_lc=yes
12169	  # This is similar to how AIX traditionally builds its shared libraries.
12170	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12171	fi
12172      fi
12173      ;;
12174
12175    amigaos*)
12176      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)'
12177      hardcode_libdir_flag_spec='-L$libdir'
12178      hardcode_minus_L=yes
12179      # see comment about different semantics on the GNU ld section
12180      ld_shlibs=no
12181      ;;
12182
12183    bsdi[45]*)
12184      export_dynamic_flag_spec=-rdynamic
12185      ;;
12186
12187    cygwin* | mingw* | pw32*)
12188      # When not using gcc, we currently assume that we are using
12189      # Microsoft Visual C++.
12190      # hardcode_libdir_flag_spec is actually meaningless, as there is
12191      # no search path for DLLs.
12192      hardcode_libdir_flag_spec=' '
12193      allow_undefined_flag=unsupported
12194      # Tell ltmain to make .lib files, not .a files.
12195      libext=lib
12196      # Tell ltmain to make .dll files, not .so files.
12197      shrext_cmds=".dll"
12198      # FIXME: Setting linknames here is a bad hack.
12199      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12200      # The linker will automatically build a .lib file if we build a DLL.
12201      old_archive_From_new_cmds='true'
12202      # FIXME: Should let the user specify the lib program.
12203      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12204      fix_srcfile_path='`cygpath -w "$srcfile"`'
12205      enable_shared_with_static_runtimes=yes
12206      ;;
12207
12208    darwin* | rhapsody*)
12209      case $host_os in
12210        rhapsody* | darwin1.[012])
12211         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12212         ;;
12213       *) # Darwin 1.3 on
12214         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12215           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12216         else
12217           case ${MACOSX_DEPLOYMENT_TARGET} in
12218             10.[012])
12219               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12220               ;;
12221             10.*)
12222               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12223               ;;
12224           esac
12225         fi
12226         ;;
12227      esac
12228      archive_cmds_need_lc=no
12229      hardcode_direct=no
12230      hardcode_automatic=yes
12231      hardcode_shlibpath_var=unsupported
12232      whole_archive_flag_spec=''
12233      link_all_deplibs=yes
12234    if test "$GCC" = yes ; then
12235    	output_verbose_link_cmd='echo'
12236        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12237      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12238      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12239      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}'
12240      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}'
12241    else
12242      case $cc_basename in
12243        xlc*)
12244         output_verbose_link_cmd='echo'
12245         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12246         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12247          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12248         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12249          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}'
12250          ;;
12251       *)
12252         ld_shlibs=no
12253          ;;
12254      esac
12255    fi
12256      ;;
12257
12258    dgux*)
12259      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12260      hardcode_libdir_flag_spec='-L$libdir'
12261      hardcode_shlibpath_var=no
12262      ;;
12263
12264    freebsd1*)
12265      ld_shlibs=no
12266      ;;
12267
12268    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12269    # support.  Future versions do this automatically, but an explicit c++rt0.o
12270    # does not break anything, and helps significantly (at the cost of a little
12271    # extra space).
12272    freebsd2.2*)
12273      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12274      hardcode_libdir_flag_spec='-R$libdir'
12275      hardcode_direct=yes
12276      hardcode_shlibpath_var=no
12277      ;;
12278
12279    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12280    freebsd2*)
12281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12282      hardcode_direct=yes
12283      hardcode_minus_L=yes
12284      hardcode_shlibpath_var=no
12285      ;;
12286
12287    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12288    freebsd* | kfreebsd*-gnu | dragonfly*)
12289      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12290      hardcode_libdir_flag_spec='-R$libdir'
12291      hardcode_direct=yes
12292      hardcode_shlibpath_var=no
12293      ;;
12294
12295    hpux9*)
12296      if test "$GCC" = yes; then
12297	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'
12298      else
12299	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'
12300      fi
12301      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12302      hardcode_libdir_separator=:
12303      hardcode_direct=yes
12304
12305      # hardcode_minus_L: Not really in the search PATH,
12306      # but as the default location of the library.
12307      hardcode_minus_L=yes
12308      export_dynamic_flag_spec='${wl}-E'
12309      ;;
12310
12311    hpux10*)
12312      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12313	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12314      else
12315	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12316      fi
12317      if test "$with_gnu_ld" = no; then
12318	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12319	hardcode_libdir_separator=:
12320
12321	hardcode_direct=yes
12322	export_dynamic_flag_spec='${wl}-E'
12323
12324	# hardcode_minus_L: Not really in the search PATH,
12325	# but as the default location of the library.
12326	hardcode_minus_L=yes
12327      fi
12328      ;;
12329
12330    hpux11*)
12331      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12332	case $host_cpu in
12333	hppa*64*)
12334	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12335	  ;;
12336	ia64*)
12337	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12338	  ;;
12339	*)
12340	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12341	  ;;
12342	esac
12343      else
12344	case $host_cpu in
12345	hppa*64*)
12346	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347	  ;;
12348	ia64*)
12349	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12350	  ;;
12351	*)
12352	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12353	  ;;
12354	esac
12355      fi
12356      if test "$with_gnu_ld" = no; then
12357	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12358	hardcode_libdir_separator=:
12359
12360	case $host_cpu in
12361	hppa*64*|ia64*)
12362	  hardcode_libdir_flag_spec_ld='+b $libdir'
12363	  hardcode_direct=no
12364	  hardcode_shlibpath_var=no
12365	  ;;
12366	*)
12367	  hardcode_direct=yes
12368	  export_dynamic_flag_spec='${wl}-E'
12369
12370	  # hardcode_minus_L: Not really in the search PATH,
12371	  # but as the default location of the library.
12372	  hardcode_minus_L=yes
12373	  ;;
12374	esac
12375      fi
12376      ;;
12377
12378    irix5* | irix6* | nonstopux*)
12379      if test "$GCC" = yes; then
12380	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'
12381      else
12382	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'
12383	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12384      fi
12385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12386      hardcode_libdir_separator=:
12387      link_all_deplibs=yes
12388      ;;
12389
12390    netbsd*)
12391      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12392	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12393      else
12394	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12395      fi
12396      hardcode_libdir_flag_spec='-R$libdir'
12397      hardcode_direct=yes
12398      hardcode_shlibpath_var=no
12399      ;;
12400
12401    newsos6)
12402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12403      hardcode_direct=yes
12404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12405      hardcode_libdir_separator=:
12406      hardcode_shlibpath_var=no
12407      ;;
12408
12409    openbsd*)
12410      hardcode_direct=yes
12411      hardcode_shlibpath_var=no
12412      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12413	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12414	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12415	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12416	export_dynamic_flag_spec='${wl}-E'
12417      else
12418       case $host_os in
12419	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12420	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12421	   hardcode_libdir_flag_spec='-R$libdir'
12422	   ;;
12423	 *)
12424	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12425	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12426	   ;;
12427       esac
12428      fi
12429      ;;
12430
12431    os2*)
12432      hardcode_libdir_flag_spec='-L$libdir'
12433      hardcode_minus_L=yes
12434      allow_undefined_flag=unsupported
12435      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'
12436      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12437      ;;
12438
12439    osf3*)
12440      if test "$GCC" = yes; then
12441	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12442	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'
12443      else
12444	allow_undefined_flag=' -expect_unresolved \*'
12445	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'
12446      fi
12447      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12448      hardcode_libdir_separator=:
12449      ;;
12450
12451    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12452      if test "$GCC" = yes; then
12453	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12454	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'
12455	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12456      else
12457	allow_undefined_flag=' -expect_unresolved \*'
12458	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'
12459	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12460	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
12461
12462	# Both c and cxx compiler support -rpath directly
12463	hardcode_libdir_flag_spec='-rpath $libdir'
12464      fi
12465      hardcode_libdir_separator=:
12466      ;;
12467
12468    solaris*)
12469      no_undefined_flag=' -z text'
12470      if test "$GCC" = yes; then
12471	wlarc='${wl}'
12472	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12473	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12474	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12475      else
12476	wlarc=''
12477	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12478	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12479  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12480      fi
12481      hardcode_libdir_flag_spec='-R$libdir'
12482      hardcode_shlibpath_var=no
12483      case $host_os in
12484      solaris2.[0-5] | solaris2.[0-5].*) ;;
12485      *)
12486 	# The compiler driver will combine linker options so we
12487 	# cannot just pass the convience library names through
12488 	# without $wl, iff we do not link with $LD.
12489 	# Luckily, gcc supports the same syntax we need for Sun Studio.
12490 	# Supported since Solaris 2.6 (maybe 2.5.1?)
12491 	case $wlarc in
12492 	'')
12493 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12494 	*)
12495 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12496 	esac ;;
12497      esac
12498      link_all_deplibs=yes
12499      ;;
12500
12501    sunos4*)
12502      if test "x$host_vendor" = xsequent; then
12503	# Use $CC to link under sequent, because it throws in some extra .o
12504	# files that make .init and .fini sections work.
12505	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12506      else
12507	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12508      fi
12509      hardcode_libdir_flag_spec='-L$libdir'
12510      hardcode_direct=yes
12511      hardcode_minus_L=yes
12512      hardcode_shlibpath_var=no
12513      ;;
12514
12515    sysv4)
12516      case $host_vendor in
12517	sni)
12518	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12519	  hardcode_direct=yes # is this really true???
12520	;;
12521	siemens)
12522	  ## LD is ld it makes a PLAMLIB
12523	  ## CC just makes a GrossModule.
12524	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12525	  reload_cmds='$CC -r -o $output$reload_objs'
12526	  hardcode_direct=no
12527        ;;
12528	motorola)
12529	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12530	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12531	;;
12532      esac
12533      runpath_var='LD_RUN_PATH'
12534      hardcode_shlibpath_var=no
12535      ;;
12536
12537    sysv4.3*)
12538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12539      hardcode_shlibpath_var=no
12540      export_dynamic_flag_spec='-Bexport'
12541      ;;
12542
12543    sysv4*MP*)
12544      if test -d /usr/nec; then
12545	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12546	hardcode_shlibpath_var=no
12547	runpath_var=LD_RUN_PATH
12548	hardcode_runpath_var=yes
12549	ld_shlibs=yes
12550      fi
12551      ;;
12552
12553    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
12554      no_undefined_flag='${wl}-z,text'
12555      archive_cmds_need_lc=no
12556      hardcode_shlibpath_var=no
12557      runpath_var='LD_RUN_PATH'
12558
12559      if test "$GCC" = yes; then
12560	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12561	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562      else
12563	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565      fi
12566      ;;
12567
12568    sysv5* | sco3.2v5* | sco5v6*)
12569      # Note: We can NOT use -z defs as we might desire, because we do not
12570      # link with -lc, and that would cause any symbols used from libc to
12571      # always be unresolved, which means just about no library would
12572      # ever link correctly.  If we're not using GNU ld we use -z text
12573      # though, which does catch some bad symbols but isn't as heavy-handed
12574      # as -z defs.
12575      no_undefined_flag='${wl}-z,text'
12576      allow_undefined_flag='${wl}-z,nodefs'
12577      archive_cmds_need_lc=no
12578      hardcode_shlibpath_var=no
12579      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12580      hardcode_libdir_separator=':'
12581      link_all_deplibs=yes
12582      export_dynamic_flag_spec='${wl}-Bexport'
12583      runpath_var='LD_RUN_PATH'
12584
12585      if test "$GCC" = yes; then
12586	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12587	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12588      else
12589	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12590	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591      fi
12592      ;;
12593
12594    uts4*)
12595      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12596      hardcode_libdir_flag_spec='-L$libdir'
12597      hardcode_shlibpath_var=no
12598      ;;
12599
12600    *)
12601      ld_shlibs=no
12602      ;;
12603    esac
12604  fi
12605
12606echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12607echo "${ECHO_T}$ld_shlibs" >&6
12608test "$ld_shlibs" = no && can_build_shared=no
12609
12610#
12611# Do we need to explicitly link libc?
12612#
12613case "x$archive_cmds_need_lc" in
12614x|xyes)
12615  # Assume -lc should be added
12616  archive_cmds_need_lc=yes
12617
12618  if test "$enable_shared" = yes && test "$GCC" = yes; then
12619    case $archive_cmds in
12620    *'~'*)
12621      # FIXME: we may have to deal with multi-command sequences.
12622      ;;
12623    '$CC '*)
12624      # Test whether the compiler implicitly links with -lc since on some
12625      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12626      # to ld, don't add -lc before -lgcc.
12627      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12629      $rm conftest*
12630      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12631
12632      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633  (eval $ac_compile) 2>&5
12634  ac_status=$?
12635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636  (exit $ac_status); } 2>conftest.err; then
12637        soname=conftest
12638        lib=conftest
12639        libobjs=conftest.$ac_objext
12640        deplibs=
12641        wl=$lt_prog_compiler_wl
12642	pic_flag=$lt_prog_compiler_pic
12643        compiler_flags=-v
12644        linker_flags=-v
12645        verstring=
12646        output_objdir=.
12647        libname=conftest
12648        lt_save_allow_undefined_flag=$allow_undefined_flag
12649        allow_undefined_flag=
12650        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12651  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12652  ac_status=$?
12653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654  (exit $ac_status); }
12655        then
12656	  archive_cmds_need_lc=no
12657        else
12658	  archive_cmds_need_lc=yes
12659        fi
12660        allow_undefined_flag=$lt_save_allow_undefined_flag
12661      else
12662        cat conftest.err 1>&5
12663      fi
12664      $rm conftest*
12665      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12666echo "${ECHO_T}$archive_cmds_need_lc" >&6
12667      ;;
12668    esac
12669  fi
12670  ;;
12671esac
12672
12673echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12675library_names_spec=
12676libname_spec='lib$name'
12677soname_spec=
12678shrext_cmds=".so"
12679postinstall_cmds=
12680postuninstall_cmds=
12681finish_cmds=
12682finish_eval=
12683shlibpath_var=
12684shlibpath_overrides_runpath=unknown
12685version_type=none
12686dynamic_linker="$host_os ld.so"
12687sys_lib_dlsearch_path_spec="/lib /usr/lib"
12688if test "$GCC" = yes; then
12689  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12690  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12691    # if the path contains ";" then we assume it to be the separator
12692    # otherwise default to the standard path separator (i.e. ":") - it is
12693    # assumed that no part of a normal pathname contains ";" but that should
12694    # okay in the real world where ";" in dirpaths is itself problematic.
12695    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12696  else
12697    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12698  fi
12699else
12700  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12701fi
12702need_lib_prefix=unknown
12703hardcode_into_libs=no
12704
12705# when you set need_version to no, make sure it does not cause -set_version
12706# flags to be left without arguments
12707need_version=unknown
12708
12709case $host_os in
12710aix3*)
12711  version_type=linux
12712  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12713  shlibpath_var=LIBPATH
12714
12715  # AIX 3 has no versioning support, so we append a major version to the name.
12716  soname_spec='${libname}${release}${shared_ext}$major'
12717  ;;
12718
12719aix4* | aix5*)
12720  version_type=linux
12721  need_lib_prefix=no
12722  need_version=no
12723  hardcode_into_libs=yes
12724  if test "$host_cpu" = ia64; then
12725    # AIX 5 supports IA64
12726    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12727    shlibpath_var=LD_LIBRARY_PATH
12728  else
12729    # With GCC up to 2.95.x, collect2 would create an import file
12730    # for dependence libraries.  The import file would start with
12731    # the line `#! .'.  This would cause the generated library to
12732    # depend on `.', always an invalid library.  This was fixed in
12733    # development snapshots of GCC prior to 3.0.
12734    case $host_os in
12735      aix4 | aix4.[01] | aix4.[01].*)
12736      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12737	   echo ' yes '
12738	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12739	:
12740      else
12741	can_build_shared=no
12742      fi
12743      ;;
12744    esac
12745    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12746    # soname into executable. Probably we can add versioning support to
12747    # collect2, so additional links can be useful in future.
12748    if test "$aix_use_runtimelinking" = yes; then
12749      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12750      # instead of lib<name>.a to let people know that these are not
12751      # typical AIX shared libraries.
12752      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753    else
12754      # We preserve .a as extension for shared libraries through AIX4.2
12755      # and later when we are not doing run time linking.
12756      library_names_spec='${libname}${release}.a $libname.a'
12757      soname_spec='${libname}${release}${shared_ext}$major'
12758    fi
12759    shlibpath_var=LIBPATH
12760  fi
12761  ;;
12762
12763amigaos*)
12764  library_names_spec='$libname.ixlibrary $libname.a'
12765  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12766  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'
12767  ;;
12768
12769beos*)
12770  library_names_spec='${libname}${shared_ext}'
12771  dynamic_linker="$host_os ld.so"
12772  shlibpath_var=LIBRARY_PATH
12773  ;;
12774
12775bsdi[45]*)
12776  version_type=linux
12777  need_version=no
12778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12779  soname_spec='${libname}${release}${shared_ext}$major'
12780  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12781  shlibpath_var=LD_LIBRARY_PATH
12782  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12783  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12784  # the default ld.so.conf also contains /usr/contrib/lib and
12785  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12786  # libtool to hard-code these into programs
12787  ;;
12788
12789cygwin* | mingw* | pw32*)
12790  version_type=windows
12791  shrext_cmds=".dll"
12792  need_version=no
12793  need_lib_prefix=no
12794
12795  case $GCC,$host_os in
12796  yes,cygwin* | yes,mingw* | yes,pw32*)
12797    library_names_spec='$libname.dll.a'
12798    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12799    postinstall_cmds='base_file=`basename \${file}`~
12800      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12801      dldir=$destdir/`dirname \$dlpath`~
12802      test -d \$dldir || mkdir -p \$dldir~
12803      $install_prog $dir/$dlname \$dldir/$dlname~
12804      chmod a+x \$dldir/$dlname'
12805    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12806      dlpath=$dir/\$dldll~
12807       $rm \$dlpath'
12808    shlibpath_overrides_runpath=yes
12809
12810    case $host_os in
12811    cygwin*)
12812      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12813      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12814      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12815      ;;
12816    mingw*)
12817      # MinGW DLLs use traditional 'lib' prefix
12818      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12819      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12820      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12821        # It is most probably a Windows format PATH printed by
12822        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12823        # path with ; separators, and with drive letters. We can handle the
12824        # drive letters (cygwin fileutils understands them), so leave them,
12825        # especially as we might pass files found there to a mingw objdump,
12826        # which wouldn't understand a cygwinified path. Ahh.
12827        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12828      else
12829        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12830      fi
12831      ;;
12832    pw32*)
12833      # pw32 DLLs use 'pw' prefix rather than 'lib'
12834      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12835      ;;
12836    esac
12837    ;;
12838
12839  *)
12840    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12841    ;;
12842  esac
12843  dynamic_linker='Win32 ld.exe'
12844  # FIXME: first we should search . and the directory the executable is in
12845  shlibpath_var=PATH
12846  ;;
12847
12848darwin* | rhapsody*)
12849  dynamic_linker="$host_os dyld"
12850  version_type=darwin
12851  need_lib_prefix=no
12852  need_version=no
12853  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12854  soname_spec='${libname}${release}${major}$shared_ext'
12855  shlibpath_overrides_runpath=yes
12856  shlibpath_var=DYLD_LIBRARY_PATH
12857  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12858  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12859  if test "$GCC" = yes; then
12860    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"`
12861  else
12862    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12863  fi
12864  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12865  ;;
12866
12867dgux*)
12868  version_type=linux
12869  need_lib_prefix=no
12870  need_version=no
12871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12872  soname_spec='${libname}${release}${shared_ext}$major'
12873  shlibpath_var=LD_LIBRARY_PATH
12874  ;;
12875
12876freebsd1*)
12877  dynamic_linker=no
12878  ;;
12879
12880kfreebsd*-gnu)
12881  version_type=linux
12882  need_lib_prefix=no
12883  need_version=no
12884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12885  soname_spec='${libname}${release}${shared_ext}$major'
12886  shlibpath_var=LD_LIBRARY_PATH
12887  shlibpath_overrides_runpath=no
12888  hardcode_into_libs=yes
12889  dynamic_linker='GNU ld.so'
12890  ;;
12891
12892freebsd* | dragonfly*)
12893  # DragonFly does not have aout.  When/if they implement a new
12894  # versioning mechanism, adjust this.
12895  if test -x /usr/bin/objformat; then
12896    objformat=`/usr/bin/objformat`
12897  else
12898    case $host_os in
12899    freebsd[123]*) objformat=aout ;;
12900    *) objformat=elf ;;
12901    esac
12902  fi
12903  version_type=freebsd-$objformat
12904  case $version_type in
12905    freebsd-elf*)
12906      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12907      need_version=no
12908      need_lib_prefix=no
12909      ;;
12910    freebsd-*)
12911      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12912      need_version=yes
12913      ;;
12914  esac
12915  shlibpath_var=LD_LIBRARY_PATH
12916  case $host_os in
12917  freebsd2*)
12918    shlibpath_overrides_runpath=yes
12919    ;;
12920  freebsd3.[01]* | freebsdelf3.[01]*)
12921    shlibpath_overrides_runpath=yes
12922    hardcode_into_libs=yes
12923    ;;
12924  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12925  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12926    shlibpath_overrides_runpath=no
12927    hardcode_into_libs=yes
12928    ;;
12929  freebsd*) # from 4.6 on
12930    shlibpath_overrides_runpath=yes
12931    hardcode_into_libs=yes
12932    ;;
12933  esac
12934  ;;
12935
12936gnu*)
12937  version_type=linux
12938  need_lib_prefix=no
12939  need_version=no
12940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12941  soname_spec='${libname}${release}${shared_ext}$major'
12942  shlibpath_var=LD_LIBRARY_PATH
12943  hardcode_into_libs=yes
12944  ;;
12945
12946hpux9* | hpux10* | hpux11*)
12947  # Give a soname corresponding to the major version so that dld.sl refuses to
12948  # link against other versions.
12949  version_type=sunos
12950  need_lib_prefix=no
12951  need_version=no
12952  case $host_cpu in
12953  ia64*)
12954    shrext_cmds='.so'
12955    hardcode_into_libs=yes
12956    dynamic_linker="$host_os dld.so"
12957    shlibpath_var=LD_LIBRARY_PATH
12958    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12959    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12960    soname_spec='${libname}${release}${shared_ext}$major'
12961    if test "X$HPUX_IA64_MODE" = X32; then
12962      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12963    else
12964      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12965    fi
12966    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12967    ;;
12968   hppa*64*)
12969     shrext_cmds='.sl'
12970     hardcode_into_libs=yes
12971     dynamic_linker="$host_os dld.sl"
12972     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12973     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975     soname_spec='${libname}${release}${shared_ext}$major'
12976     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12977     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12978     ;;
12979   *)
12980    shrext_cmds='.sl'
12981    dynamic_linker="$host_os dld.sl"
12982    shlibpath_var=SHLIB_PATH
12983    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985    soname_spec='${libname}${release}${shared_ext}$major'
12986    ;;
12987  esac
12988  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12989  postinstall_cmds='chmod 555 $lib'
12990  ;;
12991
12992interix3*)
12993  version_type=linux
12994  need_lib_prefix=no
12995  need_version=no
12996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12997  soname_spec='${libname}${release}${shared_ext}$major'
12998  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12999  shlibpath_var=LD_LIBRARY_PATH
13000  shlibpath_overrides_runpath=no
13001  hardcode_into_libs=yes
13002  ;;
13003
13004irix5* | irix6* | nonstopux*)
13005  case $host_os in
13006    nonstopux*) version_type=nonstopux ;;
13007    *)
13008	if test "$lt_cv_prog_gnu_ld" = yes; then
13009		version_type=linux
13010	else
13011		version_type=irix
13012	fi ;;
13013  esac
13014  need_lib_prefix=no
13015  need_version=no
13016  soname_spec='${libname}${release}${shared_ext}$major'
13017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13018  case $host_os in
13019  irix5* | nonstopux*)
13020    libsuff= shlibsuff=
13021    ;;
13022  *)
13023    case $LD in # libtool.m4 will add one of these switches to LD
13024    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13025      libsuff= shlibsuff= libmagic=32-bit;;
13026    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13027      libsuff=32 shlibsuff=N32 libmagic=N32;;
13028    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13029      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13030    *) libsuff= shlibsuff= libmagic=never-match;;
13031    esac
13032    ;;
13033  esac
13034  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13035  shlibpath_overrides_runpath=no
13036  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13037  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13038  hardcode_into_libs=yes
13039  ;;
13040
13041# No shared lib support for Linux oldld, aout, or coff.
13042linux*oldld* | linux*aout* | linux*coff*)
13043  dynamic_linker=no
13044  ;;
13045
13046# This must be Linux ELF.
13047linux*)
13048  version_type=linux
13049  need_lib_prefix=no
13050  need_version=no
13051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052  soname_spec='${libname}${release}${shared_ext}$major'
13053  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13054  shlibpath_var=LD_LIBRARY_PATH
13055  shlibpath_overrides_runpath=no
13056  # This implies no fast_install, which is unacceptable.
13057  # Some rework will be needed to allow for fast_install
13058  # before this can be enabled.
13059  hardcode_into_libs=yes
13060
13061  # find out which ABI we are using
13062  libsuff=
13063  case "$host_cpu" in
13064  x86_64*|s390x*|powerpc64*)
13065    echo '#line 13065 "configure"' > conftest.$ac_ext
13066    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067  (eval $ac_compile) 2>&5
13068  ac_status=$?
13069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070  (exit $ac_status); }; then
13071      case `/usr/bin/file conftest.$ac_objext` in
13072      *64-bit*)
13073        libsuff=64
13074        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13075        ;;
13076      esac
13077    fi
13078    rm -rf conftest*
13079    ;;
13080  esac
13081
13082  # Append ld.so.conf contents to the search path
13083  if test -f /etc/ld.so.conf; then
13084    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13085    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13086  fi
13087
13088  # We used to test for /lib/ld.so.1 and disable shared libraries on
13089  # powerpc, because MkLinux only supported shared libraries with the
13090  # GNU dynamic linker.  Since this was broken with cross compilers,
13091  # most powerpc-linux boxes support dynamic linking these days and
13092  # people can always --disable-shared, the test was removed, and we
13093  # assume the GNU/Linux dynamic linker is in use.
13094  dynamic_linker='GNU/Linux ld.so'
13095  ;;
13096
13097knetbsd*-gnu)
13098  version_type=linux
13099  need_lib_prefix=no
13100  need_version=no
13101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102  soname_spec='${libname}${release}${shared_ext}$major'
13103  shlibpath_var=LD_LIBRARY_PATH
13104  shlibpath_overrides_runpath=no
13105  hardcode_into_libs=yes
13106  dynamic_linker='GNU ld.so'
13107  ;;
13108
13109netbsd*)
13110  version_type=sunos
13111  need_lib_prefix=no
13112  need_version=no
13113  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13114    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13116    dynamic_linker='NetBSD (a.out) ld.so'
13117  else
13118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13119    soname_spec='${libname}${release}${shared_ext}$major'
13120    dynamic_linker='NetBSD ld.elf_so'
13121  fi
13122  shlibpath_var=LD_LIBRARY_PATH
13123  shlibpath_overrides_runpath=yes
13124  hardcode_into_libs=yes
13125  ;;
13126
13127newsos6)
13128  version_type=linux
13129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130  shlibpath_var=LD_LIBRARY_PATH
13131  shlibpath_overrides_runpath=yes
13132  ;;
13133
13134nto-qnx*)
13135  version_type=linux
13136  need_lib_prefix=no
13137  need_version=no
13138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139  soname_spec='${libname}${release}${shared_ext}$major'
13140  shlibpath_var=LD_LIBRARY_PATH
13141  shlibpath_overrides_runpath=yes
13142  ;;
13143
13144openbsd*)
13145  version_type=sunos
13146  sys_lib_dlsearch_path_spec="/usr/lib"
13147  need_lib_prefix=no
13148  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13149  case $host_os in
13150    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13151    *)                         need_version=no  ;;
13152  esac
13153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13154  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13155  shlibpath_var=LD_LIBRARY_PATH
13156  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13157    case $host_os in
13158      openbsd2.[89] | openbsd2.[89].*)
13159	shlibpath_overrides_runpath=no
13160	;;
13161      *)
13162	shlibpath_overrides_runpath=yes
13163	;;
13164      esac
13165  else
13166    shlibpath_overrides_runpath=yes
13167  fi
13168  ;;
13169
13170os2*)
13171  libname_spec='$name'
13172  shrext_cmds=".dll"
13173  need_lib_prefix=no
13174  library_names_spec='$libname${shared_ext} $libname.a'
13175  dynamic_linker='OS/2 ld.exe'
13176  shlibpath_var=LIBPATH
13177  ;;
13178
13179osf3* | osf4* | osf5*)
13180  version_type=osf
13181  need_lib_prefix=no
13182  need_version=no
13183  soname_spec='${libname}${release}${shared_ext}$major'
13184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185  shlibpath_var=LD_LIBRARY_PATH
13186  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13187  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13188  ;;
13189
13190solaris*)
13191  version_type=linux
13192  need_lib_prefix=no
13193  need_version=no
13194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13195  soname_spec='${libname}${release}${shared_ext}$major'
13196  shlibpath_var=LD_LIBRARY_PATH
13197  shlibpath_overrides_runpath=yes
13198  hardcode_into_libs=yes
13199  # ldd complains unless libraries are executable
13200  postinstall_cmds='chmod +x $lib'
13201  ;;
13202
13203sunos4*)
13204  version_type=sunos
13205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13206  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13207  shlibpath_var=LD_LIBRARY_PATH
13208  shlibpath_overrides_runpath=yes
13209  if test "$with_gnu_ld" = yes; then
13210    need_lib_prefix=no
13211  fi
13212  need_version=yes
13213  ;;
13214
13215sysv4 | sysv4.3*)
13216  version_type=linux
13217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218  soname_spec='${libname}${release}${shared_ext}$major'
13219  shlibpath_var=LD_LIBRARY_PATH
13220  case $host_vendor in
13221    sni)
13222      shlibpath_overrides_runpath=no
13223      need_lib_prefix=no
13224      export_dynamic_flag_spec='${wl}-Blargedynsym'
13225      runpath_var=LD_RUN_PATH
13226      ;;
13227    siemens)
13228      need_lib_prefix=no
13229      ;;
13230    motorola)
13231      need_lib_prefix=no
13232      need_version=no
13233      shlibpath_overrides_runpath=no
13234      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13235      ;;
13236  esac
13237  ;;
13238
13239sysv4*MP*)
13240  if test -d /usr/nec ;then
13241    version_type=linux
13242    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13243    soname_spec='$libname${shared_ext}.$major'
13244    shlibpath_var=LD_LIBRARY_PATH
13245  fi
13246  ;;
13247
13248sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13249  version_type=freebsd-elf
13250  need_lib_prefix=no
13251  need_version=no
13252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13253  soname_spec='${libname}${release}${shared_ext}$major'
13254  shlibpath_var=LD_LIBRARY_PATH
13255  hardcode_into_libs=yes
13256  if test "$with_gnu_ld" = yes; then
13257    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13258    shlibpath_overrides_runpath=no
13259  else
13260    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13261    shlibpath_overrides_runpath=yes
13262    case $host_os in
13263      sco3.2v5*)
13264        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13265	;;
13266    esac
13267  fi
13268  sys_lib_dlsearch_path_spec='/usr/lib'
13269  ;;
13270
13271uts4*)
13272  version_type=linux
13273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274  soname_spec='${libname}${release}${shared_ext}$major'
13275  shlibpath_var=LD_LIBRARY_PATH
13276  ;;
13277
13278*)
13279  dynamic_linker=no
13280  ;;
13281esac
13282echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13283echo "${ECHO_T}$dynamic_linker" >&6
13284test "$dynamic_linker" = no && can_build_shared=no
13285
13286variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13287if test "$GCC" = yes; then
13288  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13289fi
13290
13291echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13292echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13293hardcode_action=
13294if test -n "$hardcode_libdir_flag_spec" || \
13295   test -n "$runpath_var" || \
13296   test "X$hardcode_automatic" = "Xyes" ; then
13297
13298  # We can hardcode non-existant directories.
13299  if test "$hardcode_direct" != no &&
13300     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13301     # have to relink, otherwise we might link with an installed library
13302     # when we should be linking with a yet-to-be-installed one
13303     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13304     test "$hardcode_minus_L" != no; then
13305    # Linking always hardcodes the temporary library directory.
13306    hardcode_action=relink
13307  else
13308    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13309    hardcode_action=immediate
13310  fi
13311else
13312  # We cannot hardcode anything, or else we can only hardcode existing
13313  # directories.
13314  hardcode_action=unsupported
13315fi
13316echo "$as_me:$LINENO: result: $hardcode_action" >&5
13317echo "${ECHO_T}$hardcode_action" >&6
13318
13319if test "$hardcode_action" = relink; then
13320  # Fast installation is not supported
13321  enable_fast_install=no
13322elif test "$shlibpath_overrides_runpath" = yes ||
13323     test "$enable_shared" = no; then
13324  # Fast installation is not necessary
13325  enable_fast_install=needless
13326fi
13327
13328striplib=
13329old_striplib=
13330echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13331echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13332if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13333  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13334  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13335  echo "$as_me:$LINENO: result: yes" >&5
13336echo "${ECHO_T}yes" >&6
13337else
13338# FIXME - insert some real tests, host_os isn't really good enough
13339  case $host_os in
13340   darwin*)
13341       if test -n "$STRIP" ; then
13342         striplib="$STRIP -x"
13343         echo "$as_me:$LINENO: result: yes" >&5
13344echo "${ECHO_T}yes" >&6
13345       else
13346  echo "$as_me:$LINENO: result: no" >&5
13347echo "${ECHO_T}no" >&6
13348fi
13349       ;;
13350   *)
13351  echo "$as_me:$LINENO: result: no" >&5
13352echo "${ECHO_T}no" >&6
13353    ;;
13354  esac
13355fi
13356
13357if test "x$enable_dlopen" != xyes; then
13358  enable_dlopen=unknown
13359  enable_dlopen_self=unknown
13360  enable_dlopen_self_static=unknown
13361else
13362  lt_cv_dlopen=no
13363  lt_cv_dlopen_libs=
13364
13365  case $host_os in
13366  beos*)
13367    lt_cv_dlopen="load_add_on"
13368    lt_cv_dlopen_libs=
13369    lt_cv_dlopen_self=yes
13370    ;;
13371
13372  mingw* | pw32*)
13373    lt_cv_dlopen="LoadLibrary"
13374    lt_cv_dlopen_libs=
13375   ;;
13376
13377  cygwin*)
13378    lt_cv_dlopen="dlopen"
13379    lt_cv_dlopen_libs=
13380   ;;
13381
13382  darwin*)
13383  # if libdl is installed we need to link against it
13384    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13385echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13386if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13387  echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389  ac_check_lib_save_LIBS=$LIBS
13390LIBS="-ldl  $LIBS"
13391cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h.  */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
13396/* end confdefs.h.  */
13397
13398/* Override any gcc2 internal prototype to avoid an error.  */
13399#ifdef __cplusplus
13400extern "C"
13401#endif
13402/* We use char because int might match the return type of a gcc2
13403   builtin and then its argument prototype would still apply.  */
13404char dlopen ();
13405int
13406main ()
13407{
13408dlopen ();
13409  ;
13410  return 0;
13411}
13412_ACEOF
13413rm -f conftest.$ac_objext conftest$ac_exeext
13414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415  (eval $ac_link) 2>conftest.er1
13416  ac_status=$?
13417  grep -v '^ *+' conftest.er1 >conftest.err
13418  rm -f conftest.er1
13419  cat conftest.err >&5
13420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421  (exit $ac_status); } &&
13422	 { ac_try='test -z "$ac_c_werror_flag"
13423			 || test ! -s conftest.err'
13424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425  (eval $ac_try) 2>&5
13426  ac_status=$?
13427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428  (exit $ac_status); }; } &&
13429	 { ac_try='test -s conftest$ac_exeext'
13430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431  (eval $ac_try) 2>&5
13432  ac_status=$?
13433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434  (exit $ac_status); }; }; then
13435  ac_cv_lib_dl_dlopen=yes
13436else
13437  echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440ac_cv_lib_dl_dlopen=no
13441fi
13442rm -f conftest.err conftest.$ac_objext \
13443      conftest$ac_exeext conftest.$ac_ext
13444LIBS=$ac_check_lib_save_LIBS
13445fi
13446echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13448if test $ac_cv_lib_dl_dlopen = yes; then
13449  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13450else
13451
13452    lt_cv_dlopen="dyld"
13453    lt_cv_dlopen_libs=
13454    lt_cv_dlopen_self=yes
13455
13456fi
13457
13458   ;;
13459
13460  *)
13461    echo "$as_me:$LINENO: checking for shl_load" >&5
13462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13463if test "${ac_cv_func_shl_load+set}" = set; then
13464  echo $ECHO_N "(cached) $ECHO_C" >&6
13465else
13466  cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h.  */
13468_ACEOF
13469cat confdefs.h >>conftest.$ac_ext
13470cat >>conftest.$ac_ext <<_ACEOF
13471/* end confdefs.h.  */
13472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13473   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13474#define shl_load innocuous_shl_load
13475
13476/* System header to define __stub macros and hopefully few prototypes,
13477    which can conflict with char shl_load (); below.
13478    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13479    <limits.h> exists even on freestanding compilers.  */
13480
13481#ifdef __STDC__
13482# include <limits.h>
13483#else
13484# include <assert.h>
13485#endif
13486
13487#undef shl_load
13488
13489/* Override any gcc2 internal prototype to avoid an error.  */
13490#ifdef __cplusplus
13491extern "C"
13492{
13493#endif
13494/* We use char because int might match the return type of a gcc2
13495   builtin and then its argument prototype would still apply.  */
13496char shl_load ();
13497/* The GNU C library defines this for functions which it implements
13498    to always fail with ENOSYS.  Some functions are actually named
13499    something starting with __ and the normal name is an alias.  */
13500#if defined (__stub_shl_load) || defined (__stub___shl_load)
13501choke me
13502#else
13503char (*f) () = shl_load;
13504#endif
13505#ifdef __cplusplus
13506}
13507#endif
13508
13509int
13510main ()
13511{
13512return f != shl_load;
13513  ;
13514  return 0;
13515}
13516_ACEOF
13517rm -f conftest.$ac_objext conftest$ac_exeext
13518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519  (eval $ac_link) 2>conftest.er1
13520  ac_status=$?
13521  grep -v '^ *+' conftest.er1 >conftest.err
13522  rm -f conftest.er1
13523  cat conftest.err >&5
13524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525  (exit $ac_status); } &&
13526	 { ac_try='test -z "$ac_c_werror_flag"
13527			 || test ! -s conftest.err'
13528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529  (eval $ac_try) 2>&5
13530  ac_status=$?
13531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532  (exit $ac_status); }; } &&
13533	 { ac_try='test -s conftest$ac_exeext'
13534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535  (eval $ac_try) 2>&5
13536  ac_status=$?
13537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538  (exit $ac_status); }; }; then
13539  ac_cv_func_shl_load=yes
13540else
13541  echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
13544ac_cv_func_shl_load=no
13545fi
13546rm -f conftest.err conftest.$ac_objext \
13547      conftest$ac_exeext conftest.$ac_ext
13548fi
13549echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13550echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13551if test $ac_cv_func_shl_load = yes; then
13552  lt_cv_dlopen="shl_load"
13553else
13554  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13555echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13556if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13557  echo $ECHO_N "(cached) $ECHO_C" >&6
13558else
13559  ac_check_lib_save_LIBS=$LIBS
13560LIBS="-ldld  $LIBS"
13561cat >conftest.$ac_ext <<_ACEOF
13562/* confdefs.h.  */
13563_ACEOF
13564cat confdefs.h >>conftest.$ac_ext
13565cat >>conftest.$ac_ext <<_ACEOF
13566/* end confdefs.h.  */
13567
13568/* Override any gcc2 internal prototype to avoid an error.  */
13569#ifdef __cplusplus
13570extern "C"
13571#endif
13572/* We use char because int might match the return type of a gcc2
13573   builtin and then its argument prototype would still apply.  */
13574char shl_load ();
13575int
13576main ()
13577{
13578shl_load ();
13579  ;
13580  return 0;
13581}
13582_ACEOF
13583rm -f conftest.$ac_objext conftest$ac_exeext
13584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585  (eval $ac_link) 2>conftest.er1
13586  ac_status=$?
13587  grep -v '^ *+' conftest.er1 >conftest.err
13588  rm -f conftest.er1
13589  cat conftest.err >&5
13590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591  (exit $ac_status); } &&
13592	 { ac_try='test -z "$ac_c_werror_flag"
13593			 || test ! -s conftest.err'
13594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595  (eval $ac_try) 2>&5
13596  ac_status=$?
13597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598  (exit $ac_status); }; } &&
13599	 { ac_try='test -s conftest$ac_exeext'
13600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601  (eval $ac_try) 2>&5
13602  ac_status=$?
13603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604  (exit $ac_status); }; }; then
13605  ac_cv_lib_dld_shl_load=yes
13606else
13607  echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610ac_cv_lib_dld_shl_load=no
13611fi
13612rm -f conftest.err conftest.$ac_objext \
13613      conftest$ac_exeext conftest.$ac_ext
13614LIBS=$ac_check_lib_save_LIBS
13615fi
13616echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13617echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13618if test $ac_cv_lib_dld_shl_load = yes; then
13619  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13620else
13621  echo "$as_me:$LINENO: checking for dlopen" >&5
13622echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13623if test "${ac_cv_func_dlopen+set}" = set; then
13624  echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626  cat >conftest.$ac_ext <<_ACEOF
13627/* confdefs.h.  */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h.  */
13632/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13633   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13634#define dlopen innocuous_dlopen
13635
13636/* System header to define __stub macros and hopefully few prototypes,
13637    which can conflict with char dlopen (); below.
13638    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13639    <limits.h> exists even on freestanding compilers.  */
13640
13641#ifdef __STDC__
13642# include <limits.h>
13643#else
13644# include <assert.h>
13645#endif
13646
13647#undef dlopen
13648
13649/* Override any gcc2 internal prototype to avoid an error.  */
13650#ifdef __cplusplus
13651extern "C"
13652{
13653#endif
13654/* We use char because int might match the return type of a gcc2
13655   builtin and then its argument prototype would still apply.  */
13656char dlopen ();
13657/* The GNU C library defines this for functions which it implements
13658    to always fail with ENOSYS.  Some functions are actually named
13659    something starting with __ and the normal name is an alias.  */
13660#if defined (__stub_dlopen) || defined (__stub___dlopen)
13661choke me
13662#else
13663char (*f) () = dlopen;
13664#endif
13665#ifdef __cplusplus
13666}
13667#endif
13668
13669int
13670main ()
13671{
13672return f != dlopen;
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677rm -f conftest.$ac_objext conftest$ac_exeext
13678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679  (eval $ac_link) 2>conftest.er1
13680  ac_status=$?
13681  grep -v '^ *+' conftest.er1 >conftest.err
13682  rm -f conftest.er1
13683  cat conftest.err >&5
13684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685  (exit $ac_status); } &&
13686	 { ac_try='test -z "$ac_c_werror_flag"
13687			 || test ! -s conftest.err'
13688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689  (eval $ac_try) 2>&5
13690  ac_status=$?
13691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692  (exit $ac_status); }; } &&
13693	 { ac_try='test -s conftest$ac_exeext'
13694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695  (eval $ac_try) 2>&5
13696  ac_status=$?
13697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698  (exit $ac_status); }; }; then
13699  ac_cv_func_dlopen=yes
13700else
13701  echo "$as_me: failed program was:" >&5
13702sed 's/^/| /' conftest.$ac_ext >&5
13703
13704ac_cv_func_dlopen=no
13705fi
13706rm -f conftest.err conftest.$ac_objext \
13707      conftest$ac_exeext conftest.$ac_ext
13708fi
13709echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13710echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13711if test $ac_cv_func_dlopen = yes; then
13712  lt_cv_dlopen="dlopen"
13713else
13714  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13717  echo $ECHO_N "(cached) $ECHO_C" >&6
13718else
13719  ac_check_lib_save_LIBS=$LIBS
13720LIBS="-ldl  $LIBS"
13721cat >conftest.$ac_ext <<_ACEOF
13722/* confdefs.h.  */
13723_ACEOF
13724cat confdefs.h >>conftest.$ac_ext
13725cat >>conftest.$ac_ext <<_ACEOF
13726/* end confdefs.h.  */
13727
13728/* Override any gcc2 internal prototype to avoid an error.  */
13729#ifdef __cplusplus
13730extern "C"
13731#endif
13732/* We use char because int might match the return type of a gcc2
13733   builtin and then its argument prototype would still apply.  */
13734char dlopen ();
13735int
13736main ()
13737{
13738dlopen ();
13739  ;
13740  return 0;
13741}
13742_ACEOF
13743rm -f conftest.$ac_objext conftest$ac_exeext
13744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745  (eval $ac_link) 2>conftest.er1
13746  ac_status=$?
13747  grep -v '^ *+' conftest.er1 >conftest.err
13748  rm -f conftest.er1
13749  cat conftest.err >&5
13750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751  (exit $ac_status); } &&
13752	 { ac_try='test -z "$ac_c_werror_flag"
13753			 || test ! -s conftest.err'
13754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755  (eval $ac_try) 2>&5
13756  ac_status=$?
13757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758  (exit $ac_status); }; } &&
13759	 { ac_try='test -s conftest$ac_exeext'
13760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761  (eval $ac_try) 2>&5
13762  ac_status=$?
13763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764  (exit $ac_status); }; }; then
13765  ac_cv_lib_dl_dlopen=yes
13766else
13767  echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770ac_cv_lib_dl_dlopen=no
13771fi
13772rm -f conftest.err conftest.$ac_objext \
13773      conftest$ac_exeext conftest.$ac_ext
13774LIBS=$ac_check_lib_save_LIBS
13775fi
13776echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13778if test $ac_cv_lib_dl_dlopen = yes; then
13779  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13780else
13781  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13782echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13783if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13784  echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786  ac_check_lib_save_LIBS=$LIBS
13787LIBS="-lsvld  $LIBS"
13788cat >conftest.$ac_ext <<_ACEOF
13789/* confdefs.h.  */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h.  */
13794
13795/* Override any gcc2 internal prototype to avoid an error.  */
13796#ifdef __cplusplus
13797extern "C"
13798#endif
13799/* We use char because int might match the return type of a gcc2
13800   builtin and then its argument prototype would still apply.  */
13801char dlopen ();
13802int
13803main ()
13804{
13805dlopen ();
13806  ;
13807  return 0;
13808}
13809_ACEOF
13810rm -f conftest.$ac_objext conftest$ac_exeext
13811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812  (eval $ac_link) 2>conftest.er1
13813  ac_status=$?
13814  grep -v '^ *+' conftest.er1 >conftest.err
13815  rm -f conftest.er1
13816  cat conftest.err >&5
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); } &&
13819	 { ac_try='test -z "$ac_c_werror_flag"
13820			 || test ! -s conftest.err'
13821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822  (eval $ac_try) 2>&5
13823  ac_status=$?
13824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825  (exit $ac_status); }; } &&
13826	 { ac_try='test -s conftest$ac_exeext'
13827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828  (eval $ac_try) 2>&5
13829  ac_status=$?
13830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831  (exit $ac_status); }; }; then
13832  ac_cv_lib_svld_dlopen=yes
13833else
13834  echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837ac_cv_lib_svld_dlopen=no
13838fi
13839rm -f conftest.err conftest.$ac_objext \
13840      conftest$ac_exeext conftest.$ac_ext
13841LIBS=$ac_check_lib_save_LIBS
13842fi
13843echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13844echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13845if test $ac_cv_lib_svld_dlopen = yes; then
13846  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13847else
13848  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13849echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13850if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13851  echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853  ac_check_lib_save_LIBS=$LIBS
13854LIBS="-ldld  $LIBS"
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h.  */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h.  */
13861
13862/* Override any gcc2 internal prototype to avoid an error.  */
13863#ifdef __cplusplus
13864extern "C"
13865#endif
13866/* We use char because int might match the return type of a gcc2
13867   builtin and then its argument prototype would still apply.  */
13868char dld_link ();
13869int
13870main ()
13871{
13872dld_link ();
13873  ;
13874  return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879  (eval $ac_link) 2>conftest.er1
13880  ac_status=$?
13881  grep -v '^ *+' conftest.er1 >conftest.err
13882  rm -f conftest.er1
13883  cat conftest.err >&5
13884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885  (exit $ac_status); } &&
13886	 { ac_try='test -z "$ac_c_werror_flag"
13887			 || test ! -s conftest.err'
13888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889  (eval $ac_try) 2>&5
13890  ac_status=$?
13891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892  (exit $ac_status); }; } &&
13893	 { ac_try='test -s conftest$ac_exeext'
13894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895  (eval $ac_try) 2>&5
13896  ac_status=$?
13897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898  (exit $ac_status); }; }; then
13899  ac_cv_lib_dld_dld_link=yes
13900else
13901  echo "$as_me: failed program was:" >&5
13902sed 's/^/| /' conftest.$ac_ext >&5
13903
13904ac_cv_lib_dld_dld_link=no
13905fi
13906rm -f conftest.err conftest.$ac_objext \
13907      conftest$ac_exeext conftest.$ac_ext
13908LIBS=$ac_check_lib_save_LIBS
13909fi
13910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13911echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13912if test $ac_cv_lib_dld_dld_link = yes; then
13913  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13914fi
13915
13916
13917fi
13918
13919
13920fi
13921
13922
13923fi
13924
13925
13926fi
13927
13928
13929fi
13930
13931    ;;
13932  esac
13933
13934  if test "x$lt_cv_dlopen" != xno; then
13935    enable_dlopen=yes
13936  else
13937    enable_dlopen=no
13938  fi
13939
13940  case $lt_cv_dlopen in
13941  dlopen)
13942    save_CPPFLAGS="$CPPFLAGS"
13943    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13944
13945    save_LDFLAGS="$LDFLAGS"
13946    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13947
13948    save_LIBS="$LIBS"
13949    LIBS="$lt_cv_dlopen_libs $LIBS"
13950
13951    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13952echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13953if test "${lt_cv_dlopen_self+set}" = set; then
13954  echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
13956  	  if test "$cross_compiling" = yes; then :
13957  lt_cv_dlopen_self=cross
13958else
13959  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13960  lt_status=$lt_dlunknown
13961  cat > conftest.$ac_ext <<EOF
13962#line 13962 "configure"
13963#include "confdefs.h"
13964
13965#if HAVE_DLFCN_H
13966#include <dlfcn.h>
13967#endif
13968
13969#include <stdio.h>
13970
13971#ifdef RTLD_GLOBAL
13972#  define LT_DLGLOBAL		RTLD_GLOBAL
13973#else
13974#  ifdef DL_GLOBAL
13975#    define LT_DLGLOBAL		DL_GLOBAL
13976#  else
13977#    define LT_DLGLOBAL		0
13978#  endif
13979#endif
13980
13981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13982   find out it does not work in some platform. */
13983#ifndef LT_DLLAZY_OR_NOW
13984#  ifdef RTLD_LAZY
13985#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13986#  else
13987#    ifdef DL_LAZY
13988#      define LT_DLLAZY_OR_NOW		DL_LAZY
13989#    else
13990#      ifdef RTLD_NOW
13991#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13992#      else
13993#        ifdef DL_NOW
13994#          define LT_DLLAZY_OR_NOW	DL_NOW
13995#        else
13996#          define LT_DLLAZY_OR_NOW	0
13997#        endif
13998#      endif
13999#    endif
14000#  endif
14001#endif
14002
14003#ifdef __cplusplus
14004extern "C" void exit (int);
14005#endif
14006
14007void fnord() { int i=42;}
14008int main ()
14009{
14010  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14011  int status = $lt_dlunknown;
14012
14013  if (self)
14014    {
14015      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14016      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14017      /* dlclose (self); */
14018    }
14019  else
14020    puts (dlerror ());
14021
14022    exit (status);
14023}
14024EOF
14025  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026  (eval $ac_link) 2>&5
14027  ac_status=$?
14028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14030    (./conftest; exit; ) >&5 2>/dev/null
14031    lt_status=$?
14032    case x$lt_status in
14033      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14034      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14035      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14036    esac
14037  else :
14038    # compilation failed
14039    lt_cv_dlopen_self=no
14040  fi
14041fi
14042rm -fr conftest*
14043
14044
14045fi
14046echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14047echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14048
14049    if test "x$lt_cv_dlopen_self" = xyes; then
14050      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14051      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14052echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14053if test "${lt_cv_dlopen_self_static+set}" = set; then
14054  echo $ECHO_N "(cached) $ECHO_C" >&6
14055else
14056  	  if test "$cross_compiling" = yes; then :
14057  lt_cv_dlopen_self_static=cross
14058else
14059  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14060  lt_status=$lt_dlunknown
14061  cat > conftest.$ac_ext <<EOF
14062#line 14062 "configure"
14063#include "confdefs.h"
14064
14065#if HAVE_DLFCN_H
14066#include <dlfcn.h>
14067#endif
14068
14069#include <stdio.h>
14070
14071#ifdef RTLD_GLOBAL
14072#  define LT_DLGLOBAL		RTLD_GLOBAL
14073#else
14074#  ifdef DL_GLOBAL
14075#    define LT_DLGLOBAL		DL_GLOBAL
14076#  else
14077#    define LT_DLGLOBAL		0
14078#  endif
14079#endif
14080
14081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14082   find out it does not work in some platform. */
14083#ifndef LT_DLLAZY_OR_NOW
14084#  ifdef RTLD_LAZY
14085#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14086#  else
14087#    ifdef DL_LAZY
14088#      define LT_DLLAZY_OR_NOW		DL_LAZY
14089#    else
14090#      ifdef RTLD_NOW
14091#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14092#      else
14093#        ifdef DL_NOW
14094#          define LT_DLLAZY_OR_NOW	DL_NOW
14095#        else
14096#          define LT_DLLAZY_OR_NOW	0
14097#        endif
14098#      endif
14099#    endif
14100#  endif
14101#endif
14102
14103#ifdef __cplusplus
14104extern "C" void exit (int);
14105#endif
14106
14107void fnord() { int i=42;}
14108int main ()
14109{
14110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14111  int status = $lt_dlunknown;
14112
14113  if (self)
14114    {
14115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14116      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14117      /* dlclose (self); */
14118    }
14119  else
14120    puts (dlerror ());
14121
14122    exit (status);
14123}
14124EOF
14125  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14126  (eval $ac_link) 2>&5
14127  ac_status=$?
14128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14130    (./conftest; exit; ) >&5 2>/dev/null
14131    lt_status=$?
14132    case x$lt_status in
14133      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14134      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14135      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14136    esac
14137  else :
14138    # compilation failed
14139    lt_cv_dlopen_self_static=no
14140  fi
14141fi
14142rm -fr conftest*
14143
14144
14145fi
14146echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14147echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14148    fi
14149
14150    CPPFLAGS="$save_CPPFLAGS"
14151    LDFLAGS="$save_LDFLAGS"
14152    LIBS="$save_LIBS"
14153    ;;
14154  esac
14155
14156  case $lt_cv_dlopen_self in
14157  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14158  *) enable_dlopen_self=unknown ;;
14159  esac
14160
14161  case $lt_cv_dlopen_self_static in
14162  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14163  *) enable_dlopen_self_static=unknown ;;
14164  esac
14165fi
14166
14167
14168# Report which library types will actually be built
14169echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14170echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14171echo "$as_me:$LINENO: result: $can_build_shared" >&5
14172echo "${ECHO_T}$can_build_shared" >&6
14173
14174echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14175echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14176test "$can_build_shared" = "no" && enable_shared=no
14177
14178# On AIX, shared libraries and static libraries use the same namespace, and
14179# are all built from PIC.
14180case $host_os in
14181aix3*)
14182  test "$enable_shared" = yes && enable_static=no
14183  if test -n "$RANLIB"; then
14184    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14185    postinstall_cmds='$RANLIB $lib'
14186  fi
14187  ;;
14188
14189aix4* | aix5*)
14190  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14191    test "$enable_shared" = yes && enable_static=no
14192  fi
14193    ;;
14194esac
14195echo "$as_me:$LINENO: result: $enable_shared" >&5
14196echo "${ECHO_T}$enable_shared" >&6
14197
14198echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14199echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14200# Make sure either enable_shared or enable_static is yes.
14201test "$enable_shared" = yes || enable_static=yes
14202echo "$as_me:$LINENO: result: $enable_static" >&5
14203echo "${ECHO_T}$enable_static" >&6
14204
14205# The else clause should only fire when bootstrapping the
14206# libtool distribution, otherwise you forgot to ship ltmain.sh
14207# with your package, and you will get complaints that there are
14208# no rules to generate ltmain.sh.
14209if test -f "$ltmain"; then
14210  # See if we are running on zsh, and set the options which allow our commands through
14211  # without removal of \ escapes.
14212  if test -n "${ZSH_VERSION+set}" ; then
14213    setopt NO_GLOB_SUBST
14214  fi
14215  # Now quote all the things that may contain metacharacters while being
14216  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14217  # variables and quote the copies for generation of the libtool script.
14218  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14219    SED SHELL STRIP \
14220    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14221    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14222    deplibs_check_method reload_flag reload_cmds need_locks \
14223    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14224    lt_cv_sys_global_symbol_to_c_name_address \
14225    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14226    old_postinstall_cmds old_postuninstall_cmds \
14227    compiler \
14228    CC \
14229    LD \
14230    lt_prog_compiler_wl \
14231    lt_prog_compiler_pic \
14232    lt_prog_compiler_static \
14233    lt_prog_compiler_no_builtin_flag \
14234    export_dynamic_flag_spec \
14235    thread_safe_flag_spec \
14236    whole_archive_flag_spec \
14237    enable_shared_with_static_runtimes \
14238    old_archive_cmds \
14239    old_archive_from_new_cmds \
14240    predep_objects \
14241    postdep_objects \
14242    predeps \
14243    postdeps \
14244    compiler_lib_search_path \
14245    archive_cmds \
14246    archive_expsym_cmds \
14247    postinstall_cmds \
14248    postuninstall_cmds \
14249    old_archive_from_expsyms_cmds \
14250    allow_undefined_flag \
14251    no_undefined_flag \
14252    export_symbols_cmds \
14253    hardcode_libdir_flag_spec \
14254    hardcode_libdir_flag_spec_ld \
14255    hardcode_libdir_separator \
14256    hardcode_automatic \
14257    module_cmds \
14258    module_expsym_cmds \
14259    lt_cv_prog_compiler_c_o \
14260    exclude_expsyms \
14261    include_expsyms; do
14262
14263    case $var in
14264    old_archive_cmds | \
14265    old_archive_from_new_cmds | \
14266    archive_cmds | \
14267    archive_expsym_cmds | \
14268    module_cmds | \
14269    module_expsym_cmds | \
14270    old_archive_from_expsyms_cmds | \
14271    export_symbols_cmds | \
14272    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14273    postinstall_cmds | postuninstall_cmds | \
14274    old_postinstall_cmds | old_postuninstall_cmds | \
14275    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14276      # Double-quote double-evaled strings.
14277      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14278      ;;
14279    *)
14280      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14281      ;;
14282    esac
14283  done
14284
14285  case $lt_echo in
14286  *'\$0 --fallback-echo"')
14287    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14288    ;;
14289  esac
14290
14291cfgfile="${ofile}T"
14292  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14293  $rm -f "$cfgfile"
14294  { echo "$as_me:$LINENO: creating $ofile" >&5
14295echo "$as_me: creating $ofile" >&6;}
14296
14297  cat <<__EOF__ >> "$cfgfile"
14298#! $SHELL
14299
14300# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14301# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14302# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14303#
14304# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14305# Free Software Foundation, Inc.
14306#
14307# This file is part of GNU Libtool:
14308# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14309#
14310# This program is free software; you can redistribute it and/or modify
14311# it under the terms of the GNU General Public License as published by
14312# the Free Software Foundation; either version 2 of the License, or
14313# (at your option) any later version.
14314#
14315# This program is distributed in the hope that it will be useful, but
14316# WITHOUT ANY WARRANTY; without even the implied warranty of
14317# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14318# General Public License for more details.
14319#
14320# You should have received a copy of the GNU General Public License
14321# along with this program; if not, write to the Free Software
14322# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14323#
14324# As a special exception to the GNU General Public License, if you
14325# distribute this file as part of a program that contains a
14326# configuration script generated by Autoconf, you may include it under
14327# the same distribution terms that you use for the rest of that program.
14328
14329# A sed program that does not truncate output.
14330SED=$lt_SED
14331
14332# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14333Xsed="$SED -e 1s/^X//"
14334
14335# The HP-UX ksh and POSIX shell print the target directory to stdout
14336# if CDPATH is set.
14337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14338
14339# The names of the tagged configurations supported by this script.
14340available_tags=
14341
14342# ### BEGIN LIBTOOL CONFIG
14343
14344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14345
14346# Shell to use when invoking shell scripts.
14347SHELL=$lt_SHELL
14348
14349# Whether or not to build shared libraries.
14350build_libtool_libs=$enable_shared
14351
14352# Whether or not to build static libraries.
14353build_old_libs=$enable_static
14354
14355# Whether or not to add -lc for building shared libraries.
14356build_libtool_need_lc=$archive_cmds_need_lc
14357
14358# Whether or not to disallow shared libs when runtime libs are static
14359allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14360
14361# Whether or not to optimize for fast installation.
14362fast_install=$enable_fast_install
14363
14364# The host system.
14365host_alias=$host_alias
14366host=$host
14367host_os=$host_os
14368
14369# The build system.
14370build_alias=$build_alias
14371build=$build
14372build_os=$build_os
14373
14374# An echo program that does not interpret backslashes.
14375echo=$lt_echo
14376
14377# The archiver.
14378AR=$lt_AR
14379AR_FLAGS=$lt_AR_FLAGS
14380
14381# A C compiler.
14382LTCC=$lt_LTCC
14383
14384# LTCC compiler flags.
14385LTCFLAGS=$lt_LTCFLAGS
14386
14387# A language-specific compiler.
14388CC=$lt_compiler
14389
14390# Is the compiler the GNU C compiler?
14391with_gcc=$GCC
14392
14393gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
14394gcc_ver=\`gcc -dumpversion\`
14395
14396# An ERE matcher.
14397EGREP=$lt_EGREP
14398
14399# The linker used to build libraries.
14400LD=$lt_LD
14401
14402# Whether we need hard or soft links.
14403LN_S=$lt_LN_S
14404
14405# A BSD-compatible nm program.
14406NM=$lt_NM
14407
14408# A symbol stripping program
14409STRIP=$lt_STRIP
14410
14411# Used to examine libraries when file_magic_cmd begins "file"
14412MAGIC_CMD=$MAGIC_CMD
14413
14414# Used on cygwin: DLL creation program.
14415DLLTOOL="$DLLTOOL"
14416
14417# Used on cygwin: object dumper.
14418OBJDUMP="$OBJDUMP"
14419
14420# Used on cygwin: assembler.
14421AS="$AS"
14422
14423# The name of the directory that contains temporary libtool files.
14424objdir=$objdir
14425
14426# How to create reloadable object files.
14427reload_flag=$lt_reload_flag
14428reload_cmds=$lt_reload_cmds
14429
14430# How to pass a linker flag through the compiler.
14431wl=$lt_lt_prog_compiler_wl
14432
14433# Object file suffix (normally "o").
14434objext="$ac_objext"
14435
14436# Old archive suffix (normally "a").
14437libext="$libext"
14438
14439# Shared library suffix (normally ".so").
14440shrext_cmds='$shrext_cmds'
14441
14442# Executable file suffix (normally "").
14443exeext="$exeext"
14444
14445# Additional compiler flags for building library objects.
14446pic_flag=$lt_lt_prog_compiler_pic
14447pic_mode=$pic_mode
14448
14449# What is the maximum length of a command?
14450max_cmd_len=$lt_cv_sys_max_cmd_len
14451
14452# Does compiler simultaneously support -c and -o options?
14453compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14454
14455# Must we lock files when doing compilation?
14456need_locks=$lt_need_locks
14457
14458# Do we need the lib prefix for modules?
14459need_lib_prefix=$need_lib_prefix
14460
14461# Do we need a version for libraries?
14462need_version=$need_version
14463
14464# Whether dlopen is supported.
14465dlopen_support=$enable_dlopen
14466
14467# Whether dlopen of programs is supported.
14468dlopen_self=$enable_dlopen_self
14469
14470# Whether dlopen of statically linked programs is supported.
14471dlopen_self_static=$enable_dlopen_self_static
14472
14473# Compiler flag to prevent dynamic linking.
14474link_static_flag=$lt_lt_prog_compiler_static
14475
14476# Compiler flag to turn off builtin functions.
14477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14478
14479# Compiler flag to allow reflexive dlopens.
14480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14481
14482# Compiler flag to generate shared objects directly from archives.
14483whole_archive_flag_spec=$lt_whole_archive_flag_spec
14484
14485# Compiler flag to generate thread-safe objects.
14486thread_safe_flag_spec=$lt_thread_safe_flag_spec
14487
14488# Library versioning type.
14489version_type=$version_type
14490
14491# Format of library name prefix.
14492libname_spec=$lt_libname_spec
14493
14494# List of archive names.  First name is the real one, the rest are links.
14495# The last name is the one that the linker finds with -lNAME.
14496library_names_spec=$lt_library_names_spec
14497
14498# The coded name of the library, if different from the real name.
14499soname_spec=$lt_soname_spec
14500
14501# Commands used to build and install an old-style archive.
14502RANLIB=$lt_RANLIB
14503old_archive_cmds=$lt_old_archive_cmds
14504old_postinstall_cmds=$lt_old_postinstall_cmds
14505old_postuninstall_cmds=$lt_old_postuninstall_cmds
14506
14507# Create an old-style archive from a shared archive.
14508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14509
14510# Create a temporary old-style archive to link instead of a shared archive.
14511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14512
14513# Commands used to build and install a shared archive.
14514archive_cmds=$lt_archive_cmds
14515archive_expsym_cmds=$lt_archive_expsym_cmds
14516postinstall_cmds=$lt_postinstall_cmds
14517postuninstall_cmds=$lt_postuninstall_cmds
14518
14519# Commands used to build a loadable module (assumed same as above if empty)
14520module_cmds=$lt_module_cmds
14521module_expsym_cmds=$lt_module_expsym_cmds
14522
14523# Commands to strip libraries.
14524old_striplib=$lt_old_striplib
14525striplib=$lt_striplib
14526
14527# Dependencies to place before the objects being linked to create a
14528# shared library.
14529predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14530
14531# Dependencies to place after the objects being linked to create a
14532# shared library.
14533postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14534
14535# Dependencies to place before the objects being linked to create a
14536# shared library.
14537predeps=$lt_predeps
14538
14539# Dependencies to place after the objects being linked to create a
14540# shared library.
14541postdeps=$lt_postdeps
14542
14543# The library search path used internally by the compiler when linking
14544# a shared library.
14545compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14546
14547# Method to check whether dependent libraries are shared objects.
14548deplibs_check_method=$lt_deplibs_check_method
14549
14550# Command to use when deplibs_check_method == file_magic.
14551file_magic_cmd=$lt_file_magic_cmd
14552
14553# Flag that allows shared libraries with undefined symbols to be built.
14554allow_undefined_flag=$lt_allow_undefined_flag
14555
14556# Flag that forces no undefined symbols.
14557no_undefined_flag=$lt_no_undefined_flag
14558
14559# Commands used to finish a libtool library installation in a directory.
14560finish_cmds=$lt_finish_cmds
14561
14562# Same as above, but a single script fragment to be evaled but not shown.
14563finish_eval=$lt_finish_eval
14564
14565# Take the output of nm and produce a listing of raw symbols and C names.
14566global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14567
14568# Transform the output of nm in a proper C declaration
14569global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14570
14571# Transform the output of nm in a C name address pair
14572global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14573
14574# This is the shared library runtime path variable.
14575runpath_var=$runpath_var
14576
14577# This is the shared library path variable.
14578shlibpath_var=$shlibpath_var
14579
14580# Is shlibpath searched before the hard-coded library search path?
14581shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14582
14583# How to hardcode a shared library path into an executable.
14584hardcode_action=$hardcode_action
14585
14586# Whether we should hardcode library paths into libraries.
14587hardcode_into_libs=$hardcode_into_libs
14588
14589# Flag to hardcode \$libdir into a binary during linking.
14590# This must work even if \$libdir does not exist.
14591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14592
14593# If ld is used when linking, flag to hardcode \$libdir into
14594# a binary during linking. This must work even if \$libdir does
14595# not exist.
14596hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14597
14598# Whether we need a single -rpath flag with a separated argument.
14599hardcode_libdir_separator=$lt_hardcode_libdir_separator
14600
14601# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14602# resulting binary.
14603hardcode_direct=$hardcode_direct
14604
14605# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14606# resulting binary.
14607hardcode_minus_L=$hardcode_minus_L
14608
14609# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14610# the resulting binary.
14611hardcode_shlibpath_var=$hardcode_shlibpath_var
14612
14613# Set to yes if building a shared library automatically hardcodes DIR into the library
14614# and all subsequent libraries and executables linked against it.
14615hardcode_automatic=$hardcode_automatic
14616
14617# Variables whose values should be saved in libtool wrapper scripts and
14618# restored at relink time.
14619variables_saved_for_relink="$variables_saved_for_relink"
14620
14621# Whether libtool must link a program against all its dependency libraries.
14622link_all_deplibs=$link_all_deplibs
14623
14624# Compile-time system search path for libraries
14625sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14626
14627# Run-time system search path for libraries
14628sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14629
14630# Fix the shell variable \$srcfile for the compiler.
14631fix_srcfile_path="$fix_srcfile_path"
14632
14633# Set to yes if exported symbols are required.
14634always_export_symbols=$always_export_symbols
14635
14636# The commands to list exported symbols.
14637export_symbols_cmds=$lt_export_symbols_cmds
14638
14639# The commands to extract the exported symbol list from a shared archive.
14640extract_expsyms_cmds=$lt_extract_expsyms_cmds
14641
14642# Symbols that should not be listed in the preloaded symbols.
14643exclude_expsyms=$lt_exclude_expsyms
14644
14645# Symbols that must always be exported.
14646include_expsyms=$lt_include_expsyms
14647
14648# ### END LIBTOOL CONFIG
14649
14650__EOF__
14651
14652
14653  case $host_os in
14654  aix3*)
14655    cat <<\EOF >> "$cfgfile"
14656
14657# AIX sometimes has problems with the GCC collect2 program.  For some
14658# reason, if we set the COLLECT_NAMES environment variable, the problems
14659# vanish in a puff of smoke.
14660if test "X${COLLECT_NAMES+set}" != Xset; then
14661  COLLECT_NAMES=
14662  export COLLECT_NAMES
14663fi
14664EOF
14665    ;;
14666  esac
14667
14668  # We use sed instead of cat because bash on DJGPP gets confused if
14669  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14670  # text mode, it properly converts lines to CR/LF.  This bash problem
14671  # is reportedly fixed, but why not run on old versions too?
14672  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14673
14674  mv -f "$cfgfile" "$ofile" || \
14675    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14676  chmod +x "$ofile"
14677
14678else
14679  # If there is no Makefile yet, we rely on a make rule to execute
14680  # `config.status --recheck' to rerun these tests and create the
14681  # libtool script then.
14682  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14683  if test -f "$ltmain_in"; then
14684    test -f Makefile && make "$ltmain"
14685  fi
14686fi
14687
14688
14689ac_ext=c
14690ac_cpp='$CPP $CPPFLAGS'
14691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693ac_compiler_gnu=$ac_cv_c_compiler_gnu
14694
14695CC="$lt_save_CC"
14696
14697
14698# Check whether --with-tags or --without-tags was given.
14699if test "${with_tags+set}" = set; then
14700  withval="$with_tags"
14701  tagnames="$withval"
14702fi;
14703
14704if test -f "$ltmain" && test -n "$tagnames"; then
14705  if test ! -f "${ofile}"; then
14706    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14707echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14708  fi
14709
14710  if test -z "$LTCC"; then
14711    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14712    if test -z "$LTCC"; then
14713      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14714echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14715    else
14716      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14717echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14718    fi
14719  fi
14720  if test -z "$LTCFLAGS"; then
14721    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14722  fi
14723
14724  # Extract list of available tagged configurations in $ofile.
14725  # Note that this assumes the entire list is on one line.
14726  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14727
14728  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14729  for tagname in $tagnames; do
14730    IFS="$lt_save_ifs"
14731    # Check whether tagname contains only valid characters
14732    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14733    "") ;;
14734    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14735echo "$as_me: error: invalid tag name: $tagname" >&2;}
14736   { (exit 1); exit 1; }; }
14737	;;
14738    esac
14739
14740    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14741    then
14742      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14743echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14744   { (exit 1); exit 1; }; }
14745    fi
14746
14747    # Update the list of available tags.
14748    if test -n "$tagname"; then
14749      echo appending configuration tag \"$tagname\" to $ofile
14750
14751      case $tagname in
14752      CXX)
14753	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14754	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14755	    (test "X$CXX" != "Xg++"))) ; then
14756	  ac_ext=cc
14757ac_cpp='$CXXCPP $CPPFLAGS'
14758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14761
14762
14763
14764
14765archive_cmds_need_lc_CXX=no
14766allow_undefined_flag_CXX=
14767always_export_symbols_CXX=no
14768archive_expsym_cmds_CXX=
14769export_dynamic_flag_spec_CXX=
14770hardcode_direct_CXX=no
14771hardcode_libdir_flag_spec_CXX=
14772hardcode_libdir_flag_spec_ld_CXX=
14773hardcode_libdir_separator_CXX=
14774hardcode_minus_L_CXX=no
14775hardcode_shlibpath_var_CXX=unsupported
14776hardcode_automatic_CXX=no
14777module_cmds_CXX=
14778module_expsym_cmds_CXX=
14779link_all_deplibs_CXX=unknown
14780old_archive_cmds_CXX=$old_archive_cmds
14781no_undefined_flag_CXX=
14782whole_archive_flag_spec_CXX=
14783enable_shared_with_static_runtimes_CXX=no
14784
14785# Dependencies to place before and after the object being linked:
14786predep_objects_CXX=
14787postdep_objects_CXX=
14788predeps_CXX=
14789postdeps_CXX=
14790compiler_lib_search_path_CXX=
14791
14792# Source file extension for C++ test sources.
14793ac_ext=cpp
14794
14795# Object file extension for compiled C++ test sources.
14796objext=o
14797objext_CXX=$objext
14798
14799# Code to be used in simple compile tests
14800lt_simple_compile_test_code="int some_variable = 0;\n"
14801
14802# Code to be used in simple link tests
14803lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
14804
14805# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14806
14807# If no C compiler was specified, use CC.
14808LTCC=${LTCC-"$CC"}
14809
14810# If no C compiler flags were specified, use CFLAGS.
14811LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14812
14813# Allow CC to be a program name with arguments.
14814compiler=$CC
14815
14816
14817# save warnings/boilerplate of simple test code
14818ac_outfile=conftest.$ac_objext
14819printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14820eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14821_lt_compiler_boilerplate=`cat conftest.err`
14822$rm conftest*
14823
14824ac_outfile=conftest.$ac_objext
14825printf "$lt_simple_link_test_code" >conftest.$ac_ext
14826eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14827_lt_linker_boilerplate=`cat conftest.err`
14828$rm conftest*
14829
14830
14831# Allow CC to be a program name with arguments.
14832lt_save_CC=$CC
14833lt_save_LD=$LD
14834lt_save_GCC=$GCC
14835GCC=$GXX
14836lt_save_with_gnu_ld=$with_gnu_ld
14837lt_save_path_LD=$lt_cv_path_LD
14838if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14839  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14840else
14841  $as_unset lt_cv_prog_gnu_ld
14842fi
14843if test -n "${lt_cv_path_LDCXX+set}"; then
14844  lt_cv_path_LD=$lt_cv_path_LDCXX
14845else
14846  $as_unset lt_cv_path_LD
14847fi
14848test -z "${LDCXX+set}" || LD=$LDCXX
14849CC=${CXX-"c++"}
14850compiler=$CC
14851compiler_CXX=$CC
14852for cc_temp in $compiler""; do
14853  case $cc_temp in
14854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14856    \-*) ;;
14857    *) break;;
14858  esac
14859done
14860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14861
14862
14863# We don't want -fno-exception wen compiling C++ code, so set the
14864# no_builtin_flag separately
14865if test "$GXX" = yes; then
14866  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14867else
14868  lt_prog_compiler_no_builtin_flag_CXX=
14869fi
14870
14871if test "$GXX" = yes; then
14872  # Set up default GNU C++ configuration
14873
14874
14875# Check whether --with-gnu-ld or --without-gnu-ld was given.
14876if test "${with_gnu_ld+set}" = set; then
14877  withval="$with_gnu_ld"
14878  test "$withval" = no || with_gnu_ld=yes
14879else
14880  with_gnu_ld=no
14881fi;
14882ac_prog=ld
14883if test "$GCC" = yes; then
14884  # Check if gcc -print-prog-name=ld gives a path.
14885  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14886echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14887  case $host in
14888  *-*-mingw*)
14889    # gcc leaves a trailing carriage return which upsets mingw
14890    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14891  *)
14892    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14893  esac
14894  case $ac_prog in
14895    # Accept absolute paths.
14896    [\\/]* | ?:[\\/]*)
14897      re_direlt='/[^/][^/]*/\.\./'
14898      # Canonicalize the pathname of ld
14899      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14900      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14901	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14902      done
14903      test -z "$LD" && LD="$ac_prog"
14904      ;;
14905  "")
14906    # If it fails, then pretend we aren't using GCC.
14907    ac_prog=ld
14908    ;;
14909  *)
14910    # If it is relative, then search for the first ld in PATH.
14911    with_gnu_ld=unknown
14912    ;;
14913  esac
14914elif test "$with_gnu_ld" = yes; then
14915  echo "$as_me:$LINENO: checking for GNU ld" >&5
14916echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14917else
14918  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14919echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14920fi
14921if test "${lt_cv_path_LD+set}" = set; then
14922  echo $ECHO_N "(cached) $ECHO_C" >&6
14923else
14924  if test -z "$LD"; then
14925  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14926  for ac_dir in $PATH; do
14927    IFS="$lt_save_ifs"
14928    test -z "$ac_dir" && ac_dir=.
14929    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14930      lt_cv_path_LD="$ac_dir/$ac_prog"
14931      # Check to see if the program is GNU ld.  I'd rather use --version,
14932      # but apparently some variants of GNU ld only accept -v.
14933      # Break only if it was the GNU/non-GNU ld that we prefer.
14934      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14935      *GNU* | *'with BFD'*)
14936	test "$with_gnu_ld" != no && break
14937	;;
14938      *)
14939	test "$with_gnu_ld" != yes && break
14940	;;
14941      esac
14942    fi
14943  done
14944  IFS="$lt_save_ifs"
14945else
14946  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14947fi
14948fi
14949
14950LD="$lt_cv_path_LD"
14951if test -n "$LD"; then
14952  echo "$as_me:$LINENO: result: $LD" >&5
14953echo "${ECHO_T}$LD" >&6
14954else
14955  echo "$as_me:$LINENO: result: no" >&5
14956echo "${ECHO_T}no" >&6
14957fi
14958test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14959echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14960   { (exit 1); exit 1; }; }
14961echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14962echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14963if test "${lt_cv_prog_gnu_ld+set}" = set; then
14964  echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14967case `$LD -v 2>&1 </dev/null` in
14968*GNU* | *'with BFD'*)
14969  lt_cv_prog_gnu_ld=yes
14970  ;;
14971*)
14972  lt_cv_prog_gnu_ld=no
14973  ;;
14974esac
14975fi
14976echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14977echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14978with_gnu_ld=$lt_cv_prog_gnu_ld
14979
14980
14981
14982  # Check if GNU C++ uses GNU ld as the underlying linker, since the
14983  # archiving commands below assume that GNU ld is being used.
14984  if test "$with_gnu_ld" = yes; then
14985    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986    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'
14987
14988    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14989    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14990
14991    # If archive_cmds runs LD, not CC, wlarc should be empty
14992    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14993    #     investigate it a little bit more. (MM)
14994    wlarc='${wl}'
14995
14996    # ancient GNU ld didn't support --whole-archive et. al.
14997    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14998	grep 'no-whole-archive' > /dev/null; then
14999      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15000    else
15001      whole_archive_flag_spec_CXX=
15002    fi
15003  else
15004    with_gnu_ld=no
15005    wlarc=
15006
15007    # A generic and very simple default shared library creation
15008    # command for GNU C++ for the case where it uses the native
15009    # linker, instead of GNU ld.  If possible, this setting should
15010    # overridden to take advantage of the native linker features on
15011    # the platform it is being used on.
15012    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15013  fi
15014
15015  # Commands to make compiler produce verbose output that lists
15016  # what "hidden" libraries, object files and flags are used when
15017  # linking a shared library.
15018  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15019
15020else
15021  GXX=no
15022  with_gnu_ld=no
15023  wlarc=
15024fi
15025
15026# PORTME: fill in a description of your system's C++ link characteristics
15027echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15028echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15029ld_shlibs_CXX=yes
15030case $host_os in
15031  aix3*)
15032    # FIXME: insert proper C++ library support
15033    ld_shlibs_CXX=no
15034    ;;
15035  aix4* | aix5*)
15036    if test "$host_cpu" = ia64; then
15037      # On IA64, the linker does run time linking by default, so we don't
15038      # have to do anything special.
15039      aix_use_runtimelinking=no
15040      exp_sym_flag='-Bexport'
15041      no_entry_flag=""
15042    else
15043      aix_use_runtimelinking=no
15044
15045      # Test if we are trying to use run time linking or normal
15046      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15047      # need to do runtime linking.
15048      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15049	for ld_flag in $LDFLAGS; do
15050	  case $ld_flag in
15051	  *-brtl*)
15052	    aix_use_runtimelinking=yes
15053	    break
15054	    ;;
15055	  esac
15056	done
15057	;;
15058      esac
15059
15060      exp_sym_flag='-bexport'
15061      no_entry_flag='-bnoentry'
15062    fi
15063
15064    # When large executables or shared objects are built, AIX ld can
15065    # have problems creating the table of contents.  If linking a library
15066    # or program results in "error TOC overflow" add -mminimal-toc to
15067    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15068    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15069
15070    archive_cmds_CXX=''
15071    hardcode_direct_CXX=yes
15072    hardcode_libdir_separator_CXX=':'
15073    link_all_deplibs_CXX=yes
15074
15075    if test "$GXX" = yes; then
15076      case $host_os in aix4.[012]|aix4.[012].*)
15077      # We only want to do this on AIX 4.2 and lower, the check
15078      # below for broken collect2 doesn't work under 4.3+
15079	collect2name=`${CC} -print-prog-name=collect2`
15080	if test -f "$collect2name" && \
15081	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15082	then
15083	  # We have reworked collect2
15084	  hardcode_direct_CXX=yes
15085	else
15086	  # We have old collect2
15087	  hardcode_direct_CXX=unsupported
15088	  # It fails to find uninstalled libraries when the uninstalled
15089	  # path is not listed in the libpath.  Setting hardcode_minus_L
15090	  # to unsupported forces relinking
15091	  hardcode_minus_L_CXX=yes
15092	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15093	  hardcode_libdir_separator_CXX=
15094	fi
15095	;;
15096      esac
15097      shared_flag='-shared'
15098      if test "$aix_use_runtimelinking" = yes; then
15099	shared_flag="$shared_flag "'${wl}-G'
15100      fi
15101    else
15102      # not using gcc
15103      if test "$host_cpu" = ia64; then
15104	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15105	# chokes on -Wl,-G. The following line is correct:
15106	shared_flag='-G'
15107      else
15108	if test "$aix_use_runtimelinking" = yes; then
15109	  shared_flag='${wl}-G'
15110	else
15111	  shared_flag='${wl}-bM:SRE'
15112	fi
15113      fi
15114    fi
15115
15116    # It seems that -bexpall does not export symbols beginning with
15117    # underscore (_), so it is better to generate a list of symbols to export.
15118    always_export_symbols_CXX=yes
15119    if test "$aix_use_runtimelinking" = yes; then
15120      # Warning - without using the other runtime loading flags (-brtl),
15121      # -berok will link without error, but may produce a broken library.
15122      allow_undefined_flag_CXX='-berok'
15123      # Determine the default libpath from the value encoded in an empty executable.
15124      cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h.  */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h.  */
15130
15131int
15132main ()
15133{
15134
15135  ;
15136  return 0;
15137}
15138_ACEOF
15139rm -f conftest.$ac_objext conftest$ac_exeext
15140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141  (eval $ac_link) 2>conftest.er1
15142  ac_status=$?
15143  grep -v '^ *+' conftest.er1 >conftest.err
15144  rm -f conftest.er1
15145  cat conftest.err >&5
15146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147  (exit $ac_status); } &&
15148	 { ac_try='test -z "$ac_cxx_werror_flag"
15149			 || test ! -s conftest.err'
15150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151  (eval $ac_try) 2>&5
15152  ac_status=$?
15153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154  (exit $ac_status); }; } &&
15155	 { ac_try='test -s conftest$ac_exeext'
15156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157  (eval $ac_try) 2>&5
15158  ac_status=$?
15159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160  (exit $ac_status); }; }; then
15161
15162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15163}'`
15164# Check for a 64-bit object if we didn't find anything.
15165if 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; }
15166}'`; fi
15167else
15168  echo "$as_me: failed program was:" >&5
15169sed 's/^/| /' conftest.$ac_ext >&5
15170
15171fi
15172rm -f conftest.err conftest.$ac_objext \
15173      conftest$ac_exeext conftest.$ac_ext
15174if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15175
15176      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15177
15178      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15179     else
15180      if test "$host_cpu" = ia64; then
15181	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15182	allow_undefined_flag_CXX="-z nodefs"
15183	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15184      else
15185	# Determine the default libpath from the value encoded in an empty executable.
15186	cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h.  */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h.  */
15192
15193int
15194main ()
15195{
15196
15197  ;
15198  return 0;
15199}
15200_ACEOF
15201rm -f conftest.$ac_objext conftest$ac_exeext
15202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15203  (eval $ac_link) 2>conftest.er1
15204  ac_status=$?
15205  grep -v '^ *+' conftest.er1 >conftest.err
15206  rm -f conftest.er1
15207  cat conftest.err >&5
15208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209  (exit $ac_status); } &&
15210	 { ac_try='test -z "$ac_cxx_werror_flag"
15211			 || test ! -s conftest.err'
15212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213  (eval $ac_try) 2>&5
15214  ac_status=$?
15215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216  (exit $ac_status); }; } &&
15217	 { ac_try='test -s conftest$ac_exeext'
15218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219  (eval $ac_try) 2>&5
15220  ac_status=$?
15221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222  (exit $ac_status); }; }; then
15223
15224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15225}'`
15226# Check for a 64-bit object if we didn't find anything.
15227if 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; }
15228}'`; fi
15229else
15230  echo "$as_me: failed program was:" >&5
15231sed 's/^/| /' conftest.$ac_ext >&5
15232
15233fi
15234rm -f conftest.err conftest.$ac_objext \
15235      conftest$ac_exeext conftest.$ac_ext
15236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15237
15238	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15239	# Warning - without using the other run time loading flags,
15240	# -berok will link without error, but may produce a broken library.
15241	no_undefined_flag_CXX=' ${wl}-bernotok'
15242	allow_undefined_flag_CXX=' ${wl}-berok'
15243	# Exported symbols can be pulled into shared objects from archives
15244	whole_archive_flag_spec_CXX='$convenience'
15245	archive_cmds_need_lc_CXX=yes
15246	# This is similar to how AIX traditionally builds its shared libraries.
15247	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15248      fi
15249    fi
15250    ;;
15251
15252  beos*)
15253    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15254      allow_undefined_flag_CXX=unsupported
15255      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15256      # support --undefined.  This deserves some investigation.  FIXME
15257      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258    else
15259      ld_shlibs_CXX=no
15260    fi
15261    ;;
15262
15263  chorus*)
15264    case $cc_basename in
15265      *)
15266	# FIXME: insert proper C++ library support
15267	ld_shlibs_CXX=no
15268	;;
15269    esac
15270    ;;
15271
15272  cygwin* | mingw* | pw32*)
15273    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15274    # as there is no search path for DLLs.
15275    hardcode_libdir_flag_spec_CXX='-L$libdir'
15276    allow_undefined_flag_CXX=unsupported
15277    always_export_symbols_CXX=no
15278    enable_shared_with_static_runtimes_CXX=yes
15279
15280    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15281      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15282      # If the export-symbols file already is a .def file (1st line
15283      # is EXPORTS), use it as is; otherwise, prepend...
15284      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15285	cp $export_symbols $output_objdir/$soname.def;
15286      else
15287	echo EXPORTS > $output_objdir/$soname.def;
15288	cat $export_symbols >> $output_objdir/$soname.def;
15289      fi~
15290      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15291    else
15292      ld_shlibs_CXX=no
15293    fi
15294  ;;
15295      darwin* | rhapsody*)
15296        case $host_os in
15297        rhapsody* | darwin1.[012])
15298         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15299         ;;
15300       *) # Darwin 1.3 on
15301         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15302           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15303         else
15304           case ${MACOSX_DEPLOYMENT_TARGET} in
15305             10.[012])
15306               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15307               ;;
15308             10.*)
15309               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15310               ;;
15311           esac
15312         fi
15313         ;;
15314        esac
15315      archive_cmds_need_lc_CXX=no
15316      hardcode_direct_CXX=no
15317      hardcode_automatic_CXX=yes
15318      hardcode_shlibpath_var_CXX=unsupported
15319      whole_archive_flag_spec_CXX=''
15320      link_all_deplibs_CXX=yes
15321
15322    if test "$GXX" = yes ; then
15323      lt_int_apple_cc_single_mod=no
15324      output_verbose_link_cmd='echo'
15325      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15326       lt_int_apple_cc_single_mod=yes
15327      fi
15328      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15329       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15330      else
15331          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15332        fi
15333        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15334        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15335          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15336            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}'
15337          else
15338            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15339          fi
15340            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}'
15341      else
15342      case $cc_basename in
15343        xlc*)
15344         output_verbose_link_cmd='echo'
15345          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15346          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15347          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15348          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15349          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}'
15350          ;;
15351       *)
15352         ld_shlibs_CXX=no
15353          ;;
15354      esac
15355      fi
15356        ;;
15357
15358  dgux*)
15359    case $cc_basename in
15360      ec++*)
15361	# FIXME: insert proper C++ library support
15362	ld_shlibs_CXX=no
15363	;;
15364      ghcx*)
15365	# Green Hills C++ Compiler
15366	# FIXME: insert proper C++ library support
15367	ld_shlibs_CXX=no
15368	;;
15369      *)
15370	# FIXME: insert proper C++ library support
15371	ld_shlibs_CXX=no
15372	;;
15373    esac
15374    ;;
15375  freebsd[12]*)
15376    # C++ shared libraries reported to be fairly broken before switch to ELF
15377    ld_shlibs_CXX=no
15378    ;;
15379  freebsd-elf*)
15380    archive_cmds_need_lc_CXX=no
15381    ;;
15382  freebsd* | kfreebsd*-gnu | dragonfly*)
15383    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15384    # conventions
15385    ld_shlibs_CXX=yes
15386    ;;
15387  gnu*)
15388    ;;
15389  hpux9*)
15390    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15391    hardcode_libdir_separator_CXX=:
15392    export_dynamic_flag_spec_CXX='${wl}-E'
15393    hardcode_direct_CXX=yes
15394    hardcode_minus_L_CXX=yes # Not in the search PATH,
15395				# but as the default
15396				# location of the library.
15397
15398    case $cc_basename in
15399    CC*)
15400      # FIXME: insert proper C++ library support
15401      ld_shlibs_CXX=no
15402      ;;
15403    aCC*)
15404      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'
15405      # Commands to make compiler produce verbose output that lists
15406      # what "hidden" libraries, object files and flags are used when
15407      # linking a shared library.
15408      #
15409      # There doesn't appear to be a way to prevent this compiler from
15410      # explicitly linking system object files so we need to strip them
15411      # from the output so that they don't get included in the library
15412      # dependencies.
15413      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'
15414      ;;
15415    *)
15416      if test "$GXX" = yes; then
15417        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'
15418      else
15419        # FIXME: insert proper C++ library support
15420        ld_shlibs_CXX=no
15421      fi
15422      ;;
15423    esac
15424    ;;
15425  hpux10*|hpux11*)
15426    if test $with_gnu_ld = no; then
15427      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15428      hardcode_libdir_separator_CXX=:
15429
15430      case $host_cpu in
15431      hppa*64*|ia64*)
15432	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15433        ;;
15434      *)
15435	export_dynamic_flag_spec_CXX='${wl}-E'
15436        ;;
15437      esac
15438    fi
15439    case $host_cpu in
15440    hppa*64*|ia64*)
15441      hardcode_direct_CXX=no
15442      hardcode_shlibpath_var_CXX=no
15443      ;;
15444    *)
15445      hardcode_direct_CXX=yes
15446      hardcode_minus_L_CXX=yes # Not in the search PATH,
15447					      # but as the default
15448					      # location of the library.
15449      ;;
15450    esac
15451
15452    case $cc_basename in
15453      CC*)
15454	# FIXME: insert proper C++ library support
15455	ld_shlibs_CXX=no
15456	;;
15457      aCC*)
15458	case $host_cpu in
15459	hppa*64*)
15460	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15461	  ;;
15462	ia64*)
15463	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15464	  ;;
15465	*)
15466	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15467	  ;;
15468	esac
15469	# Commands to make compiler produce verbose output that lists
15470	# what "hidden" libraries, object files and flags are used when
15471	# linking a shared library.
15472	#
15473	# There doesn't appear to be a way to prevent this compiler from
15474	# explicitly linking system object files so we need to strip them
15475	# from the output so that they don't get included in the library
15476	# dependencies.
15477	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'
15478	;;
15479      *)
15480	if test "$GXX" = yes; then
15481	  if test $with_gnu_ld = no; then
15482	    case $host_cpu in
15483	    hppa*64*)
15484	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15485	      ;;
15486	    ia64*)
15487	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15488	      ;;
15489	    *)
15490	      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'
15491	      ;;
15492	    esac
15493	  fi
15494	else
15495	  # FIXME: insert proper C++ library support
15496	  ld_shlibs_CXX=no
15497	fi
15498	;;
15499    esac
15500    ;;
15501  interix3*)
15502    hardcode_direct_CXX=no
15503    hardcode_shlibpath_var_CXX=no
15504    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15505    export_dynamic_flag_spec_CXX='${wl}-E'
15506    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15507    # Instead, shared libraries are loaded at an image base (0x10000000 by
15508    # default) and relocated if they conflict, which is a slow very memory
15509    # consuming and fragmenting process.  To avoid this, we pick a random,
15510    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15511    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15512    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15513    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15514    ;;
15515  irix5* | irix6*)
15516    case $cc_basename in
15517      CC*)
15518	# SGI C++
15519	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 ${output_objdir}/so_locations -o $lib'
15520
15521	# Archives containing C++ object files must be created using
15522	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15523	# necessary to make sure instantiated templates are included
15524	# in the archive.
15525	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15526	;;
15527      *)
15528	if test "$GXX" = yes; then
15529	  if test "$with_gnu_ld" = no; then
15530	    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}${output_objdir}/so_locations -o $lib'
15531	  else
15532	    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'
15533	  fi
15534	fi
15535	link_all_deplibs_CXX=yes
15536	;;
15537    esac
15538    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15539    hardcode_libdir_separator_CXX=:
15540    ;;
15541  linux*)
15542    case $cc_basename in
15543      KCC*)
15544	# Kuck and Associates, Inc. (KAI) C++ Compiler
15545
15546	# KCC will only create a shared library if the output file
15547	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15548	# to its proper name (with version) after linking.
15549	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'
15550	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'
15551	# Commands to make compiler produce verbose output that lists
15552	# what "hidden" libraries, object files and flags are used when
15553	# linking a shared library.
15554	#
15555	# There doesn't appear to be a way to prevent this compiler from
15556	# explicitly linking system object files so we need to strip them
15557	# from the output so that they don't get included in the library
15558	# dependencies.
15559	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'
15560
15561	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15562	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15563
15564	# Archives containing C++ object files must be created using
15565	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15566	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15567	;;
15568      icpc*)
15569	# Intel C++
15570	with_gnu_ld=yes
15571	# version 8.0 and above of icpc choke on multiply defined symbols
15572	# if we add $predep_objects and $postdep_objects, however 7.1 and
15573	# earlier do not add the objects themselves.
15574	case `$CC -V 2>&1` in
15575	*"Version 7."*)
15576  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15577  	  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'
15578	  ;;
15579	*)  # Version 8.0 or newer
15580	  tmp_idyn=
15581	  case $host_cpu in
15582	    ia64*) tmp_idyn=' -i_dynamic';;
15583	  esac
15584  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15585	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15586	  ;;
15587	esac
15588	archive_cmds_need_lc_CXX=no
15589	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15590	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15591	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15592	;;
15593      pgCC*)
15594        # Portland Group C++ compiler
15595	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15596  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15597
15598	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15599	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15600	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15601        ;;
15602      cxx*)
15603	# Compaq C++
15604	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15605	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'
15606
15607	runpath_var=LD_RUN_PATH
15608	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15609	hardcode_libdir_separator_CXX=:
15610
15611	# Commands to make compiler produce verbose output that lists
15612	# what "hidden" libraries, object files and flags are used when
15613	# linking a shared library.
15614	#
15615	# There doesn't appear to be a way to prevent this compiler from
15616	# explicitly linking system object files so we need to strip them
15617	# from the output so that they don't get included in the library
15618	# dependencies.
15619	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'
15620	;;
15621    esac
15622    ;;
15623  lynxos*)
15624    # FIXME: insert proper C++ library support
15625    ld_shlibs_CXX=no
15626    ;;
15627  m88k*)
15628    # FIXME: insert proper C++ library support
15629    ld_shlibs_CXX=no
15630    ;;
15631  mvs*)
15632    case $cc_basename in
15633      cxx*)
15634	# FIXME: insert proper C++ library support
15635	ld_shlibs_CXX=no
15636	;;
15637      *)
15638	# FIXME: insert proper C++ library support
15639	ld_shlibs_CXX=no
15640	;;
15641    esac
15642    ;;
15643  netbsd*)
15644    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15645      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15646      wlarc=
15647      hardcode_libdir_flag_spec_CXX='-R$libdir'
15648      hardcode_direct_CXX=yes
15649      hardcode_shlibpath_var_CXX=no
15650    fi
15651    # Workaround some broken pre-1.5 toolchains
15652    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15653    ;;
15654  openbsd2*)
15655    # C++ shared libraries are fairly broken
15656    ld_shlibs_CXX=no
15657    ;;
15658  openbsd*)
15659    hardcode_direct_CXX=yes
15660    hardcode_shlibpath_var_CXX=no
15661    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15662    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15663    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15664      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15665      export_dynamic_flag_spec_CXX='${wl}-E'
15666      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15667    fi
15668    output_verbose_link_cmd='echo'
15669    ;;
15670  osf3*)
15671    case $cc_basename in
15672      KCC*)
15673	# Kuck and Associates, Inc. (KAI) C++ Compiler
15674
15675	# KCC will only create a shared library if the output file
15676	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15677	# to its proper name (with version) after linking.
15678	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'
15679
15680	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15681	hardcode_libdir_separator_CXX=:
15682
15683	# Archives containing C++ object files must be created using
15684	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15685	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15686
15687	;;
15688      RCC*)
15689	# Rational C++ 2.4.1
15690	# FIXME: insert proper C++ library support
15691	ld_shlibs_CXX=no
15692	;;
15693      cxx*)
15694	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15695	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 ${output_objdir}/so_locations -o $lib'
15696
15697	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15698	hardcode_libdir_separator_CXX=:
15699
15700	# Commands to make compiler produce verbose output that lists
15701	# what "hidden" libraries, object files and flags are used when
15702	# linking a shared library.
15703	#
15704	# There doesn't appear to be a way to prevent this compiler from
15705	# explicitly linking system object files so we need to strip them
15706	# from the output so that they don't get included in the library
15707	# dependencies.
15708	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'
15709	;;
15710      *)
15711	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15712	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15713	  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}${output_objdir}/so_locations -o $lib'
15714
15715	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15716	  hardcode_libdir_separator_CXX=:
15717
15718	  # Commands to make compiler produce verbose output that lists
15719	  # what "hidden" libraries, object files and flags are used when
15720	  # linking a shared library.
15721	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15722
15723	else
15724	  # FIXME: insert proper C++ library support
15725	  ld_shlibs_CXX=no
15726	fi
15727	;;
15728    esac
15729    ;;
15730  osf4* | osf5*)
15731    case $cc_basename in
15732      KCC*)
15733	# Kuck and Associates, Inc. (KAI) C++ Compiler
15734
15735	# KCC will only create a shared library if the output file
15736	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15737	# to its proper name (with version) after linking.
15738	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'
15739
15740	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15741	hardcode_libdir_separator_CXX=:
15742
15743	# Archives containing C++ object files must be created using
15744	# the KAI C++ compiler.
15745	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15746	;;
15747      RCC*)
15748	# Rational C++ 2.4.1
15749	# FIXME: insert proper C++ library support
15750	ld_shlibs_CXX=no
15751	;;
15752      cxx*)
15753	allow_undefined_flag_CXX=' -expect_unresolved \*'
15754	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 ${output_objdir}/so_locations -o $lib'
15755	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15756	  echo "-hidden">> $lib.exp~
15757	  $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 ${output_objdir}/so_locations -o $lib~
15758	  $rm $lib.exp'
15759
15760	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15761	hardcode_libdir_separator_CXX=:
15762
15763	# Commands to make compiler produce verbose output that lists
15764	# what "hidden" libraries, object files and flags are used when
15765	# linking a shared library.
15766	#
15767	# There doesn't appear to be a way to prevent this compiler from
15768	# explicitly linking system object files so we need to strip them
15769	# from the output so that they don't get included in the library
15770	# dependencies.
15771	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'
15772	;;
15773      *)
15774	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15775	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15776	 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}${output_objdir}/so_locations -o $lib'
15777
15778	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15779	  hardcode_libdir_separator_CXX=:
15780
15781	  # Commands to make compiler produce verbose output that lists
15782	  # what "hidden" libraries, object files and flags are used when
15783	  # linking a shared library.
15784	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15785
15786	else
15787	  # FIXME: insert proper C++ library support
15788	  ld_shlibs_CXX=no
15789	fi
15790	;;
15791    esac
15792    ;;
15793  psos*)
15794    # FIXME: insert proper C++ library support
15795    ld_shlibs_CXX=no
15796    ;;
15797  sunos4*)
15798    case $cc_basename in
15799      CC*)
15800	# Sun C++ 4.x
15801	# FIXME: insert proper C++ library support
15802	ld_shlibs_CXX=no
15803	;;
15804      lcc*)
15805	# Lucid
15806	# FIXME: insert proper C++ library support
15807	ld_shlibs_CXX=no
15808	;;
15809      *)
15810	# FIXME: insert proper C++ library support
15811	ld_shlibs_CXX=no
15812	;;
15813    esac
15814    ;;
15815  solaris*)
15816    case $cc_basename in
15817      CC*)
15818	# Sun C++ 4.2, 5.x and Centerline C++
15819        archive_cmds_need_lc_CXX=yes
15820	no_undefined_flag_CXX=' -zdefs'
15821	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15822	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15823	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15824
15825	hardcode_libdir_flag_spec_CXX='-R$libdir'
15826	hardcode_shlibpath_var_CXX=no
15827	case $host_os in
15828	  solaris2.[0-5] | solaris2.[0-5].*) ;;
15829	  *)
15830	    # The C++ compiler is used as linker so we must use $wl
15831	    # flag to pass the commands to the underlying system
15832	    # linker. We must also pass each convience library through
15833	    # to the system linker between allextract/defaultextract.
15834	    # The C++ compiler will combine linker options so we
15835	    # cannot just pass the convience library names through
15836	    # without $wl.
15837	    # Supported since Solaris 2.6 (maybe 2.5.1?)
15838	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
15839	    ;;
15840	esac
15841	link_all_deplibs_CXX=yes
15842
15843	output_verbose_link_cmd='echo'
15844
15845	# Archives containing C++ object files must be created using
15846	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
15847	# necessary to make sure instantiated templates are included
15848	# in the archive.
15849	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15850	;;
15851      gcx*)
15852	# Green Hills C++ Compiler
15853	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15854
15855	# The C++ compiler must be used to create the archive.
15856	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15857	;;
15858      *)
15859	# GNU C++ compiler with Solaris linker
15860	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15861	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15862	  if $CC --version | grep -v '^2\.7' > /dev/null; then
15863	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15864	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15865		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15866
15867	    # Commands to make compiler produce verbose output that lists
15868	    # what "hidden" libraries, object files and flags are used when
15869	    # linking a shared library.
15870	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15871	  else
15872	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
15873	    # platform.
15874	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15875	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15876		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15877
15878	    # Commands to make compiler produce verbose output that lists
15879	    # what "hidden" libraries, object files and flags are used when
15880	    # linking a shared library.
15881	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15882	  fi
15883
15884	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15885	fi
15886	;;
15887    esac
15888    ;;
15889  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15890    no_undefined_flag_CXX='${wl}-z,text'
15891    archive_cmds_need_lc_CXX=no
15892    hardcode_shlibpath_var_CXX=no
15893    runpath_var='LD_RUN_PATH'
15894
15895    case $cc_basename in
15896      CC*)
15897	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899	;;
15900      *)
15901	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903	;;
15904    esac
15905    ;;
15906  sysv5* | sco3.2v5* | sco5v6*)
15907    # Note: We can NOT use -z defs as we might desire, because we do not
15908    # link with -lc, and that would cause any symbols used from libc to
15909    # always be unresolved, which means just about no library would
15910    # ever link correctly.  If we're not using GNU ld we use -z text
15911    # though, which does catch some bad symbols but isn't as heavy-handed
15912    # as -z defs.
15913    # For security reasons, it is highly recommended that you always
15914    # use absolute paths for naming shared libraries, and exclude the
15915    # DT_RUNPATH tag from executables and libraries.  But doing so
15916    # requires that you compile everything twice, which is a pain.
15917    # So that behaviour is only enabled if SCOABSPATH is set to a
15918    # non-empty value in the environment.  Most likely only useful for
15919    # creating official distributions of packages.
15920    # This is a hack until libtool officially supports absolute path
15921    # names for shared libraries.
15922    no_undefined_flag_CXX='${wl}-z,text'
15923    allow_undefined_flag_CXX='${wl}-z,nodefs'
15924    archive_cmds_need_lc_CXX=no
15925    hardcode_shlibpath_var_CXX=no
15926    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15927    hardcode_libdir_separator_CXX=':'
15928    link_all_deplibs_CXX=yes
15929    export_dynamic_flag_spec_CXX='${wl}-Bexport'
15930    runpath_var='LD_RUN_PATH'
15931
15932    case $cc_basename in
15933      CC*)
15934	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15936	;;
15937      *)
15938	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15939	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15940	;;
15941    esac
15942    ;;
15943  tandem*)
15944    case $cc_basename in
15945      NCC*)
15946	# NonStop-UX NCC 3.20
15947	# FIXME: insert proper C++ library support
15948	ld_shlibs_CXX=no
15949	;;
15950      *)
15951	# FIXME: insert proper C++ library support
15952	ld_shlibs_CXX=no
15953	;;
15954    esac
15955    ;;
15956  vxworks*)
15957    # FIXME: insert proper C++ library support
15958    ld_shlibs_CXX=no
15959    ;;
15960  *)
15961    # FIXME: insert proper C++ library support
15962    ld_shlibs_CXX=no
15963    ;;
15964esac
15965echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15966echo "${ECHO_T}$ld_shlibs_CXX" >&6
15967test "$ld_shlibs_CXX" = no && can_build_shared=no
15968
15969GCC_CXX="$GXX"
15970LD_CXX="$LD"
15971
15972
15973cat > conftest.$ac_ext <<EOF
15974class Foo
15975{
15976public:
15977  Foo (void) { a = 0; }
15978private:
15979  int a;
15980};
15981EOF
15982
15983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15984  (eval $ac_compile) 2>&5
15985  ac_status=$?
15986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987  (exit $ac_status); }; then
15988  # Parse the compiler output and extract the necessary
15989  # objects, libraries and library flags.
15990
15991  # Sentinel used to keep track of whether or not we are before
15992  # the conftest object file.
15993  pre_test_object_deps_done=no
15994
15995  # The `*' in the case matches for architectures that use `case' in
15996  # $output_verbose_cmd can trigger glob expansion during the loop
15997  # eval without this substitution.
15998  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15999
16000  for p in `eval $output_verbose_link_cmd`; do
16001    case $p in
16002
16003    -L* | -R* | -l*)
16004       # Some compilers place space between "-{L,R}" and the path.
16005       # Remove the space.
16006       if test $p = "-L" \
16007	  || test $p = "-R"; then
16008	 prev=$p
16009	 continue
16010       else
16011	 prev=
16012       fi
16013
16014       if test "$pre_test_object_deps_done" = no; then
16015	 case $p in
16016	 -L* | -R*)
16017	   # Internal compiler library paths should come after those
16018	   # provided the user.  The postdeps already come after the
16019	   # user supplied libs so there is no need to process them.
16020	   if test -z "$compiler_lib_search_path_CXX"; then
16021	     compiler_lib_search_path_CXX="${prev}${p}"
16022	   else
16023	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16024	   fi
16025	   ;;
16026	 # The "-l" case would never come before the object being
16027	 # linked, so don't bother handling this case.
16028	 esac
16029       else
16030	 if test -z "$postdeps_CXX"; then
16031	   postdeps_CXX="${prev}${p}"
16032	 else
16033	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16034	 fi
16035       fi
16036       ;;
16037
16038    *.$objext)
16039       # This assumes that the test object file only shows up
16040       # once in the compiler output.
16041       if test "$p" = "conftest.$objext"; then
16042	 pre_test_object_deps_done=yes
16043	 continue
16044       fi
16045
16046       if test "$pre_test_object_deps_done" = no; then
16047	 if test -z "$predep_objects_CXX"; then
16048	   predep_objects_CXX="$p"
16049	 else
16050	   predep_objects_CXX="$predep_objects_CXX $p"
16051	 fi
16052       else
16053	 if test -z "$postdep_objects_CXX"; then
16054	   postdep_objects_CXX="$p"
16055	 else
16056	   postdep_objects_CXX="$postdep_objects_CXX $p"
16057	 fi
16058       fi
16059       ;;
16060
16061    *) ;; # Ignore the rest.
16062
16063    esac
16064  done
16065
16066  # Clean up.
16067  rm -f a.out a.exe
16068else
16069  echo "libtool.m4: error: problem compiling CXX test program"
16070fi
16071
16072$rm -f confest.$objext
16073
16074# PORTME: override above test on systems where it is broken
16075case $host_os in
16076interix3*)
16077  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16078  # hack all around it, let's just trust "g++" to DTRT.
16079  predep_objects_CXX=
16080  postdep_objects_CXX=
16081  postdeps_CXX=
16082  ;;
16083
16084solaris*)
16085  case $cc_basename in
16086  CC*)
16087    # Adding this requires a known-good setup of shared libraries for
16088    # Sun compiler versions before 5.6, else PIC objects from an old
16089    # archive will be linked into the output, leading to subtle bugs.
16090    postdeps_CXX='-lCstd -lCrun'
16091    ;;
16092  esac
16093  ;;
16094esac
16095
16096
16097case " $postdeps_CXX " in
16098*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16099esac
16100
16101lt_prog_compiler_wl_CXX=
16102lt_prog_compiler_pic_CXX=
16103lt_prog_compiler_static_CXX=
16104
16105echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16106echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16107
16108  # C++ specific cases for pic, static, wl, etc.
16109  if test "$GXX" = yes; then
16110    lt_prog_compiler_wl_CXX='-Wl,'
16111    lt_prog_compiler_static_CXX='-static'
16112
16113    case $host_os in
16114    aix*)
16115      # All AIX code is PIC.
16116      if test "$host_cpu" = ia64; then
16117	# AIX 5 now supports IA64 processor
16118	lt_prog_compiler_static_CXX='-Bstatic'
16119      fi
16120      ;;
16121    amigaos*)
16122      # FIXME: we need at least 68020 code to build shared libraries, but
16123      # adding the `-m68020' flag to GCC prevents building anything better,
16124      # like `-m68040'.
16125      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16126      ;;
16127    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16128      # PIC is the default for these OSes.
16129      ;;
16130    mingw* | os2* | pw32*)
16131      # This hack is so that the source file can tell whether it is being
16132      # built for inclusion in a dll (and should export symbols for example).
16133      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16134      ;;
16135    darwin* | rhapsody*)
16136      # PIC is the default on this platform
16137      # Common symbols not allowed in MH_DYLIB files
16138      lt_prog_compiler_pic_CXX='-fno-common'
16139      ;;
16140    *djgpp*)
16141      # DJGPP does not support shared libraries at all
16142      lt_prog_compiler_pic_CXX=
16143      ;;
16144    interix3*)
16145      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16146      # Instead, we relocate shared libraries at runtime.
16147      ;;
16148    sysv4*MP*)
16149      if test -d /usr/nec; then
16150	lt_prog_compiler_pic_CXX=-Kconform_pic
16151      fi
16152      ;;
16153    hpux*)
16154      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16155      # not for PA HP-UX.
16156      case $host_cpu in
16157      hppa*64*|ia64*)
16158	;;
16159      *)
16160	lt_prog_compiler_pic_CXX='-fPIC'
16161	;;
16162      esac
16163      ;;
16164    *)
16165      lt_prog_compiler_pic_CXX='-fPIC'
16166      ;;
16167    esac
16168  else
16169    case $host_os in
16170      aix4* | aix5*)
16171	# All AIX code is PIC.
16172	if test "$host_cpu" = ia64; then
16173	  # AIX 5 now supports IA64 processor
16174	  lt_prog_compiler_static_CXX='-Bstatic'
16175	else
16176	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16177	fi
16178	;;
16179      chorus*)
16180	case $cc_basename in
16181	cxch68*)
16182	  # Green Hills C++ Compiler
16183	  # _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"
16184	  ;;
16185	esac
16186	;;
16187       darwin*)
16188         # PIC is the default on this platform
16189         # Common symbols not allowed in MH_DYLIB files
16190         case $cc_basename in
16191           xlc*)
16192           lt_prog_compiler_pic_CXX='-qnocommon'
16193           lt_prog_compiler_wl_CXX='-Wl,'
16194           ;;
16195         esac
16196       ;;
16197      dgux*)
16198	case $cc_basename in
16199	  ec++*)
16200	    lt_prog_compiler_pic_CXX='-KPIC'
16201	    ;;
16202	  ghcx*)
16203	    # Green Hills C++ Compiler
16204	    lt_prog_compiler_pic_CXX='-pic'
16205	    ;;
16206	  *)
16207	    ;;
16208	esac
16209	;;
16210      freebsd* | kfreebsd*-gnu | dragonfly*)
16211	# FreeBSD uses GNU C++
16212	;;
16213      hpux9* | hpux10* | hpux11*)
16214	case $cc_basename in
16215	  CC*)
16216	    lt_prog_compiler_wl_CXX='-Wl,'
16217	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16218	    if test "$host_cpu" != ia64; then
16219	      lt_prog_compiler_pic_CXX='+Z'
16220	    fi
16221	    ;;
16222	  aCC*)
16223	    lt_prog_compiler_wl_CXX='-Wl,'
16224	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16225	    case $host_cpu in
16226	    hppa*64*|ia64*)
16227	      # +Z the default
16228	      ;;
16229	    *)
16230	      lt_prog_compiler_pic_CXX='+Z'
16231	      ;;
16232	    esac
16233	    ;;
16234	  *)
16235	    ;;
16236	esac
16237	;;
16238      interix*)
16239	# This is c89, which is MS Visual C++ (no shared libs)
16240	# Anyone wants to do a port?
16241	;;
16242      irix5* | irix6* | nonstopux*)
16243	case $cc_basename in
16244	  CC*)
16245	    lt_prog_compiler_wl_CXX='-Wl,'
16246	    lt_prog_compiler_static_CXX='-non_shared'
16247	    # CC pic flag -KPIC is the default.
16248	    ;;
16249	  *)
16250	    ;;
16251	esac
16252	;;
16253      linux*)
16254	case $cc_basename in
16255	  KCC*)
16256	    # KAI C++ Compiler
16257	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16258	    lt_prog_compiler_pic_CXX='-fPIC'
16259	    ;;
16260	  icpc* | ecpc*)
16261	    # Intel C++
16262	    lt_prog_compiler_wl_CXX='-Wl,'
16263	    lt_prog_compiler_pic_CXX='-KPIC'
16264	    lt_prog_compiler_static_CXX='-static'
16265	    ;;
16266	  pgCC*)
16267	    # Portland Group C++ compiler.
16268	    lt_prog_compiler_wl_CXX='-Wl,'
16269	    lt_prog_compiler_pic_CXX='-fpic'
16270	    lt_prog_compiler_static_CXX='-Bstatic'
16271	    ;;
16272	  cxx*)
16273	    # Compaq C++
16274	    # Make sure the PIC flag is empty.  It appears that all Alpha
16275	    # Linux and Compaq Tru64 Unix objects are PIC.
16276	    lt_prog_compiler_pic_CXX=
16277	    lt_prog_compiler_static_CXX='-non_shared'
16278	    ;;
16279	  *)
16280	    ;;
16281	esac
16282	;;
16283      lynxos*)
16284	;;
16285      m88k*)
16286	;;
16287      mvs*)
16288	case $cc_basename in
16289	  cxx*)
16290	    lt_prog_compiler_pic_CXX='-W c,exportall'
16291	    ;;
16292	  *)
16293	    ;;
16294	esac
16295	;;
16296      netbsd*)
16297	;;
16298      osf3* | osf4* | osf5*)
16299	case $cc_basename in
16300	  KCC*)
16301	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16302	    ;;
16303	  RCC*)
16304	    # Rational C++ 2.4.1
16305	    lt_prog_compiler_pic_CXX='-pic'
16306	    ;;
16307	  cxx*)
16308	    # Digital/Compaq C++
16309	    lt_prog_compiler_wl_CXX='-Wl,'
16310	    # Make sure the PIC flag is empty.  It appears that all Alpha
16311	    # Linux and Compaq Tru64 Unix objects are PIC.
16312	    lt_prog_compiler_pic_CXX=
16313	    lt_prog_compiler_static_CXX='-non_shared'
16314	    ;;
16315	  *)
16316	    ;;
16317	esac
16318	;;
16319      psos*)
16320	;;
16321      solaris*)
16322	case $cc_basename in
16323	  CC*)
16324	    # Sun C++ 4.2, 5.x and Centerline C++
16325	    lt_prog_compiler_pic_CXX='-KPIC'
16326	    lt_prog_compiler_static_CXX='-Bstatic'
16327	    lt_prog_compiler_wl_CXX='-Qoption ld '
16328	    ;;
16329	  gcx*)
16330	    # Green Hills C++ Compiler
16331	    lt_prog_compiler_pic_CXX='-PIC'
16332	    ;;
16333	  *)
16334	    ;;
16335	esac
16336	;;
16337      sunos4*)
16338	case $cc_basename in
16339	  CC*)
16340	    # Sun C++ 4.x
16341	    lt_prog_compiler_pic_CXX='-pic'
16342	    lt_prog_compiler_static_CXX='-Bstatic'
16343	    ;;
16344	  lcc*)
16345	    # Lucid
16346	    lt_prog_compiler_pic_CXX='-pic'
16347	    ;;
16348	  *)
16349	    ;;
16350	esac
16351	;;
16352      tandem*)
16353	case $cc_basename in
16354	  NCC*)
16355	    # NonStop-UX NCC 3.20
16356	    lt_prog_compiler_pic_CXX='-KPIC'
16357	    ;;
16358	  *)
16359	    ;;
16360	esac
16361	;;
16362      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16363	case $cc_basename in
16364	  CC*)
16365	    lt_prog_compiler_wl_CXX='-Wl,'
16366	    lt_prog_compiler_pic_CXX='-KPIC'
16367	    lt_prog_compiler_static_CXX='-Bstatic'
16368	    ;;
16369	esac
16370	;;
16371      vxworks*)
16372	;;
16373      *)
16374	lt_prog_compiler_can_build_shared_CXX=no
16375	;;
16376    esac
16377  fi
16378
16379echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16380echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16381
16382#
16383# Check to make sure the PIC flag actually works.
16384#
16385if test -n "$lt_prog_compiler_pic_CXX"; then
16386
16387echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16388echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16389if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16390  echo $ECHO_N "(cached) $ECHO_C" >&6
16391else
16392  lt_prog_compiler_pic_works_CXX=no
16393  ac_outfile=conftest.$ac_objext
16394   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16395   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16396   # Insert the option either (1) after the last *FLAGS variable, or
16397   # (2) before a word containing "conftest.", or (3) at the end.
16398   # Note that $ac_compile itself does not contain backslashes and begins
16399   # with a dollar sign (not a hyphen), so the echo should work correctly.
16400   # The option is referenced via a variable to avoid confusing sed.
16401   lt_compile=`echo "$ac_compile" | $SED \
16402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16404   -e 's:$: $lt_compiler_flag:'`
16405   (eval echo "\"\$as_me:16405: $lt_compile\"" >&5)
16406   (eval "$lt_compile" 2>conftest.err)
16407   ac_status=$?
16408   cat conftest.err >&5
16409   echo "$as_me:16409: \$? = $ac_status" >&5
16410   if (exit $ac_status) && test -s "$ac_outfile"; then
16411     # The compiler can only warn and ignore the option if not recognized
16412     # So say no if there are warnings other than the usual output.
16413     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16414     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16415     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16416       lt_prog_compiler_pic_works_CXX=yes
16417     fi
16418   fi
16419   $rm conftest*
16420
16421fi
16422echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16423echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16424
16425if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16426    case $lt_prog_compiler_pic_CXX in
16427     "" | " "*) ;;
16428     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16429     esac
16430else
16431    lt_prog_compiler_pic_CXX=
16432     lt_prog_compiler_can_build_shared_CXX=no
16433fi
16434
16435fi
16436case $host_os in
16437  # For platforms which do not support PIC, -DPIC is meaningless:
16438  *djgpp*)
16439    lt_prog_compiler_pic_CXX=
16440    ;;
16441  *)
16442    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16443    ;;
16444esac
16445
16446#
16447# Check to make sure the static flag actually works.
16448#
16449wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16450echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16451echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16452if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
16453  echo $ECHO_N "(cached) $ECHO_C" >&6
16454else
16455  lt_prog_compiler_static_works_CXX=no
16456   save_LDFLAGS="$LDFLAGS"
16457   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16458   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16459   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16460     # The linker can only warn and ignore the option if not recognized
16461     # So say no if there are warnings
16462     if test -s conftest.err; then
16463       # Append any errors to the config.log.
16464       cat conftest.err 1>&5
16465       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16466       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16467       if diff conftest.exp conftest.er2 >/dev/null; then
16468         lt_prog_compiler_static_works_CXX=yes
16469       fi
16470     else
16471       lt_prog_compiler_static_works_CXX=yes
16472     fi
16473   fi
16474   $rm conftest*
16475   LDFLAGS="$save_LDFLAGS"
16476
16477fi
16478echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
16479echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
16480
16481if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
16482    :
16483else
16484    lt_prog_compiler_static_CXX=
16485fi
16486
16487
16488echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16489echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16490if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16491  echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493  lt_cv_prog_compiler_c_o_CXX=no
16494   $rm -r conftest 2>/dev/null
16495   mkdir conftest
16496   cd conftest
16497   mkdir out
16498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16499
16500   lt_compiler_flag="-o out/conftest2.$ac_objext"
16501   # Insert the option either (1) after the last *FLAGS variable, or
16502   # (2) before a word containing "conftest.", or (3) at the end.
16503   # Note that $ac_compile itself does not contain backslashes and begins
16504   # with a dollar sign (not a hyphen), so the echo should work correctly.
16505   lt_compile=`echo "$ac_compile" | $SED \
16506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16508   -e 's:$: $lt_compiler_flag:'`
16509   (eval echo "\"\$as_me:16509: $lt_compile\"" >&5)
16510   (eval "$lt_compile" 2>out/conftest.err)
16511   ac_status=$?
16512   cat out/conftest.err >&5
16513   echo "$as_me:16513: \$? = $ac_status" >&5
16514   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16515   then
16516     # The compiler can only warn and ignore the option if not recognized
16517     # So say no if there are warnings
16518     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16519     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16520     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16521       lt_cv_prog_compiler_c_o_CXX=yes
16522     fi
16523   fi
16524   chmod u+w . 2>&5
16525   $rm conftest*
16526   # SGI C++ compiler will create directory out/ii_files/ for
16527   # template instantiation
16528   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16529   $rm out/* && rmdir out
16530   cd ..
16531   rmdir conftest
16532   $rm conftest*
16533
16534fi
16535echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16536echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16537
16538
16539hard_links="nottested"
16540if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16541  # do not overwrite the value of need_locks provided by the user
16542  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16543echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16544  hard_links=yes
16545  $rm conftest*
16546  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16547  touch conftest.a
16548  ln conftest.a conftest.b 2>&5 || hard_links=no
16549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16550  echo "$as_me:$LINENO: result: $hard_links" >&5
16551echo "${ECHO_T}$hard_links" >&6
16552  if test "$hard_links" = no; then
16553    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16554echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16555    need_locks=warn
16556  fi
16557else
16558  need_locks=no
16559fi
16560
16561echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16562echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16563
16564  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16565  case $host_os in
16566  aix4* | aix5*)
16567    # If we're using GNU nm, then we don't want the "-C" option.
16568    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16569    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16570      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'
16571    else
16572      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'
16573    fi
16574    ;;
16575  pw32*)
16576    export_symbols_cmds_CXX="$ltdll_cmds"
16577  ;;
16578  cygwin* | mingw*)
16579    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16580  ;;
16581  *)
16582    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16583  ;;
16584  esac
16585
16586echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16587echo "${ECHO_T}$ld_shlibs_CXX" >&6
16588test "$ld_shlibs_CXX" = no && can_build_shared=no
16589
16590#
16591# Do we need to explicitly link libc?
16592#
16593case "x$archive_cmds_need_lc_CXX" in
16594x|xyes)
16595  # Assume -lc should be added
16596  archive_cmds_need_lc_CXX=yes
16597
16598  if test "$enable_shared" = yes && test "$GCC" = yes; then
16599    case $archive_cmds_CXX in
16600    *'~'*)
16601      # FIXME: we may have to deal with multi-command sequences.
16602      ;;
16603    '$CC '*)
16604      # Test whether the compiler implicitly links with -lc since on some
16605      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16606      # to ld, don't add -lc before -lgcc.
16607      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16609      $rm conftest*
16610      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16611
16612      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613  (eval $ac_compile) 2>&5
16614  ac_status=$?
16615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616  (exit $ac_status); } 2>conftest.err; then
16617        soname=conftest
16618        lib=conftest
16619        libobjs=conftest.$ac_objext
16620        deplibs=
16621        wl=$lt_prog_compiler_wl_CXX
16622	pic_flag=$lt_prog_compiler_pic_CXX
16623        compiler_flags=-v
16624        linker_flags=-v
16625        verstring=
16626        output_objdir=.
16627        libname=conftest
16628        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16629        allow_undefined_flag_CXX=
16630        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16631  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16632  ac_status=$?
16633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634  (exit $ac_status); }
16635        then
16636	  archive_cmds_need_lc_CXX=no
16637        else
16638	  archive_cmds_need_lc_CXX=yes
16639        fi
16640        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16641      else
16642        cat conftest.err 1>&5
16643      fi
16644      $rm conftest*
16645      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16646echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16647      ;;
16648    esac
16649  fi
16650  ;;
16651esac
16652
16653echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16654echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16655library_names_spec=
16656libname_spec='lib$name'
16657soname_spec=
16658shrext_cmds=".so"
16659postinstall_cmds=
16660postuninstall_cmds=
16661finish_cmds=
16662finish_eval=
16663shlibpath_var=
16664shlibpath_overrides_runpath=unknown
16665version_type=none
16666dynamic_linker="$host_os ld.so"
16667sys_lib_dlsearch_path_spec="/lib /usr/lib"
16668if test "$GCC" = yes; then
16669  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16670  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16671    # if the path contains ";" then we assume it to be the separator
16672    # otherwise default to the standard path separator (i.e. ":") - it is
16673    # assumed that no part of a normal pathname contains ";" but that should
16674    # okay in the real world where ";" in dirpaths is itself problematic.
16675    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16676  else
16677    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16678  fi
16679else
16680  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16681fi
16682need_lib_prefix=unknown
16683hardcode_into_libs=no
16684
16685# when you set need_version to no, make sure it does not cause -set_version
16686# flags to be left without arguments
16687need_version=unknown
16688
16689case $host_os in
16690aix3*)
16691  version_type=linux
16692  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16693  shlibpath_var=LIBPATH
16694
16695  # AIX 3 has no versioning support, so we append a major version to the name.
16696  soname_spec='${libname}${release}${shared_ext}$major'
16697  ;;
16698
16699aix4* | aix5*)
16700  version_type=linux
16701  need_lib_prefix=no
16702  need_version=no
16703  hardcode_into_libs=yes
16704  if test "$host_cpu" = ia64; then
16705    # AIX 5 supports IA64
16706    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16707    shlibpath_var=LD_LIBRARY_PATH
16708  else
16709    # With GCC up to 2.95.x, collect2 would create an import file
16710    # for dependence libraries.  The import file would start with
16711    # the line `#! .'.  This would cause the generated library to
16712    # depend on `.', always an invalid library.  This was fixed in
16713    # development snapshots of GCC prior to 3.0.
16714    case $host_os in
16715      aix4 | aix4.[01] | aix4.[01].*)
16716      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16717	   echo ' yes '
16718	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16719	:
16720      else
16721	can_build_shared=no
16722      fi
16723      ;;
16724    esac
16725    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16726    # soname into executable. Probably we can add versioning support to
16727    # collect2, so additional links can be useful in future.
16728    if test "$aix_use_runtimelinking" = yes; then
16729      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16730      # instead of lib<name>.a to let people know that these are not
16731      # typical AIX shared libraries.
16732      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733    else
16734      # We preserve .a as extension for shared libraries through AIX4.2
16735      # and later when we are not doing run time linking.
16736      library_names_spec='${libname}${release}.a $libname.a'
16737      soname_spec='${libname}${release}${shared_ext}$major'
16738    fi
16739    shlibpath_var=LIBPATH
16740  fi
16741  ;;
16742
16743amigaos*)
16744  library_names_spec='$libname.ixlibrary $libname.a'
16745  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16746  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'
16747  ;;
16748
16749beos*)
16750  library_names_spec='${libname}${shared_ext}'
16751  dynamic_linker="$host_os ld.so"
16752  shlibpath_var=LIBRARY_PATH
16753  ;;
16754
16755bsdi[45]*)
16756  version_type=linux
16757  need_version=no
16758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759  soname_spec='${libname}${release}${shared_ext}$major'
16760  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16761  shlibpath_var=LD_LIBRARY_PATH
16762  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16763  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16764  # the default ld.so.conf also contains /usr/contrib/lib and
16765  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16766  # libtool to hard-code these into programs
16767  ;;
16768
16769cygwin* | mingw* | pw32*)
16770  version_type=windows
16771  shrext_cmds=".dll"
16772  need_version=no
16773  need_lib_prefix=no
16774
16775  case $GCC,$host_os in
16776  yes,cygwin* | yes,mingw* | yes,pw32*)
16777    library_names_spec='$libname.dll.a'
16778    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16779    postinstall_cmds='base_file=`basename \${file}`~
16780      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16781      dldir=$destdir/`dirname \$dlpath`~
16782      test -d \$dldir || mkdir -p \$dldir~
16783      $install_prog $dir/$dlname \$dldir/$dlname~
16784      chmod a+x \$dldir/$dlname'
16785    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16786      dlpath=$dir/\$dldll~
16787       $rm \$dlpath'
16788    shlibpath_overrides_runpath=yes
16789
16790    case $host_os in
16791    cygwin*)
16792      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16793      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16794      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16795      ;;
16796    mingw*)
16797      # MinGW DLLs use traditional 'lib' prefix
16798      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16799      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16800      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16801        # It is most probably a Windows format PATH printed by
16802        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16803        # path with ; separators, and with drive letters. We can handle the
16804        # drive letters (cygwin fileutils understands them), so leave them,
16805        # especially as we might pass files found there to a mingw objdump,
16806        # which wouldn't understand a cygwinified path. Ahh.
16807        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16808      else
16809        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16810      fi
16811      ;;
16812    pw32*)
16813      # pw32 DLLs use 'pw' prefix rather than 'lib'
16814      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16815      ;;
16816    esac
16817    ;;
16818
16819  *)
16820    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16821    ;;
16822  esac
16823  dynamic_linker='Win32 ld.exe'
16824  # FIXME: first we should search . and the directory the executable is in
16825  shlibpath_var=PATH
16826  ;;
16827
16828darwin* | rhapsody*)
16829  dynamic_linker="$host_os dyld"
16830  version_type=darwin
16831  need_lib_prefix=no
16832  need_version=no
16833  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16834  soname_spec='${libname}${release}${major}$shared_ext'
16835  shlibpath_overrides_runpath=yes
16836  shlibpath_var=DYLD_LIBRARY_PATH
16837  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16838  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16839  if test "$GCC" = yes; then
16840    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"`
16841  else
16842    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16843  fi
16844  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16845  ;;
16846
16847dgux*)
16848  version_type=linux
16849  need_lib_prefix=no
16850  need_version=no
16851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16852  soname_spec='${libname}${release}${shared_ext}$major'
16853  shlibpath_var=LD_LIBRARY_PATH
16854  ;;
16855
16856freebsd1*)
16857  dynamic_linker=no
16858  ;;
16859
16860kfreebsd*-gnu)
16861  version_type=linux
16862  need_lib_prefix=no
16863  need_version=no
16864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16865  soname_spec='${libname}${release}${shared_ext}$major'
16866  shlibpath_var=LD_LIBRARY_PATH
16867  shlibpath_overrides_runpath=no
16868  hardcode_into_libs=yes
16869  dynamic_linker='GNU ld.so'
16870  ;;
16871
16872freebsd* | dragonfly*)
16873  # DragonFly does not have aout.  When/if they implement a new
16874  # versioning mechanism, adjust this.
16875  if test -x /usr/bin/objformat; then
16876    objformat=`/usr/bin/objformat`
16877  else
16878    case $host_os in
16879    freebsd[123]*) objformat=aout ;;
16880    *) objformat=elf ;;
16881    esac
16882  fi
16883  version_type=freebsd-$objformat
16884  case $version_type in
16885    freebsd-elf*)
16886      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16887      need_version=no
16888      need_lib_prefix=no
16889      ;;
16890    freebsd-*)
16891      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16892      need_version=yes
16893      ;;
16894  esac
16895  shlibpath_var=LD_LIBRARY_PATH
16896  case $host_os in
16897  freebsd2*)
16898    shlibpath_overrides_runpath=yes
16899    ;;
16900  freebsd3.[01]* | freebsdelf3.[01]*)
16901    shlibpath_overrides_runpath=yes
16902    hardcode_into_libs=yes
16903    ;;
16904  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16905  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16906    shlibpath_overrides_runpath=no
16907    hardcode_into_libs=yes
16908    ;;
16909  freebsd*) # from 4.6 on
16910    shlibpath_overrides_runpath=yes
16911    hardcode_into_libs=yes
16912    ;;
16913  esac
16914  ;;
16915
16916gnu*)
16917  version_type=linux
16918  need_lib_prefix=no
16919  need_version=no
16920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16921  soname_spec='${libname}${release}${shared_ext}$major'
16922  shlibpath_var=LD_LIBRARY_PATH
16923  hardcode_into_libs=yes
16924  ;;
16925
16926hpux9* | hpux10* | hpux11*)
16927  # Give a soname corresponding to the major version so that dld.sl refuses to
16928  # link against other versions.
16929  version_type=sunos
16930  need_lib_prefix=no
16931  need_version=no
16932  case $host_cpu in
16933  ia64*)
16934    shrext_cmds='.so'
16935    hardcode_into_libs=yes
16936    dynamic_linker="$host_os dld.so"
16937    shlibpath_var=LD_LIBRARY_PATH
16938    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940    soname_spec='${libname}${release}${shared_ext}$major'
16941    if test "X$HPUX_IA64_MODE" = X32; then
16942      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16943    else
16944      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16945    fi
16946    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16947    ;;
16948   hppa*64*)
16949     shrext_cmds='.sl'
16950     hardcode_into_libs=yes
16951     dynamic_linker="$host_os dld.sl"
16952     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16953     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955     soname_spec='${libname}${release}${shared_ext}$major'
16956     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16958     ;;
16959   *)
16960    shrext_cmds='.sl'
16961    dynamic_linker="$host_os dld.sl"
16962    shlibpath_var=SHLIB_PATH
16963    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16964    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965    soname_spec='${libname}${release}${shared_ext}$major'
16966    ;;
16967  esac
16968  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16969  postinstall_cmds='chmod 555 $lib'
16970  ;;
16971
16972interix3*)
16973  version_type=linux
16974  need_lib_prefix=no
16975  need_version=no
16976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16977  soname_spec='${libname}${release}${shared_ext}$major'
16978  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16979  shlibpath_var=LD_LIBRARY_PATH
16980  shlibpath_overrides_runpath=no
16981  hardcode_into_libs=yes
16982  ;;
16983
16984irix5* | irix6* | nonstopux*)
16985  case $host_os in
16986    nonstopux*) version_type=nonstopux ;;
16987    *)
16988	if test "$lt_cv_prog_gnu_ld" = yes; then
16989		version_type=linux
16990	else
16991		version_type=irix
16992	fi ;;
16993  esac
16994  need_lib_prefix=no
16995  need_version=no
16996  soname_spec='${libname}${release}${shared_ext}$major'
16997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16998  case $host_os in
16999  irix5* | nonstopux*)
17000    libsuff= shlibsuff=
17001    ;;
17002  *)
17003    case $LD in # libtool.m4 will add one of these switches to LD
17004    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17005      libsuff= shlibsuff= libmagic=32-bit;;
17006    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17007      libsuff=32 shlibsuff=N32 libmagic=N32;;
17008    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17009      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17010    *) libsuff= shlibsuff= libmagic=never-match;;
17011    esac
17012    ;;
17013  esac
17014  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17015  shlibpath_overrides_runpath=no
17016  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17017  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17018  hardcode_into_libs=yes
17019  ;;
17020
17021# No shared lib support for Linux oldld, aout, or coff.
17022linux*oldld* | linux*aout* | linux*coff*)
17023  dynamic_linker=no
17024  ;;
17025
17026# This must be Linux ELF.
17027linux*)
17028  version_type=linux
17029  need_lib_prefix=no
17030  need_version=no
17031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17032  soname_spec='${libname}${release}${shared_ext}$major'
17033  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17034  shlibpath_var=LD_LIBRARY_PATH
17035  shlibpath_overrides_runpath=no
17036  # This implies no fast_install, which is unacceptable.
17037  # Some rework will be needed to allow for fast_install
17038  # before this can be enabled.
17039  hardcode_into_libs=yes
17040
17041  # find out which ABI we are using
17042  libsuff=
17043  case "$host_cpu" in
17044  x86_64*|s390x*|powerpc64*)
17045    echo '#line 17045 "configure"' > conftest.$ac_ext
17046    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047  (eval $ac_compile) 2>&5
17048  ac_status=$?
17049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050  (exit $ac_status); }; then
17051      case `/usr/bin/file conftest.$ac_objext` in
17052      *64-bit*)
17053        libsuff=64
17054        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17055        ;;
17056      esac
17057    fi
17058    rm -rf conftest*
17059    ;;
17060  esac
17061
17062  # Append ld.so.conf contents to the search path
17063  if test -f /etc/ld.so.conf; then
17064    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17065    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17066  fi
17067
17068  # We used to test for /lib/ld.so.1 and disable shared libraries on
17069  # powerpc, because MkLinux only supported shared libraries with the
17070  # GNU dynamic linker.  Since this was broken with cross compilers,
17071  # most powerpc-linux boxes support dynamic linking these days and
17072  # people can always --disable-shared, the test was removed, and we
17073  # assume the GNU/Linux dynamic linker is in use.
17074  dynamic_linker='GNU/Linux ld.so'
17075  ;;
17076
17077knetbsd*-gnu)
17078  version_type=linux
17079  need_lib_prefix=no
17080  need_version=no
17081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17082  soname_spec='${libname}${release}${shared_ext}$major'
17083  shlibpath_var=LD_LIBRARY_PATH
17084  shlibpath_overrides_runpath=no
17085  hardcode_into_libs=yes
17086  dynamic_linker='GNU ld.so'
17087  ;;
17088
17089netbsd*)
17090  version_type=sunos
17091  need_lib_prefix=no
17092  need_version=no
17093  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17095    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17096    dynamic_linker='NetBSD (a.out) ld.so'
17097  else
17098    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17099    soname_spec='${libname}${release}${shared_ext}$major'
17100    dynamic_linker='NetBSD ld.elf_so'
17101  fi
17102  shlibpath_var=LD_LIBRARY_PATH
17103  shlibpath_overrides_runpath=yes
17104  hardcode_into_libs=yes
17105  ;;
17106
17107newsos6)
17108  version_type=linux
17109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17110  shlibpath_var=LD_LIBRARY_PATH
17111  shlibpath_overrides_runpath=yes
17112  ;;
17113
17114nto-qnx*)
17115  version_type=linux
17116  need_lib_prefix=no
17117  need_version=no
17118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119  soname_spec='${libname}${release}${shared_ext}$major'
17120  shlibpath_var=LD_LIBRARY_PATH
17121  shlibpath_overrides_runpath=yes
17122  ;;
17123
17124openbsd*)
17125  version_type=sunos
17126  sys_lib_dlsearch_path_spec="/usr/lib"
17127  need_lib_prefix=no
17128  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17129  case $host_os in
17130    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17131    *)                         need_version=no  ;;
17132  esac
17133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17134  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17135  shlibpath_var=LD_LIBRARY_PATH
17136  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17137    case $host_os in
17138      openbsd2.[89] | openbsd2.[89].*)
17139	shlibpath_overrides_runpath=no
17140	;;
17141      *)
17142	shlibpath_overrides_runpath=yes
17143	;;
17144      esac
17145  else
17146    shlibpath_overrides_runpath=yes
17147  fi
17148  ;;
17149
17150os2*)
17151  libname_spec='$name'
17152  shrext_cmds=".dll"
17153  need_lib_prefix=no
17154  library_names_spec='$libname${shared_ext} $libname.a'
17155  dynamic_linker='OS/2 ld.exe'
17156  shlibpath_var=LIBPATH
17157  ;;
17158
17159osf3* | osf4* | osf5*)
17160  version_type=osf
17161  need_lib_prefix=no
17162  need_version=no
17163  soname_spec='${libname}${release}${shared_ext}$major'
17164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165  shlibpath_var=LD_LIBRARY_PATH
17166  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17167  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17168  ;;
17169
17170solaris*)
17171  version_type=linux
17172  need_lib_prefix=no
17173  need_version=no
17174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175  soname_spec='${libname}${release}${shared_ext}$major'
17176  shlibpath_var=LD_LIBRARY_PATH
17177  shlibpath_overrides_runpath=yes
17178  hardcode_into_libs=yes
17179  # ldd complains unless libraries are executable
17180  postinstall_cmds='chmod +x $lib'
17181  ;;
17182
17183sunos4*)
17184  version_type=sunos
17185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17186  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17187  shlibpath_var=LD_LIBRARY_PATH
17188  shlibpath_overrides_runpath=yes
17189  if test "$with_gnu_ld" = yes; then
17190    need_lib_prefix=no
17191  fi
17192  need_version=yes
17193  ;;
17194
17195sysv4 | sysv4.3*)
17196  version_type=linux
17197  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198  soname_spec='${libname}${release}${shared_ext}$major'
17199  shlibpath_var=LD_LIBRARY_PATH
17200  case $host_vendor in
17201    sni)
17202      shlibpath_overrides_runpath=no
17203      need_lib_prefix=no
17204      export_dynamic_flag_spec='${wl}-Blargedynsym'
17205      runpath_var=LD_RUN_PATH
17206      ;;
17207    siemens)
17208      need_lib_prefix=no
17209      ;;
17210    motorola)
17211      need_lib_prefix=no
17212      need_version=no
17213      shlibpath_overrides_runpath=no
17214      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17215      ;;
17216  esac
17217  ;;
17218
17219sysv4*MP*)
17220  if test -d /usr/nec ;then
17221    version_type=linux
17222    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17223    soname_spec='$libname${shared_ext}.$major'
17224    shlibpath_var=LD_LIBRARY_PATH
17225  fi
17226  ;;
17227
17228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17229  version_type=freebsd-elf
17230  need_lib_prefix=no
17231  need_version=no
17232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17233  soname_spec='${libname}${release}${shared_ext}$major'
17234  shlibpath_var=LD_LIBRARY_PATH
17235  hardcode_into_libs=yes
17236  if test "$with_gnu_ld" = yes; then
17237    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17238    shlibpath_overrides_runpath=no
17239  else
17240    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17241    shlibpath_overrides_runpath=yes
17242    case $host_os in
17243      sco3.2v5*)
17244        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17245	;;
17246    esac
17247  fi
17248  sys_lib_dlsearch_path_spec='/usr/lib'
17249  ;;
17250
17251uts4*)
17252  version_type=linux
17253  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254  soname_spec='${libname}${release}${shared_ext}$major'
17255  shlibpath_var=LD_LIBRARY_PATH
17256  ;;
17257
17258*)
17259  dynamic_linker=no
17260  ;;
17261esac
17262echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17263echo "${ECHO_T}$dynamic_linker" >&6
17264test "$dynamic_linker" = no && can_build_shared=no
17265
17266variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17267if test "$GCC" = yes; then
17268  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17269fi
17270
17271echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17272echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17273hardcode_action_CXX=
17274if test -n "$hardcode_libdir_flag_spec_CXX" || \
17275   test -n "$runpath_var_CXX" || \
17276   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17277
17278  # We can hardcode non-existant directories.
17279  if test "$hardcode_direct_CXX" != no &&
17280     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17281     # have to relink, otherwise we might link with an installed library
17282     # when we should be linking with a yet-to-be-installed one
17283     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17284     test "$hardcode_minus_L_CXX" != no; then
17285    # Linking always hardcodes the temporary library directory.
17286    hardcode_action_CXX=relink
17287  else
17288    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17289    hardcode_action_CXX=immediate
17290  fi
17291else
17292  # We cannot hardcode anything, or else we can only hardcode existing
17293  # directories.
17294  hardcode_action_CXX=unsupported
17295fi
17296echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17297echo "${ECHO_T}$hardcode_action_CXX" >&6
17298
17299if test "$hardcode_action_CXX" = relink; then
17300  # Fast installation is not supported
17301  enable_fast_install=no
17302elif test "$shlibpath_overrides_runpath" = yes ||
17303     test "$enable_shared" = no; then
17304  # Fast installation is not necessary
17305  enable_fast_install=needless
17306fi
17307
17308
17309# The else clause should only fire when bootstrapping the
17310# libtool distribution, otherwise you forgot to ship ltmain.sh
17311# with your package, and you will get complaints that there are
17312# no rules to generate ltmain.sh.
17313if test -f "$ltmain"; then
17314  # See if we are running on zsh, and set the options which allow our commands through
17315  # without removal of \ escapes.
17316  if test -n "${ZSH_VERSION+set}" ; then
17317    setopt NO_GLOB_SUBST
17318  fi
17319  # Now quote all the things that may contain metacharacters while being
17320  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17321  # variables and quote the copies for generation of the libtool script.
17322  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17323    SED SHELL STRIP \
17324    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17325    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17326    deplibs_check_method reload_flag reload_cmds need_locks \
17327    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17328    lt_cv_sys_global_symbol_to_c_name_address \
17329    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17330    old_postinstall_cmds old_postuninstall_cmds \
17331    compiler_CXX \
17332    CC_CXX \
17333    LD_CXX \
17334    lt_prog_compiler_wl_CXX \
17335    lt_prog_compiler_pic_CXX \
17336    lt_prog_compiler_static_CXX \
17337    lt_prog_compiler_no_builtin_flag_CXX \
17338    export_dynamic_flag_spec_CXX \
17339    thread_safe_flag_spec_CXX \
17340    whole_archive_flag_spec_CXX \
17341    enable_shared_with_static_runtimes_CXX \
17342    old_archive_cmds_CXX \
17343    old_archive_from_new_cmds_CXX \
17344    predep_objects_CXX \
17345    postdep_objects_CXX \
17346    predeps_CXX \
17347    postdeps_CXX \
17348    compiler_lib_search_path_CXX \
17349    archive_cmds_CXX \
17350    archive_expsym_cmds_CXX \
17351    postinstall_cmds_CXX \
17352    postuninstall_cmds_CXX \
17353    old_archive_from_expsyms_cmds_CXX \
17354    allow_undefined_flag_CXX \
17355    no_undefined_flag_CXX \
17356    export_symbols_cmds_CXX \
17357    hardcode_libdir_flag_spec_CXX \
17358    hardcode_libdir_flag_spec_ld_CXX \
17359    hardcode_libdir_separator_CXX \
17360    hardcode_automatic_CXX \
17361    module_cmds_CXX \
17362    module_expsym_cmds_CXX \
17363    lt_cv_prog_compiler_c_o_CXX \
17364    exclude_expsyms_CXX \
17365    include_expsyms_CXX; do
17366
17367    case $var in
17368    old_archive_cmds_CXX | \
17369    old_archive_from_new_cmds_CXX | \
17370    archive_cmds_CXX | \
17371    archive_expsym_cmds_CXX | \
17372    module_cmds_CXX | \
17373    module_expsym_cmds_CXX | \
17374    old_archive_from_expsyms_cmds_CXX | \
17375    export_symbols_cmds_CXX | \
17376    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17377    postinstall_cmds | postuninstall_cmds | \
17378    old_postinstall_cmds | old_postuninstall_cmds | \
17379    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17380      # Double-quote double-evaled strings.
17381      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17382      ;;
17383    *)
17384      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17385      ;;
17386    esac
17387  done
17388
17389  case $lt_echo in
17390  *'\$0 --fallback-echo"')
17391    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17392    ;;
17393  esac
17394
17395cfgfile="$ofile"
17396
17397  cat <<__EOF__ >> "$cfgfile"
17398# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17399
17400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17401
17402# Shell to use when invoking shell scripts.
17403SHELL=$lt_SHELL
17404
17405# Whether or not to build shared libraries.
17406build_libtool_libs=$enable_shared
17407
17408# Whether or not to build static libraries.
17409build_old_libs=$enable_static
17410
17411# Whether or not to add -lc for building shared libraries.
17412build_libtool_need_lc=$archive_cmds_need_lc_CXX
17413
17414# Whether or not to disallow shared libs when runtime libs are static
17415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17416
17417# Whether or not to optimize for fast installation.
17418fast_install=$enable_fast_install
17419
17420# The host system.
17421host_alias=$host_alias
17422host=$host
17423host_os=$host_os
17424
17425# The build system.
17426build_alias=$build_alias
17427build=$build
17428build_os=$build_os
17429
17430# An echo program that does not interpret backslashes.
17431echo=$lt_echo
17432
17433# The archiver.
17434AR=$lt_AR
17435AR_FLAGS=$lt_AR_FLAGS
17436
17437# A C compiler.
17438LTCC=$lt_LTCC
17439
17440# LTCC compiler flags.
17441LTCFLAGS=$lt_LTCFLAGS
17442
17443# A language-specific compiler.
17444CC=$lt_compiler_CXX
17445
17446# Is the compiler the GNU C compiler?
17447with_gcc=$GCC_CXX
17448
17449gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17450gcc_ver=\`gcc -dumpversion\`
17451
17452# An ERE matcher.
17453EGREP=$lt_EGREP
17454
17455# The linker used to build libraries.
17456LD=$lt_LD_CXX
17457
17458# Whether we need hard or soft links.
17459LN_S=$lt_LN_S
17460
17461# A BSD-compatible nm program.
17462NM=$lt_NM
17463
17464# A symbol stripping program
17465STRIP=$lt_STRIP
17466
17467# Used to examine libraries when file_magic_cmd begins "file"
17468MAGIC_CMD=$MAGIC_CMD
17469
17470# Used on cygwin: DLL creation program.
17471DLLTOOL="$DLLTOOL"
17472
17473# Used on cygwin: object dumper.
17474OBJDUMP="$OBJDUMP"
17475
17476# Used on cygwin: assembler.
17477AS="$AS"
17478
17479# The name of the directory that contains temporary libtool files.
17480objdir=$objdir
17481
17482# How to create reloadable object files.
17483reload_flag=$lt_reload_flag
17484reload_cmds=$lt_reload_cmds
17485
17486# How to pass a linker flag through the compiler.
17487wl=$lt_lt_prog_compiler_wl_CXX
17488
17489# Object file suffix (normally "o").
17490objext="$ac_objext"
17491
17492# Old archive suffix (normally "a").
17493libext="$libext"
17494
17495# Shared library suffix (normally ".so").
17496shrext_cmds='$shrext_cmds'
17497
17498# Executable file suffix (normally "").
17499exeext="$exeext"
17500
17501# Additional compiler flags for building library objects.
17502pic_flag=$lt_lt_prog_compiler_pic_CXX
17503pic_mode=$pic_mode
17504
17505# What is the maximum length of a command?
17506max_cmd_len=$lt_cv_sys_max_cmd_len
17507
17508# Does compiler simultaneously support -c and -o options?
17509compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17510
17511# Must we lock files when doing compilation?
17512need_locks=$lt_need_locks
17513
17514# Do we need the lib prefix for modules?
17515need_lib_prefix=$need_lib_prefix
17516
17517# Do we need a version for libraries?
17518need_version=$need_version
17519
17520# Whether dlopen is supported.
17521dlopen_support=$enable_dlopen
17522
17523# Whether dlopen of programs is supported.
17524dlopen_self=$enable_dlopen_self
17525
17526# Whether dlopen of statically linked programs is supported.
17527dlopen_self_static=$enable_dlopen_self_static
17528
17529# Compiler flag to prevent dynamic linking.
17530link_static_flag=$lt_lt_prog_compiler_static_CXX
17531
17532# Compiler flag to turn off builtin functions.
17533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17534
17535# Compiler flag to allow reflexive dlopens.
17536export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17537
17538# Compiler flag to generate shared objects directly from archives.
17539whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17540
17541# Compiler flag to generate thread-safe objects.
17542thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17543
17544# Library versioning type.
17545version_type=$version_type
17546
17547# Format of library name prefix.
17548libname_spec=$lt_libname_spec
17549
17550# List of archive names.  First name is the real one, the rest are links.
17551# The last name is the one that the linker finds with -lNAME.
17552library_names_spec=$lt_library_names_spec
17553
17554# The coded name of the library, if different from the real name.
17555soname_spec=$lt_soname_spec
17556
17557# Commands used to build and install an old-style archive.
17558RANLIB=$lt_RANLIB
17559old_archive_cmds=$lt_old_archive_cmds_CXX
17560old_postinstall_cmds=$lt_old_postinstall_cmds
17561old_postuninstall_cmds=$lt_old_postuninstall_cmds
17562
17563# Create an old-style archive from a shared archive.
17564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17565
17566# Create a temporary old-style archive to link instead of a shared archive.
17567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17568
17569# Commands used to build and install a shared archive.
17570archive_cmds=$lt_archive_cmds_CXX
17571archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17572postinstall_cmds=$lt_postinstall_cmds
17573postuninstall_cmds=$lt_postuninstall_cmds
17574
17575# Commands used to build a loadable module (assumed same as above if empty)
17576module_cmds=$lt_module_cmds_CXX
17577module_expsym_cmds=$lt_module_expsym_cmds_CXX
17578
17579# Commands to strip libraries.
17580old_striplib=$lt_old_striplib
17581striplib=$lt_striplib
17582
17583# Dependencies to place before the objects being linked to create a
17584# shared library.
17585predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17586
17587# Dependencies to place after the objects being linked to create a
17588# shared library.
17589postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17590
17591# Dependencies to place before the objects being linked to create a
17592# shared library.
17593predeps=$lt_predeps_CXX
17594
17595# Dependencies to place after the objects being linked to create a
17596# shared library.
17597postdeps=$lt_postdeps_CXX
17598
17599# The library search path used internally by the compiler when linking
17600# a shared library.
17601compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17602
17603# Method to check whether dependent libraries are shared objects.
17604deplibs_check_method=$lt_deplibs_check_method
17605
17606# Command to use when deplibs_check_method == file_magic.
17607file_magic_cmd=$lt_file_magic_cmd
17608
17609# Flag that allows shared libraries with undefined symbols to be built.
17610allow_undefined_flag=$lt_allow_undefined_flag_CXX
17611
17612# Flag that forces no undefined symbols.
17613no_undefined_flag=$lt_no_undefined_flag_CXX
17614
17615# Commands used to finish a libtool library installation in a directory.
17616finish_cmds=$lt_finish_cmds
17617
17618# Same as above, but a single script fragment to be evaled but not shown.
17619finish_eval=$lt_finish_eval
17620
17621# Take the output of nm and produce a listing of raw symbols and C names.
17622global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17623
17624# Transform the output of nm in a proper C declaration
17625global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17626
17627# Transform the output of nm in a C name address pair
17628global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17629
17630# This is the shared library runtime path variable.
17631runpath_var=$runpath_var
17632
17633# This is the shared library path variable.
17634shlibpath_var=$shlibpath_var
17635
17636# Is shlibpath searched before the hard-coded library search path?
17637shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17638
17639# How to hardcode a shared library path into an executable.
17640hardcode_action=$hardcode_action_CXX
17641
17642# Whether we should hardcode library paths into libraries.
17643hardcode_into_libs=$hardcode_into_libs
17644
17645# Flag to hardcode \$libdir into a binary during linking.
17646# This must work even if \$libdir does not exist.
17647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17648
17649# If ld is used when linking, flag to hardcode \$libdir into
17650# a binary during linking. This must work even if \$libdir does
17651# not exist.
17652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17653
17654# Whether we need a single -rpath flag with a separated argument.
17655hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17656
17657# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17658# resulting binary.
17659hardcode_direct=$hardcode_direct_CXX
17660
17661# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17662# resulting binary.
17663hardcode_minus_L=$hardcode_minus_L_CXX
17664
17665# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17666# the resulting binary.
17667hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17668
17669# Set to yes if building a shared library automatically hardcodes DIR into the library
17670# and all subsequent libraries and executables linked against it.
17671hardcode_automatic=$hardcode_automatic_CXX
17672
17673# Variables whose values should be saved in libtool wrapper scripts and
17674# restored at relink time.
17675variables_saved_for_relink="$variables_saved_for_relink"
17676
17677# Whether libtool must link a program against all its dependency libraries.
17678link_all_deplibs=$link_all_deplibs_CXX
17679
17680# Compile-time system search path for libraries
17681sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17682
17683# Run-time system search path for libraries
17684sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17685
17686# Fix the shell variable \$srcfile for the compiler.
17687fix_srcfile_path="$fix_srcfile_path_CXX"
17688
17689# Set to yes if exported symbols are required.
17690always_export_symbols=$always_export_symbols_CXX
17691
17692# The commands to list exported symbols.
17693export_symbols_cmds=$lt_export_symbols_cmds_CXX
17694
17695# The commands to extract the exported symbol list from a shared archive.
17696extract_expsyms_cmds=$lt_extract_expsyms_cmds
17697
17698# Symbols that should not be listed in the preloaded symbols.
17699exclude_expsyms=$lt_exclude_expsyms_CXX
17700
17701# Symbols that must always be exported.
17702include_expsyms=$lt_include_expsyms_CXX
17703
17704# ### END LIBTOOL TAG CONFIG: $tagname
17705
17706__EOF__
17707
17708
17709else
17710  # If there is no Makefile yet, we rely on a make rule to execute
17711  # `config.status --recheck' to rerun these tests and create the
17712  # libtool script then.
17713  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17714  if test -f "$ltmain_in"; then
17715    test -f Makefile && make "$ltmain"
17716  fi
17717fi
17718
17719
17720ac_ext=c
17721ac_cpp='$CPP $CPPFLAGS'
17722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724ac_compiler_gnu=$ac_cv_c_compiler_gnu
17725
17726CC=$lt_save_CC
17727LDCXX=$LD
17728LD=$lt_save_LD
17729GCC=$lt_save_GCC
17730with_gnu_ldcxx=$with_gnu_ld
17731with_gnu_ld=$lt_save_with_gnu_ld
17732lt_cv_path_LDCXX=$lt_cv_path_LD
17733lt_cv_path_LD=$lt_save_path_LD
17734lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17735lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17736
17737	else
17738	  tagname=""
17739	fi
17740	;;
17741
17742      F77)
17743	if test -n "$F77" && test "X$F77" != "Xno"; then
17744
17745ac_ext=f
17746ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17747ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17748ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17749
17750
17751archive_cmds_need_lc_F77=no
17752allow_undefined_flag_F77=
17753always_export_symbols_F77=no
17754archive_expsym_cmds_F77=
17755export_dynamic_flag_spec_F77=
17756hardcode_direct_F77=no
17757hardcode_libdir_flag_spec_F77=
17758hardcode_libdir_flag_spec_ld_F77=
17759hardcode_libdir_separator_F77=
17760hardcode_minus_L_F77=no
17761hardcode_automatic_F77=no
17762module_cmds_F77=
17763module_expsym_cmds_F77=
17764link_all_deplibs_F77=unknown
17765old_archive_cmds_F77=$old_archive_cmds
17766no_undefined_flag_F77=
17767whole_archive_flag_spec_F77=
17768enable_shared_with_static_runtimes_F77=no
17769
17770# Source file extension for f77 test sources.
17771ac_ext=f
17772
17773# Object file extension for compiled f77 test sources.
17774objext=o
17775objext_F77=$objext
17776
17777# Code to be used in simple compile tests
17778lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
17779
17780# Code to be used in simple link tests
17781lt_simple_link_test_code="      program t\n      end\n"
17782
17783# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17784
17785# If no C compiler was specified, use CC.
17786LTCC=${LTCC-"$CC"}
17787
17788# If no C compiler flags were specified, use CFLAGS.
17789LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17790
17791# Allow CC to be a program name with arguments.
17792compiler=$CC
17793
17794
17795# save warnings/boilerplate of simple test code
17796ac_outfile=conftest.$ac_objext
17797printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17799_lt_compiler_boilerplate=`cat conftest.err`
17800$rm conftest*
17801
17802ac_outfile=conftest.$ac_objext
17803printf "$lt_simple_link_test_code" >conftest.$ac_ext
17804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17805_lt_linker_boilerplate=`cat conftest.err`
17806$rm conftest*
17807
17808
17809# Allow CC to be a program name with arguments.
17810lt_save_CC="$CC"
17811CC=${F77-"f77"}
17812compiler=$CC
17813compiler_F77=$CC
17814for cc_temp in $compiler""; do
17815  case $cc_temp in
17816    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17817    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17818    \-*) ;;
17819    *) break;;
17820  esac
17821done
17822cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17823
17824
17825echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17826echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17827echo "$as_me:$LINENO: result: $can_build_shared" >&5
17828echo "${ECHO_T}$can_build_shared" >&6
17829
17830echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17831echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17832test "$can_build_shared" = "no" && enable_shared=no
17833
17834# On AIX, shared libraries and static libraries use the same namespace, and
17835# are all built from PIC.
17836case $host_os in
17837aix3*)
17838  test "$enable_shared" = yes && enable_static=no
17839  if test -n "$RANLIB"; then
17840    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17841    postinstall_cmds='$RANLIB $lib'
17842  fi
17843  ;;
17844aix4* | aix5*)
17845  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17846    test "$enable_shared" = yes && enable_static=no
17847  fi
17848  ;;
17849esac
17850echo "$as_me:$LINENO: result: $enable_shared" >&5
17851echo "${ECHO_T}$enable_shared" >&6
17852
17853echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17854echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17855# Make sure either enable_shared or enable_static is yes.
17856test "$enable_shared" = yes || enable_static=yes
17857echo "$as_me:$LINENO: result: $enable_static" >&5
17858echo "${ECHO_T}$enable_static" >&6
17859
17860GCC_F77="$G77"
17861LD_F77="$LD"
17862
17863lt_prog_compiler_wl_F77=
17864lt_prog_compiler_pic_F77=
17865lt_prog_compiler_static_F77=
17866
17867echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17868echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17869
17870  if test "$GCC" = yes; then
17871    lt_prog_compiler_wl_F77='-Wl,'
17872    lt_prog_compiler_static_F77='-static'
17873
17874    case $host_os in
17875      aix*)
17876      # All AIX code is PIC.
17877      if test "$host_cpu" = ia64; then
17878	# AIX 5 now supports IA64 processor
17879	lt_prog_compiler_static_F77='-Bstatic'
17880      fi
17881      ;;
17882
17883    amigaos*)
17884      # FIXME: we need at least 68020 code to build shared libraries, but
17885      # adding the `-m68020' flag to GCC prevents building anything better,
17886      # like `-m68040'.
17887      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17888      ;;
17889
17890    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17891      # PIC is the default for these OSes.
17892      ;;
17893
17894    mingw* | pw32* | os2*)
17895      # This hack is so that the source file can tell whether it is being
17896      # built for inclusion in a dll (and should export symbols for example).
17897      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17898      ;;
17899
17900    darwin* | rhapsody*)
17901      # PIC is the default on this platform
17902      # Common symbols not allowed in MH_DYLIB files
17903      lt_prog_compiler_pic_F77='-fno-common'
17904      ;;
17905
17906    interix3*)
17907      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17908      # Instead, we relocate shared libraries at runtime.
17909      ;;
17910
17911    msdosdjgpp*)
17912      # Just because we use GCC doesn't mean we suddenly get shared libraries
17913      # on systems that don't support them.
17914      lt_prog_compiler_can_build_shared_F77=no
17915      enable_shared=no
17916      ;;
17917
17918    sysv4*MP*)
17919      if test -d /usr/nec; then
17920	lt_prog_compiler_pic_F77=-Kconform_pic
17921      fi
17922      ;;
17923
17924    hpux*)
17925      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17926      # not for PA HP-UX.
17927      case $host_cpu in
17928      hppa*64*|ia64*)
17929	# +Z the default
17930	;;
17931      *)
17932	lt_prog_compiler_pic_F77='-fPIC'
17933	;;
17934      esac
17935      ;;
17936
17937    *)
17938      lt_prog_compiler_pic_F77='-fPIC'
17939      ;;
17940    esac
17941  else
17942    # PORTME Check for flag to pass linker flags through the system compiler.
17943    case $host_os in
17944    aix*)
17945      lt_prog_compiler_wl_F77='-Wl,'
17946      if test "$host_cpu" = ia64; then
17947	# AIX 5 now supports IA64 processor
17948	lt_prog_compiler_static_F77='-Bstatic'
17949      else
17950	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17951      fi
17952      ;;
17953      darwin*)
17954        # PIC is the default on this platform
17955        # Common symbols not allowed in MH_DYLIB files
17956       case $cc_basename in
17957         xlc*)
17958         lt_prog_compiler_pic_F77='-qnocommon'
17959         lt_prog_compiler_wl_F77='-Wl,'
17960         ;;
17961       esac
17962       ;;
17963
17964    mingw* | pw32* | os2*)
17965      # This hack is so that the source file can tell whether it is being
17966      # built for inclusion in a dll (and should export symbols for example).
17967      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17968      ;;
17969
17970    hpux9* | hpux10* | hpux11*)
17971      lt_prog_compiler_wl_F77='-Wl,'
17972      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17973      # not for PA HP-UX.
17974      case $host_cpu in
17975      hppa*64*|ia64*)
17976	# +Z the default
17977	;;
17978      *)
17979	lt_prog_compiler_pic_F77='+Z'
17980	;;
17981      esac
17982      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17983      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17984      ;;
17985
17986    irix5* | irix6* | nonstopux*)
17987      lt_prog_compiler_wl_F77='-Wl,'
17988      # PIC (with -KPIC) is the default.
17989      lt_prog_compiler_static_F77='-non_shared'
17990      ;;
17991
17992    newsos6)
17993      lt_prog_compiler_pic_F77='-KPIC'
17994      lt_prog_compiler_static_F77='-Bstatic'
17995      ;;
17996
17997    linux*)
17998      case $cc_basename in
17999      icc* | ecc*)
18000	lt_prog_compiler_wl_F77='-Wl,'
18001	lt_prog_compiler_pic_F77='-KPIC'
18002	lt_prog_compiler_static_F77='-static'
18003        ;;
18004      pgcc* | pgf77* | pgf90* | pgf95*)
18005        # Portland Group compilers (*not* the Pentium gcc compiler,
18006	# which looks to be a dead project)
18007	lt_prog_compiler_wl_F77='-Wl,'
18008	lt_prog_compiler_pic_F77='-fpic'
18009	lt_prog_compiler_static_F77='-Bstatic'
18010        ;;
18011      ccc*)
18012        lt_prog_compiler_wl_F77='-Wl,'
18013        # All Alpha code is PIC.
18014        lt_prog_compiler_static_F77='-non_shared'
18015        ;;
18016      esac
18017      ;;
18018
18019    osf3* | osf4* | osf5*)
18020      lt_prog_compiler_wl_F77='-Wl,'
18021      # All OSF/1 code is PIC.
18022      lt_prog_compiler_static_F77='-non_shared'
18023      ;;
18024
18025    solaris*)
18026      lt_prog_compiler_pic_F77='-KPIC'
18027      lt_prog_compiler_static_F77='-Bstatic'
18028      case $cc_basename in
18029      f77* | f90* | f95*)
18030	lt_prog_compiler_wl_F77='-Qoption ld ';;
18031      *)
18032	lt_prog_compiler_wl_F77='-Wl,';;
18033      esac
18034      ;;
18035
18036    sunos4*)
18037      lt_prog_compiler_wl_F77='-Qoption ld '
18038      lt_prog_compiler_pic_F77='-PIC'
18039      lt_prog_compiler_static_F77='-Bstatic'
18040      ;;
18041
18042    sysv4 | sysv4.2uw2* | sysv4.3*)
18043      lt_prog_compiler_wl_F77='-Wl,'
18044      lt_prog_compiler_pic_F77='-KPIC'
18045      lt_prog_compiler_static_F77='-Bstatic'
18046      ;;
18047
18048    sysv4*MP*)
18049      if test -d /usr/nec ;then
18050	lt_prog_compiler_pic_F77='-Kconform_pic'
18051	lt_prog_compiler_static_F77='-Bstatic'
18052      fi
18053      ;;
18054
18055    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18056      lt_prog_compiler_wl_F77='-Wl,'
18057      lt_prog_compiler_pic_F77='-KPIC'
18058      lt_prog_compiler_static_F77='-Bstatic'
18059      ;;
18060
18061    unicos*)
18062      lt_prog_compiler_wl_F77='-Wl,'
18063      lt_prog_compiler_can_build_shared_F77=no
18064      ;;
18065
18066    uts4*)
18067      lt_prog_compiler_pic_F77='-pic'
18068      lt_prog_compiler_static_F77='-Bstatic'
18069      ;;
18070
18071    *)
18072      lt_prog_compiler_can_build_shared_F77=no
18073      ;;
18074    esac
18075  fi
18076
18077echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18078echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18079
18080#
18081# Check to make sure the PIC flag actually works.
18082#
18083if test -n "$lt_prog_compiler_pic_F77"; then
18084
18085echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18086echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18087if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18088  echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090  lt_prog_compiler_pic_works_F77=no
18091  ac_outfile=conftest.$ac_objext
18092   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18093   lt_compiler_flag="$lt_prog_compiler_pic_F77"
18094   # Insert the option either (1) after the last *FLAGS variable, or
18095   # (2) before a word containing "conftest.", or (3) at the end.
18096   # Note that $ac_compile itself does not contain backslashes and begins
18097   # with a dollar sign (not a hyphen), so the echo should work correctly.
18098   # The option is referenced via a variable to avoid confusing sed.
18099   lt_compile=`echo "$ac_compile" | $SED \
18100   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18101   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18102   -e 's:$: $lt_compiler_flag:'`
18103   (eval echo "\"\$as_me:18103: $lt_compile\"" >&5)
18104   (eval "$lt_compile" 2>conftest.err)
18105   ac_status=$?
18106   cat conftest.err >&5
18107   echo "$as_me:18107: \$? = $ac_status" >&5
18108   if (exit $ac_status) && test -s "$ac_outfile"; then
18109     # The compiler can only warn and ignore the option if not recognized
18110     # So say no if there are warnings other than the usual output.
18111     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18112     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18113     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18114       lt_prog_compiler_pic_works_F77=yes
18115     fi
18116   fi
18117   $rm conftest*
18118
18119fi
18120echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18121echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18122
18123if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18124    case $lt_prog_compiler_pic_F77 in
18125     "" | " "*) ;;
18126     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18127     esac
18128else
18129    lt_prog_compiler_pic_F77=
18130     lt_prog_compiler_can_build_shared_F77=no
18131fi
18132
18133fi
18134case $host_os in
18135  # For platforms which do not support PIC, -DPIC is meaningless:
18136  *djgpp*)
18137    lt_prog_compiler_pic_F77=
18138    ;;
18139  *)
18140    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18141    ;;
18142esac
18143
18144#
18145# Check to make sure the static flag actually works.
18146#
18147wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18148echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18149echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18150if test "${lt_prog_compiler_static_works_F77+set}" = set; then
18151  echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153  lt_prog_compiler_static_works_F77=no
18154   save_LDFLAGS="$LDFLAGS"
18155   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18156   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18157   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18158     # The linker can only warn and ignore the option if not recognized
18159     # So say no if there are warnings
18160     if test -s conftest.err; then
18161       # Append any errors to the config.log.
18162       cat conftest.err 1>&5
18163       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18164       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18165       if diff conftest.exp conftest.er2 >/dev/null; then
18166         lt_prog_compiler_static_works_F77=yes
18167       fi
18168     else
18169       lt_prog_compiler_static_works_F77=yes
18170     fi
18171   fi
18172   $rm conftest*
18173   LDFLAGS="$save_LDFLAGS"
18174
18175fi
18176echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
18177echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
18178
18179if test x"$lt_prog_compiler_static_works_F77" = xyes; then
18180    :
18181else
18182    lt_prog_compiler_static_F77=
18183fi
18184
18185
18186echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18187echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18188if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18189  echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191  lt_cv_prog_compiler_c_o_F77=no
18192   $rm -r conftest 2>/dev/null
18193   mkdir conftest
18194   cd conftest
18195   mkdir out
18196   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18197
18198   lt_compiler_flag="-o out/conftest2.$ac_objext"
18199   # Insert the option either (1) after the last *FLAGS variable, or
18200   # (2) before a word containing "conftest.", or (3) at the end.
18201   # Note that $ac_compile itself does not contain backslashes and begins
18202   # with a dollar sign (not a hyphen), so the echo should work correctly.
18203   lt_compile=`echo "$ac_compile" | $SED \
18204   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18206   -e 's:$: $lt_compiler_flag:'`
18207   (eval echo "\"\$as_me:18207: $lt_compile\"" >&5)
18208   (eval "$lt_compile" 2>out/conftest.err)
18209   ac_status=$?
18210   cat out/conftest.err >&5
18211   echo "$as_me:18211: \$? = $ac_status" >&5
18212   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18213   then
18214     # The compiler can only warn and ignore the option if not recognized
18215     # So say no if there are warnings
18216     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18217     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18218     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18219       lt_cv_prog_compiler_c_o_F77=yes
18220     fi
18221   fi
18222   chmod u+w . 2>&5
18223   $rm conftest*
18224   # SGI C++ compiler will create directory out/ii_files/ for
18225   # template instantiation
18226   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18227   $rm out/* && rmdir out
18228   cd ..
18229   rmdir conftest
18230   $rm conftest*
18231
18232fi
18233echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18234echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18235
18236
18237hard_links="nottested"
18238if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18239  # do not overwrite the value of need_locks provided by the user
18240  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18241echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18242  hard_links=yes
18243  $rm conftest*
18244  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18245  touch conftest.a
18246  ln conftest.a conftest.b 2>&5 || hard_links=no
18247  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18248  echo "$as_me:$LINENO: result: $hard_links" >&5
18249echo "${ECHO_T}$hard_links" >&6
18250  if test "$hard_links" = no; then
18251    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18252echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18253    need_locks=warn
18254  fi
18255else
18256  need_locks=no
18257fi
18258
18259echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18260echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18261
18262  runpath_var=
18263  allow_undefined_flag_F77=
18264  enable_shared_with_static_runtimes_F77=no
18265  archive_cmds_F77=
18266  archive_expsym_cmds_F77=
18267  old_archive_From_new_cmds_F77=
18268  old_archive_from_expsyms_cmds_F77=
18269  export_dynamic_flag_spec_F77=
18270  whole_archive_flag_spec_F77=
18271  thread_safe_flag_spec_F77=
18272  hardcode_libdir_flag_spec_F77=
18273  hardcode_libdir_flag_spec_ld_F77=
18274  hardcode_libdir_separator_F77=
18275  hardcode_direct_F77=no
18276  hardcode_minus_L_F77=no
18277  hardcode_shlibpath_var_F77=unsupported
18278  link_all_deplibs_F77=unknown
18279  hardcode_automatic_F77=no
18280  module_cmds_F77=
18281  module_expsym_cmds_F77=
18282  always_export_symbols_F77=no
18283  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18284  # include_expsyms should be a list of space-separated symbols to be *always*
18285  # included in the symbol list
18286  include_expsyms_F77=
18287  # exclude_expsyms can be an extended regexp of symbols to exclude
18288  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18289  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18290  # as well as any symbol that contains `d'.
18291  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18292  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18293  # platforms (ab)use it in PIC code, but their linkers get confused if
18294  # the symbol is explicitly referenced.  Since portable code cannot
18295  # rely on this symbol name, it's probably fine to never include it in
18296  # preloaded symbol tables.
18297  extract_expsyms_cmds=
18298  # Just being paranoid about ensuring that cc_basename is set.
18299  for cc_temp in $compiler""; do
18300  case $cc_temp in
18301    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18302    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18303    \-*) ;;
18304    *) break;;
18305  esac
18306done
18307cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18308
18309  case $host_os in
18310  cygwin* | mingw* | pw32*)
18311    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18312    # When not using gcc, we currently assume that we are using
18313    # Microsoft Visual C++.
18314    if test "$GCC" != yes; then
18315      with_gnu_ld=no
18316    fi
18317    ;;
18318  interix*)
18319    # we just hope/assume this is gcc and not c89 (= MSVC++)
18320    with_gnu_ld=yes
18321    ;;
18322  openbsd*)
18323    with_gnu_ld=no
18324    ;;
18325  esac
18326
18327  ld_shlibs_F77=yes
18328  if test "$with_gnu_ld" = yes; then
18329    # If archive_cmds runs LD, not CC, wlarc should be empty
18330    wlarc='${wl}'
18331
18332    # Set some defaults for GNU ld with shared library support. These
18333    # are reset later if shared libraries are not supported. Putting them
18334    # here allows them to be overridden if necessary.
18335    runpath_var=LD_RUN_PATH
18336    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
18337    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18338    # ancient GNU ld didn't support --whole-archive et. al.
18339    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18340	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18341      else
18342  	whole_archive_flag_spec_F77=
18343    fi
18344    supports_anon_versioning=no
18345    case `$LD -v 2>/dev/null` in
18346      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18347      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18348      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18349      *\ 2.11.*) ;; # other 2.11 versions
18350      *) supports_anon_versioning=yes ;;
18351    esac
18352
18353    # See if GNU ld supports shared libraries.
18354    case $host_os in
18355    aix3* | aix4* | aix5*)
18356      # On AIX/PPC, the GNU linker is very broken
18357      if test "$host_cpu" != ia64; then
18358	ld_shlibs_F77=no
18359	cat <<EOF 1>&2
18360
18361*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18362*** to be unable to reliably create shared libraries on AIX.
18363*** Therefore, libtool is disabling shared libraries support.  If you
18364*** really care for shared libraries, you may want to modify your PATH
18365*** so that a non-GNU linker is found, and then restart.
18366
18367EOF
18368      fi
18369      ;;
18370
18371    amigaos*)
18372      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)'
18373      hardcode_libdir_flag_spec_F77='-L$libdir'
18374      hardcode_minus_L_F77=yes
18375
18376      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18377      # that the semantics of dynamic libraries on AmigaOS, at least up
18378      # to version 4, is to share data among multiple programs linked
18379      # with the same dynamic library.  Since this doesn't match the
18380      # behavior of shared libraries on other platforms, we can't use
18381      # them.
18382      ld_shlibs_F77=no
18383      ;;
18384
18385    beos*)
18386      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18387	allow_undefined_flag_F77=unsupported
18388	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18389	# support --undefined.  This deserves some investigation.  FIXME
18390	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18391      else
18392	ld_shlibs_F77=no
18393      fi
18394      ;;
18395
18396    cygwin* | mingw* | pw32*)
18397      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18398      # as there is no search path for DLLs.
18399      hardcode_libdir_flag_spec_F77='-L$libdir'
18400      allow_undefined_flag_F77=unsupported
18401      always_export_symbols_F77=no
18402      enable_shared_with_static_runtimes_F77=yes
18403      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18404
18405      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18406        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18407	# If the export-symbols file already is a .def file (1st line
18408	# is EXPORTS), use it as is; otherwise, prepend...
18409	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18410	  cp $export_symbols $output_objdir/$soname.def;
18411	else
18412	  echo EXPORTS > $output_objdir/$soname.def;
18413	  cat $export_symbols >> $output_objdir/$soname.def;
18414	fi~
18415	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18416      else
18417	ld_shlibs_F77=no
18418      fi
18419      ;;
18420
18421    interix3*)
18422      hardcode_direct_F77=no
18423      hardcode_shlibpath_var_F77=no
18424      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18425      export_dynamic_flag_spec_F77='${wl}-E'
18426      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18427      # Instead, shared libraries are loaded at an image base (0x10000000 by
18428      # default) and relocated if they conflict, which is a slow very memory
18429      # consuming and fragmenting process.  To avoid this, we pick a random,
18430      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18431      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18432      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18433      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18434      ;;
18435
18436    linux*)
18437      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18438	tmp_addflag=
18439	case $cc_basename,$host_cpu in
18440	pgcc*)				# Portland Group C compiler
18441	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18442	  tmp_addflag=' $pic_flag'
18443	  ;;
18444	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18445	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18446	  tmp_addflag=' $pic_flag -Mnomain' ;;
18447	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18448	  tmp_addflag=' -i_dynamic' ;;
18449	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18450	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18451	ifc* | ifort*)			# Intel Fortran compiler
18452	  tmp_addflag=' -nofor_main' ;;
18453	esac
18454	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18455
18456	if test $supports_anon_versioning = yes; then
18457	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
18458  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18459  $echo "local: *; };" >> $output_objdir/$libname.ver~
18460	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18461	fi
18462      else
18463	ld_shlibs_F77=no
18464      fi
18465      ;;
18466
18467    netbsd*)
18468      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18469	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18470	wlarc=
18471      else
18472	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18473	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18474      fi
18475      ;;
18476
18477    solaris*)
18478      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18479	ld_shlibs_F77=no
18480	cat <<EOF 1>&2
18481
18482*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18483*** create shared libraries on Solaris systems.  Therefore, libtool
18484*** is disabling shared libraries support.  We urge you to upgrade GNU
18485*** binutils to release 2.9.1 or newer.  Another option is to modify
18486*** your PATH or compiler configuration so that the native linker is
18487*** used, and then restart.
18488
18489EOF
18490      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18491	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18492	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18493      else
18494	ld_shlibs_F77=no
18495      fi
18496      ;;
18497
18498    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18499      case `$LD -v 2>&1` in
18500        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18501	ld_shlibs_F77=no
18502	cat <<_LT_EOF 1>&2
18503
18504*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18505*** reliably create shared libraries on SCO systems.  Therefore, libtool
18506*** is disabling shared libraries support.  We urge you to upgrade GNU
18507*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18508*** your PATH or compiler configuration so that the native linker is
18509*** used, and then restart.
18510
18511_LT_EOF
18512	;;
18513	*)
18514	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18515	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18516	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18517	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18518	  else
18519	    ld_shlibs_F77=no
18520	  fi
18521	;;
18522      esac
18523      ;;
18524
18525    sunos4*)
18526      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18527      wlarc=
18528      hardcode_direct_F77=yes
18529      hardcode_shlibpath_var_F77=no
18530      ;;
18531
18532    *)
18533      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18534	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18535	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18536      else
18537	ld_shlibs_F77=no
18538      fi
18539      ;;
18540    esac
18541
18542    if test "$ld_shlibs_F77" = no; then
18543      runpath_var=
18544      hardcode_libdir_flag_spec_F77=
18545      export_dynamic_flag_spec_F77=
18546      whole_archive_flag_spec_F77=
18547    fi
18548  else
18549    # PORTME fill in a description of your system's linker (not GNU ld)
18550    case $host_os in
18551    aix3*)
18552      allow_undefined_flag_F77=unsupported
18553      always_export_symbols_F77=yes
18554      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'
18555      # Note: this linker hardcodes the directories in LIBPATH if there
18556      # are no directories specified by -L.
18557      hardcode_minus_L_F77=yes
18558      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18559	# Neither direct hardcoding nor static linking is supported with a
18560	# broken collect2.
18561	hardcode_direct_F77=unsupported
18562      fi
18563      ;;
18564
18565    aix4* | aix5*)
18566      if test "$host_cpu" = ia64; then
18567	# On IA64, the linker does run time linking by default, so we don't
18568	# have to do anything special.
18569	aix_use_runtimelinking=no
18570	exp_sym_flag='-Bexport'
18571	no_entry_flag=""
18572      else
18573	# If we're using GNU nm, then we don't want the "-C" option.
18574	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18575	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18576	  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'
18577	else
18578	  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'
18579	fi
18580	aix_use_runtimelinking=no
18581
18582	# Test if we are trying to use run time linking or normal
18583	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18584	# need to do runtime linking.
18585	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18586	  for ld_flag in $LDFLAGS; do
18587  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18588  	    aix_use_runtimelinking=yes
18589  	    break
18590  	  fi
18591	  done
18592	  ;;
18593	esac
18594
18595	exp_sym_flag='-bexport'
18596	no_entry_flag='-bnoentry'
18597      fi
18598
18599      # When large executables or shared objects are built, AIX ld can
18600      # have problems creating the table of contents.  If linking a library
18601      # or program results in "error TOC overflow" add -mminimal-toc to
18602      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18603      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18604
18605      archive_cmds_F77=''
18606      hardcode_direct_F77=yes
18607      hardcode_libdir_separator_F77=':'
18608      link_all_deplibs_F77=yes
18609
18610      if test "$GCC" = yes; then
18611	case $host_os in aix4.[012]|aix4.[012].*)
18612	# We only want to do this on AIX 4.2 and lower, the check
18613	# below for broken collect2 doesn't work under 4.3+
18614	  collect2name=`${CC} -print-prog-name=collect2`
18615	  if test -f "$collect2name" && \
18616  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18617	  then
18618  	  # We have reworked collect2
18619  	  hardcode_direct_F77=yes
18620	  else
18621  	  # We have old collect2
18622  	  hardcode_direct_F77=unsupported
18623  	  # It fails to find uninstalled libraries when the uninstalled
18624  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18625  	  # to unsupported forces relinking
18626  	  hardcode_minus_L_F77=yes
18627  	  hardcode_libdir_flag_spec_F77='-L$libdir'
18628  	  hardcode_libdir_separator_F77=
18629	  fi
18630	  ;;
18631	esac
18632	shared_flag='-shared'
18633	if test "$aix_use_runtimelinking" = yes; then
18634	  shared_flag="$shared_flag "'${wl}-G'
18635	fi
18636      else
18637	# not using gcc
18638	if test "$host_cpu" = ia64; then
18639  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18640  	# chokes on -Wl,-G. The following line is correct:
18641	  shared_flag='-G'
18642	else
18643	  if test "$aix_use_runtimelinking" = yes; then
18644	    shared_flag='${wl}-G'
18645	  else
18646	    shared_flag='${wl}-bM:SRE'
18647	  fi
18648	fi
18649      fi
18650
18651      # It seems that -bexpall does not export symbols beginning with
18652      # underscore (_), so it is better to generate a list of symbols to export.
18653      always_export_symbols_F77=yes
18654      if test "$aix_use_runtimelinking" = yes; then
18655	# Warning - without using the other runtime loading flags (-brtl),
18656	# -berok will link without error, but may produce a broken library.
18657	allow_undefined_flag_F77='-berok'
18658       # Determine the default libpath from the value encoded in an empty executable.
18659       cat >conftest.$ac_ext <<_ACEOF
18660      program main
18661
18662      end
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666  (eval $ac_link) 2>conftest.er1
18667  ac_status=$?
18668  grep -v '^ *+' conftest.er1 >conftest.err
18669  rm -f conftest.er1
18670  cat conftest.err >&5
18671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672  (exit $ac_status); } &&
18673	 { ac_try='test -z "$ac_f77_werror_flag"
18674			 || test ! -s conftest.err'
18675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676  (eval $ac_try) 2>&5
18677  ac_status=$?
18678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679  (exit $ac_status); }; } &&
18680	 { ac_try='test -s conftest$ac_exeext'
18681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682  (eval $ac_try) 2>&5
18683  ac_status=$?
18684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685  (exit $ac_status); }; }; then
18686
18687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18688}'`
18689# Check for a 64-bit object if we didn't find anything.
18690if 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; }
18691}'`; fi
18692else
18693  echo "$as_me: failed program was:" >&5
18694sed 's/^/| /' conftest.$ac_ext >&5
18695
18696fi
18697rm -f conftest.err conftest.$ac_objext \
18698      conftest$ac_exeext conftest.$ac_ext
18699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18700
18701       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18702	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18703       else
18704	if test "$host_cpu" = ia64; then
18705	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18706	  allow_undefined_flag_F77="-z nodefs"
18707	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18708	else
18709	 # Determine the default libpath from the value encoded in an empty executable.
18710	 cat >conftest.$ac_ext <<_ACEOF
18711      program main
18712
18713      end
18714_ACEOF
18715rm -f conftest.$ac_objext conftest$ac_exeext
18716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18717  (eval $ac_link) 2>conftest.er1
18718  ac_status=$?
18719  grep -v '^ *+' conftest.er1 >conftest.err
18720  rm -f conftest.er1
18721  cat conftest.err >&5
18722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723  (exit $ac_status); } &&
18724	 { ac_try='test -z "$ac_f77_werror_flag"
18725			 || test ! -s conftest.err'
18726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727  (eval $ac_try) 2>&5
18728  ac_status=$?
18729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730  (exit $ac_status); }; } &&
18731	 { ac_try='test -s conftest$ac_exeext'
18732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733  (eval $ac_try) 2>&5
18734  ac_status=$?
18735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736  (exit $ac_status); }; }; then
18737
18738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18739}'`
18740# Check for a 64-bit object if we didn't find anything.
18741if 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; }
18742}'`; fi
18743else
18744  echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
18747fi
18748rm -f conftest.err conftest.$ac_objext \
18749      conftest$ac_exeext conftest.$ac_ext
18750if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18751
18752	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18753	  # Warning - without using the other run time loading flags,
18754	  # -berok will link without error, but may produce a broken library.
18755	  no_undefined_flag_F77=' ${wl}-bernotok'
18756	  allow_undefined_flag_F77=' ${wl}-berok'
18757	  # Exported symbols can be pulled into shared objects from archives
18758	  whole_archive_flag_spec_F77='$convenience'
18759	  archive_cmds_need_lc_F77=yes
18760	  # This is similar to how AIX traditionally builds its shared libraries.
18761	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18762	fi
18763      fi
18764      ;;
18765
18766    amigaos*)
18767      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)'
18768      hardcode_libdir_flag_spec_F77='-L$libdir'
18769      hardcode_minus_L_F77=yes
18770      # see comment about different semantics on the GNU ld section
18771      ld_shlibs_F77=no
18772      ;;
18773
18774    bsdi[45]*)
18775      export_dynamic_flag_spec_F77=-rdynamic
18776      ;;
18777
18778    cygwin* | mingw* | pw32*)
18779      # When not using gcc, we currently assume that we are using
18780      # Microsoft Visual C++.
18781      # hardcode_libdir_flag_spec is actually meaningless, as there is
18782      # no search path for DLLs.
18783      hardcode_libdir_flag_spec_F77=' '
18784      allow_undefined_flag_F77=unsupported
18785      # Tell ltmain to make .lib files, not .a files.
18786      libext=lib
18787      # Tell ltmain to make .dll files, not .so files.
18788      shrext_cmds=".dll"
18789      # FIXME: Setting linknames here is a bad hack.
18790      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18791      # The linker will automatically build a .lib file if we build a DLL.
18792      old_archive_From_new_cmds_F77='true'
18793      # FIXME: Should let the user specify the lib program.
18794      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
18795      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18796      enable_shared_with_static_runtimes_F77=yes
18797      ;;
18798
18799    darwin* | rhapsody*)
18800      case $host_os in
18801        rhapsody* | darwin1.[012])
18802         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18803         ;;
18804       *) # Darwin 1.3 on
18805         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18806           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18807         else
18808           case ${MACOSX_DEPLOYMENT_TARGET} in
18809             10.[012])
18810               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18811               ;;
18812             10.*)
18813               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18814               ;;
18815           esac
18816         fi
18817         ;;
18818      esac
18819      archive_cmds_need_lc_F77=no
18820      hardcode_direct_F77=no
18821      hardcode_automatic_F77=yes
18822      hardcode_shlibpath_var_F77=unsupported
18823      whole_archive_flag_spec_F77=''
18824      link_all_deplibs_F77=yes
18825    if test "$GCC" = yes ; then
18826    	output_verbose_link_cmd='echo'
18827        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18828      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18829      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18830      archive_expsym_cmds_F77='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}'
18831      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}'
18832    else
18833      case $cc_basename in
18834        xlc*)
18835         output_verbose_link_cmd='echo'
18836         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18837         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18838          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18839         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18840          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}'
18841          ;;
18842       *)
18843         ld_shlibs_F77=no
18844          ;;
18845      esac
18846    fi
18847      ;;
18848
18849    dgux*)
18850      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18851      hardcode_libdir_flag_spec_F77='-L$libdir'
18852      hardcode_shlibpath_var_F77=no
18853      ;;
18854
18855    freebsd1*)
18856      ld_shlibs_F77=no
18857      ;;
18858
18859    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18860    # support.  Future versions do this automatically, but an explicit c++rt0.o
18861    # does not break anything, and helps significantly (at the cost of a little
18862    # extra space).
18863    freebsd2.2*)
18864      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18865      hardcode_libdir_flag_spec_F77='-R$libdir'
18866      hardcode_direct_F77=yes
18867      hardcode_shlibpath_var_F77=no
18868      ;;
18869
18870    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18871    freebsd2*)
18872      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18873      hardcode_direct_F77=yes
18874      hardcode_minus_L_F77=yes
18875      hardcode_shlibpath_var_F77=no
18876      ;;
18877
18878    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18879    freebsd* | kfreebsd*-gnu | dragonfly*)
18880      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18881      hardcode_libdir_flag_spec_F77='-R$libdir'
18882      hardcode_direct_F77=yes
18883      hardcode_shlibpath_var_F77=no
18884      ;;
18885
18886    hpux9*)
18887      if test "$GCC" = yes; then
18888	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'
18889      else
18890	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'
18891      fi
18892      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18893      hardcode_libdir_separator_F77=:
18894      hardcode_direct_F77=yes
18895
18896      # hardcode_minus_L: Not really in the search PATH,
18897      # but as the default location of the library.
18898      hardcode_minus_L_F77=yes
18899      export_dynamic_flag_spec_F77='${wl}-E'
18900      ;;
18901
18902    hpux10*)
18903      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18904	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18905      else
18906	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18907      fi
18908      if test "$with_gnu_ld" = no; then
18909	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18910	hardcode_libdir_separator_F77=:
18911
18912	hardcode_direct_F77=yes
18913	export_dynamic_flag_spec_F77='${wl}-E'
18914
18915	# hardcode_minus_L: Not really in the search PATH,
18916	# but as the default location of the library.
18917	hardcode_minus_L_F77=yes
18918      fi
18919      ;;
18920
18921    hpux11*)
18922      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18923	case $host_cpu in
18924	hppa*64*)
18925	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18926	  ;;
18927	ia64*)
18928	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18929	  ;;
18930	*)
18931	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18932	  ;;
18933	esac
18934      else
18935	case $host_cpu in
18936	hppa*64*)
18937	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18938	  ;;
18939	ia64*)
18940	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18941	  ;;
18942	*)
18943	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18944	  ;;
18945	esac
18946      fi
18947      if test "$with_gnu_ld" = no; then
18948	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18949	hardcode_libdir_separator_F77=:
18950
18951	case $host_cpu in
18952	hppa*64*|ia64*)
18953	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18954	  hardcode_direct_F77=no
18955	  hardcode_shlibpath_var_F77=no
18956	  ;;
18957	*)
18958	  hardcode_direct_F77=yes
18959	  export_dynamic_flag_spec_F77='${wl}-E'
18960
18961	  # hardcode_minus_L: Not really in the search PATH,
18962	  # but as the default location of the library.
18963	  hardcode_minus_L_F77=yes
18964	  ;;
18965	esac
18966      fi
18967      ;;
18968
18969    irix5* | irix6* | nonstopux*)
18970      if test "$GCC" = yes; then
18971	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'
18972      else
18973	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'
18974	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18975      fi
18976      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18977      hardcode_libdir_separator_F77=:
18978      link_all_deplibs_F77=yes
18979      ;;
18980
18981    netbsd*)
18982      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18983	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18984      else
18985	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18986      fi
18987      hardcode_libdir_flag_spec_F77='-R$libdir'
18988      hardcode_direct_F77=yes
18989      hardcode_shlibpath_var_F77=no
18990      ;;
18991
18992    newsos6)
18993      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18994      hardcode_direct_F77=yes
18995      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18996      hardcode_libdir_separator_F77=:
18997      hardcode_shlibpath_var_F77=no
18998      ;;
18999
19000    openbsd*)
19001      hardcode_direct_F77=yes
19002      hardcode_shlibpath_var_F77=no
19003      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19004	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19005	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19006	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19007	export_dynamic_flag_spec_F77='${wl}-E'
19008      else
19009       case $host_os in
19010	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19011	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19012	   hardcode_libdir_flag_spec_F77='-R$libdir'
19013	   ;;
19014	 *)
19015	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19016	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19017	   ;;
19018       esac
19019      fi
19020      ;;
19021
19022    os2*)
19023      hardcode_libdir_flag_spec_F77='-L$libdir'
19024      hardcode_minus_L_F77=yes
19025      allow_undefined_flag_F77=unsupported
19026      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'
19027      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19028      ;;
19029
19030    osf3*)
19031      if test "$GCC" = yes; then
19032	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19033	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'
19034      else
19035	allow_undefined_flag_F77=' -expect_unresolved \*'
19036	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'
19037      fi
19038      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19039      hardcode_libdir_separator_F77=:
19040      ;;
19041
19042    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19043      if test "$GCC" = yes; then
19044	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19045	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'
19046	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19047      else
19048	allow_undefined_flag_F77=' -expect_unresolved \*'
19049	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'
19050	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~
19051	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19052
19053	# Both c and cxx compiler support -rpath directly
19054	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19055      fi
19056      hardcode_libdir_separator_F77=:
19057      ;;
19058
19059    solaris*)
19060      no_undefined_flag_F77=' -z text'
19061      if test "$GCC" = yes; then
19062	wlarc='${wl}'
19063	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19064	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19065	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19066      else
19067	wlarc=''
19068	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19070  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19071      fi
19072      hardcode_libdir_flag_spec_F77='-R$libdir'
19073      hardcode_shlibpath_var_F77=no
19074      case $host_os in
19075      solaris2.[0-5] | solaris2.[0-5].*) ;;
19076      *)
19077 	# The compiler driver will combine linker options so we
19078 	# cannot just pass the convience library names through
19079 	# without $wl, iff we do not link with $LD.
19080 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19081 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19082 	case $wlarc in
19083 	'')
19084 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19085 	*)
19086 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19087 	esac ;;
19088      esac
19089      link_all_deplibs_F77=yes
19090      ;;
19091
19092    sunos4*)
19093      if test "x$host_vendor" = xsequent; then
19094	# Use $CC to link under sequent, because it throws in some extra .o
19095	# files that make .init and .fini sections work.
19096	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19097      else
19098	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19099      fi
19100      hardcode_libdir_flag_spec_F77='-L$libdir'
19101      hardcode_direct_F77=yes
19102      hardcode_minus_L_F77=yes
19103      hardcode_shlibpath_var_F77=no
19104      ;;
19105
19106    sysv4)
19107      case $host_vendor in
19108	sni)
19109	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19110	  hardcode_direct_F77=yes # is this really true???
19111	;;
19112	siemens)
19113	  ## LD is ld it makes a PLAMLIB
19114	  ## CC just makes a GrossModule.
19115	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19116	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19117	  hardcode_direct_F77=no
19118        ;;
19119	motorola)
19120	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19121	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19122	;;
19123      esac
19124      runpath_var='LD_RUN_PATH'
19125      hardcode_shlibpath_var_F77=no
19126      ;;
19127
19128    sysv4.3*)
19129      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19130      hardcode_shlibpath_var_F77=no
19131      export_dynamic_flag_spec_F77='-Bexport'
19132      ;;
19133
19134    sysv4*MP*)
19135      if test -d /usr/nec; then
19136	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19137	hardcode_shlibpath_var_F77=no
19138	runpath_var=LD_RUN_PATH
19139	hardcode_runpath_var=yes
19140	ld_shlibs_F77=yes
19141      fi
19142      ;;
19143
19144    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19145      no_undefined_flag_F77='${wl}-z,text'
19146      archive_cmds_need_lc_F77=no
19147      hardcode_shlibpath_var_F77=no
19148      runpath_var='LD_RUN_PATH'
19149
19150      if test "$GCC" = yes; then
19151	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19152	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153      else
19154	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19155	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19156      fi
19157      ;;
19158
19159    sysv5* | sco3.2v5* | sco5v6*)
19160      # Note: We can NOT use -z defs as we might desire, because we do not
19161      # link with -lc, and that would cause any symbols used from libc to
19162      # always be unresolved, which means just about no library would
19163      # ever link correctly.  If we're not using GNU ld we use -z text
19164      # though, which does catch some bad symbols but isn't as heavy-handed
19165      # as -z defs.
19166      no_undefined_flag_F77='${wl}-z,text'
19167      allow_undefined_flag_F77='${wl}-z,nodefs'
19168      archive_cmds_need_lc_F77=no
19169      hardcode_shlibpath_var_F77=no
19170      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19171      hardcode_libdir_separator_F77=':'
19172      link_all_deplibs_F77=yes
19173      export_dynamic_flag_spec_F77='${wl}-Bexport'
19174      runpath_var='LD_RUN_PATH'
19175
19176      if test "$GCC" = yes; then
19177	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19178	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19179      else
19180	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19181	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19182      fi
19183      ;;
19184
19185    uts4*)
19186      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187      hardcode_libdir_flag_spec_F77='-L$libdir'
19188      hardcode_shlibpath_var_F77=no
19189      ;;
19190
19191    *)
19192      ld_shlibs_F77=no
19193      ;;
19194    esac
19195  fi
19196
19197echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19198echo "${ECHO_T}$ld_shlibs_F77" >&6
19199test "$ld_shlibs_F77" = no && can_build_shared=no
19200
19201#
19202# Do we need to explicitly link libc?
19203#
19204case "x$archive_cmds_need_lc_F77" in
19205x|xyes)
19206  # Assume -lc should be added
19207  archive_cmds_need_lc_F77=yes
19208
19209  if test "$enable_shared" = yes && test "$GCC" = yes; then
19210    case $archive_cmds_F77 in
19211    *'~'*)
19212      # FIXME: we may have to deal with multi-command sequences.
19213      ;;
19214    '$CC '*)
19215      # Test whether the compiler implicitly links with -lc since on some
19216      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19217      # to ld, don't add -lc before -lgcc.
19218      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19219echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19220      $rm conftest*
19221      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19222
19223      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19224  (eval $ac_compile) 2>&5
19225  ac_status=$?
19226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227  (exit $ac_status); } 2>conftest.err; then
19228        soname=conftest
19229        lib=conftest
19230        libobjs=conftest.$ac_objext
19231        deplibs=
19232        wl=$lt_prog_compiler_wl_F77
19233	pic_flag=$lt_prog_compiler_pic_F77
19234        compiler_flags=-v
19235        linker_flags=-v
19236        verstring=
19237        output_objdir=.
19238        libname=conftest
19239        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19240        allow_undefined_flag_F77=
19241        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19242  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19243  ac_status=$?
19244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245  (exit $ac_status); }
19246        then
19247	  archive_cmds_need_lc_F77=no
19248        else
19249	  archive_cmds_need_lc_F77=yes
19250        fi
19251        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19252      else
19253        cat conftest.err 1>&5
19254      fi
19255      $rm conftest*
19256      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19257echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19258      ;;
19259    esac
19260  fi
19261  ;;
19262esac
19263
19264echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19265echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19266library_names_spec=
19267libname_spec='lib$name'
19268soname_spec=
19269shrext_cmds=".so"
19270postinstall_cmds=
19271postuninstall_cmds=
19272finish_cmds=
19273finish_eval=
19274shlibpath_var=
19275shlibpath_overrides_runpath=unknown
19276version_type=none
19277dynamic_linker="$host_os ld.so"
19278sys_lib_dlsearch_path_spec="/lib /usr/lib"
19279if test "$GCC" = yes; then
19280  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19281  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19282    # if the path contains ";" then we assume it to be the separator
19283    # otherwise default to the standard path separator (i.e. ":") - it is
19284    # assumed that no part of a normal pathname contains ";" but that should
19285    # okay in the real world where ";" in dirpaths is itself problematic.
19286    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19287  else
19288    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19289  fi
19290else
19291  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19292fi
19293need_lib_prefix=unknown
19294hardcode_into_libs=no
19295
19296# when you set need_version to no, make sure it does not cause -set_version
19297# flags to be left without arguments
19298need_version=unknown
19299
19300case $host_os in
19301aix3*)
19302  version_type=linux
19303  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19304  shlibpath_var=LIBPATH
19305
19306  # AIX 3 has no versioning support, so we append a major version to the name.
19307  soname_spec='${libname}${release}${shared_ext}$major'
19308  ;;
19309
19310aix4* | aix5*)
19311  version_type=linux
19312  need_lib_prefix=no
19313  need_version=no
19314  hardcode_into_libs=yes
19315  if test "$host_cpu" = ia64; then
19316    # AIX 5 supports IA64
19317    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19318    shlibpath_var=LD_LIBRARY_PATH
19319  else
19320    # With GCC up to 2.95.x, collect2 would create an import file
19321    # for dependence libraries.  The import file would start with
19322    # the line `#! .'.  This would cause the generated library to
19323    # depend on `.', always an invalid library.  This was fixed in
19324    # development snapshots of GCC prior to 3.0.
19325    case $host_os in
19326      aix4 | aix4.[01] | aix4.[01].*)
19327      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19328	   echo ' yes '
19329	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19330	:
19331      else
19332	can_build_shared=no
19333      fi
19334      ;;
19335    esac
19336    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19337    # soname into executable. Probably we can add versioning support to
19338    # collect2, so additional links can be useful in future.
19339    if test "$aix_use_runtimelinking" = yes; then
19340      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19341      # instead of lib<name>.a to let people know that these are not
19342      # typical AIX shared libraries.
19343      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19344    else
19345      # We preserve .a as extension for shared libraries through AIX4.2
19346      # and later when we are not doing run time linking.
19347      library_names_spec='${libname}${release}.a $libname.a'
19348      soname_spec='${libname}${release}${shared_ext}$major'
19349    fi
19350    shlibpath_var=LIBPATH
19351  fi
19352  ;;
19353
19354amigaos*)
19355  library_names_spec='$libname.ixlibrary $libname.a'
19356  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19357  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'
19358  ;;
19359
19360beos*)
19361  library_names_spec='${libname}${shared_ext}'
19362  dynamic_linker="$host_os ld.so"
19363  shlibpath_var=LIBRARY_PATH
19364  ;;
19365
19366bsdi[45]*)
19367  version_type=linux
19368  need_version=no
19369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370  soname_spec='${libname}${release}${shared_ext}$major'
19371  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19372  shlibpath_var=LD_LIBRARY_PATH
19373  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19374  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19375  # the default ld.so.conf also contains /usr/contrib/lib and
19376  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19377  # libtool to hard-code these into programs
19378  ;;
19379
19380cygwin* | mingw* | pw32*)
19381  version_type=windows
19382  shrext_cmds=".dll"
19383  need_version=no
19384  need_lib_prefix=no
19385
19386  case $GCC,$host_os in
19387  yes,cygwin* | yes,mingw* | yes,pw32*)
19388    library_names_spec='$libname.dll.a'
19389    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19390    postinstall_cmds='base_file=`basename \${file}`~
19391      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19392      dldir=$destdir/`dirname \$dlpath`~
19393      test -d \$dldir || mkdir -p \$dldir~
19394      $install_prog $dir/$dlname \$dldir/$dlname~
19395      chmod a+x \$dldir/$dlname'
19396    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19397      dlpath=$dir/\$dldll~
19398       $rm \$dlpath'
19399    shlibpath_overrides_runpath=yes
19400
19401    case $host_os in
19402    cygwin*)
19403      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19404      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19405      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19406      ;;
19407    mingw*)
19408      # MinGW DLLs use traditional 'lib' prefix
19409      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19410      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19411      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19412        # It is most probably a Windows format PATH printed by
19413        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19414        # path with ; separators, and with drive letters. We can handle the
19415        # drive letters (cygwin fileutils understands them), so leave them,
19416        # especially as we might pass files found there to a mingw objdump,
19417        # which wouldn't understand a cygwinified path. Ahh.
19418        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19419      else
19420        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19421      fi
19422      ;;
19423    pw32*)
19424      # pw32 DLLs use 'pw' prefix rather than 'lib'
19425      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19426      ;;
19427    esac
19428    ;;
19429
19430  *)
19431    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19432    ;;
19433  esac
19434  dynamic_linker='Win32 ld.exe'
19435  # FIXME: first we should search . and the directory the executable is in
19436  shlibpath_var=PATH
19437  ;;
19438
19439darwin* | rhapsody*)
19440  dynamic_linker="$host_os dyld"
19441  version_type=darwin
19442  need_lib_prefix=no
19443  need_version=no
19444  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19445  soname_spec='${libname}${release}${major}$shared_ext'
19446  shlibpath_overrides_runpath=yes
19447  shlibpath_var=DYLD_LIBRARY_PATH
19448  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19449  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19450  if test "$GCC" = yes; then
19451    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"`
19452  else
19453    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19454  fi
19455  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19456  ;;
19457
19458dgux*)
19459  version_type=linux
19460  need_lib_prefix=no
19461  need_version=no
19462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19463  soname_spec='${libname}${release}${shared_ext}$major'
19464  shlibpath_var=LD_LIBRARY_PATH
19465  ;;
19466
19467freebsd1*)
19468  dynamic_linker=no
19469  ;;
19470
19471kfreebsd*-gnu)
19472  version_type=linux
19473  need_lib_prefix=no
19474  need_version=no
19475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19476  soname_spec='${libname}${release}${shared_ext}$major'
19477  shlibpath_var=LD_LIBRARY_PATH
19478  shlibpath_overrides_runpath=no
19479  hardcode_into_libs=yes
19480  dynamic_linker='GNU ld.so'
19481  ;;
19482
19483freebsd* | dragonfly*)
19484  # DragonFly does not have aout.  When/if they implement a new
19485  # versioning mechanism, adjust this.
19486  if test -x /usr/bin/objformat; then
19487    objformat=`/usr/bin/objformat`
19488  else
19489    case $host_os in
19490    freebsd[123]*) objformat=aout ;;
19491    *) objformat=elf ;;
19492    esac
19493  fi
19494  version_type=freebsd-$objformat
19495  case $version_type in
19496    freebsd-elf*)
19497      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19498      need_version=no
19499      need_lib_prefix=no
19500      ;;
19501    freebsd-*)
19502      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19503      need_version=yes
19504      ;;
19505  esac
19506  shlibpath_var=LD_LIBRARY_PATH
19507  case $host_os in
19508  freebsd2*)
19509    shlibpath_overrides_runpath=yes
19510    ;;
19511  freebsd3.[01]* | freebsdelf3.[01]*)
19512    shlibpath_overrides_runpath=yes
19513    hardcode_into_libs=yes
19514    ;;
19515  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19516  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19517    shlibpath_overrides_runpath=no
19518    hardcode_into_libs=yes
19519    ;;
19520  freebsd*) # from 4.6 on
19521    shlibpath_overrides_runpath=yes
19522    hardcode_into_libs=yes
19523    ;;
19524  esac
19525  ;;
19526
19527gnu*)
19528  version_type=linux
19529  need_lib_prefix=no
19530  need_version=no
19531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19532  soname_spec='${libname}${release}${shared_ext}$major'
19533  shlibpath_var=LD_LIBRARY_PATH
19534  hardcode_into_libs=yes
19535  ;;
19536
19537hpux9* | hpux10* | hpux11*)
19538  # Give a soname corresponding to the major version so that dld.sl refuses to
19539  # link against other versions.
19540  version_type=sunos
19541  need_lib_prefix=no
19542  need_version=no
19543  case $host_cpu in
19544  ia64*)
19545    shrext_cmds='.so'
19546    hardcode_into_libs=yes
19547    dynamic_linker="$host_os dld.so"
19548    shlibpath_var=LD_LIBRARY_PATH
19549    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19550    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551    soname_spec='${libname}${release}${shared_ext}$major'
19552    if test "X$HPUX_IA64_MODE" = X32; then
19553      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19554    else
19555      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19556    fi
19557    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19558    ;;
19559   hppa*64*)
19560     shrext_cmds='.sl'
19561     hardcode_into_libs=yes
19562     dynamic_linker="$host_os dld.sl"
19563     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566     soname_spec='${libname}${release}${shared_ext}$major'
19567     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19569     ;;
19570   *)
19571    shrext_cmds='.sl'
19572    dynamic_linker="$host_os dld.sl"
19573    shlibpath_var=SHLIB_PATH
19574    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576    soname_spec='${libname}${release}${shared_ext}$major'
19577    ;;
19578  esac
19579  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19580  postinstall_cmds='chmod 555 $lib'
19581  ;;
19582
19583interix3*)
19584  version_type=linux
19585  need_lib_prefix=no
19586  need_version=no
19587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19588  soname_spec='${libname}${release}${shared_ext}$major'
19589  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19590  shlibpath_var=LD_LIBRARY_PATH
19591  shlibpath_overrides_runpath=no
19592  hardcode_into_libs=yes
19593  ;;
19594
19595irix5* | irix6* | nonstopux*)
19596  case $host_os in
19597    nonstopux*) version_type=nonstopux ;;
19598    *)
19599	if test "$lt_cv_prog_gnu_ld" = yes; then
19600		version_type=linux
19601	else
19602		version_type=irix
19603	fi ;;
19604  esac
19605  need_lib_prefix=no
19606  need_version=no
19607  soname_spec='${libname}${release}${shared_ext}$major'
19608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19609  case $host_os in
19610  irix5* | nonstopux*)
19611    libsuff= shlibsuff=
19612    ;;
19613  *)
19614    case $LD in # libtool.m4 will add one of these switches to LD
19615    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19616      libsuff= shlibsuff= libmagic=32-bit;;
19617    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19618      libsuff=32 shlibsuff=N32 libmagic=N32;;
19619    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19620      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19621    *) libsuff= shlibsuff= libmagic=never-match;;
19622    esac
19623    ;;
19624  esac
19625  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19626  shlibpath_overrides_runpath=no
19627  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19628  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19629  hardcode_into_libs=yes
19630  ;;
19631
19632# No shared lib support for Linux oldld, aout, or coff.
19633linux*oldld* | linux*aout* | linux*coff*)
19634  dynamic_linker=no
19635  ;;
19636
19637# This must be Linux ELF.
19638linux*)
19639  version_type=linux
19640  need_lib_prefix=no
19641  need_version=no
19642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19643  soname_spec='${libname}${release}${shared_ext}$major'
19644  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19645  shlibpath_var=LD_LIBRARY_PATH
19646  shlibpath_overrides_runpath=no
19647  # This implies no fast_install, which is unacceptable.
19648  # Some rework will be needed to allow for fast_install
19649  # before this can be enabled.
19650  hardcode_into_libs=yes
19651
19652  # find out which ABI we are using
19653  libsuff=
19654  case "$host_cpu" in
19655  x86_64*|s390x*|powerpc64*)
19656    echo '#line 19656 "configure"' > conftest.$ac_ext
19657    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658  (eval $ac_compile) 2>&5
19659  ac_status=$?
19660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661  (exit $ac_status); }; then
19662      case `/usr/bin/file conftest.$ac_objext` in
19663      *64-bit*)
19664        libsuff=64
19665        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19666        ;;
19667      esac
19668    fi
19669    rm -rf conftest*
19670    ;;
19671  esac
19672
19673  # Append ld.so.conf contents to the search path
19674  if test -f /etc/ld.so.conf; then
19675    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19676    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19677  fi
19678
19679  # We used to test for /lib/ld.so.1 and disable shared libraries on
19680  # powerpc, because MkLinux only supported shared libraries with the
19681  # GNU dynamic linker.  Since this was broken with cross compilers,
19682  # most powerpc-linux boxes support dynamic linking these days and
19683  # people can always --disable-shared, the test was removed, and we
19684  # assume the GNU/Linux dynamic linker is in use.
19685  dynamic_linker='GNU/Linux ld.so'
19686  ;;
19687
19688knetbsd*-gnu)
19689  version_type=linux
19690  need_lib_prefix=no
19691  need_version=no
19692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19693  soname_spec='${libname}${release}${shared_ext}$major'
19694  shlibpath_var=LD_LIBRARY_PATH
19695  shlibpath_overrides_runpath=no
19696  hardcode_into_libs=yes
19697  dynamic_linker='GNU ld.so'
19698  ;;
19699
19700netbsd*)
19701  version_type=sunos
19702  need_lib_prefix=no
19703  need_version=no
19704  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19706    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19707    dynamic_linker='NetBSD (a.out) ld.so'
19708  else
19709    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19710    soname_spec='${libname}${release}${shared_ext}$major'
19711    dynamic_linker='NetBSD ld.elf_so'
19712  fi
19713  shlibpath_var=LD_LIBRARY_PATH
19714  shlibpath_overrides_runpath=yes
19715  hardcode_into_libs=yes
19716  ;;
19717
19718newsos6)
19719  version_type=linux
19720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19721  shlibpath_var=LD_LIBRARY_PATH
19722  shlibpath_overrides_runpath=yes
19723  ;;
19724
19725nto-qnx*)
19726  version_type=linux
19727  need_lib_prefix=no
19728  need_version=no
19729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19730  soname_spec='${libname}${release}${shared_ext}$major'
19731  shlibpath_var=LD_LIBRARY_PATH
19732  shlibpath_overrides_runpath=yes
19733  ;;
19734
19735openbsd*)
19736  version_type=sunos
19737  sys_lib_dlsearch_path_spec="/usr/lib"
19738  need_lib_prefix=no
19739  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19740  case $host_os in
19741    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19742    *)                         need_version=no  ;;
19743  esac
19744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19745  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19746  shlibpath_var=LD_LIBRARY_PATH
19747  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19748    case $host_os in
19749      openbsd2.[89] | openbsd2.[89].*)
19750	shlibpath_overrides_runpath=no
19751	;;
19752      *)
19753	shlibpath_overrides_runpath=yes
19754	;;
19755      esac
19756  else
19757    shlibpath_overrides_runpath=yes
19758  fi
19759  ;;
19760
19761os2*)
19762  libname_spec='$name'
19763  shrext_cmds=".dll"
19764  need_lib_prefix=no
19765  library_names_spec='$libname${shared_ext} $libname.a'
19766  dynamic_linker='OS/2 ld.exe'
19767  shlibpath_var=LIBPATH
19768  ;;
19769
19770osf3* | osf4* | osf5*)
19771  version_type=osf
19772  need_lib_prefix=no
19773  need_version=no
19774  soname_spec='${libname}${release}${shared_ext}$major'
19775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19776  shlibpath_var=LD_LIBRARY_PATH
19777  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19778  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19779  ;;
19780
19781solaris*)
19782  version_type=linux
19783  need_lib_prefix=no
19784  need_version=no
19785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19786  soname_spec='${libname}${release}${shared_ext}$major'
19787  shlibpath_var=LD_LIBRARY_PATH
19788  shlibpath_overrides_runpath=yes
19789  hardcode_into_libs=yes
19790  # ldd complains unless libraries are executable
19791  postinstall_cmds='chmod +x $lib'
19792  ;;
19793
19794sunos4*)
19795  version_type=sunos
19796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19797  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19798  shlibpath_var=LD_LIBRARY_PATH
19799  shlibpath_overrides_runpath=yes
19800  if test "$with_gnu_ld" = yes; then
19801    need_lib_prefix=no
19802  fi
19803  need_version=yes
19804  ;;
19805
19806sysv4 | sysv4.3*)
19807  version_type=linux
19808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809  soname_spec='${libname}${release}${shared_ext}$major'
19810  shlibpath_var=LD_LIBRARY_PATH
19811  case $host_vendor in
19812    sni)
19813      shlibpath_overrides_runpath=no
19814      need_lib_prefix=no
19815      export_dynamic_flag_spec='${wl}-Blargedynsym'
19816      runpath_var=LD_RUN_PATH
19817      ;;
19818    siemens)
19819      need_lib_prefix=no
19820      ;;
19821    motorola)
19822      need_lib_prefix=no
19823      need_version=no
19824      shlibpath_overrides_runpath=no
19825      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19826      ;;
19827  esac
19828  ;;
19829
19830sysv4*MP*)
19831  if test -d /usr/nec ;then
19832    version_type=linux
19833    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19834    soname_spec='$libname${shared_ext}.$major'
19835    shlibpath_var=LD_LIBRARY_PATH
19836  fi
19837  ;;
19838
19839sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19840  version_type=freebsd-elf
19841  need_lib_prefix=no
19842  need_version=no
19843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19844  soname_spec='${libname}${release}${shared_ext}$major'
19845  shlibpath_var=LD_LIBRARY_PATH
19846  hardcode_into_libs=yes
19847  if test "$with_gnu_ld" = yes; then
19848    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19849    shlibpath_overrides_runpath=no
19850  else
19851    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19852    shlibpath_overrides_runpath=yes
19853    case $host_os in
19854      sco3.2v5*)
19855        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19856	;;
19857    esac
19858  fi
19859  sys_lib_dlsearch_path_spec='/usr/lib'
19860  ;;
19861
19862uts4*)
19863  version_type=linux
19864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19865  soname_spec='${libname}${release}${shared_ext}$major'
19866  shlibpath_var=LD_LIBRARY_PATH
19867  ;;
19868
19869*)
19870  dynamic_linker=no
19871  ;;
19872esac
19873echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19874echo "${ECHO_T}$dynamic_linker" >&6
19875test "$dynamic_linker" = no && can_build_shared=no
19876
19877variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19878if test "$GCC" = yes; then
19879  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19880fi
19881
19882echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19883echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19884hardcode_action_F77=
19885if test -n "$hardcode_libdir_flag_spec_F77" || \
19886   test -n "$runpath_var_F77" || \
19887   test "X$hardcode_automatic_F77" = "Xyes" ; then
19888
19889  # We can hardcode non-existant directories.
19890  if test "$hardcode_direct_F77" != no &&
19891     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19892     # have to relink, otherwise we might link with an installed library
19893     # when we should be linking with a yet-to-be-installed one
19894     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19895     test "$hardcode_minus_L_F77" != no; then
19896    # Linking always hardcodes the temporary library directory.
19897    hardcode_action_F77=relink
19898  else
19899    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19900    hardcode_action_F77=immediate
19901  fi
19902else
19903  # We cannot hardcode anything, or else we can only hardcode existing
19904  # directories.
19905  hardcode_action_F77=unsupported
19906fi
19907echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19908echo "${ECHO_T}$hardcode_action_F77" >&6
19909
19910if test "$hardcode_action_F77" = relink; then
19911  # Fast installation is not supported
19912  enable_fast_install=no
19913elif test "$shlibpath_overrides_runpath" = yes ||
19914     test "$enable_shared" = no; then
19915  # Fast installation is not necessary
19916  enable_fast_install=needless
19917fi
19918
19919
19920# The else clause should only fire when bootstrapping the
19921# libtool distribution, otherwise you forgot to ship ltmain.sh
19922# with your package, and you will get complaints that there are
19923# no rules to generate ltmain.sh.
19924if test -f "$ltmain"; then
19925  # See if we are running on zsh, and set the options which allow our commands through
19926  # without removal of \ escapes.
19927  if test -n "${ZSH_VERSION+set}" ; then
19928    setopt NO_GLOB_SUBST
19929  fi
19930  # Now quote all the things that may contain metacharacters while being
19931  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19932  # variables and quote the copies for generation of the libtool script.
19933  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19934    SED SHELL STRIP \
19935    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19936    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19937    deplibs_check_method reload_flag reload_cmds need_locks \
19938    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19939    lt_cv_sys_global_symbol_to_c_name_address \
19940    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19941    old_postinstall_cmds old_postuninstall_cmds \
19942    compiler_F77 \
19943    CC_F77 \
19944    LD_F77 \
19945    lt_prog_compiler_wl_F77 \
19946    lt_prog_compiler_pic_F77 \
19947    lt_prog_compiler_static_F77 \
19948    lt_prog_compiler_no_builtin_flag_F77 \
19949    export_dynamic_flag_spec_F77 \
19950    thread_safe_flag_spec_F77 \
19951    whole_archive_flag_spec_F77 \
19952    enable_shared_with_static_runtimes_F77 \
19953    old_archive_cmds_F77 \
19954    old_archive_from_new_cmds_F77 \
19955    predep_objects_F77 \
19956    postdep_objects_F77 \
19957    predeps_F77 \
19958    postdeps_F77 \
19959    compiler_lib_search_path_F77 \
19960    archive_cmds_F77 \
19961    archive_expsym_cmds_F77 \
19962    postinstall_cmds_F77 \
19963    postuninstall_cmds_F77 \
19964    old_archive_from_expsyms_cmds_F77 \
19965    allow_undefined_flag_F77 \
19966    no_undefined_flag_F77 \
19967    export_symbols_cmds_F77 \
19968    hardcode_libdir_flag_spec_F77 \
19969    hardcode_libdir_flag_spec_ld_F77 \
19970    hardcode_libdir_separator_F77 \
19971    hardcode_automatic_F77 \
19972    module_cmds_F77 \
19973    module_expsym_cmds_F77 \
19974    lt_cv_prog_compiler_c_o_F77 \
19975    exclude_expsyms_F77 \
19976    include_expsyms_F77; do
19977
19978    case $var in
19979    old_archive_cmds_F77 | \
19980    old_archive_from_new_cmds_F77 | \
19981    archive_cmds_F77 | \
19982    archive_expsym_cmds_F77 | \
19983    module_cmds_F77 | \
19984    module_expsym_cmds_F77 | \
19985    old_archive_from_expsyms_cmds_F77 | \
19986    export_symbols_cmds_F77 | \
19987    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19988    postinstall_cmds | postuninstall_cmds | \
19989    old_postinstall_cmds | old_postuninstall_cmds | \
19990    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19991      # Double-quote double-evaled strings.
19992      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19993      ;;
19994    *)
19995      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19996      ;;
19997    esac
19998  done
19999
20000  case $lt_echo in
20001  *'\$0 --fallback-echo"')
20002    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20003    ;;
20004  esac
20005
20006cfgfile="$ofile"
20007
20008  cat <<__EOF__ >> "$cfgfile"
20009# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20010
20011# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20012
20013# Shell to use when invoking shell scripts.
20014SHELL=$lt_SHELL
20015
20016# Whether or not to build shared libraries.
20017build_libtool_libs=$enable_shared
20018
20019# Whether or not to build static libraries.
20020build_old_libs=$enable_static
20021
20022# Whether or not to add -lc for building shared libraries.
20023build_libtool_need_lc=$archive_cmds_need_lc_F77
20024
20025# Whether or not to disallow shared libs when runtime libs are static
20026allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20027
20028# Whether or not to optimize for fast installation.
20029fast_install=$enable_fast_install
20030
20031# The host system.
20032host_alias=$host_alias
20033host=$host
20034host_os=$host_os
20035
20036# The build system.
20037build_alias=$build_alias
20038build=$build
20039build_os=$build_os
20040
20041# An echo program that does not interpret backslashes.
20042echo=$lt_echo
20043
20044# The archiver.
20045AR=$lt_AR
20046AR_FLAGS=$lt_AR_FLAGS
20047
20048# A C compiler.
20049LTCC=$lt_LTCC
20050
20051# LTCC compiler flags.
20052LTCFLAGS=$lt_LTCFLAGS
20053
20054# A language-specific compiler.
20055CC=$lt_compiler_F77
20056
20057# Is the compiler the GNU C compiler?
20058with_gcc=$GCC_F77
20059
20060gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
20061gcc_ver=\`gcc -dumpversion\`
20062
20063# An ERE matcher.
20064EGREP=$lt_EGREP
20065
20066# The linker used to build libraries.
20067LD=$lt_LD_F77
20068
20069# Whether we need hard or soft links.
20070LN_S=$lt_LN_S
20071
20072# A BSD-compatible nm program.
20073NM=$lt_NM
20074
20075# A symbol stripping program
20076STRIP=$lt_STRIP
20077
20078# Used to examine libraries when file_magic_cmd begins "file"
20079MAGIC_CMD=$MAGIC_CMD
20080
20081# Used on cygwin: DLL creation program.
20082DLLTOOL="$DLLTOOL"
20083
20084# Used on cygwin: object dumper.
20085OBJDUMP="$OBJDUMP"
20086
20087# Used on cygwin: assembler.
20088AS="$AS"
20089
20090# The name of the directory that contains temporary libtool files.
20091objdir=$objdir
20092
20093# How to create reloadable object files.
20094reload_flag=$lt_reload_flag
20095reload_cmds=$lt_reload_cmds
20096
20097# How to pass a linker flag through the compiler.
20098wl=$lt_lt_prog_compiler_wl_F77
20099
20100# Object file suffix (normally "o").
20101objext="$ac_objext"
20102
20103# Old archive suffix (normally "a").
20104libext="$libext"
20105
20106# Shared library suffix (normally ".so").
20107shrext_cmds='$shrext_cmds'
20108
20109# Executable file suffix (normally "").
20110exeext="$exeext"
20111
20112# Additional compiler flags for building library objects.
20113pic_flag=$lt_lt_prog_compiler_pic_F77
20114pic_mode=$pic_mode
20115
20116# What is the maximum length of a command?
20117max_cmd_len=$lt_cv_sys_max_cmd_len
20118
20119# Does compiler simultaneously support -c and -o options?
20120compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20121
20122# Must we lock files when doing compilation?
20123need_locks=$lt_need_locks
20124
20125# Do we need the lib prefix for modules?
20126need_lib_prefix=$need_lib_prefix
20127
20128# Do we need a version for libraries?
20129need_version=$need_version
20130
20131# Whether dlopen is supported.
20132dlopen_support=$enable_dlopen
20133
20134# Whether dlopen of programs is supported.
20135dlopen_self=$enable_dlopen_self
20136
20137# Whether dlopen of statically linked programs is supported.
20138dlopen_self_static=$enable_dlopen_self_static
20139
20140# Compiler flag to prevent dynamic linking.
20141link_static_flag=$lt_lt_prog_compiler_static_F77
20142
20143# Compiler flag to turn off builtin functions.
20144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20145
20146# Compiler flag to allow reflexive dlopens.
20147export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20148
20149# Compiler flag to generate shared objects directly from archives.
20150whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20151
20152# Compiler flag to generate thread-safe objects.
20153thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20154
20155# Library versioning type.
20156version_type=$version_type
20157
20158# Format of library name prefix.
20159libname_spec=$lt_libname_spec
20160
20161# List of archive names.  First name is the real one, the rest are links.
20162# The last name is the one that the linker finds with -lNAME.
20163library_names_spec=$lt_library_names_spec
20164
20165# The coded name of the library, if different from the real name.
20166soname_spec=$lt_soname_spec
20167
20168# Commands used to build and install an old-style archive.
20169RANLIB=$lt_RANLIB
20170old_archive_cmds=$lt_old_archive_cmds_F77
20171old_postinstall_cmds=$lt_old_postinstall_cmds
20172old_postuninstall_cmds=$lt_old_postuninstall_cmds
20173
20174# Create an old-style archive from a shared archive.
20175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20176
20177# Create a temporary old-style archive to link instead of a shared archive.
20178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20179
20180# Commands used to build and install a shared archive.
20181archive_cmds=$lt_archive_cmds_F77
20182archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20183postinstall_cmds=$lt_postinstall_cmds
20184postuninstall_cmds=$lt_postuninstall_cmds
20185
20186# Commands used to build a loadable module (assumed same as above if empty)
20187module_cmds=$lt_module_cmds_F77
20188module_expsym_cmds=$lt_module_expsym_cmds_F77
20189
20190# Commands to strip libraries.
20191old_striplib=$lt_old_striplib
20192striplib=$lt_striplib
20193
20194# Dependencies to place before the objects being linked to create a
20195# shared library.
20196predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20197
20198# Dependencies to place after the objects being linked to create a
20199# shared library.
20200postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20201
20202# Dependencies to place before the objects being linked to create a
20203# shared library.
20204predeps=$lt_predeps_F77
20205
20206# Dependencies to place after the objects being linked to create a
20207# shared library.
20208postdeps=$lt_postdeps_F77
20209
20210# The library search path used internally by the compiler when linking
20211# a shared library.
20212compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20213
20214# Method to check whether dependent libraries are shared objects.
20215deplibs_check_method=$lt_deplibs_check_method
20216
20217# Command to use when deplibs_check_method == file_magic.
20218file_magic_cmd=$lt_file_magic_cmd
20219
20220# Flag that allows shared libraries with undefined symbols to be built.
20221allow_undefined_flag=$lt_allow_undefined_flag_F77
20222
20223# Flag that forces no undefined symbols.
20224no_undefined_flag=$lt_no_undefined_flag_F77
20225
20226# Commands used to finish a libtool library installation in a directory.
20227finish_cmds=$lt_finish_cmds
20228
20229# Same as above, but a single script fragment to be evaled but not shown.
20230finish_eval=$lt_finish_eval
20231
20232# Take the output of nm and produce a listing of raw symbols and C names.
20233global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20234
20235# Transform the output of nm in a proper C declaration
20236global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20237
20238# Transform the output of nm in a C name address pair
20239global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20240
20241# This is the shared library runtime path variable.
20242runpath_var=$runpath_var
20243
20244# This is the shared library path variable.
20245shlibpath_var=$shlibpath_var
20246
20247# Is shlibpath searched before the hard-coded library search path?
20248shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20249
20250# How to hardcode a shared library path into an executable.
20251hardcode_action=$hardcode_action_F77
20252
20253# Whether we should hardcode library paths into libraries.
20254hardcode_into_libs=$hardcode_into_libs
20255
20256# Flag to hardcode \$libdir into a binary during linking.
20257# This must work even if \$libdir does not exist.
20258hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20259
20260# If ld is used when linking, flag to hardcode \$libdir into
20261# a binary during linking. This must work even if \$libdir does
20262# not exist.
20263hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20264
20265# Whether we need a single -rpath flag with a separated argument.
20266hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20267
20268# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20269# resulting binary.
20270hardcode_direct=$hardcode_direct_F77
20271
20272# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20273# resulting binary.
20274hardcode_minus_L=$hardcode_minus_L_F77
20275
20276# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20277# the resulting binary.
20278hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20279
20280# Set to yes if building a shared library automatically hardcodes DIR into the library
20281# and all subsequent libraries and executables linked against it.
20282hardcode_automatic=$hardcode_automatic_F77
20283
20284# Variables whose values should be saved in libtool wrapper scripts and
20285# restored at relink time.
20286variables_saved_for_relink="$variables_saved_for_relink"
20287
20288# Whether libtool must link a program against all its dependency libraries.
20289link_all_deplibs=$link_all_deplibs_F77
20290
20291# Compile-time system search path for libraries
20292sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20293
20294# Run-time system search path for libraries
20295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20296
20297# Fix the shell variable \$srcfile for the compiler.
20298fix_srcfile_path="$fix_srcfile_path_F77"
20299
20300# Set to yes if exported symbols are required.
20301always_export_symbols=$always_export_symbols_F77
20302
20303# The commands to list exported symbols.
20304export_symbols_cmds=$lt_export_symbols_cmds_F77
20305
20306# The commands to extract the exported symbol list from a shared archive.
20307extract_expsyms_cmds=$lt_extract_expsyms_cmds
20308
20309# Symbols that should not be listed in the preloaded symbols.
20310exclude_expsyms=$lt_exclude_expsyms_F77
20311
20312# Symbols that must always be exported.
20313include_expsyms=$lt_include_expsyms_F77
20314
20315# ### END LIBTOOL TAG CONFIG: $tagname
20316
20317__EOF__
20318
20319
20320else
20321  # If there is no Makefile yet, we rely on a make rule to execute
20322  # `config.status --recheck' to rerun these tests and create the
20323  # libtool script then.
20324  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20325  if test -f "$ltmain_in"; then
20326    test -f Makefile && make "$ltmain"
20327  fi
20328fi
20329
20330
20331ac_ext=c
20332ac_cpp='$CPP $CPPFLAGS'
20333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336
20337CC="$lt_save_CC"
20338
20339	else
20340	  tagname=""
20341	fi
20342	;;
20343
20344      GCJ)
20345	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20346
20347
20348
20349# Source file extension for Java test sources.
20350ac_ext=java
20351
20352# Object file extension for compiled Java test sources.
20353objext=o
20354objext_GCJ=$objext
20355
20356# Code to be used in simple compile tests
20357lt_simple_compile_test_code="class foo {}\n"
20358
20359# Code to be used in simple link tests
20360lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
20361
20362# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20363
20364# If no C compiler was specified, use CC.
20365LTCC=${LTCC-"$CC"}
20366
20367# If no C compiler flags were specified, use CFLAGS.
20368LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20369
20370# Allow CC to be a program name with arguments.
20371compiler=$CC
20372
20373
20374# save warnings/boilerplate of simple test code
20375ac_outfile=conftest.$ac_objext
20376printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20377eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20378_lt_compiler_boilerplate=`cat conftest.err`
20379$rm conftest*
20380
20381ac_outfile=conftest.$ac_objext
20382printf "$lt_simple_link_test_code" >conftest.$ac_ext
20383eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20384_lt_linker_boilerplate=`cat conftest.err`
20385$rm conftest*
20386
20387
20388# Allow CC to be a program name with arguments.
20389lt_save_CC="$CC"
20390CC=${GCJ-"gcj"}
20391compiler=$CC
20392compiler_GCJ=$CC
20393for cc_temp in $compiler""; do
20394  case $cc_temp in
20395    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20396    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20397    \-*) ;;
20398    *) break;;
20399  esac
20400done
20401cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20402
20403
20404# GCJ did not exist at the time GCC didn't implicitly link libc in.
20405archive_cmds_need_lc_GCJ=no
20406
20407old_archive_cmds_GCJ=$old_archive_cmds
20408
20409
20410lt_prog_compiler_no_builtin_flag_GCJ=
20411
20412if test "$GCC" = yes; then
20413  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20414
20415
20416echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20417echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20418if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20419  echo $ECHO_N "(cached) $ECHO_C" >&6
20420else
20421  lt_cv_prog_compiler_rtti_exceptions=no
20422  ac_outfile=conftest.$ac_objext
20423   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20424   lt_compiler_flag="-fno-rtti -fno-exceptions"
20425   # Insert the option either (1) after the last *FLAGS variable, or
20426   # (2) before a word containing "conftest.", or (3) at the end.
20427   # Note that $ac_compile itself does not contain backslashes and begins
20428   # with a dollar sign (not a hyphen), so the echo should work correctly.
20429   # The option is referenced via a variable to avoid confusing sed.
20430   lt_compile=`echo "$ac_compile" | $SED \
20431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20433   -e 's:$: $lt_compiler_flag:'`
20434   (eval echo "\"\$as_me:20434: $lt_compile\"" >&5)
20435   (eval "$lt_compile" 2>conftest.err)
20436   ac_status=$?
20437   cat conftest.err >&5
20438   echo "$as_me:20438: \$? = $ac_status" >&5
20439   if (exit $ac_status) && test -s "$ac_outfile"; then
20440     # The compiler can only warn and ignore the option if not recognized
20441     # So say no if there are warnings other than the usual output.
20442     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20443     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20444     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20445       lt_cv_prog_compiler_rtti_exceptions=yes
20446     fi
20447   fi
20448   $rm conftest*
20449
20450fi
20451echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20452echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20453
20454if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20455    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20456else
20457    :
20458fi
20459
20460fi
20461
20462lt_prog_compiler_wl_GCJ=
20463lt_prog_compiler_pic_GCJ=
20464lt_prog_compiler_static_GCJ=
20465
20466echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20467echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20468
20469  if test "$GCC" = yes; then
20470    lt_prog_compiler_wl_GCJ='-Wl,'
20471    lt_prog_compiler_static_GCJ='-static'
20472
20473    case $host_os in
20474      aix*)
20475      # All AIX code is PIC.
20476      if test "$host_cpu" = ia64; then
20477	# AIX 5 now supports IA64 processor
20478	lt_prog_compiler_static_GCJ='-Bstatic'
20479      fi
20480      ;;
20481
20482    amigaos*)
20483      # FIXME: we need at least 68020 code to build shared libraries, but
20484      # adding the `-m68020' flag to GCC prevents building anything better,
20485      # like `-m68040'.
20486      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20487      ;;
20488
20489    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20490      # PIC is the default for these OSes.
20491      ;;
20492
20493    mingw* | pw32* | os2*)
20494      # This hack is so that the source file can tell whether it is being
20495      # built for inclusion in a dll (and should export symbols for example).
20496      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20497      ;;
20498
20499    darwin* | rhapsody*)
20500      # PIC is the default on this platform
20501      # Common symbols not allowed in MH_DYLIB files
20502      lt_prog_compiler_pic_GCJ='-fno-common'
20503      ;;
20504
20505    interix3*)
20506      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20507      # Instead, we relocate shared libraries at runtime.
20508      ;;
20509
20510    msdosdjgpp*)
20511      # Just because we use GCC doesn't mean we suddenly get shared libraries
20512      # on systems that don't support them.
20513      lt_prog_compiler_can_build_shared_GCJ=no
20514      enable_shared=no
20515      ;;
20516
20517    sysv4*MP*)
20518      if test -d /usr/nec; then
20519	lt_prog_compiler_pic_GCJ=-Kconform_pic
20520      fi
20521      ;;
20522
20523    hpux*)
20524      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20525      # not for PA HP-UX.
20526      case $host_cpu in
20527      hppa*64*|ia64*)
20528	# +Z the default
20529	;;
20530      *)
20531	lt_prog_compiler_pic_GCJ='-fPIC'
20532	;;
20533      esac
20534      ;;
20535
20536    *)
20537      lt_prog_compiler_pic_GCJ='-fPIC'
20538      ;;
20539    esac
20540  else
20541    # PORTME Check for flag to pass linker flags through the system compiler.
20542    case $host_os in
20543    aix*)
20544      lt_prog_compiler_wl_GCJ='-Wl,'
20545      if test "$host_cpu" = ia64; then
20546	# AIX 5 now supports IA64 processor
20547	lt_prog_compiler_static_GCJ='-Bstatic'
20548      else
20549	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20550      fi
20551      ;;
20552      darwin*)
20553        # PIC is the default on this platform
20554        # Common symbols not allowed in MH_DYLIB files
20555       case $cc_basename in
20556         xlc*)
20557         lt_prog_compiler_pic_GCJ='-qnocommon'
20558         lt_prog_compiler_wl_GCJ='-Wl,'
20559         ;;
20560       esac
20561       ;;
20562
20563    mingw* | pw32* | os2*)
20564      # This hack is so that the source file can tell whether it is being
20565      # built for inclusion in a dll (and should export symbols for example).
20566      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20567      ;;
20568
20569    hpux9* | hpux10* | hpux11*)
20570      lt_prog_compiler_wl_GCJ='-Wl,'
20571      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20572      # not for PA HP-UX.
20573      case $host_cpu in
20574      hppa*64*|ia64*)
20575	# +Z the default
20576	;;
20577      *)
20578	lt_prog_compiler_pic_GCJ='+Z'
20579	;;
20580      esac
20581      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20582      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20583      ;;
20584
20585    irix5* | irix6* | nonstopux*)
20586      lt_prog_compiler_wl_GCJ='-Wl,'
20587      # PIC (with -KPIC) is the default.
20588      lt_prog_compiler_static_GCJ='-non_shared'
20589      ;;
20590
20591    newsos6)
20592      lt_prog_compiler_pic_GCJ='-KPIC'
20593      lt_prog_compiler_static_GCJ='-Bstatic'
20594      ;;
20595
20596    linux*)
20597      case $cc_basename in
20598      icc* | ecc*)
20599	lt_prog_compiler_wl_GCJ='-Wl,'
20600	lt_prog_compiler_pic_GCJ='-KPIC'
20601	lt_prog_compiler_static_GCJ='-static'
20602        ;;
20603      pgcc* | pgf77* | pgf90* | pgf95*)
20604        # Portland Group compilers (*not* the Pentium gcc compiler,
20605	# which looks to be a dead project)
20606	lt_prog_compiler_wl_GCJ='-Wl,'
20607	lt_prog_compiler_pic_GCJ='-fpic'
20608	lt_prog_compiler_static_GCJ='-Bstatic'
20609        ;;
20610      ccc*)
20611        lt_prog_compiler_wl_GCJ='-Wl,'
20612        # All Alpha code is PIC.
20613        lt_prog_compiler_static_GCJ='-non_shared'
20614        ;;
20615      esac
20616      ;;
20617
20618    osf3* | osf4* | osf5*)
20619      lt_prog_compiler_wl_GCJ='-Wl,'
20620      # All OSF/1 code is PIC.
20621      lt_prog_compiler_static_GCJ='-non_shared'
20622      ;;
20623
20624    solaris*)
20625      lt_prog_compiler_pic_GCJ='-KPIC'
20626      lt_prog_compiler_static_GCJ='-Bstatic'
20627      case $cc_basename in
20628      f77* | f90* | f95*)
20629	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20630      *)
20631	lt_prog_compiler_wl_GCJ='-Wl,';;
20632      esac
20633      ;;
20634
20635    sunos4*)
20636      lt_prog_compiler_wl_GCJ='-Qoption ld '
20637      lt_prog_compiler_pic_GCJ='-PIC'
20638      lt_prog_compiler_static_GCJ='-Bstatic'
20639      ;;
20640
20641    sysv4 | sysv4.2uw2* | sysv4.3*)
20642      lt_prog_compiler_wl_GCJ='-Wl,'
20643      lt_prog_compiler_pic_GCJ='-KPIC'
20644      lt_prog_compiler_static_GCJ='-Bstatic'
20645      ;;
20646
20647    sysv4*MP*)
20648      if test -d /usr/nec ;then
20649	lt_prog_compiler_pic_GCJ='-Kconform_pic'
20650	lt_prog_compiler_static_GCJ='-Bstatic'
20651      fi
20652      ;;
20653
20654    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20655      lt_prog_compiler_wl_GCJ='-Wl,'
20656      lt_prog_compiler_pic_GCJ='-KPIC'
20657      lt_prog_compiler_static_GCJ='-Bstatic'
20658      ;;
20659
20660    unicos*)
20661      lt_prog_compiler_wl_GCJ='-Wl,'
20662      lt_prog_compiler_can_build_shared_GCJ=no
20663      ;;
20664
20665    uts4*)
20666      lt_prog_compiler_pic_GCJ='-pic'
20667      lt_prog_compiler_static_GCJ='-Bstatic'
20668      ;;
20669
20670    *)
20671      lt_prog_compiler_can_build_shared_GCJ=no
20672      ;;
20673    esac
20674  fi
20675
20676echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20677echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
20678
20679#
20680# Check to make sure the PIC flag actually works.
20681#
20682if test -n "$lt_prog_compiler_pic_GCJ"; then
20683
20684echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
20686if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
20687  echo $ECHO_N "(cached) $ECHO_C" >&6
20688else
20689  lt_prog_compiler_pic_works_GCJ=no
20690  ac_outfile=conftest.$ac_objext
20691   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20692   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20693   # Insert the option either (1) after the last *FLAGS variable, or
20694   # (2) before a word containing "conftest.", or (3) at the end.
20695   # Note that $ac_compile itself does not contain backslashes and begins
20696   # with a dollar sign (not a hyphen), so the echo should work correctly.
20697   # The option is referenced via a variable to avoid confusing sed.
20698   lt_compile=`echo "$ac_compile" | $SED \
20699   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20700   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20701   -e 's:$: $lt_compiler_flag:'`
20702   (eval echo "\"\$as_me:20702: $lt_compile\"" >&5)
20703   (eval "$lt_compile" 2>conftest.err)
20704   ac_status=$?
20705   cat conftest.err >&5
20706   echo "$as_me:20706: \$? = $ac_status" >&5
20707   if (exit $ac_status) && test -s "$ac_outfile"; then
20708     # The compiler can only warn and ignore the option if not recognized
20709     # So say no if there are warnings other than the usual output.
20710     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20711     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20712     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20713       lt_prog_compiler_pic_works_GCJ=yes
20714     fi
20715   fi
20716   $rm conftest*
20717
20718fi
20719echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
20720echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
20721
20722if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
20723    case $lt_prog_compiler_pic_GCJ in
20724     "" | " "*) ;;
20725     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20726     esac
20727else
20728    lt_prog_compiler_pic_GCJ=
20729     lt_prog_compiler_can_build_shared_GCJ=no
20730fi
20731
20732fi
20733case $host_os in
20734  # For platforms which do not support PIC, -DPIC is meaningless:
20735  *djgpp*)
20736    lt_prog_compiler_pic_GCJ=
20737    ;;
20738  *)
20739    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20740    ;;
20741esac
20742
20743#
20744# Check to make sure the static flag actually works.
20745#
20746wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20747echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20748echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20749if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
20750  echo $ECHO_N "(cached) $ECHO_C" >&6
20751else
20752  lt_prog_compiler_static_works_GCJ=no
20753   save_LDFLAGS="$LDFLAGS"
20754   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20755   printf "$lt_simple_link_test_code" > conftest.$ac_ext
20756   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20757     # The linker can only warn and ignore the option if not recognized
20758     # So say no if there are warnings
20759     if test -s conftest.err; then
20760       # Append any errors to the config.log.
20761       cat conftest.err 1>&5
20762       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20763       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20764       if diff conftest.exp conftest.er2 >/dev/null; then
20765         lt_prog_compiler_static_works_GCJ=yes
20766       fi
20767     else
20768       lt_prog_compiler_static_works_GCJ=yes
20769     fi
20770   fi
20771   $rm conftest*
20772   LDFLAGS="$save_LDFLAGS"
20773
20774fi
20775echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
20776echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
20777
20778if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
20779    :
20780else
20781    lt_prog_compiler_static_GCJ=
20782fi
20783
20784
20785echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20786echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20787if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20788  echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790  lt_cv_prog_compiler_c_o_GCJ=no
20791   $rm -r conftest 2>/dev/null
20792   mkdir conftest
20793   cd conftest
20794   mkdir out
20795   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20796
20797   lt_compiler_flag="-o out/conftest2.$ac_objext"
20798   # Insert the option either (1) after the last *FLAGS variable, or
20799   # (2) before a word containing "conftest.", or (3) at the end.
20800   # Note that $ac_compile itself does not contain backslashes and begins
20801   # with a dollar sign (not a hyphen), so the echo should work correctly.
20802   lt_compile=`echo "$ac_compile" | $SED \
20803   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20805   -e 's:$: $lt_compiler_flag:'`
20806   (eval echo "\"\$as_me:20806: $lt_compile\"" >&5)
20807   (eval "$lt_compile" 2>out/conftest.err)
20808   ac_status=$?
20809   cat out/conftest.err >&5
20810   echo "$as_me:20810: \$? = $ac_status" >&5
20811   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20812   then
20813     # The compiler can only warn and ignore the option if not recognized
20814     # So say no if there are warnings
20815     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20816     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20817     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20818       lt_cv_prog_compiler_c_o_GCJ=yes
20819     fi
20820   fi
20821   chmod u+w . 2>&5
20822   $rm conftest*
20823   # SGI C++ compiler will create directory out/ii_files/ for
20824   # template instantiation
20825   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20826   $rm out/* && rmdir out
20827   cd ..
20828   rmdir conftest
20829   $rm conftest*
20830
20831fi
20832echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20833echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
20834
20835
20836hard_links="nottested"
20837if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20838  # do not overwrite the value of need_locks provided by the user
20839  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20841  hard_links=yes
20842  $rm conftest*
20843  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20844  touch conftest.a
20845  ln conftest.a conftest.b 2>&5 || hard_links=no
20846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20847  echo "$as_me:$LINENO: result: $hard_links" >&5
20848echo "${ECHO_T}$hard_links" >&6
20849  if test "$hard_links" = no; then
20850    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20852    need_locks=warn
20853  fi
20854else
20855  need_locks=no
20856fi
20857
20858echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20859echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20860
20861  runpath_var=
20862  allow_undefined_flag_GCJ=
20863  enable_shared_with_static_runtimes_GCJ=no
20864  archive_cmds_GCJ=
20865  archive_expsym_cmds_GCJ=
20866  old_archive_From_new_cmds_GCJ=
20867  old_archive_from_expsyms_cmds_GCJ=
20868  export_dynamic_flag_spec_GCJ=
20869  whole_archive_flag_spec_GCJ=
20870  thread_safe_flag_spec_GCJ=
20871  hardcode_libdir_flag_spec_GCJ=
20872  hardcode_libdir_flag_spec_ld_GCJ=
20873  hardcode_libdir_separator_GCJ=
20874  hardcode_direct_GCJ=no
20875  hardcode_minus_L_GCJ=no
20876  hardcode_shlibpath_var_GCJ=unsupported
20877  link_all_deplibs_GCJ=unknown
20878  hardcode_automatic_GCJ=no
20879  module_cmds_GCJ=
20880  module_expsym_cmds_GCJ=
20881  always_export_symbols_GCJ=no
20882  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20883  # include_expsyms should be a list of space-separated symbols to be *always*
20884  # included in the symbol list
20885  include_expsyms_GCJ=
20886  # exclude_expsyms can be an extended regexp of symbols to exclude
20887  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20888  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20889  # as well as any symbol that contains `d'.
20890  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
20891  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20892  # platforms (ab)use it in PIC code, but their linkers get confused if
20893  # the symbol is explicitly referenced.  Since portable code cannot
20894  # rely on this symbol name, it's probably fine to never include it in
20895  # preloaded symbol tables.
20896  extract_expsyms_cmds=
20897  # Just being paranoid about ensuring that cc_basename is set.
20898  for cc_temp in $compiler""; do
20899  case $cc_temp in
20900    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20901    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20902    \-*) ;;
20903    *) break;;
20904  esac
20905done
20906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20907
20908  case $host_os in
20909  cygwin* | mingw* | pw32*)
20910    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20911    # When not using gcc, we currently assume that we are using
20912    # Microsoft Visual C++.
20913    if test "$GCC" != yes; then
20914      with_gnu_ld=no
20915    fi
20916    ;;
20917  interix*)
20918    # we just hope/assume this is gcc and not c89 (= MSVC++)
20919    with_gnu_ld=yes
20920    ;;
20921  openbsd*)
20922    with_gnu_ld=no
20923    ;;
20924  esac
20925
20926  ld_shlibs_GCJ=yes
20927  if test "$with_gnu_ld" = yes; then
20928    # If archive_cmds runs LD, not CC, wlarc should be empty
20929    wlarc='${wl}'
20930
20931    # Set some defaults for GNU ld with shared library support. These
20932    # are reset later if shared libraries are not supported. Putting them
20933    # here allows them to be overridden if necessary.
20934    runpath_var=LD_RUN_PATH
20935    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20936    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20937    # ancient GNU ld didn't support --whole-archive et. al.
20938    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20939	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20940      else
20941  	whole_archive_flag_spec_GCJ=
20942    fi
20943    supports_anon_versioning=no
20944    case `$LD -v 2>/dev/null` in
20945      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20946      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20947      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20948      *\ 2.11.*) ;; # other 2.11 versions
20949      *) supports_anon_versioning=yes ;;
20950    esac
20951
20952    # See if GNU ld supports shared libraries.
20953    case $host_os in
20954    aix3* | aix4* | aix5*)
20955      # On AIX/PPC, the GNU linker is very broken
20956      if test "$host_cpu" != ia64; then
20957	ld_shlibs_GCJ=no
20958	cat <<EOF 1>&2
20959
20960*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20961*** to be unable to reliably create shared libraries on AIX.
20962*** Therefore, libtool is disabling shared libraries support.  If you
20963*** really care for shared libraries, you may want to modify your PATH
20964*** so that a non-GNU linker is found, and then restart.
20965
20966EOF
20967      fi
20968      ;;
20969
20970    amigaos*)
20971      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)'
20972      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20973      hardcode_minus_L_GCJ=yes
20974
20975      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20976      # that the semantics of dynamic libraries on AmigaOS, at least up
20977      # to version 4, is to share data among multiple programs linked
20978      # with the same dynamic library.  Since this doesn't match the
20979      # behavior of shared libraries on other platforms, we can't use
20980      # them.
20981      ld_shlibs_GCJ=no
20982      ;;
20983
20984    beos*)
20985      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20986	allow_undefined_flag_GCJ=unsupported
20987	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20988	# support --undefined.  This deserves some investigation.  FIXME
20989	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20990      else
20991	ld_shlibs_GCJ=no
20992      fi
20993      ;;
20994
20995    cygwin* | mingw* | pw32*)
20996      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20997      # as there is no search path for DLLs.
20998      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20999      allow_undefined_flag_GCJ=unsupported
21000      always_export_symbols_GCJ=no
21001      enable_shared_with_static_runtimes_GCJ=yes
21002      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21003
21004      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21005        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21006	# If the export-symbols file already is a .def file (1st line
21007	# is EXPORTS), use it as is; otherwise, prepend...
21008	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21009	  cp $export_symbols $output_objdir/$soname.def;
21010	else
21011	  echo EXPORTS > $output_objdir/$soname.def;
21012	  cat $export_symbols >> $output_objdir/$soname.def;
21013	fi~
21014	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21015      else
21016	ld_shlibs_GCJ=no
21017      fi
21018      ;;
21019
21020    interix3*)
21021      hardcode_direct_GCJ=no
21022      hardcode_shlibpath_var_GCJ=no
21023      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21024      export_dynamic_flag_spec_GCJ='${wl}-E'
21025      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21026      # Instead, shared libraries are loaded at an image base (0x10000000 by
21027      # default) and relocated if they conflict, which is a slow very memory
21028      # consuming and fragmenting process.  To avoid this, we pick a random,
21029      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21030      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21031      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21032      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21033      ;;
21034
21035    linux*)
21036      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21037	tmp_addflag=
21038	case $cc_basename,$host_cpu in
21039	pgcc*)				# Portland Group C compiler
21040	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21041	  tmp_addflag=' $pic_flag'
21042	  ;;
21043	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21044	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21045	  tmp_addflag=' $pic_flag -Mnomain' ;;
21046	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21047	  tmp_addflag=' -i_dynamic' ;;
21048	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21049	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21050	ifc* | ifort*)			# Intel Fortran compiler
21051	  tmp_addflag=' -nofor_main' ;;
21052	esac
21053	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21054
21055	if test $supports_anon_versioning = yes; then
21056	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21057  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21058  $echo "local: *; };" >> $output_objdir/$libname.ver~
21059	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21060	fi
21061      else
21062	ld_shlibs_GCJ=no
21063      fi
21064      ;;
21065
21066    netbsd*)
21067      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21068	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21069	wlarc=
21070      else
21071	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21072	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21073      fi
21074      ;;
21075
21076    solaris*)
21077      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21078	ld_shlibs_GCJ=no
21079	cat <<EOF 1>&2
21080
21081*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21082*** create shared libraries on Solaris systems.  Therefore, libtool
21083*** is disabling shared libraries support.  We urge you to upgrade GNU
21084*** binutils to release 2.9.1 or newer.  Another option is to modify
21085*** your PATH or compiler configuration so that the native linker is
21086*** used, and then restart.
21087
21088EOF
21089      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21090	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21091	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21092      else
21093	ld_shlibs_GCJ=no
21094      fi
21095      ;;
21096
21097    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21098      case `$LD -v 2>&1` in
21099        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21100	ld_shlibs_GCJ=no
21101	cat <<_LT_EOF 1>&2
21102
21103*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21104*** reliably create shared libraries on SCO systems.  Therefore, libtool
21105*** is disabling shared libraries support.  We urge you to upgrade GNU
21106*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21107*** your PATH or compiler configuration so that the native linker is
21108*** used, and then restart.
21109
21110_LT_EOF
21111	;;
21112	*)
21113	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21114	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21115	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21116	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21117	  else
21118	    ld_shlibs_GCJ=no
21119	  fi
21120	;;
21121      esac
21122      ;;
21123
21124    sunos4*)
21125      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21126      wlarc=
21127      hardcode_direct_GCJ=yes
21128      hardcode_shlibpath_var_GCJ=no
21129      ;;
21130
21131    *)
21132      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21133	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21134	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21135      else
21136	ld_shlibs_GCJ=no
21137      fi
21138      ;;
21139    esac
21140
21141    if test "$ld_shlibs_GCJ" = no; then
21142      runpath_var=
21143      hardcode_libdir_flag_spec_GCJ=
21144      export_dynamic_flag_spec_GCJ=
21145      whole_archive_flag_spec_GCJ=
21146    fi
21147  else
21148    # PORTME fill in a description of your system's linker (not GNU ld)
21149    case $host_os in
21150    aix3*)
21151      allow_undefined_flag_GCJ=unsupported
21152      always_export_symbols_GCJ=yes
21153      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'
21154      # Note: this linker hardcodes the directories in LIBPATH if there
21155      # are no directories specified by -L.
21156      hardcode_minus_L_GCJ=yes
21157      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21158	# Neither direct hardcoding nor static linking is supported with a
21159	# broken collect2.
21160	hardcode_direct_GCJ=unsupported
21161      fi
21162      ;;
21163
21164    aix4* | aix5*)
21165      if test "$host_cpu" = ia64; then
21166	# On IA64, the linker does run time linking by default, so we don't
21167	# have to do anything special.
21168	aix_use_runtimelinking=no
21169	exp_sym_flag='-Bexport'
21170	no_entry_flag=""
21171      else
21172	# If we're using GNU nm, then we don't want the "-C" option.
21173	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21174	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21175	  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'
21176	else
21177	  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'
21178	fi
21179	aix_use_runtimelinking=no
21180
21181	# Test if we are trying to use run time linking or normal
21182	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21183	# need to do runtime linking.
21184	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21185	  for ld_flag in $LDFLAGS; do
21186  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21187  	    aix_use_runtimelinking=yes
21188  	    break
21189  	  fi
21190	  done
21191	  ;;
21192	esac
21193
21194	exp_sym_flag='-bexport'
21195	no_entry_flag='-bnoentry'
21196      fi
21197
21198      # When large executables or shared objects are built, AIX ld can
21199      # have problems creating the table of contents.  If linking a library
21200      # or program results in "error TOC overflow" add -mminimal-toc to
21201      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21202      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21203
21204      archive_cmds_GCJ=''
21205      hardcode_direct_GCJ=yes
21206      hardcode_libdir_separator_GCJ=':'
21207      link_all_deplibs_GCJ=yes
21208
21209      if test "$GCC" = yes; then
21210	case $host_os in aix4.[012]|aix4.[012].*)
21211	# We only want to do this on AIX 4.2 and lower, the check
21212	# below for broken collect2 doesn't work under 4.3+
21213	  collect2name=`${CC} -print-prog-name=collect2`
21214	  if test -f "$collect2name" && \
21215  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21216	  then
21217  	  # We have reworked collect2
21218  	  hardcode_direct_GCJ=yes
21219	  else
21220  	  # We have old collect2
21221  	  hardcode_direct_GCJ=unsupported
21222  	  # It fails to find uninstalled libraries when the uninstalled
21223  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21224  	  # to unsupported forces relinking
21225  	  hardcode_minus_L_GCJ=yes
21226  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21227  	  hardcode_libdir_separator_GCJ=
21228	  fi
21229	  ;;
21230	esac
21231	shared_flag='-shared'
21232	if test "$aix_use_runtimelinking" = yes; then
21233	  shared_flag="$shared_flag "'${wl}-G'
21234	fi
21235      else
21236	# not using gcc
21237	if test "$host_cpu" = ia64; then
21238  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21239  	# chokes on -Wl,-G. The following line is correct:
21240	  shared_flag='-G'
21241	else
21242	  if test "$aix_use_runtimelinking" = yes; then
21243	    shared_flag='${wl}-G'
21244	  else
21245	    shared_flag='${wl}-bM:SRE'
21246	  fi
21247	fi
21248      fi
21249
21250      # It seems that -bexpall does not export symbols beginning with
21251      # underscore (_), so it is better to generate a list of symbols to export.
21252      always_export_symbols_GCJ=yes
21253      if test "$aix_use_runtimelinking" = yes; then
21254	# Warning - without using the other runtime loading flags (-brtl),
21255	# -berok will link without error, but may produce a broken library.
21256	allow_undefined_flag_GCJ='-berok'
21257       # Determine the default libpath from the value encoded in an empty executable.
21258       cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h.  */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h.  */
21264
21265int
21266main ()
21267{
21268
21269  ;
21270  return 0;
21271}
21272_ACEOF
21273rm -f conftest.$ac_objext conftest$ac_exeext
21274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21275  (eval $ac_link) 2>conftest.er1
21276  ac_status=$?
21277  grep -v '^ *+' conftest.er1 >conftest.err
21278  rm -f conftest.er1
21279  cat conftest.err >&5
21280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281  (exit $ac_status); } &&
21282	 { ac_try='test -z "$ac_c_werror_flag"
21283			 || test ! -s conftest.err'
21284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285  (eval $ac_try) 2>&5
21286  ac_status=$?
21287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288  (exit $ac_status); }; } &&
21289	 { ac_try='test -s conftest$ac_exeext'
21290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291  (eval $ac_try) 2>&5
21292  ac_status=$?
21293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294  (exit $ac_status); }; }; then
21295
21296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21297}'`
21298# Check for a 64-bit object if we didn't find anything.
21299if 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; }
21300}'`; fi
21301else
21302  echo "$as_me: failed program was:" >&5
21303sed 's/^/| /' conftest.$ac_ext >&5
21304
21305fi
21306rm -f conftest.err conftest.$ac_objext \
21307      conftest$ac_exeext conftest.$ac_ext
21308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21309
21310       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21311	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21312       else
21313	if test "$host_cpu" = ia64; then
21314	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21315	  allow_undefined_flag_GCJ="-z nodefs"
21316	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
21317	else
21318	 # Determine the default libpath from the value encoded in an empty executable.
21319	 cat >conftest.$ac_ext <<_ACEOF
21320/* confdefs.h.  */
21321_ACEOF
21322cat confdefs.h >>conftest.$ac_ext
21323cat >>conftest.$ac_ext <<_ACEOF
21324/* end confdefs.h.  */
21325
21326int
21327main ()
21328{
21329
21330  ;
21331  return 0;
21332}
21333_ACEOF
21334rm -f conftest.$ac_objext conftest$ac_exeext
21335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21336  (eval $ac_link) 2>conftest.er1
21337  ac_status=$?
21338  grep -v '^ *+' conftest.er1 >conftest.err
21339  rm -f conftest.er1
21340  cat conftest.err >&5
21341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342  (exit $ac_status); } &&
21343	 { ac_try='test -z "$ac_c_werror_flag"
21344			 || test ! -s conftest.err'
21345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346  (eval $ac_try) 2>&5
21347  ac_status=$?
21348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349  (exit $ac_status); }; } &&
21350	 { ac_try='test -s conftest$ac_exeext'
21351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352  (eval $ac_try) 2>&5
21353  ac_status=$?
21354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355  (exit $ac_status); }; }; then
21356
21357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21358}'`
21359# Check for a 64-bit object if we didn't find anything.
21360if 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; }
21361}'`; fi
21362else
21363  echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366fi
21367rm -f conftest.err conftest.$ac_objext \
21368      conftest$ac_exeext conftest.$ac_ext
21369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21370
21371	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21372	  # Warning - without using the other run time loading flags,
21373	  # -berok will link without error, but may produce a broken library.
21374	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21375	  allow_undefined_flag_GCJ=' ${wl}-berok'
21376	  # Exported symbols can be pulled into shared objects from archives
21377	  whole_archive_flag_spec_GCJ='$convenience'
21378	  archive_cmds_need_lc_GCJ=yes
21379	  # This is similar to how AIX traditionally builds its shared libraries.
21380	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21381	fi
21382      fi
21383      ;;
21384
21385    amigaos*)
21386      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)'
21387      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21388      hardcode_minus_L_GCJ=yes
21389      # see comment about different semantics on the GNU ld section
21390      ld_shlibs_GCJ=no
21391      ;;
21392
21393    bsdi[45]*)
21394      export_dynamic_flag_spec_GCJ=-rdynamic
21395      ;;
21396
21397    cygwin* | mingw* | pw32*)
21398      # When not using gcc, we currently assume that we are using
21399      # Microsoft Visual C++.
21400      # hardcode_libdir_flag_spec is actually meaningless, as there is
21401      # no search path for DLLs.
21402      hardcode_libdir_flag_spec_GCJ=' '
21403      allow_undefined_flag_GCJ=unsupported
21404      # Tell ltmain to make .lib files, not .a files.
21405      libext=lib
21406      # Tell ltmain to make .dll files, not .so files.
21407      shrext_cmds=".dll"
21408      # FIXME: Setting linknames here is a bad hack.
21409      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21410      # The linker will automatically build a .lib file if we build a DLL.
21411      old_archive_From_new_cmds_GCJ='true'
21412      # FIXME: Should let the user specify the lib program.
21413      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21414      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
21415      enable_shared_with_static_runtimes_GCJ=yes
21416      ;;
21417
21418    darwin* | rhapsody*)
21419      case $host_os in
21420        rhapsody* | darwin1.[012])
21421         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21422         ;;
21423       *) # Darwin 1.3 on
21424         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21425           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21426         else
21427           case ${MACOSX_DEPLOYMENT_TARGET} in
21428             10.[012])
21429               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21430               ;;
21431             10.*)
21432               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21433               ;;
21434           esac
21435         fi
21436         ;;
21437      esac
21438      archive_cmds_need_lc_GCJ=no
21439      hardcode_direct_GCJ=no
21440      hardcode_automatic_GCJ=yes
21441      hardcode_shlibpath_var_GCJ=unsupported
21442      whole_archive_flag_spec_GCJ=''
21443      link_all_deplibs_GCJ=yes
21444    if test "$GCC" = yes ; then
21445    	output_verbose_link_cmd='echo'
21446        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21447      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21448      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21449      archive_expsym_cmds_GCJ='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}'
21450      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}'
21451    else
21452      case $cc_basename in
21453        xlc*)
21454         output_verbose_link_cmd='echo'
21455         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21456         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21457          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21458         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21459          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}'
21460          ;;
21461       *)
21462         ld_shlibs_GCJ=no
21463          ;;
21464      esac
21465    fi
21466      ;;
21467
21468    dgux*)
21469      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21470      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21471      hardcode_shlibpath_var_GCJ=no
21472      ;;
21473
21474    freebsd1*)
21475      ld_shlibs_GCJ=no
21476      ;;
21477
21478    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21479    # support.  Future versions do this automatically, but an explicit c++rt0.o
21480    # does not break anything, and helps significantly (at the cost of a little
21481    # extra space).
21482    freebsd2.2*)
21483      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21484      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21485      hardcode_direct_GCJ=yes
21486      hardcode_shlibpath_var_GCJ=no
21487      ;;
21488
21489    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21490    freebsd2*)
21491      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21492      hardcode_direct_GCJ=yes
21493      hardcode_minus_L_GCJ=yes
21494      hardcode_shlibpath_var_GCJ=no
21495      ;;
21496
21497    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21498    freebsd* | kfreebsd*-gnu | dragonfly*)
21499      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21500      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21501      hardcode_direct_GCJ=yes
21502      hardcode_shlibpath_var_GCJ=no
21503      ;;
21504
21505    hpux9*)
21506      if test "$GCC" = yes; then
21507	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'
21508      else
21509	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'
21510      fi
21511      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21512      hardcode_libdir_separator_GCJ=:
21513      hardcode_direct_GCJ=yes
21514
21515      # hardcode_minus_L: Not really in the search PATH,
21516      # but as the default location of the library.
21517      hardcode_minus_L_GCJ=yes
21518      export_dynamic_flag_spec_GCJ='${wl}-E'
21519      ;;
21520
21521    hpux10*)
21522      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21523	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21524      else
21525	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21526      fi
21527      if test "$with_gnu_ld" = no; then
21528	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21529	hardcode_libdir_separator_GCJ=:
21530
21531	hardcode_direct_GCJ=yes
21532	export_dynamic_flag_spec_GCJ='${wl}-E'
21533
21534	# hardcode_minus_L: Not really in the search PATH,
21535	# but as the default location of the library.
21536	hardcode_minus_L_GCJ=yes
21537      fi
21538      ;;
21539
21540    hpux11*)
21541      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21542	case $host_cpu in
21543	hppa*64*)
21544	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21545	  ;;
21546	ia64*)
21547	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21548	  ;;
21549	*)
21550	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21551	  ;;
21552	esac
21553      else
21554	case $host_cpu in
21555	hppa*64*)
21556	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21557	  ;;
21558	ia64*)
21559	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21560	  ;;
21561	*)
21562	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21563	  ;;
21564	esac
21565      fi
21566      if test "$with_gnu_ld" = no; then
21567	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21568	hardcode_libdir_separator_GCJ=:
21569
21570	case $host_cpu in
21571	hppa*64*|ia64*)
21572	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21573	  hardcode_direct_GCJ=no
21574	  hardcode_shlibpath_var_GCJ=no
21575	  ;;
21576	*)
21577	  hardcode_direct_GCJ=yes
21578	  export_dynamic_flag_spec_GCJ='${wl}-E'
21579
21580	  # hardcode_minus_L: Not really in the search PATH,
21581	  # but as the default location of the library.
21582	  hardcode_minus_L_GCJ=yes
21583	  ;;
21584	esac
21585      fi
21586      ;;
21587
21588    irix5* | irix6* | nonstopux*)
21589      if test "$GCC" = yes; then
21590	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'
21591      else
21592	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'
21593	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21594      fi
21595      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21596      hardcode_libdir_separator_GCJ=:
21597      link_all_deplibs_GCJ=yes
21598      ;;
21599
21600    netbsd*)
21601      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21602	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21603      else
21604	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21605      fi
21606      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21607      hardcode_direct_GCJ=yes
21608      hardcode_shlibpath_var_GCJ=no
21609      ;;
21610
21611    newsos6)
21612      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21613      hardcode_direct_GCJ=yes
21614      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21615      hardcode_libdir_separator_GCJ=:
21616      hardcode_shlibpath_var_GCJ=no
21617      ;;
21618
21619    openbsd*)
21620      hardcode_direct_GCJ=yes
21621      hardcode_shlibpath_var_GCJ=no
21622      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21623	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21624	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21625	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21626	export_dynamic_flag_spec_GCJ='${wl}-E'
21627      else
21628       case $host_os in
21629	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21630	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21631	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
21632	   ;;
21633	 *)
21634	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21635	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21636	   ;;
21637       esac
21638      fi
21639      ;;
21640
21641    os2*)
21642      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21643      hardcode_minus_L_GCJ=yes
21644      allow_undefined_flag_GCJ=unsupported
21645      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'
21646      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21647      ;;
21648
21649    osf3*)
21650      if test "$GCC" = yes; then
21651	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21652	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'
21653      else
21654	allow_undefined_flag_GCJ=' -expect_unresolved \*'
21655	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'
21656      fi
21657      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21658      hardcode_libdir_separator_GCJ=:
21659      ;;
21660
21661    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21662      if test "$GCC" = yes; then
21663	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21664	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'
21665	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21666      else
21667	allow_undefined_flag_GCJ=' -expect_unresolved \*'
21668	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'
21669	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~
21670	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21671
21672	# Both c and cxx compiler support -rpath directly
21673	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21674      fi
21675      hardcode_libdir_separator_GCJ=:
21676      ;;
21677
21678    solaris*)
21679      no_undefined_flag_GCJ=' -z text'
21680      if test "$GCC" = yes; then
21681	wlarc='${wl}'
21682	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21683	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21684	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21685      else
21686	wlarc=''
21687	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21688	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21689  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21690      fi
21691      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21692      hardcode_shlibpath_var_GCJ=no
21693      case $host_os in
21694      solaris2.[0-5] | solaris2.[0-5].*) ;;
21695      *)
21696 	# The compiler driver will combine linker options so we
21697 	# cannot just pass the convience library names through
21698 	# without $wl, iff we do not link with $LD.
21699 	# Luckily, gcc supports the same syntax we need for Sun Studio.
21700 	# Supported since Solaris 2.6 (maybe 2.5.1?)
21701 	case $wlarc in
21702 	'')
21703 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21704 	*)
21705 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
21706 	esac ;;
21707      esac
21708      link_all_deplibs_GCJ=yes
21709      ;;
21710
21711    sunos4*)
21712      if test "x$host_vendor" = xsequent; then
21713	# Use $CC to link under sequent, because it throws in some extra .o
21714	# files that make .init and .fini sections work.
21715	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21716      else
21717	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21718      fi
21719      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21720      hardcode_direct_GCJ=yes
21721      hardcode_minus_L_GCJ=yes
21722      hardcode_shlibpath_var_GCJ=no
21723      ;;
21724
21725    sysv4)
21726      case $host_vendor in
21727	sni)
21728	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21729	  hardcode_direct_GCJ=yes # is this really true???
21730	;;
21731	siemens)
21732	  ## LD is ld it makes a PLAMLIB
21733	  ## CC just makes a GrossModule.
21734	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21735	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21736	  hardcode_direct_GCJ=no
21737        ;;
21738	motorola)
21739	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21740	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21741	;;
21742      esac
21743      runpath_var='LD_RUN_PATH'
21744      hardcode_shlibpath_var_GCJ=no
21745      ;;
21746
21747    sysv4.3*)
21748      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21749      hardcode_shlibpath_var_GCJ=no
21750      export_dynamic_flag_spec_GCJ='-Bexport'
21751      ;;
21752
21753    sysv4*MP*)
21754      if test -d /usr/nec; then
21755	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21756	hardcode_shlibpath_var_GCJ=no
21757	runpath_var=LD_RUN_PATH
21758	hardcode_runpath_var=yes
21759	ld_shlibs_GCJ=yes
21760      fi
21761      ;;
21762
21763    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21764      no_undefined_flag_GCJ='${wl}-z,text'
21765      archive_cmds_need_lc_GCJ=no
21766      hardcode_shlibpath_var_GCJ=no
21767      runpath_var='LD_RUN_PATH'
21768
21769      if test "$GCC" = yes; then
21770	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21771	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21772      else
21773	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21774	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21775      fi
21776      ;;
21777
21778    sysv5* | sco3.2v5* | sco5v6*)
21779      # Note: We can NOT use -z defs as we might desire, because we do not
21780      # link with -lc, and that would cause any symbols used from libc to
21781      # always be unresolved, which means just about no library would
21782      # ever link correctly.  If we're not using GNU ld we use -z text
21783      # though, which does catch some bad symbols but isn't as heavy-handed
21784      # as -z defs.
21785      no_undefined_flag_GCJ='${wl}-z,text'
21786      allow_undefined_flag_GCJ='${wl}-z,nodefs'
21787      archive_cmds_need_lc_GCJ=no
21788      hardcode_shlibpath_var_GCJ=no
21789      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21790      hardcode_libdir_separator_GCJ=':'
21791      link_all_deplibs_GCJ=yes
21792      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21793      runpath_var='LD_RUN_PATH'
21794
21795      if test "$GCC" = yes; then
21796	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21797	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21798      else
21799	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21800	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21801      fi
21802      ;;
21803
21804    uts4*)
21805      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21806      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21807      hardcode_shlibpath_var_GCJ=no
21808      ;;
21809
21810    *)
21811      ld_shlibs_GCJ=no
21812      ;;
21813    esac
21814  fi
21815
21816echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21817echo "${ECHO_T}$ld_shlibs_GCJ" >&6
21818test "$ld_shlibs_GCJ" = no && can_build_shared=no
21819
21820#
21821# Do we need to explicitly link libc?
21822#
21823case "x$archive_cmds_need_lc_GCJ" in
21824x|xyes)
21825  # Assume -lc should be added
21826  archive_cmds_need_lc_GCJ=yes
21827
21828  if test "$enable_shared" = yes && test "$GCC" = yes; then
21829    case $archive_cmds_GCJ in
21830    *'~'*)
21831      # FIXME: we may have to deal with multi-command sequences.
21832      ;;
21833    '$CC '*)
21834      # Test whether the compiler implicitly links with -lc since on some
21835      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21836      # to ld, don't add -lc before -lgcc.
21837      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21838echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21839      $rm conftest*
21840      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21841
21842      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21843  (eval $ac_compile) 2>&5
21844  ac_status=$?
21845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846  (exit $ac_status); } 2>conftest.err; then
21847        soname=conftest
21848        lib=conftest
21849        libobjs=conftest.$ac_objext
21850        deplibs=
21851        wl=$lt_prog_compiler_wl_GCJ
21852	pic_flag=$lt_prog_compiler_pic_GCJ
21853        compiler_flags=-v
21854        linker_flags=-v
21855        verstring=
21856        output_objdir=.
21857        libname=conftest
21858        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21859        allow_undefined_flag_GCJ=
21860        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21861  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21862  ac_status=$?
21863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864  (exit $ac_status); }
21865        then
21866	  archive_cmds_need_lc_GCJ=no
21867        else
21868	  archive_cmds_need_lc_GCJ=yes
21869        fi
21870        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21871      else
21872        cat conftest.err 1>&5
21873      fi
21874      $rm conftest*
21875      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21876echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
21877      ;;
21878    esac
21879  fi
21880  ;;
21881esac
21882
21883echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21884echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21885library_names_spec=
21886libname_spec='lib$name'
21887soname_spec=
21888shrext_cmds=".so"
21889postinstall_cmds=
21890postuninstall_cmds=
21891finish_cmds=
21892finish_eval=
21893shlibpath_var=
21894shlibpath_overrides_runpath=unknown
21895version_type=none
21896dynamic_linker="$host_os ld.so"
21897sys_lib_dlsearch_path_spec="/lib /usr/lib"
21898if test "$GCC" = yes; then
21899  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21900  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21901    # if the path contains ";" then we assume it to be the separator
21902    # otherwise default to the standard path separator (i.e. ":") - it is
21903    # assumed that no part of a normal pathname contains ";" but that should
21904    # okay in the real world where ";" in dirpaths is itself problematic.
21905    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21906  else
21907    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21908  fi
21909else
21910  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21911fi
21912need_lib_prefix=unknown
21913hardcode_into_libs=no
21914
21915# when you set need_version to no, make sure it does not cause -set_version
21916# flags to be left without arguments
21917need_version=unknown
21918
21919case $host_os in
21920aix3*)
21921  version_type=linux
21922  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21923  shlibpath_var=LIBPATH
21924
21925  # AIX 3 has no versioning support, so we append a major version to the name.
21926  soname_spec='${libname}${release}${shared_ext}$major'
21927  ;;
21928
21929aix4* | aix5*)
21930  version_type=linux
21931  need_lib_prefix=no
21932  need_version=no
21933  hardcode_into_libs=yes
21934  if test "$host_cpu" = ia64; then
21935    # AIX 5 supports IA64
21936    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21937    shlibpath_var=LD_LIBRARY_PATH
21938  else
21939    # With GCC up to 2.95.x, collect2 would create an import file
21940    # for dependence libraries.  The import file would start with
21941    # the line `#! .'.  This would cause the generated library to
21942    # depend on `.', always an invalid library.  This was fixed in
21943    # development snapshots of GCC prior to 3.0.
21944    case $host_os in
21945      aix4 | aix4.[01] | aix4.[01].*)
21946      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21947	   echo ' yes '
21948	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21949	:
21950      else
21951	can_build_shared=no
21952      fi
21953      ;;
21954    esac
21955    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21956    # soname into executable. Probably we can add versioning support to
21957    # collect2, so additional links can be useful in future.
21958    if test "$aix_use_runtimelinking" = yes; then
21959      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21960      # instead of lib<name>.a to let people know that these are not
21961      # typical AIX shared libraries.
21962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21963    else
21964      # We preserve .a as extension for shared libraries through AIX4.2
21965      # and later when we are not doing run time linking.
21966      library_names_spec='${libname}${release}.a $libname.a'
21967      soname_spec='${libname}${release}${shared_ext}$major'
21968    fi
21969    shlibpath_var=LIBPATH
21970  fi
21971  ;;
21972
21973amigaos*)
21974  library_names_spec='$libname.ixlibrary $libname.a'
21975  # Create ${libname}_ixlibrary.a entries in /sys/libs.
21976  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'
21977  ;;
21978
21979beos*)
21980  library_names_spec='${libname}${shared_ext}'
21981  dynamic_linker="$host_os ld.so"
21982  shlibpath_var=LIBRARY_PATH
21983  ;;
21984
21985bsdi[45]*)
21986  version_type=linux
21987  need_version=no
21988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21989  soname_spec='${libname}${release}${shared_ext}$major'
21990  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21991  shlibpath_var=LD_LIBRARY_PATH
21992  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21993  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21994  # the default ld.so.conf also contains /usr/contrib/lib and
21995  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21996  # libtool to hard-code these into programs
21997  ;;
21998
21999cygwin* | mingw* | pw32*)
22000  version_type=windows
22001  shrext_cmds=".dll"
22002  need_version=no
22003  need_lib_prefix=no
22004
22005  case $GCC,$host_os in
22006  yes,cygwin* | yes,mingw* | yes,pw32*)
22007    library_names_spec='$libname.dll.a'
22008    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22009    postinstall_cmds='base_file=`basename \${file}`~
22010      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22011      dldir=$destdir/`dirname \$dlpath`~
22012      test -d \$dldir || mkdir -p \$dldir~
22013      $install_prog $dir/$dlname \$dldir/$dlname~
22014      chmod a+x \$dldir/$dlname'
22015    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22016      dlpath=$dir/\$dldll~
22017       $rm \$dlpath'
22018    shlibpath_overrides_runpath=yes
22019
22020    case $host_os in
22021    cygwin*)
22022      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22023      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22024      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22025      ;;
22026    mingw*)
22027      # MinGW DLLs use traditional 'lib' prefix
22028      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22029      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22030      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22031        # It is most probably a Windows format PATH printed by
22032        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22033        # path with ; separators, and with drive letters. We can handle the
22034        # drive letters (cygwin fileutils understands them), so leave them,
22035        # especially as we might pass files found there to a mingw objdump,
22036        # which wouldn't understand a cygwinified path. Ahh.
22037        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22038      else
22039        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22040      fi
22041      ;;
22042    pw32*)
22043      # pw32 DLLs use 'pw' prefix rather than 'lib'
22044      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22045      ;;
22046    esac
22047    ;;
22048
22049  *)
22050    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22051    ;;
22052  esac
22053  dynamic_linker='Win32 ld.exe'
22054  # FIXME: first we should search . and the directory the executable is in
22055  shlibpath_var=PATH
22056  ;;
22057
22058darwin* | rhapsody*)
22059  dynamic_linker="$host_os dyld"
22060  version_type=darwin
22061  need_lib_prefix=no
22062  need_version=no
22063  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22064  soname_spec='${libname}${release}${major}$shared_ext'
22065  shlibpath_overrides_runpath=yes
22066  shlibpath_var=DYLD_LIBRARY_PATH
22067  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22068  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22069  if test "$GCC" = yes; then
22070    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"`
22071  else
22072    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22073  fi
22074  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22075  ;;
22076
22077dgux*)
22078  version_type=linux
22079  need_lib_prefix=no
22080  need_version=no
22081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22082  soname_spec='${libname}${release}${shared_ext}$major'
22083  shlibpath_var=LD_LIBRARY_PATH
22084  ;;
22085
22086freebsd1*)
22087  dynamic_linker=no
22088  ;;
22089
22090kfreebsd*-gnu)
22091  version_type=linux
22092  need_lib_prefix=no
22093  need_version=no
22094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22095  soname_spec='${libname}${release}${shared_ext}$major'
22096  shlibpath_var=LD_LIBRARY_PATH
22097  shlibpath_overrides_runpath=no
22098  hardcode_into_libs=yes
22099  dynamic_linker='GNU ld.so'
22100  ;;
22101
22102freebsd* | dragonfly*)
22103  # DragonFly does not have aout.  When/if they implement a new
22104  # versioning mechanism, adjust this.
22105  if test -x /usr/bin/objformat; then
22106    objformat=`/usr/bin/objformat`
22107  else
22108    case $host_os in
22109    freebsd[123]*) objformat=aout ;;
22110    *) objformat=elf ;;
22111    esac
22112  fi
22113  version_type=freebsd-$objformat
22114  case $version_type in
22115    freebsd-elf*)
22116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22117      need_version=no
22118      need_lib_prefix=no
22119      ;;
22120    freebsd-*)
22121      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22122      need_version=yes
22123      ;;
22124  esac
22125  shlibpath_var=LD_LIBRARY_PATH
22126  case $host_os in
22127  freebsd2*)
22128    shlibpath_overrides_runpath=yes
22129    ;;
22130  freebsd3.[01]* | freebsdelf3.[01]*)
22131    shlibpath_overrides_runpath=yes
22132    hardcode_into_libs=yes
22133    ;;
22134  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22135  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22136    shlibpath_overrides_runpath=no
22137    hardcode_into_libs=yes
22138    ;;
22139  freebsd*) # from 4.6 on
22140    shlibpath_overrides_runpath=yes
22141    hardcode_into_libs=yes
22142    ;;
22143  esac
22144  ;;
22145
22146gnu*)
22147  version_type=linux
22148  need_lib_prefix=no
22149  need_version=no
22150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22151  soname_spec='${libname}${release}${shared_ext}$major'
22152  shlibpath_var=LD_LIBRARY_PATH
22153  hardcode_into_libs=yes
22154  ;;
22155
22156hpux9* | hpux10* | hpux11*)
22157  # Give a soname corresponding to the major version so that dld.sl refuses to
22158  # link against other versions.
22159  version_type=sunos
22160  need_lib_prefix=no
22161  need_version=no
22162  case $host_cpu in
22163  ia64*)
22164    shrext_cmds='.so'
22165    hardcode_into_libs=yes
22166    dynamic_linker="$host_os dld.so"
22167    shlibpath_var=LD_LIBRARY_PATH
22168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22170    soname_spec='${libname}${release}${shared_ext}$major'
22171    if test "X$HPUX_IA64_MODE" = X32; then
22172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22173    else
22174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22175    fi
22176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22177    ;;
22178   hppa*64*)
22179     shrext_cmds='.sl'
22180     hardcode_into_libs=yes
22181     dynamic_linker="$host_os dld.sl"
22182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22185     soname_spec='${libname}${release}${shared_ext}$major'
22186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22188     ;;
22189   *)
22190    shrext_cmds='.sl'
22191    dynamic_linker="$host_os dld.sl"
22192    shlibpath_var=SHLIB_PATH
22193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22195    soname_spec='${libname}${release}${shared_ext}$major'
22196    ;;
22197  esac
22198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22199  postinstall_cmds='chmod 555 $lib'
22200  ;;
22201
22202interix3*)
22203  version_type=linux
22204  need_lib_prefix=no
22205  need_version=no
22206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22207  soname_spec='${libname}${release}${shared_ext}$major'
22208  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22209  shlibpath_var=LD_LIBRARY_PATH
22210  shlibpath_overrides_runpath=no
22211  hardcode_into_libs=yes
22212  ;;
22213
22214irix5* | irix6* | nonstopux*)
22215  case $host_os in
22216    nonstopux*) version_type=nonstopux ;;
22217    *)
22218	if test "$lt_cv_prog_gnu_ld" = yes; then
22219		version_type=linux
22220	else
22221		version_type=irix
22222	fi ;;
22223  esac
22224  need_lib_prefix=no
22225  need_version=no
22226  soname_spec='${libname}${release}${shared_ext}$major'
22227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22228  case $host_os in
22229  irix5* | nonstopux*)
22230    libsuff= shlibsuff=
22231    ;;
22232  *)
22233    case $LD in # libtool.m4 will add one of these switches to LD
22234    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22235      libsuff= shlibsuff= libmagic=32-bit;;
22236    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22237      libsuff=32 shlibsuff=N32 libmagic=N32;;
22238    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22239      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22240    *) libsuff= shlibsuff= libmagic=never-match;;
22241    esac
22242    ;;
22243  esac
22244  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22245  shlibpath_overrides_runpath=no
22246  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22247  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22248  hardcode_into_libs=yes
22249  ;;
22250
22251# No shared lib support for Linux oldld, aout, or coff.
22252linux*oldld* | linux*aout* | linux*coff*)
22253  dynamic_linker=no
22254  ;;
22255
22256# This must be Linux ELF.
22257linux*)
22258  version_type=linux
22259  need_lib_prefix=no
22260  need_version=no
22261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22262  soname_spec='${libname}${release}${shared_ext}$major'
22263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22264  shlibpath_var=LD_LIBRARY_PATH
22265  shlibpath_overrides_runpath=no
22266  # This implies no fast_install, which is unacceptable.
22267  # Some rework will be needed to allow for fast_install
22268  # before this can be enabled.
22269  hardcode_into_libs=yes
22270
22271  # find out which ABI we are using
22272  libsuff=
22273  case "$host_cpu" in
22274  x86_64*|s390x*|powerpc64*)
22275    echo '#line 22275 "configure"' > conftest.$ac_ext
22276    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22277  (eval $ac_compile) 2>&5
22278  ac_status=$?
22279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280  (exit $ac_status); }; then
22281      case `/usr/bin/file conftest.$ac_objext` in
22282      *64-bit*)
22283        libsuff=64
22284        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22285        ;;
22286      esac
22287    fi
22288    rm -rf conftest*
22289    ;;
22290  esac
22291
22292  # Append ld.so.conf contents to the search path
22293  if test -f /etc/ld.so.conf; then
22294    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22295    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22296  fi
22297
22298  # We used to test for /lib/ld.so.1 and disable shared libraries on
22299  # powerpc, because MkLinux only supported shared libraries with the
22300  # GNU dynamic linker.  Since this was broken with cross compilers,
22301  # most powerpc-linux boxes support dynamic linking these days and
22302  # people can always --disable-shared, the test was removed, and we
22303  # assume the GNU/Linux dynamic linker is in use.
22304  dynamic_linker='GNU/Linux ld.so'
22305  ;;
22306
22307knetbsd*-gnu)
22308  version_type=linux
22309  need_lib_prefix=no
22310  need_version=no
22311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22312  soname_spec='${libname}${release}${shared_ext}$major'
22313  shlibpath_var=LD_LIBRARY_PATH
22314  shlibpath_overrides_runpath=no
22315  hardcode_into_libs=yes
22316  dynamic_linker='GNU ld.so'
22317  ;;
22318
22319netbsd*)
22320  version_type=sunos
22321  need_lib_prefix=no
22322  need_version=no
22323  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22325    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22326    dynamic_linker='NetBSD (a.out) ld.so'
22327  else
22328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22329    soname_spec='${libname}${release}${shared_ext}$major'
22330    dynamic_linker='NetBSD ld.elf_so'
22331  fi
22332  shlibpath_var=LD_LIBRARY_PATH
22333  shlibpath_overrides_runpath=yes
22334  hardcode_into_libs=yes
22335  ;;
22336
22337newsos6)
22338  version_type=linux
22339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22340  shlibpath_var=LD_LIBRARY_PATH
22341  shlibpath_overrides_runpath=yes
22342  ;;
22343
22344nto-qnx*)
22345  version_type=linux
22346  need_lib_prefix=no
22347  need_version=no
22348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22349  soname_spec='${libname}${release}${shared_ext}$major'
22350  shlibpath_var=LD_LIBRARY_PATH
22351  shlibpath_overrides_runpath=yes
22352  ;;
22353
22354openbsd*)
22355  version_type=sunos
22356  sys_lib_dlsearch_path_spec="/usr/lib"
22357  need_lib_prefix=no
22358  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22359  case $host_os in
22360    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22361    *)                         need_version=no  ;;
22362  esac
22363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22364  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22365  shlibpath_var=LD_LIBRARY_PATH
22366  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22367    case $host_os in
22368      openbsd2.[89] | openbsd2.[89].*)
22369	shlibpath_overrides_runpath=no
22370	;;
22371      *)
22372	shlibpath_overrides_runpath=yes
22373	;;
22374      esac
22375  else
22376    shlibpath_overrides_runpath=yes
22377  fi
22378  ;;
22379
22380os2*)
22381  libname_spec='$name'
22382  shrext_cmds=".dll"
22383  need_lib_prefix=no
22384  library_names_spec='$libname${shared_ext} $libname.a'
22385  dynamic_linker='OS/2 ld.exe'
22386  shlibpath_var=LIBPATH
22387  ;;
22388
22389osf3* | osf4* | osf5*)
22390  version_type=osf
22391  need_lib_prefix=no
22392  need_version=no
22393  soname_spec='${libname}${release}${shared_ext}$major'
22394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22395  shlibpath_var=LD_LIBRARY_PATH
22396  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22397  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22398  ;;
22399
22400solaris*)
22401  version_type=linux
22402  need_lib_prefix=no
22403  need_version=no
22404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22405  soname_spec='${libname}${release}${shared_ext}$major'
22406  shlibpath_var=LD_LIBRARY_PATH
22407  shlibpath_overrides_runpath=yes
22408  hardcode_into_libs=yes
22409  # ldd complains unless libraries are executable
22410  postinstall_cmds='chmod +x $lib'
22411  ;;
22412
22413sunos4*)
22414  version_type=sunos
22415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22416  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22417  shlibpath_var=LD_LIBRARY_PATH
22418  shlibpath_overrides_runpath=yes
22419  if test "$with_gnu_ld" = yes; then
22420    need_lib_prefix=no
22421  fi
22422  need_version=yes
22423  ;;
22424
22425sysv4 | sysv4.3*)
22426  version_type=linux
22427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22428  soname_spec='${libname}${release}${shared_ext}$major'
22429  shlibpath_var=LD_LIBRARY_PATH
22430  case $host_vendor in
22431    sni)
22432      shlibpath_overrides_runpath=no
22433      need_lib_prefix=no
22434      export_dynamic_flag_spec='${wl}-Blargedynsym'
22435      runpath_var=LD_RUN_PATH
22436      ;;
22437    siemens)
22438      need_lib_prefix=no
22439      ;;
22440    motorola)
22441      need_lib_prefix=no
22442      need_version=no
22443      shlibpath_overrides_runpath=no
22444      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22445      ;;
22446  esac
22447  ;;
22448
22449sysv4*MP*)
22450  if test -d /usr/nec ;then
22451    version_type=linux
22452    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22453    soname_spec='$libname${shared_ext}.$major'
22454    shlibpath_var=LD_LIBRARY_PATH
22455  fi
22456  ;;
22457
22458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22459  version_type=freebsd-elf
22460  need_lib_prefix=no
22461  need_version=no
22462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22463  soname_spec='${libname}${release}${shared_ext}$major'
22464  shlibpath_var=LD_LIBRARY_PATH
22465  hardcode_into_libs=yes
22466  if test "$with_gnu_ld" = yes; then
22467    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22468    shlibpath_overrides_runpath=no
22469  else
22470    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22471    shlibpath_overrides_runpath=yes
22472    case $host_os in
22473      sco3.2v5*)
22474        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22475	;;
22476    esac
22477  fi
22478  sys_lib_dlsearch_path_spec='/usr/lib'
22479  ;;
22480
22481uts4*)
22482  version_type=linux
22483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22484  soname_spec='${libname}${release}${shared_ext}$major'
22485  shlibpath_var=LD_LIBRARY_PATH
22486  ;;
22487
22488*)
22489  dynamic_linker=no
22490  ;;
22491esac
22492echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22493echo "${ECHO_T}$dynamic_linker" >&6
22494test "$dynamic_linker" = no && can_build_shared=no
22495
22496variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22497if test "$GCC" = yes; then
22498  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22499fi
22500
22501echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22502echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22503hardcode_action_GCJ=
22504if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22505   test -n "$runpath_var_GCJ" || \
22506   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22507
22508  # We can hardcode non-existant directories.
22509  if test "$hardcode_direct_GCJ" != no &&
22510     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22511     # have to relink, otherwise we might link with an installed library
22512     # when we should be linking with a yet-to-be-installed one
22513     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22514     test "$hardcode_minus_L_GCJ" != no; then
22515    # Linking always hardcodes the temporary library directory.
22516    hardcode_action_GCJ=relink
22517  else
22518    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22519    hardcode_action_GCJ=immediate
22520  fi
22521else
22522  # We cannot hardcode anything, or else we can only hardcode existing
22523  # directories.
22524  hardcode_action_GCJ=unsupported
22525fi
22526echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22527echo "${ECHO_T}$hardcode_action_GCJ" >&6
22528
22529if test "$hardcode_action_GCJ" = relink; then
22530  # Fast installation is not supported
22531  enable_fast_install=no
22532elif test "$shlibpath_overrides_runpath" = yes ||
22533     test "$enable_shared" = no; then
22534  # Fast installation is not necessary
22535  enable_fast_install=needless
22536fi
22537
22538
22539# The else clause should only fire when bootstrapping the
22540# libtool distribution, otherwise you forgot to ship ltmain.sh
22541# with your package, and you will get complaints that there are
22542# no rules to generate ltmain.sh.
22543if test -f "$ltmain"; then
22544  # See if we are running on zsh, and set the options which allow our commands through
22545  # without removal of \ escapes.
22546  if test -n "${ZSH_VERSION+set}" ; then
22547    setopt NO_GLOB_SUBST
22548  fi
22549  # Now quote all the things that may contain metacharacters while being
22550  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22551  # variables and quote the copies for generation of the libtool script.
22552  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22553    SED SHELL STRIP \
22554    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22555    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22556    deplibs_check_method reload_flag reload_cmds need_locks \
22557    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22558    lt_cv_sys_global_symbol_to_c_name_address \
22559    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22560    old_postinstall_cmds old_postuninstall_cmds \
22561    compiler_GCJ \
22562    CC_GCJ \
22563    LD_GCJ \
22564    lt_prog_compiler_wl_GCJ \
22565    lt_prog_compiler_pic_GCJ \
22566    lt_prog_compiler_static_GCJ \
22567    lt_prog_compiler_no_builtin_flag_GCJ \
22568    export_dynamic_flag_spec_GCJ \
22569    thread_safe_flag_spec_GCJ \
22570    whole_archive_flag_spec_GCJ \
22571    enable_shared_with_static_runtimes_GCJ \
22572    old_archive_cmds_GCJ \
22573    old_archive_from_new_cmds_GCJ \
22574    predep_objects_GCJ \
22575    postdep_objects_GCJ \
22576    predeps_GCJ \
22577    postdeps_GCJ \
22578    compiler_lib_search_path_GCJ \
22579    archive_cmds_GCJ \
22580    archive_expsym_cmds_GCJ \
22581    postinstall_cmds_GCJ \
22582    postuninstall_cmds_GCJ \
22583    old_archive_from_expsyms_cmds_GCJ \
22584    allow_undefined_flag_GCJ \
22585    no_undefined_flag_GCJ \
22586    export_symbols_cmds_GCJ \
22587    hardcode_libdir_flag_spec_GCJ \
22588    hardcode_libdir_flag_spec_ld_GCJ \
22589    hardcode_libdir_separator_GCJ \
22590    hardcode_automatic_GCJ \
22591    module_cmds_GCJ \
22592    module_expsym_cmds_GCJ \
22593    lt_cv_prog_compiler_c_o_GCJ \
22594    exclude_expsyms_GCJ \
22595    include_expsyms_GCJ; do
22596
22597    case $var in
22598    old_archive_cmds_GCJ | \
22599    old_archive_from_new_cmds_GCJ | \
22600    archive_cmds_GCJ | \
22601    archive_expsym_cmds_GCJ | \
22602    module_cmds_GCJ | \
22603    module_expsym_cmds_GCJ | \
22604    old_archive_from_expsyms_cmds_GCJ | \
22605    export_symbols_cmds_GCJ | \
22606    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22607    postinstall_cmds | postuninstall_cmds | \
22608    old_postinstall_cmds | old_postuninstall_cmds | \
22609    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22610      # Double-quote double-evaled strings.
22611      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22612      ;;
22613    *)
22614      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22615      ;;
22616    esac
22617  done
22618
22619  case $lt_echo in
22620  *'\$0 --fallback-echo"')
22621    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22622    ;;
22623  esac
22624
22625cfgfile="$ofile"
22626
22627  cat <<__EOF__ >> "$cfgfile"
22628# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22629
22630# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22631
22632# Shell to use when invoking shell scripts.
22633SHELL=$lt_SHELL
22634
22635# Whether or not to build shared libraries.
22636build_libtool_libs=$enable_shared
22637
22638# Whether or not to build static libraries.
22639build_old_libs=$enable_static
22640
22641# Whether or not to add -lc for building shared libraries.
22642build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22643
22644# Whether or not to disallow shared libs when runtime libs are static
22645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22646
22647# Whether or not to optimize for fast installation.
22648fast_install=$enable_fast_install
22649
22650# The host system.
22651host_alias=$host_alias
22652host=$host
22653host_os=$host_os
22654
22655# The build system.
22656build_alias=$build_alias
22657build=$build
22658build_os=$build_os
22659
22660# An echo program that does not interpret backslashes.
22661echo=$lt_echo
22662
22663# The archiver.
22664AR=$lt_AR
22665AR_FLAGS=$lt_AR_FLAGS
22666
22667# A C compiler.
22668LTCC=$lt_LTCC
22669
22670# LTCC compiler flags.
22671LTCFLAGS=$lt_LTCFLAGS
22672
22673# A language-specific compiler.
22674CC=$lt_compiler_GCJ
22675
22676# Is the compiler the GNU C compiler?
22677with_gcc=$GCC_GCJ
22678
22679gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
22680gcc_ver=\`gcc -dumpversion\`
22681
22682# An ERE matcher.
22683EGREP=$lt_EGREP
22684
22685# The linker used to build libraries.
22686LD=$lt_LD_GCJ
22687
22688# Whether we need hard or soft links.
22689LN_S=$lt_LN_S
22690
22691# A BSD-compatible nm program.
22692NM=$lt_NM
22693
22694# A symbol stripping program
22695STRIP=$lt_STRIP
22696
22697# Used to examine libraries when file_magic_cmd begins "file"
22698MAGIC_CMD=$MAGIC_CMD
22699
22700# Used on cygwin: DLL creation program.
22701DLLTOOL="$DLLTOOL"
22702
22703# Used on cygwin: object dumper.
22704OBJDUMP="$OBJDUMP"
22705
22706# Used on cygwin: assembler.
22707AS="$AS"
22708
22709# The name of the directory that contains temporary libtool files.
22710objdir=$objdir
22711
22712# How to create reloadable object files.
22713reload_flag=$lt_reload_flag
22714reload_cmds=$lt_reload_cmds
22715
22716# How to pass a linker flag through the compiler.
22717wl=$lt_lt_prog_compiler_wl_GCJ
22718
22719# Object file suffix (normally "o").
22720objext="$ac_objext"
22721
22722# Old archive suffix (normally "a").
22723libext="$libext"
22724
22725# Shared library suffix (normally ".so").
22726shrext_cmds='$shrext_cmds'
22727
22728# Executable file suffix (normally "").
22729exeext="$exeext"
22730
22731# Additional compiler flags for building library objects.
22732pic_flag=$lt_lt_prog_compiler_pic_GCJ
22733pic_mode=$pic_mode
22734
22735# What is the maximum length of a command?
22736max_cmd_len=$lt_cv_sys_max_cmd_len
22737
22738# Does compiler simultaneously support -c and -o options?
22739compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22740
22741# Must we lock files when doing compilation?
22742need_locks=$lt_need_locks
22743
22744# Do we need the lib prefix for modules?
22745need_lib_prefix=$need_lib_prefix
22746
22747# Do we need a version for libraries?
22748need_version=$need_version
22749
22750# Whether dlopen is supported.
22751dlopen_support=$enable_dlopen
22752
22753# Whether dlopen of programs is supported.
22754dlopen_self=$enable_dlopen_self
22755
22756# Whether dlopen of statically linked programs is supported.
22757dlopen_self_static=$enable_dlopen_self_static
22758
22759# Compiler flag to prevent dynamic linking.
22760link_static_flag=$lt_lt_prog_compiler_static_GCJ
22761
22762# Compiler flag to turn off builtin functions.
22763no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22764
22765# Compiler flag to allow reflexive dlopens.
22766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22767
22768# Compiler flag to generate shared objects directly from archives.
22769whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22770
22771# Compiler flag to generate thread-safe objects.
22772thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22773
22774# Library versioning type.
22775version_type=$version_type
22776
22777# Format of library name prefix.
22778libname_spec=$lt_libname_spec
22779
22780# List of archive names.  First name is the real one, the rest are links.
22781# The last name is the one that the linker finds with -lNAME.
22782library_names_spec=$lt_library_names_spec
22783
22784# The coded name of the library, if different from the real name.
22785soname_spec=$lt_soname_spec
22786
22787# Commands used to build and install an old-style archive.
22788RANLIB=$lt_RANLIB
22789old_archive_cmds=$lt_old_archive_cmds_GCJ
22790old_postinstall_cmds=$lt_old_postinstall_cmds
22791old_postuninstall_cmds=$lt_old_postuninstall_cmds
22792
22793# Create an old-style archive from a shared archive.
22794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22795
22796# Create a temporary old-style archive to link instead of a shared archive.
22797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22798
22799# Commands used to build and install a shared archive.
22800archive_cmds=$lt_archive_cmds_GCJ
22801archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22802postinstall_cmds=$lt_postinstall_cmds
22803postuninstall_cmds=$lt_postuninstall_cmds
22804
22805# Commands used to build a loadable module (assumed same as above if empty)
22806module_cmds=$lt_module_cmds_GCJ
22807module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22808
22809# Commands to strip libraries.
22810old_striplib=$lt_old_striplib
22811striplib=$lt_striplib
22812
22813# Dependencies to place before the objects being linked to create a
22814# shared library.
22815predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22816
22817# Dependencies to place after the objects being linked to create a
22818# shared library.
22819postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22820
22821# Dependencies to place before the objects being linked to create a
22822# shared library.
22823predeps=$lt_predeps_GCJ
22824
22825# Dependencies to place after the objects being linked to create a
22826# shared library.
22827postdeps=$lt_postdeps_GCJ
22828
22829# The library search path used internally by the compiler when linking
22830# a shared library.
22831compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22832
22833# Method to check whether dependent libraries are shared objects.
22834deplibs_check_method=$lt_deplibs_check_method
22835
22836# Command to use when deplibs_check_method == file_magic.
22837file_magic_cmd=$lt_file_magic_cmd
22838
22839# Flag that allows shared libraries with undefined symbols to be built.
22840allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22841
22842# Flag that forces no undefined symbols.
22843no_undefined_flag=$lt_no_undefined_flag_GCJ
22844
22845# Commands used to finish a libtool library installation in a directory.
22846finish_cmds=$lt_finish_cmds
22847
22848# Same as above, but a single script fragment to be evaled but not shown.
22849finish_eval=$lt_finish_eval
22850
22851# Take the output of nm and produce a listing of raw symbols and C names.
22852global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22853
22854# Transform the output of nm in a proper C declaration
22855global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22856
22857# Transform the output of nm in a C name address pair
22858global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22859
22860# This is the shared library runtime path variable.
22861runpath_var=$runpath_var
22862
22863# This is the shared library path variable.
22864shlibpath_var=$shlibpath_var
22865
22866# Is shlibpath searched before the hard-coded library search path?
22867shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22868
22869# How to hardcode a shared library path into an executable.
22870hardcode_action=$hardcode_action_GCJ
22871
22872# Whether we should hardcode library paths into libraries.
22873hardcode_into_libs=$hardcode_into_libs
22874
22875# Flag to hardcode \$libdir into a binary during linking.
22876# This must work even if \$libdir does not exist.
22877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22878
22879# If ld is used when linking, flag to hardcode \$libdir into
22880# a binary during linking. This must work even if \$libdir does
22881# not exist.
22882hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22883
22884# Whether we need a single -rpath flag with a separated argument.
22885hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22886
22887# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22888# resulting binary.
22889hardcode_direct=$hardcode_direct_GCJ
22890
22891# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22892# resulting binary.
22893hardcode_minus_L=$hardcode_minus_L_GCJ
22894
22895# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22896# the resulting binary.
22897hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22898
22899# Set to yes if building a shared library automatically hardcodes DIR into the library
22900# and all subsequent libraries and executables linked against it.
22901hardcode_automatic=$hardcode_automatic_GCJ
22902
22903# Variables whose values should be saved in libtool wrapper scripts and
22904# restored at relink time.
22905variables_saved_for_relink="$variables_saved_for_relink"
22906
22907# Whether libtool must link a program against all its dependency libraries.
22908link_all_deplibs=$link_all_deplibs_GCJ
22909
22910# Compile-time system search path for libraries
22911sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22912
22913# Run-time system search path for libraries
22914sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22915
22916# Fix the shell variable \$srcfile for the compiler.
22917fix_srcfile_path="$fix_srcfile_path_GCJ"
22918
22919# Set to yes if exported symbols are required.
22920always_export_symbols=$always_export_symbols_GCJ
22921
22922# The commands to list exported symbols.
22923export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22924
22925# The commands to extract the exported symbol list from a shared archive.
22926extract_expsyms_cmds=$lt_extract_expsyms_cmds
22927
22928# Symbols that should not be listed in the preloaded symbols.
22929exclude_expsyms=$lt_exclude_expsyms_GCJ
22930
22931# Symbols that must always be exported.
22932include_expsyms=$lt_include_expsyms_GCJ
22933
22934# ### END LIBTOOL TAG CONFIG: $tagname
22935
22936__EOF__
22937
22938
22939else
22940  # If there is no Makefile yet, we rely on a make rule to execute
22941  # `config.status --recheck' to rerun these tests and create the
22942  # libtool script then.
22943  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22944  if test -f "$ltmain_in"; then
22945    test -f Makefile && make "$ltmain"
22946  fi
22947fi
22948
22949
22950ac_ext=c
22951ac_cpp='$CPP $CPPFLAGS'
22952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22954ac_compiler_gnu=$ac_cv_c_compiler_gnu
22955
22956CC="$lt_save_CC"
22957
22958	else
22959	  tagname=""
22960	fi
22961	;;
22962
22963      RC)
22964
22965
22966
22967# Source file extension for RC test sources.
22968ac_ext=rc
22969
22970# Object file extension for compiled RC test sources.
22971objext=o
22972objext_RC=$objext
22973
22974# Code to be used in simple compile tests
22975lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22976
22977# Code to be used in simple link tests
22978lt_simple_link_test_code="$lt_simple_compile_test_code"
22979
22980# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22981
22982# If no C compiler was specified, use CC.
22983LTCC=${LTCC-"$CC"}
22984
22985# If no C compiler flags were specified, use CFLAGS.
22986LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22987
22988# Allow CC to be a program name with arguments.
22989compiler=$CC
22990
22991
22992# save warnings/boilerplate of simple test code
22993ac_outfile=conftest.$ac_objext
22994printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22996_lt_compiler_boilerplate=`cat conftest.err`
22997$rm conftest*
22998
22999ac_outfile=conftest.$ac_objext
23000printf "$lt_simple_link_test_code" >conftest.$ac_ext
23001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23002_lt_linker_boilerplate=`cat conftest.err`
23003$rm conftest*
23004
23005
23006# Allow CC to be a program name with arguments.
23007lt_save_CC="$CC"
23008CC=${RC-"windres"}
23009compiler=$CC
23010compiler_RC=$CC
23011for cc_temp in $compiler""; do
23012  case $cc_temp in
23013    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23014    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23015    \-*) ;;
23016    *) break;;
23017  esac
23018done
23019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23020
23021lt_cv_prog_compiler_c_o_RC=yes
23022
23023# The else clause should only fire when bootstrapping the
23024# libtool distribution, otherwise you forgot to ship ltmain.sh
23025# with your package, and you will get complaints that there are
23026# no rules to generate ltmain.sh.
23027if test -f "$ltmain"; then
23028  # See if we are running on zsh, and set the options which allow our commands through
23029  # without removal of \ escapes.
23030  if test -n "${ZSH_VERSION+set}" ; then
23031    setopt NO_GLOB_SUBST
23032  fi
23033  # Now quote all the things that may contain metacharacters while being
23034  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23035  # variables and quote the copies for generation of the libtool script.
23036  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23037    SED SHELL STRIP \
23038    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23039    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23040    deplibs_check_method reload_flag reload_cmds need_locks \
23041    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23042    lt_cv_sys_global_symbol_to_c_name_address \
23043    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23044    old_postinstall_cmds old_postuninstall_cmds \
23045    compiler_RC \
23046    CC_RC \
23047    LD_RC \
23048    lt_prog_compiler_wl_RC \
23049    lt_prog_compiler_pic_RC \
23050    lt_prog_compiler_static_RC \
23051    lt_prog_compiler_no_builtin_flag_RC \
23052    export_dynamic_flag_spec_RC \
23053    thread_safe_flag_spec_RC \
23054    whole_archive_flag_spec_RC \
23055    enable_shared_with_static_runtimes_RC \
23056    old_archive_cmds_RC \
23057    old_archive_from_new_cmds_RC \
23058    predep_objects_RC \
23059    postdep_objects_RC \
23060    predeps_RC \
23061    postdeps_RC \
23062    compiler_lib_search_path_RC \
23063    archive_cmds_RC \
23064    archive_expsym_cmds_RC \
23065    postinstall_cmds_RC \
23066    postuninstall_cmds_RC \
23067    old_archive_from_expsyms_cmds_RC \
23068    allow_undefined_flag_RC \
23069    no_undefined_flag_RC \
23070    export_symbols_cmds_RC \
23071    hardcode_libdir_flag_spec_RC \
23072    hardcode_libdir_flag_spec_ld_RC \
23073    hardcode_libdir_separator_RC \
23074    hardcode_automatic_RC \
23075    module_cmds_RC \
23076    module_expsym_cmds_RC \
23077    lt_cv_prog_compiler_c_o_RC \
23078    exclude_expsyms_RC \
23079    include_expsyms_RC; do
23080
23081    case $var in
23082    old_archive_cmds_RC | \
23083    old_archive_from_new_cmds_RC | \
23084    archive_cmds_RC | \
23085    archive_expsym_cmds_RC | \
23086    module_cmds_RC | \
23087    module_expsym_cmds_RC | \
23088    old_archive_from_expsyms_cmds_RC | \
23089    export_symbols_cmds_RC | \
23090    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23091    postinstall_cmds | postuninstall_cmds | \
23092    old_postinstall_cmds | old_postuninstall_cmds | \
23093    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23094      # Double-quote double-evaled strings.
23095      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23096      ;;
23097    *)
23098      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23099      ;;
23100    esac
23101  done
23102
23103  case $lt_echo in
23104  *'\$0 --fallback-echo"')
23105    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23106    ;;
23107  esac
23108
23109cfgfile="$ofile"
23110
23111  cat <<__EOF__ >> "$cfgfile"
23112# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23113
23114# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23115
23116# Shell to use when invoking shell scripts.
23117SHELL=$lt_SHELL
23118
23119# Whether or not to build shared libraries.
23120build_libtool_libs=$enable_shared
23121
23122# Whether or not to build static libraries.
23123build_old_libs=$enable_static
23124
23125# Whether or not to add -lc for building shared libraries.
23126build_libtool_need_lc=$archive_cmds_need_lc_RC
23127
23128# Whether or not to disallow shared libs when runtime libs are static
23129allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23130
23131# Whether or not to optimize for fast installation.
23132fast_install=$enable_fast_install
23133
23134# The host system.
23135host_alias=$host_alias
23136host=$host
23137host_os=$host_os
23138
23139# The build system.
23140build_alias=$build_alias
23141build=$build
23142build_os=$build_os
23143
23144# An echo program that does not interpret backslashes.
23145echo=$lt_echo
23146
23147# The archiver.
23148AR=$lt_AR
23149AR_FLAGS=$lt_AR_FLAGS
23150
23151# A C compiler.
23152LTCC=$lt_LTCC
23153
23154# LTCC compiler flags.
23155LTCFLAGS=$lt_LTCFLAGS
23156
23157# A language-specific compiler.
23158CC=$lt_compiler_RC
23159
23160# Is the compiler the GNU C compiler?
23161with_gcc=$GCC_RC
23162
23163gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
23164gcc_ver=\`gcc -dumpversion\`
23165
23166# An ERE matcher.
23167EGREP=$lt_EGREP
23168
23169# The linker used to build libraries.
23170LD=$lt_LD_RC
23171
23172# Whether we need hard or soft links.
23173LN_S=$lt_LN_S
23174
23175# A BSD-compatible nm program.
23176NM=$lt_NM
23177
23178# A symbol stripping program
23179STRIP=$lt_STRIP
23180
23181# Used to examine libraries when file_magic_cmd begins "file"
23182MAGIC_CMD=$MAGIC_CMD
23183
23184# Used on cygwin: DLL creation program.
23185DLLTOOL="$DLLTOOL"
23186
23187# Used on cygwin: object dumper.
23188OBJDUMP="$OBJDUMP"
23189
23190# Used on cygwin: assembler.
23191AS="$AS"
23192
23193# The name of the directory that contains temporary libtool files.
23194objdir=$objdir
23195
23196# How to create reloadable object files.
23197reload_flag=$lt_reload_flag
23198reload_cmds=$lt_reload_cmds
23199
23200# How to pass a linker flag through the compiler.
23201wl=$lt_lt_prog_compiler_wl_RC
23202
23203# Object file suffix (normally "o").
23204objext="$ac_objext"
23205
23206# Old archive suffix (normally "a").
23207libext="$libext"
23208
23209# Shared library suffix (normally ".so").
23210shrext_cmds='$shrext_cmds'
23211
23212# Executable file suffix (normally "").
23213exeext="$exeext"
23214
23215# Additional compiler flags for building library objects.
23216pic_flag=$lt_lt_prog_compiler_pic_RC
23217pic_mode=$pic_mode
23218
23219# What is the maximum length of a command?
23220max_cmd_len=$lt_cv_sys_max_cmd_len
23221
23222# Does compiler simultaneously support -c and -o options?
23223compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23224
23225# Must we lock files when doing compilation?
23226need_locks=$lt_need_locks
23227
23228# Do we need the lib prefix for modules?
23229need_lib_prefix=$need_lib_prefix
23230
23231# Do we need a version for libraries?
23232need_version=$need_version
23233
23234# Whether dlopen is supported.
23235dlopen_support=$enable_dlopen
23236
23237# Whether dlopen of programs is supported.
23238dlopen_self=$enable_dlopen_self
23239
23240# Whether dlopen of statically linked programs is supported.
23241dlopen_self_static=$enable_dlopen_self_static
23242
23243# Compiler flag to prevent dynamic linking.
23244link_static_flag=$lt_lt_prog_compiler_static_RC
23245
23246# Compiler flag to turn off builtin functions.
23247no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23248
23249# Compiler flag to allow reflexive dlopens.
23250export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23251
23252# Compiler flag to generate shared objects directly from archives.
23253whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23254
23255# Compiler flag to generate thread-safe objects.
23256thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23257
23258# Library versioning type.
23259version_type=$version_type
23260
23261# Format of library name prefix.
23262libname_spec=$lt_libname_spec
23263
23264# List of archive names.  First name is the real one, the rest are links.
23265# The last name is the one that the linker finds with -lNAME.
23266library_names_spec=$lt_library_names_spec
23267
23268# The coded name of the library, if different from the real name.
23269soname_spec=$lt_soname_spec
23270
23271# Commands used to build and install an old-style archive.
23272RANLIB=$lt_RANLIB
23273old_archive_cmds=$lt_old_archive_cmds_RC
23274old_postinstall_cmds=$lt_old_postinstall_cmds
23275old_postuninstall_cmds=$lt_old_postuninstall_cmds
23276
23277# Create an old-style archive from a shared archive.
23278old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23279
23280# Create a temporary old-style archive to link instead of a shared archive.
23281old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23282
23283# Commands used to build and install a shared archive.
23284archive_cmds=$lt_archive_cmds_RC
23285archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23286postinstall_cmds=$lt_postinstall_cmds
23287postuninstall_cmds=$lt_postuninstall_cmds
23288
23289# Commands used to build a loadable module (assumed same as above if empty)
23290module_cmds=$lt_module_cmds_RC
23291module_expsym_cmds=$lt_module_expsym_cmds_RC
23292
23293# Commands to strip libraries.
23294old_striplib=$lt_old_striplib
23295striplib=$lt_striplib
23296
23297# Dependencies to place before the objects being linked to create a
23298# shared library.
23299predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
23300
23301# Dependencies to place after the objects being linked to create a
23302# shared library.
23303postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
23304
23305# Dependencies to place before the objects being linked to create a
23306# shared library.
23307predeps=$lt_predeps_RC
23308
23309# Dependencies to place after the objects being linked to create a
23310# shared library.
23311postdeps=$lt_postdeps_RC
23312
23313# The library search path used internally by the compiler when linking
23314# a shared library.
23315compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
23316
23317# Method to check whether dependent libraries are shared objects.
23318deplibs_check_method=$lt_deplibs_check_method
23319
23320# Command to use when deplibs_check_method == file_magic.
23321file_magic_cmd=$lt_file_magic_cmd
23322
23323# Flag that allows shared libraries with undefined symbols to be built.
23324allow_undefined_flag=$lt_allow_undefined_flag_RC
23325
23326# Flag that forces no undefined symbols.
23327no_undefined_flag=$lt_no_undefined_flag_RC
23328
23329# Commands used to finish a libtool library installation in a directory.
23330finish_cmds=$lt_finish_cmds
23331
23332# Same as above, but a single script fragment to be evaled but not shown.
23333finish_eval=$lt_finish_eval
23334
23335# Take the output of nm and produce a listing of raw symbols and C names.
23336global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23337
23338# Transform the output of nm in a proper C declaration
23339global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23340
23341# Transform the output of nm in a C name address pair
23342global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23343
23344# This is the shared library runtime path variable.
23345runpath_var=$runpath_var
23346
23347# This is the shared library path variable.
23348shlibpath_var=$shlibpath_var
23349
23350# Is shlibpath searched before the hard-coded library search path?
23351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23352
23353# How to hardcode a shared library path into an executable.
23354hardcode_action=$hardcode_action_RC
23355
23356# Whether we should hardcode library paths into libraries.
23357hardcode_into_libs=$hardcode_into_libs
23358
23359# Flag to hardcode \$libdir into a binary during linking.
23360# This must work even if \$libdir does not exist.
23361hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23362
23363# If ld is used when linking, flag to hardcode \$libdir into
23364# a binary during linking. This must work even if \$libdir does
23365# not exist.
23366hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
23367
23368# Whether we need a single -rpath flag with a separated argument.
23369hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23370
23371# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23372# resulting binary.
23373hardcode_direct=$hardcode_direct_RC
23374
23375# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23376# resulting binary.
23377hardcode_minus_L=$hardcode_minus_L_RC
23378
23379# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23380# the resulting binary.
23381hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23382
23383# Set to yes if building a shared library automatically hardcodes DIR into the library
23384# and all subsequent libraries and executables linked against it.
23385hardcode_automatic=$hardcode_automatic_RC
23386
23387# Variables whose values should be saved in libtool wrapper scripts and
23388# restored at relink time.
23389variables_saved_for_relink="$variables_saved_for_relink"
23390
23391# Whether libtool must link a program against all its dependency libraries.
23392link_all_deplibs=$link_all_deplibs_RC
23393
23394# Compile-time system search path for libraries
23395sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
23396
23397# Run-time system search path for libraries
23398sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23399
23400# Fix the shell variable \$srcfile for the compiler.
23401fix_srcfile_path="$fix_srcfile_path_RC"
23402
23403# Set to yes if exported symbols are required.
23404always_export_symbols=$always_export_symbols_RC
23405
23406# The commands to list exported symbols.
23407export_symbols_cmds=$lt_export_symbols_cmds_RC
23408
23409# The commands to extract the exported symbol list from a shared archive.
23410extract_expsyms_cmds=$lt_extract_expsyms_cmds
23411
23412# Symbols that should not be listed in the preloaded symbols.
23413exclude_expsyms=$lt_exclude_expsyms_RC
23414
23415# Symbols that must always be exported.
23416include_expsyms=$lt_include_expsyms_RC
23417
23418# ### END LIBTOOL TAG CONFIG: $tagname
23419
23420__EOF__
23421
23422
23423else
23424  # If there is no Makefile yet, we rely on a make rule to execute
23425  # `config.status --recheck' to rerun these tests and create the
23426  # libtool script then.
23427  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23428  if test -f "$ltmain_in"; then
23429    test -f Makefile && make "$ltmain"
23430  fi
23431fi
23432
23433
23434ac_ext=c
23435ac_cpp='$CPP $CPPFLAGS'
23436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438ac_compiler_gnu=$ac_cv_c_compiler_gnu
23439
23440CC="$lt_save_CC"
23441
23442	;;
23443
23444      *)
23445	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23446echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23447   { (exit 1); exit 1; }; }
23448	;;
23449      esac
23450
23451      # Append the new tag name to the list of available tags.
23452      if test -n "$tagname" ; then
23453      available_tags="$available_tags $tagname"
23454    fi
23455    fi
23456  done
23457  IFS="$lt_save_ifs"
23458
23459  # Now substitute the updated list of available tags.
23460  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23461    mv "${ofile}T" "$ofile"
23462    chmod +x "$ofile"
23463  else
23464    rm -f "${ofile}T"
23465    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23466echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23467   { (exit 1); exit 1; }; }
23468  fi
23469fi
23470
23471
23472
23473# This can be used to rebuild libtool when needed
23474LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23475
23476# Always use our own libtool.
23477LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23478
23479# Prevent multiple expansion
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503LIBMCRYPT_LIBS="$LIBS -L${libdir} -lmcrypt $LTLIBS"
23504LIBMCRYPT_CFLAGS="-I${includedir}"
23505
23506
23507
23508          ac_config_commands="$ac_config_commands default-1"
23509
23510
23511                                                                                                              ac_config_files="$ac_config_files Makefile libmcrypt.spec lib/Makefile doc/Makefile src/Makefile include/mutils/mcrypt.h include/Makefile modules/Makefile modules/modes/Makefile modules/algorithms/Makefile lib/libmcrypt-config"
23512
23513cat >confcache <<\_ACEOF
23514# This file is a shell script that caches the results of configure
23515# tests run on this system so they can be shared between configure
23516# scripts and configure runs, see configure's option --config-cache.
23517# It is not useful on other systems.  If it contains results you don't
23518# want to keep, you may remove or edit it.
23519#
23520# config.status only pays attention to the cache file if you give it
23521# the --recheck option to rerun configure.
23522#
23523# `ac_cv_env_foo' variables (set or unset) will be overridden when
23524# loading this file, other *unset* `ac_cv_foo' will be assigned the
23525# following values.
23526
23527_ACEOF
23528
23529# The following way of writing the cache mishandles newlines in values,
23530# but we know of no workaround that is simple, portable, and efficient.
23531# So, don't put newlines in cache variables' values.
23532# Ultrix sh set writes to stderr and can't be redirected directly,
23533# and sets the high bit in the cache file unless we assign to the vars.
23534{
23535  (set) 2>&1 |
23536    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23537    *ac_space=\ *)
23538      # `set' does not quote correctly, so add quotes (double-quote
23539      # substitution turns \\\\ into \\, and sed turns \\ into \).
23540      sed -n \
23541	"s/'/'\\\\''/g;
23542	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23543      ;;
23544    *)
23545      # `set' quotes correctly as required by POSIX, so do not add quotes.
23546      sed -n \
23547	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23548      ;;
23549    esac;
23550} |
23551  sed '
23552     t clear
23553     : clear
23554     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23555     t end
23556     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23557     : end' >>confcache
23558if diff $cache_file confcache >/dev/null 2>&1; then :; else
23559  if test -w $cache_file; then
23560    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23561    cat confcache >$cache_file
23562  else
23563    echo "not updating unwritable cache $cache_file"
23564  fi
23565fi
23566rm -f confcache
23567
23568test "x$prefix" = xNONE && prefix=$ac_default_prefix
23569# Let make expand exec_prefix.
23570test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23571
23572# VPATH may cause trouble with some makes, so we remove $(srcdir),
23573# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23574# trailing colons and then remove the whole line if VPATH becomes empty
23575# (actually we leave an empty line to preserve line numbers).
23576if test "x$srcdir" = x.; then
23577  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23578s/:*\$(srcdir):*/:/;
23579s/:*\${srcdir}:*/:/;
23580s/:*@srcdir@:*/:/;
23581s/^\([^=]*=[	 ]*\):*/\1/;
23582s/:*$//;
23583s/^[^=]*=[	 ]*$//;
23584}'
23585fi
23586
23587DEFS=-DHAVE_CONFIG_H
23588
23589ac_libobjs=
23590ac_ltlibobjs=
23591for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23592  # 1. Remove the extension, and $U if already installed.
23593  ac_i=`echo "$ac_i" |
23594	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23595  # 2. Add them.
23596  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23597  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23598done
23599LIBOBJS=$ac_libobjs
23600
23601LTLIBOBJS=$ac_ltlibobjs
23602
23603
23604if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23605  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23606Usually this means the macro was only invoked conditionally." >&5
23607echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23608Usually this means the macro was only invoked conditionally." >&2;}
23609   { (exit 1); exit 1; }; }
23610fi
23611if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23612  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23613Usually this means the macro was only invoked conditionally." >&5
23614echo "$as_me: error: conditional \"AMDEP\" was never defined.
23615Usually this means the macro was only invoked conditionally." >&2;}
23616   { (exit 1); exit 1; }; }
23617fi
23618if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23619  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23620Usually this means the macro was only invoked conditionally." >&5
23621echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23622Usually this means the macro was only invoked conditionally." >&2;}
23623   { (exit 1); exit 1; }; }
23624fi
23625if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23626  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23627Usually this means the macro was only invoked conditionally." >&5
23628echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23629Usually this means the macro was only invoked conditionally." >&2;}
23630   { (exit 1); exit 1; }; }
23631fi
23632
23633: ${CONFIG_STATUS=./config.status}
23634ac_clean_files_save=$ac_clean_files
23635ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23636{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23637echo "$as_me: creating $CONFIG_STATUS" >&6;}
23638cat >$CONFIG_STATUS <<_ACEOF
23639#! $SHELL
23640# Generated by $as_me.
23641# Run this file to recreate the current configuration.
23642# Compiler output produced by configure, useful for debugging
23643# configure, is in config.log if it exists.
23644
23645debug=false
23646ac_cs_recheck=false
23647ac_cs_silent=false
23648SHELL=\${CONFIG_SHELL-$SHELL}
23649_ACEOF
23650
23651cat >>$CONFIG_STATUS <<\_ACEOF
23652## --------------------- ##
23653## M4sh Initialization.  ##
23654## --------------------- ##
23655
23656# Be Bourne compatible
23657if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23658  emulate sh
23659  NULLCMD=:
23660  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23661  # is contrary to our usage.  Disable this feature.
23662  alias -g '${1+"$@"}'='"$@"'
23663elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23664  set -o posix
23665fi
23666DUALCASE=1; export DUALCASE # for MKS sh
23667
23668# Support unset when possible.
23669if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23670  as_unset=unset
23671else
23672  as_unset=false
23673fi
23674
23675
23676# Work around bugs in pre-3.0 UWIN ksh.
23677$as_unset ENV MAIL MAILPATH
23678PS1='$ '
23679PS2='> '
23680PS4='+ '
23681
23682# NLS nuisances.
23683for as_var in \
23684  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23685  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23686  LC_TELEPHONE LC_TIME
23687do
23688  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23689    eval $as_var=C; export $as_var
23690  else
23691    $as_unset $as_var
23692  fi
23693done
23694
23695# Required to use basename.
23696if expr a : '\(a\)' >/dev/null 2>&1; then
23697  as_expr=expr
23698else
23699  as_expr=false
23700fi
23701
23702if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23703  as_basename=basename
23704else
23705  as_basename=false
23706fi
23707
23708
23709# Name of the executable.
23710as_me=`$as_basename "$0" ||
23711$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23712	 X"$0" : 'X\(//\)$' \| \
23713	 X"$0" : 'X\(/\)$' \| \
23714	 .     : '\(.\)' 2>/dev/null ||
23715echo X/"$0" |
23716    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23717  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23718  	  /^X\/\(\/\).*/{ s//\1/; q; }
23719  	  s/.*/./; q'`
23720
23721
23722# PATH needs CR, and LINENO needs CR and PATH.
23723# Avoid depending upon Character Ranges.
23724as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23725as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23726as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23727as_cr_digits='0123456789'
23728as_cr_alnum=$as_cr_Letters$as_cr_digits
23729
23730# The user is always right.
23731if test "${PATH_SEPARATOR+set}" != set; then
23732  echo "#! /bin/sh" >conf$$.sh
23733  echo  "exit 0"   >>conf$$.sh
23734  chmod +x conf$$.sh
23735  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23736    PATH_SEPARATOR=';'
23737  else
23738    PATH_SEPARATOR=:
23739  fi
23740  rm -f conf$$.sh
23741fi
23742
23743
23744  as_lineno_1=$LINENO
23745  as_lineno_2=$LINENO
23746  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23747  test "x$as_lineno_1" != "x$as_lineno_2" &&
23748  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23749  # Find who we are.  Look in the path if we contain no path at all
23750  # relative or not.
23751  case $0 in
23752    *[\\/]* ) as_myself=$0 ;;
23753    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23754for as_dir in $PATH
23755do
23756  IFS=$as_save_IFS
23757  test -z "$as_dir" && as_dir=.
23758  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23759done
23760
23761       ;;
23762  esac
23763  # We did not find ourselves, most probably we were run as `sh COMMAND'
23764  # in which case we are not to be found in the path.
23765  if test "x$as_myself" = x; then
23766    as_myself=$0
23767  fi
23768  if test ! -f "$as_myself"; then
23769    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23770echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23771   { (exit 1); exit 1; }; }
23772  fi
23773  case $CONFIG_SHELL in
23774  '')
23775    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23776for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23777do
23778  IFS=$as_save_IFS
23779  test -z "$as_dir" && as_dir=.
23780  for as_base in sh bash ksh sh5; do
23781	 case $as_dir in
23782	 /*)
23783	   if ("$as_dir/$as_base" -c '
23784  as_lineno_1=$LINENO
23785  as_lineno_2=$LINENO
23786  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23787  test "x$as_lineno_1" != "x$as_lineno_2" &&
23788  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23789	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23790	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23791	     CONFIG_SHELL=$as_dir/$as_base
23792	     export CONFIG_SHELL
23793	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23794	   fi;;
23795	 esac
23796       done
23797done
23798;;
23799  esac
23800
23801  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23802  # uniformly replaced by the line number.  The first 'sed' inserts a
23803  # line-number line before each line; the second 'sed' does the real
23804  # work.  The second script uses 'N' to pair each line-number line
23805  # with the numbered line, and appends trailing '-' during
23806  # substitution so that $LINENO is not a special case at line end.
23807  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23808  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23809  sed '=' <$as_myself |
23810    sed '
23811      N
23812      s,$,-,
23813      : loop
23814      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23815      t loop
23816      s,-$,,
23817      s,^['$as_cr_digits']*\n,,
23818    ' >$as_me.lineno &&
23819  chmod +x $as_me.lineno ||
23820    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23821echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23822   { (exit 1); exit 1; }; }
23823
23824  # Don't try to exec as it changes $[0], causing all sort of problems
23825  # (the dirname of $[0] is not the place where we might find the
23826  # original and so on.  Autoconf is especially sensible to this).
23827  . ./$as_me.lineno
23828  # Exit status is that of the last command.
23829  exit
23830}
23831
23832
23833case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23834  *c*,-n*) ECHO_N= ECHO_C='
23835' ECHO_T='	' ;;
23836  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23837  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23838esac
23839
23840if expr a : '\(a\)' >/dev/null 2>&1; then
23841  as_expr=expr
23842else
23843  as_expr=false
23844fi
23845
23846rm -f conf$$ conf$$.exe conf$$.file
23847echo >conf$$.file
23848if ln -s conf$$.file conf$$ 2>/dev/null; then
23849  # We could just check for DJGPP; but this test a) works b) is more generic
23850  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23851  if test -f conf$$.exe; then
23852    # Don't use ln at all; we don't have any links
23853    as_ln_s='cp -p'
23854  else
23855    as_ln_s='ln -s'
23856  fi
23857elif ln conf$$.file conf$$ 2>/dev/null; then
23858  as_ln_s=ln
23859else
23860  as_ln_s='cp -p'
23861fi
23862rm -f conf$$ conf$$.exe conf$$.file
23863
23864if mkdir -p . 2>/dev/null; then
23865  as_mkdir_p=:
23866else
23867  test -d ./-p && rmdir ./-p
23868  as_mkdir_p=false
23869fi
23870
23871as_executable_p="test -f"
23872
23873# Sed expression to map a string onto a valid CPP name.
23874as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23875
23876# Sed expression to map a string onto a valid variable name.
23877as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23878
23879
23880# IFS
23881# We need space, tab and new line, in precisely that order.
23882as_nl='
23883'
23884IFS=" 	$as_nl"
23885
23886# CDPATH.
23887$as_unset CDPATH
23888
23889exec 6>&1
23890
23891# Open the log real soon, to keep \$[0] and so on meaningful, and to
23892# report actual input values of CONFIG_FILES etc. instead of their
23893# values after options handling.  Logging --version etc. is OK.
23894exec 5>>config.log
23895{
23896  echo
23897  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23898## Running $as_me. ##
23899_ASBOX
23900} >&5
23901cat >&5 <<_CSEOF
23902
23903This file was extended by $as_me, which was
23904generated by GNU Autoconf 2.59.  Invocation command line was
23905
23906  CONFIG_FILES    = $CONFIG_FILES
23907  CONFIG_HEADERS  = $CONFIG_HEADERS
23908  CONFIG_LINKS    = $CONFIG_LINKS
23909  CONFIG_COMMANDS = $CONFIG_COMMANDS
23910  $ $0 $@
23911
23912_CSEOF
23913echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23914echo >&5
23915_ACEOF
23916
23917# Files that config.status was made for.
23918if test -n "$ac_config_files"; then
23919  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23920fi
23921
23922if test -n "$ac_config_headers"; then
23923  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23924fi
23925
23926if test -n "$ac_config_links"; then
23927  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23928fi
23929
23930if test -n "$ac_config_commands"; then
23931  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23932fi
23933
23934cat >>$CONFIG_STATUS <<\_ACEOF
23935
23936ac_cs_usage="\
23937\`$as_me' instantiates files from templates according to the
23938current configuration.
23939
23940Usage: $0 [OPTIONS] [FILE]...
23941
23942  -h, --help       print this help, then exit
23943  -V, --version    print version number, then exit
23944  -q, --quiet      do not print progress messages
23945  -d, --debug      don't remove temporary files
23946      --recheck    update $as_me by reconfiguring in the same conditions
23947  --file=FILE[:TEMPLATE]
23948		   instantiate the configuration file FILE
23949  --header=FILE[:TEMPLATE]
23950		   instantiate the configuration header FILE
23951
23952Configuration files:
23953$config_files
23954
23955Configuration headers:
23956$config_headers
23957
23958Configuration commands:
23959$config_commands
23960
23961Report bugs to <bug-autoconf@gnu.org>."
23962_ACEOF
23963
23964cat >>$CONFIG_STATUS <<_ACEOF
23965ac_cs_version="\\
23966config.status
23967configured by $0, generated by GNU Autoconf 2.59,
23968  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23969
23970Copyright (C) 2003 Free Software Foundation, Inc.
23971This config.status script is free software; the Free Software Foundation
23972gives unlimited permission to copy, distribute and modify it."
23973srcdir=$srcdir
23974INSTALL="$INSTALL"
23975_ACEOF
23976
23977cat >>$CONFIG_STATUS <<\_ACEOF
23978# If no file are specified by the user, then we need to provide default
23979# value.  By we need to know if files were specified by the user.
23980ac_need_defaults=:
23981while test $# != 0
23982do
23983  case $1 in
23984  --*=*)
23985    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23986    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23987    ac_shift=:
23988    ;;
23989  -*)
23990    ac_option=$1
23991    ac_optarg=$2
23992    ac_shift=shift
23993    ;;
23994  *) # This is not an option, so the user has probably given explicit
23995     # arguments.
23996     ac_option=$1
23997     ac_need_defaults=false;;
23998  esac
23999
24000  case $ac_option in
24001  # Handling of the options.
24002_ACEOF
24003cat >>$CONFIG_STATUS <<\_ACEOF
24004  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24005    ac_cs_recheck=: ;;
24006  --version | --vers* | -V )
24007    echo "$ac_cs_version"; exit 0 ;;
24008  --he | --h)
24009    # Conflict between --help and --header
24010    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24011Try \`$0 --help' for more information." >&5
24012echo "$as_me: error: ambiguous option: $1
24013Try \`$0 --help' for more information." >&2;}
24014   { (exit 1); exit 1; }; };;
24015  --help | --hel | -h )
24016    echo "$ac_cs_usage"; exit 0 ;;
24017  --debug | --d* | -d )
24018    debug=: ;;
24019  --file | --fil | --fi | --f )
24020    $ac_shift
24021    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24022    ac_need_defaults=false;;
24023  --header | --heade | --head | --hea )
24024    $ac_shift
24025    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24026    ac_need_defaults=false;;
24027  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24028  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24029    ac_cs_silent=: ;;
24030
24031  # This is an error.
24032  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24033Try \`$0 --help' for more information." >&5
24034echo "$as_me: error: unrecognized option: $1
24035Try \`$0 --help' for more information." >&2;}
24036   { (exit 1); exit 1; }; } ;;
24037
24038  *) ac_config_targets="$ac_config_targets $1" ;;
24039
24040  esac
24041  shift
24042done
24043
24044ac_configure_extra_args=
24045
24046if $ac_cs_silent; then
24047  exec 6>/dev/null
24048  ac_configure_extra_args="$ac_configure_extra_args --silent"
24049fi
24050
24051_ACEOF
24052cat >>$CONFIG_STATUS <<_ACEOF
24053if \$ac_cs_recheck; then
24054  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24055  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24056fi
24057
24058_ACEOF
24059
24060cat >>$CONFIG_STATUS <<_ACEOF
24061#
24062# INIT-COMMANDS section.
24063#
24064
24065AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24066
24067
24068_ACEOF
24069
24070
24071
24072cat >>$CONFIG_STATUS <<\_ACEOF
24073for ac_config_target in $ac_config_targets
24074do
24075  case "$ac_config_target" in
24076  # Handling of arguments.
24077  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24078  "libmcrypt.spec" ) CONFIG_FILES="$CONFIG_FILES libmcrypt.spec" ;;
24079  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24080  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24081  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24082  "include/mutils/mcrypt.h" ) CONFIG_FILES="$CONFIG_FILES include/mutils/mcrypt.h" ;;
24083  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24084  "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24085  "modules/modes/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/modes/Makefile" ;;
24086  "modules/algorithms/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/algorithms/Makefile" ;;
24087  "lib/libmcrypt-config" ) CONFIG_FILES="$CONFIG_FILES lib/libmcrypt-config" ;;
24088  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24089  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24090  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24091  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24092echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24093   { (exit 1); exit 1; }; };;
24094  esac
24095done
24096
24097# If the user did not use the arguments to specify the items to instantiate,
24098# then the envvar interface is used.  Set only those that are not.
24099# We use the long form for the default assignment because of an extremely
24100# bizarre bug on SunOS 4.1.3.
24101if $ac_need_defaults; then
24102  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24103  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24104  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24105fi
24106
24107# Have a temporary directory for convenience.  Make it in the build tree
24108# simply because there is no reason to put it here, and in addition,
24109# creating and moving files from /tmp can sometimes cause problems.
24110# Create a temporary directory, and hook for its removal unless debugging.
24111$debug ||
24112{
24113  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24114  trap '{ (exit 1); exit 1; }' 1 2 13 15
24115}
24116
24117# Create a (secure) tmp directory for tmp files.
24118
24119{
24120  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24121  test -n "$tmp" && test -d "$tmp"
24122}  ||
24123{
24124  tmp=./confstat$$-$RANDOM
24125  (umask 077 && mkdir $tmp)
24126} ||
24127{
24128   echo "$me: cannot create a temporary directory in ." >&2
24129   { (exit 1); exit 1; }
24130}
24131
24132_ACEOF
24133
24134cat >>$CONFIG_STATUS <<_ACEOF
24135
24136#
24137# CONFIG_FILES section.
24138#
24139
24140# No need to generate the scripts if there are no CONFIG_FILES.
24141# This happens for instance when ./config.status config.h
24142if test -n "\$CONFIG_FILES"; then
24143  # Protect against being on the right side of a sed subst in config.status.
24144  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24145   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24146s,@SHELL@,$SHELL,;t t
24147s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24148s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24149s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24150s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24151s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24152s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24153s,@exec_prefix@,$exec_prefix,;t t
24154s,@prefix@,$prefix,;t t
24155s,@program_transform_name@,$program_transform_name,;t t
24156s,@bindir@,$bindir,;t t
24157s,@sbindir@,$sbindir,;t t
24158s,@libexecdir@,$libexecdir,;t t
24159s,@datadir@,$datadir,;t t
24160s,@sysconfdir@,$sysconfdir,;t t
24161s,@sharedstatedir@,$sharedstatedir,;t t
24162s,@localstatedir@,$localstatedir,;t t
24163s,@libdir@,$libdir,;t t
24164s,@includedir@,$includedir,;t t
24165s,@oldincludedir@,$oldincludedir,;t t
24166s,@infodir@,$infodir,;t t
24167s,@mandir@,$mandir,;t t
24168s,@build_alias@,$build_alias,;t t
24169s,@host_alias@,$host_alias,;t t
24170s,@target_alias@,$target_alias,;t t
24171s,@DEFS@,$DEFS,;t t
24172s,@ECHO_C@,$ECHO_C,;t t
24173s,@ECHO_N@,$ECHO_N,;t t
24174s,@ECHO_T@,$ECHO_T,;t t
24175s,@LIBS@,$LIBS,;t t
24176s,@build@,$build,;t t
24177s,@build_cpu@,$build_cpu,;t t
24178s,@build_vendor@,$build_vendor,;t t
24179s,@build_os@,$build_os,;t t
24180s,@host@,$host,;t t
24181s,@host_cpu@,$host_cpu,;t t
24182s,@host_vendor@,$host_vendor,;t t
24183s,@host_os@,$host_os,;t t
24184s,@target@,$target,;t t
24185s,@target_cpu@,$target_cpu,;t t
24186s,@target_vendor@,$target_vendor,;t t
24187s,@target_os@,$target_os,;t t
24188s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24189s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24190s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24191s,@CYGPATH_W@,$CYGPATH_W,;t t
24192s,@PACKAGE@,$PACKAGE,;t t
24193s,@VERSION@,$VERSION,;t t
24194s,@ACLOCAL@,$ACLOCAL,;t t
24195s,@AUTOCONF@,$AUTOCONF,;t t
24196s,@AUTOMAKE@,$AUTOMAKE,;t t
24197s,@AUTOHEADER@,$AUTOHEADER,;t t
24198s,@MAKEINFO@,$MAKEINFO,;t t
24199s,@install_sh@,$install_sh,;t t
24200s,@STRIP@,$STRIP,;t t
24201s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24202s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24203s,@mkdir_p@,$mkdir_p,;t t
24204s,@AWK@,$AWK,;t t
24205s,@SET_MAKE@,$SET_MAKE,;t t
24206s,@am__leading_dot@,$am__leading_dot,;t t
24207s,@AMTAR@,$AMTAR,;t t
24208s,@am__tar@,$am__tar,;t t
24209s,@am__untar@,$am__untar,;t t
24210s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24211s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24212s,@MAINT@,$MAINT,;t t
24213s,@CXX@,$CXX,;t t
24214s,@CXXFLAGS@,$CXXFLAGS,;t t
24215s,@LDFLAGS@,$LDFLAGS,;t t
24216s,@CPPFLAGS@,$CPPFLAGS,;t t
24217s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24218s,@EXEEXT@,$EXEEXT,;t t
24219s,@OBJEXT@,$OBJEXT,;t t
24220s,@DEPDIR@,$DEPDIR,;t t
24221s,@am__include@,$am__include,;t t
24222s,@am__quote@,$am__quote,;t t
24223s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24224s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24225s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24226s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24227s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24228s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24229s,@CC@,$CC,;t t
24230s,@CFLAGS@,$CFLAGS,;t t
24231s,@ac_ct_CC@,$ac_ct_CC,;t t
24232s,@CCDEPMODE@,$CCDEPMODE,;t t
24233s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24234s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24235s,@CPP@,$CPP,;t t
24236s,@LN_S@,$LN_S,;t t
24237s,@INCLTDL@,$INCLTDL,;t t
24238s,@LIBLTDL@,$LIBLTDL,;t t
24239s,@LIBLTDL_DIR@,$LIBLTDL_DIR,;t t
24240s,@subdirs@,$subdirs,;t t
24241s,@INSTALL_ALGORITHM_MODULES@,$INSTALL_ALGORITHM_MODULES,;t t
24242s,@INSTALL_MODE_MODULES@,$INSTALL_MODE_MODULES,;t t
24243s,@NOINSTALL_ALGORITHM_MODULES@,$NOINSTALL_ALGORITHM_MODULES,;t t
24244s,@NOINSTALL_MODE_MODULES@,$NOINSTALL_MODE_MODULES,;t t
24245s,@EXTRA_ALGOS@,$EXTRA_ALGOS,;t t
24246s,@EXTRA_OBJECTS@,$EXTRA_OBJECTS,;t t
24247s,@LIBMCRYPT_MAJOR_VERSION@,$LIBMCRYPT_MAJOR_VERSION,;t t
24248s,@LIBMCRYPT_MINOR_VERSION@,$LIBMCRYPT_MINOR_VERSION,;t t
24249s,@LIBMCRYPT_MICRO_VERSION@,$LIBMCRYPT_MICRO_VERSION,;t t
24250s,@LIBMCRYPT_VERSION@,$LIBMCRYPT_VERSION,;t t
24251s,@LIBMCRYPT_MOST_RECENT_INTERFACE@,$LIBMCRYPT_MOST_RECENT_INTERFACE,;t t
24252s,@LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER@,$LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER,;t t
24253s,@LIBMCRYPT_OLDEST_INTERFACE@,$LIBMCRYPT_OLDEST_INTERFACE,;t t
24254s,@LT_CURRENT@,$LT_CURRENT,;t t
24255s,@LT_REVISION@,$LT_REVISION,;t t
24256s,@LT_AGE@,$LT_AGE,;t t
24257s,@EGREP@,$EGREP,;t t
24258s,@LIBOBJS@,$LIBOBJS,;t t
24259s,@SED@,$SED,;t t
24260s,@ECHO@,$ECHO,;t t
24261s,@AR@,$AR,;t t
24262s,@ac_ct_AR@,$ac_ct_AR,;t t
24263s,@RANLIB@,$RANLIB,;t t
24264s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24265s,@DLLTOOL@,$DLLTOOL,;t t
24266s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24267s,@AS@,$AS,;t t
24268s,@ac_ct_AS@,$ac_ct_AS,;t t
24269s,@OBJDUMP@,$OBJDUMP,;t t
24270s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
24271s,@CXXCPP@,$CXXCPP,;t t
24272s,@F77@,$F77,;t t
24273s,@FFLAGS@,$FFLAGS,;t t
24274s,@ac_ct_F77@,$ac_ct_F77,;t t
24275s,@LIBTOOL@,$LIBTOOL,;t t
24276s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
24277s,@LIBMCRYPT_LIBS@,$LIBMCRYPT_LIBS,;t t
24278s,@LIBMCRYPT_CFLAGS@,$LIBMCRYPT_CFLAGS,;t t
24279s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24280CEOF
24281
24282_ACEOF
24283
24284  cat >>$CONFIG_STATUS <<\_ACEOF
24285  # Split the substitutions into bite-sized pieces for seds with
24286  # small command number limits, like on Digital OSF/1 and HP-UX.
24287  ac_max_sed_lines=48
24288  ac_sed_frag=1 # Number of current file.
24289  ac_beg=1 # First line for current file.
24290  ac_end=$ac_max_sed_lines # Line after last line for current file.
24291  ac_more_lines=:
24292  ac_sed_cmds=
24293  while $ac_more_lines; do
24294    if test $ac_beg -gt 1; then
24295      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24296    else
24297      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24298    fi
24299    if test ! -s $tmp/subs.frag; then
24300      ac_more_lines=false
24301    else
24302      # The purpose of the label and of the branching condition is to
24303      # speed up the sed processing (if there are no `@' at all, there
24304      # is no need to browse any of the substitutions).
24305      # These are the two extra sed commands mentioned above.
24306      (echo ':t
24307  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24308      if test -z "$ac_sed_cmds"; then
24309	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24310      else
24311	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24312      fi
24313      ac_sed_frag=`expr $ac_sed_frag + 1`
24314      ac_beg=$ac_end
24315      ac_end=`expr $ac_end + $ac_max_sed_lines`
24316    fi
24317  done
24318  if test -z "$ac_sed_cmds"; then
24319    ac_sed_cmds=cat
24320  fi
24321fi # test -n "$CONFIG_FILES"
24322
24323_ACEOF
24324cat >>$CONFIG_STATUS <<\_ACEOF
24325for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24326  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24327  case $ac_file in
24328  - | *:- | *:-:* ) # input from stdin
24329	cat >$tmp/stdin
24330	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24331	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24332  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24333	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24334  * )   ac_file_in=$ac_file.in ;;
24335  esac
24336
24337  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24338  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24340	 X"$ac_file" : 'X\(//\)[^/]' \| \
24341	 X"$ac_file" : 'X\(//\)$' \| \
24342	 X"$ac_file" : 'X\(/\)' \| \
24343	 .     : '\(.\)' 2>/dev/null ||
24344echo X"$ac_file" |
24345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24346  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24347  	  /^X\(\/\/\)$/{ s//\1/; q; }
24348  	  /^X\(\/\).*/{ s//\1/; q; }
24349  	  s/.*/./; q'`
24350  { if $as_mkdir_p; then
24351    mkdir -p "$ac_dir"
24352  else
24353    as_dir="$ac_dir"
24354    as_dirs=
24355    while test ! -d "$as_dir"; do
24356      as_dirs="$as_dir $as_dirs"
24357      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24358$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24359	 X"$as_dir" : 'X\(//\)[^/]' \| \
24360	 X"$as_dir" : 'X\(//\)$' \| \
24361	 X"$as_dir" : 'X\(/\)' \| \
24362	 .     : '\(.\)' 2>/dev/null ||
24363echo X"$as_dir" |
24364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24365  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24366  	  /^X\(\/\/\)$/{ s//\1/; q; }
24367  	  /^X\(\/\).*/{ s//\1/; q; }
24368  	  s/.*/./; q'`
24369    done
24370    test ! -n "$as_dirs" || mkdir $as_dirs
24371  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24372echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24373   { (exit 1); exit 1; }; }; }
24374
24375  ac_builddir=.
24376
24377if test "$ac_dir" != .; then
24378  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24379  # A "../" for each directory in $ac_dir_suffix.
24380  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24381else
24382  ac_dir_suffix= ac_top_builddir=
24383fi
24384
24385case $srcdir in
24386  .)  # No --srcdir option.  We are building in place.
24387    ac_srcdir=.
24388    if test -z "$ac_top_builddir"; then
24389       ac_top_srcdir=.
24390    else
24391       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24392    fi ;;
24393  [\\/]* | ?:[\\/]* )  # Absolute path.
24394    ac_srcdir=$srcdir$ac_dir_suffix;
24395    ac_top_srcdir=$srcdir ;;
24396  *) # Relative path.
24397    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24398    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24399esac
24400
24401# Do not use `cd foo && pwd` to compute absolute paths, because
24402# the directories may not exist.
24403case `pwd` in
24404.) ac_abs_builddir="$ac_dir";;
24405*)
24406  case "$ac_dir" in
24407  .) ac_abs_builddir=`pwd`;;
24408  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24409  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24410  esac;;
24411esac
24412case $ac_abs_builddir in
24413.) ac_abs_top_builddir=${ac_top_builddir}.;;
24414*)
24415  case ${ac_top_builddir}. in
24416  .) ac_abs_top_builddir=$ac_abs_builddir;;
24417  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24418  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24419  esac;;
24420esac
24421case $ac_abs_builddir in
24422.) ac_abs_srcdir=$ac_srcdir;;
24423*)
24424  case $ac_srcdir in
24425  .) ac_abs_srcdir=$ac_abs_builddir;;
24426  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24427  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24428  esac;;
24429esac
24430case $ac_abs_builddir in
24431.) ac_abs_top_srcdir=$ac_top_srcdir;;
24432*)
24433  case $ac_top_srcdir in
24434  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24435  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24436  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24437  esac;;
24438esac
24439
24440
24441  case $INSTALL in
24442  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24443  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24444  esac
24445
24446  if test x"$ac_file" != x-; then
24447    { echo "$as_me:$LINENO: creating $ac_file" >&5
24448echo "$as_me: creating $ac_file" >&6;}
24449    rm -f "$ac_file"
24450  fi
24451  # Let's still pretend it is `configure' which instantiates (i.e., don't
24452  # use $as_me), people would be surprised to read:
24453  #    /* config.h.  Generated by config.status.  */
24454  if test x"$ac_file" = x-; then
24455    configure_input=
24456  else
24457    configure_input="$ac_file.  "
24458  fi
24459  configure_input=$configure_input"Generated from `echo $ac_file_in |
24460				     sed 's,.*/,,'` by configure."
24461
24462  # First look for the input files in the build tree, otherwise in the
24463  # src tree.
24464  ac_file_inputs=`IFS=:
24465    for f in $ac_file_in; do
24466      case $f in
24467      -) echo $tmp/stdin ;;
24468      [\\/$]*)
24469	 # Absolute (can't be DOS-style, as IFS=:)
24470	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24471echo "$as_me: error: cannot find input file: $f" >&2;}
24472   { (exit 1); exit 1; }; }
24473	 echo "$f";;
24474      *) # Relative
24475	 if test -f "$f"; then
24476	   # Build tree
24477	   echo "$f"
24478	 elif test -f "$srcdir/$f"; then
24479	   # Source tree
24480	   echo "$srcdir/$f"
24481	 else
24482	   # /dev/null tree
24483	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24484echo "$as_me: error: cannot find input file: $f" >&2;}
24485   { (exit 1); exit 1; }; }
24486	 fi;;
24487      esac
24488    done` || { (exit 1); exit 1; }
24489_ACEOF
24490cat >>$CONFIG_STATUS <<_ACEOF
24491  sed "$ac_vpsub
24492$extrasub
24493_ACEOF
24494cat >>$CONFIG_STATUS <<\_ACEOF
24495:t
24496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24497s,@configure_input@,$configure_input,;t t
24498s,@srcdir@,$ac_srcdir,;t t
24499s,@abs_srcdir@,$ac_abs_srcdir,;t t
24500s,@top_srcdir@,$ac_top_srcdir,;t t
24501s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24502s,@builddir@,$ac_builddir,;t t
24503s,@abs_builddir@,$ac_abs_builddir,;t t
24504s,@top_builddir@,$ac_top_builddir,;t t
24505s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24506s,@INSTALL@,$ac_INSTALL,;t t
24507" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24508  rm -f $tmp/stdin
24509  if test x"$ac_file" != x-; then
24510    mv $tmp/out $ac_file
24511  else
24512    cat $tmp/out
24513    rm -f $tmp/out
24514  fi
24515
24516done
24517_ACEOF
24518cat >>$CONFIG_STATUS <<\_ACEOF
24519
24520#
24521# CONFIG_HEADER section.
24522#
24523
24524# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24525# NAME is the cpp macro being defined and VALUE is the value it is being given.
24526#
24527# ac_d sets the value in "#define NAME VALUE" lines.
24528ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24529ac_dB='[	 ].*$,\1#\2'
24530ac_dC=' '
24531ac_dD=',;t'
24532# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24533ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24534ac_uB='$,\1#\2define\3'
24535ac_uC=' '
24536ac_uD=',;t'
24537
24538for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24539  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24540  case $ac_file in
24541  - | *:- | *:-:* ) # input from stdin
24542	cat >$tmp/stdin
24543	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24544	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24545  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24546	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24547  * )   ac_file_in=$ac_file.in ;;
24548  esac
24549
24550  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24551echo "$as_me: creating $ac_file" >&6;}
24552
24553  # First look for the input files in the build tree, otherwise in the
24554  # src tree.
24555  ac_file_inputs=`IFS=:
24556    for f in $ac_file_in; do
24557      case $f in
24558      -) echo $tmp/stdin ;;
24559      [\\/$]*)
24560	 # Absolute (can't be DOS-style, as IFS=:)
24561	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24562echo "$as_me: error: cannot find input file: $f" >&2;}
24563   { (exit 1); exit 1; }; }
24564	 # Do quote $f, to prevent DOS paths from being IFS'd.
24565	 echo "$f";;
24566      *) # Relative
24567	 if test -f "$f"; then
24568	   # Build tree
24569	   echo "$f"
24570	 elif test -f "$srcdir/$f"; then
24571	   # Source tree
24572	   echo "$srcdir/$f"
24573	 else
24574	   # /dev/null tree
24575	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24576echo "$as_me: error: cannot find input file: $f" >&2;}
24577   { (exit 1); exit 1; }; }
24578	 fi;;
24579      esac
24580    done` || { (exit 1); exit 1; }
24581  # Remove the trailing spaces.
24582  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24583
24584_ACEOF
24585
24586# Transform confdefs.h into two sed scripts, `conftest.defines' and
24587# `conftest.undefs', that substitutes the proper values into
24588# config.h.in to produce config.h.  The first handles `#define'
24589# templates, and the second `#undef' templates.
24590# And first: Protect against being on the right side of a sed subst in
24591# config.status.  Protect against being in an unquoted here document
24592# in config.status.
24593rm -f conftest.defines conftest.undefs
24594# Using a here document instead of a string reduces the quoting nightmare.
24595# Putting comments in sed scripts is not portable.
24596#
24597# `end' is used to avoid that the second main sed command (meant for
24598# 0-ary CPP macros) applies to n-ary macro definitions.
24599# See the Autoconf documentation for `clear'.
24600cat >confdef2sed.sed <<\_ACEOF
24601s/[\\&,]/\\&/g
24602s,[\\$`],\\&,g
24603t clear
24604: clear
24605s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24606t end
24607s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24608: end
24609_ACEOF
24610# If some macros were called several times there might be several times
24611# the same #defines, which is useless.  Nevertheless, we may not want to
24612# sort them, since we want the *last* AC-DEFINE to be honored.
24613uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24614sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24615rm -f confdef2sed.sed
24616
24617# This sed command replaces #undef with comments.  This is necessary, for
24618# example, in the case of _POSIX_SOURCE, which is predefined and required
24619# on some systems where configure will not decide to define it.
24620cat >>conftest.undefs <<\_ACEOF
24621s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24622_ACEOF
24623
24624# Break up conftest.defines because some shells have a limit on the size
24625# of here documents, and old seds have small limits too (100 cmds).
24626echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24627echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24628echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24629echo '  :' >>$CONFIG_STATUS
24630rm -f conftest.tail
24631while grep . conftest.defines >/dev/null
24632do
24633  # Write a limited-size here document to $tmp/defines.sed.
24634  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24635  # Speed up: don't consider the non `#define' lines.
24636  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24637  # Work around the forget-to-reset-the-flag bug.
24638  echo 't clr' >>$CONFIG_STATUS
24639  echo ': clr' >>$CONFIG_STATUS
24640  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24641  echo 'CEOF
24642  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24643  rm -f $tmp/in
24644  mv $tmp/out $tmp/in
24645' >>$CONFIG_STATUS
24646  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24647  rm -f conftest.defines
24648  mv conftest.tail conftest.defines
24649done
24650rm -f conftest.defines
24651echo '  fi # grep' >>$CONFIG_STATUS
24652echo >>$CONFIG_STATUS
24653
24654# Break up conftest.undefs because some shells have a limit on the size
24655# of here documents, and old seds have small limits too (100 cmds).
24656echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24657rm -f conftest.tail
24658while grep . conftest.undefs >/dev/null
24659do
24660  # Write a limited-size here document to $tmp/undefs.sed.
24661  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24662  # Speed up: don't consider the non `#undef'
24663  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24664  # Work around the forget-to-reset-the-flag bug.
24665  echo 't clr' >>$CONFIG_STATUS
24666  echo ': clr' >>$CONFIG_STATUS
24667  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24668  echo 'CEOF
24669  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24670  rm -f $tmp/in
24671  mv $tmp/out $tmp/in
24672' >>$CONFIG_STATUS
24673  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24674  rm -f conftest.undefs
24675  mv conftest.tail conftest.undefs
24676done
24677rm -f conftest.undefs
24678
24679cat >>$CONFIG_STATUS <<\_ACEOF
24680  # Let's still pretend it is `configure' which instantiates (i.e., don't
24681  # use $as_me), people would be surprised to read:
24682  #    /* config.h.  Generated by config.status.  */
24683  if test x"$ac_file" = x-; then
24684    echo "/* Generated by configure.  */" >$tmp/config.h
24685  else
24686    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24687  fi
24688  cat $tmp/in >>$tmp/config.h
24689  rm -f $tmp/in
24690  if test x"$ac_file" != x-; then
24691    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24692      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24693echo "$as_me: $ac_file is unchanged" >&6;}
24694    else
24695      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697	 X"$ac_file" : 'X\(//\)[^/]' \| \
24698	 X"$ac_file" : 'X\(//\)$' \| \
24699	 X"$ac_file" : 'X\(/\)' \| \
24700	 .     : '\(.\)' 2>/dev/null ||
24701echo X"$ac_file" |
24702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24703  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24704  	  /^X\(\/\/\)$/{ s//\1/; q; }
24705  	  /^X\(\/\).*/{ s//\1/; q; }
24706  	  s/.*/./; q'`
24707      { if $as_mkdir_p; then
24708    mkdir -p "$ac_dir"
24709  else
24710    as_dir="$ac_dir"
24711    as_dirs=
24712    while test ! -d "$as_dir"; do
24713      as_dirs="$as_dir $as_dirs"
24714      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716	 X"$as_dir" : 'X\(//\)[^/]' \| \
24717	 X"$as_dir" : 'X\(//\)$' \| \
24718	 X"$as_dir" : 'X\(/\)' \| \
24719	 .     : '\(.\)' 2>/dev/null ||
24720echo X"$as_dir" |
24721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24722  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24723  	  /^X\(\/\/\)$/{ s//\1/; q; }
24724  	  /^X\(\/\).*/{ s//\1/; q; }
24725  	  s/.*/./; q'`
24726    done
24727    test ! -n "$as_dirs" || mkdir $as_dirs
24728  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24729echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24730   { (exit 1); exit 1; }; }; }
24731
24732      rm -f $ac_file
24733      mv $tmp/config.h $ac_file
24734    fi
24735  else
24736    cat $tmp/config.h
24737    rm -f $tmp/config.h
24738  fi
24739# Compute $ac_file's index in $config_headers.
24740_am_stamp_count=1
24741for _am_header in $config_headers :; do
24742  case $_am_header in
24743    $ac_file | $ac_file:* )
24744      break ;;
24745    * )
24746      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24747  esac
24748done
24749echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24750$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24751	 X$ac_file : 'X\(//\)[^/]' \| \
24752	 X$ac_file : 'X\(//\)$' \| \
24753	 X$ac_file : 'X\(/\)' \| \
24754	 .     : '\(.\)' 2>/dev/null ||
24755echo X$ac_file |
24756    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24757  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24758  	  /^X\(\/\/\)$/{ s//\1/; q; }
24759  	  /^X\(\/\).*/{ s//\1/; q; }
24760  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24761done
24762_ACEOF
24763cat >>$CONFIG_STATUS <<\_ACEOF
24764
24765#
24766# CONFIG_COMMANDS section.
24767#
24768for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24769  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24770  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24771  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24772$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24773	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24774	 X"$ac_dest" : 'X\(//\)$' \| \
24775	 X"$ac_dest" : 'X\(/\)' \| \
24776	 .     : '\(.\)' 2>/dev/null ||
24777echo X"$ac_dest" |
24778    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24779  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24780  	  /^X\(\/\/\)$/{ s//\1/; q; }
24781  	  /^X\(\/\).*/{ s//\1/; q; }
24782  	  s/.*/./; q'`
24783  { if $as_mkdir_p; then
24784    mkdir -p "$ac_dir"
24785  else
24786    as_dir="$ac_dir"
24787    as_dirs=
24788    while test ! -d "$as_dir"; do
24789      as_dirs="$as_dir $as_dirs"
24790      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24792	 X"$as_dir" : 'X\(//\)[^/]' \| \
24793	 X"$as_dir" : 'X\(//\)$' \| \
24794	 X"$as_dir" : 'X\(/\)' \| \
24795	 .     : '\(.\)' 2>/dev/null ||
24796echo X"$as_dir" |
24797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24798  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24799  	  /^X\(\/\/\)$/{ s//\1/; q; }
24800  	  /^X\(\/\).*/{ s//\1/; q; }
24801  	  s/.*/./; q'`
24802    done
24803    test ! -n "$as_dirs" || mkdir $as_dirs
24804  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24805echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24806   { (exit 1); exit 1; }; }; }
24807
24808  ac_builddir=.
24809
24810if test "$ac_dir" != .; then
24811  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24812  # A "../" for each directory in $ac_dir_suffix.
24813  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24814else
24815  ac_dir_suffix= ac_top_builddir=
24816fi
24817
24818case $srcdir in
24819  .)  # No --srcdir option.  We are building in place.
24820    ac_srcdir=.
24821    if test -z "$ac_top_builddir"; then
24822       ac_top_srcdir=.
24823    else
24824       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24825    fi ;;
24826  [\\/]* | ?:[\\/]* )  # Absolute path.
24827    ac_srcdir=$srcdir$ac_dir_suffix;
24828    ac_top_srcdir=$srcdir ;;
24829  *) # Relative path.
24830    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24831    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24832esac
24833
24834# Do not use `cd foo && pwd` to compute absolute paths, because
24835# the directories may not exist.
24836case `pwd` in
24837.) ac_abs_builddir="$ac_dir";;
24838*)
24839  case "$ac_dir" in
24840  .) ac_abs_builddir=`pwd`;;
24841  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24842  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24843  esac;;
24844esac
24845case $ac_abs_builddir in
24846.) ac_abs_top_builddir=${ac_top_builddir}.;;
24847*)
24848  case ${ac_top_builddir}. in
24849  .) ac_abs_top_builddir=$ac_abs_builddir;;
24850  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24851  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24852  esac;;
24853esac
24854case $ac_abs_builddir in
24855.) ac_abs_srcdir=$ac_srcdir;;
24856*)
24857  case $ac_srcdir in
24858  .) ac_abs_srcdir=$ac_abs_builddir;;
24859  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24860  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24861  esac;;
24862esac
24863case $ac_abs_builddir in
24864.) ac_abs_top_srcdir=$ac_top_srcdir;;
24865*)
24866  case $ac_top_srcdir in
24867  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24868  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24869  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24870  esac;;
24871esac
24872
24873
24874  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24875echo "$as_me: executing $ac_dest commands" >&6;}
24876  case $ac_dest in
24877    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24878  # Strip MF so we end up with the name of the file.
24879  mf=`echo "$mf" | sed -e 's/:.*$//'`
24880  # Check whether this is an Automake generated Makefile or not.
24881  # We used to match only the files named `Makefile.in', but
24882  # some people rename them; so instead we look at the file content.
24883  # Grep'ing the first line is not enough: some people post-process
24884  # each Makefile.in and add a new line on top of each file to say so.
24885  # So let's grep whole file.
24886  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24887    dirpart=`(dirname "$mf") 2>/dev/null ||
24888$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889	 X"$mf" : 'X\(//\)[^/]' \| \
24890	 X"$mf" : 'X\(//\)$' \| \
24891	 X"$mf" : 'X\(/\)' \| \
24892	 .     : '\(.\)' 2>/dev/null ||
24893echo X"$mf" |
24894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24895  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24896  	  /^X\(\/\/\)$/{ s//\1/; q; }
24897  	  /^X\(\/\).*/{ s//\1/; q; }
24898  	  s/.*/./; q'`
24899  else
24900    continue
24901  fi
24902  # Extract the definition of DEPDIR, am__include, and am__quote
24903  # from the Makefile without running `make'.
24904  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24905  test -z "$DEPDIR" && continue
24906  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24907  test -z "am__include" && continue
24908  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24909  # When using ansi2knr, U may be empty or an underscore; expand it
24910  U=`sed -n 's/^U = //p' < "$mf"`
24911  # Find all dependency output files, they are included files with
24912  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24913  # simplest approach to changing $(DEPDIR) to its actual value in the
24914  # expansion.
24915  for file in `sed -n "
24916    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24917       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24918    # Make sure the directory exists.
24919    test -f "$dirpart/$file" && continue
24920    fdir=`(dirname "$file") 2>/dev/null ||
24921$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24922	 X"$file" : 'X\(//\)[^/]' \| \
24923	 X"$file" : 'X\(//\)$' \| \
24924	 X"$file" : 'X\(/\)' \| \
24925	 .     : '\(.\)' 2>/dev/null ||
24926echo X"$file" |
24927    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24928  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24929  	  /^X\(\/\/\)$/{ s//\1/; q; }
24930  	  /^X\(\/\).*/{ s//\1/; q; }
24931  	  s/.*/./; q'`
24932    { if $as_mkdir_p; then
24933    mkdir -p $dirpart/$fdir
24934  else
24935    as_dir=$dirpart/$fdir
24936    as_dirs=
24937    while test ! -d "$as_dir"; do
24938      as_dirs="$as_dir $as_dirs"
24939      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941	 X"$as_dir" : 'X\(//\)[^/]' \| \
24942	 X"$as_dir" : 'X\(//\)$' \| \
24943	 X"$as_dir" : 'X\(/\)' \| \
24944	 .     : '\(.\)' 2>/dev/null ||
24945echo X"$as_dir" |
24946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24947  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24948  	  /^X\(\/\/\)$/{ s//\1/; q; }
24949  	  /^X\(\/\).*/{ s//\1/; q; }
24950  	  s/.*/./; q'`
24951    done
24952    test ! -n "$as_dirs" || mkdir $as_dirs
24953  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24954echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24955   { (exit 1); exit 1; }; }; }
24956
24957    # echo "creating $dirpart/$file"
24958    echo '# dummy' > "$dirpart/$file"
24959  done
24960done
24961 ;;
24962    default-1 )
24963 chmod +x lib/libmcrypt-config
24964 ;;
24965  esac
24966done
24967_ACEOF
24968
24969cat >>$CONFIG_STATUS <<\_ACEOF
24970
24971{ (exit 0); exit 0; }
24972_ACEOF
24973chmod +x $CONFIG_STATUS
24974ac_clean_files=$ac_clean_files_save
24975
24976
24977# configure is writing to config.log, and then calls config.status.
24978# config.status does its own redirection, appending to config.log.
24979# Unfortunately, on DOS this fails, as config.log is still kept open
24980# by configure, so config.status won't be able to write to it; its
24981# output is simply discarded.  So we exec the FD to /dev/null,
24982# effectively closing config.log, so it can be properly (re)opened and
24983# appended to by config.status.  When coming back to configure, we
24984# need to make the FD available again.
24985if test "$no_create" != yes; then
24986  ac_cs_success=:
24987  ac_config_status_args=
24988  test "$silent" = yes &&
24989    ac_config_status_args="$ac_config_status_args --quiet"
24990  exec 5>/dev/null
24991  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24992  exec 5>>config.log
24993  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24994  # would make configure fail if this is the last instruction.
24995  $ac_cs_success || { (exit 1); exit 1; }
24996fi
24997
24998#
24999# CONFIG_SUBDIRS section.
25000#
25001if test "$no_recursion" != yes; then
25002
25003  # Remove --cache-file and --srcdir arguments so they do not pile up.
25004  ac_sub_configure_args=
25005  ac_prev=
25006  for ac_arg in $ac_configure_args; do
25007    if test -n "$ac_prev"; then
25008      ac_prev=
25009      continue
25010    fi
25011    case $ac_arg in
25012    -cache-file | --cache-file | --cache-fil | --cache-fi \
25013    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25014      ac_prev=cache_file ;;
25015    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25016    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25017    | --c=*)
25018      ;;
25019    --config-cache | -C)
25020      ;;
25021    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25022      ac_prev=srcdir ;;
25023    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25024      ;;
25025    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25026      ac_prev=prefix ;;
25027    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25028      ;;
25029    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25030    esac
25031  done
25032
25033  # Always prepend --prefix to ensure using the same prefix
25034  # in subdir configurations.
25035  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25036
25037  ac_popdir=`pwd`
25038  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25039
25040    # Do not complain, so a configure script can configure whichever
25041    # parts of a large source tree are present.
25042    test -d $srcdir/$ac_dir || continue
25043
25044    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25045echo "$as_me: configuring in $ac_dir" >&6;}
25046    { if $as_mkdir_p; then
25047    mkdir -p "$ac_dir"
25048  else
25049    as_dir="$ac_dir"
25050    as_dirs=
25051    while test ! -d "$as_dir"; do
25052      as_dirs="$as_dir $as_dirs"
25053      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25054$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25055	 X"$as_dir" : 'X\(//\)[^/]' \| \
25056	 X"$as_dir" : 'X\(//\)$' \| \
25057	 X"$as_dir" : 'X\(/\)' \| \
25058	 .     : '\(.\)' 2>/dev/null ||
25059echo X"$as_dir" |
25060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25061  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25062  	  /^X\(\/\/\)$/{ s//\1/; q; }
25063  	  /^X\(\/\).*/{ s//\1/; q; }
25064  	  s/.*/./; q'`
25065    done
25066    test ! -n "$as_dirs" || mkdir $as_dirs
25067  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25068echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25069   { (exit 1); exit 1; }; }; }
25070
25071    ac_builddir=.
25072
25073if test "$ac_dir" != .; then
25074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25075  # A "../" for each directory in $ac_dir_suffix.
25076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25077else
25078  ac_dir_suffix= ac_top_builddir=
25079fi
25080
25081case $srcdir in
25082  .)  # No --srcdir option.  We are building in place.
25083    ac_srcdir=.
25084    if test -z "$ac_top_builddir"; then
25085       ac_top_srcdir=.
25086    else
25087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25088    fi ;;
25089  [\\/]* | ?:[\\/]* )  # Absolute path.
25090    ac_srcdir=$srcdir$ac_dir_suffix;
25091    ac_top_srcdir=$srcdir ;;
25092  *) # Relative path.
25093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25095esac
25096
25097# Do not use `cd foo && pwd` to compute absolute paths, because
25098# the directories may not exist.
25099case `pwd` in
25100.) ac_abs_builddir="$ac_dir";;
25101*)
25102  case "$ac_dir" in
25103  .) ac_abs_builddir=`pwd`;;
25104  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25105  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25106  esac;;
25107esac
25108case $ac_abs_builddir in
25109.) ac_abs_top_builddir=${ac_top_builddir}.;;
25110*)
25111  case ${ac_top_builddir}. in
25112  .) ac_abs_top_builddir=$ac_abs_builddir;;
25113  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25114  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25115  esac;;
25116esac
25117case $ac_abs_builddir in
25118.) ac_abs_srcdir=$ac_srcdir;;
25119*)
25120  case $ac_srcdir in
25121  .) ac_abs_srcdir=$ac_abs_builddir;;
25122  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25123  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25124  esac;;
25125esac
25126case $ac_abs_builddir in
25127.) ac_abs_top_srcdir=$ac_top_srcdir;;
25128*)
25129  case $ac_top_srcdir in
25130  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25131  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25132  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25133  esac;;
25134esac
25135
25136
25137    cd $ac_dir
25138
25139    # Check for guested configure; otherwise get Cygnus style configure.
25140    if test -f $ac_srcdir/configure.gnu; then
25141      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25142    elif test -f $ac_srcdir/configure; then
25143      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25144    elif test -f $ac_srcdir/configure.in; then
25145      ac_sub_configure=$ac_configure
25146    else
25147      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25148echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25149      ac_sub_configure=
25150    fi
25151
25152    # The recursion is here.
25153    if test -n "$ac_sub_configure"; then
25154      # Make the cache file name correct relative to the subdirectory.
25155      case $cache_file in
25156      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25157      *) # Relative path.
25158	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25159      esac
25160
25161      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25162echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25163      # The eval makes quoting arguments work.
25164      eval $ac_sub_configure $ac_sub_configure_args \
25165	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25166	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25167echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25168   { (exit 1); exit 1; }; }
25169    fi
25170
25171    cd $ac_popdir
25172  done
25173fi
25174
25175
25176