configure revision 0acd65f258bb31c327bde921973ea49a92a8c9f7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.4.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291       echo_test_string="`eval $cmd`" &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='llvm'
425PACKAGE_TARNAME='-llvm-'
426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='llvm 1.4'
428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430ac_unique_file=""Makefile.config.in""
431ac_subdirs_all="$ac_subdirs_all projects/sample"
432ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436ac_subdirs_all="$ac_subdirs_all projects/Java"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
440# Factoring default headers for most tests.
441ac_includes_default="\
442#include <stdio.h>
443#if HAVE_SYS_TYPES_H
444# include <sys/types.h>
445#endif
446#if HAVE_SYS_STAT_H
447# include <sys/stat.h>
448#endif
449#if STDC_HEADERS
450# include <stdlib.h>
451# include <stddef.h>
452#else
453# if HAVE_STDLIB_H
454#  include <stdlib.h>
455# endif
456#endif
457#if HAVE_STRING_H
458# if !STDC_HEADERS && HAVE_MEMORY_H
459#  include <memory.h>
460# endif
461# include <string.h>
462#endif
463#if HAVE_STRINGS_H
464# include <strings.h>
465#endif
466#if HAVE_INTTYPES_H
467# include <inttypes.h>
468#else
469# if HAVE_STDINT_H
470#  include <stdint.h>
471# endif
472#endif
473#if HAVE_UNISTD_H
474# include <unistd.h>
475#endif"
476
477ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST RUNTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478ac_subst_files=''
479
480# Initialize some variables set by options.
481ac_init_help=
482ac_init_version=false
483# The variables have the same names as the options, with
484# dashes changed to underlines.
485cache_file=/dev/null
486exec_prefix=NONE
487no_create=
488no_recursion=
489prefix=NONE
490program_prefix=NONE
491program_suffix=NONE
492program_transform_name=s,x,x,
493silent=
494site=
495srcdir=
496verbose=
497x_includes=NONE
498x_libraries=NONE
499
500# Installation directory options.
501# These are left unexpanded so users can "make install exec_prefix=/foo"
502# and all the variables that are supposed to be based on exec_prefix
503# by default will actually change.
504# Use braces instead of parens because sh, perl, etc. also accept them.
505bindir='${exec_prefix}/bin'
506sbindir='${exec_prefix}/sbin'
507libexecdir='${exec_prefix}/libexec'
508datadir='${prefix}/share'
509sysconfdir='${prefix}/etc'
510sharedstatedir='${prefix}/com'
511localstatedir='${prefix}/var'
512libdir='${exec_prefix}/lib'
513includedir='${prefix}/include'
514oldincludedir='/usr/include'
515infodir='${prefix}/info'
516mandir='${prefix}/man'
517
518ac_prev=
519for ac_option
520do
521  # If the previous option needs an argument, assign it.
522  if test -n "$ac_prev"; then
523    eval "$ac_prev=\$ac_option"
524    ac_prev=
525    continue
526  fi
527
528  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530  # Accept the important Cygnus configure options, so we can diagnose typos.
531
532  case $ac_option in
533
534  -bindir | --bindir | --bindi | --bind | --bin | --bi)
535    ac_prev=bindir ;;
536  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537    bindir=$ac_optarg ;;
538
539  -build | --build | --buil | --bui | --bu)
540    ac_prev=build_alias ;;
541  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542    build_alias=$ac_optarg ;;
543
544  -cache-file | --cache-file | --cache-fil | --cache-fi \
545  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546    ac_prev=cache_file ;;
547  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549    cache_file=$ac_optarg ;;
550
551  --config-cache | -C)
552    cache_file=config.cache ;;
553
554  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555    ac_prev=datadir ;;
556  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557  | --da=*)
558    datadir=$ac_optarg ;;
559
560  -disable-* | --disable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    eval "enable_$ac_feature=no" ;;
568
569  -enable-* | --enable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    case $ac_option in
577      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578      *) ac_optarg=yes ;;
579    esac
580    eval "enable_$ac_feature='$ac_optarg'" ;;
581
582  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584  | --exec | --exe | --ex)
585    ac_prev=exec_prefix ;;
586  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588  | --exec=* | --exe=* | --ex=*)
589    exec_prefix=$ac_optarg ;;
590
591  -gas | --gas | --ga | --g)
592    # Obsolete; use --with-gas.
593    with_gas=yes ;;
594
595  -help | --help | --hel | --he | -h)
596    ac_init_help=long ;;
597  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598    ac_init_help=recursive ;;
599  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600    ac_init_help=short ;;
601
602  -host | --host | --hos | --ho)
603    ac_prev=host_alias ;;
604  -host=* | --host=* | --hos=* | --ho=*)
605    host_alias=$ac_optarg ;;
606
607  -includedir | --includedir | --includedi | --included | --include \
608  | --includ | --inclu | --incl | --inc)
609    ac_prev=includedir ;;
610  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611  | --includ=* | --inclu=* | --incl=* | --inc=*)
612    includedir=$ac_optarg ;;
613
614  -infodir | --infodir | --infodi | --infod | --info | --inf)
615    ac_prev=infodir ;;
616  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617    infodir=$ac_optarg ;;
618
619  -libdir | --libdir | --libdi | --libd)
620    ac_prev=libdir ;;
621  -libdir=* | --libdir=* | --libdi=* | --libd=*)
622    libdir=$ac_optarg ;;
623
624  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625  | --libexe | --libex | --libe)
626    ac_prev=libexecdir ;;
627  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628  | --libexe=* | --libex=* | --libe=*)
629    libexecdir=$ac_optarg ;;
630
631  -localstatedir | --localstatedir | --localstatedi | --localstated \
632  | --localstate | --localstat | --localsta | --localst \
633  | --locals | --local | --loca | --loc | --lo)
634    ac_prev=localstatedir ;;
635  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638    localstatedir=$ac_optarg ;;
639
640  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641    ac_prev=mandir ;;
642  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643    mandir=$ac_optarg ;;
644
645  -nfp | --nfp | --nf)
646    # Obsolete; use --without-fp.
647    with_fp=no ;;
648
649  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650  | --no-cr | --no-c | -n)
651    no_create=yes ;;
652
653  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655    no_recursion=yes ;;
656
657  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659  | --oldin | --oldi | --old | --ol | --o)
660    ac_prev=oldincludedir ;;
661  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664    oldincludedir=$ac_optarg ;;
665
666  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667    ac_prev=prefix ;;
668  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669    prefix=$ac_optarg ;;
670
671  -program-prefix | --program-prefix | --program-prefi | --program-pref \
672  | --program-pre | --program-pr | --program-p)
673    ac_prev=program_prefix ;;
674  -program-prefix=* | --program-prefix=* | --program-prefi=* \
675  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676    program_prefix=$ac_optarg ;;
677
678  -program-suffix | --program-suffix | --program-suffi | --program-suff \
679  | --program-suf | --program-su | --program-s)
680    ac_prev=program_suffix ;;
681  -program-suffix=* | --program-suffix=* | --program-suffi=* \
682  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683    program_suffix=$ac_optarg ;;
684
685  -program-transform-name | --program-transform-name \
686  | --program-transform-nam | --program-transform-na \
687  | --program-transform-n | --program-transform- \
688  | --program-transform | --program-transfor \
689  | --program-transfo | --program-transf \
690  | --program-trans | --program-tran \
691  | --progr-tra | --program-tr | --program-t)
692    ac_prev=program_transform_name ;;
693  -program-transform-name=* | --program-transform-name=* \
694  | --program-transform-nam=* | --program-transform-na=* \
695  | --program-transform-n=* | --program-transform-=* \
696  | --program-transform=* | --program-transfor=* \
697  | --program-transfo=* | --program-transf=* \
698  | --program-trans=* | --program-tran=* \
699  | --progr-tra=* | --program-tr=* | --program-t=*)
700    program_transform_name=$ac_optarg ;;
701
702  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703  | -silent | --silent | --silen | --sile | --sil)
704    silent=yes ;;
705
706  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707    ac_prev=sbindir ;;
708  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709  | --sbi=* | --sb=*)
710    sbindir=$ac_optarg ;;
711
712  -sharedstatedir | --sharedstatedir | --sharedstatedi \
713  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714  | --sharedst | --shareds | --shared | --share | --shar \
715  | --sha | --sh)
716    ac_prev=sharedstatedir ;;
717  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720  | --sha=* | --sh=*)
721    sharedstatedir=$ac_optarg ;;
722
723  -site | --site | --sit)
724    ac_prev=site ;;
725  -site=* | --site=* | --sit=*)
726    site=$ac_optarg ;;
727
728  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729    ac_prev=srcdir ;;
730  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731    srcdir=$ac_optarg ;;
732
733  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734  | --syscon | --sysco | --sysc | --sys | --sy)
735    ac_prev=sysconfdir ;;
736  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738    sysconfdir=$ac_optarg ;;
739
740  -target | --target | --targe | --targ | --tar | --ta | --t)
741    ac_prev=target_alias ;;
742  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743    target_alias=$ac_optarg ;;
744
745  -v | -verbose | --verbose | --verbos | --verbo | --verb)
746    verbose=yes ;;
747
748  -version | --version | --versio | --versi | --vers | -V)
749    ac_init_version=: ;;
750
751  -with-* | --with-*)
752    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753    # Reject names that are not valid shell variable names.
754    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755      { echo "$as_me: error: invalid package name: $ac_package" >&2
756   { (exit 1); exit 1; }; }
757    ac_package=`echo $ac_package| sed 's/-/_/g'`
758    case $ac_option in
759      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760      *) ac_optarg=yes ;;
761    esac
762    eval "with_$ac_package='$ac_optarg'" ;;
763
764  -without-* | --without-*)
765    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package | sed 's/-/_/g'`
771    eval "with_$ac_package=no" ;;
772
773  --x)
774    # Obsolete; use --with-x.
775    with_x=yes ;;
776
777  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778  | --x-incl | --x-inc | --x-in | --x-i)
779    ac_prev=x_includes ;;
780  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782    x_includes=$ac_optarg ;;
783
784  -x-libraries | --x-libraries | --x-librarie | --x-librari \
785  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786    ac_prev=x_libraries ;;
787  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789    x_libraries=$ac_optarg ;;
790
791  -*) { echo "$as_me: error: unrecognized option: $ac_option
792Try \`$0 --help' for more information." >&2
793   { (exit 1); exit 1; }; }
794    ;;
795
796  *=*)
797    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798    # Reject names that are not valid shell variable names.
799    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801   { (exit 1); exit 1; }; }
802    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803    eval "$ac_envvar='$ac_optarg'"
804    export $ac_envvar ;;
805
806  *)
807    # FIXME: should be removed in autoconf 3.0.
808    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812    ;;
813
814  esac
815done
816
817if test -n "$ac_prev"; then
818  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819  { echo "$as_me: error: missing argument to $ac_option" >&2
820   { (exit 1); exit 1; }; }
821fi
822
823# Be sure to have absolute paths.
824for ac_var in exec_prefix prefix
825do
826  eval ac_val=$`echo $ac_var`
827  case $ac_val in
828    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830   { (exit 1); exit 1; }; };;
831  esac
832done
833
834# Be sure to have absolute paths.
835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836	      localstatedir libdir includedir oldincludedir infodir mandir
837do
838  eval ac_val=$`echo $ac_var`
839  case $ac_val in
840    [\\/$]* | ?:[\\/]* ) ;;
841    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842   { (exit 1); exit 1; }; };;
843  esac
844done
845
846# There might be people who depend on the old broken behavior: `$host'
847# used to hold the argument of --host etc.
848# FIXME: To remove some day.
849build=$build_alias
850host=$host_alias
851target=$target_alias
852
853# FIXME: To remove some day.
854if test "x$host_alias" != x; then
855  if test "x$build_alias" = x; then
856    cross_compiling=maybe
857    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858    If a cross compiler is detected then cross compile mode will be used." >&2
859  elif test "x$build_alias" != "x$host_alias"; then
860    cross_compiling=yes
861  fi
862fi
863
864ac_tool_prefix=
865test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867test "$silent" = yes && exec 6>/dev/null
868
869
870# Find the source files, if location was not specified.
871if test -z "$srcdir"; then
872  ac_srcdir_defaulted=yes
873  # Try the directory containing this script, then its parent.
874  ac_confdir=`(dirname "$0") 2>/dev/null ||
875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876	 X"$0" : 'X\(//\)[^/]' \| \
877	 X"$0" : 'X\(//\)$' \| \
878	 X"$0" : 'X\(/\)' \| \
879	 .     : '\(.\)' 2>/dev/null ||
880echo X"$0" |
881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883  	  /^X\(\/\/\)$/{ s//\1/; q; }
884  	  /^X\(\/\).*/{ s//\1/; q; }
885  	  s/.*/./; q'`
886  srcdir=$ac_confdir
887  if test ! -r $srcdir/$ac_unique_file; then
888    srcdir=..
889  fi
890else
891  ac_srcdir_defaulted=no
892fi
893if test ! -r $srcdir/$ac_unique_file; then
894  if test "$ac_srcdir_defaulted" = yes; then
895    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896   { (exit 1); exit 1; }; }
897  else
898    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899   { (exit 1); exit 1; }; }
900  fi
901fi
902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904   { (exit 1); exit 1; }; }
905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906ac_env_build_alias_set=${build_alias+set}
907ac_env_build_alias_value=$build_alias
908ac_cv_env_build_alias_set=${build_alias+set}
909ac_cv_env_build_alias_value=$build_alias
910ac_env_host_alias_set=${host_alias+set}
911ac_env_host_alias_value=$host_alias
912ac_cv_env_host_alias_set=${host_alias+set}
913ac_cv_env_host_alias_value=$host_alias
914ac_env_target_alias_set=${target_alias+set}
915ac_env_target_alias_value=$target_alias
916ac_cv_env_target_alias_set=${target_alias+set}
917ac_cv_env_target_alias_value=$target_alias
918ac_env_CXX_set=${CXX+set}
919ac_env_CXX_value=$CXX
920ac_cv_env_CXX_set=${CXX+set}
921ac_cv_env_CXX_value=$CXX
922ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923ac_env_CXXFLAGS_value=$CXXFLAGS
924ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926ac_env_LDFLAGS_set=${LDFLAGS+set}
927ac_env_LDFLAGS_value=$LDFLAGS
928ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929ac_cv_env_LDFLAGS_value=$LDFLAGS
930ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931ac_env_CPPFLAGS_value=$CPPFLAGS
932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934ac_env_CC_set=${CC+set}
935ac_env_CC_value=$CC
936ac_cv_env_CC_set=${CC+set}
937ac_cv_env_CC_value=$CC
938ac_env_CFLAGS_set=${CFLAGS+set}
939ac_env_CFLAGS_value=$CFLAGS
940ac_cv_env_CFLAGS_set=${CFLAGS+set}
941ac_cv_env_CFLAGS_value=$CFLAGS
942ac_env_CPP_set=${CPP+set}
943ac_env_CPP_value=$CPP
944ac_cv_env_CPP_set=${CPP+set}
945ac_cv_env_CPP_value=$CPP
946ac_env_CXXCPP_set=${CXXCPP+set}
947ac_env_CXXCPP_value=$CXXCPP
948ac_cv_env_CXXCPP_set=${CXXCPP+set}
949ac_cv_env_CXXCPP_value=$CXXCPP
950ac_env_F77_set=${F77+set}
951ac_env_F77_value=$F77
952ac_cv_env_F77_set=${F77+set}
953ac_cv_env_F77_value=$F77
954ac_env_FFLAGS_set=${FFLAGS+set}
955ac_env_FFLAGS_value=$FFLAGS
956ac_cv_env_FFLAGS_set=${FFLAGS+set}
957ac_cv_env_FFLAGS_value=$FFLAGS
958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963  # Omit some internal or obsolete options to make the list less imposing.
964  # This message is too long to be a string in the A/UX 3.1 sh.
965  cat <<_ACEOF
966\`configure' configures llvm 1.4 to adapt to many kinds of systems.
967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE.  See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976  -h, --help              display this help and exit
977      --help=short        display options specific to this package
978      --help=recursive    display the short help of all the included packages
979  -V, --version           display version information and exit
980  -q, --quiet, --silent   do not print \`checking...' messages
981      --cache-file=FILE   cache test results in FILE [disabled]
982  -C, --config-cache      alias for \`--cache-file=config.cache'
983  -n, --no-create         do not create output files
984      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988  cat <<_ACEOF
989Installation directories:
990  --prefix=PREFIX         install architecture-independent files in PREFIX
991			  [$ac_default_prefix]
992  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
993			  [PREFIX]
994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003  --bindir=DIR           user executables [EPREFIX/bin]
1004  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1005  --libexecdir=DIR       program executables [EPREFIX/libexec]
1006  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1007  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1008  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1009  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1010  --libdir=DIR           object code libraries [EPREFIX/lib]
1011  --includedir=DIR       C header files [PREFIX/include]
1012  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1013  --infodir=DIR          info documentation [PREFIX/info]
1014  --mandir=DIR           man documentation [PREFIX/man]
1015_ACEOF
1016
1017  cat <<\_ACEOF
1018
1019System types:
1020  --build=BUILD     configure for building on BUILD [guessed]
1021  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022  --target=TARGET   configure for building compilers for TARGET [HOST]
1023_ACEOF
1024fi
1025
1026if test -n "$ac_init_help"; then
1027  case $ac_init_help in
1028     short | recursive ) echo "Configuration of llvm 1.4:";;
1029   esac
1030  cat <<\_ACEOF
1031
1032Optional Features:
1033  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035  --enable-shared[=PKGS]
1036                          build shared libraries [default=yes]
1037  --enable-static[=PKGS]
1038                          build static 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  --enable-optimized      Compile with optimizations enabled (default is NO)
1043  --enable-jit            Enable Just In Time Compiling (default is YES)
1044
1045Optional Packages:
1046  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049  --with-pic              try to use only PIC/non-PIC objects [default=use
1050                          both]
1051  --with-tags[=TAGS]
1052                          include additional configurations [automatic]
1053  --with-llvmgccdir       Location of LLVM GCC front-end
1054
1055Some influential environment variables:
1056  CXX         C++ compiler command
1057  CXXFLAGS    C++ compiler flags
1058  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059              nonstandard directory <lib dir>
1060  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061              headers in a nonstandard directory <include dir>
1062  CC          C compiler command
1063  CFLAGS      C compiler flags
1064  CPP         C preprocessor
1065  CXXCPP      C++ preprocessor
1066  F77         Fortran 77 compiler command
1067  FFLAGS      Fortran 77 compiler flags
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077  # If there are subdirs, report their specific --help.
1078  ac_popdir=`pwd`
1079  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080    test -d $ac_dir || continue
1081    ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085  # A "../" for each directory in $ac_dir_suffix.
1086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088  ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092  .)  # No --srcdir option.  We are building in place.
1093    ac_srcdir=.
1094    if test -z "$ac_top_builddir"; then
1095       ac_top_srcdir=.
1096    else
1097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098    fi ;;
1099  [\\/]* | ?:[\\/]* )  # Absolute path.
1100    ac_srcdir=$srcdir$ac_dir_suffix;
1101    ac_top_srcdir=$srcdir ;;
1102  *) # Relative path.
1103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112  case "$ac_dir" in
1113  .) ac_abs_builddir=`pwd`;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121  case ${ac_top_builddir}. in
1122  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130  case $ac_srcdir in
1131  .) ac_abs_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139  case $ac_top_srcdir in
1140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143  esac;;
1144esac
1145
1146    cd $ac_dir
1147    # Check for guested configure; otherwise get Cygnus style configure.
1148    if test -f $ac_srcdir/configure.gnu; then
1149      echo
1150      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151    elif test -f $ac_srcdir/configure; then
1152      echo
1153      $SHELL $ac_srcdir/configure  --help=recursive
1154    elif test -f $ac_srcdir/configure.ac ||
1155	   test -f $ac_srcdir/configure.in; then
1156      echo
1157      $ac_configure --help
1158    else
1159      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160    fi
1161    cd $ac_popdir
1162  done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167  cat <<\_ACEOF
1168llvm configure 1.4
1169generated by GNU Autoconf 2.59
1170
1171Copyright (C) 2003 Free Software Foundation, Inc.
1172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175  exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
1182It was created by llvm $as_me 1.4, which was
1183generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185  $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216  IFS=$as_save_IFS
1217  test -z "$as_dir" && as_dir=.
1218  echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
1235# Strip out --silent because we don't want to record it for future runs.
1236# Also quote any args containing shell meta-characters.
1237# Make two passes to allow for proper duplicate-argument suppression.
1238ac_configure_args=
1239ac_configure_args0=
1240ac_configure_args1=
1241ac_sep=
1242ac_must_keep_next=false
1243for ac_pass in 1 2
1244do
1245  for ac_arg
1246  do
1247    case $ac_arg in
1248    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250    | -silent | --silent | --silen | --sile | --sil)
1251      continue ;;
1252    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254    esac
1255    case $ac_pass in
1256    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257    2)
1258      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259      if test $ac_must_keep_next = true; then
1260	ac_must_keep_next=false # Got value, back to normal.
1261      else
1262	case $ac_arg in
1263	  *=* | --config-cache | -C | -disable-* | --disable-* \
1264	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266	  | -with-* | --with-* | -without-* | --without-* | --x)
1267	    case "$ac_configure_args0 " in
1268	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269	    esac
1270	    ;;
1271	  -* ) ac_must_keep_next=true ;;
1272	esac
1273      fi
1274      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275      # Get rid of the leading space.
1276      ac_sep=" "
1277      ;;
1278    esac
1279  done
1280done
1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log.  We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290  # Save into config.log some information that might help in debugging.
1291  {
1292    echo
1293
1294    cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299    echo
1300    # The following way of writing the cache mishandles newlines in values,
1301{
1302  (set) 2>&1 |
1303    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304    *ac_space=\ *)
1305      sed -n \
1306	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308      ;;
1309    *)
1310      sed -n \
1311	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312      ;;
1313    esac;
1314}
1315    echo
1316
1317    cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322    echo
1323    for ac_var in $ac_subst_vars
1324    do
1325      eval ac_val=$`echo $ac_var`
1326      echo "$ac_var='"'"'$ac_val'"'"'"
1327    done | sort
1328    echo
1329
1330    if test -n "$ac_subst_files"; then
1331      cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336      echo
1337      for ac_var in $ac_subst_files
1338      do
1339	eval ac_val=$`echo $ac_var`
1340	echo "$ac_var='"'"'$ac_val'"'"'"
1341      done | sort
1342      echo
1343    fi
1344
1345    if test -s confdefs.h; then
1346      cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351      echo
1352      sed "/^$/d" confdefs.h | sort
1353      echo
1354    fi
1355    test "$ac_signal" != 0 &&
1356      echo "$as_me: caught signal $ac_signal"
1357    echo "$as_me: exit $exit_status"
1358  } >&5
1359  rm -f core *.core &&
1360  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361    exit $exit_status
1362     ' 0
1363for ac_signal in 1 2 13 15; do
1364  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403  if test "x$prefix" != xNONE; then
1404    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405  else
1406    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407  fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410  if test -r "$ac_site_file"; then
1411    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413    sed 's/^/| /' "$ac_site_file" >&5
1414    . "$ac_site_file"
1415  fi
1416done
1417
1418if test -r "$cache_file"; then
1419  # Some versions of bash will fail to source /dev/null (special
1420  # files actually), so we avoid doing that.
1421  if test -f "$cache_file"; then
1422    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424    case $cache_file in
1425      [\\/]* | ?:[\\/]* ) . $cache_file;;
1426      *)                      . ./$cache_file;;
1427    esac
1428  fi
1429else
1430  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432  >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
1439	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441  eval ac_new_set=\$ac_env_${ac_var}_set
1442  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443  eval ac_new_val="\$ac_env_${ac_var}_value"
1444  case $ac_old_set,$ac_new_set in
1445    set,)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,set)
1450      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452      ac_cache_corrupted=: ;;
1453    ,);;
1454    *)
1455      if test "x$ac_old_val" != "x$ac_new_val"; then
1456	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459echo "$as_me:   former value:  $ac_old_val" >&2;}
1460	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461echo "$as_me:   current value: $ac_new_val" >&2;}
1462	ac_cache_corrupted=:
1463      fi;;
1464  esac
1465  # Pass precious variables to config.status.
1466  if test "$ac_new_set" = set; then
1467    case $ac_new_val in
1468    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470    *) ac_arg=$ac_var=$ac_new_val ;;
1471    esac
1472    case " $ac_configure_args " in
1473      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475    esac
1476  fi
1477done
1478if $ac_cache_corrupted; then
1479  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483   { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519ac_aux_dir=
1520for ac_dir in autoconf $srcdir/autoconf; do
1521  if 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/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545
1546if test ${srcdir} != "." ; then
1547	if test -f ${srcdir}/include/llvm/Config/config.h ; then
1548		{ { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1549echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550   { (exit 1); exit 1; }; }
1551	fi
1552fi
1553
1554for i in `ls ${srcdir}/projects`
1555do
1556  if test -d ${srcdir}/projects/${i} ; then
1557    case ${i} in
1558      "CVS") ;;
1559      "sample")
1560
1561subdirs="$subdirs projects/sample"
1562    ;;
1563      "Stacker")
1564
1565subdirs="$subdirs projects/Stacker"
1566   ;;
1567      "llvm-test")
1568
1569subdirs="$subdirs projects/llvm-test"
1570 ;;
1571      "llvm-reopt")
1572
1573subdirs="$subdirs projects/llvm-reopt"
1574;;
1575      "llvm-gcc")
1576
1577subdirs="$subdirs projects/llvm-gcc"
1578  ;;
1579      "Java")
1580
1581subdirs="$subdirs projects/Java"
1582      ;;
1583      "llvm-tv")
1584
1585subdirs="$subdirs projects/llvm-tv"
1586   ;;
1587      "llvm-fefw")
1588
1589subdirs="$subdirs projects/llvm-fefw"
1590 ;;
1591      "poolalloc")
1592
1593subdirs="$subdirs projects/poolalloc"
1594 ;;
1595      *)
1596        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1597echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1598        ;;
1599    esac
1600  fi
1601done
1602
1603          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1604
1605
1606                                                  ac_config_files="$ac_config_files Makefile.config tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
1607
1608          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1609
1610          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1611
1612          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1613
1614          ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1615
1616          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1617
1618
1619          ac_config_commands="$ac_config_commands Makefile"
1620
1621
1622          ac_config_commands="$ac_config_commands Makefile.common"
1623
1624
1625          ac_config_commands="$ac_config_commands examples/Makefile"
1626
1627
1628          ac_config_commands="$ac_config_commands lib/Makefile"
1629
1630
1631          ac_config_commands="$ac_config_commands runtime/Makefile"
1632
1633
1634          ac_config_commands="$ac_config_commands test/Makefile"
1635
1636
1637          ac_config_commands="$ac_config_commands test/Makefile.tests"
1638
1639
1640          ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1641
1642
1643          ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1644
1645
1646          ac_config_commands="$ac_config_commands tools/Makefile"
1647
1648
1649          ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1650
1651
1652          ac_config_commands="$ac_config_commands utils/Makefile"
1653
1654
1655          ac_config_commands="$ac_config_commands projects/Makefile"
1656
1657
1658
1659# Find a good install program.  We prefer a C program (faster),
1660# so one script is as good as another.  But avoid the broken or
1661# incompatible versions:
1662# SysV /etc/install, /usr/sbin/install
1663# SunOS /usr/etc/install
1664# IRIX /sbin/install
1665# AIX /bin/install
1666# AmigaOS /C/install, which installs bootblocks on floppy discs
1667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670# OS/2's system install, which has a completely different semantic
1671# ./install, which can be erroneously created by make from ./install.sh.
1672echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1674if test -z "$INSTALL"; then
1675if test "${ac_cv_path_install+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681  IFS=$as_save_IFS
1682  test -z "$as_dir" && as_dir=.
1683  # Account for people who put trailing slashes in PATH elements.
1684case $as_dir/ in
1685  ./ | .// | /cC/* | \
1686  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1687  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1688  /usr/ucb/* ) ;;
1689  *)
1690    # OSF1 and SCO ODT 3.0 have their own names for install.
1691    # Don't use installbsd from OSF since it installs stuff as root
1692    # by default.
1693    for ac_prog in ginstall scoinst install; do
1694      for ac_exec_ext in '' $ac_executable_extensions; do
1695	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1696	  if test $ac_prog = install &&
1697	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1698	    # AIX install.  It has an incompatible calling convention.
1699	    :
1700	  elif test $ac_prog = install &&
1701	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1702	    # program-specific install script used by HP pwplus--don't use.
1703	    :
1704	  else
1705	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1706	    break 3
1707	  fi
1708	fi
1709      done
1710    done
1711    ;;
1712esac
1713done
1714
1715
1716fi
1717  if test "${ac_cv_path_install+set}" = set; then
1718    INSTALL=$ac_cv_path_install
1719  else
1720    # As a last resort, use the slow shell script.  We don't cache a
1721    # path for INSTALL within a source directory, because that will
1722    # break other packages using the cache if that directory is
1723    # removed, or if the path is relative.
1724    INSTALL=$ac_install_sh
1725  fi
1726fi
1727echo "$as_me:$LINENO: result: $INSTALL" >&5
1728echo "${ECHO_T}$INSTALL" >&6
1729
1730# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1731# It thinks the first close brace ends the variable substitution.
1732test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1733
1734test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1735
1736test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1737
1738
1739# Make sure we can run config.sub.
1740$ac_config_sub sun4 >/dev/null 2>&1 ||
1741  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743   { (exit 1); exit 1; }; }
1744
1745echo "$as_me:$LINENO: checking build system type" >&5
1746echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747if test "${ac_cv_build+set}" = set; then
1748  echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750  ac_cv_build_alias=$build_alias
1751test -z "$ac_cv_build_alias" &&
1752  ac_cv_build_alias=`$ac_config_guess`
1753test -z "$ac_cv_build_alias" &&
1754  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756   { (exit 1); exit 1; }; }
1757ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760   { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764echo "${ECHO_T}$ac_cv_build" >&6
1765build=$ac_cv_build
1766build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771echo "$as_me:$LINENO: checking host system type" >&5
1772echo $ECHO_N "checking host system type... $ECHO_C" >&6
1773if test "${ac_cv_host+set}" = set; then
1774  echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776  ac_cv_host_alias=$host_alias
1777test -z "$ac_cv_host_alias" &&
1778  ac_cv_host_alias=$ac_cv_build_alias
1779ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1780  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1781echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1782   { (exit 1); exit 1; }; }
1783
1784fi
1785echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1786echo "${ECHO_T}$ac_cv_host" >&6
1787host=$ac_cv_host
1788host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793echo "$as_me:$LINENO: checking target system type" >&5
1794echo $ECHO_N "checking target system type... $ECHO_C" >&6
1795if test "${ac_cv_target+set}" = set; then
1796  echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798  ac_cv_target_alias=$target_alias
1799test "x$ac_cv_target_alias" = "x" &&
1800  ac_cv_target_alias=$ac_cv_host_alias
1801ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1802  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1803echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1804   { (exit 1); exit 1; }; }
1805
1806fi
1807echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808echo "${ECHO_T}$ac_cv_target" >&6
1809target=$ac_cv_target
1810target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815# The aliases save the names the user supplied, while $host etc.
1816# will get canonicalized.
1817test -n "$target_alias" &&
1818  test "$program_prefix$program_suffix$program_transform_name" = \
1819    NONENONEs,x,x, &&
1820  program_prefix=${target_alias}-
1821
1822
1823echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1824echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1825case $build in
1826	*-*-aix*)
1827             OS=AIX
1828
1829             platform_type="AIX"
1830             ;;
1831	*-*-cygwin*)
1832             OS=Cygwin
1833
1834             platform_type="Cygwin"
1835             ;;
1836	*-*-darwin*)
1837             OS=Darwin
1838
1839             platform_type="Darwin"
1840             ;;
1841        *-*-freebsd*)
1842             OS=Linux
1843
1844             platform_type="FreeBSD"
1845             ;;
1846        *-*-interix*)
1847             OS=SunOS
1848
1849             platform_type="Interix"
1850             ;;
1851	*-*-linux*)
1852             OS=Linux
1853
1854             platform_type="Linux"
1855             if test -d /home/vadve/lattner/local/x86/llvm-gcc
1856	     then
1857	       LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1858
1859             fi
1860             ;;
1861	*-*-solaris*)
1862             OS=SunOS
1863
1864             platform_type="SunOS"
1865             if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1866             then
1867               LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1868
1869             fi
1870             ;;
1871        *-*-win32*)
1872             OS=Win32
1873
1874             platform_type="Win32"
1875	     ;;
1876        *-*-mingw*)
1877             OS=Win32
1878
1879             platform_type="Win32"
1880	     ;;
1881	*)
1882             OS=Unknown
1883
1884             platform_type="Unknown"
1885	     ;;
1886esac
1887
1888if test "$platform_type" = "Unknown" ; then
1889  { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1890echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1891   { (exit 1); exit 1; }; }
1892fi
1893
1894          ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1895
1896
1897
1898echo "$as_me:$LINENO: checking target architecture" >&5
1899echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1900case $target in
1901	sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1902
1903	                    ;;
1904esac
1905
1906case $target in
1907	i*86-*)
1908          ARCH="x86"
1909          ARCH=x86
1910
1911	  ;;
1912	sparc*-*)
1913          ARCH="Sparc"
1914          ARCH=Sparc
1915
1916	  ;;
1917	powerpc*-*)
1918          ARCH="PowerPC"
1919          ARCH=PowerPC
1920
1921	  ;;
1922	*)
1923          ARCH="Unknown"
1924          ARCH=Unknown
1925
1926	  ;;
1927esac
1928
1929echo "$as_me:$LINENO: result: $ARCH" >&5
1930echo "${ECHO_T}$ARCH" >&6
1931
1932ac_ext=cc
1933ac_cpp='$CXXCPP $CPPFLAGS'
1934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1937if test -n "$ac_tool_prefix"; then
1938  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1939  do
1940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$CXX"; then
1948  ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966CXX=$ac_cv_prog_CXX
1967if test -n "$CXX"; then
1968  echo "$as_me:$LINENO: result: $CXX" >&5
1969echo "${ECHO_T}$CXX" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975    test -n "$CXX" && break
1976  done
1977fi
1978if test -z "$CXX"; then
1979  ac_ct_CXX=$CXX
1980  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1981do
1982  # Extract the first word of "$ac_prog", so it can be a program name with args.
1983set dummy $ac_prog; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$ac_ct_CXX"; then
1990  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  for ac_exec_ext in '' $ac_executable_extensions; do
1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999    ac_cv_prog_ac_ct_CXX="$ac_prog"
2000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001    break 2
2002  fi
2003done
2004done
2005
2006fi
2007fi
2008ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2009if test -n "$ac_ct_CXX"; then
2010  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2011echo "${ECHO_T}$ac_ct_CXX" >&6
2012else
2013  echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6
2015fi
2016
2017  test -n "$ac_ct_CXX" && break
2018done
2019test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2020
2021  CXX=$ac_ct_CXX
2022fi
2023
2024
2025# Provide some information about the compiler.
2026echo "$as_me:$LINENO:" \
2027     "checking for C++ compiler version" >&5
2028ac_compiler=`set X $ac_compile; echo $2`
2029{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030  (eval $ac_compiler --version </dev/null >&5) 2>&5
2031  ac_status=$?
2032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033  (exit $ac_status); }
2034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035  (eval $ac_compiler -v </dev/null >&5) 2>&5
2036  ac_status=$?
2037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038  (exit $ac_status); }
2039{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040  (eval $ac_compiler -V </dev/null >&5) 2>&5
2041  ac_status=$?
2042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043  (exit $ac_status); }
2044
2045cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h.  */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h.  */
2051
2052int
2053main ()
2054{
2055
2056  ;
2057  return 0;
2058}
2059_ACEOF
2060ac_clean_files_save=$ac_clean_files
2061ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062# Try to create an executable without -o first, disregard a.out.
2063# It will help us diagnose broken compilers, and finding out an intuition
2064# of exeext.
2065echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2066echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2067ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069  (eval $ac_link_default) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }; then
2073  # Find the output, starting from the most likely.  This scheme is
2074# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2075# resort.
2076
2077# Be careful to initialize this variable, since it used to be cached.
2078# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2079ac_cv_exeext=
2080# b.out is created by i960 compilers.
2081for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2082do
2083  test -f "$ac_file" || continue
2084  case $ac_file in
2085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2086	;;
2087    conftest.$ac_ext )
2088	# This is the source file.
2089	;;
2090    [ab].out )
2091	# We found the default executable, but exeext='' is most
2092	# certainly right.
2093	break;;
2094    *.* )
2095	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096	# FIXME: I believe we export ac_cv_exeext for Libtool,
2097	# but it would be cool to find out if it's true.  Does anybody
2098	# maintain Libtool? --akim.
2099	export ac_cv_exeext
2100	break;;
2101    * )
2102	break;;
2103  esac
2104done
2105else
2106  echo "$as_me: failed program was:" >&5
2107sed 's/^/| /' conftest.$ac_ext >&5
2108
2109{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: C++ compiler cannot create executables
2112See \`config.log' for more details." >&2;}
2113   { (exit 77); exit 77; }; }
2114fi
2115
2116ac_exeext=$ac_cv_exeext
2117echo "$as_me:$LINENO: result: $ac_file" >&5
2118echo "${ECHO_T}$ac_file" >&6
2119
2120# Check the compiler produces executables we can run.  If not, either
2121# the compiler is broken, or we cross compile.
2122echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2123echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2124# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125# If not cross compiling, check that we can run a simple program.
2126if test "$cross_compiling" != yes; then
2127  if { ac_try='./$ac_file'
2128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129  (eval $ac_try) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }; }; then
2133    cross_compiling=no
2134  else
2135    if test "$cross_compiling" = maybe; then
2136	cross_compiling=yes
2137    else
2138	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2139If you meant to cross compile, use \`--host'.
2140See \`config.log' for more details." >&5
2141echo "$as_me: error: cannot run C++ compiled programs.
2142If you meant to cross compile, use \`--host'.
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145    fi
2146  fi
2147fi
2148echo "$as_me:$LINENO: result: yes" >&5
2149echo "${ECHO_T}yes" >&6
2150
2151rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152ac_clean_files=$ac_clean_files_save
2153# Check the compiler produces executables we can run.  If not, either
2154# the compiler is broken, or we cross compile.
2155echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158echo "${ECHO_T}$cross_compiling" >&6
2159
2160echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163  (eval $ac_link) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; then
2167  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2169# work properly (i.e., refer to `conftest.exe'), while it won't with
2170# `rm'.
2171for ac_file in conftest.exe conftest conftest.*; do
2172  test -f "$ac_file" || continue
2173  case $ac_file in
2174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176	  export ac_cv_exeext
2177	  break;;
2178    * ) break;;
2179  esac
2180done
2181else
2182  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185See \`config.log' for more details." >&2;}
2186   { (exit 1); exit 1; }; }
2187fi
2188
2189rm -f conftest$ac_cv_exeext
2190echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191echo "${ECHO_T}$ac_cv_exeext" >&6
2192
2193rm -f conftest.$ac_ext
2194EXEEXT=$ac_cv_exeext
2195ac_exeext=$EXEEXT
2196echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198if test "${ac_cv_objext+set}" = set; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  cat >conftest.$ac_ext <<_ACEOF
2202/* confdefs.h.  */
2203_ACEOF
2204cat confdefs.h >>conftest.$ac_ext
2205cat >>conftest.$ac_ext <<_ACEOF
2206/* end confdefs.h.  */
2207
2208int
2209main ()
2210{
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216rm -f conftest.o conftest.obj
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218  (eval $ac_compile) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; then
2222  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2223  case $ac_file in
2224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2225    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226       break;;
2227  esac
2228done
2229else
2230  echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238fi
2239
2240rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241fi
2242echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243echo "${ECHO_T}$ac_cv_objext" >&6
2244OBJEXT=$ac_cv_objext
2245ac_objext=$OBJEXT
2246echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2247echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2248if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2249  echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251  cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h.  */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h.  */
2257
2258int
2259main ()
2260{
2261#ifndef __GNUC__
2262       choke me
2263#endif
2264
2265  ;
2266  return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271  (eval $ac_compile) 2>conftest.er1
2272  ac_status=$?
2273  grep -v '^ *+' conftest.er1 >conftest.err
2274  rm -f conftest.er1
2275  cat conftest.err >&5
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); } &&
2278	 { ac_try='test -z "$ac_cxx_werror_flag"
2279			 || test ! -s conftest.err'
2280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281  (eval $ac_try) 2>&5
2282  ac_status=$?
2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284  (exit $ac_status); }; } &&
2285	 { ac_try='test -s conftest.$ac_objext'
2286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287  (eval $ac_try) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; }; then
2291  ac_compiler_gnu=yes
2292else
2293  echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296ac_compiler_gnu=no
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2300
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2303echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2304GXX=`test $ac_compiler_gnu = yes && echo yes`
2305ac_test_CXXFLAGS=${CXXFLAGS+set}
2306ac_save_CXXFLAGS=$CXXFLAGS
2307CXXFLAGS="-g"
2308echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2309echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2310if test "${ac_cv_prog_cxx_g+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319
2320int
2321main ()
2322{
2323
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330  (eval $ac_compile) 2>conftest.er1
2331  ac_status=$?
2332  grep -v '^ *+' conftest.er1 >conftest.err
2333  rm -f conftest.er1
2334  cat conftest.err >&5
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); } &&
2337	 { ac_try='test -z "$ac_cxx_werror_flag"
2338			 || test ! -s conftest.err'
2339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340  (eval $ac_try) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; } &&
2344	 { ac_try='test -s conftest.$ac_objext'
2345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346  (eval $ac_try) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; }; then
2350  ac_cv_prog_cxx_g=yes
2351else
2352  echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355ac_cv_prog_cxx_g=no
2356fi
2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2360echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2361if test "$ac_test_CXXFLAGS" = set; then
2362  CXXFLAGS=$ac_save_CXXFLAGS
2363elif test $ac_cv_prog_cxx_g = yes; then
2364  if test "$GXX" = yes; then
2365    CXXFLAGS="-g -O2"
2366  else
2367    CXXFLAGS="-g"
2368  fi
2369else
2370  if test "$GXX" = yes; then
2371    CXXFLAGS="-O2"
2372  else
2373    CXXFLAGS=
2374  fi
2375fi
2376for ac_declaration in \
2377   '' \
2378   'extern "C" void std::exit (int) throw (); using std::exit;' \
2379   'extern "C" void std::exit (int); using std::exit;' \
2380   'extern "C" void exit (int) throw ();' \
2381   'extern "C" void exit (int);' \
2382   'void exit (int);'
2383do
2384  cat >conftest.$ac_ext <<_ACEOF
2385/* confdefs.h.  */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h.  */
2390$ac_declaration
2391#include <stdlib.h>
2392int
2393main ()
2394{
2395exit (42);
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>conftest.er1
2403  ac_status=$?
2404  grep -v '^ *+' conftest.er1 >conftest.err
2405  rm -f conftest.er1
2406  cat conftest.err >&5
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); } &&
2409	 { ac_try='test -z "$ac_cxx_werror_flag"
2410			 || test ! -s conftest.err'
2411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412  (eval $ac_try) 2>&5
2413  ac_status=$?
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); }; } &&
2416	 { ac_try='test -s conftest.$ac_objext'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422  :
2423else
2424  echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427continue
2428fi
2429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430  cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h.  */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h.  */
2436$ac_declaration
2437int
2438main ()
2439{
2440exit (42);
2441  ;
2442  return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447  (eval $ac_compile) 2>conftest.er1
2448  ac_status=$?
2449  grep -v '^ *+' conftest.er1 >conftest.err
2450  rm -f conftest.er1
2451  cat conftest.err >&5
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); } &&
2454	 { ac_try='test -z "$ac_cxx_werror_flag"
2455			 || test ! -s conftest.err'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; } &&
2461	 { ac_try='test -s conftest.$ac_objext'
2462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463  (eval $ac_try) 2>&5
2464  ac_status=$?
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; }; then
2467  break
2468else
2469  echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472fi
2473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474done
2475rm -f conftest*
2476if test -n "$ac_declaration"; then
2477  echo '#ifdef __cplusplus' >>confdefs.h
2478  echo $ac_declaration      >>confdefs.h
2479  echo '#endif'             >>confdefs.h
2480fi
2481
2482ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487
2488ac_ext=c
2489ac_cpp='$CPP $CPPFLAGS'
2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493if test -n "$ac_tool_prefix"; then
2494  for ac_prog in gcc
2495  do
2496    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498echo "$as_me:$LINENO: checking for $ac_word" >&5
2499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500if test "${ac_cv_prog_CC+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  if test -n "$CC"; then
2504  ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511  for ac_exec_ext in '' $ac_executable_extensions; do
2512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518done
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524  echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6
2526else
2527  echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6
2529fi
2530
2531    test -n "$CC" && break
2532  done
2533fi
2534if test -z "$CC"; then
2535  ac_ct_CC=$CC
2536  for ac_prog in gcc
2537do
2538  # Extract the first word of "$ac_prog", so it can be a program name with args.
2539set dummy $ac_prog; ac_word=$2
2540echo "$as_me:$LINENO: checking for $ac_word" >&5
2541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543  echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545  if test -n "$ac_ct_CC"; then
2546  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551  IFS=$as_save_IFS
2552  test -z "$as_dir" && as_dir=.
2553  for ac_exec_ext in '' $ac_executable_extensions; do
2554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555    ac_cv_prog_ac_ct_CC="$ac_prog"
2556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557    break 2
2558  fi
2559done
2560done
2561
2562fi
2563fi
2564ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565if test -n "$ac_ct_CC"; then
2566  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567echo "${ECHO_T}$ac_ct_CC" >&6
2568else
2569  echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
2571fi
2572
2573  test -n "$ac_ct_CC" && break
2574done
2575
2576  CC=$ac_ct_CC
2577fi
2578
2579
2580test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581See \`config.log' for more details." >&5
2582echo "$as_me: error: no acceptable C compiler found in \$PATH
2583See \`config.log' for more details." >&2;}
2584   { (exit 1); exit 1; }; }
2585
2586# Provide some information about the compiler.
2587echo "$as_me:$LINENO:" \
2588     "checking for C compiler version" >&5
2589ac_compiler=`set X $ac_compile; echo $2`
2590{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2591  (eval $ac_compiler --version </dev/null >&5) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596  (eval $ac_compiler -v </dev/null >&5) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }
2600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601  (eval $ac_compiler -V </dev/null >&5) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }
2605
2606echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609  echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611  cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617
2618int
2619main ()
2620{
2621#ifndef __GNUC__
2622       choke me
2623#endif
2624
2625  ;
2626  return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631  (eval $ac_compile) 2>conftest.er1
2632  ac_status=$?
2633  grep -v '^ *+' conftest.er1 >conftest.err
2634  rm -f conftest.er1
2635  cat conftest.err >&5
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); } &&
2638	 { ac_try='test -z "$ac_c_werror_flag"
2639			 || test ! -s conftest.err'
2640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641  (eval $ac_try) 2>&5
2642  ac_status=$?
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); }; } &&
2645	 { ac_try='test -s conftest.$ac_objext'
2646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647  (eval $ac_try) 2>&5
2648  ac_status=$?
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); }; }; then
2651  ac_compiler_gnu=yes
2652else
2653  echo "$as_me: failed program was:" >&5
2654sed 's/^/| /' conftest.$ac_ext >&5
2655
2656ac_compiler_gnu=no
2657fi
2658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661fi
2662echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664GCC=`test $ac_compiler_gnu = yes && echo yes`
2665ac_test_CFLAGS=${CFLAGS+set}
2666ac_save_CFLAGS=$CFLAGS
2667CFLAGS="-g"
2668echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670if test "${ac_cv_prog_cc_g+set}" = set; then
2671  echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673  cat >conftest.$ac_ext <<_ACEOF
2674/* confdefs.h.  */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h.  */
2679
2680int
2681main ()
2682{
2683
2684  ;
2685  return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697	 { ac_try='test -z "$ac_c_werror_flag"
2698			 || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704	 { ac_try='test -s conftest.$ac_objext'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710  ac_cv_prog_cc_g=yes
2711else
2712  echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715ac_cv_prog_cc_g=no
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718fi
2719echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721if test "$ac_test_CFLAGS" = set; then
2722  CFLAGS=$ac_save_CFLAGS
2723elif test $ac_cv_prog_cc_g = yes; then
2724  if test "$GCC" = yes; then
2725    CFLAGS="-g -O2"
2726  else
2727    CFLAGS="-g"
2728  fi
2729else
2730  if test "$GCC" = yes; then
2731    CFLAGS="-O2"
2732  else
2733    CFLAGS=
2734  fi
2735fi
2736echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741  ac_cv_prog_cc_stdc=no
2742ac_save_CC=$CC
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h.  */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h.  */
2749#include <stdarg.h>
2750#include <stdio.h>
2751#include <sys/types.h>
2752#include <sys/stat.h>
2753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2754struct buf { int x; };
2755FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756static char *e (p, i)
2757     char **p;
2758     int i;
2759{
2760  return p[i];
2761}
2762static char *f (char * (*g) (char **, int), char **p, ...)
2763{
2764  char *s;
2765  va_list v;
2766  va_start (v,p);
2767  s = g (p, va_arg (v,int));
2768  va_end (v);
2769  return s;
2770}
2771
2772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2773   function prototypes and stuff, but not '\xHH' hex character constants.
2774   These don't provoke an error unfortunately, instead are silently treated
2775   as 'x'.  The following induces an error, until -std1 is added to get
2776   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2777   array size at least.  It's necessary to write '\x00'==0 to get something
2778   that's true only with -std1.  */
2779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780
2781int test (int i, double x);
2782struct s1 {int (*f) (int a);};
2783struct s2 {int (*f) (double a);};
2784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785int argc;
2786char **argv;
2787int
2788main ()
2789{
2790return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2791  ;
2792  return 0;
2793}
2794_ACEOF
2795# Don't try gcc -ansi; that turns off useful extensions and
2796# breaks some systems' header files.
2797# AIX			-qlanglvl=ansi
2798# Ultrix and OSF/1	-std1
2799# HP-UX 10.20 and later	-Ae
2800# HP-UX older versions	-Aa -D_HPUX_SOURCE
2801# SVR4			-Xc -D__EXTENSIONS__
2802for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803do
2804  CC="$ac_save_CC $ac_arg"
2805  rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807  (eval $ac_compile) 2>conftest.er1
2808  ac_status=$?
2809  grep -v '^ *+' conftest.er1 >conftest.err
2810  rm -f conftest.er1
2811  cat conftest.err >&5
2812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813  (exit $ac_status); } &&
2814	 { ac_try='test -z "$ac_c_werror_flag"
2815			 || test ! -s conftest.err'
2816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817  (eval $ac_try) 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; } &&
2821	 { ac_try='test -s conftest.$ac_objext'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; }; then
2827  ac_cv_prog_cc_stdc=$ac_arg
2828break
2829else
2830  echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833fi
2834rm -f conftest.err conftest.$ac_objext
2835done
2836rm -f conftest.$ac_ext conftest.$ac_objext
2837CC=$ac_save_CC
2838
2839fi
2840
2841case "x$ac_cv_prog_cc_stdc" in
2842  x|xno)
2843    echo "$as_me:$LINENO: result: none needed" >&5
2844echo "${ECHO_T}none needed" >&6 ;;
2845  *)
2846    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848    CC="$CC $ac_cv_prog_cc_stdc" ;;
2849esac
2850
2851# Some people use a C++ compiler to compile C.  Since we use `exit',
2852# in C++ we need to declare it.  In case someone uses the same compiler
2853# for both compiling C and C++ we need to have the C++ compiler decide
2854# the declaration of exit, since it's the most demanding environment.
2855cat >conftest.$ac_ext <<_ACEOF
2856#ifndef __cplusplus
2857  choke me
2858#endif
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862  (eval $ac_compile) 2>conftest.er1
2863  ac_status=$?
2864  grep -v '^ *+' conftest.er1 >conftest.err
2865  rm -f conftest.er1
2866  cat conftest.err >&5
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); } &&
2869	 { ac_try='test -z "$ac_c_werror_flag"
2870			 || test ! -s conftest.err'
2871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; } &&
2876	 { ac_try='test -s conftest.$ac_objext'
2877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878  (eval $ac_try) 2>&5
2879  ac_status=$?
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); }; }; then
2882  for ac_declaration in \
2883   '' \
2884   'extern "C" void std::exit (int) throw (); using std::exit;' \
2885   'extern "C" void std::exit (int); using std::exit;' \
2886   'extern "C" void exit (int) throw ();' \
2887   'extern "C" void exit (int);' \
2888   'void exit (int);'
2889do
2890  cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h.  */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h.  */
2896$ac_declaration
2897#include <stdlib.h>
2898int
2899main ()
2900{
2901exit (42);
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext
2907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908  (eval $ac_compile) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915	 { ac_try='test -z "$ac_c_werror_flag"
2916			 || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922	 { ac_try='test -s conftest.$ac_objext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  :
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933continue
2934fi
2935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936  cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942$ac_declaration
2943int
2944main ()
2945{
2946exit (42);
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953  (eval $ac_compile) 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960	 { ac_try='test -z "$ac_c_werror_flag"
2961			 || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967	 { ac_try='test -s conftest.$ac_objext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  break
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978fi
2979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980done
2981rm -f conftest*
2982if test -n "$ac_declaration"; then
2983  echo '#ifdef __cplusplus' >>confdefs.h
2984  echo $ac_declaration      >>confdefs.h
2985  echo '#endif'             >>confdefs.h
2986fi
2987
2988else
2989  echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992fi
2993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
3000if test "$GCC" != "yes"
3001then
3002	{ { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3003echo "$as_me: error: gcc required but not found" >&2;}
3004   { (exit 1); exit 1; }; }
3005fi
3006ac_ext=c
3007ac_cpp='$CPP $CPPFLAGS'
3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013# On Suns, sometimes $CPP names a directory.
3014if test -n "$CPP" && test -d "$CPP"; then
3015  CPP=
3016fi
3017if test -z "$CPP"; then
3018  if test "${ac_cv_prog_CPP+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021      # Double quotes because CPP needs to be expanded
3022    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3023    do
3024      ac_preproc_ok=false
3025for ac_c_preproc_warn_flag in '' yes
3026do
3027  # Use a header file that comes with gcc, so configuring glibc
3028  # with a fresh cross-compiler works.
3029  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030  # <limits.h> exists even on freestanding compilers.
3031  # On the NeXT, cc -E runs the code through the compiler's parser,
3032  # not just through cpp. "Syntax error" is here to catch this case.
3033  cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039#ifdef __STDC__
3040# include <limits.h>
3041#else
3042# include <assert.h>
3043#endif
3044		     Syntax error
3045_ACEOF
3046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } >/dev/null; then
3054  if test -s conftest.err; then
3055    ac_cpp_err=$ac_c_preproc_warn_flag
3056    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057  else
3058    ac_cpp_err=
3059  fi
3060else
3061  ac_cpp_err=yes
3062fi
3063if test -z "$ac_cpp_err"; then
3064  :
3065else
3066  echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069  # Broken: fails on valid input.
3070continue
3071fi
3072rm -f conftest.err conftest.$ac_ext
3073
3074  # OK, works on sane cases.  Now check whether non-existent headers
3075  # can be detected and how.
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082#include <ac_nonexistent.h>
3083_ACEOF
3084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086  ac_status=$?
3087  grep -v '^ *+' conftest.er1 >conftest.err
3088  rm -f conftest.er1
3089  cat conftest.err >&5
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); } >/dev/null; then
3092  if test -s conftest.err; then
3093    ac_cpp_err=$ac_c_preproc_warn_flag
3094    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095  else
3096    ac_cpp_err=
3097  fi
3098else
3099  ac_cpp_err=yes
3100fi
3101if test -z "$ac_cpp_err"; then
3102  # Broken: success on invalid input.
3103continue
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108  # Passes both tests.
3109ac_preproc_ok=:
3110break
3111fi
3112rm -f conftest.err conftest.$ac_ext
3113
3114done
3115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116rm -f conftest.err conftest.$ac_ext
3117if $ac_preproc_ok; then
3118  break
3119fi
3120
3121    done
3122    ac_cv_prog_CPP=$CPP
3123
3124fi
3125  CPP=$ac_cv_prog_CPP
3126else
3127  ac_cv_prog_CPP=$CPP
3128fi
3129echo "$as_me:$LINENO: result: $CPP" >&5
3130echo "${ECHO_T}$CPP" >&6
3131ac_preproc_ok=false
3132for ac_c_preproc_warn_flag in '' yes
3133do
3134  # Use a header file that comes with gcc, so configuring glibc
3135  # with a fresh cross-compiler works.
3136  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137  # <limits.h> exists even on freestanding compilers.
3138  # On the NeXT, cc -E runs the code through the compiler's parser,
3139  # not just through cpp. "Syntax error" is here to catch this case.
3140  cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h.  */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h.  */
3146#ifdef __STDC__
3147# include <limits.h>
3148#else
3149# include <assert.h>
3150#endif
3151		     Syntax error
3152_ACEOF
3153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155  ac_status=$?
3156  grep -v '^ *+' conftest.er1 >conftest.err
3157  rm -f conftest.er1
3158  cat conftest.err >&5
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); } >/dev/null; then
3161  if test -s conftest.err; then
3162    ac_cpp_err=$ac_c_preproc_warn_flag
3163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3164  else
3165    ac_cpp_err=
3166  fi
3167else
3168  ac_cpp_err=yes
3169fi
3170if test -z "$ac_cpp_err"; then
3171  :
3172else
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176  # Broken: fails on valid input.
3177continue
3178fi
3179rm -f conftest.err conftest.$ac_ext
3180
3181  # OK, works on sane cases.  Now check whether non-existent headers
3182  # can be detected and how.
3183  cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h.  */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h.  */
3189#include <ac_nonexistent.h>
3190_ACEOF
3191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } >/dev/null; then
3199  if test -s conftest.err; then
3200    ac_cpp_err=$ac_c_preproc_warn_flag
3201    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3202  else
3203    ac_cpp_err=
3204  fi
3205else
3206  ac_cpp_err=yes
3207fi
3208if test -z "$ac_cpp_err"; then
3209  # Broken: success on invalid input.
3210continue
3211else
3212  echo "$as_me: failed program was:" >&5
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
3215  # Passes both tests.
3216ac_preproc_ok=:
3217break
3218fi
3219rm -f conftest.err conftest.$ac_ext
3220
3221done
3222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223rm -f conftest.err conftest.$ac_ext
3224if $ac_preproc_ok; then
3225  :
3226else
3227  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&5
3229echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&2;}
3231   { (exit 1); exit 1; }; }
3232fi
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240if test "$GXX" != "yes"
3241then
3242	{ { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3243echo "$as_me: error: g++ required but not found" >&2;}
3244   { (exit 1); exit 1; }; }
3245fi
3246
3247gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3248if test "$gccmajor" -lt "3"
3249then
3250	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3251echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3252   { (exit 1); exit 1; }; }
3253fi
3254
3255 echo "$as_me:$LINENO: checking for GNU make" >&5
3256echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3257if test "${_cv_gnu_make_command+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  _cv_gnu_make_command='' ;
3261                for a in "$MAKE" make gmake gnumake ; do
3262                        if test -z "$a" ; then continue ; fi ;
3263                        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3264                                _cv_gnu_make_command=$a ;
3265                                break;
3266                        fi
3267                done ;
3268
3269fi
3270echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3271echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3272        if test  "x$_cv_gnu_make_command" != "x"  ; then
3273                ifGNUmake='' ;
3274        else
3275                ifGNUmake='#' ;
3276                echo "$as_me:$LINENO: result: \"Not found\"" >&5
3277echo "${ECHO_T}\"Not found\"" >&6;
3278        fi
3279
3280
3281if test -z "$_cv_gnu_make_command"
3282then
3283	{ { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3284echo "$as_me: error: GNU Make required but not found" >&2;}
3285   { (exit 1); exit 1; }; }
3286fi
3287
3288
3289echo "$as_me:$LINENO: checking " >&5
3290echo $ECHO_N "checking ... $ECHO_C" >&6
3291if test "${ac_cv_has_flex+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  for ac_prog in flex lex
3295do
3296  # Extract the first word of "$ac_prog", so it can be a program name with args.
3297set dummy $ac_prog; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_prog_LEX+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test -n "$LEX"; then
3304  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for ac_exec_ext in '' $ac_executable_extensions; do
3312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_prog_LEX="$ac_prog"
3314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318done
3319
3320fi
3321fi
3322LEX=$ac_cv_prog_LEX
3323if test -n "$LEX"; then
3324  echo "$as_me:$LINENO: result: $LEX" >&5
3325echo "${ECHO_T}$LEX" >&6
3326else
3327  echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330
3331  test -n "$LEX" && break
3332done
3333test -n "$LEX" || LEX=":"
3334
3335if test -z "$LEXLIB"
3336then
3337  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3338echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3339if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  ac_check_lib_save_LIBS=$LIBS
3343LIBS="-lfl  $LIBS"
3344cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350
3351/* Override any gcc2 internal prototype to avoid an error.  */
3352#ifdef __cplusplus
3353extern "C"
3354#endif
3355/* We use char because int might match the return type of a gcc2
3356   builtin and then its argument prototype would still apply.  */
3357char yywrap ();
3358int
3359main ()
3360{
3361yywrap ();
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext conftest$ac_exeext
3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368  (eval $ac_link) 2>conftest.er1
3369  ac_status=$?
3370  grep -v '^ *+' conftest.er1 >conftest.err
3371  rm -f conftest.er1
3372  cat conftest.err >&5
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); } &&
3375	 { ac_try='test -z "$ac_c_werror_flag"
3376			 || test ! -s conftest.err'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; } &&
3382	 { ac_try='test -s conftest$ac_exeext'
3383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384  (eval $ac_try) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }; }; then
3388  ac_cv_lib_fl_yywrap=yes
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393ac_cv_lib_fl_yywrap=no
3394fi
3395rm -f conftest.err conftest.$ac_objext \
3396      conftest$ac_exeext conftest.$ac_ext
3397LIBS=$ac_check_lib_save_LIBS
3398fi
3399echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3400echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3401if test $ac_cv_lib_fl_yywrap = yes; then
3402  LEXLIB="-lfl"
3403else
3404  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3405echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3406if test "${ac_cv_lib_l_yywrap+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  ac_check_lib_save_LIBS=$LIBS
3410LIBS="-ll  $LIBS"
3411cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h.  */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h.  */
3417
3418/* Override any gcc2 internal prototype to avoid an error.  */
3419#ifdef __cplusplus
3420extern "C"
3421#endif
3422/* We use char because int might match the return type of a gcc2
3423   builtin and then its argument prototype would still apply.  */
3424char yywrap ();
3425int
3426main ()
3427{
3428yywrap ();
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435  (eval $ac_link) 2>conftest.er1
3436  ac_status=$?
3437  grep -v '^ *+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } &&
3442	 { ac_try='test -z "$ac_c_werror_flag"
3443			 || test ! -s conftest.err'
3444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445  (eval $ac_try) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }; } &&
3449	 { ac_try='test -s conftest$ac_exeext'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; }; then
3455  ac_cv_lib_l_yywrap=yes
3456else
3457  echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460ac_cv_lib_l_yywrap=no
3461fi
3462rm -f conftest.err conftest.$ac_objext \
3463      conftest$ac_exeext conftest.$ac_ext
3464LIBS=$ac_check_lib_save_LIBS
3465fi
3466echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3467echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3468if test $ac_cv_lib_l_yywrap = yes; then
3469  LEXLIB="-ll"
3470fi
3471
3472fi
3473
3474fi
3475
3476if test "x$LEX" != "x:"; then
3477  echo "$as_me:$LINENO: checking lex output file root" >&5
3478echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3479if test "${ac_cv_prog_lex_root+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  # The minimal lex program is just a single line: %%.  But some broken lexes
3483# (Solaris, I think it was) want two %% lines, so accommodate them.
3484cat >conftest.l <<_ACEOF
3485%%
3486%%
3487_ACEOF
3488{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3489  (eval $LEX conftest.l) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }
3493if test -f lex.yy.c; then
3494  ac_cv_prog_lex_root=lex.yy
3495elif test -f lexyy.c; then
3496  ac_cv_prog_lex_root=lexyy
3497else
3498  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3499echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3500   { (exit 1); exit 1; }; }
3501fi
3502fi
3503echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3504echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3505rm -f conftest.l
3506LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3507
3508echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3509echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3510if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3511  echo $ECHO_N "(cached) $ECHO_C" >&6
3512else
3513  # POSIX says lex can declare yytext either as a pointer or an array; the
3514# default is implementation-dependent. Figure out which it is, since
3515# not all implementations provide the %pointer and %array declarations.
3516ac_cv_prog_lex_yytext_pointer=no
3517echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3518ac_save_LIBS=$LIBS
3519LIBS="$LIBS $LEXLIB"
3520cat >conftest.$ac_ext <<_ACEOF
3521`cat $LEX_OUTPUT_ROOT.c`
3522_ACEOF
3523rm -f conftest.$ac_objext conftest$ac_exeext
3524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525  (eval $ac_link) 2>conftest.er1
3526  ac_status=$?
3527  grep -v '^ *+' conftest.er1 >conftest.err
3528  rm -f conftest.er1
3529  cat conftest.err >&5
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); } &&
3532	 { ac_try='test -z "$ac_c_werror_flag"
3533			 || test ! -s conftest.err'
3534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535  (eval $ac_try) 2>&5
3536  ac_status=$?
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); }; } &&
3539	 { ac_try='test -s conftest$ac_exeext'
3540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541  (eval $ac_try) 2>&5
3542  ac_status=$?
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); }; }; then
3545  ac_cv_prog_lex_yytext_pointer=yes
3546else
3547  echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550fi
3551rm -f conftest.err conftest.$ac_objext \
3552      conftest$ac_exeext conftest.$ac_ext
3553LIBS=$ac_save_LIBS
3554rm -f "${LEX_OUTPUT_ROOT}.c"
3555
3556fi
3557echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3558echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3559if test $ac_cv_prog_lex_yytext_pointer = yes; then
3560
3561cat >>confdefs.h <<\_ACEOF
3562#define YYTEXT_POINTER 1
3563_ACEOF
3564
3565fi
3566
3567fi
3568
3569fi
3570echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3571echo "${ECHO_T}$ac_cv_has_flex" >&6
3572if test "$LEX" != "flex"; then
3573  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3574echo "$as_me: error: flex not found but required" >&2;}
3575   { (exit 1); exit 1; }; }
3576else
3577  FLEX=flex
3578
3579fi
3580
3581echo "$as_me:$LINENO: checking " >&5
3582echo $ECHO_N "checking ... $ECHO_C" >&6
3583if test "${ac_cv_has_bison+set}" = set; then
3584  echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586  for ac_prog in 'bison -y' byacc
3587do
3588  # Extract the first word of "$ac_prog", so it can be a program name with args.
3589set dummy $ac_prog; ac_word=$2
3590echo "$as_me:$LINENO: checking for $ac_word" >&5
3591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592if test "${ac_cv_prog_YACC+set}" = set; then
3593  echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595  if test -n "$YACC"; then
3596  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3597else
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603  for ac_exec_ext in '' $ac_executable_extensions; do
3604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605    ac_cv_prog_YACC="$ac_prog"
3606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607    break 2
3608  fi
3609done
3610done
3611
3612fi
3613fi
3614YACC=$ac_cv_prog_YACC
3615if test -n "$YACC"; then
3616  echo "$as_me:$LINENO: result: $YACC" >&5
3617echo "${ECHO_T}$YACC" >&6
3618else
3619  echo "$as_me:$LINENO: result: no" >&5
3620echo "${ECHO_T}no" >&6
3621fi
3622
3623  test -n "$YACC" && break
3624done
3625test -n "$YACC" || YACC="yacc"
3626
3627
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3630echo "${ECHO_T}$ac_cv_has_bison" >&6
3631if test "$YACC" != "bison -y"; then
3632  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3633echo "$as_me: error: bison not found but required" >&2;}
3634   { (exit 1); exit 1; }; }
3635else
3636  BISON=bison
3637
3638fi
3639
3640
3641
3642# Check whether --enable-shared or --disable-shared was given.
3643if test "${enable_shared+set}" = set; then
3644  enableval="$enable_shared"
3645  p=${PACKAGE-default}
3646    case $enableval in
3647    yes) enable_shared=yes ;;
3648    no) enable_shared=no ;;
3649    *)
3650      enable_shared=no
3651      # Look at the argument we got.  We use all the common list separators.
3652      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3653      for pkg in $enableval; do
3654	IFS="$lt_save_ifs"
3655	if test "X$pkg" = "X$p"; then
3656	  enable_shared=yes
3657	fi
3658      done
3659      IFS="$lt_save_ifs"
3660      ;;
3661    esac
3662else
3663  enable_shared=yes
3664fi;
3665
3666# Check whether --enable-static or --disable-static was given.
3667if test "${enable_static+set}" = set; then
3668  enableval="$enable_static"
3669  p=${PACKAGE-default}
3670    case $enableval in
3671    yes) enable_static=yes ;;
3672    no) enable_static=no ;;
3673    *)
3674     enable_static=no
3675      # Look at the argument we got.  We use all the common list separators.
3676      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3677      for pkg in $enableval; do
3678	IFS="$lt_save_ifs"
3679	if test "X$pkg" = "X$p"; then
3680	  enable_static=yes
3681	fi
3682      done
3683      IFS="$lt_save_ifs"
3684      ;;
3685    esac
3686else
3687  enable_static=yes
3688fi;
3689
3690# Check whether --enable-fast-install or --disable-fast-install was given.
3691if test "${enable_fast_install+set}" = set; then
3692  enableval="$enable_fast_install"
3693  p=${PACKAGE-default}
3694    case $enableval in
3695    yes) enable_fast_install=yes ;;
3696    no) enable_fast_install=no ;;
3697    *)
3698      enable_fast_install=no
3699      # Look at the argument we got.  We use all the common list separators.
3700      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3701      for pkg in $enableval; do
3702	IFS="$lt_save_ifs"
3703	if test "X$pkg" = "X$p"; then
3704	  enable_fast_install=yes
3705	fi
3706      done
3707      IFS="$lt_save_ifs"
3708      ;;
3709    esac
3710else
3711  enable_fast_install=yes
3712fi;
3713
3714echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716if test "${lt_cv_path_SED+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719  # Loop through the user's path and test for sed and gsed.
3720# Then use that list of sed's as ones to test for truncation.
3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  test -z "$as_dir" && as_dir=.
3726  for lt_ac_prog in sed gsed; do
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3730      fi
3731    done
3732  done
3733done
3734lt_ac_max=0
3735lt_ac_count=0
3736# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737# along with /bin/sed that truncates output.
3738for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739  test ! -f $lt_ac_sed && break
3740  cat /dev/null > conftest.in
3741  lt_ac_count=0
3742  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743  # Check for GNU sed and select it if it is found.
3744  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745    lt_cv_path_SED=$lt_ac_sed
3746    break
3747  fi
3748  while true; do
3749    cat conftest.in conftest.in >conftest.tmp
3750    mv conftest.tmp conftest.in
3751    cp conftest.in conftest.nl
3752    echo >>conftest.nl
3753    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754    cmp -s conftest.out conftest.nl || break
3755    # 10000 chars as input seems more than enough
3756    test $lt_ac_count -gt 10 && break
3757    lt_ac_count=`expr $lt_ac_count + 1`
3758    if test $lt_ac_count -gt $lt_ac_max; then
3759      lt_ac_max=$lt_ac_count
3760      lt_cv_path_SED=$lt_ac_sed
3761    fi
3762  done
3763done
3764
3765fi
3766
3767SED=$lt_cv_path_SED
3768echo "$as_me:$LINENO: result: $SED" >&5
3769echo "${ECHO_T}$SED" >&6
3770
3771echo "$as_me:$LINENO: checking for egrep" >&5
3772echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773if test "${ac_cv_prog_egrep+set}" = set; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777    then ac_cv_prog_egrep='grep -E'
3778    else ac_cv_prog_egrep='egrep'
3779    fi
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783 EGREP=$ac_cv_prog_egrep
3784
3785
3786
3787# Check whether --with-gnu-ld or --without-gnu-ld was given.
3788if test "${with_gnu_ld+set}" = set; then
3789  withval="$with_gnu_ld"
3790  test "$withval" = no || with_gnu_ld=yes
3791else
3792  with_gnu_ld=no
3793fi;
3794ac_prog=ld
3795if test "$GCC" = yes; then
3796  # Check if gcc -print-prog-name=ld gives a path.
3797  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3799  case $host in
3800  *-*-mingw*)
3801    # gcc leaves a trailing carriage return which upsets mingw
3802    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803  *)
3804    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805  esac
3806  case $ac_prog in
3807    # Accept absolute paths.
3808    [\\/]* | ?:[\\/]*)
3809      re_direlt='/[^/][^/]*/\.\./'
3810      # Canonicalize the pathname of ld
3811      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3814      done
3815      test -z "$LD" && LD="$ac_prog"
3816      ;;
3817  "")
3818    # If it fails, then pretend we aren't using GCC.
3819    ac_prog=ld
3820    ;;
3821  *)
3822    # If it is relative, then search for the first ld in PATH.
3823    with_gnu_ld=unknown
3824    ;;
3825  esac
3826elif test "$with_gnu_ld" = yes; then
3827  echo "$as_me:$LINENO: checking for GNU ld" >&5
3828echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3829else
3830  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3832fi
3833if test "${lt_cv_path_LD+set}" = set; then
3834  echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836  if test -z "$LD"; then
3837  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838  for ac_dir in $PATH; do
3839    IFS="$lt_save_ifs"
3840    test -z "$ac_dir" && ac_dir=.
3841    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842      lt_cv_path_LD="$ac_dir/$ac_prog"
3843      # Check to see if the program is GNU ld.  I'd rather use --version,
3844      # but apparently some GNU ld's only accept -v.
3845      # Break only if it was the GNU/non-GNU ld that we prefer.
3846      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847      *GNU* | *'with BFD'*)
3848	test "$with_gnu_ld" != no && break
3849	;;
3850      *)
3851	test "$with_gnu_ld" != yes && break
3852	;;
3853      esac
3854    fi
3855  done
3856  IFS="$lt_save_ifs"
3857else
3858  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3859fi
3860fi
3861
3862LD="$lt_cv_path_LD"
3863if test -n "$LD"; then
3864  echo "$as_me:$LINENO: result: $LD" >&5
3865echo "${ECHO_T}$LD" >&6
3866else
3867  echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
3869fi
3870test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872   { (exit 1); exit 1; }; }
3873echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876  echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3879case `$LD -v 2>&1 </dev/null` in
3880*GNU* | *'with BFD'*)
3881  lt_cv_prog_gnu_ld=yes
3882  ;;
3883*)
3884  lt_cv_prog_gnu_ld=no
3885  ;;
3886esac
3887fi
3888echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890with_gnu_ld=$lt_cv_prog_gnu_ld
3891
3892
3893echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895if test "${lt_cv_ld_reload_flag+set}" = set; then
3896  echo $ECHO_N "(cached) $ECHO_C" >&6
3897else
3898  lt_cv_ld_reload_flag='-r'
3899fi
3900echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902reload_flag=$lt_cv_ld_reload_flag
3903case $reload_flag in
3904"" | " "*) ;;
3905*) reload_flag=" $reload_flag" ;;
3906esac
3907reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908case $host_os in
3909  darwin*)
3910    if test "$GCC" = yes; then
3911      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3912    else
3913      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3914    fi
3915    ;;
3916esac
3917
3918echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920if test "${lt_cv_path_NM+set}" = set; then
3921  echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923  if test -n "$NM"; then
3924  # Let the user override the test.
3925  lt_cv_path_NM="$NM"
3926else
3927  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3928  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3929    IFS="$lt_save_ifs"
3930    test -z "$ac_dir" && ac_dir=.
3931    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3932    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3933      # Check to see if the nm accepts a BSD-compat flag.
3934      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3935      #   nm: unknown option "B" ignored
3936      # Tru64's nm complains that /dev/null is an invalid object file
3937      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3938      */dev/null* | *'Invalid file or object type'*)
3939	lt_cv_path_NM="$tmp_nm -B"
3940	break
3941        ;;
3942      *)
3943	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3944	*/dev/null*)
3945	  lt_cv_path_NM="$tmp_nm -p"
3946	  break
3947	  ;;
3948	*)
3949	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950	  continue # so that we can try to find one that supports BSD flags
3951	  ;;
3952	esac
3953      esac
3954    fi
3955  done
3956  IFS="$lt_save_ifs"
3957  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3958fi
3959fi
3960echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3961echo "${ECHO_T}$lt_cv_path_NM" >&6
3962NM="$lt_cv_path_NM"
3963
3964echo "$as_me:$LINENO: checking whether ln -s works" >&5
3965echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3966LN_S=$as_ln_s
3967if test "$LN_S" = "ln -s"; then
3968  echo "$as_me:$LINENO: result: yes" >&5
3969echo "${ECHO_T}yes" >&6
3970else
3971  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3972echo "${ECHO_T}no, using $LN_S" >&6
3973fi
3974
3975echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3976echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3977if test "${lt_cv_deplibs_check_method+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  lt_cv_file_magic_cmd='$MAGIC_CMD'
3981lt_cv_file_magic_test_file=
3982lt_cv_deplibs_check_method='unknown'
3983# Need to set the preceding variable on all platforms that support
3984# interlibrary dependencies.
3985# 'none' -- dependencies not supported.
3986# `unknown' -- same as none, but documents that we really don't know.
3987# 'pass_all' -- all dependencies passed with no checks.
3988# 'test_compile' -- check by making test program.
3989# 'file_magic [[regex]]' -- check by looking for files in library path
3990# which responds to the $file_magic_cmd with a given extended regex.
3991# If you have `file' or equivalent on your system and you're not sure
3992# whether `pass_all' will *always* work, you probably want this one.
3993
3994case $host_os in
3995aix4* | aix5*)
3996  lt_cv_deplibs_check_method=pass_all
3997  ;;
3998
3999beos*)
4000  lt_cv_deplibs_check_method=pass_all
4001  ;;
4002
4003bsdi[45]*)
4004  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4005  lt_cv_file_magic_cmd='/usr/bin/file -L'
4006  lt_cv_file_magic_test_file=/shlib/libc.so
4007  ;;
4008
4009cygwin*)
4010  # func_win32_libid is a shell function defined in ltmain.sh
4011  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4012  lt_cv_file_magic_cmd='func_win32_libid'
4013  ;;
4014
4015mingw* | pw32*)
4016  # Base MSYS/MinGW do not provide the 'file' command needed by
4017  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4018  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4019  lt_cv_file_magic_cmd='$OBJDUMP -f'
4020  ;;
4021
4022darwin* | rhapsody*)
4023  lt_cv_deplibs_check_method=pass_all
4024  ;;
4025
4026freebsd* | kfreebsd*-gnu)
4027  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4028    case $host_cpu in
4029    i*86 )
4030      # Not sure whether the presence of OpenBSD here was a mistake.
4031      # Let's accept both of them until this is cleared up.
4032      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4033      lt_cv_file_magic_cmd=/usr/bin/file
4034      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4035      ;;
4036    esac
4037  else
4038    lt_cv_deplibs_check_method=pass_all
4039  fi
4040  ;;
4041
4042gnu*)
4043  lt_cv_deplibs_check_method=pass_all
4044  ;;
4045
4046hpux10.20* | hpux11*)
4047  lt_cv_file_magic_cmd=/usr/bin/file
4048  case "$host_cpu" in
4049  ia64*)
4050    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4051    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4052    ;;
4053  hppa*64*)
4054    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]'
4055    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4056    ;;
4057  *)
4058    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4059    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4060    ;;
4061  esac
4062  ;;
4063
4064irix5* | irix6* | nonstopux*)
4065  case $LD in
4066  *-32|*"-32 ") libmagic=32-bit;;
4067  *-n32|*"-n32 ") libmagic=N32;;
4068  *-64|*"-64 ") libmagic=64-bit;;
4069  *) libmagic=never-match;;
4070  esac
4071  lt_cv_deplibs_check_method=pass_all
4072  ;;
4073
4074# This must be Linux ELF.
4075linux*)
4076  lt_cv_deplibs_check_method=pass_all
4077  ;;
4078
4079netbsd*)
4080  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4082  else
4083    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4084  fi
4085  ;;
4086
4087newos6*)
4088  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089  lt_cv_file_magic_cmd=/usr/bin/file
4090  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4091  ;;
4092
4093nto-qnx*)
4094  lt_cv_deplibs_check_method=unknown
4095  ;;
4096
4097openbsd*)
4098  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4099    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4100  else
4101    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4102  fi
4103  ;;
4104
4105osf3* | osf4* | osf5*)
4106  lt_cv_deplibs_check_method=pass_all
4107  ;;
4108
4109sco3.2v5*)
4110  lt_cv_deplibs_check_method=pass_all
4111  ;;
4112
4113solaris*)
4114  lt_cv_deplibs_check_method=pass_all
4115  ;;
4116
4117sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4118  case $host_vendor in
4119  motorola)
4120    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]'
4121    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4122    ;;
4123  ncr)
4124    lt_cv_deplibs_check_method=pass_all
4125    ;;
4126  sequent)
4127    lt_cv_file_magic_cmd='/bin/file'
4128    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4129    ;;
4130  sni)
4131    lt_cv_file_magic_cmd='/bin/file'
4132    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4133    lt_cv_file_magic_test_file=/lib/libc.so
4134    ;;
4135  siemens)
4136    lt_cv_deplibs_check_method=pass_all
4137    ;;
4138  esac
4139  ;;
4140
4141sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4142  lt_cv_deplibs_check_method=pass_all
4143  ;;
4144esac
4145
4146fi
4147echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4148echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4149file_magic_cmd=$lt_cv_file_magic_cmd
4150deplibs_check_method=$lt_cv_deplibs_check_method
4151test -z "$deplibs_check_method" && deplibs_check_method=unknown
4152
4153
4154
4155
4156# If no C compiler was specified, use CC.
4157LTCC=${LTCC-"$CC"}
4158
4159# Allow CC to be a program name with arguments.
4160compiler=$CC
4161
4162# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4163if test "${enable_libtool_lock+set}" = set; then
4164  enableval="$enable_libtool_lock"
4165
4166fi;
4167test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4168
4169# Some flags need to be propagated to the compiler or linker for good
4170# libtool support.
4171case $host in
4172ia64-*-hpux*)
4173  # Find out which ABI we are using.
4174  echo 'int i;' > conftest.$ac_ext
4175  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176  (eval $ac_compile) 2>&5
4177  ac_status=$?
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); }; then
4180    case `/usr/bin/file conftest.$ac_objext` in
4181    *ELF-32*)
4182      HPUX_IA64_MODE="32"
4183      ;;
4184    *ELF-64*)
4185      HPUX_IA64_MODE="64"
4186      ;;
4187    esac
4188  fi
4189  rm -rf conftest*
4190  ;;
4191*-*-irix6*)
4192  # Find out which ABI we are using.
4193  echo '#line 4193 "configure"' > conftest.$ac_ext
4194  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4195  (eval $ac_compile) 2>&5
4196  ac_status=$?
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); }; then
4199   if test "$lt_cv_prog_gnu_ld" = yes; then
4200    case `/usr/bin/file conftest.$ac_objext` in
4201    *32-bit*)
4202      LD="${LD-ld} -melf32bsmip"
4203      ;;
4204    *N32*)
4205      LD="${LD-ld} -melf32bmipn32"
4206      ;;
4207    *64-bit*)
4208      LD="${LD-ld} -melf64bmip"
4209      ;;
4210    esac
4211   else
4212    case `/usr/bin/file conftest.$ac_objext` in
4213    *32-bit*)
4214      LD="${LD-ld} -32"
4215      ;;
4216    *N32*)
4217      LD="${LD-ld} -n32"
4218      ;;
4219    *64-bit*)
4220      LD="${LD-ld} -64"
4221      ;;
4222    esac
4223   fi
4224  fi
4225  rm -rf conftest*
4226  ;;
4227
4228x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4229  # Find out which ABI we are using.
4230  echo 'int i;' > conftest.$ac_ext
4231  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232  (eval $ac_compile) 2>&5
4233  ac_status=$?
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); }; then
4236    case "`/usr/bin/file conftest.o`" in
4237    *32-bit*)
4238      case $host in
4239        x86_64-*linux*)
4240          LD="${LD-ld} -m elf_i386"
4241          ;;
4242        ppc64-*linux*|powerpc64-*linux*)
4243          LD="${LD-ld} -m elf32ppclinux"
4244          ;;
4245        s390x-*linux*)
4246          LD="${LD-ld} -m elf_s390"
4247          ;;
4248        sparc64-*linux*)
4249          LD="${LD-ld} -m elf32_sparc"
4250          ;;
4251      esac
4252      ;;
4253    *64-bit*)
4254      case $host in
4255        x86_64-*linux*)
4256          LD="${LD-ld} -m elf_x86_64"
4257          ;;
4258        ppc*-*linux*|powerpc*-*linux*)
4259          LD="${LD-ld} -m elf64ppc"
4260          ;;
4261        s390*-*linux*)
4262          LD="${LD-ld} -m elf64_s390"
4263          ;;
4264        sparc*-*linux*)
4265          LD="${LD-ld} -m elf64_sparc"
4266          ;;
4267      esac
4268      ;;
4269    esac
4270  fi
4271  rm -rf conftest*
4272  ;;
4273
4274*-*-sco3.2v5*)
4275  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4276  SAVE_CFLAGS="$CFLAGS"
4277  CFLAGS="$CFLAGS -belf"
4278  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4279echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4280if test "${lt_cv_cc_needs_belf+set}" = set; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289     cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295
4296_ACEOF
4297rm -f conftest.$ac_objext conftest$ac_exeext
4298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299  (eval $ac_link) 2>conftest.er1
4300  ac_status=$?
4301  grep -v '^ *+' conftest.er1 >conftest.err
4302  rm -f conftest.er1
4303  cat conftest.err >&5
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306	 { ac_try='test -z "$ac_c_werror_flag"
4307			 || test ! -s conftest.err'
4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309  (eval $ac_try) 2>&5
4310  ac_status=$?
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); }; } &&
4313	 { ac_try='test -s conftest$ac_exeext'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; }; then
4319  lt_cv_cc_needs_belf=yes
4320else
4321  echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324lt_cv_cc_needs_belf=no
4325fi
4326rm -f conftest.err conftest.$ac_objext \
4327      conftest$ac_exeext conftest.$ac_ext
4328     ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334fi
4335echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4336echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4337  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4338    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4339    CFLAGS="$SAVE_CFLAGS"
4340  fi
4341  ;;
4342
4343esac
4344
4345need_locks="$enable_libtool_lock"
4346
4347
4348
4349echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4351if test "${ac_cv_header_stdc+set}" = set; then
4352  echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354  cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h.  */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h.  */
4360#include <stdlib.h>
4361#include <stdarg.h>
4362#include <string.h>
4363#include <float.h>
4364
4365int
4366main ()
4367{
4368
4369  ;
4370  return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext
4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375  (eval $ac_compile) 2>conftest.er1
4376  ac_status=$?
4377  grep -v '^ *+' conftest.er1 >conftest.err
4378  rm -f conftest.er1
4379  cat conftest.err >&5
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); } &&
4382	 { ac_try='test -z "$ac_c_werror_flag"
4383			 || test ! -s conftest.err'
4384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385  (eval $ac_try) 2>&5
4386  ac_status=$?
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); }; } &&
4389	 { ac_try='test -s conftest.$ac_objext'
4390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391  (eval $ac_try) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }; }; then
4395  ac_cv_header_stdc=yes
4396else
4397  echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400ac_cv_header_stdc=no
4401fi
4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403
4404if test $ac_cv_header_stdc = yes; then
4405  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406  cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h.  */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
4411/* end confdefs.h.  */
4412#include <string.h>
4413
4414_ACEOF
4415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416  $EGREP "memchr" >/dev/null 2>&1; then
4417  :
4418else
4419  ac_cv_header_stdc=no
4420fi
4421rm -f conftest*
4422
4423fi
4424
4425if test $ac_cv_header_stdc = yes; then
4426  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4427  cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h.  */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h.  */
4433#include <stdlib.h>
4434
4435_ACEOF
4436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4437  $EGREP "free" >/dev/null 2>&1; then
4438  :
4439else
4440  ac_cv_header_stdc=no
4441fi
4442rm -f conftest*
4443
4444fi
4445
4446if test $ac_cv_header_stdc = yes; then
4447  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4448  if test "$cross_compiling" = yes; then
4449  :
4450else
4451  cat >conftest.$ac_ext <<_ACEOF
4452/* confdefs.h.  */
4453_ACEOF
4454cat confdefs.h >>conftest.$ac_ext
4455cat >>conftest.$ac_ext <<_ACEOF
4456/* end confdefs.h.  */
4457#include <ctype.h>
4458#if ((' ' & 0x0FF) == 0x020)
4459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461#else
4462# define ISLOWER(c) \
4463		   (('a' <= (c) && (c) <= 'i') \
4464		     || ('j' <= (c) && (c) <= 'r') \
4465		     || ('s' <= (c) && (c) <= 'z'))
4466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467#endif
4468
4469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470int
4471main ()
4472{
4473  int i;
4474  for (i = 0; i < 256; i++)
4475    if (XOR (islower (i), ISLOWER (i))
4476	|| toupper (i) != TOUPPER (i))
4477      exit(2);
4478  exit (0);
4479}
4480_ACEOF
4481rm -f conftest$ac_exeext
4482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483  (eval $ac_link) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488  (eval $ac_try) 2>&5
4489  ac_status=$?
4490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491  (exit $ac_status); }; }; then
4492  :
4493else
4494  echo "$as_me: program exited with status $ac_status" >&5
4495echo "$as_me: failed program was:" >&5
4496sed 's/^/| /' conftest.$ac_ext >&5
4497
4498( exit $ac_status )
4499ac_cv_header_stdc=no
4500fi
4501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4502fi
4503fi
4504fi
4505echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4506echo "${ECHO_T}$ac_cv_header_stdc" >&6
4507if test $ac_cv_header_stdc = yes; then
4508
4509cat >>confdefs.h <<\_ACEOF
4510#define STDC_HEADERS 1
4511_ACEOF
4512
4513fi
4514
4515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4526		  inttypes.h stdint.h unistd.h
4527do
4528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4529echo "$as_me:$LINENO: checking for $ac_header" >&5
4530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4531if eval "test \"\${$as_ac_Header+set}\" = set"; then
4532  echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534  cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h.  */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h.  */
4540$ac_includes_default
4541
4542#include <$ac_header>
4543_ACEOF
4544rm -f conftest.$ac_objext
4545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546  (eval $ac_compile) 2>conftest.er1
4547  ac_status=$?
4548  grep -v '^ *+' conftest.er1 >conftest.err
4549  rm -f conftest.er1
4550  cat conftest.err >&5
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); } &&
4553	 { ac_try='test -z "$ac_c_werror_flag"
4554			 || test ! -s conftest.err'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; } &&
4560	 { ac_try='test -s conftest.$ac_objext'
4561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562  (eval $ac_try) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; }; then
4566  eval "$as_ac_Header=yes"
4567else
4568  echo "$as_me: failed program was:" >&5
4569sed 's/^/| /' conftest.$ac_ext >&5
4570
4571eval "$as_ac_Header=no"
4572fi
4573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574fi
4575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577if test `eval echo '${'$as_ac_Header'}'` = yes; then
4578  cat >>confdefs.h <<_ACEOF
4579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580_ACEOF
4581
4582fi
4583
4584done
4585
4586
4587
4588for ac_header in dlfcn.h
4589do
4590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591if eval "test \"\${$as_ac_Header+set}\" = set"; then
4592  echo "$as_me:$LINENO: checking for $ac_header" >&5
4593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4594if eval "test \"\${$as_ac_Header+set}\" = set"; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596fi
4597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4599else
4600  # Is the header compilable?
4601echo "$as_me:$LINENO: checking $ac_header usability" >&5
4602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4603cat >conftest.$ac_ext <<_ACEOF
4604/* confdefs.h.  */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h.  */
4609$ac_includes_default
4610#include <$ac_header>
4611_ACEOF
4612rm -f conftest.$ac_objext
4613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614  (eval $ac_compile) 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621	 { ac_try='test -z "$ac_c_werror_flag"
4622			 || test ! -s conftest.err'
4623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624  (eval $ac_try) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }; } &&
4628	 { ac_try='test -s conftest.$ac_objext'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; }; then
4634  ac_header_compiler=yes
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639ac_header_compiler=no
4640fi
4641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643echo "${ECHO_T}$ac_header_compiler" >&6
4644
4645# Is the header present?
4646echo "$as_me:$LINENO: checking $ac_header presence" >&5
4647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4648cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654#include <$ac_header>
4655_ACEOF
4656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4658  ac_status=$?
4659  grep -v '^ *+' conftest.er1 >conftest.err
4660  rm -f conftest.er1
4661  cat conftest.err >&5
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); } >/dev/null; then
4664  if test -s conftest.err; then
4665    ac_cpp_err=$ac_c_preproc_warn_flag
4666    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4667  else
4668    ac_cpp_err=
4669  fi
4670else
4671  ac_cpp_err=yes
4672fi
4673if test -z "$ac_cpp_err"; then
4674  ac_header_preproc=yes
4675else
4676  echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
4678
4679  ac_header_preproc=no
4680fi
4681rm -f conftest.err conftest.$ac_ext
4682echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4683echo "${ECHO_T}$ac_header_preproc" >&6
4684
4685# So?  What about this header?
4686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4687  yes:no: )
4688    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4690    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4692    ac_header_preproc=yes
4693    ;;
4694  no:yes:* )
4695    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4697    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4698echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4699    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4701    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4702echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4703    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4705    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4707    (
4708      cat <<\_ASBOX
4709## ----------------------------------- ##
4710## Report this to llvmbugs@cs.uiuc.edu ##
4711## ----------------------------------- ##
4712_ASBOX
4713    ) |
4714      sed "s/^/$as_me: WARNING:     /" >&2
4715    ;;
4716esac
4717echo "$as_me:$LINENO: checking for $ac_header" >&5
4718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722  eval "$as_ac_Header=\$ac_header_preproc"
4723fi
4724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4726
4727fi
4728if test `eval echo '${'$as_ac_Header'}'` = yes; then
4729  cat >>confdefs.h <<_ACEOF
4730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4731_ACEOF
4732
4733fi
4734
4735done
4736
4737
4738
4739if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4740    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4741    (test "X$CXX" != "Xg++"))) ; then
4742  ac_ext=cc
4743ac_cpp='$CXXCPP $CPPFLAGS'
4744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4747echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4748echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4749if test -z "$CXXCPP"; then
4750  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753      # Double quotes because CXXCPP needs to be expanded
4754    for CXXCPP in "$CXX -E" "/lib/cpp"
4755    do
4756      ac_preproc_ok=false
4757for ac_cxx_preproc_warn_flag in '' yes
4758do
4759  # Use a header file that comes with gcc, so configuring glibc
4760  # with a fresh cross-compiler works.
4761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4762  # <limits.h> exists even on freestanding compilers.
4763  # On the NeXT, cc -E runs the code through the compiler's parser,
4764  # not just through cpp. "Syntax error" is here to catch this case.
4765  cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h.  */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h.  */
4771#ifdef __STDC__
4772# include <limits.h>
4773#else
4774# include <assert.h>
4775#endif
4776		     Syntax error
4777_ACEOF
4778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4779  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780  ac_status=$?
4781  grep -v '^ *+' conftest.er1 >conftest.err
4782  rm -f conftest.er1
4783  cat conftest.err >&5
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); } >/dev/null; then
4786  if test -s conftest.err; then
4787    ac_cpp_err=$ac_cxx_preproc_warn_flag
4788    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4789  else
4790    ac_cpp_err=
4791  fi
4792else
4793  ac_cpp_err=yes
4794fi
4795if test -z "$ac_cpp_err"; then
4796  :
4797else
4798  echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801  # Broken: fails on valid input.
4802continue
4803fi
4804rm -f conftest.err conftest.$ac_ext
4805
4806  # OK, works on sane cases.  Now check whether non-existent headers
4807  # can be detected and how.
4808  cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h.  */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
4813/* end confdefs.h.  */
4814#include <ac_nonexistent.h>
4815_ACEOF
4816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4818  ac_status=$?
4819  grep -v '^ *+' conftest.er1 >conftest.err
4820  rm -f conftest.er1
4821  cat conftest.err >&5
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); } >/dev/null; then
4824  if test -s conftest.err; then
4825    ac_cpp_err=$ac_cxx_preproc_warn_flag
4826    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4827  else
4828    ac_cpp_err=
4829  fi
4830else
4831  ac_cpp_err=yes
4832fi
4833if test -z "$ac_cpp_err"; then
4834  # Broken: success on invalid input.
4835continue
4836else
4837  echo "$as_me: failed program was:" >&5
4838sed 's/^/| /' conftest.$ac_ext >&5
4839
4840  # Passes both tests.
4841ac_preproc_ok=:
4842break
4843fi
4844rm -f conftest.err conftest.$ac_ext
4845
4846done
4847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848rm -f conftest.err conftest.$ac_ext
4849if $ac_preproc_ok; then
4850  break
4851fi
4852
4853    done
4854    ac_cv_prog_CXXCPP=$CXXCPP
4855
4856fi
4857  CXXCPP=$ac_cv_prog_CXXCPP
4858else
4859  ac_cv_prog_CXXCPP=$CXXCPP
4860fi
4861echo "$as_me:$LINENO: result: $CXXCPP" >&5
4862echo "${ECHO_T}$CXXCPP" >&6
4863ac_preproc_ok=false
4864for ac_cxx_preproc_warn_flag in '' yes
4865do
4866  # Use a header file that comes with gcc, so configuring glibc
4867  # with a fresh cross-compiler works.
4868  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869  # <limits.h> exists even on freestanding compilers.
4870  # On the NeXT, cc -E runs the code through the compiler's parser,
4871  # not just through cpp. "Syntax error" is here to catch this case.
4872  cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h.  */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h.  */
4878#ifdef __STDC__
4879# include <limits.h>
4880#else
4881# include <assert.h>
4882#endif
4883		     Syntax error
4884_ACEOF
4885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887  ac_status=$?
4888  grep -v '^ *+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } >/dev/null; then
4893  if test -s conftest.err; then
4894    ac_cpp_err=$ac_cxx_preproc_warn_flag
4895    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4896  else
4897    ac_cpp_err=
4898  fi
4899else
4900  ac_cpp_err=yes
4901fi
4902if test -z "$ac_cpp_err"; then
4903  :
4904else
4905  echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908  # Broken: fails on valid input.
4909continue
4910fi
4911rm -f conftest.err conftest.$ac_ext
4912
4913  # OK, works on sane cases.  Now check whether non-existent headers
4914  # can be detected and how.
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921#include <ac_nonexistent.h>
4922_ACEOF
4923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4931  if test -s conftest.err; then
4932    ac_cpp_err=$ac_cxx_preproc_warn_flag
4933    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4934  else
4935    ac_cpp_err=
4936  fi
4937else
4938  ac_cpp_err=yes
4939fi
4940if test -z "$ac_cpp_err"; then
4941  # Broken: success on invalid input.
4942continue
4943else
4944  echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
4947  # Passes both tests.
4948ac_preproc_ok=:
4949break
4950fi
4951rm -f conftest.err conftest.$ac_ext
4952
4953done
4954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955rm -f conftest.err conftest.$ac_ext
4956if $ac_preproc_ok; then
4957  :
4958else
4959  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4960See \`config.log' for more details." >&5
4961echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4962See \`config.log' for more details." >&2;}
4963   { (exit 1); exit 1; }; }
4964fi
4965
4966ac_ext=cc
4967ac_cpp='$CXXCPP $CPPFLAGS'
4968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4971
4972fi
4973
4974
4975ac_ext=f
4976ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4977ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4979if test -n "$ac_tool_prefix"; then
4980  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4981  do
4982    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4984echo "$as_me:$LINENO: checking for $ac_word" >&5
4985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986if test "${ac_cv_prog_F77+set}" = set; then
4987  echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989  if test -n "$F77"; then
4990  ac_cv_prog_F77="$F77" # Let the user override the test.
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995  IFS=$as_save_IFS
4996  test -z "$as_dir" && as_dir=.
4997  for ac_exec_ext in '' $ac_executable_extensions; do
4998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001    break 2
5002  fi
5003done
5004done
5005
5006fi
5007fi
5008F77=$ac_cv_prog_F77
5009if test -n "$F77"; then
5010  echo "$as_me:$LINENO: result: $F77" >&5
5011echo "${ECHO_T}$F77" >&6
5012else
5013  echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016
5017    test -n "$F77" && break
5018  done
5019fi
5020if test -z "$F77"; then
5021  ac_ct_F77=$F77
5022  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5023do
5024  # Extract the first word of "$ac_prog", so it can be a program name with args.
5025set dummy $ac_prog; ac_word=$2
5026echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5028if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5029  echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031  if test -n "$ac_ct_F77"; then
5032  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037  IFS=$as_save_IFS
5038  test -z "$as_dir" && as_dir=.
5039  for ac_exec_ext in '' $ac_executable_extensions; do
5040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041    ac_cv_prog_ac_ct_F77="$ac_prog"
5042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043    break 2
5044  fi
5045done
5046done
5047
5048fi
5049fi
5050ac_ct_F77=$ac_cv_prog_ac_ct_F77
5051if test -n "$ac_ct_F77"; then
5052  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5053echo "${ECHO_T}$ac_ct_F77" >&6
5054else
5055  echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059  test -n "$ac_ct_F77" && break
5060done
5061
5062  F77=$ac_ct_F77
5063fi
5064
5065
5066# Provide some information about the compiler.
5067echo "$as_me:5067:" \
5068     "checking for Fortran 77 compiler version" >&5
5069ac_compiler=`set X $ac_compile; echo $2`
5070{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5071  (eval $ac_compiler --version </dev/null >&5) 2>&5
5072  ac_status=$?
5073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074  (exit $ac_status); }
5075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5076  (eval $ac_compiler -v </dev/null >&5) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }
5080{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5081  (eval $ac_compiler -V </dev/null >&5) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }
5085rm -f a.out
5086
5087# If we don't use `.F' as extension, the preprocessor is not run on the
5088# input file.  (Note that this only needs to work for GNU compilers.)
5089ac_save_ext=$ac_ext
5090ac_ext=F
5091echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5092echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5093if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  cat >conftest.$ac_ext <<_ACEOF
5097      program main
5098#ifndef __GNUC__
5099       choke me
5100#endif
5101
5102      end
5103_ACEOF
5104rm -f conftest.$ac_objext
5105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106  (eval $ac_compile) 2>conftest.er1
5107  ac_status=$?
5108  grep -v '^ *+' conftest.er1 >conftest.err
5109  rm -f conftest.er1
5110  cat conftest.err >&5
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } &&
5113	 { ac_try='test -z "$ac_f77_werror_flag"
5114			 || test ! -s conftest.err'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; } &&
5120	 { ac_try='test -s conftest.$ac_objext'
5121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122  (eval $ac_try) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }; }; then
5126  ac_compiler_gnu=yes
5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131ac_compiler_gnu=no
5132fi
5133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5135
5136fi
5137echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5138echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5139ac_ext=$ac_save_ext
5140ac_test_FFLAGS=${FFLAGS+set}
5141ac_save_FFLAGS=$FFLAGS
5142FFLAGS=
5143echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5144echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5145if test "${ac_cv_prog_f77_g+set}" = set; then
5146  echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148  FFLAGS=-g
5149cat >conftest.$ac_ext <<_ACEOF
5150      program main
5151
5152      end
5153_ACEOF
5154rm -f conftest.$ac_objext
5155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156  (eval $ac_compile) 2>conftest.er1
5157  ac_status=$?
5158  grep -v '^ *+' conftest.er1 >conftest.err
5159  rm -f conftest.er1
5160  cat conftest.err >&5
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); } &&
5163	 { ac_try='test -z "$ac_f77_werror_flag"
5164			 || test ! -s conftest.err'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; } &&
5170	 { ac_try='test -s conftest.$ac_objext'
5171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172  (eval $ac_try) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; }; then
5176  ac_cv_prog_f77_g=yes
5177else
5178  echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181ac_cv_prog_f77_g=no
5182fi
5183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5184
5185fi
5186echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5187echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5188if test "$ac_test_FFLAGS" = set; then
5189  FFLAGS=$ac_save_FFLAGS
5190elif test $ac_cv_prog_f77_g = yes; then
5191  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5192    FFLAGS="-g -O2"
5193  else
5194    FFLAGS="-g"
5195  fi
5196else
5197  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5198    FFLAGS="-O2"
5199  else
5200    FFLAGS=
5201  fi
5202fi
5203
5204G77=`test $ac_compiler_gnu = yes && echo yes`
5205ac_ext=c
5206ac_cpp='$CPP $CPPFLAGS'
5207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210
5211
5212
5213# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5214
5215# find the maximum length of command line arguments
5216echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5217echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5218if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5219  echo $ECHO_N "(cached) $ECHO_C" >&6
5220else
5221    i=0
5222  teststring="ABCD"
5223
5224  case $build_os in
5225  msdosdjgpp*)
5226    # On DJGPP, this test can blow up pretty badly due to problems in libc
5227    # (any single argument exceeding 2000 bytes causes a buffer overrun
5228    # during glob expansion).  Even if it were fixed, the result of this
5229    # check would be larger than it should be.
5230    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5231    ;;
5232
5233  gnu*)
5234    # Under GNU Hurd, this test is not required because there is
5235    # no limit to the length of command line arguments.
5236    # Libtool will interpret -1 as no limit whatsoever
5237    lt_cv_sys_max_cmd_len=-1;
5238    ;;
5239
5240  cygwin* | mingw*)
5241    # On Win9x/ME, this test blows up -- it succeeds, but takes
5242    # about 5 minutes as the teststring grows exponentially.
5243    # Worse, since 9x/ME are not pre-emptively multitasking,
5244    # you end up with a "frozen" computer, even though with patience
5245    # the test eventually succeeds (with a max line length of 256k).
5246    # Instead, let's just punt: use the minimum linelength reported by
5247    # all of the supported platforms: 8192 (on NT/2K/XP).
5248    lt_cv_sys_max_cmd_len=8192;
5249    ;;
5250
5251  amigaos*)
5252    # On AmigaOS with pdksh, this test takes hours, literally.
5253    # So we just punt and use a minimum line length of 8192.
5254    lt_cv_sys_max_cmd_len=8192;
5255    ;;
5256
5257  netbsd* | freebsd* | openbsd* | darwin* )
5258    # This has been around since 386BSD, at least.  Likely further.
5259    if test -x /sbin/sysctl; then
5260      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5261    elif test -x /usr/sbin/sysctl; then
5262      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5263    else
5264      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5265    fi
5266    # And add a safety zone
5267    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268    ;;
5269
5270 *)
5271    # If test is not a shell built-in, we'll probably end up computing a
5272    # maximum length that is only half of the actual maximum length, but
5273    # we can't tell.
5274    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5275    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5276	       = "XX$teststring") >/dev/null 2>&1 &&
5277	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5278	    lt_cv_sys_max_cmd_len=$new_result &&
5279	    test $i != 17 # 1/2 MB should be enough
5280    do
5281      i=`expr $i + 1`
5282      teststring=$teststring$teststring
5283    done
5284    teststring=
5285    # Add a significant safety factor because C++ compilers can tack on massive
5286    # amounts of additional arguments before passing them to the linker.
5287    # It appears as though 1/2 is a usable value.
5288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5289    ;;
5290  esac
5291
5292fi
5293
5294if test -n $lt_cv_sys_max_cmd_len ; then
5295  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5296echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5297else
5298  echo "$as_me:$LINENO: result: none" >&5
5299echo "${ECHO_T}none" >&6
5300fi
5301
5302
5303
5304
5305# Check for command to grab the raw symbol name followed by C symbol from nm.
5306echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5307echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5308if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5309  echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311
5312# These are sane defaults that work on at least a few old systems.
5313# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5314
5315# Character class describing NM global symbol codes.
5316symcode='[BCDEGRST]'
5317
5318# Regexp to match symbols that can be accessed directly from C.
5319sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5320
5321# Transform the above into a raw symbol and a C symbol.
5322symxfrm='\1 \2\3 \3'
5323
5324# Transform an extracted symbol line into a proper C declaration
5325lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5326
5327# Transform an extracted symbol line into symbol name and symbol address
5328lt_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'"
5329
5330# Define system-specific variables.
5331case $host_os in
5332aix*)
5333  symcode='[BCDT]'
5334  ;;
5335cygwin* | mingw* | pw32*)
5336  symcode='[ABCDGISTW]'
5337  ;;
5338hpux*) # Its linker distinguishes data from code symbols
5339  if test "$host_cpu" = ia64; then
5340    symcode='[ABCDEGRST]'
5341  fi
5342  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5343  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'"
5344  ;;
5345linux*)
5346  if test "$host_cpu" = ia64; then
5347    symcode='[ABCDGIRSTW]'
5348    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5349    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'"
5350  fi
5351  ;;
5352irix* | nonstopux*)
5353  symcode='[BCDEGRST]'
5354  ;;
5355osf*)
5356  symcode='[BCDEGQRST]'
5357  ;;
5358solaris* | sysv5*)
5359  symcode='[BDRT]'
5360  ;;
5361sysv4)
5362  symcode='[DFNSTU]'
5363  ;;
5364esac
5365
5366# Handle CRLF in mingw tool chain
5367opt_cr=
5368case $build_os in
5369mingw*)
5370  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5371  ;;
5372esac
5373
5374# If we're using GNU nm, then use its standard symbol codes.
5375case `$NM -V 2>&1` in
5376*GNU* | *'with BFD'*)
5377  symcode='[ABCDGIRSTW]' ;;
5378esac
5379
5380# Try without a prefix undercore, then with it.
5381for ac_symprfx in "" "_"; do
5382
5383  # Write the raw and C identifiers.
5384  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5385
5386  # Check to see that the pipe works correctly.
5387  pipe_works=no
5388
5389  rm -f conftest*
5390  cat > conftest.$ac_ext <<EOF
5391#ifdef __cplusplus
5392extern "C" {
5393#endif
5394char nm_test_var;
5395void nm_test_func(){}
5396#ifdef __cplusplus
5397}
5398#endif
5399int main(){nm_test_var='a';nm_test_func();return(0);}
5400EOF
5401
5402  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403  (eval $ac_compile) 2>&5
5404  ac_status=$?
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); }; then
5407    # Now try to grab the symbols.
5408    nlist=conftest.nm
5409    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5410  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5411  ac_status=$?
5412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413  (exit $ac_status); } && test -s "$nlist"; then
5414      # Try sorting and uniquifying the output.
5415      if sort "$nlist" | uniq > "$nlist"T; then
5416	mv -f "$nlist"T "$nlist"
5417      else
5418	rm -f "$nlist"T
5419      fi
5420
5421      # Make sure that we snagged all the symbols we need.
5422      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5423	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5424	  cat <<EOF > conftest.$ac_ext
5425#ifdef __cplusplus
5426extern "C" {
5427#endif
5428
5429EOF
5430	  # Now generate the symbol file.
5431	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5432
5433	  cat <<EOF >> conftest.$ac_ext
5434#if defined (__STDC__) && __STDC__
5435# define lt_ptr_t void *
5436#else
5437# define lt_ptr_t char *
5438# define const
5439#endif
5440
5441/* The mapping between symbol names and symbols. */
5442const struct {
5443  const char *name;
5444  lt_ptr_t address;
5445}
5446lt_preloaded_symbols[] =
5447{
5448EOF
5449	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5450	  cat <<\EOF >> conftest.$ac_ext
5451  {0, (lt_ptr_t) 0}
5452};
5453
5454#ifdef __cplusplus
5455}
5456#endif
5457EOF
5458	  # Now try linking the two files.
5459	  mv conftest.$ac_objext conftstm.$ac_objext
5460	  lt_save_LIBS="$LIBS"
5461	  lt_save_CFLAGS="$CFLAGS"
5462	  LIBS="conftstm.$ac_objext"
5463	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5464	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465  (eval $ac_link) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5469	    pipe_works=yes
5470	  fi
5471	  LIBS="$lt_save_LIBS"
5472	  CFLAGS="$lt_save_CFLAGS"
5473	else
5474	  echo "cannot find nm_test_func in $nlist" >&5
5475	fi
5476      else
5477	echo "cannot find nm_test_var in $nlist" >&5
5478      fi
5479    else
5480      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5481    fi
5482  else
5483    echo "$progname: failed program was:" >&5
5484    cat conftest.$ac_ext >&5
5485  fi
5486  rm -f conftest* conftst*
5487
5488  # Do not use the global_symbol_pipe unless it works.
5489  if test "$pipe_works" = yes; then
5490    break
5491  else
5492    lt_cv_sys_global_symbol_pipe=
5493  fi
5494done
5495
5496fi
5497
5498if test -z "$lt_cv_sys_global_symbol_pipe"; then
5499  lt_cv_sys_global_symbol_to_cdecl=
5500fi
5501if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5502  echo "$as_me:$LINENO: result: failed" >&5
5503echo "${ECHO_T}failed" >&6
5504else
5505  echo "$as_me:$LINENO: result: ok" >&5
5506echo "${ECHO_T}ok" >&6
5507fi
5508
5509echo "$as_me:$LINENO: checking for objdir" >&5
5510echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5511if test "${lt_cv_objdir+set}" = set; then
5512  echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514  rm -f .libs 2>/dev/null
5515mkdir .libs 2>/dev/null
5516if test -d .libs; then
5517  lt_cv_objdir=.libs
5518else
5519  # MS-DOS does not allow filenames that begin with a dot.
5520  lt_cv_objdir=_libs
5521fi
5522rmdir .libs 2>/dev/null
5523fi
5524echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5525echo "${ECHO_T}$lt_cv_objdir" >&6
5526objdir=$lt_cv_objdir
5527
5528
5529
5530
5531
5532case $host_os in
5533aix3*)
5534  # AIX sometimes has problems with the GCC collect2 program.  For some
5535  # reason, if we set the COLLECT_NAMES environment variable, the problems
5536  # vanish in a puff of smoke.
5537  if test "X${COLLECT_NAMES+set}" != Xset; then
5538    COLLECT_NAMES=
5539    export COLLECT_NAMES
5540  fi
5541  ;;
5542esac
5543
5544# Sed substitution that helps us do robust quoting.  It backslashifies
5545# metacharacters that are still active within double-quoted strings.
5546Xsed='sed -e s/^X//'
5547sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5548
5549# Same as above, but do not quote variable references.
5550double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5551
5552# Sed substitution to delay expansion of an escaped shell variable in a
5553# double_quote_subst'ed string.
5554delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5555
5556# Sed substitution to avoid accidental globbing in evaled expressions
5557no_glob_subst='s/\*/\\\*/g'
5558
5559# Constants:
5560rm="rm -f"
5561
5562# Global variables:
5563default_ofile=mklib
5564can_build_shared=yes
5565
5566# All known linkers require a `.a' archive for static linking (except M$VC,
5567# which needs '.lib').
5568libext=a
5569ltmain="$ac_aux_dir/ltmain.sh"
5570ofile="$default_ofile"
5571with_gnu_ld="$lt_cv_prog_gnu_ld"
5572
5573if test -n "$ac_tool_prefix"; then
5574  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}ar; ac_word=$2
5576echo "$as_me:$LINENO: checking for $ac_word" >&5
5577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578if test "${ac_cv_prog_AR+set}" = set; then
5579  echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581  if test -n "$AR"; then
5582  ac_cv_prog_AR="$AR" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587  IFS=$as_save_IFS
5588  test -z "$as_dir" && as_dir=.
5589  for ac_exec_ext in '' $ac_executable_extensions; do
5590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591    ac_cv_prog_AR="${ac_tool_prefix}ar"
5592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593    break 2
5594  fi
5595done
5596done
5597
5598fi
5599fi
5600AR=$ac_cv_prog_AR
5601if test -n "$AR"; then
5602  echo "$as_me:$LINENO: result: $AR" >&5
5603echo "${ECHO_T}$AR" >&6
5604else
5605  echo "$as_me:$LINENO: result: no" >&5
5606echo "${ECHO_T}no" >&6
5607fi
5608
5609fi
5610if test -z "$ac_cv_prog_AR"; then
5611  ac_ct_AR=$AR
5612  # Extract the first word of "ar", so it can be a program name with args.
5613set dummy ar; ac_word=$2
5614echo "$as_me:$LINENO: checking for $ac_word" >&5
5615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5616if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5617  echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619  if test -n "$ac_ct_AR"; then
5620  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5621else
5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623for as_dir in $PATH
5624do
5625  IFS=$as_save_IFS
5626  test -z "$as_dir" && as_dir=.
5627  for ac_exec_ext in '' $ac_executable_extensions; do
5628  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629    ac_cv_prog_ac_ct_AR="ar"
5630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631    break 2
5632  fi
5633done
5634done
5635
5636  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5637fi
5638fi
5639ac_ct_AR=$ac_cv_prog_ac_ct_AR
5640if test -n "$ac_ct_AR"; then
5641  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5642echo "${ECHO_T}$ac_ct_AR" >&6
5643else
5644  echo "$as_me:$LINENO: result: no" >&5
5645echo "${ECHO_T}no" >&6
5646fi
5647
5648  AR=$ac_ct_AR
5649else
5650  AR="$ac_cv_prog_AR"
5651fi
5652
5653if test -n "$ac_tool_prefix"; then
5654  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5656echo "$as_me:$LINENO: checking for $ac_word" >&5
5657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658if test "${ac_cv_prog_RANLIB+set}" = set; then
5659  echo $ECHO_N "(cached) $ECHO_C" >&6
5660else
5661  if test -n "$RANLIB"; then
5662  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667  IFS=$as_save_IFS
5668  test -z "$as_dir" && as_dir=.
5669  for ac_exec_ext in '' $ac_executable_extensions; do
5670  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5672    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673    break 2
5674  fi
5675done
5676done
5677
5678fi
5679fi
5680RANLIB=$ac_cv_prog_RANLIB
5681if test -n "$RANLIB"; then
5682  echo "$as_me:$LINENO: result: $RANLIB" >&5
5683echo "${ECHO_T}$RANLIB" >&6
5684else
5685  echo "$as_me:$LINENO: result: no" >&5
5686echo "${ECHO_T}no" >&6
5687fi
5688
5689fi
5690if test -z "$ac_cv_prog_RANLIB"; then
5691  ac_ct_RANLIB=$RANLIB
5692  # Extract the first word of "ranlib", so it can be a program name with args.
5693set dummy ranlib; ac_word=$2
5694echo "$as_me:$LINENO: checking for $ac_word" >&5
5695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  if test -n "$ac_ct_RANLIB"; then
5700  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705  IFS=$as_save_IFS
5706  test -z "$as_dir" && as_dir=.
5707  for ac_exec_ext in '' $ac_executable_extensions; do
5708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709    ac_cv_prog_ac_ct_RANLIB="ranlib"
5710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711    break 2
5712  fi
5713done
5714done
5715
5716  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5717fi
5718fi
5719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5720if test -n "$ac_ct_RANLIB"; then
5721  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5722echo "${ECHO_T}$ac_ct_RANLIB" >&6
5723else
5724  echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726fi
5727
5728  RANLIB=$ac_ct_RANLIB
5729else
5730  RANLIB="$ac_cv_prog_RANLIB"
5731fi
5732
5733if test -n "$ac_tool_prefix"; then
5734  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}strip; ac_word=$2
5736echo "$as_me:$LINENO: checking for $ac_word" >&5
5737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738if test "${ac_cv_prog_STRIP+set}" = set; then
5739  echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741  if test -n "$STRIP"; then
5742  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747  IFS=$as_save_IFS
5748  test -z "$as_dir" && as_dir=.
5749  for ac_exec_ext in '' $ac_executable_extensions; do
5750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753    break 2
5754  fi
5755done
5756done
5757
5758fi
5759fi
5760STRIP=$ac_cv_prog_STRIP
5761if test -n "$STRIP"; then
5762  echo "$as_me:$LINENO: result: $STRIP" >&5
5763echo "${ECHO_T}$STRIP" >&6
5764else
5765  echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767fi
5768
5769fi
5770if test -z "$ac_cv_prog_STRIP"; then
5771  ac_ct_STRIP=$STRIP
5772  # Extract the first word of "strip", so it can be a program name with args.
5773set dummy strip; ac_word=$2
5774echo "$as_me:$LINENO: checking for $ac_word" >&5
5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779  if test -n "$ac_ct_STRIP"; then
5780  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  test -z "$as_dir" && as_dir=.
5787  for ac_exec_ext in '' $ac_executable_extensions; do
5788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789    ac_cv_prog_ac_ct_STRIP="strip"
5790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794done
5795
5796  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5797fi
5798fi
5799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5800if test -n "$ac_ct_STRIP"; then
5801  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5802echo "${ECHO_T}$ac_ct_STRIP" >&6
5803else
5804  echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807
5808  STRIP=$ac_ct_STRIP
5809else
5810  STRIP="$ac_cv_prog_STRIP"
5811fi
5812
5813
5814old_CC="$CC"
5815old_CFLAGS="$CFLAGS"
5816
5817# Set sane defaults for various variables
5818test -z "$AR" && AR=ar
5819test -z "$AR_FLAGS" && AR_FLAGS=cru
5820test -z "$AS" && AS=as
5821test -z "$CC" && CC=cc
5822test -z "$LTCC" && LTCC=$CC
5823test -z "$DLLTOOL" && DLLTOOL=dlltool
5824test -z "$LD" && LD=ld
5825test -z "$LN_S" && LN_S="ln -s"
5826test -z "$MAGIC_CMD" && MAGIC_CMD=file
5827test -z "$NM" && NM=nm
5828test -z "$SED" && SED=sed
5829test -z "$OBJDUMP" && OBJDUMP=objdump
5830test -z "$RANLIB" && RANLIB=:
5831test -z "$STRIP" && STRIP=:
5832test -z "$ac_objext" && ac_objext=o
5833
5834# Determine commands to create old-style static archives.
5835old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5836old_postinstall_cmds='chmod 644 $oldlib'
5837old_postuninstall_cmds=
5838
5839if test -n "$RANLIB"; then
5840  case $host_os in
5841  openbsd*)
5842    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5843    ;;
5844  *)
5845    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5846    ;;
5847  esac
5848  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5849fi
5850
5851cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5852
5853# Only perform the check for file, if the check method requires it
5854case $deplibs_check_method in
5855file_magic*)
5856  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5857    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5858echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5859if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862  case $MAGIC_CMD in
5863[\\/*] |  ?:[\\/]*)
5864  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5865  ;;
5866*)
5867  lt_save_MAGIC_CMD="$MAGIC_CMD"
5868  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5869  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5870  for ac_dir in $ac_dummy; do
5871    IFS="$lt_save_ifs"
5872    test -z "$ac_dir" && ac_dir=.
5873    if test -f $ac_dir/${ac_tool_prefix}file; then
5874      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5875      if test -n "$file_magic_test_file"; then
5876	case $deplibs_check_method in
5877	"file_magic "*)
5878	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5879	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5880	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5881	    $EGREP "$file_magic_regex" > /dev/null; then
5882	    :
5883	  else
5884	    cat <<EOF 1>&2
5885
5886*** Warning: the command libtool uses to detect shared libraries,
5887*** $file_magic_cmd, produces output that libtool cannot recognize.
5888*** The result is that libtool may fail to recognize shared libraries
5889*** as such.  This will affect the creation of libtool libraries that
5890*** depend on shared libraries, but programs linked with such libtool
5891*** libraries will work regardless of this problem.  Nevertheless, you
5892*** may want to report the problem to your system manager and/or to
5893*** bug-libtool@gnu.org
5894
5895EOF
5896	  fi ;;
5897	esac
5898      fi
5899      break
5900    fi
5901  done
5902  IFS="$lt_save_ifs"
5903  MAGIC_CMD="$lt_save_MAGIC_CMD"
5904  ;;
5905esac
5906fi
5907
5908MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909if test -n "$MAGIC_CMD"; then
5910  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5911echo "${ECHO_T}$MAGIC_CMD" >&6
5912else
5913  echo "$as_me:$LINENO: result: no" >&5
5914echo "${ECHO_T}no" >&6
5915fi
5916
5917if test -z "$lt_cv_path_MAGIC_CMD"; then
5918  if test -n "$ac_tool_prefix"; then
5919    echo "$as_me:$LINENO: checking for file" >&5
5920echo $ECHO_N "checking for file... $ECHO_C" >&6
5921if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5922  echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924  case $MAGIC_CMD in
5925[\\/*] |  ?:[\\/]*)
5926  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5927  ;;
5928*)
5929  lt_save_MAGIC_CMD="$MAGIC_CMD"
5930  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5931  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5932  for ac_dir in $ac_dummy; do
5933    IFS="$lt_save_ifs"
5934    test -z "$ac_dir" && ac_dir=.
5935    if test -f $ac_dir/file; then
5936      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5937      if test -n "$file_magic_test_file"; then
5938	case $deplibs_check_method in
5939	"file_magic "*)
5940	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5941	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5942	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5943	    $EGREP "$file_magic_regex" > /dev/null; then
5944	    :
5945	  else
5946	    cat <<EOF 1>&2
5947
5948*** Warning: the command libtool uses to detect shared libraries,
5949*** $file_magic_cmd, produces output that libtool cannot recognize.
5950*** The result is that libtool may fail to recognize shared libraries
5951*** as such.  This will affect the creation of libtool libraries that
5952*** depend on shared libraries, but programs linked with such libtool
5953*** libraries will work regardless of this problem.  Nevertheless, you
5954*** may want to report the problem to your system manager and/or to
5955*** bug-libtool@gnu.org
5956
5957EOF
5958	  fi ;;
5959	esac
5960      fi
5961      break
5962    fi
5963  done
5964  IFS="$lt_save_ifs"
5965  MAGIC_CMD="$lt_save_MAGIC_CMD"
5966  ;;
5967esac
5968fi
5969
5970MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5971if test -n "$MAGIC_CMD"; then
5972  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5973echo "${ECHO_T}$MAGIC_CMD" >&6
5974else
5975  echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6
5977fi
5978
5979  else
5980    MAGIC_CMD=:
5981  fi
5982fi
5983
5984  fi
5985  ;;
5986esac
5987
5988enable_dlopen=yes
5989enable_win32_dll=no
5990
5991# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5992if test "${enable_libtool_lock+set}" = set; then
5993  enableval="$enable_libtool_lock"
5994
5995fi;
5996test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5997
5998
5999# Check whether --with-pic or --without-pic was given.
6000if test "${with_pic+set}" = set; then
6001  withval="$with_pic"
6002  pic_mode="$withval"
6003else
6004  pic_mode=default
6005fi;
6006test -z "$pic_mode" && pic_mode=default
6007
6008# Use C for the default configuration in the libtool script
6009tagname=
6010lt_save_CC="$CC"
6011ac_ext=c
6012ac_cpp='$CPP $CPPFLAGS'
6013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017
6018# Source file extension for C test sources.
6019ac_ext=c
6020
6021# Object file extension for compiled C test sources.
6022objext=o
6023objext=$objext
6024
6025# Code to be used in simple compile tests
6026lt_simple_compile_test_code="int some_variable = 0;\n"
6027
6028# Code to be used in simple link tests
6029lt_simple_link_test_code='int main(){return(0);}\n'
6030
6031
6032# If no C compiler was specified, use CC.
6033LTCC=${LTCC-"$CC"}
6034
6035# Allow CC to be a program name with arguments.
6036compiler=$CC
6037
6038
6039#
6040# Check for any special shared library compilation flags.
6041#
6042lt_prog_cc_shlib=
6043if test "$GCC" = no; then
6044  case $host_os in
6045  sco3.2v5*)
6046    lt_prog_cc_shlib='-belf'
6047    ;;
6048  esac
6049fi
6050if test -n "$lt_prog_cc_shlib"; then
6051  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6052echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6053  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6054  else
6055    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6056echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6057    lt_cv_prog_cc_can_build_shared=no
6058  fi
6059fi
6060
6061
6062#
6063# Check to make sure the static flag actually works.
6064#
6065echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6066echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6067if test "${lt_prog_compiler_static_works+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  lt_prog_compiler_static_works=no
6071   save_LDFLAGS="$LDFLAGS"
6072   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6073   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6074   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6075     # The compiler can only warn and ignore the option if not recognized
6076     # So say no if there are warnings
6077     if test -s conftest.err; then
6078       # Append any errors to the config.log.
6079       cat conftest.err 1>&5
6080     else
6081       lt_prog_compiler_static_works=yes
6082     fi
6083   fi
6084   $rm conftest*
6085   LDFLAGS="$save_LDFLAGS"
6086
6087fi
6088echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6089echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6090
6091if test x"$lt_prog_compiler_static_works" = xyes; then
6092    :
6093else
6094    lt_prog_compiler_static=
6095fi
6096
6097
6098
6099
6100lt_prog_compiler_no_builtin_flag=
6101
6102if test "$GCC" = yes; then
6103  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6104
6105
6106echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6107echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6108if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6109  echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111  lt_cv_prog_compiler_rtti_exceptions=no
6112  ac_outfile=conftest.$ac_objext
6113   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6114   lt_compiler_flag="-fno-rtti -fno-exceptions"
6115   # Insert the option either (1) after the last *FLAGS variable, or
6116   # (2) before a word containing "conftest.", or (3) at the end.
6117   # Note that $ac_compile itself does not contain backslashes and begins
6118   # with a dollar sign (not a hyphen), so the echo should work correctly.
6119   # The option is referenced via a variable to avoid confusing sed.
6120   lt_compile=`echo "$ac_compile" | $SED \
6121   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6122   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6123   -e 's:$: $lt_compiler_flag:'`
6124   (eval echo "\"\$as_me:6124: $lt_compile\"" >&5)
6125   (eval "$lt_compile" 2>conftest.err)
6126   ac_status=$?
6127   cat conftest.err >&5
6128   echo "$as_me:6128: \$? = $ac_status" >&5
6129   if (exit $ac_status) && test -s "$ac_outfile"; then
6130     # The compiler can only warn and ignore the option if not recognized
6131     # So say no if there are warnings
6132     if test ! -s conftest.err; then
6133       lt_cv_prog_compiler_rtti_exceptions=yes
6134     fi
6135   fi
6136   $rm conftest*
6137
6138fi
6139echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6140echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6141
6142if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6143    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6144else
6145    :
6146fi
6147
6148fi
6149
6150lt_prog_compiler_wl=
6151lt_prog_compiler_pic=
6152lt_prog_compiler_static=
6153
6154echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6155echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6156
6157  if test "$GCC" = yes; then
6158    lt_prog_compiler_wl='-Wl,'
6159    lt_prog_compiler_static='-static'
6160
6161    case $host_os in
6162      aix*)
6163      # All AIX code is PIC.
6164      if test "$host_cpu" = ia64; then
6165	# AIX 5 now supports IA64 processor
6166	lt_prog_compiler_static='-Bstatic'
6167      fi
6168      ;;
6169
6170    amigaos*)
6171      # FIXME: we need at least 68020 code to build shared libraries, but
6172      # adding the `-m68020' flag to GCC prevents building anything better,
6173      # like `-m68040'.
6174      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6175      ;;
6176
6177    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6178      # PIC is the default for these OSes.
6179      ;;
6180
6181    mingw* | pw32* | os2*)
6182      # This hack is so that the source file can tell whether it is being
6183      # built for inclusion in a dll (and should export symbols for example).
6184      lt_prog_compiler_pic='-DDLL_EXPORT'
6185      ;;
6186
6187    darwin* | rhapsody*)
6188      # PIC is the default on this platform
6189      # Common symbols not allowed in MH_DYLIB files
6190      lt_prog_compiler_pic='-fno-common'
6191      ;;
6192
6193    msdosdjgpp*)
6194      # Just because we use GCC doesn't mean we suddenly get shared libraries
6195      # on systems that don't support them.
6196      lt_prog_compiler_can_build_shared=no
6197      enable_shared=no
6198      ;;
6199
6200    sysv4*MP*)
6201      if test -d /usr/nec; then
6202	lt_prog_compiler_pic=-Kconform_pic
6203      fi
6204      ;;
6205
6206    hpux*)
6207      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6208      # not for PA HP-UX.
6209      case "$host_cpu" in
6210      hppa*64*|ia64*)
6211	# +Z the default
6212	;;
6213      *)
6214	lt_prog_compiler_pic='-fPIC'
6215	;;
6216      esac
6217      ;;
6218
6219    *)
6220      lt_prog_compiler_pic='-fPIC'
6221      ;;
6222    esac
6223  else
6224    # PORTME Check for flag to pass linker flags through the system compiler.
6225    case $host_os in
6226    aix*)
6227      lt_prog_compiler_wl='-Wl,'
6228      if test "$host_cpu" = ia64; then
6229	# AIX 5 now supports IA64 processor
6230	lt_prog_compiler_static='-Bstatic'
6231      else
6232	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6233      fi
6234      ;;
6235      darwin*)
6236        # PIC is the default on this platform
6237        # Common symbols not allowed in MH_DYLIB files
6238       case "$cc_basename" in
6239         xlc*)
6240         lt_prog_compiler_pic='-qnocommon'
6241         lt_prog_compiler_wl='-Wl,'
6242         ;;
6243       esac
6244       ;;
6245
6246    mingw* | pw32* | os2*)
6247      # This hack is so that the source file can tell whether it is being
6248      # built for inclusion in a dll (and should export symbols for example).
6249      lt_prog_compiler_pic='-DDLL_EXPORT'
6250      ;;
6251
6252    hpux9* | hpux10* | hpux11*)
6253      lt_prog_compiler_wl='-Wl,'
6254      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6255      # not for PA HP-UX.
6256      case "$host_cpu" in
6257      hppa*64*|ia64*)
6258	# +Z the default
6259	;;
6260      *)
6261	lt_prog_compiler_pic='+Z'
6262	;;
6263      esac
6264      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6265      lt_prog_compiler_static='${wl}-a ${wl}archive'
6266      ;;
6267
6268    irix5* | irix6* | nonstopux*)
6269      lt_prog_compiler_wl='-Wl,'
6270      # PIC (with -KPIC) is the default.
6271      lt_prog_compiler_static='-non_shared'
6272      ;;
6273
6274    newsos6)
6275      lt_prog_compiler_pic='-KPIC'
6276      lt_prog_compiler_static='-Bstatic'
6277      ;;
6278
6279    linux*)
6280      case $CC in
6281      icc* | ecc*)
6282	lt_prog_compiler_wl='-Wl,'
6283	lt_prog_compiler_pic='-KPIC'
6284	lt_prog_compiler_static='-static'
6285        ;;
6286      ccc*)
6287        lt_prog_compiler_wl='-Wl,'
6288        # All Alpha code is PIC.
6289        lt_prog_compiler_static='-non_shared'
6290        ;;
6291      esac
6292      ;;
6293
6294    osf3* | osf4* | osf5*)
6295      lt_prog_compiler_wl='-Wl,'
6296      # All OSF/1 code is PIC.
6297      lt_prog_compiler_static='-non_shared'
6298      ;;
6299
6300    sco3.2v5*)
6301      lt_prog_compiler_pic='-Kpic'
6302      lt_prog_compiler_static='-dn'
6303      ;;
6304
6305    solaris*)
6306      lt_prog_compiler_wl='-Wl,'
6307      lt_prog_compiler_pic='-KPIC'
6308      lt_prog_compiler_static='-Bstatic'
6309      ;;
6310
6311    sunos4*)
6312      lt_prog_compiler_wl='-Qoption ld '
6313      lt_prog_compiler_pic='-PIC'
6314      lt_prog_compiler_static='-Bstatic'
6315      ;;
6316
6317    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6318      lt_prog_compiler_wl='-Wl,'
6319      lt_prog_compiler_pic='-KPIC'
6320      lt_prog_compiler_static='-Bstatic'
6321      ;;
6322
6323    sysv4*MP*)
6324      if test -d /usr/nec ;then
6325	lt_prog_compiler_pic='-Kconform_pic'
6326	lt_prog_compiler_static='-Bstatic'
6327      fi
6328      ;;
6329
6330    uts4*)
6331      lt_prog_compiler_pic='-pic'
6332      lt_prog_compiler_static='-Bstatic'
6333      ;;
6334
6335    *)
6336      lt_prog_compiler_can_build_shared=no
6337      ;;
6338    esac
6339  fi
6340
6341echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6342echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6343
6344#
6345# Check to make sure the PIC flag actually works.
6346#
6347if test -n "$lt_prog_compiler_pic"; then
6348
6349echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6350echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6351if test "${lt_prog_compiler_pic_works+set}" = set; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  lt_prog_compiler_pic_works=no
6355  ac_outfile=conftest.$ac_objext
6356   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6357   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6358   # Insert the option either (1) after the last *FLAGS variable, or
6359   # (2) before a word containing "conftest.", or (3) at the end.
6360   # Note that $ac_compile itself does not contain backslashes and begins
6361   # with a dollar sign (not a hyphen), so the echo should work correctly.
6362   # The option is referenced via a variable to avoid confusing sed.
6363   lt_compile=`echo "$ac_compile" | $SED \
6364   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6366   -e 's:$: $lt_compiler_flag:'`
6367   (eval echo "\"\$as_me:6367: $lt_compile\"" >&5)
6368   (eval "$lt_compile" 2>conftest.err)
6369   ac_status=$?
6370   cat conftest.err >&5
6371   echo "$as_me:6371: \$? = $ac_status" >&5
6372   if (exit $ac_status) && test -s "$ac_outfile"; then
6373     # The compiler can only warn and ignore the option if not recognized
6374     # So say no if there are warnings
6375     if test ! -s conftest.err; then
6376       lt_prog_compiler_pic_works=yes
6377     fi
6378   fi
6379   $rm conftest*
6380
6381fi
6382echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6383echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6384
6385if test x"$lt_prog_compiler_pic_works" = xyes; then
6386    case $lt_prog_compiler_pic in
6387     "" | " "*) ;;
6388     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6389     esac
6390else
6391    lt_prog_compiler_pic=
6392     lt_prog_compiler_can_build_shared=no
6393fi
6394
6395fi
6396case "$host_os" in
6397  # For platforms which do not support PIC, -DPIC is meaningless:
6398  *djgpp*)
6399    lt_prog_compiler_pic=
6400    ;;
6401  *)
6402    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6403    ;;
6404esac
6405
6406echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6407echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6408if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6409  echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411  lt_cv_prog_compiler_c_o=no
6412   $rm -r conftest 2>/dev/null
6413   mkdir conftest
6414   cd conftest
6415   mkdir out
6416   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6417
6418   lt_compiler_flag="-o out/conftest2.$ac_objext"
6419   # Insert the option either (1) after the last *FLAGS variable, or
6420   # (2) before a word containing "conftest.", or (3) at the end.
6421   # Note that $ac_compile itself does not contain backslashes and begins
6422   # with a dollar sign (not a hyphen), so the echo should work correctly.
6423   lt_compile=`echo "$ac_compile" | $SED \
6424   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6426   -e 's:$: $lt_compiler_flag:'`
6427   (eval echo "\"\$as_me:6427: $lt_compile\"" >&5)
6428   (eval "$lt_compile" 2>out/conftest.err)
6429   ac_status=$?
6430   cat out/conftest.err >&5
6431   echo "$as_me:6431: \$? = $ac_status" >&5
6432   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6433   then
6434     # The compiler can only warn and ignore the option if not recognized
6435     # So say no if there are warnings
6436     if test ! -s out/conftest.err; then
6437       lt_cv_prog_compiler_c_o=yes
6438     fi
6439   fi
6440   chmod u+w .
6441   $rm conftest*
6442   # SGI C++ compiler will create directory out/ii_files/ for
6443   # template instantiation
6444   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6445   $rm out/* && rmdir out
6446   cd ..
6447   rmdir conftest
6448   $rm conftest*
6449
6450fi
6451echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6452echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6453
6454
6455hard_links="nottested"
6456if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6457  # do not overwrite the value of need_locks provided by the user
6458  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6459echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6460  hard_links=yes
6461  $rm conftest*
6462  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6463  touch conftest.a
6464  ln conftest.a conftest.b 2>&5 || hard_links=no
6465  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6466  echo "$as_me:$LINENO: result: $hard_links" >&5
6467echo "${ECHO_T}$hard_links" >&6
6468  if test "$hard_links" = no; then
6469    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6470echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6471    need_locks=warn
6472  fi
6473else
6474  need_locks=no
6475fi
6476
6477echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6478echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6479
6480  runpath_var=
6481  allow_undefined_flag=
6482  enable_shared_with_static_runtimes=no
6483  archive_cmds=
6484  archive_expsym_cmds=
6485  old_archive_From_new_cmds=
6486  old_archive_from_expsyms_cmds=
6487  export_dynamic_flag_spec=
6488  whole_archive_flag_spec=
6489  thread_safe_flag_spec=
6490  hardcode_libdir_flag_spec=
6491  hardcode_libdir_flag_spec_ld=
6492  hardcode_libdir_separator=
6493  hardcode_direct=no
6494  hardcode_minus_L=no
6495  hardcode_shlibpath_var=unsupported
6496  link_all_deplibs=unknown
6497  hardcode_automatic=no
6498  module_cmds=
6499  module_expsym_cmds=
6500  always_export_symbols=no
6501  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6502  # include_expsyms should be a list of space-separated symbols to be *always*
6503  # included in the symbol list
6504  include_expsyms=
6505  # exclude_expsyms can be an extended regexp of symbols to exclude
6506  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6507  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6508  # as well as any symbol that contains `d'.
6509  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6510  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6511  # platforms (ab)use it in PIC code, but their linkers get confused if
6512  # the symbol is explicitly referenced.  Since portable code cannot
6513  # rely on this symbol name, it's probably fine to never include it in
6514  # preloaded symbol tables.
6515  extract_expsyms_cmds=
6516
6517  case $host_os in
6518  cygwin* | mingw* | pw32*)
6519    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6520    # When not using gcc, we currently assume that we are using
6521    # Microsoft Visual C++.
6522    if test "$GCC" != yes; then
6523      with_gnu_ld=no
6524    fi
6525    ;;
6526  openbsd*)
6527    with_gnu_ld=no
6528    ;;
6529  esac
6530
6531  ld_shlibs=yes
6532  if test "$with_gnu_ld" = yes; then
6533    # If archive_cmds runs LD, not CC, wlarc should be empty
6534    wlarc='${wl}'
6535
6536    # See if GNU ld supports shared libraries.
6537    case $host_os in
6538    aix3* | aix4* | aix5*)
6539      # On AIX/PPC, the GNU linker is very broken
6540      if test "$host_cpu" != ia64; then
6541	ld_shlibs=no
6542	cat <<EOF 1>&2
6543
6544*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6545*** to be unable to reliably create shared libraries on AIX.
6546*** Therefore, libtool is disabling shared libraries support.  If you
6547*** really care for shared libraries, you may want to modify your PATH
6548*** so that a non-GNU linker is found, and then restart.
6549
6550EOF
6551      fi
6552      ;;
6553
6554    amigaos*)
6555      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)'
6556      hardcode_libdir_flag_spec='-L$libdir'
6557      hardcode_minus_L=yes
6558
6559      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6560      # that the semantics of dynamic libraries on AmigaOS, at least up
6561      # to version 4, is to share data among multiple programs linked
6562      # with the same dynamic library.  Since this doesn't match the
6563      # behavior of shared libraries on other platforms, we can't use
6564      # them.
6565      ld_shlibs=no
6566      ;;
6567
6568    beos*)
6569      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6570	allow_undefined_flag=unsupported
6571	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6572	# support --undefined.  This deserves some investigation.  FIXME
6573	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6574      else
6575	ld_shlibs=no
6576      fi
6577      ;;
6578
6579    cygwin* | mingw* | pw32*)
6580      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6581      # as there is no search path for DLLs.
6582      hardcode_libdir_flag_spec='-L$libdir'
6583      allow_undefined_flag=unsupported
6584      always_export_symbols=no
6585      enable_shared_with_static_runtimes=yes
6586      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6587
6588      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6589        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6590	# If the export-symbols file already is a .def file (1st line
6591	# is EXPORTS), use it as is; otherwise, prepend...
6592	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6593	  cp $export_symbols $output_objdir/$soname.def;
6594	else
6595	  echo EXPORTS > $output_objdir/$soname.def;
6596	  cat $export_symbols >> $output_objdir/$soname.def;
6597	fi~
6598	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6599      else
6600	ld_shlibs=no
6601      fi
6602      ;;
6603
6604    netbsd*)
6605      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6606	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6607	wlarc=
6608      else
6609	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6610	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6611      fi
6612      ;;
6613
6614    solaris* | sysv5*)
6615      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6616	ld_shlibs=no
6617	cat <<EOF 1>&2
6618
6619*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6620*** create shared libraries on Solaris systems.  Therefore, libtool
6621*** is disabling shared libraries support.  We urge you to upgrade GNU
6622*** binutils to release 2.9.1 or newer.  Another option is to modify
6623*** your PATH or compiler configuration so that the native linker is
6624*** used, and then restart.
6625
6626EOF
6627      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6628	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6629	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6630      else
6631	ld_shlibs=no
6632      fi
6633      ;;
6634
6635    sunos4*)
6636      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6637      wlarc=
6638      hardcode_direct=yes
6639      hardcode_shlibpath_var=no
6640      ;;
6641
6642  linux*)
6643    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6644        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6645	archive_cmds="$tmp_archive_cmds"
6646      supports_anon_versioning=no
6647      case `$LD -v 2>/dev/null` in
6648        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6649        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6650        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6651        *\ 2.11.*) ;; # other 2.11 versions
6652        *) supports_anon_versioning=yes ;;
6653      esac
6654      if test $supports_anon_versioning = yes; then
6655        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6656cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6657$echo "local: *; };" >> $output_objdir/$libname.ver~
6658        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6659      else
6660        archive_expsym_cmds="$tmp_archive_cmds"
6661      fi
6662    else
6663      ld_shlibs=no
6664    fi
6665    ;;
6666
6667    *)
6668      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6669	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6670	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6671      else
6672	ld_shlibs=no
6673      fi
6674      ;;
6675    esac
6676
6677    if test "$ld_shlibs" = yes; then
6678      runpath_var=LD_RUN_PATH
6679      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6680      export_dynamic_flag_spec='${wl}--export-dynamic'
6681      # ancient GNU ld didn't support --whole-archive et. al.
6682      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6683 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6684      else
6685  	whole_archive_flag_spec=
6686      fi
6687    fi
6688  else
6689    # PORTME fill in a description of your system's linker (not GNU ld)
6690    case $host_os in
6691    aix3*)
6692      allow_undefined_flag=unsupported
6693      always_export_symbols=yes
6694      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'
6695      # Note: this linker hardcodes the directories in LIBPATH if there
6696      # are no directories specified by -L.
6697      hardcode_minus_L=yes
6698      if test "$GCC" = yes && test -z "$link_static_flag"; then
6699	# Neither direct hardcoding nor static linking is supported with a
6700	# broken collect2.
6701	hardcode_direct=unsupported
6702      fi
6703      ;;
6704
6705    aix4* | aix5*)
6706      if test "$host_cpu" = ia64; then
6707	# On IA64, the linker does run time linking by default, so we don't
6708	# have to do anything special.
6709	aix_use_runtimelinking=no
6710	exp_sym_flag='-Bexport'
6711	no_entry_flag=""
6712      else
6713	# If we're using GNU nm, then we don't want the "-C" option.
6714	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6715	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6716	  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'
6717	else
6718	  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'
6719	fi
6720	aix_use_runtimelinking=no
6721
6722	# Test if we are trying to use run time linking or normal
6723	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6724	# need to do runtime linking.
6725	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6726	  for ld_flag in $LDFLAGS; do
6727  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6728  	    aix_use_runtimelinking=yes
6729  	    break
6730  	  fi
6731	  done
6732	esac
6733
6734	exp_sym_flag='-bexport'
6735	no_entry_flag='-bnoentry'
6736      fi
6737
6738      # When large executables or shared objects are built, AIX ld can
6739      # have problems creating the table of contents.  If linking a library
6740      # or program results in "error TOC overflow" add -mminimal-toc to
6741      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6742      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6743
6744      archive_cmds=''
6745      hardcode_direct=yes
6746      hardcode_libdir_separator=':'
6747      link_all_deplibs=yes
6748
6749      if test "$GCC" = yes; then
6750	case $host_os in aix4.012|aix4.012.*)
6751	# We only want to do this on AIX 4.2 and lower, the check
6752	# below for broken collect2 doesn't work under 4.3+
6753	  collect2name=`${CC} -print-prog-name=collect2`
6754	  if test -f "$collect2name" && \
6755  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6756	  then
6757  	  # We have reworked collect2
6758  	  hardcode_direct=yes
6759	  else
6760  	  # We have old collect2
6761  	  hardcode_direct=unsupported
6762  	  # It fails to find uninstalled libraries when the uninstalled
6763  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6764  	  # to unsupported forces relinking
6765  	  hardcode_minus_L=yes
6766  	  hardcode_libdir_flag_spec='-L$libdir'
6767  	  hardcode_libdir_separator=
6768	  fi
6769	esac
6770	shared_flag='-shared'
6771      else
6772	# not using gcc
6773	if test "$host_cpu" = ia64; then
6774  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6775  	# chokes on -Wl,-G. The following line is correct:
6776	  shared_flag='-G'
6777	else
6778  	if test "$aix_use_runtimelinking" = yes; then
6779	    shared_flag='${wl}-G'
6780	  else
6781	    shared_flag='${wl}-bM:SRE'
6782  	fi
6783	fi
6784      fi
6785
6786      # It seems that -bexpall does not export symbols beginning with
6787      # underscore (_), so it is better to generate a list of symbols to export.
6788      always_export_symbols=yes
6789      if test "$aix_use_runtimelinking" = yes; then
6790	# Warning - without using the other runtime loading flags (-brtl),
6791	# -berok will link without error, but may produce a broken library.
6792	allow_undefined_flag='-berok'
6793       # Determine the default libpath from the value encoded in an empty executable.
6794       cat >conftest.$ac_ext <<_ACEOF
6795/* confdefs.h.  */
6796_ACEOF
6797cat confdefs.h >>conftest.$ac_ext
6798cat >>conftest.$ac_ext <<_ACEOF
6799/* end confdefs.h.  */
6800
6801int
6802main ()
6803{
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811  (eval $ac_link) 2>conftest.er1
6812  ac_status=$?
6813  grep -v '^ *+' conftest.er1 >conftest.err
6814  rm -f conftest.er1
6815  cat conftest.err >&5
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); } &&
6818	 { ac_try='test -z "$ac_c_werror_flag"
6819			 || test ! -s conftest.err'
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); }; } &&
6825	 { ac_try='test -s conftest$ac_exeext'
6826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827  (eval $ac_try) 2>&5
6828  ac_status=$?
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); }; }; then
6831
6832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6833}'`
6834# Check for a 64-bit object if we didn't find anything.
6835if 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; }
6836}'`; fi
6837else
6838  echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841fi
6842rm -f conftest.err conftest.$ac_objext \
6843      conftest$ac_exeext conftest.$ac_ext
6844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6845
6846       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6848       else
6849	if test "$host_cpu" = ia64; then
6850	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6851	  allow_undefined_flag="-z nodefs"
6852	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6853	else
6854	 # Determine the default libpath from the value encoded in an empty executable.
6855	 cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h.  */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h.  */
6861
6862int
6863main ()
6864{
6865
6866  ;
6867  return 0;
6868}
6869_ACEOF
6870rm -f conftest.$ac_objext conftest$ac_exeext
6871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872  (eval $ac_link) 2>conftest.er1
6873  ac_status=$?
6874  grep -v '^ *+' conftest.er1 >conftest.err
6875  rm -f conftest.er1
6876  cat conftest.err >&5
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); } &&
6879	 { ac_try='test -z "$ac_c_werror_flag"
6880			 || test ! -s conftest.err'
6881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882  (eval $ac_try) 2>&5
6883  ac_status=$?
6884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885  (exit $ac_status); }; } &&
6886	 { ac_try='test -s conftest$ac_exeext'
6887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888  (eval $ac_try) 2>&5
6889  ac_status=$?
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); }; }; then
6892
6893aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6894}'`
6895# Check for a 64-bit object if we didn't find anything.
6896if 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; }
6897}'`; fi
6898else
6899  echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902fi
6903rm -f conftest.err conftest.$ac_objext \
6904      conftest$ac_exeext conftest.$ac_ext
6905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6906
6907	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6908	  # Warning - without using the other run time loading flags,
6909	  # -berok will link without error, but may produce a broken library.
6910	  no_undefined_flag=' ${wl}-bernotok'
6911	  allow_undefined_flag=' ${wl}-berok'
6912	  # -bexpall does not export symbols beginning with underscore (_)
6913	  always_export_symbols=yes
6914	  # Exported symbols can be pulled into shared objects from archives
6915	  whole_archive_flag_spec=' '
6916	  archive_cmds_need_lc=yes
6917	  # This is similar to how AIX traditionally builds it's shared libraries.
6918	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6919	fi
6920      fi
6921      ;;
6922
6923    amigaos*)
6924      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)'
6925      hardcode_libdir_flag_spec='-L$libdir'
6926      hardcode_minus_L=yes
6927      # see comment about different semantics on the GNU ld section
6928      ld_shlibs=no
6929      ;;
6930
6931    bsdi[45]*)
6932      export_dynamic_flag_spec=-rdynamic
6933      ;;
6934
6935    cygwin* | mingw* | pw32*)
6936      # When not using gcc, we currently assume that we are using
6937      # Microsoft Visual C++.
6938      # hardcode_libdir_flag_spec is actually meaningless, as there is
6939      # no search path for DLLs.
6940      hardcode_libdir_flag_spec=' '
6941      allow_undefined_flag=unsupported
6942      # Tell ltmain to make .lib files, not .a files.
6943      libext=lib
6944      # Tell ltmain to make .dll files, not .so files.
6945      shrext_cmds=".dll"
6946      # FIXME: Setting linknames here is a bad hack.
6947      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6948      # The linker will automatically build a .lib file if we build a DLL.
6949      old_archive_From_new_cmds='true'
6950      # FIXME: Should let the user specify the lib program.
6951      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6952      fix_srcfile_path='`cygpath -w "$srcfile"`'
6953      enable_shared_with_static_runtimes=yes
6954      ;;
6955
6956    darwin* | rhapsody*)
6957      case "$host_os" in
6958        rhapsody* | darwin1.[012])
6959         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6960         ;;
6961       *) # Darwin 1.3 on
6962         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6963           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6964         else
6965           case ${MACOSX_DEPLOYMENT_TARGET} in
6966             10.[012])
6967               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6968               ;;
6969             10.*)
6970               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6971               ;;
6972           esac
6973         fi
6974         ;;
6975      esac
6976      archive_cmds_need_lc=no
6977      hardcode_direct=no
6978      hardcode_automatic=yes
6979      hardcode_shlibpath_var=unsupported
6980      whole_archive_flag_spec=''
6981      link_all_deplibs=yes
6982    if test "$GCC" = yes ; then
6983    	output_verbose_link_cmd='echo'
6984        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6985      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6986      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6987      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}'
6988      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}'
6989    else
6990      case "$cc_basename" in
6991        xlc*)
6992         output_verbose_link_cmd='echo'
6993         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6994         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6995          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6996         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}'
6997          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}'
6998          ;;
6999       *)
7000         ld_shlibs=no
7001          ;;
7002      esac
7003    fi
7004      ;;
7005
7006    dgux*)
7007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7008      hardcode_libdir_flag_spec='-L$libdir'
7009      hardcode_shlibpath_var=no
7010      ;;
7011
7012    freebsd1*)
7013      ld_shlibs=no
7014      ;;
7015
7016    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7017    # support.  Future versions do this automatically, but an explicit c++rt0.o
7018    # does not break anything, and helps significantly (at the cost of a little
7019    # extra space).
7020    freebsd2.2*)
7021      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7022      hardcode_libdir_flag_spec='-R$libdir'
7023      hardcode_direct=yes
7024      hardcode_shlibpath_var=no
7025      ;;
7026
7027    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7028    freebsd2*)
7029      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7030      hardcode_direct=yes
7031      hardcode_minus_L=yes
7032      hardcode_shlibpath_var=no
7033      ;;
7034
7035    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7036    freebsd* | kfreebsd*-gnu)
7037      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7038      hardcode_libdir_flag_spec='-R$libdir'
7039      hardcode_direct=yes
7040      hardcode_shlibpath_var=no
7041      ;;
7042
7043    hpux9*)
7044      if test "$GCC" = yes; then
7045	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'
7046      else
7047	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'
7048      fi
7049      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7050      hardcode_libdir_separator=:
7051      hardcode_direct=yes
7052
7053      # hardcode_minus_L: Not really in the search PATH,
7054      # but as the default location of the library.
7055      hardcode_minus_L=yes
7056      export_dynamic_flag_spec='${wl}-E'
7057      ;;
7058
7059    hpux10* | hpux11*)
7060      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7061	case "$host_cpu" in
7062	hppa*64*|ia64*)
7063	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7064	  ;;
7065	*)
7066	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7067	  ;;
7068	esac
7069      else
7070	case "$host_cpu" in
7071	hppa*64*|ia64*)
7072	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7073	  ;;
7074	*)
7075	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7076	  ;;
7077	esac
7078      fi
7079      if test "$with_gnu_ld" = no; then
7080	case "$host_cpu" in
7081	hppa*64*)
7082	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083	  hardcode_libdir_flag_spec_ld='+b $libdir'
7084	  hardcode_libdir_separator=:
7085	  hardcode_direct=no
7086	  hardcode_shlibpath_var=no
7087	  ;;
7088	ia64*)
7089	  hardcode_libdir_flag_spec='-L$libdir'
7090	  hardcode_direct=no
7091	  hardcode_shlibpath_var=no
7092
7093	  # hardcode_minus_L: Not really in the search PATH,
7094	  # but as the default location of the library.
7095	  hardcode_minus_L=yes
7096	  ;;
7097	*)
7098	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7099	  hardcode_libdir_separator=:
7100	  hardcode_direct=yes
7101	  export_dynamic_flag_spec='${wl}-E'
7102
7103	  # hardcode_minus_L: Not really in the search PATH,
7104	  # but as the default location of the library.
7105	  hardcode_minus_L=yes
7106	  ;;
7107	esac
7108      fi
7109      ;;
7110
7111    irix5* | irix6* | nonstopux*)
7112      if test "$GCC" = yes; then
7113	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'
7114      else
7115	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'
7116	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7117      fi
7118      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7119      hardcode_libdir_separator=:
7120      link_all_deplibs=yes
7121      ;;
7122
7123    netbsd*)
7124      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7125	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7126      else
7127	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7128      fi
7129      hardcode_libdir_flag_spec='-R$libdir'
7130      hardcode_direct=yes
7131      hardcode_shlibpath_var=no
7132      ;;
7133
7134    newsos6)
7135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7136      hardcode_direct=yes
7137      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7138      hardcode_libdir_separator=:
7139      hardcode_shlibpath_var=no
7140      ;;
7141
7142    openbsd*)
7143      hardcode_direct=yes
7144      hardcode_shlibpath_var=no
7145      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7147	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7148	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149	export_dynamic_flag_spec='${wl}-E'
7150      else
7151       case $host_os in
7152	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7153	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7154	   hardcode_libdir_flag_spec='-R$libdir'
7155	   ;;
7156	 *)
7157	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7158	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7159	   ;;
7160       esac
7161      fi
7162      ;;
7163
7164    os2*)
7165      hardcode_libdir_flag_spec='-L$libdir'
7166      hardcode_minus_L=yes
7167      allow_undefined_flag=unsupported
7168      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'
7169      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7170      ;;
7171
7172    osf3*)
7173      if test "$GCC" = yes; then
7174	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7175	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'
7176      else
7177	allow_undefined_flag=' -expect_unresolved \*'
7178	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'
7179      fi
7180      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181      hardcode_libdir_separator=:
7182      ;;
7183
7184    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7185      if test "$GCC" = yes; then
7186	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7187	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'
7188	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7189      else
7190	allow_undefined_flag=' -expect_unresolved \*'
7191	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'
7192	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7193	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7194
7195	# Both c and cxx compiler support -rpath directly
7196	hardcode_libdir_flag_spec='-rpath $libdir'
7197      fi
7198      hardcode_libdir_separator=:
7199      ;;
7200
7201    sco3.2v5*)
7202      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203      hardcode_shlibpath_var=no
7204      export_dynamic_flag_spec='${wl}-Bexport'
7205      runpath_var=LD_RUN_PATH
7206      hardcode_runpath_var=yes
7207      ;;
7208
7209    solaris*)
7210      no_undefined_flag=' -z text'
7211      if test "$GCC" = yes; then
7212	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7213	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7214	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7215      else
7216	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7217	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7218  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7219      fi
7220      hardcode_libdir_flag_spec='-R$libdir'
7221      hardcode_shlibpath_var=no
7222      case $host_os in
7223      solaris2.[0-5] | solaris2.[0-5].*) ;;
7224      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7225	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7226      esac
7227      link_all_deplibs=yes
7228      ;;
7229
7230    sunos4*)
7231      if test "x$host_vendor" = xsequent; then
7232	# Use $CC to link under sequent, because it throws in some extra .o
7233	# files that make .init and .fini sections work.
7234	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7235      else
7236	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7237      fi
7238      hardcode_libdir_flag_spec='-L$libdir'
7239      hardcode_direct=yes
7240      hardcode_minus_L=yes
7241      hardcode_shlibpath_var=no
7242      ;;
7243
7244    sysv4)
7245      case $host_vendor in
7246	sni)
7247	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7248	  hardcode_direct=yes # is this really true???
7249	;;
7250	siemens)
7251	  ## LD is ld it makes a PLAMLIB
7252	  ## CC just makes a GrossModule.
7253	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7254	  reload_cmds='$CC -r -o $output$reload_objs'
7255	  hardcode_direct=no
7256        ;;
7257	motorola)
7258	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7259	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7260	;;
7261      esac
7262      runpath_var='LD_RUN_PATH'
7263      hardcode_shlibpath_var=no
7264      ;;
7265
7266    sysv4.3*)
7267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268      hardcode_shlibpath_var=no
7269      export_dynamic_flag_spec='-Bexport'
7270      ;;
7271
7272    sysv4*MP*)
7273      if test -d /usr/nec; then
7274	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275	hardcode_shlibpath_var=no
7276	runpath_var=LD_RUN_PATH
7277	hardcode_runpath_var=yes
7278	ld_shlibs=yes
7279      fi
7280      ;;
7281
7282    sysv4.2uw2*)
7283      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7284      hardcode_direct=yes
7285      hardcode_minus_L=no
7286      hardcode_shlibpath_var=no
7287      hardcode_runpath_var=yes
7288      runpath_var=LD_RUN_PATH
7289      ;;
7290
7291   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7292      no_undefined_flag='${wl}-z ${wl}text'
7293      if test "$GCC" = yes; then
7294	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7295      else
7296	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7297      fi
7298      runpath_var='LD_RUN_PATH'
7299      hardcode_shlibpath_var=no
7300      ;;
7301
7302    sysv5*)
7303      no_undefined_flag=' -z text'
7304      # $CC -shared without GNU ld will not create a library from C++
7305      # object files and a static libstdc++, better avoid it by now
7306      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7307      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7308  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7309      hardcode_libdir_flag_spec=
7310      hardcode_shlibpath_var=no
7311      runpath_var='LD_RUN_PATH'
7312      ;;
7313
7314    uts4*)
7315      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316      hardcode_libdir_flag_spec='-L$libdir'
7317      hardcode_shlibpath_var=no
7318      ;;
7319
7320    *)
7321      ld_shlibs=no
7322      ;;
7323    esac
7324  fi
7325
7326echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7327echo "${ECHO_T}$ld_shlibs" >&6
7328test "$ld_shlibs" = no && can_build_shared=no
7329
7330variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7331if test "$GCC" = yes; then
7332  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7333fi
7334
7335#
7336# Do we need to explicitly link libc?
7337#
7338case "x$archive_cmds_need_lc" in
7339x|xyes)
7340  # Assume -lc should be added
7341  archive_cmds_need_lc=yes
7342
7343  if test "$enable_shared" = yes && test "$GCC" = yes; then
7344    case $archive_cmds in
7345    *'~'*)
7346      # FIXME: we may have to deal with multi-command sequences.
7347      ;;
7348    '$CC '*)
7349      # Test whether the compiler implicitly links with -lc since on some
7350      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7351      # to ld, don't add -lc before -lgcc.
7352      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7353echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7354      $rm conftest*
7355      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7356
7357      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358  (eval $ac_compile) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); } 2>conftest.err; then
7362        soname=conftest
7363        lib=conftest
7364        libobjs=conftest.$ac_objext
7365        deplibs=
7366        wl=$lt_prog_compiler_wl
7367        compiler_flags=-v
7368        linker_flags=-v
7369        verstring=
7370        output_objdir=.
7371        libname=conftest
7372        lt_save_allow_undefined_flag=$allow_undefined_flag
7373        allow_undefined_flag=
7374        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7375  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7376  ac_status=$?
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); }
7379        then
7380	  archive_cmds_need_lc=no
7381        else
7382	  archive_cmds_need_lc=yes
7383        fi
7384        allow_undefined_flag=$lt_save_allow_undefined_flag
7385      else
7386        cat conftest.err 1>&5
7387      fi
7388      $rm conftest*
7389      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7390echo "${ECHO_T}$archive_cmds_need_lc" >&6
7391      ;;
7392    esac
7393  fi
7394  ;;
7395esac
7396
7397echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7398echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7399library_names_spec=
7400libname_spec='lib$name'
7401soname_spec=
7402shrext_cmds=".so"
7403postinstall_cmds=
7404postuninstall_cmds=
7405finish_cmds=
7406finish_eval=
7407shlibpath_var=
7408shlibpath_overrides_runpath=unknown
7409version_type=none
7410dynamic_linker="$host_os ld.so"
7411sys_lib_dlsearch_path_spec="/lib /usr/lib"
7412if test "$GCC" = yes; then
7413  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7414  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7415    # if the path contains ";" then we assume it to be the separator
7416    # otherwise default to the standard path separator (i.e. ":") - it is
7417    # assumed that no part of a normal pathname contains ";" but that should
7418    # okay in the real world where ";" in dirpaths is itself problematic.
7419    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7420  else
7421    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7422  fi
7423else
7424  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7425fi
7426need_lib_prefix=unknown
7427hardcode_into_libs=no
7428
7429# when you set need_version to no, make sure it does not cause -set_version
7430# flags to be left without arguments
7431need_version=unknown
7432
7433case $host_os in
7434aix3*)
7435  version_type=linux
7436  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7437  shlibpath_var=LIBPATH
7438
7439  # AIX 3 has no versioning support, so we append a major version to the name.
7440  soname_spec='${libname}${release}${shared_ext}$major'
7441  ;;
7442
7443aix4* | aix5*)
7444  version_type=linux
7445  need_lib_prefix=no
7446  need_version=no
7447  hardcode_into_libs=yes
7448  if test "$host_cpu" = ia64; then
7449    # AIX 5 supports IA64
7450    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7451    shlibpath_var=LD_LIBRARY_PATH
7452  else
7453    # With GCC up to 2.95.x, collect2 would create an import file
7454    # for dependence libraries.  The import file would start with
7455    # the line `#! .'.  This would cause the generated library to
7456    # depend on `.', always an invalid library.  This was fixed in
7457    # development snapshots of GCC prior to 3.0.
7458    case $host_os in
7459      aix4 | aix4.[01] | aix4.[01].*)
7460      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7461	   echo ' yes '
7462	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7463	:
7464      else
7465	can_build_shared=no
7466      fi
7467      ;;
7468    esac
7469    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7470    # soname into executable. Probably we can add versioning support to
7471    # collect2, so additional links can be useful in future.
7472    if test "$aix_use_runtimelinking" = yes; then
7473      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7474      # instead of lib<name>.a to let people know that these are not
7475      # typical AIX shared libraries.
7476      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7477    else
7478      # We preserve .a as extension for shared libraries through AIX4.2
7479      # and later when we are not doing run time linking.
7480      library_names_spec='${libname}${release}.a $libname.a'
7481      soname_spec='${libname}${release}${shared_ext}$major'
7482    fi
7483    shlibpath_var=LIBPATH
7484  fi
7485  ;;
7486
7487amigaos*)
7488  library_names_spec='$libname.ixlibrary $libname.a'
7489  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7490  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'
7491  ;;
7492
7493beos*)
7494  library_names_spec='${libname}${shared_ext}'
7495  dynamic_linker="$host_os ld.so"
7496  shlibpath_var=LIBRARY_PATH
7497  ;;
7498
7499bsdi[45]*)
7500  version_type=linux
7501  need_version=no
7502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503  soname_spec='${libname}${release}${shared_ext}$major'
7504  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7505  shlibpath_var=LD_LIBRARY_PATH
7506  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7507  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7508  # the default ld.so.conf also contains /usr/contrib/lib and
7509  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7510  # libtool to hard-code these into programs
7511  ;;
7512
7513cygwin* | mingw* | pw32*)
7514  version_type=windows
7515  shrext_cmds=".dll"
7516  need_version=no
7517  need_lib_prefix=no
7518
7519  case $GCC,$host_os in
7520  yes,cygwin* | yes,mingw* | yes,pw32*)
7521    library_names_spec='$libname.dll.a'
7522    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7523    postinstall_cmds='base_file=`basename \${file}`~
7524      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7525      dldir=$destdir/`dirname \$dlpath`~
7526      test -d \$dldir || mkdir -p \$dldir~
7527      $install_prog $dir/$dlname \$dldir/$dlname'
7528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7529      dlpath=$dir/\$dldll~
7530       $rm \$dlpath'
7531    shlibpath_overrides_runpath=yes
7532
7533    case $host_os in
7534    cygwin*)
7535      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7536      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7537      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7538      ;;
7539    mingw*)
7540      # MinGW DLLs use traditional 'lib' prefix
7541      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7542      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7543      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7544        # It is most probably a Windows format PATH printed by
7545        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7546        # path with ; separators, and with drive letters. We can handle the
7547        # drive letters (cygwin fileutils understands them), so leave them,
7548        # especially as we might pass files found there to a mingw objdump,
7549        # which wouldn't understand a cygwinified path. Ahh.
7550        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7551      else
7552        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7553      fi
7554      ;;
7555    pw32*)
7556      # pw32 DLLs use 'pw' prefix rather than 'lib'
7557      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7558      ;;
7559    esac
7560    ;;
7561
7562  *)
7563    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7564    ;;
7565  esac
7566  dynamic_linker='Win32 ld.exe'
7567  # FIXME: first we should search . and the directory the executable is in
7568  shlibpath_var=PATH
7569  ;;
7570
7571darwin* | rhapsody*)
7572  dynamic_linker="$host_os dyld"
7573  version_type=darwin
7574  need_lib_prefix=no
7575  need_version=no
7576  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7577  soname_spec='${libname}${release}${major}$shared_ext'
7578  shlibpath_overrides_runpath=yes
7579  shlibpath_var=DYLD_LIBRARY_PATH
7580  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7581  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7582  if test "$GCC" = yes; then
7583    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"`
7584  else
7585    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7586  fi
7587  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7588  ;;
7589
7590dgux*)
7591  version_type=linux
7592  need_lib_prefix=no
7593  need_version=no
7594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7595  soname_spec='${libname}${release}${shared_ext}$major'
7596  shlibpath_var=LD_LIBRARY_PATH
7597  ;;
7598
7599freebsd1*)
7600  dynamic_linker=no
7601  ;;
7602
7603kfreebsd*-gnu)
7604  version_type=linux
7605  need_lib_prefix=no
7606  need_version=no
7607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7608  soname_spec='${libname}${release}${shared_ext}$major'
7609  shlibpath_var=LD_LIBRARY_PATH
7610  shlibpath_overrides_runpath=no
7611  hardcode_into_libs=yes
7612  dynamic_linker='GNU ld.so'
7613  ;;
7614
7615freebsd*)
7616  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7617  version_type=freebsd-$objformat
7618  case $version_type in
7619    freebsd-elf*)
7620      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7621      need_version=no
7622      need_lib_prefix=no
7623      ;;
7624    freebsd-*)
7625      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7626      need_version=yes
7627      ;;
7628  esac
7629  shlibpath_var=LD_LIBRARY_PATH
7630  case $host_os in
7631  freebsd2*)
7632    shlibpath_overrides_runpath=yes
7633    ;;
7634  freebsd3.01* | freebsdelf3.01*)
7635    shlibpath_overrides_runpath=yes
7636    hardcode_into_libs=yes
7637    ;;
7638  *) # from 3.2 on
7639    shlibpath_overrides_runpath=no
7640    hardcode_into_libs=yes
7641    ;;
7642  esac
7643  ;;
7644
7645gnu*)
7646  version_type=linux
7647  need_lib_prefix=no
7648  need_version=no
7649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7650  soname_spec='${libname}${release}${shared_ext}$major'
7651  shlibpath_var=LD_LIBRARY_PATH
7652  hardcode_into_libs=yes
7653  ;;
7654
7655hpux9* | hpux10* | hpux11*)
7656  # Give a soname corresponding to the major version so that dld.sl refuses to
7657  # link against other versions.
7658  version_type=sunos
7659  need_lib_prefix=no
7660  need_version=no
7661  case "$host_cpu" in
7662  ia64*)
7663    shrext_cmds='.so'
7664    hardcode_into_libs=yes
7665    dynamic_linker="$host_os dld.so"
7666    shlibpath_var=LD_LIBRARY_PATH
7667    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7668    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669    soname_spec='${libname}${release}${shared_ext}$major'
7670    if test "X$HPUX_IA64_MODE" = X32; then
7671      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7672    else
7673      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7674    fi
7675    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7676    ;;
7677   hppa*64*)
7678     shrext_cmds='.sl'
7679     hardcode_into_libs=yes
7680     dynamic_linker="$host_os dld.sl"
7681     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7682     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684     soname_spec='${libname}${release}${shared_ext}$major'
7685     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7686     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7687     ;;
7688   *)
7689    shrext_cmds='.sl'
7690    dynamic_linker="$host_os dld.sl"
7691    shlibpath_var=SHLIB_PATH
7692    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7693    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7694    soname_spec='${libname}${release}${shared_ext}$major'
7695    ;;
7696  esac
7697  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7698  postinstall_cmds='chmod 555 $lib'
7699  ;;
7700
7701irix5* | irix6* | nonstopux*)
7702  case $host_os in
7703    nonstopux*) version_type=nonstopux ;;
7704    *)
7705	if test "$lt_cv_prog_gnu_ld" = yes; then
7706		version_type=linux
7707	else
7708		version_type=irix
7709	fi ;;
7710  esac
7711  need_lib_prefix=no
7712  need_version=no
7713  soname_spec='${libname}${release}${shared_ext}$major'
7714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7715  case $host_os in
7716  irix5* | nonstopux*)
7717    libsuff= shlibsuff=
7718    ;;
7719  *)
7720    case $LD in # libtool.m4 will add one of these switches to LD
7721    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7722      libsuff= shlibsuff= libmagic=32-bit;;
7723    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7724      libsuff=32 shlibsuff=N32 libmagic=N32;;
7725    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7726      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7727    *) libsuff= shlibsuff= libmagic=never-match;;
7728    esac
7729    ;;
7730  esac
7731  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7732  shlibpath_overrides_runpath=no
7733  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7734  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7735  hardcode_into_libs=yes
7736  ;;
7737
7738# No shared lib support for Linux oldld, aout, or coff.
7739linux*oldld* | linux*aout* | linux*coff*)
7740  dynamic_linker=no
7741  ;;
7742
7743# This must be Linux ELF.
7744linux*)
7745  version_type=linux
7746  need_lib_prefix=no
7747  need_version=no
7748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7749  soname_spec='${libname}${release}${shared_ext}$major'
7750  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7751  shlibpath_var=LD_LIBRARY_PATH
7752  shlibpath_overrides_runpath=no
7753  # This implies no fast_install, which is unacceptable.
7754  # Some rework will be needed to allow for fast_install
7755  # before this can be enabled.
7756  hardcode_into_libs=yes
7757
7758  # Append ld.so.conf contents to the search path
7759  if test -f /etc/ld.so.conf; then
7760    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7761    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7762  fi
7763
7764  # We used to test for /lib/ld.so.1 and disable shared libraries on
7765  # powerpc, because MkLinux only supported shared libraries with the
7766  # GNU dynamic linker.  Since this was broken with cross compilers,
7767  # most powerpc-linux boxes support dynamic linking these days and
7768  # people can always --disable-shared, the test was removed, and we
7769  # assume the GNU/Linux dynamic linker is in use.
7770  dynamic_linker='GNU/Linux ld.so'
7771  ;;
7772
7773knetbsd*-gnu)
7774  version_type=linux
7775  need_lib_prefix=no
7776  need_version=no
7777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7778  soname_spec='${libname}${release}${shared_ext}$major'
7779  shlibpath_var=LD_LIBRARY_PATH
7780  shlibpath_overrides_runpath=no
7781  hardcode_into_libs=yes
7782  dynamic_linker='GNU ld.so'
7783  ;;
7784
7785netbsd*)
7786  version_type=sunos
7787  need_lib_prefix=no
7788  need_version=no
7789  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792    dynamic_linker='NetBSD (a.out) ld.so'
7793  else
7794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7795    soname_spec='${libname}${release}${shared_ext}$major'
7796    dynamic_linker='NetBSD ld.elf_so'
7797  fi
7798  shlibpath_var=LD_LIBRARY_PATH
7799  shlibpath_overrides_runpath=yes
7800  hardcode_into_libs=yes
7801  ;;
7802
7803newsos6)
7804  version_type=linux
7805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806  shlibpath_var=LD_LIBRARY_PATH
7807  shlibpath_overrides_runpath=yes
7808  ;;
7809
7810nto-qnx*)
7811  version_type=linux
7812  need_lib_prefix=no
7813  need_version=no
7814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815  soname_spec='${libname}${release}${shared_ext}$major'
7816  shlibpath_var=LD_LIBRARY_PATH
7817  shlibpath_overrides_runpath=yes
7818  ;;
7819
7820openbsd*)
7821  version_type=sunos
7822  need_lib_prefix=no
7823  need_version=no
7824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7825  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7826  shlibpath_var=LD_LIBRARY_PATH
7827  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7828    case $host_os in
7829      openbsd2.[89] | openbsd2.[89].*)
7830	shlibpath_overrides_runpath=no
7831	;;
7832      *)
7833	shlibpath_overrides_runpath=yes
7834	;;
7835      esac
7836  else
7837    shlibpath_overrides_runpath=yes
7838  fi
7839  ;;
7840
7841os2*)
7842  libname_spec='$name'
7843  shrext_cmds=".dll"
7844  need_lib_prefix=no
7845  library_names_spec='$libname${shared_ext} $libname.a'
7846  dynamic_linker='OS/2 ld.exe'
7847  shlibpath_var=LIBPATH
7848  ;;
7849
7850osf3* | osf4* | osf5*)
7851  version_type=osf
7852  need_lib_prefix=no
7853  need_version=no
7854  soname_spec='${libname}${release}${shared_ext}$major'
7855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856  shlibpath_var=LD_LIBRARY_PATH
7857  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7858  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7859  ;;
7860
7861sco3.2v5*)
7862  version_type=osf
7863  soname_spec='${libname}${release}${shared_ext}$major'
7864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865  shlibpath_var=LD_LIBRARY_PATH
7866  ;;
7867
7868solaris*)
7869  version_type=linux
7870  need_lib_prefix=no
7871  need_version=no
7872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873  soname_spec='${libname}${release}${shared_ext}$major'
7874  shlibpath_var=LD_LIBRARY_PATH
7875  shlibpath_overrides_runpath=yes
7876  hardcode_into_libs=yes
7877  # ldd complains unless libraries are executable
7878  postinstall_cmds='chmod +x $lib'
7879  ;;
7880
7881sunos4*)
7882  version_type=sunos
7883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7884  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7885  shlibpath_var=LD_LIBRARY_PATH
7886  shlibpath_overrides_runpath=yes
7887  if test "$with_gnu_ld" = yes; then
7888    need_lib_prefix=no
7889  fi
7890  need_version=yes
7891  ;;
7892
7893sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7894  version_type=linux
7895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896  soname_spec='${libname}${release}${shared_ext}$major'
7897  shlibpath_var=LD_LIBRARY_PATH
7898  case $host_vendor in
7899    sni)
7900      shlibpath_overrides_runpath=no
7901      need_lib_prefix=no
7902      export_dynamic_flag_spec='${wl}-Blargedynsym'
7903      runpath_var=LD_RUN_PATH
7904      ;;
7905    siemens)
7906      need_lib_prefix=no
7907      ;;
7908    motorola)
7909      need_lib_prefix=no
7910      need_version=no
7911      shlibpath_overrides_runpath=no
7912      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7913      ;;
7914  esac
7915  ;;
7916
7917sysv4*MP*)
7918  if test -d /usr/nec ;then
7919    version_type=linux
7920    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7921    soname_spec='$libname${shared_ext}.$major'
7922    shlibpath_var=LD_LIBRARY_PATH
7923  fi
7924  ;;
7925
7926uts4*)
7927  version_type=linux
7928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929  soname_spec='${libname}${release}${shared_ext}$major'
7930  shlibpath_var=LD_LIBRARY_PATH
7931  ;;
7932
7933*)
7934  dynamic_linker=no
7935  ;;
7936esac
7937echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7938echo "${ECHO_T}$dynamic_linker" >&6
7939test "$dynamic_linker" = no && can_build_shared=no
7940
7941echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7942echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7943hardcode_action=
7944if test -n "$hardcode_libdir_flag_spec" || \
7945   test -n "$runpath_var" || \
7946   test "X$hardcode_automatic" = "Xyes" ; then
7947
7948  # We can hardcode non-existant directories.
7949  if test "$hardcode_direct" != no &&
7950     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7951     # have to relink, otherwise we might link with an installed library
7952     # when we should be linking with a yet-to-be-installed one
7953     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7954     test "$hardcode_minus_L" != no; then
7955    # Linking always hardcodes the temporary library directory.
7956    hardcode_action=relink
7957  else
7958    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7959    hardcode_action=immediate
7960  fi
7961else
7962  # We cannot hardcode anything, or else we can only hardcode existing
7963  # directories.
7964  hardcode_action=unsupported
7965fi
7966echo "$as_me:$LINENO: result: $hardcode_action" >&5
7967echo "${ECHO_T}$hardcode_action" >&6
7968
7969if test "$hardcode_action" = relink; then
7970  # Fast installation is not supported
7971  enable_fast_install=no
7972elif test "$shlibpath_overrides_runpath" = yes ||
7973     test "$enable_shared" = no; then
7974  # Fast installation is not necessary
7975  enable_fast_install=needless
7976fi
7977
7978striplib=
7979old_striplib=
7980echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7981echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7982if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7983  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7984  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7985  echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987else
7988# FIXME - insert some real tests, host_os isn't really good enough
7989  case $host_os in
7990   darwin*)
7991       if test -n "$STRIP" ; then
7992         striplib="$STRIP -x"
7993         echo "$as_me:$LINENO: result: yes" >&5
7994echo "${ECHO_T}yes" >&6
7995       else
7996  echo "$as_me:$LINENO: result: no" >&5
7997echo "${ECHO_T}no" >&6
7998fi
7999       ;;
8000   *)
8001  echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003    ;;
8004  esac
8005fi
8006
8007if test "x$enable_dlopen" != xyes; then
8008  enable_dlopen=unknown
8009  enable_dlopen_self=unknown
8010  enable_dlopen_self_static=unknown
8011else
8012  lt_cv_dlopen=no
8013  lt_cv_dlopen_libs=
8014
8015  case $host_os in
8016  beos*)
8017    lt_cv_dlopen="load_add_on"
8018    lt_cv_dlopen_libs=
8019    lt_cv_dlopen_self=yes
8020    ;;
8021
8022  mingw* | pw32*)
8023    lt_cv_dlopen="LoadLibrary"
8024    lt_cv_dlopen_libs=
8025   ;;
8026
8027  cygwin*)
8028    lt_cv_dlopen="dlopen"
8029    lt_cv_dlopen_libs=
8030   ;;
8031
8032  darwin*)
8033  # if libdl is installed we need to link against it
8034    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8035echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8036if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8037  echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039  ac_check_lib_save_LIBS=$LIBS
8040LIBS="-ldl  $LIBS"
8041cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h.  */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h.  */
8047
8048/* Override any gcc2 internal prototype to avoid an error.  */
8049#ifdef __cplusplus
8050extern "C"
8051#endif
8052/* We use char because int might match the return type of a gcc2
8053   builtin and then its argument prototype would still apply.  */
8054char dlopen ();
8055int
8056main ()
8057{
8058dlopen ();
8059  ;
8060  return 0;
8061}
8062_ACEOF
8063rm -f conftest.$ac_objext conftest$ac_exeext
8064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065  (eval $ac_link) 2>conftest.er1
8066  ac_status=$?
8067  grep -v '^ *+' conftest.er1 >conftest.err
8068  rm -f conftest.er1
8069  cat conftest.err >&5
8070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071  (exit $ac_status); } &&
8072	 { ac_try='test -z "$ac_c_werror_flag"
8073			 || test ! -s conftest.err'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; } &&
8079	 { ac_try='test -s conftest$ac_exeext'
8080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081  (eval $ac_try) 2>&5
8082  ac_status=$?
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); }; }; then
8085  ac_cv_lib_dl_dlopen=yes
8086else
8087  echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090ac_cv_lib_dl_dlopen=no
8091fi
8092rm -f conftest.err conftest.$ac_objext \
8093      conftest$ac_exeext conftest.$ac_ext
8094LIBS=$ac_check_lib_save_LIBS
8095fi
8096echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8097echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8098if test $ac_cv_lib_dl_dlopen = yes; then
8099  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8100else
8101
8102    lt_cv_dlopen="dyld"
8103    lt_cv_dlopen_libs=
8104    lt_cv_dlopen_self=yes
8105
8106fi
8107
8108   ;;
8109
8110  *)
8111    echo "$as_me:$LINENO: checking for shl_load" >&5
8112echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8113if test "${ac_cv_func_shl_load+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116  cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h.  */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h.  */
8122/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8124#define shl_load innocuous_shl_load
8125
8126/* System header to define __stub macros and hopefully few prototypes,
8127    which can conflict with char shl_load (); below.
8128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129    <limits.h> exists even on freestanding compilers.  */
8130
8131#ifdef __STDC__
8132# include <limits.h>
8133#else
8134# include <assert.h>
8135#endif
8136
8137#undef shl_load
8138
8139/* Override any gcc2 internal prototype to avoid an error.  */
8140#ifdef __cplusplus
8141extern "C"
8142{
8143#endif
8144/* We use char because int might match the return type of a gcc2
8145   builtin and then its argument prototype would still apply.  */
8146char shl_load ();
8147/* The GNU C library defines this for functions which it implements
8148    to always fail with ENOSYS.  Some functions are actually named
8149    something starting with __ and the normal name is an alias.  */
8150#if defined (__stub_shl_load) || defined (__stub___shl_load)
8151choke me
8152#else
8153char (*f) () = shl_load;
8154#endif
8155#ifdef __cplusplus
8156}
8157#endif
8158
8159int
8160main ()
8161{
8162return f != shl_load;
8163  ;
8164  return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext conftest$ac_exeext
8168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169  (eval $ac_link) 2>conftest.er1
8170  ac_status=$?
8171  grep -v '^ *+' conftest.er1 >conftest.err
8172  rm -f conftest.er1
8173  cat conftest.err >&5
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); } &&
8176	 { ac_try='test -z "$ac_c_werror_flag"
8177			 || test ! -s conftest.err'
8178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179  (eval $ac_try) 2>&5
8180  ac_status=$?
8181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182  (exit $ac_status); }; } &&
8183	 { ac_try='test -s conftest$ac_exeext'
8184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185  (eval $ac_try) 2>&5
8186  ac_status=$?
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); }; }; then
8189  ac_cv_func_shl_load=yes
8190else
8191  echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194ac_cv_func_shl_load=no
8195fi
8196rm -f conftest.err conftest.$ac_objext \
8197      conftest$ac_exeext conftest.$ac_ext
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8200echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8201if test $ac_cv_func_shl_load = yes; then
8202  lt_cv_dlopen="shl_load"
8203else
8204  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8205echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8206if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8207  echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209  ac_check_lib_save_LIBS=$LIBS
8210LIBS="-ldld  $LIBS"
8211cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h.  */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h.  */
8217
8218/* Override any gcc2 internal prototype to avoid an error.  */
8219#ifdef __cplusplus
8220extern "C"
8221#endif
8222/* We use char because int might match the return type of a gcc2
8223   builtin and then its argument prototype would still apply.  */
8224char shl_load ();
8225int
8226main ()
8227{
8228shl_load ();
8229  ;
8230  return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext conftest$ac_exeext
8234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235  (eval $ac_link) 2>conftest.er1
8236  ac_status=$?
8237  grep -v '^ *+' conftest.er1 >conftest.err
8238  rm -f conftest.er1
8239  cat conftest.err >&5
8240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241  (exit $ac_status); } &&
8242	 { ac_try='test -z "$ac_c_werror_flag"
8243			 || test ! -s conftest.err'
8244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245  (eval $ac_try) 2>&5
8246  ac_status=$?
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); }; } &&
8249	 { ac_try='test -s conftest$ac_exeext'
8250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251  (eval $ac_try) 2>&5
8252  ac_status=$?
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); }; }; then
8255  ac_cv_lib_dld_shl_load=yes
8256else
8257  echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
8260ac_cv_lib_dld_shl_load=no
8261fi
8262rm -f conftest.err conftest.$ac_objext \
8263      conftest$ac_exeext conftest.$ac_ext
8264LIBS=$ac_check_lib_save_LIBS
8265fi
8266echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8267echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8268if test $ac_cv_lib_dld_shl_load = yes; then
8269  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8270else
8271  echo "$as_me:$LINENO: checking for dlopen" >&5
8272echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8273if test "${ac_cv_func_dlopen+set}" = set; then
8274  echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276  cat >conftest.$ac_ext <<_ACEOF
8277/* confdefs.h.  */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h.  */
8282/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8283   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8284#define dlopen innocuous_dlopen
8285
8286/* System header to define __stub macros and hopefully few prototypes,
8287    which can conflict with char dlopen (); below.
8288    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8289    <limits.h> exists even on freestanding compilers.  */
8290
8291#ifdef __STDC__
8292# include <limits.h>
8293#else
8294# include <assert.h>
8295#endif
8296
8297#undef dlopen
8298
8299/* Override any gcc2 internal prototype to avoid an error.  */
8300#ifdef __cplusplus
8301extern "C"
8302{
8303#endif
8304/* We use char because int might match the return type of a gcc2
8305   builtin and then its argument prototype would still apply.  */
8306char dlopen ();
8307/* The GNU C library defines this for functions which it implements
8308    to always fail with ENOSYS.  Some functions are actually named
8309    something starting with __ and the normal name is an alias.  */
8310#if defined (__stub_dlopen) || defined (__stub___dlopen)
8311choke me
8312#else
8313char (*f) () = dlopen;
8314#endif
8315#ifdef __cplusplus
8316}
8317#endif
8318
8319int
8320main ()
8321{
8322return f != dlopen;
8323  ;
8324  return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext conftest$ac_exeext
8328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329  (eval $ac_link) 2>conftest.er1
8330  ac_status=$?
8331  grep -v '^ *+' conftest.er1 >conftest.err
8332  rm -f conftest.er1
8333  cat conftest.err >&5
8334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335  (exit $ac_status); } &&
8336	 { ac_try='test -z "$ac_c_werror_flag"
8337			 || test ! -s conftest.err'
8338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339  (eval $ac_try) 2>&5
8340  ac_status=$?
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); }; } &&
8343	 { ac_try='test -s conftest$ac_exeext'
8344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345  (eval $ac_try) 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; }; then
8349  ac_cv_func_dlopen=yes
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_func_dlopen=no
8355fi
8356rm -f conftest.err conftest.$ac_objext \
8357      conftest$ac_exeext conftest.$ac_ext
8358fi
8359echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8360echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8361if test $ac_cv_func_dlopen = yes; then
8362  lt_cv_dlopen="dlopen"
8363else
8364  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8365echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8366if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8367  echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369  ac_check_lib_save_LIBS=$LIBS
8370LIBS="-ldl  $LIBS"
8371cat >conftest.$ac_ext <<_ACEOF
8372/* confdefs.h.  */
8373_ACEOF
8374cat confdefs.h >>conftest.$ac_ext
8375cat >>conftest.$ac_ext <<_ACEOF
8376/* end confdefs.h.  */
8377
8378/* Override any gcc2 internal prototype to avoid an error.  */
8379#ifdef __cplusplus
8380extern "C"
8381#endif
8382/* We use char because int might match the return type of a gcc2
8383   builtin and then its argument prototype would still apply.  */
8384char dlopen ();
8385int
8386main ()
8387{
8388dlopen ();
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext conftest$ac_exeext
8394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395  (eval $ac_link) 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402	 { ac_try='test -z "$ac_c_werror_flag"
8403			 || test ! -s conftest.err'
8404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405  (eval $ac_try) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); }; } &&
8409	 { ac_try='test -s conftest$ac_exeext'
8410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411  (eval $ac_try) 2>&5
8412  ac_status=$?
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); }; }; then
8415  ac_cv_lib_dl_dlopen=yes
8416else
8417  echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420ac_cv_lib_dl_dlopen=no
8421fi
8422rm -f conftest.err conftest.$ac_objext \
8423      conftest$ac_exeext conftest.$ac_ext
8424LIBS=$ac_check_lib_save_LIBS
8425fi
8426echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8427echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8428if test $ac_cv_lib_dl_dlopen = yes; then
8429  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8430else
8431  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8432echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8433if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8434  echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436  ac_check_lib_save_LIBS=$LIBS
8437LIBS="-lsvld  $LIBS"
8438cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h.  */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h.  */
8444
8445/* Override any gcc2 internal prototype to avoid an error.  */
8446#ifdef __cplusplus
8447extern "C"
8448#endif
8449/* We use char because int might match the return type of a gcc2
8450   builtin and then its argument prototype would still apply.  */
8451char dlopen ();
8452int
8453main ()
8454{
8455dlopen ();
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext conftest$ac_exeext
8461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462  (eval $ac_link) 2>conftest.er1
8463  ac_status=$?
8464  grep -v '^ *+' conftest.er1 >conftest.err
8465  rm -f conftest.er1
8466  cat conftest.err >&5
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); } &&
8469	 { ac_try='test -z "$ac_c_werror_flag"
8470			 || test ! -s conftest.err'
8471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472  (eval $ac_try) 2>&5
8473  ac_status=$?
8474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); }; } &&
8476	 { ac_try='test -s conftest$ac_exeext'
8477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478  (eval $ac_try) 2>&5
8479  ac_status=$?
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); }; }; then
8482  ac_cv_lib_svld_dlopen=yes
8483else
8484  echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
8487ac_cv_lib_svld_dlopen=no
8488fi
8489rm -f conftest.err conftest.$ac_objext \
8490      conftest$ac_exeext conftest.$ac_ext
8491LIBS=$ac_check_lib_save_LIBS
8492fi
8493echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8494echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8495if test $ac_cv_lib_svld_dlopen = yes; then
8496  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8497else
8498  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8499echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8500if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8501  echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503  ac_check_lib_save_LIBS=$LIBS
8504LIBS="-ldld  $LIBS"
8505cat >conftest.$ac_ext <<_ACEOF
8506/* confdefs.h.  */
8507_ACEOF
8508cat confdefs.h >>conftest.$ac_ext
8509cat >>conftest.$ac_ext <<_ACEOF
8510/* end confdefs.h.  */
8511
8512/* Override any gcc2 internal prototype to avoid an error.  */
8513#ifdef __cplusplus
8514extern "C"
8515#endif
8516/* We use char because int might match the return type of a gcc2
8517   builtin and then its argument prototype would still apply.  */
8518char dld_link ();
8519int
8520main ()
8521{
8522dld_link ();
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529  (eval $ac_link) 2>conftest.er1
8530  ac_status=$?
8531  grep -v '^ *+' conftest.er1 >conftest.err
8532  rm -f conftest.er1
8533  cat conftest.err >&5
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); } &&
8536	 { ac_try='test -z "$ac_c_werror_flag"
8537			 || test ! -s conftest.err'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; } &&
8543	 { ac_try='test -s conftest$ac_exeext'
8544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545  (eval $ac_try) 2>&5
8546  ac_status=$?
8547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); }; }; then
8549  ac_cv_lib_dld_dld_link=yes
8550else
8551  echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554ac_cv_lib_dld_dld_link=no
8555fi
8556rm -f conftest.err conftest.$ac_objext \
8557      conftest$ac_exeext conftest.$ac_ext
8558LIBS=$ac_check_lib_save_LIBS
8559fi
8560echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8561echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8562if test $ac_cv_lib_dld_dld_link = yes; then
8563  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8564fi
8565
8566
8567fi
8568
8569
8570fi
8571
8572
8573fi
8574
8575
8576fi
8577
8578
8579fi
8580
8581    ;;
8582  esac
8583
8584  if test "x$lt_cv_dlopen" != xno; then
8585    enable_dlopen=yes
8586  else
8587    enable_dlopen=no
8588  fi
8589
8590  case $lt_cv_dlopen in
8591  dlopen)
8592    save_CPPFLAGS="$CPPFLAGS"
8593    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8594
8595    save_LDFLAGS="$LDFLAGS"
8596    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8597
8598    save_LIBS="$LIBS"
8599    LIBS="$lt_cv_dlopen_libs $LIBS"
8600
8601    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8602echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8603if test "${lt_cv_dlopen_self+set}" = set; then
8604  echo $ECHO_N "(cached) $ECHO_C" >&6
8605else
8606  	  if test "$cross_compiling" = yes; then :
8607  lt_cv_dlopen_self=cross
8608else
8609  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8610  lt_status=$lt_dlunknown
8611  cat > conftest.$ac_ext <<EOF
8612#line 8612 "configure"
8613#include "confdefs.h"
8614
8615#if HAVE_DLFCN_H
8616#include <dlfcn.h>
8617#endif
8618
8619#include <stdio.h>
8620
8621#ifdef RTLD_GLOBAL
8622#  define LT_DLGLOBAL		RTLD_GLOBAL
8623#else
8624#  ifdef DL_GLOBAL
8625#    define LT_DLGLOBAL		DL_GLOBAL
8626#  else
8627#    define LT_DLGLOBAL		0
8628#  endif
8629#endif
8630
8631/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8632   find out it does not work in some platform. */
8633#ifndef LT_DLLAZY_OR_NOW
8634#  ifdef RTLD_LAZY
8635#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8636#  else
8637#    ifdef DL_LAZY
8638#      define LT_DLLAZY_OR_NOW		DL_LAZY
8639#    else
8640#      ifdef RTLD_NOW
8641#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8642#      else
8643#        ifdef DL_NOW
8644#          define LT_DLLAZY_OR_NOW	DL_NOW
8645#        else
8646#          define LT_DLLAZY_OR_NOW	0
8647#        endif
8648#      endif
8649#    endif
8650#  endif
8651#endif
8652
8653#ifdef __cplusplus
8654extern "C" void exit (int);
8655#endif
8656
8657void fnord() { int i=42;}
8658int main ()
8659{
8660  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8661  int status = $lt_dlunknown;
8662
8663  if (self)
8664    {
8665      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8666      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8667      /* dlclose (self); */
8668    }
8669
8670    exit (status);
8671}
8672EOF
8673  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674  (eval $ac_link) 2>&5
8675  ac_status=$?
8676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8678    (./conftest; exit; ) 2>/dev/null
8679    lt_status=$?
8680    case x$lt_status in
8681      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8682      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8683      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8684    esac
8685  else :
8686    # compilation failed
8687    lt_cv_dlopen_self=no
8688  fi
8689fi
8690rm -fr conftest*
8691
8692
8693fi
8694echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8695echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8696
8697    if test "x$lt_cv_dlopen_self" = xyes; then
8698      LDFLAGS="$LDFLAGS $link_static_flag"
8699      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8700echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8701if test "${lt_cv_dlopen_self_static+set}" = set; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  	  if test "$cross_compiling" = yes; then :
8705  lt_cv_dlopen_self_static=cross
8706else
8707  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8708  lt_status=$lt_dlunknown
8709  cat > conftest.$ac_ext <<EOF
8710#line 8710 "configure"
8711#include "confdefs.h"
8712
8713#if HAVE_DLFCN_H
8714#include <dlfcn.h>
8715#endif
8716
8717#include <stdio.h>
8718
8719#ifdef RTLD_GLOBAL
8720#  define LT_DLGLOBAL		RTLD_GLOBAL
8721#else
8722#  ifdef DL_GLOBAL
8723#    define LT_DLGLOBAL		DL_GLOBAL
8724#  else
8725#    define LT_DLGLOBAL		0
8726#  endif
8727#endif
8728
8729/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8730   find out it does not work in some platform. */
8731#ifndef LT_DLLAZY_OR_NOW
8732#  ifdef RTLD_LAZY
8733#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8734#  else
8735#    ifdef DL_LAZY
8736#      define LT_DLLAZY_OR_NOW		DL_LAZY
8737#    else
8738#      ifdef RTLD_NOW
8739#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8740#      else
8741#        ifdef DL_NOW
8742#          define LT_DLLAZY_OR_NOW	DL_NOW
8743#        else
8744#          define LT_DLLAZY_OR_NOW	0
8745#        endif
8746#      endif
8747#    endif
8748#  endif
8749#endif
8750
8751#ifdef __cplusplus
8752extern "C" void exit (int);
8753#endif
8754
8755void fnord() { int i=42;}
8756int main ()
8757{
8758  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8759  int status = $lt_dlunknown;
8760
8761  if (self)
8762    {
8763      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8764      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8765      /* dlclose (self); */
8766    }
8767
8768    exit (status);
8769}
8770EOF
8771  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772  (eval $ac_link) 2>&5
8773  ac_status=$?
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8776    (./conftest; exit; ) 2>/dev/null
8777    lt_status=$?
8778    case x$lt_status in
8779      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8780      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8781      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8782    esac
8783  else :
8784    # compilation failed
8785    lt_cv_dlopen_self_static=no
8786  fi
8787fi
8788rm -fr conftest*
8789
8790
8791fi
8792echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8793echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8794    fi
8795
8796    CPPFLAGS="$save_CPPFLAGS"
8797    LDFLAGS="$save_LDFLAGS"
8798    LIBS="$save_LIBS"
8799    ;;
8800  esac
8801
8802  case $lt_cv_dlopen_self in
8803  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8804  *) enable_dlopen_self=unknown ;;
8805  esac
8806
8807  case $lt_cv_dlopen_self_static in
8808  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8809  *) enable_dlopen_self_static=unknown ;;
8810  esac
8811fi
8812
8813
8814# Report which librarie types wil actually be built
8815echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8816echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8817echo "$as_me:$LINENO: result: $can_build_shared" >&5
8818echo "${ECHO_T}$can_build_shared" >&6
8819
8820echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8821echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8822test "$can_build_shared" = "no" && enable_shared=no
8823
8824# On AIX, shared libraries and static libraries use the same namespace, and
8825# are all built from PIC.
8826case "$host_os" in
8827aix3*)
8828  test "$enable_shared" = yes && enable_static=no
8829  if test -n "$RANLIB"; then
8830    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8831    postinstall_cmds='$RANLIB $lib'
8832  fi
8833  ;;
8834
8835aix4* | aix5*)
8836  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8837    test "$enable_shared" = yes && enable_static=no
8838  fi
8839    ;;
8840esac
8841echo "$as_me:$LINENO: result: $enable_shared" >&5
8842echo "${ECHO_T}$enable_shared" >&6
8843
8844echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8845echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8846# Make sure either enable_shared or enable_static is yes.
8847test "$enable_shared" = yes || enable_static=yes
8848echo "$as_me:$LINENO: result: $enable_static" >&5
8849echo "${ECHO_T}$enable_static" >&6
8850
8851# The else clause should only fire when bootstrapping the
8852# libtool distribution, otherwise you forgot to ship ltmain.sh
8853# with your package, and you will get complaints that there are
8854# no rules to generate ltmain.sh.
8855if test -f "$ltmain"; then
8856  # See if we are running on zsh, and set the options which allow our commands through
8857  # without removal of \ escapes.
8858  if test -n "${ZSH_VERSION+set}" ; then
8859    setopt NO_GLOB_SUBST
8860  fi
8861  # Now quote all the things that may contain metacharacters while being
8862  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8863  # variables and quote the copies for generation of the libtool script.
8864  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8865    SED SHELL STRIP \
8866    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8867    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8868    deplibs_check_method reload_flag reload_cmds need_locks \
8869    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8870    lt_cv_sys_global_symbol_to_c_name_address \
8871    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8872    old_postinstall_cmds old_postuninstall_cmds \
8873    compiler \
8874    CC \
8875    LD \
8876    lt_prog_compiler_wl \
8877    lt_prog_compiler_pic \
8878    lt_prog_compiler_static \
8879    lt_prog_compiler_no_builtin_flag \
8880    export_dynamic_flag_spec \
8881    thread_safe_flag_spec \
8882    whole_archive_flag_spec \
8883    enable_shared_with_static_runtimes \
8884    old_archive_cmds \
8885    old_archive_from_new_cmds \
8886    predep_objects \
8887    postdep_objects \
8888    predeps \
8889    postdeps \
8890    compiler_lib_search_path \
8891    archive_cmds \
8892    archive_expsym_cmds \
8893    postinstall_cmds \
8894    postuninstall_cmds \
8895    old_archive_from_expsyms_cmds \
8896    allow_undefined_flag \
8897    no_undefined_flag \
8898    export_symbols_cmds \
8899    hardcode_libdir_flag_spec \
8900    hardcode_libdir_flag_spec_ld \
8901    hardcode_libdir_separator \
8902    hardcode_automatic \
8903    module_cmds \
8904    module_expsym_cmds \
8905    lt_cv_prog_compiler_c_o \
8906    exclude_expsyms \
8907    include_expsyms; do
8908
8909    case $var in
8910    old_archive_cmds | \
8911    old_archive_from_new_cmds | \
8912    archive_cmds | \
8913    archive_expsym_cmds | \
8914    module_cmds | \
8915    module_expsym_cmds | \
8916    old_archive_from_expsyms_cmds | \
8917    export_symbols_cmds | \
8918    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8919    postinstall_cmds | postuninstall_cmds | \
8920    old_postinstall_cmds | old_postuninstall_cmds | \
8921    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8922      # Double-quote double-evaled strings.
8923      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8924      ;;
8925    *)
8926      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8927      ;;
8928    esac
8929  done
8930
8931  case $lt_echo in
8932  *'\$0 --fallback-echo"')
8933    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8934    ;;
8935  esac
8936
8937cfgfile="${ofile}T"
8938  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8939  $rm -f "$cfgfile"
8940  { echo "$as_me:$LINENO: creating $ofile" >&5
8941echo "$as_me: creating $ofile" >&6;}
8942
8943  cat <<__EOF__ >> "$cfgfile"
8944#! $SHELL
8945
8946# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8947# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8948# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8949#
8950# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8951# Free Software Foundation, Inc.
8952#
8953# This file is part of GNU Libtool:
8954# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8955#
8956# This program is free software; you can redistribute it and/or modify
8957# it under the terms of the GNU General Public License as published by
8958# the Free Software Foundation; either version 2 of the License, or
8959# (at your option) any later version.
8960#
8961# This program is distributed in the hope that it will be useful, but
8962# WITHOUT ANY WARRANTY; without even the implied warranty of
8963# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8964# General Public License for more details.
8965#
8966# You should have received a copy of the GNU General Public License
8967# along with this program; if not, write to the Free Software
8968# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8969#
8970# As a special exception to the GNU General Public License, if you
8971# distribute this file as part of a program that contains a
8972# configuration script generated by Autoconf, you may include it under
8973# the same distribution terms that you use for the rest of that program.
8974
8975# A sed program that does not truncate output.
8976SED=$lt_SED
8977
8978# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8979Xsed="$SED -e s/^X//"
8980
8981# The HP-UX ksh and POSIX shell print the target directory to stdout
8982# if CDPATH is set.
8983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8984
8985# The names of the tagged configurations supported by this script.
8986available_tags=
8987
8988# ### BEGIN LIBTOOL CONFIG
8989
8990# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8991
8992# Shell to use when invoking shell scripts.
8993SHELL=$lt_SHELL
8994
8995# Whether or not to build shared libraries.
8996build_libtool_libs=$enable_shared
8997
8998# Whether or not to build static libraries.
8999build_old_libs=$enable_static
9000
9001# Whether or not to add -lc for building shared libraries.
9002build_libtool_need_lc=$archive_cmds_need_lc
9003
9004# Whether or not to disallow shared libs when runtime libs are static
9005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9006
9007# Whether or not to optimize for fast installation.
9008fast_install=$enable_fast_install
9009
9010# The host system.
9011host_alias=$host_alias
9012host=$host
9013
9014# An echo program that does not interpret backslashes.
9015echo=$lt_echo
9016
9017# The archiver.
9018AR=$lt_AR
9019AR_FLAGS=$lt_AR_FLAGS
9020
9021# A C compiler.
9022LTCC=$lt_LTCC
9023
9024# A language-specific compiler.
9025CC=$lt_compiler
9026
9027# Is the compiler the GNU C compiler?
9028with_gcc=$GCC
9029
9030# An ERE matcher.
9031EGREP=$lt_EGREP
9032
9033# The linker used to build libraries.
9034LD=$lt_LD
9035
9036# Whether we need hard or soft links.
9037LN_S=$lt_LN_S
9038
9039# A BSD-compatible nm program.
9040NM=$lt_NM
9041
9042# A symbol stripping program
9043STRIP=$lt_STRIP
9044
9045# Used to examine libraries when file_magic_cmd begins "file"
9046MAGIC_CMD=$MAGIC_CMD
9047
9048# Used on cygwin: DLL creation program.
9049DLLTOOL="$DLLTOOL"
9050
9051# Used on cygwin: object dumper.
9052OBJDUMP="$OBJDUMP"
9053
9054# Used on cygwin: assembler.
9055AS="$AS"
9056
9057# The name of the directory that contains temporary libtool files.
9058objdir=$objdir
9059
9060# How to create reloadable object files.
9061reload_flag=$lt_reload_flag
9062reload_cmds=$lt_reload_cmds
9063
9064# How to pass a linker flag through the compiler.
9065wl=$lt_lt_prog_compiler_wl
9066
9067# Object file suffix (normally "o").
9068objext="$ac_objext"
9069
9070# Old archive suffix (normally "a").
9071libext="$libext"
9072
9073# Shared library suffix (normally ".so").
9074shrext_cmds='$shrext_cmds'
9075
9076# Executable file suffix (normally "").
9077exeext="$exeext"
9078
9079# Additional compiler flags for building library objects.
9080pic_flag=$lt_lt_prog_compiler_pic
9081pic_mode=$pic_mode
9082
9083# What is the maximum length of a command?
9084max_cmd_len=$lt_cv_sys_max_cmd_len
9085
9086# Does compiler simultaneously support -c and -o options?
9087compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9088
9089# Must we lock files when doing compilation ?
9090need_locks=$lt_need_locks
9091
9092# Do we need the lib prefix for modules?
9093need_lib_prefix=$need_lib_prefix
9094
9095# Do we need a version for libraries?
9096need_version=$need_version
9097
9098# Whether dlopen is supported.
9099dlopen_support=$enable_dlopen
9100
9101# Whether dlopen of programs is supported.
9102dlopen_self=$enable_dlopen_self
9103
9104# Whether dlopen of statically linked programs is supported.
9105dlopen_self_static=$enable_dlopen_self_static
9106
9107# Compiler flag to prevent dynamic linking.
9108link_static_flag=$lt_lt_prog_compiler_static
9109
9110# Compiler flag to turn off builtin functions.
9111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9112
9113# Compiler flag to allow reflexive dlopens.
9114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9115
9116# Compiler flag to generate shared objects directly from archives.
9117whole_archive_flag_spec=$lt_whole_archive_flag_spec
9118
9119# Compiler flag to generate thread-safe objects.
9120thread_safe_flag_spec=$lt_thread_safe_flag_spec
9121
9122# Library versioning type.
9123version_type=$version_type
9124
9125# Format of library name prefix.
9126libname_spec=$lt_libname_spec
9127
9128# List of archive names.  First name is the real one, the rest are links.
9129# The last name is the one that the linker finds with -lNAME.
9130library_names_spec=$lt_library_names_spec
9131
9132# The coded name of the library, if different from the real name.
9133soname_spec=$lt_soname_spec
9134
9135# Commands used to build and install an old-style archive.
9136RANLIB=$lt_RANLIB
9137old_archive_cmds=$lt_old_archive_cmds
9138old_postinstall_cmds=$lt_old_postinstall_cmds
9139old_postuninstall_cmds=$lt_old_postuninstall_cmds
9140
9141# Create an old-style archive from a shared archive.
9142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9143
9144# Create a temporary old-style archive to link instead of a shared archive.
9145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9146
9147# Commands used to build and install a shared archive.
9148archive_cmds=$lt_archive_cmds
9149archive_expsym_cmds=$lt_archive_expsym_cmds
9150postinstall_cmds=$lt_postinstall_cmds
9151postuninstall_cmds=$lt_postuninstall_cmds
9152
9153# Commands used to build a loadable module (assumed same as above if empty)
9154module_cmds=$lt_module_cmds
9155module_expsym_cmds=$lt_module_expsym_cmds
9156
9157# Commands to strip libraries.
9158old_striplib=$lt_old_striplib
9159striplib=$lt_striplib
9160
9161# Dependencies to place before the objects being linked to create a
9162# shared library.
9163predep_objects=$lt_predep_objects
9164
9165# Dependencies to place after the objects being linked to create a
9166# shared library.
9167postdep_objects=$lt_postdep_objects
9168
9169# Dependencies to place before the objects being linked to create a
9170# shared library.
9171predeps=$lt_predeps
9172
9173# Dependencies to place after the objects being linked to create a
9174# shared library.
9175postdeps=$lt_postdeps
9176
9177# The library search path used internally by the compiler when linking
9178# a shared library.
9179compiler_lib_search_path=$lt_compiler_lib_search_path
9180
9181# Method to check whether dependent libraries are shared objects.
9182deplibs_check_method=$lt_deplibs_check_method
9183
9184# Command to use when deplibs_check_method == file_magic.
9185file_magic_cmd=$lt_file_magic_cmd
9186
9187# Flag that allows shared libraries with undefined symbols to be built.
9188allow_undefined_flag=$lt_allow_undefined_flag
9189
9190# Flag that forces no undefined symbols.
9191no_undefined_flag=$lt_no_undefined_flag
9192
9193# Commands used to finish a libtool library installation in a directory.
9194finish_cmds=$lt_finish_cmds
9195
9196# Same as above, but a single script fragment to be evaled but not shown.
9197finish_eval=$lt_finish_eval
9198
9199# Take the output of nm and produce a listing of raw symbols and C names.
9200global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9201
9202# Transform the output of nm in a proper C declaration
9203global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9204
9205# Transform the output of nm in a C name address pair
9206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9207
9208# This is the shared library runtime path variable.
9209runpath_var=$runpath_var
9210
9211# This is the shared library path variable.
9212shlibpath_var=$shlibpath_var
9213
9214# Is shlibpath searched before the hard-coded library search path?
9215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9216
9217# How to hardcode a shared library path into an executable.
9218hardcode_action=$hardcode_action
9219
9220# Whether we should hardcode library paths into libraries.
9221hardcode_into_libs=$hardcode_into_libs
9222
9223# Flag to hardcode \$libdir into a binary during linking.
9224# This must work even if \$libdir does not exist.
9225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9226
9227# If ld is used when linking, flag to hardcode \$libdir into
9228# a binary during linking. This must work even if \$libdir does
9229# not exist.
9230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9231
9232# Whether we need a single -rpath flag with a separated argument.
9233hardcode_libdir_separator=$lt_hardcode_libdir_separator
9234
9235# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9236# resulting binary.
9237hardcode_direct=$hardcode_direct
9238
9239# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9240# resulting binary.
9241hardcode_minus_L=$hardcode_minus_L
9242
9243# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9244# the resulting binary.
9245hardcode_shlibpath_var=$hardcode_shlibpath_var
9246
9247# Set to yes if building a shared library automatically hardcodes DIR into the library
9248# and all subsequent libraries and executables linked against it.
9249hardcode_automatic=$hardcode_automatic
9250
9251# Variables whose values should be saved in libtool wrapper scripts and
9252# restored at relink time.
9253variables_saved_for_relink="$variables_saved_for_relink"
9254
9255# Whether libtool must link a program against all its dependency libraries.
9256link_all_deplibs=$link_all_deplibs
9257
9258# Compile-time system search path for libraries
9259sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9260
9261# Run-time system search path for libraries
9262sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9263
9264# Fix the shell variable \$srcfile for the compiler.
9265fix_srcfile_path="$fix_srcfile_path"
9266
9267# Set to yes if exported symbols are required.
9268always_export_symbols=$always_export_symbols
9269
9270# The commands to list exported symbols.
9271export_symbols_cmds=$lt_export_symbols_cmds
9272
9273# The commands to extract the exported symbol list from a shared archive.
9274extract_expsyms_cmds=$lt_extract_expsyms_cmds
9275
9276# Symbols that should not be listed in the preloaded symbols.
9277exclude_expsyms=$lt_exclude_expsyms
9278
9279# Symbols that must always be exported.
9280include_expsyms=$lt_include_expsyms
9281
9282# ### END LIBTOOL CONFIG
9283
9284__EOF__
9285
9286
9287  case $host_os in
9288  aix3*)
9289    cat <<\EOF >> "$cfgfile"
9290
9291# AIX sometimes has problems with the GCC collect2 program.  For some
9292# reason, if we set the COLLECT_NAMES environment variable, the problems
9293# vanish in a puff of smoke.
9294if test "X${COLLECT_NAMES+set}" != Xset; then
9295  COLLECT_NAMES=
9296  export COLLECT_NAMES
9297fi
9298EOF
9299    ;;
9300  esac
9301
9302  # We use sed instead of cat because bash on DJGPP gets confused if
9303  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9304  # text mode, it properly converts lines to CR/LF.  This bash problem
9305  # is reportedly fixed, but why not run on old versions too?
9306  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9307
9308  mv -f "$cfgfile" "$ofile" || \
9309    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9310  chmod +x "$ofile"
9311
9312else
9313  # If there is no Makefile yet, we rely on a make rule to execute
9314  # `config.status --recheck' to rerun these tests and create the
9315  # libtool script then.
9316  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9317  if test -f "$ltmain_in"; then
9318    test -f Makefile && make "$ltmain"
9319  fi
9320fi
9321
9322
9323ac_ext=c
9324ac_cpp='$CPP $CPPFLAGS'
9325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9327ac_compiler_gnu=$ac_cv_c_compiler_gnu
9328
9329CC="$lt_save_CC"
9330
9331
9332# Check whether --with-tags or --without-tags was given.
9333if test "${with_tags+set}" = set; then
9334  withval="$with_tags"
9335  tagnames="$withval"
9336fi;
9337
9338if test -f "$ltmain" && test -n "$tagnames"; then
9339  if test ! -f "${ofile}"; then
9340    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9341echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9342  fi
9343
9344  if test -z "$LTCC"; then
9345    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9346    if test -z "$LTCC"; then
9347      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9348echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9349    else
9350      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9351echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9352    fi
9353  fi
9354
9355  # Extract list of available tagged configurations in $ofile.
9356  # Note that this assumes the entire list is on one line.
9357  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9358
9359  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9360  for tagname in $tagnames; do
9361    IFS="$lt_save_ifs"
9362    # Check whether tagname contains only valid characters
9363    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9364    "") ;;
9365    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9366echo "$as_me: error: invalid tag name: $tagname" >&2;}
9367   { (exit 1); exit 1; }; }
9368	;;
9369    esac
9370
9371    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9372    then
9373      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9374echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9375   { (exit 1); exit 1; }; }
9376    fi
9377
9378    # Update the list of available tags.
9379    if test -n "$tagname"; then
9380      echo appending configuration tag "$tagname" to $ofile
9381
9382      case $tagname in
9383      CXX)
9384	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9385	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9386	    (test "X$CXX" != "Xg++"))) ; then
9387	  ac_ext=cc
9388ac_cpp='$CXXCPP $CPPFLAGS'
9389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9392
9393
9394
9395
9396archive_cmds_need_lc_CXX=no
9397allow_undefined_flag_CXX=
9398always_export_symbols_CXX=no
9399archive_expsym_cmds_CXX=
9400export_dynamic_flag_spec_CXX=
9401hardcode_direct_CXX=no
9402hardcode_libdir_flag_spec_CXX=
9403hardcode_libdir_flag_spec_ld_CXX=
9404hardcode_libdir_separator_CXX=
9405hardcode_minus_L_CXX=no
9406hardcode_automatic_CXX=no
9407module_cmds_CXX=
9408module_expsym_cmds_CXX=
9409link_all_deplibs_CXX=unknown
9410old_archive_cmds_CXX=$old_archive_cmds
9411no_undefined_flag_CXX=
9412whole_archive_flag_spec_CXX=
9413enable_shared_with_static_runtimes_CXX=no
9414
9415# Dependencies to place before and after the object being linked:
9416predep_objects_CXX=
9417postdep_objects_CXX=
9418predeps_CXX=
9419postdeps_CXX=
9420compiler_lib_search_path_CXX=
9421
9422# Source file extension for C++ test sources.
9423ac_ext=cc
9424
9425# Object file extension for compiled C++ test sources.
9426objext=o
9427objext_CXX=$objext
9428
9429# Code to be used in simple compile tests
9430lt_simple_compile_test_code="int some_variable = 0;\n"
9431
9432# Code to be used in simple link tests
9433lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9434
9435# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9436
9437# If no C compiler was specified, use CC.
9438LTCC=${LTCC-"$CC"}
9439
9440# Allow CC to be a program name with arguments.
9441compiler=$CC
9442
9443
9444# Allow CC to be a program name with arguments.
9445lt_save_CC=$CC
9446lt_save_LD=$LD
9447lt_save_GCC=$GCC
9448GCC=$GXX
9449lt_save_with_gnu_ld=$with_gnu_ld
9450lt_save_path_LD=$lt_cv_path_LD
9451if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9452  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9453else
9454  unset lt_cv_prog_gnu_ld
9455fi
9456if test -n "${lt_cv_path_LDCXX+set}"; then
9457  lt_cv_path_LD=$lt_cv_path_LDCXX
9458else
9459  unset lt_cv_path_LD
9460fi
9461test -z "${LDCXX+set}" || LD=$LDCXX
9462CC=${CXX-"c++"}
9463compiler=$CC
9464compiler_CXX=$CC
9465cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9466
9467# We don't want -fno-exception wen compiling C++ code, so set the
9468# no_builtin_flag separately
9469if test "$GXX" = yes; then
9470  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9471else
9472  lt_prog_compiler_no_builtin_flag_CXX=
9473fi
9474
9475if test "$GXX" = yes; then
9476  # Set up default GNU C++ configuration
9477
9478
9479# Check whether --with-gnu-ld or --without-gnu-ld was given.
9480if test "${with_gnu_ld+set}" = set; then
9481  withval="$with_gnu_ld"
9482  test "$withval" = no || with_gnu_ld=yes
9483else
9484  with_gnu_ld=no
9485fi;
9486ac_prog=ld
9487if test "$GCC" = yes; then
9488  # Check if gcc -print-prog-name=ld gives a path.
9489  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9490echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9491  case $host in
9492  *-*-mingw*)
9493    # gcc leaves a trailing carriage return which upsets mingw
9494    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9495  *)
9496    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9497  esac
9498  case $ac_prog in
9499    # Accept absolute paths.
9500    [\\/]* | ?:[\\/]*)
9501      re_direlt='/[^/][^/]*/\.\./'
9502      # Canonicalize the pathname of ld
9503      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9504      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9505	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9506      done
9507      test -z "$LD" && LD="$ac_prog"
9508      ;;
9509  "")
9510    # If it fails, then pretend we aren't using GCC.
9511    ac_prog=ld
9512    ;;
9513  *)
9514    # If it is relative, then search for the first ld in PATH.
9515    with_gnu_ld=unknown
9516    ;;
9517  esac
9518elif test "$with_gnu_ld" = yes; then
9519  echo "$as_me:$LINENO: checking for GNU ld" >&5
9520echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9521else
9522  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9523echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9524fi
9525if test "${lt_cv_path_LD+set}" = set; then
9526  echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528  if test -z "$LD"; then
9529  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9530  for ac_dir in $PATH; do
9531    IFS="$lt_save_ifs"
9532    test -z "$ac_dir" && ac_dir=.
9533    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9534      lt_cv_path_LD="$ac_dir/$ac_prog"
9535      # Check to see if the program is GNU ld.  I'd rather use --version,
9536      # but apparently some GNU ld's only accept -v.
9537      # Break only if it was the GNU/non-GNU ld that we prefer.
9538      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9539      *GNU* | *'with BFD'*)
9540	test "$with_gnu_ld" != no && break
9541	;;
9542      *)
9543	test "$with_gnu_ld" != yes && break
9544	;;
9545      esac
9546    fi
9547  done
9548  IFS="$lt_save_ifs"
9549else
9550  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9551fi
9552fi
9553
9554LD="$lt_cv_path_LD"
9555if test -n "$LD"; then
9556  echo "$as_me:$LINENO: result: $LD" >&5
9557echo "${ECHO_T}$LD" >&6
9558else
9559  echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
9561fi
9562test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9563echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9564   { (exit 1); exit 1; }; }
9565echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9566echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9567if test "${lt_cv_prog_gnu_ld+set}" = set; then
9568  echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9571case `$LD -v 2>&1 </dev/null` in
9572*GNU* | *'with BFD'*)
9573  lt_cv_prog_gnu_ld=yes
9574  ;;
9575*)
9576  lt_cv_prog_gnu_ld=no
9577  ;;
9578esac
9579fi
9580echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9581echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9582with_gnu_ld=$lt_cv_prog_gnu_ld
9583
9584
9585
9586  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9587  # archiving commands below assume that GNU ld is being used.
9588  if test "$with_gnu_ld" = yes; then
9589    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590    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'
9591
9592    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9593    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9594
9595    # If archive_cmds runs LD, not CC, wlarc should be empty
9596    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9597    #     investigate it a little bit more. (MM)
9598    wlarc='${wl}'
9599
9600    # ancient GNU ld didn't support --whole-archive et. al.
9601    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9602	grep 'no-whole-archive' > /dev/null; then
9603      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9604    else
9605      whole_archive_flag_spec_CXX=
9606    fi
9607  else
9608    with_gnu_ld=no
9609    wlarc=
9610
9611    # A generic and very simple default shared library creation
9612    # command for GNU C++ for the case where it uses the native
9613    # linker, instead of GNU ld.  If possible, this setting should
9614    # overridden to take advantage of the native linker features on
9615    # the platform it is being used on.
9616    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9617  fi
9618
9619  # Commands to make compiler produce verbose output that lists
9620  # what "hidden" libraries, object files and flags are used when
9621  # linking a shared library.
9622  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9623
9624else
9625  GXX=no
9626  with_gnu_ld=no
9627  wlarc=
9628fi
9629
9630# PORTME: fill in a description of your system's C++ link characteristics
9631echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9632echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9633ld_shlibs_CXX=yes
9634case $host_os in
9635  aix3*)
9636    # FIXME: insert proper C++ library support
9637    ld_shlibs_CXX=no
9638    ;;
9639  aix4* | aix5*)
9640    if test "$host_cpu" = ia64; then
9641      # On IA64, the linker does run time linking by default, so we don't
9642      # have to do anything special.
9643      aix_use_runtimelinking=no
9644      exp_sym_flag='-Bexport'
9645      no_entry_flag=""
9646    else
9647      aix_use_runtimelinking=no
9648
9649      # Test if we are trying to use run time linking or normal
9650      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9651      # need to do runtime linking.
9652      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9653	for ld_flag in $LDFLAGS; do
9654	  case $ld_flag in
9655	  *-brtl*)
9656	    aix_use_runtimelinking=yes
9657	    break
9658	    ;;
9659	  esac
9660	done
9661      esac
9662
9663      exp_sym_flag='-bexport'
9664      no_entry_flag='-bnoentry'
9665    fi
9666
9667    # When large executables or shared objects are built, AIX ld can
9668    # have problems creating the table of contents.  If linking a library
9669    # or program results in "error TOC overflow" add -mminimal-toc to
9670    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9671    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9672
9673    archive_cmds_CXX=''
9674    hardcode_direct_CXX=yes
9675    hardcode_libdir_separator_CXX=':'
9676    link_all_deplibs_CXX=yes
9677
9678    if test "$GXX" = yes; then
9679      case $host_os in aix4.012|aix4.012.*)
9680      # We only want to do this on AIX 4.2 and lower, the check
9681      # below for broken collect2 doesn't work under 4.3+
9682	collect2name=`${CC} -print-prog-name=collect2`
9683	if test -f "$collect2name" && \
9684	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9685	then
9686	  # We have reworked collect2
9687	  hardcode_direct_CXX=yes
9688	else
9689	  # We have old collect2
9690	  hardcode_direct_CXX=unsupported
9691	  # It fails to find uninstalled libraries when the uninstalled
9692	  # path is not listed in the libpath.  Setting hardcode_minus_L
9693	  # to unsupported forces relinking
9694	  hardcode_minus_L_CXX=yes
9695	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9696	  hardcode_libdir_separator_CXX=
9697	fi
9698      esac
9699      shared_flag='-shared'
9700    else
9701      # not using gcc
9702      if test "$host_cpu" = ia64; then
9703	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704	# chokes on -Wl,-G. The following line is correct:
9705	shared_flag='-G'
9706      else
9707	if test "$aix_use_runtimelinking" = yes; then
9708	  shared_flag='${wl}-G'
9709	else
9710	  shared_flag='${wl}-bM:SRE'
9711	fi
9712      fi
9713    fi
9714
9715    # It seems that -bexpall does not export symbols beginning with
9716    # underscore (_), so it is better to generate a list of symbols to export.
9717    always_export_symbols_CXX=yes
9718    if test "$aix_use_runtimelinking" = yes; then
9719      # Warning - without using the other runtime loading flags (-brtl),
9720      # -berok will link without error, but may produce a broken library.
9721      allow_undefined_flag_CXX='-berok'
9722      # Determine the default libpath from the value encoded in an empty executable.
9723      cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h.  */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h.  */
9729
9730int
9731main ()
9732{
9733
9734  ;
9735  return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext conftest$ac_exeext
9739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740  (eval $ac_link) 2>conftest.er1
9741  ac_status=$?
9742  grep -v '^ *+' conftest.er1 >conftest.err
9743  rm -f conftest.er1
9744  cat conftest.err >&5
9745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); } &&
9747	 { ac_try='test -z "$ac_cxx_werror_flag"
9748			 || test ! -s conftest.err'
9749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750  (eval $ac_try) 2>&5
9751  ac_status=$?
9752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753  (exit $ac_status); }; } &&
9754	 { ac_try='test -s conftest$ac_exeext'
9755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756  (eval $ac_try) 2>&5
9757  ac_status=$?
9758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759  (exit $ac_status); }; }; then
9760
9761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9762}'`
9763# Check for a 64-bit object if we didn't find anything.
9764if 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; }
9765}'`; fi
9766else
9767  echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770fi
9771rm -f conftest.err conftest.$ac_objext \
9772      conftest$ac_exeext conftest.$ac_ext
9773if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9774
9775      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9776
9777      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9778     else
9779      if test "$host_cpu" = ia64; then
9780	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9781	allow_undefined_flag_CXX="-z nodefs"
9782	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9783      else
9784	# Determine the default libpath from the value encoded in an empty executable.
9785	cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h.  */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h.  */
9791
9792int
9793main ()
9794{
9795
9796  ;
9797  return 0;
9798}
9799_ACEOF
9800rm -f conftest.$ac_objext conftest$ac_exeext
9801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802  (eval $ac_link) 2>conftest.er1
9803  ac_status=$?
9804  grep -v '^ *+' conftest.er1 >conftest.err
9805  rm -f conftest.er1
9806  cat conftest.err >&5
9807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808  (exit $ac_status); } &&
9809	 { ac_try='test -z "$ac_cxx_werror_flag"
9810			 || test ! -s conftest.err'
9811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812  (eval $ac_try) 2>&5
9813  ac_status=$?
9814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815  (exit $ac_status); }; } &&
9816	 { ac_try='test -s conftest$ac_exeext'
9817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818  (eval $ac_try) 2>&5
9819  ac_status=$?
9820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821  (exit $ac_status); }; }; then
9822
9823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9824}'`
9825# Check for a 64-bit object if we didn't find anything.
9826if 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; }
9827}'`; fi
9828else
9829  echo "$as_me: failed program was:" >&5
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
9832fi
9833rm -f conftest.err conftest.$ac_objext \
9834      conftest$ac_exeext conftest.$ac_ext
9835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9836
9837	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9838	# Warning - without using the other run time loading flags,
9839	# -berok will link without error, but may produce a broken library.
9840	no_undefined_flag_CXX=' ${wl}-bernotok'
9841	allow_undefined_flag_CXX=' ${wl}-berok'
9842	# -bexpall does not export symbols beginning with underscore (_)
9843	always_export_symbols_CXX=yes
9844	# Exported symbols can be pulled into shared objects from archives
9845	whole_archive_flag_spec_CXX=' '
9846	archive_cmds_need_lc_CXX=yes
9847	# This is similar to how AIX traditionally builds it's shared libraries.
9848	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9849      fi
9850    fi
9851    ;;
9852  chorus*)
9853    case $cc_basename in
9854      *)
9855	# FIXME: insert proper C++ library support
9856	ld_shlibs_CXX=no
9857	;;
9858    esac
9859    ;;
9860
9861
9862  cygwin* | mingw* | pw32*)
9863    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9864    # as there is no search path for DLLs.
9865    hardcode_libdir_flag_spec_CXX='-L$libdir'
9866    allow_undefined_flag_CXX=unsupported
9867    always_export_symbols_CXX=no
9868    enable_shared_with_static_runtimes_CXX=yes
9869
9870    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9871      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9872      # If the export-symbols file already is a .def file (1st line
9873      # is EXPORTS), use it as is; otherwise, prepend...
9874      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9875	cp $export_symbols $output_objdir/$soname.def;
9876      else
9877	echo EXPORTS > $output_objdir/$soname.def;
9878	cat $export_symbols >> $output_objdir/$soname.def;
9879      fi~
9880      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9881    else
9882      ld_shlibs_CXX=no
9883    fi
9884  ;;
9885      darwin* | rhapsody*)
9886        case "$host_os" in
9887        rhapsody* | darwin1.[012])
9888         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9889         ;;
9890       *) # Darwin 1.3 on
9891         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9892           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9893         else
9894           case ${MACOSX_DEPLOYMENT_TARGET} in
9895             10.[012])
9896               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9897               ;;
9898             10.*)
9899               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9900               ;;
9901           esac
9902         fi
9903         ;;
9904        esac
9905      archive_cmds_need_lc_CXX=no
9906      hardcode_direct_CXX=no
9907      hardcode_automatic_CXX=yes
9908      hardcode_shlibpath_var_CXX=unsupported
9909      whole_archive_flag_spec_CXX=''
9910      link_all_deplibs_CXX=yes
9911
9912    if test "$GXX" = yes ; then
9913      lt_int_apple_cc_single_mod=no
9914      output_verbose_link_cmd='echo'
9915      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9916       lt_int_apple_cc_single_mod=yes
9917      fi
9918      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9919       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9920      else
9921          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'
9922        fi
9923        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9924        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9925          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9926            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}'
9927          else
9928            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}'
9929          fi
9930            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}'
9931      else
9932      case "$cc_basename" in
9933        xlc*)
9934         output_verbose_link_cmd='echo'
9935          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'
9936          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9937          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9938          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}'
9939          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}'
9940          ;;
9941       *)
9942         ld_shlibs_CXX=no
9943          ;;
9944      esac
9945      fi
9946        ;;
9947
9948  dgux*)
9949    case $cc_basename in
9950      ec++)
9951	# FIXME: insert proper C++ library support
9952	ld_shlibs_CXX=no
9953	;;
9954      ghcx)
9955	# Green Hills C++ Compiler
9956	# FIXME: insert proper C++ library support
9957	ld_shlibs_CXX=no
9958	;;
9959      *)
9960	# FIXME: insert proper C++ library support
9961	ld_shlibs_CXX=no
9962	;;
9963    esac
9964    ;;
9965  freebsd12*)
9966    # C++ shared libraries reported to be fairly broken before switch to ELF
9967    ld_shlibs_CXX=no
9968    ;;
9969  freebsd-elf*)
9970    archive_cmds_need_lc_CXX=no
9971    ;;
9972  freebsd* | kfreebsd*-gnu)
9973    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9974    # conventions
9975    ld_shlibs_CXX=yes
9976    ;;
9977  gnu*)
9978    ;;
9979  hpux9*)
9980    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9981    hardcode_libdir_separator_CXX=:
9982    export_dynamic_flag_spec_CXX='${wl}-E'
9983    hardcode_direct_CXX=yes
9984    hardcode_minus_L_CXX=yes # Not in the search PATH,
9985				# but as the default
9986				# location of the library.
9987
9988    case $cc_basename in
9989    CC)
9990      # FIXME: insert proper C++ library support
9991      ld_shlibs_CXX=no
9992      ;;
9993    aCC)
9994      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'
9995      # Commands to make compiler produce verbose output that lists
9996      # what "hidden" libraries, object files and flags are used when
9997      # linking a shared library.
9998      #
9999      # There doesn't appear to be a way to prevent this compiler from
10000      # explicitly linking system object files so we need to strip them
10001      # from the output so that they don't get included in the library
10002      # dependencies.
10003      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'
10004      ;;
10005    *)
10006      if test "$GXX" = yes; then
10007        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'
10008      else
10009        # FIXME: insert proper C++ library support
10010        ld_shlibs_CXX=no
10011      fi
10012      ;;
10013    esac
10014    ;;
10015  hpux10*|hpux11*)
10016    if test $with_gnu_ld = no; then
10017      case "$host_cpu" in
10018      hppa*64*)
10019	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10020	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10021	hardcode_libdir_separator_CXX=:
10022        ;;
10023      ia64*)
10024	hardcode_libdir_flag_spec_CXX='-L$libdir'
10025        ;;
10026      *)
10027	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10028	hardcode_libdir_separator_CXX=:
10029	export_dynamic_flag_spec_CXX='${wl}-E'
10030        ;;
10031      esac
10032    fi
10033    case "$host_cpu" in
10034    hppa*64*)
10035      hardcode_direct_CXX=no
10036      hardcode_shlibpath_var_CXX=no
10037      ;;
10038    ia64*)
10039      hardcode_direct_CXX=no
10040      hardcode_shlibpath_var_CXX=no
10041      hardcode_minus_L_CXX=yes # Not in the search PATH,
10042					      # but as the default
10043					      # location of the library.
10044      ;;
10045    *)
10046      hardcode_direct_CXX=yes
10047      hardcode_minus_L_CXX=yes # Not in the search PATH,
10048					      # but as the default
10049					      # location of the library.
10050      ;;
10051    esac
10052
10053    case $cc_basename in
10054      CC)
10055	# FIXME: insert proper C++ library support
10056	ld_shlibs_CXX=no
10057	;;
10058      aCC)
10059	case "$host_cpu" in
10060	hppa*64*|ia64*)
10061	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10062	  ;;
10063	*)
10064	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10065	  ;;
10066	esac
10067	# Commands to make compiler produce verbose output that lists
10068	# what "hidden" libraries, object files and flags are used when
10069	# linking a shared library.
10070	#
10071	# There doesn't appear to be a way to prevent this compiler from
10072	# explicitly linking system object files so we need to strip them
10073	# from the output so that they don't get included in the library
10074	# dependencies.
10075	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'
10076	;;
10077      *)
10078	if test "$GXX" = yes; then
10079	  if test $with_gnu_ld = no; then
10080	    case "$host_cpu" in
10081	    ia64*|hppa*64*)
10082	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10083	      ;;
10084	    *)
10085	      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'
10086	      ;;
10087	    esac
10088	  fi
10089	else
10090	  # FIXME: insert proper C++ library support
10091	  ld_shlibs_CXX=no
10092	fi
10093	;;
10094    esac
10095    ;;
10096  irix5* | irix6*)
10097    case $cc_basename in
10098      CC)
10099	# SGI C++
10100	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10101
10102	# Archives containing C++ object files must be created using
10103	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10104	# necessary to make sure instantiated templates are included
10105	# in the archive.
10106	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10107	;;
10108      *)
10109	if test "$GXX" = yes; then
10110	  if test "$with_gnu_ld" = no; then
10111	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10112	  else
10113	    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'
10114	  fi
10115	fi
10116	link_all_deplibs_CXX=yes
10117	;;
10118    esac
10119    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10120    hardcode_libdir_separator_CXX=:
10121    ;;
10122  linux*)
10123    case $cc_basename in
10124      KCC)
10125	# Kuck and Associates, Inc. (KAI) C++ Compiler
10126
10127	# KCC will only create a shared library if the output file
10128	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10129	# to its proper name (with version) after linking.
10130	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'
10131	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'
10132	# Commands to make compiler produce verbose output that lists
10133	# what "hidden" libraries, object files and flags are used when
10134	# linking a shared library.
10135	#
10136	# There doesn't appear to be a way to prevent this compiler from
10137	# explicitly linking system object files so we need to strip them
10138	# from the output so that they don't get included in the library
10139	# dependencies.
10140	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'
10141
10142	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10143	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10144
10145	# Archives containing C++ object files must be created using
10146	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10147	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10148	;;
10149      icpc)
10150	# Intel C++
10151	with_gnu_ld=yes
10152	# version 8.0 and above of icpc choke on multiply defined symbols
10153	# if we add $predep_objects and $postdep_objects, however 7.1 and
10154	# earlier do not add the objects themselves.
10155	case `$CC -V 2>&1` in
10156	*"Version 7."*)
10157  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158  	  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'
10159	  ;;
10160	*)  # Version 8.0 or newer
10161  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10162  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10163	  ;;
10164	esac
10165	archive_cmds_need_lc_CXX=no
10166	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10167	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10169	;;
10170      cxx)
10171	# Compaq C++
10172	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173	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'
10174
10175	runpath_var=LD_RUN_PATH
10176	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10177	hardcode_libdir_separator_CXX=:
10178
10179	# Commands to make compiler produce verbose output that lists
10180	# what "hidden" libraries, object files and flags are used when
10181	# linking a shared library.
10182	#
10183	# There doesn't appear to be a way to prevent this compiler from
10184	# explicitly linking system object files so we need to strip them
10185	# from the output so that they don't get included in the library
10186	# dependencies.
10187	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'
10188	;;
10189    esac
10190    ;;
10191  lynxos*)
10192    # FIXME: insert proper C++ library support
10193    ld_shlibs_CXX=no
10194    ;;
10195  m88k*)
10196    # FIXME: insert proper C++ library support
10197    ld_shlibs_CXX=no
10198    ;;
10199  mvs*)
10200    case $cc_basename in
10201      cxx)
10202	# FIXME: insert proper C++ library support
10203	ld_shlibs_CXX=no
10204	;;
10205      *)
10206	# FIXME: insert proper C++ library support
10207	ld_shlibs_CXX=no
10208	;;
10209    esac
10210    ;;
10211  netbsd*)
10212    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10214      wlarc=
10215      hardcode_libdir_flag_spec_CXX='-R$libdir'
10216      hardcode_direct_CXX=yes
10217      hardcode_shlibpath_var_CXX=no
10218    fi
10219    # Workaround some broken pre-1.5 toolchains
10220    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10221    ;;
10222  openbsd2*)
10223    # C++ shared libraries are fairly broken
10224    ld_shlibs_CXX=no
10225    ;;
10226  openbsd*)
10227    hardcode_direct_CXX=yes
10228    hardcode_shlibpath_var_CXX=no
10229    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10230    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10231    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10232      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10233      export_dynamic_flag_spec_CXX='${wl}-E'
10234      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10235    fi
10236    output_verbose_link_cmd='echo'
10237    ;;
10238  osf3*)
10239    case $cc_basename in
10240      KCC)
10241	# Kuck and Associates, Inc. (KAI) C++ Compiler
10242
10243	# KCC will only create a shared library if the output file
10244	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10245	# to its proper name (with version) after linking.
10246	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'
10247
10248	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10249	hardcode_libdir_separator_CXX=:
10250
10251	# Archives containing C++ object files must be created using
10252	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10253	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10254
10255	;;
10256      RCC)
10257	# Rational C++ 2.4.1
10258	# FIXME: insert proper C++ library support
10259	ld_shlibs_CXX=no
10260	;;
10261      cxx)
10262	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10263	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10264
10265	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10266	hardcode_libdir_separator_CXX=:
10267
10268	# Commands to make compiler produce verbose output that lists
10269	# what "hidden" libraries, object files and flags are used when
10270	# linking a shared library.
10271	#
10272	# There doesn't appear to be a way to prevent this compiler from
10273	# explicitly linking system object files so we need to strip them
10274	# from the output so that they don't get included in the library
10275	# dependencies.
10276	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'
10277	;;
10278      *)
10279	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10280	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10281	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10282
10283	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10284	  hardcode_libdir_separator_CXX=:
10285
10286	  # Commands to make compiler produce verbose output that lists
10287	  # what "hidden" libraries, object files and flags are used when
10288	  # linking a shared library.
10289	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10290
10291	else
10292	  # FIXME: insert proper C++ library support
10293	  ld_shlibs_CXX=no
10294	fi
10295	;;
10296    esac
10297    ;;
10298  osf4* | osf5*)
10299    case $cc_basename in
10300      KCC)
10301	# Kuck and Associates, Inc. (KAI) C++ Compiler
10302
10303	# KCC will only create a shared library if the output file
10304	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10305	# to its proper name (with version) after linking.
10306	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'
10307
10308	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10309	hardcode_libdir_separator_CXX=:
10310
10311	# Archives containing C++ object files must be created using
10312	# the KAI C++ compiler.
10313	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10314	;;
10315      RCC)
10316	# Rational C++ 2.4.1
10317	# FIXME: insert proper C++ library support
10318	ld_shlibs_CXX=no
10319	;;
10320      cxx)
10321	allow_undefined_flag_CXX=' -expect_unresolved \*'
10322	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10323	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10324	  echo "-hidden">> $lib.exp~
10325	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
10326	  $rm $lib.exp'
10327
10328	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10329	hardcode_libdir_separator_CXX=:
10330
10331	# Commands to make compiler produce verbose output that lists
10332	# what "hidden" libraries, object files and flags are used when
10333	# linking a shared library.
10334	#
10335	# There doesn't appear to be a way to prevent this compiler from
10336	# explicitly linking system object files so we need to strip them
10337	# from the output so that they don't get included in the library
10338	# dependencies.
10339	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'
10340	;;
10341      *)
10342	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10343	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10344	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10345
10346	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10347	  hardcode_libdir_separator_CXX=:
10348
10349	  # Commands to make compiler produce verbose output that lists
10350	  # what "hidden" libraries, object files and flags are used when
10351	  # linking a shared library.
10352	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10353
10354	else
10355	  # FIXME: insert proper C++ library support
10356	  ld_shlibs_CXX=no
10357	fi
10358	;;
10359    esac
10360    ;;
10361  psos*)
10362    # FIXME: insert proper C++ library support
10363    ld_shlibs_CXX=no
10364    ;;
10365  sco*)
10366    archive_cmds_need_lc_CXX=no
10367    case $cc_basename in
10368      CC)
10369	# FIXME: insert proper C++ library support
10370	ld_shlibs_CXX=no
10371	;;
10372      *)
10373	# FIXME: insert proper C++ library support
10374	ld_shlibs_CXX=no
10375	;;
10376    esac
10377    ;;
10378  sunos4*)
10379    case $cc_basename in
10380      CC)
10381	# Sun C++ 4.x
10382	# FIXME: insert proper C++ library support
10383	ld_shlibs_CXX=no
10384	;;
10385      lcc)
10386	# Lucid
10387	# FIXME: insert proper C++ library support
10388	ld_shlibs_CXX=no
10389	;;
10390      *)
10391	# FIXME: insert proper C++ library support
10392	ld_shlibs_CXX=no
10393	;;
10394    esac
10395    ;;
10396  solaris*)
10397    case $cc_basename in
10398      CC)
10399	# Sun C++ 4.2, 5.x and Centerline C++
10400	no_undefined_flag_CXX=' -zdefs'
10401	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10402	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10403	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10404
10405	hardcode_libdir_flag_spec_CXX='-R$libdir'
10406	hardcode_shlibpath_var_CXX=no
10407	case $host_os in
10408	  solaris2.0-5 | solaris2.0-5.*) ;;
10409	  *)
10410	    # The C++ compiler is used as linker so we must use $wl
10411	    # flag to pass the commands to the underlying system
10412	    # linker.
10413	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10414	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10415	    ;;
10416	esac
10417	link_all_deplibs_CXX=yes
10418
10419	# Commands to make compiler produce verbose output that lists
10420	# what "hidden" libraries, object files and flags are used when
10421	# linking a shared library.
10422	#
10423	# There doesn't appear to be a way to prevent this compiler from
10424	# explicitly linking system object files so we need to strip them
10425	# from the output so that they don't get included in the library
10426	# dependencies.
10427	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10428
10429	# Archives containing C++ object files must be created using
10430	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10431	# necessary to make sure instantiated templates are included
10432	# in the archive.
10433	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10434	;;
10435      gcx)
10436	# Green Hills C++ Compiler
10437	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10438
10439	# The C++ compiler must be used to create the archive.
10440	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10441	;;
10442      *)
10443	# GNU C++ compiler with Solaris linker
10444	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10445	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10446	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10447	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10448	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10449		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10450
10451	    # Commands to make compiler produce verbose output that lists
10452	    # what "hidden" libraries, object files and flags are used when
10453	    # linking a shared library.
10454	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10455	  else
10456	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10457	    # platform.
10458	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10459	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10460		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10461
10462	    # Commands to make compiler produce verbose output that lists
10463	    # what "hidden" libraries, object files and flags are used when
10464	    # linking a shared library.
10465	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10466	  fi
10467
10468	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10469	fi
10470	;;
10471    esac
10472    ;;
10473  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10474    archive_cmds_need_lc_CXX=no
10475    ;;
10476  tandem*)
10477    case $cc_basename in
10478      NCC)
10479	# NonStop-UX NCC 3.20
10480	# FIXME: insert proper C++ library support
10481	ld_shlibs_CXX=no
10482	;;
10483      *)
10484	# FIXME: insert proper C++ library support
10485	ld_shlibs_CXX=no
10486	;;
10487    esac
10488    ;;
10489  vxworks*)
10490    # FIXME: insert proper C++ library support
10491    ld_shlibs_CXX=no
10492    ;;
10493  *)
10494    # FIXME: insert proper C++ library support
10495    ld_shlibs_CXX=no
10496    ;;
10497esac
10498echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10499echo "${ECHO_T}$ld_shlibs_CXX" >&6
10500test "$ld_shlibs_CXX" = no && can_build_shared=no
10501
10502GCC_CXX="$GXX"
10503LD_CXX="$LD"
10504
10505
10506cat > conftest.$ac_ext <<EOF
10507class Foo
10508{
10509public:
10510  Foo (void) { a = 0; }
10511private:
10512  int a;
10513};
10514EOF
10515
10516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517  (eval $ac_compile) 2>&5
10518  ac_status=$?
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); }; then
10521  # Parse the compiler output and extract the necessary
10522  # objects, libraries and library flags.
10523
10524  # Sentinel used to keep track of whether or not we are before
10525  # the conftest object file.
10526  pre_test_object_deps_done=no
10527
10528  # The `*' in the case matches for architectures that use `case' in
10529  # $output_verbose_cmd can trigger glob expansion during the loop
10530  # eval without this substitution.
10531  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10532
10533  for p in `eval $output_verbose_link_cmd`; do
10534    case $p in
10535
10536    -L* | -R* | -l*)
10537       # Some compilers place space between "-{L,R}" and the path.
10538       # Remove the space.
10539       if test $p = "-L" \
10540	  || test $p = "-R"; then
10541	 prev=$p
10542	 continue
10543       else
10544	 prev=
10545       fi
10546
10547       if test "$pre_test_object_deps_done" = no; then
10548	 case $p in
10549	 -L* | -R*)
10550	   # Internal compiler library paths should come after those
10551	   # provided the user.  The postdeps already come after the
10552	   # user supplied libs so there is no need to process them.
10553	   if test -z "$compiler_lib_search_path_CXX"; then
10554	     compiler_lib_search_path_CXX="${prev}${p}"
10555	   else
10556	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10557	   fi
10558	   ;;
10559	 # The "-l" case would never come before the object being
10560	 # linked, so don't bother handling this case.
10561	 esac
10562       else
10563	 if test -z "$postdeps_CXX"; then
10564	   postdeps_CXX="${prev}${p}"
10565	 else
10566	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10567	 fi
10568       fi
10569       ;;
10570
10571    *.$objext)
10572       # This assumes that the test object file only shows up
10573       # once in the compiler output.
10574       if test "$p" = "conftest.$objext"; then
10575	 pre_test_object_deps_done=yes
10576	 continue
10577       fi
10578
10579       if test "$pre_test_object_deps_done" = no; then
10580	 if test -z "$predep_objects_CXX"; then
10581	   predep_objects_CXX="$p"
10582	 else
10583	   predep_objects_CXX="$predep_objects_CXX $p"
10584	 fi
10585       else
10586	 if test -z "$postdep_objects_CXX"; then
10587	   postdep_objects_CXX="$p"
10588	 else
10589	   postdep_objects_CXX="$postdep_objects_CXX $p"
10590	 fi
10591       fi
10592       ;;
10593
10594    *) ;; # Ignore the rest.
10595
10596    esac
10597  done
10598
10599  # Clean up.
10600  rm -f a.out a.exe
10601else
10602  echo "libtool.m4: error: problem compiling CXX test program"
10603fi
10604
10605$rm -f confest.$objext
10606
10607case " $postdeps_CXX " in
10608*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10609esac
10610
10611lt_prog_compiler_wl_CXX=
10612lt_prog_compiler_pic_CXX=
10613lt_prog_compiler_static_CXX=
10614
10615echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10616echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10617
10618  # C++ specific cases for pic, static, wl, etc.
10619  if test "$GXX" = yes; then
10620    lt_prog_compiler_wl_CXX='-Wl,'
10621    lt_prog_compiler_static_CXX='-static'
10622
10623    case $host_os in
10624    aix*)
10625      # All AIX code is PIC.
10626      if test "$host_cpu" = ia64; then
10627	# AIX 5 now supports IA64 processor
10628	lt_prog_compiler_static_CXX='-Bstatic'
10629      fi
10630      ;;
10631    amigaos*)
10632      # FIXME: we need at least 68020 code to build shared libraries, but
10633      # adding the `-m68020' flag to GCC prevents building anything better,
10634      # like `-m68040'.
10635      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10636      ;;
10637    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10638      # PIC is the default for these OSes.
10639      ;;
10640    mingw* | os2* | pw32*)
10641      # This hack is so that the source file can tell whether it is being
10642      # built for inclusion in a dll (and should export symbols for example).
10643      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10644      ;;
10645    darwin* | rhapsody*)
10646      # PIC is the default on this platform
10647      # Common symbols not allowed in MH_DYLIB files
10648      lt_prog_compiler_pic_CXX='-fno-common'
10649      ;;
10650    *djgpp*)
10651      # DJGPP does not support shared libraries at all
10652      lt_prog_compiler_pic_CXX=
10653      ;;
10654    sysv4*MP*)
10655      if test -d /usr/nec; then
10656	lt_prog_compiler_pic_CXX=-Kconform_pic
10657      fi
10658      ;;
10659    hpux*)
10660      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10661      # not for PA HP-UX.
10662      case "$host_cpu" in
10663      hppa*64*|ia64*)
10664	;;
10665      *)
10666	lt_prog_compiler_pic_CXX='-fPIC'
10667	;;
10668      esac
10669      ;;
10670    *)
10671      lt_prog_compiler_pic_CXX='-fPIC'
10672      ;;
10673    esac
10674  else
10675    case $host_os in
10676      aix4* | aix5*)
10677	# All AIX code is PIC.
10678	if test "$host_cpu" = ia64; then
10679	  # AIX 5 now supports IA64 processor
10680	  lt_prog_compiler_static_CXX='-Bstatic'
10681	else
10682	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10683	fi
10684	;;
10685      chorus*)
10686	case $cc_basename in
10687	cxch68)
10688	  # Green Hills C++ Compiler
10689	  # _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"
10690	  ;;
10691	esac
10692	;;
10693       darwin*)
10694         # PIC is the default on this platform
10695         # Common symbols not allowed in MH_DYLIB files
10696         case "$cc_basename" in
10697           xlc*)
10698           lt_prog_compiler_pic_CXX='-qnocommon'
10699           lt_prog_compiler_wl_CXX='-Wl,'
10700           ;;
10701         esac
10702       ;;
10703      dgux*)
10704	case $cc_basename in
10705	  ec++)
10706	    lt_prog_compiler_pic_CXX='-KPIC'
10707	    ;;
10708	  ghcx)
10709	    # Green Hills C++ Compiler
10710	    lt_prog_compiler_pic_CXX='-pic'
10711	    ;;
10712	  *)
10713	    ;;
10714	esac
10715	;;
10716      freebsd* | kfreebsd*-gnu)
10717	# FreeBSD uses GNU C++
10718	;;
10719      hpux9* | hpux10* | hpux11*)
10720	case $cc_basename in
10721	  CC)
10722	    lt_prog_compiler_wl_CXX='-Wl,'
10723	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724	    if test "$host_cpu" != ia64; then
10725	      lt_prog_compiler_pic_CXX='+Z'
10726	    fi
10727	    ;;
10728	  aCC)
10729	    lt_prog_compiler_wl_CXX='-Wl,'
10730	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10731	    case "$host_cpu" in
10732	    hppa*64*|ia64*)
10733	      # +Z the default
10734	      ;;
10735	    *)
10736	      lt_prog_compiler_pic_CXX='+Z'
10737	      ;;
10738	    esac
10739	    ;;
10740	  *)
10741	    ;;
10742	esac
10743	;;
10744      irix5* | irix6* | nonstopux*)
10745	case $cc_basename in
10746	  CC)
10747	    lt_prog_compiler_wl_CXX='-Wl,'
10748	    lt_prog_compiler_static_CXX='-non_shared'
10749	    # CC pic flag -KPIC is the default.
10750	    ;;
10751	  *)
10752	    ;;
10753	esac
10754	;;
10755      linux*)
10756	case $cc_basename in
10757	  KCC)
10758	    # KAI C++ Compiler
10759	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10760	    lt_prog_compiler_pic_CXX='-fPIC'
10761	    ;;
10762	  icpc)
10763	    # Intel C++
10764	    lt_prog_compiler_wl_CXX='-Wl,'
10765	    lt_prog_compiler_pic_CXX='-KPIC'
10766	    lt_prog_compiler_static_CXX='-static'
10767	    ;;
10768	  cxx)
10769	    # Compaq C++
10770	    # Make sure the PIC flag is empty.  It appears that all Alpha
10771	    # Linux and Compaq Tru64 Unix objects are PIC.
10772	    lt_prog_compiler_pic_CXX=
10773	    lt_prog_compiler_static_CXX='-non_shared'
10774	    ;;
10775	  *)
10776	    ;;
10777	esac
10778	;;
10779      lynxos*)
10780	;;
10781      m88k*)
10782	;;
10783      mvs*)
10784	case $cc_basename in
10785	  cxx)
10786	    lt_prog_compiler_pic_CXX='-W c,exportall'
10787	    ;;
10788	  *)
10789	    ;;
10790	esac
10791	;;
10792      netbsd*)
10793	;;
10794      osf3* | osf4* | osf5*)
10795	case $cc_basename in
10796	  KCC)
10797	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10798	    ;;
10799	  RCC)
10800	    # Rational C++ 2.4.1
10801	    lt_prog_compiler_pic_CXX='-pic'
10802	    ;;
10803	  cxx)
10804	    # Digital/Compaq C++
10805	    lt_prog_compiler_wl_CXX='-Wl,'
10806	    # Make sure the PIC flag is empty.  It appears that all Alpha
10807	    # Linux and Compaq Tru64 Unix objects are PIC.
10808	    lt_prog_compiler_pic_CXX=
10809	    lt_prog_compiler_static_CXX='-non_shared'
10810	    ;;
10811	  *)
10812	    ;;
10813	esac
10814	;;
10815      psos*)
10816	;;
10817      sco*)
10818	case $cc_basename in
10819	  CC)
10820	    lt_prog_compiler_pic_CXX='-fPIC'
10821	    ;;
10822	  *)
10823	    ;;
10824	esac
10825	;;
10826      solaris*)
10827	case $cc_basename in
10828	  CC)
10829	    # Sun C++ 4.2, 5.x and Centerline C++
10830	    lt_prog_compiler_pic_CXX='-KPIC'
10831	    lt_prog_compiler_static_CXX='-Bstatic'
10832	    lt_prog_compiler_wl_CXX='-Qoption ld '
10833	    ;;
10834	  gcx)
10835	    # Green Hills C++ Compiler
10836	    lt_prog_compiler_pic_CXX='-PIC'
10837	    ;;
10838	  *)
10839	    ;;
10840	esac
10841	;;
10842      sunos4*)
10843	case $cc_basename in
10844	  CC)
10845	    # Sun C++ 4.x
10846	    lt_prog_compiler_pic_CXX='-pic'
10847	    lt_prog_compiler_static_CXX='-Bstatic'
10848	    ;;
10849	  lcc)
10850	    # Lucid
10851	    lt_prog_compiler_pic_CXX='-pic'
10852	    ;;
10853	  *)
10854	    ;;
10855	esac
10856	;;
10857      tandem*)
10858	case $cc_basename in
10859	  NCC)
10860	    # NonStop-UX NCC 3.20
10861	    lt_prog_compiler_pic_CXX='-KPIC'
10862	    ;;
10863	  *)
10864	    ;;
10865	esac
10866	;;
10867      unixware*)
10868	;;
10869      vxworks*)
10870	;;
10871      *)
10872	lt_prog_compiler_can_build_shared_CXX=no
10873	;;
10874    esac
10875  fi
10876
10877echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10878echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10879
10880#
10881# Check to make sure the PIC flag actually works.
10882#
10883if test -n "$lt_prog_compiler_pic_CXX"; then
10884
10885echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10886echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10887if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10888  echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890  lt_prog_compiler_pic_works_CXX=no
10891  ac_outfile=conftest.$ac_objext
10892   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10893   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10894   # Insert the option either (1) after the last *FLAGS variable, or
10895   # (2) before a word containing "conftest.", or (3) at the end.
10896   # Note that $ac_compile itself does not contain backslashes and begins
10897   # with a dollar sign (not a hyphen), so the echo should work correctly.
10898   # The option is referenced via a variable to avoid confusing sed.
10899   lt_compile=`echo "$ac_compile" | $SED \
10900   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10901   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10902   -e 's:$: $lt_compiler_flag:'`
10903   (eval echo "\"\$as_me:10903: $lt_compile\"" >&5)
10904   (eval "$lt_compile" 2>conftest.err)
10905   ac_status=$?
10906   cat conftest.err >&5
10907   echo "$as_me:10907: \$? = $ac_status" >&5
10908   if (exit $ac_status) && test -s "$ac_outfile"; then
10909     # The compiler can only warn and ignore the option if not recognized
10910     # So say no if there are warnings
10911     if test ! -s conftest.err; then
10912       lt_prog_compiler_pic_works_CXX=yes
10913     fi
10914   fi
10915   $rm conftest*
10916
10917fi
10918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10919echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10920
10921if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10922    case $lt_prog_compiler_pic_CXX in
10923     "" | " "*) ;;
10924     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10925     esac
10926else
10927    lt_prog_compiler_pic_CXX=
10928     lt_prog_compiler_can_build_shared_CXX=no
10929fi
10930
10931fi
10932case "$host_os" in
10933  # For platforms which do not support PIC, -DPIC is meaningless:
10934  *djgpp*)
10935    lt_prog_compiler_pic_CXX=
10936    ;;
10937  *)
10938    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10939    ;;
10940esac
10941
10942echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10943echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10944if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10945  echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947  lt_cv_prog_compiler_c_o_CXX=no
10948   $rm -r conftest 2>/dev/null
10949   mkdir conftest
10950   cd conftest
10951   mkdir out
10952   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10953
10954   lt_compiler_flag="-o out/conftest2.$ac_objext"
10955   # Insert the option either (1) after the last *FLAGS variable, or
10956   # (2) before a word containing "conftest.", or (3) at the end.
10957   # Note that $ac_compile itself does not contain backslashes and begins
10958   # with a dollar sign (not a hyphen), so the echo should work correctly.
10959   lt_compile=`echo "$ac_compile" | $SED \
10960   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10961   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10962   -e 's:$: $lt_compiler_flag:'`
10963   (eval echo "\"\$as_me:10963: $lt_compile\"" >&5)
10964   (eval "$lt_compile" 2>out/conftest.err)
10965   ac_status=$?
10966   cat out/conftest.err >&5
10967   echo "$as_me:10967: \$? = $ac_status" >&5
10968   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10969   then
10970     # The compiler can only warn and ignore the option if not recognized
10971     # So say no if there are warnings
10972     if test ! -s out/conftest.err; then
10973       lt_cv_prog_compiler_c_o_CXX=yes
10974     fi
10975   fi
10976   chmod u+w .
10977   $rm conftest*
10978   # SGI C++ compiler will create directory out/ii_files/ for
10979   # template instantiation
10980   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10981   $rm out/* && rmdir out
10982   cd ..
10983   rmdir conftest
10984   $rm conftest*
10985
10986fi
10987echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10988echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10989
10990
10991hard_links="nottested"
10992if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10993  # do not overwrite the value of need_locks provided by the user
10994  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10995echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10996  hard_links=yes
10997  $rm conftest*
10998  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10999  touch conftest.a
11000  ln conftest.a conftest.b 2>&5 || hard_links=no
11001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11002  echo "$as_me:$LINENO: result: $hard_links" >&5
11003echo "${ECHO_T}$hard_links" >&6
11004  if test "$hard_links" = no; then
11005    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11006echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11007    need_locks=warn
11008  fi
11009else
11010  need_locks=no
11011fi
11012
11013echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11014echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11015
11016  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11017  case $host_os in
11018  aix4* | aix5*)
11019    # If we're using GNU nm, then we don't want the "-C" option.
11020    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11021    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11022      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'
11023    else
11024      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'
11025    fi
11026    ;;
11027  pw32*)
11028    export_symbols_cmds_CXX="$ltdll_cmds"
11029  ;;
11030  cygwin* | mingw*)
11031    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11032  ;;
11033  *)
11034    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11035  ;;
11036  esac
11037
11038echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11039echo "${ECHO_T}$ld_shlibs_CXX" >&6
11040test "$ld_shlibs_CXX" = no && can_build_shared=no
11041
11042variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11043if test "$GCC" = yes; then
11044  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11045fi
11046
11047#
11048# Do we need to explicitly link libc?
11049#
11050case "x$archive_cmds_need_lc_CXX" in
11051x|xyes)
11052  # Assume -lc should be added
11053  archive_cmds_need_lc_CXX=yes
11054
11055  if test "$enable_shared" = yes && test "$GCC" = yes; then
11056    case $archive_cmds_CXX in
11057    *'~'*)
11058      # FIXME: we may have to deal with multi-command sequences.
11059      ;;
11060    '$CC '*)
11061      # Test whether the compiler implicitly links with -lc since on some
11062      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11063      # to ld, don't add -lc before -lgcc.
11064      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11065echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11066      $rm conftest*
11067      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11068
11069      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11070  (eval $ac_compile) 2>&5
11071  ac_status=$?
11072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073  (exit $ac_status); } 2>conftest.err; then
11074        soname=conftest
11075        lib=conftest
11076        libobjs=conftest.$ac_objext
11077        deplibs=
11078        wl=$lt_prog_compiler_wl_CXX
11079        compiler_flags=-v
11080        linker_flags=-v
11081        verstring=
11082        output_objdir=.
11083        libname=conftest
11084        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11085        allow_undefined_flag_CXX=
11086        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11087  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11088  ac_status=$?
11089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090  (exit $ac_status); }
11091        then
11092	  archive_cmds_need_lc_CXX=no
11093        else
11094	  archive_cmds_need_lc_CXX=yes
11095        fi
11096        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11097      else
11098        cat conftest.err 1>&5
11099      fi
11100      $rm conftest*
11101      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11102echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11103      ;;
11104    esac
11105  fi
11106  ;;
11107esac
11108
11109echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11110echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11111library_names_spec=
11112libname_spec='lib$name'
11113soname_spec=
11114shrext_cmds=".so"
11115postinstall_cmds=
11116postuninstall_cmds=
11117finish_cmds=
11118finish_eval=
11119shlibpath_var=
11120shlibpath_overrides_runpath=unknown
11121version_type=none
11122dynamic_linker="$host_os ld.so"
11123sys_lib_dlsearch_path_spec="/lib /usr/lib"
11124if test "$GCC" = yes; then
11125  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11126  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11127    # if the path contains ";" then we assume it to be the separator
11128    # otherwise default to the standard path separator (i.e. ":") - it is
11129    # assumed that no part of a normal pathname contains ";" but that should
11130    # okay in the real world where ";" in dirpaths is itself problematic.
11131    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11132  else
11133    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11134  fi
11135else
11136  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137fi
11138need_lib_prefix=unknown
11139hardcode_into_libs=no
11140
11141# when you set need_version to no, make sure it does not cause -set_version
11142# flags to be left without arguments
11143need_version=unknown
11144
11145case $host_os in
11146aix3*)
11147  version_type=linux
11148  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149  shlibpath_var=LIBPATH
11150
11151  # AIX 3 has no versioning support, so we append a major version to the name.
11152  soname_spec='${libname}${release}${shared_ext}$major'
11153  ;;
11154
11155aix4* | aix5*)
11156  version_type=linux
11157  need_lib_prefix=no
11158  need_version=no
11159  hardcode_into_libs=yes
11160  if test "$host_cpu" = ia64; then
11161    # AIX 5 supports IA64
11162    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163    shlibpath_var=LD_LIBRARY_PATH
11164  else
11165    # With GCC up to 2.95.x, collect2 would create an import file
11166    # for dependence libraries.  The import file would start with
11167    # the line `#! .'.  This would cause the generated library to
11168    # depend on `.', always an invalid library.  This was fixed in
11169    # development snapshots of GCC prior to 3.0.
11170    case $host_os in
11171      aix4 | aix4.[01] | aix4.[01].*)
11172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173	   echo ' yes '
11174	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11175	:
11176      else
11177	can_build_shared=no
11178      fi
11179      ;;
11180    esac
11181    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182    # soname into executable. Probably we can add versioning support to
11183    # collect2, so additional links can be useful in future.
11184    if test "$aix_use_runtimelinking" = yes; then
11185      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186      # instead of lib<name>.a to let people know that these are not
11187      # typical AIX shared libraries.
11188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189    else
11190      # We preserve .a as extension for shared libraries through AIX4.2
11191      # and later when we are not doing run time linking.
11192      library_names_spec='${libname}${release}.a $libname.a'
11193      soname_spec='${libname}${release}${shared_ext}$major'
11194    fi
11195    shlibpath_var=LIBPATH
11196  fi
11197  ;;
11198
11199amigaos*)
11200  library_names_spec='$libname.ixlibrary $libname.a'
11201  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11202  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'
11203  ;;
11204
11205beos*)
11206  library_names_spec='${libname}${shared_ext}'
11207  dynamic_linker="$host_os ld.so"
11208  shlibpath_var=LIBRARY_PATH
11209  ;;
11210
11211bsdi[45]*)
11212  version_type=linux
11213  need_version=no
11214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215  soname_spec='${libname}${release}${shared_ext}$major'
11216  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217  shlibpath_var=LD_LIBRARY_PATH
11218  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220  # the default ld.so.conf also contains /usr/contrib/lib and
11221  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222  # libtool to hard-code these into programs
11223  ;;
11224
11225cygwin* | mingw* | pw32*)
11226  version_type=windows
11227  shrext_cmds=".dll"
11228  need_version=no
11229  need_lib_prefix=no
11230
11231  case $GCC,$host_os in
11232  yes,cygwin* | yes,mingw* | yes,pw32*)
11233    library_names_spec='$libname.dll.a'
11234    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11235    postinstall_cmds='base_file=`basename \${file}`~
11236      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11237      dldir=$destdir/`dirname \$dlpath`~
11238      test -d \$dldir || mkdir -p \$dldir~
11239      $install_prog $dir/$dlname \$dldir/$dlname'
11240    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241      dlpath=$dir/\$dldll~
11242       $rm \$dlpath'
11243    shlibpath_overrides_runpath=yes
11244
11245    case $host_os in
11246    cygwin*)
11247      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11250      ;;
11251    mingw*)
11252      # MinGW DLLs use traditional 'lib' prefix
11253      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11254      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11255      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11256        # It is most probably a Windows format PATH printed by
11257        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11258        # path with ; separators, and with drive letters. We can handle the
11259        # drive letters (cygwin fileutils understands them), so leave them,
11260        # especially as we might pass files found there to a mingw objdump,
11261        # which wouldn't understand a cygwinified path. Ahh.
11262        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11263      else
11264        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11265      fi
11266      ;;
11267    pw32*)
11268      # pw32 DLLs use 'pw' prefix rather than 'lib'
11269      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11270      ;;
11271    esac
11272    ;;
11273
11274  *)
11275    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11276    ;;
11277  esac
11278  dynamic_linker='Win32 ld.exe'
11279  # FIXME: first we should search . and the directory the executable is in
11280  shlibpath_var=PATH
11281  ;;
11282
11283darwin* | rhapsody*)
11284  dynamic_linker="$host_os dyld"
11285  version_type=darwin
11286  need_lib_prefix=no
11287  need_version=no
11288  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11289  soname_spec='${libname}${release}${major}$shared_ext'
11290  shlibpath_overrides_runpath=yes
11291  shlibpath_var=DYLD_LIBRARY_PATH
11292  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11293  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11294  if test "$GCC" = yes; then
11295    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"`
11296  else
11297    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11298  fi
11299  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11300  ;;
11301
11302dgux*)
11303  version_type=linux
11304  need_lib_prefix=no
11305  need_version=no
11306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11307  soname_spec='${libname}${release}${shared_ext}$major'
11308  shlibpath_var=LD_LIBRARY_PATH
11309  ;;
11310
11311freebsd1*)
11312  dynamic_linker=no
11313  ;;
11314
11315kfreebsd*-gnu)
11316  version_type=linux
11317  need_lib_prefix=no
11318  need_version=no
11319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11320  soname_spec='${libname}${release}${shared_ext}$major'
11321  shlibpath_var=LD_LIBRARY_PATH
11322  shlibpath_overrides_runpath=no
11323  hardcode_into_libs=yes
11324  dynamic_linker='GNU ld.so'
11325  ;;
11326
11327freebsd*)
11328  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11329  version_type=freebsd-$objformat
11330  case $version_type in
11331    freebsd-elf*)
11332      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11333      need_version=no
11334      need_lib_prefix=no
11335      ;;
11336    freebsd-*)
11337      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11338      need_version=yes
11339      ;;
11340  esac
11341  shlibpath_var=LD_LIBRARY_PATH
11342  case $host_os in
11343  freebsd2*)
11344    shlibpath_overrides_runpath=yes
11345    ;;
11346  freebsd3.01* | freebsdelf3.01*)
11347    shlibpath_overrides_runpath=yes
11348    hardcode_into_libs=yes
11349    ;;
11350  *) # from 3.2 on
11351    shlibpath_overrides_runpath=no
11352    hardcode_into_libs=yes
11353    ;;
11354  esac
11355  ;;
11356
11357gnu*)
11358  version_type=linux
11359  need_lib_prefix=no
11360  need_version=no
11361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11362  soname_spec='${libname}${release}${shared_ext}$major'
11363  shlibpath_var=LD_LIBRARY_PATH
11364  hardcode_into_libs=yes
11365  ;;
11366
11367hpux9* | hpux10* | hpux11*)
11368  # Give a soname corresponding to the major version so that dld.sl refuses to
11369  # link against other versions.
11370  version_type=sunos
11371  need_lib_prefix=no
11372  need_version=no
11373  case "$host_cpu" in
11374  ia64*)
11375    shrext_cmds='.so'
11376    hardcode_into_libs=yes
11377    dynamic_linker="$host_os dld.so"
11378    shlibpath_var=LD_LIBRARY_PATH
11379    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11380    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381    soname_spec='${libname}${release}${shared_ext}$major'
11382    if test "X$HPUX_IA64_MODE" = X32; then
11383      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11384    else
11385      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11386    fi
11387    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11388    ;;
11389   hppa*64*)
11390     shrext_cmds='.sl'
11391     hardcode_into_libs=yes
11392     dynamic_linker="$host_os dld.sl"
11393     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11394     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396     soname_spec='${libname}${release}${shared_ext}$major'
11397     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11398     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11399     ;;
11400   *)
11401    shrext_cmds='.sl'
11402    dynamic_linker="$host_os dld.sl"
11403    shlibpath_var=SHLIB_PATH
11404    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406    soname_spec='${libname}${release}${shared_ext}$major'
11407    ;;
11408  esac
11409  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11410  postinstall_cmds='chmod 555 $lib'
11411  ;;
11412
11413irix5* | irix6* | nonstopux*)
11414  case $host_os in
11415    nonstopux*) version_type=nonstopux ;;
11416    *)
11417	if test "$lt_cv_prog_gnu_ld" = yes; then
11418		version_type=linux
11419	else
11420		version_type=irix
11421	fi ;;
11422  esac
11423  need_lib_prefix=no
11424  need_version=no
11425  soname_spec='${libname}${release}${shared_ext}$major'
11426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11427  case $host_os in
11428  irix5* | nonstopux*)
11429    libsuff= shlibsuff=
11430    ;;
11431  *)
11432    case $LD in # libtool.m4 will add one of these switches to LD
11433    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434      libsuff= shlibsuff= libmagic=32-bit;;
11435    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436      libsuff=32 shlibsuff=N32 libmagic=N32;;
11437    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439    *) libsuff= shlibsuff= libmagic=never-match;;
11440    esac
11441    ;;
11442  esac
11443  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444  shlibpath_overrides_runpath=no
11445  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447  hardcode_into_libs=yes
11448  ;;
11449
11450# No shared lib support for Linux oldld, aout, or coff.
11451linux*oldld* | linux*aout* | linux*coff*)
11452  dynamic_linker=no
11453  ;;
11454
11455# This must be Linux ELF.
11456linux*)
11457  version_type=linux
11458  need_lib_prefix=no
11459  need_version=no
11460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461  soname_spec='${libname}${release}${shared_ext}$major'
11462  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463  shlibpath_var=LD_LIBRARY_PATH
11464  shlibpath_overrides_runpath=no
11465  # This implies no fast_install, which is unacceptable.
11466  # Some rework will be needed to allow for fast_install
11467  # before this can be enabled.
11468  hardcode_into_libs=yes
11469
11470  # Append ld.so.conf contents to the search path
11471  if test -f /etc/ld.so.conf; then
11472    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11473    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11474  fi
11475
11476  # We used to test for /lib/ld.so.1 and disable shared libraries on
11477  # powerpc, because MkLinux only supported shared libraries with the
11478  # GNU dynamic linker.  Since this was broken with cross compilers,
11479  # most powerpc-linux boxes support dynamic linking these days and
11480  # people can always --disable-shared, the test was removed, and we
11481  # assume the GNU/Linux dynamic linker is in use.
11482  dynamic_linker='GNU/Linux ld.so'
11483  ;;
11484
11485knetbsd*-gnu)
11486  version_type=linux
11487  need_lib_prefix=no
11488  need_version=no
11489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11490  soname_spec='${libname}${release}${shared_ext}$major'
11491  shlibpath_var=LD_LIBRARY_PATH
11492  shlibpath_overrides_runpath=no
11493  hardcode_into_libs=yes
11494  dynamic_linker='GNU ld.so'
11495  ;;
11496
11497netbsd*)
11498  version_type=sunos
11499  need_lib_prefix=no
11500  need_version=no
11501  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11503    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504    dynamic_linker='NetBSD (a.out) ld.so'
11505  else
11506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11507    soname_spec='${libname}${release}${shared_ext}$major'
11508    dynamic_linker='NetBSD ld.elf_so'
11509  fi
11510  shlibpath_var=LD_LIBRARY_PATH
11511  shlibpath_overrides_runpath=yes
11512  hardcode_into_libs=yes
11513  ;;
11514
11515newsos6)
11516  version_type=linux
11517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518  shlibpath_var=LD_LIBRARY_PATH
11519  shlibpath_overrides_runpath=yes
11520  ;;
11521
11522nto-qnx*)
11523  version_type=linux
11524  need_lib_prefix=no
11525  need_version=no
11526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527  soname_spec='${libname}${release}${shared_ext}$major'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=yes
11530  ;;
11531
11532openbsd*)
11533  version_type=sunos
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11538  shlibpath_var=LD_LIBRARY_PATH
11539  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540    case $host_os in
11541      openbsd2.[89] | openbsd2.[89].*)
11542	shlibpath_overrides_runpath=no
11543	;;
11544      *)
11545	shlibpath_overrides_runpath=yes
11546	;;
11547      esac
11548  else
11549    shlibpath_overrides_runpath=yes
11550  fi
11551  ;;
11552
11553os2*)
11554  libname_spec='$name'
11555  shrext_cmds=".dll"
11556  need_lib_prefix=no
11557  library_names_spec='$libname${shared_ext} $libname.a'
11558  dynamic_linker='OS/2 ld.exe'
11559  shlibpath_var=LIBPATH
11560  ;;
11561
11562osf3* | osf4* | osf5*)
11563  version_type=osf
11564  need_lib_prefix=no
11565  need_version=no
11566  soname_spec='${libname}${release}${shared_ext}$major'
11567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11570  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11571  ;;
11572
11573sco3.2v5*)
11574  version_type=osf
11575  soname_spec='${libname}${release}${shared_ext}$major'
11576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577  shlibpath_var=LD_LIBRARY_PATH
11578  ;;
11579
11580solaris*)
11581  version_type=linux
11582  need_lib_prefix=no
11583  need_version=no
11584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585  soname_spec='${libname}${release}${shared_ext}$major'
11586  shlibpath_var=LD_LIBRARY_PATH
11587  shlibpath_overrides_runpath=yes
11588  hardcode_into_libs=yes
11589  # ldd complains unless libraries are executable
11590  postinstall_cmds='chmod +x $lib'
11591  ;;
11592
11593sunos4*)
11594  version_type=sunos
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11596  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11597  shlibpath_var=LD_LIBRARY_PATH
11598  shlibpath_overrides_runpath=yes
11599  if test "$with_gnu_ld" = yes; then
11600    need_lib_prefix=no
11601  fi
11602  need_version=yes
11603  ;;
11604
11605sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11606  version_type=linux
11607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608  soname_spec='${libname}${release}${shared_ext}$major'
11609  shlibpath_var=LD_LIBRARY_PATH
11610  case $host_vendor in
11611    sni)
11612      shlibpath_overrides_runpath=no
11613      need_lib_prefix=no
11614      export_dynamic_flag_spec='${wl}-Blargedynsym'
11615      runpath_var=LD_RUN_PATH
11616      ;;
11617    siemens)
11618      need_lib_prefix=no
11619      ;;
11620    motorola)
11621      need_lib_prefix=no
11622      need_version=no
11623      shlibpath_overrides_runpath=no
11624      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11625      ;;
11626  esac
11627  ;;
11628
11629sysv4*MP*)
11630  if test -d /usr/nec ;then
11631    version_type=linux
11632    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11633    soname_spec='$libname${shared_ext}.$major'
11634    shlibpath_var=LD_LIBRARY_PATH
11635  fi
11636  ;;
11637
11638uts4*)
11639  version_type=linux
11640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641  soname_spec='${libname}${release}${shared_ext}$major'
11642  shlibpath_var=LD_LIBRARY_PATH
11643  ;;
11644
11645*)
11646  dynamic_linker=no
11647  ;;
11648esac
11649echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11650echo "${ECHO_T}$dynamic_linker" >&6
11651test "$dynamic_linker" = no && can_build_shared=no
11652
11653echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11654echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11655hardcode_action_CXX=
11656if test -n "$hardcode_libdir_flag_spec_CXX" || \
11657   test -n "$runpath_var_CXX" || \
11658   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11659
11660  # We can hardcode non-existant directories.
11661  if test "$hardcode_direct_CXX" != no &&
11662     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11663     # have to relink, otherwise we might link with an installed library
11664     # when we should be linking with a yet-to-be-installed one
11665     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11666     test "$hardcode_minus_L_CXX" != no; then
11667    # Linking always hardcodes the temporary library directory.
11668    hardcode_action_CXX=relink
11669  else
11670    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11671    hardcode_action_CXX=immediate
11672  fi
11673else
11674  # We cannot hardcode anything, or else we can only hardcode existing
11675  # directories.
11676  hardcode_action_CXX=unsupported
11677fi
11678echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11679echo "${ECHO_T}$hardcode_action_CXX" >&6
11680
11681if test "$hardcode_action_CXX" = relink; then
11682  # Fast installation is not supported
11683  enable_fast_install=no
11684elif test "$shlibpath_overrides_runpath" = yes ||
11685     test "$enable_shared" = no; then
11686  # Fast installation is not necessary
11687  enable_fast_install=needless
11688fi
11689
11690striplib=
11691old_striplib=
11692echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11693echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11694if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11695  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11696  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11697  echo "$as_me:$LINENO: result: yes" >&5
11698echo "${ECHO_T}yes" >&6
11699else
11700# FIXME - insert some real tests, host_os isn't really good enough
11701  case $host_os in
11702   darwin*)
11703       if test -n "$STRIP" ; then
11704         striplib="$STRIP -x"
11705         echo "$as_me:$LINENO: result: yes" >&5
11706echo "${ECHO_T}yes" >&6
11707       else
11708  echo "$as_me:$LINENO: result: no" >&5
11709echo "${ECHO_T}no" >&6
11710fi
11711       ;;
11712   *)
11713  echo "$as_me:$LINENO: result: no" >&5
11714echo "${ECHO_T}no" >&6
11715    ;;
11716  esac
11717fi
11718
11719if test "x$enable_dlopen" != xyes; then
11720  enable_dlopen=unknown
11721  enable_dlopen_self=unknown
11722  enable_dlopen_self_static=unknown
11723else
11724  lt_cv_dlopen=no
11725  lt_cv_dlopen_libs=
11726
11727  case $host_os in
11728  beos*)
11729    lt_cv_dlopen="load_add_on"
11730    lt_cv_dlopen_libs=
11731    lt_cv_dlopen_self=yes
11732    ;;
11733
11734  mingw* | pw32*)
11735    lt_cv_dlopen="LoadLibrary"
11736    lt_cv_dlopen_libs=
11737   ;;
11738
11739  cygwin*)
11740    lt_cv_dlopen="dlopen"
11741    lt_cv_dlopen_libs=
11742   ;;
11743
11744  darwin*)
11745  # if libdl is installed we need to link against it
11746    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11747echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11748if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11749  echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751  ac_check_lib_save_LIBS=$LIBS
11752LIBS="-ldl  $LIBS"
11753cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h.  */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h.  */
11759
11760/* Override any gcc2 internal prototype to avoid an error.  */
11761#ifdef __cplusplus
11762extern "C"
11763#endif
11764/* We use char because int might match the return type of a gcc2
11765   builtin and then its argument prototype would still apply.  */
11766char dlopen ();
11767int
11768main ()
11769{
11770dlopen ();
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
11776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777  (eval $ac_link) 2>conftest.er1
11778  ac_status=$?
11779  grep -v '^ *+' conftest.er1 >conftest.err
11780  rm -f conftest.er1
11781  cat conftest.err >&5
11782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783  (exit $ac_status); } &&
11784	 { ac_try='test -z "$ac_cxx_werror_flag"
11785			 || test ! -s conftest.err'
11786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787  (eval $ac_try) 2>&5
11788  ac_status=$?
11789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790  (exit $ac_status); }; } &&
11791	 { ac_try='test -s conftest$ac_exeext'
11792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793  (eval $ac_try) 2>&5
11794  ac_status=$?
11795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796  (exit $ac_status); }; }; then
11797  ac_cv_lib_dl_dlopen=yes
11798else
11799  echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802ac_cv_lib_dl_dlopen=no
11803fi
11804rm -f conftest.err conftest.$ac_objext \
11805      conftest$ac_exeext conftest.$ac_ext
11806LIBS=$ac_check_lib_save_LIBS
11807fi
11808echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11809echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11810if test $ac_cv_lib_dl_dlopen = yes; then
11811  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11812else
11813
11814    lt_cv_dlopen="dyld"
11815    lt_cv_dlopen_libs=
11816    lt_cv_dlopen_self=yes
11817
11818fi
11819
11820   ;;
11821
11822  *)
11823    echo "$as_me:$LINENO: checking for shl_load" >&5
11824echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11825if test "${ac_cv_func_shl_load+set}" = set; then
11826  echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828  cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h.  */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h.  */
11834/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11835   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11836#define shl_load innocuous_shl_load
11837
11838/* System header to define __stub macros and hopefully few prototypes,
11839    which can conflict with char shl_load (); below.
11840    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841    <limits.h> exists even on freestanding compilers.  */
11842
11843#ifdef __STDC__
11844# include <limits.h>
11845#else
11846# include <assert.h>
11847#endif
11848
11849#undef shl_load
11850
11851/* Override any gcc2 internal prototype to avoid an error.  */
11852#ifdef __cplusplus
11853extern "C"
11854{
11855#endif
11856/* We use char because int might match the return type of a gcc2
11857   builtin and then its argument prototype would still apply.  */
11858char shl_load ();
11859/* The GNU C library defines this for functions which it implements
11860    to always fail with ENOSYS.  Some functions are actually named
11861    something starting with __ and the normal name is an alias.  */
11862#if defined (__stub_shl_load) || defined (__stub___shl_load)
11863choke me
11864#else
11865char (*f) () = shl_load;
11866#endif
11867#ifdef __cplusplus
11868}
11869#endif
11870
11871int
11872main ()
11873{
11874return f != shl_load;
11875  ;
11876  return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881  (eval $ac_link) 2>conftest.er1
11882  ac_status=$?
11883  grep -v '^ *+' conftest.er1 >conftest.err
11884  rm -f conftest.er1
11885  cat conftest.err >&5
11886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887  (exit $ac_status); } &&
11888	 { ac_try='test -z "$ac_cxx_werror_flag"
11889			 || test ! -s conftest.err'
11890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891  (eval $ac_try) 2>&5
11892  ac_status=$?
11893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894  (exit $ac_status); }; } &&
11895	 { ac_try='test -s conftest$ac_exeext'
11896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897  (eval $ac_try) 2>&5
11898  ac_status=$?
11899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900  (exit $ac_status); }; }; then
11901  ac_cv_func_shl_load=yes
11902else
11903  echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906ac_cv_func_shl_load=no
11907fi
11908rm -f conftest.err conftest.$ac_objext \
11909      conftest$ac_exeext conftest.$ac_ext
11910fi
11911echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11912echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11913if test $ac_cv_func_shl_load = yes; then
11914  lt_cv_dlopen="shl_load"
11915else
11916  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11917echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11918if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11919  echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921  ac_check_lib_save_LIBS=$LIBS
11922LIBS="-ldld  $LIBS"
11923cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h.  */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h.  */
11929
11930/* Override any gcc2 internal prototype to avoid an error.  */
11931#ifdef __cplusplus
11932extern "C"
11933#endif
11934/* We use char because int might match the return type of a gcc2
11935   builtin and then its argument prototype would still apply.  */
11936char shl_load ();
11937int
11938main ()
11939{
11940shl_load ();
11941  ;
11942  return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext conftest$ac_exeext
11946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11947  (eval $ac_link) 2>conftest.er1
11948  ac_status=$?
11949  grep -v '^ *+' conftest.er1 >conftest.err
11950  rm -f conftest.er1
11951  cat conftest.err >&5
11952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953  (exit $ac_status); } &&
11954	 { ac_try='test -z "$ac_cxx_werror_flag"
11955			 || test ! -s conftest.err'
11956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957  (eval $ac_try) 2>&5
11958  ac_status=$?
11959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960  (exit $ac_status); }; } &&
11961	 { ac_try='test -s conftest$ac_exeext'
11962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963  (eval $ac_try) 2>&5
11964  ac_status=$?
11965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966  (exit $ac_status); }; }; then
11967  ac_cv_lib_dld_shl_load=yes
11968else
11969  echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972ac_cv_lib_dld_shl_load=no
11973fi
11974rm -f conftest.err conftest.$ac_objext \
11975      conftest$ac_exeext conftest.$ac_ext
11976LIBS=$ac_check_lib_save_LIBS
11977fi
11978echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11979echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11980if test $ac_cv_lib_dld_shl_load = yes; then
11981  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11982else
11983  echo "$as_me:$LINENO: checking for dlopen" >&5
11984echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11985if test "${ac_cv_func_dlopen+set}" = set; then
11986  echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988  cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h.  */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h.  */
11994/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11996#define dlopen innocuous_dlopen
11997
11998/* System header to define __stub macros and hopefully few prototypes,
11999    which can conflict with char dlopen (); below.
12000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12001    <limits.h> exists even on freestanding compilers.  */
12002
12003#ifdef __STDC__
12004# include <limits.h>
12005#else
12006# include <assert.h>
12007#endif
12008
12009#undef dlopen
12010
12011/* Override any gcc2 internal prototype to avoid an error.  */
12012#ifdef __cplusplus
12013extern "C"
12014{
12015#endif
12016/* We use char because int might match the return type of a gcc2
12017   builtin and then its argument prototype would still apply.  */
12018char dlopen ();
12019/* The GNU C library defines this for functions which it implements
12020    to always fail with ENOSYS.  Some functions are actually named
12021    something starting with __ and the normal name is an alias.  */
12022#if defined (__stub_dlopen) || defined (__stub___dlopen)
12023choke me
12024#else
12025char (*f) () = dlopen;
12026#endif
12027#ifdef __cplusplus
12028}
12029#endif
12030
12031int
12032main ()
12033{
12034return f != dlopen;
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039rm -f conftest.$ac_objext conftest$ac_exeext
12040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041  (eval $ac_link) 2>conftest.er1
12042  ac_status=$?
12043  grep -v '^ *+' conftest.er1 >conftest.err
12044  rm -f conftest.er1
12045  cat conftest.err >&5
12046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); } &&
12048	 { ac_try='test -z "$ac_cxx_werror_flag"
12049			 || test ! -s conftest.err'
12050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051  (eval $ac_try) 2>&5
12052  ac_status=$?
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); }; } &&
12055	 { ac_try='test -s conftest$ac_exeext'
12056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057  (eval $ac_try) 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; }; then
12061  ac_cv_func_dlopen=yes
12062else
12063  echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
12066ac_cv_func_dlopen=no
12067fi
12068rm -f conftest.err conftest.$ac_objext \
12069      conftest$ac_exeext conftest.$ac_ext
12070fi
12071echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12072echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12073if test $ac_cv_func_dlopen = yes; then
12074  lt_cv_dlopen="dlopen"
12075else
12076  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12078if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12079  echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081  ac_check_lib_save_LIBS=$LIBS
12082LIBS="-ldl  $LIBS"
12083cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h.  */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h.  */
12089
12090/* Override any gcc2 internal prototype to avoid an error.  */
12091#ifdef __cplusplus
12092extern "C"
12093#endif
12094/* We use char because int might match the return type of a gcc2
12095   builtin and then its argument prototype would still apply.  */
12096char dlopen ();
12097int
12098main ()
12099{
12100dlopen ();
12101  ;
12102  return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext conftest$ac_exeext
12106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107  (eval $ac_link) 2>conftest.er1
12108  ac_status=$?
12109  grep -v '^ *+' conftest.er1 >conftest.err
12110  rm -f conftest.er1
12111  cat conftest.err >&5
12112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113  (exit $ac_status); } &&
12114	 { ac_try='test -z "$ac_cxx_werror_flag"
12115			 || test ! -s conftest.err'
12116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117  (eval $ac_try) 2>&5
12118  ac_status=$?
12119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); }; } &&
12121	 { ac_try='test -s conftest$ac_exeext'
12122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123  (eval $ac_try) 2>&5
12124  ac_status=$?
12125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126  (exit $ac_status); }; }; then
12127  ac_cv_lib_dl_dlopen=yes
12128else
12129  echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132ac_cv_lib_dl_dlopen=no
12133fi
12134rm -f conftest.err conftest.$ac_objext \
12135      conftest$ac_exeext conftest.$ac_ext
12136LIBS=$ac_check_lib_save_LIBS
12137fi
12138echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12139echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12140if test $ac_cv_lib_dl_dlopen = yes; then
12141  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12142else
12143  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12144echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12145if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12146  echo $ECHO_N "(cached) $ECHO_C" >&6
12147else
12148  ac_check_lib_save_LIBS=$LIBS
12149LIBS="-lsvld  $LIBS"
12150cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h.  */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h.  */
12156
12157/* Override any gcc2 internal prototype to avoid an error.  */
12158#ifdef __cplusplus
12159extern "C"
12160#endif
12161/* We use char because int might match the return type of a gcc2
12162   builtin and then its argument prototype would still apply.  */
12163char dlopen ();
12164int
12165main ()
12166{
12167dlopen ();
12168  ;
12169  return 0;
12170}
12171_ACEOF
12172rm -f conftest.$ac_objext conftest$ac_exeext
12173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174  (eval $ac_link) 2>conftest.er1
12175  ac_status=$?
12176  grep -v '^ *+' conftest.er1 >conftest.err
12177  rm -f conftest.er1
12178  cat conftest.err >&5
12179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180  (exit $ac_status); } &&
12181	 { ac_try='test -z "$ac_cxx_werror_flag"
12182			 || test ! -s conftest.err'
12183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184  (eval $ac_try) 2>&5
12185  ac_status=$?
12186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187  (exit $ac_status); }; } &&
12188	 { ac_try='test -s conftest$ac_exeext'
12189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190  (eval $ac_try) 2>&5
12191  ac_status=$?
12192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193  (exit $ac_status); }; }; then
12194  ac_cv_lib_svld_dlopen=yes
12195else
12196  echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199ac_cv_lib_svld_dlopen=no
12200fi
12201rm -f conftest.err conftest.$ac_objext \
12202      conftest$ac_exeext conftest.$ac_ext
12203LIBS=$ac_check_lib_save_LIBS
12204fi
12205echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12206echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12207if test $ac_cv_lib_svld_dlopen = yes; then
12208  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12209else
12210  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12211echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12212if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12213  echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215  ac_check_lib_save_LIBS=$LIBS
12216LIBS="-ldld  $LIBS"
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h.  */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h.  */
12223
12224/* Override any gcc2 internal prototype to avoid an error.  */
12225#ifdef __cplusplus
12226extern "C"
12227#endif
12228/* We use char because int might match the return type of a gcc2
12229   builtin and then its argument prototype would still apply.  */
12230char dld_link ();
12231int
12232main ()
12233{
12234dld_link ();
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
12240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241  (eval $ac_link) 2>conftest.er1
12242  ac_status=$?
12243  grep -v '^ *+' conftest.er1 >conftest.err
12244  rm -f conftest.er1
12245  cat conftest.err >&5
12246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247  (exit $ac_status); } &&
12248	 { ac_try='test -z "$ac_cxx_werror_flag"
12249			 || test ! -s conftest.err'
12250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251  (eval $ac_try) 2>&5
12252  ac_status=$?
12253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254  (exit $ac_status); }; } &&
12255	 { ac_try='test -s conftest$ac_exeext'
12256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257  (eval $ac_try) 2>&5
12258  ac_status=$?
12259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260  (exit $ac_status); }; }; then
12261  ac_cv_lib_dld_dld_link=yes
12262else
12263  echo "$as_me: failed program was:" >&5
12264sed 's/^/| /' conftest.$ac_ext >&5
12265
12266ac_cv_lib_dld_dld_link=no
12267fi
12268rm -f conftest.err conftest.$ac_objext \
12269      conftest$ac_exeext conftest.$ac_ext
12270LIBS=$ac_check_lib_save_LIBS
12271fi
12272echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12273echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12274if test $ac_cv_lib_dld_dld_link = yes; then
12275  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12276fi
12277
12278
12279fi
12280
12281
12282fi
12283
12284
12285fi
12286
12287
12288fi
12289
12290
12291fi
12292
12293    ;;
12294  esac
12295
12296  if test "x$lt_cv_dlopen" != xno; then
12297    enable_dlopen=yes
12298  else
12299    enable_dlopen=no
12300  fi
12301
12302  case $lt_cv_dlopen in
12303  dlopen)
12304    save_CPPFLAGS="$CPPFLAGS"
12305    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12306
12307    save_LDFLAGS="$LDFLAGS"
12308    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12309
12310    save_LIBS="$LIBS"
12311    LIBS="$lt_cv_dlopen_libs $LIBS"
12312
12313    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12314echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12315if test "${lt_cv_dlopen_self+set}" = set; then
12316  echo $ECHO_N "(cached) $ECHO_C" >&6
12317else
12318  	  if test "$cross_compiling" = yes; then :
12319  lt_cv_dlopen_self=cross
12320else
12321  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12322  lt_status=$lt_dlunknown
12323  cat > conftest.$ac_ext <<EOF
12324#line 12324 "configure"
12325#include "confdefs.h"
12326
12327#if HAVE_DLFCN_H
12328#include <dlfcn.h>
12329#endif
12330
12331#include <stdio.h>
12332
12333#ifdef RTLD_GLOBAL
12334#  define LT_DLGLOBAL		RTLD_GLOBAL
12335#else
12336#  ifdef DL_GLOBAL
12337#    define LT_DLGLOBAL		DL_GLOBAL
12338#  else
12339#    define LT_DLGLOBAL		0
12340#  endif
12341#endif
12342
12343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12344   find out it does not work in some platform. */
12345#ifndef LT_DLLAZY_OR_NOW
12346#  ifdef RTLD_LAZY
12347#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12348#  else
12349#    ifdef DL_LAZY
12350#      define LT_DLLAZY_OR_NOW		DL_LAZY
12351#    else
12352#      ifdef RTLD_NOW
12353#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12354#      else
12355#        ifdef DL_NOW
12356#          define LT_DLLAZY_OR_NOW	DL_NOW
12357#        else
12358#          define LT_DLLAZY_OR_NOW	0
12359#        endif
12360#      endif
12361#    endif
12362#  endif
12363#endif
12364
12365#ifdef __cplusplus
12366extern "C" void exit (int);
12367#endif
12368
12369void fnord() { int i=42;}
12370int main ()
12371{
12372  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12373  int status = $lt_dlunknown;
12374
12375  if (self)
12376    {
12377      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12378      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12379      /* dlclose (self); */
12380    }
12381
12382    exit (status);
12383}
12384EOF
12385  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12386  (eval $ac_link) 2>&5
12387  ac_status=$?
12388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12390    (./conftest; exit; ) 2>/dev/null
12391    lt_status=$?
12392    case x$lt_status in
12393      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12394      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12395      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12396    esac
12397  else :
12398    # compilation failed
12399    lt_cv_dlopen_self=no
12400  fi
12401fi
12402rm -fr conftest*
12403
12404
12405fi
12406echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12407echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12408
12409    if test "x$lt_cv_dlopen_self" = xyes; then
12410      LDFLAGS="$LDFLAGS $link_static_flag"
12411      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12412echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12413if test "${lt_cv_dlopen_self_static+set}" = set; then
12414  echo $ECHO_N "(cached) $ECHO_C" >&6
12415else
12416  	  if test "$cross_compiling" = yes; then :
12417  lt_cv_dlopen_self_static=cross
12418else
12419  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12420  lt_status=$lt_dlunknown
12421  cat > conftest.$ac_ext <<EOF
12422#line 12422 "configure"
12423#include "confdefs.h"
12424
12425#if HAVE_DLFCN_H
12426#include <dlfcn.h>
12427#endif
12428
12429#include <stdio.h>
12430
12431#ifdef RTLD_GLOBAL
12432#  define LT_DLGLOBAL		RTLD_GLOBAL
12433#else
12434#  ifdef DL_GLOBAL
12435#    define LT_DLGLOBAL		DL_GLOBAL
12436#  else
12437#    define LT_DLGLOBAL		0
12438#  endif
12439#endif
12440
12441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12442   find out it does not work in some platform. */
12443#ifndef LT_DLLAZY_OR_NOW
12444#  ifdef RTLD_LAZY
12445#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12446#  else
12447#    ifdef DL_LAZY
12448#      define LT_DLLAZY_OR_NOW		DL_LAZY
12449#    else
12450#      ifdef RTLD_NOW
12451#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12452#      else
12453#        ifdef DL_NOW
12454#          define LT_DLLAZY_OR_NOW	DL_NOW
12455#        else
12456#          define LT_DLLAZY_OR_NOW	0
12457#        endif
12458#      endif
12459#    endif
12460#  endif
12461#endif
12462
12463#ifdef __cplusplus
12464extern "C" void exit (int);
12465#endif
12466
12467void fnord() { int i=42;}
12468int main ()
12469{
12470  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12471  int status = $lt_dlunknown;
12472
12473  if (self)
12474    {
12475      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12476      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12477      /* dlclose (self); */
12478    }
12479
12480    exit (status);
12481}
12482EOF
12483  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484  (eval $ac_link) 2>&5
12485  ac_status=$?
12486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12488    (./conftest; exit; ) 2>/dev/null
12489    lt_status=$?
12490    case x$lt_status in
12491      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12492      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12493      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12494    esac
12495  else :
12496    # compilation failed
12497    lt_cv_dlopen_self_static=no
12498  fi
12499fi
12500rm -fr conftest*
12501
12502
12503fi
12504echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12505echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12506    fi
12507
12508    CPPFLAGS="$save_CPPFLAGS"
12509    LDFLAGS="$save_LDFLAGS"
12510    LIBS="$save_LIBS"
12511    ;;
12512  esac
12513
12514  case $lt_cv_dlopen_self in
12515  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12516  *) enable_dlopen_self=unknown ;;
12517  esac
12518
12519  case $lt_cv_dlopen_self_static in
12520  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12521  *) enable_dlopen_self_static=unknown ;;
12522  esac
12523fi
12524
12525
12526# The else clause should only fire when bootstrapping the
12527# libtool distribution, otherwise you forgot to ship ltmain.sh
12528# with your package, and you will get complaints that there are
12529# no rules to generate ltmain.sh.
12530if test -f "$ltmain"; then
12531  # See if we are running on zsh, and set the options which allow our commands through
12532  # without removal of \ escapes.
12533  if test -n "${ZSH_VERSION+set}" ; then
12534    setopt NO_GLOB_SUBST
12535  fi
12536  # Now quote all the things that may contain metacharacters while being
12537  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12538  # variables and quote the copies for generation of the libtool script.
12539  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12540    SED SHELL STRIP \
12541    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12542    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12543    deplibs_check_method reload_flag reload_cmds need_locks \
12544    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12545    lt_cv_sys_global_symbol_to_c_name_address \
12546    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12547    old_postinstall_cmds old_postuninstall_cmds \
12548    compiler_CXX \
12549    CC_CXX \
12550    LD_CXX \
12551    lt_prog_compiler_wl_CXX \
12552    lt_prog_compiler_pic_CXX \
12553    lt_prog_compiler_static_CXX \
12554    lt_prog_compiler_no_builtin_flag_CXX \
12555    export_dynamic_flag_spec_CXX \
12556    thread_safe_flag_spec_CXX \
12557    whole_archive_flag_spec_CXX \
12558    enable_shared_with_static_runtimes_CXX \
12559    old_archive_cmds_CXX \
12560    old_archive_from_new_cmds_CXX \
12561    predep_objects_CXX \
12562    postdep_objects_CXX \
12563    predeps_CXX \
12564    postdeps_CXX \
12565    compiler_lib_search_path_CXX \
12566    archive_cmds_CXX \
12567    archive_expsym_cmds_CXX \
12568    postinstall_cmds_CXX \
12569    postuninstall_cmds_CXX \
12570    old_archive_from_expsyms_cmds_CXX \
12571    allow_undefined_flag_CXX \
12572    no_undefined_flag_CXX \
12573    export_symbols_cmds_CXX \
12574    hardcode_libdir_flag_spec_CXX \
12575    hardcode_libdir_flag_spec_ld_CXX \
12576    hardcode_libdir_separator_CXX \
12577    hardcode_automatic_CXX \
12578    module_cmds_CXX \
12579    module_expsym_cmds_CXX \
12580    lt_cv_prog_compiler_c_o_CXX \
12581    exclude_expsyms_CXX \
12582    include_expsyms_CXX; do
12583
12584    case $var in
12585    old_archive_cmds_CXX | \
12586    old_archive_from_new_cmds_CXX | \
12587    archive_cmds_CXX | \
12588    archive_expsym_cmds_CXX | \
12589    module_cmds_CXX | \
12590    module_expsym_cmds_CXX | \
12591    old_archive_from_expsyms_cmds_CXX | \
12592    export_symbols_cmds_CXX | \
12593    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12594    postinstall_cmds | postuninstall_cmds | \
12595    old_postinstall_cmds | old_postuninstall_cmds | \
12596    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12597      # Double-quote double-evaled strings.
12598      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12599      ;;
12600    *)
12601      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12602      ;;
12603    esac
12604  done
12605
12606  case $lt_echo in
12607  *'\$0 --fallback-echo"')
12608    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12609    ;;
12610  esac
12611
12612cfgfile="$ofile"
12613
12614  cat <<__EOF__ >> "$cfgfile"
12615# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12616
12617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12618
12619# Shell to use when invoking shell scripts.
12620SHELL=$lt_SHELL
12621
12622# Whether or not to build shared libraries.
12623build_libtool_libs=$enable_shared
12624
12625# Whether or not to build static libraries.
12626build_old_libs=$enable_static
12627
12628# Whether or not to add -lc for building shared libraries.
12629build_libtool_need_lc=$archive_cmds_need_lc_CXX
12630
12631# Whether or not to disallow shared libs when runtime libs are static
12632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12633
12634# Whether or not to optimize for fast installation.
12635fast_install=$enable_fast_install
12636
12637# The host system.
12638host_alias=$host_alias
12639host=$host
12640
12641# An echo program that does not interpret backslashes.
12642echo=$lt_echo
12643
12644# The archiver.
12645AR=$lt_AR
12646AR_FLAGS=$lt_AR_FLAGS
12647
12648# A C compiler.
12649LTCC=$lt_LTCC
12650
12651# A language-specific compiler.
12652CC=$lt_compiler_CXX
12653
12654# Is the compiler the GNU C compiler?
12655with_gcc=$GCC_CXX
12656
12657# An ERE matcher.
12658EGREP=$lt_EGREP
12659
12660# The linker used to build libraries.
12661LD=$lt_LD_CXX
12662
12663# Whether we need hard or soft links.
12664LN_S=$lt_LN_S
12665
12666# A BSD-compatible nm program.
12667NM=$lt_NM
12668
12669# A symbol stripping program
12670STRIP=$lt_STRIP
12671
12672# Used to examine libraries when file_magic_cmd begins "file"
12673MAGIC_CMD=$MAGIC_CMD
12674
12675# Used on cygwin: DLL creation program.
12676DLLTOOL="$DLLTOOL"
12677
12678# Used on cygwin: object dumper.
12679OBJDUMP="$OBJDUMP"
12680
12681# Used on cygwin: assembler.
12682AS="$AS"
12683
12684# The name of the directory that contains temporary libtool files.
12685objdir=$objdir
12686
12687# How to create reloadable object files.
12688reload_flag=$lt_reload_flag
12689reload_cmds=$lt_reload_cmds
12690
12691# How to pass a linker flag through the compiler.
12692wl=$lt_lt_prog_compiler_wl_CXX
12693
12694# Object file suffix (normally "o").
12695objext="$ac_objext"
12696
12697# Old archive suffix (normally "a").
12698libext="$libext"
12699
12700# Shared library suffix (normally ".so").
12701shrext_cmds='$shrext_cmds'
12702
12703# Executable file suffix (normally "").
12704exeext="$exeext"
12705
12706# Additional compiler flags for building library objects.
12707pic_flag=$lt_lt_prog_compiler_pic_CXX
12708pic_mode=$pic_mode
12709
12710# What is the maximum length of a command?
12711max_cmd_len=$lt_cv_sys_max_cmd_len
12712
12713# Does compiler simultaneously support -c and -o options?
12714compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12715
12716# Must we lock files when doing compilation ?
12717need_locks=$lt_need_locks
12718
12719# Do we need the lib prefix for modules?
12720need_lib_prefix=$need_lib_prefix
12721
12722# Do we need a version for libraries?
12723need_version=$need_version
12724
12725# Whether dlopen is supported.
12726dlopen_support=$enable_dlopen
12727
12728# Whether dlopen of programs is supported.
12729dlopen_self=$enable_dlopen_self
12730
12731# Whether dlopen of statically linked programs is supported.
12732dlopen_self_static=$enable_dlopen_self_static
12733
12734# Compiler flag to prevent dynamic linking.
12735link_static_flag=$lt_lt_prog_compiler_static_CXX
12736
12737# Compiler flag to turn off builtin functions.
12738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12739
12740# Compiler flag to allow reflexive dlopens.
12741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12742
12743# Compiler flag to generate shared objects directly from archives.
12744whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12745
12746# Compiler flag to generate thread-safe objects.
12747thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12748
12749# Library versioning type.
12750version_type=$version_type
12751
12752# Format of library name prefix.
12753libname_spec=$lt_libname_spec
12754
12755# List of archive names.  First name is the real one, the rest are links.
12756# The last name is the one that the linker finds with -lNAME.
12757library_names_spec=$lt_library_names_spec
12758
12759# The coded name of the library, if different from the real name.
12760soname_spec=$lt_soname_spec
12761
12762# Commands used to build and install an old-style archive.
12763RANLIB=$lt_RANLIB
12764old_archive_cmds=$lt_old_archive_cmds_CXX
12765old_postinstall_cmds=$lt_old_postinstall_cmds
12766old_postuninstall_cmds=$lt_old_postuninstall_cmds
12767
12768# Create an old-style archive from a shared archive.
12769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12770
12771# Create a temporary old-style archive to link instead of a shared archive.
12772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12773
12774# Commands used to build and install a shared archive.
12775archive_cmds=$lt_archive_cmds_CXX
12776archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12777postinstall_cmds=$lt_postinstall_cmds
12778postuninstall_cmds=$lt_postuninstall_cmds
12779
12780# Commands used to build a loadable module (assumed same as above if empty)
12781module_cmds=$lt_module_cmds_CXX
12782module_expsym_cmds=$lt_module_expsym_cmds_CXX
12783
12784# Commands to strip libraries.
12785old_striplib=$lt_old_striplib
12786striplib=$lt_striplib
12787
12788# Dependencies to place before the objects being linked to create a
12789# shared library.
12790predep_objects=$lt_predep_objects_CXX
12791
12792# Dependencies to place after the objects being linked to create a
12793# shared library.
12794postdep_objects=$lt_postdep_objects_CXX
12795
12796# Dependencies to place before the objects being linked to create a
12797# shared library.
12798predeps=$lt_predeps_CXX
12799
12800# Dependencies to place after the objects being linked to create a
12801# shared library.
12802postdeps=$lt_postdeps_CXX
12803
12804# The library search path used internally by the compiler when linking
12805# a shared library.
12806compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12807
12808# Method to check whether dependent libraries are shared objects.
12809deplibs_check_method=$lt_deplibs_check_method
12810
12811# Command to use when deplibs_check_method == file_magic.
12812file_magic_cmd=$lt_file_magic_cmd
12813
12814# Flag that allows shared libraries with undefined symbols to be built.
12815allow_undefined_flag=$lt_allow_undefined_flag_CXX
12816
12817# Flag that forces no undefined symbols.
12818no_undefined_flag=$lt_no_undefined_flag_CXX
12819
12820# Commands used to finish a libtool library installation in a directory.
12821finish_cmds=$lt_finish_cmds
12822
12823# Same as above, but a single script fragment to be evaled but not shown.
12824finish_eval=$lt_finish_eval
12825
12826# Take the output of nm and produce a listing of raw symbols and C names.
12827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12828
12829# Transform the output of nm in a proper C declaration
12830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12831
12832# Transform the output of nm in a C name address pair
12833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12834
12835# This is the shared library runtime path variable.
12836runpath_var=$runpath_var
12837
12838# This is the shared library path variable.
12839shlibpath_var=$shlibpath_var
12840
12841# Is shlibpath searched before the hard-coded library search path?
12842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12843
12844# How to hardcode a shared library path into an executable.
12845hardcode_action=$hardcode_action_CXX
12846
12847# Whether we should hardcode library paths into libraries.
12848hardcode_into_libs=$hardcode_into_libs
12849
12850# Flag to hardcode \$libdir into a binary during linking.
12851# This must work even if \$libdir does not exist.
12852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12853
12854# If ld is used when linking, flag to hardcode \$libdir into
12855# a binary during linking. This must work even if \$libdir does
12856# not exist.
12857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12858
12859# Whether we need a single -rpath flag with a separated argument.
12860hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12861
12862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12863# resulting binary.
12864hardcode_direct=$hardcode_direct_CXX
12865
12866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12867# resulting binary.
12868hardcode_minus_L=$hardcode_minus_L_CXX
12869
12870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12871# the resulting binary.
12872hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12873
12874# Set to yes if building a shared library automatically hardcodes DIR into the library
12875# and all subsequent libraries and executables linked against it.
12876hardcode_automatic=$hardcode_automatic_CXX
12877
12878# Variables whose values should be saved in libtool wrapper scripts and
12879# restored at relink time.
12880variables_saved_for_relink="$variables_saved_for_relink"
12881
12882# Whether libtool must link a program against all its dependency libraries.
12883link_all_deplibs=$link_all_deplibs_CXX
12884
12885# Compile-time system search path for libraries
12886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12887
12888# Run-time system search path for libraries
12889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12890
12891# Fix the shell variable \$srcfile for the compiler.
12892fix_srcfile_path="$fix_srcfile_path_CXX"
12893
12894# Set to yes if exported symbols are required.
12895always_export_symbols=$always_export_symbols_CXX
12896
12897# The commands to list exported symbols.
12898export_symbols_cmds=$lt_export_symbols_cmds_CXX
12899
12900# The commands to extract the exported symbol list from a shared archive.
12901extract_expsyms_cmds=$lt_extract_expsyms_cmds
12902
12903# Symbols that should not be listed in the preloaded symbols.
12904exclude_expsyms=$lt_exclude_expsyms_CXX
12905
12906# Symbols that must always be exported.
12907include_expsyms=$lt_include_expsyms_CXX
12908
12909# ### END LIBTOOL TAG CONFIG: $tagname
12910
12911__EOF__
12912
12913
12914else
12915  # If there is no Makefile yet, we rely on a make rule to execute
12916  # `config.status --recheck' to rerun these tests and create the
12917  # libtool script then.
12918  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12919  if test -f "$ltmain_in"; then
12920    test -f Makefile && make "$ltmain"
12921  fi
12922fi
12923
12924
12925ac_ext=c
12926ac_cpp='$CPP $CPPFLAGS'
12927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930
12931CC=$lt_save_CC
12932LDCXX=$LD
12933LD=$lt_save_LD
12934GCC=$lt_save_GCC
12935with_gnu_ldcxx=$with_gnu_ld
12936with_gnu_ld=$lt_save_with_gnu_ld
12937lt_cv_path_LDCXX=$lt_cv_path_LD
12938lt_cv_path_LD=$lt_save_path_LD
12939lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12940lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12941
12942	else
12943	  tagname=""
12944	fi
12945	;;
12946
12947      F77)
12948	if test -n "$F77" && test "X$F77" != "Xno"; then
12949
12950ac_ext=f
12951ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12952ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12954
12955
12956archive_cmds_need_lc_F77=no
12957allow_undefined_flag_F77=
12958always_export_symbols_F77=no
12959archive_expsym_cmds_F77=
12960export_dynamic_flag_spec_F77=
12961hardcode_direct_F77=no
12962hardcode_libdir_flag_spec_F77=
12963hardcode_libdir_flag_spec_ld_F77=
12964hardcode_libdir_separator_F77=
12965hardcode_minus_L_F77=no
12966hardcode_automatic_F77=no
12967module_cmds_F77=
12968module_expsym_cmds_F77=
12969link_all_deplibs_F77=unknown
12970old_archive_cmds_F77=$old_archive_cmds
12971no_undefined_flag_F77=
12972whole_archive_flag_spec_F77=
12973enable_shared_with_static_runtimes_F77=no
12974
12975# Source file extension for f77 test sources.
12976ac_ext=f
12977
12978# Object file extension for compiled f77 test sources.
12979objext=o
12980objext_F77=$objext
12981
12982# Code to be used in simple compile tests
12983lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12984
12985# Code to be used in simple link tests
12986lt_simple_link_test_code="      program t\n      end\n"
12987
12988# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989
12990# If no C compiler was specified, use CC.
12991LTCC=${LTCC-"$CC"}
12992
12993# Allow CC to be a program name with arguments.
12994compiler=$CC
12995
12996
12997# Allow CC to be a program name with arguments.
12998lt_save_CC="$CC"
12999CC=${F77-"f77"}
13000compiler=$CC
13001compiler_F77=$CC
13002cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13003
13004echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13005echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13006echo "$as_me:$LINENO: result: $can_build_shared" >&5
13007echo "${ECHO_T}$can_build_shared" >&6
13008
13009echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13010echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13011test "$can_build_shared" = "no" && enable_shared=no
13012
13013# On AIX, shared libraries and static libraries use the same namespace, and
13014# are all built from PIC.
13015case "$host_os" in
13016aix3*)
13017  test "$enable_shared" = yes && enable_static=no
13018  if test -n "$RANLIB"; then
13019    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13020    postinstall_cmds='$RANLIB $lib'
13021  fi
13022  ;;
13023aix4* | aix5*)
13024  test "$enable_shared" = yes && enable_static=no
13025  ;;
13026esac
13027echo "$as_me:$LINENO: result: $enable_shared" >&5
13028echo "${ECHO_T}$enable_shared" >&6
13029
13030echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13031echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13032# Make sure either enable_shared or enable_static is yes.
13033test "$enable_shared" = yes || enable_static=yes
13034echo "$as_me:$LINENO: result: $enable_static" >&5
13035echo "${ECHO_T}$enable_static" >&6
13036
13037test "$ld_shlibs_F77" = no && can_build_shared=no
13038
13039GCC_F77="$G77"
13040LD_F77="$LD"
13041
13042lt_prog_compiler_wl_F77=
13043lt_prog_compiler_pic_F77=
13044lt_prog_compiler_static_F77=
13045
13046echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13048
13049  if test "$GCC" = yes; then
13050    lt_prog_compiler_wl_F77='-Wl,'
13051    lt_prog_compiler_static_F77='-static'
13052
13053    case $host_os in
13054      aix*)
13055      # All AIX code is PIC.
13056      if test "$host_cpu" = ia64; then
13057	# AIX 5 now supports IA64 processor
13058	lt_prog_compiler_static_F77='-Bstatic'
13059      fi
13060      ;;
13061
13062    amigaos*)
13063      # FIXME: we need at least 68020 code to build shared libraries, but
13064      # adding the `-m68020' flag to GCC prevents building anything better,
13065      # like `-m68040'.
13066      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13067      ;;
13068
13069    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13070      # PIC is the default for these OSes.
13071      ;;
13072
13073    mingw* | pw32* | os2*)
13074      # This hack is so that the source file can tell whether it is being
13075      # built for inclusion in a dll (and should export symbols for example).
13076      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13077      ;;
13078
13079    darwin* | rhapsody*)
13080      # PIC is the default on this platform
13081      # Common symbols not allowed in MH_DYLIB files
13082      lt_prog_compiler_pic_F77='-fno-common'
13083      ;;
13084
13085    msdosdjgpp*)
13086      # Just because we use GCC doesn't mean we suddenly get shared libraries
13087      # on systems that don't support them.
13088      lt_prog_compiler_can_build_shared_F77=no
13089      enable_shared=no
13090      ;;
13091
13092    sysv4*MP*)
13093      if test -d /usr/nec; then
13094	lt_prog_compiler_pic_F77=-Kconform_pic
13095      fi
13096      ;;
13097
13098    hpux*)
13099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13100      # not for PA HP-UX.
13101      case "$host_cpu" in
13102      hppa*64*|ia64*)
13103	# +Z the default
13104	;;
13105      *)
13106	lt_prog_compiler_pic_F77='-fPIC'
13107	;;
13108      esac
13109      ;;
13110
13111    *)
13112      lt_prog_compiler_pic_F77='-fPIC'
13113      ;;
13114    esac
13115  else
13116    # PORTME Check for flag to pass linker flags through the system compiler.
13117    case $host_os in
13118    aix*)
13119      lt_prog_compiler_wl_F77='-Wl,'
13120      if test "$host_cpu" = ia64; then
13121	# AIX 5 now supports IA64 processor
13122	lt_prog_compiler_static_F77='-Bstatic'
13123      else
13124	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13125      fi
13126      ;;
13127      darwin*)
13128        # PIC is the default on this platform
13129        # Common symbols not allowed in MH_DYLIB files
13130       case "$cc_basename" in
13131         xlc*)
13132         lt_prog_compiler_pic_F77='-qnocommon'
13133         lt_prog_compiler_wl_F77='-Wl,'
13134         ;;
13135       esac
13136       ;;
13137
13138    mingw* | pw32* | os2*)
13139      # This hack is so that the source file can tell whether it is being
13140      # built for inclusion in a dll (and should export symbols for example).
13141      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13142      ;;
13143
13144    hpux9* | hpux10* | hpux11*)
13145      lt_prog_compiler_wl_F77='-Wl,'
13146      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147      # not for PA HP-UX.
13148      case "$host_cpu" in
13149      hppa*64*|ia64*)
13150	# +Z the default
13151	;;
13152      *)
13153	lt_prog_compiler_pic_F77='+Z'
13154	;;
13155      esac
13156      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13157      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13158      ;;
13159
13160    irix5* | irix6* | nonstopux*)
13161      lt_prog_compiler_wl_F77='-Wl,'
13162      # PIC (with -KPIC) is the default.
13163      lt_prog_compiler_static_F77='-non_shared'
13164      ;;
13165
13166    newsos6)
13167      lt_prog_compiler_pic_F77='-KPIC'
13168      lt_prog_compiler_static_F77='-Bstatic'
13169      ;;
13170
13171    linux*)
13172      case $CC in
13173      icc* | ecc*)
13174	lt_prog_compiler_wl_F77='-Wl,'
13175	lt_prog_compiler_pic_F77='-KPIC'
13176	lt_prog_compiler_static_F77='-static'
13177        ;;
13178      ccc*)
13179        lt_prog_compiler_wl_F77='-Wl,'
13180        # All Alpha code is PIC.
13181        lt_prog_compiler_static_F77='-non_shared'
13182        ;;
13183      esac
13184      ;;
13185
13186    osf3* | osf4* | osf5*)
13187      lt_prog_compiler_wl_F77='-Wl,'
13188      # All OSF/1 code is PIC.
13189      lt_prog_compiler_static_F77='-non_shared'
13190      ;;
13191
13192    sco3.2v5*)
13193      lt_prog_compiler_pic_F77='-Kpic'
13194      lt_prog_compiler_static_F77='-dn'
13195      ;;
13196
13197    solaris*)
13198      lt_prog_compiler_wl_F77='-Wl,'
13199      lt_prog_compiler_pic_F77='-KPIC'
13200      lt_prog_compiler_static_F77='-Bstatic'
13201      ;;
13202
13203    sunos4*)
13204      lt_prog_compiler_wl_F77='-Qoption ld '
13205      lt_prog_compiler_pic_F77='-PIC'
13206      lt_prog_compiler_static_F77='-Bstatic'
13207      ;;
13208
13209    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13210      lt_prog_compiler_wl_F77='-Wl,'
13211      lt_prog_compiler_pic_F77='-KPIC'
13212      lt_prog_compiler_static_F77='-Bstatic'
13213      ;;
13214
13215    sysv4*MP*)
13216      if test -d /usr/nec ;then
13217	lt_prog_compiler_pic_F77='-Kconform_pic'
13218	lt_prog_compiler_static_F77='-Bstatic'
13219      fi
13220      ;;
13221
13222    uts4*)
13223      lt_prog_compiler_pic_F77='-pic'
13224      lt_prog_compiler_static_F77='-Bstatic'
13225      ;;
13226
13227    *)
13228      lt_prog_compiler_can_build_shared_F77=no
13229      ;;
13230    esac
13231  fi
13232
13233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13234echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13235
13236#
13237# Check to make sure the PIC flag actually works.
13238#
13239if test -n "$lt_prog_compiler_pic_F77"; then
13240
13241echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13242echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13243if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13244  echo $ECHO_N "(cached) $ECHO_C" >&6
13245else
13246  lt_prog_compiler_pic_works_F77=no
13247  ac_outfile=conftest.$ac_objext
13248   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13249   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13250   # Insert the option either (1) after the last *FLAGS variable, or
13251   # (2) before a word containing "conftest.", or (3) at the end.
13252   # Note that $ac_compile itself does not contain backslashes and begins
13253   # with a dollar sign (not a hyphen), so the echo should work correctly.
13254   # The option is referenced via a variable to avoid confusing sed.
13255   lt_compile=`echo "$ac_compile" | $SED \
13256   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13257   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13258   -e 's:$: $lt_compiler_flag:'`
13259   (eval echo "\"\$as_me:13259: $lt_compile\"" >&5)
13260   (eval "$lt_compile" 2>conftest.err)
13261   ac_status=$?
13262   cat conftest.err >&5
13263   echo "$as_me:13263: \$? = $ac_status" >&5
13264   if (exit $ac_status) && test -s "$ac_outfile"; then
13265     # The compiler can only warn and ignore the option if not recognized
13266     # So say no if there are warnings
13267     if test ! -s conftest.err; then
13268       lt_prog_compiler_pic_works_F77=yes
13269     fi
13270   fi
13271   $rm conftest*
13272
13273fi
13274echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13275echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13276
13277if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13278    case $lt_prog_compiler_pic_F77 in
13279     "" | " "*) ;;
13280     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13281     esac
13282else
13283    lt_prog_compiler_pic_F77=
13284     lt_prog_compiler_can_build_shared_F77=no
13285fi
13286
13287fi
13288case "$host_os" in
13289  # For platforms which do not support PIC, -DPIC is meaningless:
13290  *djgpp*)
13291    lt_prog_compiler_pic_F77=
13292    ;;
13293  *)
13294    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13295    ;;
13296esac
13297
13298echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13299echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13300if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13301  echo $ECHO_N "(cached) $ECHO_C" >&6
13302else
13303  lt_cv_prog_compiler_c_o_F77=no
13304   $rm -r conftest 2>/dev/null
13305   mkdir conftest
13306   cd conftest
13307   mkdir out
13308   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13309
13310   lt_compiler_flag="-o out/conftest2.$ac_objext"
13311   # Insert the option either (1) after the last *FLAGS variable, or
13312   # (2) before a word containing "conftest.", or (3) at the end.
13313   # Note that $ac_compile itself does not contain backslashes and begins
13314   # with a dollar sign (not a hyphen), so the echo should work correctly.
13315   lt_compile=`echo "$ac_compile" | $SED \
13316   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13317   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13318   -e 's:$: $lt_compiler_flag:'`
13319   (eval echo "\"\$as_me:13319: $lt_compile\"" >&5)
13320   (eval "$lt_compile" 2>out/conftest.err)
13321   ac_status=$?
13322   cat out/conftest.err >&5
13323   echo "$as_me:13323: \$? = $ac_status" >&5
13324   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13325   then
13326     # The compiler can only warn and ignore the option if not recognized
13327     # So say no if there are warnings
13328     if test ! -s out/conftest.err; then
13329       lt_cv_prog_compiler_c_o_F77=yes
13330     fi
13331   fi
13332   chmod u+w .
13333   $rm conftest*
13334   # SGI C++ compiler will create directory out/ii_files/ for
13335   # template instantiation
13336   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13337   $rm out/* && rmdir out
13338   cd ..
13339   rmdir conftest
13340   $rm conftest*
13341
13342fi
13343echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13344echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13345
13346
13347hard_links="nottested"
13348if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13349  # do not overwrite the value of need_locks provided by the user
13350  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13351echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13352  hard_links=yes
13353  $rm conftest*
13354  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13355  touch conftest.a
13356  ln conftest.a conftest.b 2>&5 || hard_links=no
13357  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13358  echo "$as_me:$LINENO: result: $hard_links" >&5
13359echo "${ECHO_T}$hard_links" >&6
13360  if test "$hard_links" = no; then
13361    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13362echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13363    need_locks=warn
13364  fi
13365else
13366  need_locks=no
13367fi
13368
13369echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13370echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13371
13372  runpath_var=
13373  allow_undefined_flag_F77=
13374  enable_shared_with_static_runtimes_F77=no
13375  archive_cmds_F77=
13376  archive_expsym_cmds_F77=
13377  old_archive_From_new_cmds_F77=
13378  old_archive_from_expsyms_cmds_F77=
13379  export_dynamic_flag_spec_F77=
13380  whole_archive_flag_spec_F77=
13381  thread_safe_flag_spec_F77=
13382  hardcode_libdir_flag_spec_F77=
13383  hardcode_libdir_flag_spec_ld_F77=
13384  hardcode_libdir_separator_F77=
13385  hardcode_direct_F77=no
13386  hardcode_minus_L_F77=no
13387  hardcode_shlibpath_var_F77=unsupported
13388  link_all_deplibs_F77=unknown
13389  hardcode_automatic_F77=no
13390  module_cmds_F77=
13391  module_expsym_cmds_F77=
13392  always_export_symbols_F77=no
13393  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13394  # include_expsyms should be a list of space-separated symbols to be *always*
13395  # included in the symbol list
13396  include_expsyms_F77=
13397  # exclude_expsyms can be an extended regexp of symbols to exclude
13398  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13399  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13400  # as well as any symbol that contains `d'.
13401  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13402  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13403  # platforms (ab)use it in PIC code, but their linkers get confused if
13404  # the symbol is explicitly referenced.  Since portable code cannot
13405  # rely on this symbol name, it's probably fine to never include it in
13406  # preloaded symbol tables.
13407  extract_expsyms_cmds=
13408
13409  case $host_os in
13410  cygwin* | mingw* | pw32*)
13411    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13412    # When not using gcc, we currently assume that we are using
13413    # Microsoft Visual C++.
13414    if test "$GCC" != yes; then
13415      with_gnu_ld=no
13416    fi
13417    ;;
13418  openbsd*)
13419    with_gnu_ld=no
13420    ;;
13421  esac
13422
13423  ld_shlibs_F77=yes
13424  if test "$with_gnu_ld" = yes; then
13425    # If archive_cmds runs LD, not CC, wlarc should be empty
13426    wlarc='${wl}'
13427
13428    # See if GNU ld supports shared libraries.
13429    case $host_os in
13430    aix3* | aix4* | aix5*)
13431      # On AIX/PPC, the GNU linker is very broken
13432      if test "$host_cpu" != ia64; then
13433	ld_shlibs_F77=no
13434	cat <<EOF 1>&2
13435
13436*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13437*** to be unable to reliably create shared libraries on AIX.
13438*** Therefore, libtool is disabling shared libraries support.  If you
13439*** really care for shared libraries, you may want to modify your PATH
13440*** so that a non-GNU linker is found, and then restart.
13441
13442EOF
13443      fi
13444      ;;
13445
13446    amigaos*)
13447      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)'
13448      hardcode_libdir_flag_spec_F77='-L$libdir'
13449      hardcode_minus_L_F77=yes
13450
13451      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13452      # that the semantics of dynamic libraries on AmigaOS, at least up
13453      # to version 4, is to share data among multiple programs linked
13454      # with the same dynamic library.  Since this doesn't match the
13455      # behavior of shared libraries on other platforms, we can't use
13456      # them.
13457      ld_shlibs_F77=no
13458      ;;
13459
13460    beos*)
13461      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13462	allow_undefined_flag_F77=unsupported
13463	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464	# support --undefined.  This deserves some investigation.  FIXME
13465	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466      else
13467	ld_shlibs_F77=no
13468      fi
13469      ;;
13470
13471    cygwin* | mingw* | pw32*)
13472      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13473      # as there is no search path for DLLs.
13474      hardcode_libdir_flag_spec_F77='-L$libdir'
13475      allow_undefined_flag_F77=unsupported
13476      always_export_symbols_F77=no
13477      enable_shared_with_static_runtimes_F77=yes
13478      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13479
13480      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13481        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13482	# If the export-symbols file already is a .def file (1st line
13483	# is EXPORTS), use it as is; otherwise, prepend...
13484	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13485	  cp $export_symbols $output_objdir/$soname.def;
13486	else
13487	  echo EXPORTS > $output_objdir/$soname.def;
13488	  cat $export_symbols >> $output_objdir/$soname.def;
13489	fi~
13490	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13491      else
13492	ld_shlibs=no
13493      fi
13494      ;;
13495
13496    netbsd*)
13497      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13498	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13499	wlarc=
13500      else
13501	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13502	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13503      fi
13504      ;;
13505
13506    solaris* | sysv5*)
13507      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13508	ld_shlibs_F77=no
13509	cat <<EOF 1>&2
13510
13511*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13512*** create shared libraries on Solaris systems.  Therefore, libtool
13513*** is disabling shared libraries support.  We urge you to upgrade GNU
13514*** binutils to release 2.9.1 or newer.  Another option is to modify
13515*** your PATH or compiler configuration so that the native linker is
13516*** used, and then restart.
13517
13518EOF
13519      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13520	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13521	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13522      else
13523	ld_shlibs_F77=no
13524      fi
13525      ;;
13526
13527    sunos4*)
13528      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13529      wlarc=
13530      hardcode_direct_F77=yes
13531      hardcode_shlibpath_var_F77=no
13532      ;;
13533
13534  linux*)
13535    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537	archive_cmds_F77="$tmp_archive_cmds"
13538      supports_anon_versioning=no
13539      case `$LD -v 2>/dev/null` in
13540        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13541        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13542        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13543        *\ 2.11.*) ;; # other 2.11 versions
13544        *) supports_anon_versioning=yes ;;
13545      esac
13546      if test $supports_anon_versioning = yes; then
13547        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13548cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13549$echo "local: *; };" >> $output_objdir/$libname.ver~
13550        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13551      else
13552        archive_expsym_cmds_F77="$tmp_archive_cmds"
13553      fi
13554    else
13555      ld_shlibs_F77=no
13556    fi
13557    ;;
13558
13559    *)
13560      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13563      else
13564	ld_shlibs_F77=no
13565      fi
13566      ;;
13567    esac
13568
13569    if test "$ld_shlibs_F77" = yes; then
13570      runpath_var=LD_RUN_PATH
13571      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13572      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13573      # ancient GNU ld didn't support --whole-archive et. al.
13574      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13575 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13576      else
13577  	whole_archive_flag_spec_F77=
13578      fi
13579    fi
13580  else
13581    # PORTME fill in a description of your system's linker (not GNU ld)
13582    case $host_os in
13583    aix3*)
13584      allow_undefined_flag_F77=unsupported
13585      always_export_symbols_F77=yes
13586      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'
13587      # Note: this linker hardcodes the directories in LIBPATH if there
13588      # are no directories specified by -L.
13589      hardcode_minus_L_F77=yes
13590      if test "$GCC" = yes && test -z "$link_static_flag"; then
13591	# Neither direct hardcoding nor static linking is supported with a
13592	# broken collect2.
13593	hardcode_direct_F77=unsupported
13594      fi
13595      ;;
13596
13597    aix4* | aix5*)
13598      if test "$host_cpu" = ia64; then
13599	# On IA64, the linker does run time linking by default, so we don't
13600	# have to do anything special.
13601	aix_use_runtimelinking=no
13602	exp_sym_flag='-Bexport'
13603	no_entry_flag=""
13604      else
13605	# If we're using GNU nm, then we don't want the "-C" option.
13606	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13607	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13608	  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'
13609	else
13610	  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'
13611	fi
13612	aix_use_runtimelinking=no
13613
13614	# Test if we are trying to use run time linking or normal
13615	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13616	# need to do runtime linking.
13617	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13618	  for ld_flag in $LDFLAGS; do
13619  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13620  	    aix_use_runtimelinking=yes
13621  	    break
13622  	  fi
13623	  done
13624	esac
13625
13626	exp_sym_flag='-bexport'
13627	no_entry_flag='-bnoentry'
13628      fi
13629
13630      # When large executables or shared objects are built, AIX ld can
13631      # have problems creating the table of contents.  If linking a library
13632      # or program results in "error TOC overflow" add -mminimal-toc to
13633      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13634      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13635
13636      archive_cmds_F77=''
13637      hardcode_direct_F77=yes
13638      hardcode_libdir_separator_F77=':'
13639      link_all_deplibs_F77=yes
13640
13641      if test "$GCC" = yes; then
13642	case $host_os in aix4.012|aix4.012.*)
13643	# We only want to do this on AIX 4.2 and lower, the check
13644	# below for broken collect2 doesn't work under 4.3+
13645	  collect2name=`${CC} -print-prog-name=collect2`
13646	  if test -f "$collect2name" && \
13647  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13648	  then
13649  	  # We have reworked collect2
13650  	  hardcode_direct_F77=yes
13651	  else
13652  	  # We have old collect2
13653  	  hardcode_direct_F77=unsupported
13654  	  # It fails to find uninstalled libraries when the uninstalled
13655  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13656  	  # to unsupported forces relinking
13657  	  hardcode_minus_L_F77=yes
13658  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13659  	  hardcode_libdir_separator_F77=
13660	  fi
13661	esac
13662	shared_flag='-shared'
13663      else
13664	# not using gcc
13665	if test "$host_cpu" = ia64; then
13666  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667  	# chokes on -Wl,-G. The following line is correct:
13668	  shared_flag='-G'
13669	else
13670  	if test "$aix_use_runtimelinking" = yes; then
13671	    shared_flag='${wl}-G'
13672	  else
13673	    shared_flag='${wl}-bM:SRE'
13674  	fi
13675	fi
13676      fi
13677
13678      # It seems that -bexpall does not export symbols beginning with
13679      # underscore (_), so it is better to generate a list of symbols to export.
13680      always_export_symbols_F77=yes
13681      if test "$aix_use_runtimelinking" = yes; then
13682	# Warning - without using the other runtime loading flags (-brtl),
13683	# -berok will link without error, but may produce a broken library.
13684	allow_undefined_flag_F77='-berok'
13685       # Determine the default libpath from the value encoded in an empty executable.
13686       cat >conftest.$ac_ext <<_ACEOF
13687      program main
13688
13689      end
13690_ACEOF
13691rm -f conftest.$ac_objext conftest$ac_exeext
13692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693  (eval $ac_link) 2>conftest.er1
13694  ac_status=$?
13695  grep -v '^ *+' conftest.er1 >conftest.err
13696  rm -f conftest.er1
13697  cat conftest.err >&5
13698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699  (exit $ac_status); } &&
13700	 { ac_try='test -z "$ac_f77_werror_flag"
13701			 || test ! -s conftest.err'
13702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703  (eval $ac_try) 2>&5
13704  ac_status=$?
13705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706  (exit $ac_status); }; } &&
13707	 { ac_try='test -s conftest$ac_exeext'
13708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709  (eval $ac_try) 2>&5
13710  ac_status=$?
13711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712  (exit $ac_status); }; }; then
13713
13714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13715}'`
13716# Check for a 64-bit object if we didn't find anything.
13717if 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; }
13718}'`; fi
13719else
13720  echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723fi
13724rm -f conftest.err conftest.$ac_objext \
13725      conftest$ac_exeext conftest.$ac_ext
13726if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13727
13728       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13729	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13730       else
13731	if test "$host_cpu" = ia64; then
13732	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13733	  allow_undefined_flag_F77="-z nodefs"
13734	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13735	else
13736	 # Determine the default libpath from the value encoded in an empty executable.
13737	 cat >conftest.$ac_ext <<_ACEOF
13738      program main
13739
13740      end
13741_ACEOF
13742rm -f conftest.$ac_objext conftest$ac_exeext
13743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744  (eval $ac_link) 2>conftest.er1
13745  ac_status=$?
13746  grep -v '^ *+' conftest.er1 >conftest.err
13747  rm -f conftest.er1
13748  cat conftest.err >&5
13749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750  (exit $ac_status); } &&
13751	 { ac_try='test -z "$ac_f77_werror_flag"
13752			 || test ! -s conftest.err'
13753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754  (eval $ac_try) 2>&5
13755  ac_status=$?
13756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757  (exit $ac_status); }; } &&
13758	 { ac_try='test -s conftest$ac_exeext'
13759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760  (eval $ac_try) 2>&5
13761  ac_status=$?
13762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763  (exit $ac_status); }; }; then
13764
13765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13766}'`
13767# Check for a 64-bit object if we didn't find anything.
13768if 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; }
13769}'`; fi
13770else
13771  echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774fi
13775rm -f conftest.err conftest.$ac_objext \
13776      conftest$ac_exeext conftest.$ac_ext
13777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13778
13779	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13780	  # Warning - without using the other run time loading flags,
13781	  # -berok will link without error, but may produce a broken library.
13782	  no_undefined_flag_F77=' ${wl}-bernotok'
13783	  allow_undefined_flag_F77=' ${wl}-berok'
13784	  # -bexpall does not export symbols beginning with underscore (_)
13785	  always_export_symbols_F77=yes
13786	  # Exported symbols can be pulled into shared objects from archives
13787	  whole_archive_flag_spec_F77=' '
13788	  archive_cmds_need_lc_F77=yes
13789	  # This is similar to how AIX traditionally builds it's shared libraries.
13790	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13791	fi
13792      fi
13793      ;;
13794
13795    amigaos*)
13796      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)'
13797      hardcode_libdir_flag_spec_F77='-L$libdir'
13798      hardcode_minus_L_F77=yes
13799      # see comment about different semantics on the GNU ld section
13800      ld_shlibs_F77=no
13801      ;;
13802
13803    bsdi[45]*)
13804      export_dynamic_flag_spec_F77=-rdynamic
13805      ;;
13806
13807    cygwin* | mingw* | pw32*)
13808      # When not using gcc, we currently assume that we are using
13809      # Microsoft Visual C++.
13810      # hardcode_libdir_flag_spec is actually meaningless, as there is
13811      # no search path for DLLs.
13812      hardcode_libdir_flag_spec_F77=' '
13813      allow_undefined_flag_F77=unsupported
13814      # Tell ltmain to make .lib files, not .a files.
13815      libext=lib
13816      # Tell ltmain to make .dll files, not .so files.
13817      shrext_cmds=".dll"
13818      # FIXME: Setting linknames here is a bad hack.
13819      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13820      # The linker will automatically build a .lib file if we build a DLL.
13821      old_archive_From_new_cmds_F77='true'
13822      # FIXME: Should let the user specify the lib program.
13823      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13824      fix_srcfile_path='`cygpath -w "$srcfile"`'
13825      enable_shared_with_static_runtimes_F77=yes
13826      ;;
13827
13828    darwin* | rhapsody*)
13829      case "$host_os" in
13830        rhapsody* | darwin1.[012])
13831         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13832         ;;
13833       *) # Darwin 1.3 on
13834         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13835           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13836         else
13837           case ${MACOSX_DEPLOYMENT_TARGET} in
13838             10.[012])
13839               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13840               ;;
13841             10.*)
13842               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13843               ;;
13844           esac
13845         fi
13846         ;;
13847      esac
13848      archive_cmds_need_lc_F77=no
13849      hardcode_direct_F77=no
13850      hardcode_automatic_F77=yes
13851      hardcode_shlibpath_var_F77=unsupported
13852      whole_archive_flag_spec_F77=''
13853      link_all_deplibs_F77=yes
13854    if test "$GCC" = yes ; then
13855    	output_verbose_link_cmd='echo'
13856        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13857      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13858      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13859      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}'
13860      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}'
13861    else
13862      case "$cc_basename" in
13863        xlc*)
13864         output_verbose_link_cmd='echo'
13865         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13866         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13867          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13868         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}'
13869          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}'
13870          ;;
13871       *)
13872         ld_shlibs_F77=no
13873          ;;
13874      esac
13875    fi
13876      ;;
13877
13878    dgux*)
13879      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880      hardcode_libdir_flag_spec_F77='-L$libdir'
13881      hardcode_shlibpath_var_F77=no
13882      ;;
13883
13884    freebsd1*)
13885      ld_shlibs_F77=no
13886      ;;
13887
13888    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13889    # support.  Future versions do this automatically, but an explicit c++rt0.o
13890    # does not break anything, and helps significantly (at the cost of a little
13891    # extra space).
13892    freebsd2.2*)
13893      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13894      hardcode_libdir_flag_spec_F77='-R$libdir'
13895      hardcode_direct_F77=yes
13896      hardcode_shlibpath_var_F77=no
13897      ;;
13898
13899    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13900    freebsd2*)
13901      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13902      hardcode_direct_F77=yes
13903      hardcode_minus_L_F77=yes
13904      hardcode_shlibpath_var_F77=no
13905      ;;
13906
13907    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13908    freebsd* | kfreebsd*-gnu)
13909      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13910      hardcode_libdir_flag_spec_F77='-R$libdir'
13911      hardcode_direct_F77=yes
13912      hardcode_shlibpath_var_F77=no
13913      ;;
13914
13915    hpux9*)
13916      if test "$GCC" = yes; then
13917	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'
13918      else
13919	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'
13920      fi
13921      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13922      hardcode_libdir_separator_F77=:
13923      hardcode_direct_F77=yes
13924
13925      # hardcode_minus_L: Not really in the search PATH,
13926      # but as the default location of the library.
13927      hardcode_minus_L_F77=yes
13928      export_dynamic_flag_spec_F77='${wl}-E'
13929      ;;
13930
13931    hpux10* | hpux11*)
13932      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13933	case "$host_cpu" in
13934	hppa*64*|ia64*)
13935	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13936	  ;;
13937	*)
13938	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13939	  ;;
13940	esac
13941      else
13942	case "$host_cpu" in
13943	hppa*64*|ia64*)
13944	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13945	  ;;
13946	*)
13947	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13948	  ;;
13949	esac
13950      fi
13951      if test "$with_gnu_ld" = no; then
13952	case "$host_cpu" in
13953	hppa*64*)
13954	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13955	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13956	  hardcode_libdir_separator_F77=:
13957	  hardcode_direct_F77=no
13958	  hardcode_shlibpath_var_F77=no
13959	  ;;
13960	ia64*)
13961	  hardcode_libdir_flag_spec_F77='-L$libdir'
13962	  hardcode_direct_F77=no
13963	  hardcode_shlibpath_var_F77=no
13964
13965	  # hardcode_minus_L: Not really in the search PATH,
13966	  # but as the default location of the library.
13967	  hardcode_minus_L_F77=yes
13968	  ;;
13969	*)
13970	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13971	  hardcode_libdir_separator_F77=:
13972	  hardcode_direct_F77=yes
13973	  export_dynamic_flag_spec_F77='${wl}-E'
13974
13975	  # hardcode_minus_L: Not really in the search PATH,
13976	  # but as the default location of the library.
13977	  hardcode_minus_L_F77=yes
13978	  ;;
13979	esac
13980      fi
13981      ;;
13982
13983    irix5* | irix6* | nonstopux*)
13984      if test "$GCC" = yes; then
13985	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'
13986      else
13987	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'
13988	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13989      fi
13990      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13991      hardcode_libdir_separator_F77=:
13992      link_all_deplibs_F77=yes
13993      ;;
13994
13995    netbsd*)
13996      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13997	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13998      else
13999	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14000      fi
14001      hardcode_libdir_flag_spec_F77='-R$libdir'
14002      hardcode_direct_F77=yes
14003      hardcode_shlibpath_var_F77=no
14004      ;;
14005
14006    newsos6)
14007      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008      hardcode_direct_F77=yes
14009      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14010      hardcode_libdir_separator_F77=:
14011      hardcode_shlibpath_var_F77=no
14012      ;;
14013
14014    openbsd*)
14015      hardcode_direct_F77=yes
14016      hardcode_shlibpath_var_F77=no
14017      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14018	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14019	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14020	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14021	export_dynamic_flag_spec_F77='${wl}-E'
14022      else
14023       case $host_os in
14024	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14025	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14026	   hardcode_libdir_flag_spec_F77='-R$libdir'
14027	   ;;
14028	 *)
14029	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14030	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14031	   ;;
14032       esac
14033      fi
14034      ;;
14035
14036    os2*)
14037      hardcode_libdir_flag_spec_F77='-L$libdir'
14038      hardcode_minus_L_F77=yes
14039      allow_undefined_flag_F77=unsupported
14040      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'
14041      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14042      ;;
14043
14044    osf3*)
14045      if test "$GCC" = yes; then
14046	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14047	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'
14048      else
14049	allow_undefined_flag_F77=' -expect_unresolved \*'
14050	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'
14051      fi
14052      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14053      hardcode_libdir_separator_F77=:
14054      ;;
14055
14056    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14057      if test "$GCC" = yes; then
14058	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14059	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'
14060	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14061      else
14062	allow_undefined_flag_F77=' -expect_unresolved \*'
14063	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'
14064	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~
14065	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14066
14067	# Both c and cxx compiler support -rpath directly
14068	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14069      fi
14070      hardcode_libdir_separator_F77=:
14071      ;;
14072
14073    sco3.2v5*)
14074      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14075      hardcode_shlibpath_var_F77=no
14076      export_dynamic_flag_spec_F77='${wl}-Bexport'
14077      runpath_var=LD_RUN_PATH
14078      hardcode_runpath_var=yes
14079      ;;
14080
14081    solaris*)
14082      no_undefined_flag_F77=' -z text'
14083      if test "$GCC" = yes; then
14084	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14085	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14086	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14087      else
14088	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14089	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14090  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14091      fi
14092      hardcode_libdir_flag_spec_F77='-R$libdir'
14093      hardcode_shlibpath_var_F77=no
14094      case $host_os in
14095      solaris2.[0-5] | solaris2.[0-5].*) ;;
14096      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14097	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14098      esac
14099      link_all_deplibs_F77=yes
14100      ;;
14101
14102    sunos4*)
14103      if test "x$host_vendor" = xsequent; then
14104	# Use $CC to link under sequent, because it throws in some extra .o
14105	# files that make .init and .fini sections work.
14106	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14107      else
14108	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14109      fi
14110      hardcode_libdir_flag_spec_F77='-L$libdir'
14111      hardcode_direct_F77=yes
14112      hardcode_minus_L_F77=yes
14113      hardcode_shlibpath_var_F77=no
14114      ;;
14115
14116    sysv4)
14117      case $host_vendor in
14118	sni)
14119	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14120	  hardcode_direct_F77=yes # is this really true???
14121	;;
14122	siemens)
14123	  ## LD is ld it makes a PLAMLIB
14124	  ## CC just makes a GrossModule.
14125	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14126	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14127	  hardcode_direct_F77=no
14128        ;;
14129	motorola)
14130	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14131	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14132	;;
14133      esac
14134      runpath_var='LD_RUN_PATH'
14135      hardcode_shlibpath_var_F77=no
14136      ;;
14137
14138    sysv4.3*)
14139      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140      hardcode_shlibpath_var_F77=no
14141      export_dynamic_flag_spec_F77='-Bexport'
14142      ;;
14143
14144    sysv4*MP*)
14145      if test -d /usr/nec; then
14146	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14147	hardcode_shlibpath_var_F77=no
14148	runpath_var=LD_RUN_PATH
14149	hardcode_runpath_var=yes
14150	ld_shlibs_F77=yes
14151      fi
14152      ;;
14153
14154    sysv4.2uw2*)
14155      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14156      hardcode_direct_F77=yes
14157      hardcode_minus_L_F77=no
14158      hardcode_shlibpath_var_F77=no
14159      hardcode_runpath_var=yes
14160      runpath_var=LD_RUN_PATH
14161      ;;
14162
14163   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14164      no_undefined_flag_F77='${wl}-z ${wl}text'
14165      if test "$GCC" = yes; then
14166	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14167      else
14168	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14169      fi
14170      runpath_var='LD_RUN_PATH'
14171      hardcode_shlibpath_var_F77=no
14172      ;;
14173
14174    sysv5*)
14175      no_undefined_flag_F77=' -z text'
14176      # $CC -shared without GNU ld will not create a library from C++
14177      # object files and a static libstdc++, better avoid it by now
14178      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14179      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14180  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14181      hardcode_libdir_flag_spec_F77=
14182      hardcode_shlibpath_var_F77=no
14183      runpath_var='LD_RUN_PATH'
14184      ;;
14185
14186    uts4*)
14187      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14188      hardcode_libdir_flag_spec_F77='-L$libdir'
14189      hardcode_shlibpath_var_F77=no
14190      ;;
14191
14192    *)
14193      ld_shlibs_F77=no
14194      ;;
14195    esac
14196  fi
14197
14198echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14199echo "${ECHO_T}$ld_shlibs_F77" >&6
14200test "$ld_shlibs_F77" = no && can_build_shared=no
14201
14202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14203if test "$GCC" = yes; then
14204  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14205fi
14206
14207#
14208# Do we need to explicitly link libc?
14209#
14210case "x$archive_cmds_need_lc_F77" in
14211x|xyes)
14212  # Assume -lc should be added
14213  archive_cmds_need_lc_F77=yes
14214
14215  if test "$enable_shared" = yes && test "$GCC" = yes; then
14216    case $archive_cmds_F77 in
14217    *'~'*)
14218      # FIXME: we may have to deal with multi-command sequences.
14219      ;;
14220    '$CC '*)
14221      # Test whether the compiler implicitly links with -lc since on some
14222      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223      # to ld, don't add -lc before -lgcc.
14224      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14225echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14226      $rm conftest*
14227      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14228
14229      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230  (eval $ac_compile) 2>&5
14231  ac_status=$?
14232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233  (exit $ac_status); } 2>conftest.err; then
14234        soname=conftest
14235        lib=conftest
14236        libobjs=conftest.$ac_objext
14237        deplibs=
14238        wl=$lt_prog_compiler_wl_F77
14239        compiler_flags=-v
14240        linker_flags=-v
14241        verstring=
14242        output_objdir=.
14243        libname=conftest
14244        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14245        allow_undefined_flag_F77=
14246        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14247  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14248  ac_status=$?
14249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250  (exit $ac_status); }
14251        then
14252	  archive_cmds_need_lc_F77=no
14253        else
14254	  archive_cmds_need_lc_F77=yes
14255        fi
14256        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14257      else
14258        cat conftest.err 1>&5
14259      fi
14260      $rm conftest*
14261      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14262echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14263      ;;
14264    esac
14265  fi
14266  ;;
14267esac
14268
14269echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14271library_names_spec=
14272libname_spec='lib$name'
14273soname_spec=
14274shrext_cmds=".so"
14275postinstall_cmds=
14276postuninstall_cmds=
14277finish_cmds=
14278finish_eval=
14279shlibpath_var=
14280shlibpath_overrides_runpath=unknown
14281version_type=none
14282dynamic_linker="$host_os ld.so"
14283sys_lib_dlsearch_path_spec="/lib /usr/lib"
14284if test "$GCC" = yes; then
14285  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14286  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14287    # if the path contains ";" then we assume it to be the separator
14288    # otherwise default to the standard path separator (i.e. ":") - it is
14289    # assumed that no part of a normal pathname contains ";" but that should
14290    # okay in the real world where ";" in dirpaths is itself problematic.
14291    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14292  else
14293    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14294  fi
14295else
14296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14297fi
14298need_lib_prefix=unknown
14299hardcode_into_libs=no
14300
14301# when you set need_version to no, make sure it does not cause -set_version
14302# flags to be left without arguments
14303need_version=unknown
14304
14305case $host_os in
14306aix3*)
14307  version_type=linux
14308  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14309  shlibpath_var=LIBPATH
14310
14311  # AIX 3 has no versioning support, so we append a major version to the name.
14312  soname_spec='${libname}${release}${shared_ext}$major'
14313  ;;
14314
14315aix4* | aix5*)
14316  version_type=linux
14317  need_lib_prefix=no
14318  need_version=no
14319  hardcode_into_libs=yes
14320  if test "$host_cpu" = ia64; then
14321    # AIX 5 supports IA64
14322    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14323    shlibpath_var=LD_LIBRARY_PATH
14324  else
14325    # With GCC up to 2.95.x, collect2 would create an import file
14326    # for dependence libraries.  The import file would start with
14327    # the line `#! .'.  This would cause the generated library to
14328    # depend on `.', always an invalid library.  This was fixed in
14329    # development snapshots of GCC prior to 3.0.
14330    case $host_os in
14331      aix4 | aix4.[01] | aix4.[01].*)
14332      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14333	   echo ' yes '
14334	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14335	:
14336      else
14337	can_build_shared=no
14338      fi
14339      ;;
14340    esac
14341    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14342    # soname into executable. Probably we can add versioning support to
14343    # collect2, so additional links can be useful in future.
14344    if test "$aix_use_runtimelinking" = yes; then
14345      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14346      # instead of lib<name>.a to let people know that these are not
14347      # typical AIX shared libraries.
14348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349    else
14350      # We preserve .a as extension for shared libraries through AIX4.2
14351      # and later when we are not doing run time linking.
14352      library_names_spec='${libname}${release}.a $libname.a'
14353      soname_spec='${libname}${release}${shared_ext}$major'
14354    fi
14355    shlibpath_var=LIBPATH
14356  fi
14357  ;;
14358
14359amigaos*)
14360  library_names_spec='$libname.ixlibrary $libname.a'
14361  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14362  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'
14363  ;;
14364
14365beos*)
14366  library_names_spec='${libname}${shared_ext}'
14367  dynamic_linker="$host_os ld.so"
14368  shlibpath_var=LIBRARY_PATH
14369  ;;
14370
14371bsdi[45]*)
14372  version_type=linux
14373  need_version=no
14374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375  soname_spec='${libname}${release}${shared_ext}$major'
14376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14380  # the default ld.so.conf also contains /usr/contrib/lib and
14381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14382  # libtool to hard-code these into programs
14383  ;;
14384
14385cygwin* | mingw* | pw32*)
14386  version_type=windows
14387  shrext_cmds=".dll"
14388  need_version=no
14389  need_lib_prefix=no
14390
14391  case $GCC,$host_os in
14392  yes,cygwin* | yes,mingw* | yes,pw32*)
14393    library_names_spec='$libname.dll.a'
14394    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14395    postinstall_cmds='base_file=`basename \${file}`~
14396      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14397      dldir=$destdir/`dirname \$dlpath`~
14398      test -d \$dldir || mkdir -p \$dldir~
14399      $install_prog $dir/$dlname \$dldir/$dlname'
14400    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14401      dlpath=$dir/\$dldll~
14402       $rm \$dlpath'
14403    shlibpath_overrides_runpath=yes
14404
14405    case $host_os in
14406    cygwin*)
14407      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14408      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14409      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14410      ;;
14411    mingw*)
14412      # MinGW DLLs use traditional 'lib' prefix
14413      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14415      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14416        # It is most probably a Windows format PATH printed by
14417        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14418        # path with ; separators, and with drive letters. We can handle the
14419        # drive letters (cygwin fileutils understands them), so leave them,
14420        # especially as we might pass files found there to a mingw objdump,
14421        # which wouldn't understand a cygwinified path. Ahh.
14422        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14423      else
14424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14425      fi
14426      ;;
14427    pw32*)
14428      # pw32 DLLs use 'pw' prefix rather than 'lib'
14429      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14430      ;;
14431    esac
14432    ;;
14433
14434  *)
14435    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14436    ;;
14437  esac
14438  dynamic_linker='Win32 ld.exe'
14439  # FIXME: first we should search . and the directory the executable is in
14440  shlibpath_var=PATH
14441  ;;
14442
14443darwin* | rhapsody*)
14444  dynamic_linker="$host_os dyld"
14445  version_type=darwin
14446  need_lib_prefix=no
14447  need_version=no
14448  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14449  soname_spec='${libname}${release}${major}$shared_ext'
14450  shlibpath_overrides_runpath=yes
14451  shlibpath_var=DYLD_LIBRARY_PATH
14452  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14453  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14454  if test "$GCC" = yes; then
14455    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"`
14456  else
14457    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14458  fi
14459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14460  ;;
14461
14462dgux*)
14463  version_type=linux
14464  need_lib_prefix=no
14465  need_version=no
14466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14467  soname_spec='${libname}${release}${shared_ext}$major'
14468  shlibpath_var=LD_LIBRARY_PATH
14469  ;;
14470
14471freebsd1*)
14472  dynamic_linker=no
14473  ;;
14474
14475kfreebsd*-gnu)
14476  version_type=linux
14477  need_lib_prefix=no
14478  need_version=no
14479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14480  soname_spec='${libname}${release}${shared_ext}$major'
14481  shlibpath_var=LD_LIBRARY_PATH
14482  shlibpath_overrides_runpath=no
14483  hardcode_into_libs=yes
14484  dynamic_linker='GNU ld.so'
14485  ;;
14486
14487freebsd*)
14488  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14489  version_type=freebsd-$objformat
14490  case $version_type in
14491    freebsd-elf*)
14492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14493      need_version=no
14494      need_lib_prefix=no
14495      ;;
14496    freebsd-*)
14497      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14498      need_version=yes
14499      ;;
14500  esac
14501  shlibpath_var=LD_LIBRARY_PATH
14502  case $host_os in
14503  freebsd2*)
14504    shlibpath_overrides_runpath=yes
14505    ;;
14506  freebsd3.01* | freebsdelf3.01*)
14507    shlibpath_overrides_runpath=yes
14508    hardcode_into_libs=yes
14509    ;;
14510  *) # from 3.2 on
14511    shlibpath_overrides_runpath=no
14512    hardcode_into_libs=yes
14513    ;;
14514  esac
14515  ;;
14516
14517gnu*)
14518  version_type=linux
14519  need_lib_prefix=no
14520  need_version=no
14521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14522  soname_spec='${libname}${release}${shared_ext}$major'
14523  shlibpath_var=LD_LIBRARY_PATH
14524  hardcode_into_libs=yes
14525  ;;
14526
14527hpux9* | hpux10* | hpux11*)
14528  # Give a soname corresponding to the major version so that dld.sl refuses to
14529  # link against other versions.
14530  version_type=sunos
14531  need_lib_prefix=no
14532  need_version=no
14533  case "$host_cpu" in
14534  ia64*)
14535    shrext_cmds='.so'
14536    hardcode_into_libs=yes
14537    dynamic_linker="$host_os dld.so"
14538    shlibpath_var=LD_LIBRARY_PATH
14539    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541    soname_spec='${libname}${release}${shared_ext}$major'
14542    if test "X$HPUX_IA64_MODE" = X32; then
14543      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14544    else
14545      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14546    fi
14547    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14548    ;;
14549   hppa*64*)
14550     shrext_cmds='.sl'
14551     hardcode_into_libs=yes
14552     dynamic_linker="$host_os dld.sl"
14553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556     soname_spec='${libname}${release}${shared_ext}$major'
14557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14559     ;;
14560   *)
14561    shrext_cmds='.sl'
14562    dynamic_linker="$host_os dld.sl"
14563    shlibpath_var=SHLIB_PATH
14564    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566    soname_spec='${libname}${release}${shared_ext}$major'
14567    ;;
14568  esac
14569  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14570  postinstall_cmds='chmod 555 $lib'
14571  ;;
14572
14573irix5* | irix6* | nonstopux*)
14574  case $host_os in
14575    nonstopux*) version_type=nonstopux ;;
14576    *)
14577	if test "$lt_cv_prog_gnu_ld" = yes; then
14578		version_type=linux
14579	else
14580		version_type=irix
14581	fi ;;
14582  esac
14583  need_lib_prefix=no
14584  need_version=no
14585  soname_spec='${libname}${release}${shared_ext}$major'
14586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14587  case $host_os in
14588  irix5* | nonstopux*)
14589    libsuff= shlibsuff=
14590    ;;
14591  *)
14592    case $LD in # libtool.m4 will add one of these switches to LD
14593    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14594      libsuff= shlibsuff= libmagic=32-bit;;
14595    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14596      libsuff=32 shlibsuff=N32 libmagic=N32;;
14597    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14598      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14599    *) libsuff= shlibsuff= libmagic=never-match;;
14600    esac
14601    ;;
14602  esac
14603  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14604  shlibpath_overrides_runpath=no
14605  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14606  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14607  hardcode_into_libs=yes
14608  ;;
14609
14610# No shared lib support for Linux oldld, aout, or coff.
14611linux*oldld* | linux*aout* | linux*coff*)
14612  dynamic_linker=no
14613  ;;
14614
14615# This must be Linux ELF.
14616linux*)
14617  version_type=linux
14618  need_lib_prefix=no
14619  need_version=no
14620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14621  soname_spec='${libname}${release}${shared_ext}$major'
14622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14623  shlibpath_var=LD_LIBRARY_PATH
14624  shlibpath_overrides_runpath=no
14625  # This implies no fast_install, which is unacceptable.
14626  # Some rework will be needed to allow for fast_install
14627  # before this can be enabled.
14628  hardcode_into_libs=yes
14629
14630  # Append ld.so.conf contents to the search path
14631  if test -f /etc/ld.so.conf; then
14632    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14633    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14634  fi
14635
14636  # We used to test for /lib/ld.so.1 and disable shared libraries on
14637  # powerpc, because MkLinux only supported shared libraries with the
14638  # GNU dynamic linker.  Since this was broken with cross compilers,
14639  # most powerpc-linux boxes support dynamic linking these days and
14640  # people can always --disable-shared, the test was removed, and we
14641  # assume the GNU/Linux dynamic linker is in use.
14642  dynamic_linker='GNU/Linux ld.so'
14643  ;;
14644
14645knetbsd*-gnu)
14646  version_type=linux
14647  need_lib_prefix=no
14648  need_version=no
14649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14650  soname_spec='${libname}${release}${shared_ext}$major'
14651  shlibpath_var=LD_LIBRARY_PATH
14652  shlibpath_overrides_runpath=no
14653  hardcode_into_libs=yes
14654  dynamic_linker='GNU ld.so'
14655  ;;
14656
14657netbsd*)
14658  version_type=sunos
14659  need_lib_prefix=no
14660  need_version=no
14661  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664    dynamic_linker='NetBSD (a.out) ld.so'
14665  else
14666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14667    soname_spec='${libname}${release}${shared_ext}$major'
14668    dynamic_linker='NetBSD ld.elf_so'
14669  fi
14670  shlibpath_var=LD_LIBRARY_PATH
14671  shlibpath_overrides_runpath=yes
14672  hardcode_into_libs=yes
14673  ;;
14674
14675newsos6)
14676  version_type=linux
14677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678  shlibpath_var=LD_LIBRARY_PATH
14679  shlibpath_overrides_runpath=yes
14680  ;;
14681
14682nto-qnx*)
14683  version_type=linux
14684  need_lib_prefix=no
14685  need_version=no
14686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687  soname_spec='${libname}${release}${shared_ext}$major'
14688  shlibpath_var=LD_LIBRARY_PATH
14689  shlibpath_overrides_runpath=yes
14690  ;;
14691
14692openbsd*)
14693  version_type=sunos
14694  need_lib_prefix=no
14695  need_version=no
14696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14697  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14698  shlibpath_var=LD_LIBRARY_PATH
14699  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14700    case $host_os in
14701      openbsd2.[89] | openbsd2.[89].*)
14702	shlibpath_overrides_runpath=no
14703	;;
14704      *)
14705	shlibpath_overrides_runpath=yes
14706	;;
14707      esac
14708  else
14709    shlibpath_overrides_runpath=yes
14710  fi
14711  ;;
14712
14713os2*)
14714  libname_spec='$name'
14715  shrext_cmds=".dll"
14716  need_lib_prefix=no
14717  library_names_spec='$libname${shared_ext} $libname.a'
14718  dynamic_linker='OS/2 ld.exe'
14719  shlibpath_var=LIBPATH
14720  ;;
14721
14722osf3* | osf4* | osf5*)
14723  version_type=osf
14724  need_lib_prefix=no
14725  need_version=no
14726  soname_spec='${libname}${release}${shared_ext}$major'
14727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728  shlibpath_var=LD_LIBRARY_PATH
14729  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14730  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14731  ;;
14732
14733sco3.2v5*)
14734  version_type=osf
14735  soname_spec='${libname}${release}${shared_ext}$major'
14736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737  shlibpath_var=LD_LIBRARY_PATH
14738  ;;
14739
14740solaris*)
14741  version_type=linux
14742  need_lib_prefix=no
14743  need_version=no
14744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745  soname_spec='${libname}${release}${shared_ext}$major'
14746  shlibpath_var=LD_LIBRARY_PATH
14747  shlibpath_overrides_runpath=yes
14748  hardcode_into_libs=yes
14749  # ldd complains unless libraries are executable
14750  postinstall_cmds='chmod +x $lib'
14751  ;;
14752
14753sunos4*)
14754  version_type=sunos
14755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14757  shlibpath_var=LD_LIBRARY_PATH
14758  shlibpath_overrides_runpath=yes
14759  if test "$with_gnu_ld" = yes; then
14760    need_lib_prefix=no
14761  fi
14762  need_version=yes
14763  ;;
14764
14765sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14766  version_type=linux
14767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768  soname_spec='${libname}${release}${shared_ext}$major'
14769  shlibpath_var=LD_LIBRARY_PATH
14770  case $host_vendor in
14771    sni)
14772      shlibpath_overrides_runpath=no
14773      need_lib_prefix=no
14774      export_dynamic_flag_spec='${wl}-Blargedynsym'
14775      runpath_var=LD_RUN_PATH
14776      ;;
14777    siemens)
14778      need_lib_prefix=no
14779      ;;
14780    motorola)
14781      need_lib_prefix=no
14782      need_version=no
14783      shlibpath_overrides_runpath=no
14784      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14785      ;;
14786  esac
14787  ;;
14788
14789sysv4*MP*)
14790  if test -d /usr/nec ;then
14791    version_type=linux
14792    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14793    soname_spec='$libname${shared_ext}.$major'
14794    shlibpath_var=LD_LIBRARY_PATH
14795  fi
14796  ;;
14797
14798uts4*)
14799  version_type=linux
14800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801  soname_spec='${libname}${release}${shared_ext}$major'
14802  shlibpath_var=LD_LIBRARY_PATH
14803  ;;
14804
14805*)
14806  dynamic_linker=no
14807  ;;
14808esac
14809echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14810echo "${ECHO_T}$dynamic_linker" >&6
14811test "$dynamic_linker" = no && can_build_shared=no
14812
14813echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14814echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14815hardcode_action_F77=
14816if test -n "$hardcode_libdir_flag_spec_F77" || \
14817   test -n "$runpath_var_F77" || \
14818   test "X$hardcode_automatic_F77" = "Xyes" ; then
14819
14820  # We can hardcode non-existant directories.
14821  if test "$hardcode_direct_F77" != no &&
14822     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14823     # have to relink, otherwise we might link with an installed library
14824     # when we should be linking with a yet-to-be-installed one
14825     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14826     test "$hardcode_minus_L_F77" != no; then
14827    # Linking always hardcodes the temporary library directory.
14828    hardcode_action_F77=relink
14829  else
14830    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14831    hardcode_action_F77=immediate
14832  fi
14833else
14834  # We cannot hardcode anything, or else we can only hardcode existing
14835  # directories.
14836  hardcode_action_F77=unsupported
14837fi
14838echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14839echo "${ECHO_T}$hardcode_action_F77" >&6
14840
14841if test "$hardcode_action_F77" = relink; then
14842  # Fast installation is not supported
14843  enable_fast_install=no
14844elif test "$shlibpath_overrides_runpath" = yes ||
14845     test "$enable_shared" = no; then
14846  # Fast installation is not necessary
14847  enable_fast_install=needless
14848fi
14849
14850striplib=
14851old_striplib=
14852echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14853echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14854if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14855  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14856  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14857  echo "$as_me:$LINENO: result: yes" >&5
14858echo "${ECHO_T}yes" >&6
14859else
14860# FIXME - insert some real tests, host_os isn't really good enough
14861  case $host_os in
14862   darwin*)
14863       if test -n "$STRIP" ; then
14864         striplib="$STRIP -x"
14865         echo "$as_me:$LINENO: result: yes" >&5
14866echo "${ECHO_T}yes" >&6
14867       else
14868  echo "$as_me:$LINENO: result: no" >&5
14869echo "${ECHO_T}no" >&6
14870fi
14871       ;;
14872   *)
14873  echo "$as_me:$LINENO: result: no" >&5
14874echo "${ECHO_T}no" >&6
14875    ;;
14876  esac
14877fi
14878
14879
14880
14881# The else clause should only fire when bootstrapping the
14882# libtool distribution, otherwise you forgot to ship ltmain.sh
14883# with your package, and you will get complaints that there are
14884# no rules to generate ltmain.sh.
14885if test -f "$ltmain"; then
14886  # See if we are running on zsh, and set the options which allow our commands through
14887  # without removal of \ escapes.
14888  if test -n "${ZSH_VERSION+set}" ; then
14889    setopt NO_GLOB_SUBST
14890  fi
14891  # Now quote all the things that may contain metacharacters while being
14892  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14893  # variables and quote the copies for generation of the libtool script.
14894  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14895    SED SHELL STRIP \
14896    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14897    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14898    deplibs_check_method reload_flag reload_cmds need_locks \
14899    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14900    lt_cv_sys_global_symbol_to_c_name_address \
14901    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14902    old_postinstall_cmds old_postuninstall_cmds \
14903    compiler_F77 \
14904    CC_F77 \
14905    LD_F77 \
14906    lt_prog_compiler_wl_F77 \
14907    lt_prog_compiler_pic_F77 \
14908    lt_prog_compiler_static_F77 \
14909    lt_prog_compiler_no_builtin_flag_F77 \
14910    export_dynamic_flag_spec_F77 \
14911    thread_safe_flag_spec_F77 \
14912    whole_archive_flag_spec_F77 \
14913    enable_shared_with_static_runtimes_F77 \
14914    old_archive_cmds_F77 \
14915    old_archive_from_new_cmds_F77 \
14916    predep_objects_F77 \
14917    postdep_objects_F77 \
14918    predeps_F77 \
14919    postdeps_F77 \
14920    compiler_lib_search_path_F77 \
14921    archive_cmds_F77 \
14922    archive_expsym_cmds_F77 \
14923    postinstall_cmds_F77 \
14924    postuninstall_cmds_F77 \
14925    old_archive_from_expsyms_cmds_F77 \
14926    allow_undefined_flag_F77 \
14927    no_undefined_flag_F77 \
14928    export_symbols_cmds_F77 \
14929    hardcode_libdir_flag_spec_F77 \
14930    hardcode_libdir_flag_spec_ld_F77 \
14931    hardcode_libdir_separator_F77 \
14932    hardcode_automatic_F77 \
14933    module_cmds_F77 \
14934    module_expsym_cmds_F77 \
14935    lt_cv_prog_compiler_c_o_F77 \
14936    exclude_expsyms_F77 \
14937    include_expsyms_F77; do
14938
14939    case $var in
14940    old_archive_cmds_F77 | \
14941    old_archive_from_new_cmds_F77 | \
14942    archive_cmds_F77 | \
14943    archive_expsym_cmds_F77 | \
14944    module_cmds_F77 | \
14945    module_expsym_cmds_F77 | \
14946    old_archive_from_expsyms_cmds_F77 | \
14947    export_symbols_cmds_F77 | \
14948    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14949    postinstall_cmds | postuninstall_cmds | \
14950    old_postinstall_cmds | old_postuninstall_cmds | \
14951    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14952      # Double-quote double-evaled strings.
14953      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14954      ;;
14955    *)
14956      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14957      ;;
14958    esac
14959  done
14960
14961  case $lt_echo in
14962  *'\$0 --fallback-echo"')
14963    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14964    ;;
14965  esac
14966
14967cfgfile="$ofile"
14968
14969  cat <<__EOF__ >> "$cfgfile"
14970# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14971
14972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14973
14974# Shell to use when invoking shell scripts.
14975SHELL=$lt_SHELL
14976
14977# Whether or not to build shared libraries.
14978build_libtool_libs=$enable_shared
14979
14980# Whether or not to build static libraries.
14981build_old_libs=$enable_static
14982
14983# Whether or not to add -lc for building shared libraries.
14984build_libtool_need_lc=$archive_cmds_need_lc_F77
14985
14986# Whether or not to disallow shared libs when runtime libs are static
14987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14988
14989# Whether or not to optimize for fast installation.
14990fast_install=$enable_fast_install
14991
14992# The host system.
14993host_alias=$host_alias
14994host=$host
14995
14996# An echo program that does not interpret backslashes.
14997echo=$lt_echo
14998
14999# The archiver.
15000AR=$lt_AR
15001AR_FLAGS=$lt_AR_FLAGS
15002
15003# A C compiler.
15004LTCC=$lt_LTCC
15005
15006# A language-specific compiler.
15007CC=$lt_compiler_F77
15008
15009# Is the compiler the GNU C compiler?
15010with_gcc=$GCC_F77
15011
15012# An ERE matcher.
15013EGREP=$lt_EGREP
15014
15015# The linker used to build libraries.
15016LD=$lt_LD_F77
15017
15018# Whether we need hard or soft links.
15019LN_S=$lt_LN_S
15020
15021# A BSD-compatible nm program.
15022NM=$lt_NM
15023
15024# A symbol stripping program
15025STRIP=$lt_STRIP
15026
15027# Used to examine libraries when file_magic_cmd begins "file"
15028MAGIC_CMD=$MAGIC_CMD
15029
15030# Used on cygwin: DLL creation program.
15031DLLTOOL="$DLLTOOL"
15032
15033# Used on cygwin: object dumper.
15034OBJDUMP="$OBJDUMP"
15035
15036# Used on cygwin: assembler.
15037AS="$AS"
15038
15039# The name of the directory that contains temporary libtool files.
15040objdir=$objdir
15041
15042# How to create reloadable object files.
15043reload_flag=$lt_reload_flag
15044reload_cmds=$lt_reload_cmds
15045
15046# How to pass a linker flag through the compiler.
15047wl=$lt_lt_prog_compiler_wl_F77
15048
15049# Object file suffix (normally "o").
15050objext="$ac_objext"
15051
15052# Old archive suffix (normally "a").
15053libext="$libext"
15054
15055# Shared library suffix (normally ".so").
15056shrext_cmds='$shrext_cmds'
15057
15058# Executable file suffix (normally "").
15059exeext="$exeext"
15060
15061# Additional compiler flags for building library objects.
15062pic_flag=$lt_lt_prog_compiler_pic_F77
15063pic_mode=$pic_mode
15064
15065# What is the maximum length of a command?
15066max_cmd_len=$lt_cv_sys_max_cmd_len
15067
15068# Does compiler simultaneously support -c and -o options?
15069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15070
15071# Must we lock files when doing compilation ?
15072need_locks=$lt_need_locks
15073
15074# Do we need the lib prefix for modules?
15075need_lib_prefix=$need_lib_prefix
15076
15077# Do we need a version for libraries?
15078need_version=$need_version
15079
15080# Whether dlopen is supported.
15081dlopen_support=$enable_dlopen
15082
15083# Whether dlopen of programs is supported.
15084dlopen_self=$enable_dlopen_self
15085
15086# Whether dlopen of statically linked programs is supported.
15087dlopen_self_static=$enable_dlopen_self_static
15088
15089# Compiler flag to prevent dynamic linking.
15090link_static_flag=$lt_lt_prog_compiler_static_F77
15091
15092# Compiler flag to turn off builtin functions.
15093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15094
15095# Compiler flag to allow reflexive dlopens.
15096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15097
15098# Compiler flag to generate shared objects directly from archives.
15099whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15100
15101# Compiler flag to generate thread-safe objects.
15102thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15103
15104# Library versioning type.
15105version_type=$version_type
15106
15107# Format of library name prefix.
15108libname_spec=$lt_libname_spec
15109
15110# List of archive names.  First name is the real one, the rest are links.
15111# The last name is the one that the linker finds with -lNAME.
15112library_names_spec=$lt_library_names_spec
15113
15114# The coded name of the library, if different from the real name.
15115soname_spec=$lt_soname_spec
15116
15117# Commands used to build and install an old-style archive.
15118RANLIB=$lt_RANLIB
15119old_archive_cmds=$lt_old_archive_cmds_F77
15120old_postinstall_cmds=$lt_old_postinstall_cmds
15121old_postuninstall_cmds=$lt_old_postuninstall_cmds
15122
15123# Create an old-style archive from a shared archive.
15124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15125
15126# Create a temporary old-style archive to link instead of a shared archive.
15127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15128
15129# Commands used to build and install a shared archive.
15130archive_cmds=$lt_archive_cmds_F77
15131archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15132postinstall_cmds=$lt_postinstall_cmds
15133postuninstall_cmds=$lt_postuninstall_cmds
15134
15135# Commands used to build a loadable module (assumed same as above if empty)
15136module_cmds=$lt_module_cmds_F77
15137module_expsym_cmds=$lt_module_expsym_cmds_F77
15138
15139# Commands to strip libraries.
15140old_striplib=$lt_old_striplib
15141striplib=$lt_striplib
15142
15143# Dependencies to place before the objects being linked to create a
15144# shared library.
15145predep_objects=$lt_predep_objects_F77
15146
15147# Dependencies to place after the objects being linked to create a
15148# shared library.
15149postdep_objects=$lt_postdep_objects_F77
15150
15151# Dependencies to place before the objects being linked to create a
15152# shared library.
15153predeps=$lt_predeps_F77
15154
15155# Dependencies to place after the objects being linked to create a
15156# shared library.
15157postdeps=$lt_postdeps_F77
15158
15159# The library search path used internally by the compiler when linking
15160# a shared library.
15161compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15162
15163# Method to check whether dependent libraries are shared objects.
15164deplibs_check_method=$lt_deplibs_check_method
15165
15166# Command to use when deplibs_check_method == file_magic.
15167file_magic_cmd=$lt_file_magic_cmd
15168
15169# Flag that allows shared libraries with undefined symbols to be built.
15170allow_undefined_flag=$lt_allow_undefined_flag_F77
15171
15172# Flag that forces no undefined symbols.
15173no_undefined_flag=$lt_no_undefined_flag_F77
15174
15175# Commands used to finish a libtool library installation in a directory.
15176finish_cmds=$lt_finish_cmds
15177
15178# Same as above, but a single script fragment to be evaled but not shown.
15179finish_eval=$lt_finish_eval
15180
15181# Take the output of nm and produce a listing of raw symbols and C names.
15182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15183
15184# Transform the output of nm in a proper C declaration
15185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15186
15187# Transform the output of nm in a C name address pair
15188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15189
15190# This is the shared library runtime path variable.
15191runpath_var=$runpath_var
15192
15193# This is the shared library path variable.
15194shlibpath_var=$shlibpath_var
15195
15196# Is shlibpath searched before the hard-coded library search path?
15197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15198
15199# How to hardcode a shared library path into an executable.
15200hardcode_action=$hardcode_action_F77
15201
15202# Whether we should hardcode library paths into libraries.
15203hardcode_into_libs=$hardcode_into_libs
15204
15205# Flag to hardcode \$libdir into a binary during linking.
15206# This must work even if \$libdir does not exist.
15207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15208
15209# If ld is used when linking, flag to hardcode \$libdir into
15210# a binary during linking. This must work even if \$libdir does
15211# not exist.
15212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15213
15214# Whether we need a single -rpath flag with a separated argument.
15215hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15216
15217# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15218# resulting binary.
15219hardcode_direct=$hardcode_direct_F77
15220
15221# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15222# resulting binary.
15223hardcode_minus_L=$hardcode_minus_L_F77
15224
15225# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15226# the resulting binary.
15227hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15228
15229# Set to yes if building a shared library automatically hardcodes DIR into the library
15230# and all subsequent libraries and executables linked against it.
15231hardcode_automatic=$hardcode_automatic_F77
15232
15233# Variables whose values should be saved in libtool wrapper scripts and
15234# restored at relink time.
15235variables_saved_for_relink="$variables_saved_for_relink"
15236
15237# Whether libtool must link a program against all its dependency libraries.
15238link_all_deplibs=$link_all_deplibs_F77
15239
15240# Compile-time system search path for libraries
15241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15242
15243# Run-time system search path for libraries
15244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15245
15246# Fix the shell variable \$srcfile for the compiler.
15247fix_srcfile_path="$fix_srcfile_path_F77"
15248
15249# Set to yes if exported symbols are required.
15250always_export_symbols=$always_export_symbols_F77
15251
15252# The commands to list exported symbols.
15253export_symbols_cmds=$lt_export_symbols_cmds_F77
15254
15255# The commands to extract the exported symbol list from a shared archive.
15256extract_expsyms_cmds=$lt_extract_expsyms_cmds
15257
15258# Symbols that should not be listed in the preloaded symbols.
15259exclude_expsyms=$lt_exclude_expsyms_F77
15260
15261# Symbols that must always be exported.
15262include_expsyms=$lt_include_expsyms_F77
15263
15264# ### END LIBTOOL TAG CONFIG: $tagname
15265
15266__EOF__
15267
15268
15269else
15270  # If there is no Makefile yet, we rely on a make rule to execute
15271  # `config.status --recheck' to rerun these tests and create the
15272  # libtool script then.
15273  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15274  if test -f "$ltmain_in"; then
15275    test -f Makefile && make "$ltmain"
15276  fi
15277fi
15278
15279
15280ac_ext=c
15281ac_cpp='$CPP $CPPFLAGS'
15282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284ac_compiler_gnu=$ac_cv_c_compiler_gnu
15285
15286CC="$lt_save_CC"
15287
15288	else
15289	  tagname=""
15290	fi
15291	;;
15292
15293      GCJ)
15294	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15295	  ac_ext=c
15296ac_cpp='$CPP $CPPFLAGS'
15297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15299ac_compiler_gnu=$ac_cv_c_compiler_gnu
15300
15301
15302# Source file extension for Java test sources.
15303ac_ext=java
15304
15305# Object file extension for compiled Java test sources.
15306objext=o
15307objext_GCJ=$objext
15308
15309# Code to be used in simple compile tests
15310lt_simple_compile_test_code="class foo {}\n"
15311
15312# Code to be used in simple link tests
15313lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15314
15315# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15316
15317# If no C compiler was specified, use CC.
15318LTCC=${LTCC-"$CC"}
15319
15320# Allow CC to be a program name with arguments.
15321compiler=$CC
15322
15323
15324# Allow CC to be a program name with arguments.
15325lt_save_CC="$CC"
15326CC=${GCJ-"gcj"}
15327compiler=$CC
15328compiler_GCJ=$CC
15329
15330# GCJ did not exist at the time GCC didn't implicitly link libc in.
15331archive_cmds_need_lc_GCJ=no
15332
15333
15334lt_prog_compiler_no_builtin_flag_GCJ=
15335
15336if test "$GCC" = yes; then
15337  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15338
15339
15340echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15341echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15342if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15343  echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345  lt_cv_prog_compiler_rtti_exceptions=no
15346  ac_outfile=conftest.$ac_objext
15347   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15348   lt_compiler_flag="-fno-rtti -fno-exceptions"
15349   # Insert the option either (1) after the last *FLAGS variable, or
15350   # (2) before a word containing "conftest.", or (3) at the end.
15351   # Note that $ac_compile itself does not contain backslashes and begins
15352   # with a dollar sign (not a hyphen), so the echo should work correctly.
15353   # The option is referenced via a variable to avoid confusing sed.
15354   lt_compile=`echo "$ac_compile" | $SED \
15355   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15357   -e 's:$: $lt_compiler_flag:'`
15358   (eval echo "\"\$as_me:15358: $lt_compile\"" >&5)
15359   (eval "$lt_compile" 2>conftest.err)
15360   ac_status=$?
15361   cat conftest.err >&5
15362   echo "$as_me:15362: \$? = $ac_status" >&5
15363   if (exit $ac_status) && test -s "$ac_outfile"; then
15364     # The compiler can only warn and ignore the option if not recognized
15365     # So say no if there are warnings
15366     if test ! -s conftest.err; then
15367       lt_cv_prog_compiler_rtti_exceptions=yes
15368     fi
15369   fi
15370   $rm conftest*
15371
15372fi
15373echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15374echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15375
15376if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15377    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15378else
15379    :
15380fi
15381
15382fi
15383
15384lt_prog_compiler_wl_GCJ=
15385lt_prog_compiler_pic_GCJ=
15386lt_prog_compiler_static_GCJ=
15387
15388echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15389echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15390
15391  if test "$GCC" = yes; then
15392    lt_prog_compiler_wl_GCJ='-Wl,'
15393    lt_prog_compiler_static_GCJ='-static'
15394
15395    case $host_os in
15396      aix*)
15397      # All AIX code is PIC.
15398      if test "$host_cpu" = ia64; then
15399	# AIX 5 now supports IA64 processor
15400	lt_prog_compiler_static_GCJ='-Bstatic'
15401      fi
15402      ;;
15403
15404    amigaos*)
15405      # FIXME: we need at least 68020 code to build shared libraries, but
15406      # adding the `-m68020' flag to GCC prevents building anything better,
15407      # like `-m68040'.
15408      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15409      ;;
15410
15411    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15412      # PIC is the default for these OSes.
15413      ;;
15414
15415    mingw* | pw32* | os2*)
15416      # This hack is so that the source file can tell whether it is being
15417      # built for inclusion in a dll (and should export symbols for example).
15418      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15419      ;;
15420
15421    darwin* | rhapsody*)
15422      # PIC is the default on this platform
15423      # Common symbols not allowed in MH_DYLIB files
15424      lt_prog_compiler_pic_GCJ='-fno-common'
15425      ;;
15426
15427    msdosdjgpp*)
15428      # Just because we use GCC doesn't mean we suddenly get shared libraries
15429      # on systems that don't support them.
15430      lt_prog_compiler_can_build_shared_GCJ=no
15431      enable_shared=no
15432      ;;
15433
15434    sysv4*MP*)
15435      if test -d /usr/nec; then
15436	lt_prog_compiler_pic_GCJ=-Kconform_pic
15437      fi
15438      ;;
15439
15440    hpux*)
15441      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15442      # not for PA HP-UX.
15443      case "$host_cpu" in
15444      hppa*64*|ia64*)
15445	# +Z the default
15446	;;
15447      *)
15448	lt_prog_compiler_pic_GCJ='-fPIC'
15449	;;
15450      esac
15451      ;;
15452
15453    *)
15454      lt_prog_compiler_pic_GCJ='-fPIC'
15455      ;;
15456    esac
15457  else
15458    # PORTME Check for flag to pass linker flags through the system compiler.
15459    case $host_os in
15460    aix*)
15461      lt_prog_compiler_wl_GCJ='-Wl,'
15462      if test "$host_cpu" = ia64; then
15463	# AIX 5 now supports IA64 processor
15464	lt_prog_compiler_static_GCJ='-Bstatic'
15465      else
15466	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15467      fi
15468      ;;
15469      darwin*)
15470        # PIC is the default on this platform
15471        # Common symbols not allowed in MH_DYLIB files
15472       case "$cc_basename" in
15473         xlc*)
15474         lt_prog_compiler_pic_GCJ='-qnocommon'
15475         lt_prog_compiler_wl_GCJ='-Wl,'
15476         ;;
15477       esac
15478       ;;
15479
15480    mingw* | pw32* | os2*)
15481      # This hack is so that the source file can tell whether it is being
15482      # built for inclusion in a dll (and should export symbols for example).
15483      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15484      ;;
15485
15486    hpux9* | hpux10* | hpux11*)
15487      lt_prog_compiler_wl_GCJ='-Wl,'
15488      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15489      # not for PA HP-UX.
15490      case "$host_cpu" in
15491      hppa*64*|ia64*)
15492	# +Z the default
15493	;;
15494      *)
15495	lt_prog_compiler_pic_GCJ='+Z'
15496	;;
15497      esac
15498      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15499      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15500      ;;
15501
15502    irix5* | irix6* | nonstopux*)
15503      lt_prog_compiler_wl_GCJ='-Wl,'
15504      # PIC (with -KPIC) is the default.
15505      lt_prog_compiler_static_GCJ='-non_shared'
15506      ;;
15507
15508    newsos6)
15509      lt_prog_compiler_pic_GCJ='-KPIC'
15510      lt_prog_compiler_static_GCJ='-Bstatic'
15511      ;;
15512
15513    linux*)
15514      case $CC in
15515      icc* | ecc*)
15516	lt_prog_compiler_wl_GCJ='-Wl,'
15517	lt_prog_compiler_pic_GCJ='-KPIC'
15518	lt_prog_compiler_static_GCJ='-static'
15519        ;;
15520      ccc*)
15521        lt_prog_compiler_wl_GCJ='-Wl,'
15522        # All Alpha code is PIC.
15523        lt_prog_compiler_static_GCJ='-non_shared'
15524        ;;
15525      esac
15526      ;;
15527
15528    osf3* | osf4* | osf5*)
15529      lt_prog_compiler_wl_GCJ='-Wl,'
15530      # All OSF/1 code is PIC.
15531      lt_prog_compiler_static_GCJ='-non_shared'
15532      ;;
15533
15534    sco3.2v5*)
15535      lt_prog_compiler_pic_GCJ='-Kpic'
15536      lt_prog_compiler_static_GCJ='-dn'
15537      ;;
15538
15539    solaris*)
15540      lt_prog_compiler_wl_GCJ='-Wl,'
15541      lt_prog_compiler_pic_GCJ='-KPIC'
15542      lt_prog_compiler_static_GCJ='-Bstatic'
15543      ;;
15544
15545    sunos4*)
15546      lt_prog_compiler_wl_GCJ='-Qoption ld '
15547      lt_prog_compiler_pic_GCJ='-PIC'
15548      lt_prog_compiler_static_GCJ='-Bstatic'
15549      ;;
15550
15551    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15552      lt_prog_compiler_wl_GCJ='-Wl,'
15553      lt_prog_compiler_pic_GCJ='-KPIC'
15554      lt_prog_compiler_static_GCJ='-Bstatic'
15555      ;;
15556
15557    sysv4*MP*)
15558      if test -d /usr/nec ;then
15559	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15560	lt_prog_compiler_static_GCJ='-Bstatic'
15561      fi
15562      ;;
15563
15564    uts4*)
15565      lt_prog_compiler_pic_GCJ='-pic'
15566      lt_prog_compiler_static_GCJ='-Bstatic'
15567      ;;
15568
15569    *)
15570      lt_prog_compiler_can_build_shared_GCJ=no
15571      ;;
15572    esac
15573  fi
15574
15575echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15576echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15577
15578#
15579# Check to make sure the PIC flag actually works.
15580#
15581if test -n "$lt_prog_compiler_pic_GCJ"; then
15582
15583echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15584echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15585if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15586  echo $ECHO_N "(cached) $ECHO_C" >&6
15587else
15588  lt_prog_compiler_pic_works_GCJ=no
15589  ac_outfile=conftest.$ac_objext
15590   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15591   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15592   # Insert the option either (1) after the last *FLAGS variable, or
15593   # (2) before a word containing "conftest.", or (3) at the end.
15594   # Note that $ac_compile itself does not contain backslashes and begins
15595   # with a dollar sign (not a hyphen), so the echo should work correctly.
15596   # The option is referenced via a variable to avoid confusing sed.
15597   lt_compile=`echo "$ac_compile" | $SED \
15598   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15600   -e 's:$: $lt_compiler_flag:'`
15601   (eval echo "\"\$as_me:15601: $lt_compile\"" >&5)
15602   (eval "$lt_compile" 2>conftest.err)
15603   ac_status=$?
15604   cat conftest.err >&5
15605   echo "$as_me:15605: \$? = $ac_status" >&5
15606   if (exit $ac_status) && test -s "$ac_outfile"; then
15607     # The compiler can only warn and ignore the option if not recognized
15608     # So say no if there are warnings
15609     if test ! -s conftest.err; then
15610       lt_prog_compiler_pic_works_GCJ=yes
15611     fi
15612   fi
15613   $rm conftest*
15614
15615fi
15616echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15617echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15618
15619if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15620    case $lt_prog_compiler_pic_GCJ in
15621     "" | " "*) ;;
15622     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15623     esac
15624else
15625    lt_prog_compiler_pic_GCJ=
15626     lt_prog_compiler_can_build_shared_GCJ=no
15627fi
15628
15629fi
15630case "$host_os" in
15631  # For platforms which do not support PIC, -DPIC is meaningless:
15632  *djgpp*)
15633    lt_prog_compiler_pic_GCJ=
15634    ;;
15635  *)
15636    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15637    ;;
15638esac
15639
15640echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15641echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15642if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15643  echo $ECHO_N "(cached) $ECHO_C" >&6
15644else
15645  lt_cv_prog_compiler_c_o_GCJ=no
15646   $rm -r conftest 2>/dev/null
15647   mkdir conftest
15648   cd conftest
15649   mkdir out
15650   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15651
15652   lt_compiler_flag="-o out/conftest2.$ac_objext"
15653   # Insert the option either (1) after the last *FLAGS variable, or
15654   # (2) before a word containing "conftest.", or (3) at the end.
15655   # Note that $ac_compile itself does not contain backslashes and begins
15656   # with a dollar sign (not a hyphen), so the echo should work correctly.
15657   lt_compile=`echo "$ac_compile" | $SED \
15658   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15659   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15660   -e 's:$: $lt_compiler_flag:'`
15661   (eval echo "\"\$as_me:15661: $lt_compile\"" >&5)
15662   (eval "$lt_compile" 2>out/conftest.err)
15663   ac_status=$?
15664   cat out/conftest.err >&5
15665   echo "$as_me:15665: \$? = $ac_status" >&5
15666   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15667   then
15668     # The compiler can only warn and ignore the option if not recognized
15669     # So say no if there are warnings
15670     if test ! -s out/conftest.err; then
15671       lt_cv_prog_compiler_c_o_GCJ=yes
15672     fi
15673   fi
15674   chmod u+w .
15675   $rm conftest*
15676   # SGI C++ compiler will create directory out/ii_files/ for
15677   # template instantiation
15678   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15679   $rm out/* && rmdir out
15680   cd ..
15681   rmdir conftest
15682   $rm conftest*
15683
15684fi
15685echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15686echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15687
15688
15689hard_links="nottested"
15690if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15691  # do not overwrite the value of need_locks provided by the user
15692  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15693echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15694  hard_links=yes
15695  $rm conftest*
15696  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15697  touch conftest.a
15698  ln conftest.a conftest.b 2>&5 || hard_links=no
15699  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15700  echo "$as_me:$LINENO: result: $hard_links" >&5
15701echo "${ECHO_T}$hard_links" >&6
15702  if test "$hard_links" = no; then
15703    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15704echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15705    need_locks=warn
15706  fi
15707else
15708  need_locks=no
15709fi
15710
15711echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15712echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15713
15714  runpath_var=
15715  allow_undefined_flag_GCJ=
15716  enable_shared_with_static_runtimes_GCJ=no
15717  archive_cmds_GCJ=
15718  archive_expsym_cmds_GCJ=
15719  old_archive_From_new_cmds_GCJ=
15720  old_archive_from_expsyms_cmds_GCJ=
15721  export_dynamic_flag_spec_GCJ=
15722  whole_archive_flag_spec_GCJ=
15723  thread_safe_flag_spec_GCJ=
15724  hardcode_libdir_flag_spec_GCJ=
15725  hardcode_libdir_flag_spec_ld_GCJ=
15726  hardcode_libdir_separator_GCJ=
15727  hardcode_direct_GCJ=no
15728  hardcode_minus_L_GCJ=no
15729  hardcode_shlibpath_var_GCJ=unsupported
15730  link_all_deplibs_GCJ=unknown
15731  hardcode_automatic_GCJ=no
15732  module_cmds_GCJ=
15733  module_expsym_cmds_GCJ=
15734  always_export_symbols_GCJ=no
15735  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15736  # include_expsyms should be a list of space-separated symbols to be *always*
15737  # included in the symbol list
15738  include_expsyms_GCJ=
15739  # exclude_expsyms can be an extended regexp of symbols to exclude
15740  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15741  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15742  # as well as any symbol that contains `d'.
15743  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15744  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15745  # platforms (ab)use it in PIC code, but their linkers get confused if
15746  # the symbol is explicitly referenced.  Since portable code cannot
15747  # rely on this symbol name, it's probably fine to never include it in
15748  # preloaded symbol tables.
15749  extract_expsyms_cmds=
15750
15751  case $host_os in
15752  cygwin* | mingw* | pw32*)
15753    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15754    # When not using gcc, we currently assume that we are using
15755    # Microsoft Visual C++.
15756    if test "$GCC" != yes; then
15757      with_gnu_ld=no
15758    fi
15759    ;;
15760  openbsd*)
15761    with_gnu_ld=no
15762    ;;
15763  esac
15764
15765  ld_shlibs_GCJ=yes
15766  if test "$with_gnu_ld" = yes; then
15767    # If archive_cmds runs LD, not CC, wlarc should be empty
15768    wlarc='${wl}'
15769
15770    # See if GNU ld supports shared libraries.
15771    case $host_os in
15772    aix3* | aix4* | aix5*)
15773      # On AIX/PPC, the GNU linker is very broken
15774      if test "$host_cpu" != ia64; then
15775	ld_shlibs_GCJ=no
15776	cat <<EOF 1>&2
15777
15778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15779*** to be unable to reliably create shared libraries on AIX.
15780*** Therefore, libtool is disabling shared libraries support.  If you
15781*** really care for shared libraries, you may want to modify your PATH
15782*** so that a non-GNU linker is found, and then restart.
15783
15784EOF
15785      fi
15786      ;;
15787
15788    amigaos*)
15789      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)'
15790      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791      hardcode_minus_L_GCJ=yes
15792
15793      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15794      # that the semantics of dynamic libraries on AmigaOS, at least up
15795      # to version 4, is to share data among multiple programs linked
15796      # with the same dynamic library.  Since this doesn't match the
15797      # behavior of shared libraries on other platforms, we can't use
15798      # them.
15799      ld_shlibs_GCJ=no
15800      ;;
15801
15802    beos*)
15803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15804	allow_undefined_flag_GCJ=unsupported
15805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15806	# support --undefined.  This deserves some investigation.  FIXME
15807	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15808      else
15809	ld_shlibs_GCJ=no
15810      fi
15811      ;;
15812
15813    cygwin* | mingw* | pw32*)
15814      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15815      # as there is no search path for DLLs.
15816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15817      allow_undefined_flag_GCJ=unsupported
15818      always_export_symbols_GCJ=no
15819      enable_shared_with_static_runtimes_GCJ=yes
15820      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15821
15822      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15823        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15824	# If the export-symbols file already is a .def file (1st line
15825	# is EXPORTS), use it as is; otherwise, prepend...
15826	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15827	  cp $export_symbols $output_objdir/$soname.def;
15828	else
15829	  echo EXPORTS > $output_objdir/$soname.def;
15830	  cat $export_symbols >> $output_objdir/$soname.def;
15831	fi~
15832	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15833      else
15834	ld_shlibs=no
15835      fi
15836      ;;
15837
15838    netbsd*)
15839      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15840	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15841	wlarc=
15842      else
15843	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15845      fi
15846      ;;
15847
15848    solaris* | sysv5*)
15849      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15850	ld_shlibs_GCJ=no
15851	cat <<EOF 1>&2
15852
15853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15854*** create shared libraries on Solaris systems.  Therefore, libtool
15855*** is disabling shared libraries support.  We urge you to upgrade GNU
15856*** binutils to release 2.9.1 or newer.  Another option is to modify
15857*** your PATH or compiler configuration so that the native linker is
15858*** used, and then restart.
15859
15860EOF
15861      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15862	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15864      else
15865	ld_shlibs_GCJ=no
15866      fi
15867      ;;
15868
15869    sunos4*)
15870      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871      wlarc=
15872      hardcode_direct_GCJ=yes
15873      hardcode_shlibpath_var_GCJ=no
15874      ;;
15875
15876  linux*)
15877    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15878        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879	archive_cmds_GCJ="$tmp_archive_cmds"
15880      supports_anon_versioning=no
15881      case `$LD -v 2>/dev/null` in
15882        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15883        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15884        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15885        *\ 2.11.*) ;; # other 2.11 versions
15886        *) supports_anon_versioning=yes ;;
15887      esac
15888      if test $supports_anon_versioning = yes; then
15889        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15890cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15891$echo "local: *; };" >> $output_objdir/$libname.ver~
15892        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15893      else
15894        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15895      fi
15896    else
15897      ld_shlibs_GCJ=no
15898    fi
15899    ;;
15900
15901    *)
15902      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15904	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15905      else
15906	ld_shlibs_GCJ=no
15907      fi
15908      ;;
15909    esac
15910
15911    if test "$ld_shlibs_GCJ" = yes; then
15912      runpath_var=LD_RUN_PATH
15913      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15914      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15915      # ancient GNU ld didn't support --whole-archive et. al.
15916      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15917 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15918      else
15919  	whole_archive_flag_spec_GCJ=
15920      fi
15921    fi
15922  else
15923    # PORTME fill in a description of your system's linker (not GNU ld)
15924    case $host_os in
15925    aix3*)
15926      allow_undefined_flag_GCJ=unsupported
15927      always_export_symbols_GCJ=yes
15928      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'
15929      # Note: this linker hardcodes the directories in LIBPATH if there
15930      # are no directories specified by -L.
15931      hardcode_minus_L_GCJ=yes
15932      if test "$GCC" = yes && test -z "$link_static_flag"; then
15933	# Neither direct hardcoding nor static linking is supported with a
15934	# broken collect2.
15935	hardcode_direct_GCJ=unsupported
15936      fi
15937      ;;
15938
15939    aix4* | aix5*)
15940      if test "$host_cpu" = ia64; then
15941	# On IA64, the linker does run time linking by default, so we don't
15942	# have to do anything special.
15943	aix_use_runtimelinking=no
15944	exp_sym_flag='-Bexport'
15945	no_entry_flag=""
15946      else
15947	# If we're using GNU nm, then we don't want the "-C" option.
15948	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15949	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15950	  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'
15951	else
15952	  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'
15953	fi
15954	aix_use_runtimelinking=no
15955
15956	# Test if we are trying to use run time linking or normal
15957	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15958	# need to do runtime linking.
15959	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15960	  for ld_flag in $LDFLAGS; do
15961  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15962  	    aix_use_runtimelinking=yes
15963  	    break
15964  	  fi
15965	  done
15966	esac
15967
15968	exp_sym_flag='-bexport'
15969	no_entry_flag='-bnoentry'
15970      fi
15971
15972      # When large executables or shared objects are built, AIX ld can
15973      # have problems creating the table of contents.  If linking a library
15974      # or program results in "error TOC overflow" add -mminimal-toc to
15975      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15976      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15977
15978      archive_cmds_GCJ=''
15979      hardcode_direct_GCJ=yes
15980      hardcode_libdir_separator_GCJ=':'
15981      link_all_deplibs_GCJ=yes
15982
15983      if test "$GCC" = yes; then
15984	case $host_os in aix4.012|aix4.012.*)
15985	# We only want to do this on AIX 4.2 and lower, the check
15986	# below for broken collect2 doesn't work under 4.3+
15987	  collect2name=`${CC} -print-prog-name=collect2`
15988	  if test -f "$collect2name" && \
15989  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15990	  then
15991  	  # We have reworked collect2
15992  	  hardcode_direct_GCJ=yes
15993	  else
15994  	  # We have old collect2
15995  	  hardcode_direct_GCJ=unsupported
15996  	  # It fails to find uninstalled libraries when the uninstalled
15997  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15998  	  # to unsupported forces relinking
15999  	  hardcode_minus_L_GCJ=yes
16000  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16001  	  hardcode_libdir_separator_GCJ=
16002	  fi
16003	esac
16004	shared_flag='-shared'
16005      else
16006	# not using gcc
16007	if test "$host_cpu" = ia64; then
16008  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16009  	# chokes on -Wl,-G. The following line is correct:
16010	  shared_flag='-G'
16011	else
16012  	if test "$aix_use_runtimelinking" = yes; then
16013	    shared_flag='${wl}-G'
16014	  else
16015	    shared_flag='${wl}-bM:SRE'
16016  	fi
16017	fi
16018      fi
16019
16020      # It seems that -bexpall does not export symbols beginning with
16021      # underscore (_), so it is better to generate a list of symbols to export.
16022      always_export_symbols_GCJ=yes
16023      if test "$aix_use_runtimelinking" = yes; then
16024	# Warning - without using the other runtime loading flags (-brtl),
16025	# -berok will link without error, but may produce a broken library.
16026	allow_undefined_flag_GCJ='-berok'
16027       # Determine the default libpath from the value encoded in an empty executable.
16028       cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h.  */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h.  */
16034
16035int
16036main ()
16037{
16038
16039  ;
16040  return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext conftest$ac_exeext
16044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045  (eval $ac_link) 2>conftest.er1
16046  ac_status=$?
16047  grep -v '^ *+' conftest.er1 >conftest.err
16048  rm -f conftest.er1
16049  cat conftest.err >&5
16050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051  (exit $ac_status); } &&
16052	 { ac_try='test -z "$ac_c_werror_flag"
16053			 || test ! -s conftest.err'
16054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055  (eval $ac_try) 2>&5
16056  ac_status=$?
16057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058  (exit $ac_status); }; } &&
16059	 { ac_try='test -s conftest$ac_exeext'
16060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061  (eval $ac_try) 2>&5
16062  ac_status=$?
16063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064  (exit $ac_status); }; }; then
16065
16066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16067}'`
16068# Check for a 64-bit object if we didn't find anything.
16069if 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; }
16070}'`; fi
16071else
16072  echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075fi
16076rm -f conftest.err conftest.$ac_objext \
16077      conftest$ac_exeext conftest.$ac_ext
16078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16079
16080       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16081	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16082       else
16083	if test "$host_cpu" = ia64; then
16084	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16085	  allow_undefined_flag_GCJ="-z nodefs"
16086	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16087	else
16088	 # Determine the default libpath from the value encoded in an empty executable.
16089	 cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h.  */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h.  */
16095
16096int
16097main ()
16098{
16099
16100  ;
16101  return 0;
16102}
16103_ACEOF
16104rm -f conftest.$ac_objext conftest$ac_exeext
16105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106  (eval $ac_link) 2>conftest.er1
16107  ac_status=$?
16108  grep -v '^ *+' conftest.er1 >conftest.err
16109  rm -f conftest.er1
16110  cat conftest.err >&5
16111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112  (exit $ac_status); } &&
16113	 { ac_try='test -z "$ac_c_werror_flag"
16114			 || test ! -s conftest.err'
16115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116  (eval $ac_try) 2>&5
16117  ac_status=$?
16118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119  (exit $ac_status); }; } &&
16120	 { ac_try='test -s conftest$ac_exeext'
16121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122  (eval $ac_try) 2>&5
16123  ac_status=$?
16124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125  (exit $ac_status); }; }; then
16126
16127aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16128}'`
16129# Check for a 64-bit object if we didn't find anything.
16130if 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; }
16131}'`; fi
16132else
16133  echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136fi
16137rm -f conftest.err conftest.$ac_objext \
16138      conftest$ac_exeext conftest.$ac_ext
16139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16140
16141	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16142	  # Warning - without using the other run time loading flags,
16143	  # -berok will link without error, but may produce a broken library.
16144	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16145	  allow_undefined_flag_GCJ=' ${wl}-berok'
16146	  # -bexpall does not export symbols beginning with underscore (_)
16147	  always_export_symbols_GCJ=yes
16148	  # Exported symbols can be pulled into shared objects from archives
16149	  whole_archive_flag_spec_GCJ=' '
16150	  archive_cmds_need_lc_GCJ=yes
16151	  # This is similar to how AIX traditionally builds it's shared libraries.
16152	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16153	fi
16154      fi
16155      ;;
16156
16157    amigaos*)
16158      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)'
16159      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160      hardcode_minus_L_GCJ=yes
16161      # see comment about different semantics on the GNU ld section
16162      ld_shlibs_GCJ=no
16163      ;;
16164
16165    bsdi[45]*)
16166      export_dynamic_flag_spec_GCJ=-rdynamic
16167      ;;
16168
16169    cygwin* | mingw* | pw32*)
16170      # When not using gcc, we currently assume that we are using
16171      # Microsoft Visual C++.
16172      # hardcode_libdir_flag_spec is actually meaningless, as there is
16173      # no search path for DLLs.
16174      hardcode_libdir_flag_spec_GCJ=' '
16175      allow_undefined_flag_GCJ=unsupported
16176      # Tell ltmain to make .lib files, not .a files.
16177      libext=lib
16178      # Tell ltmain to make .dll files, not .so files.
16179      shrext_cmds=".dll"
16180      # FIXME: Setting linknames here is a bad hack.
16181      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16182      # The linker will automatically build a .lib file if we build a DLL.
16183      old_archive_From_new_cmds_GCJ='true'
16184      # FIXME: Should let the user specify the lib program.
16185      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16186      fix_srcfile_path='`cygpath -w "$srcfile"`'
16187      enable_shared_with_static_runtimes_GCJ=yes
16188      ;;
16189
16190    darwin* | rhapsody*)
16191      case "$host_os" in
16192        rhapsody* | darwin1.[012])
16193         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16194         ;;
16195       *) # Darwin 1.3 on
16196         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16197           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16198         else
16199           case ${MACOSX_DEPLOYMENT_TARGET} in
16200             10.[012])
16201               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16202               ;;
16203             10.*)
16204               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16205               ;;
16206           esac
16207         fi
16208         ;;
16209      esac
16210      archive_cmds_need_lc_GCJ=no
16211      hardcode_direct_GCJ=no
16212      hardcode_automatic_GCJ=yes
16213      hardcode_shlibpath_var_GCJ=unsupported
16214      whole_archive_flag_spec_GCJ=''
16215      link_all_deplibs_GCJ=yes
16216    if test "$GCC" = yes ; then
16217    	output_verbose_link_cmd='echo'
16218        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16219      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16220      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16221      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}'
16222      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}'
16223    else
16224      case "$cc_basename" in
16225        xlc*)
16226         output_verbose_link_cmd='echo'
16227         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16228         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16229          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16230         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}'
16231          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}'
16232          ;;
16233       *)
16234         ld_shlibs_GCJ=no
16235          ;;
16236      esac
16237    fi
16238      ;;
16239
16240    dgux*)
16241      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16243      hardcode_shlibpath_var_GCJ=no
16244      ;;
16245
16246    freebsd1*)
16247      ld_shlibs_GCJ=no
16248      ;;
16249
16250    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16251    # support.  Future versions do this automatically, but an explicit c++rt0.o
16252    # does not break anything, and helps significantly (at the cost of a little
16253    # extra space).
16254    freebsd2.2*)
16255      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16256      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16257      hardcode_direct_GCJ=yes
16258      hardcode_shlibpath_var_GCJ=no
16259      ;;
16260
16261    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16262    freebsd2*)
16263      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264      hardcode_direct_GCJ=yes
16265      hardcode_minus_L_GCJ=yes
16266      hardcode_shlibpath_var_GCJ=no
16267      ;;
16268
16269    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16270    freebsd* | kfreebsd*-gnu)
16271      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16272      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16273      hardcode_direct_GCJ=yes
16274      hardcode_shlibpath_var_GCJ=no
16275      ;;
16276
16277    hpux9*)
16278      if test "$GCC" = yes; then
16279	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'
16280      else
16281	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'
16282      fi
16283      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284      hardcode_libdir_separator_GCJ=:
16285      hardcode_direct_GCJ=yes
16286
16287      # hardcode_minus_L: Not really in the search PATH,
16288      # but as the default location of the library.
16289      hardcode_minus_L_GCJ=yes
16290      export_dynamic_flag_spec_GCJ='${wl}-E'
16291      ;;
16292
16293    hpux10* | hpux11*)
16294      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295	case "$host_cpu" in
16296	hppa*64*|ia64*)
16297	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16298	  ;;
16299	*)
16300	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16301	  ;;
16302	esac
16303      else
16304	case "$host_cpu" in
16305	hppa*64*|ia64*)
16306	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16307	  ;;
16308	*)
16309	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16310	  ;;
16311	esac
16312      fi
16313      if test "$with_gnu_ld" = no; then
16314	case "$host_cpu" in
16315	hppa*64*)
16316	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16317	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16318	  hardcode_libdir_separator_GCJ=:
16319	  hardcode_direct_GCJ=no
16320	  hardcode_shlibpath_var_GCJ=no
16321	  ;;
16322	ia64*)
16323	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16324	  hardcode_direct_GCJ=no
16325	  hardcode_shlibpath_var_GCJ=no
16326
16327	  # hardcode_minus_L: Not really in the search PATH,
16328	  # but as the default location of the library.
16329	  hardcode_minus_L_GCJ=yes
16330	  ;;
16331	*)
16332	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16333	  hardcode_libdir_separator_GCJ=:
16334	  hardcode_direct_GCJ=yes
16335	  export_dynamic_flag_spec_GCJ='${wl}-E'
16336
16337	  # hardcode_minus_L: Not really in the search PATH,
16338	  # but as the default location of the library.
16339	  hardcode_minus_L_GCJ=yes
16340	  ;;
16341	esac
16342      fi
16343      ;;
16344
16345    irix5* | irix6* | nonstopux*)
16346      if test "$GCC" = yes; then
16347	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'
16348      else
16349	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'
16350	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16351      fi
16352      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16353      hardcode_libdir_separator_GCJ=:
16354      link_all_deplibs_GCJ=yes
16355      ;;
16356
16357    netbsd*)
16358      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16359	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16360      else
16361	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16362      fi
16363      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16364      hardcode_direct_GCJ=yes
16365      hardcode_shlibpath_var_GCJ=no
16366      ;;
16367
16368    newsos6)
16369      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370      hardcode_direct_GCJ=yes
16371      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16372      hardcode_libdir_separator_GCJ=:
16373      hardcode_shlibpath_var_GCJ=no
16374      ;;
16375
16376    openbsd*)
16377      hardcode_direct_GCJ=yes
16378      hardcode_shlibpath_var_GCJ=no
16379      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16380	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16381	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16382	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16383	export_dynamic_flag_spec_GCJ='${wl}-E'
16384      else
16385       case $host_os in
16386	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16387	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16388	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16389	   ;;
16390	 *)
16391	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16392	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16393	   ;;
16394       esac
16395      fi
16396      ;;
16397
16398    os2*)
16399      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400      hardcode_minus_L_GCJ=yes
16401      allow_undefined_flag_GCJ=unsupported
16402      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'
16403      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16404      ;;
16405
16406    osf3*)
16407      if test "$GCC" = yes; then
16408	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16409	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'
16410      else
16411	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16412	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'
16413      fi
16414      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415      hardcode_libdir_separator_GCJ=:
16416      ;;
16417
16418    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16419      if test "$GCC" = yes; then
16420	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16421	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'
16422	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16423      else
16424	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16425	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'
16426	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~
16427	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16428
16429	# Both c and cxx compiler support -rpath directly
16430	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16431      fi
16432      hardcode_libdir_separator_GCJ=:
16433      ;;
16434
16435    sco3.2v5*)
16436      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16437      hardcode_shlibpath_var_GCJ=no
16438      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16439      runpath_var=LD_RUN_PATH
16440      hardcode_runpath_var=yes
16441      ;;
16442
16443    solaris*)
16444      no_undefined_flag_GCJ=' -z text'
16445      if test "$GCC" = yes; then
16446	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16448	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16449      else
16450	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16452  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16453      fi
16454      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16455      hardcode_shlibpath_var_GCJ=no
16456      case $host_os in
16457      solaris2.[0-5] | solaris2.[0-5].*) ;;
16458      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16459	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16460      esac
16461      link_all_deplibs_GCJ=yes
16462      ;;
16463
16464    sunos4*)
16465      if test "x$host_vendor" = xsequent; then
16466	# Use $CC to link under sequent, because it throws in some extra .o
16467	# files that make .init and .fini sections work.
16468	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16469      else
16470	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16471      fi
16472      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16473      hardcode_direct_GCJ=yes
16474      hardcode_minus_L_GCJ=yes
16475      hardcode_shlibpath_var_GCJ=no
16476      ;;
16477
16478    sysv4)
16479      case $host_vendor in
16480	sni)
16481	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16482	  hardcode_direct_GCJ=yes # is this really true???
16483	;;
16484	siemens)
16485	  ## LD is ld it makes a PLAMLIB
16486	  ## CC just makes a GrossModule.
16487	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16488	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16489	  hardcode_direct_GCJ=no
16490        ;;
16491	motorola)
16492	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16494	;;
16495      esac
16496      runpath_var='LD_RUN_PATH'
16497      hardcode_shlibpath_var_GCJ=no
16498      ;;
16499
16500    sysv4.3*)
16501      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502      hardcode_shlibpath_var_GCJ=no
16503      export_dynamic_flag_spec_GCJ='-Bexport'
16504      ;;
16505
16506    sysv4*MP*)
16507      if test -d /usr/nec; then
16508	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509	hardcode_shlibpath_var_GCJ=no
16510	runpath_var=LD_RUN_PATH
16511	hardcode_runpath_var=yes
16512	ld_shlibs_GCJ=yes
16513      fi
16514      ;;
16515
16516    sysv4.2uw2*)
16517      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16518      hardcode_direct_GCJ=yes
16519      hardcode_minus_L_GCJ=no
16520      hardcode_shlibpath_var_GCJ=no
16521      hardcode_runpath_var=yes
16522      runpath_var=LD_RUN_PATH
16523      ;;
16524
16525   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16526      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16527      if test "$GCC" = yes; then
16528	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529      else
16530	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531      fi
16532      runpath_var='LD_RUN_PATH'
16533      hardcode_shlibpath_var_GCJ=no
16534      ;;
16535
16536    sysv5*)
16537      no_undefined_flag_GCJ=' -z text'
16538      # $CC -shared without GNU ld will not create a library from C++
16539      # object files and a static libstdc++, better avoid it by now
16540      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16542  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16543      hardcode_libdir_flag_spec_GCJ=
16544      hardcode_shlibpath_var_GCJ=no
16545      runpath_var='LD_RUN_PATH'
16546      ;;
16547
16548    uts4*)
16549      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551      hardcode_shlibpath_var_GCJ=no
16552      ;;
16553
16554    *)
16555      ld_shlibs_GCJ=no
16556      ;;
16557    esac
16558  fi
16559
16560echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16561echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16562test "$ld_shlibs_GCJ" = no && can_build_shared=no
16563
16564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565if test "$GCC" = yes; then
16566  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567fi
16568
16569#
16570# Do we need to explicitly link libc?
16571#
16572case "x$archive_cmds_need_lc_GCJ" in
16573x|xyes)
16574  # Assume -lc should be added
16575  archive_cmds_need_lc_GCJ=yes
16576
16577  if test "$enable_shared" = yes && test "$GCC" = yes; then
16578    case $archive_cmds_GCJ in
16579    *'~'*)
16580      # FIXME: we may have to deal with multi-command sequences.
16581      ;;
16582    '$CC '*)
16583      # Test whether the compiler implicitly links with -lc since on some
16584      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585      # to ld, don't add -lc before -lgcc.
16586      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16588      $rm conftest*
16589      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
16591      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592  (eval $ac_compile) 2>&5
16593  ac_status=$?
16594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595  (exit $ac_status); } 2>conftest.err; then
16596        soname=conftest
16597        lib=conftest
16598        libobjs=conftest.$ac_objext
16599        deplibs=
16600        wl=$lt_prog_compiler_wl_GCJ
16601        compiler_flags=-v
16602        linker_flags=-v
16603        verstring=
16604        output_objdir=.
16605        libname=conftest
16606        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16607        allow_undefined_flag_GCJ=
16608        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16609  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610  ac_status=$?
16611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612  (exit $ac_status); }
16613        then
16614	  archive_cmds_need_lc_GCJ=no
16615        else
16616	  archive_cmds_need_lc_GCJ=yes
16617        fi
16618        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16619      else
16620        cat conftest.err 1>&5
16621      fi
16622      $rm conftest*
16623      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16624echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16625      ;;
16626    esac
16627  fi
16628  ;;
16629esac
16630
16631echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16632echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16633library_names_spec=
16634libname_spec='lib$name'
16635soname_spec=
16636shrext_cmds=".so"
16637postinstall_cmds=
16638postuninstall_cmds=
16639finish_cmds=
16640finish_eval=
16641shlibpath_var=
16642shlibpath_overrides_runpath=unknown
16643version_type=none
16644dynamic_linker="$host_os ld.so"
16645sys_lib_dlsearch_path_spec="/lib /usr/lib"
16646if test "$GCC" = yes; then
16647  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16648  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16649    # if the path contains ";" then we assume it to be the separator
16650    # otherwise default to the standard path separator (i.e. ":") - it is
16651    # assumed that no part of a normal pathname contains ";" but that should
16652    # okay in the real world where ";" in dirpaths is itself problematic.
16653    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16654  else
16655    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16656  fi
16657else
16658  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16659fi
16660need_lib_prefix=unknown
16661hardcode_into_libs=no
16662
16663# when you set need_version to no, make sure it does not cause -set_version
16664# flags to be left without arguments
16665need_version=unknown
16666
16667case $host_os in
16668aix3*)
16669  version_type=linux
16670  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16671  shlibpath_var=LIBPATH
16672
16673  # AIX 3 has no versioning support, so we append a major version to the name.
16674  soname_spec='${libname}${release}${shared_ext}$major'
16675  ;;
16676
16677aix4* | aix5*)
16678  version_type=linux
16679  need_lib_prefix=no
16680  need_version=no
16681  hardcode_into_libs=yes
16682  if test "$host_cpu" = ia64; then
16683    # AIX 5 supports IA64
16684    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16685    shlibpath_var=LD_LIBRARY_PATH
16686  else
16687    # With GCC up to 2.95.x, collect2 would create an import file
16688    # for dependence libraries.  The import file would start with
16689    # the line `#! .'.  This would cause the generated library to
16690    # depend on `.', always an invalid library.  This was fixed in
16691    # development snapshots of GCC prior to 3.0.
16692    case $host_os in
16693      aix4 | aix4.[01] | aix4.[01].*)
16694      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16695	   echo ' yes '
16696	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16697	:
16698      else
16699	can_build_shared=no
16700      fi
16701      ;;
16702    esac
16703    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16704    # soname into executable. Probably we can add versioning support to
16705    # collect2, so additional links can be useful in future.
16706    if test "$aix_use_runtimelinking" = yes; then
16707      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16708      # instead of lib<name>.a to let people know that these are not
16709      # typical AIX shared libraries.
16710      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711    else
16712      # We preserve .a as extension for shared libraries through AIX4.2
16713      # and later when we are not doing run time linking.
16714      library_names_spec='${libname}${release}.a $libname.a'
16715      soname_spec='${libname}${release}${shared_ext}$major'
16716    fi
16717    shlibpath_var=LIBPATH
16718  fi
16719  ;;
16720
16721amigaos*)
16722  library_names_spec='$libname.ixlibrary $libname.a'
16723  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16724  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'
16725  ;;
16726
16727beos*)
16728  library_names_spec='${libname}${shared_ext}'
16729  dynamic_linker="$host_os ld.so"
16730  shlibpath_var=LIBRARY_PATH
16731  ;;
16732
16733bsdi[45]*)
16734  version_type=linux
16735  need_version=no
16736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737  soname_spec='${libname}${release}${shared_ext}$major'
16738  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16739  shlibpath_var=LD_LIBRARY_PATH
16740  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16741  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16742  # the default ld.so.conf also contains /usr/contrib/lib and
16743  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16744  # libtool to hard-code these into programs
16745  ;;
16746
16747cygwin* | mingw* | pw32*)
16748  version_type=windows
16749  shrext_cmds=".dll"
16750  need_version=no
16751  need_lib_prefix=no
16752
16753  case $GCC,$host_os in
16754  yes,cygwin* | yes,mingw* | yes,pw32*)
16755    library_names_spec='$libname.dll.a'
16756    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16757    postinstall_cmds='base_file=`basename \${file}`~
16758      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16759      dldir=$destdir/`dirname \$dlpath`~
16760      test -d \$dldir || mkdir -p \$dldir~
16761      $install_prog $dir/$dlname \$dldir/$dlname'
16762    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16763      dlpath=$dir/\$dldll~
16764       $rm \$dlpath'
16765    shlibpath_overrides_runpath=yes
16766
16767    case $host_os in
16768    cygwin*)
16769      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16770      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16771      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16772      ;;
16773    mingw*)
16774      # MinGW DLLs use traditional 'lib' prefix
16775      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16777      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16778        # It is most probably a Windows format PATH printed by
16779        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16780        # path with ; separators, and with drive letters. We can handle the
16781        # drive letters (cygwin fileutils understands them), so leave them,
16782        # especially as we might pass files found there to a mingw objdump,
16783        # which wouldn't understand a cygwinified path. Ahh.
16784        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16785      else
16786        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16787      fi
16788      ;;
16789    pw32*)
16790      # pw32 DLLs use 'pw' prefix rather than 'lib'
16791      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16792      ;;
16793    esac
16794    ;;
16795
16796  *)
16797    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16798    ;;
16799  esac
16800  dynamic_linker='Win32 ld.exe'
16801  # FIXME: first we should search . and the directory the executable is in
16802  shlibpath_var=PATH
16803  ;;
16804
16805darwin* | rhapsody*)
16806  dynamic_linker="$host_os dyld"
16807  version_type=darwin
16808  need_lib_prefix=no
16809  need_version=no
16810  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16811  soname_spec='${libname}${release}${major}$shared_ext'
16812  shlibpath_overrides_runpath=yes
16813  shlibpath_var=DYLD_LIBRARY_PATH
16814  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16815  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16816  if test "$GCC" = yes; then
16817    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"`
16818  else
16819    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16820  fi
16821  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16822  ;;
16823
16824dgux*)
16825  version_type=linux
16826  need_lib_prefix=no
16827  need_version=no
16828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16829  soname_spec='${libname}${release}${shared_ext}$major'
16830  shlibpath_var=LD_LIBRARY_PATH
16831  ;;
16832
16833freebsd1*)
16834  dynamic_linker=no
16835  ;;
16836
16837kfreebsd*-gnu)
16838  version_type=linux
16839  need_lib_prefix=no
16840  need_version=no
16841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842  soname_spec='${libname}${release}${shared_ext}$major'
16843  shlibpath_var=LD_LIBRARY_PATH
16844  shlibpath_overrides_runpath=no
16845  hardcode_into_libs=yes
16846  dynamic_linker='GNU ld.so'
16847  ;;
16848
16849freebsd*)
16850  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16851  version_type=freebsd-$objformat
16852  case $version_type in
16853    freebsd-elf*)
16854      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16855      need_version=no
16856      need_lib_prefix=no
16857      ;;
16858    freebsd-*)
16859      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16860      need_version=yes
16861      ;;
16862  esac
16863  shlibpath_var=LD_LIBRARY_PATH
16864  case $host_os in
16865  freebsd2*)
16866    shlibpath_overrides_runpath=yes
16867    ;;
16868  freebsd3.01* | freebsdelf3.01*)
16869    shlibpath_overrides_runpath=yes
16870    hardcode_into_libs=yes
16871    ;;
16872  *) # from 3.2 on
16873    shlibpath_overrides_runpath=no
16874    hardcode_into_libs=yes
16875    ;;
16876  esac
16877  ;;
16878
16879gnu*)
16880  version_type=linux
16881  need_lib_prefix=no
16882  need_version=no
16883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16884  soname_spec='${libname}${release}${shared_ext}$major'
16885  shlibpath_var=LD_LIBRARY_PATH
16886  hardcode_into_libs=yes
16887  ;;
16888
16889hpux9* | hpux10* | hpux11*)
16890  # Give a soname corresponding to the major version so that dld.sl refuses to
16891  # link against other versions.
16892  version_type=sunos
16893  need_lib_prefix=no
16894  need_version=no
16895  case "$host_cpu" in
16896  ia64*)
16897    shrext_cmds='.so'
16898    hardcode_into_libs=yes
16899    dynamic_linker="$host_os dld.so"
16900    shlibpath_var=LD_LIBRARY_PATH
16901    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903    soname_spec='${libname}${release}${shared_ext}$major'
16904    if test "X$HPUX_IA64_MODE" = X32; then
16905      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16906    else
16907      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16908    fi
16909    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16910    ;;
16911   hppa*64*)
16912     shrext_cmds='.sl'
16913     hardcode_into_libs=yes
16914     dynamic_linker="$host_os dld.sl"
16915     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16916     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918     soname_spec='${libname}${release}${shared_ext}$major'
16919     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16920     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16921     ;;
16922   *)
16923    shrext_cmds='.sl'
16924    dynamic_linker="$host_os dld.sl"
16925    shlibpath_var=SHLIB_PATH
16926    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928    soname_spec='${libname}${release}${shared_ext}$major'
16929    ;;
16930  esac
16931  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16932  postinstall_cmds='chmod 555 $lib'
16933  ;;
16934
16935irix5* | irix6* | nonstopux*)
16936  case $host_os in
16937    nonstopux*) version_type=nonstopux ;;
16938    *)
16939	if test "$lt_cv_prog_gnu_ld" = yes; then
16940		version_type=linux
16941	else
16942		version_type=irix
16943	fi ;;
16944  esac
16945  need_lib_prefix=no
16946  need_version=no
16947  soname_spec='${libname}${release}${shared_ext}$major'
16948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16949  case $host_os in
16950  irix5* | nonstopux*)
16951    libsuff= shlibsuff=
16952    ;;
16953  *)
16954    case $LD in # libtool.m4 will add one of these switches to LD
16955    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16956      libsuff= shlibsuff= libmagic=32-bit;;
16957    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16958      libsuff=32 shlibsuff=N32 libmagic=N32;;
16959    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16960      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16961    *) libsuff= shlibsuff= libmagic=never-match;;
16962    esac
16963    ;;
16964  esac
16965  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16966  shlibpath_overrides_runpath=no
16967  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16968  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16969  hardcode_into_libs=yes
16970  ;;
16971
16972# No shared lib support for Linux oldld, aout, or coff.
16973linux*oldld* | linux*aout* | linux*coff*)
16974  dynamic_linker=no
16975  ;;
16976
16977# This must be Linux ELF.
16978linux*)
16979  version_type=linux
16980  need_lib_prefix=no
16981  need_version=no
16982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983  soname_spec='${libname}${release}${shared_ext}$major'
16984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16985  shlibpath_var=LD_LIBRARY_PATH
16986  shlibpath_overrides_runpath=no
16987  # This implies no fast_install, which is unacceptable.
16988  # Some rework will be needed to allow for fast_install
16989  # before this can be enabled.
16990  hardcode_into_libs=yes
16991
16992  # Append ld.so.conf contents to the search path
16993  if test -f /etc/ld.so.conf; then
16994    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16995    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16996  fi
16997
16998  # We used to test for /lib/ld.so.1 and disable shared libraries on
16999  # powerpc, because MkLinux only supported shared libraries with the
17000  # GNU dynamic linker.  Since this was broken with cross compilers,
17001  # most powerpc-linux boxes support dynamic linking these days and
17002  # people can always --disable-shared, the test was removed, and we
17003  # assume the GNU/Linux dynamic linker is in use.
17004  dynamic_linker='GNU/Linux ld.so'
17005  ;;
17006
17007knetbsd*-gnu)
17008  version_type=linux
17009  need_lib_prefix=no
17010  need_version=no
17011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17012  soname_spec='${libname}${release}${shared_ext}$major'
17013  shlibpath_var=LD_LIBRARY_PATH
17014  shlibpath_overrides_runpath=no
17015  hardcode_into_libs=yes
17016  dynamic_linker='GNU ld.so'
17017  ;;
17018
17019netbsd*)
17020  version_type=sunos
17021  need_lib_prefix=no
17022  need_version=no
17023  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026    dynamic_linker='NetBSD (a.out) ld.so'
17027  else
17028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17029    soname_spec='${libname}${release}${shared_ext}$major'
17030    dynamic_linker='NetBSD ld.elf_so'
17031  fi
17032  shlibpath_var=LD_LIBRARY_PATH
17033  shlibpath_overrides_runpath=yes
17034  hardcode_into_libs=yes
17035  ;;
17036
17037newsos6)
17038  version_type=linux
17039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040  shlibpath_var=LD_LIBRARY_PATH
17041  shlibpath_overrides_runpath=yes
17042  ;;
17043
17044nto-qnx*)
17045  version_type=linux
17046  need_lib_prefix=no
17047  need_version=no
17048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049  soname_spec='${libname}${release}${shared_ext}$major'
17050  shlibpath_var=LD_LIBRARY_PATH
17051  shlibpath_overrides_runpath=yes
17052  ;;
17053
17054openbsd*)
17055  version_type=sunos
17056  need_lib_prefix=no
17057  need_version=no
17058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17060  shlibpath_var=LD_LIBRARY_PATH
17061  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17062    case $host_os in
17063      openbsd2.[89] | openbsd2.[89].*)
17064	shlibpath_overrides_runpath=no
17065	;;
17066      *)
17067	shlibpath_overrides_runpath=yes
17068	;;
17069      esac
17070  else
17071    shlibpath_overrides_runpath=yes
17072  fi
17073  ;;
17074
17075os2*)
17076  libname_spec='$name'
17077  shrext_cmds=".dll"
17078  need_lib_prefix=no
17079  library_names_spec='$libname${shared_ext} $libname.a'
17080  dynamic_linker='OS/2 ld.exe'
17081  shlibpath_var=LIBPATH
17082  ;;
17083
17084osf3* | osf4* | osf5*)
17085  version_type=osf
17086  need_lib_prefix=no
17087  need_version=no
17088  soname_spec='${libname}${release}${shared_ext}$major'
17089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090  shlibpath_var=LD_LIBRARY_PATH
17091  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17092  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17093  ;;
17094
17095sco3.2v5*)
17096  version_type=osf
17097  soname_spec='${libname}${release}${shared_ext}$major'
17098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  ;;
17101
17102solaris*)
17103  version_type=linux
17104  need_lib_prefix=no
17105  need_version=no
17106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107  soname_spec='${libname}${release}${shared_ext}$major'
17108  shlibpath_var=LD_LIBRARY_PATH
17109  shlibpath_overrides_runpath=yes
17110  hardcode_into_libs=yes
17111  # ldd complains unless libraries are executable
17112  postinstall_cmds='chmod +x $lib'
17113  ;;
17114
17115sunos4*)
17116  version_type=sunos
17117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119  shlibpath_var=LD_LIBRARY_PATH
17120  shlibpath_overrides_runpath=yes
17121  if test "$with_gnu_ld" = yes; then
17122    need_lib_prefix=no
17123  fi
17124  need_version=yes
17125  ;;
17126
17127sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17128  version_type=linux
17129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130  soname_spec='${libname}${release}${shared_ext}$major'
17131  shlibpath_var=LD_LIBRARY_PATH
17132  case $host_vendor in
17133    sni)
17134      shlibpath_overrides_runpath=no
17135      need_lib_prefix=no
17136      export_dynamic_flag_spec='${wl}-Blargedynsym'
17137      runpath_var=LD_RUN_PATH
17138      ;;
17139    siemens)
17140      need_lib_prefix=no
17141      ;;
17142    motorola)
17143      need_lib_prefix=no
17144      need_version=no
17145      shlibpath_overrides_runpath=no
17146      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17147      ;;
17148  esac
17149  ;;
17150
17151sysv4*MP*)
17152  if test -d /usr/nec ;then
17153    version_type=linux
17154    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17155    soname_spec='$libname${shared_ext}.$major'
17156    shlibpath_var=LD_LIBRARY_PATH
17157  fi
17158  ;;
17159
17160uts4*)
17161  version_type=linux
17162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163  soname_spec='${libname}${release}${shared_ext}$major'
17164  shlibpath_var=LD_LIBRARY_PATH
17165  ;;
17166
17167*)
17168  dynamic_linker=no
17169  ;;
17170esac
17171echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17172echo "${ECHO_T}$dynamic_linker" >&6
17173test "$dynamic_linker" = no && can_build_shared=no
17174
17175echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17177hardcode_action_GCJ=
17178if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17179   test -n "$runpath_var_GCJ" || \
17180   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17181
17182  # We can hardcode non-existant directories.
17183  if test "$hardcode_direct_GCJ" != no &&
17184     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17185     # have to relink, otherwise we might link with an installed library
17186     # when we should be linking with a yet-to-be-installed one
17187     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17188     test "$hardcode_minus_L_GCJ" != no; then
17189    # Linking always hardcodes the temporary library directory.
17190    hardcode_action_GCJ=relink
17191  else
17192    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17193    hardcode_action_GCJ=immediate
17194  fi
17195else
17196  # We cannot hardcode anything, or else we can only hardcode existing
17197  # directories.
17198  hardcode_action_GCJ=unsupported
17199fi
17200echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17201echo "${ECHO_T}$hardcode_action_GCJ" >&6
17202
17203if test "$hardcode_action_GCJ" = relink; then
17204  # Fast installation is not supported
17205  enable_fast_install=no
17206elif test "$shlibpath_overrides_runpath" = yes ||
17207     test "$enable_shared" = no; then
17208  # Fast installation is not necessary
17209  enable_fast_install=needless
17210fi
17211
17212striplib=
17213old_striplib=
17214echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17217  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17218  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17219  echo "$as_me:$LINENO: result: yes" >&5
17220echo "${ECHO_T}yes" >&6
17221else
17222# FIXME - insert some real tests, host_os isn't really good enough
17223  case $host_os in
17224   darwin*)
17225       if test -n "$STRIP" ; then
17226         striplib="$STRIP -x"
17227         echo "$as_me:$LINENO: result: yes" >&5
17228echo "${ECHO_T}yes" >&6
17229       else
17230  echo "$as_me:$LINENO: result: no" >&5
17231echo "${ECHO_T}no" >&6
17232fi
17233       ;;
17234   *)
17235  echo "$as_me:$LINENO: result: no" >&5
17236echo "${ECHO_T}no" >&6
17237    ;;
17238  esac
17239fi
17240
17241if test "x$enable_dlopen" != xyes; then
17242  enable_dlopen=unknown
17243  enable_dlopen_self=unknown
17244  enable_dlopen_self_static=unknown
17245else
17246  lt_cv_dlopen=no
17247  lt_cv_dlopen_libs=
17248
17249  case $host_os in
17250  beos*)
17251    lt_cv_dlopen="load_add_on"
17252    lt_cv_dlopen_libs=
17253    lt_cv_dlopen_self=yes
17254    ;;
17255
17256  mingw* | pw32*)
17257    lt_cv_dlopen="LoadLibrary"
17258    lt_cv_dlopen_libs=
17259   ;;
17260
17261  cygwin*)
17262    lt_cv_dlopen="dlopen"
17263    lt_cv_dlopen_libs=
17264   ;;
17265
17266  darwin*)
17267  # if libdl is installed we need to link against it
17268    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17271  echo $ECHO_N "(cached) $ECHO_C" >&6
17272else
17273  ac_check_lib_save_LIBS=$LIBS
17274LIBS="-ldl  $LIBS"
17275cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h.  */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h.  */
17281
17282/* Override any gcc2 internal prototype to avoid an error.  */
17283#ifdef __cplusplus
17284extern "C"
17285#endif
17286/* We use char because int might match the return type of a gcc2
17287   builtin and then its argument prototype would still apply.  */
17288char dlopen ();
17289int
17290main ()
17291{
17292dlopen ();
17293  ;
17294  return 0;
17295}
17296_ACEOF
17297rm -f conftest.$ac_objext conftest$ac_exeext
17298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299  (eval $ac_link) 2>conftest.er1
17300  ac_status=$?
17301  grep -v '^ *+' conftest.er1 >conftest.err
17302  rm -f conftest.er1
17303  cat conftest.err >&5
17304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305  (exit $ac_status); } &&
17306	 { ac_try='test -z "$ac_c_werror_flag"
17307			 || test ! -s conftest.err'
17308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309  (eval $ac_try) 2>&5
17310  ac_status=$?
17311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312  (exit $ac_status); }; } &&
17313	 { ac_try='test -s conftest$ac_exeext'
17314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315  (eval $ac_try) 2>&5
17316  ac_status=$?
17317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318  (exit $ac_status); }; }; then
17319  ac_cv_lib_dl_dlopen=yes
17320else
17321  echo "$as_me: failed program was:" >&5
17322sed 's/^/| /' conftest.$ac_ext >&5
17323
17324ac_cv_lib_dl_dlopen=no
17325fi
17326rm -f conftest.err conftest.$ac_objext \
17327      conftest$ac_exeext conftest.$ac_ext
17328LIBS=$ac_check_lib_save_LIBS
17329fi
17330echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17332if test $ac_cv_lib_dl_dlopen = yes; then
17333  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17334else
17335
17336    lt_cv_dlopen="dyld"
17337    lt_cv_dlopen_libs=
17338    lt_cv_dlopen_self=yes
17339
17340fi
17341
17342   ;;
17343
17344  *)
17345    echo "$as_me:$LINENO: checking for shl_load" >&5
17346echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17347if test "${ac_cv_func_shl_load+set}" = set; then
17348  echo $ECHO_N "(cached) $ECHO_C" >&6
17349else
17350  cat >conftest.$ac_ext <<_ACEOF
17351/* confdefs.h.  */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h.  */
17356/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17357   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17358#define shl_load innocuous_shl_load
17359
17360/* System header to define __stub macros and hopefully few prototypes,
17361    which can conflict with char shl_load (); below.
17362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17363    <limits.h> exists even on freestanding compilers.  */
17364
17365#ifdef __STDC__
17366# include <limits.h>
17367#else
17368# include <assert.h>
17369#endif
17370
17371#undef shl_load
17372
17373/* Override any gcc2 internal prototype to avoid an error.  */
17374#ifdef __cplusplus
17375extern "C"
17376{
17377#endif
17378/* We use char because int might match the return type of a gcc2
17379   builtin and then its argument prototype would still apply.  */
17380char shl_load ();
17381/* The GNU C library defines this for functions which it implements
17382    to always fail with ENOSYS.  Some functions are actually named
17383    something starting with __ and the normal name is an alias.  */
17384#if defined (__stub_shl_load) || defined (__stub___shl_load)
17385choke me
17386#else
17387char (*f) () = shl_load;
17388#endif
17389#ifdef __cplusplus
17390}
17391#endif
17392
17393int
17394main ()
17395{
17396return f != shl_load;
17397  ;
17398  return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext conftest$ac_exeext
17402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403  (eval $ac_link) 2>conftest.er1
17404  ac_status=$?
17405  grep -v '^ *+' conftest.er1 >conftest.err
17406  rm -f conftest.er1
17407  cat conftest.err >&5
17408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409  (exit $ac_status); } &&
17410	 { ac_try='test -z "$ac_c_werror_flag"
17411			 || test ! -s conftest.err'
17412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413  (eval $ac_try) 2>&5
17414  ac_status=$?
17415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416  (exit $ac_status); }; } &&
17417	 { ac_try='test -s conftest$ac_exeext'
17418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419  (eval $ac_try) 2>&5
17420  ac_status=$?
17421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422  (exit $ac_status); }; }; then
17423  ac_cv_func_shl_load=yes
17424else
17425  echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428ac_cv_func_shl_load=no
17429fi
17430rm -f conftest.err conftest.$ac_objext \
17431      conftest$ac_exeext conftest.$ac_ext
17432fi
17433echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17434echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17435if test $ac_cv_func_shl_load = yes; then
17436  lt_cv_dlopen="shl_load"
17437else
17438  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17439echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17440if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17441  echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443  ac_check_lib_save_LIBS=$LIBS
17444LIBS="-ldld  $LIBS"
17445cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h.  */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h.  */
17451
17452/* Override any gcc2 internal prototype to avoid an error.  */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456/* We use char because int might match the return type of a gcc2
17457   builtin and then its argument prototype would still apply.  */
17458char shl_load ();
17459int
17460main ()
17461{
17462shl_load ();
17463  ;
17464  return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext conftest$ac_exeext
17468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17469  (eval $ac_link) 2>conftest.er1
17470  ac_status=$?
17471  grep -v '^ *+' conftest.er1 >conftest.err
17472  rm -f conftest.er1
17473  cat conftest.err >&5
17474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475  (exit $ac_status); } &&
17476	 { ac_try='test -z "$ac_c_werror_flag"
17477			 || test ! -s conftest.err'
17478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479  (eval $ac_try) 2>&5
17480  ac_status=$?
17481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482  (exit $ac_status); }; } &&
17483	 { ac_try='test -s conftest$ac_exeext'
17484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485  (eval $ac_try) 2>&5
17486  ac_status=$?
17487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488  (exit $ac_status); }; }; then
17489  ac_cv_lib_dld_shl_load=yes
17490else
17491  echo "$as_me: failed program was:" >&5
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
17494ac_cv_lib_dld_shl_load=no
17495fi
17496rm -f conftest.err conftest.$ac_objext \
17497      conftest$ac_exeext conftest.$ac_ext
17498LIBS=$ac_check_lib_save_LIBS
17499fi
17500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17502if test $ac_cv_lib_dld_shl_load = yes; then
17503  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17504else
17505  echo "$as_me:$LINENO: checking for dlopen" >&5
17506echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17507if test "${ac_cv_func_dlopen+set}" = set; then
17508  echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510  cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h.  */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h.  */
17516/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17518#define dlopen innocuous_dlopen
17519
17520/* System header to define __stub macros and hopefully few prototypes,
17521    which can conflict with char dlopen (); below.
17522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523    <limits.h> exists even on freestanding compilers.  */
17524
17525#ifdef __STDC__
17526# include <limits.h>
17527#else
17528# include <assert.h>
17529#endif
17530
17531#undef dlopen
17532
17533/* Override any gcc2 internal prototype to avoid an error.  */
17534#ifdef __cplusplus
17535extern "C"
17536{
17537#endif
17538/* We use char because int might match the return type of a gcc2
17539   builtin and then its argument prototype would still apply.  */
17540char dlopen ();
17541/* The GNU C library defines this for functions which it implements
17542    to always fail with ENOSYS.  Some functions are actually named
17543    something starting with __ and the normal name is an alias.  */
17544#if defined (__stub_dlopen) || defined (__stub___dlopen)
17545choke me
17546#else
17547char (*f) () = dlopen;
17548#endif
17549#ifdef __cplusplus
17550}
17551#endif
17552
17553int
17554main ()
17555{
17556return f != dlopen;
17557  ;
17558  return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
17562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563  (eval $ac_link) 2>conftest.er1
17564  ac_status=$?
17565  grep -v '^ *+' conftest.er1 >conftest.err
17566  rm -f conftest.er1
17567  cat conftest.err >&5
17568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569  (exit $ac_status); } &&
17570	 { ac_try='test -z "$ac_c_werror_flag"
17571			 || test ! -s conftest.err'
17572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573  (eval $ac_try) 2>&5
17574  ac_status=$?
17575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576  (exit $ac_status); }; } &&
17577	 { ac_try='test -s conftest$ac_exeext'
17578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579  (eval $ac_try) 2>&5
17580  ac_status=$?
17581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582  (exit $ac_status); }; }; then
17583  ac_cv_func_dlopen=yes
17584else
17585  echo "$as_me: failed program was:" >&5
17586sed 's/^/| /' conftest.$ac_ext >&5
17587
17588ac_cv_func_dlopen=no
17589fi
17590rm -f conftest.err conftest.$ac_objext \
17591      conftest$ac_exeext conftest.$ac_ext
17592fi
17593echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17594echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17595if test $ac_cv_func_dlopen = yes; then
17596  lt_cv_dlopen="dlopen"
17597else
17598  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17599echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17600if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17601  echo $ECHO_N "(cached) $ECHO_C" >&6
17602else
17603  ac_check_lib_save_LIBS=$LIBS
17604LIBS="-ldl  $LIBS"
17605cat >conftest.$ac_ext <<_ACEOF
17606/* confdefs.h.  */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h.  */
17611
17612/* Override any gcc2 internal prototype to avoid an error.  */
17613#ifdef __cplusplus
17614extern "C"
17615#endif
17616/* We use char because int might match the return type of a gcc2
17617   builtin and then its argument prototype would still apply.  */
17618char dlopen ();
17619int
17620main ()
17621{
17622dlopen ();
17623  ;
17624  return 0;
17625}
17626_ACEOF
17627rm -f conftest.$ac_objext conftest$ac_exeext
17628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629  (eval $ac_link) 2>conftest.er1
17630  ac_status=$?
17631  grep -v '^ *+' conftest.er1 >conftest.err
17632  rm -f conftest.er1
17633  cat conftest.err >&5
17634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635  (exit $ac_status); } &&
17636	 { ac_try='test -z "$ac_c_werror_flag"
17637			 || test ! -s conftest.err'
17638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639  (eval $ac_try) 2>&5
17640  ac_status=$?
17641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642  (exit $ac_status); }; } &&
17643	 { ac_try='test -s conftest$ac_exeext'
17644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645  (eval $ac_try) 2>&5
17646  ac_status=$?
17647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648  (exit $ac_status); }; }; then
17649  ac_cv_lib_dl_dlopen=yes
17650else
17651  echo "$as_me: failed program was:" >&5
17652sed 's/^/| /' conftest.$ac_ext >&5
17653
17654ac_cv_lib_dl_dlopen=no
17655fi
17656rm -f conftest.err conftest.$ac_objext \
17657      conftest$ac_exeext conftest.$ac_ext
17658LIBS=$ac_check_lib_save_LIBS
17659fi
17660echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17662if test $ac_cv_lib_dl_dlopen = yes; then
17663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17664else
17665  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17666echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17667if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17668  echo $ECHO_N "(cached) $ECHO_C" >&6
17669else
17670  ac_check_lib_save_LIBS=$LIBS
17671LIBS="-lsvld  $LIBS"
17672cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h.  */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h.  */
17678
17679/* Override any gcc2 internal prototype to avoid an error.  */
17680#ifdef __cplusplus
17681extern "C"
17682#endif
17683/* We use char because int might match the return type of a gcc2
17684   builtin and then its argument prototype would still apply.  */
17685char dlopen ();
17686int
17687main ()
17688{
17689dlopen ();
17690  ;
17691  return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696  (eval $ac_link) 2>conftest.er1
17697  ac_status=$?
17698  grep -v '^ *+' conftest.er1 >conftest.err
17699  rm -f conftest.er1
17700  cat conftest.err >&5
17701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702  (exit $ac_status); } &&
17703	 { ac_try='test -z "$ac_c_werror_flag"
17704			 || test ! -s conftest.err'
17705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706  (eval $ac_try) 2>&5
17707  ac_status=$?
17708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709  (exit $ac_status); }; } &&
17710	 { ac_try='test -s conftest$ac_exeext'
17711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712  (eval $ac_try) 2>&5
17713  ac_status=$?
17714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715  (exit $ac_status); }; }; then
17716  ac_cv_lib_svld_dlopen=yes
17717else
17718  echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721ac_cv_lib_svld_dlopen=no
17722fi
17723rm -f conftest.err conftest.$ac_objext \
17724      conftest$ac_exeext conftest.$ac_ext
17725LIBS=$ac_check_lib_save_LIBS
17726fi
17727echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17728echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17729if test $ac_cv_lib_svld_dlopen = yes; then
17730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17731else
17732  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17733echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17734if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17735  echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737  ac_check_lib_save_LIBS=$LIBS
17738LIBS="-ldld  $LIBS"
17739cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h.  */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h.  */
17745
17746/* Override any gcc2 internal prototype to avoid an error.  */
17747#ifdef __cplusplus
17748extern "C"
17749#endif
17750/* We use char because int might match the return type of a gcc2
17751   builtin and then its argument prototype would still apply.  */
17752char dld_link ();
17753int
17754main ()
17755{
17756dld_link ();
17757  ;
17758  return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763  (eval $ac_link) 2>conftest.er1
17764  ac_status=$?
17765  grep -v '^ *+' conftest.er1 >conftest.err
17766  rm -f conftest.er1
17767  cat conftest.err >&5
17768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769  (exit $ac_status); } &&
17770	 { ac_try='test -z "$ac_c_werror_flag"
17771			 || test ! -s conftest.err'
17772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773  (eval $ac_try) 2>&5
17774  ac_status=$?
17775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776  (exit $ac_status); }; } &&
17777	 { ac_try='test -s conftest$ac_exeext'
17778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779  (eval $ac_try) 2>&5
17780  ac_status=$?
17781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782  (exit $ac_status); }; }; then
17783  ac_cv_lib_dld_dld_link=yes
17784else
17785  echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788ac_cv_lib_dld_dld_link=no
17789fi
17790rm -f conftest.err conftest.$ac_objext \
17791      conftest$ac_exeext conftest.$ac_ext
17792LIBS=$ac_check_lib_save_LIBS
17793fi
17794echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796if test $ac_cv_lib_dld_dld_link = yes; then
17797  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17798fi
17799
17800
17801fi
17802
17803
17804fi
17805
17806
17807fi
17808
17809
17810fi
17811
17812
17813fi
17814
17815    ;;
17816  esac
17817
17818  if test "x$lt_cv_dlopen" != xno; then
17819    enable_dlopen=yes
17820  else
17821    enable_dlopen=no
17822  fi
17823
17824  case $lt_cv_dlopen in
17825  dlopen)
17826    save_CPPFLAGS="$CPPFLAGS"
17827    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828
17829    save_LDFLAGS="$LDFLAGS"
17830    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831
17832    save_LIBS="$LIBS"
17833    LIBS="$lt_cv_dlopen_libs $LIBS"
17834
17835    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837if test "${lt_cv_dlopen_self+set}" = set; then
17838  echo $ECHO_N "(cached) $ECHO_C" >&6
17839else
17840  	  if test "$cross_compiling" = yes; then :
17841  lt_cv_dlopen_self=cross
17842else
17843  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844  lt_status=$lt_dlunknown
17845  cat > conftest.$ac_ext <<EOF
17846#line 17846 "configure"
17847#include "confdefs.h"
17848
17849#if HAVE_DLFCN_H
17850#include <dlfcn.h>
17851#endif
17852
17853#include <stdio.h>
17854
17855#ifdef RTLD_GLOBAL
17856#  define LT_DLGLOBAL		RTLD_GLOBAL
17857#else
17858#  ifdef DL_GLOBAL
17859#    define LT_DLGLOBAL		DL_GLOBAL
17860#  else
17861#    define LT_DLGLOBAL		0
17862#  endif
17863#endif
17864
17865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866   find out it does not work in some platform. */
17867#ifndef LT_DLLAZY_OR_NOW
17868#  ifdef RTLD_LAZY
17869#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17870#  else
17871#    ifdef DL_LAZY
17872#      define LT_DLLAZY_OR_NOW		DL_LAZY
17873#    else
17874#      ifdef RTLD_NOW
17875#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17876#      else
17877#        ifdef DL_NOW
17878#          define LT_DLLAZY_OR_NOW	DL_NOW
17879#        else
17880#          define LT_DLLAZY_OR_NOW	0
17881#        endif
17882#      endif
17883#    endif
17884#  endif
17885#endif
17886
17887#ifdef __cplusplus
17888extern "C" void exit (int);
17889#endif
17890
17891void fnord() { int i=42;}
17892int main ()
17893{
17894  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895  int status = $lt_dlunknown;
17896
17897  if (self)
17898    {
17899      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17900      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901      /* dlclose (self); */
17902    }
17903
17904    exit (status);
17905}
17906EOF
17907  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908  (eval $ac_link) 2>&5
17909  ac_status=$?
17910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912    (./conftest; exit; ) 2>/dev/null
17913    lt_status=$?
17914    case x$lt_status in
17915      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918    esac
17919  else :
17920    # compilation failed
17921    lt_cv_dlopen_self=no
17922  fi
17923fi
17924rm -fr conftest*
17925
17926
17927fi
17928echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930
17931    if test "x$lt_cv_dlopen_self" = xyes; then
17932      LDFLAGS="$LDFLAGS $link_static_flag"
17933      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935if test "${lt_cv_dlopen_self_static+set}" = set; then
17936  echo $ECHO_N "(cached) $ECHO_C" >&6
17937else
17938  	  if test "$cross_compiling" = yes; then :
17939  lt_cv_dlopen_self_static=cross
17940else
17941  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942  lt_status=$lt_dlunknown
17943  cat > conftest.$ac_ext <<EOF
17944#line 17944 "configure"
17945#include "confdefs.h"
17946
17947#if HAVE_DLFCN_H
17948#include <dlfcn.h>
17949#endif
17950
17951#include <stdio.h>
17952
17953#ifdef RTLD_GLOBAL
17954#  define LT_DLGLOBAL		RTLD_GLOBAL
17955#else
17956#  ifdef DL_GLOBAL
17957#    define LT_DLGLOBAL		DL_GLOBAL
17958#  else
17959#    define LT_DLGLOBAL		0
17960#  endif
17961#endif
17962
17963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964   find out it does not work in some platform. */
17965#ifndef LT_DLLAZY_OR_NOW
17966#  ifdef RTLD_LAZY
17967#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17968#  else
17969#    ifdef DL_LAZY
17970#      define LT_DLLAZY_OR_NOW		DL_LAZY
17971#    else
17972#      ifdef RTLD_NOW
17973#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17974#      else
17975#        ifdef DL_NOW
17976#          define LT_DLLAZY_OR_NOW	DL_NOW
17977#        else
17978#          define LT_DLLAZY_OR_NOW	0
17979#        endif
17980#      endif
17981#    endif
17982#  endif
17983#endif
17984
17985#ifdef __cplusplus
17986extern "C" void exit (int);
17987#endif
17988
17989void fnord() { int i=42;}
17990int main ()
17991{
17992  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993  int status = $lt_dlunknown;
17994
17995  if (self)
17996    {
17997      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17998      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999      /* dlclose (self); */
18000    }
18001
18002    exit (status);
18003}
18004EOF
18005  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006  (eval $ac_link) 2>&5
18007  ac_status=$?
18008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010    (./conftest; exit; ) 2>/dev/null
18011    lt_status=$?
18012    case x$lt_status in
18013      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016    esac
18017  else :
18018    # compilation failed
18019    lt_cv_dlopen_self_static=no
18020  fi
18021fi
18022rm -fr conftest*
18023
18024
18025fi
18026echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028    fi
18029
18030    CPPFLAGS="$save_CPPFLAGS"
18031    LDFLAGS="$save_LDFLAGS"
18032    LIBS="$save_LIBS"
18033    ;;
18034  esac
18035
18036  case $lt_cv_dlopen_self in
18037  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038  *) enable_dlopen_self=unknown ;;
18039  esac
18040
18041  case $lt_cv_dlopen_self_static in
18042  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043  *) enable_dlopen_self_static=unknown ;;
18044  esac
18045fi
18046
18047
18048# The else clause should only fire when bootstrapping the
18049# libtool distribution, otherwise you forgot to ship ltmain.sh
18050# with your package, and you will get complaints that there are
18051# no rules to generate ltmain.sh.
18052if test -f "$ltmain"; then
18053  # See if we are running on zsh, and set the options which allow our commands through
18054  # without removal of \ escapes.
18055  if test -n "${ZSH_VERSION+set}" ; then
18056    setopt NO_GLOB_SUBST
18057  fi
18058  # Now quote all the things that may contain metacharacters while being
18059  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18060  # variables and quote the copies for generation of the libtool script.
18061  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18062    SED SHELL STRIP \
18063    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065    deplibs_check_method reload_flag reload_cmds need_locks \
18066    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067    lt_cv_sys_global_symbol_to_c_name_address \
18068    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069    old_postinstall_cmds old_postuninstall_cmds \
18070    compiler_GCJ \
18071    CC_GCJ \
18072    LD_GCJ \
18073    lt_prog_compiler_wl_GCJ \
18074    lt_prog_compiler_pic_GCJ \
18075    lt_prog_compiler_static_GCJ \
18076    lt_prog_compiler_no_builtin_flag_GCJ \
18077    export_dynamic_flag_spec_GCJ \
18078    thread_safe_flag_spec_GCJ \
18079    whole_archive_flag_spec_GCJ \
18080    enable_shared_with_static_runtimes_GCJ \
18081    old_archive_cmds_GCJ \
18082    old_archive_from_new_cmds_GCJ \
18083    predep_objects_GCJ \
18084    postdep_objects_GCJ \
18085    predeps_GCJ \
18086    postdeps_GCJ \
18087    compiler_lib_search_path_GCJ \
18088    archive_cmds_GCJ \
18089    archive_expsym_cmds_GCJ \
18090    postinstall_cmds_GCJ \
18091    postuninstall_cmds_GCJ \
18092    old_archive_from_expsyms_cmds_GCJ \
18093    allow_undefined_flag_GCJ \
18094    no_undefined_flag_GCJ \
18095    export_symbols_cmds_GCJ \
18096    hardcode_libdir_flag_spec_GCJ \
18097    hardcode_libdir_flag_spec_ld_GCJ \
18098    hardcode_libdir_separator_GCJ \
18099    hardcode_automatic_GCJ \
18100    module_cmds_GCJ \
18101    module_expsym_cmds_GCJ \
18102    lt_cv_prog_compiler_c_o_GCJ \
18103    exclude_expsyms_GCJ \
18104    include_expsyms_GCJ; do
18105
18106    case $var in
18107    old_archive_cmds_GCJ | \
18108    old_archive_from_new_cmds_GCJ | \
18109    archive_cmds_GCJ | \
18110    archive_expsym_cmds_GCJ | \
18111    module_cmds_GCJ | \
18112    module_expsym_cmds_GCJ | \
18113    old_archive_from_expsyms_cmds_GCJ | \
18114    export_symbols_cmds_GCJ | \
18115    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116    postinstall_cmds | postuninstall_cmds | \
18117    old_postinstall_cmds | old_postuninstall_cmds | \
18118    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119      # Double-quote double-evaled strings.
18120      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18121      ;;
18122    *)
18123      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18124      ;;
18125    esac
18126  done
18127
18128  case $lt_echo in
18129  *'\$0 --fallback-echo"')
18130    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18131    ;;
18132  esac
18133
18134cfgfile="$ofile"
18135
18136  cat <<__EOF__ >> "$cfgfile"
18137# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18138
18139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140
18141# Shell to use when invoking shell scripts.
18142SHELL=$lt_SHELL
18143
18144# Whether or not to build shared libraries.
18145build_libtool_libs=$enable_shared
18146
18147# Whether or not to build static libraries.
18148build_old_libs=$enable_static
18149
18150# Whether or not to add -lc for building shared libraries.
18151build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18152
18153# Whether or not to disallow shared libs when runtime libs are static
18154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18155
18156# Whether or not to optimize for fast installation.
18157fast_install=$enable_fast_install
18158
18159# The host system.
18160host_alias=$host_alias
18161host=$host
18162
18163# An echo program that does not interpret backslashes.
18164echo=$lt_echo
18165
18166# The archiver.
18167AR=$lt_AR
18168AR_FLAGS=$lt_AR_FLAGS
18169
18170# A C compiler.
18171LTCC=$lt_LTCC
18172
18173# A language-specific compiler.
18174CC=$lt_compiler_GCJ
18175
18176# Is the compiler the GNU C compiler?
18177with_gcc=$GCC_GCJ
18178
18179# An ERE matcher.
18180EGREP=$lt_EGREP
18181
18182# The linker used to build libraries.
18183LD=$lt_LD_GCJ
18184
18185# Whether we need hard or soft links.
18186LN_S=$lt_LN_S
18187
18188# A BSD-compatible nm program.
18189NM=$lt_NM
18190
18191# A symbol stripping program
18192STRIP=$lt_STRIP
18193
18194# Used to examine libraries when file_magic_cmd begins "file"
18195MAGIC_CMD=$MAGIC_CMD
18196
18197# Used on cygwin: DLL creation program.
18198DLLTOOL="$DLLTOOL"
18199
18200# Used on cygwin: object dumper.
18201OBJDUMP="$OBJDUMP"
18202
18203# Used on cygwin: assembler.
18204AS="$AS"
18205
18206# The name of the directory that contains temporary libtool files.
18207objdir=$objdir
18208
18209# How to create reloadable object files.
18210reload_flag=$lt_reload_flag
18211reload_cmds=$lt_reload_cmds
18212
18213# How to pass a linker flag through the compiler.
18214wl=$lt_lt_prog_compiler_wl_GCJ
18215
18216# Object file suffix (normally "o").
18217objext="$ac_objext"
18218
18219# Old archive suffix (normally "a").
18220libext="$libext"
18221
18222# Shared library suffix (normally ".so").
18223shrext_cmds='$shrext_cmds'
18224
18225# Executable file suffix (normally "").
18226exeext="$exeext"
18227
18228# Additional compiler flags for building library objects.
18229pic_flag=$lt_lt_prog_compiler_pic_GCJ
18230pic_mode=$pic_mode
18231
18232# What is the maximum length of a command?
18233max_cmd_len=$lt_cv_sys_max_cmd_len
18234
18235# Does compiler simultaneously support -c and -o options?
18236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18237
18238# Must we lock files when doing compilation ?
18239need_locks=$lt_need_locks
18240
18241# Do we need the lib prefix for modules?
18242need_lib_prefix=$need_lib_prefix
18243
18244# Do we need a version for libraries?
18245need_version=$need_version
18246
18247# Whether dlopen is supported.
18248dlopen_support=$enable_dlopen
18249
18250# Whether dlopen of programs is supported.
18251dlopen_self=$enable_dlopen_self
18252
18253# Whether dlopen of statically linked programs is supported.
18254dlopen_self_static=$enable_dlopen_self_static
18255
18256# Compiler flag to prevent dynamic linking.
18257link_static_flag=$lt_lt_prog_compiler_static_GCJ
18258
18259# Compiler flag to turn off builtin functions.
18260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18261
18262# Compiler flag to allow reflexive dlopens.
18263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18264
18265# Compiler flag to generate shared objects directly from archives.
18266whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18267
18268# Compiler flag to generate thread-safe objects.
18269thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18270
18271# Library versioning type.
18272version_type=$version_type
18273
18274# Format of library name prefix.
18275libname_spec=$lt_libname_spec
18276
18277# List of archive names.  First name is the real one, the rest are links.
18278# The last name is the one that the linker finds with -lNAME.
18279library_names_spec=$lt_library_names_spec
18280
18281# The coded name of the library, if different from the real name.
18282soname_spec=$lt_soname_spec
18283
18284# Commands used to build and install an old-style archive.
18285RANLIB=$lt_RANLIB
18286old_archive_cmds=$lt_old_archive_cmds_GCJ
18287old_postinstall_cmds=$lt_old_postinstall_cmds
18288old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290# Create an old-style archive from a shared archive.
18291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18292
18293# Create a temporary old-style archive to link instead of a shared archive.
18294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18295
18296# Commands used to build and install a shared archive.
18297archive_cmds=$lt_archive_cmds_GCJ
18298archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18299postinstall_cmds=$lt_postinstall_cmds
18300postuninstall_cmds=$lt_postuninstall_cmds
18301
18302# Commands used to build a loadable module (assumed same as above if empty)
18303module_cmds=$lt_module_cmds_GCJ
18304module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18305
18306# Commands to strip libraries.
18307old_striplib=$lt_old_striplib
18308striplib=$lt_striplib
18309
18310# Dependencies to place before the objects being linked to create a
18311# shared library.
18312predep_objects=$lt_predep_objects_GCJ
18313
18314# Dependencies to place after the objects being linked to create a
18315# shared library.
18316postdep_objects=$lt_postdep_objects_GCJ
18317
18318# Dependencies to place before the objects being linked to create a
18319# shared library.
18320predeps=$lt_predeps_GCJ
18321
18322# Dependencies to place after the objects being linked to create a
18323# shared library.
18324postdeps=$lt_postdeps_GCJ
18325
18326# The library search path used internally by the compiler when linking
18327# a shared library.
18328compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18329
18330# Method to check whether dependent libraries are shared objects.
18331deplibs_check_method=$lt_deplibs_check_method
18332
18333# Command to use when deplibs_check_method == file_magic.
18334file_magic_cmd=$lt_file_magic_cmd
18335
18336# Flag that allows shared libraries with undefined symbols to be built.
18337allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18338
18339# Flag that forces no undefined symbols.
18340no_undefined_flag=$lt_no_undefined_flag_GCJ
18341
18342# Commands used to finish a libtool library installation in a directory.
18343finish_cmds=$lt_finish_cmds
18344
18345# Same as above, but a single script fragment to be evaled but not shown.
18346finish_eval=$lt_finish_eval
18347
18348# Take the output of nm and produce a listing of raw symbols and C names.
18349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18350
18351# Transform the output of nm in a proper C declaration
18352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18353
18354# Transform the output of nm in a C name address pair
18355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18356
18357# This is the shared library runtime path variable.
18358runpath_var=$runpath_var
18359
18360# This is the shared library path variable.
18361shlibpath_var=$shlibpath_var
18362
18363# Is shlibpath searched before the hard-coded library search path?
18364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
18366# How to hardcode a shared library path into an executable.
18367hardcode_action=$hardcode_action_GCJ
18368
18369# Whether we should hardcode library paths into libraries.
18370hardcode_into_libs=$hardcode_into_libs
18371
18372# Flag to hardcode \$libdir into a binary during linking.
18373# This must work even if \$libdir does not exist.
18374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18375
18376# If ld is used when linking, flag to hardcode \$libdir into
18377# a binary during linking. This must work even if \$libdir does
18378# not exist.
18379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18380
18381# Whether we need a single -rpath flag with a separated argument.
18382hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18383
18384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385# resulting binary.
18386hardcode_direct=$hardcode_direct_GCJ
18387
18388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389# resulting binary.
18390hardcode_minus_L=$hardcode_minus_L_GCJ
18391
18392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393# the resulting binary.
18394hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18395
18396# Set to yes if building a shared library automatically hardcodes DIR into the library
18397# and all subsequent libraries and executables linked against it.
18398hardcode_automatic=$hardcode_automatic_GCJ
18399
18400# Variables whose values should be saved in libtool wrapper scripts and
18401# restored at relink time.
18402variables_saved_for_relink="$variables_saved_for_relink"
18403
18404# Whether libtool must link a program against all its dependency libraries.
18405link_all_deplibs=$link_all_deplibs_GCJ
18406
18407# Compile-time system search path for libraries
18408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18409
18410# Run-time system search path for libraries
18411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18412
18413# Fix the shell variable \$srcfile for the compiler.
18414fix_srcfile_path="$fix_srcfile_path_GCJ"
18415
18416# Set to yes if exported symbols are required.
18417always_export_symbols=$always_export_symbols_GCJ
18418
18419# The commands to list exported symbols.
18420export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18421
18422# The commands to extract the exported symbol list from a shared archive.
18423extract_expsyms_cmds=$lt_extract_expsyms_cmds
18424
18425# Symbols that should not be listed in the preloaded symbols.
18426exclude_expsyms=$lt_exclude_expsyms_GCJ
18427
18428# Symbols that must always be exported.
18429include_expsyms=$lt_include_expsyms_GCJ
18430
18431# ### END LIBTOOL TAG CONFIG: $tagname
18432
18433__EOF__
18434
18435
18436else
18437  # If there is no Makefile yet, we rely on a make rule to execute
18438  # `config.status --recheck' to rerun these tests and create the
18439  # libtool script then.
18440  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441  if test -f "$ltmain_in"; then
18442    test -f Makefile && make "$ltmain"
18443  fi
18444fi
18445
18446
18447ac_ext=c
18448ac_cpp='$CPP $CPPFLAGS'
18449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453CC="$lt_save_CC"
18454
18455	else
18456	  tagname=""
18457	fi
18458	;;
18459
18460      RC)
18461	ac_ext=c
18462ac_cpp='$CPP $CPPFLAGS'
18463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466
18467
18468# Source file extension for RC test sources.
18469ac_ext=rc
18470
18471# Object file extension for compiled RC test sources.
18472objext=o
18473objext_RC=$objext
18474
18475# Code to be used in simple compile tests
18476lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18477
18478# Code to be used in simple link tests
18479lt_simple_link_test_code="$lt_simple_compile_test_code"
18480
18481# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18482
18483# If no C compiler was specified, use CC.
18484LTCC=${LTCC-"$CC"}
18485
18486# Allow CC to be a program name with arguments.
18487compiler=$CC
18488
18489
18490# Allow CC to be a program name with arguments.
18491lt_save_CC="$CC"
18492CC=${RC-"windres"}
18493compiler=$CC
18494compiler_RC=$CC
18495lt_cv_prog_compiler_c_o_RC=yes
18496
18497# The else clause should only fire when bootstrapping the
18498# libtool distribution, otherwise you forgot to ship ltmain.sh
18499# with your package, and you will get complaints that there are
18500# no rules to generate ltmain.sh.
18501if test -f "$ltmain"; then
18502  # See if we are running on zsh, and set the options which allow our commands through
18503  # without removal of \ escapes.
18504  if test -n "${ZSH_VERSION+set}" ; then
18505    setopt NO_GLOB_SUBST
18506  fi
18507  # Now quote all the things that may contain metacharacters while being
18508  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18509  # variables and quote the copies for generation of the libtool script.
18510  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18511    SED SHELL STRIP \
18512    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18513    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18514    deplibs_check_method reload_flag reload_cmds need_locks \
18515    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18516    lt_cv_sys_global_symbol_to_c_name_address \
18517    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18518    old_postinstall_cmds old_postuninstall_cmds \
18519    compiler_RC \
18520    CC_RC \
18521    LD_RC \
18522    lt_prog_compiler_wl_RC \
18523    lt_prog_compiler_pic_RC \
18524    lt_prog_compiler_static_RC \
18525    lt_prog_compiler_no_builtin_flag_RC \
18526    export_dynamic_flag_spec_RC \
18527    thread_safe_flag_spec_RC \
18528    whole_archive_flag_spec_RC \
18529    enable_shared_with_static_runtimes_RC \
18530    old_archive_cmds_RC \
18531    old_archive_from_new_cmds_RC \
18532    predep_objects_RC \
18533    postdep_objects_RC \
18534    predeps_RC \
18535    postdeps_RC \
18536    compiler_lib_search_path_RC \
18537    archive_cmds_RC \
18538    archive_expsym_cmds_RC \
18539    postinstall_cmds_RC \
18540    postuninstall_cmds_RC \
18541    old_archive_from_expsyms_cmds_RC \
18542    allow_undefined_flag_RC \
18543    no_undefined_flag_RC \
18544    export_symbols_cmds_RC \
18545    hardcode_libdir_flag_spec_RC \
18546    hardcode_libdir_flag_spec_ld_RC \
18547    hardcode_libdir_separator_RC \
18548    hardcode_automatic_RC \
18549    module_cmds_RC \
18550    module_expsym_cmds_RC \
18551    lt_cv_prog_compiler_c_o_RC \
18552    exclude_expsyms_RC \
18553    include_expsyms_RC; do
18554
18555    case $var in
18556    old_archive_cmds_RC | \
18557    old_archive_from_new_cmds_RC | \
18558    archive_cmds_RC | \
18559    archive_expsym_cmds_RC | \
18560    module_cmds_RC | \
18561    module_expsym_cmds_RC | \
18562    old_archive_from_expsyms_cmds_RC | \
18563    export_symbols_cmds_RC | \
18564    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18565    postinstall_cmds | postuninstall_cmds | \
18566    old_postinstall_cmds | old_postuninstall_cmds | \
18567    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18568      # Double-quote double-evaled strings.
18569      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18570      ;;
18571    *)
18572      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18573      ;;
18574    esac
18575  done
18576
18577  case $lt_echo in
18578  *'\$0 --fallback-echo"')
18579    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18580    ;;
18581  esac
18582
18583cfgfile="$ofile"
18584
18585  cat <<__EOF__ >> "$cfgfile"
18586# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18587
18588# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18589
18590# Shell to use when invoking shell scripts.
18591SHELL=$lt_SHELL
18592
18593# Whether or not to build shared libraries.
18594build_libtool_libs=$enable_shared
18595
18596# Whether or not to build static libraries.
18597build_old_libs=$enable_static
18598
18599# Whether or not to add -lc for building shared libraries.
18600build_libtool_need_lc=$archive_cmds_need_lc_RC
18601
18602# Whether or not to disallow shared libs when runtime libs are static
18603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18604
18605# Whether or not to optimize for fast installation.
18606fast_install=$enable_fast_install
18607
18608# The host system.
18609host_alias=$host_alias
18610host=$host
18611
18612# An echo program that does not interpret backslashes.
18613echo=$lt_echo
18614
18615# The archiver.
18616AR=$lt_AR
18617AR_FLAGS=$lt_AR_FLAGS
18618
18619# A C compiler.
18620LTCC=$lt_LTCC
18621
18622# A language-specific compiler.
18623CC=$lt_compiler_RC
18624
18625# Is the compiler the GNU C compiler?
18626with_gcc=$GCC_RC
18627
18628# An ERE matcher.
18629EGREP=$lt_EGREP
18630
18631# The linker used to build libraries.
18632LD=$lt_LD_RC
18633
18634# Whether we need hard or soft links.
18635LN_S=$lt_LN_S
18636
18637# A BSD-compatible nm program.
18638NM=$lt_NM
18639
18640# A symbol stripping program
18641STRIP=$lt_STRIP
18642
18643# Used to examine libraries when file_magic_cmd begins "file"
18644MAGIC_CMD=$MAGIC_CMD
18645
18646# Used on cygwin: DLL creation program.
18647DLLTOOL="$DLLTOOL"
18648
18649# Used on cygwin: object dumper.
18650OBJDUMP="$OBJDUMP"
18651
18652# Used on cygwin: assembler.
18653AS="$AS"
18654
18655# The name of the directory that contains temporary libtool files.
18656objdir=$objdir
18657
18658# How to create reloadable object files.
18659reload_flag=$lt_reload_flag
18660reload_cmds=$lt_reload_cmds
18661
18662# How to pass a linker flag through the compiler.
18663wl=$lt_lt_prog_compiler_wl_RC
18664
18665# Object file suffix (normally "o").
18666objext="$ac_objext"
18667
18668# Old archive suffix (normally "a").
18669libext="$libext"
18670
18671# Shared library suffix (normally ".so").
18672shrext_cmds='$shrext_cmds'
18673
18674# Executable file suffix (normally "").
18675exeext="$exeext"
18676
18677# Additional compiler flags for building library objects.
18678pic_flag=$lt_lt_prog_compiler_pic_RC
18679pic_mode=$pic_mode
18680
18681# What is the maximum length of a command?
18682max_cmd_len=$lt_cv_sys_max_cmd_len
18683
18684# Does compiler simultaneously support -c and -o options?
18685compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18686
18687# Must we lock files when doing compilation ?
18688need_locks=$lt_need_locks
18689
18690# Do we need the lib prefix for modules?
18691need_lib_prefix=$need_lib_prefix
18692
18693# Do we need a version for libraries?
18694need_version=$need_version
18695
18696# Whether dlopen is supported.
18697dlopen_support=$enable_dlopen
18698
18699# Whether dlopen of programs is supported.
18700dlopen_self=$enable_dlopen_self
18701
18702# Whether dlopen of statically linked programs is supported.
18703dlopen_self_static=$enable_dlopen_self_static
18704
18705# Compiler flag to prevent dynamic linking.
18706link_static_flag=$lt_lt_prog_compiler_static_RC
18707
18708# Compiler flag to turn off builtin functions.
18709no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18710
18711# Compiler flag to allow reflexive dlopens.
18712export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18713
18714# Compiler flag to generate shared objects directly from archives.
18715whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18716
18717# Compiler flag to generate thread-safe objects.
18718thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18719
18720# Library versioning type.
18721version_type=$version_type
18722
18723# Format of library name prefix.
18724libname_spec=$lt_libname_spec
18725
18726# List of archive names.  First name is the real one, the rest are links.
18727# The last name is the one that the linker finds with -lNAME.
18728library_names_spec=$lt_library_names_spec
18729
18730# The coded name of the library, if different from the real name.
18731soname_spec=$lt_soname_spec
18732
18733# Commands used to build and install an old-style archive.
18734RANLIB=$lt_RANLIB
18735old_archive_cmds=$lt_old_archive_cmds_RC
18736old_postinstall_cmds=$lt_old_postinstall_cmds
18737old_postuninstall_cmds=$lt_old_postuninstall_cmds
18738
18739# Create an old-style archive from a shared archive.
18740old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18741
18742# Create a temporary old-style archive to link instead of a shared archive.
18743old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18744
18745# Commands used to build and install a shared archive.
18746archive_cmds=$lt_archive_cmds_RC
18747archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18748postinstall_cmds=$lt_postinstall_cmds
18749postuninstall_cmds=$lt_postuninstall_cmds
18750
18751# Commands used to build a loadable module (assumed same as above if empty)
18752module_cmds=$lt_module_cmds_RC
18753module_expsym_cmds=$lt_module_expsym_cmds_RC
18754
18755# Commands to strip libraries.
18756old_striplib=$lt_old_striplib
18757striplib=$lt_striplib
18758
18759# Dependencies to place before the objects being linked to create a
18760# shared library.
18761predep_objects=$lt_predep_objects_RC
18762
18763# Dependencies to place after the objects being linked to create a
18764# shared library.
18765postdep_objects=$lt_postdep_objects_RC
18766
18767# Dependencies to place before the objects being linked to create a
18768# shared library.
18769predeps=$lt_predeps_RC
18770
18771# Dependencies to place after the objects being linked to create a
18772# shared library.
18773postdeps=$lt_postdeps_RC
18774
18775# The library search path used internally by the compiler when linking
18776# a shared library.
18777compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18778
18779# Method to check whether dependent libraries are shared objects.
18780deplibs_check_method=$lt_deplibs_check_method
18781
18782# Command to use when deplibs_check_method == file_magic.
18783file_magic_cmd=$lt_file_magic_cmd
18784
18785# Flag that allows shared libraries with undefined symbols to be built.
18786allow_undefined_flag=$lt_allow_undefined_flag_RC
18787
18788# Flag that forces no undefined symbols.
18789no_undefined_flag=$lt_no_undefined_flag_RC
18790
18791# Commands used to finish a libtool library installation in a directory.
18792finish_cmds=$lt_finish_cmds
18793
18794# Same as above, but a single script fragment to be evaled but not shown.
18795finish_eval=$lt_finish_eval
18796
18797# Take the output of nm and produce a listing of raw symbols and C names.
18798global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18799
18800# Transform the output of nm in a proper C declaration
18801global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18802
18803# Transform the output of nm in a C name address pair
18804global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18805
18806# This is the shared library runtime path variable.
18807runpath_var=$runpath_var
18808
18809# This is the shared library path variable.
18810shlibpath_var=$shlibpath_var
18811
18812# Is shlibpath searched before the hard-coded library search path?
18813shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18814
18815# How to hardcode a shared library path into an executable.
18816hardcode_action=$hardcode_action_RC
18817
18818# Whether we should hardcode library paths into libraries.
18819hardcode_into_libs=$hardcode_into_libs
18820
18821# Flag to hardcode \$libdir into a binary during linking.
18822# This must work even if \$libdir does not exist.
18823hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18824
18825# If ld is used when linking, flag to hardcode \$libdir into
18826# a binary during linking. This must work even if \$libdir does
18827# not exist.
18828hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18829
18830# Whether we need a single -rpath flag with a separated argument.
18831hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18832
18833# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18834# resulting binary.
18835hardcode_direct=$hardcode_direct_RC
18836
18837# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18838# resulting binary.
18839hardcode_minus_L=$hardcode_minus_L_RC
18840
18841# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18842# the resulting binary.
18843hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18844
18845# Set to yes if building a shared library automatically hardcodes DIR into the library
18846# and all subsequent libraries and executables linked against it.
18847hardcode_automatic=$hardcode_automatic_RC
18848
18849# Variables whose values should be saved in libtool wrapper scripts and
18850# restored at relink time.
18851variables_saved_for_relink="$variables_saved_for_relink"
18852
18853# Whether libtool must link a program against all its dependency libraries.
18854link_all_deplibs=$link_all_deplibs_RC
18855
18856# Compile-time system search path for libraries
18857sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18858
18859# Run-time system search path for libraries
18860sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18861
18862# Fix the shell variable \$srcfile for the compiler.
18863fix_srcfile_path="$fix_srcfile_path_RC"
18864
18865# Set to yes if exported symbols are required.
18866always_export_symbols=$always_export_symbols_RC
18867
18868# The commands to list exported symbols.
18869export_symbols_cmds=$lt_export_symbols_cmds_RC
18870
18871# The commands to extract the exported symbol list from a shared archive.
18872extract_expsyms_cmds=$lt_extract_expsyms_cmds
18873
18874# Symbols that should not be listed in the preloaded symbols.
18875exclude_expsyms=$lt_exclude_expsyms_RC
18876
18877# Symbols that must always be exported.
18878include_expsyms=$lt_include_expsyms_RC
18879
18880# ### END LIBTOOL TAG CONFIG: $tagname
18881
18882__EOF__
18883
18884
18885else
18886  # If there is no Makefile yet, we rely on a make rule to execute
18887  # `config.status --recheck' to rerun these tests and create the
18888  # libtool script then.
18889  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18890  if test -f "$ltmain_in"; then
18891    test -f Makefile && make "$ltmain"
18892  fi
18893fi
18894
18895
18896ac_ext=c
18897ac_cpp='$CPP $CPPFLAGS'
18898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900ac_compiler_gnu=$ac_cv_c_compiler_gnu
18901
18902CC="$lt_save_CC"
18903
18904	;;
18905
18906      *)
18907	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18908echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18909   { (exit 1); exit 1; }; }
18910	;;
18911      esac
18912
18913      # Append the new tag name to the list of available tags.
18914      if test -n "$tagname" ; then
18915      available_tags="$available_tags $tagname"
18916    fi
18917    fi
18918  done
18919  IFS="$lt_save_ifs"
18920
18921  # Now substitute the updated list of available tags.
18922  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18923    mv "${ofile}T" "$ofile"
18924    chmod +x "$ofile"
18925  else
18926    rm -f "${ofile}T"
18927    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18928echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18929   { (exit 1); exit 1; }; }
18930  fi
18931fi
18932
18933
18934
18935# This can be used to rebuild libtool when needed
18936LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18937
18938# Always use our own libtool.
18939LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18940
18941# Prevent multiple expansion
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962# Extract the first word of "tar", so it can be a program name with args.
18963set dummy tar; ac_word=$2
18964echo "$as_me:$LINENO: checking for $ac_word" >&5
18965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18966if test "${ac_cv_path_TAR+set}" = set; then
18967  echo $ECHO_N "(cached) $ECHO_C" >&6
18968else
18969  case $TAR in
18970  [\\/]* | ?:[\\/]*)
18971  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18972  ;;
18973  *)
18974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975for as_dir in $PATH
18976do
18977  IFS=$as_save_IFS
18978  test -z "$as_dir" && as_dir=.
18979  for ac_exec_ext in '' $ac_executable_extensions; do
18980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18983    break 2
18984  fi
18985done
18986done
18987
18988  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18989  ;;
18990esac
18991fi
18992TAR=$ac_cv_path_TAR
18993
18994if test -n "$TAR"; then
18995  echo "$as_me:$LINENO: result: $TAR" >&5
18996echo "${ECHO_T}$TAR" >&6
18997else
18998  echo "$as_me:$LINENO: result: no" >&5
18999echo "${ECHO_T}no" >&6
19000fi
19001
19002
19003# Extract the first word of "dot", so it can be a program name with args.
19004set dummy dot; ac_word=$2
19005echo "$as_me:$LINENO: checking for $ac_word" >&5
19006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19007if test "${ac_cv_path_DOT+set}" = set; then
19008  echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010  case $DOT in
19011  [\\/]* | ?:[\\/]*)
19012  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19013  ;;
19014  *)
19015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19016for as_dir in $PATH
19017do
19018  IFS=$as_save_IFS
19019  test -z "$as_dir" && as_dir=.
19020  for ac_exec_ext in '' $ac_executable_extensions; do
19021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19022    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19024    break 2
19025  fi
19026done
19027done
19028
19029  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
19030  ;;
19031esac
19032fi
19033DOT=$ac_cv_path_DOT
19034
19035if test -n "$DOT"; then
19036  echo "$as_me:$LINENO: result: $DOT" >&5
19037echo "${ECHO_T}$DOT" >&6
19038else
19039  echo "$as_me:$LINENO: result: no" >&5
19040echo "${ECHO_T}no" >&6
19041fi
19042
19043# Extract the first word of "etags", so it can be a program name with args.
19044set dummy etags; ac_word=$2
19045echo "$as_me:$LINENO: checking for $ac_word" >&5
19046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19047if test "${ac_cv_path_ETAGS+set}" = set; then
19048  echo $ECHO_N "(cached) $ECHO_C" >&6
19049else
19050  case $ETAGS in
19051  [\\/]* | ?:[\\/]*)
19052  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19053  ;;
19054  *)
19055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19056for as_dir in $PATH
19057do
19058  IFS=$as_save_IFS
19059  test -z "$as_dir" && as_dir=.
19060  for ac_exec_ext in '' $ac_executable_extensions; do
19061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19062    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19064    break 2
19065  fi
19066done
19067done
19068
19069  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19070  ;;
19071esac
19072fi
19073ETAGS=$ac_cv_path_ETAGS
19074
19075if test -n "$ETAGS"; then
19076  echo "$as_me:$LINENO: result: $ETAGS" >&5
19077echo "${ECHO_T}$ETAGS" >&6
19078else
19079  echo "$as_me:$LINENO: result: no" >&5
19080echo "${ECHO_T}no" >&6
19081fi
19082
19083etags_version=`$ETAGS --version 2>&1`
19084case "$etags_version" in
19085	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19086	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19087	*) ETAGSFLAGS="" ;;
19088esac
19089ETAGSFLAGS=$ETAGSFLAGS
19090
19091# Extract the first word of "python", so it can be a program name with args.
19092set dummy python; ac_word=$2
19093echo "$as_me:$LINENO: checking for $ac_word" >&5
19094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19095if test "${ac_cv_path_PYTHON+set}" = set; then
19096  echo $ECHO_N "(cached) $ECHO_C" >&6
19097else
19098  case $PYTHON in
19099  [\\/]* | ?:[\\/]*)
19100  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19101  ;;
19102  *)
19103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19104for as_dir in $PATH
19105do
19106  IFS=$as_save_IFS
19107  test -z "$as_dir" && as_dir=.
19108  for ac_exec_ext in '' $ac_executable_extensions; do
19109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19110    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19112    break 2
19113  fi
19114done
19115done
19116
19117  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19118  ;;
19119esac
19120fi
19121PYTHON=$ac_cv_path_PYTHON
19122
19123if test -n "$PYTHON"; then
19124  echo "$as_me:$LINENO: result: $PYTHON" >&5
19125echo "${ECHO_T}$PYTHON" >&6
19126else
19127  echo "$as_me:$LINENO: result: no" >&5
19128echo "${ECHO_T}no" >&6
19129fi
19130
19131if test "$PYTHON" = "false" ; then
19132	{ echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19133echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19134fi
19135# Extract the first word of "qmtest", so it can be a program name with args.
19136set dummy qmtest; ac_word=$2
19137echo "$as_me:$LINENO: checking for $ac_word" >&5
19138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19139if test "${ac_cv_path_QMTEST+set}" = set; then
19140  echo $ECHO_N "(cached) $ECHO_C" >&6
19141else
19142  case $QMTEST in
19143  [\\/]* | ?:[\\/]*)
19144  ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19145  ;;
19146  *)
19147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19148for as_dir in $PATH
19149do
19150  IFS=$as_save_IFS
19151  test -z "$as_dir" && as_dir=.
19152  for ac_exec_ext in '' $ac_executable_extensions; do
19153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19154    ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19156    break 2
19157  fi
19158done
19159done
19160
19161  test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19162  ;;
19163esac
19164fi
19165QMTEST=$ac_cv_path_QMTEST
19166
19167if test -n "$QMTEST"; then
19168  echo "$as_me:$LINENO: result: $QMTEST" >&5
19169echo "${ECHO_T}$QMTEST" >&6
19170else
19171  echo "$as_me:$LINENO: result: no" >&5
19172echo "${ECHO_T}no" >&6
19173fi
19174
19175if test "$QMTEST" = "false" ; then
19176	{ echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19177echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19178fi
19179# Extract the first word of "runtest", so it can be a program name with args.
19180set dummy runtest; ac_word=$2
19181echo "$as_me:$LINENO: checking for $ac_word" >&5
19182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19183if test "${ac_cv_path_RUNTEST+set}" = set; then
19184  echo $ECHO_N "(cached) $ECHO_C" >&6
19185else
19186  case $RUNTEST in
19187  [\\/]* | ?:[\\/]*)
19188  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
19189  ;;
19190  *)
19191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19192for as_dir in $PATH
19193do
19194  IFS=$as_save_IFS
19195  test -z "$as_dir" && as_dir=.
19196  for ac_exec_ext in '' $ac_executable_extensions; do
19197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19198    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
19199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19200    break 2
19201  fi
19202done
19203done
19204
19205  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
19206  ;;
19207esac
19208fi
19209RUNTEST=$ac_cv_path_RUNTEST
19210
19211if test -n "$RUNTEST"; then
19212  echo "$as_me:$LINENO: result: $RUNTEST" >&5
19213echo "${ECHO_T}$RUNTEST" >&6
19214else
19215  echo "$as_me:$LINENO: result: no" >&5
19216echo "${ECHO_T}no" >&6
19217fi
19218
19219if test "$RUNTEST" = "false" ; then
19220  { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
19221echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
19222fi
19223
19224pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19225pymajor=`echo $pyversion | cut -d. -f1`
19226pyminor=`echo $pyversion | cut -d. -f2`
19227
19228if test "$pymajor" -ge "2"
19229then
19230	if test "$pymajor" -eq "2"
19231	then
19232		if test "$pyminor" -lt "2"
19233		then
19234			{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19235echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19236		fi
19237	fi
19238else
19239	{ echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19240echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19241fi
19242
19243
19244echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19245echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19246if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19247  echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249  ac_check_lib_save_LIBS=$LIBS
19250LIBS="-lelf  $LIBS"
19251cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h.  */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h.  */
19257
19258/* Override any gcc2 internal prototype to avoid an error.  */
19259#ifdef __cplusplus
19260extern "C"
19261#endif
19262/* We use char because int might match the return type of a gcc2
19263   builtin and then its argument prototype would still apply.  */
19264char elf_begin ();
19265int
19266main ()
19267{
19268elf_begin ();
19269  ;
19270  return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext conftest$ac_exeext
19274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19275  (eval $ac_link) 2>conftest.er1
19276  ac_status=$?
19277  grep -v '^ *+' conftest.er1 >conftest.err
19278  rm -f conftest.er1
19279  cat conftest.err >&5
19280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281  (exit $ac_status); } &&
19282	 { ac_try='test -z "$ac_c_werror_flag"
19283			 || test ! -s conftest.err'
19284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285  (eval $ac_try) 2>&5
19286  ac_status=$?
19287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288  (exit $ac_status); }; } &&
19289	 { ac_try='test -s conftest$ac_exeext'
19290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291  (eval $ac_try) 2>&5
19292  ac_status=$?
19293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294  (exit $ac_status); }; }; then
19295  ac_cv_lib_elf_elf_begin=yes
19296else
19297  echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300ac_cv_lib_elf_elf_begin=no
19301fi
19302rm -f conftest.err conftest.$ac_objext \
19303      conftest$ac_exeext conftest.$ac_ext
19304LIBS=$ac_check_lib_save_LIBS
19305fi
19306echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19307echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19308if test $ac_cv_lib_elf_elf_begin = yes; then
19309  cat >>confdefs.h <<_ACEOF
19310#define HAVE_LIBELF 1
19311_ACEOF
19312
19313  LIBS="-lelf $LIBS"
19314
19315fi
19316
19317
19318echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19319echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19320if test "${ac_cv_lib_z_gzopen+set}" = set; then
19321  echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323  ac_check_lib_save_LIBS=$LIBS
19324LIBS="-lz  $LIBS"
19325cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h.  */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h.  */
19331
19332/* Override any gcc2 internal prototype to avoid an error.  */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336/* We use char because int might match the return type of a gcc2
19337   builtin and then its argument prototype would still apply.  */
19338char gzopen ();
19339int
19340main ()
19341{
19342gzopen ();
19343  ;
19344  return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349  (eval $ac_link) 2>conftest.er1
19350  ac_status=$?
19351  grep -v '^ *+' conftest.er1 >conftest.err
19352  rm -f conftest.er1
19353  cat conftest.err >&5
19354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355  (exit $ac_status); } &&
19356	 { ac_try='test -z "$ac_c_werror_flag"
19357			 || test ! -s conftest.err'
19358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359  (eval $ac_try) 2>&5
19360  ac_status=$?
19361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362  (exit $ac_status); }; } &&
19363	 { ac_try='test -s conftest$ac_exeext'
19364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365  (eval $ac_try) 2>&5
19366  ac_status=$?
19367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368  (exit $ac_status); }; }; then
19369  ac_cv_lib_z_gzopen=yes
19370else
19371  echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374ac_cv_lib_z_gzopen=no
19375fi
19376rm -f conftest.err conftest.$ac_objext \
19377      conftest$ac_exeext conftest.$ac_ext
19378LIBS=$ac_check_lib_save_LIBS
19379fi
19380echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19381echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19382if test $ac_cv_lib_z_gzopen = yes; then
19383  zlib_found=1
19384else
19385  zlib_found=0
19386fi
19387
19388if test $zlib_found -eq 1; then
19389
19390cat >>confdefs.h <<\_ACEOF
19391#define HAVE_ZLIB 1
19392_ACEOF
19393
19394  HAVE_ZLIB=1
19395
19396else
19397  HAVE_ZLIB=0
19398
19399fi
19400
19401echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19402echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19403if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19404  echo $ECHO_N "(cached) $ECHO_C" >&6
19405else
19406  ac_check_lib_save_LIBS=$LIBS
19407LIBS="-lbz2  $LIBS"
19408cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h.  */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h.  */
19414
19415/* Override any gcc2 internal prototype to avoid an error.  */
19416#ifdef __cplusplus
19417extern "C"
19418#endif
19419/* We use char because int might match the return type of a gcc2
19420   builtin and then its argument prototype would still apply.  */
19421char BZ2_bzCompressInit ();
19422int
19423main ()
19424{
19425BZ2_bzCompressInit ();
19426  ;
19427  return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext conftest$ac_exeext
19431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432  (eval $ac_link) 2>conftest.er1
19433  ac_status=$?
19434  grep -v '^ *+' conftest.er1 >conftest.err
19435  rm -f conftest.er1
19436  cat conftest.err >&5
19437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438  (exit $ac_status); } &&
19439	 { ac_try='test -z "$ac_c_werror_flag"
19440			 || test ! -s conftest.err'
19441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442  (eval $ac_try) 2>&5
19443  ac_status=$?
19444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445  (exit $ac_status); }; } &&
19446	 { ac_try='test -s conftest$ac_exeext'
19447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448  (eval $ac_try) 2>&5
19449  ac_status=$?
19450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451  (exit $ac_status); }; }; then
19452  ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19453else
19454  echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
19456
19457ac_cv_lib_bz2_BZ2_bzCompressInit=no
19458fi
19459rm -f conftest.err conftest.$ac_objext \
19460      conftest$ac_exeext conftest.$ac_ext
19461LIBS=$ac_check_lib_save_LIBS
19462fi
19463echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19464echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19465if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19466  bzip2_found=1
19467else
19468  bzip2_found=0
19469fi
19470
19471if test $bzip2_found -eq 1 ; then
19472
19473cat >>confdefs.h <<\_ACEOF
19474#define HAVE_BZIP2 1
19475_ACEOF
19476
19477  HAVE_BZIP2=1
19478
19479else
19480  HAVE_BZIP2=0
19481
19482fi
19483
19484echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
19485echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
19486if test "${ac_cv_search_lt_dlopen+set}" = set; then
19487  echo $ECHO_N "(cached) $ECHO_C" >&6
19488else
19489  ac_func_search_save_LIBS=$LIBS
19490ac_cv_search_lt_dlopen=no
19491cat >conftest.$ac_ext <<_ACEOF
19492/* confdefs.h.  */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h.  */
19497
19498/* Override any gcc2 internal prototype to avoid an error.  */
19499#ifdef __cplusplus
19500extern "C"
19501#endif
19502/* We use char because int might match the return type of a gcc2
19503   builtin and then its argument prototype would still apply.  */
19504char lt_dlopen ();
19505int
19506main ()
19507{
19508lt_dlopen ();
19509  ;
19510  return 0;
19511}
19512_ACEOF
19513rm -f conftest.$ac_objext conftest$ac_exeext
19514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19515  (eval $ac_link) 2>conftest.er1
19516  ac_status=$?
19517  grep -v '^ *+' conftest.er1 >conftest.err
19518  rm -f conftest.er1
19519  cat conftest.err >&5
19520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521  (exit $ac_status); } &&
19522	 { ac_try='test -z "$ac_c_werror_flag"
19523			 || test ! -s conftest.err'
19524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525  (eval $ac_try) 2>&5
19526  ac_status=$?
19527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528  (exit $ac_status); }; } &&
19529	 { ac_try='test -s conftest$ac_exeext'
19530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531  (eval $ac_try) 2>&5
19532  ac_status=$?
19533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534  (exit $ac_status); }; }; then
19535  ac_cv_search_lt_dlopen="none required"
19536else
19537  echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540fi
19541rm -f conftest.err conftest.$ac_objext \
19542      conftest$ac_exeext conftest.$ac_ext
19543if test "$ac_cv_search_lt_dlopen" = no; then
19544  for ac_lib in ltdl; do
19545    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19546    cat >conftest.$ac_ext <<_ACEOF
19547/* confdefs.h.  */
19548_ACEOF
19549cat confdefs.h >>conftest.$ac_ext
19550cat >>conftest.$ac_ext <<_ACEOF
19551/* end confdefs.h.  */
19552
19553/* Override any gcc2 internal prototype to avoid an error.  */
19554#ifdef __cplusplus
19555extern "C"
19556#endif
19557/* We use char because int might match the return type of a gcc2
19558   builtin and then its argument prototype would still apply.  */
19559char lt_dlopen ();
19560int
19561main ()
19562{
19563lt_dlopen ();
19564  ;
19565  return 0;
19566}
19567_ACEOF
19568rm -f conftest.$ac_objext conftest$ac_exeext
19569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570  (eval $ac_link) 2>conftest.er1
19571  ac_status=$?
19572  grep -v '^ *+' conftest.er1 >conftest.err
19573  rm -f conftest.er1
19574  cat conftest.err >&5
19575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576  (exit $ac_status); } &&
19577	 { ac_try='test -z "$ac_c_werror_flag"
19578			 || test ! -s conftest.err'
19579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580  (eval $ac_try) 2>&5
19581  ac_status=$?
19582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583  (exit $ac_status); }; } &&
19584	 { ac_try='test -s conftest$ac_exeext'
19585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586  (eval $ac_try) 2>&5
19587  ac_status=$?
19588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589  (exit $ac_status); }; }; then
19590  ac_cv_search_lt_dlopen="-l$ac_lib"
19591break
19592else
19593  echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596fi
19597rm -f conftest.err conftest.$ac_objext \
19598      conftest$ac_exeext conftest.$ac_ext
19599  done
19600fi
19601LIBS=$ac_func_search_save_LIBS
19602fi
19603echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
19604echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
19605if test "$ac_cv_search_lt_dlopen" != no; then
19606  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
19607
19608cat >>confdefs.h <<\_ACEOF
19609#define HAVE_LT_DLOPEN 1
19610_ACEOF
19611
19612else
19613  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
19614                           not be available" >&5
19615echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
19616                           not be available" >&2;}
19617fi
19618
19619
19620echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19621echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19622if test "${ac_cv_search_dlopen+set}" = set; then
19623  echo $ECHO_N "(cached) $ECHO_C" >&6
19624else
19625  ac_func_search_save_LIBS=$LIBS
19626ac_cv_search_dlopen=no
19627cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h.  */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
19632/* end confdefs.h.  */
19633
19634/* Override any gcc2 internal prototype to avoid an error.  */
19635#ifdef __cplusplus
19636extern "C"
19637#endif
19638/* We use char because int might match the return type of a gcc2
19639   builtin and then its argument prototype would still apply.  */
19640char dlopen ();
19641int
19642main ()
19643{
19644dlopen ();
19645  ;
19646  return 0;
19647}
19648_ACEOF
19649rm -f conftest.$ac_objext conftest$ac_exeext
19650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19651  (eval $ac_link) 2>conftest.er1
19652  ac_status=$?
19653  grep -v '^ *+' conftest.er1 >conftest.err
19654  rm -f conftest.er1
19655  cat conftest.err >&5
19656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657  (exit $ac_status); } &&
19658	 { ac_try='test -z "$ac_c_werror_flag"
19659			 || test ! -s conftest.err'
19660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661  (eval $ac_try) 2>&5
19662  ac_status=$?
19663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664  (exit $ac_status); }; } &&
19665	 { ac_try='test -s conftest$ac_exeext'
19666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667  (eval $ac_try) 2>&5
19668  ac_status=$?
19669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670  (exit $ac_status); }; }; then
19671  ac_cv_search_dlopen="none required"
19672else
19673  echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676fi
19677rm -f conftest.err conftest.$ac_objext \
19678      conftest$ac_exeext conftest.$ac_ext
19679if test "$ac_cv_search_dlopen" = no; then
19680  for ac_lib in dl; do
19681    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19682    cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h.  */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h.  */
19688
19689/* Override any gcc2 internal prototype to avoid an error.  */
19690#ifdef __cplusplus
19691extern "C"
19692#endif
19693/* We use char because int might match the return type of a gcc2
19694   builtin and then its argument prototype would still apply.  */
19695char dlopen ();
19696int
19697main ()
19698{
19699dlopen ();
19700  ;
19701  return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext conftest$ac_exeext
19705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706  (eval $ac_link) 2>conftest.er1
19707  ac_status=$?
19708  grep -v '^ *+' conftest.er1 >conftest.err
19709  rm -f conftest.er1
19710  cat conftest.err >&5
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); } &&
19713	 { ac_try='test -z "$ac_c_werror_flag"
19714			 || test ! -s conftest.err'
19715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716  (eval $ac_try) 2>&5
19717  ac_status=$?
19718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719  (exit $ac_status); }; } &&
19720	 { ac_try='test -s conftest$ac_exeext'
19721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722  (eval $ac_try) 2>&5
19723  ac_status=$?
19724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725  (exit $ac_status); }; }; then
19726  ac_cv_search_dlopen="-l$ac_lib"
19727break
19728else
19729  echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732fi
19733rm -f conftest.err conftest.$ac_objext \
19734      conftest$ac_exeext conftest.$ac_ext
19735  done
19736fi
19737LIBS=$ac_func_search_save_LIBS
19738fi
19739echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19740echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19741if test "$ac_cv_search_dlopen" != no; then
19742  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19743
19744cat >>confdefs.h <<\_ACEOF
19745#define HAVE_DLOPEN 1
19746_ACEOF
19747
19748else
19749  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19750echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19751fi
19752
19753
19754echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19755echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19756if test "${ac_cv_search_mallinfo+set}" = set; then
19757  echo $ECHO_N "(cached) $ECHO_C" >&6
19758else
19759  ac_func_search_save_LIBS=$LIBS
19760ac_cv_search_mallinfo=no
19761cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h.  */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h.  */
19767
19768/* Override any gcc2 internal prototype to avoid an error.  */
19769#ifdef __cplusplus
19770extern "C"
19771#endif
19772/* We use char because int might match the return type of a gcc2
19773   builtin and then its argument prototype would still apply.  */
19774char mallinfo ();
19775int
19776main ()
19777{
19778mallinfo ();
19779  ;
19780  return 0;
19781}
19782_ACEOF
19783rm -f conftest.$ac_objext conftest$ac_exeext
19784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19785  (eval $ac_link) 2>conftest.er1
19786  ac_status=$?
19787  grep -v '^ *+' conftest.er1 >conftest.err
19788  rm -f conftest.er1
19789  cat conftest.err >&5
19790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791  (exit $ac_status); } &&
19792	 { ac_try='test -z "$ac_c_werror_flag"
19793			 || test ! -s conftest.err'
19794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795  (eval $ac_try) 2>&5
19796  ac_status=$?
19797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798  (exit $ac_status); }; } &&
19799	 { ac_try='test -s conftest$ac_exeext'
19800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801  (eval $ac_try) 2>&5
19802  ac_status=$?
19803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804  (exit $ac_status); }; }; then
19805  ac_cv_search_mallinfo="none required"
19806else
19807  echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810fi
19811rm -f conftest.err conftest.$ac_objext \
19812      conftest$ac_exeext conftest.$ac_ext
19813if test "$ac_cv_search_mallinfo" = no; then
19814  for ac_lib in malloc; do
19815    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19816    cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h.  */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h.  */
19822
19823/* Override any gcc2 internal prototype to avoid an error.  */
19824#ifdef __cplusplus
19825extern "C"
19826#endif
19827/* We use char because int might match the return type of a gcc2
19828   builtin and then its argument prototype would still apply.  */
19829char mallinfo ();
19830int
19831main ()
19832{
19833mallinfo ();
19834  ;
19835  return 0;
19836}
19837_ACEOF
19838rm -f conftest.$ac_objext conftest$ac_exeext
19839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840  (eval $ac_link) 2>conftest.er1
19841  ac_status=$?
19842  grep -v '^ *+' conftest.er1 >conftest.err
19843  rm -f conftest.er1
19844  cat conftest.err >&5
19845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846  (exit $ac_status); } &&
19847	 { ac_try='test -z "$ac_c_werror_flag"
19848			 || test ! -s conftest.err'
19849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850  (eval $ac_try) 2>&5
19851  ac_status=$?
19852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853  (exit $ac_status); }; } &&
19854	 { ac_try='test -s conftest$ac_exeext'
19855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856  (eval $ac_try) 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); }; }; then
19860  ac_cv_search_mallinfo="-l$ac_lib"
19861break
19862else
19863  echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
19866fi
19867rm -f conftest.err conftest.$ac_objext \
19868      conftest$ac_exeext conftest.$ac_ext
19869  done
19870fi
19871LIBS=$ac_func_search_save_LIBS
19872fi
19873echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19874echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19875if test "$ac_cv_search_mallinfo" != no; then
19876  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19877
19878cat >>confdefs.h <<\_ACEOF
19879#define HAVE_MALLINFO 1
19880_ACEOF
19881
19882fi
19883
19884
19885echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19886echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19887if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19888  echo $ECHO_N "(cached) $ECHO_C" >&6
19889else
19890  ac_func_search_save_LIBS=$LIBS
19891ac_cv_search_pthread_mutex_lock=no
19892cat >conftest.$ac_ext <<_ACEOF
19893/* confdefs.h.  */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
19897/* end confdefs.h.  */
19898
19899/* Override any gcc2 internal prototype to avoid an error.  */
19900#ifdef __cplusplus
19901extern "C"
19902#endif
19903/* We use char because int might match the return type of a gcc2
19904   builtin and then its argument prototype would still apply.  */
19905char pthread_mutex_lock ();
19906int
19907main ()
19908{
19909pthread_mutex_lock ();
19910  ;
19911  return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext conftest$ac_exeext
19915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19916  (eval $ac_link) 2>conftest.er1
19917  ac_status=$?
19918  grep -v '^ *+' conftest.er1 >conftest.err
19919  rm -f conftest.er1
19920  cat conftest.err >&5
19921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922  (exit $ac_status); } &&
19923	 { ac_try='test -z "$ac_c_werror_flag"
19924			 || test ! -s conftest.err'
19925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926  (eval $ac_try) 2>&5
19927  ac_status=$?
19928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929  (exit $ac_status); }; } &&
19930	 { ac_try='test -s conftest$ac_exeext'
19931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932  (eval $ac_try) 2>&5
19933  ac_status=$?
19934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935  (exit $ac_status); }; }; then
19936  ac_cv_search_pthread_mutex_lock="none required"
19937else
19938  echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941fi
19942rm -f conftest.err conftest.$ac_objext \
19943      conftest$ac_exeext conftest.$ac_ext
19944if test "$ac_cv_search_pthread_mutex_lock" = no; then
19945  for ac_lib in pthread; do
19946    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19947    cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h.  */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h.  */
19953
19954/* Override any gcc2 internal prototype to avoid an error.  */
19955#ifdef __cplusplus
19956extern "C"
19957#endif
19958/* We use char because int might match the return type of a gcc2
19959   builtin and then its argument prototype would still apply.  */
19960char pthread_mutex_lock ();
19961int
19962main ()
19963{
19964pthread_mutex_lock ();
19965  ;
19966  return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext conftest$ac_exeext
19970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19971  (eval $ac_link) 2>conftest.er1
19972  ac_status=$?
19973  grep -v '^ *+' conftest.er1 >conftest.err
19974  rm -f conftest.er1
19975  cat conftest.err >&5
19976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977  (exit $ac_status); } &&
19978	 { ac_try='test -z "$ac_c_werror_flag"
19979			 || test ! -s conftest.err'
19980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981  (eval $ac_try) 2>&5
19982  ac_status=$?
19983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984  (exit $ac_status); }; } &&
19985	 { ac_try='test -s conftest$ac_exeext'
19986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987  (eval $ac_try) 2>&5
19988  ac_status=$?
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); }; }; then
19991  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19992break
19993else
19994  echo "$as_me: failed program was:" >&5
19995sed 's/^/| /' conftest.$ac_ext >&5
19996
19997fi
19998rm -f conftest.err conftest.$ac_objext \
19999      conftest$ac_exeext conftest.$ac_ext
20000  done
20001fi
20002LIBS=$ac_func_search_save_LIBS
20003fi
20004echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20005echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20006if test "$ac_cv_search_pthread_mutex_lock" != no; then
20007  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20008
20009cat >>confdefs.h <<\_ACEOF
20010#define HAVE_PTHREAD_MUTEX_LOCK 1
20011_ACEOF
20012
20013fi
20014
20015
20016echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20017echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20018if test "${ac_cv_header_stdc+set}" = set; then
20019  echo $ECHO_N "(cached) $ECHO_C" >&6
20020else
20021  cat >conftest.$ac_ext <<_ACEOF
20022/* confdefs.h.  */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h.  */
20027#include <stdlib.h>
20028#include <stdarg.h>
20029#include <string.h>
20030#include <float.h>
20031
20032int
20033main ()
20034{
20035
20036  ;
20037  return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext
20041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042  (eval $ac_compile) 2>conftest.er1
20043  ac_status=$?
20044  grep -v '^ *+' conftest.er1 >conftest.err
20045  rm -f conftest.er1
20046  cat conftest.err >&5
20047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048  (exit $ac_status); } &&
20049	 { ac_try='test -z "$ac_c_werror_flag"
20050			 || test ! -s conftest.err'
20051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052  (eval $ac_try) 2>&5
20053  ac_status=$?
20054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055  (exit $ac_status); }; } &&
20056	 { ac_try='test -s conftest.$ac_objext'
20057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058  (eval $ac_try) 2>&5
20059  ac_status=$?
20060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061  (exit $ac_status); }; }; then
20062  ac_cv_header_stdc=yes
20063else
20064  echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067ac_cv_header_stdc=no
20068fi
20069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070
20071if test $ac_cv_header_stdc = yes; then
20072  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20073  cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h.  */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h.  */
20079#include <string.h>
20080
20081_ACEOF
20082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20083  $EGREP "memchr" >/dev/null 2>&1; then
20084  :
20085else
20086  ac_cv_header_stdc=no
20087fi
20088rm -f conftest*
20089
20090fi
20091
20092if test $ac_cv_header_stdc = yes; then
20093  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20094  cat >conftest.$ac_ext <<_ACEOF
20095/* confdefs.h.  */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h.  */
20100#include <stdlib.h>
20101
20102_ACEOF
20103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104  $EGREP "free" >/dev/null 2>&1; then
20105  :
20106else
20107  ac_cv_header_stdc=no
20108fi
20109rm -f conftest*
20110
20111fi
20112
20113if test $ac_cv_header_stdc = yes; then
20114  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20115  if test "$cross_compiling" = yes; then
20116  :
20117else
20118  cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h.  */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h.  */
20124#include <ctype.h>
20125#if ((' ' & 0x0FF) == 0x020)
20126# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20127# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20128#else
20129# define ISLOWER(c) \
20130		   (('a' <= (c) && (c) <= 'i') \
20131		     || ('j' <= (c) && (c) <= 'r') \
20132		     || ('s' <= (c) && (c) <= 'z'))
20133# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20134#endif
20135
20136#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20137int
20138main ()
20139{
20140  int i;
20141  for (i = 0; i < 256; i++)
20142    if (XOR (islower (i), ISLOWER (i))
20143	|| toupper (i) != TOUPPER (i))
20144      exit(2);
20145  exit (0);
20146}
20147_ACEOF
20148rm -f conftest$ac_exeext
20149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150  (eval $ac_link) 2>&5
20151  ac_status=$?
20152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155  (eval $ac_try) 2>&5
20156  ac_status=$?
20157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158  (exit $ac_status); }; }; then
20159  :
20160else
20161  echo "$as_me: program exited with status $ac_status" >&5
20162echo "$as_me: failed program was:" >&5
20163sed 's/^/| /' conftest.$ac_ext >&5
20164
20165( exit $ac_status )
20166ac_cv_header_stdc=no
20167fi
20168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169fi
20170fi
20171fi
20172echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20173echo "${ECHO_T}$ac_cv_header_stdc" >&6
20174if test $ac_cv_header_stdc = yes; then
20175
20176cat >>confdefs.h <<\_ACEOF
20177#define STDC_HEADERS 1
20178_ACEOF
20179
20180fi
20181
20182echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20183echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20184if test "${ac_cv_header_sys_wait_h+set}" = set; then
20185  echo $ECHO_N "(cached) $ECHO_C" >&6
20186else
20187  cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h.  */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h.  */
20193#include <sys/types.h>
20194#include <sys/wait.h>
20195#ifndef WEXITSTATUS
20196# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20197#endif
20198#ifndef WIFEXITED
20199# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20200#endif
20201
20202int
20203main ()
20204{
20205  int s;
20206  wait (&s);
20207  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20208  ;
20209  return 0;
20210}
20211_ACEOF
20212rm -f conftest.$ac_objext
20213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214  (eval $ac_compile) 2>conftest.er1
20215  ac_status=$?
20216  grep -v '^ *+' conftest.er1 >conftest.err
20217  rm -f conftest.er1
20218  cat conftest.err >&5
20219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220  (exit $ac_status); } &&
20221	 { ac_try='test -z "$ac_c_werror_flag"
20222			 || test ! -s conftest.err'
20223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224  (eval $ac_try) 2>&5
20225  ac_status=$?
20226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227  (exit $ac_status); }; } &&
20228	 { ac_try='test -s conftest.$ac_objext'
20229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230  (eval $ac_try) 2>&5
20231  ac_status=$?
20232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233  (exit $ac_status); }; }; then
20234  ac_cv_header_sys_wait_h=yes
20235else
20236  echo "$as_me: failed program was:" >&5
20237sed 's/^/| /' conftest.$ac_ext >&5
20238
20239ac_cv_header_sys_wait_h=no
20240fi
20241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20242fi
20243echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20244echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20245if test $ac_cv_header_sys_wait_h = yes; then
20246
20247cat >>confdefs.h <<\_ACEOF
20248#define HAVE_SYS_WAIT_H 1
20249_ACEOF
20250
20251fi
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h ltdl.h link.h execinfo.h windows.h bzlib.h zlib.h
20269do
20270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20271if eval "test \"\${$as_ac_Header+set}\" = set"; then
20272  echo "$as_me:$LINENO: checking for $ac_header" >&5
20273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20274if eval "test \"\${$as_ac_Header+set}\" = set"; then
20275  echo $ECHO_N "(cached) $ECHO_C" >&6
20276fi
20277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20279else
20280  # Is the header compilable?
20281echo "$as_me:$LINENO: checking $ac_header usability" >&5
20282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h.  */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h.  */
20289$ac_includes_default
20290#include <$ac_header>
20291_ACEOF
20292rm -f conftest.$ac_objext
20293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294  (eval $ac_compile) 2>conftest.er1
20295  ac_status=$?
20296  grep -v '^ *+' conftest.er1 >conftest.err
20297  rm -f conftest.er1
20298  cat conftest.err >&5
20299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300  (exit $ac_status); } &&
20301	 { ac_try='test -z "$ac_c_werror_flag"
20302			 || test ! -s conftest.err'
20303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304  (eval $ac_try) 2>&5
20305  ac_status=$?
20306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307  (exit $ac_status); }; } &&
20308	 { ac_try='test -s conftest.$ac_objext'
20309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310  (eval $ac_try) 2>&5
20311  ac_status=$?
20312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313  (exit $ac_status); }; }; then
20314  ac_header_compiler=yes
20315else
20316  echo "$as_me: failed program was:" >&5
20317sed 's/^/| /' conftest.$ac_ext >&5
20318
20319ac_header_compiler=no
20320fi
20321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20323echo "${ECHO_T}$ac_header_compiler" >&6
20324
20325# Is the header present?
20326echo "$as_me:$LINENO: checking $ac_header presence" >&5
20327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20328cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h.  */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h.  */
20334#include <$ac_header>
20335_ACEOF
20336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20338  ac_status=$?
20339  grep -v '^ *+' conftest.er1 >conftest.err
20340  rm -f conftest.er1
20341  cat conftest.err >&5
20342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343  (exit $ac_status); } >/dev/null; then
20344  if test -s conftest.err; then
20345    ac_cpp_err=$ac_c_preproc_warn_flag
20346    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20347  else
20348    ac_cpp_err=
20349  fi
20350else
20351  ac_cpp_err=yes
20352fi
20353if test -z "$ac_cpp_err"; then
20354  ac_header_preproc=yes
20355else
20356  echo "$as_me: failed program was:" >&5
20357sed 's/^/| /' conftest.$ac_ext >&5
20358
20359  ac_header_preproc=no
20360fi
20361rm -f conftest.err conftest.$ac_ext
20362echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20363echo "${ECHO_T}$ac_header_preproc" >&6
20364
20365# So?  What about this header?
20366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20367  yes:no: )
20368    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20370    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20372    ac_header_preproc=yes
20373    ;;
20374  no:yes:* )
20375    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20377    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20378echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20379    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20381    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20382echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20383    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20385    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20387    (
20388      cat <<\_ASBOX
20389## ----------------------------------- ##
20390## Report this to llvmbugs@cs.uiuc.edu ##
20391## ----------------------------------- ##
20392_ASBOX
20393    ) |
20394      sed "s/^/$as_me: WARNING:     /" >&2
20395    ;;
20396esac
20397echo "$as_me:$LINENO: checking for $ac_header" >&5
20398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20399if eval "test \"\${$as_ac_Header+set}\" = set"; then
20400  echo $ECHO_N "(cached) $ECHO_C" >&6
20401else
20402  eval "$as_ac_Header=\$ac_header_preproc"
20403fi
20404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20406
20407fi
20408if test `eval echo '${'$as_ac_Header'}'` = yes; then
20409  cat >>confdefs.h <<_ACEOF
20410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20411_ACEOF
20412
20413fi
20414
20415done
20416
20417
20418if test "${ac_cv_header_sys_types_h+set}" = set; then
20419  echo "$as_me:$LINENO: checking for sys/types.h" >&5
20420echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20421if test "${ac_cv_header_sys_types_h+set}" = set; then
20422  echo $ECHO_N "(cached) $ECHO_C" >&6
20423fi
20424echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20425echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20426else
20427  # Is the header compilable?
20428echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20429echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20430cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h.  */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h.  */
20436$ac_includes_default
20437#include <sys/types.h>
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20441  (eval $ac_compile) 2>conftest.er1
20442  ac_status=$?
20443  grep -v '^ *+' conftest.er1 >conftest.err
20444  rm -f conftest.er1
20445  cat conftest.err >&5
20446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447  (exit $ac_status); } &&
20448	 { ac_try='test -z "$ac_c_werror_flag"
20449			 || test ! -s conftest.err'
20450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451  (eval $ac_try) 2>&5
20452  ac_status=$?
20453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454  (exit $ac_status); }; } &&
20455	 { ac_try='test -s conftest.$ac_objext'
20456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457  (eval $ac_try) 2>&5
20458  ac_status=$?
20459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460  (exit $ac_status); }; }; then
20461  ac_header_compiler=yes
20462else
20463  echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466ac_header_compiler=no
20467fi
20468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20470echo "${ECHO_T}$ac_header_compiler" >&6
20471
20472# Is the header present?
20473echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20474echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20475cat >conftest.$ac_ext <<_ACEOF
20476/* confdefs.h.  */
20477_ACEOF
20478cat confdefs.h >>conftest.$ac_ext
20479cat >>conftest.$ac_ext <<_ACEOF
20480/* end confdefs.h.  */
20481#include <sys/types.h>
20482_ACEOF
20483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20484  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20485  ac_status=$?
20486  grep -v '^ *+' conftest.er1 >conftest.err
20487  rm -f conftest.er1
20488  cat conftest.err >&5
20489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490  (exit $ac_status); } >/dev/null; then
20491  if test -s conftest.err; then
20492    ac_cpp_err=$ac_c_preproc_warn_flag
20493    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20494  else
20495    ac_cpp_err=
20496  fi
20497else
20498  ac_cpp_err=yes
20499fi
20500if test -z "$ac_cpp_err"; then
20501  ac_header_preproc=yes
20502else
20503  echo "$as_me: failed program was:" >&5
20504sed 's/^/| /' conftest.$ac_ext >&5
20505
20506  ac_header_preproc=no
20507fi
20508rm -f conftest.err conftest.$ac_ext
20509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20510echo "${ECHO_T}$ac_header_preproc" >&6
20511
20512# So?  What about this header?
20513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20514  yes:no: )
20515    { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20516echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20517    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20518echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20519    ac_header_preproc=yes
20520    ;;
20521  no:yes:* )
20522    { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20523echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20524    { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20525echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20526    { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20527echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20528    { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20529echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20530    { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20531echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20532    { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20533echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20534    (
20535      cat <<\_ASBOX
20536## ----------------------------------- ##
20537## Report this to llvmbugs@cs.uiuc.edu ##
20538## ----------------------------------- ##
20539_ASBOX
20540    ) |
20541      sed "s/^/$as_me: WARNING:     /" >&2
20542    ;;
20543esac
20544echo "$as_me:$LINENO: checking for sys/types.h" >&5
20545echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20546if test "${ac_cv_header_sys_types_h+set}" = set; then
20547  echo $ECHO_N "(cached) $ECHO_C" >&6
20548else
20549  ac_cv_header_sys_types_h=$ac_header_preproc
20550fi
20551echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20552echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20553
20554fi
20555
20556
20557if test "${ac_cv_header_inttypes_h+set}" = set; then
20558  echo "$as_me:$LINENO: checking for inttypes.h" >&5
20559echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20560if test "${ac_cv_header_inttypes_h+set}" = set; then
20561  echo $ECHO_N "(cached) $ECHO_C" >&6
20562fi
20563echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20564echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20565else
20566  # Is the header compilable?
20567echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20568echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20569cat >conftest.$ac_ext <<_ACEOF
20570/* confdefs.h.  */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h.  */
20575$ac_includes_default
20576#include <inttypes.h>
20577_ACEOF
20578rm -f conftest.$ac_objext
20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580  (eval $ac_compile) 2>conftest.er1
20581  ac_status=$?
20582  grep -v '^ *+' conftest.er1 >conftest.err
20583  rm -f conftest.er1
20584  cat conftest.err >&5
20585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586  (exit $ac_status); } &&
20587	 { ac_try='test -z "$ac_c_werror_flag"
20588			 || test ! -s conftest.err'
20589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590  (eval $ac_try) 2>&5
20591  ac_status=$?
20592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593  (exit $ac_status); }; } &&
20594	 { ac_try='test -s conftest.$ac_objext'
20595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596  (eval $ac_try) 2>&5
20597  ac_status=$?
20598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599  (exit $ac_status); }; }; then
20600  ac_header_compiler=yes
20601else
20602  echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605ac_header_compiler=no
20606fi
20607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20609echo "${ECHO_T}$ac_header_compiler" >&6
20610
20611# Is the header present?
20612echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20613echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20614cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h.  */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h.  */
20620#include <inttypes.h>
20621_ACEOF
20622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20623  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20624  ac_status=$?
20625  grep -v '^ *+' conftest.er1 >conftest.err
20626  rm -f conftest.er1
20627  cat conftest.err >&5
20628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629  (exit $ac_status); } >/dev/null; then
20630  if test -s conftest.err; then
20631    ac_cpp_err=$ac_c_preproc_warn_flag
20632    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20633  else
20634    ac_cpp_err=
20635  fi
20636else
20637  ac_cpp_err=yes
20638fi
20639if test -z "$ac_cpp_err"; then
20640  ac_header_preproc=yes
20641else
20642  echo "$as_me: failed program was:" >&5
20643sed 's/^/| /' conftest.$ac_ext >&5
20644
20645  ac_header_preproc=no
20646fi
20647rm -f conftest.err conftest.$ac_ext
20648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20649echo "${ECHO_T}$ac_header_preproc" >&6
20650
20651# So?  What about this header?
20652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20653  yes:no: )
20654    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20655echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20656    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20657echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20658    ac_header_preproc=yes
20659    ;;
20660  no:yes:* )
20661    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20662echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20663    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20664echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20665    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20666echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20667    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20668echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20669    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20670echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20671    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20672echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20673    (
20674      cat <<\_ASBOX
20675## ----------------------------------- ##
20676## Report this to llvmbugs@cs.uiuc.edu ##
20677## ----------------------------------- ##
20678_ASBOX
20679    ) |
20680      sed "s/^/$as_me: WARNING:     /" >&2
20681    ;;
20682esac
20683echo "$as_me:$LINENO: checking for inttypes.h" >&5
20684echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20685if test "${ac_cv_header_inttypes_h+set}" = set; then
20686  echo $ECHO_N "(cached) $ECHO_C" >&6
20687else
20688  ac_cv_header_inttypes_h=$ac_header_preproc
20689fi
20690echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20691echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20692
20693fi
20694
20695
20696if test "${ac_cv_header_stdint_h+set}" = set; then
20697  echo "$as_me:$LINENO: checking for stdint.h" >&5
20698echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20699if test "${ac_cv_header_stdint_h+set}" = set; then
20700  echo $ECHO_N "(cached) $ECHO_C" >&6
20701fi
20702echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20703echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20704else
20705  # Is the header compilable?
20706echo "$as_me:$LINENO: checking stdint.h usability" >&5
20707echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20708cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h.  */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h.  */
20714$ac_includes_default
20715#include <stdint.h>
20716_ACEOF
20717rm -f conftest.$ac_objext
20718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719  (eval $ac_compile) 2>conftest.er1
20720  ac_status=$?
20721  grep -v '^ *+' conftest.er1 >conftest.err
20722  rm -f conftest.er1
20723  cat conftest.err >&5
20724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725  (exit $ac_status); } &&
20726	 { ac_try='test -z "$ac_c_werror_flag"
20727			 || test ! -s conftest.err'
20728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729  (eval $ac_try) 2>&5
20730  ac_status=$?
20731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732  (exit $ac_status); }; } &&
20733	 { ac_try='test -s conftest.$ac_objext'
20734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735  (eval $ac_try) 2>&5
20736  ac_status=$?
20737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738  (exit $ac_status); }; }; then
20739  ac_header_compiler=yes
20740else
20741  echo "$as_me: failed program was:" >&5
20742sed 's/^/| /' conftest.$ac_ext >&5
20743
20744ac_header_compiler=no
20745fi
20746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20748echo "${ECHO_T}$ac_header_compiler" >&6
20749
20750# Is the header present?
20751echo "$as_me:$LINENO: checking stdint.h presence" >&5
20752echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20753cat >conftest.$ac_ext <<_ACEOF
20754/* confdefs.h.  */
20755_ACEOF
20756cat confdefs.h >>conftest.$ac_ext
20757cat >>conftest.$ac_ext <<_ACEOF
20758/* end confdefs.h.  */
20759#include <stdint.h>
20760_ACEOF
20761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20763  ac_status=$?
20764  grep -v '^ *+' conftest.er1 >conftest.err
20765  rm -f conftest.er1
20766  cat conftest.err >&5
20767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768  (exit $ac_status); } >/dev/null; then
20769  if test -s conftest.err; then
20770    ac_cpp_err=$ac_c_preproc_warn_flag
20771    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20772  else
20773    ac_cpp_err=
20774  fi
20775else
20776  ac_cpp_err=yes
20777fi
20778if test -z "$ac_cpp_err"; then
20779  ac_header_preproc=yes
20780else
20781  echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784  ac_header_preproc=no
20785fi
20786rm -f conftest.err conftest.$ac_ext
20787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20788echo "${ECHO_T}$ac_header_preproc" >&6
20789
20790# So?  What about this header?
20791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20792  yes:no: )
20793    { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20794echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20795    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20796echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20797    ac_header_preproc=yes
20798    ;;
20799  no:yes:* )
20800    { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20801echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20802    { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20803echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20804    { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20805echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20806    { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20807echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20808    { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20809echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20810    { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20811echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20812    (
20813      cat <<\_ASBOX
20814## ----------------------------------- ##
20815## Report this to llvmbugs@cs.uiuc.edu ##
20816## ----------------------------------- ##
20817_ASBOX
20818    ) |
20819      sed "s/^/$as_me: WARNING:     /" >&2
20820    ;;
20821esac
20822echo "$as_me:$LINENO: checking for stdint.h" >&5
20823echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20824if test "${ac_cv_header_stdint_h+set}" = set; then
20825  echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827  ac_cv_header_stdint_h=$ac_header_preproc
20828fi
20829echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20830echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20831
20832fi
20833
20834
20835
20836echo "$as_me:$LINENO: checking for pid_t" >&5
20837echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20838if test "${ac_cv_type_pid_t+set}" = set; then
20839  echo $ECHO_N "(cached) $ECHO_C" >&6
20840else
20841  cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h.  */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h.  */
20847$ac_includes_default
20848int
20849main ()
20850{
20851if ((pid_t *) 0)
20852  return 0;
20853if (sizeof (pid_t))
20854  return 0;
20855  ;
20856  return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861  (eval $ac_compile) 2>conftest.er1
20862  ac_status=$?
20863  grep -v '^ *+' conftest.er1 >conftest.err
20864  rm -f conftest.er1
20865  cat conftest.err >&5
20866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867  (exit $ac_status); } &&
20868	 { ac_try='test -z "$ac_c_werror_flag"
20869			 || test ! -s conftest.err'
20870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20871  (eval $ac_try) 2>&5
20872  ac_status=$?
20873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874  (exit $ac_status); }; } &&
20875	 { ac_try='test -s conftest.$ac_objext'
20876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877  (eval $ac_try) 2>&5
20878  ac_status=$?
20879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880  (exit $ac_status); }; }; then
20881  ac_cv_type_pid_t=yes
20882else
20883  echo "$as_me: failed program was:" >&5
20884sed 's/^/| /' conftest.$ac_ext >&5
20885
20886ac_cv_type_pid_t=no
20887fi
20888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889fi
20890echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20891echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20892if test $ac_cv_type_pid_t = yes; then
20893  :
20894else
20895
20896cat >>confdefs.h <<_ACEOF
20897#define pid_t int
20898_ACEOF
20899
20900fi
20901
20902echo "$as_me:$LINENO: checking for size_t" >&5
20903echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20904if test "${ac_cv_type_size_t+set}" = set; then
20905  echo $ECHO_N "(cached) $ECHO_C" >&6
20906else
20907  cat >conftest.$ac_ext <<_ACEOF
20908/* confdefs.h.  */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h.  */
20913$ac_includes_default
20914int
20915main ()
20916{
20917if ((size_t *) 0)
20918  return 0;
20919if (sizeof (size_t))
20920  return 0;
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925rm -f conftest.$ac_objext
20926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20927  (eval $ac_compile) 2>conftest.er1
20928  ac_status=$?
20929  grep -v '^ *+' conftest.er1 >conftest.err
20930  rm -f conftest.er1
20931  cat conftest.err >&5
20932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933  (exit $ac_status); } &&
20934	 { ac_try='test -z "$ac_c_werror_flag"
20935			 || test ! -s conftest.err'
20936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937  (eval $ac_try) 2>&5
20938  ac_status=$?
20939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940  (exit $ac_status); }; } &&
20941	 { ac_try='test -s conftest.$ac_objext'
20942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943  (eval $ac_try) 2>&5
20944  ac_status=$?
20945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946  (exit $ac_status); }; }; then
20947  ac_cv_type_size_t=yes
20948else
20949  echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952ac_cv_type_size_t=no
20953fi
20954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20955fi
20956echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20957echo "${ECHO_T}$ac_cv_type_size_t" >&6
20958if test $ac_cv_type_size_t = yes; then
20959  :
20960else
20961
20962cat >>confdefs.h <<_ACEOF
20963#define size_t unsigned
20964_ACEOF
20965
20966fi
20967
20968echo "$as_me:$LINENO: checking for int64_t" >&5
20969echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20970if test "${ac_cv_type_int64_t+set}" = set; then
20971  echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973  cat >conftest.$ac_ext <<_ACEOF
20974/* confdefs.h.  */
20975_ACEOF
20976cat confdefs.h >>conftest.$ac_ext
20977cat >>conftest.$ac_ext <<_ACEOF
20978/* end confdefs.h.  */
20979$ac_includes_default
20980int
20981main ()
20982{
20983if ((int64_t *) 0)
20984  return 0;
20985if (sizeof (int64_t))
20986  return 0;
20987  ;
20988  return 0;
20989}
20990_ACEOF
20991rm -f conftest.$ac_objext
20992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993  (eval $ac_compile) 2>conftest.er1
20994  ac_status=$?
20995  grep -v '^ *+' conftest.er1 >conftest.err
20996  rm -f conftest.er1
20997  cat conftest.err >&5
20998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999  (exit $ac_status); } &&
21000	 { ac_try='test -z "$ac_c_werror_flag"
21001			 || test ! -s conftest.err'
21002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003  (eval $ac_try) 2>&5
21004  ac_status=$?
21005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006  (exit $ac_status); }; } &&
21007	 { ac_try='test -s conftest.$ac_objext'
21008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009  (eval $ac_try) 2>&5
21010  ac_status=$?
21011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012  (exit $ac_status); }; }; then
21013  ac_cv_type_int64_t=yes
21014else
21015  echo "$as_me: failed program was:" >&5
21016sed 's/^/| /' conftest.$ac_ext >&5
21017
21018ac_cv_type_int64_t=no
21019fi
21020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21021fi
21022echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21023echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21024if test $ac_cv_type_int64_t = yes; then
21025
21026cat >>confdefs.h <<_ACEOF
21027#define HAVE_INT64_T 1
21028_ACEOF
21029
21030
21031else
21032  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21033echo "$as_me: error: Type int64_t required but not found" >&2;}
21034   { (exit 1); exit 1; }; }
21035fi
21036
21037echo "$as_me:$LINENO: checking for uint64_t" >&5
21038echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21039if test "${ac_cv_type_uint64_t+set}" = set; then
21040  echo $ECHO_N "(cached) $ECHO_C" >&6
21041else
21042  cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h.  */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h.  */
21048$ac_includes_default
21049int
21050main ()
21051{
21052if ((uint64_t *) 0)
21053  return 0;
21054if (sizeof (uint64_t))
21055  return 0;
21056  ;
21057  return 0;
21058}
21059_ACEOF
21060rm -f conftest.$ac_objext
21061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21062  (eval $ac_compile) 2>conftest.er1
21063  ac_status=$?
21064  grep -v '^ *+' conftest.er1 >conftest.err
21065  rm -f conftest.er1
21066  cat conftest.err >&5
21067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068  (exit $ac_status); } &&
21069	 { ac_try='test -z "$ac_c_werror_flag"
21070			 || test ! -s conftest.err'
21071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072  (eval $ac_try) 2>&5
21073  ac_status=$?
21074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075  (exit $ac_status); }; } &&
21076	 { ac_try='test -s conftest.$ac_objext'
21077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078  (eval $ac_try) 2>&5
21079  ac_status=$?
21080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081  (exit $ac_status); }; }; then
21082  ac_cv_type_uint64_t=yes
21083else
21084  echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087ac_cv_type_uint64_t=no
21088fi
21089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090fi
21091echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21092echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21093if test $ac_cv_type_uint64_t = yes; then
21094
21095cat >>confdefs.h <<_ACEOF
21096#define HAVE_UINT64_T 1
21097_ACEOF
21098
21099
21100else
21101  echo "$as_me:$LINENO: checking for u_int64_t" >&5
21102echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21103if test "${ac_cv_type_u_int64_t+set}" = set; then
21104  echo $ECHO_N "(cached) $ECHO_C" >&6
21105else
21106  cat >conftest.$ac_ext <<_ACEOF
21107/* confdefs.h.  */
21108_ACEOF
21109cat confdefs.h >>conftest.$ac_ext
21110cat >>conftest.$ac_ext <<_ACEOF
21111/* end confdefs.h.  */
21112$ac_includes_default
21113int
21114main ()
21115{
21116if ((u_int64_t *) 0)
21117  return 0;
21118if (sizeof (u_int64_t))
21119  return 0;
21120  ;
21121  return 0;
21122}
21123_ACEOF
21124rm -f conftest.$ac_objext
21125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21126  (eval $ac_compile) 2>conftest.er1
21127  ac_status=$?
21128  grep -v '^ *+' conftest.er1 >conftest.err
21129  rm -f conftest.er1
21130  cat conftest.err >&5
21131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132  (exit $ac_status); } &&
21133	 { ac_try='test -z "$ac_c_werror_flag"
21134			 || test ! -s conftest.err'
21135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136  (eval $ac_try) 2>&5
21137  ac_status=$?
21138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139  (exit $ac_status); }; } &&
21140	 { ac_try='test -s conftest.$ac_objext'
21141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142  (eval $ac_try) 2>&5
21143  ac_status=$?
21144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145  (exit $ac_status); }; }; then
21146  ac_cv_type_u_int64_t=yes
21147else
21148  echo "$as_me: failed program was:" >&5
21149sed 's/^/| /' conftest.$ac_ext >&5
21150
21151ac_cv_type_u_int64_t=no
21152fi
21153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21154fi
21155echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21156echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21157if test $ac_cv_type_u_int64_t = yes; then
21158
21159cat >>confdefs.h <<_ACEOF
21160#define HAVE_U_INT64_T 1
21161_ACEOF
21162
21163
21164else
21165  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21166echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21167   { (exit 1); exit 1; }; }
21168fi
21169
21170fi
21171
21172echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21173echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21174if test "${ac_cv_header_time+set}" = set; then
21175  echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177  cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h.  */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h.  */
21183#include <sys/types.h>
21184#include <sys/time.h>
21185#include <time.h>
21186
21187int
21188main ()
21189{
21190if ((struct tm *) 0)
21191return 0;
21192  ;
21193  return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext
21197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21198  (eval $ac_compile) 2>conftest.er1
21199  ac_status=$?
21200  grep -v '^ *+' conftest.er1 >conftest.err
21201  rm -f conftest.er1
21202  cat conftest.err >&5
21203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204  (exit $ac_status); } &&
21205	 { ac_try='test -z "$ac_c_werror_flag"
21206			 || test ! -s conftest.err'
21207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208  (eval $ac_try) 2>&5
21209  ac_status=$?
21210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211  (exit $ac_status); }; } &&
21212	 { ac_try='test -s conftest.$ac_objext'
21213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214  (eval $ac_try) 2>&5
21215  ac_status=$?
21216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217  (exit $ac_status); }; }; then
21218  ac_cv_header_time=yes
21219else
21220  echo "$as_me: failed program was:" >&5
21221sed 's/^/| /' conftest.$ac_ext >&5
21222
21223ac_cv_header_time=no
21224fi
21225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21226fi
21227echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21228echo "${ECHO_T}$ac_cv_header_time" >&6
21229if test $ac_cv_header_time = yes; then
21230
21231cat >>confdefs.h <<\_ACEOF
21232#define TIME_WITH_SYS_TIME 1
21233_ACEOF
21234
21235fi
21236
21237echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21238echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21239if test "${ac_cv_struct_tm+set}" = set; then
21240  echo $ECHO_N "(cached) $ECHO_C" >&6
21241else
21242  cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h.  */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h.  */
21248#include <sys/types.h>
21249#include <time.h>
21250
21251int
21252main ()
21253{
21254struct tm *tp; tp->tm_sec;
21255  ;
21256  return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext
21260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261  (eval $ac_compile) 2>conftest.er1
21262  ac_status=$?
21263  grep -v '^ *+' conftest.er1 >conftest.err
21264  rm -f conftest.er1
21265  cat conftest.err >&5
21266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267  (exit $ac_status); } &&
21268	 { ac_try='test -z "$ac_c_werror_flag"
21269			 || test ! -s conftest.err'
21270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271  (eval $ac_try) 2>&5
21272  ac_status=$?
21273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274  (exit $ac_status); }; } &&
21275	 { ac_try='test -s conftest.$ac_objext'
21276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277  (eval $ac_try) 2>&5
21278  ac_status=$?
21279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280  (exit $ac_status); }; }; then
21281  ac_cv_struct_tm=time.h
21282else
21283  echo "$as_me: failed program was:" >&5
21284sed 's/^/| /' conftest.$ac_ext >&5
21285
21286ac_cv_struct_tm=sys/time.h
21287fi
21288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21289fi
21290echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21291echo "${ECHO_T}$ac_cv_struct_tm" >&6
21292if test $ac_cv_struct_tm = sys/time.h; then
21293
21294cat >>confdefs.h <<\_ACEOF
21295#define TM_IN_SYS_TIME 1
21296_ACEOF
21297
21298fi
21299
21300
21301
21302  echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21303echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21304  ac_ext=c
21305ac_cpp='$CPP $CPPFLAGS'
21306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308ac_compiler_gnu=$ac_cv_c_compiler_gnu
21309
21310  if test "$cross_compiling" = yes; then
21311  ac_c_printf_a=no
21312else
21313  cat >conftest.$ac_ext <<_ACEOF
21314
21315    /* confdefs.h.  */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h.  */
21320
21321#include <stdio.h>
21322#include <stdlib.h>
21323
21324int
21325main ()
21326{
21327
21328volatile double A, B;
21329char Buffer[100];
21330A = 1;
21331A /= 10.0;
21332sprintf(Buffer, "%a", A);
21333B = atof(Buffer);
21334if (A != B)
21335  return (1);
21336if (A != 0x1.999999999999ap-4)
21337  return (1);
21338return (0);
21339  ;
21340  return 0;
21341}
21342_ACEOF
21343rm -f conftest$ac_exeext
21344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21345  (eval $ac_link) 2>&5
21346  ac_status=$?
21347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350  (eval $ac_try) 2>&5
21351  ac_status=$?
21352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353  (exit $ac_status); }; }; then
21354  ac_c_printf_a=yes
21355else
21356  echo "$as_me: program exited with status $ac_status" >&5
21357echo "$as_me: failed program was:" >&5
21358sed 's/^/| /' conftest.$ac_ext >&5
21359
21360( exit $ac_status )
21361ac_c_printf_a=no
21362fi
21363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21364fi
21365 ac_ext=c
21366ac_cpp='$CPP $CPPFLAGS'
21367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369ac_compiler_gnu=$ac_cv_c_compiler_gnu
21370
21371 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21372echo "${ECHO_T}$ac_c_printf_a" >&6
21373 if test "$ac_c_printf_a" = "yes"; then
21374
21375cat >>confdefs.h <<\_ACEOF
21376#define HAVE_PRINTF_A 1
21377_ACEOF
21378
21379 fi
21380
21381
21382echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21383echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21384if test "${ac_cv_c_bigendian+set}" = set; then
21385  echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387  # See if sys/param.h defines the BYTE_ORDER macro.
21388cat >conftest.$ac_ext <<_ACEOF
21389/* confdefs.h.  */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h.  */
21394#include <sys/types.h>
21395#include <sys/param.h>
21396
21397int
21398main ()
21399{
21400#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21401 bogus endian macros
21402#endif
21403
21404  ;
21405  return 0;
21406}
21407_ACEOF
21408rm -f conftest.$ac_objext
21409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21410  (eval $ac_compile) 2>conftest.er1
21411  ac_status=$?
21412  grep -v '^ *+' conftest.er1 >conftest.err
21413  rm -f conftest.er1
21414  cat conftest.err >&5
21415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416  (exit $ac_status); } &&
21417	 { ac_try='test -z "$ac_c_werror_flag"
21418			 || test ! -s conftest.err'
21419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420  (eval $ac_try) 2>&5
21421  ac_status=$?
21422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423  (exit $ac_status); }; } &&
21424	 { ac_try='test -s conftest.$ac_objext'
21425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426  (eval $ac_try) 2>&5
21427  ac_status=$?
21428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); }; }; then
21430  # It does; now see whether it defined to BIG_ENDIAN or not.
21431cat >conftest.$ac_ext <<_ACEOF
21432/* confdefs.h.  */
21433_ACEOF
21434cat confdefs.h >>conftest.$ac_ext
21435cat >>conftest.$ac_ext <<_ACEOF
21436/* end confdefs.h.  */
21437#include <sys/types.h>
21438#include <sys/param.h>
21439
21440int
21441main ()
21442{
21443#if BYTE_ORDER != BIG_ENDIAN
21444 not big endian
21445#endif
21446
21447  ;
21448  return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
21452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453  (eval $ac_compile) 2>conftest.er1
21454  ac_status=$?
21455  grep -v '^ *+' conftest.er1 >conftest.err
21456  rm -f conftest.er1
21457  cat conftest.err >&5
21458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459  (exit $ac_status); } &&
21460	 { ac_try='test -z "$ac_c_werror_flag"
21461			 || test ! -s conftest.err'
21462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463  (eval $ac_try) 2>&5
21464  ac_status=$?
21465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466  (exit $ac_status); }; } &&
21467	 { ac_try='test -s conftest.$ac_objext'
21468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469  (eval $ac_try) 2>&5
21470  ac_status=$?
21471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472  (exit $ac_status); }; }; then
21473  ac_cv_c_bigendian=yes
21474else
21475  echo "$as_me: failed program was:" >&5
21476sed 's/^/| /' conftest.$ac_ext >&5
21477
21478ac_cv_c_bigendian=no
21479fi
21480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21481else
21482  echo "$as_me: failed program was:" >&5
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
21485# It does not; compile a test program.
21486if test "$cross_compiling" = yes; then
21487  # try to guess the endianness by grepping values into an object file
21488  ac_cv_c_bigendian=unknown
21489  cat >conftest.$ac_ext <<_ACEOF
21490/* confdefs.h.  */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h.  */
21495short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21496short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21497void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21498short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21499short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21500void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21501int
21502main ()
21503{
21504 _ascii (); _ebcdic ();
21505  ;
21506  return 0;
21507}
21508_ACEOF
21509rm -f conftest.$ac_objext
21510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21511  (eval $ac_compile) 2>conftest.er1
21512  ac_status=$?
21513  grep -v '^ *+' conftest.er1 >conftest.err
21514  rm -f conftest.er1
21515  cat conftest.err >&5
21516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517  (exit $ac_status); } &&
21518	 { ac_try='test -z "$ac_c_werror_flag"
21519			 || test ! -s conftest.err'
21520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521  (eval $ac_try) 2>&5
21522  ac_status=$?
21523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524  (exit $ac_status); }; } &&
21525	 { ac_try='test -s conftest.$ac_objext'
21526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21527  (eval $ac_try) 2>&5
21528  ac_status=$?
21529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530  (exit $ac_status); }; }; then
21531  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21532  ac_cv_c_bigendian=yes
21533fi
21534if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21535  if test "$ac_cv_c_bigendian" = unknown; then
21536    ac_cv_c_bigendian=no
21537  else
21538    # finding both strings is unlikely to happen, but who knows?
21539    ac_cv_c_bigendian=unknown
21540  fi
21541fi
21542else
21543  echo "$as_me: failed program was:" >&5
21544sed 's/^/| /' conftest.$ac_ext >&5
21545
21546fi
21547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21548else
21549  cat >conftest.$ac_ext <<_ACEOF
21550/* confdefs.h.  */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h.  */
21555int
21556main ()
21557{
21558  /* Are we little or big endian?  From Harbison&Steele.  */
21559  union
21560  {
21561    long l;
21562    char c[sizeof (long)];
21563  } u;
21564  u.l = 1;
21565  exit (u.c[sizeof (long) - 1] == 1);
21566}
21567_ACEOF
21568rm -f conftest$ac_exeext
21569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570  (eval $ac_link) 2>&5
21571  ac_status=$?
21572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575  (eval $ac_try) 2>&5
21576  ac_status=$?
21577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578  (exit $ac_status); }; }; then
21579  ac_cv_c_bigendian=no
21580else
21581  echo "$as_me: program exited with status $ac_status" >&5
21582echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585( exit $ac_status )
21586ac_cv_c_bigendian=yes
21587fi
21588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21589fi
21590fi
21591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21592fi
21593echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21594echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21595case $ac_cv_c_bigendian in
21596  yes)
21597    ENDIAN=big
21598 ;;
21599  no)
21600    ENDIAN=little
21601 ;;
21602  *)
21603    { { echo "$as_me:$LINENO: error: unknown endianness
21604presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21605echo "$as_me: error: unknown endianness
21606presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21607   { (exit 1); exit 1; }; } ;;
21608esac
21609
21610
21611echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21612echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21613if test "${ac_cv_cxx_namespaces+set}" = set; then
21614  echo $ECHO_N "(cached) $ECHO_C" >&6
21615else
21616  ac_ext=cc
21617ac_cpp='$CXXCPP $CPPFLAGS'
21618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21621
21622 cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h.  */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h.  */
21628namespace Outer { namespace Inner { int i = 0; }}
21629int
21630main ()
21631{
21632using namespace Outer::Inner; return i;
21633  ;
21634  return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21639  (eval $ac_compile) 2>conftest.er1
21640  ac_status=$?
21641  grep -v '^ *+' conftest.er1 >conftest.err
21642  rm -f conftest.er1
21643  cat conftest.err >&5
21644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645  (exit $ac_status); } &&
21646	 { ac_try='test -z "$ac_cxx_werror_flag"
21647			 || test ! -s conftest.err'
21648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649  (eval $ac_try) 2>&5
21650  ac_status=$?
21651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652  (exit $ac_status); }; } &&
21653	 { ac_try='test -s conftest.$ac_objext'
21654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655  (eval $ac_try) 2>&5
21656  ac_status=$?
21657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658  (exit $ac_status); }; }; then
21659  ac_cv_cxx_namespaces=yes
21660else
21661  echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664ac_cv_cxx_namespaces=no
21665fi
21666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21667 ac_ext=c
21668ac_cpp='$CPP $CPPFLAGS'
21669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21671ac_compiler_gnu=$ac_cv_c_compiler_gnu
21672
21673
21674fi
21675echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21676echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21677if test "$ac_cv_cxx_namespaces" = yes; then
21678
21679cat >>confdefs.h <<\_ACEOF
21680#define HAVE_NAMESPACES
21681_ACEOF
21682
21683fi
21684
21685echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21686echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21687if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21688  echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690
21691  ac_ext=cc
21692ac_cpp='$CXXCPP $CPPFLAGS'
21693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21696
21697  cat >conftest.$ac_ext <<_ACEOF
21698/* confdefs.h.  */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h.  */
21703#include <ext/hash_map>
21704#ifdef HAVE_NAMESPACES
21705using namespace std;
21706#endif
21707int
21708main ()
21709{
21710hash_map<int, int> t;
21711  ;
21712  return 0;
21713}
21714_ACEOF
21715rm -f conftest.$ac_objext
21716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717  (eval $ac_compile) 2>conftest.er1
21718  ac_status=$?
21719  grep -v '^ *+' conftest.er1 >conftest.err
21720  rm -f conftest.er1
21721  cat conftest.err >&5
21722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723  (exit $ac_status); } &&
21724	 { ac_try='test -z "$ac_cxx_werror_flag"
21725			 || test ! -s conftest.err'
21726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727  (eval $ac_try) 2>&5
21728  ac_status=$?
21729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730  (exit $ac_status); }; } &&
21731	 { ac_try='test -s conftest.$ac_objext'
21732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733  (eval $ac_try) 2>&5
21734  ac_status=$?
21735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736  (exit $ac_status); }; }; then
21737  ac_cv_cxx_have_std_ext_hash_map=yes
21738else
21739  echo "$as_me: failed program was:" >&5
21740sed 's/^/| /' conftest.$ac_ext >&5
21741
21742ac_cv_cxx_have_std_ext_hash_map=no
21743fi
21744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21745  ac_ext=c
21746ac_cpp='$CPP $CPPFLAGS'
21747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749ac_compiler_gnu=$ac_cv_c_compiler_gnu
21750
21751fi
21752echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21753echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21754 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21755 then
21756
21757cat >>confdefs.h <<\_ACEOF
21758#define HAVE_STD_EXT_HASH_MAP 1
21759_ACEOF
21760
21761 else
21762
21763cat >>confdefs.h <<\_ACEOF
21764#define HAVE_STD_EXT_HASH_MAP 0
21765_ACEOF
21766
21767 fi
21768
21769 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21770echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21771if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21772  echo $ECHO_N "(cached) $ECHO_C" >&6
21773else
21774
21775  ac_ext=cc
21776ac_cpp='$CXXCPP $CPPFLAGS'
21777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21780
21781  cat >conftest.$ac_ext <<_ACEOF
21782/* confdefs.h.  */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h.  */
21787#include <ext/hash_map>
21788#ifdef HAVE_NAMESPACES
21789using namespace __gnu_cxx;
21790#endif
21791int
21792main ()
21793{
21794hash_map<int,int> t;
21795  ;
21796  return 0;
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext
21800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21801  (eval $ac_compile) 2>conftest.er1
21802  ac_status=$?
21803  grep -v '^ *+' conftest.er1 >conftest.err
21804  rm -f conftest.er1
21805  cat conftest.err >&5
21806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807  (exit $ac_status); } &&
21808	 { ac_try='test -z "$ac_cxx_werror_flag"
21809			 || test ! -s conftest.err'
21810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811  (eval $ac_try) 2>&5
21812  ac_status=$?
21813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814  (exit $ac_status); }; } &&
21815	 { ac_try='test -s conftest.$ac_objext'
21816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817  (eval $ac_try) 2>&5
21818  ac_status=$?
21819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820  (exit $ac_status); }; }; then
21821  ac_cv_cxx_have_gnu_ext_hash_map=yes
21822else
21823  echo "$as_me: failed program was:" >&5
21824sed 's/^/| /' conftest.$ac_ext >&5
21825
21826ac_cv_cxx_have_gnu_ext_hash_map=no
21827fi
21828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829  ac_ext=c
21830ac_cpp='$CPP $CPPFLAGS'
21831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21833ac_compiler_gnu=$ac_cv_c_compiler_gnu
21834
21835fi
21836echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21837echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21838 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21839 then
21840
21841cat >>confdefs.h <<\_ACEOF
21842#define HAVE_GNU_EXT_HASH_MAP 1
21843_ACEOF
21844
21845 else
21846
21847cat >>confdefs.h <<\_ACEOF
21848#define HAVE_GNU_EXT_HASH_MAP 0
21849_ACEOF
21850
21851 fi
21852
21853 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21854echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21855if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21856  echo $ECHO_N "(cached) $ECHO_C" >&6
21857else
21858
21859  ac_ext=cc
21860ac_cpp='$CXXCPP $CPPFLAGS'
21861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21864
21865  cat >conftest.$ac_ext <<_ACEOF
21866/* confdefs.h.  */
21867_ACEOF
21868cat confdefs.h >>conftest.$ac_ext
21869cat >>conftest.$ac_ext <<_ACEOF
21870/* end confdefs.h.  */
21871#include <hash_map>
21872int
21873main ()
21874{
21875hash_map<int,int> t;
21876  ;
21877  return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext
21881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882  (eval $ac_compile) 2>conftest.er1
21883  ac_status=$?
21884  grep -v '^ *+' conftest.er1 >conftest.err
21885  rm -f conftest.er1
21886  cat conftest.err >&5
21887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888  (exit $ac_status); } &&
21889	 { ac_try='test -z "$ac_cxx_werror_flag"
21890			 || test ! -s conftest.err'
21891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892  (eval $ac_try) 2>&5
21893  ac_status=$?
21894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895  (exit $ac_status); }; } &&
21896	 { ac_try='test -s conftest.$ac_objext'
21897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898  (eval $ac_try) 2>&5
21899  ac_status=$?
21900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901  (exit $ac_status); }; }; then
21902  ac_cv_cxx_have_global_hash_map=yes
21903else
21904  echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907ac_cv_cxx_have_global_hash_map=no
21908fi
21909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21910  ac_ext=c
21911ac_cpp='$CPP $CPPFLAGS'
21912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915
21916fi
21917echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21918echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21919 if test "$ac_cv_cxx_have_global_hash_map" = yes
21920 then
21921
21922cat >>confdefs.h <<\_ACEOF
21923#define HAVE_GLOBAL_HASH_MAP 1
21924_ACEOF
21925
21926 else
21927
21928cat >>confdefs.h <<\_ACEOF
21929#define HAVE_GLOBAL_HASH_MAP 0
21930_ACEOF
21931
21932 fi
21933
21934echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21935echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21936if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21937  echo $ECHO_N "(cached) $ECHO_C" >&6
21938else
21939
21940  ac_ext=cc
21941ac_cpp='$CXXCPP $CPPFLAGS'
21942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21945
21946  cat >conftest.$ac_ext <<_ACEOF
21947/* confdefs.h.  */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h.  */
21952#include <ext/hash_set>
21953#ifdef HAVE_NAMESPACES
21954using namespace std;
21955#endif
21956int
21957main ()
21958{
21959hash_set<int> t;
21960  ;
21961  return 0;
21962}
21963_ACEOF
21964rm -f conftest.$ac_objext
21965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21966  (eval $ac_compile) 2>conftest.er1
21967  ac_status=$?
21968  grep -v '^ *+' conftest.er1 >conftest.err
21969  rm -f conftest.er1
21970  cat conftest.err >&5
21971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972  (exit $ac_status); } &&
21973	 { ac_try='test -z "$ac_cxx_werror_flag"
21974			 || test ! -s conftest.err'
21975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976  (eval $ac_try) 2>&5
21977  ac_status=$?
21978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979  (exit $ac_status); }; } &&
21980	 { ac_try='test -s conftest.$ac_objext'
21981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982  (eval $ac_try) 2>&5
21983  ac_status=$?
21984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985  (exit $ac_status); }; }; then
21986  ac_cv_cxx_have_std_ext_hash_set=yes
21987else
21988  echo "$as_me: failed program was:" >&5
21989sed 's/^/| /' conftest.$ac_ext >&5
21990
21991ac_cv_cxx_have_std_ext_hash_set=no
21992fi
21993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994  ac_ext=c
21995ac_cpp='$CPP $CPPFLAGS'
21996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21998ac_compiler_gnu=$ac_cv_c_compiler_gnu
21999
22000fi
22001echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22002echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22003 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22004 then
22005
22006cat >>confdefs.h <<\_ACEOF
22007#define HAVE_STD_EXT_HASH_SET 1
22008_ACEOF
22009
22010 else
22011
22012cat >>confdefs.h <<\_ACEOF
22013#define HAVE_STD_EXT_HASH_SET 0
22014_ACEOF
22015
22016 fi
22017
22018 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22019echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22020if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22021  echo $ECHO_N "(cached) $ECHO_C" >&6
22022else
22023
22024  ac_ext=cc
22025ac_cpp='$CXXCPP $CPPFLAGS'
22026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22029
22030  cat >conftest.$ac_ext <<_ACEOF
22031/* confdefs.h.  */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h.  */
22036#include <ext/hash_set>
22037#ifdef HAVE_NAMESPACES
22038using namespace __gnu_cxx;
22039#endif
22040int
22041main ()
22042{
22043hash_set<int> t;
22044  ;
22045  return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext
22049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22050  (eval $ac_compile) 2>conftest.er1
22051  ac_status=$?
22052  grep -v '^ *+' conftest.er1 >conftest.err
22053  rm -f conftest.er1
22054  cat conftest.err >&5
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); } &&
22057	 { ac_try='test -z "$ac_cxx_werror_flag"
22058			 || test ! -s conftest.err'
22059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060  (eval $ac_try) 2>&5
22061  ac_status=$?
22062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063  (exit $ac_status); }; } &&
22064	 { ac_try='test -s conftest.$ac_objext'
22065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066  (eval $ac_try) 2>&5
22067  ac_status=$?
22068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069  (exit $ac_status); }; }; then
22070  ac_cv_cxx_have_gnu_ext_hash_set=yes
22071else
22072  echo "$as_me: failed program was:" >&5
22073sed 's/^/| /' conftest.$ac_ext >&5
22074
22075ac_cv_cxx_have_gnu_ext_hash_set=no
22076fi
22077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22078  ac_ext=c
22079ac_cpp='$CPP $CPPFLAGS'
22080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22082ac_compiler_gnu=$ac_cv_c_compiler_gnu
22083
22084fi
22085echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22086echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22087 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22088 then
22089
22090cat >>confdefs.h <<\_ACEOF
22091#define HAVE_GNU_EXT_HASH_SET 1
22092_ACEOF
22093
22094 else
22095
22096cat >>confdefs.h <<\_ACEOF
22097#define HAVE_GNU_EXT_HASH_SET 0
22098_ACEOF
22099
22100 fi
22101
22102 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22103echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22104if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22105  echo $ECHO_N "(cached) $ECHO_C" >&6
22106else
22107
22108  ac_ext=cc
22109ac_cpp='$CXXCPP $CPPFLAGS'
22110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22113
22114  cat >conftest.$ac_ext <<_ACEOF
22115/* confdefs.h.  */
22116_ACEOF
22117cat confdefs.h >>conftest.$ac_ext
22118cat >>conftest.$ac_ext <<_ACEOF
22119/* end confdefs.h.  */
22120#include <hash_set>
22121int
22122main ()
22123{
22124hash_set<int> t; return 0;
22125  ;
22126  return 0;
22127}
22128_ACEOF
22129rm -f conftest.$ac_objext
22130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22131  (eval $ac_compile) 2>conftest.er1
22132  ac_status=$?
22133  grep -v '^ *+' conftest.er1 >conftest.err
22134  rm -f conftest.er1
22135  cat conftest.err >&5
22136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137  (exit $ac_status); } &&
22138	 { ac_try='test -z "$ac_cxx_werror_flag"
22139			 || test ! -s conftest.err'
22140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141  (eval $ac_try) 2>&5
22142  ac_status=$?
22143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144  (exit $ac_status); }; } &&
22145	 { ac_try='test -s conftest.$ac_objext'
22146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147  (eval $ac_try) 2>&5
22148  ac_status=$?
22149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150  (exit $ac_status); }; }; then
22151  ac_cv_cxx_have_global_hash_set=yes
22152else
22153  echo "$as_me: failed program was:" >&5
22154sed 's/^/| /' conftest.$ac_ext >&5
22155
22156ac_cv_cxx_have_global_hash_set=no
22157fi
22158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22159  ac_ext=c
22160ac_cpp='$CPP $CPPFLAGS'
22161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22163ac_compiler_gnu=$ac_cv_c_compiler_gnu
22164
22165fi
22166echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22167echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22168 if test "$ac_cv_cxx_have_global_hash_set" = yes
22169 then
22170
22171cat >>confdefs.h <<\_ACEOF
22172#define HAVE_GLOBAL_HASH_SET 1
22173_ACEOF
22174
22175 else
22176
22177cat >>confdefs.h <<\_ACEOF
22178#define HAVE_GLOBAL_HASH_SET 0
22179_ACEOF
22180
22181 fi
22182
22183echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22184echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22185if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22186  echo $ECHO_N "(cached) $ECHO_C" >&6
22187else
22188
22189  ac_ext=cc
22190ac_cpp='$CXXCPP $CPPFLAGS'
22191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22194
22195  cat >conftest.$ac_ext <<_ACEOF
22196/* confdefs.h.  */
22197_ACEOF
22198cat confdefs.h >>conftest.$ac_ext
22199cat >>conftest.$ac_ext <<_ACEOF
22200/* end confdefs.h.  */
22201#include <iterator>
22202#ifdef HAVE_NAMESPACES
22203using namespace std;
22204#endif
22205int
22206main ()
22207{
22208iterator<int,int,int> t; return 0;
22209  ;
22210  return 0;
22211}
22212_ACEOF
22213rm -f conftest.$ac_objext
22214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22215  (eval $ac_compile) 2>conftest.er1
22216  ac_status=$?
22217  grep -v '^ *+' conftest.er1 >conftest.err
22218  rm -f conftest.er1
22219  cat conftest.err >&5
22220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221  (exit $ac_status); } &&
22222	 { ac_try='test -z "$ac_cxx_werror_flag"
22223			 || test ! -s conftest.err'
22224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225  (eval $ac_try) 2>&5
22226  ac_status=$?
22227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228  (exit $ac_status); }; } &&
22229	 { ac_try='test -s conftest.$ac_objext'
22230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231  (eval $ac_try) 2>&5
22232  ac_status=$?
22233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234  (exit $ac_status); }; }; then
22235  ac_cv_cxx_have_std_iterator=yes
22236else
22237  echo "$as_me: failed program was:" >&5
22238sed 's/^/| /' conftest.$ac_ext >&5
22239
22240ac_cv_cxx_have_std_iterator=no
22241fi
22242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22243  ac_ext=c
22244ac_cpp='$CPP $CPPFLAGS'
22245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247ac_compiler_gnu=$ac_cv_c_compiler_gnu
22248
22249
22250fi
22251echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22252echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22253if test "$ac_cv_cxx_have_std_iterator" = yes
22254then
22255
22256cat >>confdefs.h <<\_ACEOF
22257#define HAVE_STD_ITERATOR 1
22258_ACEOF
22259
22260else
22261
22262cat >>confdefs.h <<\_ACEOF
22263#define HAVE_STD_ITERATOR 0
22264_ACEOF
22265
22266fi
22267
22268echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22269echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22270if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22271  echo $ECHO_N "(cached) $ECHO_C" >&6
22272else
22273
22274  ac_ext=cc
22275ac_cpp='$CXXCPP $CPPFLAGS'
22276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22279
22280  cat >conftest.$ac_ext <<_ACEOF
22281/* confdefs.h.  */
22282_ACEOF
22283cat confdefs.h >>conftest.$ac_ext
22284cat >>conftest.$ac_ext <<_ACEOF
22285/* end confdefs.h.  */
22286#include <iterator>
22287#ifdef HAVE_NAMESPACES
22288using namespace std;
22289#endif
22290int
22291main ()
22292{
22293bidirectional_iterator<int,int> t; return 0;
22294  ;
22295  return 0;
22296}
22297_ACEOF
22298rm -f conftest.$ac_objext
22299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22300  (eval $ac_compile) 2>conftest.er1
22301  ac_status=$?
22302  grep -v '^ *+' conftest.er1 >conftest.err
22303  rm -f conftest.er1
22304  cat conftest.err >&5
22305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306  (exit $ac_status); } &&
22307	 { ac_try='test -z "$ac_cxx_werror_flag"
22308			 || test ! -s conftest.err'
22309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310  (eval $ac_try) 2>&5
22311  ac_status=$?
22312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313  (exit $ac_status); }; } &&
22314	 { ac_try='test -s conftest.$ac_objext'
22315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316  (eval $ac_try) 2>&5
22317  ac_status=$?
22318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319  (exit $ac_status); }; }; then
22320  ac_cv_cxx_have_bi_iterator=yes
22321else
22322  echo "$as_me: failed program was:" >&5
22323sed 's/^/| /' conftest.$ac_ext >&5
22324
22325ac_cv_cxx_have_bi_iterator=no
22326fi
22327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22328  ac_ext=c
22329ac_cpp='$CPP $CPPFLAGS'
22330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334
22335fi
22336echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22337echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22338if test "$ac_cv_cxx_have_bi_iterator" = yes
22339then
22340
22341cat >>confdefs.h <<\_ACEOF
22342#define HAVE_BI_ITERATOR 1
22343_ACEOF
22344
22345else
22346
22347cat >>confdefs.h <<\_ACEOF
22348#define HAVE_BI_ITERATOR 0
22349_ACEOF
22350
22351fi
22352
22353echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22354echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22355if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22356  echo $ECHO_N "(cached) $ECHO_C" >&6
22357else
22358
22359  ac_ext=cc
22360ac_cpp='$CXXCPP $CPPFLAGS'
22361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22364
22365  cat >conftest.$ac_ext <<_ACEOF
22366/* confdefs.h.  */
22367_ACEOF
22368cat confdefs.h >>conftest.$ac_ext
22369cat >>conftest.$ac_ext <<_ACEOF
22370/* end confdefs.h.  */
22371#include <iterator>
22372#ifdef HAVE_NAMESPACES
22373using namespace std;
22374#endif
22375int
22376main ()
22377{
22378forward_iterator<int,int> t; return 0;
22379  ;
22380  return 0;
22381}
22382_ACEOF
22383rm -f conftest.$ac_objext
22384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385  (eval $ac_compile) 2>conftest.er1
22386  ac_status=$?
22387  grep -v '^ *+' conftest.er1 >conftest.err
22388  rm -f conftest.er1
22389  cat conftest.err >&5
22390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391  (exit $ac_status); } &&
22392	 { ac_try='test -z "$ac_cxx_werror_flag"
22393			 || test ! -s conftest.err'
22394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395  (eval $ac_try) 2>&5
22396  ac_status=$?
22397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398  (exit $ac_status); }; } &&
22399	 { ac_try='test -s conftest.$ac_objext'
22400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401  (eval $ac_try) 2>&5
22402  ac_status=$?
22403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404  (exit $ac_status); }; }; then
22405  ac_cv_cxx_have_fwd_iterator=yes
22406else
22407  echo "$as_me: failed program was:" >&5
22408sed 's/^/| /' conftest.$ac_ext >&5
22409
22410ac_cv_cxx_have_fwd_iterator=no
22411fi
22412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413  ac_ext=c
22414ac_cpp='$CPP $CPPFLAGS'
22415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22417ac_compiler_gnu=$ac_cv_c_compiler_gnu
22418
22419
22420fi
22421echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22422echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22423if test "$ac_cv_cxx_have_fwd_iterator" = yes
22424then
22425
22426cat >>confdefs.h <<\_ACEOF
22427#define HAVE_FWD_ITERATOR 1
22428_ACEOF
22429
22430else
22431
22432cat >>confdefs.h <<\_ACEOF
22433#define HAVE_FWD_ITERATOR 0
22434_ACEOF
22435
22436fi
22437
22438
22439
22440echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22441echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22442if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22443  echo $ECHO_N "(cached) $ECHO_C" >&6
22444else
22445  ac_ext=cc
22446ac_cpp='$CXXCPP $CPPFLAGS'
22447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22450
22451   cat >conftest.$ac_ext <<_ACEOF
22452/* confdefs.h.  */
22453_ACEOF
22454cat confdefs.h >>conftest.$ac_ext
22455cat >>conftest.$ac_ext <<_ACEOF
22456/* end confdefs.h.  */
22457#include <math.h>
22458int
22459main ()
22460{
22461float f; isnan(f);
22462  ;
22463  return 0;
22464}
22465_ACEOF
22466rm -f conftest.$ac_objext
22467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22468  (eval $ac_compile) 2>conftest.er1
22469  ac_status=$?
22470  grep -v '^ *+' conftest.er1 >conftest.err
22471  rm -f conftest.er1
22472  cat conftest.err >&5
22473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474  (exit $ac_status); } &&
22475	 { ac_try='test -z "$ac_cxx_werror_flag"
22476			 || test ! -s conftest.err'
22477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478  (eval $ac_try) 2>&5
22479  ac_status=$?
22480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481  (exit $ac_status); }; } &&
22482	 { ac_try='test -s conftest.$ac_objext'
22483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484  (eval $ac_try) 2>&5
22485  ac_status=$?
22486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487  (exit $ac_status); }; }; then
22488  ac_cv_func_isnan_in_math_h=yes
22489else
22490  echo "$as_me: failed program was:" >&5
22491sed 's/^/| /' conftest.$ac_ext >&5
22492
22493ac_cv_func_isnan_in_math_h=no
22494fi
22495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22496  ac_ext=c
22497ac_cpp='$CPP $CPPFLAGS'
22498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22500ac_compiler_gnu=$ac_cv_c_compiler_gnu
22501
22502fi
22503echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22504echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22505
22506
22507if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
22508
22509cat >>confdefs.h <<\_ACEOF
22510#define HAVE_ISNAN_IN_MATH_H 1
22511_ACEOF
22512
22513fi
22514
22515echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22516echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22517if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22518  echo $ECHO_N "(cached) $ECHO_C" >&6
22519else
22520  ac_ext=cc
22521ac_cpp='$CXXCPP $CPPFLAGS'
22522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22525
22526   cat >conftest.$ac_ext <<_ACEOF
22527/* confdefs.h.  */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h.  */
22532#include <cmath>
22533int
22534main ()
22535{
22536float f; isnan(f);
22537  ;
22538  return 0;
22539}
22540_ACEOF
22541rm -f conftest.$ac_objext
22542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543  (eval $ac_compile) 2>conftest.er1
22544  ac_status=$?
22545  grep -v '^ *+' conftest.er1 >conftest.err
22546  rm -f conftest.er1
22547  cat conftest.err >&5
22548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549  (exit $ac_status); } &&
22550	 { ac_try='test -z "$ac_cxx_werror_flag"
22551			 || test ! -s conftest.err'
22552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553  (eval $ac_try) 2>&5
22554  ac_status=$?
22555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556  (exit $ac_status); }; } &&
22557	 { ac_try='test -s conftest.$ac_objext'
22558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559  (eval $ac_try) 2>&5
22560  ac_status=$?
22561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562  (exit $ac_status); }; }; then
22563  ac_cv_func_isnan_in_cmath=yes
22564else
22565  echo "$as_me: failed program was:" >&5
22566sed 's/^/| /' conftest.$ac_ext >&5
22567
22568ac_cv_func_isnan_in_cmath=no
22569fi
22570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22571  ac_ext=c
22572ac_cpp='$CPP $CPPFLAGS'
22573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22575ac_compiler_gnu=$ac_cv_c_compiler_gnu
22576
22577fi
22578echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22579echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22580
22581if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
22582
22583cat >>confdefs.h <<\_ACEOF
22584#define HAVE_ISNAN_IN_CMATH 1
22585_ACEOF
22586
22587fi
22588
22589echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22590echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22591if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22592  echo $ECHO_N "(cached) $ECHO_C" >&6
22593else
22594  ac_ext=cc
22595ac_cpp='$CXXCPP $CPPFLAGS'
22596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22599
22600   cat >conftest.$ac_ext <<_ACEOF
22601/* confdefs.h.  */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h.  */
22606#include <cmath>
22607int
22608main ()
22609{
22610float f; std::isnan(f);
22611  ;
22612  return 0;
22613}
22614_ACEOF
22615rm -f conftest.$ac_objext
22616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617  (eval $ac_compile) 2>conftest.er1
22618  ac_status=$?
22619  grep -v '^ *+' conftest.er1 >conftest.err
22620  rm -f conftest.er1
22621  cat conftest.err >&5
22622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623  (exit $ac_status); } &&
22624	 { ac_try='test -z "$ac_cxx_werror_flag"
22625			 || test ! -s conftest.err'
22626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627  (eval $ac_try) 2>&5
22628  ac_status=$?
22629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630  (exit $ac_status); }; } &&
22631	 { ac_try='test -s conftest.$ac_objext'
22632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22633  (eval $ac_try) 2>&5
22634  ac_status=$?
22635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636  (exit $ac_status); }; }; then
22637  ac_cv_func_std_isnan_in_cmath=yes
22638else
22639  echo "$as_me: failed program was:" >&5
22640sed 's/^/| /' conftest.$ac_ext >&5
22641
22642ac_cv_func_std_isnan_in_cmath=no
22643fi
22644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22645  ac_ext=c
22646ac_cpp='$CPP $CPPFLAGS'
22647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22649ac_compiler_gnu=$ac_cv_c_compiler_gnu
22650
22651fi
22652echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22653echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22654
22655if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
22656
22657cat >>confdefs.h <<\_ACEOF
22658#define HAVE_STD_ISNAN_IN_CMATH 1
22659_ACEOF
22660
22661fi
22662
22663
22664echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22665echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22666if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22667  echo $ECHO_N "(cached) $ECHO_C" >&6
22668else
22669  ac_ext=cc
22670ac_cpp='$CXXCPP $CPPFLAGS'
22671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22674
22675   cat >conftest.$ac_ext <<_ACEOF
22676/* confdefs.h.  */
22677_ACEOF
22678cat confdefs.h >>conftest.$ac_ext
22679cat >>conftest.$ac_ext <<_ACEOF
22680/* end confdefs.h.  */
22681#include <math.h>
22682int
22683main ()
22684{
22685float f; isinf(f);
22686  ;
22687  return 0;
22688}
22689_ACEOF
22690rm -f conftest.$ac_objext
22691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22692  (eval $ac_compile) 2>conftest.er1
22693  ac_status=$?
22694  grep -v '^ *+' conftest.er1 >conftest.err
22695  rm -f conftest.er1
22696  cat conftest.err >&5
22697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698  (exit $ac_status); } &&
22699	 { ac_try='test -z "$ac_cxx_werror_flag"
22700			 || test ! -s conftest.err'
22701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702  (eval $ac_try) 2>&5
22703  ac_status=$?
22704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705  (exit $ac_status); }; } &&
22706	 { ac_try='test -s conftest.$ac_objext'
22707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708  (eval $ac_try) 2>&5
22709  ac_status=$?
22710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711  (exit $ac_status); }; }; then
22712  ac_cv_func_isinf_in_math_h=yes
22713else
22714  echo "$as_me: failed program was:" >&5
22715sed 's/^/| /' conftest.$ac_ext >&5
22716
22717ac_cv_func_isinf_in_math_h=no
22718fi
22719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22720  ac_ext=c
22721ac_cpp='$CPP $CPPFLAGS'
22722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22724ac_compiler_gnu=$ac_cv_c_compiler_gnu
22725
22726fi
22727echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22728echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22729
22730if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
22731
22732cat >>confdefs.h <<\_ACEOF
22733#define HAVE_ISINF_IN_MATH_H 1
22734_ACEOF
22735
22736fi
22737
22738echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22739echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22740if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22741  echo $ECHO_N "(cached) $ECHO_C" >&6
22742else
22743  ac_ext=cc
22744ac_cpp='$CXXCPP $CPPFLAGS'
22745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22748
22749   cat >conftest.$ac_ext <<_ACEOF
22750/* confdefs.h.  */
22751_ACEOF
22752cat confdefs.h >>conftest.$ac_ext
22753cat >>conftest.$ac_ext <<_ACEOF
22754/* end confdefs.h.  */
22755#include <cmath>
22756int
22757main ()
22758{
22759float f; isinf(f);
22760  ;
22761  return 0;
22762}
22763_ACEOF
22764rm -f conftest.$ac_objext
22765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766  (eval $ac_compile) 2>conftest.er1
22767  ac_status=$?
22768  grep -v '^ *+' conftest.er1 >conftest.err
22769  rm -f conftest.er1
22770  cat conftest.err >&5
22771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772  (exit $ac_status); } &&
22773	 { ac_try='test -z "$ac_cxx_werror_flag"
22774			 || test ! -s conftest.err'
22775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776  (eval $ac_try) 2>&5
22777  ac_status=$?
22778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779  (exit $ac_status); }; } &&
22780	 { ac_try='test -s conftest.$ac_objext'
22781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782  (eval $ac_try) 2>&5
22783  ac_status=$?
22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785  (exit $ac_status); }; }; then
22786  ac_cv_func_isinf_in_cmath=yes
22787else
22788  echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
22791ac_cv_func_isinf_in_cmath=no
22792fi
22793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22794  ac_ext=c
22795ac_cpp='$CPP $CPPFLAGS'
22796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22798ac_compiler_gnu=$ac_cv_c_compiler_gnu
22799
22800fi
22801echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22802echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22803
22804if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
22805
22806cat >>confdefs.h <<\_ACEOF
22807#define HAVE_ISINF_IN_CMATH 1
22808_ACEOF
22809
22810fi
22811
22812echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22813echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22814if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22815  echo $ECHO_N "(cached) $ECHO_C" >&6
22816else
22817  ac_ext=cc
22818ac_cpp='$CXXCPP $CPPFLAGS'
22819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22822
22823   cat >conftest.$ac_ext <<_ACEOF
22824/* confdefs.h.  */
22825_ACEOF
22826cat confdefs.h >>conftest.$ac_ext
22827cat >>conftest.$ac_ext <<_ACEOF
22828/* end confdefs.h.  */
22829#include <cmath>
22830int
22831main ()
22832{
22833float f; std::isinf(f)}
22834  ;
22835  return 0;
22836}
22837_ACEOF
22838rm -f conftest.$ac_objext
22839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22840  (eval $ac_compile) 2>conftest.er1
22841  ac_status=$?
22842  grep -v '^ *+' conftest.er1 >conftest.err
22843  rm -f conftest.er1
22844  cat conftest.err >&5
22845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846  (exit $ac_status); } &&
22847	 { ac_try='test -z "$ac_cxx_werror_flag"
22848			 || test ! -s conftest.err'
22849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850  (eval $ac_try) 2>&5
22851  ac_status=$?
22852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853  (exit $ac_status); }; } &&
22854	 { ac_try='test -s conftest.$ac_objext'
22855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856  (eval $ac_try) 2>&5
22857  ac_status=$?
22858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859  (exit $ac_status); }; }; then
22860  ac_cv_func_std_isinf_in_cmath=yes
22861else
22862  echo "$as_me: failed program was:" >&5
22863sed 's/^/| /' conftest.$ac_ext >&5
22864
22865ac_cv_func_std_isinf_in_cmath=no
22866fi
22867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22868  ac_ext=c
22869ac_cpp='$CPP $CPPFLAGS'
22870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22872ac_compiler_gnu=$ac_cv_c_compiler_gnu
22873
22874fi
22875echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22876echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22877
22878if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
22879
22880cat >>confdefs.h <<\_ACEOF
22881#define HAVE_STD_ISINF_IN_CMATH 1
22882_ACEOF
22883
22884fi
22885
22886echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22887echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22888if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22889  echo $ECHO_N "(cached) $ECHO_C" >&6
22890else
22891  ac_ext=cc
22892ac_cpp='$CXXCPP $CPPFLAGS'
22893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22896
22897   cat >conftest.$ac_ext <<_ACEOF
22898/* confdefs.h.  */
22899_ACEOF
22900cat confdefs.h >>conftest.$ac_ext
22901cat >>conftest.$ac_ext <<_ACEOF
22902/* end confdefs.h.  */
22903#include <ieeefp.h>
22904int
22905main ()
22906{
22907float f; finite(f);
22908  ;
22909  return 0;
22910}
22911_ACEOF
22912rm -f conftest.$ac_objext
22913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22914  (eval $ac_compile) 2>conftest.er1
22915  ac_status=$?
22916  grep -v '^ *+' conftest.er1 >conftest.err
22917  rm -f conftest.er1
22918  cat conftest.err >&5
22919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920  (exit $ac_status); } &&
22921	 { ac_try='test -z "$ac_cxx_werror_flag"
22922			 || test ! -s conftest.err'
22923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924  (eval $ac_try) 2>&5
22925  ac_status=$?
22926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927  (exit $ac_status); }; } &&
22928	 { ac_try='test -s conftest.$ac_objext'
22929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930  (eval $ac_try) 2>&5
22931  ac_status=$?
22932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933  (exit $ac_status); }; }; then
22934  ac_cv_func_finite_in_ieeefp_h=yes
22935else
22936  echo "$as_me: failed program was:" >&5
22937sed 's/^/| /' conftest.$ac_ext >&5
22938
22939ac_cv_func_finite_in_ieeefp_h=no
22940fi
22941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22942  ac_ext=c
22943ac_cpp='$CPP $CPPFLAGS'
22944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22946ac_compiler_gnu=$ac_cv_c_compiler_gnu
22947
22948fi
22949echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22950echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22951
22952if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
22953
22954cat >>confdefs.h <<\_ACEOF
22955#define HAVE_FINITE_IN_IEEEFP_H 1
22956_ACEOF
22957
22958fi
22959
22960
22961
22962echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
22963echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
22964if test "${ac_cv_func_rand48+set}" = set; then
22965  echo $ECHO_N "(cached) $ECHO_C" >&6
22966else
22967  ac_ext=cc
22968ac_cpp='$CXXCPP $CPPFLAGS'
22969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22972
22973   cat >conftest.$ac_ext <<_ACEOF
22974/* confdefs.h.  */
22975_ACEOF
22976cat confdefs.h >>conftest.$ac_ext
22977cat >>conftest.$ac_ext <<_ACEOF
22978/* end confdefs.h.  */
22979#include <stdlib.h>
22980int
22981main ()
22982{
22983srand48(0);lrand48();drand48();
22984  ;
22985  return 0;
22986}
22987_ACEOF
22988rm -f conftest.$ac_objext
22989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990  (eval $ac_compile) 2>conftest.er1
22991  ac_status=$?
22992  grep -v '^ *+' conftest.er1 >conftest.err
22993  rm -f conftest.er1
22994  cat conftest.err >&5
22995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996  (exit $ac_status); } &&
22997	 { ac_try='test -z "$ac_cxx_werror_flag"
22998			 || test ! -s conftest.err'
22999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000  (eval $ac_try) 2>&5
23001  ac_status=$?
23002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003  (exit $ac_status); }; } &&
23004	 { ac_try='test -s conftest.$ac_objext'
23005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006  (eval $ac_try) 2>&5
23007  ac_status=$?
23008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009  (exit $ac_status); }; }; then
23010  ac_cv_func_rand48=yes
23011else
23012  echo "$as_me: failed program was:" >&5
23013sed 's/^/| /' conftest.$ac_ext >&5
23014
23015ac_cv_func_rand48=no
23016fi
23017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23018  ac_ext=c
23019ac_cpp='$CPP $CPPFLAGS'
23020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23022ac_compiler_gnu=$ac_cv_c_compiler_gnu
23023
23024fi
23025echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23026echo "${ECHO_T}$ac_cv_func_rand48" >&6
23027
23028if test "$ac_cv_func_rand48" = "yes" ; then
23029
23030cat >>confdefs.h <<\_ACEOF
23031#define HAVE_RAND48 1
23032_ACEOF
23033
23034fi
23035
23036
23037# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23038# for constant arguments.  Useless!
23039echo "$as_me:$LINENO: checking for working alloca.h" >&5
23040echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23041if test "${ac_cv_working_alloca_h+set}" = set; then
23042  echo $ECHO_N "(cached) $ECHO_C" >&6
23043else
23044  cat >conftest.$ac_ext <<_ACEOF
23045/* confdefs.h.  */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h.  */
23050#include <alloca.h>
23051int
23052main ()
23053{
23054char *p = (char *) alloca (2 * sizeof (int));
23055  ;
23056  return 0;
23057}
23058_ACEOF
23059rm -f conftest.$ac_objext conftest$ac_exeext
23060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061  (eval $ac_link) 2>conftest.er1
23062  ac_status=$?
23063  grep -v '^ *+' conftest.er1 >conftest.err
23064  rm -f conftest.er1
23065  cat conftest.err >&5
23066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067  (exit $ac_status); } &&
23068	 { ac_try='test -z "$ac_c_werror_flag"
23069			 || test ! -s conftest.err'
23070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071  (eval $ac_try) 2>&5
23072  ac_status=$?
23073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074  (exit $ac_status); }; } &&
23075	 { ac_try='test -s conftest$ac_exeext'
23076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077  (eval $ac_try) 2>&5
23078  ac_status=$?
23079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080  (exit $ac_status); }; }; then
23081  ac_cv_working_alloca_h=yes
23082else
23083  echo "$as_me: failed program was:" >&5
23084sed 's/^/| /' conftest.$ac_ext >&5
23085
23086ac_cv_working_alloca_h=no
23087fi
23088rm -f conftest.err conftest.$ac_objext \
23089      conftest$ac_exeext conftest.$ac_ext
23090fi
23091echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23092echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23093if test $ac_cv_working_alloca_h = yes; then
23094
23095cat >>confdefs.h <<\_ACEOF
23096#define HAVE_ALLOCA_H 1
23097_ACEOF
23098
23099fi
23100
23101echo "$as_me:$LINENO: checking for alloca" >&5
23102echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23103if test "${ac_cv_func_alloca_works+set}" = set; then
23104  echo $ECHO_N "(cached) $ECHO_C" >&6
23105else
23106  cat >conftest.$ac_ext <<_ACEOF
23107/* confdefs.h.  */
23108_ACEOF
23109cat confdefs.h >>conftest.$ac_ext
23110cat >>conftest.$ac_ext <<_ACEOF
23111/* end confdefs.h.  */
23112#ifdef __GNUC__
23113# define alloca __builtin_alloca
23114#else
23115# ifdef _MSC_VER
23116#  include <malloc.h>
23117#  define alloca _alloca
23118# else
23119#  if HAVE_ALLOCA_H
23120#   include <alloca.h>
23121#  else
23122#   ifdef _AIX
23123 #pragma alloca
23124#   else
23125#    ifndef alloca /* predefined by HP cc +Olibcalls */
23126char *alloca ();
23127#    endif
23128#   endif
23129#  endif
23130# endif
23131#endif
23132
23133int
23134main ()
23135{
23136char *p = (char *) alloca (1);
23137  ;
23138  return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext conftest$ac_exeext
23142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23143  (eval $ac_link) 2>conftest.er1
23144  ac_status=$?
23145  grep -v '^ *+' conftest.er1 >conftest.err
23146  rm -f conftest.er1
23147  cat conftest.err >&5
23148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149  (exit $ac_status); } &&
23150	 { ac_try='test -z "$ac_c_werror_flag"
23151			 || test ! -s conftest.err'
23152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153  (eval $ac_try) 2>&5
23154  ac_status=$?
23155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156  (exit $ac_status); }; } &&
23157	 { ac_try='test -s conftest$ac_exeext'
23158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159  (eval $ac_try) 2>&5
23160  ac_status=$?
23161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162  (exit $ac_status); }; }; then
23163  ac_cv_func_alloca_works=yes
23164else
23165  echo "$as_me: failed program was:" >&5
23166sed 's/^/| /' conftest.$ac_ext >&5
23167
23168ac_cv_func_alloca_works=no
23169fi
23170rm -f conftest.err conftest.$ac_objext \
23171      conftest$ac_exeext conftest.$ac_ext
23172fi
23173echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23174echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23175
23176if test $ac_cv_func_alloca_works = yes; then
23177
23178cat >>confdefs.h <<\_ACEOF
23179#define HAVE_ALLOCA 1
23180_ACEOF
23181
23182else
23183  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23184# that cause trouble.  Some versions do not even contain alloca or
23185# contain a buggy version.  If you still want to use their alloca,
23186# use ar to extract alloca.o from them instead of compiling alloca.c.
23187
23188ALLOCA=alloca.$ac_objext
23189
23190cat >>confdefs.h <<\_ACEOF
23191#define C_ALLOCA 1
23192_ACEOF
23193
23194
23195echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23196echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23197if test "${ac_cv_os_cray+set}" = set; then
23198  echo $ECHO_N "(cached) $ECHO_C" >&6
23199else
23200  cat >conftest.$ac_ext <<_ACEOF
23201/* confdefs.h.  */
23202_ACEOF
23203cat confdefs.h >>conftest.$ac_ext
23204cat >>conftest.$ac_ext <<_ACEOF
23205/* end confdefs.h.  */
23206#if defined(CRAY) && ! defined(CRAY2)
23207webecray
23208#else
23209wenotbecray
23210#endif
23211
23212_ACEOF
23213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23214  $EGREP "webecray" >/dev/null 2>&1; then
23215  ac_cv_os_cray=yes
23216else
23217  ac_cv_os_cray=no
23218fi
23219rm -f conftest*
23220
23221fi
23222echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23223echo "${ECHO_T}$ac_cv_os_cray" >&6
23224if test $ac_cv_os_cray = yes; then
23225  for ac_func in _getb67 GETB67 getb67; do
23226    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227echo "$as_me:$LINENO: checking for $ac_func" >&5
23228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23229if eval "test \"\${$as_ac_var+set}\" = set"; then
23230  echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232  cat >conftest.$ac_ext <<_ACEOF
23233/* confdefs.h.  */
23234_ACEOF
23235cat confdefs.h >>conftest.$ac_ext
23236cat >>conftest.$ac_ext <<_ACEOF
23237/* end confdefs.h.  */
23238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23240#define $ac_func innocuous_$ac_func
23241
23242/* System header to define __stub macros and hopefully few prototypes,
23243    which can conflict with char $ac_func (); below.
23244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23245    <limits.h> exists even on freestanding compilers.  */
23246
23247#ifdef __STDC__
23248# include <limits.h>
23249#else
23250# include <assert.h>
23251#endif
23252
23253#undef $ac_func
23254
23255/* Override any gcc2 internal prototype to avoid an error.  */
23256#ifdef __cplusplus
23257extern "C"
23258{
23259#endif
23260/* We use char because int might match the return type of a gcc2
23261   builtin and then its argument prototype would still apply.  */
23262char $ac_func ();
23263/* The GNU C library defines this for functions which it implements
23264    to always fail with ENOSYS.  Some functions are actually named
23265    something starting with __ and the normal name is an alias.  */
23266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23267choke me
23268#else
23269char (*f) () = $ac_func;
23270#endif
23271#ifdef __cplusplus
23272}
23273#endif
23274
23275int
23276main ()
23277{
23278return f != $ac_func;
23279  ;
23280  return 0;
23281}
23282_ACEOF
23283rm -f conftest.$ac_objext conftest$ac_exeext
23284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23285  (eval $ac_link) 2>conftest.er1
23286  ac_status=$?
23287  grep -v '^ *+' conftest.er1 >conftest.err
23288  rm -f conftest.er1
23289  cat conftest.err >&5
23290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291  (exit $ac_status); } &&
23292	 { ac_try='test -z "$ac_c_werror_flag"
23293			 || test ! -s conftest.err'
23294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295  (eval $ac_try) 2>&5
23296  ac_status=$?
23297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298  (exit $ac_status); }; } &&
23299	 { ac_try='test -s conftest$ac_exeext'
23300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301  (eval $ac_try) 2>&5
23302  ac_status=$?
23303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304  (exit $ac_status); }; }; then
23305  eval "$as_ac_var=yes"
23306else
23307  echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310eval "$as_ac_var=no"
23311fi
23312rm -f conftest.err conftest.$ac_objext \
23313      conftest$ac_exeext conftest.$ac_ext
23314fi
23315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23317if test `eval echo '${'$as_ac_var'}'` = yes; then
23318
23319cat >>confdefs.h <<_ACEOF
23320#define CRAY_STACKSEG_END $ac_func
23321_ACEOF
23322
23323    break
23324fi
23325
23326  done
23327fi
23328
23329echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23330echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23331if test "${ac_cv_c_stack_direction+set}" = set; then
23332  echo $ECHO_N "(cached) $ECHO_C" >&6
23333else
23334  if test "$cross_compiling" = yes; then
23335  ac_cv_c_stack_direction=0
23336else
23337  cat >conftest.$ac_ext <<_ACEOF
23338/* confdefs.h.  */
23339_ACEOF
23340cat confdefs.h >>conftest.$ac_ext
23341cat >>conftest.$ac_ext <<_ACEOF
23342/* end confdefs.h.  */
23343int
23344find_stack_direction ()
23345{
23346  static char *addr = 0;
23347  auto char dummy;
23348  if (addr == 0)
23349    {
23350      addr = &dummy;
23351      return find_stack_direction ();
23352    }
23353  else
23354    return (&dummy > addr) ? 1 : -1;
23355}
23356
23357int
23358main ()
23359{
23360  exit (find_stack_direction () < 0);
23361}
23362_ACEOF
23363rm -f conftest$ac_exeext
23364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365  (eval $ac_link) 2>&5
23366  ac_status=$?
23367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370  (eval $ac_try) 2>&5
23371  ac_status=$?
23372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373  (exit $ac_status); }; }; then
23374  ac_cv_c_stack_direction=1
23375else
23376  echo "$as_me: program exited with status $ac_status" >&5
23377echo "$as_me: failed program was:" >&5
23378sed 's/^/| /' conftest.$ac_ext >&5
23379
23380( exit $ac_status )
23381ac_cv_c_stack_direction=-1
23382fi
23383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23384fi
23385fi
23386echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23387echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23388
23389cat >>confdefs.h <<_ACEOF
23390#define STACK_DIRECTION $ac_cv_c_stack_direction
23391_ACEOF
23392
23393
23394fi
23395
23396
23397
23398for ac_header in stdlib.h unistd.h
23399do
23400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23401if eval "test \"\${$as_ac_Header+set}\" = set"; then
23402  echo "$as_me:$LINENO: checking for $ac_header" >&5
23403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23404if eval "test \"\${$as_ac_Header+set}\" = set"; then
23405  echo $ECHO_N "(cached) $ECHO_C" >&6
23406fi
23407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23409else
23410  # Is the header compilable?
23411echo "$as_me:$LINENO: checking $ac_header usability" >&5
23412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23413cat >conftest.$ac_ext <<_ACEOF
23414/* confdefs.h.  */
23415_ACEOF
23416cat confdefs.h >>conftest.$ac_ext
23417cat >>conftest.$ac_ext <<_ACEOF
23418/* end confdefs.h.  */
23419$ac_includes_default
23420#include <$ac_header>
23421_ACEOF
23422rm -f conftest.$ac_objext
23423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23424  (eval $ac_compile) 2>conftest.er1
23425  ac_status=$?
23426  grep -v '^ *+' conftest.er1 >conftest.err
23427  rm -f conftest.er1
23428  cat conftest.err >&5
23429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430  (exit $ac_status); } &&
23431	 { ac_try='test -z "$ac_c_werror_flag"
23432			 || test ! -s conftest.err'
23433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434  (eval $ac_try) 2>&5
23435  ac_status=$?
23436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437  (exit $ac_status); }; } &&
23438	 { ac_try='test -s conftest.$ac_objext'
23439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440  (eval $ac_try) 2>&5
23441  ac_status=$?
23442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443  (exit $ac_status); }; }; then
23444  ac_header_compiler=yes
23445else
23446  echo "$as_me: failed program was:" >&5
23447sed 's/^/| /' conftest.$ac_ext >&5
23448
23449ac_header_compiler=no
23450fi
23451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23453echo "${ECHO_T}$ac_header_compiler" >&6
23454
23455# Is the header present?
23456echo "$as_me:$LINENO: checking $ac_header presence" >&5
23457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23458cat >conftest.$ac_ext <<_ACEOF
23459/* confdefs.h.  */
23460_ACEOF
23461cat confdefs.h >>conftest.$ac_ext
23462cat >>conftest.$ac_ext <<_ACEOF
23463/* end confdefs.h.  */
23464#include <$ac_header>
23465_ACEOF
23466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23468  ac_status=$?
23469  grep -v '^ *+' conftest.er1 >conftest.err
23470  rm -f conftest.er1
23471  cat conftest.err >&5
23472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473  (exit $ac_status); } >/dev/null; then
23474  if test -s conftest.err; then
23475    ac_cpp_err=$ac_c_preproc_warn_flag
23476    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23477  else
23478    ac_cpp_err=
23479  fi
23480else
23481  ac_cpp_err=yes
23482fi
23483if test -z "$ac_cpp_err"; then
23484  ac_header_preproc=yes
23485else
23486  echo "$as_me: failed program was:" >&5
23487sed 's/^/| /' conftest.$ac_ext >&5
23488
23489  ac_header_preproc=no
23490fi
23491rm -f conftest.err conftest.$ac_ext
23492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23493echo "${ECHO_T}$ac_header_preproc" >&6
23494
23495# So?  What about this header?
23496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23497  yes:no: )
23498    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23500    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23502    ac_header_preproc=yes
23503    ;;
23504  no:yes:* )
23505    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23507    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23508echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23509    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23511    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23512echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23513    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23515    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23517    (
23518      cat <<\_ASBOX
23519## ----------------------------------- ##
23520## Report this to llvmbugs@cs.uiuc.edu ##
23521## ----------------------------------- ##
23522_ASBOX
23523    ) |
23524      sed "s/^/$as_me: WARNING:     /" >&2
23525    ;;
23526esac
23527echo "$as_me:$LINENO: checking for $ac_header" >&5
23528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23529if eval "test \"\${$as_ac_Header+set}\" = set"; then
23530  echo $ECHO_N "(cached) $ECHO_C" >&6
23531else
23532  eval "$as_ac_Header=\$ac_header_preproc"
23533fi
23534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23536
23537fi
23538if test `eval echo '${'$as_ac_Header'}'` = yes; then
23539  cat >>confdefs.h <<_ACEOF
23540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23541_ACEOF
23542
23543fi
23544
23545done
23546
23547
23548for ac_func in getpagesize
23549do
23550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23551echo "$as_me:$LINENO: checking for $ac_func" >&5
23552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23553if eval "test \"\${$as_ac_var+set}\" = set"; then
23554  echo $ECHO_N "(cached) $ECHO_C" >&6
23555else
23556  cat >conftest.$ac_ext <<_ACEOF
23557/* confdefs.h.  */
23558_ACEOF
23559cat confdefs.h >>conftest.$ac_ext
23560cat >>conftest.$ac_ext <<_ACEOF
23561/* end confdefs.h.  */
23562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23563   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23564#define $ac_func innocuous_$ac_func
23565
23566/* System header to define __stub macros and hopefully few prototypes,
23567    which can conflict with char $ac_func (); below.
23568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23569    <limits.h> exists even on freestanding compilers.  */
23570
23571#ifdef __STDC__
23572# include <limits.h>
23573#else
23574# include <assert.h>
23575#endif
23576
23577#undef $ac_func
23578
23579/* Override any gcc2 internal prototype to avoid an error.  */
23580#ifdef __cplusplus
23581extern "C"
23582{
23583#endif
23584/* We use char because int might match the return type of a gcc2
23585   builtin and then its argument prototype would still apply.  */
23586char $ac_func ();
23587/* The GNU C library defines this for functions which it implements
23588    to always fail with ENOSYS.  Some functions are actually named
23589    something starting with __ and the normal name is an alias.  */
23590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23591choke me
23592#else
23593char (*f) () = $ac_func;
23594#endif
23595#ifdef __cplusplus
23596}
23597#endif
23598
23599int
23600main ()
23601{
23602return f != $ac_func;
23603  ;
23604  return 0;
23605}
23606_ACEOF
23607rm -f conftest.$ac_objext conftest$ac_exeext
23608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23609  (eval $ac_link) 2>conftest.er1
23610  ac_status=$?
23611  grep -v '^ *+' conftest.er1 >conftest.err
23612  rm -f conftest.er1
23613  cat conftest.err >&5
23614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615  (exit $ac_status); } &&
23616	 { ac_try='test -z "$ac_c_werror_flag"
23617			 || test ! -s conftest.err'
23618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619  (eval $ac_try) 2>&5
23620  ac_status=$?
23621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622  (exit $ac_status); }; } &&
23623	 { ac_try='test -s conftest$ac_exeext'
23624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625  (eval $ac_try) 2>&5
23626  ac_status=$?
23627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628  (exit $ac_status); }; }; then
23629  eval "$as_ac_var=yes"
23630else
23631  echo "$as_me: failed program was:" >&5
23632sed 's/^/| /' conftest.$ac_ext >&5
23633
23634eval "$as_ac_var=no"
23635fi
23636rm -f conftest.err conftest.$ac_objext \
23637      conftest$ac_exeext conftest.$ac_ext
23638fi
23639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23641if test `eval echo '${'$as_ac_var'}'` = yes; then
23642  cat >>confdefs.h <<_ACEOF
23643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23644_ACEOF
23645
23646fi
23647done
23648
23649echo "$as_me:$LINENO: checking for working mmap" >&5
23650echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23651if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23652  echo $ECHO_N "(cached) $ECHO_C" >&6
23653else
23654  if test "$cross_compiling" = yes; then
23655  ac_cv_func_mmap_fixed_mapped=no
23656else
23657  cat >conftest.$ac_ext <<_ACEOF
23658/* confdefs.h.  */
23659_ACEOF
23660cat confdefs.h >>conftest.$ac_ext
23661cat >>conftest.$ac_ext <<_ACEOF
23662/* end confdefs.h.  */
23663$ac_includes_default
23664/* malloc might have been renamed as rpl_malloc. */
23665#undef malloc
23666
23667/* Thanks to Mike Haertel and Jim Avera for this test.
23668   Here is a matrix of mmap possibilities:
23669	mmap private not fixed
23670	mmap private fixed at somewhere currently unmapped
23671	mmap private fixed at somewhere already mapped
23672	mmap shared not fixed
23673	mmap shared fixed at somewhere currently unmapped
23674	mmap shared fixed at somewhere already mapped
23675   For private mappings, we should verify that changes cannot be read()
23676   back from the file, nor mmap's back from the file at a different
23677   address.  (There have been systems where private was not correctly
23678   implemented like the infamous i386 svr4.0, and systems where the
23679   VM page cache was not coherent with the file system buffer cache
23680   like early versions of FreeBSD and possibly contemporary NetBSD.)
23681   For shared mappings, we should conversely verify that changes get
23682   propagated back to all the places they're supposed to be.
23683
23684   Grep wants private fixed already mapped.
23685   The main things grep needs to know about mmap are:
23686   * does it exist and is it safe to write into the mmap'd area
23687   * how to use it (BSD variants)  */
23688
23689#include <fcntl.h>
23690#include <sys/mman.h>
23691
23692#if !STDC_HEADERS && !HAVE_STDLIB_H
23693char *malloc ();
23694#endif
23695
23696/* This mess was copied from the GNU getpagesize.h.  */
23697#if !HAVE_GETPAGESIZE
23698/* Assume that all systems that can run configure have sys/param.h.  */
23699# if !HAVE_SYS_PARAM_H
23700#  define HAVE_SYS_PARAM_H 1
23701# endif
23702
23703# ifdef _SC_PAGESIZE
23704#  define getpagesize() sysconf(_SC_PAGESIZE)
23705# else /* no _SC_PAGESIZE */
23706#  if HAVE_SYS_PARAM_H
23707#   include <sys/param.h>
23708#   ifdef EXEC_PAGESIZE
23709#    define getpagesize() EXEC_PAGESIZE
23710#   else /* no EXEC_PAGESIZE */
23711#    ifdef NBPG
23712#     define getpagesize() NBPG * CLSIZE
23713#     ifndef CLSIZE
23714#      define CLSIZE 1
23715#     endif /* no CLSIZE */
23716#    else /* no NBPG */
23717#     ifdef NBPC
23718#      define getpagesize() NBPC
23719#     else /* no NBPC */
23720#      ifdef PAGESIZE
23721#       define getpagesize() PAGESIZE
23722#      endif /* PAGESIZE */
23723#     endif /* no NBPC */
23724#    endif /* no NBPG */
23725#   endif /* no EXEC_PAGESIZE */
23726#  else /* no HAVE_SYS_PARAM_H */
23727#   define getpagesize() 8192	/* punt totally */
23728#  endif /* no HAVE_SYS_PARAM_H */
23729# endif /* no _SC_PAGESIZE */
23730
23731#endif /* no HAVE_GETPAGESIZE */
23732
23733int
23734main ()
23735{
23736  char *data, *data2, *data3;
23737  int i, pagesize;
23738  int fd;
23739
23740  pagesize = getpagesize ();
23741
23742  /* First, make a file with some known garbage in it. */
23743  data = (char *) malloc (pagesize);
23744  if (!data)
23745    exit (1);
23746  for (i = 0; i < pagesize; ++i)
23747    *(data + i) = rand ();
23748  umask (0);
23749  fd = creat ("conftest.mmap", 0600);
23750  if (fd < 0)
23751    exit (1);
23752  if (write (fd, data, pagesize) != pagesize)
23753    exit (1);
23754  close (fd);
23755
23756  /* Next, try to mmap the file at a fixed address which already has
23757     something else allocated at it.  If we can, also make sure that
23758     we see the same garbage.  */
23759  fd = open ("conftest.mmap", O_RDWR);
23760  if (fd < 0)
23761    exit (1);
23762  data2 = (char *) malloc (2 * pagesize);
23763  if (!data2)
23764    exit (1);
23765  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23766  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23767		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
23768    exit (1);
23769  for (i = 0; i < pagesize; ++i)
23770    if (*(data + i) != *(data2 + i))
23771      exit (1);
23772
23773  /* Finally, make sure that changes to the mapped area do not
23774     percolate back to the file as seen by read().  (This is a bug on
23775     some variants of i386 svr4.0.)  */
23776  for (i = 0; i < pagesize; ++i)
23777    *(data2 + i) = *(data2 + i) + 1;
23778  data3 = (char *) malloc (pagesize);
23779  if (!data3)
23780    exit (1);
23781  if (read (fd, data3, pagesize) != pagesize)
23782    exit (1);
23783  for (i = 0; i < pagesize; ++i)
23784    if (*(data + i) != *(data3 + i))
23785      exit (1);
23786  close (fd);
23787  exit (0);
23788}
23789_ACEOF
23790rm -f conftest$ac_exeext
23791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792  (eval $ac_link) 2>&5
23793  ac_status=$?
23794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797  (eval $ac_try) 2>&5
23798  ac_status=$?
23799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800  (exit $ac_status); }; }; then
23801  ac_cv_func_mmap_fixed_mapped=yes
23802else
23803  echo "$as_me: program exited with status $ac_status" >&5
23804echo "$as_me: failed program was:" >&5
23805sed 's/^/| /' conftest.$ac_ext >&5
23806
23807( exit $ac_status )
23808ac_cv_func_mmap_fixed_mapped=no
23809fi
23810rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23811fi
23812fi
23813echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23814echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23815if test $ac_cv_func_mmap_fixed_mapped = yes; then
23816
23817cat >>confdefs.h <<\_ACEOF
23818#define HAVE_MMAP 1
23819_ACEOF
23820
23821fi
23822rm -f conftest.mmap
23823
23824if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23825then
23826	{ echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23827echo "$as_me: WARNING: mmap() required but not found" >&2;}
23828fi
23829echo "$as_me:$LINENO: checking for mmap of files" >&5
23830echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23831if test "${ac_cv_func_mmap_file+set}" = set; then
23832  echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834   ac_ext=c
23835ac_cpp='$CPP $CPPFLAGS'
23836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23838ac_compiler_gnu=$ac_cv_c_compiler_gnu
23839
23840  if test "$cross_compiling" = yes; then
23841  ac_cv_func_mmap_file=no
23842else
23843  cat >conftest.$ac_ext <<_ACEOF
23844
23845    /* confdefs.h.  */
23846_ACEOF
23847cat confdefs.h >>conftest.$ac_ext
23848cat >>conftest.$ac_ext <<_ACEOF
23849/* end confdefs.h.  */
23850
23851#include <sys/types.h>
23852#include <sys/mman.h>
23853#include <fcntl.h>
23854
23855int
23856main ()
23857{
23858
23859  int fd;
23860  fd = creat ("foo",0777);
23861  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23862  unlink ("foo");
23863  return (fd != (int) MAP_FAILED);
23864  ;
23865  return 0;
23866}
23867_ACEOF
23868rm -f conftest$ac_exeext
23869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870  (eval $ac_link) 2>&5
23871  ac_status=$?
23872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875  (eval $ac_try) 2>&5
23876  ac_status=$?
23877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878  (exit $ac_status); }; }; then
23879  ac_cv_func_mmap_file=yes
23880else
23881  echo "$as_me: program exited with status $ac_status" >&5
23882echo "$as_me: failed program was:" >&5
23883sed 's/^/| /' conftest.$ac_ext >&5
23884
23885( exit $ac_status )
23886ac_cv_func_mmap_file=no
23887fi
23888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23889fi
23890  ac_ext=c
23891ac_cpp='$CPP $CPPFLAGS'
23892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23894ac_compiler_gnu=$ac_cv_c_compiler_gnu
23895
23896
23897fi
23898echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23899echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23900if test "$ac_cv_func_mmap_file" = yes; then
23901
23902cat >>confdefs.h <<\_ACEOF
23903#define HAVE_MMAP_FILE
23904_ACEOF
23905
23906   MMAP_FILE=yes
23907
23908fi
23909
23910if test "$ac_cv_func_mmap_file" = "no"
23911then
23912	{ echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23913echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23914fi
23915echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23916echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23917if test "${ac_cv_header_mmap_anon+set}" = set; then
23918  echo $ECHO_N "(cached) $ECHO_C" >&6
23919else
23920   ac_ext=c
23921ac_cpp='$CPP $CPPFLAGS'
23922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924ac_compiler_gnu=$ac_cv_c_compiler_gnu
23925
23926  cat >conftest.$ac_ext <<_ACEOF
23927/* confdefs.h.  */
23928_ACEOF
23929cat confdefs.h >>conftest.$ac_ext
23930cat >>conftest.$ac_ext <<_ACEOF
23931/* end confdefs.h.  */
23932#include <sys/mman.h>
23933#include <unistd.h>
23934#include <fcntl.h>
23935int
23936main ()
23937{
23938mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23939  ;
23940  return 0;
23941}
23942_ACEOF
23943rm -f conftest.$ac_objext
23944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23945  (eval $ac_compile) 2>conftest.er1
23946  ac_status=$?
23947  grep -v '^ *+' conftest.er1 >conftest.err
23948  rm -f conftest.er1
23949  cat conftest.err >&5
23950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951  (exit $ac_status); } &&
23952	 { ac_try='test -z "$ac_c_werror_flag"
23953			 || test ! -s conftest.err'
23954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955  (eval $ac_try) 2>&5
23956  ac_status=$?
23957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958  (exit $ac_status); }; } &&
23959	 { ac_try='test -s conftest.$ac_objext'
23960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961  (eval $ac_try) 2>&5
23962  ac_status=$?
23963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964  (exit $ac_status); }; }; then
23965  ac_cv_header_mmap_anon=yes
23966else
23967  echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970ac_cv_header_mmap_anon=no
23971fi
23972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23973  ac_ext=c
23974ac_cpp='$CPP $CPPFLAGS'
23975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977ac_compiler_gnu=$ac_cv_c_compiler_gnu
23978
23979
23980fi
23981echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23982echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23983if test "$ac_cv_header_mmap_anon" = yes; then
23984
23985cat >>confdefs.h <<\_ACEOF
23986#define HAVE_MMAP_ANONYMOUS
23987_ACEOF
23988
23989fi
23990
23991echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23992echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23993if test "${ac_cv_type_signal+set}" = set; then
23994  echo $ECHO_N "(cached) $ECHO_C" >&6
23995else
23996  cat >conftest.$ac_ext <<_ACEOF
23997/* confdefs.h.  */
23998_ACEOF
23999cat confdefs.h >>conftest.$ac_ext
24000cat >>conftest.$ac_ext <<_ACEOF
24001/* end confdefs.h.  */
24002#include <sys/types.h>
24003#include <signal.h>
24004#ifdef signal
24005# undef signal
24006#endif
24007#ifdef __cplusplus
24008extern "C" void (*signal (int, void (*)(int)))(int);
24009#else
24010void (*signal ()) ();
24011#endif
24012
24013int
24014main ()
24015{
24016int i;
24017  ;
24018  return 0;
24019}
24020_ACEOF
24021rm -f conftest.$ac_objext
24022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24023  (eval $ac_compile) 2>conftest.er1
24024  ac_status=$?
24025  grep -v '^ *+' conftest.er1 >conftest.err
24026  rm -f conftest.er1
24027  cat conftest.err >&5
24028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029  (exit $ac_status); } &&
24030	 { ac_try='test -z "$ac_c_werror_flag"
24031			 || test ! -s conftest.err'
24032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033  (eval $ac_try) 2>&5
24034  ac_status=$?
24035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036  (exit $ac_status); }; } &&
24037	 { ac_try='test -s conftest.$ac_objext'
24038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039  (eval $ac_try) 2>&5
24040  ac_status=$?
24041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042  (exit $ac_status); }; }; then
24043  ac_cv_type_signal=void
24044else
24045  echo "$as_me: failed program was:" >&5
24046sed 's/^/| /' conftest.$ac_ext >&5
24047
24048ac_cv_type_signal=int
24049fi
24050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24051fi
24052echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24053echo "${ECHO_T}$ac_cv_type_signal" >&6
24054
24055cat >>confdefs.h <<_ACEOF
24056#define RETSIGTYPE $ac_cv_type_signal
24057_ACEOF
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24070do
24071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24072echo "$as_me:$LINENO: checking for $ac_func" >&5
24073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24074if eval "test \"\${$as_ac_var+set}\" = set"; then
24075  echo $ECHO_N "(cached) $ECHO_C" >&6
24076else
24077  cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h.  */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h.  */
24083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24084   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24085#define $ac_func innocuous_$ac_func
24086
24087/* System header to define __stub macros and hopefully few prototypes,
24088    which can conflict with char $ac_func (); below.
24089    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24090    <limits.h> exists even on freestanding compilers.  */
24091
24092#ifdef __STDC__
24093# include <limits.h>
24094#else
24095# include <assert.h>
24096#endif
24097
24098#undef $ac_func
24099
24100/* Override any gcc2 internal prototype to avoid an error.  */
24101#ifdef __cplusplus
24102extern "C"
24103{
24104#endif
24105/* We use char because int might match the return type of a gcc2
24106   builtin and then its argument prototype would still apply.  */
24107char $ac_func ();
24108/* The GNU C library defines this for functions which it implements
24109    to always fail with ENOSYS.  Some functions are actually named
24110    something starting with __ and the normal name is an alias.  */
24111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24112choke me
24113#else
24114char (*f) () = $ac_func;
24115#endif
24116#ifdef __cplusplus
24117}
24118#endif
24119
24120int
24121main ()
24122{
24123return f != $ac_func;
24124  ;
24125  return 0;
24126}
24127_ACEOF
24128rm -f conftest.$ac_objext conftest$ac_exeext
24129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130  (eval $ac_link) 2>conftest.er1
24131  ac_status=$?
24132  grep -v '^ *+' conftest.er1 >conftest.err
24133  rm -f conftest.er1
24134  cat conftest.err >&5
24135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136  (exit $ac_status); } &&
24137	 { ac_try='test -z "$ac_c_werror_flag"
24138			 || test ! -s conftest.err'
24139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140  (eval $ac_try) 2>&5
24141  ac_status=$?
24142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143  (exit $ac_status); }; } &&
24144	 { ac_try='test -s conftest$ac_exeext'
24145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146  (eval $ac_try) 2>&5
24147  ac_status=$?
24148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149  (exit $ac_status); }; }; then
24150  eval "$as_ac_var=yes"
24151else
24152  echo "$as_me: failed program was:" >&5
24153sed 's/^/| /' conftest.$ac_ext >&5
24154
24155eval "$as_ac_var=no"
24156fi
24157rm -f conftest.err conftest.$ac_objext \
24158      conftest$ac_exeext conftest.$ac_ext
24159fi
24160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24162if test `eval echo '${'$as_ac_var'}'` = yes; then
24163  cat >>confdefs.h <<_ACEOF
24164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24165_ACEOF
24166
24167fi
24168done
24169
24170echo "$as_me:$LINENO: checking for mprotect" >&5
24171echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24172if test "${ac_cv_func_mprotect+set}" = set; then
24173  echo $ECHO_N "(cached) $ECHO_C" >&6
24174else
24175  cat >conftest.$ac_ext <<_ACEOF
24176/* confdefs.h.  */
24177_ACEOF
24178cat confdefs.h >>conftest.$ac_ext
24179cat >>conftest.$ac_ext <<_ACEOF
24180/* end confdefs.h.  */
24181/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24182   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24183#define mprotect innocuous_mprotect
24184
24185/* System header to define __stub macros and hopefully few prototypes,
24186    which can conflict with char mprotect (); below.
24187    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24188    <limits.h> exists even on freestanding compilers.  */
24189
24190#ifdef __STDC__
24191# include <limits.h>
24192#else
24193# include <assert.h>
24194#endif
24195
24196#undef mprotect
24197
24198/* Override any gcc2 internal prototype to avoid an error.  */
24199#ifdef __cplusplus
24200extern "C"
24201{
24202#endif
24203/* We use char because int might match the return type of a gcc2
24204   builtin and then its argument prototype would still apply.  */
24205char mprotect ();
24206/* The GNU C library defines this for functions which it implements
24207    to always fail with ENOSYS.  Some functions are actually named
24208    something starting with __ and the normal name is an alias.  */
24209#if defined (__stub_mprotect) || defined (__stub___mprotect)
24210choke me
24211#else
24212char (*f) () = mprotect;
24213#endif
24214#ifdef __cplusplus
24215}
24216#endif
24217
24218int
24219main ()
24220{
24221return f != mprotect;
24222  ;
24223  return 0;
24224}
24225_ACEOF
24226rm -f conftest.$ac_objext conftest$ac_exeext
24227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24228  (eval $ac_link) 2>conftest.er1
24229  ac_status=$?
24230  grep -v '^ *+' conftest.er1 >conftest.err
24231  rm -f conftest.er1
24232  cat conftest.err >&5
24233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234  (exit $ac_status); } &&
24235	 { ac_try='test -z "$ac_c_werror_flag"
24236			 || test ! -s conftest.err'
24237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238  (eval $ac_try) 2>&5
24239  ac_status=$?
24240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241  (exit $ac_status); }; } &&
24242	 { ac_try='test -s conftest$ac_exeext'
24243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244  (eval $ac_try) 2>&5
24245  ac_status=$?
24246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247  (exit $ac_status); }; }; then
24248  ac_cv_func_mprotect=yes
24249else
24250  echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253ac_cv_func_mprotect=no
24254fi
24255rm -f conftest.err conftest.$ac_objext \
24256      conftest$ac_exeext conftest.$ac_ext
24257fi
24258echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24259echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24260if test $ac_cv_func_mprotect = yes; then
24261  :
24262else
24263  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24264echo "$as_me: error: Function mprotect() required but not found" >&2;}
24265   { (exit 1); exit 1; }; }
24266fi
24267
24268
24269
24270  echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24271echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24272  ac_ext=c
24273ac_cpp='$CPP $CPPFLAGS'
24274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24276ac_compiler_gnu=$ac_cv_c_compiler_gnu
24277
24278  oldcflags="$CFLAGS"
24279  CFLAGS="$CFLAGS -Wl,-R."
24280  cat >conftest.$ac_ext <<_ACEOF
24281/* confdefs.h.  */
24282_ACEOF
24283cat confdefs.h >>conftest.$ac_ext
24284cat >>conftest.$ac_ext <<_ACEOF
24285/* end confdefs.h.  */
24286
24287int
24288main ()
24289{
24290int main() { return 0; }
24291  ;
24292  return 0;
24293}
24294_ACEOF
24295rm -f conftest.$ac_objext conftest$ac_exeext
24296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24297  (eval $ac_link) 2>conftest.er1
24298  ac_status=$?
24299  grep -v '^ *+' conftest.er1 >conftest.err
24300  rm -f conftest.er1
24301  cat conftest.err >&5
24302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303  (exit $ac_status); } &&
24304	 { ac_try='test -z "$ac_c_werror_flag"
24305			 || test ! -s conftest.err'
24306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307  (eval $ac_try) 2>&5
24308  ac_status=$?
24309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310  (exit $ac_status); }; } &&
24311	 { ac_try='test -s conftest$ac_exeext'
24312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24313  (eval $ac_try) 2>&5
24314  ac_status=$?
24315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316  (exit $ac_status); }; }; then
24317  ac_cv_link_use_r=yes
24318else
24319  echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322ac_cv_link_use_r=no
24323fi
24324rm -f conftest.err conftest.$ac_objext \
24325      conftest$ac_exeext conftest.$ac_ext
24326  CFLAGS="$oldcflags"
24327  ac_ext=c
24328ac_cpp='$CPP $CPPFLAGS'
24329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331ac_compiler_gnu=$ac_cv_c_compiler_gnu
24332
24333  echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24334echo "${ECHO_T}$ac_cv_link_use_r" >&6
24335  if test "$ac_cv_link_use_r" = yes
24336  then
24337
24338cat >>confdefs.h <<\_ACEOF
24339#define HAVE_LINK_R 1
24340_ACEOF
24341
24342  fi
24343
24344
24345# Check whether --enable-optimized or --disable-optimized was given.
24346if test "${enable_optimized+set}" = set; then
24347  enableval="$enable_optimized"
24348
24349else
24350  enableval=no
24351fi;
24352if test ${enableval} = "no"
24353then
24354	ENABLE_OPTIMIZED=
24355
24356else
24357	ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24358
24359fi
24360
24361# Check whether --enable-jit or --disable-jit was given.
24362if test "${enable_jit+set}" = set; then
24363  enableval="$enable_jit"
24364
24365else
24366  enableval=default
24367fi;
24368if test ${enableval} = "no"
24369then
24370	JIT=
24371
24372else
24373	case $target in
24374		*i*86*)
24375			JIT=TARGET_HAS_JIT=1
24376
24377			;;
24378		*sparc*)
24379			JIT=TARGET_HAS_JIT=1
24380
24381			;;
24382		*)
24383			JIT=
24384
24385			;;
24386	esac
24387fi
24388
24389
24390# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24391if test "${with_llvmgccdir+set}" = set; then
24392  withval="$with_llvmgccdir"
24393  LLVMGCCDIR=$withval
24394
24395fi;
24396echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24397echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24398LLVM_GCC_CHECK=no
24399if test -d "$LLVMGCCDIR"
24400then
24401	if test -x "$LLVMGCCDIR/bin/gcc"
24402	then
24403		LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24404	fi
24405fi
24406llvmgccwarn=no
24407echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24408echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24409if test "$LLVM_GCC_CHECK" = "no"
24410then
24411    llvmgccwarn=yes
24412fi
24413echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24414echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24415LLVM_GCC_SANE=no
24416if test -x "$LLVM_GCC_CHECK"
24417then
24418	cp /dev/null conftest.c
24419    "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24420	if test $? -eq 0
24421	then
24422		LLVM_GCC_SANE=yes
24423	fi
24424	rm conftest.c
24425	llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24426	LLVMCC1=$llvmcc1path
24427
24428	llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24429	LLVMCC1PLUS=$llvmcc1pluspath
24430
24431fi
24432echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24433echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24434if test "$LLVM_GCC_SANE" = "no"
24435then
24436	llvmgccwarn=yes
24437fi
24438
24439echo "$as_me:$LINENO: checking for shared library suffix" >&5
24440echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24441eval "SHLIBEXT=$shrext_cmds"
24442echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24443echo "${ECHO_T}$SHLIBEXT" >&6
24444SHLIBEXT=$SHLIBEXT
24445
24446
24447cat >>confdefs.h <<_ACEOF
24448#define SHLIBEXT "$SHLIBEXT"
24449_ACEOF
24450
24451
24452# Translate the various configuration directories and other basic
24453# information into substitutions that will end up in config.h.in so
24454# that these configured values can be hard-wired into a program.
24455eval LLVM_PREFIX="${prefix}";
24456eval LLVM_BINDIR="${prefix}/bin";
24457eval LLVM_LIBDIR="${prefix}/lib";
24458eval LLVM_DATADIR="${prefix}/data";
24459eval LLVM_DOCSDIR="${prefix}/docs";
24460eval LLVM_ETCDIR="${prefix}/etc";
24461eval LLVM_INCLUDEDIR="${prefix}/include";
24462eval LLVM_INFODIR="${prefix}/info";
24463eval LLVM_MANDIR="${prefix}/man";
24464LLVM_CONFIGTIME=`date`
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476cat >>confdefs.h <<_ACEOF
24477#define LLVM_PREFIX "$LLVM_PREFIX"
24478_ACEOF
24479
24480
24481cat >>confdefs.h <<_ACEOF
24482#define LLVM_BINDIR "$LLVM_BINDIR"
24483_ACEOF
24484
24485
24486cat >>confdefs.h <<_ACEOF
24487#define LLVM_LIBDIR "$LLVM_LIBDIR"
24488_ACEOF
24489
24490
24491cat >>confdefs.h <<_ACEOF
24492#define LLVM_DATADIR "$LLVM_DATADIR"
24493_ACEOF
24494
24495
24496cat >>confdefs.h <<_ACEOF
24497#define LLVM_DATADIR "$LLVM_DOCSDIR"
24498_ACEOF
24499
24500
24501cat >>confdefs.h <<_ACEOF
24502#define LLVM_ETCDIR "$LLVM_ETCDIR"
24503_ACEOF
24504
24505
24506cat >>confdefs.h <<_ACEOF
24507#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24508_ACEOF
24509
24510
24511cat >>confdefs.h <<_ACEOF
24512#define LLVM_INFODIR "$LLVM_INFODIR"
24513_ACEOF
24514
24515
24516cat >>confdefs.h <<_ACEOF
24517#define LLVM_MANDIR "$LLVM_MANDIR"
24518_ACEOF
24519
24520
24521cat >>confdefs.h <<_ACEOF
24522#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24523_ACEOF
24524
24525
24526cat >confcache <<\_ACEOF
24527# This file is a shell script that caches the results of configure
24528# tests run on this system so they can be shared between configure
24529# scripts and configure runs, see configure's option --config-cache.
24530# It is not useful on other systems.  If it contains results you don't
24531# want to keep, you may remove or edit it.
24532#
24533# config.status only pays attention to the cache file if you give it
24534# the --recheck option to rerun configure.
24535#
24536# `ac_cv_env_foo' variables (set or unset) will be overridden when
24537# loading this file, other *unset* `ac_cv_foo' will be assigned the
24538# following values.
24539
24540_ACEOF
24541
24542# The following way of writing the cache mishandles newlines in values,
24543# but we know of no workaround that is simple, portable, and efficient.
24544# So, don't put newlines in cache variables' values.
24545# Ultrix sh set writes to stderr and can't be redirected directly,
24546# and sets the high bit in the cache file unless we assign to the vars.
24547{
24548  (set) 2>&1 |
24549    case `(ac_space=' '; set | grep ac_space) 2>&1` in
24550    *ac_space=\ *)
24551      # `set' does not quote correctly, so add quotes (double-quote
24552      # substitution turns \\\\ into \\, and sed turns \\ into \).
24553      sed -n \
24554	"s/'/'\\\\''/g;
24555	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24556      ;;
24557    *)
24558      # `set' quotes correctly as required by POSIX, so do not add quotes.
24559      sed -n \
24560	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24561      ;;
24562    esac;
24563} |
24564  sed '
24565     t clear
24566     : clear
24567     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24568     t end
24569     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24570     : end' >>confcache
24571if diff $cache_file confcache >/dev/null 2>&1; then :; else
24572  if test -w $cache_file; then
24573    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24574    cat confcache >$cache_file
24575  else
24576    echo "not updating unwritable cache $cache_file"
24577  fi
24578fi
24579rm -f confcache
24580
24581test "x$prefix" = xNONE && prefix=$ac_default_prefix
24582# Let make expand exec_prefix.
24583test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24584
24585# VPATH may cause trouble with some makes, so we remove $(srcdir),
24586# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24587# trailing colons and then remove the whole line if VPATH becomes empty
24588# (actually we leave an empty line to preserve line numbers).
24589if test "x$srcdir" = x.; then
24590  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24591s/:*\$(srcdir):*/:/;
24592s/:*\${srcdir}:*/:/;
24593s/:*@srcdir@:*/:/;
24594s/^\([^=]*=[	 ]*\):*/\1/;
24595s/:*$//;
24596s/^[^=]*=[	 ]*$//;
24597}'
24598fi
24599
24600DEFS=-DHAVE_CONFIG_H
24601
24602ac_libobjs=
24603ac_ltlibobjs=
24604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24605  # 1. Remove the extension, and $U if already installed.
24606  ac_i=`echo "$ac_i" |
24607	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24608  # 2. Add them.
24609  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24610  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24611done
24612LIBOBJS=$ac_libobjs
24613
24614LTLIBOBJS=$ac_ltlibobjs
24615
24616
24617
24618: ${CONFIG_STATUS=./config.status}
24619ac_clean_files_save=$ac_clean_files
24620ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24621{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24622echo "$as_me: creating $CONFIG_STATUS" >&6;}
24623cat >$CONFIG_STATUS <<_ACEOF
24624#! $SHELL
24625# Generated by $as_me.
24626# Run this file to recreate the current configuration.
24627# Compiler output produced by configure, useful for debugging
24628# configure, is in config.log if it exists.
24629
24630debug=false
24631ac_cs_recheck=false
24632ac_cs_silent=false
24633SHELL=\${CONFIG_SHELL-$SHELL}
24634_ACEOF
24635
24636cat >>$CONFIG_STATUS <<\_ACEOF
24637## --------------------- ##
24638## M4sh Initialization.  ##
24639## --------------------- ##
24640
24641# Be Bourne compatible
24642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24643  emulate sh
24644  NULLCMD=:
24645  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24646  # is contrary to our usage.  Disable this feature.
24647  alias -g '${1+"$@"}'='"$@"'
24648elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24649  set -o posix
24650fi
24651DUALCASE=1; export DUALCASE # for MKS sh
24652
24653# Support unset when possible.
24654if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24655  as_unset=unset
24656else
24657  as_unset=false
24658fi
24659
24660
24661# Work around bugs in pre-3.0 UWIN ksh.
24662$as_unset ENV MAIL MAILPATH
24663PS1='$ '
24664PS2='> '
24665PS4='+ '
24666
24667# NLS nuisances.
24668for as_var in \
24669  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24670  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24671  LC_TELEPHONE LC_TIME
24672do
24673  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24674    eval $as_var=C; export $as_var
24675  else
24676    $as_unset $as_var
24677  fi
24678done
24679
24680# Required to use basename.
24681if expr a : '\(a\)' >/dev/null 2>&1; then
24682  as_expr=expr
24683else
24684  as_expr=false
24685fi
24686
24687if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24688  as_basename=basename
24689else
24690  as_basename=false
24691fi
24692
24693
24694# Name of the executable.
24695as_me=`$as_basename "$0" ||
24696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24697	 X"$0" : 'X\(//\)$' \| \
24698	 X"$0" : 'X\(/\)$' \| \
24699	 .     : '\(.\)' 2>/dev/null ||
24700echo X/"$0" |
24701    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24702  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
24703  	  /^X\/\(\/\).*/{ s//\1/; q; }
24704  	  s/.*/./; q'`
24705
24706
24707# PATH needs CR, and LINENO needs CR and PATH.
24708# Avoid depending upon Character Ranges.
24709as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24710as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24711as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24712as_cr_digits='0123456789'
24713as_cr_alnum=$as_cr_Letters$as_cr_digits
24714
24715# The user is always right.
24716if test "${PATH_SEPARATOR+set}" != set; then
24717  echo "#! /bin/sh" >conf$$.sh
24718  echo  "exit 0"   >>conf$$.sh
24719  chmod +x conf$$.sh
24720  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24721    PATH_SEPARATOR=';'
24722  else
24723    PATH_SEPARATOR=:
24724  fi
24725  rm -f conf$$.sh
24726fi
24727
24728
24729  as_lineno_1=$LINENO
24730  as_lineno_2=$LINENO
24731  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24732  test "x$as_lineno_1" != "x$as_lineno_2" &&
24733  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24734  # Find who we are.  Look in the path if we contain no path at all
24735  # relative or not.
24736  case $0 in
24737    *[\\/]* ) as_myself=$0 ;;
24738    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24739for as_dir in $PATH
24740do
24741  IFS=$as_save_IFS
24742  test -z "$as_dir" && as_dir=.
24743  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24744done
24745
24746       ;;
24747  esac
24748  # We did not find ourselves, most probably we were run as `sh COMMAND'
24749  # in which case we are not to be found in the path.
24750  if test "x$as_myself" = x; then
24751    as_myself=$0
24752  fi
24753  if test ! -f "$as_myself"; then
24754    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24755echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24756   { (exit 1); exit 1; }; }
24757  fi
24758  case $CONFIG_SHELL in
24759  '')
24760    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24762do
24763  IFS=$as_save_IFS
24764  test -z "$as_dir" && as_dir=.
24765  for as_base in sh bash ksh sh5; do
24766	 case $as_dir in
24767	 /*)
24768	   if ("$as_dir/$as_base" -c '
24769  as_lineno_1=$LINENO
24770  as_lineno_2=$LINENO
24771  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24772  test "x$as_lineno_1" != "x$as_lineno_2" &&
24773  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24774	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24775	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24776	     CONFIG_SHELL=$as_dir/$as_base
24777	     export CONFIG_SHELL
24778	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24779	   fi;;
24780	 esac
24781       done
24782done
24783;;
24784  esac
24785
24786  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24787  # uniformly replaced by the line number.  The first 'sed' inserts a
24788  # line-number line before each line; the second 'sed' does the real
24789  # work.  The second script uses 'N' to pair each line-number line
24790  # with the numbered line, and appends trailing '-' during
24791  # substitution so that $LINENO is not a special case at line end.
24792  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24793  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24794  sed '=' <$as_myself |
24795    sed '
24796      N
24797      s,$,-,
24798      : loop
24799      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24800      t loop
24801      s,-$,,
24802      s,^['$as_cr_digits']*\n,,
24803    ' >$as_me.lineno &&
24804  chmod +x $as_me.lineno ||
24805    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24806echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24807   { (exit 1); exit 1; }; }
24808
24809  # Don't try to exec as it changes $[0], causing all sort of problems
24810  # (the dirname of $[0] is not the place where we might find the
24811  # original and so on.  Autoconf is especially sensible to this).
24812  . ./$as_me.lineno
24813  # Exit status is that of the last command.
24814  exit
24815}
24816
24817
24818case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24819  *c*,-n*) ECHO_N= ECHO_C='
24820' ECHO_T='	' ;;
24821  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24822  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24823esac
24824
24825if expr a : '\(a\)' >/dev/null 2>&1; then
24826  as_expr=expr
24827else
24828  as_expr=false
24829fi
24830
24831rm -f conf$$ conf$$.exe conf$$.file
24832echo >conf$$.file
24833if ln -s conf$$.file conf$$ 2>/dev/null; then
24834  # We could just check for DJGPP; but this test a) works b) is more generic
24835  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24836  if test -f conf$$.exe; then
24837    # Don't use ln at all; we don't have any links
24838    as_ln_s='cp -p'
24839  else
24840    as_ln_s='ln -s'
24841  fi
24842elif ln conf$$.file conf$$ 2>/dev/null; then
24843  as_ln_s=ln
24844else
24845  as_ln_s='cp -p'
24846fi
24847rm -f conf$$ conf$$.exe conf$$.file
24848
24849if mkdir -p . 2>/dev/null; then
24850  as_mkdir_p=:
24851else
24852  test -d ./-p && rmdir ./-p
24853  as_mkdir_p=false
24854fi
24855
24856as_executable_p="test -f"
24857
24858# Sed expression to map a string onto a valid CPP name.
24859as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24860
24861# Sed expression to map a string onto a valid variable name.
24862as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24863
24864
24865# IFS
24866# We need space, tab and new line, in precisely that order.
24867as_nl='
24868'
24869IFS=" 	$as_nl"
24870
24871# CDPATH.
24872$as_unset CDPATH
24873
24874exec 6>&1
24875
24876# Open the log real soon, to keep \$[0] and so on meaningful, and to
24877# report actual input values of CONFIG_FILES etc. instead of their
24878# values after options handling.  Logging --version etc. is OK.
24879exec 5>>config.log
24880{
24881  echo
24882  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24883## Running $as_me. ##
24884_ASBOX
24885} >&5
24886cat >&5 <<_CSEOF
24887
24888This file was extended by llvm $as_me 1.4, which was
24889generated by GNU Autoconf 2.59.  Invocation command line was
24890
24891  CONFIG_FILES    = $CONFIG_FILES
24892  CONFIG_HEADERS  = $CONFIG_HEADERS
24893  CONFIG_LINKS    = $CONFIG_LINKS
24894  CONFIG_COMMANDS = $CONFIG_COMMANDS
24895  $ $0 $@
24896
24897_CSEOF
24898echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24899echo >&5
24900_ACEOF
24901
24902# Files that config.status was made for.
24903if test -n "$ac_config_files"; then
24904  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24905fi
24906
24907if test -n "$ac_config_headers"; then
24908  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24909fi
24910
24911if test -n "$ac_config_links"; then
24912  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24913fi
24914
24915if test -n "$ac_config_commands"; then
24916  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24917fi
24918
24919cat >>$CONFIG_STATUS <<\_ACEOF
24920
24921ac_cs_usage="\
24922\`$as_me' instantiates files from templates according to the
24923current configuration.
24924
24925Usage: $0 [OPTIONS] [FILE]...
24926
24927  -h, --help       print this help, then exit
24928  -V, --version    print version number, then exit
24929  -q, --quiet      do not print progress messages
24930  -d, --debug      don't remove temporary files
24931      --recheck    update $as_me by reconfiguring in the same conditions
24932  --file=FILE[:TEMPLATE]
24933		   instantiate the configuration file FILE
24934  --header=FILE[:TEMPLATE]
24935		   instantiate the configuration header FILE
24936
24937Configuration files:
24938$config_files
24939
24940Configuration headers:
24941$config_headers
24942
24943Configuration links:
24944$config_links
24945
24946Configuration commands:
24947$config_commands
24948
24949Report bugs to <bug-autoconf@gnu.org>."
24950_ACEOF
24951
24952cat >>$CONFIG_STATUS <<_ACEOF
24953ac_cs_version="\\
24954llvm config.status 1.4
24955configured by $0, generated by GNU Autoconf 2.59,
24956  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24957
24958Copyright (C) 2003 Free Software Foundation, Inc.
24959This config.status script is free software; the Free Software Foundation
24960gives unlimited permission to copy, distribute and modify it."
24961srcdir=$srcdir
24962INSTALL="$INSTALL"
24963_ACEOF
24964
24965cat >>$CONFIG_STATUS <<\_ACEOF
24966# If no file are specified by the user, then we need to provide default
24967# value.  By we need to know if files were specified by the user.
24968ac_need_defaults=:
24969while test $# != 0
24970do
24971  case $1 in
24972  --*=*)
24973    ac_option=`expr "x$1" : 'x\([^=]*\)='`
24974    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24975    ac_shift=:
24976    ;;
24977  -*)
24978    ac_option=$1
24979    ac_optarg=$2
24980    ac_shift=shift
24981    ;;
24982  *) # This is not an option, so the user has probably given explicit
24983     # arguments.
24984     ac_option=$1
24985     ac_need_defaults=false;;
24986  esac
24987
24988  case $ac_option in
24989  # Handling of the options.
24990_ACEOF
24991cat >>$CONFIG_STATUS <<\_ACEOF
24992  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24993    ac_cs_recheck=: ;;
24994  --version | --vers* | -V )
24995    echo "$ac_cs_version"; exit 0 ;;
24996  --he | --h)
24997    # Conflict between --help and --header
24998    { { echo "$as_me:$LINENO: error: ambiguous option: $1
24999Try \`$0 --help' for more information." >&5
25000echo "$as_me: error: ambiguous option: $1
25001Try \`$0 --help' for more information." >&2;}
25002   { (exit 1); exit 1; }; };;
25003  --help | --hel | -h )
25004    echo "$ac_cs_usage"; exit 0 ;;
25005  --debug | --d* | -d )
25006    debug=: ;;
25007  --file | --fil | --fi | --f )
25008    $ac_shift
25009    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25010    ac_need_defaults=false;;
25011  --header | --heade | --head | --hea )
25012    $ac_shift
25013    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25014    ac_need_defaults=false;;
25015  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25016  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25017    ac_cs_silent=: ;;
25018
25019  # This is an error.
25020  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25021Try \`$0 --help' for more information." >&5
25022echo "$as_me: error: unrecognized option: $1
25023Try \`$0 --help' for more information." >&2;}
25024   { (exit 1); exit 1; }; } ;;
25025
25026  *) ac_config_targets="$ac_config_targets $1" ;;
25027
25028  esac
25029  shift
25030done
25031
25032ac_configure_extra_args=
25033
25034if $ac_cs_silent; then
25035  exec 6>/dev/null
25036  ac_configure_extra_args="$ac_configure_extra_args --silent"
25037fi
25038
25039_ACEOF
25040cat >>$CONFIG_STATUS <<_ACEOF
25041if \$ac_cs_recheck; then
25042  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25043  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25044fi
25045
25046_ACEOF
25047
25048cat >>$CONFIG_STATUS <<_ACEOF
25049#
25050# INIT-COMMANDS section.
25051#
25052
25053${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25054${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25055${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25056${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25057${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25058${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25059${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25060${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25061${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25062${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25063${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25064${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25065${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25066
25067_ACEOF
25068
25069
25070
25071cat >>$CONFIG_STATUS <<\_ACEOF
25072for ac_config_target in $ac_config_targets
25073do
25074  case "$ac_config_target" in
25075  # Handling of arguments.
25076  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25077  "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
25078  "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
25079  "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
25080  "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
25081  "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25082  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25083  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25084  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25085  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25086  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25087  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25088  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25089  "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25090  "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25091  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25092  "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25093  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25094  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25095  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25096  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25097  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25098  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25099  "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25100  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25101  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25102echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25103   { (exit 1); exit 1; }; };;
25104  esac
25105done
25106
25107# If the user did not use the arguments to specify the items to instantiate,
25108# then the envvar interface is used.  Set only those that are not.
25109# We use the long form for the default assignment because of an extremely
25110# bizarre bug on SunOS 4.1.3.
25111if $ac_need_defaults; then
25112  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25113  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25114  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25115  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25116fi
25117
25118# Have a temporary directory for convenience.  Make it in the build tree
25119# simply because there is no reason to put it here, and in addition,
25120# creating and moving files from /tmp can sometimes cause problems.
25121# Create a temporary directory, and hook for its removal unless debugging.
25122$debug ||
25123{
25124  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25125  trap '{ (exit 1); exit 1; }' 1 2 13 15
25126}
25127
25128# Create a (secure) tmp directory for tmp files.
25129
25130{
25131  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25132  test -n "$tmp" && test -d "$tmp"
25133}  ||
25134{
25135  tmp=./confstat$$-$RANDOM
25136  (umask 077 && mkdir $tmp)
25137} ||
25138{
25139   echo "$me: cannot create a temporary directory in ." >&2
25140   { (exit 1); exit 1; }
25141}
25142
25143_ACEOF
25144
25145cat >>$CONFIG_STATUS <<_ACEOF
25146
25147#
25148# CONFIG_FILES section.
25149#
25150
25151# No need to generate the scripts if there are no CONFIG_FILES.
25152# This happens for instance when ./config.status config.h
25153if test -n "\$CONFIG_FILES"; then
25154  # Protect against being on the right side of a sed subst in config.status.
25155  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25156   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25157s,@SHELL@,$SHELL,;t t
25158s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25159s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25160s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25161s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25162s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25163s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25164s,@exec_prefix@,$exec_prefix,;t t
25165s,@prefix@,$prefix,;t t
25166s,@program_transform_name@,$program_transform_name,;t t
25167s,@bindir@,$bindir,;t t
25168s,@sbindir@,$sbindir,;t t
25169s,@libexecdir@,$libexecdir,;t t
25170s,@datadir@,$datadir,;t t
25171s,@sysconfdir@,$sysconfdir,;t t
25172s,@sharedstatedir@,$sharedstatedir,;t t
25173s,@localstatedir@,$localstatedir,;t t
25174s,@libdir@,$libdir,;t t
25175s,@includedir@,$includedir,;t t
25176s,@oldincludedir@,$oldincludedir,;t t
25177s,@infodir@,$infodir,;t t
25178s,@mandir@,$mandir,;t t
25179s,@build_alias@,$build_alias,;t t
25180s,@host_alias@,$host_alias,;t t
25181s,@target_alias@,$target_alias,;t t
25182s,@DEFS@,$DEFS,;t t
25183s,@ECHO_C@,$ECHO_C,;t t
25184s,@ECHO_N@,$ECHO_N,;t t
25185s,@ECHO_T@,$ECHO_T,;t t
25186s,@LIBS@,$LIBS,;t t
25187s,@subdirs@,$subdirs,;t t
25188s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25189s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25190s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25191s,@build@,$build,;t t
25192s,@build_cpu@,$build_cpu,;t t
25193s,@build_vendor@,$build_vendor,;t t
25194s,@build_os@,$build_os,;t t
25195s,@host@,$host,;t t
25196s,@host_cpu@,$host_cpu,;t t
25197s,@host_vendor@,$host_vendor,;t t
25198s,@host_os@,$host_os,;t t
25199s,@target@,$target,;t t
25200s,@target_cpu@,$target_cpu,;t t
25201s,@target_vendor@,$target_vendor,;t t
25202s,@target_os@,$target_os,;t t
25203s,@OS@,$OS,;t t
25204s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25205s,@ARCH@,$ARCH,;t t
25206s,@CXX@,$CXX,;t t
25207s,@CXXFLAGS@,$CXXFLAGS,;t t
25208s,@LDFLAGS@,$LDFLAGS,;t t
25209s,@CPPFLAGS@,$CPPFLAGS,;t t
25210s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25211s,@EXEEXT@,$EXEEXT,;t t
25212s,@OBJEXT@,$OBJEXT,;t t
25213s,@CC@,$CC,;t t
25214s,@CFLAGS@,$CFLAGS,;t t
25215s,@ac_ct_CC@,$ac_ct_CC,;t t
25216s,@CPP@,$CPP,;t t
25217s,@ifGNUmake@,$ifGNUmake,;t t
25218s,@LEX@,$LEX,;t t
25219s,@LEXLIB@,$LEXLIB,;t t
25220s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25221s,@FLEX@,$FLEX,;t t
25222s,@YACC@,$YACC,;t t
25223s,@BISON@,$BISON,;t t
25224s,@EGREP@,$EGREP,;t t
25225s,@LN_S@,$LN_S,;t t
25226s,@ECHO@,$ECHO,;t t
25227s,@AR@,$AR,;t t
25228s,@ac_ct_AR@,$ac_ct_AR,;t t
25229s,@RANLIB@,$RANLIB,;t t
25230s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25231s,@STRIP@,$STRIP,;t t
25232s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25233s,@CXXCPP@,$CXXCPP,;t t
25234s,@F77@,$F77,;t t
25235s,@FFLAGS@,$FFLAGS,;t t
25236s,@ac_ct_F77@,$ac_ct_F77,;t t
25237s,@LIBTOOL@,$LIBTOOL,;t t
25238s,@TAR@,$TAR,;t t
25239s,@DOT@,$DOT,;t t
25240s,@ETAGS@,$ETAGS,;t t
25241s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25242s,@PYTHON@,$PYTHON,;t t
25243s,@QMTEST@,$QMTEST,;t t
25244s,@RUNTEST@,$RUNTEST,;t t
25245s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25246s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25247s,@ENDIAN@,$ENDIAN,;t t
25248s,@ALLOCA@,$ALLOCA,;t t
25249s,@MMAP_FILE@,$MMAP_FILE,;t t
25250s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25251s,@JIT@,$JIT,;t t
25252s,@LLVMCC1@,$LLVMCC1,;t t
25253s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25254s,@SHLIBEXT@,$SHLIBEXT,;t t
25255s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25256s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25257s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25258s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25259s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25260s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25261s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25262s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25263s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25264s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25265s,@LIBOBJS@,$LIBOBJS,;t t
25266s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25267CEOF
25268
25269_ACEOF
25270
25271  cat >>$CONFIG_STATUS <<\_ACEOF
25272  # Split the substitutions into bite-sized pieces for seds with
25273  # small command number limits, like on Digital OSF/1 and HP-UX.
25274  ac_max_sed_lines=48
25275  ac_sed_frag=1 # Number of current file.
25276  ac_beg=1 # First line for current file.
25277  ac_end=$ac_max_sed_lines # Line after last line for current file.
25278  ac_more_lines=:
25279  ac_sed_cmds=
25280  while $ac_more_lines; do
25281    if test $ac_beg -gt 1; then
25282      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25283    else
25284      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25285    fi
25286    if test ! -s $tmp/subs.frag; then
25287      ac_more_lines=false
25288    else
25289      # The purpose of the label and of the branching condition is to
25290      # speed up the sed processing (if there are no `@' at all, there
25291      # is no need to browse any of the substitutions).
25292      # These are the two extra sed commands mentioned above.
25293      (echo ':t
25294  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25295      if test -z "$ac_sed_cmds"; then
25296	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25297      else
25298	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25299      fi
25300      ac_sed_frag=`expr $ac_sed_frag + 1`
25301      ac_beg=$ac_end
25302      ac_end=`expr $ac_end + $ac_max_sed_lines`
25303    fi
25304  done
25305  if test -z "$ac_sed_cmds"; then
25306    ac_sed_cmds=cat
25307  fi
25308fi # test -n "$CONFIG_FILES"
25309
25310_ACEOF
25311cat >>$CONFIG_STATUS <<\_ACEOF
25312for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25313  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25314  case $ac_file in
25315  - | *:- | *:-:* ) # input from stdin
25316	cat >$tmp/stdin
25317	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25318	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25319  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25320	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25321  * )   ac_file_in=$ac_file.in ;;
25322  esac
25323
25324  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25325  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25327	 X"$ac_file" : 'X\(//\)[^/]' \| \
25328	 X"$ac_file" : 'X\(//\)$' \| \
25329	 X"$ac_file" : 'X\(/\)' \| \
25330	 .     : '\(.\)' 2>/dev/null ||
25331echo X"$ac_file" |
25332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25333  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25334  	  /^X\(\/\/\)$/{ s//\1/; q; }
25335  	  /^X\(\/\).*/{ s//\1/; q; }
25336  	  s/.*/./; q'`
25337  { if $as_mkdir_p; then
25338    mkdir -p "$ac_dir"
25339  else
25340    as_dir="$ac_dir"
25341    as_dirs=
25342    while test ! -d "$as_dir"; do
25343      as_dirs="$as_dir $as_dirs"
25344      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25346	 X"$as_dir" : 'X\(//\)[^/]' \| \
25347	 X"$as_dir" : 'X\(//\)$' \| \
25348	 X"$as_dir" : 'X\(/\)' \| \
25349	 .     : '\(.\)' 2>/dev/null ||
25350echo X"$as_dir" |
25351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25352  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25353  	  /^X\(\/\/\)$/{ s//\1/; q; }
25354  	  /^X\(\/\).*/{ s//\1/; q; }
25355  	  s/.*/./; q'`
25356    done
25357    test ! -n "$as_dirs" || mkdir $as_dirs
25358  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25360   { (exit 1); exit 1; }; }; }
25361
25362  ac_builddir=.
25363
25364if test "$ac_dir" != .; then
25365  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25366  # A "../" for each directory in $ac_dir_suffix.
25367  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25368else
25369  ac_dir_suffix= ac_top_builddir=
25370fi
25371
25372case $srcdir in
25373  .)  # No --srcdir option.  We are building in place.
25374    ac_srcdir=.
25375    if test -z "$ac_top_builddir"; then
25376       ac_top_srcdir=.
25377    else
25378       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25379    fi ;;
25380  [\\/]* | ?:[\\/]* )  # Absolute path.
25381    ac_srcdir=$srcdir$ac_dir_suffix;
25382    ac_top_srcdir=$srcdir ;;
25383  *) # Relative path.
25384    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25385    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25386esac
25387
25388# Do not use `cd foo && pwd` to compute absolute paths, because
25389# the directories may not exist.
25390case `pwd` in
25391.) ac_abs_builddir="$ac_dir";;
25392*)
25393  case "$ac_dir" in
25394  .) ac_abs_builddir=`pwd`;;
25395  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25396  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25397  esac;;
25398esac
25399case $ac_abs_builddir in
25400.) ac_abs_top_builddir=${ac_top_builddir}.;;
25401*)
25402  case ${ac_top_builddir}. in
25403  .) ac_abs_top_builddir=$ac_abs_builddir;;
25404  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25405  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25406  esac;;
25407esac
25408case $ac_abs_builddir in
25409.) ac_abs_srcdir=$ac_srcdir;;
25410*)
25411  case $ac_srcdir in
25412  .) ac_abs_srcdir=$ac_abs_builddir;;
25413  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25414  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25415  esac;;
25416esac
25417case $ac_abs_builddir in
25418.) ac_abs_top_srcdir=$ac_top_srcdir;;
25419*)
25420  case $ac_top_srcdir in
25421  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25422  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25423  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25424  esac;;
25425esac
25426
25427
25428  case $INSTALL in
25429  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25430  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25431  esac
25432
25433  if test x"$ac_file" != x-; then
25434    { echo "$as_me:$LINENO: creating $ac_file" >&5
25435echo "$as_me: creating $ac_file" >&6;}
25436    rm -f "$ac_file"
25437  fi
25438  # Let's still pretend it is `configure' which instantiates (i.e., don't
25439  # use $as_me), people would be surprised to read:
25440  #    /* config.h.  Generated by config.status.  */
25441  if test x"$ac_file" = x-; then
25442    configure_input=
25443  else
25444    configure_input="$ac_file.  "
25445  fi
25446  configure_input=$configure_input"Generated from `echo $ac_file_in |
25447				     sed 's,.*/,,'` by configure."
25448
25449  # First look for the input files in the build tree, otherwise in the
25450  # src tree.
25451  ac_file_inputs=`IFS=:
25452    for f in $ac_file_in; do
25453      case $f in
25454      -) echo $tmp/stdin ;;
25455      [\\/$]*)
25456	 # Absolute (can't be DOS-style, as IFS=:)
25457	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25458echo "$as_me: error: cannot find input file: $f" >&2;}
25459   { (exit 1); exit 1; }; }
25460	 echo "$f";;
25461      *) # Relative
25462	 if test -f "$f"; then
25463	   # Build tree
25464	   echo "$f"
25465	 elif test -f "$srcdir/$f"; then
25466	   # Source tree
25467	   echo "$srcdir/$f"
25468	 else
25469	   # /dev/null tree
25470	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25471echo "$as_me: error: cannot find input file: $f" >&2;}
25472   { (exit 1); exit 1; }; }
25473	 fi;;
25474      esac
25475    done` || { (exit 1); exit 1; }
25476_ACEOF
25477cat >>$CONFIG_STATUS <<_ACEOF
25478  sed "$ac_vpsub
25479$extrasub
25480_ACEOF
25481cat >>$CONFIG_STATUS <<\_ACEOF
25482:t
25483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25484s,@configure_input@,$configure_input,;t t
25485s,@srcdir@,$ac_srcdir,;t t
25486s,@abs_srcdir@,$ac_abs_srcdir,;t t
25487s,@top_srcdir@,$ac_top_srcdir,;t t
25488s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25489s,@builddir@,$ac_builddir,;t t
25490s,@abs_builddir@,$ac_abs_builddir,;t t
25491s,@top_builddir@,$ac_top_builddir,;t t
25492s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25493s,@INSTALL@,$ac_INSTALL,;t t
25494" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25495  rm -f $tmp/stdin
25496  if test x"$ac_file" != x-; then
25497    mv $tmp/out $ac_file
25498  else
25499    cat $tmp/out
25500    rm -f $tmp/out
25501  fi
25502
25503done
25504_ACEOF
25505cat >>$CONFIG_STATUS <<\_ACEOF
25506
25507#
25508# CONFIG_HEADER section.
25509#
25510
25511# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25512# NAME is the cpp macro being defined and VALUE is the value it is being given.
25513#
25514# ac_d sets the value in "#define NAME VALUE" lines.
25515ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
25516ac_dB='[	 ].*$,\1#\2'
25517ac_dC=' '
25518ac_dD=',;t'
25519# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25520ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
25521ac_uB='$,\1#\2define\3'
25522ac_uC=' '
25523ac_uD=',;t'
25524
25525for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25526  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25527  case $ac_file in
25528  - | *:- | *:-:* ) # input from stdin
25529	cat >$tmp/stdin
25530	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25531	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25532  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25533	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25534  * )   ac_file_in=$ac_file.in ;;
25535  esac
25536
25537  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25538echo "$as_me: creating $ac_file" >&6;}
25539
25540  # First look for the input files in the build tree, otherwise in the
25541  # src tree.
25542  ac_file_inputs=`IFS=:
25543    for f in $ac_file_in; do
25544      case $f in
25545      -) echo $tmp/stdin ;;
25546      [\\/$]*)
25547	 # Absolute (can't be DOS-style, as IFS=:)
25548	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25549echo "$as_me: error: cannot find input file: $f" >&2;}
25550   { (exit 1); exit 1; }; }
25551	 # Do quote $f, to prevent DOS paths from being IFS'd.
25552	 echo "$f";;
25553      *) # Relative
25554	 if test -f "$f"; then
25555	   # Build tree
25556	   echo "$f"
25557	 elif test -f "$srcdir/$f"; then
25558	   # Source tree
25559	   echo "$srcdir/$f"
25560	 else
25561	   # /dev/null tree
25562	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25563echo "$as_me: error: cannot find input file: $f" >&2;}
25564   { (exit 1); exit 1; }; }
25565	 fi;;
25566      esac
25567    done` || { (exit 1); exit 1; }
25568  # Remove the trailing spaces.
25569  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
25570
25571_ACEOF
25572
25573# Transform confdefs.h into two sed scripts, `conftest.defines' and
25574# `conftest.undefs', that substitutes the proper values into
25575# config.h.in to produce config.h.  The first handles `#define'
25576# templates, and the second `#undef' templates.
25577# And first: Protect against being on the right side of a sed subst in
25578# config.status.  Protect against being in an unquoted here document
25579# in config.status.
25580rm -f conftest.defines conftest.undefs
25581# Using a here document instead of a string reduces the quoting nightmare.
25582# Putting comments in sed scripts is not portable.
25583#
25584# `end' is used to avoid that the second main sed command (meant for
25585# 0-ary CPP macros) applies to n-ary macro definitions.
25586# See the Autoconf documentation for `clear'.
25587cat >confdef2sed.sed <<\_ACEOF
25588s/[\\&,]/\\&/g
25589s,[\\$`],\\&,g
25590t clear
25591: clear
25592s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25593t end
25594s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25595: end
25596_ACEOF
25597# If some macros were called several times there might be several times
25598# the same #defines, which is useless.  Nevertheless, we may not want to
25599# sort them, since we want the *last* AC-DEFINE to be honored.
25600uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25601sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25602rm -f confdef2sed.sed
25603
25604# This sed command replaces #undef with comments.  This is necessary, for
25605# example, in the case of _POSIX_SOURCE, which is predefined and required
25606# on some systems where configure will not decide to define it.
25607cat >>conftest.undefs <<\_ACEOF
25608s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25609_ACEOF
25610
25611# Break up conftest.defines because some shells have a limit on the size
25612# of here documents, and old seds have small limits too (100 cmds).
25613echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25614echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25615echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25616echo '  :' >>$CONFIG_STATUS
25617rm -f conftest.tail
25618while grep . conftest.defines >/dev/null
25619do
25620  # Write a limited-size here document to $tmp/defines.sed.
25621  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25622  # Speed up: don't consider the non `#define' lines.
25623  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
25624  # Work around the forget-to-reset-the-flag bug.
25625  echo 't clr' >>$CONFIG_STATUS
25626  echo ': clr' >>$CONFIG_STATUS
25627  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25628  echo 'CEOF
25629  sed -f $tmp/defines.sed $tmp/in >$tmp/out
25630  rm -f $tmp/in
25631  mv $tmp/out $tmp/in
25632' >>$CONFIG_STATUS
25633  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25634  rm -f conftest.defines
25635  mv conftest.tail conftest.defines
25636done
25637rm -f conftest.defines
25638echo '  fi # grep' >>$CONFIG_STATUS
25639echo >>$CONFIG_STATUS
25640
25641# Break up conftest.undefs because some shells have a limit on the size
25642# of here documents, and old seds have small limits too (100 cmds).
25643echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25644rm -f conftest.tail
25645while grep . conftest.undefs >/dev/null
25646do
25647  # Write a limited-size here document to $tmp/undefs.sed.
25648  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25649  # Speed up: don't consider the non `#undef'
25650  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
25651  # Work around the forget-to-reset-the-flag bug.
25652  echo 't clr' >>$CONFIG_STATUS
25653  echo ': clr' >>$CONFIG_STATUS
25654  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25655  echo 'CEOF
25656  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25657  rm -f $tmp/in
25658  mv $tmp/out $tmp/in
25659' >>$CONFIG_STATUS
25660  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25661  rm -f conftest.undefs
25662  mv conftest.tail conftest.undefs
25663done
25664rm -f conftest.undefs
25665
25666cat >>$CONFIG_STATUS <<\_ACEOF
25667  # Let's still pretend it is `configure' which instantiates (i.e., don't
25668  # use $as_me), people would be surprised to read:
25669  #    /* config.h.  Generated by config.status.  */
25670  if test x"$ac_file" = x-; then
25671    echo "/* Generated by configure.  */" >$tmp/config.h
25672  else
25673    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25674  fi
25675  cat $tmp/in >>$tmp/config.h
25676  rm -f $tmp/in
25677  if test x"$ac_file" != x-; then
25678    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25679      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25680echo "$as_me: $ac_file is unchanged" >&6;}
25681    else
25682      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25684	 X"$ac_file" : 'X\(//\)[^/]' \| \
25685	 X"$ac_file" : 'X\(//\)$' \| \
25686	 X"$ac_file" : 'X\(/\)' \| \
25687	 .     : '\(.\)' 2>/dev/null ||
25688echo X"$ac_file" |
25689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25690  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25691  	  /^X\(\/\/\)$/{ s//\1/; q; }
25692  	  /^X\(\/\).*/{ s//\1/; q; }
25693  	  s/.*/./; q'`
25694      { if $as_mkdir_p; then
25695    mkdir -p "$ac_dir"
25696  else
25697    as_dir="$ac_dir"
25698    as_dirs=
25699    while test ! -d "$as_dir"; do
25700      as_dirs="$as_dir $as_dirs"
25701      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25703	 X"$as_dir" : 'X\(//\)[^/]' \| \
25704	 X"$as_dir" : 'X\(//\)$' \| \
25705	 X"$as_dir" : 'X\(/\)' \| \
25706	 .     : '\(.\)' 2>/dev/null ||
25707echo X"$as_dir" |
25708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25709  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25710  	  /^X\(\/\/\)$/{ s//\1/; q; }
25711  	  /^X\(\/\).*/{ s//\1/; q; }
25712  	  s/.*/./; q'`
25713    done
25714    test ! -n "$as_dirs" || mkdir $as_dirs
25715  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25716echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25717   { (exit 1); exit 1; }; }; }
25718
25719      rm -f $ac_file
25720      mv $tmp/config.h $ac_file
25721    fi
25722  else
25723    cat $tmp/config.h
25724    rm -f $tmp/config.h
25725  fi
25726done
25727_ACEOF
25728cat >>$CONFIG_STATUS <<\_ACEOF
25729
25730#
25731# CONFIG_LINKS section.
25732#
25733
25734for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25735  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25736  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25737
25738  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25739echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25740
25741  if test ! -r $srcdir/$ac_source; then
25742    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25743echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25744   { (exit 1); exit 1; }; }
25745  fi
25746  rm -f $ac_dest
25747
25748  # Make relative symlinks.
25749  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25750$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25751	 X"$ac_dest" : 'X\(//\)[^/]' \| \
25752	 X"$ac_dest" : 'X\(//\)$' \| \
25753	 X"$ac_dest" : 'X\(/\)' \| \
25754	 .     : '\(.\)' 2>/dev/null ||
25755echo X"$ac_dest" |
25756    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25757  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25758  	  /^X\(\/\/\)$/{ s//\1/; q; }
25759  	  /^X\(\/\).*/{ s//\1/; q; }
25760  	  s/.*/./; q'`
25761  { if $as_mkdir_p; then
25762    mkdir -p "$ac_dest_dir"
25763  else
25764    as_dir="$ac_dest_dir"
25765    as_dirs=
25766    while test ! -d "$as_dir"; do
25767      as_dirs="$as_dir $as_dirs"
25768      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25769$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25770	 X"$as_dir" : 'X\(//\)[^/]' \| \
25771	 X"$as_dir" : 'X\(//\)$' \| \
25772	 X"$as_dir" : 'X\(/\)' \| \
25773	 .     : '\(.\)' 2>/dev/null ||
25774echo X"$as_dir" |
25775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25776  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25777  	  /^X\(\/\/\)$/{ s//\1/; q; }
25778  	  /^X\(\/\).*/{ s//\1/; q; }
25779  	  s/.*/./; q'`
25780    done
25781    test ! -n "$as_dirs" || mkdir $as_dirs
25782  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25783echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25784   { (exit 1); exit 1; }; }; }
25785
25786  ac_builddir=.
25787
25788if test "$ac_dest_dir" != .; then
25789  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25790  # A "../" for each directory in $ac_dir_suffix.
25791  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25792else
25793  ac_dir_suffix= ac_top_builddir=
25794fi
25795
25796case $srcdir in
25797  .)  # No --srcdir option.  We are building in place.
25798    ac_srcdir=.
25799    if test -z "$ac_top_builddir"; then
25800       ac_top_srcdir=.
25801    else
25802       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25803    fi ;;
25804  [\\/]* | ?:[\\/]* )  # Absolute path.
25805    ac_srcdir=$srcdir$ac_dir_suffix;
25806    ac_top_srcdir=$srcdir ;;
25807  *) # Relative path.
25808    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25809    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25810esac
25811
25812# Do not use `cd foo && pwd` to compute absolute paths, because
25813# the directories may not exist.
25814case `pwd` in
25815.) ac_abs_builddir="$ac_dest_dir";;
25816*)
25817  case "$ac_dest_dir" in
25818  .) ac_abs_builddir=`pwd`;;
25819  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25820  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25821  esac;;
25822esac
25823case $ac_abs_builddir in
25824.) ac_abs_top_builddir=${ac_top_builddir}.;;
25825*)
25826  case ${ac_top_builddir}. in
25827  .) ac_abs_top_builddir=$ac_abs_builddir;;
25828  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25829  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25830  esac;;
25831esac
25832case $ac_abs_builddir in
25833.) ac_abs_srcdir=$ac_srcdir;;
25834*)
25835  case $ac_srcdir in
25836  .) ac_abs_srcdir=$ac_abs_builddir;;
25837  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25838  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25839  esac;;
25840esac
25841case $ac_abs_builddir in
25842.) ac_abs_top_srcdir=$ac_top_srcdir;;
25843*)
25844  case $ac_top_srcdir in
25845  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25846  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25847  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25848  esac;;
25849esac
25850
25851
25852  case $srcdir in
25853  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25854      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25855  esac
25856
25857  # Try a symlink, then a hard link, then a copy.
25858  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25859    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25860    cp -p $srcdir/$ac_source $ac_dest ||
25861    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25862echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25863   { (exit 1); exit 1; }; }
25864done
25865_ACEOF
25866cat >>$CONFIG_STATUS <<\_ACEOF
25867
25868#
25869# CONFIG_COMMANDS section.
25870#
25871for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25872  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25873  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25874  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25875$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25876	 X"$ac_dest" : 'X\(//\)[^/]' \| \
25877	 X"$ac_dest" : 'X\(//\)$' \| \
25878	 X"$ac_dest" : 'X\(/\)' \| \
25879	 .     : '\(.\)' 2>/dev/null ||
25880echo X"$ac_dest" |
25881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25882  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25883  	  /^X\(\/\/\)$/{ s//\1/; q; }
25884  	  /^X\(\/\).*/{ s//\1/; q; }
25885  	  s/.*/./; q'`
25886  { if $as_mkdir_p; then
25887    mkdir -p "$ac_dir"
25888  else
25889    as_dir="$ac_dir"
25890    as_dirs=
25891    while test ! -d "$as_dir"; do
25892      as_dirs="$as_dir $as_dirs"
25893      as_dir=`(dirname "$as_dir") 2>/dev/null ||
25894$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25895	 X"$as_dir" : 'X\(//\)[^/]' \| \
25896	 X"$as_dir" : 'X\(//\)$' \| \
25897	 X"$as_dir" : 'X\(/\)' \| \
25898	 .     : '\(.\)' 2>/dev/null ||
25899echo X"$as_dir" |
25900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25901  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25902  	  /^X\(\/\/\)$/{ s//\1/; q; }
25903  	  /^X\(\/\).*/{ s//\1/; q; }
25904  	  s/.*/./; q'`
25905    done
25906    test ! -n "$as_dirs" || mkdir $as_dirs
25907  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25908echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25909   { (exit 1); exit 1; }; }; }
25910
25911  ac_builddir=.
25912
25913if test "$ac_dir" != .; then
25914  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25915  # A "../" for each directory in $ac_dir_suffix.
25916  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25917else
25918  ac_dir_suffix= ac_top_builddir=
25919fi
25920
25921case $srcdir in
25922  .)  # No --srcdir option.  We are building in place.
25923    ac_srcdir=.
25924    if test -z "$ac_top_builddir"; then
25925       ac_top_srcdir=.
25926    else
25927       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25928    fi ;;
25929  [\\/]* | ?:[\\/]* )  # Absolute path.
25930    ac_srcdir=$srcdir$ac_dir_suffix;
25931    ac_top_srcdir=$srcdir ;;
25932  *) # Relative path.
25933    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25934    ac_top_srcdir=$ac_top_builddir$srcdir ;;
25935esac
25936
25937# Do not use `cd foo && pwd` to compute absolute paths, because
25938# the directories may not exist.
25939case `pwd` in
25940.) ac_abs_builddir="$ac_dir";;
25941*)
25942  case "$ac_dir" in
25943  .) ac_abs_builddir=`pwd`;;
25944  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25945  *) ac_abs_builddir=`pwd`/"$ac_dir";;
25946  esac;;
25947esac
25948case $ac_abs_builddir in
25949.) ac_abs_top_builddir=${ac_top_builddir}.;;
25950*)
25951  case ${ac_top_builddir}. in
25952  .) ac_abs_top_builddir=$ac_abs_builddir;;
25953  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25954  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25955  esac;;
25956esac
25957case $ac_abs_builddir in
25958.) ac_abs_srcdir=$ac_srcdir;;
25959*)
25960  case $ac_srcdir in
25961  .) ac_abs_srcdir=$ac_abs_builddir;;
25962  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25963  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25964  esac;;
25965esac
25966case $ac_abs_builddir in
25967.) ac_abs_top_srcdir=$ac_top_srcdir;;
25968*)
25969  case $ac_top_srcdir in
25970  .) ac_abs_top_srcdir=$ac_abs_builddir;;
25971  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25972  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25973  esac;;
25974esac
25975
25976
25977  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25978echo "$as_me: executing $ac_dest commands" >&6;}
25979  case $ac_dest in
25980    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25981    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25982    examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25983    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25984    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25985    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25986    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25987    test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25988    test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25989    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25990    tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
25991    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25992    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25993  esac
25994done
25995_ACEOF
25996
25997cat >>$CONFIG_STATUS <<\_ACEOF
25998
25999{ (exit 0); exit 0; }
26000_ACEOF
26001chmod +x $CONFIG_STATUS
26002ac_clean_files=$ac_clean_files_save
26003
26004
26005# configure is writing to config.log, and then calls config.status.
26006# config.status does its own redirection, appending to config.log.
26007# Unfortunately, on DOS this fails, as config.log is still kept open
26008# by configure, so config.status won't be able to write to it; its
26009# output is simply discarded.  So we exec the FD to /dev/null,
26010# effectively closing config.log, so it can be properly (re)opened and
26011# appended to by config.status.  When coming back to configure, we
26012# need to make the FD available again.
26013if test "$no_create" != yes; then
26014  ac_cs_success=:
26015  ac_config_status_args=
26016  test "$silent" = yes &&
26017    ac_config_status_args="$ac_config_status_args --quiet"
26018  exec 5>/dev/null
26019  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26020  exec 5>>config.log
26021  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26022  # would make configure fail if this is the last instruction.
26023  $ac_cs_success || { (exit 1); exit 1; }
26024fi
26025
26026#
26027# CONFIG_SUBDIRS section.
26028#
26029if test "$no_recursion" != yes; then
26030
26031  # Remove --cache-file and --srcdir arguments so they do not pile up.
26032  ac_sub_configure_args=
26033  ac_prev=
26034  for ac_arg in $ac_configure_args; do
26035    if test -n "$ac_prev"; then
26036      ac_prev=
26037      continue
26038    fi
26039    case $ac_arg in
26040    -cache-file | --cache-file | --cache-fil | --cache-fi \
26041    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26042      ac_prev=cache_file ;;
26043    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26044    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26045    | --c=*)
26046      ;;
26047    --config-cache | -C)
26048      ;;
26049    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26050      ac_prev=srcdir ;;
26051    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26052      ;;
26053    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26054      ac_prev=prefix ;;
26055    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26056      ;;
26057    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26058    esac
26059  done
26060
26061  # Always prepend --prefix to ensure using the same prefix
26062  # in subdir configurations.
26063  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26064
26065  ac_popdir=`pwd`
26066  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26067
26068    # Do not complain, so a configure script can configure whichever
26069    # parts of a large source tree are present.
26070    test -d $srcdir/$ac_dir || continue
26071
26072    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26073echo "$as_me: configuring in $ac_dir" >&6;}
26074    { if $as_mkdir_p; then
26075    mkdir -p "$ac_dir"
26076  else
26077    as_dir="$ac_dir"
26078    as_dirs=
26079    while test ! -d "$as_dir"; do
26080      as_dirs="$as_dir $as_dirs"
26081      as_dir=`(dirname "$as_dir") 2>/dev/null ||
26082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26083	 X"$as_dir" : 'X\(//\)[^/]' \| \
26084	 X"$as_dir" : 'X\(//\)$' \| \
26085	 X"$as_dir" : 'X\(/\)' \| \
26086	 .     : '\(.\)' 2>/dev/null ||
26087echo X"$as_dir" |
26088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26089  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26090  	  /^X\(\/\/\)$/{ s//\1/; q; }
26091  	  /^X\(\/\).*/{ s//\1/; q; }
26092  	  s/.*/./; q'`
26093    done
26094    test ! -n "$as_dirs" || mkdir $as_dirs
26095  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26096echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26097   { (exit 1); exit 1; }; }; }
26098
26099    ac_builddir=.
26100
26101if test "$ac_dir" != .; then
26102  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26103  # A "../" for each directory in $ac_dir_suffix.
26104  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26105else
26106  ac_dir_suffix= ac_top_builddir=
26107fi
26108
26109case $srcdir in
26110  .)  # No --srcdir option.  We are building in place.
26111    ac_srcdir=.
26112    if test -z "$ac_top_builddir"; then
26113       ac_top_srcdir=.
26114    else
26115       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26116    fi ;;
26117  [\\/]* | ?:[\\/]* )  # Absolute path.
26118    ac_srcdir=$srcdir$ac_dir_suffix;
26119    ac_top_srcdir=$srcdir ;;
26120  *) # Relative path.
26121    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26122    ac_top_srcdir=$ac_top_builddir$srcdir ;;
26123esac
26124
26125# Do not use `cd foo && pwd` to compute absolute paths, because
26126# the directories may not exist.
26127case `pwd` in
26128.) ac_abs_builddir="$ac_dir";;
26129*)
26130  case "$ac_dir" in
26131  .) ac_abs_builddir=`pwd`;;
26132  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26133  *) ac_abs_builddir=`pwd`/"$ac_dir";;
26134  esac;;
26135esac
26136case $ac_abs_builddir in
26137.) ac_abs_top_builddir=${ac_top_builddir}.;;
26138*)
26139  case ${ac_top_builddir}. in
26140  .) ac_abs_top_builddir=$ac_abs_builddir;;
26141  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26142  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26143  esac;;
26144esac
26145case $ac_abs_builddir in
26146.) ac_abs_srcdir=$ac_srcdir;;
26147*)
26148  case $ac_srcdir in
26149  .) ac_abs_srcdir=$ac_abs_builddir;;
26150  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26151  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26152  esac;;
26153esac
26154case $ac_abs_builddir in
26155.) ac_abs_top_srcdir=$ac_top_srcdir;;
26156*)
26157  case $ac_top_srcdir in
26158  .) ac_abs_top_srcdir=$ac_abs_builddir;;
26159  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26160  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26161  esac;;
26162esac
26163
26164
26165    cd $ac_dir
26166
26167    # Check for guested configure; otherwise get Cygnus style configure.
26168    if test -f $ac_srcdir/configure.gnu; then
26169      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26170    elif test -f $ac_srcdir/configure; then
26171      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26172    elif test -f $ac_srcdir/configure.in; then
26173      ac_sub_configure=$ac_configure
26174    else
26175      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26176echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26177      ac_sub_configure=
26178    fi
26179
26180    # The recursion is here.
26181    if test -n "$ac_sub_configure"; then
26182      # Make the cache file name correct relative to the subdirectory.
26183      case $cache_file in
26184      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26185      *) # Relative path.
26186	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26187      esac
26188
26189      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26190echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26191      # The eval makes quoting arguments work.
26192      eval $ac_sub_configure $ac_sub_configure_args \
26193	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26194	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26195echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26196   { (exit 1); exit 1; }; }
26197    fi
26198
26199    cd $ac_popdir
26200  done
26201fi
26202
26203
26204if test $bzip2_found -ne 1 ; then
26205  if test $zlib_found -ne 1 ; then
26206    { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26207echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26208    { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26209echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26210    { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26211echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26212  fi
26213fi
26214
26215if test $llvmgccwarn = yes
26216then
26217	{ echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26218echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26219	{ echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26220echo "$as_me: WARNING: ***** appear to be working." >&2;}
26221	{ echo "$as_me:$LINENO: WARNING: ***** " >&5
26222echo "$as_me: WARNING: ***** " >&2;}
26223	{ echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26224echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26225	{ echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26226echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26227	{ echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26228echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26229fi
26230
26231