configure revision 0582887de45f0196507ef356dcd5cb11bf7626ba
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
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# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254  # Remove one level of quotation (which was required for Make).
255  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256  ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261  # Discard the --no-reexec flag, and continue.
262  shift
263elif test "X$1" = X--fallback-echo; then
264  # Avoid inline document here, it may be left over
265  :
266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267  # Yippee, $echo works!
268  :
269else
270  # Restart under the correct shell.
271  exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275  # used as fallback echo
276  shift
277  cat <<EOF
278$*
279EOF
280  exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293       echo_test_string="`eval $cmd`" &&
294       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295    then
296      break
297    fi
298  done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303   test "X$echo_testing_string" = "X$echo_test_string"; then
304  :
305else
306  # The Solaris, AIX, and Digital Unix default echo programs unquote
307  # backslashes.  This makes it impossible to quote backslashes using
308  #   echo "$something" | sed 's/\\/\\\\/g'
309  #
310  # So, first we look for a working echo in the user's PATH.
311
312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313  for dir in $PATH /usr/ucb; do
314    IFS="$lt_save_ifs"
315    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318       test "X$echo_testing_string" = "X$echo_test_string"; then
319      echo="$dir/echo"
320      break
321    fi
322  done
323  IFS="$lt_save_ifs"
324
325  if test "X$echo" = Xecho; then
326    # We didn't find a better echo, so look for alternatives.
327    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      # This shell has a builtin print -r that does the trick.
331      echo='print -r'
332    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333	 test "X$CONFIG_SHELL" != X/bin/ksh; then
334      # If we have ksh, try running configure again with it.
335      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336      export ORIGINAL_CONFIG_SHELL
337      CONFIG_SHELL=/bin/ksh
338      export CONFIG_SHELL
339      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340    else
341      # Try using printf.
342      echo='printf %s\n'
343      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345	 test "X$echo_testing_string" = "X$echo_test_string"; then
346	# Cool, printf works
347	:
348      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349	   test "X$echo_testing_string" = 'X\t' &&
350	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351	   test "X$echo_testing_string" = "X$echo_test_string"; then
352	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353	export CONFIG_SHELL
354	SHELL="$CONFIG_SHELL"
355	export SHELL
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358	   test "X$echo_testing_string" = 'X\t' &&
359	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360	   test "X$echo_testing_string" = "X$echo_test_string"; then
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      else
363	# maybe with a smaller string...
364	prev=:
365
366	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368	  then
369	    break
370	  fi
371	  prev="$cmd"
372	done
373
374	if test "$prev" != 'sed 50q "$0"'; then
375	  echo_test_string=`eval $prev`
376	  export echo_test_string
377	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378	else
379	  # Oops.  We lost completely, so just stick with echo.
380	  echo=echo
381	fi
382      fi
383    fi
384  fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
397
398tagnames=${tagnames+${tagnames},}CXX
399
400tagnames=${tagnames+${tagnames},}F77
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME='llvm'
427PACKAGE_TARNAME='-llvm-'
428PACKAGE_VERSION='1.8cvs'
429PACKAGE_STRING='llvm 1.8cvs'
430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432ac_unique_file="lib/VMCore/Module.cpp"
433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456#  include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461#  include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472#  include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
479ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480ac_subst_files=''
481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523  # If the previous option needs an argument, assign it.
524  if test -n "$ac_prev"; then
525    eval "$ac_prev=\$ac_option"
526    ac_prev=
527    continue
528  fi
529
530  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532  # Accept the important Cygnus configure options, so we can diagnose typos.
533
534  case $ac_option in
535
536  -bindir | --bindir | --bindi | --bind | --bin | --bi)
537    ac_prev=bindir ;;
538  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539    bindir=$ac_optarg ;;
540
541  -build | --build | --buil | --bui | --bu)
542    ac_prev=build_alias ;;
543  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544    build_alias=$ac_optarg ;;
545
546  -cache-file | --cache-file | --cache-fil | --cache-fi \
547  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548    ac_prev=cache_file ;;
549  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551    cache_file=$ac_optarg ;;
552
553  --config-cache | -C)
554    cache_file=config.cache ;;
555
556  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557    ac_prev=datadir ;;
558  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559  | --da=*)
560    datadir=$ac_optarg ;;
561
562  -disable-* | --disable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    eval "enable_$ac_feature=no" ;;
570
571  -enable-* | --enable-*)
572    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576   { (exit 1); exit 1; }; }
577    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "enable_$ac_feature='$ac_optarg'" ;;
583
584  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586  | --exec | --exe | --ex)
587    ac_prev=exec_prefix ;;
588  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590  | --exec=* | --exe=* | --ex=*)
591    exec_prefix=$ac_optarg ;;
592
593  -gas | --gas | --ga | --g)
594    # Obsolete; use --with-gas.
595    with_gas=yes ;;
596
597  -help | --help | --hel | --he | -h)
598    ac_init_help=long ;;
599  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600    ac_init_help=recursive ;;
601  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602    ac_init_help=short ;;
603
604  -host | --host | --hos | --ho)
605    ac_prev=host_alias ;;
606  -host=* | --host=* | --hos=* | --ho=*)
607    host_alias=$ac_optarg ;;
608
609  -includedir | --includedir | --includedi | --included | --include \
610  | --includ | --inclu | --incl | --inc)
611    ac_prev=includedir ;;
612  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613  | --includ=* | --inclu=* | --incl=* | --inc=*)
614    includedir=$ac_optarg ;;
615
616  -infodir | --infodir | --infodi | --infod | --info | --inf)
617    ac_prev=infodir ;;
618  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619    infodir=$ac_optarg ;;
620
621  -libdir | --libdir | --libdi | --libd)
622    ac_prev=libdir ;;
623  -libdir=* | --libdir=* | --libdi=* | --libd=*)
624    libdir=$ac_optarg ;;
625
626  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627  | --libexe | --libex | --libe)
628    ac_prev=libexecdir ;;
629  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630  | --libexe=* | --libex=* | --libe=*)
631    libexecdir=$ac_optarg ;;
632
633  -localstatedir | --localstatedir | --localstatedi | --localstated \
634  | --localstate | --localstat | --localsta | --localst \
635  | --locals | --local | --loca | --loc | --lo)
636    ac_prev=localstatedir ;;
637  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640    localstatedir=$ac_optarg ;;
641
642  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643    ac_prev=mandir ;;
644  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645    mandir=$ac_optarg ;;
646
647  -nfp | --nfp | --nf)
648    # Obsolete; use --without-fp.
649    with_fp=no ;;
650
651  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652  | --no-cr | --no-c | -n)
653    no_create=yes ;;
654
655  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657    no_recursion=yes ;;
658
659  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661  | --oldin | --oldi | --old | --ol | --o)
662    ac_prev=oldincludedir ;;
663  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666    oldincludedir=$ac_optarg ;;
667
668  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669    ac_prev=prefix ;;
670  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671    prefix=$ac_optarg ;;
672
673  -program-prefix | --program-prefix | --program-prefi | --program-pref \
674  | --program-pre | --program-pr | --program-p)
675    ac_prev=program_prefix ;;
676  -program-prefix=* | --program-prefix=* | --program-prefi=* \
677  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678    program_prefix=$ac_optarg ;;
679
680  -program-suffix | --program-suffix | --program-suffi | --program-suff \
681  | --program-suf | --program-su | --program-s)
682    ac_prev=program_suffix ;;
683  -program-suffix=* | --program-suffix=* | --program-suffi=* \
684  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685    program_suffix=$ac_optarg ;;
686
687  -program-transform-name | --program-transform-name \
688  | --program-transform-nam | --program-transform-na \
689  | --program-transform-n | --program-transform- \
690  | --program-transform | --program-transfor \
691  | --program-transfo | --program-transf \
692  | --program-trans | --program-tran \
693  | --progr-tra | --program-tr | --program-t)
694    ac_prev=program_transform_name ;;
695  -program-transform-name=* | --program-transform-name=* \
696  | --program-transform-nam=* | --program-transform-na=* \
697  | --program-transform-n=* | --program-transform-=* \
698  | --program-transform=* | --program-transfor=* \
699  | --program-transfo=* | --program-transf=* \
700  | --program-trans=* | --program-tran=* \
701  | --progr-tra=* | --program-tr=* | --program-t=*)
702    program_transform_name=$ac_optarg ;;
703
704  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705  | -silent | --silent | --silen | --sile | --sil)
706    silent=yes ;;
707
708  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709    ac_prev=sbindir ;;
710  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711  | --sbi=* | --sb=*)
712    sbindir=$ac_optarg ;;
713
714  -sharedstatedir | --sharedstatedir | --sharedstatedi \
715  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716  | --sharedst | --shareds | --shared | --share | --shar \
717  | --sha | --sh)
718    ac_prev=sharedstatedir ;;
719  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722  | --sha=* | --sh=*)
723    sharedstatedir=$ac_optarg ;;
724
725  -site | --site | --sit)
726    ac_prev=site ;;
727  -site=* | --site=* | --sit=*)
728    site=$ac_optarg ;;
729
730  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731    ac_prev=srcdir ;;
732  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733    srcdir=$ac_optarg ;;
734
735  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736  | --syscon | --sysco | --sysc | --sys | --sy)
737    ac_prev=sysconfdir ;;
738  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740    sysconfdir=$ac_optarg ;;
741
742  -target | --target | --targe | --targ | --tar | --ta | --t)
743    ac_prev=target_alias ;;
744  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745    target_alias=$ac_optarg ;;
746
747  -v | -verbose | --verbose | --verbos | --verbo | --verb)
748    verbose=yes ;;
749
750  -version | --version | --versio | --versi | --vers | -V)
751    ac_init_version=: ;;
752
753  -with-* | --with-*)
754    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package| sed 's/-/_/g'`
760    case $ac_option in
761      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762      *) ac_optarg=yes ;;
763    esac
764    eval "with_$ac_package='$ac_optarg'" ;;
765
766  -without-* | --without-*)
767    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768    # Reject names that are not valid shell variable names.
769    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770      { echo "$as_me: error: invalid package name: $ac_package" >&2
771   { (exit 1); exit 1; }; }
772    ac_package=`echo $ac_package | sed 's/-/_/g'`
773    eval "with_$ac_package=no" ;;
774
775  --x)
776    # Obsolete; use --with-x.
777    with_x=yes ;;
778
779  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780  | --x-incl | --x-inc | --x-in | --x-i)
781    ac_prev=x_includes ;;
782  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784    x_includes=$ac_optarg ;;
785
786  -x-libraries | --x-libraries | --x-librarie | --x-librari \
787  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788    ac_prev=x_libraries ;;
789  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791    x_libraries=$ac_optarg ;;
792
793  -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795   { (exit 1); exit 1; }; }
796    ;;
797
798  *=*)
799    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803   { (exit 1); exit 1; }; }
804    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805    eval "$ac_envvar='$ac_optarg'"
806    export $ac_envvar ;;
807
808  *)
809    # FIXME: should be removed in autoconf 3.0.
810    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814    ;;
815
816  esac
817done
818
819if test -n "$ac_prev"; then
820  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821  { echo "$as_me: error: missing argument to $ac_option" >&2
822   { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838	      localstatedir libdir includedir oldincludedir infodir mandir
839do
840  eval ac_val=$`echo $ac_var`
841  case $ac_val in
842    [\\/$]* | ?:[\\/]* ) ;;
843    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844   { (exit 1); exit 1; }; };;
845  esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857  if test "x$build_alias" = x; then
858    cross_compiling=maybe
859    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860    If a cross compiler is detected then cross compile mode will be used." >&2
861  elif test "x$build_alias" != "x$host_alias"; then
862    cross_compiling=yes
863  fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874  ac_srcdir_defaulted=yes
875  # Try the directory containing this script, then its parent.
876  ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878	 X"$0" : 'X\(//\)[^/]' \| \
879	 X"$0" : 'X\(//\)$' \| \
880	 X"$0" : 'X\(/\)' \| \
881	 .     : '\(.\)' 2>/dev/null ||
882echo X"$0" |
883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885  	  /^X\(\/\/\)$/{ s//\1/; q; }
886  	  /^X\(\/\).*/{ s//\1/; q; }
887  	  s/.*/./; q'`
888  srcdir=$ac_confdir
889  if test ! -r $srcdir/$ac_unique_file; then
890    srcdir=..
891  fi
892else
893  ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896  if test "$ac_srcdir_defaulted" = yes; then
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898   { (exit 1); exit 1; }; }
899  else
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901   { (exit 1); exit 1; }; }
902  fi
903fi
904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906   { (exit 1); exit 1; }; }
907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024  --target=TARGET   configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029  case $ac_init_help in
1030     short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1031   esac
1032  cat <<\_ACEOF
1033
1034Optional Features:
1035  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037  --enable-optimized
1038  --enable-assertions
1039  --enable-debug-runtime
1040  --enable-jit            Enable Just In Time Compiling (default is YES)
1041  --enable-doxygen        Build doxygen documentation (default is NO)
1042  --enable-threads        Use threads if available (default is YES)
1043  --enable-target         Build specific host targets:
1044                          all,host-only,{target-name} (default=all)
1045  --enable-ltdl-install   install libltdl
1046  --enable-shared[=PKGS]
1047                          build shared libraries [default=yes]
1048  --enable-static[=PKGS]
1049                          build static libraries [default=yes]
1050  --enable-fast-install[=PKGS]
1051                          optimize for fast installation [default=yes]
1052  --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                          searches PATH)
1059  --with-tclinclude       directory where tcl headers are
1060  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061  --with-pic              try to use only PIC/non-PIC objects [default=use
1062                          both]
1063  --with-tags[=TAGS]
1064                          include additional configurations [automatic]
1065
1066Some influential environment variables:
1067  CC          C compiler command
1068  CFLAGS      C compiler flags
1069  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070              nonstandard directory <lib dir>
1071  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072              headers in a nonstandard directory <include dir>
1073  CPP         C preprocessor
1074  CXX         C++ compiler command
1075  CXXFLAGS    C++ compiler flags
1076  CXXCPP      C++ preprocessor
1077  F77         Fortran 77 compiler command
1078  FFLAGS      Fortran 77 compiler flags
1079
1080Use these variables to override the choices made by `configure' or to help
1081it to find libraries and programs with nonstandard names/locations.
1082
1083Report bugs to <llvmbugs@cs.uiuc.edu>.
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088  # If there are subdirs, report their specific --help.
1089  ac_popdir=`pwd`
1090  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091    test -d $ac_dir || continue
1092    ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096  # A "../" for each directory in $ac_dir_suffix.
1097  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099  ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103  .)  # No --srcdir option.  We are building in place.
1104    ac_srcdir=.
1105    if test -z "$ac_top_builddir"; then
1106       ac_top_srcdir=.
1107    else
1108       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109    fi ;;
1110  [\\/]* | ?:[\\/]* )  # Absolute path.
1111    ac_srcdir=$srcdir$ac_dir_suffix;
1112    ac_top_srcdir=$srcdir ;;
1113  *) # Relative path.
1114    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
1117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123  case "$ac_dir" in
1124  .) ac_abs_builddir=`pwd`;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132  case ${ac_top_builddir}. in
1133  .) ac_abs_top_builddir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136  esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141  case $ac_srcdir in
1142  .) ac_abs_srcdir=$ac_abs_builddir;;
1143  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145  esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150  case $ac_top_srcdir in
1151  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154  esac;;
1155esac
1156
1157    cd $ac_dir
1158    # Check for guested configure; otherwise get Cygnus style configure.
1159    if test -f $ac_srcdir/configure.gnu; then
1160      echo
1161      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162    elif test -f $ac_srcdir/configure; then
1163      echo
1164      $SHELL $ac_srcdir/configure  --help=recursive
1165    elif test -f $ac_srcdir/configure.ac ||
1166	   test -f $ac_srcdir/configure.in; then
1167      echo
1168      $ac_configure --help
1169    else
1170      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171    fi
1172    cd $ac_popdir
1173  done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178  cat <<\_ACEOF
1179llvm configure 1.8cvs
1180generated by GNU Autoconf 2.59
1181
1182Copyright (C) 2003 Free Software Foundation, Inc.
1183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
1185
1186Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187_ACEOF
1188  exit 0
1189fi
1190exec 5>config.log
1191cat >&5 <<_ACEOF
1192This file contains any messages produced by compilers while
1193running configure, to aid debugging if configure makes a mistake.
1194
1195It was created by llvm $as_me 1.8cvs, which was
1196generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198  $ $0 $@
1199
1200_ACEOF
1201{
1202cat <<_ASUNAME
1203## --------- ##
1204## Platform. ##
1205## --------- ##
1206
1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224_ASUNAME
1225
1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227for as_dir in $PATH
1228do
1229  IFS=$as_save_IFS
1230  test -z "$as_dir" && as_dir=.
1231  echo "PATH: $as_dir"
1232done
1233
1234} >&5
1235
1236cat >&5 <<_ACEOF
1237
1238
1239## ----------- ##
1240## Core tests. ##
1241## ----------- ##
1242
1243_ACEOF
1244
1245
1246# Keep a trace of the command line.
1247# Strip out --no-create and --no-recursion so they do not pile up.
1248# Strip out --silent because we don't want to record it for future runs.
1249# Also quote any args containing shell meta-characters.
1250# Make two passes to allow for proper duplicate-argument suppression.
1251ac_configure_args=
1252ac_configure_args0=
1253ac_configure_args1=
1254ac_sep=
1255ac_must_keep_next=false
1256for ac_pass in 1 2
1257do
1258  for ac_arg
1259  do
1260    case $ac_arg in
1261    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263    | -silent | --silent | --silen | --sile | --sil)
1264      continue ;;
1265    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267    esac
1268    case $ac_pass in
1269    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270    2)
1271      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272      if test $ac_must_keep_next = true; then
1273	ac_must_keep_next=false # Got value, back to normal.
1274      else
1275	case $ac_arg in
1276	  *=* | --config-cache | -C | -disable-* | --disable-* \
1277	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279	  | -with-* | --with-* | -without-* | --without-* | --x)
1280	    case "$ac_configure_args0 " in
1281	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282	    esac
1283	    ;;
1284	  -* ) ac_must_keep_next=true ;;
1285	esac
1286      fi
1287      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288      # Get rid of the leading space.
1289      ac_sep=" "
1290      ;;
1291    esac
1292  done
1293done
1294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297# When interrupted or exit'd, cleanup temporary files, and complete
1298# config.log.  We remove comments because anyway the quotes in there
1299# would cause problems or look ugly.
1300# WARNING: Be sure not to use single quotes in there, as some shells,
1301# such as our DU 5.0 friend, will then `close' the trap.
1302trap 'exit_status=$?
1303  # Save into config.log some information that might help in debugging.
1304  {
1305    echo
1306
1307    cat <<\_ASBOX
1308## ---------------- ##
1309## Cache variables. ##
1310## ---------------- ##
1311_ASBOX
1312    echo
1313    # The following way of writing the cache mishandles newlines in values,
1314{
1315  (set) 2>&1 |
1316    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317    *ac_space=\ *)
1318      sed -n \
1319	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321      ;;
1322    *)
1323      sed -n \
1324	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325      ;;
1326    esac;
1327}
1328    echo
1329
1330    cat <<\_ASBOX
1331## ----------------- ##
1332## Output variables. ##
1333## ----------------- ##
1334_ASBOX
1335    echo
1336    for ac_var in $ac_subst_vars
1337    do
1338      eval ac_val=$`echo $ac_var`
1339      echo "$ac_var='"'"'$ac_val'"'"'"
1340    done | sort
1341    echo
1342
1343    if test -n "$ac_subst_files"; then
1344      cat <<\_ASBOX
1345## ------------- ##
1346## Output files. ##
1347## ------------- ##
1348_ASBOX
1349      echo
1350      for ac_var in $ac_subst_files
1351      do
1352	eval ac_val=$`echo $ac_var`
1353	echo "$ac_var='"'"'$ac_val'"'"'"
1354      done | sort
1355      echo
1356    fi
1357
1358    if test -s confdefs.h; then
1359      cat <<\_ASBOX
1360## ----------- ##
1361## confdefs.h. ##
1362## ----------- ##
1363_ASBOX
1364      echo
1365      sed "/^$/d" confdefs.h | sort
1366      echo
1367    fi
1368    test "$ac_signal" != 0 &&
1369      echo "$as_me: caught signal $ac_signal"
1370    echo "$as_me: exit $exit_status"
1371  } >&5
1372  rm -f core *.core &&
1373  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374    exit $exit_status
1375     ' 0
1376for ac_signal in 1 2 13 15; do
1377  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378done
1379ac_signal=0
1380
1381# confdefs.h avoids OS command line length limits that DEFS can exceed.
1382rm -rf conftest* confdefs.h
1383# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384echo >confdefs.h
1385
1386# Predefined preprocessor variables.
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_NAME "$PACKAGE_NAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_STRING "$PACKAGE_STRING"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410_ACEOF
1411
1412
1413# Let the site file select an alternate cache file if it wants to.
1414# Prefer explicitly selected file to automatically selected ones.
1415if test -z "$CONFIG_SITE"; then
1416  if test "x$prefix" != xNONE; then
1417    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418  else
1419    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420  fi
1421fi
1422for ac_site_file in $CONFIG_SITE; do
1423  if test -r "$ac_site_file"; then
1424    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425echo "$as_me: loading site script $ac_site_file" >&6;}
1426    sed 's/^/| /' "$ac_site_file" >&5
1427    . "$ac_site_file"
1428  fi
1429done
1430
1431if test -r "$cache_file"; then
1432  # Some versions of bash will fail to source /dev/null (special
1433  # files actually), so we avoid doing that.
1434  if test -f "$cache_file"; then
1435    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436echo "$as_me: loading cache $cache_file" >&6;}
1437    case $cache_file in
1438      [\\/]* | ?:[\\/]* ) . $cache_file;;
1439      *)                      . ./$cache_file;;
1440    esac
1441  fi
1442else
1443  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444echo "$as_me: creating cache $cache_file" >&6;}
1445  >$cache_file
1446fi
1447
1448# Check that the precious variables saved in the cache have kept the same
1449# value.
1450ac_cache_corrupted=false
1451for ac_var in `(set) 2>&1 |
1452	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454  eval ac_new_set=\$ac_env_${ac_var}_set
1455  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456  eval ac_new_val="\$ac_env_${ac_var}_value"
1457  case $ac_old_set,$ac_new_set in
1458    set,)
1459      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461      ac_cache_corrupted=: ;;
1462    ,set)
1463      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465      ac_cache_corrupted=: ;;
1466    ,);;
1467    *)
1468      if test "x$ac_old_val" != "x$ac_new_val"; then
1469	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472echo "$as_me:   former value:  $ac_old_val" >&2;}
1473	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474echo "$as_me:   current value: $ac_new_val" >&2;}
1475	ac_cache_corrupted=:
1476      fi;;
1477  esac
1478  # Pass precious variables to config.status.
1479  if test "$ac_new_set" = set; then
1480    case $ac_new_val in
1481    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483    *) ac_arg=$ac_var=$ac_new_val ;;
1484    esac
1485    case " $ac_configure_args " in
1486      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488    esac
1489  fi
1490done
1491if $ac_cache_corrupted; then
1492  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496   { (exit 1); exit 1; }; }
1497fi
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540ac_aux_dir=
1541for ac_dir in autoconf $srcdir/autoconf; do
1542  if test -f $ac_dir/install-sh; then
1543    ac_aux_dir=$ac_dir
1544    ac_install_sh="$ac_aux_dir/install-sh -c"
1545    break
1546  elif test -f $ac_dir/install.sh; then
1547    ac_aux_dir=$ac_dir
1548    ac_install_sh="$ac_aux_dir/install.sh -c"
1549    break
1550  elif test -f $ac_dir/shtool; then
1551    ac_aux_dir=$ac_dir
1552    ac_install_sh="$ac_aux_dir/shtool install -c"
1553    break
1554  fi
1555done
1556if test -z "$ac_aux_dir"; then
1557  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559   { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566if test ${srcdir} != "." ; then
1567  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570   { (exit 1); exit 1; }; }
1571  fi
1572fi
1573
1574for i in `ls ${srcdir}/projects`
1575do
1576  if test -d ${srcdir}/projects/${i} ; then
1577    case ${i} in
1578      "CVS") ;;
1579      "sample")
1580
1581subdirs="$subdirs projects/sample"
1582    ;;
1583      "Stacker")
1584
1585subdirs="$subdirs projects/Stacker"
1586   ;;
1587      "llvm-test")
1588
1589subdirs="$subdirs projects/llvm-test"
1590 ;;
1591      "llvm-reopt")
1592
1593subdirs="$subdirs projects/llvm-reopt"
1594;;
1595      "llvm-gcc")
1596
1597subdirs="$subdirs projects/llvm-gcc"
1598  ;;
1599      "llvm-java")
1600
1601subdirs="$subdirs projects/llvm-java"
1602 ;;
1603      "llvm-tv")
1604
1605subdirs="$subdirs projects/llvm-tv"
1606   ;;
1607      "llvm-poolalloc")
1608
1609subdirs="$subdirs projects/llvm-poolalloc"
1610 ;;
1611      "llvm-kernel")
1612
1613subdirs="$subdirs projects/llvm-kernel"
1614 ;;
1615      *)
1616        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618        ;;
1619    esac
1620  fi
1621done
1622
1623
1624# Make sure we can run config.sub.
1625$ac_config_sub sun4 >/dev/null 2>&1 ||
1626  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628   { (exit 1); exit 1; }; }
1629
1630echo "$as_me:$LINENO: checking build system type" >&5
1631echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632if test "${ac_cv_build+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  ac_cv_build_alias=$build_alias
1636test -z "$ac_cv_build_alias" &&
1637  ac_cv_build_alias=`$ac_config_guess`
1638test -z "$ac_cv_build_alias" &&
1639  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641   { (exit 1); exit 1; }; }
1642ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645   { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649echo "${ECHO_T}$ac_cv_build" >&6
1650build=$ac_cv_build
1651build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656echo "$as_me:$LINENO: checking host system type" >&5
1657echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658if test "${ac_cv_host+set}" = set; then
1659  echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661  ac_cv_host_alias=$host_alias
1662test -z "$ac_cv_host_alias" &&
1663  ac_cv_host_alias=$ac_cv_build_alias
1664ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667   { (exit 1); exit 1; }; }
1668
1669fi
1670echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671echo "${ECHO_T}$ac_cv_host" >&6
1672host=$ac_cv_host
1673host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678echo "$as_me:$LINENO: checking target system type" >&5
1679echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680if test "${ac_cv_target+set}" = set; then
1681  echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683  ac_cv_target_alias=$target_alias
1684test "x$ac_cv_target_alias" = "x" &&
1685  ac_cv_target_alias=$ac_cv_host_alias
1686ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689   { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693echo "${ECHO_T}$ac_cv_target" >&6
1694target=$ac_cv_target
1695target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700# The aliases save the names the user supplied, while $host etc.
1701# will get canonicalized.
1702test -n "$target_alias" &&
1703  test "$program_prefix$program_suffix$program_transform_name" = \
1704    NONENONEs,x,x, &&
1705  program_prefix=${target_alias}-
1706
1707echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709if test "${llvm_cv_os_type+set}" = set; then
1710  echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712  case $build in
1713  *-*-aix*)
1714    llvm_cv_os_type="AIX"
1715    llvm_cv_platform_type="Unix" ;;
1716  *-*-cygwin*)
1717    llvm_cv_os_type="Cygwin"
1718    llvm_cv_platform_type="Unix" ;;
1719  *-*-darwin*)
1720    llvm_cv_os_type="Darwin"
1721    llvm_cv_platform_type="Unix" ;;
1722  *-*-freebsd*)
1723    llvm_cv_os_type="FreeBSD"
1724    llvm_cv_platform_type="Unix" ;;
1725  *-*-openbsd*)
1726    llvm_cv_os_type="OpenBSD"
1727    llvm_cv_platform_type="Unix" ;;
1728  *-*-hpux*)
1729    llvm_cv_os_type="HP-UX"
1730    llvm_cv_platform_type="Unix" ;;
1731  *-*-interix*)
1732    llvm_cv_os_type="Interix"
1733    llvm_cv_platform_type="Unix" ;;
1734  *-*-linux*)
1735    llvm_cv_os_type="Linux"
1736    llvm_cv_platform_type="Unix" ;;
1737  *-*-solaris*)
1738    llvm_cv_os_type="SunOS"
1739    llvm_cv_platform_type="Unix" ;;
1740  *-*-win32*)
1741    llvm_cv_os_type="Win32"
1742    llvm_cv_platform_type="Win32" ;;
1743  *-*-mingw*)
1744    llvm_cv_os_type="MingW"
1745    llvm_cv_platform_type="Win32" ;;
1746  *)
1747    llvm_cv_os_type="Unknown"
1748    llvm_cv_platform_type="Unknown" ;;
1749esac
1750fi
1751echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1752echo "${ECHO_T}$llvm_cv_os_type" >&6
1753
1754if test "$llvm_cv_os_type" = "Unknown" ; then
1755  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1756echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1757   { (exit 1); exit 1; }; }
1758fi
1759
1760OS=$llvm_cv_os_type
1761
1762
1763case $llvm_cv_platform_type in
1764  Unix)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_UNIX 1
1768_ACEOF
1769
1770    LLVM_ON_UNIX=1
1771
1772    LLVM_ON_WIN32=0
1773
1774    ;;
1775  Win32)
1776
1777cat >>confdefs.h <<\_ACEOF
1778#define LLVM_ON_WIN32 1
1779_ACEOF
1780
1781    LLVM_ON_UNIX=0
1782
1783    LLVM_ON_WIN32=1
1784
1785    ;;
1786esac
1787
1788echo "$as_me:$LINENO: checking target architecture" >&5
1789echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1790if test "${llvm_cv_target_arch+set}" = set; then
1791  echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793  case $target in
1794  i?86-*)                 llvm_cv_target_arch="x86" ;;
1795  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1796  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1797  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1798  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1799  ia64-*)                 llvm_cv_target_arch="IA64" ;;
1800  *)                      llvm_cv_target_arch="Unknown" ;;
1801esac
1802fi
1803echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1804echo "${ECHO_T}$llvm_cv_target_arch" >&6
1805
1806if test "$llvm_cv_target_arch" = "Unknown" ; then
1807  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1808echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1809fi
1810
1811ARCH=$llvm_cv_target_arch
1812
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819if test -n "$ac_tool_prefix"; then
1820  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824if test "${ac_cv_prog_CC+set}" = set; then
1825  echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827  if test -n "$CC"; then
1828  ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833  IFS=$as_save_IFS
1834  test -z "$as_dir" && as_dir=.
1835  for ac_exec_ext in '' $ac_executable_extensions; do
1836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839    break 2
1840  fi
1841done
1842done
1843
1844fi
1845fi
1846CC=$ac_cv_prog_CC
1847if test -n "$CC"; then
1848  echo "$as_me:$LINENO: result: $CC" >&5
1849echo "${ECHO_T}$CC" >&6
1850else
1851  echo "$as_me:$LINENO: result: no" >&5
1852echo "${ECHO_T}no" >&6
1853fi
1854
1855fi
1856if test -z "$ac_cv_prog_CC"; then
1857  ac_ct_CC=$CC
1858  # Extract the first word of "gcc", so it can be a program name with args.
1859set dummy gcc; ac_word=$2
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  if test -n "$ac_ct_CC"; then
1866  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871  IFS=$as_save_IFS
1872  test -z "$as_dir" && as_dir=.
1873  for ac_exec_ext in '' $ac_executable_extensions; do
1874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875    ac_cv_prog_ac_ct_CC="gcc"
1876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877    break 2
1878  fi
1879done
1880done
1881
1882fi
1883fi
1884ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885if test -n "$ac_ct_CC"; then
1886  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887echo "${ECHO_T}$ac_ct_CC" >&6
1888else
1889  echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893  CC=$ac_ct_CC
1894else
1895  CC="$ac_cv_prog_CC"
1896fi
1897
1898if test -z "$CC"; then
1899  if test -n "$ac_tool_prefix"; then
1900  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901set dummy ${ac_tool_prefix}cc; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_CC+set}" = set; then
1905  echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907  if test -n "$CC"; then
1908  ac_cv_prog_CC="$CC" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  test -z "$as_dir" && as_dir=.
1915  for ac_exec_ext in '' $ac_executable_extensions; do
1916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917    ac_cv_prog_CC="${ac_tool_prefix}cc"
1918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919    break 2
1920  fi
1921done
1922done
1923
1924fi
1925fi
1926CC=$ac_cv_prog_CC
1927if test -n "$CC"; then
1928  echo "$as_me:$LINENO: result: $CC" >&5
1929echo "${ECHO_T}$CC" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935fi
1936if test -z "$ac_cv_prog_CC"; then
1937  ac_ct_CC=$CC
1938  # Extract the first word of "cc", so it can be a program name with args.
1939set dummy cc; ac_word=$2
1940echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943  echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945  if test -n "$ac_ct_CC"; then
1946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1947else
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951  IFS=$as_save_IFS
1952  test -z "$as_dir" && as_dir=.
1953  for ac_exec_ext in '' $ac_executable_extensions; do
1954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955    ac_cv_prog_ac_ct_CC="cc"
1956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957    break 2
1958  fi
1959done
1960done
1961
1962fi
1963fi
1964ac_ct_CC=$ac_cv_prog_ac_ct_CC
1965if test -n "$ac_ct_CC"; then
1966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967echo "${ECHO_T}$ac_ct_CC" >&6
1968else
1969  echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6
1971fi
1972
1973  CC=$ac_ct_CC
1974else
1975  CC="$ac_cv_prog_CC"
1976fi
1977
1978fi
1979if test -z "$CC"; then
1980  # Extract the first word of "cc", so it can be a program name with args.
1981set dummy cc; ac_word=$2
1982echo "$as_me:$LINENO: checking for $ac_word" >&5
1983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984if test "${ac_cv_prog_CC+set}" = set; then
1985  echo $ECHO_N "(cached) $ECHO_C" >&6
1986else
1987  if test -n "$CC"; then
1988  ac_cv_prog_CC="$CC" # Let the user override the test.
1989else
1990  ac_prog_rejected=no
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994  IFS=$as_save_IFS
1995  test -z "$as_dir" && as_dir=.
1996  for ac_exec_ext in '' $ac_executable_extensions; do
1997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999       ac_prog_rejected=yes
2000       continue
2001     fi
2002    ac_cv_prog_CC="cc"
2003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004    break 2
2005  fi
2006done
2007done
2008
2009if test $ac_prog_rejected = yes; then
2010  # We found a bogon in the path, so make sure we never use it.
2011  set dummy $ac_cv_prog_CC
2012  shift
2013  if test $# != 0; then
2014    # We chose a different compiler from the bogus one.
2015    # However, it has the same basename, so the bogon will be chosen
2016    # first if we set CC to just the basename; use the full file name.
2017    shift
2018    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2019  fi
2020fi
2021fi
2022fi
2023CC=$ac_cv_prog_CC
2024if test -n "$CC"; then
2025  echo "$as_me:$LINENO: result: $CC" >&5
2026echo "${ECHO_T}$CC" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032fi
2033if test -z "$CC"; then
2034  if test -n "$ac_tool_prefix"; then
2035  for ac_prog in cl
2036  do
2037    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2039echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041if test "${ac_cv_prog_CC+set}" = set; then
2042  echo $ECHO_N "(cached) $ECHO_C" >&6
2043else
2044  if test -n "$CC"; then
2045  ac_cv_prog_CC="$CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052  for ac_exec_ext in '' $ac_executable_extensions; do
2053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056    break 2
2057  fi
2058done
2059done
2060
2061fi
2062fi
2063CC=$ac_cv_prog_CC
2064if test -n "$CC"; then
2065  echo "$as_me:$LINENO: result: $CC" >&5
2066echo "${ECHO_T}$CC" >&6
2067else
2068  echo "$as_me:$LINENO: result: no" >&5
2069echo "${ECHO_T}no" >&6
2070fi
2071
2072    test -n "$CC" && break
2073  done
2074fi
2075if test -z "$CC"; then
2076  ac_ct_CC=$CC
2077  for ac_prog in cl
2078do
2079  # Extract the first word of "$ac_prog", so it can be a program name with args.
2080set dummy $ac_prog; ac_word=$2
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  if test -n "$ac_ct_CC"; then
2087  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088else
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092  IFS=$as_save_IFS
2093  test -z "$as_dir" && as_dir=.
2094  for ac_exec_ext in '' $ac_executable_extensions; do
2095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096    ac_cv_prog_ac_ct_CC="$ac_prog"
2097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098    break 2
2099  fi
2100done
2101done
2102
2103fi
2104fi
2105ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106if test -n "$ac_ct_CC"; then
2107  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108echo "${ECHO_T}$ac_ct_CC" >&6
2109else
2110  echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
2112fi
2113
2114  test -n "$ac_ct_CC" && break
2115done
2116
2117  CC=$ac_ct_CC
2118fi
2119
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131     "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134  (eval $ac_compiler --version </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139  (eval $ac_compiler -v </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144  (eval $ac_compiler -V </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h.  */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h.  */
2155
2156int
2157main ()
2158{
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
2165ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
2169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173  (eval $ac_link_default) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  # Find the output, starting from the most likely.  This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
2184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187  test -f "$ac_file" || continue
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190	;;
2191    conftest.$ac_ext )
2192	# This is the source file.
2193	;;
2194    [ab].out )
2195	# We found the default executable, but exeext='' is most
2196	# certainly right.
2197	break;;
2198    *.* )
2199	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200	# FIXME: I believe we export ac_cv_exeext for Libtool,
2201	# but it would be cool to find out if it's true.  Does anybody
2202	# maintain Libtool? --akim.
2203	export ac_cv_exeext
2204	break;;
2205    * )
2206	break;;
2207  esac
2208done
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: C compiler cannot create executables
2216See \`config.log' for more details." >&2;}
2217   { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run.  If not, either
2225# the compiler is broken, or we cross compile.
2226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231  if { ac_try='./$ac_file'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237    cross_compiling=no
2238  else
2239    if test "$cross_compiling" = maybe; then
2240	cross_compiling=yes
2241    else
2242	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249    fi
2250  fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run.  If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280	  export ac_cv_exeext
2281	  break;;
2282    * ) break;;
2283  esac
2284done
2285else
2286  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330       break;;
2331  esac
2332done
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382	 { ac_try='test -z "$ac_c_werror_flag"
2383			 || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389	 { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441	 { ac_try='test -z "$ac_c_werror_flag"
2442			 || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448	 { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX			-qlanglvl=ansi
2542# Ultrix and OSF/1	-std1
2543# HP-UX 10.20 and later	-Ae
2544# HP-UX older versions	-Aa -D_HPUX_SOURCE
2545# SVR4			-Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558	 { ac_try='test -z "$ac_c_werror_flag"
2559			 || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565	 { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659	 { ac_try='test -z "$ac_c_werror_flag"
2660			 || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666	 { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744
2745echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2746echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2747if test "${ac_cv_c_bigendian+set}" = set; then
2748  echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750  # See if sys/param.h defines the BYTE_ORDER macro.
2751cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757#include <sys/types.h>
2758#include <sys/param.h>
2759
2760int
2761main ()
2762{
2763#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2764 bogus endian macros
2765#endif
2766
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773  (eval $ac_compile) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780	 { ac_try='test -z "$ac_c_werror_flag"
2781			 || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787	 { ac_try='test -s conftest.$ac_objext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  # It does; now see whether it defined to BIG_ENDIAN or not.
2794cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h.  */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h.  */
2800#include <sys/types.h>
2801#include <sys/param.h>
2802
2803int
2804main ()
2805{
2806#if BYTE_ORDER != BIG_ENDIAN
2807 not big endian
2808#endif
2809
2810  ;
2811  return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816  (eval $ac_compile) 2>conftest.er1
2817  ac_status=$?
2818  grep -v '^ *+' conftest.er1 >conftest.err
2819  rm -f conftest.er1
2820  cat conftest.err >&5
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); } &&
2823	 { ac_try='test -z "$ac_c_werror_flag"
2824			 || test ! -s conftest.err'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; } &&
2830	 { ac_try='test -s conftest.$ac_objext'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; }; then
2836  ac_cv_c_bigendian=yes
2837else
2838  echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841ac_cv_c_bigendian=no
2842fi
2843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2844else
2845  echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848# It does not; compile a test program.
2849if test "$cross_compiling" = yes; then
2850  # try to guess the endianness by grepping values into an object file
2851  ac_cv_c_bigendian=unknown
2852  cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h.  */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h.  */
2858short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2859short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2860void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2861short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2862short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2863void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2864int
2865main ()
2866{
2867 _ascii (); _ebcdic ();
2868  ;
2869  return 0;
2870}
2871_ACEOF
2872rm -f conftest.$ac_objext
2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874  (eval $ac_compile) 2>conftest.er1
2875  ac_status=$?
2876  grep -v '^ *+' conftest.er1 >conftest.err
2877  rm -f conftest.er1
2878  cat conftest.err >&5
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); } &&
2881	 { ac_try='test -z "$ac_c_werror_flag"
2882			 || test ! -s conftest.err'
2883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884  (eval $ac_try) 2>&5
2885  ac_status=$?
2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887  (exit $ac_status); }; } &&
2888	 { ac_try='test -s conftest.$ac_objext'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; }; then
2894  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2895  ac_cv_c_bigendian=yes
2896fi
2897if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2898  if test "$ac_cv_c_bigendian" = unknown; then
2899    ac_cv_c_bigendian=no
2900  else
2901    # finding both strings is unlikely to happen, but who knows?
2902    ac_cv_c_bigendian=unknown
2903  fi
2904fi
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911else
2912  cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h.  */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h.  */
2918int
2919main ()
2920{
2921  /* Are we little or big endian?  From Harbison&Steele.  */
2922  union
2923  {
2924    long l;
2925    char c[sizeof (long)];
2926  } u;
2927  u.l = 1;
2928  exit (u.c[sizeof (long) - 1] == 1);
2929}
2930_ACEOF
2931rm -f conftest$ac_exeext
2932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933  (eval $ac_link) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; }; then
2942  ac_cv_c_bigendian=no
2943else
2944  echo "$as_me: program exited with status $ac_status" >&5
2945echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948( exit $ac_status )
2949ac_cv_c_bigendian=yes
2950fi
2951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952fi
2953fi
2954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955fi
2956echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2957echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2958case $ac_cv_c_bigendian in
2959  yes)
2960    ENDIAN=big
2961 ;;
2962  no)
2963    ENDIAN=little
2964 ;;
2965  *)
2966    { { echo "$as_me:$LINENO: error: unknown endianness
2967presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2968echo "$as_me: error: unknown endianness
2969presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2970   { (exit 1); exit 1; }; } ;;
2971esac
2972
2973
2974if test -d "CVS" -o -d "${srcdir}/CVS"; then
2975  cvsbuild="yes"
2976  optimize="no"
2977  CVSBUILD=CVSBUILD=1
2978
2979else
2980  cvsbuild="no"
2981  optimize="yes"
2982fi
2983
2984
2985# Check whether --enable-optimized or --disable-optimized was given.
2986if test "${enable_optimized+set}" = set; then
2987  enableval="$enable_optimized"
2988
2989else
2990  enableval=$optimize
2991fi;
2992if test ${enableval} = "no" ; then
2993  ENABLE_OPTIMIZED=
2994
2995else
2996  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2997
2998fi
2999
3000# Check whether --enable-assertions or --disable-assertions was given.
3001if test "${enable_assertions+set}" = set; then
3002  enableval="$enable_assertions"
3003
3004else
3005  enableval="yes"
3006fi;
3007if test ${enableval} = "yes" ; then
3008  DISABLE_ASSERTIONS=
3009
3010else
3011  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3012
3013fi
3014
3015# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3016if test "${enable_debug_runtime+set}" = set; then
3017  enableval="$enable_debug_runtime"
3018
3019else
3020  enableval=no
3021fi;
3022if test ${enableval} = "no" ; then
3023  DEBUG_RUNTIME=
3024
3025else
3026  DEBUG_RUNTIME=DEBUG_RUNTIME=1
3027
3028fi
3029
3030# Check whether --enable-jit or --disable-jit was given.
3031if test "${enable_jit+set}" = set; then
3032  enableval="$enable_jit"
3033
3034else
3035  enableval=default
3036fi;
3037if test ${enableval} = "no"
3038then
3039  JIT=
3040
3041else
3042  case "$llvm_cv_target_arch" in
3043    x86)     TARGET_HAS_JIT=1
3044 ;;
3045    Sparc)   TARGET_HAS_JIT=1
3046 ;;
3047    PowerPC) TARGET_HAS_JIT=1
3048 ;;
3049    x86_64)  TARGET_HAS_JIT=0
3050 ;;
3051    Alpha)   TARGET_HAS_JIT=1
3052 ;;
3053    IA64)    TARGET_HAS_JIT=0
3054 ;;
3055    *)       TARGET_HAS_JIT=0
3056 ;;
3057  esac
3058fi
3059
3060# Check whether --enable-doxygen or --disable-doxygen was given.
3061if test "${enable_doxygen+set}" = set; then
3062  enableval="$enable_doxygen"
3063
3064else
3065  enableval=default
3066fi;
3067case "$enableval" in
3068  yes) ENABLE_DOXYGEN=1
3069 ;;
3070  no)  ENABLE_DOXYGEN=0
3071 ;;
3072  default) ENABLE_DOXYGEN=0
3073 ;;
3074  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3075echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3076   { (exit 1); exit 1; }; } ;;
3077esac
3078
3079# Check whether --enable-threads or --disable-threads was given.
3080if test "${enable_threads+set}" = set; then
3081  enableval="$enable_threads"
3082
3083else
3084  enableval=yes
3085fi;
3086case "$enableval" in
3087  yes) ENABLE_THREADS=1
3088 ;;
3089  no)  ENABLE_THREADS=0
3090 ;;
3091  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3092echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3093   { (exit 1); exit 1; }; } ;;
3094esac
3095
3096cat >>confdefs.h <<_ACEOF
3097#define ENABLE_THREADS $ENABLE_THREADS
3098_ACEOF
3099
3100
3101TARGETS_TO_BUILD=""
3102# Check whether --enable-targets or --disable-targets was given.
3103if test "${enable_targets+set}" = set; then
3104  enableval="$enable_targets"
3105
3106else
3107  enableval=all
3108fi;
3109case "$enableval" in
3110  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3111  host-only)
3112    case "$llvm_cv_target_arch" in
3113      x86)     TARGETS_TO_BUILD="X86" ;;
3114      x86_64)  TARGETS_TO_BUILD="X86" ;;
3115      Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3116      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3117      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3118      IA64)    TARGETS_TO_BUILD="IA64" ;;
3119      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3120echo "$as_me: error: Can not set target to build" >&2;}
3121   { (exit 1); exit 1; }; } ;;
3122    esac
3123    ;;
3124  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3125      case "$a_target" in
3126        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3127        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3128        sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3129        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3130        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3131        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3132        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3133echo "$as_me: error: Unrecognized target $a_target" >&2;}
3134   { (exit 1); exit 1; }; } ;;
3135      esac
3136  done
3137  ;;
3138esac
3139TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3140TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3141
3142
3143
3144# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3145if test "${with_llvmgccdir+set}" = set; then
3146  withval="$with_llvmgccdir"
3147
3148else
3149  withval=default
3150fi;
3151case "$withval" in
3152  default) WITH_LLVMGCCDIR=default ;;
3153  /*)      WITH_LLVMGCCDIR=$withval ;;
3154  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3155echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3156   { (exit 1); exit 1; }; } ;;
3157esac
3158
3159
3160
3161ac_ext=c
3162ac_cpp='$CPP $CPPFLAGS'
3163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3167echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3168# On Suns, sometimes $CPP names a directory.
3169if test -n "$CPP" && test -d "$CPP"; then
3170  CPP=
3171fi
3172if test -z "$CPP"; then
3173  if test "${ac_cv_prog_CPP+set}" = set; then
3174  echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176      # Double quotes because CPP needs to be expanded
3177    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178    do
3179      ac_preproc_ok=false
3180for ac_c_preproc_warn_flag in '' yes
3181do
3182  # Use a header file that comes with gcc, so configuring glibc
3183  # with a fresh cross-compiler works.
3184  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3185  # <limits.h> exists even on freestanding compilers.
3186  # On the NeXT, cc -E runs the code through the compiler's parser,
3187  # not just through cpp. "Syntax error" is here to catch this case.
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194#ifdef __STDC__
3195# include <limits.h>
3196#else
3197# include <assert.h>
3198#endif
3199		     Syntax error
3200_ACEOF
3201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3202  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3203  ac_status=$?
3204  grep -v '^ *+' conftest.er1 >conftest.err
3205  rm -f conftest.er1
3206  cat conftest.err >&5
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); } >/dev/null; then
3209  if test -s conftest.err; then
3210    ac_cpp_err=$ac_c_preproc_warn_flag
3211    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3212  else
3213    ac_cpp_err=
3214  fi
3215else
3216  ac_cpp_err=yes
3217fi
3218if test -z "$ac_cpp_err"; then
3219  :
3220else
3221  echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224  # Broken: fails on valid input.
3225continue
3226fi
3227rm -f conftest.err conftest.$ac_ext
3228
3229  # OK, works on sane cases.  Now check whether non-existent headers
3230  # can be detected and how.
3231  cat >conftest.$ac_ext <<_ACEOF
3232/* confdefs.h.  */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h.  */
3237#include <ac_nonexistent.h>
3238_ACEOF
3239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } >/dev/null; then
3247  if test -s conftest.err; then
3248    ac_cpp_err=$ac_c_preproc_warn_flag
3249    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250  else
3251    ac_cpp_err=
3252  fi
3253else
3254  ac_cpp_err=yes
3255fi
3256if test -z "$ac_cpp_err"; then
3257  # Broken: success on invalid input.
3258continue
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263  # Passes both tests.
3264ac_preproc_ok=:
3265break
3266fi
3267rm -f conftest.err conftest.$ac_ext
3268
3269done
3270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271rm -f conftest.err conftest.$ac_ext
3272if $ac_preproc_ok; then
3273  break
3274fi
3275
3276    done
3277    ac_cv_prog_CPP=$CPP
3278
3279fi
3280  CPP=$ac_cv_prog_CPP
3281else
3282  ac_cv_prog_CPP=$CPP
3283fi
3284echo "$as_me:$LINENO: result: $CPP" >&5
3285echo "${ECHO_T}$CPP" >&6
3286ac_preproc_ok=false
3287for ac_c_preproc_warn_flag in '' yes
3288do
3289  # Use a header file that comes with gcc, so configuring glibc
3290  # with a fresh cross-compiler works.
3291  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292  # <limits.h> exists even on freestanding compilers.
3293  # On the NeXT, cc -E runs the code through the compiler's parser,
3294  # not just through cpp. "Syntax error" is here to catch this case.
3295  cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h.  */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h.  */
3301#ifdef __STDC__
3302# include <limits.h>
3303#else
3304# include <assert.h>
3305#endif
3306		     Syntax error
3307_ACEOF
3308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310  ac_status=$?
3311  grep -v '^ *+' conftest.er1 >conftest.err
3312  rm -f conftest.er1
3313  cat conftest.err >&5
3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315  (exit $ac_status); } >/dev/null; then
3316  if test -s conftest.err; then
3317    ac_cpp_err=$ac_c_preproc_warn_flag
3318    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319  else
3320    ac_cpp_err=
3321  fi
3322else
3323  ac_cpp_err=yes
3324fi
3325if test -z "$ac_cpp_err"; then
3326  :
3327else
3328  echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331  # Broken: fails on valid input.
3332continue
3333fi
3334rm -f conftest.err conftest.$ac_ext
3335
3336  # OK, works on sane cases.  Now check whether non-existent headers
3337  # can be detected and how.
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344#include <ac_nonexistent.h>
3345_ACEOF
3346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } >/dev/null; then
3354  if test -s conftest.err; then
3355    ac_cpp_err=$ac_c_preproc_warn_flag
3356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357  else
3358    ac_cpp_err=
3359  fi
3360else
3361  ac_cpp_err=yes
3362fi
3363if test -z "$ac_cpp_err"; then
3364  # Broken: success on invalid input.
3365continue
3366else
3367  echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370  # Passes both tests.
3371ac_preproc_ok=:
3372break
3373fi
3374rm -f conftest.err conftest.$ac_ext
3375
3376done
3377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3378rm -f conftest.err conftest.$ac_ext
3379if $ac_preproc_ok; then
3380  :
3381else
3382  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3383See \`config.log' for more details." >&5
3384echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3385See \`config.log' for more details." >&2;}
3386   { (exit 1); exit 1; }; }
3387fi
3388
3389ac_ext=c
3390ac_cpp='$CPP $CPPFLAGS'
3391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400if test -n "$ac_tool_prefix"; then
3401  for ac_prog in gcc
3402  do
3403    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405echo "$as_me:$LINENO: checking for $ac_word" >&5
3406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407if test "${ac_cv_prog_CC+set}" = set; then
3408  echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410  if test -n "$CC"; then
3411  ac_cv_prog_CC="$CC" # Let the user override the test.
3412else
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
3415do
3416  IFS=$as_save_IFS
3417  test -z "$as_dir" && as_dir=.
3418  for ac_exec_ext in '' $ac_executable_extensions; do
3419  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425done
3426
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431  echo "$as_me:$LINENO: result: $CC" >&5
3432echo "${ECHO_T}$CC" >&6
3433else
3434  echo "$as_me:$LINENO: result: no" >&5
3435echo "${ECHO_T}no" >&6
3436fi
3437
3438    test -n "$CC" && break
3439  done
3440fi
3441if test -z "$CC"; then
3442  ac_ct_CC=$CC
3443  for ac_prog in gcc
3444do
3445  # Extract the first word of "$ac_prog", so it can be a program name with args.
3446set dummy $ac_prog; ac_word=$2
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  if test -n "$ac_ct_CC"; then
3453  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  test -z "$as_dir" && as_dir=.
3460  for ac_exec_ext in '' $ac_executable_extensions; do
3461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462    ac_cv_prog_ac_ct_CC="$ac_prog"
3463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464    break 2
3465  fi
3466done
3467done
3468
3469fi
3470fi
3471ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472if test -n "$ac_ct_CC"; then
3473  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474echo "${ECHO_T}$ac_ct_CC" >&6
3475else
3476  echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478fi
3479
3480  test -n "$ac_ct_CC" && break
3481done
3482
3483  CC=$ac_ct_CC
3484fi
3485
3486
3487test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488See \`config.log' for more details." >&5
3489echo "$as_me: error: no acceptable C compiler found in \$PATH
3490See \`config.log' for more details." >&2;}
3491   { (exit 1); exit 1; }; }
3492
3493# Provide some information about the compiler.
3494echo "$as_me:$LINENO:" \
3495     "checking for C compiler version" >&5
3496ac_compiler=`set X $ac_compile; echo $2`
3497{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3498  (eval $ac_compiler --version </dev/null >&5) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }
3502{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3503  (eval $ac_compiler -v </dev/null >&5) 2>&5
3504  ac_status=$?
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); }
3507{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3508  (eval $ac_compiler -V </dev/null >&5) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }
3512
3513echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3515if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516  echo $ECHO_N "(cached) $ECHO_C" >&6
3517else
3518  cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h.  */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528#ifndef __GNUC__
3529       choke me
3530#endif
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538  (eval $ac_compile) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545	 { ac_try='test -z "$ac_c_werror_flag"
3546			 || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552	 { ac_try='test -s conftest.$ac_objext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  ac_compiler_gnu=yes
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563ac_compiler_gnu=no
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568fi
3569echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3571GCC=`test $ac_compiler_gnu = yes && echo yes`
3572ac_test_CFLAGS=${CFLAGS+set}
3573ac_save_CFLAGS=$CFLAGS
3574CFLAGS="-g"
3575echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3577if test "${ac_cv_prog_cc_g+set}" = set; then
3578  echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580  cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h.  */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h.  */
3586
3587int
3588main ()
3589{
3590
3591  ;
3592  return 0;
3593}
3594_ACEOF
3595rm -f conftest.$ac_objext
3596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597  (eval $ac_compile) 2>conftest.er1
3598  ac_status=$?
3599  grep -v '^ *+' conftest.er1 >conftest.err
3600  rm -f conftest.er1
3601  cat conftest.err >&5
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } &&
3604	 { ac_try='test -z "$ac_c_werror_flag"
3605			 || test ! -s conftest.err'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; } &&
3611	 { ac_try='test -s conftest.$ac_objext'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; }; then
3617  ac_cv_prog_cc_g=yes
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622ac_cv_prog_cc_g=no
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625fi
3626echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3627echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3628if test "$ac_test_CFLAGS" = set; then
3629  CFLAGS=$ac_save_CFLAGS
3630elif test $ac_cv_prog_cc_g = yes; then
3631  if test "$GCC" = yes; then
3632    CFLAGS="-g -O2"
3633  else
3634    CFLAGS="-g"
3635  fi
3636else
3637  if test "$GCC" = yes; then
3638    CFLAGS="-O2"
3639  else
3640    CFLAGS=
3641  fi
3642fi
3643echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3644echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3645if test "${ac_cv_prog_cc_stdc+set}" = set; then
3646  echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648  ac_cv_prog_cc_stdc=no
3649ac_save_CC=$CC
3650cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h.  */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h.  */
3656#include <stdarg.h>
3657#include <stdio.h>
3658#include <sys/types.h>
3659#include <sys/stat.h>
3660/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661struct buf { int x; };
3662FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663static char *e (p, i)
3664     char **p;
3665     int i;
3666{
3667  return p[i];
3668}
3669static char *f (char * (*g) (char **, int), char **p, ...)
3670{
3671  char *s;
3672  va_list v;
3673  va_start (v,p);
3674  s = g (p, va_arg (v,int));
3675  va_end (v);
3676  return s;
3677}
3678
3679/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680   function prototypes and stuff, but not '\xHH' hex character constants.
3681   These don't provoke an error unfortunately, instead are silently treated
3682   as 'x'.  The following induces an error, until -std1 is added to get
3683   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684   array size at least.  It's necessary to write '\x00'==0 to get something
3685   that's true only with -std1.  */
3686int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
3694int
3695main ()
3696{
3697return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702# Don't try gcc -ansi; that turns off useful extensions and
3703# breaks some systems' header files.
3704# AIX			-qlanglvl=ansi
3705# Ultrix and OSF/1	-std1
3706# HP-UX 10.20 and later	-Ae
3707# HP-UX older versions	-Aa -D_HPUX_SOURCE
3708# SVR4			-Xc -D__EXTENSIONS__
3709for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710do
3711  CC="$ac_save_CC $ac_arg"
3712  rm -f conftest.$ac_objext
3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714  (eval $ac_compile) 2>conftest.er1
3715  ac_status=$?
3716  grep -v '^ *+' conftest.er1 >conftest.err
3717  rm -f conftest.er1
3718  cat conftest.err >&5
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); } &&
3721	 { ac_try='test -z "$ac_c_werror_flag"
3722			 || test ! -s conftest.err'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; } &&
3728	 { ac_try='test -s conftest.$ac_objext'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; }; then
3734  ac_cv_prog_cc_stdc=$ac_arg
3735break
3736else
3737  echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740fi
3741rm -f conftest.err conftest.$ac_objext
3742done
3743rm -f conftest.$ac_ext conftest.$ac_objext
3744CC=$ac_save_CC
3745
3746fi
3747
3748case "x$ac_cv_prog_cc_stdc" in
3749  x|xno)
3750    echo "$as_me:$LINENO: result: none needed" >&5
3751echo "${ECHO_T}none needed" >&6 ;;
3752  *)
3753    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3754echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3755    CC="$CC $ac_cv_prog_cc_stdc" ;;
3756esac
3757
3758# Some people use a C++ compiler to compile C.  Since we use `exit',
3759# in C++ we need to declare it.  In case someone uses the same compiler
3760# for both compiling C and C++ we need to have the C++ compiler decide
3761# the declaration of exit, since it's the most demanding environment.
3762cat >conftest.$ac_ext <<_ACEOF
3763#ifndef __cplusplus
3764  choke me
3765#endif
3766_ACEOF
3767rm -f conftest.$ac_objext
3768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769  (eval $ac_compile) 2>conftest.er1
3770  ac_status=$?
3771  grep -v '^ *+' conftest.er1 >conftest.err
3772  rm -f conftest.er1
3773  cat conftest.err >&5
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); } &&
3776	 { ac_try='test -z "$ac_c_werror_flag"
3777			 || test ! -s conftest.err'
3778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779  (eval $ac_try) 2>&5
3780  ac_status=$?
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); }; } &&
3783	 { ac_try='test -s conftest.$ac_objext'
3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785  (eval $ac_try) 2>&5
3786  ac_status=$?
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); }; }; then
3789  for ac_declaration in \
3790   '' \
3791   'extern "C" void std::exit (int) throw (); using std::exit;' \
3792   'extern "C" void std::exit (int); using std::exit;' \
3793   'extern "C" void exit (int) throw ();' \
3794   'extern "C" void exit (int);' \
3795   'void exit (int);'
3796do
3797  cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803$ac_declaration
3804#include <stdlib.h>
3805int
3806main ()
3807{
3808exit (42);
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext
3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815  (eval $ac_compile) 2>conftest.er1
3816  ac_status=$?
3817  grep -v '^ *+' conftest.er1 >conftest.err
3818  rm -f conftest.er1
3819  cat conftest.err >&5
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); } &&
3822	 { ac_try='test -z "$ac_c_werror_flag"
3823			 || test ! -s conftest.err'
3824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825  (eval $ac_try) 2>&5
3826  ac_status=$?
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); }; } &&
3829	 { ac_try='test -s conftest.$ac_objext'
3830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831  (eval $ac_try) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; }; then
3835  :
3836else
3837  echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840continue
3841fi
3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3843  cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h.  */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h.  */
3849$ac_declaration
3850int
3851main ()
3852{
3853exit (42);
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858rm -f conftest.$ac_objext
3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860  (eval $ac_compile) 2>conftest.er1
3861  ac_status=$?
3862  grep -v '^ *+' conftest.er1 >conftest.err
3863  rm -f conftest.er1
3864  cat conftest.err >&5
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); } &&
3867	 { ac_try='test -z "$ac_c_werror_flag"
3868			 || test ! -s conftest.err'
3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870  (eval $ac_try) 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }; } &&
3874	 { ac_try='test -s conftest.$ac_objext'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; }; then
3880  break
3881else
3882  echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885fi
3886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3887done
3888rm -f conftest*
3889if test -n "$ac_declaration"; then
3890  echo '#ifdef __cplusplus' >>confdefs.h
3891  echo $ac_declaration      >>confdefs.h
3892  echo '#endif'             >>confdefs.h
3893fi
3894
3895else
3896  echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899fi
3900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907ac_ext=cc
3908ac_cpp='$CXXCPP $CPPFLAGS'
3909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912if test -n "$ac_tool_prefix"; then
3913  for ac_prog in $CCC g++
3914  do
3915    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919if test "${ac_cv_prog_CXX+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  if test -n "$CXX"; then
3923  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928  IFS=$as_save_IFS
3929  test -z "$as_dir" && as_dir=.
3930  for ac_exec_ext in '' $ac_executable_extensions; do
3931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934    break 2
3935  fi
3936done
3937done
3938
3939fi
3940fi
3941CXX=$ac_cv_prog_CXX
3942if test -n "$CXX"; then
3943  echo "$as_me:$LINENO: result: $CXX" >&5
3944echo "${ECHO_T}$CXX" >&6
3945else
3946  echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948fi
3949
3950    test -n "$CXX" && break
3951  done
3952fi
3953if test -z "$CXX"; then
3954  ac_ct_CXX=$CXX
3955  for ac_prog in $CCC g++
3956do
3957  # Extract the first word of "$ac_prog", so it can be a program name with args.
3958set dummy $ac_prog; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964  if test -n "$ac_ct_CXX"; then
3965  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970  IFS=$as_save_IFS
3971  test -z "$as_dir" && as_dir=.
3972  for ac_exec_ext in '' $ac_executable_extensions; do
3973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974    ac_cv_prog_ac_ct_CXX="$ac_prog"
3975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976    break 2
3977  fi
3978done
3979done
3980
3981fi
3982fi
3983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984if test -n "$ac_ct_CXX"; then
3985  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986echo "${ECHO_T}$ac_ct_CXX" >&6
3987else
3988  echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990fi
3991
3992  test -n "$ac_ct_CXX" && break
3993done
3994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3995
3996  CXX=$ac_ct_CXX
3997fi
3998
3999
4000# Provide some information about the compiler.
4001echo "$as_me:$LINENO:" \
4002     "checking for C++ compiler version" >&5
4003ac_compiler=`set X $ac_compile; echo $2`
4004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4005  (eval $ac_compiler --version </dev/null >&5) 2>&5
4006  ac_status=$?
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); }
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4010  (eval $ac_compiler -v </dev/null >&5) 2>&5
4011  ac_status=$?
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); }
4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4015  (eval $ac_compiler -V </dev/null >&5) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }
4019
4020echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4021echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4022if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4023  echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025  cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031
4032int
4033main ()
4034{
4035#ifndef __GNUC__
4036       choke me
4037#endif
4038
4039  ;
4040  return 0;
4041}
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045  (eval $ac_compile) 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } &&
4052	 { ac_try='test -z "$ac_cxx_werror_flag"
4053			 || test ! -s conftest.err'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; } &&
4059	 { ac_try='test -s conftest.$ac_objext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  ac_compiler_gnu=yes
4066else
4067  echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_compiler_gnu=no
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4077echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4078GXX=`test $ac_compiler_gnu = yes && echo yes`
4079ac_test_CXXFLAGS=${CXXFLAGS+set}
4080ac_save_CXXFLAGS=$CXXFLAGS
4081CXXFLAGS="-g"
4082echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4083echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4084if test "${ac_cv_prog_cxx_g+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093
4094int
4095main ()
4096{
4097
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext
4103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104  (eval $ac_compile) 2>conftest.er1
4105  ac_status=$?
4106  grep -v '^ *+' conftest.er1 >conftest.err
4107  rm -f conftest.er1
4108  cat conftest.err >&5
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); } &&
4111	 { ac_try='test -z "$ac_cxx_werror_flag"
4112			 || test ! -s conftest.err'
4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114  (eval $ac_try) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; } &&
4118	 { ac_try='test -s conftest.$ac_objext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  ac_cv_prog_cxx_g=yes
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_prog_cxx_g=no
4130fi
4131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4134echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4135if test "$ac_test_CXXFLAGS" = set; then
4136  CXXFLAGS=$ac_save_CXXFLAGS
4137elif test $ac_cv_prog_cxx_g = yes; then
4138  if test "$GXX" = yes; then
4139    CXXFLAGS="-g -O2"
4140  else
4141    CXXFLAGS="-g"
4142  fi
4143else
4144  if test "$GXX" = yes; then
4145    CXXFLAGS="-O2"
4146  else
4147    CXXFLAGS=
4148  fi
4149fi
4150for ac_declaration in \
4151   '' \
4152   'extern "C" void std::exit (int) throw (); using std::exit;' \
4153   'extern "C" void std::exit (int); using std::exit;' \
4154   'extern "C" void exit (int) throw ();' \
4155   'extern "C" void exit (int);' \
4156   'void exit (int);'
4157do
4158  cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h.  */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h.  */
4164$ac_declaration
4165#include <stdlib.h>
4166int
4167main ()
4168{
4169exit (42);
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176  (eval $ac_compile) 2>conftest.er1
4177  ac_status=$?
4178  grep -v '^ *+' conftest.er1 >conftest.err
4179  rm -f conftest.er1
4180  cat conftest.err >&5
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); } &&
4183	 { ac_try='test -z "$ac_cxx_werror_flag"
4184			 || test ! -s conftest.err'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; } &&
4190	 { ac_try='test -s conftest.$ac_objext'
4191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  :
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201continue
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204  cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h.  */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h.  */
4210$ac_declaration
4211int
4212main ()
4213{
4214exit (42);
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext
4220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221  (eval $ac_compile) 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } &&
4228	 { ac_try='test -z "$ac_cxx_werror_flag"
4229			 || test ! -s conftest.err'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; } &&
4235	 { ac_try='test -s conftest.$ac_objext'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; }; then
4241  break
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246fi
4247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248done
4249rm -f conftest*
4250if test -n "$ac_declaration"; then
4251  echo '#ifdef __cplusplus' >>confdefs.h
4252  echo $ac_declaration      >>confdefs.h
4253  echo '#endif'             >>confdefs.h
4254fi
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262echo "$as_me:$LINENO: checking " >&5
4263echo $ECHO_N "checking ... $ECHO_C" >&6
4264if test "${ac_cv_has_flex+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  for ac_prog in flex lex
4268do
4269  # Extract the first word of "$ac_prog", so it can be a program name with args.
4270set dummy $ac_prog; ac_word=$2
4271echo "$as_me:$LINENO: checking for $ac_word" >&5
4272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4273if test "${ac_cv_prog_LEX+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  if test -n "$LEX"; then
4277  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282  IFS=$as_save_IFS
4283  test -z "$as_dir" && as_dir=.
4284  for ac_exec_ext in '' $ac_executable_extensions; do
4285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286    ac_cv_prog_LEX="$ac_prog"
4287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288    break 2
4289  fi
4290done
4291done
4292
4293fi
4294fi
4295LEX=$ac_cv_prog_LEX
4296if test -n "$LEX"; then
4297  echo "$as_me:$LINENO: result: $LEX" >&5
4298echo "${ECHO_T}$LEX" >&6
4299else
4300  echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302fi
4303
4304  test -n "$LEX" && break
4305done
4306test -n "$LEX" || LEX=":"
4307
4308if test -z "$LEXLIB"
4309then
4310  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4311echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4312if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  ac_check_lib_save_LIBS=$LIBS
4316LIBS="-lfl  $LIBS"
4317cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h.  */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h.  */
4323
4324/* Override any gcc2 internal prototype to avoid an error.  */
4325#ifdef __cplusplus
4326extern "C"
4327#endif
4328/* We use char because int might match the return type of a gcc2
4329   builtin and then its argument prototype would still apply.  */
4330char yywrap ();
4331int
4332main ()
4333{
4334yywrap ();
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext conftest$ac_exeext
4340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341  (eval $ac_link) 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348	 { ac_try='test -z "$ac_c_werror_flag"
4349			 || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355	 { ac_try='test -s conftest$ac_exeext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  ac_cv_lib_fl_yywrap=yes
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366ac_cv_lib_fl_yywrap=no
4367fi
4368rm -f conftest.err conftest.$ac_objext \
4369      conftest$ac_exeext conftest.$ac_ext
4370LIBS=$ac_check_lib_save_LIBS
4371fi
4372echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4373echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4374if test $ac_cv_lib_fl_yywrap = yes; then
4375  LEXLIB="-lfl"
4376else
4377  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4378echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4379if test "${ac_cv_lib_l_yywrap+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  ac_check_lib_save_LIBS=$LIBS
4383LIBS="-ll  $LIBS"
4384cat >conftest.$ac_ext <<_ACEOF
4385/* confdefs.h.  */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h.  */
4390
4391/* Override any gcc2 internal prototype to avoid an error.  */
4392#ifdef __cplusplus
4393extern "C"
4394#endif
4395/* We use char because int might match the return type of a gcc2
4396   builtin and then its argument prototype would still apply.  */
4397char yywrap ();
4398int
4399main ()
4400{
4401yywrap ();
4402  ;
4403  return 0;
4404}
4405_ACEOF
4406rm -f conftest.$ac_objext conftest$ac_exeext
4407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408  (eval $ac_link) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415	 { ac_try='test -z "$ac_c_werror_flag"
4416			 || test ! -s conftest.err'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; } &&
4422	 { ac_try='test -s conftest$ac_exeext'
4423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424  (eval $ac_try) 2>&5
4425  ac_status=$?
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); }; }; then
4428  ac_cv_lib_l_yywrap=yes
4429else
4430  echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433ac_cv_lib_l_yywrap=no
4434fi
4435rm -f conftest.err conftest.$ac_objext \
4436      conftest$ac_exeext conftest.$ac_ext
4437LIBS=$ac_check_lib_save_LIBS
4438fi
4439echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4440echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4441if test $ac_cv_lib_l_yywrap = yes; then
4442  LEXLIB="-ll"
4443fi
4444
4445fi
4446
4447fi
4448
4449if test "x$LEX" != "x:"; then
4450  echo "$as_me:$LINENO: checking lex output file root" >&5
4451echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4452if test "${ac_cv_prog_lex_root+set}" = set; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  # The minimal lex program is just a single line: %%.  But some broken lexes
4456# (Solaris, I think it was) want two %% lines, so accommodate them.
4457cat >conftest.l <<_ACEOF
4458%%
4459%%
4460_ACEOF
4461{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4462  (eval $LEX conftest.l) 2>&5
4463  ac_status=$?
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); }
4466if test -f lex.yy.c; then
4467  ac_cv_prog_lex_root=lex.yy
4468elif test -f lexyy.c; then
4469  ac_cv_prog_lex_root=lexyy
4470else
4471  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4472echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4473   { (exit 1); exit 1; }; }
4474fi
4475fi
4476echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4477echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4478rm -f conftest.l
4479LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4480
4481echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4482echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4483if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4484  echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486  # POSIX says lex can declare yytext either as a pointer or an array; the
4487# default is implementation-dependent. Figure out which it is, since
4488# not all implementations provide the %pointer and %array declarations.
4489ac_cv_prog_lex_yytext_pointer=no
4490echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4491ac_save_LIBS=$LIBS
4492LIBS="$LIBS $LEXLIB"
4493cat >conftest.$ac_ext <<_ACEOF
4494`cat $LEX_OUTPUT_ROOT.c`
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498  (eval $ac_link) 2>conftest.er1
4499  ac_status=$?
4500  grep -v '^ *+' conftest.er1 >conftest.err
4501  rm -f conftest.er1
4502  cat conftest.err >&5
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); } &&
4505	 { ac_try='test -z "$ac_c_werror_flag"
4506			 || test ! -s conftest.err'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; } &&
4512	 { ac_try='test -s conftest$ac_exeext'
4513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514  (eval $ac_try) 2>&5
4515  ac_status=$?
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); }; }; then
4518  ac_cv_prog_lex_yytext_pointer=yes
4519else
4520  echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523fi
4524rm -f conftest.err conftest.$ac_objext \
4525      conftest$ac_exeext conftest.$ac_ext
4526LIBS=$ac_save_LIBS
4527rm -f "${LEX_OUTPUT_ROOT}.c"
4528
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4531echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4532if test $ac_cv_prog_lex_yytext_pointer = yes; then
4533
4534cat >>confdefs.h <<\_ACEOF
4535#define YYTEXT_POINTER 1
4536_ACEOF
4537
4538fi
4539
4540fi
4541
4542fi
4543echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4544echo "${ECHO_T}$ac_cv_has_flex" >&6
4545if test "$LEX" != "flex"; then
4546  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4547echo "$as_me: error: flex not found but required" >&2;}
4548   { (exit 1); exit 1; }; }
4549else
4550  FLEX=flex
4551
4552fi
4553
4554echo "$as_me:$LINENO: checking " >&5
4555echo $ECHO_N "checking ... $ECHO_C" >&6
4556if test "${llvm_cv_has_bison+set}" = set; then
4557  echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559  for ac_prog in 'bison -y' byacc
4560do
4561  # Extract the first word of "$ac_prog", so it can be a program name with args.
4562set dummy $ac_prog; ac_word=$2
4563echo "$as_me:$LINENO: checking for $ac_word" >&5
4564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565if test "${ac_cv_prog_YACC+set}" = set; then
4566  echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568  if test -n "$YACC"; then
4569  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576  for ac_exec_ext in '' $ac_executable_extensions; do
4577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578    ac_cv_prog_YACC="$ac_prog"
4579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583done
4584
4585fi
4586fi
4587YACC=$ac_cv_prog_YACC
4588if test -n "$YACC"; then
4589  echo "$as_me:$LINENO: result: $YACC" >&5
4590echo "${ECHO_T}$YACC" >&6
4591else
4592  echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594fi
4595
4596  test -n "$YACC" && break
4597done
4598test -n "$YACC" || YACC="yacc"
4599
4600fi
4601echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4602echo "${ECHO_T}$llvm_cv_has_bison" >&6
4603if test "$YACC" != "bison -y"; then
4604  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4605echo "$as_me: error: bison not found but required" >&2;}
4606   { (exit 1); exit 1; }; }
4607else
4608  BISON=bison
4609
4610fi
4611
4612echo "$as_me:$LINENO: checking for GNU make" >&5
4613echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4614if test "${llvm_cv_gnu_make_command+set}" = set; then
4615  echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617  llvm_cv_gnu_make_command=''
4618 for a in "$MAKE" make gmake gnumake ; do
4619  if test -z "$a" ; then continue ; fi ;
4620  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4621  then
4622   llvm_cv_gnu_make_command=$a ;
4623   break;
4624  fi
4625 done
4626fi
4627echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4628echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4629 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4630   ifGNUmake='' ;
4631 else
4632   ifGNUmake='#' ;
4633   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4634echo "${ECHO_T}\"Not found\"" >&6;
4635 fi
4636
4637
4638echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640LN_S=$as_ln_s
4641if test "$LN_S" = "ln -s"; then
4642  echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644else
4645  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646echo "${ECHO_T}no, using $LN_S" >&6
4647fi
4648
4649# Extract the first word of "cmp", so it can be a program name with args.
4650set dummy cmp; ac_word=$2
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653if test "${ac_cv_path_CMP+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  case $CMP in
4657  [\\/]* | ?:[\\/]*)
4658  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4659  ;;
4660  *)
4661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666  for ac_exec_ext in '' $ac_executable_extensions; do
4667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673done
4674
4675  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4676  ;;
4677esac
4678fi
4679CMP=$ac_cv_path_CMP
4680
4681if test -n "$CMP"; then
4682  echo "$as_me:$LINENO: result: $CMP" >&5
4683echo "${ECHO_T}$CMP" >&6
4684else
4685  echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
4687fi
4688
4689# Extract the first word of "cp", so it can be a program name with args.
4690set dummy cp; ac_word=$2
4691echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693if test "${ac_cv_path_CP+set}" = set; then
4694  echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696  case $CP in
4697  [\\/]* | ?:[\\/]*)
4698  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4699  ;;
4700  *)
4701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706  for ac_exec_ext in '' $ac_executable_extensions; do
4707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713done
4714
4715  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4716  ;;
4717esac
4718fi
4719CP=$ac_cv_path_CP
4720
4721if test -n "$CP"; then
4722  echo "$as_me:$LINENO: result: $CP" >&5
4723echo "${ECHO_T}$CP" >&6
4724else
4725  echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727fi
4728
4729# Extract the first word of "date", so it can be a program name with args.
4730set dummy date; ac_word=$2
4731echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4733if test "${ac_cv_path_DATE+set}" = set; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736  case $DATE in
4737  [\\/]* | ?:[\\/]*)
4738  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4739  ;;
4740  *)
4741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746  for ac_exec_ext in '' $ac_executable_extensions; do
4747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750    break 2
4751  fi
4752done
4753done
4754
4755  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4756  ;;
4757esac
4758fi
4759DATE=$ac_cv_path_DATE
4760
4761if test -n "$DATE"; then
4762  echo "$as_me:$LINENO: result: $DATE" >&5
4763echo "${ECHO_T}$DATE" >&6
4764else
4765  echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767fi
4768
4769# Extract the first word of "find", so it can be a program name with args.
4770set dummy find; ac_word=$2
4771echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773if test "${ac_cv_path_FIND+set}" = set; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776  case $FIND in
4777  [\\/]* | ?:[\\/]*)
4778  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4779  ;;
4780  *)
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786  for ac_exec_ext in '' $ac_executable_extensions; do
4787  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793done
4794
4795  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4796  ;;
4797esac
4798fi
4799FIND=$ac_cv_path_FIND
4800
4801if test -n "$FIND"; then
4802  echo "$as_me:$LINENO: result: $FIND" >&5
4803echo "${ECHO_T}$FIND" >&6
4804else
4805  echo "$as_me:$LINENO: result: no" >&5
4806echo "${ECHO_T}no" >&6
4807fi
4808
4809# Extract the first word of "grep", so it can be a program name with args.
4810set dummy grep; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_path_GREP+set}" = set; then
4814  echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816  case $GREP in
4817  [\\/]* | ?:[\\/]*)
4818  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4819  ;;
4820  *)
4821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826  for ac_exec_ext in '' $ac_executable_extensions; do
4827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830    break 2
4831  fi
4832done
4833done
4834
4835  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4836  ;;
4837esac
4838fi
4839GREP=$ac_cv_path_GREP
4840
4841if test -n "$GREP"; then
4842  echo "$as_me:$LINENO: result: $GREP" >&5
4843echo "${ECHO_T}$GREP" >&6
4844else
4845  echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6
4847fi
4848
4849# Extract the first word of "mkdir", so it can be a program name with args.
4850set dummy mkdir; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_path_MKDIR+set}" = set; then
4854  echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856  case $MKDIR in
4857  [\\/]* | ?:[\\/]*)
4858  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4859  ;;
4860  *)
4861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864  IFS=$as_save_IFS
4865  test -z "$as_dir" && as_dir=.
4866  for ac_exec_ext in '' $ac_executable_extensions; do
4867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870    break 2
4871  fi
4872done
4873done
4874
4875  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4876  ;;
4877esac
4878fi
4879MKDIR=$ac_cv_path_MKDIR
4880
4881if test -n "$MKDIR"; then
4882  echo "$as_me:$LINENO: result: $MKDIR" >&5
4883echo "${ECHO_T}$MKDIR" >&6
4884else
4885  echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887fi
4888
4889# Extract the first word of "mv", so it can be a program name with args.
4890set dummy mv; ac_word=$2
4891echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893if test "${ac_cv_path_MV+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  case $MV in
4897  [\\/]* | ?:[\\/]*)
4898  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4899  ;;
4900  *)
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906  for ac_exec_ext in '' $ac_executable_extensions; do
4907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913done
4914
4915  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4916  ;;
4917esac
4918fi
4919MV=$ac_cv_path_MV
4920
4921if test -n "$MV"; then
4922  echo "$as_me:$LINENO: result: $MV" >&5
4923echo "${ECHO_T}$MV" >&6
4924else
4925  echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927fi
4928
4929if test -n "$ac_tool_prefix"; then
4930  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4932echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934if test "${ac_cv_prog_RANLIB+set}" = set; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937  if test -n "$RANLIB"; then
4938  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945  for ac_exec_ext in '' $ac_executable_extensions; do
4946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952done
4953
4954fi
4955fi
4956RANLIB=$ac_cv_prog_RANLIB
4957if test -n "$RANLIB"; then
4958  echo "$as_me:$LINENO: result: $RANLIB" >&5
4959echo "${ECHO_T}$RANLIB" >&6
4960else
4961  echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965fi
4966if test -z "$ac_cv_prog_RANLIB"; then
4967  ac_ct_RANLIB=$RANLIB
4968  # Extract the first word of "ranlib", so it can be a program name with args.
4969set dummy ranlib; ac_word=$2
4970echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973  echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975  if test -n "$ac_ct_RANLIB"; then
4976  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4977else
4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981  IFS=$as_save_IFS
4982  test -z "$as_dir" && as_dir=.
4983  for ac_exec_ext in '' $ac_executable_extensions; do
4984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985    ac_cv_prog_ac_ct_RANLIB="ranlib"
4986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987    break 2
4988  fi
4989done
4990done
4991
4992  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4993fi
4994fi
4995ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4996if test -n "$ac_ct_RANLIB"; then
4997  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998echo "${ECHO_T}$ac_ct_RANLIB" >&6
4999else
5000  echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002fi
5003
5004  RANLIB=$ac_ct_RANLIB
5005else
5006  RANLIB="$ac_cv_prog_RANLIB"
5007fi
5008
5009# Extract the first word of "rm", so it can be a program name with args.
5010set dummy rm; ac_word=$2
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_path_RM+set}" = set; then
5014  echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016  case $RM in
5017  [\\/]* | ?:[\\/]*)
5018  ac_cv_path_RM="$RM" # Let the user override the test with a path.
5019  ;;
5020  *)
5021  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024  IFS=$as_save_IFS
5025  test -z "$as_dir" && as_dir=.
5026  for ac_exec_ext in '' $ac_executable_extensions; do
5027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033done
5034
5035  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5036  ;;
5037esac
5038fi
5039RM=$ac_cv_path_RM
5040
5041if test -n "$RM"; then
5042  echo "$as_me:$LINENO: result: $RM" >&5
5043echo "${ECHO_T}$RM" >&6
5044else
5045  echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049# Extract the first word of "sed", so it can be a program name with args.
5050set dummy sed; ac_word=$2
5051echo "$as_me:$LINENO: checking for $ac_word" >&5
5052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053if test "${ac_cv_path_SED+set}" = set; then
5054  echo $ECHO_N "(cached) $ECHO_C" >&6
5055else
5056  case $SED in
5057  [\\/]* | ?:[\\/]*)
5058  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5059  ;;
5060  *)
5061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066  for ac_exec_ext in '' $ac_executable_extensions; do
5067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070    break 2
5071  fi
5072done
5073done
5074
5075  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076  ;;
5077esac
5078fi
5079SED=$ac_cv_path_SED
5080
5081if test -n "$SED"; then
5082  echo "$as_me:$LINENO: result: $SED" >&5
5083echo "${ECHO_T}$SED" >&6
5084else
5085  echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087fi
5088
5089# Extract the first word of "tar", so it can be a program name with args.
5090set dummy tar; ac_word=$2
5091echo "$as_me:$LINENO: checking for $ac_word" >&5
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093if test "${ac_cv_path_TAR+set}" = set; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  case $TAR in
5097  [\\/]* | ?:[\\/]*)
5098  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5099  ;;
5100  *)
5101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104  IFS=$as_save_IFS
5105  test -z "$as_dir" && as_dir=.
5106  for ac_exec_ext in '' $ac_executable_extensions; do
5107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110    break 2
5111  fi
5112done
5113done
5114
5115  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5116  ;;
5117esac
5118fi
5119TAR=$ac_cv_path_TAR
5120
5121if test -n "$TAR"; then
5122  echo "$as_me:$LINENO: result: $TAR" >&5
5123echo "${ECHO_T}$TAR" >&6
5124else
5125  echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
5127fi
5128
5129# Extract the first word of "Graphviz", so it can be a program name with args.
5130set dummy Graphviz; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  case $GRAPHVIZ in
5137  [\\/]* | ?:[\\/]*)
5138  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5139  ;;
5140  *)
5141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146  for ac_exec_ext in '' $ac_executable_extensions; do
5147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153done
5154
5155  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5156  ;;
5157esac
5158fi
5159GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5160
5161if test -n "$GRAPHVIZ"; then
5162  echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5163echo "${ECHO_T}$GRAPHVIZ" >&6
5164else
5165  echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167fi
5168
5169if test "$GRAPHVIZ" != "echo Graphviz" ; then
5170
5171cat >>confdefs.h <<\_ACEOF
5172#define HAVE_GRAPHVIZ 1
5173_ACEOF
5174
5175
5176cat >>confdefs.h <<_ACEOF
5177#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5178_ACEOF
5179
5180fi
5181# Extract the first word of "gv", so it can be a program name with args.
5182set dummy gv; ac_word=$2
5183echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185if test "${ac_cv_path_GV+set}" = set; then
5186  echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188  case $GV in
5189  [\\/]* | ?:[\\/]*)
5190  ac_cv_path_GV="$GV" # Let the user override the test with a path.
5191  ;;
5192  *)
5193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196  IFS=$as_save_IFS
5197  test -z "$as_dir" && as_dir=.
5198  for ac_exec_ext in '' $ac_executable_extensions; do
5199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202    break 2
5203  fi
5204done
5205done
5206
5207  test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5208  ;;
5209esac
5210fi
5211GV=$ac_cv_path_GV
5212
5213if test -n "$GV"; then
5214  echo "$as_me:$LINENO: result: $GV" >&5
5215echo "${ECHO_T}$GV" >&6
5216else
5217  echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
5219fi
5220
5221if test "$GV" != "echo gv" ; then
5222
5223cat >>confdefs.h <<\_ACEOF
5224#define HAVE_GV 1
5225_ACEOF
5226
5227
5228cat >>confdefs.h <<_ACEOF
5229#define LLVM_PATH_GV "$GV"
5230_ACEOF
5231
5232fi
5233
5234
5235# Extract the first word of "perl", so it can be a program name with args.
5236set dummy perl; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_path_PERL+set}" = set; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242  case $PERL in
5243  [\\/]* | ?:[\\/]*)
5244  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5245  ;;
5246  *)
5247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248for as_dir in $PATH
5249do
5250  IFS=$as_save_IFS
5251  test -z "$as_dir" && as_dir=.
5252  for ac_exec_ext in '' $ac_executable_extensions; do
5253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256    break 2
5257  fi
5258done
5259done
5260
5261  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5262  ;;
5263esac
5264fi
5265PERL=$ac_cv_path_PERL
5266
5267if test -n "$PERL"; then
5268  echo "$as_me:$LINENO: result: $PERL" >&5
5269echo "${ECHO_T}$PERL" >&6
5270else
5271  echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
5274
5275if test "$PERL" != "none"; then
5276  echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5277echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5278  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5279    echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281  else
5282    PERL=none
5283    echo "$as_me:$LINENO: result: not found" >&5
5284echo "${ECHO_T}not found" >&6
5285  fi
5286fi
5287
5288
5289if test x"$PERL" = xnone; then
5290   HAVE_PERL=0
5291
5292else
5293   HAVE_PERL=1
5294
5295fi
5296
5297# Find a good install program.  We prefer a C program (faster),
5298# so one script is as good as another.  But avoid the broken or
5299# incompatible versions:
5300# SysV /etc/install, /usr/sbin/install
5301# SunOS /usr/etc/install
5302# IRIX /sbin/install
5303# AIX /bin/install
5304# AmigaOS /C/install, which installs bootblocks on floppy discs
5305# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5306# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5307# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5308# OS/2's system install, which has a completely different semantic
5309# ./install, which can be erroneously created by make from ./install.sh.
5310echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5311echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5312if test -z "$INSTALL"; then
5313if test "${ac_cv_path_install+set}" = set; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319  IFS=$as_save_IFS
5320  test -z "$as_dir" && as_dir=.
5321  # Account for people who put trailing slashes in PATH elements.
5322case $as_dir/ in
5323  ./ | .// | /cC/* | \
5324  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5325  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5326  /usr/ucb/* ) ;;
5327  *)
5328    # OSF1 and SCO ODT 3.0 have their own names for install.
5329    # Don't use installbsd from OSF since it installs stuff as root
5330    # by default.
5331    for ac_prog in ginstall scoinst install; do
5332      for ac_exec_ext in '' $ac_executable_extensions; do
5333	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5334	  if test $ac_prog = install &&
5335	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5336	    # AIX install.  It has an incompatible calling convention.
5337	    :
5338	  elif test $ac_prog = install &&
5339	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5340	    # program-specific install script used by HP pwplus--don't use.
5341	    :
5342	  else
5343	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5344	    break 3
5345	  fi
5346	fi
5347      done
5348    done
5349    ;;
5350esac
5351done
5352
5353
5354fi
5355  if test "${ac_cv_path_install+set}" = set; then
5356    INSTALL=$ac_cv_path_install
5357  else
5358    # As a last resort, use the slow shell script.  We don't cache a
5359    # path for INSTALL within a source directory, because that will
5360    # break other packages using the cache if that directory is
5361    # removed, or if the path is relative.
5362    INSTALL=$ac_install_sh
5363  fi
5364fi
5365echo "$as_me:$LINENO: result: $INSTALL" >&5
5366echo "${ECHO_T}$INSTALL" >&6
5367
5368# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369# It thinks the first close brace ends the variable substitution.
5370test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5371
5372test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5373
5374test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5375
5376
5377# Extract the first word of "bzip2", so it can be a program name with args.
5378set dummy bzip2; ac_word=$2
5379echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381if test "${ac_cv_path_BZIP2+set}" = set; then
5382  echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384  case $BZIP2 in
5385  [\\/]* | ?:[\\/]*)
5386  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5387  ;;
5388  *)
5389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392  IFS=$as_save_IFS
5393  test -z "$as_dir" && as_dir=.
5394  for ac_exec_ext in '' $ac_executable_extensions; do
5395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398    break 2
5399  fi
5400done
5401done
5402
5403  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5404  ;;
5405esac
5406fi
5407BZIP2=$ac_cv_path_BZIP2
5408
5409if test -n "$BZIP2"; then
5410  echo "$as_me:$LINENO: result: $BZIP2" >&5
5411echo "${ECHO_T}$BZIP2" >&6
5412else
5413  echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415fi
5416
5417# Extract the first word of "dot", so it can be a program name with args.
5418set dummy dot; ac_word=$2
5419echo "$as_me:$LINENO: checking for $ac_word" >&5
5420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421if test "${ac_cv_path_DOT+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  case $DOT in
5425  [\\/]* | ?:[\\/]*)
5426  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5427  ;;
5428  *)
5429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432  IFS=$as_save_IFS
5433  test -z "$as_dir" && as_dir=.
5434  for ac_exec_ext in '' $ac_executable_extensions; do
5435  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438    break 2
5439  fi
5440done
5441done
5442
5443  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo "Skipped: dot not found""
5444  ;;
5445esac
5446fi
5447DOT=$ac_cv_path_DOT
5448
5449if test -n "$DOT"; then
5450  echo "$as_me:$LINENO: result: $DOT" >&5
5451echo "${ECHO_T}$DOT" >&6
5452else
5453  echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
5455fi
5456
5457# Extract the first word of "doxygen", so it can be a program name with args.
5458set dummy doxygen; ac_word=$2
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5461if test "${ac_cv_path_DOXYGEN+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  case $DOXYGEN in
5465  [\\/]* | ?:[\\/]*)
5466  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5467  ;;
5468  *)
5469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472  IFS=$as_save_IFS
5473  test -z "$as_dir" && as_dir=.
5474  for ac_exec_ext in '' $ac_executable_extensions; do
5475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478    break 2
5479  fi
5480done
5481done
5482
5483  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5484  ;;
5485esac
5486fi
5487DOXYGEN=$ac_cv_path_DOXYGEN
5488
5489if test -n "$DOXYGEN"; then
5490  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5491echo "${ECHO_T}$DOXYGEN" >&6
5492else
5493  echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497# Extract the first word of "etags", so it can be a program name with args.
5498set dummy etags; ac_word=$2
5499echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501if test "${ac_cv_path_ETAGS+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  case $ETAGS in
5505  [\\/]* | ?:[\\/]*)
5506  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5507  ;;
5508  *)
5509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512  IFS=$as_save_IFS
5513  test -z "$as_dir" && as_dir=.
5514  for ac_exec_ext in '' $ac_executable_extensions; do
5515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518    break 2
5519  fi
5520done
5521done
5522
5523  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5524  ;;
5525esac
5526fi
5527ETAGS=$ac_cv_path_ETAGS
5528
5529if test -n "$ETAGS"; then
5530  echo "$as_me:$LINENO: result: $ETAGS" >&5
5531echo "${ECHO_T}$ETAGS" >&6
5532else
5533  echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535fi
5536
5537# Extract the first word of "groff", so it can be a program name with args.
5538set dummy groff; ac_word=$2
5539echo "$as_me:$LINENO: checking for $ac_word" >&5
5540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541if test "${ac_cv_path_GROFF+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544  case $GROFF in
5545  [\\/]* | ?:[\\/]*)
5546  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5547  ;;
5548  *)
5549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  test -z "$as_dir" && as_dir=.
5554  for ac_exec_ext in '' $ac_executable_extensions; do
5555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558    break 2
5559  fi
5560done
5561done
5562
5563  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5564  ;;
5565esac
5566fi
5567GROFF=$ac_cv_path_GROFF
5568
5569if test -n "$GROFF"; then
5570  echo "$as_me:$LINENO: result: $GROFF" >&5
5571echo "${ECHO_T}$GROFF" >&6
5572else
5573  echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577# Extract the first word of "gzip", so it can be a program name with args.
5578set dummy gzip; ac_word=$2
5579echo "$as_me:$LINENO: checking for $ac_word" >&5
5580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5581if test "${ac_cv_path_GZIP+set}" = set; then
5582  echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584  case $GZIP in
5585  [\\/]* | ?:[\\/]*)
5586  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5587  ;;
5588  *)
5589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592  IFS=$as_save_IFS
5593  test -z "$as_dir" && as_dir=.
5594  for ac_exec_ext in '' $ac_executable_extensions; do
5595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598    break 2
5599  fi
5600done
5601done
5602
5603  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5604  ;;
5605esac
5606fi
5607GZIP=$ac_cv_path_GZIP
5608
5609if test -n "$GZIP"; then
5610  echo "$as_me:$LINENO: result: $GZIP" >&5
5611echo "${ECHO_T}$GZIP" >&6
5612else
5613  echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615fi
5616
5617# Extract the first word of "pod2html", so it can be a program name with args.
5618set dummy pod2html; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_path_POD2HTML+set}" = set; then
5622  echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624  case $POD2HTML in
5625  [\\/]* | ?:[\\/]*)
5626  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5627  ;;
5628  *)
5629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634  for ac_exec_ext in '' $ac_executable_extensions; do
5635  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641done
5642
5643  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5644  ;;
5645esac
5646fi
5647POD2HTML=$ac_cv_path_POD2HTML
5648
5649if test -n "$POD2HTML"; then
5650  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5651echo "${ECHO_T}$POD2HTML" >&6
5652else
5653  echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655fi
5656
5657# Extract the first word of "pod2man", so it can be a program name with args.
5658set dummy pod2man; ac_word=$2
5659echo "$as_me:$LINENO: checking for $ac_word" >&5
5660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5661if test "${ac_cv_path_POD2MAN+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  case $POD2MAN in
5665  [\\/]* | ?:[\\/]*)
5666  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5667  ;;
5668  *)
5669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674  for ac_exec_ext in '' $ac_executable_extensions; do
5675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681done
5682
5683  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5684  ;;
5685esac
5686fi
5687POD2MAN=$ac_cv_path_POD2MAN
5688
5689if test -n "$POD2MAN"; then
5690  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5691echo "${ECHO_T}$POD2MAN" >&6
5692else
5693  echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
5695fi
5696
5697# Extract the first word of "runtest", so it can be a program name with args.
5698set dummy runtest; ac_word=$2
5699echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701if test "${ac_cv_path_RUNTEST+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  case $RUNTEST in
5705  [\\/]* | ?:[\\/]*)
5706  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5707  ;;
5708  *)
5709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714  for ac_exec_ext in '' $ac_executable_extensions; do
5715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718    break 2
5719  fi
5720done
5721done
5722
5723  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5724  ;;
5725esac
5726fi
5727RUNTEST=$ac_cv_path_RUNTEST
5728
5729if test -n "$RUNTEST"; then
5730  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5731echo "${ECHO_T}$RUNTEST" >&6
5732else
5733  echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735fi
5736
5737
5738no_itcl=true
5739echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5740echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5741
5742# Check whether --with-tclinclude or --without-tclinclude was given.
5743if test "${with_tclinclude+set}" = set; then
5744  withval="$with_tclinclude"
5745  with_tclinclude=${withval}
5746else
5747  with_tclinclude=''
5748fi;
5749if test "${ac_cv_path_tclsh+set}" = set; then
5750  echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752
5753if test x"${with_tclinclude}" != x ; then
5754  if test -f ${with_tclinclude}/tclsh ; then
5755    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5756  elif test -f ${with_tclinclude}/src/tclsh ; then
5757    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5758  else
5759    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5760echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5761   { (exit 1); exit 1; }; }
5762  fi
5763fi
5764
5765if test x"${ac_cv_path_tclsh}" = x ; then
5766  echo "$as_me:$LINENO: result: none" >&5
5767echo "${ECHO_T}none" >&6
5768  for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5769do
5770  # Extract the first word of "$ac_prog", so it can be a program name with args.
5771set dummy $ac_prog; ac_word=$2
5772echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774if test "${ac_cv_path_TCLSH+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  case $TCLSH in
5778  [\\/]* | ?:[\\/]*)
5779  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5780  ;;
5781  *)
5782  as_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_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794done
5795
5796  ;;
5797esac
5798fi
5799TCLSH=$ac_cv_path_TCLSH
5800
5801if test -n "$TCLSH"; then
5802  echo "$as_me:$LINENO: result: $TCLSH" >&5
5803echo "${ECHO_T}$TCLSH" >&6
5804else
5805  echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807fi
5808
5809  test -n "$TCLSH" && break
5810done
5811
5812  if test x"${TCLSH}" = x ; then
5813    ac_cv_path_tclsh='';
5814  else
5815    ac_cv_path_tclsh="${TCLSH}";
5816  fi
5817else
5818  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5819echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5820  TCLSH="${ac_cv_path_tclsh}"
5821
5822fi
5823
5824fi
5825
5826# Extract the first word of "zip", so it can be a program name with args.
5827set dummy zip; ac_word=$2
5828echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830if test "${ac_cv_path_ZIP+set}" = set; then
5831  echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833  case $ZIP in
5834  [\\/]* | ?:[\\/]*)
5835  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5836  ;;
5837  *)
5838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843  for ac_exec_ext in '' $ac_executable_extensions; do
5844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847    break 2
5848  fi
5849done
5850done
5851
5852  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5853  ;;
5854esac
5855fi
5856ZIP=$ac_cv_path_ZIP
5857
5858if test -n "$ZIP"; then
5859  echo "$as_me:$LINENO: result: $ZIP" >&5
5860echo "${ECHO_T}$ZIP" >&6
5861else
5862  echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864fi
5865
5866
5867echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5868echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5869if test "${llvm_cv_link_use_r+set}" = set; then
5870  echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872   ac_ext=c
5873ac_cpp='$CPP $CPPFLAGS'
5874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878  oldcflags="$CFLAGS"
5879  CFLAGS="$CFLAGS -Wl,-R."
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886
5887int
5888main ()
5889{
5890int main() { return 0; }
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext conftest$ac_exeext
5896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897  (eval $ac_link) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904	 { ac_try='test -z "$ac_c_werror_flag"
5905			 || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest$ac_exeext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  llvm_cv_link_use_r=yes
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922llvm_cv_link_use_r=no
5923fi
5924rm -f conftest.err conftest.$ac_objext \
5925      conftest$ac_exeext conftest.$ac_ext
5926  CFLAGS="$oldcflags"
5927  ac_ext=c
5928ac_cpp='$CPP $CPPFLAGS'
5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933
5934fi
5935echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5936echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5937if test "$llvm_cv_link_use_r" = yes ; then
5938
5939cat >>confdefs.h <<\_ACEOF
5940#define HAVE_LINK_R 1
5941_ACEOF
5942
5943  fi
5944
5945
5946
5947
5948echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5949echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5950if test "${ac_cv_c_const+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h.  */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h.  */
5959
5960int
5961main ()
5962{
5963/* FIXME: Include the comments suggested by Paul. */
5964#ifndef __cplusplus
5965  /* Ultrix mips cc rejects this.  */
5966  typedef int charset[2];
5967  const charset x;
5968  /* SunOS 4.1.1 cc rejects this.  */
5969  char const *const *ccp;
5970  char **p;
5971  /* NEC SVR4.0.2 mips cc rejects this.  */
5972  struct point {int x, y;};
5973  static struct point const zero = {0,0};
5974  /* AIX XL C 1.02.0.0 rejects this.
5975     It does not let you subtract one const X* pointer from another in
5976     an arm of an if-expression whose if-part is not a constant
5977     expression */
5978  const char *g = "string";
5979  ccp = &g + (g ? g-g : 0);
5980  /* HPUX 7.0 cc rejects these. */
5981  ++ccp;
5982  p = (char**) ccp;
5983  ccp = (char const *const *) p;
5984  { /* SCO 3.2v4 cc rejects this.  */
5985    char *t;
5986    char const *s = 0 ? (char *) 0 : (char const *) 0;
5987
5988    *t++ = 0;
5989  }
5990  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5991    int x[] = {25, 17};
5992    const int *foo = &x[0];
5993    ++foo;
5994  }
5995  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5996    typedef const int *iptr;
5997    iptr p = 0;
5998    ++p;
5999  }
6000  { /* AIX XL C 1.02.0.0 rejects this saying
6001       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6002    struct s { int j; const int *ap[3]; };
6003    struct s *b; b->j = 5;
6004  }
6005  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6006    const int foo = 10;
6007  }
6008#endif
6009
6010  ;
6011  return 0;
6012}
6013_ACEOF
6014rm -f conftest.$ac_objext
6015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016  (eval $ac_compile) 2>conftest.er1
6017  ac_status=$?
6018  grep -v '^ *+' conftest.er1 >conftest.err
6019  rm -f conftest.er1
6020  cat conftest.err >&5
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); } &&
6023	 { ac_try='test -z "$ac_c_werror_flag"
6024			 || test ! -s conftest.err'
6025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026  (eval $ac_try) 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }; } &&
6030	 { ac_try='test -s conftest.$ac_objext'
6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032  (eval $ac_try) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; }; then
6036  ac_cv_c_const=yes
6037else
6038  echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041ac_cv_c_const=no
6042fi
6043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6046echo "${ECHO_T}$ac_cv_c_const" >&6
6047if test $ac_cv_c_const = no; then
6048
6049cat >>confdefs.h <<\_ACEOF
6050#define const
6051_ACEOF
6052
6053fi
6054
6055
6056echo "$as_me:$LINENO: checking for egrep" >&5
6057echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6058if test "${ac_cv_prog_egrep+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6062    then ac_cv_prog_egrep='grep -E'
6063    else ac_cv_prog_egrep='egrep'
6064    fi
6065fi
6066echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6067echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6068 EGREP=$ac_cv_prog_egrep
6069
6070
6071echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6072echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6073if test "${ac_cv_header_stdc+set}" = set; then
6074  echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076  cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082#include <stdlib.h>
6083#include <stdarg.h>
6084#include <string.h>
6085#include <float.h>
6086
6087int
6088main ()
6089{
6090
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097  (eval $ac_compile) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } &&
6104	 { ac_try='test -z "$ac_c_werror_flag"
6105			 || test ! -s conftest.err'
6106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107  (eval $ac_try) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }; } &&
6111	 { ac_try='test -s conftest.$ac_objext'
6112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113  (eval $ac_try) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; }; then
6117  ac_cv_header_stdc=yes
6118else
6119  echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122ac_cv_header_stdc=no
6123fi
6124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126if test $ac_cv_header_stdc = yes; then
6127  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6128  cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#include <string.h>
6135
6136_ACEOF
6137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138  $EGREP "memchr" >/dev/null 2>&1; then
6139  :
6140else
6141  ac_cv_header_stdc=no
6142fi
6143rm -f conftest*
6144
6145fi
6146
6147if test $ac_cv_header_stdc = yes; then
6148  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6149  cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h.  */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h.  */
6155#include <stdlib.h>
6156
6157_ACEOF
6158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159  $EGREP "free" >/dev/null 2>&1; then
6160  :
6161else
6162  ac_cv_header_stdc=no
6163fi
6164rm -f conftest*
6165
6166fi
6167
6168if test $ac_cv_header_stdc = yes; then
6169  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6170  if test "$cross_compiling" = yes; then
6171  :
6172else
6173  cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h.  */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h.  */
6179#include <ctype.h>
6180#if ((' ' & 0x0FF) == 0x020)
6181# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6182# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6183#else
6184# define ISLOWER(c) \
6185		   (('a' <= (c) && (c) <= 'i') \
6186		     || ('j' <= (c) && (c) <= 'r') \
6187		     || ('s' <= (c) && (c) <= 'z'))
6188# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6189#endif
6190
6191#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6192int
6193main ()
6194{
6195  int i;
6196  for (i = 0; i < 256; i++)
6197    if (XOR (islower (i), ISLOWER (i))
6198	|| toupper (i) != TOUPPER (i))
6199      exit(2);
6200  exit (0);
6201}
6202_ACEOF
6203rm -f conftest$ac_exeext
6204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205  (eval $ac_link) 2>&5
6206  ac_status=$?
6207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210  (eval $ac_try) 2>&5
6211  ac_status=$?
6212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); }; }; then
6214  :
6215else
6216  echo "$as_me: program exited with status $ac_status" >&5
6217echo "$as_me: failed program was:" >&5
6218sed 's/^/| /' conftest.$ac_ext >&5
6219
6220( exit $ac_status )
6221ac_cv_header_stdc=no
6222fi
6223rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6224fi
6225fi
6226fi
6227echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6228echo "${ECHO_T}$ac_cv_header_stdc" >&6
6229if test $ac_cv_header_stdc = yes; then
6230
6231cat >>confdefs.h <<\_ACEOF
6232#define STDC_HEADERS 1
6233_ACEOF
6234
6235fi
6236
6237
6238
6239
6240
6241
6242ac_header_dirent=no
6243for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6244  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6245echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6246echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6247if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248  echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250  cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256#include <sys/types.h>
6257#include <$ac_hdr>
6258
6259int
6260main ()
6261{
6262if ((DIR *) 0)
6263return 0;
6264  ;
6265  return 0;
6266}
6267_ACEOF
6268rm -f conftest.$ac_objext
6269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270  (eval $ac_compile) 2>conftest.er1
6271  ac_status=$?
6272  grep -v '^ *+' conftest.er1 >conftest.err
6273  rm -f conftest.er1
6274  cat conftest.err >&5
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); } &&
6277	 { ac_try='test -z "$ac_c_werror_flag"
6278			 || test ! -s conftest.err'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; } &&
6284	 { ac_try='test -s conftest.$ac_objext'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  eval "$as_ac_Header=yes"
6291else
6292  echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295eval "$as_ac_Header=no"
6296fi
6297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298fi
6299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6301if test `eval echo '${'$as_ac_Header'}'` = yes; then
6302  cat >>confdefs.h <<_ACEOF
6303#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6304_ACEOF
6305
6306ac_header_dirent=$ac_hdr; break
6307fi
6308
6309done
6310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6311if test $ac_header_dirent = dirent.h; then
6312  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6313echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6314if test "${ac_cv_search_opendir+set}" = set; then
6315  echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317  ac_func_search_save_LIBS=$LIBS
6318ac_cv_search_opendir=no
6319cat >conftest.$ac_ext <<_ACEOF
6320/* confdefs.h.  */
6321_ACEOF
6322cat confdefs.h >>conftest.$ac_ext
6323cat >>conftest.$ac_ext <<_ACEOF
6324/* end confdefs.h.  */
6325
6326/* Override any gcc2 internal prototype to avoid an error.  */
6327#ifdef __cplusplus
6328extern "C"
6329#endif
6330/* We use char because int might match the return type of a gcc2
6331   builtin and then its argument prototype would still apply.  */
6332char opendir ();
6333int
6334main ()
6335{
6336opendir ();
6337  ;
6338  return 0;
6339}
6340_ACEOF
6341rm -f conftest.$ac_objext conftest$ac_exeext
6342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343  (eval $ac_link) 2>conftest.er1
6344  ac_status=$?
6345  grep -v '^ *+' conftest.er1 >conftest.err
6346  rm -f conftest.er1
6347  cat conftest.err >&5
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); } &&
6350	 { ac_try='test -z "$ac_c_werror_flag"
6351			 || test ! -s conftest.err'
6352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353  (eval $ac_try) 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; } &&
6357	 { ac_try='test -s conftest$ac_exeext'
6358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359  (eval $ac_try) 2>&5
6360  ac_status=$?
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); }; }; then
6363  ac_cv_search_opendir="none required"
6364else
6365  echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368fi
6369rm -f conftest.err conftest.$ac_objext \
6370      conftest$ac_exeext conftest.$ac_ext
6371if test "$ac_cv_search_opendir" = no; then
6372  for ac_lib in dir; do
6373    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6374    cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h.  */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h.  */
6380
6381/* Override any gcc2 internal prototype to avoid an error.  */
6382#ifdef __cplusplus
6383extern "C"
6384#endif
6385/* We use char because int might match the return type of a gcc2
6386   builtin and then its argument prototype would still apply.  */
6387char opendir ();
6388int
6389main ()
6390{
6391opendir ();
6392  ;
6393  return 0;
6394}
6395_ACEOF
6396rm -f conftest.$ac_objext conftest$ac_exeext
6397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6398  (eval $ac_link) 2>conftest.er1
6399  ac_status=$?
6400  grep -v '^ *+' conftest.er1 >conftest.err
6401  rm -f conftest.er1
6402  cat conftest.err >&5
6403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); } &&
6405	 { ac_try='test -z "$ac_c_werror_flag"
6406			 || test ! -s conftest.err'
6407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408  (eval $ac_try) 2>&5
6409  ac_status=$?
6410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411  (exit $ac_status); }; } &&
6412	 { ac_try='test -s conftest$ac_exeext'
6413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414  (eval $ac_try) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); }; }; then
6418  ac_cv_search_opendir="-l$ac_lib"
6419break
6420else
6421  echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
6424fi
6425rm -f conftest.err conftest.$ac_objext \
6426      conftest$ac_exeext conftest.$ac_ext
6427  done
6428fi
6429LIBS=$ac_func_search_save_LIBS
6430fi
6431echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6432echo "${ECHO_T}$ac_cv_search_opendir" >&6
6433if test "$ac_cv_search_opendir" != no; then
6434  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6435
6436fi
6437
6438else
6439  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6440echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6441if test "${ac_cv_search_opendir+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  ac_func_search_save_LIBS=$LIBS
6445ac_cv_search_opendir=no
6446cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452
6453/* Override any gcc2 internal prototype to avoid an error.  */
6454#ifdef __cplusplus
6455extern "C"
6456#endif
6457/* We use char because int might match the return type of a gcc2
6458   builtin and then its argument prototype would still apply.  */
6459char opendir ();
6460int
6461main ()
6462{
6463opendir ();
6464  ;
6465  return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext conftest$ac_exeext
6469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470  (eval $ac_link) 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } &&
6477	 { ac_try='test -z "$ac_c_werror_flag"
6478			 || test ! -s conftest.err'
6479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480  (eval $ac_try) 2>&5
6481  ac_status=$?
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); }; } &&
6484	 { ac_try='test -s conftest$ac_exeext'
6485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486  (eval $ac_try) 2>&5
6487  ac_status=$?
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); }; }; then
6490  ac_cv_search_opendir="none required"
6491else
6492  echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495fi
6496rm -f conftest.err conftest.$ac_objext \
6497      conftest$ac_exeext conftest.$ac_ext
6498if test "$ac_cv_search_opendir" = no; then
6499  for ac_lib in x; do
6500    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6501    cat >conftest.$ac_ext <<_ACEOF
6502/* confdefs.h.  */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h.  */
6507
6508/* Override any gcc2 internal prototype to avoid an error.  */
6509#ifdef __cplusplus
6510extern "C"
6511#endif
6512/* We use char because int might match the return type of a gcc2
6513   builtin and then its argument prototype would still apply.  */
6514char opendir ();
6515int
6516main ()
6517{
6518opendir ();
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523rm -f conftest.$ac_objext conftest$ac_exeext
6524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525  (eval $ac_link) 2>conftest.er1
6526  ac_status=$?
6527  grep -v '^ *+' conftest.er1 >conftest.err
6528  rm -f conftest.er1
6529  cat conftest.err >&5
6530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531  (exit $ac_status); } &&
6532	 { ac_try='test -z "$ac_c_werror_flag"
6533			 || test ! -s conftest.err'
6534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535  (eval $ac_try) 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; } &&
6539	 { ac_try='test -s conftest$ac_exeext'
6540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541  (eval $ac_try) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); }; }; then
6545  ac_cv_search_opendir="-l$ac_lib"
6546break
6547else
6548  echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551fi
6552rm -f conftest.err conftest.$ac_objext \
6553      conftest$ac_exeext conftest.$ac_ext
6554  done
6555fi
6556LIBS=$ac_func_search_save_LIBS
6557fi
6558echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560if test "$ac_cv_search_opendir" != no; then
6561  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6562
6563fi
6564
6565fi
6566
6567# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6578		  inttypes.h stdint.h unistd.h
6579do
6580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6581echo "$as_me:$LINENO: checking for $ac_header" >&5
6582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6583if eval "test \"\${$as_ac_Header+set}\" = set"; then
6584  echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586  cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h.  */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h.  */
6592$ac_includes_default
6593
6594#include <$ac_header>
6595_ACEOF
6596rm -f conftest.$ac_objext
6597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598  (eval $ac_compile) 2>conftest.er1
6599  ac_status=$?
6600  grep -v '^ *+' conftest.er1 >conftest.err
6601  rm -f conftest.er1
6602  cat conftest.err >&5
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); } &&
6605	 { ac_try='test -z "$ac_c_werror_flag"
6606			 || test ! -s conftest.err'
6607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608  (eval $ac_try) 2>&5
6609  ac_status=$?
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); }; } &&
6612	 { ac_try='test -s conftest.$ac_objext'
6613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614  (eval $ac_try) 2>&5
6615  ac_status=$?
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); }; }; then
6618  eval "$as_ac_Header=yes"
6619else
6620  echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623eval "$as_ac_Header=no"
6624fi
6625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626fi
6627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6629if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630  cat >>confdefs.h <<_ACEOF
6631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632_ACEOF
6633
6634fi
6635
6636done
6637
6638
6639
6640for ac_header in dlfcn.h
6641do
6642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644  echo "$as_me:$LINENO: checking for $ac_header" >&5
6645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647  echo $ECHO_N "(cached) $ECHO_C" >&6
6648fi
6649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651else
6652  # Is the header compilable?
6653echo "$as_me:$LINENO: checking $ac_header usability" >&5
6654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6655cat >conftest.$ac_ext <<_ACEOF
6656/* confdefs.h.  */
6657_ACEOF
6658cat confdefs.h >>conftest.$ac_ext
6659cat >>conftest.$ac_ext <<_ACEOF
6660/* end confdefs.h.  */
6661$ac_includes_default
6662#include <$ac_header>
6663_ACEOF
6664rm -f conftest.$ac_objext
6665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666  (eval $ac_compile) 2>conftest.er1
6667  ac_status=$?
6668  grep -v '^ *+' conftest.er1 >conftest.err
6669  rm -f conftest.er1
6670  cat conftest.err >&5
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); } &&
6673	 { ac_try='test -z "$ac_c_werror_flag"
6674			 || test ! -s conftest.err'
6675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676  (eval $ac_try) 2>&5
6677  ac_status=$?
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); }; } &&
6680	 { ac_try='test -s conftest.$ac_objext'
6681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682  (eval $ac_try) 2>&5
6683  ac_status=$?
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); }; }; then
6686  ac_header_compiler=yes
6687else
6688  echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691ac_header_compiler=no
6692fi
6693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6695echo "${ECHO_T}$ac_header_compiler" >&6
6696
6697# Is the header present?
6698echo "$as_me:$LINENO: checking $ac_header presence" >&5
6699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6700cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h.  */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h.  */
6706#include <$ac_header>
6707_ACEOF
6708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6709  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6710  ac_status=$?
6711  grep -v '^ *+' conftest.er1 >conftest.err
6712  rm -f conftest.er1
6713  cat conftest.err >&5
6714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715  (exit $ac_status); } >/dev/null; then
6716  if test -s conftest.err; then
6717    ac_cpp_err=$ac_c_preproc_warn_flag
6718    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6719  else
6720    ac_cpp_err=
6721  fi
6722else
6723  ac_cpp_err=yes
6724fi
6725if test -z "$ac_cpp_err"; then
6726  ac_header_preproc=yes
6727else
6728  echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
6730
6731  ac_header_preproc=no
6732fi
6733rm -f conftest.err conftest.$ac_ext
6734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735echo "${ECHO_T}$ac_header_preproc" >&6
6736
6737# So?  What about this header?
6738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6739  yes:no: )
6740    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6744    ac_header_preproc=yes
6745    ;;
6746  no:yes:* )
6747    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6750echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6751    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6753    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6754echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6755    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6757    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6759    (
6760      cat <<\_ASBOX
6761## ----------------------------------- ##
6762## Report this to llvmbugs@cs.uiuc.edu ##
6763## ----------------------------------- ##
6764_ASBOX
6765    ) |
6766      sed "s/^/$as_me: WARNING:     /" >&2
6767    ;;
6768esac
6769echo "$as_me:$LINENO: checking for $ac_header" >&5
6770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  eval "$as_ac_Header=\$ac_header_preproc"
6775fi
6776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778
6779fi
6780if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781  cat >>confdefs.h <<_ACEOF
6782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783_ACEOF
6784
6785fi
6786
6787done
6788
6789# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6790if test "${enable_ltdl_install+set}" = set; then
6791  enableval="$enable_ltdl_install"
6792
6793fi;
6794
6795
6796
6797if test x"${enable_ltdl_install-no}" != xno; then
6798  INSTALL_LTDL_TRUE=
6799  INSTALL_LTDL_FALSE='#'
6800else
6801  INSTALL_LTDL_TRUE='#'
6802  INSTALL_LTDL_FALSE=
6803fi
6804
6805
6806
6807if test x"${enable_ltdl_convenience-no}" != xno; then
6808  CONVENIENCE_LTDL_TRUE=
6809  CONVENIENCE_LTDL_FALSE='#'
6810else
6811  CONVENIENCE_LTDL_TRUE='#'
6812  CONVENIENCE_LTDL_FALSE=
6813fi
6814
6815
6816echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6818library_names_spec=
6819libname_spec='lib$name'
6820soname_spec=
6821shrext_cmds=".so"
6822postinstall_cmds=
6823postuninstall_cmds=
6824finish_cmds=
6825finish_eval=
6826shlibpath_var=
6827shlibpath_overrides_runpath=unknown
6828version_type=none
6829dynamic_linker="$host_os ld.so"
6830sys_lib_dlsearch_path_spec="/lib /usr/lib"
6831if test "$GCC" = yes; then
6832  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6833  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6834    # if the path contains ";" then we assume it to be the separator
6835    # otherwise default to the standard path separator (i.e. ":") - it is
6836    # assumed that no part of a normal pathname contains ";" but that should
6837    # okay in the real world where ";" in dirpaths is itself problematic.
6838    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6839  else
6840    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6841  fi
6842else
6843  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6844fi
6845need_lib_prefix=unknown
6846hardcode_into_libs=no
6847
6848# when you set need_version to no, make sure it does not cause -set_version
6849# flags to be left without arguments
6850need_version=unknown
6851
6852case $host_os in
6853aix3*)
6854  version_type=linux
6855  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6856  shlibpath_var=LIBPATH
6857
6858  # AIX 3 has no versioning support, so we append a major version to the name.
6859  soname_spec='${libname}${release}${shared_ext}$major'
6860  ;;
6861
6862aix4* | aix5*)
6863  version_type=linux
6864  need_lib_prefix=no
6865  need_version=no
6866  hardcode_into_libs=yes
6867  if test "$host_cpu" = ia64; then
6868    # AIX 5 supports IA64
6869    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6870    shlibpath_var=LD_LIBRARY_PATH
6871  else
6872    # With GCC up to 2.95.x, collect2 would create an import file
6873    # for dependence libraries.  The import file would start with
6874    # the line `#! .'.  This would cause the generated library to
6875    # depend on `.', always an invalid library.  This was fixed in
6876    # development snapshots of GCC prior to 3.0.
6877    case $host_os in
6878      aix4 | aix4.[01] | aix4.[01].*)
6879      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6880	   echo ' yes '
6881	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6882	:
6883      else
6884	can_build_shared=no
6885      fi
6886      ;;
6887    esac
6888    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6889    # soname into executable. Probably we can add versioning support to
6890    # collect2, so additional links can be useful in future.
6891    if test "$aix_use_runtimelinking" = yes; then
6892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6893      # instead of lib<name>.a to let people know that these are not
6894      # typical AIX shared libraries.
6895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6896    else
6897      # We preserve .a as extension for shared libraries through AIX4.2
6898      # and later when we are not doing run time linking.
6899      library_names_spec='${libname}${release}.a $libname.a'
6900      soname_spec='${libname}${release}${shared_ext}$major'
6901    fi
6902    shlibpath_var=LIBPATH
6903  fi
6904  ;;
6905
6906amigaos*)
6907  library_names_spec='$libname.ixlibrary $libname.a'
6908  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6909  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'
6910  ;;
6911
6912beos*)
6913  library_names_spec='${libname}${shared_ext}'
6914  dynamic_linker="$host_os ld.so"
6915  shlibpath_var=LIBRARY_PATH
6916  ;;
6917
6918bsdi[45]*)
6919  version_type=linux
6920  need_version=no
6921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6922  soname_spec='${libname}${release}${shared_ext}$major'
6923  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6924  shlibpath_var=LD_LIBRARY_PATH
6925  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6926  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6927  # the default ld.so.conf also contains /usr/contrib/lib and
6928  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6929  # libtool to hard-code these into programs
6930  ;;
6931
6932cygwin* | mingw* | pw32*)
6933  version_type=windows
6934  shrext_cmds=".dll"
6935  need_version=no
6936  need_lib_prefix=no
6937
6938  case $GCC,$host_os in
6939  yes,cygwin* | yes,mingw* | yes,pw32*)
6940    library_names_spec='$libname.dll.a'
6941    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6942    postinstall_cmds='base_file=`basename \${file}`~
6943      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6944      dldir=$destdir/`dirname \$dlpath`~
6945      test -d \$dldir || mkdir -p \$dldir~
6946      $install_prog $dir/$dlname \$dldir/$dlname'
6947    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6948      dlpath=$dir/\$dldll~
6949       $rm \$dlpath'
6950    shlibpath_overrides_runpath=yes
6951
6952    case $host_os in
6953    cygwin*)
6954      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6955      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6956      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6957      ;;
6958    mingw*)
6959      # MinGW DLLs use traditional 'lib' prefix
6960      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6961      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6962      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6963        # It is most probably a Windows format PATH printed by
6964        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6965        # path with ; separators, and with drive letters. We can handle the
6966        # drive letters (cygwin fileutils understands them), so leave them,
6967        # especially as we might pass files found there to a mingw objdump,
6968        # which wouldn't understand a cygwinified path. Ahh.
6969        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6970      else
6971        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6972      fi
6973      ;;
6974    pw32*)
6975      # pw32 DLLs use 'pw' prefix rather than 'lib'
6976      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6977      ;;
6978    esac
6979    ;;
6980
6981  *)
6982    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6983    ;;
6984  esac
6985  dynamic_linker='Win32 ld.exe'
6986  # FIXME: first we should search . and the directory the executable is in
6987  shlibpath_var=PATH
6988  ;;
6989
6990darwin* | rhapsody*)
6991  dynamic_linker="$host_os dyld"
6992  version_type=darwin
6993  need_lib_prefix=no
6994  need_version=no
6995  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6996  soname_spec='${libname}${release}${major}$shared_ext'
6997  shlibpath_overrides_runpath=yes
6998  shlibpath_var=DYLD_LIBRARY_PATH
6999  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7000  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7001  if test "$GCC" = yes; then
7002    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"`
7003  else
7004    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7005  fi
7006  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7007  ;;
7008
7009dgux*)
7010  version_type=linux
7011  need_lib_prefix=no
7012  need_version=no
7013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7014  soname_spec='${libname}${release}${shared_ext}$major'
7015  shlibpath_var=LD_LIBRARY_PATH
7016  ;;
7017
7018freebsd1*)
7019  dynamic_linker=no
7020  ;;
7021
7022kfreebsd*-gnu)
7023  version_type=linux
7024  need_lib_prefix=no
7025  need_version=no
7026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7027  soname_spec='${libname}${release}${shared_ext}$major'
7028  shlibpath_var=LD_LIBRARY_PATH
7029  shlibpath_overrides_runpath=no
7030  hardcode_into_libs=yes
7031  dynamic_linker='GNU ld.so'
7032  ;;
7033
7034freebsd*)
7035  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7036  version_type=freebsd-$objformat
7037  case $version_type in
7038    freebsd-elf*)
7039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7040      need_version=no
7041      need_lib_prefix=no
7042      ;;
7043    freebsd-*)
7044      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7045      need_version=yes
7046      ;;
7047  esac
7048  shlibpath_var=LD_LIBRARY_PATH
7049  case $host_os in
7050  freebsd2*)
7051    shlibpath_overrides_runpath=yes
7052    ;;
7053  freebsd3.01* | freebsdelf3.01*)
7054    shlibpath_overrides_runpath=yes
7055    hardcode_into_libs=yes
7056    ;;
7057  *) # from 3.2 on
7058    shlibpath_overrides_runpath=no
7059    hardcode_into_libs=yes
7060    ;;
7061  esac
7062  ;;
7063
7064gnu*)
7065  version_type=linux
7066  need_lib_prefix=no
7067  need_version=no
7068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7069  soname_spec='${libname}${release}${shared_ext}$major'
7070  shlibpath_var=LD_LIBRARY_PATH
7071  hardcode_into_libs=yes
7072  ;;
7073
7074hpux9* | hpux10* | hpux11*)
7075  # Give a soname corresponding to the major version so that dld.sl refuses to
7076  # link against other versions.
7077  version_type=sunos
7078  need_lib_prefix=no
7079  need_version=no
7080  case "$host_cpu" in
7081  ia64*)
7082    shrext_cmds='.so'
7083    hardcode_into_libs=yes
7084    dynamic_linker="$host_os dld.so"
7085    shlibpath_var=LD_LIBRARY_PATH
7086    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7087    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7088    soname_spec='${libname}${release}${shared_ext}$major'
7089    if test "X$HPUX_IA64_MODE" = X32; then
7090      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7091    else
7092      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7093    fi
7094    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7095    ;;
7096   hppa*64*)
7097     shrext_cmds='.sl'
7098     hardcode_into_libs=yes
7099     dynamic_linker="$host_os dld.sl"
7100     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7101     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7103     soname_spec='${libname}${release}${shared_ext}$major'
7104     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7105     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7106     ;;
7107   *)
7108    shrext_cmds='.sl'
7109    dynamic_linker="$host_os dld.sl"
7110    shlibpath_var=SHLIB_PATH
7111    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113    soname_spec='${libname}${release}${shared_ext}$major'
7114    ;;
7115  esac
7116  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7117  postinstall_cmds='chmod 555 $lib'
7118  ;;
7119
7120irix5* | irix6* | nonstopux*)
7121  case $host_os in
7122    nonstopux*) version_type=nonstopux ;;
7123    *)
7124	if test "$lt_cv_prog_gnu_ld" = yes; then
7125		version_type=linux
7126	else
7127		version_type=irix
7128	fi ;;
7129  esac
7130  need_lib_prefix=no
7131  need_version=no
7132  soname_spec='${libname}${release}${shared_ext}$major'
7133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7134  case $host_os in
7135  irix5* | nonstopux*)
7136    libsuff= shlibsuff=
7137    ;;
7138  *)
7139    case $LD in # libtool.m4 will add one of these switches to LD
7140    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7141      libsuff= shlibsuff= libmagic=32-bit;;
7142    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7143      libsuff=32 shlibsuff=N32 libmagic=N32;;
7144    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7145      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7146    *) libsuff= shlibsuff= libmagic=never-match;;
7147    esac
7148    ;;
7149  esac
7150  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7151  shlibpath_overrides_runpath=no
7152  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7153  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7154  hardcode_into_libs=yes
7155  ;;
7156
7157# No shared lib support for Linux oldld, aout, or coff.
7158linux*oldld* | linux*aout* | linux*coff*)
7159  dynamic_linker=no
7160  ;;
7161
7162# This must be Linux ELF.
7163linux*)
7164  version_type=linux
7165  need_lib_prefix=no
7166  need_version=no
7167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7168  soname_spec='${libname}${release}${shared_ext}$major'
7169  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7170  shlibpath_var=LD_LIBRARY_PATH
7171  shlibpath_overrides_runpath=no
7172  # This implies no fast_install, which is unacceptable.
7173  # Some rework will be needed to allow for fast_install
7174  # before this can be enabled.
7175  hardcode_into_libs=yes
7176
7177  # Append ld.so.conf contents to the search path
7178  if test -f /etc/ld.so.conf; then
7179    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7180    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7181  fi
7182
7183  # We used to test for /lib/ld.so.1 and disable shared libraries on
7184  # powerpc, because MkLinux only supported shared libraries with the
7185  # GNU dynamic linker.  Since this was broken with cross compilers,
7186  # most powerpc-linux boxes support dynamic linking these days and
7187  # people can always --disable-shared, the test was removed, and we
7188  # assume the GNU/Linux dynamic linker is in use.
7189  dynamic_linker='GNU/Linux ld.so'
7190  ;;
7191
7192knetbsd*-gnu)
7193  version_type=linux
7194  need_lib_prefix=no
7195  need_version=no
7196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7197  soname_spec='${libname}${release}${shared_ext}$major'
7198  shlibpath_var=LD_LIBRARY_PATH
7199  shlibpath_overrides_runpath=no
7200  hardcode_into_libs=yes
7201  dynamic_linker='GNU ld.so'
7202  ;;
7203
7204netbsd*)
7205  version_type=sunos
7206  need_lib_prefix=no
7207  need_version=no
7208  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7210    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7211    dynamic_linker='NetBSD (a.out) ld.so'
7212  else
7213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7214    soname_spec='${libname}${release}${shared_ext}$major'
7215    dynamic_linker='NetBSD ld.elf_so'
7216  fi
7217  shlibpath_var=LD_LIBRARY_PATH
7218  shlibpath_overrides_runpath=yes
7219  hardcode_into_libs=yes
7220  ;;
7221
7222newsos6)
7223  version_type=linux
7224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7225  shlibpath_var=LD_LIBRARY_PATH
7226  shlibpath_overrides_runpath=yes
7227  ;;
7228
7229nto-qnx*)
7230  version_type=linux
7231  need_lib_prefix=no
7232  need_version=no
7233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7234  soname_spec='${libname}${release}${shared_ext}$major'
7235  shlibpath_var=LD_LIBRARY_PATH
7236  shlibpath_overrides_runpath=yes
7237  ;;
7238
7239openbsd*)
7240  version_type=sunos
7241  need_lib_prefix=no
7242  need_version=no
7243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7244  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7245  shlibpath_var=LD_LIBRARY_PATH
7246  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7247    case $host_os in
7248      openbsd2.[89] | openbsd2.[89].*)
7249	shlibpath_overrides_runpath=no
7250	;;
7251      *)
7252	shlibpath_overrides_runpath=yes
7253	;;
7254      esac
7255  else
7256    shlibpath_overrides_runpath=yes
7257  fi
7258  ;;
7259
7260os2*)
7261  libname_spec='$name'
7262  shrext_cmds=".dll"
7263  need_lib_prefix=no
7264  library_names_spec='$libname${shared_ext} $libname.a'
7265  dynamic_linker='OS/2 ld.exe'
7266  shlibpath_var=LIBPATH
7267  ;;
7268
7269osf3* | osf4* | osf5*)
7270  version_type=osf
7271  need_lib_prefix=no
7272  need_version=no
7273  soname_spec='${libname}${release}${shared_ext}$major'
7274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7275  shlibpath_var=LD_LIBRARY_PATH
7276  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7277  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7278  ;;
7279
7280sco3.2v5*)
7281  version_type=osf
7282  soname_spec='${libname}${release}${shared_ext}$major'
7283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284  shlibpath_var=LD_LIBRARY_PATH
7285  ;;
7286
7287solaris*)
7288  version_type=linux
7289  need_lib_prefix=no
7290  need_version=no
7291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7292  soname_spec='${libname}${release}${shared_ext}$major'
7293  shlibpath_var=LD_LIBRARY_PATH
7294  shlibpath_overrides_runpath=yes
7295  hardcode_into_libs=yes
7296  # ldd complains unless libraries are executable
7297  postinstall_cmds='chmod +x $lib'
7298  ;;
7299
7300sunos4*)
7301  version_type=sunos
7302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7303  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7304  shlibpath_var=LD_LIBRARY_PATH
7305  shlibpath_overrides_runpath=yes
7306  if test "$with_gnu_ld" = yes; then
7307    need_lib_prefix=no
7308  fi
7309  need_version=yes
7310  ;;
7311
7312sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7313  version_type=linux
7314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315  soname_spec='${libname}${release}${shared_ext}$major'
7316  shlibpath_var=LD_LIBRARY_PATH
7317  case $host_vendor in
7318    sni)
7319      shlibpath_overrides_runpath=no
7320      need_lib_prefix=no
7321      export_dynamic_flag_spec='${wl}-Blargedynsym'
7322      runpath_var=LD_RUN_PATH
7323      ;;
7324    siemens)
7325      need_lib_prefix=no
7326      ;;
7327    motorola)
7328      need_lib_prefix=no
7329      need_version=no
7330      shlibpath_overrides_runpath=no
7331      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7332      ;;
7333  esac
7334  ;;
7335
7336sysv4*MP*)
7337  if test -d /usr/nec ;then
7338    version_type=linux
7339    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7340    soname_spec='$libname${shared_ext}.$major'
7341    shlibpath_var=LD_LIBRARY_PATH
7342  fi
7343  ;;
7344
7345uts4*)
7346  version_type=linux
7347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7348  soname_spec='${libname}${release}${shared_ext}$major'
7349  shlibpath_var=LD_LIBRARY_PATH
7350  ;;
7351
7352*)
7353  dynamic_linker=no
7354  ;;
7355esac
7356echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7357echo "${ECHO_T}$dynamic_linker" >&6
7358test "$dynamic_linker" = no && can_build_shared=no
7359
7360
7361echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7362echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7363if test "${libltdl_cv_shlibext+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366
7367module=yes
7368eval libltdl_cv_shlibext=$shrext_cmds
7369
7370fi
7371echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7372echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7373if test -n "$libltdl_cv_shlibext"; then
7374
7375cat >>confdefs.h <<_ACEOF
7376#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7377_ACEOF
7378
7379fi
7380
7381
7382echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7383echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7384if test "${libltdl_cv_shlibpath_var+set}" = set; then
7385  echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387  libltdl_cv_shlibpath_var="$shlibpath_var"
7388fi
7389echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7390echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7391if test -n "$libltdl_cv_shlibpath_var"; then
7392
7393cat >>confdefs.h <<_ACEOF
7394#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7395_ACEOF
7396
7397fi
7398
7399
7400echo "$as_me:$LINENO: checking for the default library search path" >&5
7401echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7402if test "${libltdl_cv_sys_search_path+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7406fi
7407echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7408echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7409if test -n "$libltdl_cv_sys_search_path"; then
7410  sys_search_path=
7411  for dir in $libltdl_cv_sys_search_path; do
7412    if test -z "$sys_search_path"; then
7413      sys_search_path="$dir"
7414    else
7415      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7416    fi
7417  done
7418
7419cat >>confdefs.h <<_ACEOF
7420#define LTDL_SYSSEARCHPATH "$sys_search_path"
7421_ACEOF
7422
7423fi
7424
7425echo "$as_me:$LINENO: checking for objdir" >&5
7426echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7427if test "${libltdl_cv_objdir+set}" = set; then
7428  echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430  libltdl_cv_objdir="$objdir"
7431  if test -n "$objdir"; then
7432    :
7433  else
7434    rm -f .libs 2>/dev/null
7435    mkdir .libs 2>/dev/null
7436    if test -d .libs; then
7437      libltdl_cv_objdir=.libs
7438    else
7439      # MS-DOS does not allow filenames that begin with a dot.
7440      libltdl_cv_objdir=_libs
7441    fi
7442  rmdir .libs 2>/dev/null
7443  fi
7444
7445fi
7446echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7447echo "${ECHO_T}$libltdl_cv_objdir" >&6
7448
7449cat >>confdefs.h <<_ACEOF
7450#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7451_ACEOF
7452
7453
7454echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7455echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7456if test "${lt_cv_path_NM+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  if test -n "$NM"; then
7460  # Let the user override the test.
7461  lt_cv_path_NM="$NM"
7462else
7463  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7465    IFS="$lt_save_ifs"
7466    test -z "$ac_dir" && ac_dir=.
7467    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7468    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7469      # Check to see if the nm accepts a BSD-compat flag.
7470      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7471      #   nm: unknown option "B" ignored
7472      # Tru64's nm complains that /dev/null is an invalid object file
7473      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7474      */dev/null* | *'Invalid file or object type'*)
7475	lt_cv_path_NM="$tmp_nm -B"
7476	break
7477        ;;
7478      *)
7479	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7480	*/dev/null*)
7481	  lt_cv_path_NM="$tmp_nm -p"
7482	  break
7483	  ;;
7484	*)
7485	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7486	  continue # so that we can try to find one that supports BSD flags
7487	  ;;
7488	esac
7489      esac
7490    fi
7491  done
7492  IFS="$lt_save_ifs"
7493  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7494fi
7495fi
7496echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7497echo "${ECHO_T}$lt_cv_path_NM" >&6
7498NM="$lt_cv_path_NM"
7499
7500
7501
7502
7503
7504# Check for command to grab the raw symbol name followed by C symbol from nm.
7505echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7506echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7507if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7508  echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510
7511# These are sane defaults that work on at least a few old systems.
7512# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7513
7514# Character class describing NM global symbol codes.
7515symcode='[BCDEGRST]'
7516
7517# Regexp to match symbols that can be accessed directly from C.
7518sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7519
7520# Transform the above into a raw symbol and a C symbol.
7521symxfrm='\1 \2\3 \3'
7522
7523# Transform an extracted symbol line into a proper C declaration
7524lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7525
7526# Transform an extracted symbol line into symbol name and symbol address
7527lt_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'"
7528
7529# Define system-specific variables.
7530case $host_os in
7531aix*)
7532  symcode='[BCDT]'
7533  ;;
7534cygwin* | mingw* | pw32*)
7535  symcode='[ABCDGISTW]'
7536  ;;
7537hpux*) # Its linker distinguishes data from code symbols
7538  if test "$host_cpu" = ia64; then
7539    symcode='[ABCDEGRST]'
7540  fi
7541  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542  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'"
7543  ;;
7544linux*)
7545  if test "$host_cpu" = ia64; then
7546    symcode='[ABCDGIRSTW]'
7547    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7548    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'"
7549  fi
7550  ;;
7551irix* | nonstopux*)
7552  symcode='[BCDEGRST]'
7553  ;;
7554osf*)
7555  symcode='[BCDEGQRST]'
7556  ;;
7557solaris* | sysv5*)
7558  symcode='[BDRT]'
7559  ;;
7560sysv4)
7561  symcode='[DFNSTU]'
7562  ;;
7563esac
7564
7565# Handle CRLF in mingw tool chain
7566opt_cr=
7567case $build_os in
7568mingw*)
7569  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7570  ;;
7571esac
7572
7573# If we're using GNU nm, then use its standard symbol codes.
7574case `$NM -V 2>&1` in
7575*GNU* | *'with BFD'*)
7576  symcode='[ABCDGIRSTW]' ;;
7577esac
7578
7579# Try without a prefix undercore, then with it.
7580for ac_symprfx in "" "_"; do
7581
7582  # Write the raw and C identifiers.
7583  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7584
7585  # Check to see that the pipe works correctly.
7586  pipe_works=no
7587
7588  rm -f conftest*
7589  cat > conftest.$ac_ext <<EOF
7590#ifdef __cplusplus
7591extern "C" {
7592#endif
7593char nm_test_var;
7594void nm_test_func(){}
7595#ifdef __cplusplus
7596}
7597#endif
7598int main(){nm_test_var='a';nm_test_func();return(0);}
7599EOF
7600
7601  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602  (eval $ac_compile) 2>&5
7603  ac_status=$?
7604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605  (exit $ac_status); }; then
7606    # Now try to grab the symbols.
7607    nlist=conftest.nm
7608    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7609  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7610  ac_status=$?
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } && test -s "$nlist"; then
7613      # Try sorting and uniquifying the output.
7614      if sort "$nlist" | uniq > "$nlist"T; then
7615	mv -f "$nlist"T "$nlist"
7616      else
7617	rm -f "$nlist"T
7618      fi
7619
7620      # Make sure that we snagged all the symbols we need.
7621      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7622	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7623	  cat <<EOF > conftest.$ac_ext
7624#ifdef __cplusplus
7625extern "C" {
7626#endif
7627
7628EOF
7629	  # Now generate the symbol file.
7630	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7631
7632	  cat <<EOF >> conftest.$ac_ext
7633#if defined (__STDC__) && __STDC__
7634# define lt_ptr_t void *
7635#else
7636# define lt_ptr_t char *
7637# define const
7638#endif
7639
7640/* The mapping between symbol names and symbols. */
7641const struct {
7642  const char *name;
7643  lt_ptr_t address;
7644}
7645lt_preloaded_symbols[] =
7646{
7647EOF
7648	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7649	  cat <<\EOF >> conftest.$ac_ext
7650  {0, (lt_ptr_t) 0}
7651};
7652
7653#ifdef __cplusplus
7654}
7655#endif
7656EOF
7657	  # Now try linking the two files.
7658	  mv conftest.$ac_objext conftstm.$ac_objext
7659	  lt_save_LIBS="$LIBS"
7660	  lt_save_CFLAGS="$CFLAGS"
7661	  LIBS="conftstm.$ac_objext"
7662	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7663	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664  (eval $ac_link) 2>&5
7665  ac_status=$?
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7668	    pipe_works=yes
7669	  fi
7670	  LIBS="$lt_save_LIBS"
7671	  CFLAGS="$lt_save_CFLAGS"
7672	else
7673	  echo "cannot find nm_test_func in $nlist" >&5
7674	fi
7675      else
7676	echo "cannot find nm_test_var in $nlist" >&5
7677      fi
7678    else
7679      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7680    fi
7681  else
7682    echo "$progname: failed program was:" >&5
7683    cat conftest.$ac_ext >&5
7684  fi
7685  rm -f conftest* conftst*
7686
7687  # Do not use the global_symbol_pipe unless it works.
7688  if test "$pipe_works" = yes; then
7689    break
7690  else
7691    lt_cv_sys_global_symbol_pipe=
7692  fi
7693done
7694
7695fi
7696
7697if test -z "$lt_cv_sys_global_symbol_pipe"; then
7698  lt_cv_sys_global_symbol_to_cdecl=
7699fi
7700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7701  echo "$as_me:$LINENO: result: failed" >&5
7702echo "${ECHO_T}failed" >&6
7703else
7704  echo "$as_me:$LINENO: result: ok" >&5
7705echo "${ECHO_T}ok" >&6
7706fi
7707
7708
7709echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7710echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7711if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7712  echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7715    libltdl_cv_preloaded_symbols=yes
7716  else
7717    libltdl_cv_preloaded_symbols=no
7718  fi
7719
7720fi
7721echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7722echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7723if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7724
7725cat >>confdefs.h <<\_ACEOF
7726#define HAVE_PRELOADED_SYMBOLS 1
7727_ACEOF
7728
7729fi
7730
7731LIBADD_DL=
7732
7733ac_ext=c
7734ac_cpp='$CPP $CPPFLAGS'
7735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740echo "$as_me:$LINENO: checking for shl_load" >&5
7741echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7742if test "${ac_cv_func_shl_load+set}" = set; then
7743  echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745  cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h.  */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h.  */
7751/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7752   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7753#define shl_load innocuous_shl_load
7754
7755/* System header to define __stub macros and hopefully few prototypes,
7756    which can conflict with char shl_load (); below.
7757    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758    <limits.h> exists even on freestanding compilers.  */
7759
7760#ifdef __STDC__
7761# include <limits.h>
7762#else
7763# include <assert.h>
7764#endif
7765
7766#undef shl_load
7767
7768/* Override any gcc2 internal prototype to avoid an error.  */
7769#ifdef __cplusplus
7770extern "C"
7771{
7772#endif
7773/* We use char because int might match the return type of a gcc2
7774   builtin and then its argument prototype would still apply.  */
7775char shl_load ();
7776/* The GNU C library defines this for functions which it implements
7777    to always fail with ENOSYS.  Some functions are actually named
7778    something starting with __ and the normal name is an alias.  */
7779#if defined (__stub_shl_load) || defined (__stub___shl_load)
7780choke me
7781#else
7782char (*f) () = shl_load;
7783#endif
7784#ifdef __cplusplus
7785}
7786#endif
7787
7788int
7789main ()
7790{
7791return f != shl_load;
7792  ;
7793  return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext
7797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798  (eval $ac_link) 2>conftest.er1
7799  ac_status=$?
7800  grep -v '^ *+' conftest.er1 >conftest.err
7801  rm -f conftest.er1
7802  cat conftest.err >&5
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); } &&
7805	 { ac_try='test -z "$ac_c_werror_flag"
7806			 || test ! -s conftest.err'
7807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808  (eval $ac_try) 2>&5
7809  ac_status=$?
7810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811  (exit $ac_status); }; } &&
7812	 { ac_try='test -s conftest$ac_exeext'
7813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814  (eval $ac_try) 2>&5
7815  ac_status=$?
7816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817  (exit $ac_status); }; }; then
7818  ac_cv_func_shl_load=yes
7819else
7820  echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
7823ac_cv_func_shl_load=no
7824fi
7825rm -f conftest.err conftest.$ac_objext \
7826      conftest$ac_exeext conftest.$ac_ext
7827fi
7828echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7829echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7830if test $ac_cv_func_shl_load = yes; then
7831
7832cat >>confdefs.h <<\_ACEOF
7833#define HAVE_SHL_LOAD 1
7834_ACEOF
7835
7836else
7837  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7838echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7839if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7840  echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842  ac_check_lib_save_LIBS=$LIBS
7843LIBS="-ldld  $LIBS"
7844cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h.  */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
7849/* end confdefs.h.  */
7850
7851/* Override any gcc2 internal prototype to avoid an error.  */
7852#ifdef __cplusplus
7853extern "C"
7854#endif
7855/* We use char because int might match the return type of a gcc2
7856   builtin and then its argument prototype would still apply.  */
7857char shl_load ();
7858int
7859main ()
7860{
7861shl_load ();
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext conftest$ac_exeext
7867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7868  (eval $ac_link) 2>conftest.er1
7869  ac_status=$?
7870  grep -v '^ *+' conftest.er1 >conftest.err
7871  rm -f conftest.er1
7872  cat conftest.err >&5
7873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874  (exit $ac_status); } &&
7875	 { ac_try='test -z "$ac_c_werror_flag"
7876			 || test ! -s conftest.err'
7877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878  (eval $ac_try) 2>&5
7879  ac_status=$?
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); }; } &&
7882	 { ac_try='test -s conftest$ac_exeext'
7883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884  (eval $ac_try) 2>&5
7885  ac_status=$?
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); }; }; then
7888  ac_cv_lib_dld_shl_load=yes
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893ac_cv_lib_dld_shl_load=no
7894fi
7895rm -f conftest.err conftest.$ac_objext \
7896      conftest$ac_exeext conftest.$ac_ext
7897LIBS=$ac_check_lib_save_LIBS
7898fi
7899echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7900echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7901if test $ac_cv_lib_dld_shl_load = yes; then
7902
7903cat >>confdefs.h <<\_ACEOF
7904#define HAVE_SHL_LOAD 1
7905_ACEOF
7906
7907	LIBADD_DL="$LIBADD_DL -ldld"
7908else
7909  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7911if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7912  echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914  ac_check_lib_save_LIBS=$LIBS
7915LIBS="-ldl  $LIBS"
7916cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h.  */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h.  */
7922
7923/* Override any gcc2 internal prototype to avoid an error.  */
7924#ifdef __cplusplus
7925extern "C"
7926#endif
7927/* We use char because int might match the return type of a gcc2
7928   builtin and then its argument prototype would still apply.  */
7929char dlopen ();
7930int
7931main ()
7932{
7933dlopen ();
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938rm -f conftest.$ac_objext conftest$ac_exeext
7939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940  (eval $ac_link) 2>conftest.er1
7941  ac_status=$?
7942  grep -v '^ *+' conftest.er1 >conftest.err
7943  rm -f conftest.er1
7944  cat conftest.err >&5
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); } &&
7947	 { ac_try='test -z "$ac_c_werror_flag"
7948			 || test ! -s conftest.err'
7949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950  (eval $ac_try) 2>&5
7951  ac_status=$?
7952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953  (exit $ac_status); }; } &&
7954	 { ac_try='test -s conftest$ac_exeext'
7955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956  (eval $ac_try) 2>&5
7957  ac_status=$?
7958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959  (exit $ac_status); }; }; then
7960  ac_cv_lib_dl_dlopen=yes
7961else
7962  echo "$as_me: failed program was:" >&5
7963sed 's/^/| /' conftest.$ac_ext >&5
7964
7965ac_cv_lib_dl_dlopen=no
7966fi
7967rm -f conftest.err conftest.$ac_objext \
7968      conftest$ac_exeext conftest.$ac_ext
7969LIBS=$ac_check_lib_save_LIBS
7970fi
7971echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7973if test $ac_cv_lib_dl_dlopen = yes; then
7974
7975cat >>confdefs.h <<\_ACEOF
7976#define HAVE_LIBDL 1
7977_ACEOF
7978
7979	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7980else
7981  cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h.  */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h.  */
7987#if HAVE_DLFCN_H
7988#  include <dlfcn.h>
7989#endif
7990
7991int
7992main ()
7993{
7994dlopen(0, 0);
7995  ;
7996  return 0;
7997}
7998_ACEOF
7999rm -f conftest.$ac_objext conftest$ac_exeext
8000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001  (eval $ac_link) 2>conftest.er1
8002  ac_status=$?
8003  grep -v '^ *+' conftest.er1 >conftest.err
8004  rm -f conftest.er1
8005  cat conftest.err >&5
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); } &&
8008	 { ac_try='test -z "$ac_c_werror_flag"
8009			 || test ! -s conftest.err'
8010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011  (eval $ac_try) 2>&5
8012  ac_status=$?
8013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014  (exit $ac_status); }; } &&
8015	 { ac_try='test -s conftest$ac_exeext'
8016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017  (eval $ac_try) 2>&5
8018  ac_status=$?
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); }; }; then
8021
8022cat >>confdefs.h <<\_ACEOF
8023#define HAVE_LIBDL 1
8024_ACEOF
8025 libltdl_cv_func_dlopen="yes"
8026else
8027  echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8032if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035  ac_check_lib_save_LIBS=$LIBS
8036LIBS="-lsvld  $LIBS"
8037cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h.  */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h.  */
8043
8044/* Override any gcc2 internal prototype to avoid an error.  */
8045#ifdef __cplusplus
8046extern "C"
8047#endif
8048/* We use char because int might match the return type of a gcc2
8049   builtin and then its argument prototype would still apply.  */
8050char dlopen ();
8051int
8052main ()
8053{
8054dlopen ();
8055  ;
8056  return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
8060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061  (eval $ac_link) 2>conftest.er1
8062  ac_status=$?
8063  grep -v '^ *+' conftest.er1 >conftest.err
8064  rm -f conftest.er1
8065  cat conftest.err >&5
8066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067  (exit $ac_status); } &&
8068	 { ac_try='test -z "$ac_c_werror_flag"
8069			 || test ! -s conftest.err'
8070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071  (eval $ac_try) 2>&5
8072  ac_status=$?
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); }; } &&
8075	 { ac_try='test -s conftest$ac_exeext'
8076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077  (eval $ac_try) 2>&5
8078  ac_status=$?
8079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080  (exit $ac_status); }; }; then
8081  ac_cv_lib_svld_dlopen=yes
8082else
8083  echo "$as_me: failed program was:" >&5
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
8086ac_cv_lib_svld_dlopen=no
8087fi
8088rm -f conftest.err conftest.$ac_objext \
8089      conftest$ac_exeext conftest.$ac_ext
8090LIBS=$ac_check_lib_save_LIBS
8091fi
8092echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8094if test $ac_cv_lib_svld_dlopen = yes; then
8095
8096cat >>confdefs.h <<\_ACEOF
8097#define HAVE_LIBDL 1
8098_ACEOF
8099
8100	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8101else
8102  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8104if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  ac_check_lib_save_LIBS=$LIBS
8108LIBS="-ldld  $LIBS"
8109cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h.  */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h.  */
8115
8116/* Override any gcc2 internal prototype to avoid an error.  */
8117#ifdef __cplusplus
8118extern "C"
8119#endif
8120/* We use char because int might match the return type of a gcc2
8121   builtin and then its argument prototype would still apply.  */
8122char dld_link ();
8123int
8124main ()
8125{
8126dld_link ();
8127  ;
8128  return 0;
8129}
8130_ACEOF
8131rm -f conftest.$ac_objext conftest$ac_exeext
8132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133  (eval $ac_link) 2>conftest.er1
8134  ac_status=$?
8135  grep -v '^ *+' conftest.er1 >conftest.err
8136  rm -f conftest.er1
8137  cat conftest.err >&5
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); } &&
8140	 { ac_try='test -z "$ac_c_werror_flag"
8141			 || test ! -s conftest.err'
8142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143  (eval $ac_try) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }; } &&
8147	 { ac_try='test -s conftest$ac_exeext'
8148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149  (eval $ac_try) 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }; }; then
8153  ac_cv_lib_dld_dld_link=yes
8154else
8155  echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158ac_cv_lib_dld_dld_link=no
8159fi
8160rm -f conftest.err conftest.$ac_objext \
8161      conftest$ac_exeext conftest.$ac_ext
8162LIBS=$ac_check_lib_save_LIBS
8163fi
8164echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166if test $ac_cv_lib_dld_dld_link = yes; then
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define HAVE_DLD 1
8170_ACEOF
8171
8172	 	LIBADD_DL="$LIBADD_DL -ldld"
8173else
8174  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8175echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8176if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8177  echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179  cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h.  */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h.  */
8185/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8186   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8187#define _dyld_func_lookup innocuous__dyld_func_lookup
8188
8189/* System header to define __stub macros and hopefully few prototypes,
8190    which can conflict with char _dyld_func_lookup (); below.
8191    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192    <limits.h> exists even on freestanding compilers.  */
8193
8194#ifdef __STDC__
8195# include <limits.h>
8196#else
8197# include <assert.h>
8198#endif
8199
8200#undef _dyld_func_lookup
8201
8202/* Override any gcc2 internal prototype to avoid an error.  */
8203#ifdef __cplusplus
8204extern "C"
8205{
8206#endif
8207/* We use char because int might match the return type of a gcc2
8208   builtin and then its argument prototype would still apply.  */
8209char _dyld_func_lookup ();
8210/* The GNU C library defines this for functions which it implements
8211    to always fail with ENOSYS.  Some functions are actually named
8212    something starting with __ and the normal name is an alias.  */
8213#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8214choke me
8215#else
8216char (*f) () = _dyld_func_lookup;
8217#endif
8218#ifdef __cplusplus
8219}
8220#endif
8221
8222int
8223main ()
8224{
8225return f != _dyld_func_lookup;
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
8231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232  (eval $ac_link) 2>conftest.er1
8233  ac_status=$?
8234  grep -v '^ *+' conftest.er1 >conftest.err
8235  rm -f conftest.er1
8236  cat conftest.err >&5
8237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238  (exit $ac_status); } &&
8239	 { ac_try='test -z "$ac_c_werror_flag"
8240			 || test ! -s conftest.err'
8241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242  (eval $ac_try) 2>&5
8243  ac_status=$?
8244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245  (exit $ac_status); }; } &&
8246	 { ac_try='test -s conftest$ac_exeext'
8247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248  (eval $ac_try) 2>&5
8249  ac_status=$?
8250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251  (exit $ac_status); }; }; then
8252  ac_cv_func__dyld_func_lookup=yes
8253else
8254  echo "$as_me: failed program was:" >&5
8255sed 's/^/| /' conftest.$ac_ext >&5
8256
8257ac_cv_func__dyld_func_lookup=no
8258fi
8259rm -f conftest.err conftest.$ac_objext \
8260      conftest$ac_exeext conftest.$ac_ext
8261fi
8262echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8263echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8264if test $ac_cv_func__dyld_func_lookup = yes; then
8265
8266cat >>confdefs.h <<\_ACEOF
8267#define HAVE_DYLD 1
8268_ACEOF
8269
8270fi
8271
8272
8273fi
8274
8275
8276fi
8277
8278
8279fi
8280rm -f conftest.err conftest.$ac_objext \
8281      conftest$ac_exeext conftest.$ac_ext
8282
8283fi
8284
8285
8286fi
8287
8288
8289fi
8290
8291
8292if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8293then
8294  lt_save_LIBS="$LIBS"
8295  LIBS="$LIBS $LIBADD_DL"
8296
8297for ac_func in dlerror
8298do
8299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8300echo "$as_me:$LINENO: checking for $ac_func" >&5
8301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8302if eval "test \"\${$as_ac_var+set}\" = set"; then
8303  echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305  cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h.  */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h.  */
8311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8312   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8313#define $ac_func innocuous_$ac_func
8314
8315/* System header to define __stub macros and hopefully few prototypes,
8316    which can conflict with char $ac_func (); below.
8317    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318    <limits.h> exists even on freestanding compilers.  */
8319
8320#ifdef __STDC__
8321# include <limits.h>
8322#else
8323# include <assert.h>
8324#endif
8325
8326#undef $ac_func
8327
8328/* Override any gcc2 internal prototype to avoid an error.  */
8329#ifdef __cplusplus
8330extern "C"
8331{
8332#endif
8333/* We use char because int might match the return type of a gcc2
8334   builtin and then its argument prototype would still apply.  */
8335char $ac_func ();
8336/* The GNU C library defines this for functions which it implements
8337    to always fail with ENOSYS.  Some functions are actually named
8338    something starting with __ and the normal name is an alias.  */
8339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8340choke me
8341#else
8342char (*f) () = $ac_func;
8343#endif
8344#ifdef __cplusplus
8345}
8346#endif
8347
8348int
8349main ()
8350{
8351return f != $ac_func;
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356rm -f conftest.$ac_objext conftest$ac_exeext
8357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358  (eval $ac_link) 2>conftest.er1
8359  ac_status=$?
8360  grep -v '^ *+' conftest.er1 >conftest.err
8361  rm -f conftest.er1
8362  cat conftest.err >&5
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); } &&
8365	 { ac_try='test -z "$ac_c_werror_flag"
8366			 || test ! -s conftest.err'
8367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368  (eval $ac_try) 2>&5
8369  ac_status=$?
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); }; } &&
8372	 { ac_try='test -s conftest$ac_exeext'
8373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374  (eval $ac_try) 2>&5
8375  ac_status=$?
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); }; }; then
8378  eval "$as_ac_var=yes"
8379else
8380  echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383eval "$as_ac_var=no"
8384fi
8385rm -f conftest.err conftest.$ac_objext \
8386      conftest$ac_exeext conftest.$ac_ext
8387fi
8388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8389echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8390if test `eval echo '${'$as_ac_var'}'` = yes; then
8391  cat >>confdefs.h <<_ACEOF
8392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8393_ACEOF
8394
8395fi
8396done
8397
8398  LIBS="$lt_save_LIBS"
8399fi
8400ac_ext=c
8401ac_cpp='$CPP $CPPFLAGS'
8402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406
8407
8408echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8409echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8410if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8411  echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413  ac_cv_sys_symbol_underscore=no
8414  cat > conftest.$ac_ext <<EOF
8415void nm_test_func(){}
8416int main(){nm_test_func;return 0;}
8417EOF
8418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8419  (eval $ac_compile) 2>&5
8420  ac_status=$?
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); }; then
8423    # Now try to grab the symbols.
8424    ac_nlist=conftest.nm
8425    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8426  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8427  ac_status=$?
8428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429  (exit $ac_status); } && test -s "$ac_nlist"; then
8430      # See whether the symbols have a leading underscore.
8431      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8432        ac_cv_sys_symbol_underscore=yes
8433      else
8434        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8435	  :
8436        else
8437	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8438        fi
8439      fi
8440    else
8441      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8442    fi
8443  else
8444    echo "configure: failed program was:" >&5
8445    cat conftest.c >&5
8446  fi
8447  rm -rf conftest*
8448
8449fi
8450echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8451echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8452
8453
8454if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8455  if test x"$libltdl_cv_func_dlopen" = xyes ||
8456     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8457	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8458echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8459if test "${libltdl_cv_need_uscore+set}" = set; then
8460  echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462  libltdl_cv_need_uscore=unknown
8463          save_LIBS="$LIBS"
8464          LIBS="$LIBS $LIBADD_DL"
8465	  if test "$cross_compiling" = yes; then :
8466  libltdl_cv_need_uscore=cross
8467else
8468  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8469  lt_status=$lt_dlunknown
8470  cat > conftest.$ac_ext <<EOF
8471#line 8471 "configure"
8472#include "confdefs.h"
8473
8474#if HAVE_DLFCN_H
8475#include <dlfcn.h>
8476#endif
8477
8478#include <stdio.h>
8479
8480#ifdef RTLD_GLOBAL
8481#  define LT_DLGLOBAL		RTLD_GLOBAL
8482#else
8483#  ifdef DL_GLOBAL
8484#    define LT_DLGLOBAL		DL_GLOBAL
8485#  else
8486#    define LT_DLGLOBAL		0
8487#  endif
8488#endif
8489
8490/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8491   find out it does not work in some platform. */
8492#ifndef LT_DLLAZY_OR_NOW
8493#  ifdef RTLD_LAZY
8494#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8495#  else
8496#    ifdef DL_LAZY
8497#      define LT_DLLAZY_OR_NOW		DL_LAZY
8498#    else
8499#      ifdef RTLD_NOW
8500#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8501#      else
8502#        ifdef DL_NOW
8503#          define LT_DLLAZY_OR_NOW	DL_NOW
8504#        else
8505#          define LT_DLLAZY_OR_NOW	0
8506#        endif
8507#      endif
8508#    endif
8509#  endif
8510#endif
8511
8512#ifdef __cplusplus
8513extern "C" void exit (int);
8514#endif
8515
8516void fnord() { int i=42;}
8517int main ()
8518{
8519  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8520  int status = $lt_dlunknown;
8521
8522  if (self)
8523    {
8524      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8525      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8526      /* dlclose (self); */
8527    }
8528
8529    exit (status);
8530}
8531EOF
8532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533  (eval $ac_link) 2>&5
8534  ac_status=$?
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8537    (./conftest; exit; ) 2>/dev/null
8538    lt_status=$?
8539    case x$lt_status in
8540      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8541      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8542      x$lt_unknown|x*)  ;;
8543    esac
8544  else :
8545    # compilation failed
8546
8547  fi
8548fi
8549rm -fr conftest*
8550
8551	  LIBS="$save_LIBS"
8552
8553fi
8554echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8555echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8556  fi
8557fi
8558
8559if test x"$libltdl_cv_need_uscore" = xyes; then
8560
8561cat >>confdefs.h <<\_ACEOF
8562#define NEED_USCORE 1
8563_ACEOF
8564
8565fi
8566
8567
8568echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8569echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8570if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8571  echo $ECHO_N "(cached) $ECHO_C" >&6
8572else
8573  # PORTME does your system automatically load deplibs for dlopen?
8574  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8575  # For now, we just catch OSes we know something about -- in the
8576  # future, we'll try test this programmatically.
8577  libltdl_cv_sys_dlopen_deplibs=unknown
8578  case "$host_os" in
8579  aix3*|aix4.1.*|aix4.2.*)
8580    # Unknown whether this is true for these versions of AIX, but
8581    # we want this `case' here to explicitly catch those versions.
8582    libltdl_cv_sys_dlopen_deplibs=unknown
8583    ;;
8584  aix[45]*)
8585    libltdl_cv_sys_dlopen_deplibs=yes
8586    ;;
8587  darwin*)
8588    # Assuming the user has installed a libdl from somewhere, this is true
8589    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8590    libltdl_cv_sys_dlopen_deplibs=yes
8591    ;;
8592  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8593    # GNU and its variants, using gnu ld.so (Glibc)
8594    libltdl_cv_sys_dlopen_deplibs=yes
8595    ;;
8596  hpux10*|hpux11*)
8597    libltdl_cv_sys_dlopen_deplibs=yes
8598    ;;
8599  irix[12345]*|irix6.[01]*)
8600    # Catch all versions of IRIX before 6.2, and indicate that we don't
8601    # know how it worked for any of those versions.
8602    libltdl_cv_sys_dlopen_deplibs=unknown
8603    ;;
8604  irix*)
8605    # The case above catches anything before 6.2, and it's known that
8606    # at 6.2 and later dlopen does load deplibs.
8607    libltdl_cv_sys_dlopen_deplibs=yes
8608    ;;
8609  netbsd*)
8610    libltdl_cv_sys_dlopen_deplibs=yes
8611    ;;
8612  openbsd*)
8613    libltdl_cv_sys_dlopen_deplibs=yes
8614    ;;
8615  osf[1234]*)
8616    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8617    # it did *not* use an RPATH in a shared library to find objects the
8618    # library depends on, so we explictly say `no'.
8619    libltdl_cv_sys_dlopen_deplibs=no
8620    ;;
8621  osf5.0|osf5.0a|osf5.1)
8622    # dlopen *does* load deplibs and with the right loader patch applied
8623    # it even uses RPATH in a shared library to search for shared objects
8624    # that the library depends on, but there's no easy way to know if that
8625    # patch is installed.  Since this is the case, all we can really
8626    # say is unknown -- it depends on the patch being installed.  If
8627    # it is, this changes to `yes'.  Without it, it would be `no'.
8628    libltdl_cv_sys_dlopen_deplibs=unknown
8629    ;;
8630  osf*)
8631    # the two cases above should catch all versions of osf <= 5.1.  Read
8632    # the comments above for what we know about them.
8633    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8634    # is used to find them so we can finally say `yes'.
8635    libltdl_cv_sys_dlopen_deplibs=yes
8636    ;;
8637  solaris*)
8638    libltdl_cv_sys_dlopen_deplibs=yes
8639    ;;
8640  esac
8641
8642fi
8643echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8644echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8645if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8646
8647cat >>confdefs.h <<\_ACEOF
8648#define LTDL_DLOPEN_DEPLIBS 1
8649_ACEOF
8650
8651fi
8652
8653
8654for ac_header in argz.h
8655do
8656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658  echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661  echo $ECHO_N "(cached) $ECHO_C" >&6
8662fi
8663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665else
8666  # Is the header compilable?
8667echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h.  */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h.  */
8675$ac_includes_default
8676#include <$ac_header>
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680  (eval $ac_compile) 2>conftest.er1
8681  ac_status=$?
8682  grep -v '^ *+' conftest.er1 >conftest.err
8683  rm -f conftest.er1
8684  cat conftest.err >&5
8685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686  (exit $ac_status); } &&
8687	 { ac_try='test -z "$ac_c_werror_flag"
8688			 || test ! -s conftest.err'
8689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690  (eval $ac_try) 2>&5
8691  ac_status=$?
8692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693  (exit $ac_status); }; } &&
8694	 { ac_try='test -s conftest.$ac_objext'
8695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696  (eval $ac_try) 2>&5
8697  ac_status=$?
8698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699  (exit $ac_status); }; }; then
8700  ac_header_compiler=yes
8701else
8702  echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705ac_header_compiler=no
8706fi
8707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8709echo "${ECHO_T}$ac_header_compiler" >&6
8710
8711# Is the header present?
8712echo "$as_me:$LINENO: checking $ac_header presence" >&5
8713echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8714cat >conftest.$ac_ext <<_ACEOF
8715/* confdefs.h.  */
8716_ACEOF
8717cat confdefs.h >>conftest.$ac_ext
8718cat >>conftest.$ac_ext <<_ACEOF
8719/* end confdefs.h.  */
8720#include <$ac_header>
8721_ACEOF
8722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8723  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724  ac_status=$?
8725  grep -v '^ *+' conftest.er1 >conftest.err
8726  rm -f conftest.er1
8727  cat conftest.err >&5
8728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729  (exit $ac_status); } >/dev/null; then
8730  if test -s conftest.err; then
8731    ac_cpp_err=$ac_c_preproc_warn_flag
8732    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733  else
8734    ac_cpp_err=
8735  fi
8736else
8737  ac_cpp_err=yes
8738fi
8739if test -z "$ac_cpp_err"; then
8740  ac_header_preproc=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745  ac_header_preproc=no
8746fi
8747rm -f conftest.err conftest.$ac_ext
8748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749echo "${ECHO_T}$ac_header_preproc" >&6
8750
8751# So?  What about this header?
8752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753  yes:no: )
8754    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758    ac_header_preproc=yes
8759    ;;
8760  no:yes:* )
8761    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8763    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8764echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8765    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8768echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8769    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8771    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8773    (
8774      cat <<\_ASBOX
8775## ----------------------------------- ##
8776## Report this to llvmbugs@cs.uiuc.edu ##
8777## ----------------------------------- ##
8778_ASBOX
8779    ) |
8780      sed "s/^/$as_me: WARNING:     /" >&2
8781    ;;
8782esac
8783echo "$as_me:$LINENO: checking for $ac_header" >&5
8784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786  echo $ECHO_N "(cached) $ECHO_C" >&6
8787else
8788  eval "$as_ac_Header=\$ac_header_preproc"
8789fi
8790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8792
8793fi
8794if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795  cat >>confdefs.h <<_ACEOF
8796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797_ACEOF
8798
8799fi
8800
8801done
8802
8803
8804echo "$as_me:$LINENO: checking for error_t" >&5
8805echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8806if test "${ac_cv_type_error_t+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815#if HAVE_ARGZ_H
8816#  include <argz.h>
8817#endif
8818
8819int
8820main ()
8821{
8822if ((error_t *) 0)
8823  return 0;
8824if (sizeof (error_t))
8825  return 0;
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832  (eval $ac_compile) 2>conftest.er1
8833  ac_status=$?
8834  grep -v '^ *+' conftest.er1 >conftest.err
8835  rm -f conftest.er1
8836  cat conftest.err >&5
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } &&
8839	 { ac_try='test -z "$ac_c_werror_flag"
8840			 || test ! -s conftest.err'
8841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842  (eval $ac_try) 2>&5
8843  ac_status=$?
8844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845  (exit $ac_status); }; } &&
8846	 { ac_try='test -s conftest.$ac_objext'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; }; then
8852  ac_cv_type_error_t=yes
8853else
8854  echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
8856
8857ac_cv_type_error_t=no
8858fi
8859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8862echo "${ECHO_T}$ac_cv_type_error_t" >&6
8863if test $ac_cv_type_error_t = yes; then
8864
8865cat >>confdefs.h <<_ACEOF
8866#define HAVE_ERROR_T 1
8867_ACEOF
8868
8869
8870else
8871
8872cat >>confdefs.h <<\_ACEOF
8873#define error_t int
8874_ACEOF
8875
8876fi
8877
8878
8879
8880
8881
8882
8883
8884for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8885do
8886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887echo "$as_me:$LINENO: checking for $ac_func" >&5
8888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8889if eval "test \"\${$as_ac_var+set}\" = set"; then
8890  echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892  cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h.  */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h.  */
8898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8899   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8900#define $ac_func innocuous_$ac_func
8901
8902/* System header to define __stub macros and hopefully few prototypes,
8903    which can conflict with char $ac_func (); below.
8904    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905    <limits.h> exists even on freestanding compilers.  */
8906
8907#ifdef __STDC__
8908# include <limits.h>
8909#else
8910# include <assert.h>
8911#endif
8912
8913#undef $ac_func
8914
8915/* Override any gcc2 internal prototype to avoid an error.  */
8916#ifdef __cplusplus
8917extern "C"
8918{
8919#endif
8920/* We use char because int might match the return type of a gcc2
8921   builtin and then its argument prototype would still apply.  */
8922char $ac_func ();
8923/* The GNU C library defines this for functions which it implements
8924    to always fail with ENOSYS.  Some functions are actually named
8925    something starting with __ and the normal name is an alias.  */
8926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8927choke me
8928#else
8929char (*f) () = $ac_func;
8930#endif
8931#ifdef __cplusplus
8932}
8933#endif
8934
8935int
8936main ()
8937{
8938return f != $ac_func;
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945  (eval $ac_link) 2>conftest.er1
8946  ac_status=$?
8947  grep -v '^ *+' conftest.er1 >conftest.err
8948  rm -f conftest.er1
8949  cat conftest.err >&5
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); } &&
8952	 { ac_try='test -z "$ac_c_werror_flag"
8953			 || test ! -s conftest.err'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; } &&
8959	 { ac_try='test -s conftest$ac_exeext'
8960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961  (eval $ac_try) 2>&5
8962  ac_status=$?
8963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964  (exit $ac_status); }; }; then
8965  eval "$as_ac_var=yes"
8966else
8967  echo "$as_me: failed program was:" >&5
8968sed 's/^/| /' conftest.$ac_ext >&5
8969
8970eval "$as_ac_var=no"
8971fi
8972rm -f conftest.err conftest.$ac_objext \
8973      conftest$ac_exeext conftest.$ac_ext
8974fi
8975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8977if test `eval echo '${'$as_ac_var'}'` = yes; then
8978  cat >>confdefs.h <<_ACEOF
8979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8980_ACEOF
8981
8982fi
8983done
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9013		  stdio.h unistd.h
9014do
9015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9016if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017  echo "$as_me:$LINENO: checking for $ac_header" >&5
9018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020  echo $ECHO_N "(cached) $ECHO_C" >&6
9021fi
9022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024else
9025  # Is the header compilable?
9026echo "$as_me:$LINENO: checking $ac_header usability" >&5
9027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9028cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h.  */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h.  */
9034$ac_includes_default
9035#include <$ac_header>
9036_ACEOF
9037rm -f conftest.$ac_objext
9038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039  (eval $ac_compile) 2>conftest.er1
9040  ac_status=$?
9041  grep -v '^ *+' conftest.er1 >conftest.err
9042  rm -f conftest.er1
9043  cat conftest.err >&5
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); } &&
9046	 { ac_try='test -z "$ac_c_werror_flag"
9047			 || test ! -s conftest.err'
9048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049  (eval $ac_try) 2>&5
9050  ac_status=$?
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); }; } &&
9053	 { ac_try='test -s conftest.$ac_objext'
9054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055  (eval $ac_try) 2>&5
9056  ac_status=$?
9057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058  (exit $ac_status); }; }; then
9059  ac_header_compiler=yes
9060else
9061  echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
9063
9064ac_header_compiler=no
9065fi
9066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9068echo "${ECHO_T}$ac_header_compiler" >&6
9069
9070# Is the header present?
9071echo "$as_me:$LINENO: checking $ac_header presence" >&5
9072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9073cat >conftest.$ac_ext <<_ACEOF
9074/* confdefs.h.  */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h.  */
9079#include <$ac_header>
9080_ACEOF
9081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9083  ac_status=$?
9084  grep -v '^ *+' conftest.er1 >conftest.err
9085  rm -f conftest.er1
9086  cat conftest.err >&5
9087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088  (exit $ac_status); } >/dev/null; then
9089  if test -s conftest.err; then
9090    ac_cpp_err=$ac_c_preproc_warn_flag
9091    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9092  else
9093    ac_cpp_err=
9094  fi
9095else
9096  ac_cpp_err=yes
9097fi
9098if test -z "$ac_cpp_err"; then
9099  ac_header_preproc=yes
9100else
9101  echo "$as_me: failed program was:" >&5
9102sed 's/^/| /' conftest.$ac_ext >&5
9103
9104  ac_header_preproc=no
9105fi
9106rm -f conftest.err conftest.$ac_ext
9107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9108echo "${ECHO_T}$ac_header_preproc" >&6
9109
9110# So?  What about this header?
9111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9112  yes:no: )
9113    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9115    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9117    ac_header_preproc=yes
9118    ;;
9119  no:yes:* )
9120    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9122    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9123echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9124    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9126    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9127echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9128    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9130    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9132    (
9133      cat <<\_ASBOX
9134## ----------------------------------- ##
9135## Report this to llvmbugs@cs.uiuc.edu ##
9136## ----------------------------------- ##
9137_ASBOX
9138    ) |
9139      sed "s/^/$as_me: WARNING:     /" >&2
9140    ;;
9141esac
9142echo "$as_me:$LINENO: checking for $ac_header" >&5
9143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145  echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147  eval "$as_ac_Header=\$ac_header_preproc"
9148fi
9149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9151
9152fi
9153if test `eval echo '${'$as_ac_Header'}'` = yes; then
9154  cat >>confdefs.h <<_ACEOF
9155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9156_ACEOF
9157
9158fi
9159
9160done
9161
9162
9163
9164
9165
9166for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9167do
9168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170  echo "$as_me:$LINENO: checking for $ac_header" >&5
9171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173  echo $ECHO_N "(cached) $ECHO_C" >&6
9174fi
9175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177else
9178  # Is the header compilable?
9179echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181cat >conftest.$ac_ext <<_ACEOF
9182/* confdefs.h.  */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h.  */
9187$ac_includes_default
9188#include <$ac_header>
9189_ACEOF
9190rm -f conftest.$ac_objext
9191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192  (eval $ac_compile) 2>conftest.er1
9193  ac_status=$?
9194  grep -v '^ *+' conftest.er1 >conftest.err
9195  rm -f conftest.er1
9196  cat conftest.err >&5
9197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); } &&
9199	 { ac_try='test -z "$ac_c_werror_flag"
9200			 || test ! -s conftest.err'
9201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202  (eval $ac_try) 2>&5
9203  ac_status=$?
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); }; } &&
9206	 { ac_try='test -s conftest.$ac_objext'
9207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208  (eval $ac_try) 2>&5
9209  ac_status=$?
9210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); }; }; then
9212  ac_header_compiler=yes
9213else
9214  echo "$as_me: failed program was:" >&5
9215sed 's/^/| /' conftest.$ac_ext >&5
9216
9217ac_header_compiler=no
9218fi
9219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221echo "${ECHO_T}$ac_header_compiler" >&6
9222
9223# Is the header present?
9224echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226cat >conftest.$ac_ext <<_ACEOF
9227/* confdefs.h.  */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h.  */
9232#include <$ac_header>
9233_ACEOF
9234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236  ac_status=$?
9237  grep -v '^ *+' conftest.er1 >conftest.err
9238  rm -f conftest.er1
9239  cat conftest.err >&5
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); } >/dev/null; then
9242  if test -s conftest.err; then
9243    ac_cpp_err=$ac_c_preproc_warn_flag
9244    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9245  else
9246    ac_cpp_err=
9247  fi
9248else
9249  ac_cpp_err=yes
9250fi
9251if test -z "$ac_cpp_err"; then
9252  ac_header_preproc=yes
9253else
9254  echo "$as_me: failed program was:" >&5
9255sed 's/^/| /' conftest.$ac_ext >&5
9256
9257  ac_header_preproc=no
9258fi
9259rm -f conftest.err conftest.$ac_ext
9260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261echo "${ECHO_T}$ac_header_preproc" >&6
9262
9263# So?  What about this header?
9264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9265  yes:no: )
9266    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9270    ac_header_preproc=yes
9271    ;;
9272  no:yes:* )
9273    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9275    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9276echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9277    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9279    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9280echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9281    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9285    (
9286      cat <<\_ASBOX
9287## ----------------------------------- ##
9288## Report this to llvmbugs@cs.uiuc.edu ##
9289## ----------------------------------- ##
9290_ASBOX
9291    ) |
9292      sed "s/^/$as_me: WARNING:     /" >&2
9293    ;;
9294esac
9295echo "$as_me:$LINENO: checking for $ac_header" >&5
9296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9297if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298  echo $ECHO_N "(cached) $ECHO_C" >&6
9299else
9300  eval "$as_ac_Header=\$ac_header_preproc"
9301fi
9302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9304
9305fi
9306if test `eval echo '${'$as_ac_Header'}'` = yes; then
9307  cat >>confdefs.h <<_ACEOF
9308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9309_ACEOF
9310
9311fi
9312
9313done
9314
9315
9316
9317for ac_header in string.h strings.h
9318do
9319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321  echo "$as_me:$LINENO: checking for $ac_header" >&5
9322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324  echo $ECHO_N "(cached) $ECHO_C" >&6
9325fi
9326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9328else
9329  # Is the header compilable?
9330echo "$as_me:$LINENO: checking $ac_header usability" >&5
9331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9332cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h.  */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
9337/* end confdefs.h.  */
9338$ac_includes_default
9339#include <$ac_header>
9340_ACEOF
9341rm -f conftest.$ac_objext
9342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343  (eval $ac_compile) 2>conftest.er1
9344  ac_status=$?
9345  grep -v '^ *+' conftest.er1 >conftest.err
9346  rm -f conftest.er1
9347  cat conftest.err >&5
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); } &&
9350	 { ac_try='test -z "$ac_c_werror_flag"
9351			 || test ! -s conftest.err'
9352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353  (eval $ac_try) 2>&5
9354  ac_status=$?
9355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356  (exit $ac_status); }; } &&
9357	 { ac_try='test -s conftest.$ac_objext'
9358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359  (eval $ac_try) 2>&5
9360  ac_status=$?
9361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362  (exit $ac_status); }; }; then
9363  ac_header_compiler=yes
9364else
9365  echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368ac_header_compiler=no
9369fi
9370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372echo "${ECHO_T}$ac_header_compiler" >&6
9373
9374# Is the header present?
9375echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9377cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h.  */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h.  */
9383#include <$ac_header>
9384_ACEOF
9385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9386  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9387  ac_status=$?
9388  grep -v '^ *+' conftest.er1 >conftest.err
9389  rm -f conftest.er1
9390  cat conftest.err >&5
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); } >/dev/null; then
9393  if test -s conftest.err; then
9394    ac_cpp_err=$ac_c_preproc_warn_flag
9395    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9396  else
9397    ac_cpp_err=
9398  fi
9399else
9400  ac_cpp_err=yes
9401fi
9402if test -z "$ac_cpp_err"; then
9403  ac_header_preproc=yes
9404else
9405  echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408  ac_header_preproc=no
9409fi
9410rm -f conftest.err conftest.$ac_ext
9411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412echo "${ECHO_T}$ac_header_preproc" >&6
9413
9414# So?  What about this header?
9415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416  yes:no: )
9417    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421    ac_header_preproc=yes
9422    ;;
9423  no:yes:* )
9424    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9427echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9428    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9431echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9432    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436    (
9437      cat <<\_ASBOX
9438## ----------------------------------- ##
9439## Report this to llvmbugs@cs.uiuc.edu ##
9440## ----------------------------------- ##
9441_ASBOX
9442    ) |
9443      sed "s/^/$as_me: WARNING:     /" >&2
9444    ;;
9445esac
9446echo "$as_me:$LINENO: checking for $ac_header" >&5
9447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9448if eval "test \"\${$as_ac_Header+set}\" = set"; then
9449  echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451  eval "$as_ac_Header=\$ac_header_preproc"
9452fi
9453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9455
9456fi
9457if test `eval echo '${'$as_ac_Header'}'` = yes; then
9458  cat >>confdefs.h <<_ACEOF
9459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9460_ACEOF
9461 break
9462fi
9463
9464done
9465
9466
9467
9468
9469for ac_func in strchr index
9470do
9471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9472echo "$as_me:$LINENO: checking for $ac_func" >&5
9473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9474if eval "test \"\${$as_ac_var+set}\" = set"; then
9475  echo $ECHO_N "(cached) $ECHO_C" >&6
9476else
9477  cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h.  */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h.  */
9483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9484   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9485#define $ac_func innocuous_$ac_func
9486
9487/* System header to define __stub macros and hopefully few prototypes,
9488    which can conflict with char $ac_func (); below.
9489    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9490    <limits.h> exists even on freestanding compilers.  */
9491
9492#ifdef __STDC__
9493# include <limits.h>
9494#else
9495# include <assert.h>
9496#endif
9497
9498#undef $ac_func
9499
9500/* Override any gcc2 internal prototype to avoid an error.  */
9501#ifdef __cplusplus
9502extern "C"
9503{
9504#endif
9505/* We use char because int might match the return type of a gcc2
9506   builtin and then its argument prototype would still apply.  */
9507char $ac_func ();
9508/* The GNU C library defines this for functions which it implements
9509    to always fail with ENOSYS.  Some functions are actually named
9510    something starting with __ and the normal name is an alias.  */
9511#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512choke me
9513#else
9514char (*f) () = $ac_func;
9515#endif
9516#ifdef __cplusplus
9517}
9518#endif
9519
9520int
9521main ()
9522{
9523return f != $ac_func;
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528rm -f conftest.$ac_objext conftest$ac_exeext
9529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9530  (eval $ac_link) 2>conftest.er1
9531  ac_status=$?
9532  grep -v '^ *+' conftest.er1 >conftest.err
9533  rm -f conftest.er1
9534  cat conftest.err >&5
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); } &&
9537	 { ac_try='test -z "$ac_c_werror_flag"
9538			 || test ! -s conftest.err'
9539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540  (eval $ac_try) 2>&5
9541  ac_status=$?
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); }; } &&
9544	 { ac_try='test -s conftest$ac_exeext'
9545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546  (eval $ac_try) 2>&5
9547  ac_status=$?
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); }; }; then
9550  eval "$as_ac_var=yes"
9551else
9552  echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555eval "$as_ac_var=no"
9556fi
9557rm -f conftest.err conftest.$ac_objext \
9558      conftest$ac_exeext conftest.$ac_ext
9559fi
9560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9562if test `eval echo '${'$as_ac_var'}'` = yes; then
9563  cat >>confdefs.h <<_ACEOF
9564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9565_ACEOF
9566 break
9567fi
9568done
9569
9570
9571
9572for ac_func in strrchr rindex
9573do
9574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575echo "$as_me:$LINENO: checking for $ac_func" >&5
9576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577if eval "test \"\${$as_ac_var+set}\" = set"; then
9578  echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580  cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h.  */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h.  */
9586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9588#define $ac_func innocuous_$ac_func
9589
9590/* System header to define __stub macros and hopefully few prototypes,
9591    which can conflict with char $ac_func (); below.
9592    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593    <limits.h> exists even on freestanding compilers.  */
9594
9595#ifdef __STDC__
9596# include <limits.h>
9597#else
9598# include <assert.h>
9599#endif
9600
9601#undef $ac_func
9602
9603/* Override any gcc2 internal prototype to avoid an error.  */
9604#ifdef __cplusplus
9605extern "C"
9606{
9607#endif
9608/* We use char because int might match the return type of a gcc2
9609   builtin and then its argument prototype would still apply.  */
9610char $ac_func ();
9611/* The GNU C library defines this for functions which it implements
9612    to always fail with ENOSYS.  Some functions are actually named
9613    something starting with __ and the normal name is an alias.  */
9614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615choke me
9616#else
9617char (*f) () = $ac_func;
9618#endif
9619#ifdef __cplusplus
9620}
9621#endif
9622
9623int
9624main ()
9625{
9626return f != $ac_func;
9627  ;
9628  return 0;
9629}
9630_ACEOF
9631rm -f conftest.$ac_objext conftest$ac_exeext
9632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633  (eval $ac_link) 2>conftest.er1
9634  ac_status=$?
9635  grep -v '^ *+' conftest.er1 >conftest.err
9636  rm -f conftest.er1
9637  cat conftest.err >&5
9638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639  (exit $ac_status); } &&
9640	 { ac_try='test -z "$ac_c_werror_flag"
9641			 || test ! -s conftest.err'
9642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643  (eval $ac_try) 2>&5
9644  ac_status=$?
9645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646  (exit $ac_status); }; } &&
9647	 { ac_try='test -s conftest$ac_exeext'
9648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649  (eval $ac_try) 2>&5
9650  ac_status=$?
9651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652  (exit $ac_status); }; }; then
9653  eval "$as_ac_var=yes"
9654else
9655  echo "$as_me: failed program was:" >&5
9656sed 's/^/| /' conftest.$ac_ext >&5
9657
9658eval "$as_ac_var=no"
9659fi
9660rm -f conftest.err conftest.$ac_objext \
9661      conftest$ac_exeext conftest.$ac_ext
9662fi
9663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665if test `eval echo '${'$as_ac_var'}'` = yes; then
9666  cat >>confdefs.h <<_ACEOF
9667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668_ACEOF
9669 break
9670fi
9671done
9672
9673
9674
9675for ac_func in memcpy bcopy
9676do
9677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678echo "$as_me:$LINENO: checking for $ac_func" >&5
9679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680if eval "test \"\${$as_ac_var+set}\" = set"; then
9681  echo $ECHO_N "(cached) $ECHO_C" >&6
9682else
9683  cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h.  */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h.  */
9689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9691#define $ac_func innocuous_$ac_func
9692
9693/* System header to define __stub macros and hopefully few prototypes,
9694    which can conflict with char $ac_func (); below.
9695    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696    <limits.h> exists even on freestanding compilers.  */
9697
9698#ifdef __STDC__
9699# include <limits.h>
9700#else
9701# include <assert.h>
9702#endif
9703
9704#undef $ac_func
9705
9706/* Override any gcc2 internal prototype to avoid an error.  */
9707#ifdef __cplusplus
9708extern "C"
9709{
9710#endif
9711/* We use char because int might match the return type of a gcc2
9712   builtin and then its argument prototype would still apply.  */
9713char $ac_func ();
9714/* The GNU C library defines this for functions which it implements
9715    to always fail with ENOSYS.  Some functions are actually named
9716    something starting with __ and the normal name is an alias.  */
9717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718choke me
9719#else
9720char (*f) () = $ac_func;
9721#endif
9722#ifdef __cplusplus
9723}
9724#endif
9725
9726int
9727main ()
9728{
9729return f != $ac_func;
9730  ;
9731  return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
9735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736  (eval $ac_link) 2>conftest.er1
9737  ac_status=$?
9738  grep -v '^ *+' conftest.er1 >conftest.err
9739  rm -f conftest.er1
9740  cat conftest.err >&5
9741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742  (exit $ac_status); } &&
9743	 { ac_try='test -z "$ac_c_werror_flag"
9744			 || test ! -s conftest.err'
9745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746  (eval $ac_try) 2>&5
9747  ac_status=$?
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); }; } &&
9750	 { ac_try='test -s conftest$ac_exeext'
9751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752  (eval $ac_try) 2>&5
9753  ac_status=$?
9754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755  (exit $ac_status); }; }; then
9756  eval "$as_ac_var=yes"
9757else
9758  echo "$as_me: failed program was:" >&5
9759sed 's/^/| /' conftest.$ac_ext >&5
9760
9761eval "$as_ac_var=no"
9762fi
9763rm -f conftest.err conftest.$ac_objext \
9764      conftest$ac_exeext conftest.$ac_ext
9765fi
9766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768if test `eval echo '${'$as_ac_var'}'` = yes; then
9769  cat >>confdefs.h <<_ACEOF
9770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9771_ACEOF
9772 break
9773fi
9774done
9775
9776
9777
9778for ac_func in memmove strcmp
9779do
9780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781echo "$as_me:$LINENO: checking for $ac_func" >&5
9782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_var+set}\" = set"; then
9784  echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786  cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h.  */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h.  */
9792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794#define $ac_func innocuous_$ac_func
9795
9796/* System header to define __stub macros and hopefully few prototypes,
9797    which can conflict with char $ac_func (); below.
9798    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799    <limits.h> exists even on freestanding compilers.  */
9800
9801#ifdef __STDC__
9802# include <limits.h>
9803#else
9804# include <assert.h>
9805#endif
9806
9807#undef $ac_func
9808
9809/* Override any gcc2 internal prototype to avoid an error.  */
9810#ifdef __cplusplus
9811extern "C"
9812{
9813#endif
9814/* We use char because int might match the return type of a gcc2
9815   builtin and then its argument prototype would still apply.  */
9816char $ac_func ();
9817/* The GNU C library defines this for functions which it implements
9818    to always fail with ENOSYS.  Some functions are actually named
9819    something starting with __ and the normal name is an alias.  */
9820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821choke me
9822#else
9823char (*f) () = $ac_func;
9824#endif
9825#ifdef __cplusplus
9826}
9827#endif
9828
9829int
9830main ()
9831{
9832return f != $ac_func;
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839  (eval $ac_link) 2>conftest.er1
9840  ac_status=$?
9841  grep -v '^ *+' conftest.er1 >conftest.err
9842  rm -f conftest.er1
9843  cat conftest.err >&5
9844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845  (exit $ac_status); } &&
9846	 { ac_try='test -z "$ac_c_werror_flag"
9847			 || test ! -s conftest.err'
9848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849  (eval $ac_try) 2>&5
9850  ac_status=$?
9851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852  (exit $ac_status); }; } &&
9853	 { ac_try='test -s conftest$ac_exeext'
9854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855  (eval $ac_try) 2>&5
9856  ac_status=$?
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); }; }; then
9859  eval "$as_ac_var=yes"
9860else
9861  echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864eval "$as_ac_var=no"
9865fi
9866rm -f conftest.err conftest.$ac_objext \
9867      conftest$ac_exeext conftest.$ac_ext
9868fi
9869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871if test `eval echo '${'$as_ac_var'}'` = yes; then
9872  cat >>confdefs.h <<_ACEOF
9873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874_ACEOF
9875
9876fi
9877done
9878
9879
9880
9881
9882for ac_func in closedir opendir readdir
9883do
9884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9885echo "$as_me:$LINENO: checking for $ac_func" >&5
9886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9887if eval "test \"\${$as_ac_var+set}\" = set"; then
9888  echo $ECHO_N "(cached) $ECHO_C" >&6
9889else
9890  cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9898#define $ac_func innocuous_$ac_func
9899
9900/* System header to define __stub macros and hopefully few prototypes,
9901    which can conflict with char $ac_func (); below.
9902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9903    <limits.h> exists even on freestanding compilers.  */
9904
9905#ifdef __STDC__
9906# include <limits.h>
9907#else
9908# include <assert.h>
9909#endif
9910
9911#undef $ac_func
9912
9913/* Override any gcc2 internal prototype to avoid an error.  */
9914#ifdef __cplusplus
9915extern "C"
9916{
9917#endif
9918/* We use char because int might match the return type of a gcc2
9919   builtin and then its argument prototype would still apply.  */
9920char $ac_func ();
9921/* The GNU C library defines this for functions which it implements
9922    to always fail with ENOSYS.  Some functions are actually named
9923    something starting with __ and the normal name is an alias.  */
9924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9925choke me
9926#else
9927char (*f) () = $ac_func;
9928#endif
9929#ifdef __cplusplus
9930}
9931#endif
9932
9933int
9934main ()
9935{
9936return f != $ac_func;
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943  (eval $ac_link) 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } &&
9950	 { ac_try='test -z "$ac_c_werror_flag"
9951			 || test ! -s conftest.err'
9952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953  (eval $ac_try) 2>&5
9954  ac_status=$?
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); }; } &&
9957	 { ac_try='test -s conftest$ac_exeext'
9958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959  (eval $ac_try) 2>&5
9960  ac_status=$?
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); }; }; then
9963  eval "$as_ac_var=yes"
9964else
9965  echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968eval "$as_ac_var=no"
9969fi
9970rm -f conftest.err conftest.$ac_objext \
9971      conftest$ac_exeext conftest.$ac_ext
9972fi
9973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9975if test `eval echo '${'$as_ac_var'}'` = yes; then
9976  cat >>confdefs.h <<_ACEOF
9977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9978_ACEOF
9979
9980fi
9981done
9982
9983
9984# Check whether --enable-shared or --disable-shared was given.
9985if test "${enable_shared+set}" = set; then
9986  enableval="$enable_shared"
9987  p=${PACKAGE-default}
9988    case $enableval in
9989    yes) enable_shared=yes ;;
9990    no) enable_shared=no ;;
9991    *)
9992      enable_shared=no
9993      # Look at the argument we got.  We use all the common list separators.
9994      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9995      for pkg in $enableval; do
9996	IFS="$lt_save_ifs"
9997	if test "X$pkg" = "X$p"; then
9998	  enable_shared=yes
9999	fi
10000      done
10001      IFS="$lt_save_ifs"
10002      ;;
10003    esac
10004else
10005  enable_shared=yes
10006fi;
10007
10008# Check whether --enable-static or --disable-static was given.
10009if test "${enable_static+set}" = set; then
10010  enableval="$enable_static"
10011  p=${PACKAGE-default}
10012    case $enableval in
10013    yes) enable_static=yes ;;
10014    no) enable_static=no ;;
10015    *)
10016     enable_static=no
10017      # Look at the argument we got.  We use all the common list separators.
10018      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10019      for pkg in $enableval; do
10020	IFS="$lt_save_ifs"
10021	if test "X$pkg" = "X$p"; then
10022	  enable_static=yes
10023	fi
10024      done
10025      IFS="$lt_save_ifs"
10026      ;;
10027    esac
10028else
10029  enable_static=yes
10030fi;
10031
10032# Check whether --enable-fast-install or --disable-fast-install was given.
10033if test "${enable_fast_install+set}" = set; then
10034  enableval="$enable_fast_install"
10035  p=${PACKAGE-default}
10036    case $enableval in
10037    yes) enable_fast_install=yes ;;
10038    no) enable_fast_install=no ;;
10039    *)
10040      enable_fast_install=no
10041      # Look at the argument we got.  We use all the common list separators.
10042      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10043      for pkg in $enableval; do
10044	IFS="$lt_save_ifs"
10045	if test "X$pkg" = "X$p"; then
10046	  enable_fast_install=yes
10047	fi
10048      done
10049      IFS="$lt_save_ifs"
10050      ;;
10051    esac
10052else
10053  enable_fast_install=yes
10054fi;
10055
10056echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10057echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10058if test "${lt_cv_path_SED+set}" = set; then
10059  echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061  # Loop through the user's path and test for sed and gsed.
10062# Then use that list of sed's as ones to test for truncation.
10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066  IFS=$as_save_IFS
10067  test -z "$as_dir" && as_dir=.
10068  for lt_ac_prog in sed gsed; do
10069    for ac_exec_ext in '' $ac_executable_extensions; do
10070      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10071        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10072      fi
10073    done
10074  done
10075done
10076lt_ac_max=0
10077lt_ac_count=0
10078# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10079# along with /bin/sed that truncates output.
10080for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10081  test ! -f $lt_ac_sed && break
10082  cat /dev/null > conftest.in
10083  lt_ac_count=0
10084  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10085  # Check for GNU sed and select it if it is found.
10086  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10087    lt_cv_path_SED=$lt_ac_sed
10088    break
10089  fi
10090  while true; do
10091    cat conftest.in conftest.in >conftest.tmp
10092    mv conftest.tmp conftest.in
10093    cp conftest.in conftest.nl
10094    echo >>conftest.nl
10095    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10096    cmp -s conftest.out conftest.nl || break
10097    # 10000 chars as input seems more than enough
10098    test $lt_ac_count -gt 10 && break
10099    lt_ac_count=`expr $lt_ac_count + 1`
10100    if test $lt_ac_count -gt $lt_ac_max; then
10101      lt_ac_max=$lt_ac_count
10102      lt_cv_path_SED=$lt_ac_sed
10103    fi
10104  done
10105done
10106
10107fi
10108
10109SED=$lt_cv_path_SED
10110echo "$as_me:$LINENO: result: $SED" >&5
10111echo "${ECHO_T}$SED" >&6
10112
10113
10114# Check whether --with-gnu-ld or --without-gnu-ld was given.
10115if test "${with_gnu_ld+set}" = set; then
10116  withval="$with_gnu_ld"
10117  test "$withval" = no || with_gnu_ld=yes
10118else
10119  with_gnu_ld=no
10120fi;
10121ac_prog=ld
10122if test "$GCC" = yes; then
10123  # Check if gcc -print-prog-name=ld gives a path.
10124  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10125echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10126  case $host in
10127  *-*-mingw*)
10128    # gcc leaves a trailing carriage return which upsets mingw
10129    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10130  *)
10131    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10132  esac
10133  case $ac_prog in
10134    # Accept absolute paths.
10135    [\\/]* | ?:[\\/]*)
10136      re_direlt='/[^/][^/]*/\.\./'
10137      # Canonicalize the pathname of ld
10138      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10139      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10140	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10141      done
10142      test -z "$LD" && LD="$ac_prog"
10143      ;;
10144  "")
10145    # If it fails, then pretend we aren't using GCC.
10146    ac_prog=ld
10147    ;;
10148  *)
10149    # If it is relative, then search for the first ld in PATH.
10150    with_gnu_ld=unknown
10151    ;;
10152  esac
10153elif test "$with_gnu_ld" = yes; then
10154  echo "$as_me:$LINENO: checking for GNU ld" >&5
10155echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10156else
10157  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10158echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10159fi
10160if test "${lt_cv_path_LD+set}" = set; then
10161  echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163  if test -z "$LD"; then
10164  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10165  for ac_dir in $PATH; do
10166    IFS="$lt_save_ifs"
10167    test -z "$ac_dir" && ac_dir=.
10168    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10169      lt_cv_path_LD="$ac_dir/$ac_prog"
10170      # Check to see if the program is GNU ld.  I'd rather use --version,
10171      # but apparently some GNU ld's only accept -v.
10172      # Break only if it was the GNU/non-GNU ld that we prefer.
10173      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10174      *GNU* | *'with BFD'*)
10175	test "$with_gnu_ld" != no && break
10176	;;
10177      *)
10178	test "$with_gnu_ld" != yes && break
10179	;;
10180      esac
10181    fi
10182  done
10183  IFS="$lt_save_ifs"
10184else
10185  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10186fi
10187fi
10188
10189LD="$lt_cv_path_LD"
10190if test -n "$LD"; then
10191  echo "$as_me:$LINENO: result: $LD" >&5
10192echo "${ECHO_T}$LD" >&6
10193else
10194  echo "$as_me:$LINENO: result: no" >&5
10195echo "${ECHO_T}no" >&6
10196fi
10197test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10198echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10199   { (exit 1); exit 1; }; }
10200echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10201echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10202if test "${lt_cv_prog_gnu_ld+set}" = set; then
10203  echo $ECHO_N "(cached) $ECHO_C" >&6
10204else
10205  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10206case `$LD -v 2>&1 </dev/null` in
10207*GNU* | *'with BFD'*)
10208  lt_cv_prog_gnu_ld=yes
10209  ;;
10210*)
10211  lt_cv_prog_gnu_ld=no
10212  ;;
10213esac
10214fi
10215echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10216echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10217with_gnu_ld=$lt_cv_prog_gnu_ld
10218
10219
10220echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10221echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10222if test "${lt_cv_ld_reload_flag+set}" = set; then
10223  echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225  lt_cv_ld_reload_flag='-r'
10226fi
10227echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10228echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10229reload_flag=$lt_cv_ld_reload_flag
10230case $reload_flag in
10231"" | " "*) ;;
10232*) reload_flag=" $reload_flag" ;;
10233esac
10234reload_cmds='$LD$reload_flag -o $output$reload_objs'
10235case $host_os in
10236  darwin*)
10237    if test "$GCC" = yes; then
10238      reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10239    else
10240      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10241    fi
10242    ;;
10243esac
10244
10245echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10246echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10247if test "${lt_cv_deplibs_check_method+set}" = set; then
10248  echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250  lt_cv_file_magic_cmd='$MAGIC_CMD'
10251lt_cv_file_magic_test_file=
10252lt_cv_deplibs_check_method='unknown'
10253# Need to set the preceding variable on all platforms that support
10254# interlibrary dependencies.
10255# 'none' -- dependencies not supported.
10256# `unknown' -- same as none, but documents that we really don't know.
10257# 'pass_all' -- all dependencies passed with no checks.
10258# 'test_compile' -- check by making test program.
10259# 'file_magic [[regex]]' -- check by looking for files in library path
10260# which responds to the $file_magic_cmd with a given extended regex.
10261# If you have `file' or equivalent on your system and you're not sure
10262# whether `pass_all' will *always* work, you probably want this one.
10263
10264case $host_os in
10265aix4* | aix5*)
10266  lt_cv_deplibs_check_method=pass_all
10267  ;;
10268
10269beos*)
10270  lt_cv_deplibs_check_method=pass_all
10271  ;;
10272
10273bsdi[45]*)
10274  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10275  lt_cv_file_magic_cmd='/usr/bin/file -L'
10276  lt_cv_file_magic_test_file=/shlib/libc.so
10277  ;;
10278
10279cygwin*)
10280  # func_win32_libid is a shell function defined in ltmain.sh
10281  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10282  lt_cv_file_magic_cmd='func_win32_libid'
10283  ;;
10284
10285mingw* | pw32*)
10286  # Base MSYS/MinGW do not provide the 'file' command needed by
10287  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10288  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10289  lt_cv_file_magic_cmd='$OBJDUMP -f'
10290  ;;
10291
10292darwin* | rhapsody*)
10293  lt_cv_deplibs_check_method=pass_all
10294  ;;
10295
10296freebsd* | kfreebsd*-gnu)
10297  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10298    case $host_cpu in
10299    i*86 )
10300      # Not sure whether the presence of OpenBSD here was a mistake.
10301      # Let's accept both of them until this is cleared up.
10302      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10303      lt_cv_file_magic_cmd=/usr/bin/file
10304      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10305      ;;
10306    esac
10307  else
10308    lt_cv_deplibs_check_method=pass_all
10309  fi
10310  ;;
10311
10312gnu*)
10313  lt_cv_deplibs_check_method=pass_all
10314  ;;
10315
10316hpux10.20* | hpux11*)
10317  lt_cv_file_magic_cmd=/usr/bin/file
10318  case "$host_cpu" in
10319  ia64*)
10320    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10321    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10322    ;;
10323  hppa*64*)
10324    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]'
10325    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10326    ;;
10327  *)
10328    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10329    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10330    ;;
10331  esac
10332  ;;
10333
10334irix5* | irix6* | nonstopux*)
10335  case $LD in
10336  *-32|*"-32 ") libmagic=32-bit;;
10337  *-n32|*"-n32 ") libmagic=N32;;
10338  *-64|*"-64 ") libmagic=64-bit;;
10339  *) libmagic=never-match;;
10340  esac
10341  lt_cv_deplibs_check_method=pass_all
10342  ;;
10343
10344# This must be Linux ELF.
10345linux*)
10346  lt_cv_deplibs_check_method=pass_all
10347  ;;
10348
10349netbsd*)
10350  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10352  else
10353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10354  fi
10355  ;;
10356
10357newos6*)
10358  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10359  lt_cv_file_magic_cmd=/usr/bin/file
10360  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10361  ;;
10362
10363nto-qnx*)
10364  lt_cv_deplibs_check_method=unknown
10365  ;;
10366
10367openbsd*)
10368  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10370  else
10371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10372  fi
10373  ;;
10374
10375osf3* | osf4* | osf5*)
10376  lt_cv_deplibs_check_method=pass_all
10377  ;;
10378
10379sco3.2v5*)
10380  lt_cv_deplibs_check_method=pass_all
10381  ;;
10382
10383solaris*)
10384  lt_cv_deplibs_check_method=pass_all
10385  ;;
10386
10387sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10388  case $host_vendor in
10389  motorola)
10390    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]'
10391    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10392    ;;
10393  ncr)
10394    lt_cv_deplibs_check_method=pass_all
10395    ;;
10396  sequent)
10397    lt_cv_file_magic_cmd='/bin/file'
10398    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10399    ;;
10400  sni)
10401    lt_cv_file_magic_cmd='/bin/file'
10402    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10403    lt_cv_file_magic_test_file=/lib/libc.so
10404    ;;
10405  siemens)
10406    lt_cv_deplibs_check_method=pass_all
10407    ;;
10408  esac
10409  ;;
10410
10411sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10412  lt_cv_deplibs_check_method=pass_all
10413  ;;
10414esac
10415
10416fi
10417echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10418echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10419file_magic_cmd=$lt_cv_file_magic_cmd
10420deplibs_check_method=$lt_cv_deplibs_check_method
10421test -z "$deplibs_check_method" && deplibs_check_method=unknown
10422
10423
10424
10425# If no C compiler was specified, use CC.
10426LTCC=${LTCC-"$CC"}
10427
10428# Allow CC to be a program name with arguments.
10429compiler=$CC
10430
10431# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10432if test "${enable_libtool_lock+set}" = set; then
10433  enableval="$enable_libtool_lock"
10434
10435fi;
10436test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10437
10438# Some flags need to be propagated to the compiler or linker for good
10439# libtool support.
10440case $host in
10441ia64-*-hpux*)
10442  # Find out which ABI we are using.
10443  echo 'int i;' > conftest.$ac_ext
10444  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445  (eval $ac_compile) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; then
10449    case `/usr/bin/file conftest.$ac_objext` in
10450    *ELF-32*)
10451      HPUX_IA64_MODE="32"
10452      ;;
10453    *ELF-64*)
10454      HPUX_IA64_MODE="64"
10455      ;;
10456    esac
10457  fi
10458  rm -rf conftest*
10459  ;;
10460*-*-irix6*)
10461  # Find out which ABI we are using.
10462  echo '#line 10462 "configure"' > conftest.$ac_ext
10463  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464  (eval $ac_compile) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); }; then
10468   if test "$lt_cv_prog_gnu_ld" = yes; then
10469    case `/usr/bin/file conftest.$ac_objext` in
10470    *32-bit*)
10471      LD="${LD-ld} -melf32bsmip"
10472      ;;
10473    *N32*)
10474      LD="${LD-ld} -melf32bmipn32"
10475      ;;
10476    *64-bit*)
10477      LD="${LD-ld} -melf64bmip"
10478      ;;
10479    esac
10480   else
10481    case `/usr/bin/file conftest.$ac_objext` in
10482    *32-bit*)
10483      LD="${LD-ld} -32"
10484      ;;
10485    *N32*)
10486      LD="${LD-ld} -n32"
10487      ;;
10488    *64-bit*)
10489      LD="${LD-ld} -64"
10490      ;;
10491    esac
10492   fi
10493  fi
10494  rm -rf conftest*
10495  ;;
10496
10497x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10498  # Find out which ABI we are using.
10499  echo 'int i;' > conftest.$ac_ext
10500  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501  (eval $ac_compile) 2>&5
10502  ac_status=$?
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); }; then
10505    case "`/usr/bin/file conftest.o`" in
10506    *32-bit*)
10507      case $host in
10508        x86_64-*linux*)
10509          LD="${LD-ld} -m elf_i386"
10510          ;;
10511        ppc64-*linux*|powerpc64-*linux*)
10512          LD="${LD-ld} -m elf32ppclinux"
10513          ;;
10514        s390x-*linux*)
10515          LD="${LD-ld} -m elf_s390"
10516          ;;
10517        sparc64-*linux*)
10518          LD="${LD-ld} -m elf32_sparc"
10519          ;;
10520      esac
10521      ;;
10522    *64-bit*)
10523      case $host in
10524        x86_64-*linux*)
10525          LD="${LD-ld} -m elf_x86_64"
10526          ;;
10527        ppc*-*linux*|powerpc*-*linux*)
10528          LD="${LD-ld} -m elf64ppc"
10529          ;;
10530        s390*-*linux*)
10531          LD="${LD-ld} -m elf64_s390"
10532          ;;
10533        sparc*-*linux*)
10534          LD="${LD-ld} -m elf64_sparc"
10535          ;;
10536      esac
10537      ;;
10538    esac
10539  fi
10540  rm -rf conftest*
10541  ;;
10542
10543*-*-sco3.2v5*)
10544  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10545  SAVE_CFLAGS="$CFLAGS"
10546  CFLAGS="$CFLAGS -belf"
10547  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10548echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10549if test "${lt_cv_cc_needs_belf+set}" = set; then
10550  echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552  ac_ext=c
10553ac_cpp='$CPP $CPPFLAGS'
10554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556ac_compiler_gnu=$ac_cv_c_compiler_gnu
10557
10558     cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h.  */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h.  */
10564
10565_ACEOF
10566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568  (eval $ac_link) 2>conftest.er1
10569  ac_status=$?
10570  grep -v '^ *+' conftest.er1 >conftest.err
10571  rm -f conftest.er1
10572  cat conftest.err >&5
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } &&
10575	 { ac_try='test -z "$ac_c_werror_flag"
10576			 || test ! -s conftest.err'
10577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578  (eval $ac_try) 2>&5
10579  ac_status=$?
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); }; } &&
10582	 { ac_try='test -s conftest$ac_exeext'
10583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584  (eval $ac_try) 2>&5
10585  ac_status=$?
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); }; }; then
10588  lt_cv_cc_needs_belf=yes
10589else
10590  echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593lt_cv_cc_needs_belf=no
10594fi
10595rm -f conftest.err conftest.$ac_objext \
10596      conftest$ac_exeext conftest.$ac_ext
10597     ac_ext=c
10598ac_cpp='$CPP $CPPFLAGS'
10599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10601ac_compiler_gnu=$ac_cv_c_compiler_gnu
10602
10603fi
10604echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10605echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10606  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10607    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10608    CFLAGS="$SAVE_CFLAGS"
10609  fi
10610  ;;
10611
10612esac
10613
10614need_locks="$enable_libtool_lock"
10615
10616
10617
10618
10619if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621    (test "X$CXX" != "Xg++"))) ; then
10622  ac_ext=cc
10623ac_cpp='$CXXCPP $CPPFLAGS'
10624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10628echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10629if test -z "$CXXCPP"; then
10630  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10631  echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633      # Double quotes because CXXCPP needs to be expanded
10634    for CXXCPP in "$CXX -E" "/lib/cpp"
10635    do
10636      ac_preproc_ok=false
10637for ac_cxx_preproc_warn_flag in '' yes
10638do
10639  # Use a header file that comes with gcc, so configuring glibc
10640  # with a fresh cross-compiler works.
10641  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642  # <limits.h> exists even on freestanding compilers.
10643  # On the NeXT, cc -E runs the code through the compiler's parser,
10644  # not just through cpp. "Syntax error" is here to catch this case.
10645  cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h.  */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h.  */
10651#ifdef __STDC__
10652# include <limits.h>
10653#else
10654# include <assert.h>
10655#endif
10656		     Syntax error
10657_ACEOF
10658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660  ac_status=$?
10661  grep -v '^ *+' conftest.er1 >conftest.err
10662  rm -f conftest.er1
10663  cat conftest.err >&5
10664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665  (exit $ac_status); } >/dev/null; then
10666  if test -s conftest.err; then
10667    ac_cpp_err=$ac_cxx_preproc_warn_flag
10668    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10669  else
10670    ac_cpp_err=
10671  fi
10672else
10673  ac_cpp_err=yes
10674fi
10675if test -z "$ac_cpp_err"; then
10676  :
10677else
10678  echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681  # Broken: fails on valid input.
10682continue
10683fi
10684rm -f conftest.err conftest.$ac_ext
10685
10686  # OK, works on sane cases.  Now check whether non-existent headers
10687  # can be detected and how.
10688  cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h.  */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h.  */
10694#include <ac_nonexistent.h>
10695_ACEOF
10696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10698  ac_status=$?
10699  grep -v '^ *+' conftest.er1 >conftest.err
10700  rm -f conftest.er1
10701  cat conftest.err >&5
10702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703  (exit $ac_status); } >/dev/null; then
10704  if test -s conftest.err; then
10705    ac_cpp_err=$ac_cxx_preproc_warn_flag
10706    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10707  else
10708    ac_cpp_err=
10709  fi
10710else
10711  ac_cpp_err=yes
10712fi
10713if test -z "$ac_cpp_err"; then
10714  # Broken: success on invalid input.
10715continue
10716else
10717  echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720  # Passes both tests.
10721ac_preproc_ok=:
10722break
10723fi
10724rm -f conftest.err conftest.$ac_ext
10725
10726done
10727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10728rm -f conftest.err conftest.$ac_ext
10729if $ac_preproc_ok; then
10730  break
10731fi
10732
10733    done
10734    ac_cv_prog_CXXCPP=$CXXCPP
10735
10736fi
10737  CXXCPP=$ac_cv_prog_CXXCPP
10738else
10739  ac_cv_prog_CXXCPP=$CXXCPP
10740fi
10741echo "$as_me:$LINENO: result: $CXXCPP" >&5
10742echo "${ECHO_T}$CXXCPP" >&6
10743ac_preproc_ok=false
10744for ac_cxx_preproc_warn_flag in '' yes
10745do
10746  # Use a header file that comes with gcc, so configuring glibc
10747  # with a fresh cross-compiler works.
10748  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749  # <limits.h> exists even on freestanding compilers.
10750  # On the NeXT, cc -E runs the code through the compiler's parser,
10751  # not just through cpp. "Syntax error" is here to catch this case.
10752  cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h.  */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h.  */
10758#ifdef __STDC__
10759# include <limits.h>
10760#else
10761# include <assert.h>
10762#endif
10763		     Syntax error
10764_ACEOF
10765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767  ac_status=$?
10768  grep -v '^ *+' conftest.er1 >conftest.err
10769  rm -f conftest.er1
10770  cat conftest.err >&5
10771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772  (exit $ac_status); } >/dev/null; then
10773  if test -s conftest.err; then
10774    ac_cpp_err=$ac_cxx_preproc_warn_flag
10775    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10776  else
10777    ac_cpp_err=
10778  fi
10779else
10780  ac_cpp_err=yes
10781fi
10782if test -z "$ac_cpp_err"; then
10783  :
10784else
10785  echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
10787
10788  # Broken: fails on valid input.
10789continue
10790fi
10791rm -f conftest.err conftest.$ac_ext
10792
10793  # OK, works on sane cases.  Now check whether non-existent headers
10794  # can be detected and how.
10795  cat >conftest.$ac_ext <<_ACEOF
10796/* confdefs.h.  */
10797_ACEOF
10798cat confdefs.h >>conftest.$ac_ext
10799cat >>conftest.$ac_ext <<_ACEOF
10800/* end confdefs.h.  */
10801#include <ac_nonexistent.h>
10802_ACEOF
10803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10805  ac_status=$?
10806  grep -v '^ *+' conftest.er1 >conftest.err
10807  rm -f conftest.er1
10808  cat conftest.err >&5
10809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810  (exit $ac_status); } >/dev/null; then
10811  if test -s conftest.err; then
10812    ac_cpp_err=$ac_cxx_preproc_warn_flag
10813    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10814  else
10815    ac_cpp_err=
10816  fi
10817else
10818  ac_cpp_err=yes
10819fi
10820if test -z "$ac_cpp_err"; then
10821  # Broken: success on invalid input.
10822continue
10823else
10824  echo "$as_me: failed program was:" >&5
10825sed 's/^/| /' conftest.$ac_ext >&5
10826
10827  # Passes both tests.
10828ac_preproc_ok=:
10829break
10830fi
10831rm -f conftest.err conftest.$ac_ext
10832
10833done
10834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10835rm -f conftest.err conftest.$ac_ext
10836if $ac_preproc_ok; then
10837  :
10838else
10839  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10840See \`config.log' for more details." >&5
10841echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10842See \`config.log' for more details." >&2;}
10843   { (exit 1); exit 1; }; }
10844fi
10845
10846ac_ext=cc
10847ac_cpp='$CXXCPP $CPPFLAGS'
10848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10851
10852fi
10853
10854
10855ac_ext=f
10856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10858ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10859if test -n "$ac_tool_prefix"; then
10860  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10861  do
10862    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10864echo "$as_me:$LINENO: checking for $ac_word" >&5
10865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866if test "${ac_cv_prog_F77+set}" = set; then
10867  echo $ECHO_N "(cached) $ECHO_C" >&6
10868else
10869  if test -n "$F77"; then
10870  ac_cv_prog_F77="$F77" # Let the user override the test.
10871else
10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $PATH
10874do
10875  IFS=$as_save_IFS
10876  test -z "$as_dir" && as_dir=.
10877  for ac_exec_ext in '' $ac_executable_extensions; do
10878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10881    break 2
10882  fi
10883done
10884done
10885
10886fi
10887fi
10888F77=$ac_cv_prog_F77
10889if test -n "$F77"; then
10890  echo "$as_me:$LINENO: result: $F77" >&5
10891echo "${ECHO_T}$F77" >&6
10892else
10893  echo "$as_me:$LINENO: result: no" >&5
10894echo "${ECHO_T}no" >&6
10895fi
10896
10897    test -n "$F77" && break
10898  done
10899fi
10900if test -z "$F77"; then
10901  ac_ct_F77=$F77
10902  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10903do
10904  # Extract the first word of "$ac_prog", so it can be a program name with args.
10905set dummy $ac_prog; ac_word=$2
10906echo "$as_me:$LINENO: checking for $ac_word" >&5
10907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10908if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10909  echo $ECHO_N "(cached) $ECHO_C" >&6
10910else
10911  if test -n "$ac_ct_F77"; then
10912  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10913else
10914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $PATH
10916do
10917  IFS=$as_save_IFS
10918  test -z "$as_dir" && as_dir=.
10919  for ac_exec_ext in '' $ac_executable_extensions; do
10920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10921    ac_cv_prog_ac_ct_F77="$ac_prog"
10922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10923    break 2
10924  fi
10925done
10926done
10927
10928fi
10929fi
10930ac_ct_F77=$ac_cv_prog_ac_ct_F77
10931if test -n "$ac_ct_F77"; then
10932  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10933echo "${ECHO_T}$ac_ct_F77" >&6
10934else
10935  echo "$as_me:$LINENO: result: no" >&5
10936echo "${ECHO_T}no" >&6
10937fi
10938
10939  test -n "$ac_ct_F77" && break
10940done
10941
10942  F77=$ac_ct_F77
10943fi
10944
10945
10946# Provide some information about the compiler.
10947echo "$as_me:10947:" \
10948     "checking for Fortran 77 compiler version" >&5
10949ac_compiler=`set X $ac_compile; echo $2`
10950{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10951  (eval $ac_compiler --version </dev/null >&5) 2>&5
10952  ac_status=$?
10953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954  (exit $ac_status); }
10955{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10956  (eval $ac_compiler -v </dev/null >&5) 2>&5
10957  ac_status=$?
10958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959  (exit $ac_status); }
10960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10961  (eval $ac_compiler -V </dev/null >&5) 2>&5
10962  ac_status=$?
10963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964  (exit $ac_status); }
10965rm -f a.out
10966
10967# If we don't use `.F' as extension, the preprocessor is not run on the
10968# input file.  (Note that this only needs to work for GNU compilers.)
10969ac_save_ext=$ac_ext
10970ac_ext=F
10971echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10972echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10973if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10974  echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976  cat >conftest.$ac_ext <<_ACEOF
10977      program main
10978#ifndef __GNUC__
10979       choke me
10980#endif
10981
10982      end
10983_ACEOF
10984rm -f conftest.$ac_objext
10985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986  (eval $ac_compile) 2>conftest.er1
10987  ac_status=$?
10988  grep -v '^ *+' conftest.er1 >conftest.err
10989  rm -f conftest.er1
10990  cat conftest.err >&5
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); } &&
10993	 { ac_try='test -z "$ac_f77_werror_flag"
10994			 || test ! -s conftest.err'
10995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996  (eval $ac_try) 2>&5
10997  ac_status=$?
10998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999  (exit $ac_status); }; } &&
11000	 { ac_try='test -s conftest.$ac_objext'
11001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002  (eval $ac_try) 2>&5
11003  ac_status=$?
11004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005  (exit $ac_status); }; }; then
11006  ac_compiler_gnu=yes
11007else
11008  echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011ac_compiler_gnu=no
11012fi
11013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11015
11016fi
11017echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11018echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11019ac_ext=$ac_save_ext
11020ac_test_FFLAGS=${FFLAGS+set}
11021ac_save_FFLAGS=$FFLAGS
11022FFLAGS=
11023echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11024echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11025if test "${ac_cv_prog_f77_g+set}" = set; then
11026  echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028  FFLAGS=-g
11029cat >conftest.$ac_ext <<_ACEOF
11030      program main
11031
11032      end
11033_ACEOF
11034rm -f conftest.$ac_objext
11035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036  (eval $ac_compile) 2>conftest.er1
11037  ac_status=$?
11038  grep -v '^ *+' conftest.er1 >conftest.err
11039  rm -f conftest.er1
11040  cat conftest.err >&5
11041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042  (exit $ac_status); } &&
11043	 { ac_try='test -z "$ac_f77_werror_flag"
11044			 || test ! -s conftest.err'
11045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046  (eval $ac_try) 2>&5
11047  ac_status=$?
11048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049  (exit $ac_status); }; } &&
11050	 { ac_try='test -s conftest.$ac_objext'
11051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052  (eval $ac_try) 2>&5
11053  ac_status=$?
11054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055  (exit $ac_status); }; }; then
11056  ac_cv_prog_f77_g=yes
11057else
11058  echo "$as_me: failed program was:" >&5
11059sed 's/^/| /' conftest.$ac_ext >&5
11060
11061ac_cv_prog_f77_g=no
11062fi
11063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11064
11065fi
11066echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11067echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11068if test "$ac_test_FFLAGS" = set; then
11069  FFLAGS=$ac_save_FFLAGS
11070elif test $ac_cv_prog_f77_g = yes; then
11071  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11072    FFLAGS="-g -O2"
11073  else
11074    FFLAGS="-g"
11075  fi
11076else
11077  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11078    FFLAGS="-O2"
11079  else
11080    FFLAGS=
11081  fi
11082fi
11083
11084G77=`test $ac_compiler_gnu = yes && echo yes`
11085ac_ext=c
11086ac_cpp='$CPP $CPPFLAGS'
11087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090
11091
11092
11093# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11094
11095# find the maximum length of command line arguments
11096echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11097echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11098if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11099  echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101    i=0
11102  teststring="ABCD"
11103
11104  case $build_os in
11105  msdosdjgpp*)
11106    # On DJGPP, this test can blow up pretty badly due to problems in libc
11107    # (any single argument exceeding 2000 bytes causes a buffer overrun
11108    # during glob expansion).  Even if it were fixed, the result of this
11109    # check would be larger than it should be.
11110    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11111    ;;
11112
11113  gnu*)
11114    # Under GNU Hurd, this test is not required because there is
11115    # no limit to the length of command line arguments.
11116    # Libtool will interpret -1 as no limit whatsoever
11117    lt_cv_sys_max_cmd_len=-1;
11118    ;;
11119
11120  cygwin* | mingw*)
11121    # On Win9x/ME, this test blows up -- it succeeds, but takes
11122    # about 5 minutes as the teststring grows exponentially.
11123    # Worse, since 9x/ME are not pre-emptively multitasking,
11124    # you end up with a "frozen" computer, even though with patience
11125    # the test eventually succeeds (with a max line length of 256k).
11126    # Instead, let's just punt: use the minimum linelength reported by
11127    # all of the supported platforms: 8192 (on NT/2K/XP).
11128    lt_cv_sys_max_cmd_len=8192;
11129    ;;
11130
11131  amigaos*)
11132    # On AmigaOS with pdksh, this test takes hours, literally.
11133    # So we just punt and use a minimum line length of 8192.
11134    lt_cv_sys_max_cmd_len=8192;
11135    ;;
11136
11137  netbsd* | freebsd* | openbsd* | darwin* )
11138    # This has been around since 386BSD, at least.  Likely further.
11139    if test -x /sbin/sysctl; then
11140      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11141    elif test -x /usr/sbin/sysctl; then
11142      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11143    else
11144      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11145    fi
11146    # And add a safety zone
11147    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11148    ;;
11149
11150 *)
11151    # If test is not a shell built-in, we'll probably end up computing a
11152    # maximum length that is only half of the actual maximum length, but
11153    # we can't tell.
11154    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11155    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11156	       = "XX$teststring") >/dev/null 2>&1 &&
11157	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
11158	    lt_cv_sys_max_cmd_len=$new_result &&
11159	    test $i != 17 # 1/2 MB should be enough
11160    do
11161      i=`expr $i + 1`
11162      teststring=$teststring$teststring
11163    done
11164    teststring=
11165    # Add a significant safety factor because C++ compilers can tack on massive
11166    # amounts of additional arguments before passing them to the linker.
11167    # It appears as though 1/2 is a usable value.
11168    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11169    ;;
11170  esac
11171
11172fi
11173
11174if test -n $lt_cv_sys_max_cmd_len ; then
11175  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11176echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11177else
11178  echo "$as_me:$LINENO: result: none" >&5
11179echo "${ECHO_T}none" >&6
11180fi
11181
11182
11183
11184
11185# Check for command to grab the raw symbol name followed by C symbol from nm.
11186echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11187echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11188if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11189  echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191
11192# These are sane defaults that work on at least a few old systems.
11193# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11194
11195# Character class describing NM global symbol codes.
11196symcode='[BCDEGRST]'
11197
11198# Regexp to match symbols that can be accessed directly from C.
11199sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11200
11201# Transform the above into a raw symbol and a C symbol.
11202symxfrm='\1 \2\3 \3'
11203
11204# Transform an extracted symbol line into a proper C declaration
11205lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11206
11207# Transform an extracted symbol line into symbol name and symbol address
11208lt_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'"
11209
11210# Define system-specific variables.
11211case $host_os in
11212aix*)
11213  symcode='[BCDT]'
11214  ;;
11215cygwin* | mingw* | pw32*)
11216  symcode='[ABCDGISTW]'
11217  ;;
11218hpux*) # Its linker distinguishes data from code symbols
11219  if test "$host_cpu" = ia64; then
11220    symcode='[ABCDEGRST]'
11221  fi
11222  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11223  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'"
11224  ;;
11225linux*)
11226  if test "$host_cpu" = ia64; then
11227    symcode='[ABCDGIRSTW]'
11228    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11229    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'"
11230  fi
11231  ;;
11232irix* | nonstopux*)
11233  symcode='[BCDEGRST]'
11234  ;;
11235osf*)
11236  symcode='[BCDEGQRST]'
11237  ;;
11238solaris* | sysv5*)
11239  symcode='[BDRT]'
11240  ;;
11241sysv4)
11242  symcode='[DFNSTU]'
11243  ;;
11244esac
11245
11246# Handle CRLF in mingw tool chain
11247opt_cr=
11248case $build_os in
11249mingw*)
11250  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11251  ;;
11252esac
11253
11254# If we're using GNU nm, then use its standard symbol codes.
11255case `$NM -V 2>&1` in
11256*GNU* | *'with BFD'*)
11257  symcode='[ABCDGIRSTW]' ;;
11258esac
11259
11260# Try without a prefix undercore, then with it.
11261for ac_symprfx in "" "_"; do
11262
11263  # Write the raw and C identifiers.
11264  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11265
11266  # Check to see that the pipe works correctly.
11267  pipe_works=no
11268
11269  rm -f conftest*
11270  cat > conftest.$ac_ext <<EOF
11271#ifdef __cplusplus
11272extern "C" {
11273#endif
11274char nm_test_var;
11275void nm_test_func(){}
11276#ifdef __cplusplus
11277}
11278#endif
11279int main(){nm_test_var='a';nm_test_func();return(0);}
11280EOF
11281
11282  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283  (eval $ac_compile) 2>&5
11284  ac_status=$?
11285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286  (exit $ac_status); }; then
11287    # Now try to grab the symbols.
11288    nlist=conftest.nm
11289    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11290  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11291  ac_status=$?
11292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293  (exit $ac_status); } && test -s "$nlist"; then
11294      # Try sorting and uniquifying the output.
11295      if sort "$nlist" | uniq > "$nlist"T; then
11296	mv -f "$nlist"T "$nlist"
11297      else
11298	rm -f "$nlist"T
11299      fi
11300
11301      # Make sure that we snagged all the symbols we need.
11302      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11303	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11304	  cat <<EOF > conftest.$ac_ext
11305#ifdef __cplusplus
11306extern "C" {
11307#endif
11308
11309EOF
11310	  # Now generate the symbol file.
11311	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11312
11313	  cat <<EOF >> conftest.$ac_ext
11314#if defined (__STDC__) && __STDC__
11315# define lt_ptr_t void *
11316#else
11317# define lt_ptr_t char *
11318# define const
11319#endif
11320
11321/* The mapping between symbol names and symbols. */
11322const struct {
11323  const char *name;
11324  lt_ptr_t address;
11325}
11326lt_preloaded_symbols[] =
11327{
11328EOF
11329	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11330	  cat <<\EOF >> conftest.$ac_ext
11331  {0, (lt_ptr_t) 0}
11332};
11333
11334#ifdef __cplusplus
11335}
11336#endif
11337EOF
11338	  # Now try linking the two files.
11339	  mv conftest.$ac_objext conftstm.$ac_objext
11340	  lt_save_LIBS="$LIBS"
11341	  lt_save_CFLAGS="$CFLAGS"
11342	  LIBS="conftstm.$ac_objext"
11343	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11344	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345  (eval $ac_link) 2>&5
11346  ac_status=$?
11347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11349	    pipe_works=yes
11350	  fi
11351	  LIBS="$lt_save_LIBS"
11352	  CFLAGS="$lt_save_CFLAGS"
11353	else
11354	  echo "cannot find nm_test_func in $nlist" >&5
11355	fi
11356      else
11357	echo "cannot find nm_test_var in $nlist" >&5
11358      fi
11359    else
11360      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11361    fi
11362  else
11363    echo "$progname: failed program was:" >&5
11364    cat conftest.$ac_ext >&5
11365  fi
11366  rm -f conftest* conftst*
11367
11368  # Do not use the global_symbol_pipe unless it works.
11369  if test "$pipe_works" = yes; then
11370    break
11371  else
11372    lt_cv_sys_global_symbol_pipe=
11373  fi
11374done
11375
11376fi
11377
11378if test -z "$lt_cv_sys_global_symbol_pipe"; then
11379  lt_cv_sys_global_symbol_to_cdecl=
11380fi
11381if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11382  echo "$as_me:$LINENO: result: failed" >&5
11383echo "${ECHO_T}failed" >&6
11384else
11385  echo "$as_me:$LINENO: result: ok" >&5
11386echo "${ECHO_T}ok" >&6
11387fi
11388
11389echo "$as_me:$LINENO: checking for objdir" >&5
11390echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11391if test "${lt_cv_objdir+set}" = set; then
11392  echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394  rm -f .libs 2>/dev/null
11395mkdir .libs 2>/dev/null
11396if test -d .libs; then
11397  lt_cv_objdir=.libs
11398else
11399  # MS-DOS does not allow filenames that begin with a dot.
11400  lt_cv_objdir=_libs
11401fi
11402rmdir .libs 2>/dev/null
11403fi
11404echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11405echo "${ECHO_T}$lt_cv_objdir" >&6
11406objdir=$lt_cv_objdir
11407
11408
11409
11410
11411
11412case $host_os in
11413aix3*)
11414  # AIX sometimes has problems with the GCC collect2 program.  For some
11415  # reason, if we set the COLLECT_NAMES environment variable, the problems
11416  # vanish in a puff of smoke.
11417  if test "X${COLLECT_NAMES+set}" != Xset; then
11418    COLLECT_NAMES=
11419    export COLLECT_NAMES
11420  fi
11421  ;;
11422esac
11423
11424# Sed substitution that helps us do robust quoting.  It backslashifies
11425# metacharacters that are still active within double-quoted strings.
11426Xsed='sed -e s/^X//'
11427sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11428
11429# Same as above, but do not quote variable references.
11430double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11431
11432# Sed substitution to delay expansion of an escaped shell variable in a
11433# double_quote_subst'ed string.
11434delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11435
11436# Sed substitution to avoid accidental globbing in evaled expressions
11437no_glob_subst='s/\*/\\\*/g'
11438
11439# Constants:
11440rm="rm -f"
11441
11442# Global variables:
11443default_ofile=mklib
11444can_build_shared=yes
11445
11446# All known linkers require a `.a' archive for static linking (except M$VC,
11447# which needs '.lib').
11448libext=a
11449ltmain="$ac_aux_dir/ltmain.sh"
11450ofile="$default_ofile"
11451with_gnu_ld="$lt_cv_prog_gnu_ld"
11452
11453if test -n "$ac_tool_prefix"; then
11454  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11455set dummy ${ac_tool_prefix}ar; ac_word=$2
11456echo "$as_me:$LINENO: checking for $ac_word" >&5
11457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11458if test "${ac_cv_prog_AR+set}" = set; then
11459  echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461  if test -n "$AR"; then
11462  ac_cv_prog_AR="$AR" # Let the user override the test.
11463else
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467  IFS=$as_save_IFS
11468  test -z "$as_dir" && as_dir=.
11469  for ac_exec_ext in '' $ac_executable_extensions; do
11470  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11471    ac_cv_prog_AR="${ac_tool_prefix}ar"
11472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11473    break 2
11474  fi
11475done
11476done
11477
11478fi
11479fi
11480AR=$ac_cv_prog_AR
11481if test -n "$AR"; then
11482  echo "$as_me:$LINENO: result: $AR" >&5
11483echo "${ECHO_T}$AR" >&6
11484else
11485  echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6
11487fi
11488
11489fi
11490if test -z "$ac_cv_prog_AR"; then
11491  ac_ct_AR=$AR
11492  # Extract the first word of "ar", so it can be a program name with args.
11493set dummy ar; ac_word=$2
11494echo "$as_me:$LINENO: checking for $ac_word" >&5
11495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11496if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11497  echo $ECHO_N "(cached) $ECHO_C" >&6
11498else
11499  if test -n "$ac_ct_AR"; then
11500  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11501else
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505  IFS=$as_save_IFS
11506  test -z "$as_dir" && as_dir=.
11507  for ac_exec_ext in '' $ac_executable_extensions; do
11508  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509    ac_cv_prog_ac_ct_AR="ar"
11510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11511    break 2
11512  fi
11513done
11514done
11515
11516  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11517fi
11518fi
11519ac_ct_AR=$ac_cv_prog_ac_ct_AR
11520if test -n "$ac_ct_AR"; then
11521  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11522echo "${ECHO_T}$ac_ct_AR" >&6
11523else
11524  echo "$as_me:$LINENO: result: no" >&5
11525echo "${ECHO_T}no" >&6
11526fi
11527
11528  AR=$ac_ct_AR
11529else
11530  AR="$ac_cv_prog_AR"
11531fi
11532
11533if test -n "$ac_tool_prefix"; then
11534  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536echo "$as_me:$LINENO: checking for $ac_word" >&5
11537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11538if test "${ac_cv_prog_RANLIB+set}" = set; then
11539  echo $ECHO_N "(cached) $ECHO_C" >&6
11540else
11541  if test -n "$RANLIB"; then
11542  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11543else
11544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545for as_dir in $PATH
11546do
11547  IFS=$as_save_IFS
11548  test -z "$as_dir" && as_dir=.
11549  for ac_exec_ext in '' $ac_executable_extensions; do
11550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11553    break 2
11554  fi
11555done
11556done
11557
11558fi
11559fi
11560RANLIB=$ac_cv_prog_RANLIB
11561if test -n "$RANLIB"; then
11562  echo "$as_me:$LINENO: result: $RANLIB" >&5
11563echo "${ECHO_T}$RANLIB" >&6
11564else
11565  echo "$as_me:$LINENO: result: no" >&5
11566echo "${ECHO_T}no" >&6
11567fi
11568
11569fi
11570if test -z "$ac_cv_prog_RANLIB"; then
11571  ac_ct_RANLIB=$RANLIB
11572  # Extract the first word of "ranlib", so it can be a program name with args.
11573set dummy ranlib; ac_word=$2
11574echo "$as_me:$LINENO: checking for $ac_word" >&5
11575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11576if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11577  echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579  if test -n "$ac_ct_RANLIB"; then
11580  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11581else
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585  IFS=$as_save_IFS
11586  test -z "$as_dir" && as_dir=.
11587  for ac_exec_ext in '' $ac_executable_extensions; do
11588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589    ac_cv_prog_ac_ct_RANLIB="ranlib"
11590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11591    break 2
11592  fi
11593done
11594done
11595
11596  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11597fi
11598fi
11599ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11600if test -n "$ac_ct_RANLIB"; then
11601  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11602echo "${ECHO_T}$ac_ct_RANLIB" >&6
11603else
11604  echo "$as_me:$LINENO: result: no" >&5
11605echo "${ECHO_T}no" >&6
11606fi
11607
11608  RANLIB=$ac_ct_RANLIB
11609else
11610  RANLIB="$ac_cv_prog_RANLIB"
11611fi
11612
11613if test -n "$ac_tool_prefix"; then
11614  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11615set dummy ${ac_tool_prefix}strip; ac_word=$2
11616echo "$as_me:$LINENO: checking for $ac_word" >&5
11617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11618if test "${ac_cv_prog_STRIP+set}" = set; then
11619  echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621  if test -n "$STRIP"; then
11622  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11623else
11624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627  IFS=$as_save_IFS
11628  test -z "$as_dir" && as_dir=.
11629  for ac_exec_ext in '' $ac_executable_extensions; do
11630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633    break 2
11634  fi
11635done
11636done
11637
11638fi
11639fi
11640STRIP=$ac_cv_prog_STRIP
11641if test -n "$STRIP"; then
11642  echo "$as_me:$LINENO: result: $STRIP" >&5
11643echo "${ECHO_T}$STRIP" >&6
11644else
11645  echo "$as_me:$LINENO: result: no" >&5
11646echo "${ECHO_T}no" >&6
11647fi
11648
11649fi
11650if test -z "$ac_cv_prog_STRIP"; then
11651  ac_ct_STRIP=$STRIP
11652  # Extract the first word of "strip", so it can be a program name with args.
11653set dummy strip; ac_word=$2
11654echo "$as_me:$LINENO: checking for $ac_word" >&5
11655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11657  echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659  if test -n "$ac_ct_STRIP"; then
11660  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665  IFS=$as_save_IFS
11666  test -z "$as_dir" && as_dir=.
11667  for ac_exec_ext in '' $ac_executable_extensions; do
11668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669    ac_cv_prog_ac_ct_STRIP="strip"
11670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11671    break 2
11672  fi
11673done
11674done
11675
11676  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11677fi
11678fi
11679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11680if test -n "$ac_ct_STRIP"; then
11681  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11682echo "${ECHO_T}$ac_ct_STRIP" >&6
11683else
11684  echo "$as_me:$LINENO: result: no" >&5
11685echo "${ECHO_T}no" >&6
11686fi
11687
11688  STRIP=$ac_ct_STRIP
11689else
11690  STRIP="$ac_cv_prog_STRIP"
11691fi
11692
11693
11694old_CC="$CC"
11695old_CFLAGS="$CFLAGS"
11696
11697# Set sane defaults for various variables
11698test -z "$AR" && AR=ar
11699test -z "$AR_FLAGS" && AR_FLAGS=cru
11700test -z "$AS" && AS=as
11701test -z "$CC" && CC=cc
11702test -z "$LTCC" && LTCC=$CC
11703test -z "$DLLTOOL" && DLLTOOL=dlltool
11704test -z "$LD" && LD=ld
11705test -z "$LN_S" && LN_S="ln -s"
11706test -z "$MAGIC_CMD" && MAGIC_CMD=file
11707test -z "$NM" && NM=nm
11708test -z "$SED" && SED=sed
11709test -z "$OBJDUMP" && OBJDUMP=objdump
11710test -z "$RANLIB" && RANLIB=:
11711test -z "$STRIP" && STRIP=:
11712test -z "$ac_objext" && ac_objext=o
11713
11714# Determine commands to create old-style static archives.
11715old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11716old_postinstall_cmds='chmod 644 $oldlib'
11717old_postuninstall_cmds=
11718
11719if test -n "$RANLIB"; then
11720  case $host_os in
11721  openbsd*)
11722    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11723    ;;
11724  *)
11725    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11726    ;;
11727  esac
11728  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11729fi
11730
11731cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11732
11733# Only perform the check for file, if the check method requires it
11734case $deplibs_check_method in
11735file_magic*)
11736  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11737    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11738echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11739if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11740  echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742  case $MAGIC_CMD in
11743[\\/*] |  ?:[\\/]*)
11744  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11745  ;;
11746*)
11747  lt_save_MAGIC_CMD="$MAGIC_CMD"
11748  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11750  for ac_dir in $ac_dummy; do
11751    IFS="$lt_save_ifs"
11752    test -z "$ac_dir" && ac_dir=.
11753    if test -f $ac_dir/${ac_tool_prefix}file; then
11754      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11755      if test -n "$file_magic_test_file"; then
11756	case $deplibs_check_method in
11757	"file_magic "*)
11758	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11759	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11761	    $EGREP "$file_magic_regex" > /dev/null; then
11762	    :
11763	  else
11764	    cat <<EOF 1>&2
11765
11766*** Warning: the command libtool uses to detect shared libraries,
11767*** $file_magic_cmd, produces output that libtool cannot recognize.
11768*** The result is that libtool may fail to recognize shared libraries
11769*** as such.  This will affect the creation of libtool libraries that
11770*** depend on shared libraries, but programs linked with such libtool
11771*** libraries will work regardless of this problem.  Nevertheless, you
11772*** may want to report the problem to your system manager and/or to
11773*** bug-libtool@gnu.org
11774
11775EOF
11776	  fi ;;
11777	esac
11778      fi
11779      break
11780    fi
11781  done
11782  IFS="$lt_save_ifs"
11783  MAGIC_CMD="$lt_save_MAGIC_CMD"
11784  ;;
11785esac
11786fi
11787
11788MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11789if test -n "$MAGIC_CMD"; then
11790  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11791echo "${ECHO_T}$MAGIC_CMD" >&6
11792else
11793  echo "$as_me:$LINENO: result: no" >&5
11794echo "${ECHO_T}no" >&6
11795fi
11796
11797if test -z "$lt_cv_path_MAGIC_CMD"; then
11798  if test -n "$ac_tool_prefix"; then
11799    echo "$as_me:$LINENO: checking for file" >&5
11800echo $ECHO_N "checking for file... $ECHO_C" >&6
11801if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11802  echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804  case $MAGIC_CMD in
11805[\\/*] |  ?:[\\/]*)
11806  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11807  ;;
11808*)
11809  lt_save_MAGIC_CMD="$MAGIC_CMD"
11810  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11811  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11812  for ac_dir in $ac_dummy; do
11813    IFS="$lt_save_ifs"
11814    test -z "$ac_dir" && ac_dir=.
11815    if test -f $ac_dir/file; then
11816      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11817      if test -n "$file_magic_test_file"; then
11818	case $deplibs_check_method in
11819	"file_magic "*)
11820	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11821	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11823	    $EGREP "$file_magic_regex" > /dev/null; then
11824	    :
11825	  else
11826	    cat <<EOF 1>&2
11827
11828*** Warning: the command libtool uses to detect shared libraries,
11829*** $file_magic_cmd, produces output that libtool cannot recognize.
11830*** The result is that libtool may fail to recognize shared libraries
11831*** as such.  This will affect the creation of libtool libraries that
11832*** depend on shared libraries, but programs linked with such libtool
11833*** libraries will work regardless of this problem.  Nevertheless, you
11834*** may want to report the problem to your system manager and/or to
11835*** bug-libtool@gnu.org
11836
11837EOF
11838	  fi ;;
11839	esac
11840      fi
11841      break
11842    fi
11843  done
11844  IFS="$lt_save_ifs"
11845  MAGIC_CMD="$lt_save_MAGIC_CMD"
11846  ;;
11847esac
11848fi
11849
11850MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11851if test -n "$MAGIC_CMD"; then
11852  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11853echo "${ECHO_T}$MAGIC_CMD" >&6
11854else
11855  echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6
11857fi
11858
11859  else
11860    MAGIC_CMD=:
11861  fi
11862fi
11863
11864  fi
11865  ;;
11866esac
11867
11868enable_dlopen=yes
11869enable_win32_dll=no
11870
11871# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11872if test "${enable_libtool_lock+set}" = set; then
11873  enableval="$enable_libtool_lock"
11874
11875fi;
11876test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11877
11878
11879# Check whether --with-pic or --without-pic was given.
11880if test "${with_pic+set}" = set; then
11881  withval="$with_pic"
11882  pic_mode="$withval"
11883else
11884  pic_mode=default
11885fi;
11886test -z "$pic_mode" && pic_mode=default
11887
11888# Use C for the default configuration in the libtool script
11889tagname=
11890lt_save_CC="$CC"
11891ac_ext=c
11892ac_cpp='$CPP $CPPFLAGS'
11893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897
11898# Source file extension for C test sources.
11899ac_ext=c
11900
11901# Object file extension for compiled C test sources.
11902objext=o
11903objext=$objext
11904
11905# Code to be used in simple compile tests
11906lt_simple_compile_test_code="int some_variable = 0;\n"
11907
11908# Code to be used in simple link tests
11909lt_simple_link_test_code='int main(){return(0);}\n'
11910
11911
11912# If no C compiler was specified, use CC.
11913LTCC=${LTCC-"$CC"}
11914
11915# Allow CC to be a program name with arguments.
11916compiler=$CC
11917
11918
11919#
11920# Check for any special shared library compilation flags.
11921#
11922lt_prog_cc_shlib=
11923if test "$GCC" = no; then
11924  case $host_os in
11925  sco3.2v5*)
11926    lt_prog_cc_shlib='-belf'
11927    ;;
11928  esac
11929fi
11930if test -n "$lt_prog_cc_shlib"; then
11931  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11932echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11933  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11934  else
11935    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11936echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11937    lt_cv_prog_cc_can_build_shared=no
11938  fi
11939fi
11940
11941
11942#
11943# Check to make sure the static flag actually works.
11944#
11945echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11946echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11947if test "${lt_prog_compiler_static_works+set}" = set; then
11948  echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950  lt_prog_compiler_static_works=no
11951   save_LDFLAGS="$LDFLAGS"
11952   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11953   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11954   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11955     # The compiler can only warn and ignore the option if not recognized
11956     # So say no if there are warnings
11957     if test -s conftest.err; then
11958       # Append any errors to the config.log.
11959       cat conftest.err 1>&5
11960     else
11961       lt_prog_compiler_static_works=yes
11962     fi
11963   fi
11964   $rm conftest*
11965   LDFLAGS="$save_LDFLAGS"
11966
11967fi
11968echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11969echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11970
11971if test x"$lt_prog_compiler_static_works" = xyes; then
11972    :
11973else
11974    lt_prog_compiler_static=
11975fi
11976
11977
11978
11979
11980lt_prog_compiler_no_builtin_flag=
11981
11982if test "$GCC" = yes; then
11983  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11984
11985
11986echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11987echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11988if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11989  echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991  lt_cv_prog_compiler_rtti_exceptions=no
11992  ac_outfile=conftest.$ac_objext
11993   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11994   lt_compiler_flag="-fno-rtti -fno-exceptions"
11995   # Insert the option either (1) after the last *FLAGS variable, or
11996   # (2) before a word containing "conftest.", or (3) at the end.
11997   # Note that $ac_compile itself does not contain backslashes and begins
11998   # with a dollar sign (not a hyphen), so the echo should work correctly.
11999   # The option is referenced via a variable to avoid confusing sed.
12000   lt_compile=`echo "$ac_compile" | $SED \
12001   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12003   -e 's:$: $lt_compiler_flag:'`
12004   (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12005   (eval "$lt_compile" 2>conftest.err)
12006   ac_status=$?
12007   cat conftest.err >&5
12008   echo "$as_me:12008: \$? = $ac_status" >&5
12009   if (exit $ac_status) && test -s "$ac_outfile"; then
12010     # The compiler can only warn and ignore the option if not recognized
12011     # So say no if there are warnings
12012     if test ! -s conftest.err; then
12013       lt_cv_prog_compiler_rtti_exceptions=yes
12014     fi
12015   fi
12016   $rm conftest*
12017
12018fi
12019echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12020echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12021
12022if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12023    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12024else
12025    :
12026fi
12027
12028fi
12029
12030lt_prog_compiler_wl=
12031lt_prog_compiler_pic=
12032lt_prog_compiler_static=
12033
12034echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12035echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12036
12037  if test "$GCC" = yes; then
12038    lt_prog_compiler_wl='-Wl,'
12039    lt_prog_compiler_static='-static'
12040
12041    case $host_os in
12042      aix*)
12043      # All AIX code is PIC.
12044      if test "$host_cpu" = ia64; then
12045	# AIX 5 now supports IA64 processor
12046	lt_prog_compiler_static='-Bstatic'
12047      fi
12048      ;;
12049
12050    amigaos*)
12051      # FIXME: we need at least 68020 code to build shared libraries, but
12052      # adding the `-m68020' flag to GCC prevents building anything better,
12053      # like `-m68040'.
12054      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12055      ;;
12056
12057    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12058      # PIC is the default for these OSes.
12059      ;;
12060
12061    mingw* | pw32* | os2*)
12062      # This hack is so that the source file can tell whether it is being
12063      # built for inclusion in a dll (and should export symbols for example).
12064      lt_prog_compiler_pic='-DDLL_EXPORT'
12065      ;;
12066
12067    darwin* | rhapsody*)
12068      # PIC is the default on this platform
12069      # Common symbols not allowed in MH_DYLIB files
12070      lt_prog_compiler_pic='-fno-common'
12071      ;;
12072
12073    msdosdjgpp*)
12074      # Just because we use GCC doesn't mean we suddenly get shared libraries
12075      # on systems that don't support them.
12076      lt_prog_compiler_can_build_shared=no
12077      enable_shared=no
12078      ;;
12079
12080    sysv4*MP*)
12081      if test -d /usr/nec; then
12082	lt_prog_compiler_pic=-Kconform_pic
12083      fi
12084      ;;
12085
12086    hpux*)
12087      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088      # not for PA HP-UX.
12089      case "$host_cpu" in
12090      hppa*64*|ia64*)
12091	# +Z the default
12092	;;
12093      *)
12094	lt_prog_compiler_pic='-fPIC'
12095	;;
12096      esac
12097      ;;
12098
12099    *)
12100      lt_prog_compiler_pic='-fPIC'
12101      ;;
12102    esac
12103  else
12104    # PORTME Check for flag to pass linker flags through the system compiler.
12105    case $host_os in
12106    aix*)
12107      lt_prog_compiler_wl='-Wl,'
12108      if test "$host_cpu" = ia64; then
12109	# AIX 5 now supports IA64 processor
12110	lt_prog_compiler_static='-Bstatic'
12111      else
12112	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12113      fi
12114      ;;
12115      darwin*)
12116        # PIC is the default on this platform
12117        # Common symbols not allowed in MH_DYLIB files
12118       case "$cc_basename" in
12119         xlc*)
12120         lt_prog_compiler_pic='-qnocommon'
12121         lt_prog_compiler_wl='-Wl,'
12122         ;;
12123       esac
12124       ;;
12125
12126    mingw* | pw32* | os2*)
12127      # This hack is so that the source file can tell whether it is being
12128      # built for inclusion in a dll (and should export symbols for example).
12129      lt_prog_compiler_pic='-DDLL_EXPORT'
12130      ;;
12131
12132    hpux9* | hpux10* | hpux11*)
12133      lt_prog_compiler_wl='-Wl,'
12134      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12135      # not for PA HP-UX.
12136      case "$host_cpu" in
12137      hppa*64*|ia64*)
12138	# +Z the default
12139	;;
12140      *)
12141	lt_prog_compiler_pic='+Z'
12142	;;
12143      esac
12144      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12145      lt_prog_compiler_static='${wl}-a ${wl}archive'
12146      ;;
12147
12148    irix5* | irix6* | nonstopux*)
12149      lt_prog_compiler_wl='-Wl,'
12150      # PIC (with -KPIC) is the default.
12151      lt_prog_compiler_static='-non_shared'
12152      ;;
12153
12154    newsos6)
12155      lt_prog_compiler_pic='-KPIC'
12156      lt_prog_compiler_static='-Bstatic'
12157      ;;
12158
12159    linux*)
12160      case $CC in
12161      icc* | ecc*)
12162	lt_prog_compiler_wl='-Wl,'
12163	lt_prog_compiler_pic='-KPIC'
12164	lt_prog_compiler_static='-static'
12165        ;;
12166      ccc*)
12167        lt_prog_compiler_wl='-Wl,'
12168        # All Alpha code is PIC.
12169        lt_prog_compiler_static='-non_shared'
12170        ;;
12171      esac
12172      ;;
12173
12174    osf3* | osf4* | osf5*)
12175      lt_prog_compiler_wl='-Wl,'
12176      # All OSF/1 code is PIC.
12177      lt_prog_compiler_static='-non_shared'
12178      ;;
12179
12180    sco3.2v5*)
12181      lt_prog_compiler_pic='-Kpic'
12182      lt_prog_compiler_static='-dn'
12183      ;;
12184
12185    solaris*)
12186      lt_prog_compiler_wl='-Wl,'
12187      lt_prog_compiler_pic='-KPIC'
12188      lt_prog_compiler_static='-Bstatic'
12189      ;;
12190
12191    sunos4*)
12192      lt_prog_compiler_wl='-Qoption ld '
12193      lt_prog_compiler_pic='-PIC'
12194      lt_prog_compiler_static='-Bstatic'
12195      ;;
12196
12197    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12198      lt_prog_compiler_wl='-Wl,'
12199      lt_prog_compiler_pic='-KPIC'
12200      lt_prog_compiler_static='-Bstatic'
12201      ;;
12202
12203    sysv4*MP*)
12204      if test -d /usr/nec ;then
12205	lt_prog_compiler_pic='-Kconform_pic'
12206	lt_prog_compiler_static='-Bstatic'
12207      fi
12208      ;;
12209
12210    uts4*)
12211      lt_prog_compiler_pic='-pic'
12212      lt_prog_compiler_static='-Bstatic'
12213      ;;
12214
12215    *)
12216      lt_prog_compiler_can_build_shared=no
12217      ;;
12218    esac
12219  fi
12220
12221echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12222echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12223
12224#
12225# Check to make sure the PIC flag actually works.
12226#
12227if test -n "$lt_prog_compiler_pic"; then
12228
12229echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12230echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12231if test "${lt_prog_compiler_pic_works+set}" = set; then
12232  echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
12234  lt_prog_compiler_pic_works=no
12235  ac_outfile=conftest.$ac_objext
12236   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12237   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12238   # Insert the option either (1) after the last *FLAGS variable, or
12239   # (2) before a word containing "conftest.", or (3) at the end.
12240   # Note that $ac_compile itself does not contain backslashes and begins
12241   # with a dollar sign (not a hyphen), so the echo should work correctly.
12242   # The option is referenced via a variable to avoid confusing sed.
12243   lt_compile=`echo "$ac_compile" | $SED \
12244   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12246   -e 's:$: $lt_compiler_flag:'`
12247   (eval echo "\"\$as_me:12247: $lt_compile\"" >&5)
12248   (eval "$lt_compile" 2>conftest.err)
12249   ac_status=$?
12250   cat conftest.err >&5
12251   echo "$as_me:12251: \$? = $ac_status" >&5
12252   if (exit $ac_status) && test -s "$ac_outfile"; then
12253     # The compiler can only warn and ignore the option if not recognized
12254     # So say no if there are warnings
12255     if test ! -s conftest.err; then
12256       lt_prog_compiler_pic_works=yes
12257     fi
12258   fi
12259   $rm conftest*
12260
12261fi
12262echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12263echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12264
12265if test x"$lt_prog_compiler_pic_works" = xyes; then
12266    case $lt_prog_compiler_pic in
12267     "" | " "*) ;;
12268     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12269     esac
12270else
12271    lt_prog_compiler_pic=
12272     lt_prog_compiler_can_build_shared=no
12273fi
12274
12275fi
12276case "$host_os" in
12277  # For platforms which do not support PIC, -DPIC is meaningless:
12278  *djgpp*)
12279    lt_prog_compiler_pic=
12280    ;;
12281  *)
12282    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12283    ;;
12284esac
12285
12286echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12287echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12288if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12289  echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291  lt_cv_prog_compiler_c_o=no
12292   $rm -r conftest 2>/dev/null
12293   mkdir conftest
12294   cd conftest
12295   mkdir out
12296   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12297
12298   lt_compiler_flag="-o out/conftest2.$ac_objext"
12299   # Insert the option either (1) after the last *FLAGS variable, or
12300   # (2) before a word containing "conftest.", or (3) at the end.
12301   # Note that $ac_compile itself does not contain backslashes and begins
12302   # with a dollar sign (not a hyphen), so the echo should work correctly.
12303   lt_compile=`echo "$ac_compile" | $SED \
12304   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12305   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306   -e 's:$: $lt_compiler_flag:'`
12307   (eval echo "\"\$as_me:12307: $lt_compile\"" >&5)
12308   (eval "$lt_compile" 2>out/conftest.err)
12309   ac_status=$?
12310   cat out/conftest.err >&5
12311   echo "$as_me:12311: \$? = $ac_status" >&5
12312   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313   then
12314     # The compiler can only warn and ignore the option if not recognized
12315     # So say no if there are warnings
12316     if test ! -s out/conftest.err; then
12317       lt_cv_prog_compiler_c_o=yes
12318     fi
12319   fi
12320   chmod u+w .
12321   $rm conftest*
12322   # SGI C++ compiler will create directory out/ii_files/ for
12323   # template instantiation
12324   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12325   $rm out/* && rmdir out
12326   cd ..
12327   rmdir conftest
12328   $rm conftest*
12329
12330fi
12331echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12332echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12333
12334
12335hard_links="nottested"
12336if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12337  # do not overwrite the value of need_locks provided by the user
12338  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12339echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12340  hard_links=yes
12341  $rm conftest*
12342  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343  touch conftest.a
12344  ln conftest.a conftest.b 2>&5 || hard_links=no
12345  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12346  echo "$as_me:$LINENO: result: $hard_links" >&5
12347echo "${ECHO_T}$hard_links" >&6
12348  if test "$hard_links" = no; then
12349    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12350echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12351    need_locks=warn
12352  fi
12353else
12354  need_locks=no
12355fi
12356
12357echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12358echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12359
12360  runpath_var=
12361  allow_undefined_flag=
12362  enable_shared_with_static_runtimes=no
12363  archive_cmds=
12364  archive_expsym_cmds=
12365  old_archive_From_new_cmds=
12366  old_archive_from_expsyms_cmds=
12367  export_dynamic_flag_spec=
12368  whole_archive_flag_spec=
12369  thread_safe_flag_spec=
12370  hardcode_libdir_flag_spec=
12371  hardcode_libdir_flag_spec_ld=
12372  hardcode_libdir_separator=
12373  hardcode_direct=no
12374  hardcode_minus_L=no
12375  hardcode_shlibpath_var=unsupported
12376  link_all_deplibs=unknown
12377  hardcode_automatic=no
12378  module_cmds=
12379  module_expsym_cmds=
12380  always_export_symbols=no
12381  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12382  # include_expsyms should be a list of space-separated symbols to be *always*
12383  # included in the symbol list
12384  include_expsyms=
12385  # exclude_expsyms can be an extended regexp of symbols to exclude
12386  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12387  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12388  # as well as any symbol that contains `d'.
12389  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12390  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12391  # platforms (ab)use it in PIC code, but their linkers get confused if
12392  # the symbol is explicitly referenced.  Since portable code cannot
12393  # rely on this symbol name, it's probably fine to never include it in
12394  # preloaded symbol tables.
12395  extract_expsyms_cmds=
12396
12397  case $host_os in
12398  cygwin* | mingw* | pw32*)
12399    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12400    # When not using gcc, we currently assume that we are using
12401    # Microsoft Visual C++.
12402    if test "$GCC" != yes; then
12403      with_gnu_ld=no
12404    fi
12405    ;;
12406  openbsd*)
12407    with_gnu_ld=no
12408    ;;
12409  esac
12410
12411  ld_shlibs=yes
12412  if test "$with_gnu_ld" = yes; then
12413    # If archive_cmds runs LD, not CC, wlarc should be empty
12414    wlarc='${wl}'
12415
12416    # See if GNU ld supports shared libraries.
12417    case $host_os in
12418    aix3* | aix4* | aix5*)
12419      # On AIX/PPC, the GNU linker is very broken
12420      if test "$host_cpu" != ia64; then
12421	ld_shlibs=no
12422	cat <<EOF 1>&2
12423
12424*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12425*** to be unable to reliably create shared libraries on AIX.
12426*** Therefore, libtool is disabling shared libraries support.  If you
12427*** really care for shared libraries, you may want to modify your PATH
12428*** so that a non-GNU linker is found, and then restart.
12429
12430EOF
12431      fi
12432      ;;
12433
12434    amigaos*)
12435      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)'
12436      hardcode_libdir_flag_spec='-L$libdir'
12437      hardcode_minus_L=yes
12438
12439      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12440      # that the semantics of dynamic libraries on AmigaOS, at least up
12441      # to version 4, is to share data among multiple programs linked
12442      # with the same dynamic library.  Since this doesn't match the
12443      # behavior of shared libraries on other platforms, we can't use
12444      # them.
12445      ld_shlibs=no
12446      ;;
12447
12448    beos*)
12449      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12450	allow_undefined_flag=unsupported
12451	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12452	# support --undefined.  This deserves some investigation.  FIXME
12453	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454      else
12455	ld_shlibs=no
12456      fi
12457      ;;
12458
12459    cygwin* | mingw* | pw32*)
12460      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12461      # as there is no search path for DLLs.
12462      hardcode_libdir_flag_spec='-L$libdir'
12463      allow_undefined_flag=unsupported
12464      always_export_symbols=no
12465      enable_shared_with_static_runtimes=yes
12466      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12467
12468      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12469        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12470	# If the export-symbols file already is a .def file (1st line
12471	# is EXPORTS), use it as is; otherwise, prepend...
12472	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12473	  cp $export_symbols $output_objdir/$soname.def;
12474	else
12475	  echo EXPORTS > $output_objdir/$soname.def;
12476	  cat $export_symbols >> $output_objdir/$soname.def;
12477	fi~
12478	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12479      else
12480	ld_shlibs=no
12481      fi
12482      ;;
12483
12484    netbsd*)
12485      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12486	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12487	wlarc=
12488      else
12489	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12491      fi
12492      ;;
12493
12494    solaris* | sysv5*)
12495      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12496	ld_shlibs=no
12497	cat <<EOF 1>&2
12498
12499*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12500*** create shared libraries on Solaris systems.  Therefore, libtool
12501*** is disabling shared libraries support.  We urge you to upgrade GNU
12502*** binutils to release 2.9.1 or newer.  Another option is to modify
12503*** your PATH or compiler configuration so that the native linker is
12504*** used, and then restart.
12505
12506EOF
12507      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12508	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510      else
12511	ld_shlibs=no
12512      fi
12513      ;;
12514
12515    sunos4*)
12516      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12517      wlarc=
12518      hardcode_direct=yes
12519      hardcode_shlibpath_var=no
12520      ;;
12521
12522  linux*)
12523    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12524        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525	archive_cmds="$tmp_archive_cmds"
12526      supports_anon_versioning=no
12527      case `$LD -v 2>/dev/null` in
12528        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12529        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12530        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12531        *\ 2.11.*) ;; # other 2.11 versions
12532        *) supports_anon_versioning=yes ;;
12533      esac
12534      if test $supports_anon_versioning = yes; then
12535        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12536cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12537$echo "local: *; };" >> $output_objdir/$libname.ver~
12538        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12539      else
12540        archive_expsym_cmds="$tmp_archive_cmds"
12541      fi
12542    else
12543      ld_shlibs=no
12544    fi
12545    ;;
12546
12547    *)
12548      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12549	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12550	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12551      else
12552	ld_shlibs=no
12553      fi
12554      ;;
12555    esac
12556
12557    if test "$ld_shlibs" = yes; then
12558      runpath_var=LD_RUN_PATH
12559      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12560      export_dynamic_flag_spec='${wl}--export-dynamic'
12561      # ancient GNU ld didn't support --whole-archive et. al.
12562      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12563 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12564      else
12565  	whole_archive_flag_spec=
12566      fi
12567    fi
12568  else
12569    # PORTME fill in a description of your system's linker (not GNU ld)
12570    case $host_os in
12571    aix3*)
12572      allow_undefined_flag=unsupported
12573      always_export_symbols=yes
12574      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'
12575      # Note: this linker hardcodes the directories in LIBPATH if there
12576      # are no directories specified by -L.
12577      hardcode_minus_L=yes
12578      if test "$GCC" = yes && test -z "$link_static_flag"; then
12579	# Neither direct hardcoding nor static linking is supported with a
12580	# broken collect2.
12581	hardcode_direct=unsupported
12582      fi
12583      ;;
12584
12585    aix4* | aix5*)
12586      if test "$host_cpu" = ia64; then
12587	# On IA64, the linker does run time linking by default, so we don't
12588	# have to do anything special.
12589	aix_use_runtimelinking=no
12590	exp_sym_flag='-Bexport'
12591	no_entry_flag=""
12592      else
12593	# If we're using GNU nm, then we don't want the "-C" option.
12594	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12595	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12596	  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'
12597	else
12598	  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'
12599	fi
12600	aix_use_runtimelinking=no
12601
12602	# Test if we are trying to use run time linking or normal
12603	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12604	# need to do runtime linking.
12605	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12606	  for ld_flag in $LDFLAGS; do
12607  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12608  	    aix_use_runtimelinking=yes
12609  	    break
12610  	  fi
12611	  done
12612	esac
12613
12614	exp_sym_flag='-bexport'
12615	no_entry_flag='-bnoentry'
12616      fi
12617
12618      # When large executables or shared objects are built, AIX ld can
12619      # have problems creating the table of contents.  If linking a library
12620      # or program results in "error TOC overflow" add -mminimal-toc to
12621      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12622      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12623
12624      archive_cmds=''
12625      hardcode_direct=yes
12626      hardcode_libdir_separator=':'
12627      link_all_deplibs=yes
12628
12629      if test "$GCC" = yes; then
12630	case $host_os in aix4.012|aix4.012.*)
12631	# We only want to do this on AIX 4.2 and lower, the check
12632	# below for broken collect2 doesn't work under 4.3+
12633	  collect2name=`${CC} -print-prog-name=collect2`
12634	  if test -f "$collect2name" && \
12635  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12636	  then
12637  	  # We have reworked collect2
12638  	  hardcode_direct=yes
12639	  else
12640  	  # We have old collect2
12641  	  hardcode_direct=unsupported
12642  	  # It fails to find uninstalled libraries when the uninstalled
12643  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12644  	  # to unsupported forces relinking
12645  	  hardcode_minus_L=yes
12646  	  hardcode_libdir_flag_spec='-L$libdir'
12647  	  hardcode_libdir_separator=
12648	  fi
12649	esac
12650	shared_flag='-shared'
12651      else
12652	# not using gcc
12653	if test "$host_cpu" = ia64; then
12654  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12655  	# chokes on -Wl,-G. The following line is correct:
12656	  shared_flag='-G'
12657	else
12658  	if test "$aix_use_runtimelinking" = yes; then
12659	    shared_flag='${wl}-G'
12660	  else
12661	    shared_flag='${wl}-bM:SRE'
12662  	fi
12663	fi
12664      fi
12665
12666      # It seems that -bexpall does not export symbols beginning with
12667      # underscore (_), so it is better to generate a list of symbols to export.
12668      always_export_symbols=yes
12669      if test "$aix_use_runtimelinking" = yes; then
12670	# Warning - without using the other runtime loading flags (-brtl),
12671	# -berok will link without error, but may produce a broken library.
12672	allow_undefined_flag='-berok'
12673       # Determine the default libpath from the value encoded in an empty executable.
12674       cat >conftest.$ac_ext <<_ACEOF
12675/* confdefs.h.  */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
12679/* end confdefs.h.  */
12680
12681int
12682main ()
12683{
12684
12685  ;
12686  return 0;
12687}
12688_ACEOF
12689rm -f conftest.$ac_objext conftest$ac_exeext
12690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691  (eval $ac_link) 2>conftest.er1
12692  ac_status=$?
12693  grep -v '^ *+' conftest.er1 >conftest.err
12694  rm -f conftest.er1
12695  cat conftest.err >&5
12696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697  (exit $ac_status); } &&
12698	 { ac_try='test -z "$ac_c_werror_flag"
12699			 || test ! -s conftest.err'
12700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701  (eval $ac_try) 2>&5
12702  ac_status=$?
12703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704  (exit $ac_status); }; } &&
12705	 { ac_try='test -s conftest$ac_exeext'
12706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707  (eval $ac_try) 2>&5
12708  ac_status=$?
12709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710  (exit $ac_status); }; }; then
12711
12712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12713}'`
12714# Check for a 64-bit object if we didn't find anything.
12715if 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; }
12716}'`; fi
12717else
12718  echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721fi
12722rm -f conftest.err conftest.$ac_objext \
12723      conftest$ac_exeext conftest.$ac_ext
12724if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12725
12726       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12727	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"
12728       else
12729	if test "$host_cpu" = ia64; then
12730	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12731	  allow_undefined_flag="-z nodefs"
12732	  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"
12733	else
12734	 # Determine the default libpath from the value encoded in an empty executable.
12735	 cat >conftest.$ac_ext <<_ACEOF
12736/* confdefs.h.  */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h.  */
12741
12742int
12743main ()
12744{
12745
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext conftest$ac_exeext
12751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752  (eval $ac_link) 2>conftest.er1
12753  ac_status=$?
12754  grep -v '^ *+' conftest.er1 >conftest.err
12755  rm -f conftest.er1
12756  cat conftest.err >&5
12757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758  (exit $ac_status); } &&
12759	 { ac_try='test -z "$ac_c_werror_flag"
12760			 || test ! -s conftest.err'
12761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762  (eval $ac_try) 2>&5
12763  ac_status=$?
12764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765  (exit $ac_status); }; } &&
12766	 { ac_try='test -s conftest$ac_exeext'
12767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768  (eval $ac_try) 2>&5
12769  ac_status=$?
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); }; }; then
12772
12773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12774}'`
12775# Check for a 64-bit object if we didn't find anything.
12776if 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; }
12777}'`; fi
12778else
12779  echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782fi
12783rm -f conftest.err conftest.$ac_objext \
12784      conftest$ac_exeext conftest.$ac_ext
12785if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12786
12787	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12788	  # Warning - without using the other run time loading flags,
12789	  # -berok will link without error, but may produce a broken library.
12790	  no_undefined_flag=' ${wl}-bernotok'
12791	  allow_undefined_flag=' ${wl}-berok'
12792	  # -bexpall does not export symbols beginning with underscore (_)
12793	  always_export_symbols=yes
12794	  # Exported symbols can be pulled into shared objects from archives
12795	  whole_archive_flag_spec=' '
12796	  archive_cmds_need_lc=yes
12797	  # This is similar to how AIX traditionally builds it's shared libraries.
12798	  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'
12799	fi
12800      fi
12801      ;;
12802
12803    amigaos*)
12804      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)'
12805      hardcode_libdir_flag_spec='-L$libdir'
12806      hardcode_minus_L=yes
12807      # see comment about different semantics on the GNU ld section
12808      ld_shlibs=no
12809      ;;
12810
12811    bsdi[45]*)
12812      export_dynamic_flag_spec=-rdynamic
12813      ;;
12814
12815    cygwin* | mingw* | pw32*)
12816      # When not using gcc, we currently assume that we are using
12817      # Microsoft Visual C++.
12818      # hardcode_libdir_flag_spec is actually meaningless, as there is
12819      # no search path for DLLs.
12820      hardcode_libdir_flag_spec=' '
12821      allow_undefined_flag=unsupported
12822      # Tell ltmain to make .lib files, not .a files.
12823      libext=lib
12824      # Tell ltmain to make .dll files, not .so files.
12825      shrext_cmds=".dll"
12826      # FIXME: Setting linknames here is a bad hack.
12827      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12828      # The linker will automatically build a .lib file if we build a DLL.
12829      old_archive_From_new_cmds='true'
12830      # FIXME: Should let the user specify the lib program.
12831      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12832      fix_srcfile_path='`cygpath -w "$srcfile"`'
12833      enable_shared_with_static_runtimes=yes
12834      ;;
12835
12836    darwin* | rhapsody*)
12837      case "$host_os" in
12838        rhapsody* | darwin1.[012])
12839         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12840         ;;
12841       *) # Darwin 1.3 on
12842         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12843           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844         else
12845           case ${MACOSX_DEPLOYMENT_TARGET} in
12846             10.[012])
12847               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12848               ;;
12849             10.*)
12850               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12851               ;;
12852           esac
12853         fi
12854         ;;
12855      esac
12856      archive_cmds_need_lc=no
12857      hardcode_direct=no
12858      hardcode_automatic=yes
12859      hardcode_shlibpath_var=unsupported
12860      whole_archive_flag_spec=''
12861      link_all_deplibs=yes
12862    if test "$GCC" = yes ; then
12863    	output_verbose_link_cmd='echo'
12864        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12865      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12866      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12867      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}'
12868      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}'
12869    else
12870      case "$cc_basename" in
12871        xlc*)
12872         output_verbose_link_cmd='echo'
12873         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12874         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12875          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12876         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}'
12877          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}'
12878          ;;
12879       *)
12880         ld_shlibs=no
12881          ;;
12882      esac
12883    fi
12884      ;;
12885
12886    dgux*)
12887      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12888      hardcode_libdir_flag_spec='-L$libdir'
12889      hardcode_shlibpath_var=no
12890      ;;
12891
12892    freebsd1*)
12893      ld_shlibs=no
12894      ;;
12895
12896    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12897    # support.  Future versions do this automatically, but an explicit c++rt0.o
12898    # does not break anything, and helps significantly (at the cost of a little
12899    # extra space).
12900    freebsd2.2*)
12901      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12902      hardcode_libdir_flag_spec='-R$libdir'
12903      hardcode_direct=yes
12904      hardcode_shlibpath_var=no
12905      ;;
12906
12907    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12908    freebsd2*)
12909      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12910      hardcode_direct=yes
12911      hardcode_minus_L=yes
12912      hardcode_shlibpath_var=no
12913      ;;
12914
12915    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12916    freebsd* | kfreebsd*-gnu)
12917      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12918      hardcode_libdir_flag_spec='-R$libdir'
12919      hardcode_direct=yes
12920      hardcode_shlibpath_var=no
12921      ;;
12922
12923    hpux9*)
12924      if test "$GCC" = yes; then
12925	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'
12926      else
12927	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'
12928      fi
12929      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12930      hardcode_libdir_separator=:
12931      hardcode_direct=yes
12932
12933      # hardcode_minus_L: Not really in the search PATH,
12934      # but as the default location of the library.
12935      hardcode_minus_L=yes
12936      export_dynamic_flag_spec='${wl}-E'
12937      ;;
12938
12939    hpux10* | hpux11*)
12940      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12941	case "$host_cpu" in
12942	hppa*64*|ia64*)
12943	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944	  ;;
12945	*)
12946	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12947	  ;;
12948	esac
12949      else
12950	case "$host_cpu" in
12951	hppa*64*|ia64*)
12952	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12953	  ;;
12954	*)
12955	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12956	  ;;
12957	esac
12958      fi
12959      if test "$with_gnu_ld" = no; then
12960	case "$host_cpu" in
12961	hppa*64*)
12962	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12963	  hardcode_libdir_flag_spec_ld='+b $libdir'
12964	  hardcode_libdir_separator=:
12965	  hardcode_direct=no
12966	  hardcode_shlibpath_var=no
12967	  ;;
12968	ia64*)
12969	  hardcode_libdir_flag_spec='-L$libdir'
12970	  hardcode_direct=no
12971	  hardcode_shlibpath_var=no
12972
12973	  # hardcode_minus_L: Not really in the search PATH,
12974	  # but as the default location of the library.
12975	  hardcode_minus_L=yes
12976	  ;;
12977	*)
12978	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12979	  hardcode_libdir_separator=:
12980	  hardcode_direct=yes
12981	  export_dynamic_flag_spec='${wl}-E'
12982
12983	  # hardcode_minus_L: Not really in the search PATH,
12984	  # but as the default location of the library.
12985	  hardcode_minus_L=yes
12986	  ;;
12987	esac
12988      fi
12989      ;;
12990
12991    irix5* | irix6* | nonstopux*)
12992      if test "$GCC" = yes; then
12993	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'
12994      else
12995	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'
12996	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12997      fi
12998      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12999      hardcode_libdir_separator=:
13000      link_all_deplibs=yes
13001      ;;
13002
13003    netbsd*)
13004      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13005	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13006      else
13007	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13008      fi
13009      hardcode_libdir_flag_spec='-R$libdir'
13010      hardcode_direct=yes
13011      hardcode_shlibpath_var=no
13012      ;;
13013
13014    newsos6)
13015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016      hardcode_direct=yes
13017      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13018      hardcode_libdir_separator=:
13019      hardcode_shlibpath_var=no
13020      ;;
13021
13022    openbsd*)
13023      hardcode_direct=yes
13024      hardcode_shlibpath_var=no
13025      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13026	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13027	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13028	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13029	export_dynamic_flag_spec='${wl}-E'
13030      else
13031       case $host_os in
13032	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13033	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13034	   hardcode_libdir_flag_spec='-R$libdir'
13035	   ;;
13036	 *)
13037	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13038	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13039	   ;;
13040       esac
13041      fi
13042      ;;
13043
13044    os2*)
13045      hardcode_libdir_flag_spec='-L$libdir'
13046      hardcode_minus_L=yes
13047      allow_undefined_flag=unsupported
13048      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'
13049      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13050      ;;
13051
13052    osf3*)
13053      if test "$GCC" = yes; then
13054	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13055	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'
13056      else
13057	allow_undefined_flag=' -expect_unresolved \*'
13058	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'
13059      fi
13060      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13061      hardcode_libdir_separator=:
13062      ;;
13063
13064    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13065      if test "$GCC" = yes; then
13066	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13067	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'
13068	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13069      else
13070	allow_undefined_flag=' -expect_unresolved \*'
13071	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'
13072	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13073	$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'
13074
13075	# Both c and cxx compiler support -rpath directly
13076	hardcode_libdir_flag_spec='-rpath $libdir'
13077      fi
13078      hardcode_libdir_separator=:
13079      ;;
13080
13081    sco3.2v5*)
13082      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13083      hardcode_shlibpath_var=no
13084      export_dynamic_flag_spec='${wl}-Bexport'
13085      runpath_var=LD_RUN_PATH
13086      hardcode_runpath_var=yes
13087      ;;
13088
13089    solaris*)
13090      no_undefined_flag=' -z text'
13091      if test "$GCC" = yes; then
13092	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13093	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13094	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13095      else
13096	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13098  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13099      fi
13100      hardcode_libdir_flag_spec='-R$libdir'
13101      hardcode_shlibpath_var=no
13102      case $host_os in
13103      solaris2.[0-5] | solaris2.[0-5].*) ;;
13104      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13105	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13106      esac
13107      link_all_deplibs=yes
13108      ;;
13109
13110    sunos4*)
13111      if test "x$host_vendor" = xsequent; then
13112	# Use $CC to link under sequent, because it throws in some extra .o
13113	# files that make .init and .fini sections work.
13114	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13115      else
13116	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13117      fi
13118      hardcode_libdir_flag_spec='-L$libdir'
13119      hardcode_direct=yes
13120      hardcode_minus_L=yes
13121      hardcode_shlibpath_var=no
13122      ;;
13123
13124    sysv4)
13125      case $host_vendor in
13126	sni)
13127	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13128	  hardcode_direct=yes # is this really true???
13129	;;
13130	siemens)
13131	  ## LD is ld it makes a PLAMLIB
13132	  ## CC just makes a GrossModule.
13133	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13134	  reload_cmds='$CC -r -o $output$reload_objs'
13135	  hardcode_direct=no
13136        ;;
13137	motorola)
13138	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13139	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13140	;;
13141      esac
13142      runpath_var='LD_RUN_PATH'
13143      hardcode_shlibpath_var=no
13144      ;;
13145
13146    sysv4.3*)
13147      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13148      hardcode_shlibpath_var=no
13149      export_dynamic_flag_spec='-Bexport'
13150      ;;
13151
13152    sysv4*MP*)
13153      if test -d /usr/nec; then
13154	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13155	hardcode_shlibpath_var=no
13156	runpath_var=LD_RUN_PATH
13157	hardcode_runpath_var=yes
13158	ld_shlibs=yes
13159      fi
13160      ;;
13161
13162    sysv4.2uw2*)
13163      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13164      hardcode_direct=yes
13165      hardcode_minus_L=no
13166      hardcode_shlibpath_var=no
13167      hardcode_runpath_var=yes
13168      runpath_var=LD_RUN_PATH
13169      ;;
13170
13171   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13172      no_undefined_flag='${wl}-z ${wl}text'
13173      if test "$GCC" = yes; then
13174	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175      else
13176	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13177      fi
13178      runpath_var='LD_RUN_PATH'
13179      hardcode_shlibpath_var=no
13180      ;;
13181
13182    sysv5*)
13183      no_undefined_flag=' -z text'
13184      # $CC -shared without GNU ld will not create a library from C++
13185      # object files and a static libstdc++, better avoid it by now
13186      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13187      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13188  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13189      hardcode_libdir_flag_spec=
13190      hardcode_shlibpath_var=no
13191      runpath_var='LD_RUN_PATH'
13192      ;;
13193
13194    uts4*)
13195      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13196      hardcode_libdir_flag_spec='-L$libdir'
13197      hardcode_shlibpath_var=no
13198      ;;
13199
13200    *)
13201      ld_shlibs=no
13202      ;;
13203    esac
13204  fi
13205
13206echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13207echo "${ECHO_T}$ld_shlibs" >&6
13208test "$ld_shlibs" = no && can_build_shared=no
13209
13210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211if test "$GCC" = yes; then
13212  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13213fi
13214
13215#
13216# Do we need to explicitly link libc?
13217#
13218case "x$archive_cmds_need_lc" in
13219x|xyes)
13220  # Assume -lc should be added
13221  archive_cmds_need_lc=yes
13222
13223  if test "$enable_shared" = yes && test "$GCC" = yes; then
13224    case $archive_cmds in
13225    *'~'*)
13226      # FIXME: we may have to deal with multi-command sequences.
13227      ;;
13228    '$CC '*)
13229      # Test whether the compiler implicitly links with -lc since on some
13230      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13231      # to ld, don't add -lc before -lgcc.
13232      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13233echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13234      $rm conftest*
13235      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13236
13237      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238  (eval $ac_compile) 2>&5
13239  ac_status=$?
13240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241  (exit $ac_status); } 2>conftest.err; then
13242        soname=conftest
13243        lib=conftest
13244        libobjs=conftest.$ac_objext
13245        deplibs=
13246        wl=$lt_prog_compiler_wl
13247        compiler_flags=-v
13248        linker_flags=-v
13249        verstring=
13250        output_objdir=.
13251        libname=conftest
13252        lt_save_allow_undefined_flag=$allow_undefined_flag
13253        allow_undefined_flag=
13254        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13255  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13256  ac_status=$?
13257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258  (exit $ac_status); }
13259        then
13260	  archive_cmds_need_lc=no
13261        else
13262	  archive_cmds_need_lc=yes
13263        fi
13264        allow_undefined_flag=$lt_save_allow_undefined_flag
13265      else
13266        cat conftest.err 1>&5
13267      fi
13268      $rm conftest*
13269      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13270echo "${ECHO_T}$archive_cmds_need_lc" >&6
13271      ;;
13272    esac
13273  fi
13274  ;;
13275esac
13276
13277echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13279library_names_spec=
13280libname_spec='lib$name'
13281soname_spec=
13282shrext_cmds=".so"
13283postinstall_cmds=
13284postuninstall_cmds=
13285finish_cmds=
13286finish_eval=
13287shlibpath_var=
13288shlibpath_overrides_runpath=unknown
13289version_type=none
13290dynamic_linker="$host_os ld.so"
13291sys_lib_dlsearch_path_spec="/lib /usr/lib"
13292if test "$GCC" = yes; then
13293  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13294  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13295    # if the path contains ";" then we assume it to be the separator
13296    # otherwise default to the standard path separator (i.e. ":") - it is
13297    # assumed that no part of a normal pathname contains ";" but that should
13298    # okay in the real world where ";" in dirpaths is itself problematic.
13299    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13300  else
13301    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13302  fi
13303else
13304  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13305fi
13306need_lib_prefix=unknown
13307hardcode_into_libs=no
13308
13309# when you set need_version to no, make sure it does not cause -set_version
13310# flags to be left without arguments
13311need_version=unknown
13312
13313case $host_os in
13314aix3*)
13315  version_type=linux
13316  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13317  shlibpath_var=LIBPATH
13318
13319  # AIX 3 has no versioning support, so we append a major version to the name.
13320  soname_spec='${libname}${release}${shared_ext}$major'
13321  ;;
13322
13323aix4* | aix5*)
13324  version_type=linux
13325  need_lib_prefix=no
13326  need_version=no
13327  hardcode_into_libs=yes
13328  if test "$host_cpu" = ia64; then
13329    # AIX 5 supports IA64
13330    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13331    shlibpath_var=LD_LIBRARY_PATH
13332  else
13333    # With GCC up to 2.95.x, collect2 would create an import file
13334    # for dependence libraries.  The import file would start with
13335    # the line `#! .'.  This would cause the generated library to
13336    # depend on `.', always an invalid library.  This was fixed in
13337    # development snapshots of GCC prior to 3.0.
13338    case $host_os in
13339      aix4 | aix4.[01] | aix4.[01].*)
13340      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13341	   echo ' yes '
13342	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13343	:
13344      else
13345	can_build_shared=no
13346      fi
13347      ;;
13348    esac
13349    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13350    # soname into executable. Probably we can add versioning support to
13351    # collect2, so additional links can be useful in future.
13352    if test "$aix_use_runtimelinking" = yes; then
13353      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13354      # instead of lib<name>.a to let people know that these are not
13355      # typical AIX shared libraries.
13356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357    else
13358      # We preserve .a as extension for shared libraries through AIX4.2
13359      # and later when we are not doing run time linking.
13360      library_names_spec='${libname}${release}.a $libname.a'
13361      soname_spec='${libname}${release}${shared_ext}$major'
13362    fi
13363    shlibpath_var=LIBPATH
13364  fi
13365  ;;
13366
13367amigaos*)
13368  library_names_spec='$libname.ixlibrary $libname.a'
13369  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13370  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'
13371  ;;
13372
13373beos*)
13374  library_names_spec='${libname}${shared_ext}'
13375  dynamic_linker="$host_os ld.so"
13376  shlibpath_var=LIBRARY_PATH
13377  ;;
13378
13379bsdi[45]*)
13380  version_type=linux
13381  need_version=no
13382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383  soname_spec='${libname}${release}${shared_ext}$major'
13384  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13385  shlibpath_var=LD_LIBRARY_PATH
13386  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13387  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13388  # the default ld.so.conf also contains /usr/contrib/lib and
13389  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13390  # libtool to hard-code these into programs
13391  ;;
13392
13393cygwin* | mingw* | pw32*)
13394  version_type=windows
13395  shrext_cmds=".dll"
13396  need_version=no
13397  need_lib_prefix=no
13398
13399  case $GCC,$host_os in
13400  yes,cygwin* | yes,mingw* | yes,pw32*)
13401    library_names_spec='$libname.dll.a'
13402    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13403    postinstall_cmds='base_file=`basename \${file}`~
13404      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13405      dldir=$destdir/`dirname \$dlpath`~
13406      test -d \$dldir || mkdir -p \$dldir~
13407      $install_prog $dir/$dlname \$dldir/$dlname'
13408    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13409      dlpath=$dir/\$dldll~
13410       $rm \$dlpath'
13411    shlibpath_overrides_runpath=yes
13412
13413    case $host_os in
13414    cygwin*)
13415      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13416      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13417      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13418      ;;
13419    mingw*)
13420      # MinGW DLLs use traditional 'lib' prefix
13421      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13422      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13423      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13424        # It is most probably a Windows format PATH printed by
13425        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13426        # path with ; separators, and with drive letters. We can handle the
13427        # drive letters (cygwin fileutils understands them), so leave them,
13428        # especially as we might pass files found there to a mingw objdump,
13429        # which wouldn't understand a cygwinified path. Ahh.
13430        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13431      else
13432        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13433      fi
13434      ;;
13435    pw32*)
13436      # pw32 DLLs use 'pw' prefix rather than 'lib'
13437      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13438      ;;
13439    esac
13440    ;;
13441
13442  *)
13443    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13444    ;;
13445  esac
13446  dynamic_linker='Win32 ld.exe'
13447  # FIXME: first we should search . and the directory the executable is in
13448  shlibpath_var=PATH
13449  ;;
13450
13451darwin* | rhapsody*)
13452  dynamic_linker="$host_os dyld"
13453  version_type=darwin
13454  need_lib_prefix=no
13455  need_version=no
13456  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13457  soname_spec='${libname}${release}${major}$shared_ext'
13458  shlibpath_overrides_runpath=yes
13459  shlibpath_var=DYLD_LIBRARY_PATH
13460  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13461  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13462  if test "$GCC" = yes; then
13463    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"`
13464  else
13465    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13466  fi
13467  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13468  ;;
13469
13470dgux*)
13471  version_type=linux
13472  need_lib_prefix=no
13473  need_version=no
13474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13475  soname_spec='${libname}${release}${shared_ext}$major'
13476  shlibpath_var=LD_LIBRARY_PATH
13477  ;;
13478
13479freebsd1*)
13480  dynamic_linker=no
13481  ;;
13482
13483kfreebsd*-gnu)
13484  version_type=linux
13485  need_lib_prefix=no
13486  need_version=no
13487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488  soname_spec='${libname}${release}${shared_ext}$major'
13489  shlibpath_var=LD_LIBRARY_PATH
13490  shlibpath_overrides_runpath=no
13491  hardcode_into_libs=yes
13492  dynamic_linker='GNU ld.so'
13493  ;;
13494
13495freebsd*)
13496  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13497  version_type=freebsd-$objformat
13498  case $version_type in
13499    freebsd-elf*)
13500      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13501      need_version=no
13502      need_lib_prefix=no
13503      ;;
13504    freebsd-*)
13505      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13506      need_version=yes
13507      ;;
13508  esac
13509  shlibpath_var=LD_LIBRARY_PATH
13510  case $host_os in
13511  freebsd2*)
13512    shlibpath_overrides_runpath=yes
13513    ;;
13514  freebsd3.01* | freebsdelf3.01*)
13515    shlibpath_overrides_runpath=yes
13516    hardcode_into_libs=yes
13517    ;;
13518  *) # from 3.2 on
13519    shlibpath_overrides_runpath=no
13520    hardcode_into_libs=yes
13521    ;;
13522  esac
13523  ;;
13524
13525gnu*)
13526  version_type=linux
13527  need_lib_prefix=no
13528  need_version=no
13529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13530  soname_spec='${libname}${release}${shared_ext}$major'
13531  shlibpath_var=LD_LIBRARY_PATH
13532  hardcode_into_libs=yes
13533  ;;
13534
13535hpux9* | hpux10* | hpux11*)
13536  # Give a soname corresponding to the major version so that dld.sl refuses to
13537  # link against other versions.
13538  version_type=sunos
13539  need_lib_prefix=no
13540  need_version=no
13541  case "$host_cpu" in
13542  ia64*)
13543    shrext_cmds='.so'
13544    hardcode_into_libs=yes
13545    dynamic_linker="$host_os dld.so"
13546    shlibpath_var=LD_LIBRARY_PATH
13547    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13548    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549    soname_spec='${libname}${release}${shared_ext}$major'
13550    if test "X$HPUX_IA64_MODE" = X32; then
13551      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13552    else
13553      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13554    fi
13555    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13556    ;;
13557   hppa*64*)
13558     shrext_cmds='.sl'
13559     hardcode_into_libs=yes
13560     dynamic_linker="$host_os dld.sl"
13561     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13562     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564     soname_spec='${libname}${release}${shared_ext}$major'
13565     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13567     ;;
13568   *)
13569    shrext_cmds='.sl'
13570    dynamic_linker="$host_os dld.sl"
13571    shlibpath_var=SHLIB_PATH
13572    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574    soname_spec='${libname}${release}${shared_ext}$major'
13575    ;;
13576  esac
13577  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13578  postinstall_cmds='chmod 555 $lib'
13579  ;;
13580
13581irix5* | irix6* | nonstopux*)
13582  case $host_os in
13583    nonstopux*) version_type=nonstopux ;;
13584    *)
13585	if test "$lt_cv_prog_gnu_ld" = yes; then
13586		version_type=linux
13587	else
13588		version_type=irix
13589	fi ;;
13590  esac
13591  need_lib_prefix=no
13592  need_version=no
13593  soname_spec='${libname}${release}${shared_ext}$major'
13594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13595  case $host_os in
13596  irix5* | nonstopux*)
13597    libsuff= shlibsuff=
13598    ;;
13599  *)
13600    case $LD in # libtool.m4 will add one of these switches to LD
13601    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13602      libsuff= shlibsuff= libmagic=32-bit;;
13603    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13604      libsuff=32 shlibsuff=N32 libmagic=N32;;
13605    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13606      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13607    *) libsuff= shlibsuff= libmagic=never-match;;
13608    esac
13609    ;;
13610  esac
13611  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13612  shlibpath_overrides_runpath=no
13613  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13614  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13615  hardcode_into_libs=yes
13616  ;;
13617
13618# No shared lib support for Linux oldld, aout, or coff.
13619linux*oldld* | linux*aout* | linux*coff*)
13620  dynamic_linker=no
13621  ;;
13622
13623# This must be Linux ELF.
13624linux*)
13625  version_type=linux
13626  need_lib_prefix=no
13627  need_version=no
13628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13629  soname_spec='${libname}${release}${shared_ext}$major'
13630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13631  shlibpath_var=LD_LIBRARY_PATH
13632  shlibpath_overrides_runpath=no
13633  # This implies no fast_install, which is unacceptable.
13634  # Some rework will be needed to allow for fast_install
13635  # before this can be enabled.
13636  hardcode_into_libs=yes
13637
13638  # Append ld.so.conf contents to the search path
13639  if test -f /etc/ld.so.conf; then
13640    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13641    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13642  fi
13643
13644  # We used to test for /lib/ld.so.1 and disable shared libraries on
13645  # powerpc, because MkLinux only supported shared libraries with the
13646  # GNU dynamic linker.  Since this was broken with cross compilers,
13647  # most powerpc-linux boxes support dynamic linking these days and
13648  # people can always --disable-shared, the test was removed, and we
13649  # assume the GNU/Linux dynamic linker is in use.
13650  dynamic_linker='GNU/Linux ld.so'
13651  ;;
13652
13653knetbsd*-gnu)
13654  version_type=linux
13655  need_lib_prefix=no
13656  need_version=no
13657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13658  soname_spec='${libname}${release}${shared_ext}$major'
13659  shlibpath_var=LD_LIBRARY_PATH
13660  shlibpath_overrides_runpath=no
13661  hardcode_into_libs=yes
13662  dynamic_linker='GNU ld.so'
13663  ;;
13664
13665netbsd*)
13666  version_type=sunos
13667  need_lib_prefix=no
13668  need_version=no
13669  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13671    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13672    dynamic_linker='NetBSD (a.out) ld.so'
13673  else
13674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13675    soname_spec='${libname}${release}${shared_ext}$major'
13676    dynamic_linker='NetBSD ld.elf_so'
13677  fi
13678  shlibpath_var=LD_LIBRARY_PATH
13679  shlibpath_overrides_runpath=yes
13680  hardcode_into_libs=yes
13681  ;;
13682
13683newsos6)
13684  version_type=linux
13685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686  shlibpath_var=LD_LIBRARY_PATH
13687  shlibpath_overrides_runpath=yes
13688  ;;
13689
13690nto-qnx*)
13691  version_type=linux
13692  need_lib_prefix=no
13693  need_version=no
13694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695  soname_spec='${libname}${release}${shared_ext}$major'
13696  shlibpath_var=LD_LIBRARY_PATH
13697  shlibpath_overrides_runpath=yes
13698  ;;
13699
13700openbsd*)
13701  version_type=sunos
13702  need_lib_prefix=no
13703  need_version=no
13704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13705  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13706  shlibpath_var=LD_LIBRARY_PATH
13707  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13708    case $host_os in
13709      openbsd2.[89] | openbsd2.[89].*)
13710	shlibpath_overrides_runpath=no
13711	;;
13712      *)
13713	shlibpath_overrides_runpath=yes
13714	;;
13715      esac
13716  else
13717    shlibpath_overrides_runpath=yes
13718  fi
13719  ;;
13720
13721os2*)
13722  libname_spec='$name'
13723  shrext_cmds=".dll"
13724  need_lib_prefix=no
13725  library_names_spec='$libname${shared_ext} $libname.a'
13726  dynamic_linker='OS/2 ld.exe'
13727  shlibpath_var=LIBPATH
13728  ;;
13729
13730osf3* | osf4* | osf5*)
13731  version_type=osf
13732  need_lib_prefix=no
13733  need_version=no
13734  soname_spec='${libname}${release}${shared_ext}$major'
13735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736  shlibpath_var=LD_LIBRARY_PATH
13737  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13738  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13739  ;;
13740
13741sco3.2v5*)
13742  version_type=osf
13743  soname_spec='${libname}${release}${shared_ext}$major'
13744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745  shlibpath_var=LD_LIBRARY_PATH
13746  ;;
13747
13748solaris*)
13749  version_type=linux
13750  need_lib_prefix=no
13751  need_version=no
13752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753  soname_spec='${libname}${release}${shared_ext}$major'
13754  shlibpath_var=LD_LIBRARY_PATH
13755  shlibpath_overrides_runpath=yes
13756  hardcode_into_libs=yes
13757  # ldd complains unless libraries are executable
13758  postinstall_cmds='chmod +x $lib'
13759  ;;
13760
13761sunos4*)
13762  version_type=sunos
13763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13764  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13765  shlibpath_var=LD_LIBRARY_PATH
13766  shlibpath_overrides_runpath=yes
13767  if test "$with_gnu_ld" = yes; then
13768    need_lib_prefix=no
13769  fi
13770  need_version=yes
13771  ;;
13772
13773sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13774  version_type=linux
13775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776  soname_spec='${libname}${release}${shared_ext}$major'
13777  shlibpath_var=LD_LIBRARY_PATH
13778  case $host_vendor in
13779    sni)
13780      shlibpath_overrides_runpath=no
13781      need_lib_prefix=no
13782      export_dynamic_flag_spec='${wl}-Blargedynsym'
13783      runpath_var=LD_RUN_PATH
13784      ;;
13785    siemens)
13786      need_lib_prefix=no
13787      ;;
13788    motorola)
13789      need_lib_prefix=no
13790      need_version=no
13791      shlibpath_overrides_runpath=no
13792      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13793      ;;
13794  esac
13795  ;;
13796
13797sysv4*MP*)
13798  if test -d /usr/nec ;then
13799    version_type=linux
13800    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13801    soname_spec='$libname${shared_ext}.$major'
13802    shlibpath_var=LD_LIBRARY_PATH
13803  fi
13804  ;;
13805
13806uts4*)
13807  version_type=linux
13808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13809  soname_spec='${libname}${release}${shared_ext}$major'
13810  shlibpath_var=LD_LIBRARY_PATH
13811  ;;
13812
13813*)
13814  dynamic_linker=no
13815  ;;
13816esac
13817echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13818echo "${ECHO_T}$dynamic_linker" >&6
13819test "$dynamic_linker" = no && can_build_shared=no
13820
13821echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13822echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13823hardcode_action=
13824if test -n "$hardcode_libdir_flag_spec" || \
13825   test -n "$runpath_var" || \
13826   test "X$hardcode_automatic" = "Xyes" ; then
13827
13828  # We can hardcode non-existant directories.
13829  if test "$hardcode_direct" != no &&
13830     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13831     # have to relink, otherwise we might link with an installed library
13832     # when we should be linking with a yet-to-be-installed one
13833     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13834     test "$hardcode_minus_L" != no; then
13835    # Linking always hardcodes the temporary library directory.
13836    hardcode_action=relink
13837  else
13838    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13839    hardcode_action=immediate
13840  fi
13841else
13842  # We cannot hardcode anything, or else we can only hardcode existing
13843  # directories.
13844  hardcode_action=unsupported
13845fi
13846echo "$as_me:$LINENO: result: $hardcode_action" >&5
13847echo "${ECHO_T}$hardcode_action" >&6
13848
13849if test "$hardcode_action" = relink; then
13850  # Fast installation is not supported
13851  enable_fast_install=no
13852elif test "$shlibpath_overrides_runpath" = yes ||
13853     test "$enable_shared" = no; then
13854  # Fast installation is not necessary
13855  enable_fast_install=needless
13856fi
13857
13858striplib=
13859old_striplib=
13860echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13861echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13862if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13863  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13864  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13865  echo "$as_me:$LINENO: result: yes" >&5
13866echo "${ECHO_T}yes" >&6
13867else
13868# FIXME - insert some real tests, host_os isn't really good enough
13869  case $host_os in
13870   darwin*)
13871       if test -n "$STRIP" ; then
13872         striplib="$STRIP -x"
13873         echo "$as_me:$LINENO: result: yes" >&5
13874echo "${ECHO_T}yes" >&6
13875       else
13876  echo "$as_me:$LINENO: result: no" >&5
13877echo "${ECHO_T}no" >&6
13878fi
13879       ;;
13880   *)
13881  echo "$as_me:$LINENO: result: no" >&5
13882echo "${ECHO_T}no" >&6
13883    ;;
13884  esac
13885fi
13886
13887if test "x$enable_dlopen" != xyes; then
13888  enable_dlopen=unknown
13889  enable_dlopen_self=unknown
13890  enable_dlopen_self_static=unknown
13891else
13892  lt_cv_dlopen=no
13893  lt_cv_dlopen_libs=
13894
13895  case $host_os in
13896  beos*)
13897    lt_cv_dlopen="load_add_on"
13898    lt_cv_dlopen_libs=
13899    lt_cv_dlopen_self=yes
13900    ;;
13901
13902  mingw* | pw32*)
13903    lt_cv_dlopen="LoadLibrary"
13904    lt_cv_dlopen_libs=
13905   ;;
13906
13907  cygwin*)
13908    lt_cv_dlopen="dlopen"
13909    lt_cv_dlopen_libs=
13910   ;;
13911
13912  darwin*)
13913  # if libdl is installed we need to link against it
13914    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13915echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13916if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13917  echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919  ac_check_lib_save_LIBS=$LIBS
13920LIBS="-ldl  $LIBS"
13921cat >conftest.$ac_ext <<_ACEOF
13922/* confdefs.h.  */
13923_ACEOF
13924cat confdefs.h >>conftest.$ac_ext
13925cat >>conftest.$ac_ext <<_ACEOF
13926/* end confdefs.h.  */
13927
13928/* Override any gcc2 internal prototype to avoid an error.  */
13929#ifdef __cplusplus
13930extern "C"
13931#endif
13932/* We use char because int might match the return type of a gcc2
13933   builtin and then its argument prototype would still apply.  */
13934char dlopen ();
13935int
13936main ()
13937{
13938dlopen ();
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943rm -f conftest.$ac_objext conftest$ac_exeext
13944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13945  (eval $ac_link) 2>conftest.er1
13946  ac_status=$?
13947  grep -v '^ *+' conftest.er1 >conftest.err
13948  rm -f conftest.er1
13949  cat conftest.err >&5
13950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951  (exit $ac_status); } &&
13952	 { ac_try='test -z "$ac_c_werror_flag"
13953			 || test ! -s conftest.err'
13954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955  (eval $ac_try) 2>&5
13956  ac_status=$?
13957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958  (exit $ac_status); }; } &&
13959	 { ac_try='test -s conftest$ac_exeext'
13960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961  (eval $ac_try) 2>&5
13962  ac_status=$?
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); }; }; then
13965  ac_cv_lib_dl_dlopen=yes
13966else
13967  echo "$as_me: failed program was:" >&5
13968sed 's/^/| /' conftest.$ac_ext >&5
13969
13970ac_cv_lib_dl_dlopen=no
13971fi
13972rm -f conftest.err conftest.$ac_objext \
13973      conftest$ac_exeext conftest.$ac_ext
13974LIBS=$ac_check_lib_save_LIBS
13975fi
13976echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13977echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13978if test $ac_cv_lib_dl_dlopen = yes; then
13979  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13980else
13981
13982    lt_cv_dlopen="dyld"
13983    lt_cv_dlopen_libs=
13984    lt_cv_dlopen_self=yes
13985
13986fi
13987
13988   ;;
13989
13990  *)
13991    echo "$as_me:$LINENO: checking for shl_load" >&5
13992echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13993if test "${ac_cv_func_shl_load+set}" = set; then
13994  echo $ECHO_N "(cached) $ECHO_C" >&6
13995else
13996  cat >conftest.$ac_ext <<_ACEOF
13997/* confdefs.h.  */
13998_ACEOF
13999cat confdefs.h >>conftest.$ac_ext
14000cat >>conftest.$ac_ext <<_ACEOF
14001/* end confdefs.h.  */
14002/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14004#define shl_load innocuous_shl_load
14005
14006/* System header to define __stub macros and hopefully few prototypes,
14007    which can conflict with char shl_load (); below.
14008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14009    <limits.h> exists even on freestanding compilers.  */
14010
14011#ifdef __STDC__
14012# include <limits.h>
14013#else
14014# include <assert.h>
14015#endif
14016
14017#undef shl_load
14018
14019/* Override any gcc2 internal prototype to avoid an error.  */
14020#ifdef __cplusplus
14021extern "C"
14022{
14023#endif
14024/* We use char because int might match the return type of a gcc2
14025   builtin and then its argument prototype would still apply.  */
14026char shl_load ();
14027/* The GNU C library defines this for functions which it implements
14028    to always fail with ENOSYS.  Some functions are actually named
14029    something starting with __ and the normal name is an alias.  */
14030#if defined (__stub_shl_load) || defined (__stub___shl_load)
14031choke me
14032#else
14033char (*f) () = shl_load;
14034#endif
14035#ifdef __cplusplus
14036}
14037#endif
14038
14039int
14040main ()
14041{
14042return f != shl_load;
14043  ;
14044  return 0;
14045}
14046_ACEOF
14047rm -f conftest.$ac_objext conftest$ac_exeext
14048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049  (eval $ac_link) 2>conftest.er1
14050  ac_status=$?
14051  grep -v '^ *+' conftest.er1 >conftest.err
14052  rm -f conftest.er1
14053  cat conftest.err >&5
14054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055  (exit $ac_status); } &&
14056	 { ac_try='test -z "$ac_c_werror_flag"
14057			 || test ! -s conftest.err'
14058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059  (eval $ac_try) 2>&5
14060  ac_status=$?
14061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062  (exit $ac_status); }; } &&
14063	 { ac_try='test -s conftest$ac_exeext'
14064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065  (eval $ac_try) 2>&5
14066  ac_status=$?
14067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068  (exit $ac_status); }; }; then
14069  ac_cv_func_shl_load=yes
14070else
14071  echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074ac_cv_func_shl_load=no
14075fi
14076rm -f conftest.err conftest.$ac_objext \
14077      conftest$ac_exeext conftest.$ac_ext
14078fi
14079echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14080echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14081if test $ac_cv_func_shl_load = yes; then
14082  lt_cv_dlopen="shl_load"
14083else
14084  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14085echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14086if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14087  echo $ECHO_N "(cached) $ECHO_C" >&6
14088else
14089  ac_check_lib_save_LIBS=$LIBS
14090LIBS="-ldld  $LIBS"
14091cat >conftest.$ac_ext <<_ACEOF
14092/* confdefs.h.  */
14093_ACEOF
14094cat confdefs.h >>conftest.$ac_ext
14095cat >>conftest.$ac_ext <<_ACEOF
14096/* end confdefs.h.  */
14097
14098/* Override any gcc2 internal prototype to avoid an error.  */
14099#ifdef __cplusplus
14100extern "C"
14101#endif
14102/* We use char because int might match the return type of a gcc2
14103   builtin and then its argument prototype would still apply.  */
14104char shl_load ();
14105int
14106main ()
14107{
14108shl_load ();
14109  ;
14110  return 0;
14111}
14112_ACEOF
14113rm -f conftest.$ac_objext conftest$ac_exeext
14114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115  (eval $ac_link) 2>conftest.er1
14116  ac_status=$?
14117  grep -v '^ *+' conftest.er1 >conftest.err
14118  rm -f conftest.er1
14119  cat conftest.err >&5
14120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121  (exit $ac_status); } &&
14122	 { ac_try='test -z "$ac_c_werror_flag"
14123			 || test ! -s conftest.err'
14124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125  (eval $ac_try) 2>&5
14126  ac_status=$?
14127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128  (exit $ac_status); }; } &&
14129	 { ac_try='test -s conftest$ac_exeext'
14130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131  (eval $ac_try) 2>&5
14132  ac_status=$?
14133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134  (exit $ac_status); }; }; then
14135  ac_cv_lib_dld_shl_load=yes
14136else
14137  echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140ac_cv_lib_dld_shl_load=no
14141fi
14142rm -f conftest.err conftest.$ac_objext \
14143      conftest$ac_exeext conftest.$ac_ext
14144LIBS=$ac_check_lib_save_LIBS
14145fi
14146echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14147echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14148if test $ac_cv_lib_dld_shl_load = yes; then
14149  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14150else
14151  echo "$as_me:$LINENO: checking for dlopen" >&5
14152echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14153if test "${ac_cv_func_dlopen+set}" = set; then
14154  echo $ECHO_N "(cached) $ECHO_C" >&6
14155else
14156  cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h.  */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h.  */
14162/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14163   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14164#define dlopen innocuous_dlopen
14165
14166/* System header to define __stub macros and hopefully few prototypes,
14167    which can conflict with char dlopen (); below.
14168    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169    <limits.h> exists even on freestanding compilers.  */
14170
14171#ifdef __STDC__
14172# include <limits.h>
14173#else
14174# include <assert.h>
14175#endif
14176
14177#undef dlopen
14178
14179/* Override any gcc2 internal prototype to avoid an error.  */
14180#ifdef __cplusplus
14181extern "C"
14182{
14183#endif
14184/* We use char because int might match the return type of a gcc2
14185   builtin and then its argument prototype would still apply.  */
14186char dlopen ();
14187/* The GNU C library defines this for functions which it implements
14188    to always fail with ENOSYS.  Some functions are actually named
14189    something starting with __ and the normal name is an alias.  */
14190#if defined (__stub_dlopen) || defined (__stub___dlopen)
14191choke me
14192#else
14193char (*f) () = dlopen;
14194#endif
14195#ifdef __cplusplus
14196}
14197#endif
14198
14199int
14200main ()
14201{
14202return f != dlopen;
14203  ;
14204  return 0;
14205}
14206_ACEOF
14207rm -f conftest.$ac_objext conftest$ac_exeext
14208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14209  (eval $ac_link) 2>conftest.er1
14210  ac_status=$?
14211  grep -v '^ *+' conftest.er1 >conftest.err
14212  rm -f conftest.er1
14213  cat conftest.err >&5
14214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215  (exit $ac_status); } &&
14216	 { ac_try='test -z "$ac_c_werror_flag"
14217			 || test ! -s conftest.err'
14218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219  (eval $ac_try) 2>&5
14220  ac_status=$?
14221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222  (exit $ac_status); }; } &&
14223	 { ac_try='test -s conftest$ac_exeext'
14224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225  (eval $ac_try) 2>&5
14226  ac_status=$?
14227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228  (exit $ac_status); }; }; then
14229  ac_cv_func_dlopen=yes
14230else
14231  echo "$as_me: failed program was:" >&5
14232sed 's/^/| /' conftest.$ac_ext >&5
14233
14234ac_cv_func_dlopen=no
14235fi
14236rm -f conftest.err conftest.$ac_objext \
14237      conftest$ac_exeext conftest.$ac_ext
14238fi
14239echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14240echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14241if test $ac_cv_func_dlopen = yes; then
14242  lt_cv_dlopen="dlopen"
14243else
14244  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14245echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14246if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14247  echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249  ac_check_lib_save_LIBS=$LIBS
14250LIBS="-ldl  $LIBS"
14251cat >conftest.$ac_ext <<_ACEOF
14252/* confdefs.h.  */
14253_ACEOF
14254cat confdefs.h >>conftest.$ac_ext
14255cat >>conftest.$ac_ext <<_ACEOF
14256/* end confdefs.h.  */
14257
14258/* Override any gcc2 internal prototype to avoid an error.  */
14259#ifdef __cplusplus
14260extern "C"
14261#endif
14262/* We use char because int might match the return type of a gcc2
14263   builtin and then its argument prototype would still apply.  */
14264char dlopen ();
14265int
14266main ()
14267{
14268dlopen ();
14269  ;
14270  return 0;
14271}
14272_ACEOF
14273rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275  (eval $ac_link) 2>conftest.er1
14276  ac_status=$?
14277  grep -v '^ *+' conftest.er1 >conftest.err
14278  rm -f conftest.er1
14279  cat conftest.err >&5
14280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281  (exit $ac_status); } &&
14282	 { ac_try='test -z "$ac_c_werror_flag"
14283			 || test ! -s conftest.err'
14284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285  (eval $ac_try) 2>&5
14286  ac_status=$?
14287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288  (exit $ac_status); }; } &&
14289	 { ac_try='test -s conftest$ac_exeext'
14290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291  (eval $ac_try) 2>&5
14292  ac_status=$?
14293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294  (exit $ac_status); }; }; then
14295  ac_cv_lib_dl_dlopen=yes
14296else
14297  echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
14300ac_cv_lib_dl_dlopen=no
14301fi
14302rm -f conftest.err conftest.$ac_objext \
14303      conftest$ac_exeext conftest.$ac_ext
14304LIBS=$ac_check_lib_save_LIBS
14305fi
14306echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14307echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14308if test $ac_cv_lib_dl_dlopen = yes; then
14309  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14310else
14311  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14312echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14313if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14314  echo $ECHO_N "(cached) $ECHO_C" >&6
14315else
14316  ac_check_lib_save_LIBS=$LIBS
14317LIBS="-lsvld  $LIBS"
14318cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h.  */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h.  */
14324
14325/* Override any gcc2 internal prototype to avoid an error.  */
14326#ifdef __cplusplus
14327extern "C"
14328#endif
14329/* We use char because int might match the return type of a gcc2
14330   builtin and then its argument prototype would still apply.  */
14331char dlopen ();
14332int
14333main ()
14334{
14335dlopen ();
14336  ;
14337  return 0;
14338}
14339_ACEOF
14340rm -f conftest.$ac_objext conftest$ac_exeext
14341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14342  (eval $ac_link) 2>conftest.er1
14343  ac_status=$?
14344  grep -v '^ *+' conftest.er1 >conftest.err
14345  rm -f conftest.er1
14346  cat conftest.err >&5
14347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348  (exit $ac_status); } &&
14349	 { ac_try='test -z "$ac_c_werror_flag"
14350			 || test ! -s conftest.err'
14351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352  (eval $ac_try) 2>&5
14353  ac_status=$?
14354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355  (exit $ac_status); }; } &&
14356	 { ac_try='test -s conftest$ac_exeext'
14357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358  (eval $ac_try) 2>&5
14359  ac_status=$?
14360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361  (exit $ac_status); }; }; then
14362  ac_cv_lib_svld_dlopen=yes
14363else
14364  echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
14367ac_cv_lib_svld_dlopen=no
14368fi
14369rm -f conftest.err conftest.$ac_objext \
14370      conftest$ac_exeext conftest.$ac_ext
14371LIBS=$ac_check_lib_save_LIBS
14372fi
14373echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14374echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14375if test $ac_cv_lib_svld_dlopen = yes; then
14376  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14377else
14378  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14379echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14380if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14381  echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383  ac_check_lib_save_LIBS=$LIBS
14384LIBS="-ldld  $LIBS"
14385cat >conftest.$ac_ext <<_ACEOF
14386/* confdefs.h.  */
14387_ACEOF
14388cat confdefs.h >>conftest.$ac_ext
14389cat >>conftest.$ac_ext <<_ACEOF
14390/* end confdefs.h.  */
14391
14392/* Override any gcc2 internal prototype to avoid an error.  */
14393#ifdef __cplusplus
14394extern "C"
14395#endif
14396/* We use char because int might match the return type of a gcc2
14397   builtin and then its argument prototype would still apply.  */
14398char dld_link ();
14399int
14400main ()
14401{
14402dld_link ();
14403  ;
14404  return 0;
14405}
14406_ACEOF
14407rm -f conftest.$ac_objext conftest$ac_exeext
14408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14409  (eval $ac_link) 2>conftest.er1
14410  ac_status=$?
14411  grep -v '^ *+' conftest.er1 >conftest.err
14412  rm -f conftest.er1
14413  cat conftest.err >&5
14414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415  (exit $ac_status); } &&
14416	 { ac_try='test -z "$ac_c_werror_flag"
14417			 || test ! -s conftest.err'
14418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419  (eval $ac_try) 2>&5
14420  ac_status=$?
14421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422  (exit $ac_status); }; } &&
14423	 { ac_try='test -s conftest$ac_exeext'
14424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425  (eval $ac_try) 2>&5
14426  ac_status=$?
14427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428  (exit $ac_status); }; }; then
14429  ac_cv_lib_dld_dld_link=yes
14430else
14431  echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
14434ac_cv_lib_dld_dld_link=no
14435fi
14436rm -f conftest.err conftest.$ac_objext \
14437      conftest$ac_exeext conftest.$ac_ext
14438LIBS=$ac_check_lib_save_LIBS
14439fi
14440echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14441echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14442if test $ac_cv_lib_dld_dld_link = yes; then
14443  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14444fi
14445
14446
14447fi
14448
14449
14450fi
14451
14452
14453fi
14454
14455
14456fi
14457
14458
14459fi
14460
14461    ;;
14462  esac
14463
14464  if test "x$lt_cv_dlopen" != xno; then
14465    enable_dlopen=yes
14466  else
14467    enable_dlopen=no
14468  fi
14469
14470  case $lt_cv_dlopen in
14471  dlopen)
14472    save_CPPFLAGS="$CPPFLAGS"
14473    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14474
14475    save_LDFLAGS="$LDFLAGS"
14476    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14477
14478    save_LIBS="$LIBS"
14479    LIBS="$lt_cv_dlopen_libs $LIBS"
14480
14481    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14482echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14483if test "${lt_cv_dlopen_self+set}" = set; then
14484  echo $ECHO_N "(cached) $ECHO_C" >&6
14485else
14486  	  if test "$cross_compiling" = yes; then :
14487  lt_cv_dlopen_self=cross
14488else
14489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14490  lt_status=$lt_dlunknown
14491  cat > conftest.$ac_ext <<EOF
14492#line 14492 "configure"
14493#include "confdefs.h"
14494
14495#if HAVE_DLFCN_H
14496#include <dlfcn.h>
14497#endif
14498
14499#include <stdio.h>
14500
14501#ifdef RTLD_GLOBAL
14502#  define LT_DLGLOBAL		RTLD_GLOBAL
14503#else
14504#  ifdef DL_GLOBAL
14505#    define LT_DLGLOBAL		DL_GLOBAL
14506#  else
14507#    define LT_DLGLOBAL		0
14508#  endif
14509#endif
14510
14511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14512   find out it does not work in some platform. */
14513#ifndef LT_DLLAZY_OR_NOW
14514#  ifdef RTLD_LAZY
14515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14516#  else
14517#    ifdef DL_LAZY
14518#      define LT_DLLAZY_OR_NOW		DL_LAZY
14519#    else
14520#      ifdef RTLD_NOW
14521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14522#      else
14523#        ifdef DL_NOW
14524#          define LT_DLLAZY_OR_NOW	DL_NOW
14525#        else
14526#          define LT_DLLAZY_OR_NOW	0
14527#        endif
14528#      endif
14529#    endif
14530#  endif
14531#endif
14532
14533#ifdef __cplusplus
14534extern "C" void exit (int);
14535#endif
14536
14537void fnord() { int i=42;}
14538int main ()
14539{
14540  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14541  int status = $lt_dlunknown;
14542
14543  if (self)
14544    {
14545      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14546      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14547      /* dlclose (self); */
14548    }
14549
14550    exit (status);
14551}
14552EOF
14553  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554  (eval $ac_link) 2>&5
14555  ac_status=$?
14556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14558    (./conftest; exit; ) 2>/dev/null
14559    lt_status=$?
14560    case x$lt_status in
14561      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14562      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14563      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14564    esac
14565  else :
14566    # compilation failed
14567    lt_cv_dlopen_self=no
14568  fi
14569fi
14570rm -fr conftest*
14571
14572
14573fi
14574echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14575echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14576
14577    if test "x$lt_cv_dlopen_self" = xyes; then
14578      LDFLAGS="$LDFLAGS $link_static_flag"
14579      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14580echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14581if test "${lt_cv_dlopen_self_static+set}" = set; then
14582  echo $ECHO_N "(cached) $ECHO_C" >&6
14583else
14584  	  if test "$cross_compiling" = yes; then :
14585  lt_cv_dlopen_self_static=cross
14586else
14587  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14588  lt_status=$lt_dlunknown
14589  cat > conftest.$ac_ext <<EOF
14590#line 14590 "configure"
14591#include "confdefs.h"
14592
14593#if HAVE_DLFCN_H
14594#include <dlfcn.h>
14595#endif
14596
14597#include <stdio.h>
14598
14599#ifdef RTLD_GLOBAL
14600#  define LT_DLGLOBAL		RTLD_GLOBAL
14601#else
14602#  ifdef DL_GLOBAL
14603#    define LT_DLGLOBAL		DL_GLOBAL
14604#  else
14605#    define LT_DLGLOBAL		0
14606#  endif
14607#endif
14608
14609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14610   find out it does not work in some platform. */
14611#ifndef LT_DLLAZY_OR_NOW
14612#  ifdef RTLD_LAZY
14613#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14614#  else
14615#    ifdef DL_LAZY
14616#      define LT_DLLAZY_OR_NOW		DL_LAZY
14617#    else
14618#      ifdef RTLD_NOW
14619#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14620#      else
14621#        ifdef DL_NOW
14622#          define LT_DLLAZY_OR_NOW	DL_NOW
14623#        else
14624#          define LT_DLLAZY_OR_NOW	0
14625#        endif
14626#      endif
14627#    endif
14628#  endif
14629#endif
14630
14631#ifdef __cplusplus
14632extern "C" void exit (int);
14633#endif
14634
14635void fnord() { int i=42;}
14636int main ()
14637{
14638  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14639  int status = $lt_dlunknown;
14640
14641  if (self)
14642    {
14643      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14644      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14645      /* dlclose (self); */
14646    }
14647
14648    exit (status);
14649}
14650EOF
14651  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14652  (eval $ac_link) 2>&5
14653  ac_status=$?
14654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14656    (./conftest; exit; ) 2>/dev/null
14657    lt_status=$?
14658    case x$lt_status in
14659      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14660      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14661      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14662    esac
14663  else :
14664    # compilation failed
14665    lt_cv_dlopen_self_static=no
14666  fi
14667fi
14668rm -fr conftest*
14669
14670
14671fi
14672echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14673echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14674    fi
14675
14676    CPPFLAGS="$save_CPPFLAGS"
14677    LDFLAGS="$save_LDFLAGS"
14678    LIBS="$save_LIBS"
14679    ;;
14680  esac
14681
14682  case $lt_cv_dlopen_self in
14683  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14684  *) enable_dlopen_self=unknown ;;
14685  esac
14686
14687  case $lt_cv_dlopen_self_static in
14688  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14689  *) enable_dlopen_self_static=unknown ;;
14690  esac
14691fi
14692
14693
14694# Report which librarie types wil actually be built
14695echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14696echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14697echo "$as_me:$LINENO: result: $can_build_shared" >&5
14698echo "${ECHO_T}$can_build_shared" >&6
14699
14700echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14701echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14702test "$can_build_shared" = "no" && enable_shared=no
14703
14704# On AIX, shared libraries and static libraries use the same namespace, and
14705# are all built from PIC.
14706case "$host_os" in
14707aix3*)
14708  test "$enable_shared" = yes && enable_static=no
14709  if test -n "$RANLIB"; then
14710    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14711    postinstall_cmds='$RANLIB $lib'
14712  fi
14713  ;;
14714
14715aix4* | aix5*)
14716  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14717    test "$enable_shared" = yes && enable_static=no
14718  fi
14719    ;;
14720esac
14721echo "$as_me:$LINENO: result: $enable_shared" >&5
14722echo "${ECHO_T}$enable_shared" >&6
14723
14724echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14725echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14726# Make sure either enable_shared or enable_static is yes.
14727test "$enable_shared" = yes || enable_static=yes
14728echo "$as_me:$LINENO: result: $enable_static" >&5
14729echo "${ECHO_T}$enable_static" >&6
14730
14731# The else clause should only fire when bootstrapping the
14732# libtool distribution, otherwise you forgot to ship ltmain.sh
14733# with your package, and you will get complaints that there are
14734# no rules to generate ltmain.sh.
14735if test -f "$ltmain"; then
14736  # See if we are running on zsh, and set the options which allow our commands through
14737  # without removal of \ escapes.
14738  if test -n "${ZSH_VERSION+set}" ; then
14739    setopt NO_GLOB_SUBST
14740  fi
14741  # Now quote all the things that may contain metacharacters while being
14742  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14743  # variables and quote the copies for generation of the libtool script.
14744  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14745    SED SHELL STRIP \
14746    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14747    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14748    deplibs_check_method reload_flag reload_cmds need_locks \
14749    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14750    lt_cv_sys_global_symbol_to_c_name_address \
14751    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14752    old_postinstall_cmds old_postuninstall_cmds \
14753    compiler \
14754    CC \
14755    LD \
14756    lt_prog_compiler_wl \
14757    lt_prog_compiler_pic \
14758    lt_prog_compiler_static \
14759    lt_prog_compiler_no_builtin_flag \
14760    export_dynamic_flag_spec \
14761    thread_safe_flag_spec \
14762    whole_archive_flag_spec \
14763    enable_shared_with_static_runtimes \
14764    old_archive_cmds \
14765    old_archive_from_new_cmds \
14766    predep_objects \
14767    postdep_objects \
14768    predeps \
14769    postdeps \
14770    compiler_lib_search_path \
14771    archive_cmds \
14772    archive_expsym_cmds \
14773    postinstall_cmds \
14774    postuninstall_cmds \
14775    old_archive_from_expsyms_cmds \
14776    allow_undefined_flag \
14777    no_undefined_flag \
14778    export_symbols_cmds \
14779    hardcode_libdir_flag_spec \
14780    hardcode_libdir_flag_spec_ld \
14781    hardcode_libdir_separator \
14782    hardcode_automatic \
14783    module_cmds \
14784    module_expsym_cmds \
14785    lt_cv_prog_compiler_c_o \
14786    exclude_expsyms \
14787    include_expsyms; do
14788
14789    case $var in
14790    old_archive_cmds | \
14791    old_archive_from_new_cmds | \
14792    archive_cmds | \
14793    archive_expsym_cmds | \
14794    module_cmds | \
14795    module_expsym_cmds | \
14796    old_archive_from_expsyms_cmds | \
14797    export_symbols_cmds | \
14798    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14799    postinstall_cmds | postuninstall_cmds | \
14800    old_postinstall_cmds | old_postuninstall_cmds | \
14801    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14802      # Double-quote double-evaled strings.
14803      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14804      ;;
14805    *)
14806      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14807      ;;
14808    esac
14809  done
14810
14811  case $lt_echo in
14812  *'\$0 --fallback-echo"')
14813    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14814    ;;
14815  esac
14816
14817cfgfile="${ofile}T"
14818  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14819  $rm -f "$cfgfile"
14820  { echo "$as_me:$LINENO: creating $ofile" >&5
14821echo "$as_me: creating $ofile" >&6;}
14822
14823  cat <<__EOF__ >> "$cfgfile"
14824#! $SHELL
14825
14826# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14827# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14828# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14829#
14830# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14831# Free Software Foundation, Inc.
14832#
14833# This file is part of GNU Libtool:
14834# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14835#
14836# This program is free software; you can redistribute it and/or modify
14837# it under the terms of the GNU General Public License as published by
14838# the Free Software Foundation; either version 2 of the License, or
14839# (at your option) any later version.
14840#
14841# This program is distributed in the hope that it will be useful, but
14842# WITHOUT ANY WARRANTY; without even the implied warranty of
14843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14844# General Public License for more details.
14845#
14846# You should have received a copy of the GNU General Public License
14847# along with this program; if not, write to the Free Software
14848# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14849#
14850# As a special exception to the GNU General Public License, if you
14851# distribute this file as part of a program that contains a
14852# configuration script generated by Autoconf, you may include it under
14853# the same distribution terms that you use for the rest of that program.
14854
14855# A sed program that does not truncate output.
14856SED=$lt_SED
14857
14858# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14859Xsed="$SED -e s/^X//"
14860
14861# The HP-UX ksh and POSIX shell print the target directory to stdout
14862# if CDPATH is set.
14863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14864
14865# The names of the tagged configurations supported by this script.
14866available_tags=
14867
14868# ### BEGIN LIBTOOL CONFIG
14869
14870# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14871
14872# Shell to use when invoking shell scripts.
14873SHELL=$lt_SHELL
14874
14875# Whether or not to build shared libraries.
14876build_libtool_libs=$enable_shared
14877
14878# Whether or not to build static libraries.
14879build_old_libs=$enable_static
14880
14881# Whether or not to add -lc for building shared libraries.
14882build_libtool_need_lc=$archive_cmds_need_lc
14883
14884# Whether or not to disallow shared libs when runtime libs are static
14885allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14886
14887# Whether or not to optimize for fast installation.
14888fast_install=$enable_fast_install
14889
14890# The host system.
14891host_alias=$host_alias
14892host=$host
14893
14894# An echo program that does not interpret backslashes.
14895echo=$lt_echo
14896
14897# The archiver.
14898AR=$lt_AR
14899AR_FLAGS=$lt_AR_FLAGS
14900
14901# A C compiler.
14902LTCC=$lt_LTCC
14903
14904# A language-specific compiler.
14905CC=$lt_compiler
14906
14907# Is the compiler the GNU C compiler?
14908with_gcc=$GCC
14909
14910# An ERE matcher.
14911EGREP=$lt_EGREP
14912
14913# The linker used to build libraries.
14914LD=$lt_LD
14915
14916# Whether we need hard or soft links.
14917LN_S=$lt_LN_S
14918
14919# A BSD-compatible nm program.
14920NM=$lt_NM
14921
14922# A symbol stripping program
14923STRIP=$lt_STRIP
14924
14925# Used to examine libraries when file_magic_cmd begins "file"
14926MAGIC_CMD=$MAGIC_CMD
14927
14928# Used on cygwin: DLL creation program.
14929DLLTOOL="$DLLTOOL"
14930
14931# Used on cygwin: object dumper.
14932OBJDUMP="$OBJDUMP"
14933
14934# Used on cygwin: assembler.
14935AS="$AS"
14936
14937# The name of the directory that contains temporary libtool files.
14938objdir=$objdir
14939
14940# How to create reloadable object files.
14941reload_flag=$lt_reload_flag
14942reload_cmds=$lt_reload_cmds
14943
14944# How to pass a linker flag through the compiler.
14945wl=$lt_lt_prog_compiler_wl
14946
14947# Object file suffix (normally "o").
14948objext="$ac_objext"
14949
14950# Old archive suffix (normally "a").
14951libext="$libext"
14952
14953# Shared library suffix (normally ".so").
14954shrext_cmds='$shrext_cmds'
14955
14956# Executable file suffix (normally "").
14957exeext="$exeext"
14958
14959# Additional compiler flags for building library objects.
14960pic_flag=$lt_lt_prog_compiler_pic
14961pic_mode=$pic_mode
14962
14963# What is the maximum length of a command?
14964max_cmd_len=$lt_cv_sys_max_cmd_len
14965
14966# Does compiler simultaneously support -c and -o options?
14967compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14968
14969# Must we lock files when doing compilation ?
14970need_locks=$lt_need_locks
14971
14972# Do we need the lib prefix for modules?
14973need_lib_prefix=$need_lib_prefix
14974
14975# Do we need a version for libraries?
14976need_version=$need_version
14977
14978# Whether dlopen is supported.
14979dlopen_support=$enable_dlopen
14980
14981# Whether dlopen of programs is supported.
14982dlopen_self=$enable_dlopen_self
14983
14984# Whether dlopen of statically linked programs is supported.
14985dlopen_self_static=$enable_dlopen_self_static
14986
14987# Compiler flag to prevent dynamic linking.
14988link_static_flag=$lt_lt_prog_compiler_static
14989
14990# Compiler flag to turn off builtin functions.
14991no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992
14993# Compiler flag to allow reflexive dlopens.
14994export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14995
14996# Compiler flag to generate shared objects directly from archives.
14997whole_archive_flag_spec=$lt_whole_archive_flag_spec
14998
14999# Compiler flag to generate thread-safe objects.
15000thread_safe_flag_spec=$lt_thread_safe_flag_spec
15001
15002# Library versioning type.
15003version_type=$version_type
15004
15005# Format of library name prefix.
15006libname_spec=$lt_libname_spec
15007
15008# List of archive names.  First name is the real one, the rest are links.
15009# The last name is the one that the linker finds with -lNAME.
15010library_names_spec=$lt_library_names_spec
15011
15012# The coded name of the library, if different from the real name.
15013soname_spec=$lt_soname_spec
15014
15015# Commands used to build and install an old-style archive.
15016RANLIB=$lt_RANLIB
15017old_archive_cmds=$lt_old_archive_cmds
15018old_postinstall_cmds=$lt_old_postinstall_cmds
15019old_postuninstall_cmds=$lt_old_postuninstall_cmds
15020
15021# Create an old-style archive from a shared archive.
15022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15023
15024# Create a temporary old-style archive to link instead of a shared archive.
15025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15026
15027# Commands used to build and install a shared archive.
15028archive_cmds=$lt_archive_cmds
15029archive_expsym_cmds=$lt_archive_expsym_cmds
15030postinstall_cmds=$lt_postinstall_cmds
15031postuninstall_cmds=$lt_postuninstall_cmds
15032
15033# Commands used to build a loadable module (assumed same as above if empty)
15034module_cmds=$lt_module_cmds
15035module_expsym_cmds=$lt_module_expsym_cmds
15036
15037# Commands to strip libraries.
15038old_striplib=$lt_old_striplib
15039striplib=$lt_striplib
15040
15041# Dependencies to place before the objects being linked to create a
15042# shared library.
15043predep_objects=$lt_predep_objects
15044
15045# Dependencies to place after the objects being linked to create a
15046# shared library.
15047postdep_objects=$lt_postdep_objects
15048
15049# Dependencies to place before the objects being linked to create a
15050# shared library.
15051predeps=$lt_predeps
15052
15053# Dependencies to place after the objects being linked to create a
15054# shared library.
15055postdeps=$lt_postdeps
15056
15057# The library search path used internally by the compiler when linking
15058# a shared library.
15059compiler_lib_search_path=$lt_compiler_lib_search_path
15060
15061# Method to check whether dependent libraries are shared objects.
15062deplibs_check_method=$lt_deplibs_check_method
15063
15064# Command to use when deplibs_check_method == file_magic.
15065file_magic_cmd=$lt_file_magic_cmd
15066
15067# Flag that allows shared libraries with undefined symbols to be built.
15068allow_undefined_flag=$lt_allow_undefined_flag
15069
15070# Flag that forces no undefined symbols.
15071no_undefined_flag=$lt_no_undefined_flag
15072
15073# Commands used to finish a libtool library installation in a directory.
15074finish_cmds=$lt_finish_cmds
15075
15076# Same as above, but a single script fragment to be evaled but not shown.
15077finish_eval=$lt_finish_eval
15078
15079# Take the output of nm and produce a listing of raw symbols and C names.
15080global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15081
15082# Transform the output of nm in a proper C declaration
15083global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15084
15085# Transform the output of nm in a C name address pair
15086global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15087
15088# This is the shared library runtime path variable.
15089runpath_var=$runpath_var
15090
15091# This is the shared library path variable.
15092shlibpath_var=$shlibpath_var
15093
15094# Is shlibpath searched before the hard-coded library search path?
15095shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15096
15097# How to hardcode a shared library path into an executable.
15098hardcode_action=$hardcode_action
15099
15100# Whether we should hardcode library paths into libraries.
15101hardcode_into_libs=$hardcode_into_libs
15102
15103# Flag to hardcode \$libdir into a binary during linking.
15104# This must work even if \$libdir does not exist.
15105hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15106
15107# If ld is used when linking, flag to hardcode \$libdir into
15108# a binary during linking. This must work even if \$libdir does
15109# not exist.
15110hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15111
15112# Whether we need a single -rpath flag with a separated argument.
15113hardcode_libdir_separator=$lt_hardcode_libdir_separator
15114
15115# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15116# resulting binary.
15117hardcode_direct=$hardcode_direct
15118
15119# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15120# resulting binary.
15121hardcode_minus_L=$hardcode_minus_L
15122
15123# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15124# the resulting binary.
15125hardcode_shlibpath_var=$hardcode_shlibpath_var
15126
15127# Set to yes if building a shared library automatically hardcodes DIR into the library
15128# and all subsequent libraries and executables linked against it.
15129hardcode_automatic=$hardcode_automatic
15130
15131# Variables whose values should be saved in libtool wrapper scripts and
15132# restored at relink time.
15133variables_saved_for_relink="$variables_saved_for_relink"
15134
15135# Whether libtool must link a program against all its dependency libraries.
15136link_all_deplibs=$link_all_deplibs
15137
15138# Compile-time system search path for libraries
15139sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140
15141# Run-time system search path for libraries
15142sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143
15144# Fix the shell variable \$srcfile for the compiler.
15145fix_srcfile_path="$fix_srcfile_path"
15146
15147# Set to yes if exported symbols are required.
15148always_export_symbols=$always_export_symbols
15149
15150# The commands to list exported symbols.
15151export_symbols_cmds=$lt_export_symbols_cmds
15152
15153# The commands to extract the exported symbol list from a shared archive.
15154extract_expsyms_cmds=$lt_extract_expsyms_cmds
15155
15156# Symbols that should not be listed in the preloaded symbols.
15157exclude_expsyms=$lt_exclude_expsyms
15158
15159# Symbols that must always be exported.
15160include_expsyms=$lt_include_expsyms
15161
15162# ### END LIBTOOL CONFIG
15163
15164__EOF__
15165
15166
15167  case $host_os in
15168  aix3*)
15169    cat <<\EOF >> "$cfgfile"
15170
15171# AIX sometimes has problems with the GCC collect2 program.  For some
15172# reason, if we set the COLLECT_NAMES environment variable, the problems
15173# vanish in a puff of smoke.
15174if test "X${COLLECT_NAMES+set}" != Xset; then
15175  COLLECT_NAMES=
15176  export COLLECT_NAMES
15177fi
15178EOF
15179    ;;
15180  esac
15181
15182  # We use sed instead of cat because bash on DJGPP gets confused if
15183  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15184  # text mode, it properly converts lines to CR/LF.  This bash problem
15185  # is reportedly fixed, but why not run on old versions too?
15186  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15187
15188  mv -f "$cfgfile" "$ofile" || \
15189    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15190  chmod +x "$ofile"
15191
15192else
15193  # If there is no Makefile yet, we rely on a make rule to execute
15194  # `config.status --recheck' to rerun these tests and create the
15195  # libtool script then.
15196  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15197  if test -f "$ltmain_in"; then
15198    test -f Makefile && make "$ltmain"
15199  fi
15200fi
15201
15202
15203ac_ext=c
15204ac_cpp='$CPP $CPPFLAGS'
15205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209CC="$lt_save_CC"
15210
15211
15212# Check whether --with-tags or --without-tags was given.
15213if test "${with_tags+set}" = set; then
15214  withval="$with_tags"
15215  tagnames="$withval"
15216fi;
15217
15218if test -f "$ltmain" && test -n "$tagnames"; then
15219  if test ! -f "${ofile}"; then
15220    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15221echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15222  fi
15223
15224  if test -z "$LTCC"; then
15225    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15226    if test -z "$LTCC"; then
15227      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15228echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15229    else
15230      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15231echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15232    fi
15233  fi
15234
15235  # Extract list of available tagged configurations in $ofile.
15236  # Note that this assumes the entire list is on one line.
15237  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15238
15239  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15240  for tagname in $tagnames; do
15241    IFS="$lt_save_ifs"
15242    # Check whether tagname contains only valid characters
15243    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15244    "") ;;
15245    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15246echo "$as_me: error: invalid tag name: $tagname" >&2;}
15247   { (exit 1); exit 1; }; }
15248	;;
15249    esac
15250
15251    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15252    then
15253      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15254echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15255   { (exit 1); exit 1; }; }
15256    fi
15257
15258    # Update the list of available tags.
15259    if test -n "$tagname"; then
15260      echo appending configuration tag "$tagname" to $ofile
15261
15262      case $tagname in
15263      CXX)
15264	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15265	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15266	    (test "X$CXX" != "Xg++"))) ; then
15267	  ac_ext=cc
15268ac_cpp='$CXXCPP $CPPFLAGS'
15269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15272
15273
15274
15275
15276archive_cmds_need_lc_CXX=no
15277allow_undefined_flag_CXX=
15278always_export_symbols_CXX=no
15279archive_expsym_cmds_CXX=
15280export_dynamic_flag_spec_CXX=
15281hardcode_direct_CXX=no
15282hardcode_libdir_flag_spec_CXX=
15283hardcode_libdir_flag_spec_ld_CXX=
15284hardcode_libdir_separator_CXX=
15285hardcode_minus_L_CXX=no
15286hardcode_automatic_CXX=no
15287module_cmds_CXX=
15288module_expsym_cmds_CXX=
15289link_all_deplibs_CXX=unknown
15290old_archive_cmds_CXX=$old_archive_cmds
15291no_undefined_flag_CXX=
15292whole_archive_flag_spec_CXX=
15293enable_shared_with_static_runtimes_CXX=no
15294
15295# Dependencies to place before and after the object being linked:
15296predep_objects_CXX=
15297postdep_objects_CXX=
15298predeps_CXX=
15299postdeps_CXX=
15300compiler_lib_search_path_CXX=
15301
15302# Source file extension for C++ test sources.
15303ac_ext=cc
15304
15305# Object file extension for compiled C++ test sources.
15306objext=o
15307objext_CXX=$objext
15308
15309# Code to be used in simple compile tests
15310lt_simple_compile_test_code="int some_variable = 0;\n"
15311
15312# Code to be used in simple link tests
15313lt_simple_link_test_code='int main(int, char *) { return(0); }\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
15326lt_save_LD=$LD
15327lt_save_GCC=$GCC
15328GCC=$GXX
15329lt_save_with_gnu_ld=$with_gnu_ld
15330lt_save_path_LD=$lt_cv_path_LD
15331if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15332  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15333else
15334  unset lt_cv_prog_gnu_ld
15335fi
15336if test -n "${lt_cv_path_LDCXX+set}"; then
15337  lt_cv_path_LD=$lt_cv_path_LDCXX
15338else
15339  unset lt_cv_path_LD
15340fi
15341test -z "${LDCXX+set}" || LD=$LDCXX
15342CC=${CXX-"c++"}
15343compiler=$CC
15344compiler_CXX=$CC
15345cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15346
15347# We don't want -fno-exception wen compiling C++ code, so set the
15348# no_builtin_flag separately
15349if test "$GXX" = yes; then
15350  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15351else
15352  lt_prog_compiler_no_builtin_flag_CXX=
15353fi
15354
15355if test "$GXX" = yes; then
15356  # Set up default GNU C++ configuration
15357
15358
15359# Check whether --with-gnu-ld or --without-gnu-ld was given.
15360if test "${with_gnu_ld+set}" = set; then
15361  withval="$with_gnu_ld"
15362  test "$withval" = no || with_gnu_ld=yes
15363else
15364  with_gnu_ld=no
15365fi;
15366ac_prog=ld
15367if test "$GCC" = yes; then
15368  # Check if gcc -print-prog-name=ld gives a path.
15369  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15370echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15371  case $host in
15372  *-*-mingw*)
15373    # gcc leaves a trailing carriage return which upsets mingw
15374    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15375  *)
15376    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15377  esac
15378  case $ac_prog in
15379    # Accept absolute paths.
15380    [\\/]* | ?:[\\/]*)
15381      re_direlt='/[^/][^/]*/\.\./'
15382      # Canonicalize the pathname of ld
15383      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15384      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15385	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15386      done
15387      test -z "$LD" && LD="$ac_prog"
15388      ;;
15389  "")
15390    # If it fails, then pretend we aren't using GCC.
15391    ac_prog=ld
15392    ;;
15393  *)
15394    # If it is relative, then search for the first ld in PATH.
15395    with_gnu_ld=unknown
15396    ;;
15397  esac
15398elif test "$with_gnu_ld" = yes; then
15399  echo "$as_me:$LINENO: checking for GNU ld" >&5
15400echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15401else
15402  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15403echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15404fi
15405if test "${lt_cv_path_LD+set}" = set; then
15406  echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408  if test -z "$LD"; then
15409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15410  for ac_dir in $PATH; do
15411    IFS="$lt_save_ifs"
15412    test -z "$ac_dir" && ac_dir=.
15413    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15414      lt_cv_path_LD="$ac_dir/$ac_prog"
15415      # Check to see if the program is GNU ld.  I'd rather use --version,
15416      # but apparently some GNU ld's only accept -v.
15417      # Break only if it was the GNU/non-GNU ld that we prefer.
15418      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15419      *GNU* | *'with BFD'*)
15420	test "$with_gnu_ld" != no && break
15421	;;
15422      *)
15423	test "$with_gnu_ld" != yes && break
15424	;;
15425      esac
15426    fi
15427  done
15428  IFS="$lt_save_ifs"
15429else
15430  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15431fi
15432fi
15433
15434LD="$lt_cv_path_LD"
15435if test -n "$LD"; then
15436  echo "$as_me:$LINENO: result: $LD" >&5
15437echo "${ECHO_T}$LD" >&6
15438else
15439  echo "$as_me:$LINENO: result: no" >&5
15440echo "${ECHO_T}no" >&6
15441fi
15442test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15443echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15444   { (exit 1); exit 1; }; }
15445echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15446echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15447if test "${lt_cv_prog_gnu_ld+set}" = set; then
15448  echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15451case `$LD -v 2>&1 </dev/null` in
15452*GNU* | *'with BFD'*)
15453  lt_cv_prog_gnu_ld=yes
15454  ;;
15455*)
15456  lt_cv_prog_gnu_ld=no
15457  ;;
15458esac
15459fi
15460echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15461echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15462with_gnu_ld=$lt_cv_prog_gnu_ld
15463
15464
15465
15466  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15467  # archiving commands below assume that GNU ld is being used.
15468  if test "$with_gnu_ld" = yes; then
15469    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470    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'
15471
15472    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15473    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15474
15475    # If archive_cmds runs LD, not CC, wlarc should be empty
15476    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15477    #     investigate it a little bit more. (MM)
15478    wlarc='${wl}'
15479
15480    # ancient GNU ld didn't support --whole-archive et. al.
15481    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15482	grep 'no-whole-archive' > /dev/null; then
15483      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15484    else
15485      whole_archive_flag_spec_CXX=
15486    fi
15487  else
15488    with_gnu_ld=no
15489    wlarc=
15490
15491    # A generic and very simple default shared library creation
15492    # command for GNU C++ for the case where it uses the native
15493    # linker, instead of GNU ld.  If possible, this setting should
15494    # overridden to take advantage of the native linker features on
15495    # the platform it is being used on.
15496    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15497  fi
15498
15499  # Commands to make compiler produce verbose output that lists
15500  # what "hidden" libraries, object files and flags are used when
15501  # linking a shared library.
15502  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15503
15504else
15505  GXX=no
15506  with_gnu_ld=no
15507  wlarc=
15508fi
15509
15510# PORTME: fill in a description of your system's C++ link characteristics
15511echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513ld_shlibs_CXX=yes
15514case $host_os in
15515  aix3*)
15516    # FIXME: insert proper C++ library support
15517    ld_shlibs_CXX=no
15518    ;;
15519  aix4* | aix5*)
15520    if test "$host_cpu" = ia64; then
15521      # On IA64, the linker does run time linking by default, so we don't
15522      # have to do anything special.
15523      aix_use_runtimelinking=no
15524      exp_sym_flag='-Bexport'
15525      no_entry_flag=""
15526    else
15527      aix_use_runtimelinking=no
15528
15529      # Test if we are trying to use run time linking or normal
15530      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15531      # need to do runtime linking.
15532      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15533	for ld_flag in $LDFLAGS; do
15534	  case $ld_flag in
15535	  *-brtl*)
15536	    aix_use_runtimelinking=yes
15537	    break
15538	    ;;
15539	  esac
15540	done
15541      esac
15542
15543      exp_sym_flag='-bexport'
15544      no_entry_flag='-bnoentry'
15545    fi
15546
15547    # When large executables or shared objects are built, AIX ld can
15548    # have problems creating the table of contents.  If linking a library
15549    # or program results in "error TOC overflow" add -mminimal-toc to
15550    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15551    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15552
15553    archive_cmds_CXX=''
15554    hardcode_direct_CXX=yes
15555    hardcode_libdir_separator_CXX=':'
15556    link_all_deplibs_CXX=yes
15557
15558    if test "$GXX" = yes; then
15559      case $host_os in aix4.012|aix4.012.*)
15560      # We only want to do this on AIX 4.2 and lower, the check
15561      # below for broken collect2 doesn't work under 4.3+
15562	collect2name=`${CC} -print-prog-name=collect2`
15563	if test -f "$collect2name" && \
15564	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15565	then
15566	  # We have reworked collect2
15567	  hardcode_direct_CXX=yes
15568	else
15569	  # We have old collect2
15570	  hardcode_direct_CXX=unsupported
15571	  # It fails to find uninstalled libraries when the uninstalled
15572	  # path is not listed in the libpath.  Setting hardcode_minus_L
15573	  # to unsupported forces relinking
15574	  hardcode_minus_L_CXX=yes
15575	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15576	  hardcode_libdir_separator_CXX=
15577	fi
15578      esac
15579      shared_flag='-shared'
15580    else
15581      # not using gcc
15582      if test "$host_cpu" = ia64; then
15583	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15584	# chokes on -Wl,-G. The following line is correct:
15585	shared_flag='-G'
15586      else
15587	if test "$aix_use_runtimelinking" = yes; then
15588	  shared_flag='${wl}-G'
15589	else
15590	  shared_flag='${wl}-bM:SRE'
15591	fi
15592      fi
15593    fi
15594
15595    # It seems that -bexpall does not export symbols beginning with
15596    # underscore (_), so it is better to generate a list of symbols to export.
15597    always_export_symbols_CXX=yes
15598    if test "$aix_use_runtimelinking" = yes; then
15599      # Warning - without using the other runtime loading flags (-brtl),
15600      # -berok will link without error, but may produce a broken library.
15601      allow_undefined_flag_CXX='-berok'
15602      # Determine the default libpath from the value encoded in an empty executable.
15603      cat >conftest.$ac_ext <<_ACEOF
15604/* confdefs.h.  */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h.  */
15609
15610int
15611main ()
15612{
15613
15614  ;
15615  return 0;
15616}
15617_ACEOF
15618rm -f conftest.$ac_objext conftest$ac_exeext
15619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620  (eval $ac_link) 2>conftest.er1
15621  ac_status=$?
15622  grep -v '^ *+' conftest.er1 >conftest.err
15623  rm -f conftest.er1
15624  cat conftest.err >&5
15625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626  (exit $ac_status); } &&
15627	 { ac_try='test -z "$ac_cxx_werror_flag"
15628			 || test ! -s conftest.err'
15629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630  (eval $ac_try) 2>&5
15631  ac_status=$?
15632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633  (exit $ac_status); }; } &&
15634	 { ac_try='test -s conftest$ac_exeext'
15635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636  (eval $ac_try) 2>&5
15637  ac_status=$?
15638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639  (exit $ac_status); }; }; then
15640
15641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15642}'`
15643# Check for a 64-bit object if we didn't find anything.
15644if 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; }
15645}'`; fi
15646else
15647  echo "$as_me: failed program was:" >&5
15648sed 's/^/| /' conftest.$ac_ext >&5
15649
15650fi
15651rm -f conftest.err conftest.$ac_objext \
15652      conftest$ac_exeext conftest.$ac_ext
15653if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654
15655      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15656
15657      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"
15658     else
15659      if test "$host_cpu" = ia64; then
15660	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15661	allow_undefined_flag_CXX="-z nodefs"
15662	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"
15663      else
15664	# Determine the default libpath from the value encoded in an empty executable.
15665	cat >conftest.$ac_ext <<_ACEOF
15666/* confdefs.h.  */
15667_ACEOF
15668cat confdefs.h >>conftest.$ac_ext
15669cat >>conftest.$ac_ext <<_ACEOF
15670/* end confdefs.h.  */
15671
15672int
15673main ()
15674{
15675
15676  ;
15677  return 0;
15678}
15679_ACEOF
15680rm -f conftest.$ac_objext conftest$ac_exeext
15681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682  (eval $ac_link) 2>conftest.er1
15683  ac_status=$?
15684  grep -v '^ *+' conftest.er1 >conftest.err
15685  rm -f conftest.er1
15686  cat conftest.err >&5
15687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688  (exit $ac_status); } &&
15689	 { ac_try='test -z "$ac_cxx_werror_flag"
15690			 || test ! -s conftest.err'
15691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692  (eval $ac_try) 2>&5
15693  ac_status=$?
15694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695  (exit $ac_status); }; } &&
15696	 { ac_try='test -s conftest$ac_exeext'
15697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698  (eval $ac_try) 2>&5
15699  ac_status=$?
15700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701  (exit $ac_status); }; }; then
15702
15703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15704}'`
15705# Check for a 64-bit object if we didn't find anything.
15706if 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; }
15707}'`; fi
15708else
15709  echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712fi
15713rm -f conftest.err conftest.$ac_objext \
15714      conftest$ac_exeext conftest.$ac_ext
15715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15716
15717	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15718	# Warning - without using the other run time loading flags,
15719	# -berok will link without error, but may produce a broken library.
15720	no_undefined_flag_CXX=' ${wl}-bernotok'
15721	allow_undefined_flag_CXX=' ${wl}-berok'
15722	# -bexpall does not export symbols beginning with underscore (_)
15723	always_export_symbols_CXX=yes
15724	# Exported symbols can be pulled into shared objects from archives
15725	whole_archive_flag_spec_CXX=' '
15726	archive_cmds_need_lc_CXX=yes
15727	# This is similar to how AIX traditionally builds it's shared libraries.
15728	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'
15729      fi
15730    fi
15731    ;;
15732  chorus*)
15733    case $cc_basename in
15734      *)
15735	# FIXME: insert proper C++ library support
15736	ld_shlibs_CXX=no
15737	;;
15738    esac
15739    ;;
15740
15741
15742  cygwin* | mingw* | pw32*)
15743    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15744    # as there is no search path for DLLs.
15745    hardcode_libdir_flag_spec_CXX='-L$libdir'
15746    allow_undefined_flag_CXX=unsupported
15747    always_export_symbols_CXX=no
15748    enable_shared_with_static_runtimes_CXX=yes
15749
15750    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15751      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'
15752      # If the export-symbols file already is a .def file (1st line
15753      # is EXPORTS), use it as is; otherwise, prepend...
15754      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15755	cp $export_symbols $output_objdir/$soname.def;
15756      else
15757	echo EXPORTS > $output_objdir/$soname.def;
15758	cat $export_symbols >> $output_objdir/$soname.def;
15759      fi~
15760      $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'
15761    else
15762      ld_shlibs_CXX=no
15763    fi
15764  ;;
15765      darwin* | rhapsody*)
15766        case "$host_os" in
15767        rhapsody* | darwin1.[012])
15768         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15769         ;;
15770       *) # Darwin 1.3 on
15771         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15772           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15773         else
15774           case ${MACOSX_DEPLOYMENT_TARGET} in
15775             10.[012])
15776               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15777               ;;
15778             10.*)
15779               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15780               ;;
15781           esac
15782         fi
15783         ;;
15784        esac
15785      archive_cmds_need_lc_CXX=no
15786      hardcode_direct_CXX=no
15787      hardcode_automatic_CXX=yes
15788      hardcode_shlibpath_var_CXX=unsupported
15789      whole_archive_flag_spec_CXX=''
15790      link_all_deplibs_CXX=yes
15791
15792    if test "$GXX" = yes ; then
15793      lt_int_apple_cc_single_mod=no
15794      output_verbose_link_cmd='echo'
15795      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15796       lt_int_apple_cc_single_mod=yes
15797      fi
15798      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15799       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15800      else
15801          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'
15802        fi
15803        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15804        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15805          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15806            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}'
15807          else
15808            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}'
15809          fi
15810            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}'
15811      else
15812      case "$cc_basename" in
15813        xlc*)
15814         output_verbose_link_cmd='echo'
15815          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'
15816          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15817          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15818          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}'
15819          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}'
15820          ;;
15821       *)
15822         ld_shlibs_CXX=no
15823          ;;
15824      esac
15825      fi
15826        ;;
15827
15828  dgux*)
15829    case $cc_basename in
15830      ec++)
15831	# FIXME: insert proper C++ library support
15832	ld_shlibs_CXX=no
15833	;;
15834      ghcx)
15835	# Green Hills C++ Compiler
15836	# FIXME: insert proper C++ library support
15837	ld_shlibs_CXX=no
15838	;;
15839      *)
15840	# FIXME: insert proper C++ library support
15841	ld_shlibs_CXX=no
15842	;;
15843    esac
15844    ;;
15845  freebsd12*)
15846    # C++ shared libraries reported to be fairly broken before switch to ELF
15847    ld_shlibs_CXX=no
15848    ;;
15849  freebsd-elf*)
15850    archive_cmds_need_lc_CXX=no
15851    ;;
15852  freebsd* | kfreebsd*-gnu)
15853    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15854    # conventions
15855    ld_shlibs_CXX=yes
15856    ;;
15857  gnu*)
15858    ;;
15859  hpux9*)
15860    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15861    hardcode_libdir_separator_CXX=:
15862    export_dynamic_flag_spec_CXX='${wl}-E'
15863    hardcode_direct_CXX=yes
15864    hardcode_minus_L_CXX=yes # Not in the search PATH,
15865				# but as the default
15866				# location of the library.
15867
15868    case $cc_basename in
15869    CC)
15870      # FIXME: insert proper C++ library support
15871      ld_shlibs_CXX=no
15872      ;;
15873    aCC)
15874      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'
15875      # Commands to make compiler produce verbose output that lists
15876      # what "hidden" libraries, object files and flags are used when
15877      # linking a shared library.
15878      #
15879      # There doesn't appear to be a way to prevent this compiler from
15880      # explicitly linking system object files so we need to strip them
15881      # from the output so that they don't get included in the library
15882      # dependencies.
15883      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'
15884      ;;
15885    *)
15886      if test "$GXX" = yes; then
15887        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'
15888      else
15889        # FIXME: insert proper C++ library support
15890        ld_shlibs_CXX=no
15891      fi
15892      ;;
15893    esac
15894    ;;
15895  hpux10*|hpux11*)
15896    if test $with_gnu_ld = no; then
15897      case "$host_cpu" in
15898      hppa*64*)
15899	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15900	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15901	hardcode_libdir_separator_CXX=:
15902        ;;
15903      ia64*)
15904	hardcode_libdir_flag_spec_CXX='-L$libdir'
15905        ;;
15906      *)
15907	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15908	hardcode_libdir_separator_CXX=:
15909	export_dynamic_flag_spec_CXX='${wl}-E'
15910        ;;
15911      esac
15912    fi
15913    case "$host_cpu" in
15914    hppa*64*)
15915      hardcode_direct_CXX=no
15916      hardcode_shlibpath_var_CXX=no
15917      ;;
15918    ia64*)
15919      hardcode_direct_CXX=no
15920      hardcode_shlibpath_var_CXX=no
15921      hardcode_minus_L_CXX=yes # Not in the search PATH,
15922					      # but as the default
15923					      # location of the library.
15924      ;;
15925    *)
15926      hardcode_direct_CXX=yes
15927      hardcode_minus_L_CXX=yes # Not in the search PATH,
15928					      # but as the default
15929					      # location of the library.
15930      ;;
15931    esac
15932
15933    case $cc_basename in
15934      CC)
15935	# FIXME: insert proper C++ library support
15936	ld_shlibs_CXX=no
15937	;;
15938      aCC)
15939	case "$host_cpu" in
15940	hppa*64*|ia64*)
15941	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15942	  ;;
15943	*)
15944	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15945	  ;;
15946	esac
15947	# Commands to make compiler produce verbose output that lists
15948	# what "hidden" libraries, object files and flags are used when
15949	# linking a shared library.
15950	#
15951	# There doesn't appear to be a way to prevent this compiler from
15952	# explicitly linking system object files so we need to strip them
15953	# from the output so that they don't get included in the library
15954	# dependencies.
15955	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'
15956	;;
15957      *)
15958	if test "$GXX" = yes; then
15959	  if test $with_gnu_ld = no; then
15960	    case "$host_cpu" in
15961	    ia64*|hppa*64*)
15962	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15963	      ;;
15964	    *)
15965	      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'
15966	      ;;
15967	    esac
15968	  fi
15969	else
15970	  # FIXME: insert proper C++ library support
15971	  ld_shlibs_CXX=no
15972	fi
15973	;;
15974    esac
15975    ;;
15976  irix5* | irix6*)
15977    case $cc_basename in
15978      CC)
15979	# SGI C++
15980	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'
15981
15982	# Archives containing C++ object files must be created using
15983	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15984	# necessary to make sure instantiated templates are included
15985	# in the archive.
15986	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15987	;;
15988      *)
15989	if test "$GXX" = yes; then
15990	  if test "$with_gnu_ld" = no; then
15991	    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'
15992	  else
15993	    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'
15994	  fi
15995	fi
15996	link_all_deplibs_CXX=yes
15997	;;
15998    esac
15999    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16000    hardcode_libdir_separator_CXX=:
16001    ;;
16002  linux*)
16003    case $cc_basename in
16004      KCC)
16005	# Kuck and Associates, Inc. (KAI) C++ Compiler
16006
16007	# KCC will only create a shared library if the output file
16008	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16009	# to its proper name (with version) after linking.
16010	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'
16011	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'
16012	# Commands to make compiler produce verbose output that lists
16013	# what "hidden" libraries, object files and flags are used when
16014	# linking a shared library.
16015	#
16016	# There doesn't appear to be a way to prevent this compiler from
16017	# explicitly linking system object files so we need to strip them
16018	# from the output so that they don't get included in the library
16019	# dependencies.
16020	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'
16021
16022	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16023	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16024
16025	# Archives containing C++ object files must be created using
16026	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16027	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16028	;;
16029      icpc)
16030	# Intel C++
16031	with_gnu_ld=yes
16032	# version 8.0 and above of icpc choke on multiply defined symbols
16033	# if we add $predep_objects and $postdep_objects, however 7.1 and
16034	# earlier do not add the objects themselves.
16035	case `$CC -V 2>&1` in
16036	*"Version 7."*)
16037  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038  	  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'
16039	  ;;
16040	*)  # Version 8.0 or newer
16041  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043	  ;;
16044	esac
16045	archive_cmds_need_lc_CXX=no
16046	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16047	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16048	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16049	;;
16050      cxx)
16051	# Compaq C++
16052	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053	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'
16054
16055	runpath_var=LD_RUN_PATH
16056	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16057	hardcode_libdir_separator_CXX=:
16058
16059	# Commands to make compiler produce verbose output that lists
16060	# what "hidden" libraries, object files and flags are used when
16061	# linking a shared library.
16062	#
16063	# There doesn't appear to be a way to prevent this compiler from
16064	# explicitly linking system object files so we need to strip them
16065	# from the output so that they don't get included in the library
16066	# dependencies.
16067	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'
16068	;;
16069    esac
16070    ;;
16071  lynxos*)
16072    # FIXME: insert proper C++ library support
16073    ld_shlibs_CXX=no
16074    ;;
16075  m88k*)
16076    # FIXME: insert proper C++ library support
16077    ld_shlibs_CXX=no
16078    ;;
16079  mvs*)
16080    case $cc_basename in
16081      cxx)
16082	# FIXME: insert proper C++ library support
16083	ld_shlibs_CXX=no
16084	;;
16085      *)
16086	# FIXME: insert proper C++ library support
16087	ld_shlibs_CXX=no
16088	;;
16089    esac
16090    ;;
16091  netbsd*)
16092    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16094      wlarc=
16095      hardcode_libdir_flag_spec_CXX='-R$libdir'
16096      hardcode_direct_CXX=yes
16097      hardcode_shlibpath_var_CXX=no
16098    fi
16099    # Workaround some broken pre-1.5 toolchains
16100    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16101    ;;
16102  openbsd2*)
16103    # C++ shared libraries are fairly broken
16104    ld_shlibs_CXX=no
16105    ;;
16106  openbsd*)
16107    hardcode_direct_CXX=yes
16108    hardcode_shlibpath_var_CXX=no
16109    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16110    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16111    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16113      export_dynamic_flag_spec_CXX='${wl}-E'
16114      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16115    fi
16116    output_verbose_link_cmd='echo'
16117    ;;
16118  osf3*)
16119    case $cc_basename in
16120      KCC)
16121	# Kuck and Associates, Inc. (KAI) C++ Compiler
16122
16123	# KCC will only create a shared library if the output file
16124	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16125	# to its proper name (with version) after linking.
16126	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'
16127
16128	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16129	hardcode_libdir_separator_CXX=:
16130
16131	# Archives containing C++ object files must be created using
16132	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16133	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16134
16135	;;
16136      RCC)
16137	# Rational C++ 2.4.1
16138	# FIXME: insert proper C++ library support
16139	ld_shlibs_CXX=no
16140	;;
16141      cxx)
16142	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16143	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'
16144
16145	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16146	hardcode_libdir_separator_CXX=:
16147
16148	# Commands to make compiler produce verbose output that lists
16149	# what "hidden" libraries, object files and flags are used when
16150	# linking a shared library.
16151	#
16152	# There doesn't appear to be a way to prevent this compiler from
16153	# explicitly linking system object files so we need to strip them
16154	# from the output so that they don't get included in the library
16155	# dependencies.
16156	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'
16157	;;
16158      *)
16159	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16160	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16161	  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'
16162
16163	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16164	  hardcode_libdir_separator_CXX=:
16165
16166	  # Commands to make compiler produce verbose output that lists
16167	  # what "hidden" libraries, object files and flags are used when
16168	  # linking a shared library.
16169	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16170
16171	else
16172	  # FIXME: insert proper C++ library support
16173	  ld_shlibs_CXX=no
16174	fi
16175	;;
16176    esac
16177    ;;
16178  osf4* | osf5*)
16179    case $cc_basename in
16180      KCC)
16181	# Kuck and Associates, Inc. (KAI) C++ Compiler
16182
16183	# KCC will only create a shared library if the output file
16184	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16185	# to its proper name (with version) after linking.
16186	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'
16187
16188	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16189	hardcode_libdir_separator_CXX=:
16190
16191	# Archives containing C++ object files must be created using
16192	# the KAI C++ compiler.
16193	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16194	;;
16195      RCC)
16196	# Rational C++ 2.4.1
16197	# FIXME: insert proper C++ library support
16198	ld_shlibs_CXX=no
16199	;;
16200      cxx)
16201	allow_undefined_flag_CXX=' -expect_unresolved \*'
16202	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'
16203	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16204	  echo "-hidden">> $lib.exp~
16205	  $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~
16206	  $rm $lib.exp'
16207
16208	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16209	hardcode_libdir_separator_CXX=:
16210
16211	# Commands to make compiler produce verbose output that lists
16212	# what "hidden" libraries, object files and flags are used when
16213	# linking a shared library.
16214	#
16215	# There doesn't appear to be a way to prevent this compiler from
16216	# explicitly linking system object files so we need to strip them
16217	# from the output so that they don't get included in the library
16218	# dependencies.
16219	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'
16220	;;
16221      *)
16222	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16223	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16224	 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'
16225
16226	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16227	  hardcode_libdir_separator_CXX=:
16228
16229	  # Commands to make compiler produce verbose output that lists
16230	  # what "hidden" libraries, object files and flags are used when
16231	  # linking a shared library.
16232	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16233
16234	else
16235	  # FIXME: insert proper C++ library support
16236	  ld_shlibs_CXX=no
16237	fi
16238	;;
16239    esac
16240    ;;
16241  psos*)
16242    # FIXME: insert proper C++ library support
16243    ld_shlibs_CXX=no
16244    ;;
16245  sco*)
16246    archive_cmds_need_lc_CXX=no
16247    case $cc_basename in
16248      CC)
16249	# FIXME: insert proper C++ library support
16250	ld_shlibs_CXX=no
16251	;;
16252      *)
16253	# FIXME: insert proper C++ library support
16254	ld_shlibs_CXX=no
16255	;;
16256    esac
16257    ;;
16258  sunos4*)
16259    case $cc_basename in
16260      CC)
16261	# Sun C++ 4.x
16262	# FIXME: insert proper C++ library support
16263	ld_shlibs_CXX=no
16264	;;
16265      lcc)
16266	# Lucid
16267	# FIXME: insert proper C++ library support
16268	ld_shlibs_CXX=no
16269	;;
16270      *)
16271	# FIXME: insert proper C++ library support
16272	ld_shlibs_CXX=no
16273	;;
16274    esac
16275    ;;
16276  solaris*)
16277    case $cc_basename in
16278      CC)
16279	# Sun C++ 4.2, 5.x and Centerline C++
16280	no_undefined_flag_CXX=' -zdefs'
16281	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16282	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16283	$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'
16284
16285	hardcode_libdir_flag_spec_CXX='-R$libdir'
16286	hardcode_shlibpath_var_CXX=no
16287	case $host_os in
16288	  solaris2.0-5 | solaris2.0-5.*) ;;
16289	  *)
16290	    # The C++ compiler is used as linker so we must use $wl
16291	    # flag to pass the commands to the underlying system
16292	    # linker.
16293	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16294	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16295	    ;;
16296	esac
16297	link_all_deplibs_CXX=yes
16298
16299	# Commands to make compiler produce verbose output that lists
16300	# what "hidden" libraries, object files and flags are used when
16301	# linking a shared library.
16302	#
16303	# There doesn't appear to be a way to prevent this compiler from
16304	# explicitly linking system object files so we need to strip them
16305	# from the output so that they don't get included in the library
16306	# dependencies.
16307	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'
16308
16309	# Archives containing C++ object files must be created using
16310	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16311	# necessary to make sure instantiated templates are included
16312	# in the archive.
16313	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16314	;;
16315      gcx)
16316	# Green Hills C++ Compiler
16317	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16318
16319	# The C++ compiler must be used to create the archive.
16320	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16321	;;
16322      *)
16323	# GNU C++ compiler with Solaris linker
16324	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16325	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16326	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16327	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16328	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16329		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16330
16331	    # Commands to make compiler produce verbose output that lists
16332	    # what "hidden" libraries, object files and flags are used when
16333	    # linking a shared library.
16334	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16335	  else
16336	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16337	    # platform.
16338	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16339	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16340		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16341
16342	    # Commands to make compiler produce verbose output that lists
16343	    # what "hidden" libraries, object files and flags are used when
16344	    # linking a shared library.
16345	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16346	  fi
16347
16348	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16349	fi
16350	;;
16351    esac
16352    ;;
16353  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16354    archive_cmds_need_lc_CXX=no
16355    ;;
16356  tandem*)
16357    case $cc_basename in
16358      NCC)
16359	# NonStop-UX NCC 3.20
16360	# FIXME: insert proper C++ library support
16361	ld_shlibs_CXX=no
16362	;;
16363      *)
16364	# FIXME: insert proper C++ library support
16365	ld_shlibs_CXX=no
16366	;;
16367    esac
16368    ;;
16369  vxworks*)
16370    # FIXME: insert proper C++ library support
16371    ld_shlibs_CXX=no
16372    ;;
16373  *)
16374    # FIXME: insert proper C++ library support
16375    ld_shlibs_CXX=no
16376    ;;
16377esac
16378echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16379echo "${ECHO_T}$ld_shlibs_CXX" >&6
16380test "$ld_shlibs_CXX" = no && can_build_shared=no
16381
16382GCC_CXX="$GXX"
16383LD_CXX="$LD"
16384
16385
16386cat > conftest.$ac_ext <<EOF
16387class Foo
16388{
16389public:
16390  Foo (void) { a = 0; }
16391private:
16392  int a;
16393};
16394EOF
16395
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397  (eval $ac_compile) 2>&5
16398  ac_status=$?
16399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400  (exit $ac_status); }; then
16401  # Parse the compiler output and extract the necessary
16402  # objects, libraries and library flags.
16403
16404  # Sentinel used to keep track of whether or not we are before
16405  # the conftest object file.
16406  pre_test_object_deps_done=no
16407
16408  # The `*' in the case matches for architectures that use `case' in
16409  # $output_verbose_cmd can trigger glob expansion during the loop
16410  # eval without this substitution.
16411  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16412
16413  for p in `eval $output_verbose_link_cmd`; do
16414    case $p in
16415
16416    -L* | -R* | -l*)
16417       # Some compilers place space between "-{L,R}" and the path.
16418       # Remove the space.
16419       if test $p = "-L" \
16420	  || test $p = "-R"; then
16421	 prev=$p
16422	 continue
16423       else
16424	 prev=
16425       fi
16426
16427       if test "$pre_test_object_deps_done" = no; then
16428	 case $p in
16429	 -L* | -R*)
16430	   # Internal compiler library paths should come after those
16431	   # provided the user.  The postdeps already come after the
16432	   # user supplied libs so there is no need to process them.
16433	   if test -z "$compiler_lib_search_path_CXX"; then
16434	     compiler_lib_search_path_CXX="${prev}${p}"
16435	   else
16436	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16437	   fi
16438	   ;;
16439	 # The "-l" case would never come before the object being
16440	 # linked, so don't bother handling this case.
16441	 esac
16442       else
16443	 if test -z "$postdeps_CXX"; then
16444	   postdeps_CXX="${prev}${p}"
16445	 else
16446	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16447	 fi
16448       fi
16449       ;;
16450
16451    *.$objext)
16452       # This assumes that the test object file only shows up
16453       # once in the compiler output.
16454       if test "$p" = "conftest.$objext"; then
16455	 pre_test_object_deps_done=yes
16456	 continue
16457       fi
16458
16459       if test "$pre_test_object_deps_done" = no; then
16460	 if test -z "$predep_objects_CXX"; then
16461	   predep_objects_CXX="$p"
16462	 else
16463	   predep_objects_CXX="$predep_objects_CXX $p"
16464	 fi
16465       else
16466	 if test -z "$postdep_objects_CXX"; then
16467	   postdep_objects_CXX="$p"
16468	 else
16469	   postdep_objects_CXX="$postdep_objects_CXX $p"
16470	 fi
16471       fi
16472       ;;
16473
16474    *) ;; # Ignore the rest.
16475
16476    esac
16477  done
16478
16479  # Clean up.
16480  rm -f a.out a.exe
16481else
16482  echo "libtool.m4: error: problem compiling CXX test program"
16483fi
16484
16485$rm -f confest.$objext
16486
16487case " $postdeps_CXX " in
16488*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16489esac
16490
16491lt_prog_compiler_wl_CXX=
16492lt_prog_compiler_pic_CXX=
16493lt_prog_compiler_static_CXX=
16494
16495echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16496echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16497
16498  # C++ specific cases for pic, static, wl, etc.
16499  if test "$GXX" = yes; then
16500    lt_prog_compiler_wl_CXX='-Wl,'
16501    lt_prog_compiler_static_CXX='-static'
16502
16503    case $host_os in
16504    aix*)
16505      # All AIX code is PIC.
16506      if test "$host_cpu" = ia64; then
16507	# AIX 5 now supports IA64 processor
16508	lt_prog_compiler_static_CXX='-Bstatic'
16509      fi
16510      ;;
16511    amigaos*)
16512      # FIXME: we need at least 68020 code to build shared libraries, but
16513      # adding the `-m68020' flag to GCC prevents building anything better,
16514      # like `-m68040'.
16515      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16516      ;;
16517    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16518      # PIC is the default for these OSes.
16519      ;;
16520    mingw* | os2* | pw32*)
16521      # This hack is so that the source file can tell whether it is being
16522      # built for inclusion in a dll (and should export symbols for example).
16523      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16524      ;;
16525    darwin* | rhapsody*)
16526      # PIC is the default on this platform
16527      # Common symbols not allowed in MH_DYLIB files
16528      lt_prog_compiler_pic_CXX='-fno-common'
16529      ;;
16530    *djgpp*)
16531      # DJGPP does not support shared libraries at all
16532      lt_prog_compiler_pic_CXX=
16533      ;;
16534    sysv4*MP*)
16535      if test -d /usr/nec; then
16536	lt_prog_compiler_pic_CXX=-Kconform_pic
16537      fi
16538      ;;
16539    hpux*)
16540      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16541      # not for PA HP-UX.
16542      case "$host_cpu" in
16543      hppa*64*|ia64*)
16544	;;
16545      *)
16546	lt_prog_compiler_pic_CXX='-fPIC'
16547	;;
16548      esac
16549      ;;
16550    *)
16551      lt_prog_compiler_pic_CXX='-fPIC'
16552      ;;
16553    esac
16554  else
16555    case $host_os in
16556      aix4* | aix5*)
16557	# All AIX code is PIC.
16558	if test "$host_cpu" = ia64; then
16559	  # AIX 5 now supports IA64 processor
16560	  lt_prog_compiler_static_CXX='-Bstatic'
16561	else
16562	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16563	fi
16564	;;
16565      chorus*)
16566	case $cc_basename in
16567	cxch68)
16568	  # Green Hills C++ Compiler
16569	  # _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"
16570	  ;;
16571	esac
16572	;;
16573       darwin*)
16574         # PIC is the default on this platform
16575         # Common symbols not allowed in MH_DYLIB files
16576         case "$cc_basename" in
16577           xlc*)
16578           lt_prog_compiler_pic_CXX='-qnocommon'
16579           lt_prog_compiler_wl_CXX='-Wl,'
16580           ;;
16581         esac
16582       ;;
16583      dgux*)
16584	case $cc_basename in
16585	  ec++)
16586	    lt_prog_compiler_pic_CXX='-KPIC'
16587	    ;;
16588	  ghcx)
16589	    # Green Hills C++ Compiler
16590	    lt_prog_compiler_pic_CXX='-pic'
16591	    ;;
16592	  *)
16593	    ;;
16594	esac
16595	;;
16596      freebsd* | kfreebsd*-gnu)
16597	# FreeBSD uses GNU C++
16598	;;
16599      hpux9* | hpux10* | hpux11*)
16600	case $cc_basename in
16601	  CC)
16602	    lt_prog_compiler_wl_CXX='-Wl,'
16603	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16604	    if test "$host_cpu" != ia64; then
16605	      lt_prog_compiler_pic_CXX='+Z'
16606	    fi
16607	    ;;
16608	  aCC)
16609	    lt_prog_compiler_wl_CXX='-Wl,'
16610	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16611	    case "$host_cpu" in
16612	    hppa*64*|ia64*)
16613	      # +Z the default
16614	      ;;
16615	    *)
16616	      lt_prog_compiler_pic_CXX='+Z'
16617	      ;;
16618	    esac
16619	    ;;
16620	  *)
16621	    ;;
16622	esac
16623	;;
16624      irix5* | irix6* | nonstopux*)
16625	case $cc_basename in
16626	  CC)
16627	    lt_prog_compiler_wl_CXX='-Wl,'
16628	    lt_prog_compiler_static_CXX='-non_shared'
16629	    # CC pic flag -KPIC is the default.
16630	    ;;
16631	  *)
16632	    ;;
16633	esac
16634	;;
16635      linux*)
16636	case $cc_basename in
16637	  KCC)
16638	    # KAI C++ Compiler
16639	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16640	    lt_prog_compiler_pic_CXX='-fPIC'
16641	    ;;
16642	  icpc)
16643	    # Intel C++
16644	    lt_prog_compiler_wl_CXX='-Wl,'
16645	    lt_prog_compiler_pic_CXX='-KPIC'
16646	    lt_prog_compiler_static_CXX='-static'
16647	    ;;
16648	  cxx)
16649	    # Compaq C++
16650	    # Make sure the PIC flag is empty.  It appears that all Alpha
16651	    # Linux and Compaq Tru64 Unix objects are PIC.
16652	    lt_prog_compiler_pic_CXX=
16653	    lt_prog_compiler_static_CXX='-non_shared'
16654	    ;;
16655	  *)
16656	    ;;
16657	esac
16658	;;
16659      lynxos*)
16660	;;
16661      m88k*)
16662	;;
16663      mvs*)
16664	case $cc_basename in
16665	  cxx)
16666	    lt_prog_compiler_pic_CXX='-W c,exportall'
16667	    ;;
16668	  *)
16669	    ;;
16670	esac
16671	;;
16672      netbsd*)
16673	;;
16674      osf3* | osf4* | osf5*)
16675	case $cc_basename in
16676	  KCC)
16677	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16678	    ;;
16679	  RCC)
16680	    # Rational C++ 2.4.1
16681	    lt_prog_compiler_pic_CXX='-pic'
16682	    ;;
16683	  cxx)
16684	    # Digital/Compaq C++
16685	    lt_prog_compiler_wl_CXX='-Wl,'
16686	    # Make sure the PIC flag is empty.  It appears that all Alpha
16687	    # Linux and Compaq Tru64 Unix objects are PIC.
16688	    lt_prog_compiler_pic_CXX=
16689	    lt_prog_compiler_static_CXX='-non_shared'
16690	    ;;
16691	  *)
16692	    ;;
16693	esac
16694	;;
16695      psos*)
16696	;;
16697      sco*)
16698	case $cc_basename in
16699	  CC)
16700	    lt_prog_compiler_pic_CXX='-fPIC'
16701	    ;;
16702	  *)
16703	    ;;
16704	esac
16705	;;
16706      solaris*)
16707	case $cc_basename in
16708	  CC)
16709	    # Sun C++ 4.2, 5.x and Centerline C++
16710	    lt_prog_compiler_pic_CXX='-KPIC'
16711	    lt_prog_compiler_static_CXX='-Bstatic'
16712	    lt_prog_compiler_wl_CXX='-Qoption ld '
16713	    ;;
16714	  gcx)
16715	    # Green Hills C++ Compiler
16716	    lt_prog_compiler_pic_CXX='-PIC'
16717	    ;;
16718	  *)
16719	    ;;
16720	esac
16721	;;
16722      sunos4*)
16723	case $cc_basename in
16724	  CC)
16725	    # Sun C++ 4.x
16726	    lt_prog_compiler_pic_CXX='-pic'
16727	    lt_prog_compiler_static_CXX='-Bstatic'
16728	    ;;
16729	  lcc)
16730	    # Lucid
16731	    lt_prog_compiler_pic_CXX='-pic'
16732	    ;;
16733	  *)
16734	    ;;
16735	esac
16736	;;
16737      tandem*)
16738	case $cc_basename in
16739	  NCC)
16740	    # NonStop-UX NCC 3.20
16741	    lt_prog_compiler_pic_CXX='-KPIC'
16742	    ;;
16743	  *)
16744	    ;;
16745	esac
16746	;;
16747      unixware*)
16748	;;
16749      vxworks*)
16750	;;
16751      *)
16752	lt_prog_compiler_can_build_shared_CXX=no
16753	;;
16754    esac
16755  fi
16756
16757echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16758echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16759
16760#
16761# Check to make sure the PIC flag actually works.
16762#
16763if test -n "$lt_prog_compiler_pic_CXX"; then
16764
16765echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16766echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16767if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16768  echo $ECHO_N "(cached) $ECHO_C" >&6
16769else
16770  lt_prog_compiler_pic_works_CXX=no
16771  ac_outfile=conftest.$ac_objext
16772   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16773   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16774   # Insert the option either (1) after the last *FLAGS variable, or
16775   # (2) before a word containing "conftest.", or (3) at the end.
16776   # Note that $ac_compile itself does not contain backslashes and begins
16777   # with a dollar sign (not a hyphen), so the echo should work correctly.
16778   # The option is referenced via a variable to avoid confusing sed.
16779   lt_compile=`echo "$ac_compile" | $SED \
16780   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16781   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16782   -e 's:$: $lt_compiler_flag:'`
16783   (eval echo "\"\$as_me:16783: $lt_compile\"" >&5)
16784   (eval "$lt_compile" 2>conftest.err)
16785   ac_status=$?
16786   cat conftest.err >&5
16787   echo "$as_me:16787: \$? = $ac_status" >&5
16788   if (exit $ac_status) && test -s "$ac_outfile"; then
16789     # The compiler can only warn and ignore the option if not recognized
16790     # So say no if there are warnings
16791     if test ! -s conftest.err; then
16792       lt_prog_compiler_pic_works_CXX=yes
16793     fi
16794   fi
16795   $rm conftest*
16796
16797fi
16798echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16799echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16800
16801if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16802    case $lt_prog_compiler_pic_CXX in
16803     "" | " "*) ;;
16804     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16805     esac
16806else
16807    lt_prog_compiler_pic_CXX=
16808     lt_prog_compiler_can_build_shared_CXX=no
16809fi
16810
16811fi
16812case "$host_os" in
16813  # For platforms which do not support PIC, -DPIC is meaningless:
16814  *djgpp*)
16815    lt_prog_compiler_pic_CXX=
16816    ;;
16817  *)
16818    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16819    ;;
16820esac
16821
16822echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16823echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16824if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16825  echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827  lt_cv_prog_compiler_c_o_CXX=no
16828   $rm -r conftest 2>/dev/null
16829   mkdir conftest
16830   cd conftest
16831   mkdir out
16832   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16833
16834   lt_compiler_flag="-o out/conftest2.$ac_objext"
16835   # Insert the option either (1) after the last *FLAGS variable, or
16836   # (2) before a word containing "conftest.", or (3) at the end.
16837   # Note that $ac_compile itself does not contain backslashes and begins
16838   # with a dollar sign (not a hyphen), so the echo should work correctly.
16839   lt_compile=`echo "$ac_compile" | $SED \
16840   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842   -e 's:$: $lt_compiler_flag:'`
16843   (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844   (eval "$lt_compile" 2>out/conftest.err)
16845   ac_status=$?
16846   cat out/conftest.err >&5
16847   echo "$as_me:16847: \$? = $ac_status" >&5
16848   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16849   then
16850     # The compiler can only warn and ignore the option if not recognized
16851     # So say no if there are warnings
16852     if test ! -s out/conftest.err; then
16853       lt_cv_prog_compiler_c_o_CXX=yes
16854     fi
16855   fi
16856   chmod u+w .
16857   $rm conftest*
16858   # SGI C++ compiler will create directory out/ii_files/ for
16859   # template instantiation
16860   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16861   $rm out/* && rmdir out
16862   cd ..
16863   rmdir conftest
16864   $rm conftest*
16865
16866fi
16867echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16868echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16869
16870
16871hard_links="nottested"
16872if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16873  # do not overwrite the value of need_locks provided by the user
16874  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16876  hard_links=yes
16877  $rm conftest*
16878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879  touch conftest.a
16880  ln conftest.a conftest.b 2>&5 || hard_links=no
16881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16882  echo "$as_me:$LINENO: result: $hard_links" >&5
16883echo "${ECHO_T}$hard_links" >&6
16884  if test "$hard_links" = no; then
16885    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16887    need_locks=warn
16888  fi
16889else
16890  need_locks=no
16891fi
16892
16893echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16895
16896  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16897  case $host_os in
16898  aix4* | aix5*)
16899    # If we're using GNU nm, then we don't want the "-C" option.
16900    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16901    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16902      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'
16903    else
16904      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'
16905    fi
16906    ;;
16907  pw32*)
16908    export_symbols_cmds_CXX="$ltdll_cmds"
16909  ;;
16910  cygwin* | mingw*)
16911    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16912  ;;
16913  *)
16914    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16915  ;;
16916  esac
16917
16918echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16919echo "${ECHO_T}$ld_shlibs_CXX" >&6
16920test "$ld_shlibs_CXX" = no && can_build_shared=no
16921
16922variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923if test "$GCC" = yes; then
16924  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925fi
16926
16927#
16928# Do we need to explicitly link libc?
16929#
16930case "x$archive_cmds_need_lc_CXX" in
16931x|xyes)
16932  # Assume -lc should be added
16933  archive_cmds_need_lc_CXX=yes
16934
16935  if test "$enable_shared" = yes && test "$GCC" = yes; then
16936    case $archive_cmds_CXX in
16937    *'~'*)
16938      # FIXME: we may have to deal with multi-command sequences.
16939      ;;
16940    '$CC '*)
16941      # Test whether the compiler implicitly links with -lc since on some
16942      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16943      # to ld, don't add -lc before -lgcc.
16944      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16945echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16946      $rm conftest*
16947      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16948
16949      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950  (eval $ac_compile) 2>&5
16951  ac_status=$?
16952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953  (exit $ac_status); } 2>conftest.err; then
16954        soname=conftest
16955        lib=conftest
16956        libobjs=conftest.$ac_objext
16957        deplibs=
16958        wl=$lt_prog_compiler_wl_CXX
16959        compiler_flags=-v
16960        linker_flags=-v
16961        verstring=
16962        output_objdir=.
16963        libname=conftest
16964        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16965        allow_undefined_flag_CXX=
16966        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16967  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16968  ac_status=$?
16969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970  (exit $ac_status); }
16971        then
16972	  archive_cmds_need_lc_CXX=no
16973        else
16974	  archive_cmds_need_lc_CXX=yes
16975        fi
16976        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16977      else
16978        cat conftest.err 1>&5
16979      fi
16980      $rm conftest*
16981      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16982echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16983      ;;
16984    esac
16985  fi
16986  ;;
16987esac
16988
16989echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16990echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16991library_names_spec=
16992libname_spec='lib$name'
16993soname_spec=
16994shrext_cmds=".so"
16995postinstall_cmds=
16996postuninstall_cmds=
16997finish_cmds=
16998finish_eval=
16999shlibpath_var=
17000shlibpath_overrides_runpath=unknown
17001version_type=none
17002dynamic_linker="$host_os ld.so"
17003sys_lib_dlsearch_path_spec="/lib /usr/lib"
17004if test "$GCC" = yes; then
17005  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17006  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17007    # if the path contains ";" then we assume it to be the separator
17008    # otherwise default to the standard path separator (i.e. ":") - it is
17009    # assumed that no part of a normal pathname contains ";" but that should
17010    # okay in the real world where ";" in dirpaths is itself problematic.
17011    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17012  else
17013    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17014  fi
17015else
17016  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017fi
17018need_lib_prefix=unknown
17019hardcode_into_libs=no
17020
17021# when you set need_version to no, make sure it does not cause -set_version
17022# flags to be left without arguments
17023need_version=unknown
17024
17025case $host_os in
17026aix3*)
17027  version_type=linux
17028  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029  shlibpath_var=LIBPATH
17030
17031  # AIX 3 has no versioning support, so we append a major version to the name.
17032  soname_spec='${libname}${release}${shared_ext}$major'
17033  ;;
17034
17035aix4* | aix5*)
17036  version_type=linux
17037  need_lib_prefix=no
17038  need_version=no
17039  hardcode_into_libs=yes
17040  if test "$host_cpu" = ia64; then
17041    # AIX 5 supports IA64
17042    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043    shlibpath_var=LD_LIBRARY_PATH
17044  else
17045    # With GCC up to 2.95.x, collect2 would create an import file
17046    # for dependence libraries.  The import file would start with
17047    # the line `#! .'.  This would cause the generated library to
17048    # depend on `.', always an invalid library.  This was fixed in
17049    # development snapshots of GCC prior to 3.0.
17050    case $host_os in
17051      aix4 | aix4.[01] | aix4.[01].*)
17052      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17053	   echo ' yes '
17054	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17055	:
17056      else
17057	can_build_shared=no
17058      fi
17059      ;;
17060    esac
17061    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062    # soname into executable. Probably we can add versioning support to
17063    # collect2, so additional links can be useful in future.
17064    if test "$aix_use_runtimelinking" = yes; then
17065      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066      # instead of lib<name>.a to let people know that these are not
17067      # typical AIX shared libraries.
17068      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069    else
17070      # We preserve .a as extension for shared libraries through AIX4.2
17071      # and later when we are not doing run time linking.
17072      library_names_spec='${libname}${release}.a $libname.a'
17073      soname_spec='${libname}${release}${shared_ext}$major'
17074    fi
17075    shlibpath_var=LIBPATH
17076  fi
17077  ;;
17078
17079amigaos*)
17080  library_names_spec='$libname.ixlibrary $libname.a'
17081  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17082  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'
17083  ;;
17084
17085beos*)
17086  library_names_spec='${libname}${shared_ext}'
17087  dynamic_linker="$host_os ld.so"
17088  shlibpath_var=LIBRARY_PATH
17089  ;;
17090
17091bsdi[45]*)
17092  version_type=linux
17093  need_version=no
17094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17095  soname_spec='${libname}${release}${shared_ext}$major'
17096  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17097  shlibpath_var=LD_LIBRARY_PATH
17098  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17099  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17100  # the default ld.so.conf also contains /usr/contrib/lib and
17101  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17102  # libtool to hard-code these into programs
17103  ;;
17104
17105cygwin* | mingw* | pw32*)
17106  version_type=windows
17107  shrext_cmds=".dll"
17108  need_version=no
17109  need_lib_prefix=no
17110
17111  case $GCC,$host_os in
17112  yes,cygwin* | yes,mingw* | yes,pw32*)
17113    library_names_spec='$libname.dll.a'
17114    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17115    postinstall_cmds='base_file=`basename \${file}`~
17116      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17117      dldir=$destdir/`dirname \$dlpath`~
17118      test -d \$dldir || mkdir -p \$dldir~
17119      $install_prog $dir/$dlname \$dldir/$dlname'
17120    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17121      dlpath=$dir/\$dldll~
17122       $rm \$dlpath'
17123    shlibpath_overrides_runpath=yes
17124
17125    case $host_os in
17126    cygwin*)
17127      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17128      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17129      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17130      ;;
17131    mingw*)
17132      # MinGW DLLs use traditional 'lib' prefix
17133      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17135      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17136        # It is most probably a Windows format PATH printed by
17137        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17138        # path with ; separators, and with drive letters. We can handle the
17139        # drive letters (cygwin fileutils understands them), so leave them,
17140        # especially as we might pass files found there to a mingw objdump,
17141        # which wouldn't understand a cygwinified path. Ahh.
17142        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17143      else
17144        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17145      fi
17146      ;;
17147    pw32*)
17148      # pw32 DLLs use 'pw' prefix rather than 'lib'
17149      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17150      ;;
17151    esac
17152    ;;
17153
17154  *)
17155    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17156    ;;
17157  esac
17158  dynamic_linker='Win32 ld.exe'
17159  # FIXME: first we should search . and the directory the executable is in
17160  shlibpath_var=PATH
17161  ;;
17162
17163darwin* | rhapsody*)
17164  dynamic_linker="$host_os dyld"
17165  version_type=darwin
17166  need_lib_prefix=no
17167  need_version=no
17168  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17169  soname_spec='${libname}${release}${major}$shared_ext'
17170  shlibpath_overrides_runpath=yes
17171  shlibpath_var=DYLD_LIBRARY_PATH
17172  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17173  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17174  if test "$GCC" = yes; then
17175    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"`
17176  else
17177    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17178  fi
17179  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17180  ;;
17181
17182dgux*)
17183  version_type=linux
17184  need_lib_prefix=no
17185  need_version=no
17186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17187  soname_spec='${libname}${release}${shared_ext}$major'
17188  shlibpath_var=LD_LIBRARY_PATH
17189  ;;
17190
17191freebsd1*)
17192  dynamic_linker=no
17193  ;;
17194
17195kfreebsd*-gnu)
17196  version_type=linux
17197  need_lib_prefix=no
17198  need_version=no
17199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200  soname_spec='${libname}${release}${shared_ext}$major'
17201  shlibpath_var=LD_LIBRARY_PATH
17202  shlibpath_overrides_runpath=no
17203  hardcode_into_libs=yes
17204  dynamic_linker='GNU ld.so'
17205  ;;
17206
17207freebsd*)
17208  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17209  version_type=freebsd-$objformat
17210  case $version_type in
17211    freebsd-elf*)
17212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213      need_version=no
17214      need_lib_prefix=no
17215      ;;
17216    freebsd-*)
17217      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17218      need_version=yes
17219      ;;
17220  esac
17221  shlibpath_var=LD_LIBRARY_PATH
17222  case $host_os in
17223  freebsd2*)
17224    shlibpath_overrides_runpath=yes
17225    ;;
17226  freebsd3.01* | freebsdelf3.01*)
17227    shlibpath_overrides_runpath=yes
17228    hardcode_into_libs=yes
17229    ;;
17230  *) # from 3.2 on
17231    shlibpath_overrides_runpath=no
17232    hardcode_into_libs=yes
17233    ;;
17234  esac
17235  ;;
17236
17237gnu*)
17238  version_type=linux
17239  need_lib_prefix=no
17240  need_version=no
17241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242  soname_spec='${libname}${release}${shared_ext}$major'
17243  shlibpath_var=LD_LIBRARY_PATH
17244  hardcode_into_libs=yes
17245  ;;
17246
17247hpux9* | hpux10* | hpux11*)
17248  # Give a soname corresponding to the major version so that dld.sl refuses to
17249  # link against other versions.
17250  version_type=sunos
17251  need_lib_prefix=no
17252  need_version=no
17253  case "$host_cpu" in
17254  ia64*)
17255    shrext_cmds='.so'
17256    hardcode_into_libs=yes
17257    dynamic_linker="$host_os dld.so"
17258    shlibpath_var=LD_LIBRARY_PATH
17259    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261    soname_spec='${libname}${release}${shared_ext}$major'
17262    if test "X$HPUX_IA64_MODE" = X32; then
17263      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17264    else
17265      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17266    fi
17267    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17268    ;;
17269   hppa*64*)
17270     shrext_cmds='.sl'
17271     hardcode_into_libs=yes
17272     dynamic_linker="$host_os dld.sl"
17273     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17276     soname_spec='${libname}${release}${shared_ext}$major'
17277     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17278     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17279     ;;
17280   *)
17281    shrext_cmds='.sl'
17282    dynamic_linker="$host_os dld.sl"
17283    shlibpath_var=SHLIB_PATH
17284    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17285    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286    soname_spec='${libname}${release}${shared_ext}$major'
17287    ;;
17288  esac
17289  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17290  postinstall_cmds='chmod 555 $lib'
17291  ;;
17292
17293irix5* | irix6* | nonstopux*)
17294  case $host_os in
17295    nonstopux*) version_type=nonstopux ;;
17296    *)
17297	if test "$lt_cv_prog_gnu_ld" = yes; then
17298		version_type=linux
17299	else
17300		version_type=irix
17301	fi ;;
17302  esac
17303  need_lib_prefix=no
17304  need_version=no
17305  soname_spec='${libname}${release}${shared_ext}$major'
17306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17307  case $host_os in
17308  irix5* | nonstopux*)
17309    libsuff= shlibsuff=
17310    ;;
17311  *)
17312    case $LD in # libtool.m4 will add one of these switches to LD
17313    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17314      libsuff= shlibsuff= libmagic=32-bit;;
17315    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17316      libsuff=32 shlibsuff=N32 libmagic=N32;;
17317    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17318      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17319    *) libsuff= shlibsuff= libmagic=never-match;;
17320    esac
17321    ;;
17322  esac
17323  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17324  shlibpath_overrides_runpath=no
17325  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17326  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17327  hardcode_into_libs=yes
17328  ;;
17329
17330# No shared lib support for Linux oldld, aout, or coff.
17331linux*oldld* | linux*aout* | linux*coff*)
17332  dynamic_linker=no
17333  ;;
17334
17335# This must be Linux ELF.
17336linux*)
17337  version_type=linux
17338  need_lib_prefix=no
17339  need_version=no
17340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341  soname_spec='${libname}${release}${shared_ext}$major'
17342  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17343  shlibpath_var=LD_LIBRARY_PATH
17344  shlibpath_overrides_runpath=no
17345  # This implies no fast_install, which is unacceptable.
17346  # Some rework will be needed to allow for fast_install
17347  # before this can be enabled.
17348  hardcode_into_libs=yes
17349
17350  # Append ld.so.conf contents to the search path
17351  if test -f /etc/ld.so.conf; then
17352    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17353    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17354  fi
17355
17356  # We used to test for /lib/ld.so.1 and disable shared libraries on
17357  # powerpc, because MkLinux only supported shared libraries with the
17358  # GNU dynamic linker.  Since this was broken with cross compilers,
17359  # most powerpc-linux boxes support dynamic linking these days and
17360  # people can always --disable-shared, the test was removed, and we
17361  # assume the GNU/Linux dynamic linker is in use.
17362  dynamic_linker='GNU/Linux ld.so'
17363  ;;
17364
17365knetbsd*-gnu)
17366  version_type=linux
17367  need_lib_prefix=no
17368  need_version=no
17369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370  soname_spec='${libname}${release}${shared_ext}$major'
17371  shlibpath_var=LD_LIBRARY_PATH
17372  shlibpath_overrides_runpath=no
17373  hardcode_into_libs=yes
17374  dynamic_linker='GNU ld.so'
17375  ;;
17376
17377netbsd*)
17378  version_type=sunos
17379  need_lib_prefix=no
17380  need_version=no
17381  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17383    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17384    dynamic_linker='NetBSD (a.out) ld.so'
17385  else
17386    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387    soname_spec='${libname}${release}${shared_ext}$major'
17388    dynamic_linker='NetBSD ld.elf_so'
17389  fi
17390  shlibpath_var=LD_LIBRARY_PATH
17391  shlibpath_overrides_runpath=yes
17392  hardcode_into_libs=yes
17393  ;;
17394
17395newsos6)
17396  version_type=linux
17397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398  shlibpath_var=LD_LIBRARY_PATH
17399  shlibpath_overrides_runpath=yes
17400  ;;
17401
17402nto-qnx*)
17403  version_type=linux
17404  need_lib_prefix=no
17405  need_version=no
17406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17407  soname_spec='${libname}${release}${shared_ext}$major'
17408  shlibpath_var=LD_LIBRARY_PATH
17409  shlibpath_overrides_runpath=yes
17410  ;;
17411
17412openbsd*)
17413  version_type=sunos
17414  need_lib_prefix=no
17415  need_version=no
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17420    case $host_os in
17421      openbsd2.[89] | openbsd2.[89].*)
17422	shlibpath_overrides_runpath=no
17423	;;
17424      *)
17425	shlibpath_overrides_runpath=yes
17426	;;
17427      esac
17428  else
17429    shlibpath_overrides_runpath=yes
17430  fi
17431  ;;
17432
17433os2*)
17434  libname_spec='$name'
17435  shrext_cmds=".dll"
17436  need_lib_prefix=no
17437  library_names_spec='$libname${shared_ext} $libname.a'
17438  dynamic_linker='OS/2 ld.exe'
17439  shlibpath_var=LIBPATH
17440  ;;
17441
17442osf3* | osf4* | osf5*)
17443  version_type=osf
17444  need_lib_prefix=no
17445  need_version=no
17446  soname_spec='${libname}${release}${shared_ext}$major'
17447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448  shlibpath_var=LD_LIBRARY_PATH
17449  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17450  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17451  ;;
17452
17453sco3.2v5*)
17454  version_type=osf
17455  soname_spec='${libname}${release}${shared_ext}$major'
17456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457  shlibpath_var=LD_LIBRARY_PATH
17458  ;;
17459
17460solaris*)
17461  version_type=linux
17462  need_lib_prefix=no
17463  need_version=no
17464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17465  soname_spec='${libname}${release}${shared_ext}$major'
17466  shlibpath_var=LD_LIBRARY_PATH
17467  shlibpath_overrides_runpath=yes
17468  hardcode_into_libs=yes
17469  # ldd complains unless libraries are executable
17470  postinstall_cmds='chmod +x $lib'
17471  ;;
17472
17473sunos4*)
17474  version_type=sunos
17475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17476  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17477  shlibpath_var=LD_LIBRARY_PATH
17478  shlibpath_overrides_runpath=yes
17479  if test "$with_gnu_ld" = yes; then
17480    need_lib_prefix=no
17481  fi
17482  need_version=yes
17483  ;;
17484
17485sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17486  version_type=linux
17487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488  soname_spec='${libname}${release}${shared_ext}$major'
17489  shlibpath_var=LD_LIBRARY_PATH
17490  case $host_vendor in
17491    sni)
17492      shlibpath_overrides_runpath=no
17493      need_lib_prefix=no
17494      export_dynamic_flag_spec='${wl}-Blargedynsym'
17495      runpath_var=LD_RUN_PATH
17496      ;;
17497    siemens)
17498      need_lib_prefix=no
17499      ;;
17500    motorola)
17501      need_lib_prefix=no
17502      need_version=no
17503      shlibpath_overrides_runpath=no
17504      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17505      ;;
17506  esac
17507  ;;
17508
17509sysv4*MP*)
17510  if test -d /usr/nec ;then
17511    version_type=linux
17512    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17513    soname_spec='$libname${shared_ext}.$major'
17514    shlibpath_var=LD_LIBRARY_PATH
17515  fi
17516  ;;
17517
17518uts4*)
17519  version_type=linux
17520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521  soname_spec='${libname}${release}${shared_ext}$major'
17522  shlibpath_var=LD_LIBRARY_PATH
17523  ;;
17524
17525*)
17526  dynamic_linker=no
17527  ;;
17528esac
17529echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17530echo "${ECHO_T}$dynamic_linker" >&6
17531test "$dynamic_linker" = no && can_build_shared=no
17532
17533echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17534echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17535hardcode_action_CXX=
17536if test -n "$hardcode_libdir_flag_spec_CXX" || \
17537   test -n "$runpath_var_CXX" || \
17538   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17539
17540  # We can hardcode non-existant directories.
17541  if test "$hardcode_direct_CXX" != no &&
17542     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17543     # have to relink, otherwise we might link with an installed library
17544     # when we should be linking with a yet-to-be-installed one
17545     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17546     test "$hardcode_minus_L_CXX" != no; then
17547    # Linking always hardcodes the temporary library directory.
17548    hardcode_action_CXX=relink
17549  else
17550    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17551    hardcode_action_CXX=immediate
17552  fi
17553else
17554  # We cannot hardcode anything, or else we can only hardcode existing
17555  # directories.
17556  hardcode_action_CXX=unsupported
17557fi
17558echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17559echo "${ECHO_T}$hardcode_action_CXX" >&6
17560
17561if test "$hardcode_action_CXX" = relink; then
17562  # Fast installation is not supported
17563  enable_fast_install=no
17564elif test "$shlibpath_overrides_runpath" = yes ||
17565     test "$enable_shared" = no; then
17566  # Fast installation is not necessary
17567  enable_fast_install=needless
17568fi
17569
17570striplib=
17571old_striplib=
17572echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17573echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17574if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17575  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17576  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17577  echo "$as_me:$LINENO: result: yes" >&5
17578echo "${ECHO_T}yes" >&6
17579else
17580# FIXME - insert some real tests, host_os isn't really good enough
17581  case $host_os in
17582   darwin*)
17583       if test -n "$STRIP" ; then
17584         striplib="$STRIP -x"
17585         echo "$as_me:$LINENO: result: yes" >&5
17586echo "${ECHO_T}yes" >&6
17587       else
17588  echo "$as_me:$LINENO: result: no" >&5
17589echo "${ECHO_T}no" >&6
17590fi
17591       ;;
17592   *)
17593  echo "$as_me:$LINENO: result: no" >&5
17594echo "${ECHO_T}no" >&6
17595    ;;
17596  esac
17597fi
17598
17599if test "x$enable_dlopen" != xyes; then
17600  enable_dlopen=unknown
17601  enable_dlopen_self=unknown
17602  enable_dlopen_self_static=unknown
17603else
17604  lt_cv_dlopen=no
17605  lt_cv_dlopen_libs=
17606
17607  case $host_os in
17608  beos*)
17609    lt_cv_dlopen="load_add_on"
17610    lt_cv_dlopen_libs=
17611    lt_cv_dlopen_self=yes
17612    ;;
17613
17614  mingw* | pw32*)
17615    lt_cv_dlopen="LoadLibrary"
17616    lt_cv_dlopen_libs=
17617   ;;
17618
17619  cygwin*)
17620    lt_cv_dlopen="dlopen"
17621    lt_cv_dlopen_libs=
17622   ;;
17623
17624  darwin*)
17625  # if libdl is installed we need to link against it
17626    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17627echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17629  echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631  ac_check_lib_save_LIBS=$LIBS
17632LIBS="-ldl  $LIBS"
17633cat >conftest.$ac_ext <<_ACEOF
17634/* confdefs.h.  */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h.  */
17639
17640/* Override any gcc2 internal prototype to avoid an error.  */
17641#ifdef __cplusplus
17642extern "C"
17643#endif
17644/* We use char because int might match the return type of a gcc2
17645   builtin and then its argument prototype would still apply.  */
17646char dlopen ();
17647int
17648main ()
17649{
17650dlopen ();
17651  ;
17652  return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext conftest$ac_exeext
17656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657  (eval $ac_link) 2>conftest.er1
17658  ac_status=$?
17659  grep -v '^ *+' conftest.er1 >conftest.err
17660  rm -f conftest.er1
17661  cat conftest.err >&5
17662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663  (exit $ac_status); } &&
17664	 { ac_try='test -z "$ac_cxx_werror_flag"
17665			 || test ! -s conftest.err'
17666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667  (eval $ac_try) 2>&5
17668  ac_status=$?
17669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670  (exit $ac_status); }; } &&
17671	 { ac_try='test -s conftest$ac_exeext'
17672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673  (eval $ac_try) 2>&5
17674  ac_status=$?
17675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676  (exit $ac_status); }; }; then
17677  ac_cv_lib_dl_dlopen=yes
17678else
17679  echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682ac_cv_lib_dl_dlopen=no
17683fi
17684rm -f conftest.err conftest.$ac_objext \
17685      conftest$ac_exeext conftest.$ac_ext
17686LIBS=$ac_check_lib_save_LIBS
17687fi
17688echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17689echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17690if test $ac_cv_lib_dl_dlopen = yes; then
17691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17692else
17693
17694    lt_cv_dlopen="dyld"
17695    lt_cv_dlopen_libs=
17696    lt_cv_dlopen_self=yes
17697
17698fi
17699
17700   ;;
17701
17702  *)
17703    echo "$as_me:$LINENO: checking for shl_load" >&5
17704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17705if test "${ac_cv_func_shl_load+set}" = set; then
17706  echo $ECHO_N "(cached) $ECHO_C" >&6
17707else
17708  cat >conftest.$ac_ext <<_ACEOF
17709/* confdefs.h.  */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h.  */
17714/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17716#define shl_load innocuous_shl_load
17717
17718/* System header to define __stub macros and hopefully few prototypes,
17719    which can conflict with char shl_load (); below.
17720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17721    <limits.h> exists even on freestanding compilers.  */
17722
17723#ifdef __STDC__
17724# include <limits.h>
17725#else
17726# include <assert.h>
17727#endif
17728
17729#undef shl_load
17730
17731/* Override any gcc2 internal prototype to avoid an error.  */
17732#ifdef __cplusplus
17733extern "C"
17734{
17735#endif
17736/* We use char because int might match the return type of a gcc2
17737   builtin and then its argument prototype would still apply.  */
17738char shl_load ();
17739/* The GNU C library defines this for functions which it implements
17740    to always fail with ENOSYS.  Some functions are actually named
17741    something starting with __ and the normal name is an alias.  */
17742#if defined (__stub_shl_load) || defined (__stub___shl_load)
17743choke me
17744#else
17745char (*f) () = shl_load;
17746#endif
17747#ifdef __cplusplus
17748}
17749#endif
17750
17751int
17752main ()
17753{
17754return f != shl_load;
17755  ;
17756  return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext conftest$ac_exeext
17760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761  (eval $ac_link) 2>conftest.er1
17762  ac_status=$?
17763  grep -v '^ *+' conftest.er1 >conftest.err
17764  rm -f conftest.er1
17765  cat conftest.err >&5
17766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767  (exit $ac_status); } &&
17768	 { ac_try='test -z "$ac_cxx_werror_flag"
17769			 || test ! -s conftest.err'
17770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771  (eval $ac_try) 2>&5
17772  ac_status=$?
17773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774  (exit $ac_status); }; } &&
17775	 { ac_try='test -s conftest$ac_exeext'
17776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777  (eval $ac_try) 2>&5
17778  ac_status=$?
17779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780  (exit $ac_status); }; }; then
17781  ac_cv_func_shl_load=yes
17782else
17783  echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786ac_cv_func_shl_load=no
17787fi
17788rm -f conftest.err conftest.$ac_objext \
17789      conftest$ac_exeext conftest.$ac_ext
17790fi
17791echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17792echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17793if test $ac_cv_func_shl_load = yes; then
17794  lt_cv_dlopen="shl_load"
17795else
17796  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17797echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17798if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17799  echo $ECHO_N "(cached) $ECHO_C" >&6
17800else
17801  ac_check_lib_save_LIBS=$LIBS
17802LIBS="-ldld  $LIBS"
17803cat >conftest.$ac_ext <<_ACEOF
17804/* confdefs.h.  */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h.  */
17809
17810/* Override any gcc2 internal prototype to avoid an error.  */
17811#ifdef __cplusplus
17812extern "C"
17813#endif
17814/* We use char because int might match the return type of a gcc2
17815   builtin and then its argument prototype would still apply.  */
17816char shl_load ();
17817int
17818main ()
17819{
17820shl_load ();
17821  ;
17822  return 0;
17823}
17824_ACEOF
17825rm -f conftest.$ac_objext conftest$ac_exeext
17826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827  (eval $ac_link) 2>conftest.er1
17828  ac_status=$?
17829  grep -v '^ *+' conftest.er1 >conftest.err
17830  rm -f conftest.er1
17831  cat conftest.err >&5
17832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833  (exit $ac_status); } &&
17834	 { ac_try='test -z "$ac_cxx_werror_flag"
17835			 || test ! -s conftest.err'
17836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837  (eval $ac_try) 2>&5
17838  ac_status=$?
17839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840  (exit $ac_status); }; } &&
17841	 { ac_try='test -s conftest$ac_exeext'
17842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843  (eval $ac_try) 2>&5
17844  ac_status=$?
17845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846  (exit $ac_status); }; }; then
17847  ac_cv_lib_dld_shl_load=yes
17848else
17849  echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852ac_cv_lib_dld_shl_load=no
17853fi
17854rm -f conftest.err conftest.$ac_objext \
17855      conftest$ac_exeext conftest.$ac_ext
17856LIBS=$ac_check_lib_save_LIBS
17857fi
17858echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17859echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17860if test $ac_cv_lib_dld_shl_load = yes; then
17861  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17862else
17863  echo "$as_me:$LINENO: checking for dlopen" >&5
17864echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17865if test "${ac_cv_func_dlopen+set}" = set; then
17866  echo $ECHO_N "(cached) $ECHO_C" >&6
17867else
17868  cat >conftest.$ac_ext <<_ACEOF
17869/* confdefs.h.  */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h.  */
17874/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17876#define dlopen innocuous_dlopen
17877
17878/* System header to define __stub macros and hopefully few prototypes,
17879    which can conflict with char dlopen (); below.
17880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881    <limits.h> exists even on freestanding compilers.  */
17882
17883#ifdef __STDC__
17884# include <limits.h>
17885#else
17886# include <assert.h>
17887#endif
17888
17889#undef dlopen
17890
17891/* Override any gcc2 internal prototype to avoid an error.  */
17892#ifdef __cplusplus
17893extern "C"
17894{
17895#endif
17896/* We use char because int might match the return type of a gcc2
17897   builtin and then its argument prototype would still apply.  */
17898char dlopen ();
17899/* The GNU C library defines this for functions which it implements
17900    to always fail with ENOSYS.  Some functions are actually named
17901    something starting with __ and the normal name is an alias.  */
17902#if defined (__stub_dlopen) || defined (__stub___dlopen)
17903choke me
17904#else
17905char (*f) () = dlopen;
17906#endif
17907#ifdef __cplusplus
17908}
17909#endif
17910
17911int
17912main ()
17913{
17914return f != dlopen;
17915  ;
17916  return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext conftest$ac_exeext
17920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17921  (eval $ac_link) 2>conftest.er1
17922  ac_status=$?
17923  grep -v '^ *+' conftest.er1 >conftest.err
17924  rm -f conftest.er1
17925  cat conftest.err >&5
17926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927  (exit $ac_status); } &&
17928	 { ac_try='test -z "$ac_cxx_werror_flag"
17929			 || test ! -s conftest.err'
17930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931  (eval $ac_try) 2>&5
17932  ac_status=$?
17933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934  (exit $ac_status); }; } &&
17935	 { ac_try='test -s conftest$ac_exeext'
17936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937  (eval $ac_try) 2>&5
17938  ac_status=$?
17939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940  (exit $ac_status); }; }; then
17941  ac_cv_func_dlopen=yes
17942else
17943  echo "$as_me: failed program was:" >&5
17944sed 's/^/| /' conftest.$ac_ext >&5
17945
17946ac_cv_func_dlopen=no
17947fi
17948rm -f conftest.err conftest.$ac_objext \
17949      conftest$ac_exeext conftest.$ac_ext
17950fi
17951echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17952echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17953if test $ac_cv_func_dlopen = yes; then
17954  lt_cv_dlopen="dlopen"
17955else
17956  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17959  echo $ECHO_N "(cached) $ECHO_C" >&6
17960else
17961  ac_check_lib_save_LIBS=$LIBS
17962LIBS="-ldl  $LIBS"
17963cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h.  */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h.  */
17969
17970/* Override any gcc2 internal prototype to avoid an error.  */
17971#ifdef __cplusplus
17972extern "C"
17973#endif
17974/* We use char because int might match the return type of a gcc2
17975   builtin and then its argument prototype would still apply.  */
17976char dlopen ();
17977int
17978main ()
17979{
17980dlopen ();
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987  (eval $ac_link) 2>conftest.er1
17988  ac_status=$?
17989  grep -v '^ *+' conftest.er1 >conftest.err
17990  rm -f conftest.er1
17991  cat conftest.err >&5
17992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993  (exit $ac_status); } &&
17994	 { ac_try='test -z "$ac_cxx_werror_flag"
17995			 || test ! -s conftest.err'
17996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997  (eval $ac_try) 2>&5
17998  ac_status=$?
17999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000  (exit $ac_status); }; } &&
18001	 { ac_try='test -s conftest$ac_exeext'
18002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003  (eval $ac_try) 2>&5
18004  ac_status=$?
18005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006  (exit $ac_status); }; }; then
18007  ac_cv_lib_dl_dlopen=yes
18008else
18009  echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012ac_cv_lib_dl_dlopen=no
18013fi
18014rm -f conftest.err conftest.$ac_objext \
18015      conftest$ac_exeext conftest.$ac_ext
18016LIBS=$ac_check_lib_save_LIBS
18017fi
18018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18020if test $ac_cv_lib_dl_dlopen = yes; then
18021  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18022else
18023  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18024echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18025if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18026  echo $ECHO_N "(cached) $ECHO_C" >&6
18027else
18028  ac_check_lib_save_LIBS=$LIBS
18029LIBS="-lsvld  $LIBS"
18030cat >conftest.$ac_ext <<_ACEOF
18031/* confdefs.h.  */
18032_ACEOF
18033cat confdefs.h >>conftest.$ac_ext
18034cat >>conftest.$ac_ext <<_ACEOF
18035/* end confdefs.h.  */
18036
18037/* Override any gcc2 internal prototype to avoid an error.  */
18038#ifdef __cplusplus
18039extern "C"
18040#endif
18041/* We use char because int might match the return type of a gcc2
18042   builtin and then its argument prototype would still apply.  */
18043char dlopen ();
18044int
18045main ()
18046{
18047dlopen ();
18048  ;
18049  return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext conftest$ac_exeext
18053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054  (eval $ac_link) 2>conftest.er1
18055  ac_status=$?
18056  grep -v '^ *+' conftest.er1 >conftest.err
18057  rm -f conftest.er1
18058  cat conftest.err >&5
18059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060  (exit $ac_status); } &&
18061	 { ac_try='test -z "$ac_cxx_werror_flag"
18062			 || test ! -s conftest.err'
18063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064  (eval $ac_try) 2>&5
18065  ac_status=$?
18066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067  (exit $ac_status); }; } &&
18068	 { ac_try='test -s conftest$ac_exeext'
18069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070  (eval $ac_try) 2>&5
18071  ac_status=$?
18072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073  (exit $ac_status); }; }; then
18074  ac_cv_lib_svld_dlopen=yes
18075else
18076  echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079ac_cv_lib_svld_dlopen=no
18080fi
18081rm -f conftest.err conftest.$ac_objext \
18082      conftest$ac_exeext conftest.$ac_ext
18083LIBS=$ac_check_lib_save_LIBS
18084fi
18085echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18086echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18087if test $ac_cv_lib_svld_dlopen = yes; then
18088  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18089else
18090  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18091echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18092if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18093  echo $ECHO_N "(cached) $ECHO_C" >&6
18094else
18095  ac_check_lib_save_LIBS=$LIBS
18096LIBS="-ldld  $LIBS"
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h.  */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h.  */
18103
18104/* Override any gcc2 internal prototype to avoid an error.  */
18105#ifdef __cplusplus
18106extern "C"
18107#endif
18108/* We use char because int might match the return type of a gcc2
18109   builtin and then its argument prototype would still apply.  */
18110char dld_link ();
18111int
18112main ()
18113{
18114dld_link ();
18115  ;
18116  return 0;
18117}
18118_ACEOF
18119rm -f conftest.$ac_objext conftest$ac_exeext
18120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18121  (eval $ac_link) 2>conftest.er1
18122  ac_status=$?
18123  grep -v '^ *+' conftest.er1 >conftest.err
18124  rm -f conftest.er1
18125  cat conftest.err >&5
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); } &&
18128	 { ac_try='test -z "$ac_cxx_werror_flag"
18129			 || test ! -s conftest.err'
18130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131  (eval $ac_try) 2>&5
18132  ac_status=$?
18133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134  (exit $ac_status); }; } &&
18135	 { ac_try='test -s conftest$ac_exeext'
18136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137  (eval $ac_try) 2>&5
18138  ac_status=$?
18139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140  (exit $ac_status); }; }; then
18141  ac_cv_lib_dld_dld_link=yes
18142else
18143  echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
18146ac_cv_lib_dld_dld_link=no
18147fi
18148rm -f conftest.err conftest.$ac_objext \
18149      conftest$ac_exeext conftest.$ac_ext
18150LIBS=$ac_check_lib_save_LIBS
18151fi
18152echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18153echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18154if test $ac_cv_lib_dld_dld_link = yes; then
18155  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18156fi
18157
18158
18159fi
18160
18161
18162fi
18163
18164
18165fi
18166
18167
18168fi
18169
18170
18171fi
18172
18173    ;;
18174  esac
18175
18176  if test "x$lt_cv_dlopen" != xno; then
18177    enable_dlopen=yes
18178  else
18179    enable_dlopen=no
18180  fi
18181
18182  case $lt_cv_dlopen in
18183  dlopen)
18184    save_CPPFLAGS="$CPPFLAGS"
18185    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18186
18187    save_LDFLAGS="$LDFLAGS"
18188    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18189
18190    save_LIBS="$LIBS"
18191    LIBS="$lt_cv_dlopen_libs $LIBS"
18192
18193    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18194echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18195if test "${lt_cv_dlopen_self+set}" = set; then
18196  echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198  	  if test "$cross_compiling" = yes; then :
18199  lt_cv_dlopen_self=cross
18200else
18201  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18202  lt_status=$lt_dlunknown
18203  cat > conftest.$ac_ext <<EOF
18204#line 18204 "configure"
18205#include "confdefs.h"
18206
18207#if HAVE_DLFCN_H
18208#include <dlfcn.h>
18209#endif
18210
18211#include <stdio.h>
18212
18213#ifdef RTLD_GLOBAL
18214#  define LT_DLGLOBAL		RTLD_GLOBAL
18215#else
18216#  ifdef DL_GLOBAL
18217#    define LT_DLGLOBAL		DL_GLOBAL
18218#  else
18219#    define LT_DLGLOBAL		0
18220#  endif
18221#endif
18222
18223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18224   find out it does not work in some platform. */
18225#ifndef LT_DLLAZY_OR_NOW
18226#  ifdef RTLD_LAZY
18227#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18228#  else
18229#    ifdef DL_LAZY
18230#      define LT_DLLAZY_OR_NOW		DL_LAZY
18231#    else
18232#      ifdef RTLD_NOW
18233#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18234#      else
18235#        ifdef DL_NOW
18236#          define LT_DLLAZY_OR_NOW	DL_NOW
18237#        else
18238#          define LT_DLLAZY_OR_NOW	0
18239#        endif
18240#      endif
18241#    endif
18242#  endif
18243#endif
18244
18245#ifdef __cplusplus
18246extern "C" void exit (int);
18247#endif
18248
18249void fnord() { int i=42;}
18250int main ()
18251{
18252  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18253  int status = $lt_dlunknown;
18254
18255  if (self)
18256    {
18257      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18258      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18259      /* dlclose (self); */
18260    }
18261
18262    exit (status);
18263}
18264EOF
18265  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266  (eval $ac_link) 2>&5
18267  ac_status=$?
18268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18270    (./conftest; exit; ) 2>/dev/null
18271    lt_status=$?
18272    case x$lt_status in
18273      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18274      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18275      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18276    esac
18277  else :
18278    # compilation failed
18279    lt_cv_dlopen_self=no
18280  fi
18281fi
18282rm -fr conftest*
18283
18284
18285fi
18286echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18287echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18288
18289    if test "x$lt_cv_dlopen_self" = xyes; then
18290      LDFLAGS="$LDFLAGS $link_static_flag"
18291      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18292echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18293if test "${lt_cv_dlopen_self_static+set}" = set; then
18294  echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296  	  if test "$cross_compiling" = yes; then :
18297  lt_cv_dlopen_self_static=cross
18298else
18299  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18300  lt_status=$lt_dlunknown
18301  cat > conftest.$ac_ext <<EOF
18302#line 18302 "configure"
18303#include "confdefs.h"
18304
18305#if HAVE_DLFCN_H
18306#include <dlfcn.h>
18307#endif
18308
18309#include <stdio.h>
18310
18311#ifdef RTLD_GLOBAL
18312#  define LT_DLGLOBAL		RTLD_GLOBAL
18313#else
18314#  ifdef DL_GLOBAL
18315#    define LT_DLGLOBAL		DL_GLOBAL
18316#  else
18317#    define LT_DLGLOBAL		0
18318#  endif
18319#endif
18320
18321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18322   find out it does not work in some platform. */
18323#ifndef LT_DLLAZY_OR_NOW
18324#  ifdef RTLD_LAZY
18325#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18326#  else
18327#    ifdef DL_LAZY
18328#      define LT_DLLAZY_OR_NOW		DL_LAZY
18329#    else
18330#      ifdef RTLD_NOW
18331#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18332#      else
18333#        ifdef DL_NOW
18334#          define LT_DLLAZY_OR_NOW	DL_NOW
18335#        else
18336#          define LT_DLLAZY_OR_NOW	0
18337#        endif
18338#      endif
18339#    endif
18340#  endif
18341#endif
18342
18343#ifdef __cplusplus
18344extern "C" void exit (int);
18345#endif
18346
18347void fnord() { int i=42;}
18348int main ()
18349{
18350  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18351  int status = $lt_dlunknown;
18352
18353  if (self)
18354    {
18355      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18356      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18357      /* dlclose (self); */
18358    }
18359
18360    exit (status);
18361}
18362EOF
18363  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364  (eval $ac_link) 2>&5
18365  ac_status=$?
18366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18368    (./conftest; exit; ) 2>/dev/null
18369    lt_status=$?
18370    case x$lt_status in
18371      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18372      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18373      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18374    esac
18375  else :
18376    # compilation failed
18377    lt_cv_dlopen_self_static=no
18378  fi
18379fi
18380rm -fr conftest*
18381
18382
18383fi
18384echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18385echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18386    fi
18387
18388    CPPFLAGS="$save_CPPFLAGS"
18389    LDFLAGS="$save_LDFLAGS"
18390    LIBS="$save_LIBS"
18391    ;;
18392  esac
18393
18394  case $lt_cv_dlopen_self in
18395  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18396  *) enable_dlopen_self=unknown ;;
18397  esac
18398
18399  case $lt_cv_dlopen_self_static in
18400  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18401  *) enable_dlopen_self_static=unknown ;;
18402  esac
18403fi
18404
18405
18406# The else clause should only fire when bootstrapping the
18407# libtool distribution, otherwise you forgot to ship ltmain.sh
18408# with your package, and you will get complaints that there are
18409# no rules to generate ltmain.sh.
18410if test -f "$ltmain"; then
18411  # See if we are running on zsh, and set the options which allow our commands through
18412  # without removal of \ escapes.
18413  if test -n "${ZSH_VERSION+set}" ; then
18414    setopt NO_GLOB_SUBST
18415  fi
18416  # Now quote all the things that may contain metacharacters while being
18417  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18418  # variables and quote the copies for generation of the libtool script.
18419  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18420    SED SHELL STRIP \
18421    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18422    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18423    deplibs_check_method reload_flag reload_cmds need_locks \
18424    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18425    lt_cv_sys_global_symbol_to_c_name_address \
18426    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18427    old_postinstall_cmds old_postuninstall_cmds \
18428    compiler_CXX \
18429    CC_CXX \
18430    LD_CXX \
18431    lt_prog_compiler_wl_CXX \
18432    lt_prog_compiler_pic_CXX \
18433    lt_prog_compiler_static_CXX \
18434    lt_prog_compiler_no_builtin_flag_CXX \
18435    export_dynamic_flag_spec_CXX \
18436    thread_safe_flag_spec_CXX \
18437    whole_archive_flag_spec_CXX \
18438    enable_shared_with_static_runtimes_CXX \
18439    old_archive_cmds_CXX \
18440    old_archive_from_new_cmds_CXX \
18441    predep_objects_CXX \
18442    postdep_objects_CXX \
18443    predeps_CXX \
18444    postdeps_CXX \
18445    compiler_lib_search_path_CXX \
18446    archive_cmds_CXX \
18447    archive_expsym_cmds_CXX \
18448    postinstall_cmds_CXX \
18449    postuninstall_cmds_CXX \
18450    old_archive_from_expsyms_cmds_CXX \
18451    allow_undefined_flag_CXX \
18452    no_undefined_flag_CXX \
18453    export_symbols_cmds_CXX \
18454    hardcode_libdir_flag_spec_CXX \
18455    hardcode_libdir_flag_spec_ld_CXX \
18456    hardcode_libdir_separator_CXX \
18457    hardcode_automatic_CXX \
18458    module_cmds_CXX \
18459    module_expsym_cmds_CXX \
18460    lt_cv_prog_compiler_c_o_CXX \
18461    exclude_expsyms_CXX \
18462    include_expsyms_CXX; do
18463
18464    case $var in
18465    old_archive_cmds_CXX | \
18466    old_archive_from_new_cmds_CXX | \
18467    archive_cmds_CXX | \
18468    archive_expsym_cmds_CXX | \
18469    module_cmds_CXX | \
18470    module_expsym_cmds_CXX | \
18471    old_archive_from_expsyms_cmds_CXX | \
18472    export_symbols_cmds_CXX | \
18473    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18474    postinstall_cmds | postuninstall_cmds | \
18475    old_postinstall_cmds | old_postuninstall_cmds | \
18476    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18477      # Double-quote double-evaled strings.
18478      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18479      ;;
18480    *)
18481      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18482      ;;
18483    esac
18484  done
18485
18486  case $lt_echo in
18487  *'\$0 --fallback-echo"')
18488    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18489    ;;
18490  esac
18491
18492cfgfile="$ofile"
18493
18494  cat <<__EOF__ >> "$cfgfile"
18495# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18496
18497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18498
18499# Shell to use when invoking shell scripts.
18500SHELL=$lt_SHELL
18501
18502# Whether or not to build shared libraries.
18503build_libtool_libs=$enable_shared
18504
18505# Whether or not to build static libraries.
18506build_old_libs=$enable_static
18507
18508# Whether or not to add -lc for building shared libraries.
18509build_libtool_need_lc=$archive_cmds_need_lc_CXX
18510
18511# Whether or not to disallow shared libs when runtime libs are static
18512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18513
18514# Whether or not to optimize for fast installation.
18515fast_install=$enable_fast_install
18516
18517# The host system.
18518host_alias=$host_alias
18519host=$host
18520
18521# An echo program that does not interpret backslashes.
18522echo=$lt_echo
18523
18524# The archiver.
18525AR=$lt_AR
18526AR_FLAGS=$lt_AR_FLAGS
18527
18528# A C compiler.
18529LTCC=$lt_LTCC
18530
18531# A language-specific compiler.
18532CC=$lt_compiler_CXX
18533
18534# Is the compiler the GNU C compiler?
18535with_gcc=$GCC_CXX
18536
18537# An ERE matcher.
18538EGREP=$lt_EGREP
18539
18540# The linker used to build libraries.
18541LD=$lt_LD_CXX
18542
18543# Whether we need hard or soft links.
18544LN_S=$lt_LN_S
18545
18546# A BSD-compatible nm program.
18547NM=$lt_NM
18548
18549# A symbol stripping program
18550STRIP=$lt_STRIP
18551
18552# Used to examine libraries when file_magic_cmd begins "file"
18553MAGIC_CMD=$MAGIC_CMD
18554
18555# Used on cygwin: DLL creation program.
18556DLLTOOL="$DLLTOOL"
18557
18558# Used on cygwin: object dumper.
18559OBJDUMP="$OBJDUMP"
18560
18561# Used on cygwin: assembler.
18562AS="$AS"
18563
18564# The name of the directory that contains temporary libtool files.
18565objdir=$objdir
18566
18567# How to create reloadable object files.
18568reload_flag=$lt_reload_flag
18569reload_cmds=$lt_reload_cmds
18570
18571# How to pass a linker flag through the compiler.
18572wl=$lt_lt_prog_compiler_wl_CXX
18573
18574# Object file suffix (normally "o").
18575objext="$ac_objext"
18576
18577# Old archive suffix (normally "a").
18578libext="$libext"
18579
18580# Shared library suffix (normally ".so").
18581shrext_cmds='$shrext_cmds'
18582
18583# Executable file suffix (normally "").
18584exeext="$exeext"
18585
18586# Additional compiler flags for building library objects.
18587pic_flag=$lt_lt_prog_compiler_pic_CXX
18588pic_mode=$pic_mode
18589
18590# What is the maximum length of a command?
18591max_cmd_len=$lt_cv_sys_max_cmd_len
18592
18593# Does compiler simultaneously support -c and -o options?
18594compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18595
18596# Must we lock files when doing compilation ?
18597need_locks=$lt_need_locks
18598
18599# Do we need the lib prefix for modules?
18600need_lib_prefix=$need_lib_prefix
18601
18602# Do we need a version for libraries?
18603need_version=$need_version
18604
18605# Whether dlopen is supported.
18606dlopen_support=$enable_dlopen
18607
18608# Whether dlopen of programs is supported.
18609dlopen_self=$enable_dlopen_self
18610
18611# Whether dlopen of statically linked programs is supported.
18612dlopen_self_static=$enable_dlopen_self_static
18613
18614# Compiler flag to prevent dynamic linking.
18615link_static_flag=$lt_lt_prog_compiler_static_CXX
18616
18617# Compiler flag to turn off builtin functions.
18618no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18619
18620# Compiler flag to allow reflexive dlopens.
18621export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18622
18623# Compiler flag to generate shared objects directly from archives.
18624whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18625
18626# Compiler flag to generate thread-safe objects.
18627thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18628
18629# Library versioning type.
18630version_type=$version_type
18631
18632# Format of library name prefix.
18633libname_spec=$lt_libname_spec
18634
18635# List of archive names.  First name is the real one, the rest are links.
18636# The last name is the one that the linker finds with -lNAME.
18637library_names_spec=$lt_library_names_spec
18638
18639# The coded name of the library, if different from the real name.
18640soname_spec=$lt_soname_spec
18641
18642# Commands used to build and install an old-style archive.
18643RANLIB=$lt_RANLIB
18644old_archive_cmds=$lt_old_archive_cmds_CXX
18645old_postinstall_cmds=$lt_old_postinstall_cmds
18646old_postuninstall_cmds=$lt_old_postuninstall_cmds
18647
18648# Create an old-style archive from a shared archive.
18649old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18650
18651# Create a temporary old-style archive to link instead of a shared archive.
18652old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18653
18654# Commands used to build and install a shared archive.
18655archive_cmds=$lt_archive_cmds_CXX
18656archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18657postinstall_cmds=$lt_postinstall_cmds
18658postuninstall_cmds=$lt_postuninstall_cmds
18659
18660# Commands used to build a loadable module (assumed same as above if empty)
18661module_cmds=$lt_module_cmds_CXX
18662module_expsym_cmds=$lt_module_expsym_cmds_CXX
18663
18664# Commands to strip libraries.
18665old_striplib=$lt_old_striplib
18666striplib=$lt_striplib
18667
18668# Dependencies to place before the objects being linked to create a
18669# shared library.
18670predep_objects=$lt_predep_objects_CXX
18671
18672# Dependencies to place after the objects being linked to create a
18673# shared library.
18674postdep_objects=$lt_postdep_objects_CXX
18675
18676# Dependencies to place before the objects being linked to create a
18677# shared library.
18678predeps=$lt_predeps_CXX
18679
18680# Dependencies to place after the objects being linked to create a
18681# shared library.
18682postdeps=$lt_postdeps_CXX
18683
18684# The library search path used internally by the compiler when linking
18685# a shared library.
18686compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18687
18688# Method to check whether dependent libraries are shared objects.
18689deplibs_check_method=$lt_deplibs_check_method
18690
18691# Command to use when deplibs_check_method == file_magic.
18692file_magic_cmd=$lt_file_magic_cmd
18693
18694# Flag that allows shared libraries with undefined symbols to be built.
18695allow_undefined_flag=$lt_allow_undefined_flag_CXX
18696
18697# Flag that forces no undefined symbols.
18698no_undefined_flag=$lt_no_undefined_flag_CXX
18699
18700# Commands used to finish a libtool library installation in a directory.
18701finish_cmds=$lt_finish_cmds
18702
18703# Same as above, but a single script fragment to be evaled but not shown.
18704finish_eval=$lt_finish_eval
18705
18706# Take the output of nm and produce a listing of raw symbols and C names.
18707global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18708
18709# Transform the output of nm in a proper C declaration
18710global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18711
18712# Transform the output of nm in a C name address pair
18713global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18714
18715# This is the shared library runtime path variable.
18716runpath_var=$runpath_var
18717
18718# This is the shared library path variable.
18719shlibpath_var=$shlibpath_var
18720
18721# Is shlibpath searched before the hard-coded library search path?
18722shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18723
18724# How to hardcode a shared library path into an executable.
18725hardcode_action=$hardcode_action_CXX
18726
18727# Whether we should hardcode library paths into libraries.
18728hardcode_into_libs=$hardcode_into_libs
18729
18730# Flag to hardcode \$libdir into a binary during linking.
18731# This must work even if \$libdir does not exist.
18732hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18733
18734# If ld is used when linking, flag to hardcode \$libdir into
18735# a binary during linking. This must work even if \$libdir does
18736# not exist.
18737hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18738
18739# Whether we need a single -rpath flag with a separated argument.
18740hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18741
18742# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18743# resulting binary.
18744hardcode_direct=$hardcode_direct_CXX
18745
18746# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18747# resulting binary.
18748hardcode_minus_L=$hardcode_minus_L_CXX
18749
18750# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18751# the resulting binary.
18752hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18753
18754# Set to yes if building a shared library automatically hardcodes DIR into the library
18755# and all subsequent libraries and executables linked against it.
18756hardcode_automatic=$hardcode_automatic_CXX
18757
18758# Variables whose values should be saved in libtool wrapper scripts and
18759# restored at relink time.
18760variables_saved_for_relink="$variables_saved_for_relink"
18761
18762# Whether libtool must link a program against all its dependency libraries.
18763link_all_deplibs=$link_all_deplibs_CXX
18764
18765# Compile-time system search path for libraries
18766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18767
18768# Run-time system search path for libraries
18769sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18770
18771# Fix the shell variable \$srcfile for the compiler.
18772fix_srcfile_path="$fix_srcfile_path_CXX"
18773
18774# Set to yes if exported symbols are required.
18775always_export_symbols=$always_export_symbols_CXX
18776
18777# The commands to list exported symbols.
18778export_symbols_cmds=$lt_export_symbols_cmds_CXX
18779
18780# The commands to extract the exported symbol list from a shared archive.
18781extract_expsyms_cmds=$lt_extract_expsyms_cmds
18782
18783# Symbols that should not be listed in the preloaded symbols.
18784exclude_expsyms=$lt_exclude_expsyms_CXX
18785
18786# Symbols that must always be exported.
18787include_expsyms=$lt_include_expsyms_CXX
18788
18789# ### END LIBTOOL TAG CONFIG: $tagname
18790
18791__EOF__
18792
18793
18794else
18795  # If there is no Makefile yet, we rely on a make rule to execute
18796  # `config.status --recheck' to rerun these tests and create the
18797  # libtool script then.
18798  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18799  if test -f "$ltmain_in"; then
18800    test -f Makefile && make "$ltmain"
18801  fi
18802fi
18803
18804
18805ac_ext=c
18806ac_cpp='$CPP $CPPFLAGS'
18807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810
18811CC=$lt_save_CC
18812LDCXX=$LD
18813LD=$lt_save_LD
18814GCC=$lt_save_GCC
18815with_gnu_ldcxx=$with_gnu_ld
18816with_gnu_ld=$lt_save_with_gnu_ld
18817lt_cv_path_LDCXX=$lt_cv_path_LD
18818lt_cv_path_LD=$lt_save_path_LD
18819lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18820lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18821
18822	else
18823	  tagname=""
18824	fi
18825	;;
18826
18827      F77)
18828	if test -n "$F77" && test "X$F77" != "Xno"; then
18829
18830ac_ext=f
18831ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18832ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18834
18835
18836archive_cmds_need_lc_F77=no
18837allow_undefined_flag_F77=
18838always_export_symbols_F77=no
18839archive_expsym_cmds_F77=
18840export_dynamic_flag_spec_F77=
18841hardcode_direct_F77=no
18842hardcode_libdir_flag_spec_F77=
18843hardcode_libdir_flag_spec_ld_F77=
18844hardcode_libdir_separator_F77=
18845hardcode_minus_L_F77=no
18846hardcode_automatic_F77=no
18847module_cmds_F77=
18848module_expsym_cmds_F77=
18849link_all_deplibs_F77=unknown
18850old_archive_cmds_F77=$old_archive_cmds
18851no_undefined_flag_F77=
18852whole_archive_flag_spec_F77=
18853enable_shared_with_static_runtimes_F77=no
18854
18855# Source file extension for f77 test sources.
18856ac_ext=f
18857
18858# Object file extension for compiled f77 test sources.
18859objext=o
18860objext_F77=$objext
18861
18862# Code to be used in simple compile tests
18863lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18864
18865# Code to be used in simple link tests
18866lt_simple_link_test_code="      program t\n      end\n"
18867
18868# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18869
18870# If no C compiler was specified, use CC.
18871LTCC=${LTCC-"$CC"}
18872
18873# Allow CC to be a program name with arguments.
18874compiler=$CC
18875
18876
18877# Allow CC to be a program name with arguments.
18878lt_save_CC="$CC"
18879CC=${F77-"f77"}
18880compiler=$CC
18881compiler_F77=$CC
18882cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18883
18884echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18885echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18886echo "$as_me:$LINENO: result: $can_build_shared" >&5
18887echo "${ECHO_T}$can_build_shared" >&6
18888
18889echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18890echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18891test "$can_build_shared" = "no" && enable_shared=no
18892
18893# On AIX, shared libraries and static libraries use the same namespace, and
18894# are all built from PIC.
18895case "$host_os" in
18896aix3*)
18897  test "$enable_shared" = yes && enable_static=no
18898  if test -n "$RANLIB"; then
18899    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18900    postinstall_cmds='$RANLIB $lib'
18901  fi
18902  ;;
18903aix4* | aix5*)
18904  test "$enable_shared" = yes && enable_static=no
18905  ;;
18906esac
18907echo "$as_me:$LINENO: result: $enable_shared" >&5
18908echo "${ECHO_T}$enable_shared" >&6
18909
18910echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18911echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18912# Make sure either enable_shared or enable_static is yes.
18913test "$enable_shared" = yes || enable_static=yes
18914echo "$as_me:$LINENO: result: $enable_static" >&5
18915echo "${ECHO_T}$enable_static" >&6
18916
18917test "$ld_shlibs_F77" = no && can_build_shared=no
18918
18919GCC_F77="$G77"
18920LD_F77="$LD"
18921
18922lt_prog_compiler_wl_F77=
18923lt_prog_compiler_pic_F77=
18924lt_prog_compiler_static_F77=
18925
18926echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18927echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18928
18929  if test "$GCC" = yes; then
18930    lt_prog_compiler_wl_F77='-Wl,'
18931    lt_prog_compiler_static_F77='-static'
18932
18933    case $host_os in
18934      aix*)
18935      # All AIX code is PIC.
18936      if test "$host_cpu" = ia64; then
18937	# AIX 5 now supports IA64 processor
18938	lt_prog_compiler_static_F77='-Bstatic'
18939      fi
18940      ;;
18941
18942    amigaos*)
18943      # FIXME: we need at least 68020 code to build shared libraries, but
18944      # adding the `-m68020' flag to GCC prevents building anything better,
18945      # like `-m68040'.
18946      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18947      ;;
18948
18949    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18950      # PIC is the default for these OSes.
18951      ;;
18952
18953    mingw* | pw32* | os2*)
18954      # This hack is so that the source file can tell whether it is being
18955      # built for inclusion in a dll (and should export symbols for example).
18956      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18957      ;;
18958
18959    darwin* | rhapsody*)
18960      # PIC is the default on this platform
18961      # Common symbols not allowed in MH_DYLIB files
18962      lt_prog_compiler_pic_F77='-fno-common'
18963      ;;
18964
18965    msdosdjgpp*)
18966      # Just because we use GCC doesn't mean we suddenly get shared libraries
18967      # on systems that don't support them.
18968      lt_prog_compiler_can_build_shared_F77=no
18969      enable_shared=no
18970      ;;
18971
18972    sysv4*MP*)
18973      if test -d /usr/nec; then
18974	lt_prog_compiler_pic_F77=-Kconform_pic
18975      fi
18976      ;;
18977
18978    hpux*)
18979      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18980      # not for PA HP-UX.
18981      case "$host_cpu" in
18982      hppa*64*|ia64*)
18983	# +Z the default
18984	;;
18985      *)
18986	lt_prog_compiler_pic_F77='-fPIC'
18987	;;
18988      esac
18989      ;;
18990
18991    *)
18992      lt_prog_compiler_pic_F77='-fPIC'
18993      ;;
18994    esac
18995  else
18996    # PORTME Check for flag to pass linker flags through the system compiler.
18997    case $host_os in
18998    aix*)
18999      lt_prog_compiler_wl_F77='-Wl,'
19000      if test "$host_cpu" = ia64; then
19001	# AIX 5 now supports IA64 processor
19002	lt_prog_compiler_static_F77='-Bstatic'
19003      else
19004	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19005      fi
19006      ;;
19007      darwin*)
19008        # PIC is the default on this platform
19009        # Common symbols not allowed in MH_DYLIB files
19010       case "$cc_basename" in
19011         xlc*)
19012         lt_prog_compiler_pic_F77='-qnocommon'
19013         lt_prog_compiler_wl_F77='-Wl,'
19014         ;;
19015       esac
19016       ;;
19017
19018    mingw* | pw32* | os2*)
19019      # This hack is so that the source file can tell whether it is being
19020      # built for inclusion in a dll (and should export symbols for example).
19021      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19022      ;;
19023
19024    hpux9* | hpux10* | hpux11*)
19025      lt_prog_compiler_wl_F77='-Wl,'
19026      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19027      # not for PA HP-UX.
19028      case "$host_cpu" in
19029      hppa*64*|ia64*)
19030	# +Z the default
19031	;;
19032      *)
19033	lt_prog_compiler_pic_F77='+Z'
19034	;;
19035      esac
19036      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19037      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19038      ;;
19039
19040    irix5* | irix6* | nonstopux*)
19041      lt_prog_compiler_wl_F77='-Wl,'
19042      # PIC (with -KPIC) is the default.
19043      lt_prog_compiler_static_F77='-non_shared'
19044      ;;
19045
19046    newsos6)
19047      lt_prog_compiler_pic_F77='-KPIC'
19048      lt_prog_compiler_static_F77='-Bstatic'
19049      ;;
19050
19051    linux*)
19052      case $CC in
19053      icc* | ecc*)
19054	lt_prog_compiler_wl_F77='-Wl,'
19055	lt_prog_compiler_pic_F77='-KPIC'
19056	lt_prog_compiler_static_F77='-static'
19057        ;;
19058      ccc*)
19059        lt_prog_compiler_wl_F77='-Wl,'
19060        # All Alpha code is PIC.
19061        lt_prog_compiler_static_F77='-non_shared'
19062        ;;
19063      esac
19064      ;;
19065
19066    osf3* | osf4* | osf5*)
19067      lt_prog_compiler_wl_F77='-Wl,'
19068      # All OSF/1 code is PIC.
19069      lt_prog_compiler_static_F77='-non_shared'
19070      ;;
19071
19072    sco3.2v5*)
19073      lt_prog_compiler_pic_F77='-Kpic'
19074      lt_prog_compiler_static_F77='-dn'
19075      ;;
19076
19077    solaris*)
19078      lt_prog_compiler_wl_F77='-Wl,'
19079      lt_prog_compiler_pic_F77='-KPIC'
19080      lt_prog_compiler_static_F77='-Bstatic'
19081      ;;
19082
19083    sunos4*)
19084      lt_prog_compiler_wl_F77='-Qoption ld '
19085      lt_prog_compiler_pic_F77='-PIC'
19086      lt_prog_compiler_static_F77='-Bstatic'
19087      ;;
19088
19089    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19090      lt_prog_compiler_wl_F77='-Wl,'
19091      lt_prog_compiler_pic_F77='-KPIC'
19092      lt_prog_compiler_static_F77='-Bstatic'
19093      ;;
19094
19095    sysv4*MP*)
19096      if test -d /usr/nec ;then
19097	lt_prog_compiler_pic_F77='-Kconform_pic'
19098	lt_prog_compiler_static_F77='-Bstatic'
19099      fi
19100      ;;
19101
19102    uts4*)
19103      lt_prog_compiler_pic_F77='-pic'
19104      lt_prog_compiler_static_F77='-Bstatic'
19105      ;;
19106
19107    *)
19108      lt_prog_compiler_can_build_shared_F77=no
19109      ;;
19110    esac
19111  fi
19112
19113echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19114echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19115
19116#
19117# Check to make sure the PIC flag actually works.
19118#
19119if test -n "$lt_prog_compiler_pic_F77"; then
19120
19121echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19122echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19123if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19124  echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126  lt_prog_compiler_pic_works_F77=no
19127  ac_outfile=conftest.$ac_objext
19128   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19129   lt_compiler_flag="$lt_prog_compiler_pic_F77"
19130   # Insert the option either (1) after the last *FLAGS variable, or
19131   # (2) before a word containing "conftest.", or (3) at the end.
19132   # Note that $ac_compile itself does not contain backslashes and begins
19133   # with a dollar sign (not a hyphen), so the echo should work correctly.
19134   # The option is referenced via a variable to avoid confusing sed.
19135   lt_compile=`echo "$ac_compile" | $SED \
19136   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19138   -e 's:$: $lt_compiler_flag:'`
19139   (eval echo "\"\$as_me:19139: $lt_compile\"" >&5)
19140   (eval "$lt_compile" 2>conftest.err)
19141   ac_status=$?
19142   cat conftest.err >&5
19143   echo "$as_me:19143: \$? = $ac_status" >&5
19144   if (exit $ac_status) && test -s "$ac_outfile"; then
19145     # The compiler can only warn and ignore the option if not recognized
19146     # So say no if there are warnings
19147     if test ! -s conftest.err; then
19148       lt_prog_compiler_pic_works_F77=yes
19149     fi
19150   fi
19151   $rm conftest*
19152
19153fi
19154echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19155echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19156
19157if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19158    case $lt_prog_compiler_pic_F77 in
19159     "" | " "*) ;;
19160     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19161     esac
19162else
19163    lt_prog_compiler_pic_F77=
19164     lt_prog_compiler_can_build_shared_F77=no
19165fi
19166
19167fi
19168case "$host_os" in
19169  # For platforms which do not support PIC, -DPIC is meaningless:
19170  *djgpp*)
19171    lt_prog_compiler_pic_F77=
19172    ;;
19173  *)
19174    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19175    ;;
19176esac
19177
19178echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19179echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19180if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19181  echo $ECHO_N "(cached) $ECHO_C" >&6
19182else
19183  lt_cv_prog_compiler_c_o_F77=no
19184   $rm -r conftest 2>/dev/null
19185   mkdir conftest
19186   cd conftest
19187   mkdir out
19188   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19189
19190   lt_compiler_flag="-o out/conftest2.$ac_objext"
19191   # Insert the option either (1) after the last *FLAGS variable, or
19192   # (2) before a word containing "conftest.", or (3) at the end.
19193   # Note that $ac_compile itself does not contain backslashes and begins
19194   # with a dollar sign (not a hyphen), so the echo should work correctly.
19195   lt_compile=`echo "$ac_compile" | $SED \
19196   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19198   -e 's:$: $lt_compiler_flag:'`
19199   (eval echo "\"\$as_me:19199: $lt_compile\"" >&5)
19200   (eval "$lt_compile" 2>out/conftest.err)
19201   ac_status=$?
19202   cat out/conftest.err >&5
19203   echo "$as_me:19203: \$? = $ac_status" >&5
19204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19205   then
19206     # The compiler can only warn and ignore the option if not recognized
19207     # So say no if there are warnings
19208     if test ! -s out/conftest.err; then
19209       lt_cv_prog_compiler_c_o_F77=yes
19210     fi
19211   fi
19212   chmod u+w .
19213   $rm conftest*
19214   # SGI C++ compiler will create directory out/ii_files/ for
19215   # template instantiation
19216   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19217   $rm out/* && rmdir out
19218   cd ..
19219   rmdir conftest
19220   $rm conftest*
19221
19222fi
19223echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19224echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19225
19226
19227hard_links="nottested"
19228if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19229  # do not overwrite the value of need_locks provided by the user
19230  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19231echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19232  hard_links=yes
19233  $rm conftest*
19234  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235  touch conftest.a
19236  ln conftest.a conftest.b 2>&5 || hard_links=no
19237  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19238  echo "$as_me:$LINENO: result: $hard_links" >&5
19239echo "${ECHO_T}$hard_links" >&6
19240  if test "$hard_links" = no; then
19241    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19242echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19243    need_locks=warn
19244  fi
19245else
19246  need_locks=no
19247fi
19248
19249echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19250echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19251
19252  runpath_var=
19253  allow_undefined_flag_F77=
19254  enable_shared_with_static_runtimes_F77=no
19255  archive_cmds_F77=
19256  archive_expsym_cmds_F77=
19257  old_archive_From_new_cmds_F77=
19258  old_archive_from_expsyms_cmds_F77=
19259  export_dynamic_flag_spec_F77=
19260  whole_archive_flag_spec_F77=
19261  thread_safe_flag_spec_F77=
19262  hardcode_libdir_flag_spec_F77=
19263  hardcode_libdir_flag_spec_ld_F77=
19264  hardcode_libdir_separator_F77=
19265  hardcode_direct_F77=no
19266  hardcode_minus_L_F77=no
19267  hardcode_shlibpath_var_F77=unsupported
19268  link_all_deplibs_F77=unknown
19269  hardcode_automatic_F77=no
19270  module_cmds_F77=
19271  module_expsym_cmds_F77=
19272  always_export_symbols_F77=no
19273  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19274  # include_expsyms should be a list of space-separated symbols to be *always*
19275  # included in the symbol list
19276  include_expsyms_F77=
19277  # exclude_expsyms can be an extended regexp of symbols to exclude
19278  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19279  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19280  # as well as any symbol that contains `d'.
19281  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19282  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19283  # platforms (ab)use it in PIC code, but their linkers get confused if
19284  # the symbol is explicitly referenced.  Since portable code cannot
19285  # rely on this symbol name, it's probably fine to never include it in
19286  # preloaded symbol tables.
19287  extract_expsyms_cmds=
19288
19289  case $host_os in
19290  cygwin* | mingw* | pw32*)
19291    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19292    # When not using gcc, we currently assume that we are using
19293    # Microsoft Visual C++.
19294    if test "$GCC" != yes; then
19295      with_gnu_ld=no
19296    fi
19297    ;;
19298  openbsd*)
19299    with_gnu_ld=no
19300    ;;
19301  esac
19302
19303  ld_shlibs_F77=yes
19304  if test "$with_gnu_ld" = yes; then
19305    # If archive_cmds runs LD, not CC, wlarc should be empty
19306    wlarc='${wl}'
19307
19308    # See if GNU ld supports shared libraries.
19309    case $host_os in
19310    aix3* | aix4* | aix5*)
19311      # On AIX/PPC, the GNU linker is very broken
19312      if test "$host_cpu" != ia64; then
19313	ld_shlibs_F77=no
19314	cat <<EOF 1>&2
19315
19316*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19317*** to be unable to reliably create shared libraries on AIX.
19318*** Therefore, libtool is disabling shared libraries support.  If you
19319*** really care for shared libraries, you may want to modify your PATH
19320*** so that a non-GNU linker is found, and then restart.
19321
19322EOF
19323      fi
19324      ;;
19325
19326    amigaos*)
19327      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)'
19328      hardcode_libdir_flag_spec_F77='-L$libdir'
19329      hardcode_minus_L_F77=yes
19330
19331      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19332      # that the semantics of dynamic libraries on AmigaOS, at least up
19333      # to version 4, is to share data among multiple programs linked
19334      # with the same dynamic library.  Since this doesn't match the
19335      # behavior of shared libraries on other platforms, we can't use
19336      # them.
19337      ld_shlibs_F77=no
19338      ;;
19339
19340    beos*)
19341      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19342	allow_undefined_flag_F77=unsupported
19343	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19344	# support --undefined.  This deserves some investigation.  FIXME
19345	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346      else
19347	ld_shlibs_F77=no
19348      fi
19349      ;;
19350
19351    cygwin* | mingw* | pw32*)
19352      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19353      # as there is no search path for DLLs.
19354      hardcode_libdir_flag_spec_F77='-L$libdir'
19355      allow_undefined_flag_F77=unsupported
19356      always_export_symbols_F77=no
19357      enable_shared_with_static_runtimes_F77=yes
19358      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19359
19360      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19361        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19362	# If the export-symbols file already is a .def file (1st line
19363	# is EXPORTS), use it as is; otherwise, prepend...
19364	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19365	  cp $export_symbols $output_objdir/$soname.def;
19366	else
19367	  echo EXPORTS > $output_objdir/$soname.def;
19368	  cat $export_symbols >> $output_objdir/$soname.def;
19369	fi~
19370	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19371      else
19372	ld_shlibs=no
19373      fi
19374      ;;
19375
19376    netbsd*)
19377      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19378	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19379	wlarc=
19380      else
19381	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19382	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19383      fi
19384      ;;
19385
19386    solaris* | sysv5*)
19387      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19388	ld_shlibs_F77=no
19389	cat <<EOF 1>&2
19390
19391*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19392*** create shared libraries on Solaris systems.  Therefore, libtool
19393*** is disabling shared libraries support.  We urge you to upgrade GNU
19394*** binutils to release 2.9.1 or newer.  Another option is to modify
19395*** your PATH or compiler configuration so that the native linker is
19396*** used, and then restart.
19397
19398EOF
19399      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19400	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19401	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19402      else
19403	ld_shlibs_F77=no
19404      fi
19405      ;;
19406
19407    sunos4*)
19408      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19409      wlarc=
19410      hardcode_direct_F77=yes
19411      hardcode_shlibpath_var_F77=no
19412      ;;
19413
19414  linux*)
19415    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19416        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417	archive_cmds_F77="$tmp_archive_cmds"
19418      supports_anon_versioning=no
19419      case `$LD -v 2>/dev/null` in
19420        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19421        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19422        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19423        *\ 2.11.*) ;; # other 2.11 versions
19424        *) supports_anon_versioning=yes ;;
19425      esac
19426      if test $supports_anon_versioning = yes; then
19427        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19428cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19429$echo "local: *; };" >> $output_objdir/$libname.ver~
19430        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19431      else
19432        archive_expsym_cmds_F77="$tmp_archive_cmds"
19433      fi
19434    else
19435      ld_shlibs_F77=no
19436    fi
19437    ;;
19438
19439    *)
19440      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19441	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19442	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19443      else
19444	ld_shlibs_F77=no
19445      fi
19446      ;;
19447    esac
19448
19449    if test "$ld_shlibs_F77" = yes; then
19450      runpath_var=LD_RUN_PATH
19451      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19452      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19453      # ancient GNU ld didn't support --whole-archive et. al.
19454      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19455 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19456      else
19457  	whole_archive_flag_spec_F77=
19458      fi
19459    fi
19460  else
19461    # PORTME fill in a description of your system's linker (not GNU ld)
19462    case $host_os in
19463    aix3*)
19464      allow_undefined_flag_F77=unsupported
19465      always_export_symbols_F77=yes
19466      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'
19467      # Note: this linker hardcodes the directories in LIBPATH if there
19468      # are no directories specified by -L.
19469      hardcode_minus_L_F77=yes
19470      if test "$GCC" = yes && test -z "$link_static_flag"; then
19471	# Neither direct hardcoding nor static linking is supported with a
19472	# broken collect2.
19473	hardcode_direct_F77=unsupported
19474      fi
19475      ;;
19476
19477    aix4* | aix5*)
19478      if test "$host_cpu" = ia64; then
19479	# On IA64, the linker does run time linking by default, so we don't
19480	# have to do anything special.
19481	aix_use_runtimelinking=no
19482	exp_sym_flag='-Bexport'
19483	no_entry_flag=""
19484      else
19485	# If we're using GNU nm, then we don't want the "-C" option.
19486	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19487	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19488	  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'
19489	else
19490	  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'
19491	fi
19492	aix_use_runtimelinking=no
19493
19494	# Test if we are trying to use run time linking or normal
19495	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19496	# need to do runtime linking.
19497	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19498	  for ld_flag in $LDFLAGS; do
19499  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19500  	    aix_use_runtimelinking=yes
19501  	    break
19502  	  fi
19503	  done
19504	esac
19505
19506	exp_sym_flag='-bexport'
19507	no_entry_flag='-bnoentry'
19508      fi
19509
19510      # When large executables or shared objects are built, AIX ld can
19511      # have problems creating the table of contents.  If linking a library
19512      # or program results in "error TOC overflow" add -mminimal-toc to
19513      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19514      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19515
19516      archive_cmds_F77=''
19517      hardcode_direct_F77=yes
19518      hardcode_libdir_separator_F77=':'
19519      link_all_deplibs_F77=yes
19520
19521      if test "$GCC" = yes; then
19522	case $host_os in aix4.012|aix4.012.*)
19523	# We only want to do this on AIX 4.2 and lower, the check
19524	# below for broken collect2 doesn't work under 4.3+
19525	  collect2name=`${CC} -print-prog-name=collect2`
19526	  if test -f "$collect2name" && \
19527  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19528	  then
19529  	  # We have reworked collect2
19530  	  hardcode_direct_F77=yes
19531	  else
19532  	  # We have old collect2
19533  	  hardcode_direct_F77=unsupported
19534  	  # It fails to find uninstalled libraries when the uninstalled
19535  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19536  	  # to unsupported forces relinking
19537  	  hardcode_minus_L_F77=yes
19538  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19539  	  hardcode_libdir_separator_F77=
19540	  fi
19541	esac
19542	shared_flag='-shared'
19543      else
19544	# not using gcc
19545	if test "$host_cpu" = ia64; then
19546  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19547  	# chokes on -Wl,-G. The following line is correct:
19548	  shared_flag='-G'
19549	else
19550  	if test "$aix_use_runtimelinking" = yes; then
19551	    shared_flag='${wl}-G'
19552	  else
19553	    shared_flag='${wl}-bM:SRE'
19554  	fi
19555	fi
19556      fi
19557
19558      # It seems that -bexpall does not export symbols beginning with
19559      # underscore (_), so it is better to generate a list of symbols to export.
19560      always_export_symbols_F77=yes
19561      if test "$aix_use_runtimelinking" = yes; then
19562	# Warning - without using the other runtime loading flags (-brtl),
19563	# -berok will link without error, but may produce a broken library.
19564	allow_undefined_flag_F77='-berok'
19565       # Determine the default libpath from the value encoded in an empty executable.
19566       cat >conftest.$ac_ext <<_ACEOF
19567      program main
19568
19569      end
19570_ACEOF
19571rm -f conftest.$ac_objext conftest$ac_exeext
19572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573  (eval $ac_link) 2>conftest.er1
19574  ac_status=$?
19575  grep -v '^ *+' conftest.er1 >conftest.err
19576  rm -f conftest.er1
19577  cat conftest.err >&5
19578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579  (exit $ac_status); } &&
19580	 { ac_try='test -z "$ac_f77_werror_flag"
19581			 || test ! -s conftest.err'
19582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583  (eval $ac_try) 2>&5
19584  ac_status=$?
19585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586  (exit $ac_status); }; } &&
19587	 { ac_try='test -s conftest$ac_exeext'
19588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589  (eval $ac_try) 2>&5
19590  ac_status=$?
19591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592  (exit $ac_status); }; }; then
19593
19594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19595}'`
19596# Check for a 64-bit object if we didn't find anything.
19597if 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; }
19598}'`; fi
19599else
19600  echo "$as_me: failed program was:" >&5
19601sed 's/^/| /' conftest.$ac_ext >&5
19602
19603fi
19604rm -f conftest.err conftest.$ac_objext \
19605      conftest$ac_exeext conftest.$ac_ext
19606if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19607
19608       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19609	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"
19610       else
19611	if test "$host_cpu" = ia64; then
19612	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19613	  allow_undefined_flag_F77="-z nodefs"
19614	  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"
19615	else
19616	 # Determine the default libpath from the value encoded in an empty executable.
19617	 cat >conftest.$ac_ext <<_ACEOF
19618      program main
19619
19620      end
19621_ACEOF
19622rm -f conftest.$ac_objext conftest$ac_exeext
19623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624  (eval $ac_link) 2>conftest.er1
19625  ac_status=$?
19626  grep -v '^ *+' conftest.er1 >conftest.err
19627  rm -f conftest.er1
19628  cat conftest.err >&5
19629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630  (exit $ac_status); } &&
19631	 { ac_try='test -z "$ac_f77_werror_flag"
19632			 || test ! -s conftest.err'
19633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634  (eval $ac_try) 2>&5
19635  ac_status=$?
19636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637  (exit $ac_status); }; } &&
19638	 { ac_try='test -s conftest$ac_exeext'
19639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640  (eval $ac_try) 2>&5
19641  ac_status=$?
19642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643  (exit $ac_status); }; }; then
19644
19645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19646}'`
19647# Check for a 64-bit object if we didn't find anything.
19648if 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; }
19649}'`; fi
19650else
19651  echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
19654fi
19655rm -f conftest.err conftest.$ac_objext \
19656      conftest$ac_exeext conftest.$ac_ext
19657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19658
19659	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19660	  # Warning - without using the other run time loading flags,
19661	  # -berok will link without error, but may produce a broken library.
19662	  no_undefined_flag_F77=' ${wl}-bernotok'
19663	  allow_undefined_flag_F77=' ${wl}-berok'
19664	  # -bexpall does not export symbols beginning with underscore (_)
19665	  always_export_symbols_F77=yes
19666	  # Exported symbols can be pulled into shared objects from archives
19667	  whole_archive_flag_spec_F77=' '
19668	  archive_cmds_need_lc_F77=yes
19669	  # This is similar to how AIX traditionally builds it's shared libraries.
19670	  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'
19671	fi
19672      fi
19673      ;;
19674
19675    amigaos*)
19676      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)'
19677      hardcode_libdir_flag_spec_F77='-L$libdir'
19678      hardcode_minus_L_F77=yes
19679      # see comment about different semantics on the GNU ld section
19680      ld_shlibs_F77=no
19681      ;;
19682
19683    bsdi[45]*)
19684      export_dynamic_flag_spec_F77=-rdynamic
19685      ;;
19686
19687    cygwin* | mingw* | pw32*)
19688      # When not using gcc, we currently assume that we are using
19689      # Microsoft Visual C++.
19690      # hardcode_libdir_flag_spec is actually meaningless, as there is
19691      # no search path for DLLs.
19692      hardcode_libdir_flag_spec_F77=' '
19693      allow_undefined_flag_F77=unsupported
19694      # Tell ltmain to make .lib files, not .a files.
19695      libext=lib
19696      # Tell ltmain to make .dll files, not .so files.
19697      shrext_cmds=".dll"
19698      # FIXME: Setting linknames here is a bad hack.
19699      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19700      # The linker will automatically build a .lib file if we build a DLL.
19701      old_archive_From_new_cmds_F77='true'
19702      # FIXME: Should let the user specify the lib program.
19703      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19704      fix_srcfile_path='`cygpath -w "$srcfile"`'
19705      enable_shared_with_static_runtimes_F77=yes
19706      ;;
19707
19708    darwin* | rhapsody*)
19709      case "$host_os" in
19710        rhapsody* | darwin1.[012])
19711         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19712         ;;
19713       *) # Darwin 1.3 on
19714         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19715           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19716         else
19717           case ${MACOSX_DEPLOYMENT_TARGET} in
19718             10.[012])
19719               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19720               ;;
19721             10.*)
19722               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19723               ;;
19724           esac
19725         fi
19726         ;;
19727      esac
19728      archive_cmds_need_lc_F77=no
19729      hardcode_direct_F77=no
19730      hardcode_automatic_F77=yes
19731      hardcode_shlibpath_var_F77=unsupported
19732      whole_archive_flag_spec_F77=''
19733      link_all_deplibs_F77=yes
19734    if test "$GCC" = yes ; then
19735    	output_verbose_link_cmd='echo'
19736        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19737      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19738      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19739      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}'
19740      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}'
19741    else
19742      case "$cc_basename" in
19743        xlc*)
19744         output_verbose_link_cmd='echo'
19745         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19746         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19748         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}'
19749          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}'
19750          ;;
19751       *)
19752         ld_shlibs_F77=no
19753          ;;
19754      esac
19755    fi
19756      ;;
19757
19758    dgux*)
19759      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19760      hardcode_libdir_flag_spec_F77='-L$libdir'
19761      hardcode_shlibpath_var_F77=no
19762      ;;
19763
19764    freebsd1*)
19765      ld_shlibs_F77=no
19766      ;;
19767
19768    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19769    # support.  Future versions do this automatically, but an explicit c++rt0.o
19770    # does not break anything, and helps significantly (at the cost of a little
19771    # extra space).
19772    freebsd2.2*)
19773      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19774      hardcode_libdir_flag_spec_F77='-R$libdir'
19775      hardcode_direct_F77=yes
19776      hardcode_shlibpath_var_F77=no
19777      ;;
19778
19779    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19780    freebsd2*)
19781      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19782      hardcode_direct_F77=yes
19783      hardcode_minus_L_F77=yes
19784      hardcode_shlibpath_var_F77=no
19785      ;;
19786
19787    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19788    freebsd* | kfreebsd*-gnu)
19789      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19790      hardcode_libdir_flag_spec_F77='-R$libdir'
19791      hardcode_direct_F77=yes
19792      hardcode_shlibpath_var_F77=no
19793      ;;
19794
19795    hpux9*)
19796      if test "$GCC" = yes; then
19797	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'
19798      else
19799	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'
19800      fi
19801      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19802      hardcode_libdir_separator_F77=:
19803      hardcode_direct_F77=yes
19804
19805      # hardcode_minus_L: Not really in the search PATH,
19806      # but as the default location of the library.
19807      hardcode_minus_L_F77=yes
19808      export_dynamic_flag_spec_F77='${wl}-E'
19809      ;;
19810
19811    hpux10* | hpux11*)
19812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19813	case "$host_cpu" in
19814	hppa*64*|ia64*)
19815	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816	  ;;
19817	*)
19818	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19819	  ;;
19820	esac
19821      else
19822	case "$host_cpu" in
19823	hppa*64*|ia64*)
19824	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19825	  ;;
19826	*)
19827	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19828	  ;;
19829	esac
19830      fi
19831      if test "$with_gnu_ld" = no; then
19832	case "$host_cpu" in
19833	hppa*64*)
19834	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19835	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19836	  hardcode_libdir_separator_F77=:
19837	  hardcode_direct_F77=no
19838	  hardcode_shlibpath_var_F77=no
19839	  ;;
19840	ia64*)
19841	  hardcode_libdir_flag_spec_F77='-L$libdir'
19842	  hardcode_direct_F77=no
19843	  hardcode_shlibpath_var_F77=no
19844
19845	  # hardcode_minus_L: Not really in the search PATH,
19846	  # but as the default location of the library.
19847	  hardcode_minus_L_F77=yes
19848	  ;;
19849	*)
19850	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19851	  hardcode_libdir_separator_F77=:
19852	  hardcode_direct_F77=yes
19853	  export_dynamic_flag_spec_F77='${wl}-E'
19854
19855	  # hardcode_minus_L: Not really in the search PATH,
19856	  # but as the default location of the library.
19857	  hardcode_minus_L_F77=yes
19858	  ;;
19859	esac
19860      fi
19861      ;;
19862
19863    irix5* | irix6* | nonstopux*)
19864      if test "$GCC" = yes; then
19865	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'
19866      else
19867	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'
19868	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19869      fi
19870      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19871      hardcode_libdir_separator_F77=:
19872      link_all_deplibs_F77=yes
19873      ;;
19874
19875    netbsd*)
19876      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19877	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19878      else
19879	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19880      fi
19881      hardcode_libdir_flag_spec_F77='-R$libdir'
19882      hardcode_direct_F77=yes
19883      hardcode_shlibpath_var_F77=no
19884      ;;
19885
19886    newsos6)
19887      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888      hardcode_direct_F77=yes
19889      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19890      hardcode_libdir_separator_F77=:
19891      hardcode_shlibpath_var_F77=no
19892      ;;
19893
19894    openbsd*)
19895      hardcode_direct_F77=yes
19896      hardcode_shlibpath_var_F77=no
19897      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19898	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19899	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19900	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19901	export_dynamic_flag_spec_F77='${wl}-E'
19902      else
19903       case $host_os in
19904	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19905	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19906	   hardcode_libdir_flag_spec_F77='-R$libdir'
19907	   ;;
19908	 *)
19909	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19910	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19911	   ;;
19912       esac
19913      fi
19914      ;;
19915
19916    os2*)
19917      hardcode_libdir_flag_spec_F77='-L$libdir'
19918      hardcode_minus_L_F77=yes
19919      allow_undefined_flag_F77=unsupported
19920      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'
19921      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19922      ;;
19923
19924    osf3*)
19925      if test "$GCC" = yes; then
19926	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19927	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'
19928      else
19929	allow_undefined_flag_F77=' -expect_unresolved \*'
19930	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'
19931      fi
19932      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19933      hardcode_libdir_separator_F77=:
19934      ;;
19935
19936    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19937      if test "$GCC" = yes; then
19938	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19939	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'
19940	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19941      else
19942	allow_undefined_flag_F77=' -expect_unresolved \*'
19943	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'
19944	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~
19945	$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'
19946
19947	# Both c and cxx compiler support -rpath directly
19948	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19949      fi
19950      hardcode_libdir_separator_F77=:
19951      ;;
19952
19953    sco3.2v5*)
19954      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955      hardcode_shlibpath_var_F77=no
19956      export_dynamic_flag_spec_F77='${wl}-Bexport'
19957      runpath_var=LD_RUN_PATH
19958      hardcode_runpath_var=yes
19959      ;;
19960
19961    solaris*)
19962      no_undefined_flag_F77=' -z text'
19963      if test "$GCC" = yes; then
19964	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19965	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19966	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19967      else
19968	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19969	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19970  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19971      fi
19972      hardcode_libdir_flag_spec_F77='-R$libdir'
19973      hardcode_shlibpath_var_F77=no
19974      case $host_os in
19975      solaris2.[0-5] | solaris2.[0-5].*) ;;
19976      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19977	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19978      esac
19979      link_all_deplibs_F77=yes
19980      ;;
19981
19982    sunos4*)
19983      if test "x$host_vendor" = xsequent; then
19984	# Use $CC to link under sequent, because it throws in some extra .o
19985	# files that make .init and .fini sections work.
19986	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19987      else
19988	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19989      fi
19990      hardcode_libdir_flag_spec_F77='-L$libdir'
19991      hardcode_direct_F77=yes
19992      hardcode_minus_L_F77=yes
19993      hardcode_shlibpath_var_F77=no
19994      ;;
19995
19996    sysv4)
19997      case $host_vendor in
19998	sni)
19999	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20000	  hardcode_direct_F77=yes # is this really true???
20001	;;
20002	siemens)
20003	  ## LD is ld it makes a PLAMLIB
20004	  ## CC just makes a GrossModule.
20005	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20006	  reload_cmds_F77='$CC -r -o $output$reload_objs'
20007	  hardcode_direct_F77=no
20008        ;;
20009	motorola)
20010	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20011	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20012	;;
20013      esac
20014      runpath_var='LD_RUN_PATH'
20015      hardcode_shlibpath_var_F77=no
20016      ;;
20017
20018    sysv4.3*)
20019      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20020      hardcode_shlibpath_var_F77=no
20021      export_dynamic_flag_spec_F77='-Bexport'
20022      ;;
20023
20024    sysv4*MP*)
20025      if test -d /usr/nec; then
20026	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027	hardcode_shlibpath_var_F77=no
20028	runpath_var=LD_RUN_PATH
20029	hardcode_runpath_var=yes
20030	ld_shlibs_F77=yes
20031      fi
20032      ;;
20033
20034    sysv4.2uw2*)
20035      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20036      hardcode_direct_F77=yes
20037      hardcode_minus_L_F77=no
20038      hardcode_shlibpath_var_F77=no
20039      hardcode_runpath_var=yes
20040      runpath_var=LD_RUN_PATH
20041      ;;
20042
20043   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20044      no_undefined_flag_F77='${wl}-z ${wl}text'
20045      if test "$GCC" = yes; then
20046	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20047      else
20048	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20049      fi
20050      runpath_var='LD_RUN_PATH'
20051      hardcode_shlibpath_var_F77=no
20052      ;;
20053
20054    sysv5*)
20055      no_undefined_flag_F77=' -z text'
20056      # $CC -shared without GNU ld will not create a library from C++
20057      # object files and a static libstdc++, better avoid it by now
20058      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20059      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20060  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20061      hardcode_libdir_flag_spec_F77=
20062      hardcode_shlibpath_var_F77=no
20063      runpath_var='LD_RUN_PATH'
20064      ;;
20065
20066    uts4*)
20067      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20068      hardcode_libdir_flag_spec_F77='-L$libdir'
20069      hardcode_shlibpath_var_F77=no
20070      ;;
20071
20072    *)
20073      ld_shlibs_F77=no
20074      ;;
20075    esac
20076  fi
20077
20078echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20079echo "${ECHO_T}$ld_shlibs_F77" >&6
20080test "$ld_shlibs_F77" = no && can_build_shared=no
20081
20082variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20083if test "$GCC" = yes; then
20084  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20085fi
20086
20087#
20088# Do we need to explicitly link libc?
20089#
20090case "x$archive_cmds_need_lc_F77" in
20091x|xyes)
20092  # Assume -lc should be added
20093  archive_cmds_need_lc_F77=yes
20094
20095  if test "$enable_shared" = yes && test "$GCC" = yes; then
20096    case $archive_cmds_F77 in
20097    *'~'*)
20098      # FIXME: we may have to deal with multi-command sequences.
20099      ;;
20100    '$CC '*)
20101      # Test whether the compiler implicitly links with -lc since on some
20102      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20103      # to ld, don't add -lc before -lgcc.
20104      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20105echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20106      $rm conftest*
20107      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20108
20109      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20110  (eval $ac_compile) 2>&5
20111  ac_status=$?
20112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113  (exit $ac_status); } 2>conftest.err; then
20114        soname=conftest
20115        lib=conftest
20116        libobjs=conftest.$ac_objext
20117        deplibs=
20118        wl=$lt_prog_compiler_wl_F77
20119        compiler_flags=-v
20120        linker_flags=-v
20121        verstring=
20122        output_objdir=.
20123        libname=conftest
20124        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20125        allow_undefined_flag_F77=
20126        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20127  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20128  ac_status=$?
20129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130  (exit $ac_status); }
20131        then
20132	  archive_cmds_need_lc_F77=no
20133        else
20134	  archive_cmds_need_lc_F77=yes
20135        fi
20136        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20137      else
20138        cat conftest.err 1>&5
20139      fi
20140      $rm conftest*
20141      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20142echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20143      ;;
20144    esac
20145  fi
20146  ;;
20147esac
20148
20149echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20150echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20151library_names_spec=
20152libname_spec='lib$name'
20153soname_spec=
20154shrext_cmds=".so"
20155postinstall_cmds=
20156postuninstall_cmds=
20157finish_cmds=
20158finish_eval=
20159shlibpath_var=
20160shlibpath_overrides_runpath=unknown
20161version_type=none
20162dynamic_linker="$host_os ld.so"
20163sys_lib_dlsearch_path_spec="/lib /usr/lib"
20164if test "$GCC" = yes; then
20165  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20166  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20167    # if the path contains ";" then we assume it to be the separator
20168    # otherwise default to the standard path separator (i.e. ":") - it is
20169    # assumed that no part of a normal pathname contains ";" but that should
20170    # okay in the real world where ";" in dirpaths is itself problematic.
20171    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20172  else
20173    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20174  fi
20175else
20176  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20177fi
20178need_lib_prefix=unknown
20179hardcode_into_libs=no
20180
20181# when you set need_version to no, make sure it does not cause -set_version
20182# flags to be left without arguments
20183need_version=unknown
20184
20185case $host_os in
20186aix3*)
20187  version_type=linux
20188  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20189  shlibpath_var=LIBPATH
20190
20191  # AIX 3 has no versioning support, so we append a major version to the name.
20192  soname_spec='${libname}${release}${shared_ext}$major'
20193  ;;
20194
20195aix4* | aix5*)
20196  version_type=linux
20197  need_lib_prefix=no
20198  need_version=no
20199  hardcode_into_libs=yes
20200  if test "$host_cpu" = ia64; then
20201    # AIX 5 supports IA64
20202    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20203    shlibpath_var=LD_LIBRARY_PATH
20204  else
20205    # With GCC up to 2.95.x, collect2 would create an import file
20206    # for dependence libraries.  The import file would start with
20207    # the line `#! .'.  This would cause the generated library to
20208    # depend on `.', always an invalid library.  This was fixed in
20209    # development snapshots of GCC prior to 3.0.
20210    case $host_os in
20211      aix4 | aix4.[01] | aix4.[01].*)
20212      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20213	   echo ' yes '
20214	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20215	:
20216      else
20217	can_build_shared=no
20218      fi
20219      ;;
20220    esac
20221    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20222    # soname into executable. Probably we can add versioning support to
20223    # collect2, so additional links can be useful in future.
20224    if test "$aix_use_runtimelinking" = yes; then
20225      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20226      # instead of lib<name>.a to let people know that these are not
20227      # typical AIX shared libraries.
20228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229    else
20230      # We preserve .a as extension for shared libraries through AIX4.2
20231      # and later when we are not doing run time linking.
20232      library_names_spec='${libname}${release}.a $libname.a'
20233      soname_spec='${libname}${release}${shared_ext}$major'
20234    fi
20235    shlibpath_var=LIBPATH
20236  fi
20237  ;;
20238
20239amigaos*)
20240  library_names_spec='$libname.ixlibrary $libname.a'
20241  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20242  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'
20243  ;;
20244
20245beos*)
20246  library_names_spec='${libname}${shared_ext}'
20247  dynamic_linker="$host_os ld.so"
20248  shlibpath_var=LIBRARY_PATH
20249  ;;
20250
20251bsdi[45]*)
20252  version_type=linux
20253  need_version=no
20254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20255  soname_spec='${libname}${release}${shared_ext}$major'
20256  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20257  shlibpath_var=LD_LIBRARY_PATH
20258  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20259  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20260  # the default ld.so.conf also contains /usr/contrib/lib and
20261  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20262  # libtool to hard-code these into programs
20263  ;;
20264
20265cygwin* | mingw* | pw32*)
20266  version_type=windows
20267  shrext_cmds=".dll"
20268  need_version=no
20269  need_lib_prefix=no
20270
20271  case $GCC,$host_os in
20272  yes,cygwin* | yes,mingw* | yes,pw32*)
20273    library_names_spec='$libname.dll.a'
20274    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20275    postinstall_cmds='base_file=`basename \${file}`~
20276      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20277      dldir=$destdir/`dirname \$dlpath`~
20278      test -d \$dldir || mkdir -p \$dldir~
20279      $install_prog $dir/$dlname \$dldir/$dlname'
20280    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20281      dlpath=$dir/\$dldll~
20282       $rm \$dlpath'
20283    shlibpath_overrides_runpath=yes
20284
20285    case $host_os in
20286    cygwin*)
20287      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20288      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20289      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20290      ;;
20291    mingw*)
20292      # MinGW DLLs use traditional 'lib' prefix
20293      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20294      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20295      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20296        # It is most probably a Windows format PATH printed by
20297        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20298        # path with ; separators, and with drive letters. We can handle the
20299        # drive letters (cygwin fileutils understands them), so leave them,
20300        # especially as we might pass files found there to a mingw objdump,
20301        # which wouldn't understand a cygwinified path. Ahh.
20302        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20303      else
20304        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20305      fi
20306      ;;
20307    pw32*)
20308      # pw32 DLLs use 'pw' prefix rather than 'lib'
20309      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20310      ;;
20311    esac
20312    ;;
20313
20314  *)
20315    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20316    ;;
20317  esac
20318  dynamic_linker='Win32 ld.exe'
20319  # FIXME: first we should search . and the directory the executable is in
20320  shlibpath_var=PATH
20321  ;;
20322
20323darwin* | rhapsody*)
20324  dynamic_linker="$host_os dyld"
20325  version_type=darwin
20326  need_lib_prefix=no
20327  need_version=no
20328  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20329  soname_spec='${libname}${release}${major}$shared_ext'
20330  shlibpath_overrides_runpath=yes
20331  shlibpath_var=DYLD_LIBRARY_PATH
20332  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20333  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20334  if test "$GCC" = yes; then
20335    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"`
20336  else
20337    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20338  fi
20339  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20340  ;;
20341
20342dgux*)
20343  version_type=linux
20344  need_lib_prefix=no
20345  need_version=no
20346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20347  soname_spec='${libname}${release}${shared_ext}$major'
20348  shlibpath_var=LD_LIBRARY_PATH
20349  ;;
20350
20351freebsd1*)
20352  dynamic_linker=no
20353  ;;
20354
20355kfreebsd*-gnu)
20356  version_type=linux
20357  need_lib_prefix=no
20358  need_version=no
20359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20360  soname_spec='${libname}${release}${shared_ext}$major'
20361  shlibpath_var=LD_LIBRARY_PATH
20362  shlibpath_overrides_runpath=no
20363  hardcode_into_libs=yes
20364  dynamic_linker='GNU ld.so'
20365  ;;
20366
20367freebsd*)
20368  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20369  version_type=freebsd-$objformat
20370  case $version_type in
20371    freebsd-elf*)
20372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20373      need_version=no
20374      need_lib_prefix=no
20375      ;;
20376    freebsd-*)
20377      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20378      need_version=yes
20379      ;;
20380  esac
20381  shlibpath_var=LD_LIBRARY_PATH
20382  case $host_os in
20383  freebsd2*)
20384    shlibpath_overrides_runpath=yes
20385    ;;
20386  freebsd3.01* | freebsdelf3.01*)
20387    shlibpath_overrides_runpath=yes
20388    hardcode_into_libs=yes
20389    ;;
20390  *) # from 3.2 on
20391    shlibpath_overrides_runpath=no
20392    hardcode_into_libs=yes
20393    ;;
20394  esac
20395  ;;
20396
20397gnu*)
20398  version_type=linux
20399  need_lib_prefix=no
20400  need_version=no
20401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20402  soname_spec='${libname}${release}${shared_ext}$major'
20403  shlibpath_var=LD_LIBRARY_PATH
20404  hardcode_into_libs=yes
20405  ;;
20406
20407hpux9* | hpux10* | hpux11*)
20408  # Give a soname corresponding to the major version so that dld.sl refuses to
20409  # link against other versions.
20410  version_type=sunos
20411  need_lib_prefix=no
20412  need_version=no
20413  case "$host_cpu" in
20414  ia64*)
20415    shrext_cmds='.so'
20416    hardcode_into_libs=yes
20417    dynamic_linker="$host_os dld.so"
20418    shlibpath_var=LD_LIBRARY_PATH
20419    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20420    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421    soname_spec='${libname}${release}${shared_ext}$major'
20422    if test "X$HPUX_IA64_MODE" = X32; then
20423      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20424    else
20425      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20426    fi
20427    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20428    ;;
20429   hppa*64*)
20430     shrext_cmds='.sl'
20431     hardcode_into_libs=yes
20432     dynamic_linker="$host_os dld.sl"
20433     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436     soname_spec='${libname}${release}${shared_ext}$major'
20437     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20438     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20439     ;;
20440   *)
20441    shrext_cmds='.sl'
20442    dynamic_linker="$host_os dld.sl"
20443    shlibpath_var=SHLIB_PATH
20444    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446    soname_spec='${libname}${release}${shared_ext}$major'
20447    ;;
20448  esac
20449  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20450  postinstall_cmds='chmod 555 $lib'
20451  ;;
20452
20453irix5* | irix6* | nonstopux*)
20454  case $host_os in
20455    nonstopux*) version_type=nonstopux ;;
20456    *)
20457	if test "$lt_cv_prog_gnu_ld" = yes; then
20458		version_type=linux
20459	else
20460		version_type=irix
20461	fi ;;
20462  esac
20463  need_lib_prefix=no
20464  need_version=no
20465  soname_spec='${libname}${release}${shared_ext}$major'
20466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20467  case $host_os in
20468  irix5* | nonstopux*)
20469    libsuff= shlibsuff=
20470    ;;
20471  *)
20472    case $LD in # libtool.m4 will add one of these switches to LD
20473    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20474      libsuff= shlibsuff= libmagic=32-bit;;
20475    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20476      libsuff=32 shlibsuff=N32 libmagic=N32;;
20477    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20478      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20479    *) libsuff= shlibsuff= libmagic=never-match;;
20480    esac
20481    ;;
20482  esac
20483  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20484  shlibpath_overrides_runpath=no
20485  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20486  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20487  hardcode_into_libs=yes
20488  ;;
20489
20490# No shared lib support for Linux oldld, aout, or coff.
20491linux*oldld* | linux*aout* | linux*coff*)
20492  dynamic_linker=no
20493  ;;
20494
20495# This must be Linux ELF.
20496linux*)
20497  version_type=linux
20498  need_lib_prefix=no
20499  need_version=no
20500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20501  soname_spec='${libname}${release}${shared_ext}$major'
20502  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20503  shlibpath_var=LD_LIBRARY_PATH
20504  shlibpath_overrides_runpath=no
20505  # This implies no fast_install, which is unacceptable.
20506  # Some rework will be needed to allow for fast_install
20507  # before this can be enabled.
20508  hardcode_into_libs=yes
20509
20510  # Append ld.so.conf contents to the search path
20511  if test -f /etc/ld.so.conf; then
20512    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20513    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20514  fi
20515
20516  # We used to test for /lib/ld.so.1 and disable shared libraries on
20517  # powerpc, because MkLinux only supported shared libraries with the
20518  # GNU dynamic linker.  Since this was broken with cross compilers,
20519  # most powerpc-linux boxes support dynamic linking these days and
20520  # people can always --disable-shared, the test was removed, and we
20521  # assume the GNU/Linux dynamic linker is in use.
20522  dynamic_linker='GNU/Linux ld.so'
20523  ;;
20524
20525knetbsd*-gnu)
20526  version_type=linux
20527  need_lib_prefix=no
20528  need_version=no
20529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530  soname_spec='${libname}${release}${shared_ext}$major'
20531  shlibpath_var=LD_LIBRARY_PATH
20532  shlibpath_overrides_runpath=no
20533  hardcode_into_libs=yes
20534  dynamic_linker='GNU ld.so'
20535  ;;
20536
20537netbsd*)
20538  version_type=sunos
20539  need_lib_prefix=no
20540  need_version=no
20541  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20543    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20544    dynamic_linker='NetBSD (a.out) ld.so'
20545  else
20546    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20547    soname_spec='${libname}${release}${shared_ext}$major'
20548    dynamic_linker='NetBSD ld.elf_so'
20549  fi
20550  shlibpath_var=LD_LIBRARY_PATH
20551  shlibpath_overrides_runpath=yes
20552  hardcode_into_libs=yes
20553  ;;
20554
20555newsos6)
20556  version_type=linux
20557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20558  shlibpath_var=LD_LIBRARY_PATH
20559  shlibpath_overrides_runpath=yes
20560  ;;
20561
20562nto-qnx*)
20563  version_type=linux
20564  need_lib_prefix=no
20565  need_version=no
20566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20567  soname_spec='${libname}${release}${shared_ext}$major'
20568  shlibpath_var=LD_LIBRARY_PATH
20569  shlibpath_overrides_runpath=yes
20570  ;;
20571
20572openbsd*)
20573  version_type=sunos
20574  need_lib_prefix=no
20575  need_version=no
20576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20578  shlibpath_var=LD_LIBRARY_PATH
20579  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20580    case $host_os in
20581      openbsd2.[89] | openbsd2.[89].*)
20582	shlibpath_overrides_runpath=no
20583	;;
20584      *)
20585	shlibpath_overrides_runpath=yes
20586	;;
20587      esac
20588  else
20589    shlibpath_overrides_runpath=yes
20590  fi
20591  ;;
20592
20593os2*)
20594  libname_spec='$name'
20595  shrext_cmds=".dll"
20596  need_lib_prefix=no
20597  library_names_spec='$libname${shared_ext} $libname.a'
20598  dynamic_linker='OS/2 ld.exe'
20599  shlibpath_var=LIBPATH
20600  ;;
20601
20602osf3* | osf4* | osf5*)
20603  version_type=osf
20604  need_lib_prefix=no
20605  need_version=no
20606  soname_spec='${libname}${release}${shared_ext}$major'
20607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20608  shlibpath_var=LD_LIBRARY_PATH
20609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20610  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20611  ;;
20612
20613sco3.2v5*)
20614  version_type=osf
20615  soname_spec='${libname}${release}${shared_ext}$major'
20616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20617  shlibpath_var=LD_LIBRARY_PATH
20618  ;;
20619
20620solaris*)
20621  version_type=linux
20622  need_lib_prefix=no
20623  need_version=no
20624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20625  soname_spec='${libname}${release}${shared_ext}$major'
20626  shlibpath_var=LD_LIBRARY_PATH
20627  shlibpath_overrides_runpath=yes
20628  hardcode_into_libs=yes
20629  # ldd complains unless libraries are executable
20630  postinstall_cmds='chmod +x $lib'
20631  ;;
20632
20633sunos4*)
20634  version_type=sunos
20635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20636  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20637  shlibpath_var=LD_LIBRARY_PATH
20638  shlibpath_overrides_runpath=yes
20639  if test "$with_gnu_ld" = yes; then
20640    need_lib_prefix=no
20641  fi
20642  need_version=yes
20643  ;;
20644
20645sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20646  version_type=linux
20647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20648  soname_spec='${libname}${release}${shared_ext}$major'
20649  shlibpath_var=LD_LIBRARY_PATH
20650  case $host_vendor in
20651    sni)
20652      shlibpath_overrides_runpath=no
20653      need_lib_prefix=no
20654      export_dynamic_flag_spec='${wl}-Blargedynsym'
20655      runpath_var=LD_RUN_PATH
20656      ;;
20657    siemens)
20658      need_lib_prefix=no
20659      ;;
20660    motorola)
20661      need_lib_prefix=no
20662      need_version=no
20663      shlibpath_overrides_runpath=no
20664      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20665      ;;
20666  esac
20667  ;;
20668
20669sysv4*MP*)
20670  if test -d /usr/nec ;then
20671    version_type=linux
20672    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20673    soname_spec='$libname${shared_ext}.$major'
20674    shlibpath_var=LD_LIBRARY_PATH
20675  fi
20676  ;;
20677
20678uts4*)
20679  version_type=linux
20680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681  soname_spec='${libname}${release}${shared_ext}$major'
20682  shlibpath_var=LD_LIBRARY_PATH
20683  ;;
20684
20685*)
20686  dynamic_linker=no
20687  ;;
20688esac
20689echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20690echo "${ECHO_T}$dynamic_linker" >&6
20691test "$dynamic_linker" = no && can_build_shared=no
20692
20693echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20694echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20695hardcode_action_F77=
20696if test -n "$hardcode_libdir_flag_spec_F77" || \
20697   test -n "$runpath_var_F77" || \
20698   test "X$hardcode_automatic_F77" = "Xyes" ; then
20699
20700  # We can hardcode non-existant directories.
20701  if test "$hardcode_direct_F77" != no &&
20702     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20703     # have to relink, otherwise we might link with an installed library
20704     # when we should be linking with a yet-to-be-installed one
20705     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20706     test "$hardcode_minus_L_F77" != no; then
20707    # Linking always hardcodes the temporary library directory.
20708    hardcode_action_F77=relink
20709  else
20710    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20711    hardcode_action_F77=immediate
20712  fi
20713else
20714  # We cannot hardcode anything, or else we can only hardcode existing
20715  # directories.
20716  hardcode_action_F77=unsupported
20717fi
20718echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20719echo "${ECHO_T}$hardcode_action_F77" >&6
20720
20721if test "$hardcode_action_F77" = relink; then
20722  # Fast installation is not supported
20723  enable_fast_install=no
20724elif test "$shlibpath_overrides_runpath" = yes ||
20725     test "$enable_shared" = no; then
20726  # Fast installation is not necessary
20727  enable_fast_install=needless
20728fi
20729
20730striplib=
20731old_striplib=
20732echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20733echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20734if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20735  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20736  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20737  echo "$as_me:$LINENO: result: yes" >&5
20738echo "${ECHO_T}yes" >&6
20739else
20740# FIXME - insert some real tests, host_os isn't really good enough
20741  case $host_os in
20742   darwin*)
20743       if test -n "$STRIP" ; then
20744         striplib="$STRIP -x"
20745         echo "$as_me:$LINENO: result: yes" >&5
20746echo "${ECHO_T}yes" >&6
20747       else
20748  echo "$as_me:$LINENO: result: no" >&5
20749echo "${ECHO_T}no" >&6
20750fi
20751       ;;
20752   *)
20753  echo "$as_me:$LINENO: result: no" >&5
20754echo "${ECHO_T}no" >&6
20755    ;;
20756  esac
20757fi
20758
20759
20760
20761# The else clause should only fire when bootstrapping the
20762# libtool distribution, otherwise you forgot to ship ltmain.sh
20763# with your package, and you will get complaints that there are
20764# no rules to generate ltmain.sh.
20765if test -f "$ltmain"; then
20766  # See if we are running on zsh, and set the options which allow our commands through
20767  # without removal of \ escapes.
20768  if test -n "${ZSH_VERSION+set}" ; then
20769    setopt NO_GLOB_SUBST
20770  fi
20771  # Now quote all the things that may contain metacharacters while being
20772  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20773  # variables and quote the copies for generation of the libtool script.
20774  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20775    SED SHELL STRIP \
20776    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20777    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20778    deplibs_check_method reload_flag reload_cmds need_locks \
20779    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20780    lt_cv_sys_global_symbol_to_c_name_address \
20781    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20782    old_postinstall_cmds old_postuninstall_cmds \
20783    compiler_F77 \
20784    CC_F77 \
20785    LD_F77 \
20786    lt_prog_compiler_wl_F77 \
20787    lt_prog_compiler_pic_F77 \
20788    lt_prog_compiler_static_F77 \
20789    lt_prog_compiler_no_builtin_flag_F77 \
20790    export_dynamic_flag_spec_F77 \
20791    thread_safe_flag_spec_F77 \
20792    whole_archive_flag_spec_F77 \
20793    enable_shared_with_static_runtimes_F77 \
20794    old_archive_cmds_F77 \
20795    old_archive_from_new_cmds_F77 \
20796    predep_objects_F77 \
20797    postdep_objects_F77 \
20798    predeps_F77 \
20799    postdeps_F77 \
20800    compiler_lib_search_path_F77 \
20801    archive_cmds_F77 \
20802    archive_expsym_cmds_F77 \
20803    postinstall_cmds_F77 \
20804    postuninstall_cmds_F77 \
20805    old_archive_from_expsyms_cmds_F77 \
20806    allow_undefined_flag_F77 \
20807    no_undefined_flag_F77 \
20808    export_symbols_cmds_F77 \
20809    hardcode_libdir_flag_spec_F77 \
20810    hardcode_libdir_flag_spec_ld_F77 \
20811    hardcode_libdir_separator_F77 \
20812    hardcode_automatic_F77 \
20813    module_cmds_F77 \
20814    module_expsym_cmds_F77 \
20815    lt_cv_prog_compiler_c_o_F77 \
20816    exclude_expsyms_F77 \
20817    include_expsyms_F77; do
20818
20819    case $var in
20820    old_archive_cmds_F77 | \
20821    old_archive_from_new_cmds_F77 | \
20822    archive_cmds_F77 | \
20823    archive_expsym_cmds_F77 | \
20824    module_cmds_F77 | \
20825    module_expsym_cmds_F77 | \
20826    old_archive_from_expsyms_cmds_F77 | \
20827    export_symbols_cmds_F77 | \
20828    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20829    postinstall_cmds | postuninstall_cmds | \
20830    old_postinstall_cmds | old_postuninstall_cmds | \
20831    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20832      # Double-quote double-evaled strings.
20833      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20834      ;;
20835    *)
20836      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20837      ;;
20838    esac
20839  done
20840
20841  case $lt_echo in
20842  *'\$0 --fallback-echo"')
20843    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20844    ;;
20845  esac
20846
20847cfgfile="$ofile"
20848
20849  cat <<__EOF__ >> "$cfgfile"
20850# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20851
20852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20853
20854# Shell to use when invoking shell scripts.
20855SHELL=$lt_SHELL
20856
20857# Whether or not to build shared libraries.
20858build_libtool_libs=$enable_shared
20859
20860# Whether or not to build static libraries.
20861build_old_libs=$enable_static
20862
20863# Whether or not to add -lc for building shared libraries.
20864build_libtool_need_lc=$archive_cmds_need_lc_F77
20865
20866# Whether or not to disallow shared libs when runtime libs are static
20867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20868
20869# Whether or not to optimize for fast installation.
20870fast_install=$enable_fast_install
20871
20872# The host system.
20873host_alias=$host_alias
20874host=$host
20875
20876# An echo program that does not interpret backslashes.
20877echo=$lt_echo
20878
20879# The archiver.
20880AR=$lt_AR
20881AR_FLAGS=$lt_AR_FLAGS
20882
20883# A C compiler.
20884LTCC=$lt_LTCC
20885
20886# A language-specific compiler.
20887CC=$lt_compiler_F77
20888
20889# Is the compiler the GNU C compiler?
20890with_gcc=$GCC_F77
20891
20892# An ERE matcher.
20893EGREP=$lt_EGREP
20894
20895# The linker used to build libraries.
20896LD=$lt_LD_F77
20897
20898# Whether we need hard or soft links.
20899LN_S=$lt_LN_S
20900
20901# A BSD-compatible nm program.
20902NM=$lt_NM
20903
20904# A symbol stripping program
20905STRIP=$lt_STRIP
20906
20907# Used to examine libraries when file_magic_cmd begins "file"
20908MAGIC_CMD=$MAGIC_CMD
20909
20910# Used on cygwin: DLL creation program.
20911DLLTOOL="$DLLTOOL"
20912
20913# Used on cygwin: object dumper.
20914OBJDUMP="$OBJDUMP"
20915
20916# Used on cygwin: assembler.
20917AS="$AS"
20918
20919# The name of the directory that contains temporary libtool files.
20920objdir=$objdir
20921
20922# How to create reloadable object files.
20923reload_flag=$lt_reload_flag
20924reload_cmds=$lt_reload_cmds
20925
20926# How to pass a linker flag through the compiler.
20927wl=$lt_lt_prog_compiler_wl_F77
20928
20929# Object file suffix (normally "o").
20930objext="$ac_objext"
20931
20932# Old archive suffix (normally "a").
20933libext="$libext"
20934
20935# Shared library suffix (normally ".so").
20936shrext_cmds='$shrext_cmds'
20937
20938# Executable file suffix (normally "").
20939exeext="$exeext"
20940
20941# Additional compiler flags for building library objects.
20942pic_flag=$lt_lt_prog_compiler_pic_F77
20943pic_mode=$pic_mode
20944
20945# What is the maximum length of a command?
20946max_cmd_len=$lt_cv_sys_max_cmd_len
20947
20948# Does compiler simultaneously support -c and -o options?
20949compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20950
20951# Must we lock files when doing compilation ?
20952need_locks=$lt_need_locks
20953
20954# Do we need the lib prefix for modules?
20955need_lib_prefix=$need_lib_prefix
20956
20957# Do we need a version for libraries?
20958need_version=$need_version
20959
20960# Whether dlopen is supported.
20961dlopen_support=$enable_dlopen
20962
20963# Whether dlopen of programs is supported.
20964dlopen_self=$enable_dlopen_self
20965
20966# Whether dlopen of statically linked programs is supported.
20967dlopen_self_static=$enable_dlopen_self_static
20968
20969# Compiler flag to prevent dynamic linking.
20970link_static_flag=$lt_lt_prog_compiler_static_F77
20971
20972# Compiler flag to turn off builtin functions.
20973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20974
20975# Compiler flag to allow reflexive dlopens.
20976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20977
20978# Compiler flag to generate shared objects directly from archives.
20979whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20980
20981# Compiler flag to generate thread-safe objects.
20982thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20983
20984# Library versioning type.
20985version_type=$version_type
20986
20987# Format of library name prefix.
20988libname_spec=$lt_libname_spec
20989
20990# List of archive names.  First name is the real one, the rest are links.
20991# The last name is the one that the linker finds with -lNAME.
20992library_names_spec=$lt_library_names_spec
20993
20994# The coded name of the library, if different from the real name.
20995soname_spec=$lt_soname_spec
20996
20997# Commands used to build and install an old-style archive.
20998RANLIB=$lt_RANLIB
20999old_archive_cmds=$lt_old_archive_cmds_F77
21000old_postinstall_cmds=$lt_old_postinstall_cmds
21001old_postuninstall_cmds=$lt_old_postuninstall_cmds
21002
21003# Create an old-style archive from a shared archive.
21004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21005
21006# Create a temporary old-style archive to link instead of a shared archive.
21007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21008
21009# Commands used to build and install a shared archive.
21010archive_cmds=$lt_archive_cmds_F77
21011archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21012postinstall_cmds=$lt_postinstall_cmds
21013postuninstall_cmds=$lt_postuninstall_cmds
21014
21015# Commands used to build a loadable module (assumed same as above if empty)
21016module_cmds=$lt_module_cmds_F77
21017module_expsym_cmds=$lt_module_expsym_cmds_F77
21018
21019# Commands to strip libraries.
21020old_striplib=$lt_old_striplib
21021striplib=$lt_striplib
21022
21023# Dependencies to place before the objects being linked to create a
21024# shared library.
21025predep_objects=$lt_predep_objects_F77
21026
21027# Dependencies to place after the objects being linked to create a
21028# shared library.
21029postdep_objects=$lt_postdep_objects_F77
21030
21031# Dependencies to place before the objects being linked to create a
21032# shared library.
21033predeps=$lt_predeps_F77
21034
21035# Dependencies to place after the objects being linked to create a
21036# shared library.
21037postdeps=$lt_postdeps_F77
21038
21039# The library search path used internally by the compiler when linking
21040# a shared library.
21041compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21042
21043# Method to check whether dependent libraries are shared objects.
21044deplibs_check_method=$lt_deplibs_check_method
21045
21046# Command to use when deplibs_check_method == file_magic.
21047file_magic_cmd=$lt_file_magic_cmd
21048
21049# Flag that allows shared libraries with undefined symbols to be built.
21050allow_undefined_flag=$lt_allow_undefined_flag_F77
21051
21052# Flag that forces no undefined symbols.
21053no_undefined_flag=$lt_no_undefined_flag_F77
21054
21055# Commands used to finish a libtool library installation in a directory.
21056finish_cmds=$lt_finish_cmds
21057
21058# Same as above, but a single script fragment to be evaled but not shown.
21059finish_eval=$lt_finish_eval
21060
21061# Take the output of nm and produce a listing of raw symbols and C names.
21062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21063
21064# Transform the output of nm in a proper C declaration
21065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21066
21067# Transform the output of nm in a C name address pair
21068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21069
21070# This is the shared library runtime path variable.
21071runpath_var=$runpath_var
21072
21073# This is the shared library path variable.
21074shlibpath_var=$shlibpath_var
21075
21076# Is shlibpath searched before the hard-coded library search path?
21077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21078
21079# How to hardcode a shared library path into an executable.
21080hardcode_action=$hardcode_action_F77
21081
21082# Whether we should hardcode library paths into libraries.
21083hardcode_into_libs=$hardcode_into_libs
21084
21085# Flag to hardcode \$libdir into a binary during linking.
21086# This must work even if \$libdir does not exist.
21087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21088
21089# If ld is used when linking, flag to hardcode \$libdir into
21090# a binary during linking. This must work even if \$libdir does
21091# not exist.
21092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21093
21094# Whether we need a single -rpath flag with a separated argument.
21095hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21096
21097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21098# resulting binary.
21099hardcode_direct=$hardcode_direct_F77
21100
21101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21102# resulting binary.
21103hardcode_minus_L=$hardcode_minus_L_F77
21104
21105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21106# the resulting binary.
21107hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21108
21109# Set to yes if building a shared library automatically hardcodes DIR into the library
21110# and all subsequent libraries and executables linked against it.
21111hardcode_automatic=$hardcode_automatic_F77
21112
21113# Variables whose values should be saved in libtool wrapper scripts and
21114# restored at relink time.
21115variables_saved_for_relink="$variables_saved_for_relink"
21116
21117# Whether libtool must link a program against all its dependency libraries.
21118link_all_deplibs=$link_all_deplibs_F77
21119
21120# Compile-time system search path for libraries
21121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21122
21123# Run-time system search path for libraries
21124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21125
21126# Fix the shell variable \$srcfile for the compiler.
21127fix_srcfile_path="$fix_srcfile_path_F77"
21128
21129# Set to yes if exported symbols are required.
21130always_export_symbols=$always_export_symbols_F77
21131
21132# The commands to list exported symbols.
21133export_symbols_cmds=$lt_export_symbols_cmds_F77
21134
21135# The commands to extract the exported symbol list from a shared archive.
21136extract_expsyms_cmds=$lt_extract_expsyms_cmds
21137
21138# Symbols that should not be listed in the preloaded symbols.
21139exclude_expsyms=$lt_exclude_expsyms_F77
21140
21141# Symbols that must always be exported.
21142include_expsyms=$lt_include_expsyms_F77
21143
21144# ### END LIBTOOL TAG CONFIG: $tagname
21145
21146__EOF__
21147
21148
21149else
21150  # If there is no Makefile yet, we rely on a make rule to execute
21151  # `config.status --recheck' to rerun these tests and create the
21152  # libtool script then.
21153  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21154  if test -f "$ltmain_in"; then
21155    test -f Makefile && make "$ltmain"
21156  fi
21157fi
21158
21159
21160ac_ext=c
21161ac_cpp='$CPP $CPPFLAGS'
21162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165
21166CC="$lt_save_CC"
21167
21168	else
21169	  tagname=""
21170	fi
21171	;;
21172
21173      GCJ)
21174	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21175	  ac_ext=c
21176ac_cpp='$CPP $CPPFLAGS'
21177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179ac_compiler_gnu=$ac_cv_c_compiler_gnu
21180
21181
21182# Source file extension for Java test sources.
21183ac_ext=java
21184
21185# Object file extension for compiled Java test sources.
21186objext=o
21187objext_GCJ=$objext
21188
21189# Code to be used in simple compile tests
21190lt_simple_compile_test_code="class foo {}\n"
21191
21192# Code to be used in simple link tests
21193lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21194
21195# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21196
21197# If no C compiler was specified, use CC.
21198LTCC=${LTCC-"$CC"}
21199
21200# Allow CC to be a program name with arguments.
21201compiler=$CC
21202
21203
21204# Allow CC to be a program name with arguments.
21205lt_save_CC="$CC"
21206CC=${GCJ-"gcj"}
21207compiler=$CC
21208compiler_GCJ=$CC
21209
21210# GCJ did not exist at the time GCC didn't implicitly link libc in.
21211archive_cmds_need_lc_GCJ=no
21212
21213
21214lt_prog_compiler_no_builtin_flag_GCJ=
21215
21216if test "$GCC" = yes; then
21217  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21218
21219
21220echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21221echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21222if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21223  echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225  lt_cv_prog_compiler_rtti_exceptions=no
21226  ac_outfile=conftest.$ac_objext
21227   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21228   lt_compiler_flag="-fno-rtti -fno-exceptions"
21229   # Insert the option either (1) after the last *FLAGS variable, or
21230   # (2) before a word containing "conftest.", or (3) at the end.
21231   # Note that $ac_compile itself does not contain backslashes and begins
21232   # with a dollar sign (not a hyphen), so the echo should work correctly.
21233   # The option is referenced via a variable to avoid confusing sed.
21234   lt_compile=`echo "$ac_compile" | $SED \
21235   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21237   -e 's:$: $lt_compiler_flag:'`
21238   (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21239   (eval "$lt_compile" 2>conftest.err)
21240   ac_status=$?
21241   cat conftest.err >&5
21242   echo "$as_me:21242: \$? = $ac_status" >&5
21243   if (exit $ac_status) && test -s "$ac_outfile"; then
21244     # The compiler can only warn and ignore the option if not recognized
21245     # So say no if there are warnings
21246     if test ! -s conftest.err; then
21247       lt_cv_prog_compiler_rtti_exceptions=yes
21248     fi
21249   fi
21250   $rm conftest*
21251
21252fi
21253echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21254echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21255
21256if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21257    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21258else
21259    :
21260fi
21261
21262fi
21263
21264lt_prog_compiler_wl_GCJ=
21265lt_prog_compiler_pic_GCJ=
21266lt_prog_compiler_static_GCJ=
21267
21268echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21269echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21270
21271  if test "$GCC" = yes; then
21272    lt_prog_compiler_wl_GCJ='-Wl,'
21273    lt_prog_compiler_static_GCJ='-static'
21274
21275    case $host_os in
21276      aix*)
21277      # All AIX code is PIC.
21278      if test "$host_cpu" = ia64; then
21279	# AIX 5 now supports IA64 processor
21280	lt_prog_compiler_static_GCJ='-Bstatic'
21281      fi
21282      ;;
21283
21284    amigaos*)
21285      # FIXME: we need at least 68020 code to build shared libraries, but
21286      # adding the `-m68020' flag to GCC prevents building anything better,
21287      # like `-m68040'.
21288      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21289      ;;
21290
21291    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21292      # PIC is the default for these OSes.
21293      ;;
21294
21295    mingw* | pw32* | os2*)
21296      # This hack is so that the source file can tell whether it is being
21297      # built for inclusion in a dll (and should export symbols for example).
21298      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21299      ;;
21300
21301    darwin* | rhapsody*)
21302      # PIC is the default on this platform
21303      # Common symbols not allowed in MH_DYLIB files
21304      lt_prog_compiler_pic_GCJ='-fno-common'
21305      ;;
21306
21307    msdosdjgpp*)
21308      # Just because we use GCC doesn't mean we suddenly get shared libraries
21309      # on systems that don't support them.
21310      lt_prog_compiler_can_build_shared_GCJ=no
21311      enable_shared=no
21312      ;;
21313
21314    sysv4*MP*)
21315      if test -d /usr/nec; then
21316	lt_prog_compiler_pic_GCJ=-Kconform_pic
21317      fi
21318      ;;
21319
21320    hpux*)
21321      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21322      # not for PA HP-UX.
21323      case "$host_cpu" in
21324      hppa*64*|ia64*)
21325	# +Z the default
21326	;;
21327      *)
21328	lt_prog_compiler_pic_GCJ='-fPIC'
21329	;;
21330      esac
21331      ;;
21332
21333    *)
21334      lt_prog_compiler_pic_GCJ='-fPIC'
21335      ;;
21336    esac
21337  else
21338    # PORTME Check for flag to pass linker flags through the system compiler.
21339    case $host_os in
21340    aix*)
21341      lt_prog_compiler_wl_GCJ='-Wl,'
21342      if test "$host_cpu" = ia64; then
21343	# AIX 5 now supports IA64 processor
21344	lt_prog_compiler_static_GCJ='-Bstatic'
21345      else
21346	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21347      fi
21348      ;;
21349      darwin*)
21350        # PIC is the default on this platform
21351        # Common symbols not allowed in MH_DYLIB files
21352       case "$cc_basename" in
21353         xlc*)
21354         lt_prog_compiler_pic_GCJ='-qnocommon'
21355         lt_prog_compiler_wl_GCJ='-Wl,'
21356         ;;
21357       esac
21358       ;;
21359
21360    mingw* | pw32* | os2*)
21361      # This hack is so that the source file can tell whether it is being
21362      # built for inclusion in a dll (and should export symbols for example).
21363      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21364      ;;
21365
21366    hpux9* | hpux10* | hpux11*)
21367      lt_prog_compiler_wl_GCJ='-Wl,'
21368      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21369      # not for PA HP-UX.
21370      case "$host_cpu" in
21371      hppa*64*|ia64*)
21372	# +Z the default
21373	;;
21374      *)
21375	lt_prog_compiler_pic_GCJ='+Z'
21376	;;
21377      esac
21378      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21379      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21380      ;;
21381
21382    irix5* | irix6* | nonstopux*)
21383      lt_prog_compiler_wl_GCJ='-Wl,'
21384      # PIC (with -KPIC) is the default.
21385      lt_prog_compiler_static_GCJ='-non_shared'
21386      ;;
21387
21388    newsos6)
21389      lt_prog_compiler_pic_GCJ='-KPIC'
21390      lt_prog_compiler_static_GCJ='-Bstatic'
21391      ;;
21392
21393    linux*)
21394      case $CC in
21395      icc* | ecc*)
21396	lt_prog_compiler_wl_GCJ='-Wl,'
21397	lt_prog_compiler_pic_GCJ='-KPIC'
21398	lt_prog_compiler_static_GCJ='-static'
21399        ;;
21400      ccc*)
21401        lt_prog_compiler_wl_GCJ='-Wl,'
21402        # All Alpha code is PIC.
21403        lt_prog_compiler_static_GCJ='-non_shared'
21404        ;;
21405      esac
21406      ;;
21407
21408    osf3* | osf4* | osf5*)
21409      lt_prog_compiler_wl_GCJ='-Wl,'
21410      # All OSF/1 code is PIC.
21411      lt_prog_compiler_static_GCJ='-non_shared'
21412      ;;
21413
21414    sco3.2v5*)
21415      lt_prog_compiler_pic_GCJ='-Kpic'
21416      lt_prog_compiler_static_GCJ='-dn'
21417      ;;
21418
21419    solaris*)
21420      lt_prog_compiler_wl_GCJ='-Wl,'
21421      lt_prog_compiler_pic_GCJ='-KPIC'
21422      lt_prog_compiler_static_GCJ='-Bstatic'
21423      ;;
21424
21425    sunos4*)
21426      lt_prog_compiler_wl_GCJ='-Qoption ld '
21427      lt_prog_compiler_pic_GCJ='-PIC'
21428      lt_prog_compiler_static_GCJ='-Bstatic'
21429      ;;
21430
21431    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21432      lt_prog_compiler_wl_GCJ='-Wl,'
21433      lt_prog_compiler_pic_GCJ='-KPIC'
21434      lt_prog_compiler_static_GCJ='-Bstatic'
21435      ;;
21436
21437    sysv4*MP*)
21438      if test -d /usr/nec ;then
21439	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21440	lt_prog_compiler_static_GCJ='-Bstatic'
21441      fi
21442      ;;
21443
21444    uts4*)
21445      lt_prog_compiler_pic_GCJ='-pic'
21446      lt_prog_compiler_static_GCJ='-Bstatic'
21447      ;;
21448
21449    *)
21450      lt_prog_compiler_can_build_shared_GCJ=no
21451      ;;
21452    esac
21453  fi
21454
21455echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21456echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21457
21458#
21459# Check to make sure the PIC flag actually works.
21460#
21461if test -n "$lt_prog_compiler_pic_GCJ"; then
21462
21463echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21465if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21466  echo $ECHO_N "(cached) $ECHO_C" >&6
21467else
21468  lt_prog_compiler_pic_works_GCJ=no
21469  ac_outfile=conftest.$ac_objext
21470   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21471   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21472   # Insert the option either (1) after the last *FLAGS variable, or
21473   # (2) before a word containing "conftest.", or (3) at the end.
21474   # Note that $ac_compile itself does not contain backslashes and begins
21475   # with a dollar sign (not a hyphen), so the echo should work correctly.
21476   # The option is referenced via a variable to avoid confusing sed.
21477   lt_compile=`echo "$ac_compile" | $SED \
21478   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21480   -e 's:$: $lt_compiler_flag:'`
21481   (eval echo "\"\$as_me:21481: $lt_compile\"" >&5)
21482   (eval "$lt_compile" 2>conftest.err)
21483   ac_status=$?
21484   cat conftest.err >&5
21485   echo "$as_me:21485: \$? = $ac_status" >&5
21486   if (exit $ac_status) && test -s "$ac_outfile"; then
21487     # The compiler can only warn and ignore the option if not recognized
21488     # So say no if there are warnings
21489     if test ! -s conftest.err; then
21490       lt_prog_compiler_pic_works_GCJ=yes
21491     fi
21492   fi
21493   $rm conftest*
21494
21495fi
21496echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21497echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21498
21499if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21500    case $lt_prog_compiler_pic_GCJ in
21501     "" | " "*) ;;
21502     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21503     esac
21504else
21505    lt_prog_compiler_pic_GCJ=
21506     lt_prog_compiler_can_build_shared_GCJ=no
21507fi
21508
21509fi
21510case "$host_os" in
21511  # For platforms which do not support PIC, -DPIC is meaningless:
21512  *djgpp*)
21513    lt_prog_compiler_pic_GCJ=
21514    ;;
21515  *)
21516    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21517    ;;
21518esac
21519
21520echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21522if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21523  echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525  lt_cv_prog_compiler_c_o_GCJ=no
21526   $rm -r conftest 2>/dev/null
21527   mkdir conftest
21528   cd conftest
21529   mkdir out
21530   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21531
21532   lt_compiler_flag="-o out/conftest2.$ac_objext"
21533   # Insert the option either (1) after the last *FLAGS variable, or
21534   # (2) before a word containing "conftest.", or (3) at the end.
21535   # Note that $ac_compile itself does not contain backslashes and begins
21536   # with a dollar sign (not a hyphen), so the echo should work correctly.
21537   lt_compile=`echo "$ac_compile" | $SED \
21538   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21540   -e 's:$: $lt_compiler_flag:'`
21541   (eval echo "\"\$as_me:21541: $lt_compile\"" >&5)
21542   (eval "$lt_compile" 2>out/conftest.err)
21543   ac_status=$?
21544   cat out/conftest.err >&5
21545   echo "$as_me:21545: \$? = $ac_status" >&5
21546   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21547   then
21548     # The compiler can only warn and ignore the option if not recognized
21549     # So say no if there are warnings
21550     if test ! -s out/conftest.err; then
21551       lt_cv_prog_compiler_c_o_GCJ=yes
21552     fi
21553   fi
21554   chmod u+w .
21555   $rm conftest*
21556   # SGI C++ compiler will create directory out/ii_files/ for
21557   # template instantiation
21558   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21559   $rm out/* && rmdir out
21560   cd ..
21561   rmdir conftest
21562   $rm conftest*
21563
21564fi
21565echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21566echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21567
21568
21569hard_links="nottested"
21570if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21571  # do not overwrite the value of need_locks provided by the user
21572  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21573echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21574  hard_links=yes
21575  $rm conftest*
21576  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577  touch conftest.a
21578  ln conftest.a conftest.b 2>&5 || hard_links=no
21579  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21580  echo "$as_me:$LINENO: result: $hard_links" >&5
21581echo "${ECHO_T}$hard_links" >&6
21582  if test "$hard_links" = no; then
21583    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21584echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21585    need_locks=warn
21586  fi
21587else
21588  need_locks=no
21589fi
21590
21591echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21592echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21593
21594  runpath_var=
21595  allow_undefined_flag_GCJ=
21596  enable_shared_with_static_runtimes_GCJ=no
21597  archive_cmds_GCJ=
21598  archive_expsym_cmds_GCJ=
21599  old_archive_From_new_cmds_GCJ=
21600  old_archive_from_expsyms_cmds_GCJ=
21601  export_dynamic_flag_spec_GCJ=
21602  whole_archive_flag_spec_GCJ=
21603  thread_safe_flag_spec_GCJ=
21604  hardcode_libdir_flag_spec_GCJ=
21605  hardcode_libdir_flag_spec_ld_GCJ=
21606  hardcode_libdir_separator_GCJ=
21607  hardcode_direct_GCJ=no
21608  hardcode_minus_L_GCJ=no
21609  hardcode_shlibpath_var_GCJ=unsupported
21610  link_all_deplibs_GCJ=unknown
21611  hardcode_automatic_GCJ=no
21612  module_cmds_GCJ=
21613  module_expsym_cmds_GCJ=
21614  always_export_symbols_GCJ=no
21615  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21616  # include_expsyms should be a list of space-separated symbols to be *always*
21617  # included in the symbol list
21618  include_expsyms_GCJ=
21619  # exclude_expsyms can be an extended regexp of symbols to exclude
21620  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21621  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21622  # as well as any symbol that contains `d'.
21623  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21624  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21625  # platforms (ab)use it in PIC code, but their linkers get confused if
21626  # the symbol is explicitly referenced.  Since portable code cannot
21627  # rely on this symbol name, it's probably fine to never include it in
21628  # preloaded symbol tables.
21629  extract_expsyms_cmds=
21630
21631  case $host_os in
21632  cygwin* | mingw* | pw32*)
21633    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21634    # When not using gcc, we currently assume that we are using
21635    # Microsoft Visual C++.
21636    if test "$GCC" != yes; then
21637      with_gnu_ld=no
21638    fi
21639    ;;
21640  openbsd*)
21641    with_gnu_ld=no
21642    ;;
21643  esac
21644
21645  ld_shlibs_GCJ=yes
21646  if test "$with_gnu_ld" = yes; then
21647    # If archive_cmds runs LD, not CC, wlarc should be empty
21648    wlarc='${wl}'
21649
21650    # See if GNU ld supports shared libraries.
21651    case $host_os in
21652    aix3* | aix4* | aix5*)
21653      # On AIX/PPC, the GNU linker is very broken
21654      if test "$host_cpu" != ia64; then
21655	ld_shlibs_GCJ=no
21656	cat <<EOF 1>&2
21657
21658*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21659*** to be unable to reliably create shared libraries on AIX.
21660*** Therefore, libtool is disabling shared libraries support.  If you
21661*** really care for shared libraries, you may want to modify your PATH
21662*** so that a non-GNU linker is found, and then restart.
21663
21664EOF
21665      fi
21666      ;;
21667
21668    amigaos*)
21669      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)'
21670      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21671      hardcode_minus_L_GCJ=yes
21672
21673      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21674      # that the semantics of dynamic libraries on AmigaOS, at least up
21675      # to version 4, is to share data among multiple programs linked
21676      # with the same dynamic library.  Since this doesn't match the
21677      # behavior of shared libraries on other platforms, we can't use
21678      # them.
21679      ld_shlibs_GCJ=no
21680      ;;
21681
21682    beos*)
21683      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21684	allow_undefined_flag_GCJ=unsupported
21685	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21686	# support --undefined.  This deserves some investigation.  FIXME
21687	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21688      else
21689	ld_shlibs_GCJ=no
21690      fi
21691      ;;
21692
21693    cygwin* | mingw* | pw32*)
21694      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21695      # as there is no search path for DLLs.
21696      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21697      allow_undefined_flag_GCJ=unsupported
21698      always_export_symbols_GCJ=no
21699      enable_shared_with_static_runtimes_GCJ=yes
21700      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21701
21702      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21703        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21704	# If the export-symbols file already is a .def file (1st line
21705	# is EXPORTS), use it as is; otherwise, prepend...
21706	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21707	  cp $export_symbols $output_objdir/$soname.def;
21708	else
21709	  echo EXPORTS > $output_objdir/$soname.def;
21710	  cat $export_symbols >> $output_objdir/$soname.def;
21711	fi~
21712	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21713      else
21714	ld_shlibs=no
21715      fi
21716      ;;
21717
21718    netbsd*)
21719      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21720	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21721	wlarc=
21722      else
21723	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21724	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21725      fi
21726      ;;
21727
21728    solaris* | sysv5*)
21729      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21730	ld_shlibs_GCJ=no
21731	cat <<EOF 1>&2
21732
21733*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21734*** create shared libraries on Solaris systems.  Therefore, libtool
21735*** is disabling shared libraries support.  We urge you to upgrade GNU
21736*** binutils to release 2.9.1 or newer.  Another option is to modify
21737*** your PATH or compiler configuration so that the native linker is
21738*** used, and then restart.
21739
21740EOF
21741      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21742	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21743	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21744      else
21745	ld_shlibs_GCJ=no
21746      fi
21747      ;;
21748
21749    sunos4*)
21750      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21751      wlarc=
21752      hardcode_direct_GCJ=yes
21753      hardcode_shlibpath_var_GCJ=no
21754      ;;
21755
21756  linux*)
21757    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21758        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21759	archive_cmds_GCJ="$tmp_archive_cmds"
21760      supports_anon_versioning=no
21761      case `$LD -v 2>/dev/null` in
21762        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21763        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21764        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21765        *\ 2.11.*) ;; # other 2.11 versions
21766        *) supports_anon_versioning=yes ;;
21767      esac
21768      if test $supports_anon_versioning = yes; then
21769        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21770cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771$echo "local: *; };" >> $output_objdir/$libname.ver~
21772        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773      else
21774        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21775      fi
21776    else
21777      ld_shlibs_GCJ=no
21778    fi
21779    ;;
21780
21781    *)
21782      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21783	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21784	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21785      else
21786	ld_shlibs_GCJ=no
21787      fi
21788      ;;
21789    esac
21790
21791    if test "$ld_shlibs_GCJ" = yes; then
21792      runpath_var=LD_RUN_PATH
21793      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21794      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21795      # ancient GNU ld didn't support --whole-archive et. al.
21796      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21797 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21798      else
21799  	whole_archive_flag_spec_GCJ=
21800      fi
21801    fi
21802  else
21803    # PORTME fill in a description of your system's linker (not GNU ld)
21804    case $host_os in
21805    aix3*)
21806      allow_undefined_flag_GCJ=unsupported
21807      always_export_symbols_GCJ=yes
21808      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'
21809      # Note: this linker hardcodes the directories in LIBPATH if there
21810      # are no directories specified by -L.
21811      hardcode_minus_L_GCJ=yes
21812      if test "$GCC" = yes && test -z "$link_static_flag"; then
21813	# Neither direct hardcoding nor static linking is supported with a
21814	# broken collect2.
21815	hardcode_direct_GCJ=unsupported
21816      fi
21817      ;;
21818
21819    aix4* | aix5*)
21820      if test "$host_cpu" = ia64; then
21821	# On IA64, the linker does run time linking by default, so we don't
21822	# have to do anything special.
21823	aix_use_runtimelinking=no
21824	exp_sym_flag='-Bexport'
21825	no_entry_flag=""
21826      else
21827	# If we're using GNU nm, then we don't want the "-C" option.
21828	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21829	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21830	  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'
21831	else
21832	  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'
21833	fi
21834	aix_use_runtimelinking=no
21835
21836	# Test if we are trying to use run time linking or normal
21837	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21838	# need to do runtime linking.
21839	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21840	  for ld_flag in $LDFLAGS; do
21841  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21842  	    aix_use_runtimelinking=yes
21843  	    break
21844  	  fi
21845	  done
21846	esac
21847
21848	exp_sym_flag='-bexport'
21849	no_entry_flag='-bnoentry'
21850      fi
21851
21852      # When large executables or shared objects are built, AIX ld can
21853      # have problems creating the table of contents.  If linking a library
21854      # or program results in "error TOC overflow" add -mminimal-toc to
21855      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21856      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21857
21858      archive_cmds_GCJ=''
21859      hardcode_direct_GCJ=yes
21860      hardcode_libdir_separator_GCJ=':'
21861      link_all_deplibs_GCJ=yes
21862
21863      if test "$GCC" = yes; then
21864	case $host_os in aix4.012|aix4.012.*)
21865	# We only want to do this on AIX 4.2 and lower, the check
21866	# below for broken collect2 doesn't work under 4.3+
21867	  collect2name=`${CC} -print-prog-name=collect2`
21868	  if test -f "$collect2name" && \
21869  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21870	  then
21871  	  # We have reworked collect2
21872  	  hardcode_direct_GCJ=yes
21873	  else
21874  	  # We have old collect2
21875  	  hardcode_direct_GCJ=unsupported
21876  	  # It fails to find uninstalled libraries when the uninstalled
21877  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21878  	  # to unsupported forces relinking
21879  	  hardcode_minus_L_GCJ=yes
21880  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881  	  hardcode_libdir_separator_GCJ=
21882	  fi
21883	esac
21884	shared_flag='-shared'
21885      else
21886	# not using gcc
21887	if test "$host_cpu" = ia64; then
21888  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21889  	# chokes on -Wl,-G. The following line is correct:
21890	  shared_flag='-G'
21891	else
21892  	if test "$aix_use_runtimelinking" = yes; then
21893	    shared_flag='${wl}-G'
21894	  else
21895	    shared_flag='${wl}-bM:SRE'
21896  	fi
21897	fi
21898      fi
21899
21900      # It seems that -bexpall does not export symbols beginning with
21901      # underscore (_), so it is better to generate a list of symbols to export.
21902      always_export_symbols_GCJ=yes
21903      if test "$aix_use_runtimelinking" = yes; then
21904	# Warning - without using the other runtime loading flags (-brtl),
21905	# -berok will link without error, but may produce a broken library.
21906	allow_undefined_flag_GCJ='-berok'
21907       # Determine the default libpath from the value encoded in an empty executable.
21908       cat >conftest.$ac_ext <<_ACEOF
21909/* confdefs.h.  */
21910_ACEOF
21911cat confdefs.h >>conftest.$ac_ext
21912cat >>conftest.$ac_ext <<_ACEOF
21913/* end confdefs.h.  */
21914
21915int
21916main ()
21917{
21918
21919  ;
21920  return 0;
21921}
21922_ACEOF
21923rm -f conftest.$ac_objext conftest$ac_exeext
21924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925  (eval $ac_link) 2>conftest.er1
21926  ac_status=$?
21927  grep -v '^ *+' conftest.er1 >conftest.err
21928  rm -f conftest.er1
21929  cat conftest.err >&5
21930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931  (exit $ac_status); } &&
21932	 { ac_try='test -z "$ac_c_werror_flag"
21933			 || test ! -s conftest.err'
21934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935  (eval $ac_try) 2>&5
21936  ac_status=$?
21937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938  (exit $ac_status); }; } &&
21939	 { ac_try='test -s conftest$ac_exeext'
21940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941  (eval $ac_try) 2>&5
21942  ac_status=$?
21943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944  (exit $ac_status); }; }; then
21945
21946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21947}'`
21948# Check for a 64-bit object if we didn't find anything.
21949if 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; }
21950}'`; fi
21951else
21952  echo "$as_me: failed program was:" >&5
21953sed 's/^/| /' conftest.$ac_ext >&5
21954
21955fi
21956rm -f conftest.err conftest.$ac_objext \
21957      conftest$ac_exeext conftest.$ac_ext
21958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21959
21960       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21961	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"
21962       else
21963	if test "$host_cpu" = ia64; then
21964	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21965	  allow_undefined_flag_GCJ="-z nodefs"
21966	  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"
21967	else
21968	 # Determine the default libpath from the value encoded in an empty executable.
21969	 cat >conftest.$ac_ext <<_ACEOF
21970/* confdefs.h.  */
21971_ACEOF
21972cat confdefs.h >>conftest.$ac_ext
21973cat >>conftest.$ac_ext <<_ACEOF
21974/* end confdefs.h.  */
21975
21976int
21977main ()
21978{
21979
21980  ;
21981  return 0;
21982}
21983_ACEOF
21984rm -f conftest.$ac_objext conftest$ac_exeext
21985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986  (eval $ac_link) 2>conftest.er1
21987  ac_status=$?
21988  grep -v '^ *+' conftest.er1 >conftest.err
21989  rm -f conftest.er1
21990  cat conftest.err >&5
21991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992  (exit $ac_status); } &&
21993	 { ac_try='test -z "$ac_c_werror_flag"
21994			 || test ! -s conftest.err'
21995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996  (eval $ac_try) 2>&5
21997  ac_status=$?
21998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999  (exit $ac_status); }; } &&
22000	 { ac_try='test -s conftest$ac_exeext'
22001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002  (eval $ac_try) 2>&5
22003  ac_status=$?
22004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005  (exit $ac_status); }; }; then
22006
22007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22008}'`
22009# Check for a 64-bit object if we didn't find anything.
22010if 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; }
22011}'`; fi
22012else
22013  echo "$as_me: failed program was:" >&5
22014sed 's/^/| /' conftest.$ac_ext >&5
22015
22016fi
22017rm -f conftest.err conftest.$ac_objext \
22018      conftest$ac_exeext conftest.$ac_ext
22019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22020
22021	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22022	  # Warning - without using the other run time loading flags,
22023	  # -berok will link without error, but may produce a broken library.
22024	  no_undefined_flag_GCJ=' ${wl}-bernotok'
22025	  allow_undefined_flag_GCJ=' ${wl}-berok'
22026	  # -bexpall does not export symbols beginning with underscore (_)
22027	  always_export_symbols_GCJ=yes
22028	  # Exported symbols can be pulled into shared objects from archives
22029	  whole_archive_flag_spec_GCJ=' '
22030	  archive_cmds_need_lc_GCJ=yes
22031	  # This is similar to how AIX traditionally builds it's shared libraries.
22032	  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'
22033	fi
22034      fi
22035      ;;
22036
22037    amigaos*)
22038      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)'
22039      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22040      hardcode_minus_L_GCJ=yes
22041      # see comment about different semantics on the GNU ld section
22042      ld_shlibs_GCJ=no
22043      ;;
22044
22045    bsdi[45]*)
22046      export_dynamic_flag_spec_GCJ=-rdynamic
22047      ;;
22048
22049    cygwin* | mingw* | pw32*)
22050      # When not using gcc, we currently assume that we are using
22051      # Microsoft Visual C++.
22052      # hardcode_libdir_flag_spec is actually meaningless, as there is
22053      # no search path for DLLs.
22054      hardcode_libdir_flag_spec_GCJ=' '
22055      allow_undefined_flag_GCJ=unsupported
22056      # Tell ltmain to make .lib files, not .a files.
22057      libext=lib
22058      # Tell ltmain to make .dll files, not .so files.
22059      shrext_cmds=".dll"
22060      # FIXME: Setting linknames here is a bad hack.
22061      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22062      # The linker will automatically build a .lib file if we build a DLL.
22063      old_archive_From_new_cmds_GCJ='true'
22064      # FIXME: Should let the user specify the lib program.
22065      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22066      fix_srcfile_path='`cygpath -w "$srcfile"`'
22067      enable_shared_with_static_runtimes_GCJ=yes
22068      ;;
22069
22070    darwin* | rhapsody*)
22071      case "$host_os" in
22072        rhapsody* | darwin1.[012])
22073         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22074         ;;
22075       *) # Darwin 1.3 on
22076         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22077           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22078         else
22079           case ${MACOSX_DEPLOYMENT_TARGET} in
22080             10.[012])
22081               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22082               ;;
22083             10.*)
22084               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22085               ;;
22086           esac
22087         fi
22088         ;;
22089      esac
22090      archive_cmds_need_lc_GCJ=no
22091      hardcode_direct_GCJ=no
22092      hardcode_automatic_GCJ=yes
22093      hardcode_shlibpath_var_GCJ=unsupported
22094      whole_archive_flag_spec_GCJ=''
22095      link_all_deplibs_GCJ=yes
22096    if test "$GCC" = yes ; then
22097    	output_verbose_link_cmd='echo'
22098        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22099      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22100      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22101      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}'
22102      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}'
22103    else
22104      case "$cc_basename" in
22105        xlc*)
22106         output_verbose_link_cmd='echo'
22107         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22108         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22109          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22110         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}'
22111          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}'
22112          ;;
22113       *)
22114         ld_shlibs_GCJ=no
22115          ;;
22116      esac
22117    fi
22118      ;;
22119
22120    dgux*)
22121      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22122      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22123      hardcode_shlibpath_var_GCJ=no
22124      ;;
22125
22126    freebsd1*)
22127      ld_shlibs_GCJ=no
22128      ;;
22129
22130    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22131    # support.  Future versions do this automatically, but an explicit c++rt0.o
22132    # does not break anything, and helps significantly (at the cost of a little
22133    # extra space).
22134    freebsd2.2*)
22135      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22136      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22137      hardcode_direct_GCJ=yes
22138      hardcode_shlibpath_var_GCJ=no
22139      ;;
22140
22141    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22142    freebsd2*)
22143      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22144      hardcode_direct_GCJ=yes
22145      hardcode_minus_L_GCJ=yes
22146      hardcode_shlibpath_var_GCJ=no
22147      ;;
22148
22149    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22150    freebsd* | kfreebsd*-gnu)
22151      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22152      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153      hardcode_direct_GCJ=yes
22154      hardcode_shlibpath_var_GCJ=no
22155      ;;
22156
22157    hpux9*)
22158      if test "$GCC" = yes; then
22159	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'
22160      else
22161	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'
22162      fi
22163      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22164      hardcode_libdir_separator_GCJ=:
22165      hardcode_direct_GCJ=yes
22166
22167      # hardcode_minus_L: Not really in the search PATH,
22168      # but as the default location of the library.
22169      hardcode_minus_L_GCJ=yes
22170      export_dynamic_flag_spec_GCJ='${wl}-E'
22171      ;;
22172
22173    hpux10* | hpux11*)
22174      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22175	case "$host_cpu" in
22176	hppa*64*|ia64*)
22177	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178	  ;;
22179	*)
22180	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22181	  ;;
22182	esac
22183      else
22184	case "$host_cpu" in
22185	hppa*64*|ia64*)
22186	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22187	  ;;
22188	*)
22189	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22190	  ;;
22191	esac
22192      fi
22193      if test "$with_gnu_ld" = no; then
22194	case "$host_cpu" in
22195	hppa*64*)
22196	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22197	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22198	  hardcode_libdir_separator_GCJ=:
22199	  hardcode_direct_GCJ=no
22200	  hardcode_shlibpath_var_GCJ=no
22201	  ;;
22202	ia64*)
22203	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22204	  hardcode_direct_GCJ=no
22205	  hardcode_shlibpath_var_GCJ=no
22206
22207	  # hardcode_minus_L: Not really in the search PATH,
22208	  # but as the default location of the library.
22209	  hardcode_minus_L_GCJ=yes
22210	  ;;
22211	*)
22212	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22213	  hardcode_libdir_separator_GCJ=:
22214	  hardcode_direct_GCJ=yes
22215	  export_dynamic_flag_spec_GCJ='${wl}-E'
22216
22217	  # hardcode_minus_L: Not really in the search PATH,
22218	  # but as the default location of the library.
22219	  hardcode_minus_L_GCJ=yes
22220	  ;;
22221	esac
22222      fi
22223      ;;
22224
22225    irix5* | irix6* | nonstopux*)
22226      if test "$GCC" = yes; then
22227	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'
22228      else
22229	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'
22230	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22231      fi
22232      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22233      hardcode_libdir_separator_GCJ=:
22234      link_all_deplibs_GCJ=yes
22235      ;;
22236
22237    netbsd*)
22238      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22239	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22240      else
22241	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22242      fi
22243      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244      hardcode_direct_GCJ=yes
22245      hardcode_shlibpath_var_GCJ=no
22246      ;;
22247
22248    newsos6)
22249      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250      hardcode_direct_GCJ=yes
22251      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22252      hardcode_libdir_separator_GCJ=:
22253      hardcode_shlibpath_var_GCJ=no
22254      ;;
22255
22256    openbsd*)
22257      hardcode_direct_GCJ=yes
22258      hardcode_shlibpath_var_GCJ=no
22259      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22260	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22261	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22262	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22263	export_dynamic_flag_spec_GCJ='${wl}-E'
22264      else
22265       case $host_os in
22266	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22267	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22269	   ;;
22270	 *)
22271	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22272	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22273	   ;;
22274       esac
22275      fi
22276      ;;
22277
22278    os2*)
22279      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22280      hardcode_minus_L_GCJ=yes
22281      allow_undefined_flag_GCJ=unsupported
22282      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'
22283      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22284      ;;
22285
22286    osf3*)
22287      if test "$GCC" = yes; then
22288	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22289	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'
22290      else
22291	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22292	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'
22293      fi
22294      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22295      hardcode_libdir_separator_GCJ=:
22296      ;;
22297
22298    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22299      if test "$GCC" = yes; then
22300	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22301	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'
22302	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22303      else
22304	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22305	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'
22306	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~
22307	$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'
22308
22309	# Both c and cxx compiler support -rpath directly
22310	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22311      fi
22312      hardcode_libdir_separator_GCJ=:
22313      ;;
22314
22315    sco3.2v5*)
22316      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317      hardcode_shlibpath_var_GCJ=no
22318      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22319      runpath_var=LD_RUN_PATH
22320      hardcode_runpath_var=yes
22321      ;;
22322
22323    solaris*)
22324      no_undefined_flag_GCJ=' -z text'
22325      if test "$GCC" = yes; then
22326	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22328	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22329      else
22330	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22331	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22332  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22333      fi
22334      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22335      hardcode_shlibpath_var_GCJ=no
22336      case $host_os in
22337      solaris2.[0-5] | solaris2.[0-5].*) ;;
22338      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22339	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22340      esac
22341      link_all_deplibs_GCJ=yes
22342      ;;
22343
22344    sunos4*)
22345      if test "x$host_vendor" = xsequent; then
22346	# Use $CC to link under sequent, because it throws in some extra .o
22347	# files that make .init and .fini sections work.
22348	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22349      else
22350	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22351      fi
22352      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22353      hardcode_direct_GCJ=yes
22354      hardcode_minus_L_GCJ=yes
22355      hardcode_shlibpath_var_GCJ=no
22356      ;;
22357
22358    sysv4)
22359      case $host_vendor in
22360	sni)
22361	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22362	  hardcode_direct_GCJ=yes # is this really true???
22363	;;
22364	siemens)
22365	  ## LD is ld it makes a PLAMLIB
22366	  ## CC just makes a GrossModule.
22367	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22368	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22369	  hardcode_direct_GCJ=no
22370        ;;
22371	motorola)
22372	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22373	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22374	;;
22375      esac
22376      runpath_var='LD_RUN_PATH'
22377      hardcode_shlibpath_var_GCJ=no
22378      ;;
22379
22380    sysv4.3*)
22381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22382      hardcode_shlibpath_var_GCJ=no
22383      export_dynamic_flag_spec_GCJ='-Bexport'
22384      ;;
22385
22386    sysv4*MP*)
22387      if test -d /usr/nec; then
22388	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389	hardcode_shlibpath_var_GCJ=no
22390	runpath_var=LD_RUN_PATH
22391	hardcode_runpath_var=yes
22392	ld_shlibs_GCJ=yes
22393      fi
22394      ;;
22395
22396    sysv4.2uw2*)
22397      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22398      hardcode_direct_GCJ=yes
22399      hardcode_minus_L_GCJ=no
22400      hardcode_shlibpath_var_GCJ=no
22401      hardcode_runpath_var=yes
22402      runpath_var=LD_RUN_PATH
22403      ;;
22404
22405   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22406      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22407      if test "$GCC" = yes; then
22408	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22409      else
22410	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22411      fi
22412      runpath_var='LD_RUN_PATH'
22413      hardcode_shlibpath_var_GCJ=no
22414      ;;
22415
22416    sysv5*)
22417      no_undefined_flag_GCJ=' -z text'
22418      # $CC -shared without GNU ld will not create a library from C++
22419      # object files and a static libstdc++, better avoid it by now
22420      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22422  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22423      hardcode_libdir_flag_spec_GCJ=
22424      hardcode_shlibpath_var_GCJ=no
22425      runpath_var='LD_RUN_PATH'
22426      ;;
22427
22428    uts4*)
22429      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22431      hardcode_shlibpath_var_GCJ=no
22432      ;;
22433
22434    *)
22435      ld_shlibs_GCJ=no
22436      ;;
22437    esac
22438  fi
22439
22440echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22441echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22442test "$ld_shlibs_GCJ" = no && can_build_shared=no
22443
22444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22445if test "$GCC" = yes; then
22446  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22447fi
22448
22449#
22450# Do we need to explicitly link libc?
22451#
22452case "x$archive_cmds_need_lc_GCJ" in
22453x|xyes)
22454  # Assume -lc should be added
22455  archive_cmds_need_lc_GCJ=yes
22456
22457  if test "$enable_shared" = yes && test "$GCC" = yes; then
22458    case $archive_cmds_GCJ in
22459    *'~'*)
22460      # FIXME: we may have to deal with multi-command sequences.
22461      ;;
22462    '$CC '*)
22463      # Test whether the compiler implicitly links with -lc since on some
22464      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22465      # to ld, don't add -lc before -lgcc.
22466      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22467echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22468      $rm conftest*
22469      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22470
22471      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22472  (eval $ac_compile) 2>&5
22473  ac_status=$?
22474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475  (exit $ac_status); } 2>conftest.err; then
22476        soname=conftest
22477        lib=conftest
22478        libobjs=conftest.$ac_objext
22479        deplibs=
22480        wl=$lt_prog_compiler_wl_GCJ
22481        compiler_flags=-v
22482        linker_flags=-v
22483        verstring=
22484        output_objdir=.
22485        libname=conftest
22486        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22487        allow_undefined_flag_GCJ=
22488        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22489  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22490  ac_status=$?
22491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492  (exit $ac_status); }
22493        then
22494	  archive_cmds_need_lc_GCJ=no
22495        else
22496	  archive_cmds_need_lc_GCJ=yes
22497        fi
22498        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22499      else
22500        cat conftest.err 1>&5
22501      fi
22502      $rm conftest*
22503      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22504echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22505      ;;
22506    esac
22507  fi
22508  ;;
22509esac
22510
22511echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22512echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22513library_names_spec=
22514libname_spec='lib$name'
22515soname_spec=
22516shrext_cmds=".so"
22517postinstall_cmds=
22518postuninstall_cmds=
22519finish_cmds=
22520finish_eval=
22521shlibpath_var=
22522shlibpath_overrides_runpath=unknown
22523version_type=none
22524dynamic_linker="$host_os ld.so"
22525sys_lib_dlsearch_path_spec="/lib /usr/lib"
22526if test "$GCC" = yes; then
22527  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22528  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22529    # if the path contains ";" then we assume it to be the separator
22530    # otherwise default to the standard path separator (i.e. ":") - it is
22531    # assumed that no part of a normal pathname contains ";" but that should
22532    # okay in the real world where ";" in dirpaths is itself problematic.
22533    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22534  else
22535    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22536  fi
22537else
22538  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22539fi
22540need_lib_prefix=unknown
22541hardcode_into_libs=no
22542
22543# when you set need_version to no, make sure it does not cause -set_version
22544# flags to be left without arguments
22545need_version=unknown
22546
22547case $host_os in
22548aix3*)
22549  version_type=linux
22550  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22551  shlibpath_var=LIBPATH
22552
22553  # AIX 3 has no versioning support, so we append a major version to the name.
22554  soname_spec='${libname}${release}${shared_ext}$major'
22555  ;;
22556
22557aix4* | aix5*)
22558  version_type=linux
22559  need_lib_prefix=no
22560  need_version=no
22561  hardcode_into_libs=yes
22562  if test "$host_cpu" = ia64; then
22563    # AIX 5 supports IA64
22564    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22565    shlibpath_var=LD_LIBRARY_PATH
22566  else
22567    # With GCC up to 2.95.x, collect2 would create an import file
22568    # for dependence libraries.  The import file would start with
22569    # the line `#! .'.  This would cause the generated library to
22570    # depend on `.', always an invalid library.  This was fixed in
22571    # development snapshots of GCC prior to 3.0.
22572    case $host_os in
22573      aix4 | aix4.[01] | aix4.[01].*)
22574      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22575	   echo ' yes '
22576	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22577	:
22578      else
22579	can_build_shared=no
22580      fi
22581      ;;
22582    esac
22583    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22584    # soname into executable. Probably we can add versioning support to
22585    # collect2, so additional links can be useful in future.
22586    if test "$aix_use_runtimelinking" = yes; then
22587      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22588      # instead of lib<name>.a to let people know that these are not
22589      # typical AIX shared libraries.
22590      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591    else
22592      # We preserve .a as extension for shared libraries through AIX4.2
22593      # and later when we are not doing run time linking.
22594      library_names_spec='${libname}${release}.a $libname.a'
22595      soname_spec='${libname}${release}${shared_ext}$major'
22596    fi
22597    shlibpath_var=LIBPATH
22598  fi
22599  ;;
22600
22601amigaos*)
22602  library_names_spec='$libname.ixlibrary $libname.a'
22603  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22604  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'
22605  ;;
22606
22607beos*)
22608  library_names_spec='${libname}${shared_ext}'
22609  dynamic_linker="$host_os ld.so"
22610  shlibpath_var=LIBRARY_PATH
22611  ;;
22612
22613bsdi[45]*)
22614  version_type=linux
22615  need_version=no
22616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22617  soname_spec='${libname}${release}${shared_ext}$major'
22618  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22619  shlibpath_var=LD_LIBRARY_PATH
22620  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22621  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22622  # the default ld.so.conf also contains /usr/contrib/lib and
22623  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22624  # libtool to hard-code these into programs
22625  ;;
22626
22627cygwin* | mingw* | pw32*)
22628  version_type=windows
22629  shrext_cmds=".dll"
22630  need_version=no
22631  need_lib_prefix=no
22632
22633  case $GCC,$host_os in
22634  yes,cygwin* | yes,mingw* | yes,pw32*)
22635    library_names_spec='$libname.dll.a'
22636    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22637    postinstall_cmds='base_file=`basename \${file}`~
22638      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22639      dldir=$destdir/`dirname \$dlpath`~
22640      test -d \$dldir || mkdir -p \$dldir~
22641      $install_prog $dir/$dlname \$dldir/$dlname'
22642    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22643      dlpath=$dir/\$dldll~
22644       $rm \$dlpath'
22645    shlibpath_overrides_runpath=yes
22646
22647    case $host_os in
22648    cygwin*)
22649      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22650      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22651      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22652      ;;
22653    mingw*)
22654      # MinGW DLLs use traditional 'lib' prefix
22655      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22656      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22657      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22658        # It is most probably a Windows format PATH printed by
22659        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22660        # path with ; separators, and with drive letters. We can handle the
22661        # drive letters (cygwin fileutils understands them), so leave them,
22662        # especially as we might pass files found there to a mingw objdump,
22663        # which wouldn't understand a cygwinified path. Ahh.
22664        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22665      else
22666        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22667      fi
22668      ;;
22669    pw32*)
22670      # pw32 DLLs use 'pw' prefix rather than 'lib'
22671      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22672      ;;
22673    esac
22674    ;;
22675
22676  *)
22677    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22678    ;;
22679  esac
22680  dynamic_linker='Win32 ld.exe'
22681  # FIXME: first we should search . and the directory the executable is in
22682  shlibpath_var=PATH
22683  ;;
22684
22685darwin* | rhapsody*)
22686  dynamic_linker="$host_os dyld"
22687  version_type=darwin
22688  need_lib_prefix=no
22689  need_version=no
22690  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22691  soname_spec='${libname}${release}${major}$shared_ext'
22692  shlibpath_overrides_runpath=yes
22693  shlibpath_var=DYLD_LIBRARY_PATH
22694  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22695  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22696  if test "$GCC" = yes; then
22697    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"`
22698  else
22699    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22700  fi
22701  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22702  ;;
22703
22704dgux*)
22705  version_type=linux
22706  need_lib_prefix=no
22707  need_version=no
22708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22709  soname_spec='${libname}${release}${shared_ext}$major'
22710  shlibpath_var=LD_LIBRARY_PATH
22711  ;;
22712
22713freebsd1*)
22714  dynamic_linker=no
22715  ;;
22716
22717kfreebsd*-gnu)
22718  version_type=linux
22719  need_lib_prefix=no
22720  need_version=no
22721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22722  soname_spec='${libname}${release}${shared_ext}$major'
22723  shlibpath_var=LD_LIBRARY_PATH
22724  shlibpath_overrides_runpath=no
22725  hardcode_into_libs=yes
22726  dynamic_linker='GNU ld.so'
22727  ;;
22728
22729freebsd*)
22730  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22731  version_type=freebsd-$objformat
22732  case $version_type in
22733    freebsd-elf*)
22734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22735      need_version=no
22736      need_lib_prefix=no
22737      ;;
22738    freebsd-*)
22739      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22740      need_version=yes
22741      ;;
22742  esac
22743  shlibpath_var=LD_LIBRARY_PATH
22744  case $host_os in
22745  freebsd2*)
22746    shlibpath_overrides_runpath=yes
22747    ;;
22748  freebsd3.01* | freebsdelf3.01*)
22749    shlibpath_overrides_runpath=yes
22750    hardcode_into_libs=yes
22751    ;;
22752  *) # from 3.2 on
22753    shlibpath_overrides_runpath=no
22754    hardcode_into_libs=yes
22755    ;;
22756  esac
22757  ;;
22758
22759gnu*)
22760  version_type=linux
22761  need_lib_prefix=no
22762  need_version=no
22763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22764  soname_spec='${libname}${release}${shared_ext}$major'
22765  shlibpath_var=LD_LIBRARY_PATH
22766  hardcode_into_libs=yes
22767  ;;
22768
22769hpux9* | hpux10* | hpux11*)
22770  # Give a soname corresponding to the major version so that dld.sl refuses to
22771  # link against other versions.
22772  version_type=sunos
22773  need_lib_prefix=no
22774  need_version=no
22775  case "$host_cpu" in
22776  ia64*)
22777    shrext_cmds='.so'
22778    hardcode_into_libs=yes
22779    dynamic_linker="$host_os dld.so"
22780    shlibpath_var=LD_LIBRARY_PATH
22781    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783    soname_spec='${libname}${release}${shared_ext}$major'
22784    if test "X$HPUX_IA64_MODE" = X32; then
22785      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22786    else
22787      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22788    fi
22789    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22790    ;;
22791   hppa*64*)
22792     shrext_cmds='.sl'
22793     hardcode_into_libs=yes
22794     dynamic_linker="$host_os dld.sl"
22795     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22796     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22798     soname_spec='${libname}${release}${shared_ext}$major'
22799     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22800     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22801     ;;
22802   *)
22803    shrext_cmds='.sl'
22804    dynamic_linker="$host_os dld.sl"
22805    shlibpath_var=SHLIB_PATH
22806    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808    soname_spec='${libname}${release}${shared_ext}$major'
22809    ;;
22810  esac
22811  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22812  postinstall_cmds='chmod 555 $lib'
22813  ;;
22814
22815irix5* | irix6* | nonstopux*)
22816  case $host_os in
22817    nonstopux*) version_type=nonstopux ;;
22818    *)
22819	if test "$lt_cv_prog_gnu_ld" = yes; then
22820		version_type=linux
22821	else
22822		version_type=irix
22823	fi ;;
22824  esac
22825  need_lib_prefix=no
22826  need_version=no
22827  soname_spec='${libname}${release}${shared_ext}$major'
22828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22829  case $host_os in
22830  irix5* | nonstopux*)
22831    libsuff= shlibsuff=
22832    ;;
22833  *)
22834    case $LD in # libtool.m4 will add one of these switches to LD
22835    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22836      libsuff= shlibsuff= libmagic=32-bit;;
22837    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22838      libsuff=32 shlibsuff=N32 libmagic=N32;;
22839    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22840      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22841    *) libsuff= shlibsuff= libmagic=never-match;;
22842    esac
22843    ;;
22844  esac
22845  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22846  shlibpath_overrides_runpath=no
22847  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22848  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22849  hardcode_into_libs=yes
22850  ;;
22851
22852# No shared lib support for Linux oldld, aout, or coff.
22853linux*oldld* | linux*aout* | linux*coff*)
22854  dynamic_linker=no
22855  ;;
22856
22857# This must be Linux ELF.
22858linux*)
22859  version_type=linux
22860  need_lib_prefix=no
22861  need_version=no
22862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863  soname_spec='${libname}${release}${shared_ext}$major'
22864  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22865  shlibpath_var=LD_LIBRARY_PATH
22866  shlibpath_overrides_runpath=no
22867  # This implies no fast_install, which is unacceptable.
22868  # Some rework will be needed to allow for fast_install
22869  # before this can be enabled.
22870  hardcode_into_libs=yes
22871
22872  # Append ld.so.conf contents to the search path
22873  if test -f /etc/ld.so.conf; then
22874    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22875    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22876  fi
22877
22878  # We used to test for /lib/ld.so.1 and disable shared libraries on
22879  # powerpc, because MkLinux only supported shared libraries with the
22880  # GNU dynamic linker.  Since this was broken with cross compilers,
22881  # most powerpc-linux boxes support dynamic linking these days and
22882  # people can always --disable-shared, the test was removed, and we
22883  # assume the GNU/Linux dynamic linker is in use.
22884  dynamic_linker='GNU/Linux ld.so'
22885  ;;
22886
22887knetbsd*-gnu)
22888  version_type=linux
22889  need_lib_prefix=no
22890  need_version=no
22891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22892  soname_spec='${libname}${release}${shared_ext}$major'
22893  shlibpath_var=LD_LIBRARY_PATH
22894  shlibpath_overrides_runpath=no
22895  hardcode_into_libs=yes
22896  dynamic_linker='GNU ld.so'
22897  ;;
22898
22899netbsd*)
22900  version_type=sunos
22901  need_lib_prefix=no
22902  need_version=no
22903  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22904    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22905    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22906    dynamic_linker='NetBSD (a.out) ld.so'
22907  else
22908    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22909    soname_spec='${libname}${release}${shared_ext}$major'
22910    dynamic_linker='NetBSD ld.elf_so'
22911  fi
22912  shlibpath_var=LD_LIBRARY_PATH
22913  shlibpath_overrides_runpath=yes
22914  hardcode_into_libs=yes
22915  ;;
22916
22917newsos6)
22918  version_type=linux
22919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22920  shlibpath_var=LD_LIBRARY_PATH
22921  shlibpath_overrides_runpath=yes
22922  ;;
22923
22924nto-qnx*)
22925  version_type=linux
22926  need_lib_prefix=no
22927  need_version=no
22928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929  soname_spec='${libname}${release}${shared_ext}$major'
22930  shlibpath_var=LD_LIBRARY_PATH
22931  shlibpath_overrides_runpath=yes
22932  ;;
22933
22934openbsd*)
22935  version_type=sunos
22936  need_lib_prefix=no
22937  need_version=no
22938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22939  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22940  shlibpath_var=LD_LIBRARY_PATH
22941  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22942    case $host_os in
22943      openbsd2.[89] | openbsd2.[89].*)
22944	shlibpath_overrides_runpath=no
22945	;;
22946      *)
22947	shlibpath_overrides_runpath=yes
22948	;;
22949      esac
22950  else
22951    shlibpath_overrides_runpath=yes
22952  fi
22953  ;;
22954
22955os2*)
22956  libname_spec='$name'
22957  shrext_cmds=".dll"
22958  need_lib_prefix=no
22959  library_names_spec='$libname${shared_ext} $libname.a'
22960  dynamic_linker='OS/2 ld.exe'
22961  shlibpath_var=LIBPATH
22962  ;;
22963
22964osf3* | osf4* | osf5*)
22965  version_type=osf
22966  need_lib_prefix=no
22967  need_version=no
22968  soname_spec='${libname}${release}${shared_ext}$major'
22969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22970  shlibpath_var=LD_LIBRARY_PATH
22971  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22972  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22973  ;;
22974
22975sco3.2v5*)
22976  version_type=osf
22977  soname_spec='${libname}${release}${shared_ext}$major'
22978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22979  shlibpath_var=LD_LIBRARY_PATH
22980  ;;
22981
22982solaris*)
22983  version_type=linux
22984  need_lib_prefix=no
22985  need_version=no
22986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987  soname_spec='${libname}${release}${shared_ext}$major'
22988  shlibpath_var=LD_LIBRARY_PATH
22989  shlibpath_overrides_runpath=yes
22990  hardcode_into_libs=yes
22991  # ldd complains unless libraries are executable
22992  postinstall_cmds='chmod +x $lib'
22993  ;;
22994
22995sunos4*)
22996  version_type=sunos
22997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22998  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22999  shlibpath_var=LD_LIBRARY_PATH
23000  shlibpath_overrides_runpath=yes
23001  if test "$with_gnu_ld" = yes; then
23002    need_lib_prefix=no
23003  fi
23004  need_version=yes
23005  ;;
23006
23007sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23008  version_type=linux
23009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23010  soname_spec='${libname}${release}${shared_ext}$major'
23011  shlibpath_var=LD_LIBRARY_PATH
23012  case $host_vendor in
23013    sni)
23014      shlibpath_overrides_runpath=no
23015      need_lib_prefix=no
23016      export_dynamic_flag_spec='${wl}-Blargedynsym'
23017      runpath_var=LD_RUN_PATH
23018      ;;
23019    siemens)
23020      need_lib_prefix=no
23021      ;;
23022    motorola)
23023      need_lib_prefix=no
23024      need_version=no
23025      shlibpath_overrides_runpath=no
23026      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23027      ;;
23028  esac
23029  ;;
23030
23031sysv4*MP*)
23032  if test -d /usr/nec ;then
23033    version_type=linux
23034    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23035    soname_spec='$libname${shared_ext}.$major'
23036    shlibpath_var=LD_LIBRARY_PATH
23037  fi
23038  ;;
23039
23040uts4*)
23041  version_type=linux
23042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23043  soname_spec='${libname}${release}${shared_ext}$major'
23044  shlibpath_var=LD_LIBRARY_PATH
23045  ;;
23046
23047*)
23048  dynamic_linker=no
23049  ;;
23050esac
23051echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23052echo "${ECHO_T}$dynamic_linker" >&6
23053test "$dynamic_linker" = no && can_build_shared=no
23054
23055echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23056echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23057hardcode_action_GCJ=
23058if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23059   test -n "$runpath_var_GCJ" || \
23060   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23061
23062  # We can hardcode non-existant directories.
23063  if test "$hardcode_direct_GCJ" != no &&
23064     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23065     # have to relink, otherwise we might link with an installed library
23066     # when we should be linking with a yet-to-be-installed one
23067     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23068     test "$hardcode_minus_L_GCJ" != no; then
23069    # Linking always hardcodes the temporary library directory.
23070    hardcode_action_GCJ=relink
23071  else
23072    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23073    hardcode_action_GCJ=immediate
23074  fi
23075else
23076  # We cannot hardcode anything, or else we can only hardcode existing
23077  # directories.
23078  hardcode_action_GCJ=unsupported
23079fi
23080echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23081echo "${ECHO_T}$hardcode_action_GCJ" >&6
23082
23083if test "$hardcode_action_GCJ" = relink; then
23084  # Fast installation is not supported
23085  enable_fast_install=no
23086elif test "$shlibpath_overrides_runpath" = yes ||
23087     test "$enable_shared" = no; then
23088  # Fast installation is not necessary
23089  enable_fast_install=needless
23090fi
23091
23092striplib=
23093old_striplib=
23094echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23095echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23096if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23097  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23098  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23099  echo "$as_me:$LINENO: result: yes" >&5
23100echo "${ECHO_T}yes" >&6
23101else
23102# FIXME - insert some real tests, host_os isn't really good enough
23103  case $host_os in
23104   darwin*)
23105       if test -n "$STRIP" ; then
23106         striplib="$STRIP -x"
23107         echo "$as_me:$LINENO: result: yes" >&5
23108echo "${ECHO_T}yes" >&6
23109       else
23110  echo "$as_me:$LINENO: result: no" >&5
23111echo "${ECHO_T}no" >&6
23112fi
23113       ;;
23114   *)
23115  echo "$as_me:$LINENO: result: no" >&5
23116echo "${ECHO_T}no" >&6
23117    ;;
23118  esac
23119fi
23120
23121if test "x$enable_dlopen" != xyes; then
23122  enable_dlopen=unknown
23123  enable_dlopen_self=unknown
23124  enable_dlopen_self_static=unknown
23125else
23126  lt_cv_dlopen=no
23127  lt_cv_dlopen_libs=
23128
23129  case $host_os in
23130  beos*)
23131    lt_cv_dlopen="load_add_on"
23132    lt_cv_dlopen_libs=
23133    lt_cv_dlopen_self=yes
23134    ;;
23135
23136  mingw* | pw32*)
23137    lt_cv_dlopen="LoadLibrary"
23138    lt_cv_dlopen_libs=
23139   ;;
23140
23141  cygwin*)
23142    lt_cv_dlopen="dlopen"
23143    lt_cv_dlopen_libs=
23144   ;;
23145
23146  darwin*)
23147  # if libdl is installed we need to link against it
23148    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23149echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23150if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23151  echo $ECHO_N "(cached) $ECHO_C" >&6
23152else
23153  ac_check_lib_save_LIBS=$LIBS
23154LIBS="-ldl  $LIBS"
23155cat >conftest.$ac_ext <<_ACEOF
23156/* confdefs.h.  */
23157_ACEOF
23158cat confdefs.h >>conftest.$ac_ext
23159cat >>conftest.$ac_ext <<_ACEOF
23160/* end confdefs.h.  */
23161
23162/* Override any gcc2 internal prototype to avoid an error.  */
23163#ifdef __cplusplus
23164extern "C"
23165#endif
23166/* We use char because int might match the return type of a gcc2
23167   builtin and then its argument prototype would still apply.  */
23168char dlopen ();
23169int
23170main ()
23171{
23172dlopen ();
23173  ;
23174  return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext conftest$ac_exeext
23178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23179  (eval $ac_link) 2>conftest.er1
23180  ac_status=$?
23181  grep -v '^ *+' conftest.er1 >conftest.err
23182  rm -f conftest.er1
23183  cat conftest.err >&5
23184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185  (exit $ac_status); } &&
23186	 { ac_try='test -z "$ac_c_werror_flag"
23187			 || test ! -s conftest.err'
23188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189  (eval $ac_try) 2>&5
23190  ac_status=$?
23191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192  (exit $ac_status); }; } &&
23193	 { ac_try='test -s conftest$ac_exeext'
23194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195  (eval $ac_try) 2>&5
23196  ac_status=$?
23197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198  (exit $ac_status); }; }; then
23199  ac_cv_lib_dl_dlopen=yes
23200else
23201  echo "$as_me: failed program was:" >&5
23202sed 's/^/| /' conftest.$ac_ext >&5
23203
23204ac_cv_lib_dl_dlopen=no
23205fi
23206rm -f conftest.err conftest.$ac_objext \
23207      conftest$ac_exeext conftest.$ac_ext
23208LIBS=$ac_check_lib_save_LIBS
23209fi
23210echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23211echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23212if test $ac_cv_lib_dl_dlopen = yes; then
23213  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23214else
23215
23216    lt_cv_dlopen="dyld"
23217    lt_cv_dlopen_libs=
23218    lt_cv_dlopen_self=yes
23219
23220fi
23221
23222   ;;
23223
23224  *)
23225    echo "$as_me:$LINENO: checking for shl_load" >&5
23226echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23227if test "${ac_cv_func_shl_load+set}" = set; then
23228  echo $ECHO_N "(cached) $ECHO_C" >&6
23229else
23230  cat >conftest.$ac_ext <<_ACEOF
23231/* confdefs.h.  */
23232_ACEOF
23233cat confdefs.h >>conftest.$ac_ext
23234cat >>conftest.$ac_ext <<_ACEOF
23235/* end confdefs.h.  */
23236/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23237   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23238#define shl_load innocuous_shl_load
23239
23240/* System header to define __stub macros and hopefully few prototypes,
23241    which can conflict with char shl_load (); below.
23242    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243    <limits.h> exists even on freestanding compilers.  */
23244
23245#ifdef __STDC__
23246# include <limits.h>
23247#else
23248# include <assert.h>
23249#endif
23250
23251#undef shl_load
23252
23253/* Override any gcc2 internal prototype to avoid an error.  */
23254#ifdef __cplusplus
23255extern "C"
23256{
23257#endif
23258/* We use char because int might match the return type of a gcc2
23259   builtin and then its argument prototype would still apply.  */
23260char shl_load ();
23261/* The GNU C library defines this for functions which it implements
23262    to always fail with ENOSYS.  Some functions are actually named
23263    something starting with __ and the normal name is an alias.  */
23264#if defined (__stub_shl_load) || defined (__stub___shl_load)
23265choke me
23266#else
23267char (*f) () = shl_load;
23268#endif
23269#ifdef __cplusplus
23270}
23271#endif
23272
23273int
23274main ()
23275{
23276return f != shl_load;
23277  ;
23278  return 0;
23279}
23280_ACEOF
23281rm -f conftest.$ac_objext conftest$ac_exeext
23282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283  (eval $ac_link) 2>conftest.er1
23284  ac_status=$?
23285  grep -v '^ *+' conftest.er1 >conftest.err
23286  rm -f conftest.er1
23287  cat conftest.err >&5
23288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289  (exit $ac_status); } &&
23290	 { ac_try='test -z "$ac_c_werror_flag"
23291			 || test ! -s conftest.err'
23292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293  (eval $ac_try) 2>&5
23294  ac_status=$?
23295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296  (exit $ac_status); }; } &&
23297	 { ac_try='test -s conftest$ac_exeext'
23298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299  (eval $ac_try) 2>&5
23300  ac_status=$?
23301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302  (exit $ac_status); }; }; then
23303  ac_cv_func_shl_load=yes
23304else
23305  echo "$as_me: failed program was:" >&5
23306sed 's/^/| /' conftest.$ac_ext >&5
23307
23308ac_cv_func_shl_load=no
23309fi
23310rm -f conftest.err conftest.$ac_objext \
23311      conftest$ac_exeext conftest.$ac_ext
23312fi
23313echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23314echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23315if test $ac_cv_func_shl_load = yes; then
23316  lt_cv_dlopen="shl_load"
23317else
23318  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23319echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23320if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23321  echo $ECHO_N "(cached) $ECHO_C" >&6
23322else
23323  ac_check_lib_save_LIBS=$LIBS
23324LIBS="-ldld  $LIBS"
23325cat >conftest.$ac_ext <<_ACEOF
23326/* confdefs.h.  */
23327_ACEOF
23328cat confdefs.h >>conftest.$ac_ext
23329cat >>conftest.$ac_ext <<_ACEOF
23330/* end confdefs.h.  */
23331
23332/* Override any gcc2 internal prototype to avoid an error.  */
23333#ifdef __cplusplus
23334extern "C"
23335#endif
23336/* We use char because int might match the return type of a gcc2
23337   builtin and then its argument prototype would still apply.  */
23338char shl_load ();
23339int
23340main ()
23341{
23342shl_load ();
23343  ;
23344  return 0;
23345}
23346_ACEOF
23347rm -f conftest.$ac_objext conftest$ac_exeext
23348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349  (eval $ac_link) 2>conftest.er1
23350  ac_status=$?
23351  grep -v '^ *+' conftest.er1 >conftest.err
23352  rm -f conftest.er1
23353  cat conftest.err >&5
23354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355  (exit $ac_status); } &&
23356	 { ac_try='test -z "$ac_c_werror_flag"
23357			 || test ! -s conftest.err'
23358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359  (eval $ac_try) 2>&5
23360  ac_status=$?
23361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362  (exit $ac_status); }; } &&
23363	 { ac_try='test -s conftest$ac_exeext'
23364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365  (eval $ac_try) 2>&5
23366  ac_status=$?
23367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368  (exit $ac_status); }; }; then
23369  ac_cv_lib_dld_shl_load=yes
23370else
23371  echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374ac_cv_lib_dld_shl_load=no
23375fi
23376rm -f conftest.err conftest.$ac_objext \
23377      conftest$ac_exeext conftest.$ac_ext
23378LIBS=$ac_check_lib_save_LIBS
23379fi
23380echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23381echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23382if test $ac_cv_lib_dld_shl_load = yes; then
23383  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23384else
23385  echo "$as_me:$LINENO: checking for dlopen" >&5
23386echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23387if test "${ac_cv_func_dlopen+set}" = set; then
23388  echo $ECHO_N "(cached) $ECHO_C" >&6
23389else
23390  cat >conftest.$ac_ext <<_ACEOF
23391/* confdefs.h.  */
23392_ACEOF
23393cat confdefs.h >>conftest.$ac_ext
23394cat >>conftest.$ac_ext <<_ACEOF
23395/* end confdefs.h.  */
23396/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23398#define dlopen innocuous_dlopen
23399
23400/* System header to define __stub macros and hopefully few prototypes,
23401    which can conflict with char dlopen (); below.
23402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403    <limits.h> exists even on freestanding compilers.  */
23404
23405#ifdef __STDC__
23406# include <limits.h>
23407#else
23408# include <assert.h>
23409#endif
23410
23411#undef dlopen
23412
23413/* Override any gcc2 internal prototype to avoid an error.  */
23414#ifdef __cplusplus
23415extern "C"
23416{
23417#endif
23418/* We use char because int might match the return type of a gcc2
23419   builtin and then its argument prototype would still apply.  */
23420char dlopen ();
23421/* The GNU C library defines this for functions which it implements
23422    to always fail with ENOSYS.  Some functions are actually named
23423    something starting with __ and the normal name is an alias.  */
23424#if defined (__stub_dlopen) || defined (__stub___dlopen)
23425choke me
23426#else
23427char (*f) () = dlopen;
23428#endif
23429#ifdef __cplusplus
23430}
23431#endif
23432
23433int
23434main ()
23435{
23436return f != dlopen;
23437  ;
23438  return 0;
23439}
23440_ACEOF
23441rm -f conftest.$ac_objext conftest$ac_exeext
23442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23443  (eval $ac_link) 2>conftest.er1
23444  ac_status=$?
23445  grep -v '^ *+' conftest.er1 >conftest.err
23446  rm -f conftest.er1
23447  cat conftest.err >&5
23448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449  (exit $ac_status); } &&
23450	 { ac_try='test -z "$ac_c_werror_flag"
23451			 || test ! -s conftest.err'
23452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453  (eval $ac_try) 2>&5
23454  ac_status=$?
23455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456  (exit $ac_status); }; } &&
23457	 { ac_try='test -s conftest$ac_exeext'
23458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459  (eval $ac_try) 2>&5
23460  ac_status=$?
23461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462  (exit $ac_status); }; }; then
23463  ac_cv_func_dlopen=yes
23464else
23465  echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468ac_cv_func_dlopen=no
23469fi
23470rm -f conftest.err conftest.$ac_objext \
23471      conftest$ac_exeext conftest.$ac_ext
23472fi
23473echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23474echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23475if test $ac_cv_func_dlopen = yes; then
23476  lt_cv_dlopen="dlopen"
23477else
23478  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23479echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23480if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23481  echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483  ac_check_lib_save_LIBS=$LIBS
23484LIBS="-ldl  $LIBS"
23485cat >conftest.$ac_ext <<_ACEOF
23486/* confdefs.h.  */
23487_ACEOF
23488cat confdefs.h >>conftest.$ac_ext
23489cat >>conftest.$ac_ext <<_ACEOF
23490/* end confdefs.h.  */
23491
23492/* Override any gcc2 internal prototype to avoid an error.  */
23493#ifdef __cplusplus
23494extern "C"
23495#endif
23496/* We use char because int might match the return type of a gcc2
23497   builtin and then its argument prototype would still apply.  */
23498char dlopen ();
23499int
23500main ()
23501{
23502dlopen ();
23503  ;
23504  return 0;
23505}
23506_ACEOF
23507rm -f conftest.$ac_objext conftest$ac_exeext
23508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23509  (eval $ac_link) 2>conftest.er1
23510  ac_status=$?
23511  grep -v '^ *+' conftest.er1 >conftest.err
23512  rm -f conftest.er1
23513  cat conftest.err >&5
23514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515  (exit $ac_status); } &&
23516	 { ac_try='test -z "$ac_c_werror_flag"
23517			 || test ! -s conftest.err'
23518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23519  (eval $ac_try) 2>&5
23520  ac_status=$?
23521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522  (exit $ac_status); }; } &&
23523	 { ac_try='test -s conftest$ac_exeext'
23524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525  (eval $ac_try) 2>&5
23526  ac_status=$?
23527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528  (exit $ac_status); }; }; then
23529  ac_cv_lib_dl_dlopen=yes
23530else
23531  echo "$as_me: failed program was:" >&5
23532sed 's/^/| /' conftest.$ac_ext >&5
23533
23534ac_cv_lib_dl_dlopen=no
23535fi
23536rm -f conftest.err conftest.$ac_objext \
23537      conftest$ac_exeext conftest.$ac_ext
23538LIBS=$ac_check_lib_save_LIBS
23539fi
23540echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23541echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23542if test $ac_cv_lib_dl_dlopen = yes; then
23543  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23544else
23545  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23546echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23547if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23548  echo $ECHO_N "(cached) $ECHO_C" >&6
23549else
23550  ac_check_lib_save_LIBS=$LIBS
23551LIBS="-lsvld  $LIBS"
23552cat >conftest.$ac_ext <<_ACEOF
23553/* confdefs.h.  */
23554_ACEOF
23555cat confdefs.h >>conftest.$ac_ext
23556cat >>conftest.$ac_ext <<_ACEOF
23557/* end confdefs.h.  */
23558
23559/* Override any gcc2 internal prototype to avoid an error.  */
23560#ifdef __cplusplus
23561extern "C"
23562#endif
23563/* We use char because int might match the return type of a gcc2
23564   builtin and then its argument prototype would still apply.  */
23565char dlopen ();
23566int
23567main ()
23568{
23569dlopen ();
23570  ;
23571  return 0;
23572}
23573_ACEOF
23574rm -f conftest.$ac_objext conftest$ac_exeext
23575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23576  (eval $ac_link) 2>conftest.er1
23577  ac_status=$?
23578  grep -v '^ *+' conftest.er1 >conftest.err
23579  rm -f conftest.er1
23580  cat conftest.err >&5
23581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582  (exit $ac_status); } &&
23583	 { ac_try='test -z "$ac_c_werror_flag"
23584			 || test ! -s conftest.err'
23585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586  (eval $ac_try) 2>&5
23587  ac_status=$?
23588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589  (exit $ac_status); }; } &&
23590	 { ac_try='test -s conftest$ac_exeext'
23591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592  (eval $ac_try) 2>&5
23593  ac_status=$?
23594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595  (exit $ac_status); }; }; then
23596  ac_cv_lib_svld_dlopen=yes
23597else
23598  echo "$as_me: failed program was:" >&5
23599sed 's/^/| /' conftest.$ac_ext >&5
23600
23601ac_cv_lib_svld_dlopen=no
23602fi
23603rm -f conftest.err conftest.$ac_objext \
23604      conftest$ac_exeext conftest.$ac_ext
23605LIBS=$ac_check_lib_save_LIBS
23606fi
23607echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23608echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23609if test $ac_cv_lib_svld_dlopen = yes; then
23610  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23611else
23612  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23613echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23614if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23615  echo $ECHO_N "(cached) $ECHO_C" >&6
23616else
23617  ac_check_lib_save_LIBS=$LIBS
23618LIBS="-ldld  $LIBS"
23619cat >conftest.$ac_ext <<_ACEOF
23620/* confdefs.h.  */
23621_ACEOF
23622cat confdefs.h >>conftest.$ac_ext
23623cat >>conftest.$ac_ext <<_ACEOF
23624/* end confdefs.h.  */
23625
23626/* Override any gcc2 internal prototype to avoid an error.  */
23627#ifdef __cplusplus
23628extern "C"
23629#endif
23630/* We use char because int might match the return type of a gcc2
23631   builtin and then its argument prototype would still apply.  */
23632char dld_link ();
23633int
23634main ()
23635{
23636dld_link ();
23637  ;
23638  return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext conftest$ac_exeext
23642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643  (eval $ac_link) 2>conftest.er1
23644  ac_status=$?
23645  grep -v '^ *+' conftest.er1 >conftest.err
23646  rm -f conftest.er1
23647  cat conftest.err >&5
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); } &&
23650	 { ac_try='test -z "$ac_c_werror_flag"
23651			 || test ! -s conftest.err'
23652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653  (eval $ac_try) 2>&5
23654  ac_status=$?
23655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656  (exit $ac_status); }; } &&
23657	 { ac_try='test -s conftest$ac_exeext'
23658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659  (eval $ac_try) 2>&5
23660  ac_status=$?
23661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662  (exit $ac_status); }; }; then
23663  ac_cv_lib_dld_dld_link=yes
23664else
23665  echo "$as_me: failed program was:" >&5
23666sed 's/^/| /' conftest.$ac_ext >&5
23667
23668ac_cv_lib_dld_dld_link=no
23669fi
23670rm -f conftest.err conftest.$ac_objext \
23671      conftest$ac_exeext conftest.$ac_ext
23672LIBS=$ac_check_lib_save_LIBS
23673fi
23674echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23675echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23676if test $ac_cv_lib_dld_dld_link = yes; then
23677  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23678fi
23679
23680
23681fi
23682
23683
23684fi
23685
23686
23687fi
23688
23689
23690fi
23691
23692
23693fi
23694
23695    ;;
23696  esac
23697
23698  if test "x$lt_cv_dlopen" != xno; then
23699    enable_dlopen=yes
23700  else
23701    enable_dlopen=no
23702  fi
23703
23704  case $lt_cv_dlopen in
23705  dlopen)
23706    save_CPPFLAGS="$CPPFLAGS"
23707    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23708
23709    save_LDFLAGS="$LDFLAGS"
23710    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23711
23712    save_LIBS="$LIBS"
23713    LIBS="$lt_cv_dlopen_libs $LIBS"
23714
23715    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23716echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23717if test "${lt_cv_dlopen_self+set}" = set; then
23718  echo $ECHO_N "(cached) $ECHO_C" >&6
23719else
23720  	  if test "$cross_compiling" = yes; then :
23721  lt_cv_dlopen_self=cross
23722else
23723  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23724  lt_status=$lt_dlunknown
23725  cat > conftest.$ac_ext <<EOF
23726#line 23726 "configure"
23727#include "confdefs.h"
23728
23729#if HAVE_DLFCN_H
23730#include <dlfcn.h>
23731#endif
23732
23733#include <stdio.h>
23734
23735#ifdef RTLD_GLOBAL
23736#  define LT_DLGLOBAL		RTLD_GLOBAL
23737#else
23738#  ifdef DL_GLOBAL
23739#    define LT_DLGLOBAL		DL_GLOBAL
23740#  else
23741#    define LT_DLGLOBAL		0
23742#  endif
23743#endif
23744
23745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23746   find out it does not work in some platform. */
23747#ifndef LT_DLLAZY_OR_NOW
23748#  ifdef RTLD_LAZY
23749#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23750#  else
23751#    ifdef DL_LAZY
23752#      define LT_DLLAZY_OR_NOW		DL_LAZY
23753#    else
23754#      ifdef RTLD_NOW
23755#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23756#      else
23757#        ifdef DL_NOW
23758#          define LT_DLLAZY_OR_NOW	DL_NOW
23759#        else
23760#          define LT_DLLAZY_OR_NOW	0
23761#        endif
23762#      endif
23763#    endif
23764#  endif
23765#endif
23766
23767#ifdef __cplusplus
23768extern "C" void exit (int);
23769#endif
23770
23771void fnord() { int i=42;}
23772int main ()
23773{
23774  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23775  int status = $lt_dlunknown;
23776
23777  if (self)
23778    {
23779      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23780      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23781      /* dlclose (self); */
23782    }
23783
23784    exit (status);
23785}
23786EOF
23787  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23788  (eval $ac_link) 2>&5
23789  ac_status=$?
23790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23792    (./conftest; exit; ) 2>/dev/null
23793    lt_status=$?
23794    case x$lt_status in
23795      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23796      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23797      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23798    esac
23799  else :
23800    # compilation failed
23801    lt_cv_dlopen_self=no
23802  fi
23803fi
23804rm -fr conftest*
23805
23806
23807fi
23808echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23809echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23810
23811    if test "x$lt_cv_dlopen_self" = xyes; then
23812      LDFLAGS="$LDFLAGS $link_static_flag"
23813      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23814echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23815if test "${lt_cv_dlopen_self_static+set}" = set; then
23816  echo $ECHO_N "(cached) $ECHO_C" >&6
23817else
23818  	  if test "$cross_compiling" = yes; then :
23819  lt_cv_dlopen_self_static=cross
23820else
23821  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23822  lt_status=$lt_dlunknown
23823  cat > conftest.$ac_ext <<EOF
23824#line 23824 "configure"
23825#include "confdefs.h"
23826
23827#if HAVE_DLFCN_H
23828#include <dlfcn.h>
23829#endif
23830
23831#include <stdio.h>
23832
23833#ifdef RTLD_GLOBAL
23834#  define LT_DLGLOBAL		RTLD_GLOBAL
23835#else
23836#  ifdef DL_GLOBAL
23837#    define LT_DLGLOBAL		DL_GLOBAL
23838#  else
23839#    define LT_DLGLOBAL		0
23840#  endif
23841#endif
23842
23843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23844   find out it does not work in some platform. */
23845#ifndef LT_DLLAZY_OR_NOW
23846#  ifdef RTLD_LAZY
23847#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23848#  else
23849#    ifdef DL_LAZY
23850#      define LT_DLLAZY_OR_NOW		DL_LAZY
23851#    else
23852#      ifdef RTLD_NOW
23853#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23854#      else
23855#        ifdef DL_NOW
23856#          define LT_DLLAZY_OR_NOW	DL_NOW
23857#        else
23858#          define LT_DLLAZY_OR_NOW	0
23859#        endif
23860#      endif
23861#    endif
23862#  endif
23863#endif
23864
23865#ifdef __cplusplus
23866extern "C" void exit (int);
23867#endif
23868
23869void fnord() { int i=42;}
23870int main ()
23871{
23872  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23873  int status = $lt_dlunknown;
23874
23875  if (self)
23876    {
23877      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23878      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23879      /* dlclose (self); */
23880    }
23881
23882    exit (status);
23883}
23884EOF
23885  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23886  (eval $ac_link) 2>&5
23887  ac_status=$?
23888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23890    (./conftest; exit; ) 2>/dev/null
23891    lt_status=$?
23892    case x$lt_status in
23893      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23894      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23895      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23896    esac
23897  else :
23898    # compilation failed
23899    lt_cv_dlopen_self_static=no
23900  fi
23901fi
23902rm -fr conftest*
23903
23904
23905fi
23906echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23907echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23908    fi
23909
23910    CPPFLAGS="$save_CPPFLAGS"
23911    LDFLAGS="$save_LDFLAGS"
23912    LIBS="$save_LIBS"
23913    ;;
23914  esac
23915
23916  case $lt_cv_dlopen_self in
23917  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23918  *) enable_dlopen_self=unknown ;;
23919  esac
23920
23921  case $lt_cv_dlopen_self_static in
23922  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23923  *) enable_dlopen_self_static=unknown ;;
23924  esac
23925fi
23926
23927
23928# The else clause should only fire when bootstrapping the
23929# libtool distribution, otherwise you forgot to ship ltmain.sh
23930# with your package, and you will get complaints that there are
23931# no rules to generate ltmain.sh.
23932if test -f "$ltmain"; then
23933  # See if we are running on zsh, and set the options which allow our commands through
23934  # without removal of \ escapes.
23935  if test -n "${ZSH_VERSION+set}" ; then
23936    setopt NO_GLOB_SUBST
23937  fi
23938  # Now quote all the things that may contain metacharacters while being
23939  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23940  # variables and quote the copies for generation of the libtool script.
23941  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23942    SED SHELL STRIP \
23943    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23944    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23945    deplibs_check_method reload_flag reload_cmds need_locks \
23946    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23947    lt_cv_sys_global_symbol_to_c_name_address \
23948    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23949    old_postinstall_cmds old_postuninstall_cmds \
23950    compiler_GCJ \
23951    CC_GCJ \
23952    LD_GCJ \
23953    lt_prog_compiler_wl_GCJ \
23954    lt_prog_compiler_pic_GCJ \
23955    lt_prog_compiler_static_GCJ \
23956    lt_prog_compiler_no_builtin_flag_GCJ \
23957    export_dynamic_flag_spec_GCJ \
23958    thread_safe_flag_spec_GCJ \
23959    whole_archive_flag_spec_GCJ \
23960    enable_shared_with_static_runtimes_GCJ \
23961    old_archive_cmds_GCJ \
23962    old_archive_from_new_cmds_GCJ \
23963    predep_objects_GCJ \
23964    postdep_objects_GCJ \
23965    predeps_GCJ \
23966    postdeps_GCJ \
23967    compiler_lib_search_path_GCJ \
23968    archive_cmds_GCJ \
23969    archive_expsym_cmds_GCJ \
23970    postinstall_cmds_GCJ \
23971    postuninstall_cmds_GCJ \
23972    old_archive_from_expsyms_cmds_GCJ \
23973    allow_undefined_flag_GCJ \
23974    no_undefined_flag_GCJ \
23975    export_symbols_cmds_GCJ \
23976    hardcode_libdir_flag_spec_GCJ \
23977    hardcode_libdir_flag_spec_ld_GCJ \
23978    hardcode_libdir_separator_GCJ \
23979    hardcode_automatic_GCJ \
23980    module_cmds_GCJ \
23981    module_expsym_cmds_GCJ \
23982    lt_cv_prog_compiler_c_o_GCJ \
23983    exclude_expsyms_GCJ \
23984    include_expsyms_GCJ; do
23985
23986    case $var in
23987    old_archive_cmds_GCJ | \
23988    old_archive_from_new_cmds_GCJ | \
23989    archive_cmds_GCJ | \
23990    archive_expsym_cmds_GCJ | \
23991    module_cmds_GCJ | \
23992    module_expsym_cmds_GCJ | \
23993    old_archive_from_expsyms_cmds_GCJ | \
23994    export_symbols_cmds_GCJ | \
23995    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23996    postinstall_cmds | postuninstall_cmds | \
23997    old_postinstall_cmds | old_postuninstall_cmds | \
23998    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23999      # Double-quote double-evaled strings.
24000      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24001      ;;
24002    *)
24003      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24004      ;;
24005    esac
24006  done
24007
24008  case $lt_echo in
24009  *'\$0 --fallback-echo"')
24010    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24011    ;;
24012  esac
24013
24014cfgfile="$ofile"
24015
24016  cat <<__EOF__ >> "$cfgfile"
24017# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24018
24019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24020
24021# Shell to use when invoking shell scripts.
24022SHELL=$lt_SHELL
24023
24024# Whether or not to build shared libraries.
24025build_libtool_libs=$enable_shared
24026
24027# Whether or not to build static libraries.
24028build_old_libs=$enable_static
24029
24030# Whether or not to add -lc for building shared libraries.
24031build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24032
24033# Whether or not to disallow shared libs when runtime libs are static
24034allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24035
24036# Whether or not to optimize for fast installation.
24037fast_install=$enable_fast_install
24038
24039# The host system.
24040host_alias=$host_alias
24041host=$host
24042
24043# An echo program that does not interpret backslashes.
24044echo=$lt_echo
24045
24046# The archiver.
24047AR=$lt_AR
24048AR_FLAGS=$lt_AR_FLAGS
24049
24050# A C compiler.
24051LTCC=$lt_LTCC
24052
24053# A language-specific compiler.
24054CC=$lt_compiler_GCJ
24055
24056# Is the compiler the GNU C compiler?
24057with_gcc=$GCC_GCJ
24058
24059# An ERE matcher.
24060EGREP=$lt_EGREP
24061
24062# The linker used to build libraries.
24063LD=$lt_LD_GCJ
24064
24065# Whether we need hard or soft links.
24066LN_S=$lt_LN_S
24067
24068# A BSD-compatible nm program.
24069NM=$lt_NM
24070
24071# A symbol stripping program
24072STRIP=$lt_STRIP
24073
24074# Used to examine libraries when file_magic_cmd begins "file"
24075MAGIC_CMD=$MAGIC_CMD
24076
24077# Used on cygwin: DLL creation program.
24078DLLTOOL="$DLLTOOL"
24079
24080# Used on cygwin: object dumper.
24081OBJDUMP="$OBJDUMP"
24082
24083# Used on cygwin: assembler.
24084AS="$AS"
24085
24086# The name of the directory that contains temporary libtool files.
24087objdir=$objdir
24088
24089# How to create reloadable object files.
24090reload_flag=$lt_reload_flag
24091reload_cmds=$lt_reload_cmds
24092
24093# How to pass a linker flag through the compiler.
24094wl=$lt_lt_prog_compiler_wl_GCJ
24095
24096# Object file suffix (normally "o").
24097objext="$ac_objext"
24098
24099# Old archive suffix (normally "a").
24100libext="$libext"
24101
24102# Shared library suffix (normally ".so").
24103shrext_cmds='$shrext_cmds'
24104
24105# Executable file suffix (normally "").
24106exeext="$exeext"
24107
24108# Additional compiler flags for building library objects.
24109pic_flag=$lt_lt_prog_compiler_pic_GCJ
24110pic_mode=$pic_mode
24111
24112# What is the maximum length of a command?
24113max_cmd_len=$lt_cv_sys_max_cmd_len
24114
24115# Does compiler simultaneously support -c and -o options?
24116compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24117
24118# Must we lock files when doing compilation ?
24119need_locks=$lt_need_locks
24120
24121# Do we need the lib prefix for modules?
24122need_lib_prefix=$need_lib_prefix
24123
24124# Do we need a version for libraries?
24125need_version=$need_version
24126
24127# Whether dlopen is supported.
24128dlopen_support=$enable_dlopen
24129
24130# Whether dlopen of programs is supported.
24131dlopen_self=$enable_dlopen_self
24132
24133# Whether dlopen of statically linked programs is supported.
24134dlopen_self_static=$enable_dlopen_self_static
24135
24136# Compiler flag to prevent dynamic linking.
24137link_static_flag=$lt_lt_prog_compiler_static_GCJ
24138
24139# Compiler flag to turn off builtin functions.
24140no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24141
24142# Compiler flag to allow reflexive dlopens.
24143export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24144
24145# Compiler flag to generate shared objects directly from archives.
24146whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24147
24148# Compiler flag to generate thread-safe objects.
24149thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24150
24151# Library versioning type.
24152version_type=$version_type
24153
24154# Format of library name prefix.
24155libname_spec=$lt_libname_spec
24156
24157# List of archive names.  First name is the real one, the rest are links.
24158# The last name is the one that the linker finds with -lNAME.
24159library_names_spec=$lt_library_names_spec
24160
24161# The coded name of the library, if different from the real name.
24162soname_spec=$lt_soname_spec
24163
24164# Commands used to build and install an old-style archive.
24165RANLIB=$lt_RANLIB
24166old_archive_cmds=$lt_old_archive_cmds_GCJ
24167old_postinstall_cmds=$lt_old_postinstall_cmds
24168old_postuninstall_cmds=$lt_old_postuninstall_cmds
24169
24170# Create an old-style archive from a shared archive.
24171old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24172
24173# Create a temporary old-style archive to link instead of a shared archive.
24174old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24175
24176# Commands used to build and install a shared archive.
24177archive_cmds=$lt_archive_cmds_GCJ
24178archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24179postinstall_cmds=$lt_postinstall_cmds
24180postuninstall_cmds=$lt_postuninstall_cmds
24181
24182# Commands used to build a loadable module (assumed same as above if empty)
24183module_cmds=$lt_module_cmds_GCJ
24184module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24185
24186# Commands to strip libraries.
24187old_striplib=$lt_old_striplib
24188striplib=$lt_striplib
24189
24190# Dependencies to place before the objects being linked to create a
24191# shared library.
24192predep_objects=$lt_predep_objects_GCJ
24193
24194# Dependencies to place after the objects being linked to create a
24195# shared library.
24196postdep_objects=$lt_postdep_objects_GCJ
24197
24198# Dependencies to place before the objects being linked to create a
24199# shared library.
24200predeps=$lt_predeps_GCJ
24201
24202# Dependencies to place after the objects being linked to create a
24203# shared library.
24204postdeps=$lt_postdeps_GCJ
24205
24206# The library search path used internally by the compiler when linking
24207# a shared library.
24208compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24209
24210# Method to check whether dependent libraries are shared objects.
24211deplibs_check_method=$lt_deplibs_check_method
24212
24213# Command to use when deplibs_check_method == file_magic.
24214file_magic_cmd=$lt_file_magic_cmd
24215
24216# Flag that allows shared libraries with undefined symbols to be built.
24217allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24218
24219# Flag that forces no undefined symbols.
24220no_undefined_flag=$lt_no_undefined_flag_GCJ
24221
24222# Commands used to finish a libtool library installation in a directory.
24223finish_cmds=$lt_finish_cmds
24224
24225# Same as above, but a single script fragment to be evaled but not shown.
24226finish_eval=$lt_finish_eval
24227
24228# Take the output of nm and produce a listing of raw symbols and C names.
24229global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24230
24231# Transform the output of nm in a proper C declaration
24232global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24233
24234# Transform the output of nm in a C name address pair
24235global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24236
24237# This is the shared library runtime path variable.
24238runpath_var=$runpath_var
24239
24240# This is the shared library path variable.
24241shlibpath_var=$shlibpath_var
24242
24243# Is shlibpath searched before the hard-coded library search path?
24244shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24245
24246# How to hardcode a shared library path into an executable.
24247hardcode_action=$hardcode_action_GCJ
24248
24249# Whether we should hardcode library paths into libraries.
24250hardcode_into_libs=$hardcode_into_libs
24251
24252# Flag to hardcode \$libdir into a binary during linking.
24253# This must work even if \$libdir does not exist.
24254hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24255
24256# If ld is used when linking, flag to hardcode \$libdir into
24257# a binary during linking. This must work even if \$libdir does
24258# not exist.
24259hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24260
24261# Whether we need a single -rpath flag with a separated argument.
24262hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24263
24264# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24265# resulting binary.
24266hardcode_direct=$hardcode_direct_GCJ
24267
24268# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24269# resulting binary.
24270hardcode_minus_L=$hardcode_minus_L_GCJ
24271
24272# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24273# the resulting binary.
24274hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24275
24276# Set to yes if building a shared library automatically hardcodes DIR into the library
24277# and all subsequent libraries and executables linked against it.
24278hardcode_automatic=$hardcode_automatic_GCJ
24279
24280# Variables whose values should be saved in libtool wrapper scripts and
24281# restored at relink time.
24282variables_saved_for_relink="$variables_saved_for_relink"
24283
24284# Whether libtool must link a program against all its dependency libraries.
24285link_all_deplibs=$link_all_deplibs_GCJ
24286
24287# Compile-time system search path for libraries
24288sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24289
24290# Run-time system search path for libraries
24291sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24292
24293# Fix the shell variable \$srcfile for the compiler.
24294fix_srcfile_path="$fix_srcfile_path_GCJ"
24295
24296# Set to yes if exported symbols are required.
24297always_export_symbols=$always_export_symbols_GCJ
24298
24299# The commands to list exported symbols.
24300export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24301
24302# The commands to extract the exported symbol list from a shared archive.
24303extract_expsyms_cmds=$lt_extract_expsyms_cmds
24304
24305# Symbols that should not be listed in the preloaded symbols.
24306exclude_expsyms=$lt_exclude_expsyms_GCJ
24307
24308# Symbols that must always be exported.
24309include_expsyms=$lt_include_expsyms_GCJ
24310
24311# ### END LIBTOOL TAG CONFIG: $tagname
24312
24313__EOF__
24314
24315
24316else
24317  # If there is no Makefile yet, we rely on a make rule to execute
24318  # `config.status --recheck' to rerun these tests and create the
24319  # libtool script then.
24320  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24321  if test -f "$ltmain_in"; then
24322    test -f Makefile && make "$ltmain"
24323  fi
24324fi
24325
24326
24327ac_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
24333CC="$lt_save_CC"
24334
24335	else
24336	  tagname=""
24337	fi
24338	;;
24339
24340      RC)
24341	ac_ext=c
24342ac_cpp='$CPP $CPPFLAGS'
24343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24345ac_compiler_gnu=$ac_cv_c_compiler_gnu
24346
24347
24348# Source file extension for RC test sources.
24349ac_ext=rc
24350
24351# Object file extension for compiled RC test sources.
24352objext=o
24353objext_RC=$objext
24354
24355# Code to be used in simple compile tests
24356lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24357
24358# Code to be used in simple link tests
24359lt_simple_link_test_code="$lt_simple_compile_test_code"
24360
24361# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24362
24363# If no C compiler was specified, use CC.
24364LTCC=${LTCC-"$CC"}
24365
24366# Allow CC to be a program name with arguments.
24367compiler=$CC
24368
24369
24370# Allow CC to be a program name with arguments.
24371lt_save_CC="$CC"
24372CC=${RC-"windres"}
24373compiler=$CC
24374compiler_RC=$CC
24375lt_cv_prog_compiler_c_o_RC=yes
24376
24377# The else clause should only fire when bootstrapping the
24378# libtool distribution, otherwise you forgot to ship ltmain.sh
24379# with your package, and you will get complaints that there are
24380# no rules to generate ltmain.sh.
24381if test -f "$ltmain"; then
24382  # See if we are running on zsh, and set the options which allow our commands through
24383  # without removal of \ escapes.
24384  if test -n "${ZSH_VERSION+set}" ; then
24385    setopt NO_GLOB_SUBST
24386  fi
24387  # Now quote all the things that may contain metacharacters while being
24388  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24389  # variables and quote the copies for generation of the libtool script.
24390  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24391    SED SHELL STRIP \
24392    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24393    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24394    deplibs_check_method reload_flag reload_cmds need_locks \
24395    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24396    lt_cv_sys_global_symbol_to_c_name_address \
24397    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24398    old_postinstall_cmds old_postuninstall_cmds \
24399    compiler_RC \
24400    CC_RC \
24401    LD_RC \
24402    lt_prog_compiler_wl_RC \
24403    lt_prog_compiler_pic_RC \
24404    lt_prog_compiler_static_RC \
24405    lt_prog_compiler_no_builtin_flag_RC \
24406    export_dynamic_flag_spec_RC \
24407    thread_safe_flag_spec_RC \
24408    whole_archive_flag_spec_RC \
24409    enable_shared_with_static_runtimes_RC \
24410    old_archive_cmds_RC \
24411    old_archive_from_new_cmds_RC \
24412    predep_objects_RC \
24413    postdep_objects_RC \
24414    predeps_RC \
24415    postdeps_RC \
24416    compiler_lib_search_path_RC \
24417    archive_cmds_RC \
24418    archive_expsym_cmds_RC \
24419    postinstall_cmds_RC \
24420    postuninstall_cmds_RC \
24421    old_archive_from_expsyms_cmds_RC \
24422    allow_undefined_flag_RC \
24423    no_undefined_flag_RC \
24424    export_symbols_cmds_RC \
24425    hardcode_libdir_flag_spec_RC \
24426    hardcode_libdir_flag_spec_ld_RC \
24427    hardcode_libdir_separator_RC \
24428    hardcode_automatic_RC \
24429    module_cmds_RC \
24430    module_expsym_cmds_RC \
24431    lt_cv_prog_compiler_c_o_RC \
24432    exclude_expsyms_RC \
24433    include_expsyms_RC; do
24434
24435    case $var in
24436    old_archive_cmds_RC | \
24437    old_archive_from_new_cmds_RC | \
24438    archive_cmds_RC | \
24439    archive_expsym_cmds_RC | \
24440    module_cmds_RC | \
24441    module_expsym_cmds_RC | \
24442    old_archive_from_expsyms_cmds_RC | \
24443    export_symbols_cmds_RC | \
24444    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24445    postinstall_cmds | postuninstall_cmds | \
24446    old_postinstall_cmds | old_postuninstall_cmds | \
24447    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24448      # Double-quote double-evaled strings.
24449      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24450      ;;
24451    *)
24452      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24453      ;;
24454    esac
24455  done
24456
24457  case $lt_echo in
24458  *'\$0 --fallback-echo"')
24459    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24460    ;;
24461  esac
24462
24463cfgfile="$ofile"
24464
24465  cat <<__EOF__ >> "$cfgfile"
24466# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24467
24468# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24469
24470# Shell to use when invoking shell scripts.
24471SHELL=$lt_SHELL
24472
24473# Whether or not to build shared libraries.
24474build_libtool_libs=$enable_shared
24475
24476# Whether or not to build static libraries.
24477build_old_libs=$enable_static
24478
24479# Whether or not to add -lc for building shared libraries.
24480build_libtool_need_lc=$archive_cmds_need_lc_RC
24481
24482# Whether or not to disallow shared libs when runtime libs are static
24483allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24484
24485# Whether or not to optimize for fast installation.
24486fast_install=$enable_fast_install
24487
24488# The host system.
24489host_alias=$host_alias
24490host=$host
24491
24492# An echo program that does not interpret backslashes.
24493echo=$lt_echo
24494
24495# The archiver.
24496AR=$lt_AR
24497AR_FLAGS=$lt_AR_FLAGS
24498
24499# A C compiler.
24500LTCC=$lt_LTCC
24501
24502# A language-specific compiler.
24503CC=$lt_compiler_RC
24504
24505# Is the compiler the GNU C compiler?
24506with_gcc=$GCC_RC
24507
24508# An ERE matcher.
24509EGREP=$lt_EGREP
24510
24511# The linker used to build libraries.
24512LD=$lt_LD_RC
24513
24514# Whether we need hard or soft links.
24515LN_S=$lt_LN_S
24516
24517# A BSD-compatible nm program.
24518NM=$lt_NM
24519
24520# A symbol stripping program
24521STRIP=$lt_STRIP
24522
24523# Used to examine libraries when file_magic_cmd begins "file"
24524MAGIC_CMD=$MAGIC_CMD
24525
24526# Used on cygwin: DLL creation program.
24527DLLTOOL="$DLLTOOL"
24528
24529# Used on cygwin: object dumper.
24530OBJDUMP="$OBJDUMP"
24531
24532# Used on cygwin: assembler.
24533AS="$AS"
24534
24535# The name of the directory that contains temporary libtool files.
24536objdir=$objdir
24537
24538# How to create reloadable object files.
24539reload_flag=$lt_reload_flag
24540reload_cmds=$lt_reload_cmds
24541
24542# How to pass a linker flag through the compiler.
24543wl=$lt_lt_prog_compiler_wl_RC
24544
24545# Object file suffix (normally "o").
24546objext="$ac_objext"
24547
24548# Old archive suffix (normally "a").
24549libext="$libext"
24550
24551# Shared library suffix (normally ".so").
24552shrext_cmds='$shrext_cmds'
24553
24554# Executable file suffix (normally "").
24555exeext="$exeext"
24556
24557# Additional compiler flags for building library objects.
24558pic_flag=$lt_lt_prog_compiler_pic_RC
24559pic_mode=$pic_mode
24560
24561# What is the maximum length of a command?
24562max_cmd_len=$lt_cv_sys_max_cmd_len
24563
24564# Does compiler simultaneously support -c and -o options?
24565compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24566
24567# Must we lock files when doing compilation ?
24568need_locks=$lt_need_locks
24569
24570# Do we need the lib prefix for modules?
24571need_lib_prefix=$need_lib_prefix
24572
24573# Do we need a version for libraries?
24574need_version=$need_version
24575
24576# Whether dlopen is supported.
24577dlopen_support=$enable_dlopen
24578
24579# Whether dlopen of programs is supported.
24580dlopen_self=$enable_dlopen_self
24581
24582# Whether dlopen of statically linked programs is supported.
24583dlopen_self_static=$enable_dlopen_self_static
24584
24585# Compiler flag to prevent dynamic linking.
24586link_static_flag=$lt_lt_prog_compiler_static_RC
24587
24588# Compiler flag to turn off builtin functions.
24589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24590
24591# Compiler flag to allow reflexive dlopens.
24592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24593
24594# Compiler flag to generate shared objects directly from archives.
24595whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24596
24597# Compiler flag to generate thread-safe objects.
24598thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24599
24600# Library versioning type.
24601version_type=$version_type
24602
24603# Format of library name prefix.
24604libname_spec=$lt_libname_spec
24605
24606# List of archive names.  First name is the real one, the rest are links.
24607# The last name is the one that the linker finds with -lNAME.
24608library_names_spec=$lt_library_names_spec
24609
24610# The coded name of the library, if different from the real name.
24611soname_spec=$lt_soname_spec
24612
24613# Commands used to build and install an old-style archive.
24614RANLIB=$lt_RANLIB
24615old_archive_cmds=$lt_old_archive_cmds_RC
24616old_postinstall_cmds=$lt_old_postinstall_cmds
24617old_postuninstall_cmds=$lt_old_postuninstall_cmds
24618
24619# Create an old-style archive from a shared archive.
24620old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24621
24622# Create a temporary old-style archive to link instead of a shared archive.
24623old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24624
24625# Commands used to build and install a shared archive.
24626archive_cmds=$lt_archive_cmds_RC
24627archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24628postinstall_cmds=$lt_postinstall_cmds
24629postuninstall_cmds=$lt_postuninstall_cmds
24630
24631# Commands used to build a loadable module (assumed same as above if empty)
24632module_cmds=$lt_module_cmds_RC
24633module_expsym_cmds=$lt_module_expsym_cmds_RC
24634
24635# Commands to strip libraries.
24636old_striplib=$lt_old_striplib
24637striplib=$lt_striplib
24638
24639# Dependencies to place before the objects being linked to create a
24640# shared library.
24641predep_objects=$lt_predep_objects_RC
24642
24643# Dependencies to place after the objects being linked to create a
24644# shared library.
24645postdep_objects=$lt_postdep_objects_RC
24646
24647# Dependencies to place before the objects being linked to create a
24648# shared library.
24649predeps=$lt_predeps_RC
24650
24651# Dependencies to place after the objects being linked to create a
24652# shared library.
24653postdeps=$lt_postdeps_RC
24654
24655# The library search path used internally by the compiler when linking
24656# a shared library.
24657compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24658
24659# Method to check whether dependent libraries are shared objects.
24660deplibs_check_method=$lt_deplibs_check_method
24661
24662# Command to use when deplibs_check_method == file_magic.
24663file_magic_cmd=$lt_file_magic_cmd
24664
24665# Flag that allows shared libraries with undefined symbols to be built.
24666allow_undefined_flag=$lt_allow_undefined_flag_RC
24667
24668# Flag that forces no undefined symbols.
24669no_undefined_flag=$lt_no_undefined_flag_RC
24670
24671# Commands used to finish a libtool library installation in a directory.
24672finish_cmds=$lt_finish_cmds
24673
24674# Same as above, but a single script fragment to be evaled but not shown.
24675finish_eval=$lt_finish_eval
24676
24677# Take the output of nm and produce a listing of raw symbols and C names.
24678global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24679
24680# Transform the output of nm in a proper C declaration
24681global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24682
24683# Transform the output of nm in a C name address pair
24684global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24685
24686# This is the shared library runtime path variable.
24687runpath_var=$runpath_var
24688
24689# This is the shared library path variable.
24690shlibpath_var=$shlibpath_var
24691
24692# Is shlibpath searched before the hard-coded library search path?
24693shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24694
24695# How to hardcode a shared library path into an executable.
24696hardcode_action=$hardcode_action_RC
24697
24698# Whether we should hardcode library paths into libraries.
24699hardcode_into_libs=$hardcode_into_libs
24700
24701# Flag to hardcode \$libdir into a binary during linking.
24702# This must work even if \$libdir does not exist.
24703hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24704
24705# If ld is used when linking, flag to hardcode \$libdir into
24706# a binary during linking. This must work even if \$libdir does
24707# not exist.
24708hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24709
24710# Whether we need a single -rpath flag with a separated argument.
24711hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24712
24713# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24714# resulting binary.
24715hardcode_direct=$hardcode_direct_RC
24716
24717# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24718# resulting binary.
24719hardcode_minus_L=$hardcode_minus_L_RC
24720
24721# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24722# the resulting binary.
24723hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24724
24725# Set to yes if building a shared library automatically hardcodes DIR into the library
24726# and all subsequent libraries and executables linked against it.
24727hardcode_automatic=$hardcode_automatic_RC
24728
24729# Variables whose values should be saved in libtool wrapper scripts and
24730# restored at relink time.
24731variables_saved_for_relink="$variables_saved_for_relink"
24732
24733# Whether libtool must link a program against all its dependency libraries.
24734link_all_deplibs=$link_all_deplibs_RC
24735
24736# Compile-time system search path for libraries
24737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24738
24739# Run-time system search path for libraries
24740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24741
24742# Fix the shell variable \$srcfile for the compiler.
24743fix_srcfile_path="$fix_srcfile_path_RC"
24744
24745# Set to yes if exported symbols are required.
24746always_export_symbols=$always_export_symbols_RC
24747
24748# The commands to list exported symbols.
24749export_symbols_cmds=$lt_export_symbols_cmds_RC
24750
24751# The commands to extract the exported symbol list from a shared archive.
24752extract_expsyms_cmds=$lt_extract_expsyms_cmds
24753
24754# Symbols that should not be listed in the preloaded symbols.
24755exclude_expsyms=$lt_exclude_expsyms_RC
24756
24757# Symbols that must always be exported.
24758include_expsyms=$lt_include_expsyms_RC
24759
24760# ### END LIBTOOL TAG CONFIG: $tagname
24761
24762__EOF__
24763
24764
24765else
24766  # If there is no Makefile yet, we rely on a make rule to execute
24767  # `config.status --recheck' to rerun these tests and create the
24768  # libtool script then.
24769  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24770  if test -f "$ltmain_in"; then
24771    test -f Makefile && make "$ltmain"
24772  fi
24773fi
24774
24775
24776ac_ext=c
24777ac_cpp='$CPP $CPPFLAGS'
24778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780ac_compiler_gnu=$ac_cv_c_compiler_gnu
24781
24782CC="$lt_save_CC"
24783
24784	;;
24785
24786      *)
24787	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24788echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24789   { (exit 1); exit 1; }; }
24790	;;
24791      esac
24792
24793      # Append the new tag name to the list of available tags.
24794      if test -n "$tagname" ; then
24795      available_tags="$available_tags $tagname"
24796    fi
24797    fi
24798  done
24799  IFS="$lt_save_ifs"
24800
24801  # Now substitute the updated list of available tags.
24802  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24803    mv "${ofile}T" "$ofile"
24804    chmod +x "$ofile"
24805  else
24806    rm -f "${ofile}T"
24807    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24808echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24809   { (exit 1); exit 1; }; }
24810  fi
24811fi
24812
24813
24814
24815# This can be used to rebuild libtool when needed
24816LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24817
24818# Always use our own libtool.
24819LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24820
24821# Prevent multiple expansion
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843if test "$lt_cv_dlopen_self" = "yes" ; then
24844
24845cat >>confdefs.h <<\_ACEOF
24846#define CAN_DLOPEN_SELF 1
24847_ACEOF
24848
24849fi
24850
24851etags_version=`$ETAGS --version 2>&1`
24852case "$etags_version" in
24853	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24854	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24855	*) ETAGSFLAGS="" ;;
24856esac
24857ETAGSFLAGS=$ETAGSFLAGS
24858
24859
24860if test "$WITH_LLVMGCCDIR" = "default" ; then
24861  LLVMGCC="llvm-gcc${EXEEXT}"
24862  LLVMGXX="llvm-g++${EXEEXT}"
24863  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24864set dummy $LLVMGCC; ac_word=$2
24865echo "$as_me:$LINENO: checking for $ac_word" >&5
24866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867if test "${ac_cv_path_LLVMGCC+set}" = set; then
24868  echo $ECHO_N "(cached) $ECHO_C" >&6
24869else
24870  case $LLVMGCC in
24871  [\\/]* | ?:[\\/]*)
24872  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24873  ;;
24874  *)
24875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24876for as_dir in $PATH
24877do
24878  IFS=$as_save_IFS
24879  test -z "$as_dir" && as_dir=.
24880  for ac_exec_ext in '' $ac_executable_extensions; do
24881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24882    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24884    break 2
24885  fi
24886done
24887done
24888
24889  ;;
24890esac
24891fi
24892LLVMGCC=$ac_cv_path_LLVMGCC
24893
24894if test -n "$LLVMGCC"; then
24895  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24896echo "${ECHO_T}$LLVMGCC" >&6
24897else
24898  echo "$as_me:$LINENO: result: no" >&5
24899echo "${ECHO_T}no" >&6
24900fi
24901
24902  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24903set dummy $LLVMGXX; ac_word=$2
24904echo "$as_me:$LINENO: checking for $ac_word" >&5
24905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24906if test "${ac_cv_path_LLVMGXX+set}" = set; then
24907  echo $ECHO_N "(cached) $ECHO_C" >&6
24908else
24909  case $LLVMGXX in
24910  [\\/]* | ?:[\\/]*)
24911  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24912  ;;
24913  *)
24914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24915for as_dir in $PATH
24916do
24917  IFS=$as_save_IFS
24918  test -z "$as_dir" && as_dir=.
24919  for ac_exec_ext in '' $ac_executable_extensions; do
24920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24921    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24923    break 2
24924  fi
24925done
24926done
24927
24928  ;;
24929esac
24930fi
24931LLVMGXX=$ac_cv_path_LLVMGXX
24932
24933if test -n "$LLVMGXX"; then
24934  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24935echo "${ECHO_T}$LLVMGXX" >&6
24936else
24937  echo "$as_me:$LINENO: result: no" >&5
24938echo "${ECHO_T}no" >&6
24939fi
24940
24941else
24942  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24943  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24944  LLVMGCC=$LLVMGCC
24945
24946  LLVMGXX=$LLVMGXX
24947
24948fi
24949
24950echo "$as_me:$LINENO: checking tool compatibility" >&5
24951echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24952
24953ICC=no
24954IXX=no
24955case $CC in
24956  icc*|icpc*)
24957    ICC=yes
24958    IXX=yes
24959    ;;
24960   *)
24961    ;;
24962esac
24963
24964if test "$GCC" != "yes" && test "$ICC" != "yes"
24965then
24966  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24967echo "$as_me: error: gcc|icc required but not found" >&2;}
24968   { (exit 1); exit 1; }; }
24969fi
24970
24971if test "$GXX" != "yes" && test "$IXX" != "yes"
24972then
24973  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24974echo "$as_me: error: g++|icc required but not found" >&2;}
24975   { (exit 1); exit 1; }; }
24976fi
24977
24978if test "$GCC" = "yes"
24979then
24980  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24981  if test "$gccmajor" -lt "3"
24982  then
24983    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24984echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24985   { (exit 1); exit 1; }; }
24986  fi
24987fi
24988
24989if test -z "$llvm_cv_gnu_make_command"
24990then
24991  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24992echo "$as_me: error: GNU Make required but not found" >&2;}
24993   { (exit 1); exit 1; }; }
24994fi
24995
24996echo "$as_me:$LINENO: result: ok" >&5
24997echo "${ECHO_T}ok" >&6
24998
24999
25000
25001echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25002echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25003if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25004  echo $ECHO_N "(cached) $ECHO_C" >&6
25005else
25006  ac_check_lib_save_LIBS=$LIBS
25007LIBS="-lelf  $LIBS"
25008cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h.  */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h.  */
25014
25015/* Override any gcc2 internal prototype to avoid an error.  */
25016#ifdef __cplusplus
25017extern "C"
25018#endif
25019/* We use char because int might match the return type of a gcc2
25020   builtin and then its argument prototype would still apply.  */
25021char elf_begin ();
25022int
25023main ()
25024{
25025elf_begin ();
25026  ;
25027  return 0;
25028}
25029_ACEOF
25030rm -f conftest.$ac_objext conftest$ac_exeext
25031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032  (eval $ac_link) 2>conftest.er1
25033  ac_status=$?
25034  grep -v '^ *+' conftest.er1 >conftest.err
25035  rm -f conftest.er1
25036  cat conftest.err >&5
25037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038  (exit $ac_status); } &&
25039	 { ac_try='test -z "$ac_c_werror_flag"
25040			 || test ! -s conftest.err'
25041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042  (eval $ac_try) 2>&5
25043  ac_status=$?
25044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045  (exit $ac_status); }; } &&
25046	 { ac_try='test -s conftest$ac_exeext'
25047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048  (eval $ac_try) 2>&5
25049  ac_status=$?
25050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051  (exit $ac_status); }; }; then
25052  ac_cv_lib_elf_elf_begin=yes
25053else
25054  echo "$as_me: failed program was:" >&5
25055sed 's/^/| /' conftest.$ac_ext >&5
25056
25057ac_cv_lib_elf_elf_begin=no
25058fi
25059rm -f conftest.err conftest.$ac_objext \
25060      conftest$ac_exeext conftest.$ac_ext
25061LIBS=$ac_check_lib_save_LIBS
25062fi
25063echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25064echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25065if test $ac_cv_lib_elf_elf_begin = yes; then
25066  cat >>confdefs.h <<_ACEOF
25067#define HAVE_LIBELF 1
25068_ACEOF
25069
25070  LIBS="-lelf $LIBS"
25071
25072fi
25073
25074
25075echo "$as_me:$LINENO: checking for sin in -lm" >&5
25076echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25077if test "${ac_cv_lib_m_sin+set}" = set; then
25078  echo $ECHO_N "(cached) $ECHO_C" >&6
25079else
25080  ac_check_lib_save_LIBS=$LIBS
25081LIBS="-lm  $LIBS"
25082cat >conftest.$ac_ext <<_ACEOF
25083/* confdefs.h.  */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h.  */
25088
25089/* Override any gcc2 internal prototype to avoid an error.  */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093/* We use char because int might match the return type of a gcc2
25094   builtin and then its argument prototype would still apply.  */
25095char sin ();
25096int
25097main ()
25098{
25099sin ();
25100  ;
25101  return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25106  (eval $ac_link) 2>conftest.er1
25107  ac_status=$?
25108  grep -v '^ *+' conftest.er1 >conftest.err
25109  rm -f conftest.er1
25110  cat conftest.err >&5
25111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112  (exit $ac_status); } &&
25113	 { ac_try='test -z "$ac_c_werror_flag"
25114			 || test ! -s conftest.err'
25115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116  (eval $ac_try) 2>&5
25117  ac_status=$?
25118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119  (exit $ac_status); }; } &&
25120	 { ac_try='test -s conftest$ac_exeext'
25121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122  (eval $ac_try) 2>&5
25123  ac_status=$?
25124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125  (exit $ac_status); }; }; then
25126  ac_cv_lib_m_sin=yes
25127else
25128  echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131ac_cv_lib_m_sin=no
25132fi
25133rm -f conftest.err conftest.$ac_objext \
25134      conftest$ac_exeext conftest.$ac_ext
25135LIBS=$ac_check_lib_save_LIBS
25136fi
25137echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25138echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25139if test $ac_cv_lib_m_sin = yes; then
25140  cat >>confdefs.h <<_ACEOF
25141#define HAVE_LIBM 1
25142_ACEOF
25143
25144  LIBS="-lm $LIBS"
25145
25146fi
25147
25148
25149echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25150echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25151if test "${ac_cv_search_lt_dlopen+set}" = set; then
25152  echo $ECHO_N "(cached) $ECHO_C" >&6
25153else
25154  ac_func_search_save_LIBS=$LIBS
25155ac_cv_search_lt_dlopen=no
25156cat >conftest.$ac_ext <<_ACEOF
25157/* confdefs.h.  */
25158_ACEOF
25159cat confdefs.h >>conftest.$ac_ext
25160cat >>conftest.$ac_ext <<_ACEOF
25161/* end confdefs.h.  */
25162
25163/* Override any gcc2 internal prototype to avoid an error.  */
25164#ifdef __cplusplus
25165extern "C"
25166#endif
25167/* We use char because int might match the return type of a gcc2
25168   builtin and then its argument prototype would still apply.  */
25169char lt_dlopen ();
25170int
25171main ()
25172{
25173lt_dlopen ();
25174  ;
25175  return 0;
25176}
25177_ACEOF
25178rm -f conftest.$ac_objext conftest$ac_exeext
25179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180  (eval $ac_link) 2>conftest.er1
25181  ac_status=$?
25182  grep -v '^ *+' conftest.er1 >conftest.err
25183  rm -f conftest.er1
25184  cat conftest.err >&5
25185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186  (exit $ac_status); } &&
25187	 { ac_try='test -z "$ac_c_werror_flag"
25188			 || test ! -s conftest.err'
25189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190  (eval $ac_try) 2>&5
25191  ac_status=$?
25192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193  (exit $ac_status); }; } &&
25194	 { ac_try='test -s conftest$ac_exeext'
25195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196  (eval $ac_try) 2>&5
25197  ac_status=$?
25198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199  (exit $ac_status); }; }; then
25200  ac_cv_search_lt_dlopen="none required"
25201else
25202  echo "$as_me: failed program was:" >&5
25203sed 's/^/| /' conftest.$ac_ext >&5
25204
25205fi
25206rm -f conftest.err conftest.$ac_objext \
25207      conftest$ac_exeext conftest.$ac_ext
25208if test "$ac_cv_search_lt_dlopen" = no; then
25209  for ac_lib in ltdl; do
25210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25211    cat >conftest.$ac_ext <<_ACEOF
25212/* confdefs.h.  */
25213_ACEOF
25214cat confdefs.h >>conftest.$ac_ext
25215cat >>conftest.$ac_ext <<_ACEOF
25216/* end confdefs.h.  */
25217
25218/* Override any gcc2 internal prototype to avoid an error.  */
25219#ifdef __cplusplus
25220extern "C"
25221#endif
25222/* We use char because int might match the return type of a gcc2
25223   builtin and then its argument prototype would still apply.  */
25224char lt_dlopen ();
25225int
25226main ()
25227{
25228lt_dlopen ();
25229  ;
25230  return 0;
25231}
25232_ACEOF
25233rm -f conftest.$ac_objext conftest$ac_exeext
25234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235  (eval $ac_link) 2>conftest.er1
25236  ac_status=$?
25237  grep -v '^ *+' conftest.er1 >conftest.err
25238  rm -f conftest.er1
25239  cat conftest.err >&5
25240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241  (exit $ac_status); } &&
25242	 { ac_try='test -z "$ac_c_werror_flag"
25243			 || test ! -s conftest.err'
25244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245  (eval $ac_try) 2>&5
25246  ac_status=$?
25247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248  (exit $ac_status); }; } &&
25249	 { ac_try='test -s conftest$ac_exeext'
25250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251  (eval $ac_try) 2>&5
25252  ac_status=$?
25253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254  (exit $ac_status); }; }; then
25255  ac_cv_search_lt_dlopen="-l$ac_lib"
25256break
25257else
25258  echo "$as_me: failed program was:" >&5
25259sed 's/^/| /' conftest.$ac_ext >&5
25260
25261fi
25262rm -f conftest.err conftest.$ac_objext \
25263      conftest$ac_exeext conftest.$ac_ext
25264  done
25265fi
25266LIBS=$ac_func_search_save_LIBS
25267fi
25268echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25269echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25270if test "$ac_cv_search_lt_dlopen" != no; then
25271  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25272
25273cat >>confdefs.h <<\_ACEOF
25274#define HAVE_LT_DLOPEN 1
25275_ACEOF
25276
25277else
25278  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25279                           not be available" >&5
25280echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25281                           not be available" >&2;}
25282fi
25283
25284
25285echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25286echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25287if test "${ac_cv_search_dlopen+set}" = set; then
25288  echo $ECHO_N "(cached) $ECHO_C" >&6
25289else
25290  ac_func_search_save_LIBS=$LIBS
25291ac_cv_search_dlopen=no
25292cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h.  */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h.  */
25298
25299/* Override any gcc2 internal prototype to avoid an error.  */
25300#ifdef __cplusplus
25301extern "C"
25302#endif
25303/* We use char because int might match the return type of a gcc2
25304   builtin and then its argument prototype would still apply.  */
25305char dlopen ();
25306int
25307main ()
25308{
25309dlopen ();
25310  ;
25311  return 0;
25312}
25313_ACEOF
25314rm -f conftest.$ac_objext conftest$ac_exeext
25315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25316  (eval $ac_link) 2>conftest.er1
25317  ac_status=$?
25318  grep -v '^ *+' conftest.er1 >conftest.err
25319  rm -f conftest.er1
25320  cat conftest.err >&5
25321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322  (exit $ac_status); } &&
25323	 { ac_try='test -z "$ac_c_werror_flag"
25324			 || test ! -s conftest.err'
25325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326  (eval $ac_try) 2>&5
25327  ac_status=$?
25328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329  (exit $ac_status); }; } &&
25330	 { ac_try='test -s conftest$ac_exeext'
25331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332  (eval $ac_try) 2>&5
25333  ac_status=$?
25334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335  (exit $ac_status); }; }; then
25336  ac_cv_search_dlopen="none required"
25337else
25338  echo "$as_me: failed program was:" >&5
25339sed 's/^/| /' conftest.$ac_ext >&5
25340
25341fi
25342rm -f conftest.err conftest.$ac_objext \
25343      conftest$ac_exeext conftest.$ac_ext
25344if test "$ac_cv_search_dlopen" = no; then
25345  for ac_lib in dl; do
25346    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25347    cat >conftest.$ac_ext <<_ACEOF
25348/* confdefs.h.  */
25349_ACEOF
25350cat confdefs.h >>conftest.$ac_ext
25351cat >>conftest.$ac_ext <<_ACEOF
25352/* end confdefs.h.  */
25353
25354/* Override any gcc2 internal prototype to avoid an error.  */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358/* We use char because int might match the return type of a gcc2
25359   builtin and then its argument prototype would still apply.  */
25360char dlopen ();
25361int
25362main ()
25363{
25364dlopen ();
25365  ;
25366  return 0;
25367}
25368_ACEOF
25369rm -f conftest.$ac_objext conftest$ac_exeext
25370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25371  (eval $ac_link) 2>conftest.er1
25372  ac_status=$?
25373  grep -v '^ *+' conftest.er1 >conftest.err
25374  rm -f conftest.er1
25375  cat conftest.err >&5
25376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377  (exit $ac_status); } &&
25378	 { ac_try='test -z "$ac_c_werror_flag"
25379			 || test ! -s conftest.err'
25380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381  (eval $ac_try) 2>&5
25382  ac_status=$?
25383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384  (exit $ac_status); }; } &&
25385	 { ac_try='test -s conftest$ac_exeext'
25386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387  (eval $ac_try) 2>&5
25388  ac_status=$?
25389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390  (exit $ac_status); }; }; then
25391  ac_cv_search_dlopen="-l$ac_lib"
25392break
25393else
25394  echo "$as_me: failed program was:" >&5
25395sed 's/^/| /' conftest.$ac_ext >&5
25396
25397fi
25398rm -f conftest.err conftest.$ac_objext \
25399      conftest$ac_exeext conftest.$ac_ext
25400  done
25401fi
25402LIBS=$ac_func_search_save_LIBS
25403fi
25404echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25405echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25406if test "$ac_cv_search_dlopen" != no; then
25407  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25408
25409cat >>confdefs.h <<\_ACEOF
25410#define HAVE_DLOPEN 1
25411_ACEOF
25412
25413else
25414  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25415echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25416fi
25417
25418
25419echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25420echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25421if test "${ac_cv_search_mallinfo+set}" = set; then
25422  echo $ECHO_N "(cached) $ECHO_C" >&6
25423else
25424  ac_func_search_save_LIBS=$LIBS
25425ac_cv_search_mallinfo=no
25426cat >conftest.$ac_ext <<_ACEOF
25427/* confdefs.h.  */
25428_ACEOF
25429cat confdefs.h >>conftest.$ac_ext
25430cat >>conftest.$ac_ext <<_ACEOF
25431/* end confdefs.h.  */
25432
25433/* Override any gcc2 internal prototype to avoid an error.  */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437/* We use char because int might match the return type of a gcc2
25438   builtin and then its argument prototype would still apply.  */
25439char mallinfo ();
25440int
25441main ()
25442{
25443mallinfo ();
25444  ;
25445  return 0;
25446}
25447_ACEOF
25448rm -f conftest.$ac_objext conftest$ac_exeext
25449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25450  (eval $ac_link) 2>conftest.er1
25451  ac_status=$?
25452  grep -v '^ *+' conftest.er1 >conftest.err
25453  rm -f conftest.er1
25454  cat conftest.err >&5
25455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456  (exit $ac_status); } &&
25457	 { ac_try='test -z "$ac_c_werror_flag"
25458			 || test ! -s conftest.err'
25459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460  (eval $ac_try) 2>&5
25461  ac_status=$?
25462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463  (exit $ac_status); }; } &&
25464	 { ac_try='test -s conftest$ac_exeext'
25465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466  (eval $ac_try) 2>&5
25467  ac_status=$?
25468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469  (exit $ac_status); }; }; then
25470  ac_cv_search_mallinfo="none required"
25471else
25472  echo "$as_me: failed program was:" >&5
25473sed 's/^/| /' conftest.$ac_ext >&5
25474
25475fi
25476rm -f conftest.err conftest.$ac_objext \
25477      conftest$ac_exeext conftest.$ac_ext
25478if test "$ac_cv_search_mallinfo" = no; then
25479  for ac_lib in malloc; do
25480    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25481    cat >conftest.$ac_ext <<_ACEOF
25482/* confdefs.h.  */
25483_ACEOF
25484cat confdefs.h >>conftest.$ac_ext
25485cat >>conftest.$ac_ext <<_ACEOF
25486/* end confdefs.h.  */
25487
25488/* Override any gcc2 internal prototype to avoid an error.  */
25489#ifdef __cplusplus
25490extern "C"
25491#endif
25492/* We use char because int might match the return type of a gcc2
25493   builtin and then its argument prototype would still apply.  */
25494char mallinfo ();
25495int
25496main ()
25497{
25498mallinfo ();
25499  ;
25500  return 0;
25501}
25502_ACEOF
25503rm -f conftest.$ac_objext conftest$ac_exeext
25504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25505  (eval $ac_link) 2>conftest.er1
25506  ac_status=$?
25507  grep -v '^ *+' conftest.er1 >conftest.err
25508  rm -f conftest.er1
25509  cat conftest.err >&5
25510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511  (exit $ac_status); } &&
25512	 { ac_try='test -z "$ac_c_werror_flag"
25513			 || test ! -s conftest.err'
25514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515  (eval $ac_try) 2>&5
25516  ac_status=$?
25517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518  (exit $ac_status); }; } &&
25519	 { ac_try='test -s conftest$ac_exeext'
25520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521  (eval $ac_try) 2>&5
25522  ac_status=$?
25523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524  (exit $ac_status); }; }; then
25525  ac_cv_search_mallinfo="-l$ac_lib"
25526break
25527else
25528  echo "$as_me: failed program was:" >&5
25529sed 's/^/| /' conftest.$ac_ext >&5
25530
25531fi
25532rm -f conftest.err conftest.$ac_objext \
25533      conftest$ac_exeext conftest.$ac_ext
25534  done
25535fi
25536LIBS=$ac_func_search_save_LIBS
25537fi
25538echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25539echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25540if test "$ac_cv_search_mallinfo" != no; then
25541  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25542
25543cat >>confdefs.h <<\_ACEOF
25544#define HAVE_MALLINFO 1
25545_ACEOF
25546
25547fi
25548
25549
25550if test "$ENABLE_THREADS" -eq 1 ; then
25551
25552echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25553echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25554if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25555  echo $ECHO_N "(cached) $ECHO_C" >&6
25556else
25557  ac_check_lib_save_LIBS=$LIBS
25558LIBS="-lpthread  $LIBS"
25559cat >conftest.$ac_ext <<_ACEOF
25560/* confdefs.h.  */
25561_ACEOF
25562cat confdefs.h >>conftest.$ac_ext
25563cat >>conftest.$ac_ext <<_ACEOF
25564/* end confdefs.h.  */
25565
25566/* Override any gcc2 internal prototype to avoid an error.  */
25567#ifdef __cplusplus
25568extern "C"
25569#endif
25570/* We use char because int might match the return type of a gcc2
25571   builtin and then its argument prototype would still apply.  */
25572char pthread_mutex_init ();
25573int
25574main ()
25575{
25576pthread_mutex_init ();
25577  ;
25578  return 0;
25579}
25580_ACEOF
25581rm -f conftest.$ac_objext conftest$ac_exeext
25582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25583  (eval $ac_link) 2>conftest.er1
25584  ac_status=$?
25585  grep -v '^ *+' conftest.er1 >conftest.err
25586  rm -f conftest.er1
25587  cat conftest.err >&5
25588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589  (exit $ac_status); } &&
25590	 { ac_try='test -z "$ac_c_werror_flag"
25591			 || test ! -s conftest.err'
25592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593  (eval $ac_try) 2>&5
25594  ac_status=$?
25595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596  (exit $ac_status); }; } &&
25597	 { ac_try='test -s conftest$ac_exeext'
25598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599  (eval $ac_try) 2>&5
25600  ac_status=$?
25601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602  (exit $ac_status); }; }; then
25603  ac_cv_lib_pthread_pthread_mutex_init=yes
25604else
25605  echo "$as_me: failed program was:" >&5
25606sed 's/^/| /' conftest.$ac_ext >&5
25607
25608ac_cv_lib_pthread_pthread_mutex_init=no
25609fi
25610rm -f conftest.err conftest.$ac_objext \
25611      conftest$ac_exeext conftest.$ac_ext
25612LIBS=$ac_check_lib_save_LIBS
25613fi
25614echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25615echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25616if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25617  cat >>confdefs.h <<_ACEOF
25618#define HAVE_LIBPTHREAD 1
25619_ACEOF
25620
25621  LIBS="-lpthread $LIBS"
25622
25623fi
25624
25625  echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25626echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25627if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25628  echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630  ac_func_search_save_LIBS=$LIBS
25631ac_cv_search_pthread_mutex_lock=no
25632cat >conftest.$ac_ext <<_ACEOF
25633/* confdefs.h.  */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h.  */
25638
25639/* Override any gcc2 internal prototype to avoid an error.  */
25640#ifdef __cplusplus
25641extern "C"
25642#endif
25643/* We use char because int might match the return type of a gcc2
25644   builtin and then its argument prototype would still apply.  */
25645char pthread_mutex_lock ();
25646int
25647main ()
25648{
25649pthread_mutex_lock ();
25650  ;
25651  return 0;
25652}
25653_ACEOF
25654rm -f conftest.$ac_objext conftest$ac_exeext
25655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656  (eval $ac_link) 2>conftest.er1
25657  ac_status=$?
25658  grep -v '^ *+' conftest.er1 >conftest.err
25659  rm -f conftest.er1
25660  cat conftest.err >&5
25661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662  (exit $ac_status); } &&
25663	 { ac_try='test -z "$ac_c_werror_flag"
25664			 || test ! -s conftest.err'
25665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666  (eval $ac_try) 2>&5
25667  ac_status=$?
25668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669  (exit $ac_status); }; } &&
25670	 { ac_try='test -s conftest$ac_exeext'
25671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672  (eval $ac_try) 2>&5
25673  ac_status=$?
25674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675  (exit $ac_status); }; }; then
25676  ac_cv_search_pthread_mutex_lock="none required"
25677else
25678  echo "$as_me: failed program was:" >&5
25679sed 's/^/| /' conftest.$ac_ext >&5
25680
25681fi
25682rm -f conftest.err conftest.$ac_objext \
25683      conftest$ac_exeext conftest.$ac_ext
25684if test "$ac_cv_search_pthread_mutex_lock" = no; then
25685  for ac_lib in pthread; do
25686    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25687    cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h.  */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h.  */
25693
25694/* Override any gcc2 internal prototype to avoid an error.  */
25695#ifdef __cplusplus
25696extern "C"
25697#endif
25698/* We use char because int might match the return type of a gcc2
25699   builtin and then its argument prototype would still apply.  */
25700char pthread_mutex_lock ();
25701int
25702main ()
25703{
25704pthread_mutex_lock ();
25705  ;
25706  return 0;
25707}
25708_ACEOF
25709rm -f conftest.$ac_objext conftest$ac_exeext
25710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711  (eval $ac_link) 2>conftest.er1
25712  ac_status=$?
25713  grep -v '^ *+' conftest.er1 >conftest.err
25714  rm -f conftest.er1
25715  cat conftest.err >&5
25716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717  (exit $ac_status); } &&
25718	 { ac_try='test -z "$ac_c_werror_flag"
25719			 || test ! -s conftest.err'
25720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721  (eval $ac_try) 2>&5
25722  ac_status=$?
25723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724  (exit $ac_status); }; } &&
25725	 { ac_try='test -s conftest$ac_exeext'
25726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727  (eval $ac_try) 2>&5
25728  ac_status=$?
25729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730  (exit $ac_status); }; }; then
25731  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25732break
25733else
25734  echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737fi
25738rm -f conftest.err conftest.$ac_objext \
25739      conftest$ac_exeext conftest.$ac_ext
25740  done
25741fi
25742LIBS=$ac_func_search_save_LIBS
25743fi
25744echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25745echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25746if test "$ac_cv_search_pthread_mutex_lock" != no; then
25747  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25748
25749cat >>confdefs.h <<\_ACEOF
25750#define HAVE_PTHREAD_MUTEX_LOCK 1
25751_ACEOF
25752
25753fi
25754
25755fi
25756
25757
25758
25759
25760
25761
25762
25763ac_header_dirent=no
25764for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25765  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25766echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25767echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25768if eval "test \"\${$as_ac_Header+set}\" = set"; then
25769  echo $ECHO_N "(cached) $ECHO_C" >&6
25770else
25771  cat >conftest.$ac_ext <<_ACEOF
25772/* confdefs.h.  */
25773_ACEOF
25774cat confdefs.h >>conftest.$ac_ext
25775cat >>conftest.$ac_ext <<_ACEOF
25776/* end confdefs.h.  */
25777#include <sys/types.h>
25778#include <$ac_hdr>
25779
25780int
25781main ()
25782{
25783if ((DIR *) 0)
25784return 0;
25785  ;
25786  return 0;
25787}
25788_ACEOF
25789rm -f conftest.$ac_objext
25790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25791  (eval $ac_compile) 2>conftest.er1
25792  ac_status=$?
25793  grep -v '^ *+' conftest.er1 >conftest.err
25794  rm -f conftest.er1
25795  cat conftest.err >&5
25796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797  (exit $ac_status); } &&
25798	 { ac_try='test -z "$ac_c_werror_flag"
25799			 || test ! -s conftest.err'
25800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801  (eval $ac_try) 2>&5
25802  ac_status=$?
25803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804  (exit $ac_status); }; } &&
25805	 { ac_try='test -s conftest.$ac_objext'
25806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807  (eval $ac_try) 2>&5
25808  ac_status=$?
25809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810  (exit $ac_status); }; }; then
25811  eval "$as_ac_Header=yes"
25812else
25813  echo "$as_me: failed program was:" >&5
25814sed 's/^/| /' conftest.$ac_ext >&5
25815
25816eval "$as_ac_Header=no"
25817fi
25818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25819fi
25820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25822if test `eval echo '${'$as_ac_Header'}'` = yes; then
25823  cat >>confdefs.h <<_ACEOF
25824#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25825_ACEOF
25826
25827ac_header_dirent=$ac_hdr; break
25828fi
25829
25830done
25831# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25832if test $ac_header_dirent = dirent.h; then
25833  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25834echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25835if test "${ac_cv_search_opendir+set}" = set; then
25836  echo $ECHO_N "(cached) $ECHO_C" >&6
25837else
25838  ac_func_search_save_LIBS=$LIBS
25839ac_cv_search_opendir=no
25840cat >conftest.$ac_ext <<_ACEOF
25841/* confdefs.h.  */
25842_ACEOF
25843cat confdefs.h >>conftest.$ac_ext
25844cat >>conftest.$ac_ext <<_ACEOF
25845/* end confdefs.h.  */
25846
25847/* Override any gcc2 internal prototype to avoid an error.  */
25848#ifdef __cplusplus
25849extern "C"
25850#endif
25851/* We use char because int might match the return type of a gcc2
25852   builtin and then its argument prototype would still apply.  */
25853char opendir ();
25854int
25855main ()
25856{
25857opendir ();
25858  ;
25859  return 0;
25860}
25861_ACEOF
25862rm -f conftest.$ac_objext conftest$ac_exeext
25863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25864  (eval $ac_link) 2>conftest.er1
25865  ac_status=$?
25866  grep -v '^ *+' conftest.er1 >conftest.err
25867  rm -f conftest.er1
25868  cat conftest.err >&5
25869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870  (exit $ac_status); } &&
25871	 { ac_try='test -z "$ac_c_werror_flag"
25872			 || test ! -s conftest.err'
25873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874  (eval $ac_try) 2>&5
25875  ac_status=$?
25876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877  (exit $ac_status); }; } &&
25878	 { ac_try='test -s conftest$ac_exeext'
25879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880  (eval $ac_try) 2>&5
25881  ac_status=$?
25882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883  (exit $ac_status); }; }; then
25884  ac_cv_search_opendir="none required"
25885else
25886  echo "$as_me: failed program was:" >&5
25887sed 's/^/| /' conftest.$ac_ext >&5
25888
25889fi
25890rm -f conftest.err conftest.$ac_objext \
25891      conftest$ac_exeext conftest.$ac_ext
25892if test "$ac_cv_search_opendir" = no; then
25893  for ac_lib in dir; do
25894    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25895    cat >conftest.$ac_ext <<_ACEOF
25896/* confdefs.h.  */
25897_ACEOF
25898cat confdefs.h >>conftest.$ac_ext
25899cat >>conftest.$ac_ext <<_ACEOF
25900/* end confdefs.h.  */
25901
25902/* Override any gcc2 internal prototype to avoid an error.  */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906/* We use char because int might match the return type of a gcc2
25907   builtin and then its argument prototype would still apply.  */
25908char opendir ();
25909int
25910main ()
25911{
25912opendir ();
25913  ;
25914  return 0;
25915}
25916_ACEOF
25917rm -f conftest.$ac_objext conftest$ac_exeext
25918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25919  (eval $ac_link) 2>conftest.er1
25920  ac_status=$?
25921  grep -v '^ *+' conftest.er1 >conftest.err
25922  rm -f conftest.er1
25923  cat conftest.err >&5
25924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925  (exit $ac_status); } &&
25926	 { ac_try='test -z "$ac_c_werror_flag"
25927			 || test ! -s conftest.err'
25928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25929  (eval $ac_try) 2>&5
25930  ac_status=$?
25931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932  (exit $ac_status); }; } &&
25933	 { ac_try='test -s conftest$ac_exeext'
25934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25935  (eval $ac_try) 2>&5
25936  ac_status=$?
25937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938  (exit $ac_status); }; }; then
25939  ac_cv_search_opendir="-l$ac_lib"
25940break
25941else
25942  echo "$as_me: failed program was:" >&5
25943sed 's/^/| /' conftest.$ac_ext >&5
25944
25945fi
25946rm -f conftest.err conftest.$ac_objext \
25947      conftest$ac_exeext conftest.$ac_ext
25948  done
25949fi
25950LIBS=$ac_func_search_save_LIBS
25951fi
25952echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25953echo "${ECHO_T}$ac_cv_search_opendir" >&6
25954if test "$ac_cv_search_opendir" != no; then
25955  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25956
25957fi
25958
25959else
25960  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25961echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25962if test "${ac_cv_search_opendir+set}" = set; then
25963  echo $ECHO_N "(cached) $ECHO_C" >&6
25964else
25965  ac_func_search_save_LIBS=$LIBS
25966ac_cv_search_opendir=no
25967cat >conftest.$ac_ext <<_ACEOF
25968/* confdefs.h.  */
25969_ACEOF
25970cat confdefs.h >>conftest.$ac_ext
25971cat >>conftest.$ac_ext <<_ACEOF
25972/* end confdefs.h.  */
25973
25974/* Override any gcc2 internal prototype to avoid an error.  */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978/* We use char because int might match the return type of a gcc2
25979   builtin and then its argument prototype would still apply.  */
25980char opendir ();
25981int
25982main ()
25983{
25984opendir ();
25985  ;
25986  return 0;
25987}
25988_ACEOF
25989rm -f conftest.$ac_objext conftest$ac_exeext
25990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25991  (eval $ac_link) 2>conftest.er1
25992  ac_status=$?
25993  grep -v '^ *+' conftest.er1 >conftest.err
25994  rm -f conftest.er1
25995  cat conftest.err >&5
25996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997  (exit $ac_status); } &&
25998	 { ac_try='test -z "$ac_c_werror_flag"
25999			 || test ! -s conftest.err'
26000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26001  (eval $ac_try) 2>&5
26002  ac_status=$?
26003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004  (exit $ac_status); }; } &&
26005	 { ac_try='test -s conftest$ac_exeext'
26006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26007  (eval $ac_try) 2>&5
26008  ac_status=$?
26009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010  (exit $ac_status); }; }; then
26011  ac_cv_search_opendir="none required"
26012else
26013  echo "$as_me: failed program was:" >&5
26014sed 's/^/| /' conftest.$ac_ext >&5
26015
26016fi
26017rm -f conftest.err conftest.$ac_objext \
26018      conftest$ac_exeext conftest.$ac_ext
26019if test "$ac_cv_search_opendir" = no; then
26020  for ac_lib in x; do
26021    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26022    cat >conftest.$ac_ext <<_ACEOF
26023/* confdefs.h.  */
26024_ACEOF
26025cat confdefs.h >>conftest.$ac_ext
26026cat >>conftest.$ac_ext <<_ACEOF
26027/* end confdefs.h.  */
26028
26029/* Override any gcc2 internal prototype to avoid an error.  */
26030#ifdef __cplusplus
26031extern "C"
26032#endif
26033/* We use char because int might match the return type of a gcc2
26034   builtin and then its argument prototype would still apply.  */
26035char opendir ();
26036int
26037main ()
26038{
26039opendir ();
26040  ;
26041  return 0;
26042}
26043_ACEOF
26044rm -f conftest.$ac_objext conftest$ac_exeext
26045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046  (eval $ac_link) 2>conftest.er1
26047  ac_status=$?
26048  grep -v '^ *+' conftest.er1 >conftest.err
26049  rm -f conftest.er1
26050  cat conftest.err >&5
26051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052  (exit $ac_status); } &&
26053	 { ac_try='test -z "$ac_c_werror_flag"
26054			 || test ! -s conftest.err'
26055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056  (eval $ac_try) 2>&5
26057  ac_status=$?
26058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059  (exit $ac_status); }; } &&
26060	 { ac_try='test -s conftest$ac_exeext'
26061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062  (eval $ac_try) 2>&5
26063  ac_status=$?
26064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065  (exit $ac_status); }; }; then
26066  ac_cv_search_opendir="-l$ac_lib"
26067break
26068else
26069  echo "$as_me: failed program was:" >&5
26070sed 's/^/| /' conftest.$ac_ext >&5
26071
26072fi
26073rm -f conftest.err conftest.$ac_objext \
26074      conftest$ac_exeext conftest.$ac_ext
26075  done
26076fi
26077LIBS=$ac_func_search_save_LIBS
26078fi
26079echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26080echo "${ECHO_T}$ac_cv_search_opendir" >&6
26081if test "$ac_cv_search_opendir" != no; then
26082  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26083
26084fi
26085
26086fi
26087
26088echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26089echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26090if test "${ac_cv_header_mmap_anon+set}" = set; then
26091  echo $ECHO_N "(cached) $ECHO_C" >&6
26092else
26093   ac_ext=c
26094ac_cpp='$CPP $CPPFLAGS'
26095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26097ac_compiler_gnu=$ac_cv_c_compiler_gnu
26098
26099  cat >conftest.$ac_ext <<_ACEOF
26100/* confdefs.h.  */
26101_ACEOF
26102cat confdefs.h >>conftest.$ac_ext
26103cat >>conftest.$ac_ext <<_ACEOF
26104/* end confdefs.h.  */
26105#include <sys/mman.h>
26106#include <unistd.h>
26107#include <fcntl.h>
26108int
26109main ()
26110{
26111mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26112  ;
26113  return 0;
26114}
26115_ACEOF
26116rm -f conftest.$ac_objext
26117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118  (eval $ac_compile) 2>conftest.er1
26119  ac_status=$?
26120  grep -v '^ *+' conftest.er1 >conftest.err
26121  rm -f conftest.er1
26122  cat conftest.err >&5
26123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124  (exit $ac_status); } &&
26125	 { ac_try='test -z "$ac_c_werror_flag"
26126			 || test ! -s conftest.err'
26127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128  (eval $ac_try) 2>&5
26129  ac_status=$?
26130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131  (exit $ac_status); }; } &&
26132	 { ac_try='test -s conftest.$ac_objext'
26133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26134  (eval $ac_try) 2>&5
26135  ac_status=$?
26136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137  (exit $ac_status); }; }; then
26138  ac_cv_header_mmap_anon=yes
26139else
26140  echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143ac_cv_header_mmap_anon=no
26144fi
26145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26146  ac_ext=c
26147ac_cpp='$CPP $CPPFLAGS'
26148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150ac_compiler_gnu=$ac_cv_c_compiler_gnu
26151
26152
26153fi
26154echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26155echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26156if test "$ac_cv_header_mmap_anon" = yes; then
26157
26158cat >>confdefs.h <<\_ACEOF
26159#define HAVE_MMAP_ANONYMOUS 1
26160_ACEOF
26161
26162fi
26163
26164echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26165echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26166if test "${ac_cv_header_stat_broken+set}" = set; then
26167  echo $ECHO_N "(cached) $ECHO_C" >&6
26168else
26169  cat >conftest.$ac_ext <<_ACEOF
26170/* confdefs.h.  */
26171_ACEOF
26172cat confdefs.h >>conftest.$ac_ext
26173cat >>conftest.$ac_ext <<_ACEOF
26174/* end confdefs.h.  */
26175#include <sys/types.h>
26176#include <sys/stat.h>
26177
26178#if defined(S_ISBLK) && defined(S_IFDIR)
26179# if S_ISBLK (S_IFDIR)
26180You lose.
26181# endif
26182#endif
26183
26184#if defined(S_ISBLK) && defined(S_IFCHR)
26185# if S_ISBLK (S_IFCHR)
26186You lose.
26187# endif
26188#endif
26189
26190#if defined(S_ISLNK) && defined(S_IFREG)
26191# if S_ISLNK (S_IFREG)
26192You lose.
26193# endif
26194#endif
26195
26196#if defined(S_ISSOCK) && defined(S_IFREG)
26197# if S_ISSOCK (S_IFREG)
26198You lose.
26199# endif
26200#endif
26201
26202_ACEOF
26203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26204  $EGREP "You lose" >/dev/null 2>&1; then
26205  ac_cv_header_stat_broken=yes
26206else
26207  ac_cv_header_stat_broken=no
26208fi
26209rm -f conftest*
26210
26211fi
26212echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26213echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26214if test $ac_cv_header_stat_broken = yes; then
26215
26216cat >>confdefs.h <<\_ACEOF
26217#define STAT_MACROS_BROKEN 1
26218_ACEOF
26219
26220fi
26221
26222echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26223echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26224if test "${ac_cv_header_stdc+set}" = set; then
26225  echo $ECHO_N "(cached) $ECHO_C" >&6
26226else
26227  cat >conftest.$ac_ext <<_ACEOF
26228/* confdefs.h.  */
26229_ACEOF
26230cat confdefs.h >>conftest.$ac_ext
26231cat >>conftest.$ac_ext <<_ACEOF
26232/* end confdefs.h.  */
26233#include <stdlib.h>
26234#include <stdarg.h>
26235#include <string.h>
26236#include <float.h>
26237
26238int
26239main ()
26240{
26241
26242  ;
26243  return 0;
26244}
26245_ACEOF
26246rm -f conftest.$ac_objext
26247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26248  (eval $ac_compile) 2>conftest.er1
26249  ac_status=$?
26250  grep -v '^ *+' conftest.er1 >conftest.err
26251  rm -f conftest.er1
26252  cat conftest.err >&5
26253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254  (exit $ac_status); } &&
26255	 { ac_try='test -z "$ac_c_werror_flag"
26256			 || test ! -s conftest.err'
26257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258  (eval $ac_try) 2>&5
26259  ac_status=$?
26260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261  (exit $ac_status); }; } &&
26262	 { ac_try='test -s conftest.$ac_objext'
26263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26264  (eval $ac_try) 2>&5
26265  ac_status=$?
26266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267  (exit $ac_status); }; }; then
26268  ac_cv_header_stdc=yes
26269else
26270  echo "$as_me: failed program was:" >&5
26271sed 's/^/| /' conftest.$ac_ext >&5
26272
26273ac_cv_header_stdc=no
26274fi
26275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26276
26277if test $ac_cv_header_stdc = yes; then
26278  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26279  cat >conftest.$ac_ext <<_ACEOF
26280/* confdefs.h.  */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h.  */
26285#include <string.h>
26286
26287_ACEOF
26288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289  $EGREP "memchr" >/dev/null 2>&1; then
26290  :
26291else
26292  ac_cv_header_stdc=no
26293fi
26294rm -f conftest*
26295
26296fi
26297
26298if test $ac_cv_header_stdc = yes; then
26299  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26300  cat >conftest.$ac_ext <<_ACEOF
26301/* confdefs.h.  */
26302_ACEOF
26303cat confdefs.h >>conftest.$ac_ext
26304cat >>conftest.$ac_ext <<_ACEOF
26305/* end confdefs.h.  */
26306#include <stdlib.h>
26307
26308_ACEOF
26309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26310  $EGREP "free" >/dev/null 2>&1; then
26311  :
26312else
26313  ac_cv_header_stdc=no
26314fi
26315rm -f conftest*
26316
26317fi
26318
26319if test $ac_cv_header_stdc = yes; then
26320  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26321  if test "$cross_compiling" = yes; then
26322  :
26323else
26324  cat >conftest.$ac_ext <<_ACEOF
26325/* confdefs.h.  */
26326_ACEOF
26327cat confdefs.h >>conftest.$ac_ext
26328cat >>conftest.$ac_ext <<_ACEOF
26329/* end confdefs.h.  */
26330#include <ctype.h>
26331#if ((' ' & 0x0FF) == 0x020)
26332# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26333# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26334#else
26335# define ISLOWER(c) \
26336		   (('a' <= (c) && (c) <= 'i') \
26337		     || ('j' <= (c) && (c) <= 'r') \
26338		     || ('s' <= (c) && (c) <= 'z'))
26339# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26340#endif
26341
26342#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26343int
26344main ()
26345{
26346  int i;
26347  for (i = 0; i < 256; i++)
26348    if (XOR (islower (i), ISLOWER (i))
26349	|| toupper (i) != TOUPPER (i))
26350      exit(2);
26351  exit (0);
26352}
26353_ACEOF
26354rm -f conftest$ac_exeext
26355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26356  (eval $ac_link) 2>&5
26357  ac_status=$?
26358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361  (eval $ac_try) 2>&5
26362  ac_status=$?
26363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364  (exit $ac_status); }; }; then
26365  :
26366else
26367  echo "$as_me: program exited with status $ac_status" >&5
26368echo "$as_me: failed program was:" >&5
26369sed 's/^/| /' conftest.$ac_ext >&5
26370
26371( exit $ac_status )
26372ac_cv_header_stdc=no
26373fi
26374rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26375fi
26376fi
26377fi
26378echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26379echo "${ECHO_T}$ac_cv_header_stdc" >&6
26380if test $ac_cv_header_stdc = yes; then
26381
26382cat >>confdefs.h <<\_ACEOF
26383#define STDC_HEADERS 1
26384_ACEOF
26385
26386fi
26387
26388echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26389echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26390if test "${ac_cv_header_sys_wait_h+set}" = set; then
26391  echo $ECHO_N "(cached) $ECHO_C" >&6
26392else
26393  cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h.  */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h.  */
26399#include <sys/types.h>
26400#include <sys/wait.h>
26401#ifndef WEXITSTATUS
26402# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26403#endif
26404#ifndef WIFEXITED
26405# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26406#endif
26407
26408int
26409main ()
26410{
26411  int s;
26412  wait (&s);
26413  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26414  ;
26415  return 0;
26416}
26417_ACEOF
26418rm -f conftest.$ac_objext
26419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26420  (eval $ac_compile) 2>conftest.er1
26421  ac_status=$?
26422  grep -v '^ *+' conftest.er1 >conftest.err
26423  rm -f conftest.er1
26424  cat conftest.err >&5
26425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426  (exit $ac_status); } &&
26427	 { ac_try='test -z "$ac_c_werror_flag"
26428			 || test ! -s conftest.err'
26429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430  (eval $ac_try) 2>&5
26431  ac_status=$?
26432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433  (exit $ac_status); }; } &&
26434	 { ac_try='test -s conftest.$ac_objext'
26435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436  (eval $ac_try) 2>&5
26437  ac_status=$?
26438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439  (exit $ac_status); }; }; then
26440  ac_cv_header_sys_wait_h=yes
26441else
26442  echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445ac_cv_header_sys_wait_h=no
26446fi
26447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26448fi
26449echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26450echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26451if test $ac_cv_header_sys_wait_h = yes; then
26452
26453cat >>confdefs.h <<\_ACEOF
26454#define HAVE_SYS_WAIT_H 1
26455_ACEOF
26456
26457fi
26458
26459echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26460echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26461if test "${ac_cv_header_time+set}" = set; then
26462  echo $ECHO_N "(cached) $ECHO_C" >&6
26463else
26464  cat >conftest.$ac_ext <<_ACEOF
26465/* confdefs.h.  */
26466_ACEOF
26467cat confdefs.h >>conftest.$ac_ext
26468cat >>conftest.$ac_ext <<_ACEOF
26469/* end confdefs.h.  */
26470#include <sys/types.h>
26471#include <sys/time.h>
26472#include <time.h>
26473
26474int
26475main ()
26476{
26477if ((struct tm *) 0)
26478return 0;
26479  ;
26480  return 0;
26481}
26482_ACEOF
26483rm -f conftest.$ac_objext
26484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26485  (eval $ac_compile) 2>conftest.er1
26486  ac_status=$?
26487  grep -v '^ *+' conftest.er1 >conftest.err
26488  rm -f conftest.er1
26489  cat conftest.err >&5
26490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491  (exit $ac_status); } &&
26492	 { ac_try='test -z "$ac_c_werror_flag"
26493			 || test ! -s conftest.err'
26494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495  (eval $ac_try) 2>&5
26496  ac_status=$?
26497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498  (exit $ac_status); }; } &&
26499	 { ac_try='test -s conftest.$ac_objext'
26500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501  (eval $ac_try) 2>&5
26502  ac_status=$?
26503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504  (exit $ac_status); }; }; then
26505  ac_cv_header_time=yes
26506else
26507  echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510ac_cv_header_time=no
26511fi
26512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26513fi
26514echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26515echo "${ECHO_T}$ac_cv_header_time" >&6
26516if test $ac_cv_header_time = yes; then
26517
26518cat >>confdefs.h <<\_ACEOF
26519#define TIME_WITH_SYS_TIME 1
26520_ACEOF
26521
26522fi
26523
26524
26525
26526
26527
26528
26529
26530
26531for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26532do
26533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26534if eval "test \"\${$as_ac_Header+set}\" = set"; then
26535  echo "$as_me:$LINENO: checking for $ac_header" >&5
26536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26537if eval "test \"\${$as_ac_Header+set}\" = set"; then
26538  echo $ECHO_N "(cached) $ECHO_C" >&6
26539fi
26540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26542else
26543  # Is the header compilable?
26544echo "$as_me:$LINENO: checking $ac_header usability" >&5
26545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26546cat >conftest.$ac_ext <<_ACEOF
26547/* confdefs.h.  */
26548_ACEOF
26549cat confdefs.h >>conftest.$ac_ext
26550cat >>conftest.$ac_ext <<_ACEOF
26551/* end confdefs.h.  */
26552$ac_includes_default
26553#include <$ac_header>
26554_ACEOF
26555rm -f conftest.$ac_objext
26556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557  (eval $ac_compile) 2>conftest.er1
26558  ac_status=$?
26559  grep -v '^ *+' conftest.er1 >conftest.err
26560  rm -f conftest.er1
26561  cat conftest.err >&5
26562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563  (exit $ac_status); } &&
26564	 { ac_try='test -z "$ac_c_werror_flag"
26565			 || test ! -s conftest.err'
26566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567  (eval $ac_try) 2>&5
26568  ac_status=$?
26569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570  (exit $ac_status); }; } &&
26571	 { ac_try='test -s conftest.$ac_objext'
26572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573  (eval $ac_try) 2>&5
26574  ac_status=$?
26575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576  (exit $ac_status); }; }; then
26577  ac_header_compiler=yes
26578else
26579  echo "$as_me: failed program was:" >&5
26580sed 's/^/| /' conftest.$ac_ext >&5
26581
26582ac_header_compiler=no
26583fi
26584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26586echo "${ECHO_T}$ac_header_compiler" >&6
26587
26588# Is the header present?
26589echo "$as_me:$LINENO: checking $ac_header presence" >&5
26590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26591cat >conftest.$ac_ext <<_ACEOF
26592/* confdefs.h.  */
26593_ACEOF
26594cat confdefs.h >>conftest.$ac_ext
26595cat >>conftest.$ac_ext <<_ACEOF
26596/* end confdefs.h.  */
26597#include <$ac_header>
26598_ACEOF
26599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26600  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26601  ac_status=$?
26602  grep -v '^ *+' conftest.er1 >conftest.err
26603  rm -f conftest.er1
26604  cat conftest.err >&5
26605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606  (exit $ac_status); } >/dev/null; then
26607  if test -s conftest.err; then
26608    ac_cpp_err=$ac_c_preproc_warn_flag
26609    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26610  else
26611    ac_cpp_err=
26612  fi
26613else
26614  ac_cpp_err=yes
26615fi
26616if test -z "$ac_cpp_err"; then
26617  ac_header_preproc=yes
26618else
26619  echo "$as_me: failed program was:" >&5
26620sed 's/^/| /' conftest.$ac_ext >&5
26621
26622  ac_header_preproc=no
26623fi
26624rm -f conftest.err conftest.$ac_ext
26625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26626echo "${ECHO_T}$ac_header_preproc" >&6
26627
26628# So?  What about this header?
26629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26630  yes:no: )
26631    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26635    ac_header_preproc=yes
26636    ;;
26637  no:yes:* )
26638    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26640    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26641echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26642    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26644    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26645echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26648    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26650    (
26651      cat <<\_ASBOX
26652## ----------------------------------- ##
26653## Report this to llvmbugs@cs.uiuc.edu ##
26654## ----------------------------------- ##
26655_ASBOX
26656    ) |
26657      sed "s/^/$as_me: WARNING:     /" >&2
26658    ;;
26659esac
26660echo "$as_me:$LINENO: checking for $ac_header" >&5
26661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26662if eval "test \"\${$as_ac_Header+set}\" = set"; then
26663  echo $ECHO_N "(cached) $ECHO_C" >&6
26664else
26665  eval "$as_ac_Header=\$ac_header_preproc"
26666fi
26667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26669
26670fi
26671if test `eval echo '${'$as_ac_Header'}'` = yes; then
26672  cat >>confdefs.h <<_ACEOF
26673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26674_ACEOF
26675
26676fi
26677
26678done
26679
26680
26681
26682
26683
26684
26685
26686for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26687do
26688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26689if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690  echo "$as_me:$LINENO: checking for $ac_header" >&5
26691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26692if eval "test \"\${$as_ac_Header+set}\" = set"; then
26693  echo $ECHO_N "(cached) $ECHO_C" >&6
26694fi
26695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26697else
26698  # Is the header compilable?
26699echo "$as_me:$LINENO: checking $ac_header usability" >&5
26700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26701cat >conftest.$ac_ext <<_ACEOF
26702/* confdefs.h.  */
26703_ACEOF
26704cat confdefs.h >>conftest.$ac_ext
26705cat >>conftest.$ac_ext <<_ACEOF
26706/* end confdefs.h.  */
26707$ac_includes_default
26708#include <$ac_header>
26709_ACEOF
26710rm -f conftest.$ac_objext
26711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26712  (eval $ac_compile) 2>conftest.er1
26713  ac_status=$?
26714  grep -v '^ *+' conftest.er1 >conftest.err
26715  rm -f conftest.er1
26716  cat conftest.err >&5
26717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718  (exit $ac_status); } &&
26719	 { ac_try='test -z "$ac_c_werror_flag"
26720			 || test ! -s conftest.err'
26721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722  (eval $ac_try) 2>&5
26723  ac_status=$?
26724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725  (exit $ac_status); }; } &&
26726	 { ac_try='test -s conftest.$ac_objext'
26727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728  (eval $ac_try) 2>&5
26729  ac_status=$?
26730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731  (exit $ac_status); }; }; then
26732  ac_header_compiler=yes
26733else
26734  echo "$as_me: failed program was:" >&5
26735sed 's/^/| /' conftest.$ac_ext >&5
26736
26737ac_header_compiler=no
26738fi
26739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26740echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741echo "${ECHO_T}$ac_header_compiler" >&6
26742
26743# Is the header present?
26744echo "$as_me:$LINENO: checking $ac_header presence" >&5
26745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26746cat >conftest.$ac_ext <<_ACEOF
26747/* confdefs.h.  */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h.  */
26752#include <$ac_header>
26753_ACEOF
26754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26756  ac_status=$?
26757  grep -v '^ *+' conftest.er1 >conftest.err
26758  rm -f conftest.er1
26759  cat conftest.err >&5
26760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761  (exit $ac_status); } >/dev/null; then
26762  if test -s conftest.err; then
26763    ac_cpp_err=$ac_c_preproc_warn_flag
26764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26765  else
26766    ac_cpp_err=
26767  fi
26768else
26769  ac_cpp_err=yes
26770fi
26771if test -z "$ac_cpp_err"; then
26772  ac_header_preproc=yes
26773else
26774  echo "$as_me: failed program was:" >&5
26775sed 's/^/| /' conftest.$ac_ext >&5
26776
26777  ac_header_preproc=no
26778fi
26779rm -f conftest.err conftest.$ac_ext
26780echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781echo "${ECHO_T}$ac_header_preproc" >&6
26782
26783# So?  What about this header?
26784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26785  yes:no: )
26786    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26788    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26790    ac_header_preproc=yes
26791    ;;
26792  no:yes:* )
26793    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26795    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26796echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26797    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26799    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26800echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26803    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26805    (
26806      cat <<\_ASBOX
26807## ----------------------------------- ##
26808## Report this to llvmbugs@cs.uiuc.edu ##
26809## ----------------------------------- ##
26810_ASBOX
26811    ) |
26812      sed "s/^/$as_me: WARNING:     /" >&2
26813    ;;
26814esac
26815echo "$as_me:$LINENO: checking for $ac_header" >&5
26816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817if eval "test \"\${$as_ac_Header+set}\" = set"; then
26818  echo $ECHO_N "(cached) $ECHO_C" >&6
26819else
26820  eval "$as_ac_Header=\$ac_header_preproc"
26821fi
26822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26824
26825fi
26826if test `eval echo '${'$as_ac_Header'}'` = yes; then
26827  cat >>confdefs.h <<_ACEOF
26828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26829_ACEOF
26830
26831fi
26832
26833done
26834
26835
26836
26837
26838
26839
26840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26841do
26842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26843if eval "test \"\${$as_ac_Header+set}\" = set"; then
26844  echo "$as_me:$LINENO: checking for $ac_header" >&5
26845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26846if eval "test \"\${$as_ac_Header+set}\" = set"; then
26847  echo $ECHO_N "(cached) $ECHO_C" >&6
26848fi
26849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26851else
26852  # Is the header compilable?
26853echo "$as_me:$LINENO: checking $ac_header usability" >&5
26854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26855cat >conftest.$ac_ext <<_ACEOF
26856/* confdefs.h.  */
26857_ACEOF
26858cat confdefs.h >>conftest.$ac_ext
26859cat >>conftest.$ac_ext <<_ACEOF
26860/* end confdefs.h.  */
26861$ac_includes_default
26862#include <$ac_header>
26863_ACEOF
26864rm -f conftest.$ac_objext
26865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866  (eval $ac_compile) 2>conftest.er1
26867  ac_status=$?
26868  grep -v '^ *+' conftest.er1 >conftest.err
26869  rm -f conftest.er1
26870  cat conftest.err >&5
26871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872  (exit $ac_status); } &&
26873	 { ac_try='test -z "$ac_c_werror_flag"
26874			 || test ! -s conftest.err'
26875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876  (eval $ac_try) 2>&5
26877  ac_status=$?
26878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879  (exit $ac_status); }; } &&
26880	 { ac_try='test -s conftest.$ac_objext'
26881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882  (eval $ac_try) 2>&5
26883  ac_status=$?
26884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885  (exit $ac_status); }; }; then
26886  ac_header_compiler=yes
26887else
26888  echo "$as_me: failed program was:" >&5
26889sed 's/^/| /' conftest.$ac_ext >&5
26890
26891ac_header_compiler=no
26892fi
26893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26895echo "${ECHO_T}$ac_header_compiler" >&6
26896
26897# Is the header present?
26898echo "$as_me:$LINENO: checking $ac_header presence" >&5
26899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26900cat >conftest.$ac_ext <<_ACEOF
26901/* confdefs.h.  */
26902_ACEOF
26903cat confdefs.h >>conftest.$ac_ext
26904cat >>conftest.$ac_ext <<_ACEOF
26905/* end confdefs.h.  */
26906#include <$ac_header>
26907_ACEOF
26908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26909  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26910  ac_status=$?
26911  grep -v '^ *+' conftest.er1 >conftest.err
26912  rm -f conftest.er1
26913  cat conftest.err >&5
26914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915  (exit $ac_status); } >/dev/null; then
26916  if test -s conftest.err; then
26917    ac_cpp_err=$ac_c_preproc_warn_flag
26918    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26919  else
26920    ac_cpp_err=
26921  fi
26922else
26923  ac_cpp_err=yes
26924fi
26925if test -z "$ac_cpp_err"; then
26926  ac_header_preproc=yes
26927else
26928  echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931  ac_header_preproc=no
26932fi
26933rm -f conftest.err conftest.$ac_ext
26934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26935echo "${ECHO_T}$ac_header_preproc" >&6
26936
26937# So?  What about this header?
26938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26939  yes:no: )
26940    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26942    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26944    ac_header_preproc=yes
26945    ;;
26946  no:yes:* )
26947    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26949    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26950echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26951    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26953    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26954echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26957    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26959    (
26960      cat <<\_ASBOX
26961## ----------------------------------- ##
26962## Report this to llvmbugs@cs.uiuc.edu ##
26963## ----------------------------------- ##
26964_ASBOX
26965    ) |
26966      sed "s/^/$as_me: WARNING:     /" >&2
26967    ;;
26968esac
26969echo "$as_me:$LINENO: checking for $ac_header" >&5
26970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26971if eval "test \"\${$as_ac_Header+set}\" = set"; then
26972  echo $ECHO_N "(cached) $ECHO_C" >&6
26973else
26974  eval "$as_ac_Header=\$ac_header_preproc"
26975fi
26976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26978
26979fi
26980if test `eval echo '${'$as_ac_Header'}'` = yes; then
26981  cat >>confdefs.h <<_ACEOF
26982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26983_ACEOF
26984
26985fi
26986
26987done
26988
26989
26990for ac_header in malloc/malloc.h
26991do
26992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26993if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994  echo "$as_me:$LINENO: checking for $ac_header" >&5
26995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26996if eval "test \"\${$as_ac_Header+set}\" = set"; then
26997  echo $ECHO_N "(cached) $ECHO_C" >&6
26998fi
26999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27001else
27002  # Is the header compilable?
27003echo "$as_me:$LINENO: checking $ac_header usability" >&5
27004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27005cat >conftest.$ac_ext <<_ACEOF
27006/* confdefs.h.  */
27007_ACEOF
27008cat confdefs.h >>conftest.$ac_ext
27009cat >>conftest.$ac_ext <<_ACEOF
27010/* end confdefs.h.  */
27011$ac_includes_default
27012#include <$ac_header>
27013_ACEOF
27014rm -f conftest.$ac_objext
27015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27016  (eval $ac_compile) 2>conftest.er1
27017  ac_status=$?
27018  grep -v '^ *+' conftest.er1 >conftest.err
27019  rm -f conftest.er1
27020  cat conftest.err >&5
27021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022  (exit $ac_status); } &&
27023	 { ac_try='test -z "$ac_c_werror_flag"
27024			 || test ! -s conftest.err'
27025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026  (eval $ac_try) 2>&5
27027  ac_status=$?
27028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029  (exit $ac_status); }; } &&
27030	 { ac_try='test -s conftest.$ac_objext'
27031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032  (eval $ac_try) 2>&5
27033  ac_status=$?
27034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035  (exit $ac_status); }; }; then
27036  ac_header_compiler=yes
27037else
27038  echo "$as_me: failed program was:" >&5
27039sed 's/^/| /' conftest.$ac_ext >&5
27040
27041ac_header_compiler=no
27042fi
27043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27045echo "${ECHO_T}$ac_header_compiler" >&6
27046
27047# Is the header present?
27048echo "$as_me:$LINENO: checking $ac_header presence" >&5
27049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27050cat >conftest.$ac_ext <<_ACEOF
27051/* confdefs.h.  */
27052_ACEOF
27053cat confdefs.h >>conftest.$ac_ext
27054cat >>conftest.$ac_ext <<_ACEOF
27055/* end confdefs.h.  */
27056#include <$ac_header>
27057_ACEOF
27058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27060  ac_status=$?
27061  grep -v '^ *+' conftest.er1 >conftest.err
27062  rm -f conftest.er1
27063  cat conftest.err >&5
27064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065  (exit $ac_status); } >/dev/null; then
27066  if test -s conftest.err; then
27067    ac_cpp_err=$ac_c_preproc_warn_flag
27068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27069  else
27070    ac_cpp_err=
27071  fi
27072else
27073  ac_cpp_err=yes
27074fi
27075if test -z "$ac_cpp_err"; then
27076  ac_header_preproc=yes
27077else
27078  echo "$as_me: failed program was:" >&5
27079sed 's/^/| /' conftest.$ac_ext >&5
27080
27081  ac_header_preproc=no
27082fi
27083rm -f conftest.err conftest.$ac_ext
27084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27085echo "${ECHO_T}$ac_header_preproc" >&6
27086
27087# So?  What about this header?
27088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27089  yes:no: )
27090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27094    ac_header_preproc=yes
27095    ;;
27096  no:yes:* )
27097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27109    (
27110      cat <<\_ASBOX
27111## ----------------------------------- ##
27112## Report this to llvmbugs@cs.uiuc.edu ##
27113## ----------------------------------- ##
27114_ASBOX
27115    ) |
27116      sed "s/^/$as_me: WARNING:     /" >&2
27117    ;;
27118esac
27119echo "$as_me:$LINENO: checking for $ac_header" >&5
27120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27121if eval "test \"\${$as_ac_Header+set}\" = set"; then
27122  echo $ECHO_N "(cached) $ECHO_C" >&6
27123else
27124  eval "$as_ac_Header=\$ac_header_preproc"
27125fi
27126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27128
27129fi
27130if test `eval echo '${'$as_ac_Header'}'` = yes; then
27131  cat >>confdefs.h <<_ACEOF
27132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27133_ACEOF
27134
27135fi
27136
27137done
27138
27139if test "$ENABLE_THREADS" -eq 1 ; then
27140
27141for ac_header in pthread.h
27142do
27143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27144if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145  echo "$as_me:$LINENO: checking for $ac_header" >&5
27146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27147if eval "test \"\${$as_ac_Header+set}\" = set"; then
27148  echo $ECHO_N "(cached) $ECHO_C" >&6
27149fi
27150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27152else
27153  # Is the header compilable?
27154echo "$as_me:$LINENO: checking $ac_header usability" >&5
27155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27156cat >conftest.$ac_ext <<_ACEOF
27157/* confdefs.h.  */
27158_ACEOF
27159cat confdefs.h >>conftest.$ac_ext
27160cat >>conftest.$ac_ext <<_ACEOF
27161/* end confdefs.h.  */
27162$ac_includes_default
27163#include <$ac_header>
27164_ACEOF
27165rm -f conftest.$ac_objext
27166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27167  (eval $ac_compile) 2>conftest.er1
27168  ac_status=$?
27169  grep -v '^ *+' conftest.er1 >conftest.err
27170  rm -f conftest.er1
27171  cat conftest.err >&5
27172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173  (exit $ac_status); } &&
27174	 { ac_try='test -z "$ac_c_werror_flag"
27175			 || test ! -s conftest.err'
27176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27177  (eval $ac_try) 2>&5
27178  ac_status=$?
27179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180  (exit $ac_status); }; } &&
27181	 { ac_try='test -s conftest.$ac_objext'
27182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183  (eval $ac_try) 2>&5
27184  ac_status=$?
27185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186  (exit $ac_status); }; }; then
27187  ac_header_compiler=yes
27188else
27189  echo "$as_me: failed program was:" >&5
27190sed 's/^/| /' conftest.$ac_ext >&5
27191
27192ac_header_compiler=no
27193fi
27194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27196echo "${ECHO_T}$ac_header_compiler" >&6
27197
27198# Is the header present?
27199echo "$as_me:$LINENO: checking $ac_header presence" >&5
27200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27201cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h.  */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h.  */
27207#include <$ac_header>
27208_ACEOF
27209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27211  ac_status=$?
27212  grep -v '^ *+' conftest.er1 >conftest.err
27213  rm -f conftest.er1
27214  cat conftest.err >&5
27215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216  (exit $ac_status); } >/dev/null; then
27217  if test -s conftest.err; then
27218    ac_cpp_err=$ac_c_preproc_warn_flag
27219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27220  else
27221    ac_cpp_err=
27222  fi
27223else
27224  ac_cpp_err=yes
27225fi
27226if test -z "$ac_cpp_err"; then
27227  ac_header_preproc=yes
27228else
27229  echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
27232  ac_header_preproc=no
27233fi
27234rm -f conftest.err conftest.$ac_ext
27235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27236echo "${ECHO_T}$ac_header_preproc" >&6
27237
27238# So?  What about this header?
27239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27240  yes:no: )
27241    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27245    ac_header_preproc=yes
27246    ;;
27247  no:yes:* )
27248    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27250    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27251echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27252    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27254    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27255echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27256    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27258    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27260    (
27261      cat <<\_ASBOX
27262## ----------------------------------- ##
27263## Report this to llvmbugs@cs.uiuc.edu ##
27264## ----------------------------------- ##
27265_ASBOX
27266    ) |
27267      sed "s/^/$as_me: WARNING:     /" >&2
27268    ;;
27269esac
27270echo "$as_me:$LINENO: checking for $ac_header" >&5
27271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27272if eval "test \"\${$as_ac_Header+set}\" = set"; then
27273  echo $ECHO_N "(cached) $ECHO_C" >&6
27274else
27275  eval "$as_ac_Header=\$ac_header_preproc"
27276fi
27277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27279
27280fi
27281if test `eval echo '${'$as_ac_Header'}'` = yes; then
27282  cat >>confdefs.h <<_ACEOF
27283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27284_ACEOF
27285
27286fi
27287
27288done
27289
27290fi
27291
27292
27293echo "$as_me:$LINENO: checking for pid_t" >&5
27294echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27295if test "${ac_cv_type_pid_t+set}" = set; then
27296  echo $ECHO_N "(cached) $ECHO_C" >&6
27297else
27298  cat >conftest.$ac_ext <<_ACEOF
27299/* confdefs.h.  */
27300_ACEOF
27301cat confdefs.h >>conftest.$ac_ext
27302cat >>conftest.$ac_ext <<_ACEOF
27303/* end confdefs.h.  */
27304$ac_includes_default
27305int
27306main ()
27307{
27308if ((pid_t *) 0)
27309  return 0;
27310if (sizeof (pid_t))
27311  return 0;
27312  ;
27313  return 0;
27314}
27315_ACEOF
27316rm -f conftest.$ac_objext
27317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318  (eval $ac_compile) 2>conftest.er1
27319  ac_status=$?
27320  grep -v '^ *+' conftest.er1 >conftest.err
27321  rm -f conftest.er1
27322  cat conftest.err >&5
27323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324  (exit $ac_status); } &&
27325	 { ac_try='test -z "$ac_c_werror_flag"
27326			 || test ! -s conftest.err'
27327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328  (eval $ac_try) 2>&5
27329  ac_status=$?
27330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331  (exit $ac_status); }; } &&
27332	 { ac_try='test -s conftest.$ac_objext'
27333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334  (eval $ac_try) 2>&5
27335  ac_status=$?
27336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337  (exit $ac_status); }; }; then
27338  ac_cv_type_pid_t=yes
27339else
27340  echo "$as_me: failed program was:" >&5
27341sed 's/^/| /' conftest.$ac_ext >&5
27342
27343ac_cv_type_pid_t=no
27344fi
27345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346fi
27347echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27348echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27349if test $ac_cv_type_pid_t = yes; then
27350  :
27351else
27352
27353cat >>confdefs.h <<_ACEOF
27354#define pid_t int
27355_ACEOF
27356
27357fi
27358
27359echo "$as_me:$LINENO: checking for size_t" >&5
27360echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27361if test "${ac_cv_type_size_t+set}" = set; then
27362  echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364  cat >conftest.$ac_ext <<_ACEOF
27365/* confdefs.h.  */
27366_ACEOF
27367cat confdefs.h >>conftest.$ac_ext
27368cat >>conftest.$ac_ext <<_ACEOF
27369/* end confdefs.h.  */
27370$ac_includes_default
27371int
27372main ()
27373{
27374if ((size_t *) 0)
27375  return 0;
27376if (sizeof (size_t))
27377  return 0;
27378  ;
27379  return 0;
27380}
27381_ACEOF
27382rm -f conftest.$ac_objext
27383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27384  (eval $ac_compile) 2>conftest.er1
27385  ac_status=$?
27386  grep -v '^ *+' conftest.er1 >conftest.err
27387  rm -f conftest.er1
27388  cat conftest.err >&5
27389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390  (exit $ac_status); } &&
27391	 { ac_try='test -z "$ac_c_werror_flag"
27392			 || test ! -s conftest.err'
27393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394  (eval $ac_try) 2>&5
27395  ac_status=$?
27396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397  (exit $ac_status); }; } &&
27398	 { ac_try='test -s conftest.$ac_objext'
27399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400  (eval $ac_try) 2>&5
27401  ac_status=$?
27402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403  (exit $ac_status); }; }; then
27404  ac_cv_type_size_t=yes
27405else
27406  echo "$as_me: failed program was:" >&5
27407sed 's/^/| /' conftest.$ac_ext >&5
27408
27409ac_cv_type_size_t=no
27410fi
27411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412fi
27413echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27414echo "${ECHO_T}$ac_cv_type_size_t" >&6
27415if test $ac_cv_type_size_t = yes; then
27416  :
27417else
27418
27419cat >>confdefs.h <<_ACEOF
27420#define size_t unsigned
27421_ACEOF
27422
27423fi
27424
27425echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27426echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27427if test "${ac_cv_type_signal+set}" = set; then
27428  echo $ECHO_N "(cached) $ECHO_C" >&6
27429else
27430  cat >conftest.$ac_ext <<_ACEOF
27431/* confdefs.h.  */
27432_ACEOF
27433cat confdefs.h >>conftest.$ac_ext
27434cat >>conftest.$ac_ext <<_ACEOF
27435/* end confdefs.h.  */
27436#include <sys/types.h>
27437#include <signal.h>
27438#ifdef signal
27439# undef signal
27440#endif
27441#ifdef __cplusplus
27442extern "C" void (*signal (int, void (*)(int)))(int);
27443#else
27444void (*signal ()) ();
27445#endif
27446
27447int
27448main ()
27449{
27450int i;
27451  ;
27452  return 0;
27453}
27454_ACEOF
27455rm -f conftest.$ac_objext
27456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27457  (eval $ac_compile) 2>conftest.er1
27458  ac_status=$?
27459  grep -v '^ *+' conftest.er1 >conftest.err
27460  rm -f conftest.er1
27461  cat conftest.err >&5
27462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463  (exit $ac_status); } &&
27464	 { ac_try='test -z "$ac_c_werror_flag"
27465			 || test ! -s conftest.err'
27466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467  (eval $ac_try) 2>&5
27468  ac_status=$?
27469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470  (exit $ac_status); }; } &&
27471	 { ac_try='test -s conftest.$ac_objext'
27472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473  (eval $ac_try) 2>&5
27474  ac_status=$?
27475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476  (exit $ac_status); }; }; then
27477  ac_cv_type_signal=void
27478else
27479  echo "$as_me: failed program was:" >&5
27480sed 's/^/| /' conftest.$ac_ext >&5
27481
27482ac_cv_type_signal=int
27483fi
27484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27485fi
27486echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27487echo "${ECHO_T}$ac_cv_type_signal" >&6
27488
27489cat >>confdefs.h <<_ACEOF
27490#define RETSIGTYPE $ac_cv_type_signal
27491_ACEOF
27492
27493
27494echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27495echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27496if test "${ac_cv_struct_tm+set}" = set; then
27497  echo $ECHO_N "(cached) $ECHO_C" >&6
27498else
27499  cat >conftest.$ac_ext <<_ACEOF
27500/* confdefs.h.  */
27501_ACEOF
27502cat confdefs.h >>conftest.$ac_ext
27503cat >>conftest.$ac_ext <<_ACEOF
27504/* end confdefs.h.  */
27505#include <sys/types.h>
27506#include <time.h>
27507
27508int
27509main ()
27510{
27511struct tm *tp; tp->tm_sec;
27512  ;
27513  return 0;
27514}
27515_ACEOF
27516rm -f conftest.$ac_objext
27517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518  (eval $ac_compile) 2>conftest.er1
27519  ac_status=$?
27520  grep -v '^ *+' conftest.er1 >conftest.err
27521  rm -f conftest.er1
27522  cat conftest.err >&5
27523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524  (exit $ac_status); } &&
27525	 { ac_try='test -z "$ac_c_werror_flag"
27526			 || test ! -s conftest.err'
27527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528  (eval $ac_try) 2>&5
27529  ac_status=$?
27530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531  (exit $ac_status); }; } &&
27532	 { ac_try='test -s conftest.$ac_objext'
27533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534  (eval $ac_try) 2>&5
27535  ac_status=$?
27536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537  (exit $ac_status); }; }; then
27538  ac_cv_struct_tm=time.h
27539else
27540  echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543ac_cv_struct_tm=sys/time.h
27544fi
27545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27546fi
27547echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27548echo "${ECHO_T}$ac_cv_struct_tm" >&6
27549if test $ac_cv_struct_tm = sys/time.h; then
27550
27551cat >>confdefs.h <<\_ACEOF
27552#define TM_IN_SYS_TIME 1
27553_ACEOF
27554
27555fi
27556
27557echo "$as_me:$LINENO: checking for int64_t" >&5
27558echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27559if test "${ac_cv_type_int64_t+set}" = set; then
27560  echo $ECHO_N "(cached) $ECHO_C" >&6
27561else
27562  cat >conftest.$ac_ext <<_ACEOF
27563/* confdefs.h.  */
27564_ACEOF
27565cat confdefs.h >>conftest.$ac_ext
27566cat >>conftest.$ac_ext <<_ACEOF
27567/* end confdefs.h.  */
27568$ac_includes_default
27569int
27570main ()
27571{
27572if ((int64_t *) 0)
27573  return 0;
27574if (sizeof (int64_t))
27575  return 0;
27576  ;
27577  return 0;
27578}
27579_ACEOF
27580rm -f conftest.$ac_objext
27581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27582  (eval $ac_compile) 2>conftest.er1
27583  ac_status=$?
27584  grep -v '^ *+' conftest.er1 >conftest.err
27585  rm -f conftest.er1
27586  cat conftest.err >&5
27587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588  (exit $ac_status); } &&
27589	 { ac_try='test -z "$ac_c_werror_flag"
27590			 || test ! -s conftest.err'
27591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592  (eval $ac_try) 2>&5
27593  ac_status=$?
27594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595  (exit $ac_status); }; } &&
27596	 { ac_try='test -s conftest.$ac_objext'
27597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598  (eval $ac_try) 2>&5
27599  ac_status=$?
27600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601  (exit $ac_status); }; }; then
27602  ac_cv_type_int64_t=yes
27603else
27604  echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
27607ac_cv_type_int64_t=no
27608fi
27609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27610fi
27611echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27612echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27613if test $ac_cv_type_int64_t = yes; then
27614
27615cat >>confdefs.h <<_ACEOF
27616#define HAVE_INT64_T 1
27617_ACEOF
27618
27619
27620else
27621  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27622echo "$as_me: error: Type int64_t required but not found" >&2;}
27623   { (exit 1); exit 1; }; }
27624fi
27625
27626echo "$as_me:$LINENO: checking for uint64_t" >&5
27627echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27628if test "${ac_cv_type_uint64_t+set}" = set; then
27629  echo $ECHO_N "(cached) $ECHO_C" >&6
27630else
27631  cat >conftest.$ac_ext <<_ACEOF
27632/* confdefs.h.  */
27633_ACEOF
27634cat confdefs.h >>conftest.$ac_ext
27635cat >>conftest.$ac_ext <<_ACEOF
27636/* end confdefs.h.  */
27637$ac_includes_default
27638int
27639main ()
27640{
27641if ((uint64_t *) 0)
27642  return 0;
27643if (sizeof (uint64_t))
27644  return 0;
27645  ;
27646  return 0;
27647}
27648_ACEOF
27649rm -f conftest.$ac_objext
27650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651  (eval $ac_compile) 2>conftest.er1
27652  ac_status=$?
27653  grep -v '^ *+' conftest.er1 >conftest.err
27654  rm -f conftest.er1
27655  cat conftest.err >&5
27656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657  (exit $ac_status); } &&
27658	 { ac_try='test -z "$ac_c_werror_flag"
27659			 || test ! -s conftest.err'
27660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661  (eval $ac_try) 2>&5
27662  ac_status=$?
27663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664  (exit $ac_status); }; } &&
27665	 { ac_try='test -s conftest.$ac_objext'
27666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667  (eval $ac_try) 2>&5
27668  ac_status=$?
27669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670  (exit $ac_status); }; }; then
27671  ac_cv_type_uint64_t=yes
27672else
27673  echo "$as_me: failed program was:" >&5
27674sed 's/^/| /' conftest.$ac_ext >&5
27675
27676ac_cv_type_uint64_t=no
27677fi
27678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27679fi
27680echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27681echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27682if test $ac_cv_type_uint64_t = yes; then
27683
27684cat >>confdefs.h <<_ACEOF
27685#define HAVE_UINT64_T 1
27686_ACEOF
27687
27688
27689else
27690  echo "$as_me:$LINENO: checking for u_int64_t" >&5
27691echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27692if test "${ac_cv_type_u_int64_t+set}" = set; then
27693  echo $ECHO_N "(cached) $ECHO_C" >&6
27694else
27695  cat >conftest.$ac_ext <<_ACEOF
27696/* confdefs.h.  */
27697_ACEOF
27698cat confdefs.h >>conftest.$ac_ext
27699cat >>conftest.$ac_ext <<_ACEOF
27700/* end confdefs.h.  */
27701$ac_includes_default
27702int
27703main ()
27704{
27705if ((u_int64_t *) 0)
27706  return 0;
27707if (sizeof (u_int64_t))
27708  return 0;
27709  ;
27710  return 0;
27711}
27712_ACEOF
27713rm -f conftest.$ac_objext
27714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27715  (eval $ac_compile) 2>conftest.er1
27716  ac_status=$?
27717  grep -v '^ *+' conftest.er1 >conftest.err
27718  rm -f conftest.er1
27719  cat conftest.err >&5
27720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721  (exit $ac_status); } &&
27722	 { ac_try='test -z "$ac_c_werror_flag"
27723			 || test ! -s conftest.err'
27724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725  (eval $ac_try) 2>&5
27726  ac_status=$?
27727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728  (exit $ac_status); }; } &&
27729	 { ac_try='test -s conftest.$ac_objext'
27730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731  (eval $ac_try) 2>&5
27732  ac_status=$?
27733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734  (exit $ac_status); }; }; then
27735  ac_cv_type_u_int64_t=yes
27736else
27737  echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740ac_cv_type_u_int64_t=no
27741fi
27742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27743fi
27744echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27745echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27746if test $ac_cv_type_u_int64_t = yes; then
27747
27748cat >>confdefs.h <<_ACEOF
27749#define HAVE_U_INT64_T 1
27750_ACEOF
27751
27752
27753else
27754  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27755echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27756   { (exit 1); exit 1; }; }
27757fi
27758
27759fi
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27771do
27772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27773echo "$as_me:$LINENO: checking for $ac_func" >&5
27774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27775if eval "test \"\${$as_ac_var+set}\" = set"; then
27776  echo $ECHO_N "(cached) $ECHO_C" >&6
27777else
27778  cat >conftest.$ac_ext <<_ACEOF
27779/* confdefs.h.  */
27780_ACEOF
27781cat confdefs.h >>conftest.$ac_ext
27782cat >>conftest.$ac_ext <<_ACEOF
27783/* end confdefs.h.  */
27784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27786#define $ac_func innocuous_$ac_func
27787
27788/* System header to define __stub macros and hopefully few prototypes,
27789    which can conflict with char $ac_func (); below.
27790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27791    <limits.h> exists even on freestanding compilers.  */
27792
27793#ifdef __STDC__
27794# include <limits.h>
27795#else
27796# include <assert.h>
27797#endif
27798
27799#undef $ac_func
27800
27801/* Override any gcc2 internal prototype to avoid an error.  */
27802#ifdef __cplusplus
27803extern "C"
27804{
27805#endif
27806/* We use char because int might match the return type of a gcc2
27807   builtin and then its argument prototype would still apply.  */
27808char $ac_func ();
27809/* The GNU C library defines this for functions which it implements
27810    to always fail with ENOSYS.  Some functions are actually named
27811    something starting with __ and the normal name is an alias.  */
27812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27813choke me
27814#else
27815char (*f) () = $ac_func;
27816#endif
27817#ifdef __cplusplus
27818}
27819#endif
27820
27821int
27822main ()
27823{
27824return f != $ac_func;
27825  ;
27826  return 0;
27827}
27828_ACEOF
27829rm -f conftest.$ac_objext conftest$ac_exeext
27830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27831  (eval $ac_link) 2>conftest.er1
27832  ac_status=$?
27833  grep -v '^ *+' conftest.er1 >conftest.err
27834  rm -f conftest.er1
27835  cat conftest.err >&5
27836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837  (exit $ac_status); } &&
27838	 { ac_try='test -z "$ac_c_werror_flag"
27839			 || test ! -s conftest.err'
27840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841  (eval $ac_try) 2>&5
27842  ac_status=$?
27843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844  (exit $ac_status); }; } &&
27845	 { ac_try='test -s conftest$ac_exeext'
27846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847  (eval $ac_try) 2>&5
27848  ac_status=$?
27849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850  (exit $ac_status); }; }; then
27851  eval "$as_ac_var=yes"
27852else
27853  echo "$as_me: failed program was:" >&5
27854sed 's/^/| /' conftest.$ac_ext >&5
27855
27856eval "$as_ac_var=no"
27857fi
27858rm -f conftest.err conftest.$ac_objext \
27859      conftest$ac_exeext conftest.$ac_ext
27860fi
27861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27863if test `eval echo '${'$as_ac_var'}'` = yes; then
27864  cat >>confdefs.h <<_ACEOF
27865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27866_ACEOF
27867
27868fi
27869done
27870
27871
27872
27873
27874
27875
27876
27877for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27878do
27879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27880echo "$as_me:$LINENO: checking for $ac_func" >&5
27881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27882if eval "test \"\${$as_ac_var+set}\" = set"; then
27883  echo $ECHO_N "(cached) $ECHO_C" >&6
27884else
27885  cat >conftest.$ac_ext <<_ACEOF
27886/* confdefs.h.  */
27887_ACEOF
27888cat confdefs.h >>conftest.$ac_ext
27889cat >>conftest.$ac_ext <<_ACEOF
27890/* end confdefs.h.  */
27891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27892   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27893#define $ac_func innocuous_$ac_func
27894
27895/* System header to define __stub macros and hopefully few prototypes,
27896    which can conflict with char $ac_func (); below.
27897    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27898    <limits.h> exists even on freestanding compilers.  */
27899
27900#ifdef __STDC__
27901# include <limits.h>
27902#else
27903# include <assert.h>
27904#endif
27905
27906#undef $ac_func
27907
27908/* Override any gcc2 internal prototype to avoid an error.  */
27909#ifdef __cplusplus
27910extern "C"
27911{
27912#endif
27913/* We use char because int might match the return type of a gcc2
27914   builtin and then its argument prototype would still apply.  */
27915char $ac_func ();
27916/* The GNU C library defines this for functions which it implements
27917    to always fail with ENOSYS.  Some functions are actually named
27918    something starting with __ and the normal name is an alias.  */
27919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27920choke me
27921#else
27922char (*f) () = $ac_func;
27923#endif
27924#ifdef __cplusplus
27925}
27926#endif
27927
27928int
27929main ()
27930{
27931return f != $ac_func;
27932  ;
27933  return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext conftest$ac_exeext
27937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27938  (eval $ac_link) 2>conftest.er1
27939  ac_status=$?
27940  grep -v '^ *+' conftest.er1 >conftest.err
27941  rm -f conftest.er1
27942  cat conftest.err >&5
27943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944  (exit $ac_status); } &&
27945	 { ac_try='test -z "$ac_c_werror_flag"
27946			 || test ! -s conftest.err'
27947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948  (eval $ac_try) 2>&5
27949  ac_status=$?
27950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951  (exit $ac_status); }; } &&
27952	 { ac_try='test -s conftest$ac_exeext'
27953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954  (eval $ac_try) 2>&5
27955  ac_status=$?
27956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957  (exit $ac_status); }; }; then
27958  eval "$as_ac_var=yes"
27959else
27960  echo "$as_me: failed program was:" >&5
27961sed 's/^/| /' conftest.$ac_ext >&5
27962
27963eval "$as_ac_var=no"
27964fi
27965rm -f conftest.err conftest.$ac_objext \
27966      conftest$ac_exeext conftest.$ac_ext
27967fi
27968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27969echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27970if test `eval echo '${'$as_ac_var'}'` = yes; then
27971  cat >>confdefs.h <<_ACEOF
27972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27973_ACEOF
27974
27975fi
27976done
27977
27978
27979
27980
27981
27982
27983
27984
27985for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27986do
27987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27988echo "$as_me:$LINENO: checking for $ac_func" >&5
27989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27990if eval "test \"\${$as_ac_var+set}\" = set"; then
27991  echo $ECHO_N "(cached) $ECHO_C" >&6
27992else
27993  cat >conftest.$ac_ext <<_ACEOF
27994/* confdefs.h.  */
27995_ACEOF
27996cat confdefs.h >>conftest.$ac_ext
27997cat >>conftest.$ac_ext <<_ACEOF
27998/* end confdefs.h.  */
27999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28001#define $ac_func innocuous_$ac_func
28002
28003/* System header to define __stub macros and hopefully few prototypes,
28004    which can conflict with char $ac_func (); below.
28005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006    <limits.h> exists even on freestanding compilers.  */
28007
28008#ifdef __STDC__
28009# include <limits.h>
28010#else
28011# include <assert.h>
28012#endif
28013
28014#undef $ac_func
28015
28016/* Override any gcc2 internal prototype to avoid an error.  */
28017#ifdef __cplusplus
28018extern "C"
28019{
28020#endif
28021/* We use char because int might match the return type of a gcc2
28022   builtin and then its argument prototype would still apply.  */
28023char $ac_func ();
28024/* The GNU C library defines this for functions which it implements
28025    to always fail with ENOSYS.  Some functions are actually named
28026    something starting with __ and the normal name is an alias.  */
28027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28028choke me
28029#else
28030char (*f) () = $ac_func;
28031#endif
28032#ifdef __cplusplus
28033}
28034#endif
28035
28036int
28037main ()
28038{
28039return f != $ac_func;
28040  ;
28041  return 0;
28042}
28043_ACEOF
28044rm -f conftest.$ac_objext conftest$ac_exeext
28045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28046  (eval $ac_link) 2>conftest.er1
28047  ac_status=$?
28048  grep -v '^ *+' conftest.er1 >conftest.err
28049  rm -f conftest.er1
28050  cat conftest.err >&5
28051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052  (exit $ac_status); } &&
28053	 { ac_try='test -z "$ac_c_werror_flag"
28054			 || test ! -s conftest.err'
28055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056  (eval $ac_try) 2>&5
28057  ac_status=$?
28058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059  (exit $ac_status); }; } &&
28060	 { ac_try='test -s conftest$ac_exeext'
28061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062  (eval $ac_try) 2>&5
28063  ac_status=$?
28064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065  (exit $ac_status); }; }; then
28066  eval "$as_ac_var=yes"
28067else
28068  echo "$as_me: failed program was:" >&5
28069sed 's/^/| /' conftest.$ac_ext >&5
28070
28071eval "$as_ac_var=no"
28072fi
28073rm -f conftest.err conftest.$ac_objext \
28074      conftest$ac_exeext conftest.$ac_ext
28075fi
28076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28078if test `eval echo '${'$as_ac_var'}'` = yes; then
28079  cat >>confdefs.h <<_ACEOF
28080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28081_ACEOF
28082
28083fi
28084done
28085
28086
28087
28088
28089
28090for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28091do
28092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28093echo "$as_me:$LINENO: checking for $ac_func" >&5
28094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28095if eval "test \"\${$as_ac_var+set}\" = set"; then
28096  echo $ECHO_N "(cached) $ECHO_C" >&6
28097else
28098  cat >conftest.$ac_ext <<_ACEOF
28099/* confdefs.h.  */
28100_ACEOF
28101cat confdefs.h >>conftest.$ac_ext
28102cat >>conftest.$ac_ext <<_ACEOF
28103/* end confdefs.h.  */
28104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28105   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28106#define $ac_func innocuous_$ac_func
28107
28108/* System header to define __stub macros and hopefully few prototypes,
28109    which can conflict with char $ac_func (); below.
28110    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111    <limits.h> exists even on freestanding compilers.  */
28112
28113#ifdef __STDC__
28114# include <limits.h>
28115#else
28116# include <assert.h>
28117#endif
28118
28119#undef $ac_func
28120
28121/* Override any gcc2 internal prototype to avoid an error.  */
28122#ifdef __cplusplus
28123extern "C"
28124{
28125#endif
28126/* We use char because int might match the return type of a gcc2
28127   builtin and then its argument prototype would still apply.  */
28128char $ac_func ();
28129/* The GNU C library defines this for functions which it implements
28130    to always fail with ENOSYS.  Some functions are actually named
28131    something starting with __ and the normal name is an alias.  */
28132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28133choke me
28134#else
28135char (*f) () = $ac_func;
28136#endif
28137#ifdef __cplusplus
28138}
28139#endif
28140
28141int
28142main ()
28143{
28144return f != $ac_func;
28145  ;
28146  return 0;
28147}
28148_ACEOF
28149rm -f conftest.$ac_objext conftest$ac_exeext
28150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28151  (eval $ac_link) 2>conftest.er1
28152  ac_status=$?
28153  grep -v '^ *+' conftest.er1 >conftest.err
28154  rm -f conftest.er1
28155  cat conftest.err >&5
28156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157  (exit $ac_status); } &&
28158	 { ac_try='test -z "$ac_c_werror_flag"
28159			 || test ! -s conftest.err'
28160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161  (eval $ac_try) 2>&5
28162  ac_status=$?
28163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164  (exit $ac_status); }; } &&
28165	 { ac_try='test -s conftest$ac_exeext'
28166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167  (eval $ac_try) 2>&5
28168  ac_status=$?
28169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170  (exit $ac_status); }; }; then
28171  eval "$as_ac_var=yes"
28172else
28173  echo "$as_me: failed program was:" >&5
28174sed 's/^/| /' conftest.$ac_ext >&5
28175
28176eval "$as_ac_var=no"
28177fi
28178rm -f conftest.err conftest.$ac_objext \
28179      conftest$ac_exeext conftest.$ac_ext
28180fi
28181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28183if test `eval echo '${'$as_ac_var'}'` = yes; then
28184  cat >>confdefs.h <<_ACEOF
28185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28186_ACEOF
28187
28188fi
28189done
28190
28191echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28192echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28193if test "${llvm_cv_c_printf_a+set}" = set; then
28194  echo $ECHO_N "(cached) $ECHO_C" >&6
28195else
28196  ac_ext=c
28197ac_cpp='$CPP $CPPFLAGS'
28198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28200ac_compiler_gnu=$ac_cv_c_compiler_gnu
28201
28202 if test "$cross_compiling" = yes; then
28203  llvmac_cv_c_printf_a=no
28204else
28205  cat >conftest.$ac_ext <<_ACEOF
28206
28207  /* confdefs.h.  */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h.  */
28212
28213#include <stdio.h>
28214#include <stdlib.h>
28215
28216int
28217main ()
28218{
28219
28220volatile double A, B;
28221char Buffer[100];
28222A = 1;
28223A /= 10.0;
28224sprintf(Buffer, "%a", A);
28225B = atof(Buffer);
28226if (A != B)
28227  return (1);
28228if (A != 0x1.999999999999ap-4)
28229  return (1);
28230return (0);
28231  ;
28232  return 0;
28233}
28234_ACEOF
28235rm -f conftest$ac_exeext
28236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237  (eval $ac_link) 2>&5
28238  ac_status=$?
28239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242  (eval $ac_try) 2>&5
28243  ac_status=$?
28244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245  (exit $ac_status); }; }; then
28246  llvm_cv_c_printf_a=yes
28247else
28248  echo "$as_me: program exited with status $ac_status" >&5
28249echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252( exit $ac_status )
28253llvmac_cv_c_printf_a=no
28254fi
28255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28256fi
28257 ac_ext=c
28258ac_cpp='$CPP $CPPFLAGS'
28259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261ac_compiler_gnu=$ac_cv_c_compiler_gnu
28262
28263fi
28264echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28265echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28266 if test "$llvm_cv_c_printf_a" = "yes"; then
28267
28268cat >>confdefs.h <<\_ACEOF
28269#define HAVE_PRINTF_A 1
28270_ACEOF
28271
28272 fi
28273
28274# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28275# for constant arguments.  Useless!
28276echo "$as_me:$LINENO: checking for working alloca.h" >&5
28277echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28278if test "${ac_cv_working_alloca_h+set}" = set; then
28279  echo $ECHO_N "(cached) $ECHO_C" >&6
28280else
28281  cat >conftest.$ac_ext <<_ACEOF
28282/* confdefs.h.  */
28283_ACEOF
28284cat confdefs.h >>conftest.$ac_ext
28285cat >>conftest.$ac_ext <<_ACEOF
28286/* end confdefs.h.  */
28287#include <alloca.h>
28288int
28289main ()
28290{
28291char *p = (char *) alloca (2 * sizeof (int));
28292  ;
28293  return 0;
28294}
28295_ACEOF
28296rm -f conftest.$ac_objext conftest$ac_exeext
28297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28298  (eval $ac_link) 2>conftest.er1
28299  ac_status=$?
28300  grep -v '^ *+' conftest.er1 >conftest.err
28301  rm -f conftest.er1
28302  cat conftest.err >&5
28303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304  (exit $ac_status); } &&
28305	 { ac_try='test -z "$ac_c_werror_flag"
28306			 || test ! -s conftest.err'
28307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308  (eval $ac_try) 2>&5
28309  ac_status=$?
28310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311  (exit $ac_status); }; } &&
28312	 { ac_try='test -s conftest$ac_exeext'
28313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28314  (eval $ac_try) 2>&5
28315  ac_status=$?
28316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317  (exit $ac_status); }; }; then
28318  ac_cv_working_alloca_h=yes
28319else
28320  echo "$as_me: failed program was:" >&5
28321sed 's/^/| /' conftest.$ac_ext >&5
28322
28323ac_cv_working_alloca_h=no
28324fi
28325rm -f conftest.err conftest.$ac_objext \
28326      conftest$ac_exeext conftest.$ac_ext
28327fi
28328echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28329echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28330if test $ac_cv_working_alloca_h = yes; then
28331
28332cat >>confdefs.h <<\_ACEOF
28333#define HAVE_ALLOCA_H 1
28334_ACEOF
28335
28336fi
28337
28338echo "$as_me:$LINENO: checking for alloca" >&5
28339echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28340if test "${ac_cv_func_alloca_works+set}" = set; then
28341  echo $ECHO_N "(cached) $ECHO_C" >&6
28342else
28343  cat >conftest.$ac_ext <<_ACEOF
28344/* confdefs.h.  */
28345_ACEOF
28346cat confdefs.h >>conftest.$ac_ext
28347cat >>conftest.$ac_ext <<_ACEOF
28348/* end confdefs.h.  */
28349#ifdef __GNUC__
28350# define alloca __builtin_alloca
28351#else
28352# ifdef _MSC_VER
28353#  include <malloc.h>
28354#  define alloca _alloca
28355# else
28356#  if HAVE_ALLOCA_H
28357#   include <alloca.h>
28358#  else
28359#   ifdef _AIX
28360 #pragma alloca
28361#   else
28362#    ifndef alloca /* predefined by HP cc +Olibcalls */
28363char *alloca ();
28364#    endif
28365#   endif
28366#  endif
28367# endif
28368#endif
28369
28370int
28371main ()
28372{
28373char *p = (char *) alloca (1);
28374  ;
28375  return 0;
28376}
28377_ACEOF
28378rm -f conftest.$ac_objext conftest$ac_exeext
28379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28380  (eval $ac_link) 2>conftest.er1
28381  ac_status=$?
28382  grep -v '^ *+' conftest.er1 >conftest.err
28383  rm -f conftest.er1
28384  cat conftest.err >&5
28385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386  (exit $ac_status); } &&
28387	 { ac_try='test -z "$ac_c_werror_flag"
28388			 || test ! -s conftest.err'
28389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390  (eval $ac_try) 2>&5
28391  ac_status=$?
28392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393  (exit $ac_status); }; } &&
28394	 { ac_try='test -s conftest$ac_exeext'
28395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396  (eval $ac_try) 2>&5
28397  ac_status=$?
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); }; }; then
28400  ac_cv_func_alloca_works=yes
28401else
28402  echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405ac_cv_func_alloca_works=no
28406fi
28407rm -f conftest.err conftest.$ac_objext \
28408      conftest$ac_exeext conftest.$ac_ext
28409fi
28410echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28411echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28412
28413if test $ac_cv_func_alloca_works = yes; then
28414
28415cat >>confdefs.h <<\_ACEOF
28416#define HAVE_ALLOCA 1
28417_ACEOF
28418
28419else
28420  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28421# that cause trouble.  Some versions do not even contain alloca or
28422# contain a buggy version.  If you still want to use their alloca,
28423# use ar to extract alloca.o from them instead of compiling alloca.c.
28424
28425ALLOCA=alloca.$ac_objext
28426
28427cat >>confdefs.h <<\_ACEOF
28428#define C_ALLOCA 1
28429_ACEOF
28430
28431
28432echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28433echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28434if test "${ac_cv_os_cray+set}" = set; then
28435  echo $ECHO_N "(cached) $ECHO_C" >&6
28436else
28437  cat >conftest.$ac_ext <<_ACEOF
28438/* confdefs.h.  */
28439_ACEOF
28440cat confdefs.h >>conftest.$ac_ext
28441cat >>conftest.$ac_ext <<_ACEOF
28442/* end confdefs.h.  */
28443#if defined(CRAY) && ! defined(CRAY2)
28444webecray
28445#else
28446wenotbecray
28447#endif
28448
28449_ACEOF
28450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28451  $EGREP "webecray" >/dev/null 2>&1; then
28452  ac_cv_os_cray=yes
28453else
28454  ac_cv_os_cray=no
28455fi
28456rm -f conftest*
28457
28458fi
28459echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28460echo "${ECHO_T}$ac_cv_os_cray" >&6
28461if test $ac_cv_os_cray = yes; then
28462  for ac_func in _getb67 GETB67 getb67; do
28463    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28464echo "$as_me:$LINENO: checking for $ac_func" >&5
28465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28466if eval "test \"\${$as_ac_var+set}\" = set"; then
28467  echo $ECHO_N "(cached) $ECHO_C" >&6
28468else
28469  cat >conftest.$ac_ext <<_ACEOF
28470/* confdefs.h.  */
28471_ACEOF
28472cat confdefs.h >>conftest.$ac_ext
28473cat >>conftest.$ac_ext <<_ACEOF
28474/* end confdefs.h.  */
28475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28476   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28477#define $ac_func innocuous_$ac_func
28478
28479/* System header to define __stub macros and hopefully few prototypes,
28480    which can conflict with char $ac_func (); below.
28481    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28482    <limits.h> exists even on freestanding compilers.  */
28483
28484#ifdef __STDC__
28485# include <limits.h>
28486#else
28487# include <assert.h>
28488#endif
28489
28490#undef $ac_func
28491
28492/* Override any gcc2 internal prototype to avoid an error.  */
28493#ifdef __cplusplus
28494extern "C"
28495{
28496#endif
28497/* We use char because int might match the return type of a gcc2
28498   builtin and then its argument prototype would still apply.  */
28499char $ac_func ();
28500/* The GNU C library defines this for functions which it implements
28501    to always fail with ENOSYS.  Some functions are actually named
28502    something starting with __ and the normal name is an alias.  */
28503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28504choke me
28505#else
28506char (*f) () = $ac_func;
28507#endif
28508#ifdef __cplusplus
28509}
28510#endif
28511
28512int
28513main ()
28514{
28515return f != $ac_func;
28516  ;
28517  return 0;
28518}
28519_ACEOF
28520rm -f conftest.$ac_objext conftest$ac_exeext
28521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28522  (eval $ac_link) 2>conftest.er1
28523  ac_status=$?
28524  grep -v '^ *+' conftest.er1 >conftest.err
28525  rm -f conftest.er1
28526  cat conftest.err >&5
28527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528  (exit $ac_status); } &&
28529	 { ac_try='test -z "$ac_c_werror_flag"
28530			 || test ! -s conftest.err'
28531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532  (eval $ac_try) 2>&5
28533  ac_status=$?
28534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535  (exit $ac_status); }; } &&
28536	 { ac_try='test -s conftest$ac_exeext'
28537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538  (eval $ac_try) 2>&5
28539  ac_status=$?
28540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541  (exit $ac_status); }; }; then
28542  eval "$as_ac_var=yes"
28543else
28544  echo "$as_me: failed program was:" >&5
28545sed 's/^/| /' conftest.$ac_ext >&5
28546
28547eval "$as_ac_var=no"
28548fi
28549rm -f conftest.err conftest.$ac_objext \
28550      conftest$ac_exeext conftest.$ac_ext
28551fi
28552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28554if test `eval echo '${'$as_ac_var'}'` = yes; then
28555
28556cat >>confdefs.h <<_ACEOF
28557#define CRAY_STACKSEG_END $ac_func
28558_ACEOF
28559
28560    break
28561fi
28562
28563  done
28564fi
28565
28566echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28567echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28568if test "${ac_cv_c_stack_direction+set}" = set; then
28569  echo $ECHO_N "(cached) $ECHO_C" >&6
28570else
28571  if test "$cross_compiling" = yes; then
28572  ac_cv_c_stack_direction=0
28573else
28574  cat >conftest.$ac_ext <<_ACEOF
28575/* confdefs.h.  */
28576_ACEOF
28577cat confdefs.h >>conftest.$ac_ext
28578cat >>conftest.$ac_ext <<_ACEOF
28579/* end confdefs.h.  */
28580int
28581find_stack_direction ()
28582{
28583  static char *addr = 0;
28584  auto char dummy;
28585  if (addr == 0)
28586    {
28587      addr = &dummy;
28588      return find_stack_direction ();
28589    }
28590  else
28591    return (&dummy > addr) ? 1 : -1;
28592}
28593
28594int
28595main ()
28596{
28597  exit (find_stack_direction () < 0);
28598}
28599_ACEOF
28600rm -f conftest$ac_exeext
28601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28602  (eval $ac_link) 2>&5
28603  ac_status=$?
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607  (eval $ac_try) 2>&5
28608  ac_status=$?
28609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610  (exit $ac_status); }; }; then
28611  ac_cv_c_stack_direction=1
28612else
28613  echo "$as_me: program exited with status $ac_status" >&5
28614echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617( exit $ac_status )
28618ac_cv_c_stack_direction=-1
28619fi
28620rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28621fi
28622fi
28623echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28624echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28625
28626cat >>confdefs.h <<_ACEOF
28627#define STACK_DIRECTION $ac_cv_c_stack_direction
28628_ACEOF
28629
28630
28631fi
28632
28633
28634echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28635echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28636if test "${ac_cv_func_rand48+set}" = set; then
28637  echo $ECHO_N "(cached) $ECHO_C" >&6
28638else
28639  ac_ext=cc
28640ac_cpp='$CXXCPP $CPPFLAGS'
28641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28644
28645   cat >conftest.$ac_ext <<_ACEOF
28646/* confdefs.h.  */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h.  */
28651#include <stdlib.h>
28652int
28653main ()
28654{
28655srand48(0);lrand48();drand48();
28656  ;
28657  return 0;
28658}
28659_ACEOF
28660rm -f conftest.$ac_objext
28661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28662  (eval $ac_compile) 2>conftest.er1
28663  ac_status=$?
28664  grep -v '^ *+' conftest.er1 >conftest.err
28665  rm -f conftest.er1
28666  cat conftest.err >&5
28667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668  (exit $ac_status); } &&
28669	 { ac_try='test -z "$ac_cxx_werror_flag"
28670			 || test ! -s conftest.err'
28671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672  (eval $ac_try) 2>&5
28673  ac_status=$?
28674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675  (exit $ac_status); }; } &&
28676	 { ac_try='test -s conftest.$ac_objext'
28677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678  (eval $ac_try) 2>&5
28679  ac_status=$?
28680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681  (exit $ac_status); }; }; then
28682  ac_cv_func_rand48=yes
28683else
28684  echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687ac_cv_func_rand48=no
28688fi
28689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28690  ac_ext=c
28691ac_cpp='$CPP $CPPFLAGS'
28692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28694ac_compiler_gnu=$ac_cv_c_compiler_gnu
28695
28696fi
28697echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28698echo "${ECHO_T}$ac_cv_func_rand48" >&6
28699
28700if test "$ac_cv_func_rand48" = "yes" ; then
28701
28702cat >>confdefs.h <<\_ACEOF
28703#define HAVE_RAND48 1
28704_ACEOF
28705
28706fi
28707
28708
28709echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28710echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28711if test "${ac_cv_cxx_namespaces+set}" = set; then
28712  echo $ECHO_N "(cached) $ECHO_C" >&6
28713else
28714  ac_ext=cc
28715ac_cpp='$CXXCPP $CPPFLAGS'
28716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28719
28720 cat >conftest.$ac_ext <<_ACEOF
28721/* confdefs.h.  */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h.  */
28726namespace Outer { namespace Inner { int i = 0; }}
28727int
28728main ()
28729{
28730using namespace Outer::Inner; return i;
28731  ;
28732  return 0;
28733}
28734_ACEOF
28735rm -f conftest.$ac_objext
28736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28737  (eval $ac_compile) 2>conftest.er1
28738  ac_status=$?
28739  grep -v '^ *+' conftest.er1 >conftest.err
28740  rm -f conftest.er1
28741  cat conftest.err >&5
28742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743  (exit $ac_status); } &&
28744	 { ac_try='test -z "$ac_cxx_werror_flag"
28745			 || test ! -s conftest.err'
28746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747  (eval $ac_try) 2>&5
28748  ac_status=$?
28749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750  (exit $ac_status); }; } &&
28751	 { ac_try='test -s conftest.$ac_objext'
28752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753  (eval $ac_try) 2>&5
28754  ac_status=$?
28755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756  (exit $ac_status); }; }; then
28757  ac_cv_cxx_namespaces=yes
28758else
28759  echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762ac_cv_cxx_namespaces=no
28763fi
28764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28765 ac_ext=c
28766ac_cpp='$CPP $CPPFLAGS'
28767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28769ac_compiler_gnu=$ac_cv_c_compiler_gnu
28770
28771
28772fi
28773echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28774echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28775if test "$ac_cv_cxx_namespaces" = yes; then
28776
28777cat >>confdefs.h <<\_ACEOF
28778#define HAVE_NAMESPACES
28779_ACEOF
28780
28781fi
28782
28783echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28784echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28785if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28786  echo $ECHO_N "(cached) $ECHO_C" >&6
28787else
28788
28789  ac_ext=cc
28790ac_cpp='$CXXCPP $CPPFLAGS'
28791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28794
28795  cat >conftest.$ac_ext <<_ACEOF
28796/* confdefs.h.  */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h.  */
28801#include <ext/hash_map>
28802#ifdef HAVE_NAMESPACES
28803using namespace std;
28804#endif
28805int
28806main ()
28807{
28808hash_map<int, int> t;
28809  ;
28810  return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext
28814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28815  (eval $ac_compile) 2>conftest.er1
28816  ac_status=$?
28817  grep -v '^ *+' conftest.er1 >conftest.err
28818  rm -f conftest.er1
28819  cat conftest.err >&5
28820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821  (exit $ac_status); } &&
28822	 { ac_try='test -z "$ac_cxx_werror_flag"
28823			 || test ! -s conftest.err'
28824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825  (eval $ac_try) 2>&5
28826  ac_status=$?
28827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828  (exit $ac_status); }; } &&
28829	 { ac_try='test -s conftest.$ac_objext'
28830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831  (eval $ac_try) 2>&5
28832  ac_status=$?
28833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834  (exit $ac_status); }; }; then
28835  ac_cv_cxx_have_std_ext_hash_map=yes
28836else
28837  echo "$as_me: failed program was:" >&5
28838sed 's/^/| /' conftest.$ac_ext >&5
28839
28840ac_cv_cxx_have_std_ext_hash_map=no
28841fi
28842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28843  ac_ext=c
28844ac_cpp='$CPP $CPPFLAGS'
28845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28847ac_compiler_gnu=$ac_cv_c_compiler_gnu
28848
28849fi
28850echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28851echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28852 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28853 then
28854
28855cat >>confdefs.h <<\_ACEOF
28856#define HAVE_STD_EXT_HASH_MAP 1
28857_ACEOF
28858
28859 else
28860
28861cat >>confdefs.h <<\_ACEOF
28862#define HAVE_STD_EXT_HASH_MAP 0
28863_ACEOF
28864
28865 fi
28866
28867 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28868echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28869if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28870  echo $ECHO_N "(cached) $ECHO_C" >&6
28871else
28872
28873  ac_ext=cc
28874ac_cpp='$CXXCPP $CPPFLAGS'
28875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28878
28879  cat >conftest.$ac_ext <<_ACEOF
28880/* confdefs.h.  */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h.  */
28885#include <ext/hash_map>
28886#ifdef HAVE_NAMESPACES
28887using namespace __gnu_cxx;
28888#endif
28889int
28890main ()
28891{
28892hash_map<int,int> t;
28893  ;
28894  return 0;
28895}
28896_ACEOF
28897rm -f conftest.$ac_objext
28898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28899  (eval $ac_compile) 2>conftest.er1
28900  ac_status=$?
28901  grep -v '^ *+' conftest.er1 >conftest.err
28902  rm -f conftest.er1
28903  cat conftest.err >&5
28904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905  (exit $ac_status); } &&
28906	 { ac_try='test -z "$ac_cxx_werror_flag"
28907			 || test ! -s conftest.err'
28908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909  (eval $ac_try) 2>&5
28910  ac_status=$?
28911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912  (exit $ac_status); }; } &&
28913	 { ac_try='test -s conftest.$ac_objext'
28914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915  (eval $ac_try) 2>&5
28916  ac_status=$?
28917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918  (exit $ac_status); }; }; then
28919  ac_cv_cxx_have_gnu_ext_hash_map=yes
28920else
28921  echo "$as_me: failed program was:" >&5
28922sed 's/^/| /' conftest.$ac_ext >&5
28923
28924ac_cv_cxx_have_gnu_ext_hash_map=no
28925fi
28926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28927  ac_ext=c
28928ac_cpp='$CPP $CPPFLAGS'
28929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28931ac_compiler_gnu=$ac_cv_c_compiler_gnu
28932
28933fi
28934echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28935echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28936 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28937 then
28938
28939cat >>confdefs.h <<\_ACEOF
28940#define HAVE_GNU_EXT_HASH_MAP 1
28941_ACEOF
28942
28943 else
28944
28945cat >>confdefs.h <<\_ACEOF
28946#define HAVE_GNU_EXT_HASH_MAP 0
28947_ACEOF
28948
28949 fi
28950
28951 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28952echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28953if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28954  echo $ECHO_N "(cached) $ECHO_C" >&6
28955else
28956
28957  ac_ext=cc
28958ac_cpp='$CXXCPP $CPPFLAGS'
28959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28962
28963  cat >conftest.$ac_ext <<_ACEOF
28964/* confdefs.h.  */
28965_ACEOF
28966cat confdefs.h >>conftest.$ac_ext
28967cat >>conftest.$ac_ext <<_ACEOF
28968/* end confdefs.h.  */
28969#include <hash_map>
28970int
28971main ()
28972{
28973hash_map<int,int> t;
28974  ;
28975  return 0;
28976}
28977_ACEOF
28978rm -f conftest.$ac_objext
28979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28980  (eval $ac_compile) 2>conftest.er1
28981  ac_status=$?
28982  grep -v '^ *+' conftest.er1 >conftest.err
28983  rm -f conftest.er1
28984  cat conftest.err >&5
28985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986  (exit $ac_status); } &&
28987	 { ac_try='test -z "$ac_cxx_werror_flag"
28988			 || test ! -s conftest.err'
28989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990  (eval $ac_try) 2>&5
28991  ac_status=$?
28992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993  (exit $ac_status); }; } &&
28994	 { ac_try='test -s conftest.$ac_objext'
28995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996  (eval $ac_try) 2>&5
28997  ac_status=$?
28998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999  (exit $ac_status); }; }; then
29000  ac_cv_cxx_have_global_hash_map=yes
29001else
29002  echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005ac_cv_cxx_have_global_hash_map=no
29006fi
29007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29008  ac_ext=c
29009ac_cpp='$CPP $CPPFLAGS'
29010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29012ac_compiler_gnu=$ac_cv_c_compiler_gnu
29013
29014fi
29015echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29016echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29017 if test "$ac_cv_cxx_have_global_hash_map" = yes
29018 then
29019
29020cat >>confdefs.h <<\_ACEOF
29021#define HAVE_GLOBAL_HASH_MAP 1
29022_ACEOF
29023
29024 else
29025
29026cat >>confdefs.h <<\_ACEOF
29027#define HAVE_GLOBAL_HASH_MAP 0
29028_ACEOF
29029
29030 fi
29031
29032echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29033echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29034if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29035  echo $ECHO_N "(cached) $ECHO_C" >&6
29036else
29037
29038  ac_ext=cc
29039ac_cpp='$CXXCPP $CPPFLAGS'
29040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29043
29044  cat >conftest.$ac_ext <<_ACEOF
29045/* confdefs.h.  */
29046_ACEOF
29047cat confdefs.h >>conftest.$ac_ext
29048cat >>conftest.$ac_ext <<_ACEOF
29049/* end confdefs.h.  */
29050#include <ext/hash_set>
29051#ifdef HAVE_NAMESPACES
29052using namespace std;
29053#endif
29054int
29055main ()
29056{
29057hash_set<int> t;
29058  ;
29059  return 0;
29060}
29061_ACEOF
29062rm -f conftest.$ac_objext
29063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29064  (eval $ac_compile) 2>conftest.er1
29065  ac_status=$?
29066  grep -v '^ *+' conftest.er1 >conftest.err
29067  rm -f conftest.er1
29068  cat conftest.err >&5
29069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070  (exit $ac_status); } &&
29071	 { ac_try='test -z "$ac_cxx_werror_flag"
29072			 || test ! -s conftest.err'
29073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29074  (eval $ac_try) 2>&5
29075  ac_status=$?
29076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077  (exit $ac_status); }; } &&
29078	 { ac_try='test -s conftest.$ac_objext'
29079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080  (eval $ac_try) 2>&5
29081  ac_status=$?
29082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083  (exit $ac_status); }; }; then
29084  ac_cv_cxx_have_std_ext_hash_set=yes
29085else
29086  echo "$as_me: failed program was:" >&5
29087sed 's/^/| /' conftest.$ac_ext >&5
29088
29089ac_cv_cxx_have_std_ext_hash_set=no
29090fi
29091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092  ac_ext=c
29093ac_cpp='$CPP $CPPFLAGS'
29094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29096ac_compiler_gnu=$ac_cv_c_compiler_gnu
29097
29098fi
29099echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29100echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29101 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29102 then
29103
29104cat >>confdefs.h <<\_ACEOF
29105#define HAVE_STD_EXT_HASH_SET 1
29106_ACEOF
29107
29108 else
29109
29110cat >>confdefs.h <<\_ACEOF
29111#define HAVE_STD_EXT_HASH_SET 0
29112_ACEOF
29113
29114 fi
29115
29116 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29117echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29118if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29119  echo $ECHO_N "(cached) $ECHO_C" >&6
29120else
29121
29122  ac_ext=cc
29123ac_cpp='$CXXCPP $CPPFLAGS'
29124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127
29128  cat >conftest.$ac_ext <<_ACEOF
29129/* confdefs.h.  */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h.  */
29134#include <ext/hash_set>
29135#ifdef HAVE_NAMESPACES
29136using namespace __gnu_cxx;
29137#endif
29138int
29139main ()
29140{
29141hash_set<int> t;
29142  ;
29143  return 0;
29144}
29145_ACEOF
29146rm -f conftest.$ac_objext
29147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148  (eval $ac_compile) 2>conftest.er1
29149  ac_status=$?
29150  grep -v '^ *+' conftest.er1 >conftest.err
29151  rm -f conftest.er1
29152  cat conftest.err >&5
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); } &&
29155	 { ac_try='test -z "$ac_cxx_werror_flag"
29156			 || test ! -s conftest.err'
29157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158  (eval $ac_try) 2>&5
29159  ac_status=$?
29160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161  (exit $ac_status); }; } &&
29162	 { ac_try='test -s conftest.$ac_objext'
29163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164  (eval $ac_try) 2>&5
29165  ac_status=$?
29166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167  (exit $ac_status); }; }; then
29168  ac_cv_cxx_have_gnu_ext_hash_set=yes
29169else
29170  echo "$as_me: failed program was:" >&5
29171sed 's/^/| /' conftest.$ac_ext >&5
29172
29173ac_cv_cxx_have_gnu_ext_hash_set=no
29174fi
29175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176  ac_ext=c
29177ac_cpp='$CPP $CPPFLAGS'
29178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
29182fi
29183echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29184echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29185 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29186 then
29187
29188cat >>confdefs.h <<\_ACEOF
29189#define HAVE_GNU_EXT_HASH_SET 1
29190_ACEOF
29191
29192 else
29193
29194cat >>confdefs.h <<\_ACEOF
29195#define HAVE_GNU_EXT_HASH_SET 0
29196_ACEOF
29197
29198 fi
29199
29200 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29201echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29202if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29203  echo $ECHO_N "(cached) $ECHO_C" >&6
29204else
29205
29206  ac_ext=cc
29207ac_cpp='$CXXCPP $CPPFLAGS'
29208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29211
29212  cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h.  */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h.  */
29218#include <hash_set>
29219int
29220main ()
29221{
29222hash_set<int> t; return 0;
29223  ;
29224  return 0;
29225}
29226_ACEOF
29227rm -f conftest.$ac_objext
29228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29229  (eval $ac_compile) 2>conftest.er1
29230  ac_status=$?
29231  grep -v '^ *+' conftest.er1 >conftest.err
29232  rm -f conftest.er1
29233  cat conftest.err >&5
29234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235  (exit $ac_status); } &&
29236	 { ac_try='test -z "$ac_cxx_werror_flag"
29237			 || test ! -s conftest.err'
29238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29239  (eval $ac_try) 2>&5
29240  ac_status=$?
29241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242  (exit $ac_status); }; } &&
29243	 { ac_try='test -s conftest.$ac_objext'
29244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245  (eval $ac_try) 2>&5
29246  ac_status=$?
29247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248  (exit $ac_status); }; }; then
29249  ac_cv_cxx_have_global_hash_set=yes
29250else
29251  echo "$as_me: failed program was:" >&5
29252sed 's/^/| /' conftest.$ac_ext >&5
29253
29254ac_cv_cxx_have_global_hash_set=no
29255fi
29256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29257  ac_ext=c
29258ac_cpp='$CPP $CPPFLAGS'
29259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29261ac_compiler_gnu=$ac_cv_c_compiler_gnu
29262
29263fi
29264echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29265echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29266 if test "$ac_cv_cxx_have_global_hash_set" = yes
29267 then
29268
29269cat >>confdefs.h <<\_ACEOF
29270#define HAVE_GLOBAL_HASH_SET 1
29271_ACEOF
29272
29273 else
29274
29275cat >>confdefs.h <<\_ACEOF
29276#define HAVE_GLOBAL_HASH_SET 0
29277_ACEOF
29278
29279 fi
29280
29281echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29282echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29283if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29284  echo $ECHO_N "(cached) $ECHO_C" >&6
29285else
29286
29287  ac_ext=cc
29288ac_cpp='$CXXCPP $CPPFLAGS'
29289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29292
29293  cat >conftest.$ac_ext <<_ACEOF
29294/* confdefs.h.  */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h.  */
29299#include <iterator>
29300#ifdef HAVE_NAMESPACES
29301using namespace std;
29302#endif
29303int
29304main ()
29305{
29306iterator<int,int,int> t; return 0;
29307  ;
29308  return 0;
29309}
29310_ACEOF
29311rm -f conftest.$ac_objext
29312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313  (eval $ac_compile) 2>conftest.er1
29314  ac_status=$?
29315  grep -v '^ *+' conftest.er1 >conftest.err
29316  rm -f conftest.er1
29317  cat conftest.err >&5
29318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319  (exit $ac_status); } &&
29320	 { ac_try='test -z "$ac_cxx_werror_flag"
29321			 || test ! -s conftest.err'
29322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323  (eval $ac_try) 2>&5
29324  ac_status=$?
29325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); }; } &&
29327	 { ac_try='test -s conftest.$ac_objext'
29328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329  (eval $ac_try) 2>&5
29330  ac_status=$?
29331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332  (exit $ac_status); }; }; then
29333  ac_cv_cxx_have_std_iterator=yes
29334else
29335  echo "$as_me: failed program was:" >&5
29336sed 's/^/| /' conftest.$ac_ext >&5
29337
29338ac_cv_cxx_have_std_iterator=no
29339fi
29340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29341  ac_ext=c
29342ac_cpp='$CPP $CPPFLAGS'
29343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345ac_compiler_gnu=$ac_cv_c_compiler_gnu
29346
29347
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29350echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29351if test "$ac_cv_cxx_have_std_iterator" = yes
29352then
29353
29354cat >>confdefs.h <<\_ACEOF
29355#define HAVE_STD_ITERATOR 1
29356_ACEOF
29357
29358else
29359
29360cat >>confdefs.h <<\_ACEOF
29361#define HAVE_STD_ITERATOR 0
29362_ACEOF
29363
29364fi
29365
29366echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29367echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29368if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29369  echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371
29372  ac_ext=cc
29373ac_cpp='$CXXCPP $CPPFLAGS'
29374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29377
29378  cat >conftest.$ac_ext <<_ACEOF
29379/* confdefs.h.  */
29380_ACEOF
29381cat confdefs.h >>conftest.$ac_ext
29382cat >>conftest.$ac_ext <<_ACEOF
29383/* end confdefs.h.  */
29384#include <iterator>
29385#ifdef HAVE_NAMESPACES
29386using namespace std;
29387#endif
29388int
29389main ()
29390{
29391bidirectional_iterator<int,int> t; return 0;
29392  ;
29393  return 0;
29394}
29395_ACEOF
29396rm -f conftest.$ac_objext
29397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29398  (eval $ac_compile) 2>conftest.er1
29399  ac_status=$?
29400  grep -v '^ *+' conftest.er1 >conftest.err
29401  rm -f conftest.er1
29402  cat conftest.err >&5
29403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404  (exit $ac_status); } &&
29405	 { ac_try='test -z "$ac_cxx_werror_flag"
29406			 || test ! -s conftest.err'
29407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408  (eval $ac_try) 2>&5
29409  ac_status=$?
29410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411  (exit $ac_status); }; } &&
29412	 { ac_try='test -s conftest.$ac_objext'
29413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414  (eval $ac_try) 2>&5
29415  ac_status=$?
29416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417  (exit $ac_status); }; }; then
29418  ac_cv_cxx_have_bi_iterator=yes
29419else
29420  echo "$as_me: failed program was:" >&5
29421sed 's/^/| /' conftest.$ac_ext >&5
29422
29423ac_cv_cxx_have_bi_iterator=no
29424fi
29425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29426  ac_ext=c
29427ac_cpp='$CPP $CPPFLAGS'
29428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430ac_compiler_gnu=$ac_cv_c_compiler_gnu
29431
29432
29433fi
29434echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29435echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29436if test "$ac_cv_cxx_have_bi_iterator" = yes
29437then
29438
29439cat >>confdefs.h <<\_ACEOF
29440#define HAVE_BI_ITERATOR 1
29441_ACEOF
29442
29443else
29444
29445cat >>confdefs.h <<\_ACEOF
29446#define HAVE_BI_ITERATOR 0
29447_ACEOF
29448
29449fi
29450
29451echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29452echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29453if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29454  echo $ECHO_N "(cached) $ECHO_C" >&6
29455else
29456
29457  ac_ext=cc
29458ac_cpp='$CXXCPP $CPPFLAGS'
29459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29462
29463  cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h.  */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h.  */
29469#include <iterator>
29470#ifdef HAVE_NAMESPACES
29471using namespace std;
29472#endif
29473int
29474main ()
29475{
29476forward_iterator<int,int> t; return 0;
29477  ;
29478  return 0;
29479}
29480_ACEOF
29481rm -f conftest.$ac_objext
29482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29483  (eval $ac_compile) 2>conftest.er1
29484  ac_status=$?
29485  grep -v '^ *+' conftest.er1 >conftest.err
29486  rm -f conftest.er1
29487  cat conftest.err >&5
29488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489  (exit $ac_status); } &&
29490	 { ac_try='test -z "$ac_cxx_werror_flag"
29491			 || test ! -s conftest.err'
29492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493  (eval $ac_try) 2>&5
29494  ac_status=$?
29495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496  (exit $ac_status); }; } &&
29497	 { ac_try='test -s conftest.$ac_objext'
29498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499  (eval $ac_try) 2>&5
29500  ac_status=$?
29501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502  (exit $ac_status); }; }; then
29503  ac_cv_cxx_have_fwd_iterator=yes
29504else
29505  echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508ac_cv_cxx_have_fwd_iterator=no
29509fi
29510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29511  ac_ext=c
29512ac_cpp='$CPP $CPPFLAGS'
29513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29515ac_compiler_gnu=$ac_cv_c_compiler_gnu
29516
29517
29518fi
29519echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29520echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29521if test "$ac_cv_cxx_have_fwd_iterator" = yes
29522then
29523
29524cat >>confdefs.h <<\_ACEOF
29525#define HAVE_FWD_ITERATOR 1
29526_ACEOF
29527
29528else
29529
29530cat >>confdefs.h <<\_ACEOF
29531#define HAVE_FWD_ITERATOR 0
29532_ACEOF
29533
29534fi
29535
29536
29537echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29538echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29539if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29540  echo $ECHO_N "(cached) $ECHO_C" >&6
29541else
29542  ac_ext=cc
29543ac_cpp='$CXXCPP $CPPFLAGS'
29544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29547
29548   cat >conftest.$ac_ext <<_ACEOF
29549/* confdefs.h.  */
29550_ACEOF
29551cat confdefs.h >>conftest.$ac_ext
29552cat >>conftest.$ac_ext <<_ACEOF
29553/* end confdefs.h.  */
29554#include <math.h>
29555int
29556main ()
29557{
29558float f; isnan(f);
29559  ;
29560  return 0;
29561}
29562_ACEOF
29563rm -f conftest.$ac_objext
29564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29565  (eval $ac_compile) 2>conftest.er1
29566  ac_status=$?
29567  grep -v '^ *+' conftest.er1 >conftest.err
29568  rm -f conftest.er1
29569  cat conftest.err >&5
29570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571  (exit $ac_status); } &&
29572	 { ac_try='test -z "$ac_cxx_werror_flag"
29573			 || test ! -s conftest.err'
29574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575  (eval $ac_try) 2>&5
29576  ac_status=$?
29577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578  (exit $ac_status); }; } &&
29579	 { ac_try='test -s conftest.$ac_objext'
29580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581  (eval $ac_try) 2>&5
29582  ac_status=$?
29583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584  (exit $ac_status); }; }; then
29585  ac_cv_func_isnan_in_math_h=yes
29586else
29587  echo "$as_me: failed program was:" >&5
29588sed 's/^/| /' conftest.$ac_ext >&5
29589
29590ac_cv_func_isnan_in_math_h=no
29591fi
29592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29593  ac_ext=c
29594ac_cpp='$CPP $CPPFLAGS'
29595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29597ac_compiler_gnu=$ac_cv_c_compiler_gnu
29598
29599fi
29600echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29601echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29602
29603
29604if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29605
29606cat >>confdefs.h <<\_ACEOF
29607#define HAVE_ISNAN_IN_MATH_H 1
29608_ACEOF
29609
29610fi
29611
29612echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29613echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29614if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29615  echo $ECHO_N "(cached) $ECHO_C" >&6
29616else
29617  ac_ext=cc
29618ac_cpp='$CXXCPP $CPPFLAGS'
29619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29622
29623   cat >conftest.$ac_ext <<_ACEOF
29624/* confdefs.h.  */
29625_ACEOF
29626cat confdefs.h >>conftest.$ac_ext
29627cat >>conftest.$ac_ext <<_ACEOF
29628/* end confdefs.h.  */
29629#include <cmath>
29630int
29631main ()
29632{
29633float f; isnan(f);
29634  ;
29635  return 0;
29636}
29637_ACEOF
29638rm -f conftest.$ac_objext
29639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29640  (eval $ac_compile) 2>conftest.er1
29641  ac_status=$?
29642  grep -v '^ *+' conftest.er1 >conftest.err
29643  rm -f conftest.er1
29644  cat conftest.err >&5
29645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646  (exit $ac_status); } &&
29647	 { ac_try='test -z "$ac_cxx_werror_flag"
29648			 || test ! -s conftest.err'
29649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650  (eval $ac_try) 2>&5
29651  ac_status=$?
29652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653  (exit $ac_status); }; } &&
29654	 { ac_try='test -s conftest.$ac_objext'
29655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656  (eval $ac_try) 2>&5
29657  ac_status=$?
29658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659  (exit $ac_status); }; }; then
29660  ac_cv_func_isnan_in_cmath=yes
29661else
29662  echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
29665ac_cv_func_isnan_in_cmath=no
29666fi
29667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29668  ac_ext=c
29669ac_cpp='$CPP $CPPFLAGS'
29670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29672ac_compiler_gnu=$ac_cv_c_compiler_gnu
29673
29674fi
29675echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29676echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29677
29678if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29679
29680cat >>confdefs.h <<\_ACEOF
29681#define HAVE_ISNAN_IN_CMATH 1
29682_ACEOF
29683
29684fi
29685
29686echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29687echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29688if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29689  echo $ECHO_N "(cached) $ECHO_C" >&6
29690else
29691  ac_ext=cc
29692ac_cpp='$CXXCPP $CPPFLAGS'
29693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29696
29697   cat >conftest.$ac_ext <<_ACEOF
29698/* confdefs.h.  */
29699_ACEOF
29700cat confdefs.h >>conftest.$ac_ext
29701cat >>conftest.$ac_ext <<_ACEOF
29702/* end confdefs.h.  */
29703#include <cmath>
29704int
29705main ()
29706{
29707float f; std::isnan(f);
29708  ;
29709  return 0;
29710}
29711_ACEOF
29712rm -f conftest.$ac_objext
29713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29714  (eval $ac_compile) 2>conftest.er1
29715  ac_status=$?
29716  grep -v '^ *+' conftest.er1 >conftest.err
29717  rm -f conftest.er1
29718  cat conftest.err >&5
29719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720  (exit $ac_status); } &&
29721	 { ac_try='test -z "$ac_cxx_werror_flag"
29722			 || test ! -s conftest.err'
29723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724  (eval $ac_try) 2>&5
29725  ac_status=$?
29726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727  (exit $ac_status); }; } &&
29728	 { ac_try='test -s conftest.$ac_objext'
29729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730  (eval $ac_try) 2>&5
29731  ac_status=$?
29732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733  (exit $ac_status); }; }; then
29734  ac_cv_func_std_isnan_in_cmath=yes
29735else
29736  echo "$as_me: failed program was:" >&5
29737sed 's/^/| /' conftest.$ac_ext >&5
29738
29739ac_cv_func_std_isnan_in_cmath=no
29740fi
29741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29742  ac_ext=c
29743ac_cpp='$CPP $CPPFLAGS'
29744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29746ac_compiler_gnu=$ac_cv_c_compiler_gnu
29747
29748fi
29749echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29750echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29751
29752if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29753
29754cat >>confdefs.h <<\_ACEOF
29755#define HAVE_STD_ISNAN_IN_CMATH 1
29756_ACEOF
29757
29758fi
29759
29760
29761echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29762echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29763if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29764  echo $ECHO_N "(cached) $ECHO_C" >&6
29765else
29766  ac_ext=cc
29767ac_cpp='$CXXCPP $CPPFLAGS'
29768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29771
29772   cat >conftest.$ac_ext <<_ACEOF
29773/* confdefs.h.  */
29774_ACEOF
29775cat confdefs.h >>conftest.$ac_ext
29776cat >>conftest.$ac_ext <<_ACEOF
29777/* end confdefs.h.  */
29778#include <math.h>
29779int
29780main ()
29781{
29782float f; isinf(f);
29783  ;
29784  return 0;
29785}
29786_ACEOF
29787rm -f conftest.$ac_objext
29788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29789  (eval $ac_compile) 2>conftest.er1
29790  ac_status=$?
29791  grep -v '^ *+' conftest.er1 >conftest.err
29792  rm -f conftest.er1
29793  cat conftest.err >&5
29794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795  (exit $ac_status); } &&
29796	 { ac_try='test -z "$ac_cxx_werror_flag"
29797			 || test ! -s conftest.err'
29798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799  (eval $ac_try) 2>&5
29800  ac_status=$?
29801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802  (exit $ac_status); }; } &&
29803	 { ac_try='test -s conftest.$ac_objext'
29804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805  (eval $ac_try) 2>&5
29806  ac_status=$?
29807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808  (exit $ac_status); }; }; then
29809  ac_cv_func_isinf_in_math_h=yes
29810else
29811  echo "$as_me: failed program was:" >&5
29812sed 's/^/| /' conftest.$ac_ext >&5
29813
29814ac_cv_func_isinf_in_math_h=no
29815fi
29816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29817  ac_ext=c
29818ac_cpp='$CPP $CPPFLAGS'
29819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29821ac_compiler_gnu=$ac_cv_c_compiler_gnu
29822
29823fi
29824echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29825echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29826
29827if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29828
29829cat >>confdefs.h <<\_ACEOF
29830#define HAVE_ISINF_IN_MATH_H 1
29831_ACEOF
29832
29833fi
29834
29835echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29836echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29837if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29838  echo $ECHO_N "(cached) $ECHO_C" >&6
29839else
29840  ac_ext=cc
29841ac_cpp='$CXXCPP $CPPFLAGS'
29842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29845
29846   cat >conftest.$ac_ext <<_ACEOF
29847/* confdefs.h.  */
29848_ACEOF
29849cat confdefs.h >>conftest.$ac_ext
29850cat >>conftest.$ac_ext <<_ACEOF
29851/* end confdefs.h.  */
29852#include <cmath>
29853int
29854main ()
29855{
29856float f; isinf(f);
29857  ;
29858  return 0;
29859}
29860_ACEOF
29861rm -f conftest.$ac_objext
29862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29863  (eval $ac_compile) 2>conftest.er1
29864  ac_status=$?
29865  grep -v '^ *+' conftest.er1 >conftest.err
29866  rm -f conftest.er1
29867  cat conftest.err >&5
29868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869  (exit $ac_status); } &&
29870	 { ac_try='test -z "$ac_cxx_werror_flag"
29871			 || test ! -s conftest.err'
29872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873  (eval $ac_try) 2>&5
29874  ac_status=$?
29875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876  (exit $ac_status); }; } &&
29877	 { ac_try='test -s conftest.$ac_objext'
29878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879  (eval $ac_try) 2>&5
29880  ac_status=$?
29881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882  (exit $ac_status); }; }; then
29883  ac_cv_func_isinf_in_cmath=yes
29884else
29885  echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888ac_cv_func_isinf_in_cmath=no
29889fi
29890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29891  ac_ext=c
29892ac_cpp='$CPP $CPPFLAGS'
29893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29895ac_compiler_gnu=$ac_cv_c_compiler_gnu
29896
29897fi
29898echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29899echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29900
29901if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29902
29903cat >>confdefs.h <<\_ACEOF
29904#define HAVE_ISINF_IN_CMATH 1
29905_ACEOF
29906
29907fi
29908
29909echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29910echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29911if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29912  echo $ECHO_N "(cached) $ECHO_C" >&6
29913else
29914  ac_ext=cc
29915ac_cpp='$CXXCPP $CPPFLAGS'
29916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29919
29920   cat >conftest.$ac_ext <<_ACEOF
29921/* confdefs.h.  */
29922_ACEOF
29923cat confdefs.h >>conftest.$ac_ext
29924cat >>conftest.$ac_ext <<_ACEOF
29925/* end confdefs.h.  */
29926#include <cmath>
29927int
29928main ()
29929{
29930float f; std::isinf(f)}
29931  ;
29932  return 0;
29933}
29934_ACEOF
29935rm -f conftest.$ac_objext
29936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29937  (eval $ac_compile) 2>conftest.er1
29938  ac_status=$?
29939  grep -v '^ *+' conftest.er1 >conftest.err
29940  rm -f conftest.er1
29941  cat conftest.err >&5
29942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943  (exit $ac_status); } &&
29944	 { ac_try='test -z "$ac_cxx_werror_flag"
29945			 || test ! -s conftest.err'
29946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947  (eval $ac_try) 2>&5
29948  ac_status=$?
29949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950  (exit $ac_status); }; } &&
29951	 { ac_try='test -s conftest.$ac_objext'
29952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953  (eval $ac_try) 2>&5
29954  ac_status=$?
29955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956  (exit $ac_status); }; }; then
29957  ac_cv_func_std_isinf_in_cmath=yes
29958else
29959  echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
29962ac_cv_func_std_isinf_in_cmath=no
29963fi
29964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29965  ac_ext=c
29966ac_cpp='$CPP $CPPFLAGS'
29967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29969ac_compiler_gnu=$ac_cv_c_compiler_gnu
29970
29971fi
29972echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29973echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29974
29975if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29976
29977cat >>confdefs.h <<\_ACEOF
29978#define HAVE_STD_ISINF_IN_CMATH 1
29979_ACEOF
29980
29981fi
29982
29983echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29984echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29985if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29986  echo $ECHO_N "(cached) $ECHO_C" >&6
29987else
29988  ac_ext=cc
29989ac_cpp='$CXXCPP $CPPFLAGS'
29990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29993
29994   cat >conftest.$ac_ext <<_ACEOF
29995/* confdefs.h.  */
29996_ACEOF
29997cat confdefs.h >>conftest.$ac_ext
29998cat >>conftest.$ac_ext <<_ACEOF
29999/* end confdefs.h.  */
30000#include <ieeefp.h>
30001int
30002main ()
30003{
30004float f; finite(f);
30005  ;
30006  return 0;
30007}
30008_ACEOF
30009rm -f conftest.$ac_objext
30010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30011  (eval $ac_compile) 2>conftest.er1
30012  ac_status=$?
30013  grep -v '^ *+' conftest.er1 >conftest.err
30014  rm -f conftest.er1
30015  cat conftest.err >&5
30016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017  (exit $ac_status); } &&
30018	 { ac_try='test -z "$ac_cxx_werror_flag"
30019			 || test ! -s conftest.err'
30020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30021  (eval $ac_try) 2>&5
30022  ac_status=$?
30023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024  (exit $ac_status); }; } &&
30025	 { ac_try='test -s conftest.$ac_objext'
30026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027  (eval $ac_try) 2>&5
30028  ac_status=$?
30029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030  (exit $ac_status); }; }; then
30031  ac_cv_func_finite_in_ieeefp_h=yes
30032else
30033  echo "$as_me: failed program was:" >&5
30034sed 's/^/| /' conftest.$ac_ext >&5
30035
30036ac_cv_func_finite_in_ieeefp_h=no
30037fi
30038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30039  ac_ext=c
30040ac_cpp='$CPP $CPPFLAGS'
30041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043ac_compiler_gnu=$ac_cv_c_compiler_gnu
30044
30045fi
30046echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30047echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30048
30049if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30050
30051cat >>confdefs.h <<\_ACEOF
30052#define HAVE_FINITE_IN_IEEEFP_H 1
30053_ACEOF
30054
30055fi
30056
30057
30058
30059
30060
30061for ac_header in stdlib.h unistd.h
30062do
30063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30064if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065  echo "$as_me:$LINENO: checking for $ac_header" >&5
30066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30067if eval "test \"\${$as_ac_Header+set}\" = set"; then
30068  echo $ECHO_N "(cached) $ECHO_C" >&6
30069fi
30070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30072else
30073  # Is the header compilable?
30074echo "$as_me:$LINENO: checking $ac_header usability" >&5
30075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30076cat >conftest.$ac_ext <<_ACEOF
30077/* confdefs.h.  */
30078_ACEOF
30079cat confdefs.h >>conftest.$ac_ext
30080cat >>conftest.$ac_ext <<_ACEOF
30081/* end confdefs.h.  */
30082$ac_includes_default
30083#include <$ac_header>
30084_ACEOF
30085rm -f conftest.$ac_objext
30086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30087  (eval $ac_compile) 2>conftest.er1
30088  ac_status=$?
30089  grep -v '^ *+' conftest.er1 >conftest.err
30090  rm -f conftest.er1
30091  cat conftest.err >&5
30092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093  (exit $ac_status); } &&
30094	 { ac_try='test -z "$ac_c_werror_flag"
30095			 || test ! -s conftest.err'
30096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097  (eval $ac_try) 2>&5
30098  ac_status=$?
30099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100  (exit $ac_status); }; } &&
30101	 { ac_try='test -s conftest.$ac_objext'
30102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103  (eval $ac_try) 2>&5
30104  ac_status=$?
30105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106  (exit $ac_status); }; }; then
30107  ac_header_compiler=yes
30108else
30109  echo "$as_me: failed program was:" >&5
30110sed 's/^/| /' conftest.$ac_ext >&5
30111
30112ac_header_compiler=no
30113fi
30114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116echo "${ECHO_T}$ac_header_compiler" >&6
30117
30118# Is the header present?
30119echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30121cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h.  */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h.  */
30127#include <$ac_header>
30128_ACEOF
30129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30131  ac_status=$?
30132  grep -v '^ *+' conftest.er1 >conftest.err
30133  rm -f conftest.er1
30134  cat conftest.err >&5
30135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136  (exit $ac_status); } >/dev/null; then
30137  if test -s conftest.err; then
30138    ac_cpp_err=$ac_c_preproc_warn_flag
30139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30140  else
30141    ac_cpp_err=
30142  fi
30143else
30144  ac_cpp_err=yes
30145fi
30146if test -z "$ac_cpp_err"; then
30147  ac_header_preproc=yes
30148else
30149  echo "$as_me: failed program was:" >&5
30150sed 's/^/| /' conftest.$ac_ext >&5
30151
30152  ac_header_preproc=no
30153fi
30154rm -f conftest.err conftest.$ac_ext
30155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30156echo "${ECHO_T}$ac_header_preproc" >&6
30157
30158# So?  What about this header?
30159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30160  yes:no: )
30161    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30165    ac_header_preproc=yes
30166    ;;
30167  no:yes:* )
30168    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30170    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30171echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30172    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30174    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30175echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30178    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30180    (
30181      cat <<\_ASBOX
30182## ----------------------------------- ##
30183## Report this to llvmbugs@cs.uiuc.edu ##
30184## ----------------------------------- ##
30185_ASBOX
30186    ) |
30187      sed "s/^/$as_me: WARNING:     /" >&2
30188    ;;
30189esac
30190echo "$as_me:$LINENO: checking for $ac_header" >&5
30191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30192if eval "test \"\${$as_ac_Header+set}\" = set"; then
30193  echo $ECHO_N "(cached) $ECHO_C" >&6
30194else
30195  eval "$as_ac_Header=\$ac_header_preproc"
30196fi
30197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30199
30200fi
30201if test `eval echo '${'$as_ac_Header'}'` = yes; then
30202  cat >>confdefs.h <<_ACEOF
30203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30204_ACEOF
30205
30206fi
30207
30208done
30209
30210
30211for ac_func in getpagesize
30212do
30213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214echo "$as_me:$LINENO: checking for $ac_func" >&5
30215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30216if eval "test \"\${$as_ac_var+set}\" = set"; then
30217  echo $ECHO_N "(cached) $ECHO_C" >&6
30218else
30219  cat >conftest.$ac_ext <<_ACEOF
30220/* confdefs.h.  */
30221_ACEOF
30222cat confdefs.h >>conftest.$ac_ext
30223cat >>conftest.$ac_ext <<_ACEOF
30224/* end confdefs.h.  */
30225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30227#define $ac_func innocuous_$ac_func
30228
30229/* System header to define __stub macros and hopefully few prototypes,
30230    which can conflict with char $ac_func (); below.
30231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30232    <limits.h> exists even on freestanding compilers.  */
30233
30234#ifdef __STDC__
30235# include <limits.h>
30236#else
30237# include <assert.h>
30238#endif
30239
30240#undef $ac_func
30241
30242/* Override any gcc2 internal prototype to avoid an error.  */
30243#ifdef __cplusplus
30244extern "C"
30245{
30246#endif
30247/* We use char because int might match the return type of a gcc2
30248   builtin and then its argument prototype would still apply.  */
30249char $ac_func ();
30250/* The GNU C library defines this for functions which it implements
30251    to always fail with ENOSYS.  Some functions are actually named
30252    something starting with __ and the normal name is an alias.  */
30253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30254choke me
30255#else
30256char (*f) () = $ac_func;
30257#endif
30258#ifdef __cplusplus
30259}
30260#endif
30261
30262int
30263main ()
30264{
30265return f != $ac_func;
30266  ;
30267  return 0;
30268}
30269_ACEOF
30270rm -f conftest.$ac_objext conftest$ac_exeext
30271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30272  (eval $ac_link) 2>conftest.er1
30273  ac_status=$?
30274  grep -v '^ *+' conftest.er1 >conftest.err
30275  rm -f conftest.er1
30276  cat conftest.err >&5
30277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278  (exit $ac_status); } &&
30279	 { ac_try='test -z "$ac_c_werror_flag"
30280			 || test ! -s conftest.err'
30281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30282  (eval $ac_try) 2>&5
30283  ac_status=$?
30284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285  (exit $ac_status); }; } &&
30286	 { ac_try='test -s conftest$ac_exeext'
30287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30288  (eval $ac_try) 2>&5
30289  ac_status=$?
30290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291  (exit $ac_status); }; }; then
30292  eval "$as_ac_var=yes"
30293else
30294  echo "$as_me: failed program was:" >&5
30295sed 's/^/| /' conftest.$ac_ext >&5
30296
30297eval "$as_ac_var=no"
30298fi
30299rm -f conftest.err conftest.$ac_objext \
30300      conftest$ac_exeext conftest.$ac_ext
30301fi
30302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30303echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30304if test `eval echo '${'$as_ac_var'}'` = yes; then
30305  cat >>confdefs.h <<_ACEOF
30306#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30307_ACEOF
30308
30309fi
30310done
30311
30312echo "$as_me:$LINENO: checking for working mmap" >&5
30313echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30314if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30315  echo $ECHO_N "(cached) $ECHO_C" >&6
30316else
30317  if test "$cross_compiling" = yes; then
30318  ac_cv_func_mmap_fixed_mapped=no
30319else
30320  cat >conftest.$ac_ext <<_ACEOF
30321/* confdefs.h.  */
30322_ACEOF
30323cat confdefs.h >>conftest.$ac_ext
30324cat >>conftest.$ac_ext <<_ACEOF
30325/* end confdefs.h.  */
30326$ac_includes_default
30327/* malloc might have been renamed as rpl_malloc. */
30328#undef malloc
30329
30330/* Thanks to Mike Haertel and Jim Avera for this test.
30331   Here is a matrix of mmap possibilities:
30332	mmap private not fixed
30333	mmap private fixed at somewhere currently unmapped
30334	mmap private fixed at somewhere already mapped
30335	mmap shared not fixed
30336	mmap shared fixed at somewhere currently unmapped
30337	mmap shared fixed at somewhere already mapped
30338   For private mappings, we should verify that changes cannot be read()
30339   back from the file, nor mmap's back from the file at a different
30340   address.  (There have been systems where private was not correctly
30341   implemented like the infamous i386 svr4.0, and systems where the
30342   VM page cache was not coherent with the file system buffer cache
30343   like early versions of FreeBSD and possibly contemporary NetBSD.)
30344   For shared mappings, we should conversely verify that changes get
30345   propagated back to all the places they're supposed to be.
30346
30347   Grep wants private fixed already mapped.
30348   The main things grep needs to know about mmap are:
30349   * does it exist and is it safe to write into the mmap'd area
30350   * how to use it (BSD variants)  */
30351
30352#include <fcntl.h>
30353#include <sys/mman.h>
30354
30355#if !STDC_HEADERS && !HAVE_STDLIB_H
30356char *malloc ();
30357#endif
30358
30359/* This mess was copied from the GNU getpagesize.h.  */
30360#if !HAVE_GETPAGESIZE
30361/* Assume that all systems that can run configure have sys/param.h.  */
30362# if !HAVE_SYS_PARAM_H
30363#  define HAVE_SYS_PARAM_H 1
30364# endif
30365
30366# ifdef _SC_PAGESIZE
30367#  define getpagesize() sysconf(_SC_PAGESIZE)
30368# else /* no _SC_PAGESIZE */
30369#  if HAVE_SYS_PARAM_H
30370#   include <sys/param.h>
30371#   ifdef EXEC_PAGESIZE
30372#    define getpagesize() EXEC_PAGESIZE
30373#   else /* no EXEC_PAGESIZE */
30374#    ifdef NBPG
30375#     define getpagesize() NBPG * CLSIZE
30376#     ifndef CLSIZE
30377#      define CLSIZE 1
30378#     endif /* no CLSIZE */
30379#    else /* no NBPG */
30380#     ifdef NBPC
30381#      define getpagesize() NBPC
30382#     else /* no NBPC */
30383#      ifdef PAGESIZE
30384#       define getpagesize() PAGESIZE
30385#      endif /* PAGESIZE */
30386#     endif /* no NBPC */
30387#    endif /* no NBPG */
30388#   endif /* no EXEC_PAGESIZE */
30389#  else /* no HAVE_SYS_PARAM_H */
30390#   define getpagesize() 8192	/* punt totally */
30391#  endif /* no HAVE_SYS_PARAM_H */
30392# endif /* no _SC_PAGESIZE */
30393
30394#endif /* no HAVE_GETPAGESIZE */
30395
30396int
30397main ()
30398{
30399  char *data, *data2, *data3;
30400  int i, pagesize;
30401  int fd;
30402
30403  pagesize = getpagesize ();
30404
30405  /* First, make a file with some known garbage in it. */
30406  data = (char *) malloc (pagesize);
30407  if (!data)
30408    exit (1);
30409  for (i = 0; i < pagesize; ++i)
30410    *(data + i) = rand ();
30411  umask (0);
30412  fd = creat ("conftest.mmap", 0600);
30413  if (fd < 0)
30414    exit (1);
30415  if (write (fd, data, pagesize) != pagesize)
30416    exit (1);
30417  close (fd);
30418
30419  /* Next, try to mmap the file at a fixed address which already has
30420     something else allocated at it.  If we can, also make sure that
30421     we see the same garbage.  */
30422  fd = open ("conftest.mmap", O_RDWR);
30423  if (fd < 0)
30424    exit (1);
30425  data2 = (char *) malloc (2 * pagesize);
30426  if (!data2)
30427    exit (1);
30428  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30429  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30430		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
30431    exit (1);
30432  for (i = 0; i < pagesize; ++i)
30433    if (*(data + i) != *(data2 + i))
30434      exit (1);
30435
30436  /* Finally, make sure that changes to the mapped area do not
30437     percolate back to the file as seen by read().  (This is a bug on
30438     some variants of i386 svr4.0.)  */
30439  for (i = 0; i < pagesize; ++i)
30440    *(data2 + i) = *(data2 + i) + 1;
30441  data3 = (char *) malloc (pagesize);
30442  if (!data3)
30443    exit (1);
30444  if (read (fd, data3, pagesize) != pagesize)
30445    exit (1);
30446  for (i = 0; i < pagesize; ++i)
30447    if (*(data + i) != *(data3 + i))
30448      exit (1);
30449  close (fd);
30450  exit (0);
30451}
30452_ACEOF
30453rm -f conftest$ac_exeext
30454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30455  (eval $ac_link) 2>&5
30456  ac_status=$?
30457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460  (eval $ac_try) 2>&5
30461  ac_status=$?
30462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463  (exit $ac_status); }; }; then
30464  ac_cv_func_mmap_fixed_mapped=yes
30465else
30466  echo "$as_me: program exited with status $ac_status" >&5
30467echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470( exit $ac_status )
30471ac_cv_func_mmap_fixed_mapped=no
30472fi
30473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30474fi
30475fi
30476echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30477echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30478if test $ac_cv_func_mmap_fixed_mapped = yes; then
30479
30480cat >>confdefs.h <<\_ACEOF
30481#define HAVE_MMAP 1
30482_ACEOF
30483
30484fi
30485rm -f conftest.mmap
30486
30487echo "$as_me:$LINENO: checking for mmap of files" >&5
30488echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30489if test "${ac_cv_func_mmap_file+set}" = set; then
30490  echo $ECHO_N "(cached) $ECHO_C" >&6
30491else
30492   ac_ext=c
30493ac_cpp='$CPP $CPPFLAGS'
30494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497
30498  if test "$cross_compiling" = yes; then
30499  ac_cv_func_mmap_file=no
30500else
30501  cat >conftest.$ac_ext <<_ACEOF
30502
30503    /* confdefs.h.  */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h.  */
30508
30509#include <sys/types.h>
30510#include <sys/mman.h>
30511#include <fcntl.h>
30512
30513int
30514main ()
30515{
30516
30517  int fd;
30518  fd = creat ("foo",0777);
30519  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30520  unlink ("foo");
30521  return (fd != (int) MAP_FAILED);
30522  ;
30523  return 0;
30524}
30525_ACEOF
30526rm -f conftest$ac_exeext
30527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30528  (eval $ac_link) 2>&5
30529  ac_status=$?
30530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533  (eval $ac_try) 2>&5
30534  ac_status=$?
30535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536  (exit $ac_status); }; }; then
30537  ac_cv_func_mmap_file=yes
30538else
30539  echo "$as_me: program exited with status $ac_status" >&5
30540echo "$as_me: failed program was:" >&5
30541sed 's/^/| /' conftest.$ac_ext >&5
30542
30543( exit $ac_status )
30544ac_cv_func_mmap_file=no
30545fi
30546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30547fi
30548  ac_ext=c
30549ac_cpp='$CPP $CPPFLAGS'
30550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30552ac_compiler_gnu=$ac_cv_c_compiler_gnu
30553
30554
30555fi
30556echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30557echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30558if test "$ac_cv_func_mmap_file" = yes; then
30559
30560cat >>confdefs.h <<\_ACEOF
30561#define HAVE_MMAP_FILE
30562_ACEOF
30563
30564   MMAP_FILE=yes
30565
30566fi
30567
30568echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30569echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30570if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30571  echo $ECHO_N "(cached) $ECHO_C" >&6
30572else
30573  if test "$llvm_cv_os_type" = "Interix" ; then
30574   ac_cv_need_dev_zero_for_mmap=yes
30575 else
30576   ac_cv_need_dev_zero_for_mmap=no
30577 fi
30578
30579fi
30580echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30581echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30582if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30583
30584cat >>confdefs.h <<\_ACEOF
30585#define NEED_DEV_ZERO_FOR_MMAP 1
30586_ACEOF
30587
30588fi
30589echo "$as_me:$LINENO: checking for mprotect" >&5
30590echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30591if test "${ac_cv_func_mprotect+set}" = set; then
30592  echo $ECHO_N "(cached) $ECHO_C" >&6
30593else
30594  cat >conftest.$ac_ext <<_ACEOF
30595/* confdefs.h.  */
30596_ACEOF
30597cat confdefs.h >>conftest.$ac_ext
30598cat >>conftest.$ac_ext <<_ACEOF
30599/* end confdefs.h.  */
30600/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30602#define mprotect innocuous_mprotect
30603
30604/* System header to define __stub macros and hopefully few prototypes,
30605    which can conflict with char mprotect (); below.
30606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30607    <limits.h> exists even on freestanding compilers.  */
30608
30609#ifdef __STDC__
30610# include <limits.h>
30611#else
30612# include <assert.h>
30613#endif
30614
30615#undef mprotect
30616
30617/* Override any gcc2 internal prototype to avoid an error.  */
30618#ifdef __cplusplus
30619extern "C"
30620{
30621#endif
30622/* We use char because int might match the return type of a gcc2
30623   builtin and then its argument prototype would still apply.  */
30624char mprotect ();
30625/* The GNU C library defines this for functions which it implements
30626    to always fail with ENOSYS.  Some functions are actually named
30627    something starting with __ and the normal name is an alias.  */
30628#if defined (__stub_mprotect) || defined (__stub___mprotect)
30629choke me
30630#else
30631char (*f) () = mprotect;
30632#endif
30633#ifdef __cplusplus
30634}
30635#endif
30636
30637int
30638main ()
30639{
30640return f != mprotect;
30641  ;
30642  return 0;
30643}
30644_ACEOF
30645rm -f conftest.$ac_objext conftest$ac_exeext
30646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30647  (eval $ac_link) 2>conftest.er1
30648  ac_status=$?
30649  grep -v '^ *+' conftest.er1 >conftest.err
30650  rm -f conftest.er1
30651  cat conftest.err >&5
30652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653  (exit $ac_status); } &&
30654	 { ac_try='test -z "$ac_c_werror_flag"
30655			 || test ! -s conftest.err'
30656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657  (eval $ac_try) 2>&5
30658  ac_status=$?
30659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660  (exit $ac_status); }; } &&
30661	 { ac_try='test -s conftest$ac_exeext'
30662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663  (eval $ac_try) 2>&5
30664  ac_status=$?
30665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666  (exit $ac_status); }; }; then
30667  ac_cv_func_mprotect=yes
30668else
30669  echo "$as_me: failed program was:" >&5
30670sed 's/^/| /' conftest.$ac_ext >&5
30671
30672ac_cv_func_mprotect=no
30673fi
30674rm -f conftest.err conftest.$ac_objext \
30675      conftest$ac_exeext conftest.$ac_ext
30676fi
30677echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30678echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30679if test $ac_cv_func_mprotect = yes; then
30680  :
30681else
30682  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30683echo "$as_me: error: Function mprotect() required but not found" >&2;}
30684   { (exit 1); exit 1; }; }
30685fi
30686
30687
30688if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30689then
30690  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30691echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30692fi
30693if test "$ac_cv_func_mmap_file" = "no"
30694then
30695  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30696echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30697fi
30698
30699
30700echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30701echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30702if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30703  echo $ECHO_N "(cached) $ECHO_C" >&6
30704else
30705  llvm_cv_llvmgcc_sanity="no"
30706if test -x "$LLVMGCC" ; then
30707  cp /dev/null conftest.c
30708  "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30709  if test $? -eq 0 ; then
30710    llvm_cv_llvmgcc_sanity="yes"
30711  fi
30712  rm conftest.c
30713fi
30714fi
30715echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30716echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30717
30718if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30719  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30720  LLVMCC1=$llvmcc1path
30721
30722  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30723  LLVMCC1PLUS=$llvmcc1pluspath
30724
30725  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30726  LLVMGCCDIR=$llvmgccdir
30727
30728  llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
30729  llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30730  LLVMGCC_VERSION=$llvmgccversion
30731
30732  LLVMGCC_MAJVERS=$llvmgccmajvers
30733
30734fi
30735
30736SHLIBEXT=$libltdl_cv_shlibext
30737
30738
30739# Translate the various configuration directories and other basic
30740# information into substitutions that will end up in Makefile.config.in
30741# that these configured values can be used by the makefiles
30742if test "${prefix}" == "NONE" ; then
30743  prefix="/usr/local"
30744fi
30745eval LLVM_PREFIX="${prefix}";
30746eval LLVM_BINDIR="${prefix}/bin";
30747eval LLVM_LIBDIR="${prefix}/lib";
30748eval LLVM_DATADIR="${prefix}/share/llvm";
30749eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30750eval LLVM_ETCDIR="${prefix}/etc/llvm";
30751eval LLVM_INCLUDEDIR="${prefix}/include";
30752eval LLVM_INFODIR="${prefix}/info";
30753eval LLVM_MANDIR="${prefix}/man";
30754LLVM_CONFIGTIME=`date`
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766# Place the various directores into the config.h file as #defines so that we
30767# can know about the installation paths within LLVM.
30768
30769cat >>confdefs.h <<_ACEOF
30770#define LLVM_PREFIX "$LLVM_PREFIX"
30771_ACEOF
30772
30773
30774cat >>confdefs.h <<_ACEOF
30775#define LLVM_BINDIR "$LLVM_BINDIR"
30776_ACEOF
30777
30778
30779cat >>confdefs.h <<_ACEOF
30780#define LLVM_LIBDIR "$LLVM_LIBDIR"
30781_ACEOF
30782
30783
30784cat >>confdefs.h <<_ACEOF
30785#define LLVM_DATADIR "$LLVM_DATADIR"
30786_ACEOF
30787
30788
30789cat >>confdefs.h <<_ACEOF
30790#define LLVM_DATADIR "$LLVM_DOCSDIR"
30791_ACEOF
30792
30793
30794cat >>confdefs.h <<_ACEOF
30795#define LLVM_ETCDIR "$LLVM_ETCDIR"
30796_ACEOF
30797
30798
30799cat >>confdefs.h <<_ACEOF
30800#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30801_ACEOF
30802
30803
30804cat >>confdefs.h <<_ACEOF
30805#define LLVM_INFODIR "$LLVM_INFODIR"
30806_ACEOF
30807
30808
30809cat >>confdefs.h <<_ACEOF
30810#define LLVM_MANDIR "$LLVM_MANDIR"
30811_ACEOF
30812
30813
30814cat >>confdefs.h <<_ACEOF
30815#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30816_ACEOF
30817
30818
30819
30820          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30821
30822          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30823
30824          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30825
30826          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30827
30828          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30829
30830
30831          ac_config_files="$ac_config_files Makefile.config"
30832
30833
30834          ac_config_files="$ac_config_files docs/doxygen.cfg"
30835
30836
30837          ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
30838
30839
30840          ac_config_commands="$ac_config_commands setup"
30841
30842          ac_config_commands="$ac_config_commands Makefile"
30843
30844
30845          ac_config_commands="$ac_config_commands Makefile.common"
30846
30847
30848          ac_config_commands="$ac_config_commands examples/Makefile"
30849
30850
30851          ac_config_commands="$ac_config_commands lib/Makefile"
30852
30853
30854          ac_config_commands="$ac_config_commands runtime/Makefile"
30855
30856
30857          ac_config_commands="$ac_config_commands test/Makefile"
30858
30859
30860          ac_config_commands="$ac_config_commands test/Makefile.tests"
30861
30862
30863          ac_config_commands="$ac_config_commands tools/Makefile"
30864
30865
30866          ac_config_commands="$ac_config_commands utils/Makefile"
30867
30868
30869          ac_config_commands="$ac_config_commands projects/Makefile"
30870
30871
30872
30873cat >confcache <<\_ACEOF
30874# This file is a shell script that caches the results of configure
30875# tests run on this system so they can be shared between configure
30876# scripts and configure runs, see configure's option --config-cache.
30877# It is not useful on other systems.  If it contains results you don't
30878# want to keep, you may remove or edit it.
30879#
30880# config.status only pays attention to the cache file if you give it
30881# the --recheck option to rerun configure.
30882#
30883# `ac_cv_env_foo' variables (set or unset) will be overridden when
30884# loading this file, other *unset* `ac_cv_foo' will be assigned the
30885# following values.
30886
30887_ACEOF
30888
30889# The following way of writing the cache mishandles newlines in values,
30890# but we know of no workaround that is simple, portable, and efficient.
30891# So, don't put newlines in cache variables' values.
30892# Ultrix sh set writes to stderr and can't be redirected directly,
30893# and sets the high bit in the cache file unless we assign to the vars.
30894{
30895  (set) 2>&1 |
30896    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30897    *ac_space=\ *)
30898      # `set' does not quote correctly, so add quotes (double-quote
30899      # substitution turns \\\\ into \\, and sed turns \\ into \).
30900      sed -n \
30901	"s/'/'\\\\''/g;
30902	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30903      ;;
30904    *)
30905      # `set' quotes correctly as required by POSIX, so do not add quotes.
30906      sed -n \
30907	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30908      ;;
30909    esac;
30910} |
30911  sed '
30912     t clear
30913     : clear
30914     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30915     t end
30916     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30917     : end' >>confcache
30918if diff $cache_file confcache >/dev/null 2>&1; then :; else
30919  if test -w $cache_file; then
30920    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30921    cat confcache >$cache_file
30922  else
30923    echo "not updating unwritable cache $cache_file"
30924  fi
30925fi
30926rm -f confcache
30927
30928test "x$prefix" = xNONE && prefix=$ac_default_prefix
30929# Let make expand exec_prefix.
30930test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30931
30932# VPATH may cause trouble with some makes, so we remove $(srcdir),
30933# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30934# trailing colons and then remove the whole line if VPATH becomes empty
30935# (actually we leave an empty line to preserve line numbers).
30936if test "x$srcdir" = x.; then
30937  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30938s/:*\$(srcdir):*/:/;
30939s/:*\${srcdir}:*/:/;
30940s/:*@srcdir@:*/:/;
30941s/^\([^=]*=[	 ]*\):*/\1/;
30942s/:*$//;
30943s/^[^=]*=[	 ]*$//;
30944}'
30945fi
30946
30947DEFS=-DHAVE_CONFIG_H
30948
30949ac_libobjs=
30950ac_ltlibobjs=
30951for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30952  # 1. Remove the extension, and $U if already installed.
30953  ac_i=`echo "$ac_i" |
30954	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30955  # 2. Add them.
30956  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30957  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30958done
30959LIBOBJS=$ac_libobjs
30960
30961LTLIBOBJS=$ac_ltlibobjs
30962
30963
30964if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30965  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30966Usually this means the macro was only invoked conditionally." >&5
30967echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30968Usually this means the macro was only invoked conditionally." >&2;}
30969   { (exit 1); exit 1; }; }
30970fi
30971if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30972  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30973Usually this means the macro was only invoked conditionally." >&5
30974echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30975Usually this means the macro was only invoked conditionally." >&2;}
30976   { (exit 1); exit 1; }; }
30977fi
30978
30979: ${CONFIG_STATUS=./config.status}
30980ac_clean_files_save=$ac_clean_files
30981ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30982{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30983echo "$as_me: creating $CONFIG_STATUS" >&6;}
30984cat >$CONFIG_STATUS <<_ACEOF
30985#! $SHELL
30986# Generated by $as_me.
30987# Run this file to recreate the current configuration.
30988# Compiler output produced by configure, useful for debugging
30989# configure, is in config.log if it exists.
30990
30991debug=false
30992ac_cs_recheck=false
30993ac_cs_silent=false
30994SHELL=\${CONFIG_SHELL-$SHELL}
30995_ACEOF
30996
30997cat >>$CONFIG_STATUS <<\_ACEOF
30998## --------------------- ##
30999## M4sh Initialization.  ##
31000## --------------------- ##
31001
31002# Be Bourne compatible
31003if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31004  emulate sh
31005  NULLCMD=:
31006  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31007  # is contrary to our usage.  Disable this feature.
31008  alias -g '${1+"$@"}'='"$@"'
31009elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31010  set -o posix
31011fi
31012DUALCASE=1; export DUALCASE # for MKS sh
31013
31014# Support unset when possible.
31015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31016  as_unset=unset
31017else
31018  as_unset=false
31019fi
31020
31021
31022# Work around bugs in pre-3.0 UWIN ksh.
31023$as_unset ENV MAIL MAILPATH
31024PS1='$ '
31025PS2='> '
31026PS4='+ '
31027
31028# NLS nuisances.
31029for as_var in \
31030  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31031  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31032  LC_TELEPHONE LC_TIME
31033do
31034  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31035    eval $as_var=C; export $as_var
31036  else
31037    $as_unset $as_var
31038  fi
31039done
31040
31041# Required to use basename.
31042if expr a : '\(a\)' >/dev/null 2>&1; then
31043  as_expr=expr
31044else
31045  as_expr=false
31046fi
31047
31048if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31049  as_basename=basename
31050else
31051  as_basename=false
31052fi
31053
31054
31055# Name of the executable.
31056as_me=`$as_basename "$0" ||
31057$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31058	 X"$0" : 'X\(//\)$' \| \
31059	 X"$0" : 'X\(/\)$' \| \
31060	 .     : '\(.\)' 2>/dev/null ||
31061echo X/"$0" |
31062    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31063  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31064  	  /^X\/\(\/\).*/{ s//\1/; q; }
31065  	  s/.*/./; q'`
31066
31067
31068# PATH needs CR, and LINENO needs CR and PATH.
31069# Avoid depending upon Character Ranges.
31070as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31071as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31072as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31073as_cr_digits='0123456789'
31074as_cr_alnum=$as_cr_Letters$as_cr_digits
31075
31076# The user is always right.
31077if test "${PATH_SEPARATOR+set}" != set; then
31078  echo "#! /bin/sh" >conf$$.sh
31079  echo  "exit 0"   >>conf$$.sh
31080  chmod +x conf$$.sh
31081  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31082    PATH_SEPARATOR=';'
31083  else
31084    PATH_SEPARATOR=:
31085  fi
31086  rm -f conf$$.sh
31087fi
31088
31089
31090  as_lineno_1=$LINENO
31091  as_lineno_2=$LINENO
31092  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31093  test "x$as_lineno_1" != "x$as_lineno_2" &&
31094  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31095  # Find who we are.  Look in the path if we contain no path at all
31096  # relative or not.
31097  case $0 in
31098    *[\\/]* ) as_myself=$0 ;;
31099    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100for as_dir in $PATH
31101do
31102  IFS=$as_save_IFS
31103  test -z "$as_dir" && as_dir=.
31104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31105done
31106
31107       ;;
31108  esac
31109  # We did not find ourselves, most probably we were run as `sh COMMAND'
31110  # in which case we are not to be found in the path.
31111  if test "x$as_myself" = x; then
31112    as_myself=$0
31113  fi
31114  if test ! -f "$as_myself"; then
31115    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31116echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31117   { (exit 1); exit 1; }; }
31118  fi
31119  case $CONFIG_SHELL in
31120  '')
31121    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31122for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31123do
31124  IFS=$as_save_IFS
31125  test -z "$as_dir" && as_dir=.
31126  for as_base in sh bash ksh sh5; do
31127	 case $as_dir in
31128	 /*)
31129	   if ("$as_dir/$as_base" -c '
31130  as_lineno_1=$LINENO
31131  as_lineno_2=$LINENO
31132  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31133  test "x$as_lineno_1" != "x$as_lineno_2" &&
31134  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31135	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31136	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31137	     CONFIG_SHELL=$as_dir/$as_base
31138	     export CONFIG_SHELL
31139	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31140	   fi;;
31141	 esac
31142       done
31143done
31144;;
31145  esac
31146
31147  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31148  # uniformly replaced by the line number.  The first 'sed' inserts a
31149  # line-number line before each line; the second 'sed' does the real
31150  # work.  The second script uses 'N' to pair each line-number line
31151  # with the numbered line, and appends trailing '-' during
31152  # substitution so that $LINENO is not a special case at line end.
31153  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31154  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31155  sed '=' <$as_myself |
31156    sed '
31157      N
31158      s,$,-,
31159      : loop
31160      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31161      t loop
31162      s,-$,,
31163      s,^['$as_cr_digits']*\n,,
31164    ' >$as_me.lineno &&
31165  chmod +x $as_me.lineno ||
31166    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31167echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31168   { (exit 1); exit 1; }; }
31169
31170  # Don't try to exec as it changes $[0], causing all sort of problems
31171  # (the dirname of $[0] is not the place where we might find the
31172  # original and so on.  Autoconf is especially sensible to this).
31173  . ./$as_me.lineno
31174  # Exit status is that of the last command.
31175  exit
31176}
31177
31178
31179case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31180  *c*,-n*) ECHO_N= ECHO_C='
31181' ECHO_T='	' ;;
31182  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31183  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31184esac
31185
31186if expr a : '\(a\)' >/dev/null 2>&1; then
31187  as_expr=expr
31188else
31189  as_expr=false
31190fi
31191
31192rm -f conf$$ conf$$.exe conf$$.file
31193echo >conf$$.file
31194if ln -s conf$$.file conf$$ 2>/dev/null; then
31195  # We could just check for DJGPP; but this test a) works b) is more generic
31196  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31197  if test -f conf$$.exe; then
31198    # Don't use ln at all; we don't have any links
31199    as_ln_s='cp -p'
31200  else
31201    as_ln_s='ln -s'
31202  fi
31203elif ln conf$$.file conf$$ 2>/dev/null; then
31204  as_ln_s=ln
31205else
31206  as_ln_s='cp -p'
31207fi
31208rm -f conf$$ conf$$.exe conf$$.file
31209
31210if mkdir -p . 2>/dev/null; then
31211  as_mkdir_p=:
31212else
31213  test -d ./-p && rmdir ./-p
31214  as_mkdir_p=false
31215fi
31216
31217as_executable_p="test -f"
31218
31219# Sed expression to map a string onto a valid CPP name.
31220as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31221
31222# Sed expression to map a string onto a valid variable name.
31223as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31224
31225
31226# IFS
31227# We need space, tab and new line, in precisely that order.
31228as_nl='
31229'
31230IFS=" 	$as_nl"
31231
31232# CDPATH.
31233$as_unset CDPATH
31234
31235exec 6>&1
31236
31237# Open the log real soon, to keep \$[0] and so on meaningful, and to
31238# report actual input values of CONFIG_FILES etc. instead of their
31239# values after options handling.  Logging --version etc. is OK.
31240exec 5>>config.log
31241{
31242  echo
31243  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31244## Running $as_me. ##
31245_ASBOX
31246} >&5
31247cat >&5 <<_CSEOF
31248
31249This file was extended by llvm $as_me 1.8cvs, which was
31250generated by GNU Autoconf 2.59.  Invocation command line was
31251
31252  CONFIG_FILES    = $CONFIG_FILES
31253  CONFIG_HEADERS  = $CONFIG_HEADERS
31254  CONFIG_LINKS    = $CONFIG_LINKS
31255  CONFIG_COMMANDS = $CONFIG_COMMANDS
31256  $ $0 $@
31257
31258_CSEOF
31259echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31260echo >&5
31261_ACEOF
31262
31263# Files that config.status was made for.
31264if test -n "$ac_config_files"; then
31265  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31266fi
31267
31268if test -n "$ac_config_headers"; then
31269  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31270fi
31271
31272if test -n "$ac_config_links"; then
31273  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31274fi
31275
31276if test -n "$ac_config_commands"; then
31277  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31278fi
31279
31280cat >>$CONFIG_STATUS <<\_ACEOF
31281
31282ac_cs_usage="\
31283\`$as_me' instantiates files from templates according to the
31284current configuration.
31285
31286Usage: $0 [OPTIONS] [FILE]...
31287
31288  -h, --help       print this help, then exit
31289  -V, --version    print version number, then exit
31290  -q, --quiet      do not print progress messages
31291  -d, --debug      don't remove temporary files
31292      --recheck    update $as_me by reconfiguring in the same conditions
31293  --file=FILE[:TEMPLATE]
31294		   instantiate the configuration file FILE
31295  --header=FILE[:TEMPLATE]
31296		   instantiate the configuration header FILE
31297
31298Configuration files:
31299$config_files
31300
31301Configuration headers:
31302$config_headers
31303
31304Configuration commands:
31305$config_commands
31306
31307Report bugs to <bug-autoconf@gnu.org>."
31308_ACEOF
31309
31310cat >>$CONFIG_STATUS <<_ACEOF
31311ac_cs_version="\\
31312llvm config.status 1.8cvs
31313configured by $0, generated by GNU Autoconf 2.59,
31314  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31315
31316Copyright (C) 2003 Free Software Foundation, Inc.
31317This config.status script is free software; the Free Software Foundation
31318gives unlimited permission to copy, distribute and modify it."
31319srcdir=$srcdir
31320INSTALL="$INSTALL"
31321_ACEOF
31322
31323cat >>$CONFIG_STATUS <<\_ACEOF
31324# If no file are specified by the user, then we need to provide default
31325# value.  By we need to know if files were specified by the user.
31326ac_need_defaults=:
31327while test $# != 0
31328do
31329  case $1 in
31330  --*=*)
31331    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31332    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31333    ac_shift=:
31334    ;;
31335  -*)
31336    ac_option=$1
31337    ac_optarg=$2
31338    ac_shift=shift
31339    ;;
31340  *) # This is not an option, so the user has probably given explicit
31341     # arguments.
31342     ac_option=$1
31343     ac_need_defaults=false;;
31344  esac
31345
31346  case $ac_option in
31347  # Handling of the options.
31348_ACEOF
31349cat >>$CONFIG_STATUS <<\_ACEOF
31350  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31351    ac_cs_recheck=: ;;
31352  --version | --vers* | -V )
31353    echo "$ac_cs_version"; exit 0 ;;
31354  --he | --h)
31355    # Conflict between --help and --header
31356    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31357Try \`$0 --help' for more information." >&5
31358echo "$as_me: error: ambiguous option: $1
31359Try \`$0 --help' for more information." >&2;}
31360   { (exit 1); exit 1; }; };;
31361  --help | --hel | -h )
31362    echo "$ac_cs_usage"; exit 0 ;;
31363  --debug | --d* | -d )
31364    debug=: ;;
31365  --file | --fil | --fi | --f )
31366    $ac_shift
31367    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31368    ac_need_defaults=false;;
31369  --header | --heade | --head | --hea )
31370    $ac_shift
31371    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31372    ac_need_defaults=false;;
31373  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31374  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31375    ac_cs_silent=: ;;
31376
31377  # This is an error.
31378  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31379Try \`$0 --help' for more information." >&5
31380echo "$as_me: error: unrecognized option: $1
31381Try \`$0 --help' for more information." >&2;}
31382   { (exit 1); exit 1; }; } ;;
31383
31384  *) ac_config_targets="$ac_config_targets $1" ;;
31385
31386  esac
31387  shift
31388done
31389
31390ac_configure_extra_args=
31391
31392if $ac_cs_silent; then
31393  exec 6>/dev/null
31394  ac_configure_extra_args="$ac_configure_extra_args --silent"
31395fi
31396
31397_ACEOF
31398cat >>$CONFIG_STATUS <<_ACEOF
31399if \$ac_cs_recheck; then
31400  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31401  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31402fi
31403
31404_ACEOF
31405
31406cat >>$CONFIG_STATUS <<_ACEOF
31407#
31408# INIT-COMMANDS section.
31409#
31410
31411llvm_src="${srcdir}"
31412
31413_ACEOF
31414
31415
31416
31417cat >>$CONFIG_STATUS <<\_ACEOF
31418for ac_config_target in $ac_config_targets
31419do
31420  case "$ac_config_target" in
31421  # Handling of arguments.
31422  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31423  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31424  "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31425  "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31426  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31427  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31428  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31429  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31430  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31431  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31432  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31433  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31434  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31435  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31436  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31437  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31438  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31439  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31440  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31441  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31442echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31443   { (exit 1); exit 1; }; };;
31444  esac
31445done
31446
31447# If the user did not use the arguments to specify the items to instantiate,
31448# then the envvar interface is used.  Set only those that are not.
31449# We use the long form for the default assignment because of an extremely
31450# bizarre bug on SunOS 4.1.3.
31451if $ac_need_defaults; then
31452  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31453  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31454  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31455fi
31456
31457# Have a temporary directory for convenience.  Make it in the build tree
31458# simply because there is no reason to put it here, and in addition,
31459# creating and moving files from /tmp can sometimes cause problems.
31460# Create a temporary directory, and hook for its removal unless debugging.
31461$debug ||
31462{
31463  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31464  trap '{ (exit 1); exit 1; }' 1 2 13 15
31465}
31466
31467# Create a (secure) tmp directory for tmp files.
31468
31469{
31470  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31471  test -n "$tmp" && test -d "$tmp"
31472}  ||
31473{
31474  tmp=./confstat$$-$RANDOM
31475  (umask 077 && mkdir $tmp)
31476} ||
31477{
31478   echo "$me: cannot create a temporary directory in ." >&2
31479   { (exit 1); exit 1; }
31480}
31481
31482_ACEOF
31483
31484cat >>$CONFIG_STATUS <<_ACEOF
31485
31486#
31487# CONFIG_FILES section.
31488#
31489
31490# No need to generate the scripts if there are no CONFIG_FILES.
31491# This happens for instance when ./config.status config.h
31492if test -n "\$CONFIG_FILES"; then
31493  # Protect against being on the right side of a sed subst in config.status.
31494  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31495   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31496s,@SHELL@,$SHELL,;t t
31497s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31498s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31499s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31500s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31501s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31502s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31503s,@exec_prefix@,$exec_prefix,;t t
31504s,@prefix@,$prefix,;t t
31505s,@program_transform_name@,$program_transform_name,;t t
31506s,@bindir@,$bindir,;t t
31507s,@sbindir@,$sbindir,;t t
31508s,@libexecdir@,$libexecdir,;t t
31509s,@datadir@,$datadir,;t t
31510s,@sysconfdir@,$sysconfdir,;t t
31511s,@sharedstatedir@,$sharedstatedir,;t t
31512s,@localstatedir@,$localstatedir,;t t
31513s,@libdir@,$libdir,;t t
31514s,@includedir@,$includedir,;t t
31515s,@oldincludedir@,$oldincludedir,;t t
31516s,@infodir@,$infodir,;t t
31517s,@mandir@,$mandir,;t t
31518s,@build_alias@,$build_alias,;t t
31519s,@host_alias@,$host_alias,;t t
31520s,@target_alias@,$target_alias,;t t
31521s,@DEFS@,$DEFS,;t t
31522s,@ECHO_C@,$ECHO_C,;t t
31523s,@ECHO_N@,$ECHO_N,;t t
31524s,@ECHO_T@,$ECHO_T,;t t
31525s,@LIBS@,$LIBS,;t t
31526s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31527s,@subdirs@,$subdirs,;t t
31528s,@build@,$build,;t t
31529s,@build_cpu@,$build_cpu,;t t
31530s,@build_vendor@,$build_vendor,;t t
31531s,@build_os@,$build_os,;t t
31532s,@host@,$host,;t t
31533s,@host_cpu@,$host_cpu,;t t
31534s,@host_vendor@,$host_vendor,;t t
31535s,@host_os@,$host_os,;t t
31536s,@target@,$target,;t t
31537s,@target_cpu@,$target_cpu,;t t
31538s,@target_vendor@,$target_vendor,;t t
31539s,@target_os@,$target_os,;t t
31540s,@OS@,$OS,;t t
31541s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31542s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31543s,@ARCH@,$ARCH,;t t
31544s,@ENDIAN@,$ENDIAN,;t t
31545s,@CC@,$CC,;t t
31546s,@CFLAGS@,$CFLAGS,;t t
31547s,@LDFLAGS@,$LDFLAGS,;t t
31548s,@CPPFLAGS@,$CPPFLAGS,;t t
31549s,@ac_ct_CC@,$ac_ct_CC,;t t
31550s,@EXEEXT@,$EXEEXT,;t t
31551s,@OBJEXT@,$OBJEXT,;t t
31552s,@CVSBUILD@,$CVSBUILD,;t t
31553s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31554s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31555s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31556s,@JIT@,$JIT,;t t
31557s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31558s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31559s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31560s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31561s,@CPP@,$CPP,;t t
31562s,@CXX@,$CXX,;t t
31563s,@CXXFLAGS@,$CXXFLAGS,;t t
31564s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31565s,@LEX@,$LEX,;t t
31566s,@LEXLIB@,$LEXLIB,;t t
31567s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31568s,@FLEX@,$FLEX,;t t
31569s,@YACC@,$YACC,;t t
31570s,@BISON@,$BISON,;t t
31571s,@ifGNUmake@,$ifGNUmake,;t t
31572s,@LN_S@,$LN_S,;t t
31573s,@CMP@,$CMP,;t t
31574s,@CP@,$CP,;t t
31575s,@DATE@,$DATE,;t t
31576s,@FIND@,$FIND,;t t
31577s,@GREP@,$GREP,;t t
31578s,@MKDIR@,$MKDIR,;t t
31579s,@MV@,$MV,;t t
31580s,@RANLIB@,$RANLIB,;t t
31581s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31582s,@RM@,$RM,;t t
31583s,@SED@,$SED,;t t
31584s,@TAR@,$TAR,;t t
31585s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31586s,@GV@,$GV,;t t
31587s,@PERL@,$PERL,;t t
31588s,@HAVE_PERL@,$HAVE_PERL,;t t
31589s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31590s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31591s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31592s,@BZIP2@,$BZIP2,;t t
31593s,@DOT@,$DOT,;t t
31594s,@DOXYGEN@,$DOXYGEN,;t t
31595s,@ETAGS@,$ETAGS,;t t
31596s,@GROFF@,$GROFF,;t t
31597s,@GZIP@,$GZIP,;t t
31598s,@POD2HTML@,$POD2HTML,;t t
31599s,@POD2MAN@,$POD2MAN,;t t
31600s,@RUNTEST@,$RUNTEST,;t t
31601s,@TCLSH@,$TCLSH,;t t
31602s,@ZIP@,$ZIP,;t t
31603s,@EGREP@,$EGREP,;t t
31604s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31605s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31606s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31607s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31608s,@LIBADD_DL@,$LIBADD_DL,;t t
31609s,@ECHO@,$ECHO,;t t
31610s,@AR@,$AR,;t t
31611s,@ac_ct_AR@,$ac_ct_AR,;t t
31612s,@STRIP@,$STRIP,;t t
31613s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31614s,@CXXCPP@,$CXXCPP,;t t
31615s,@F77@,$F77,;t t
31616s,@FFLAGS@,$FFLAGS,;t t
31617s,@ac_ct_F77@,$ac_ct_F77,;t t
31618s,@LIBTOOL@,$LIBTOOL,;t t
31619s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31620s,@LLVMGCC@,$LLVMGCC,;t t
31621s,@LLVMGXX@,$LLVMGXX,;t t
31622s,@ALLOCA@,$ALLOCA,;t t
31623s,@MMAP_FILE@,$MMAP_FILE,;t t
31624s,@LLVMCC1@,$LLVMCC1,;t t
31625s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31626s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31627s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31628s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31629s,@SHLIBEXT@,$SHLIBEXT,;t t
31630s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31631s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31632s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31633s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31634s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31635s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31636s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31637s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31638s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31639s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31640s,@LIBOBJS@,$LIBOBJS,;t t
31641s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31642CEOF
31643
31644_ACEOF
31645
31646  cat >>$CONFIG_STATUS <<\_ACEOF
31647  # Split the substitutions into bite-sized pieces for seds with
31648  # small command number limits, like on Digital OSF/1 and HP-UX.
31649  ac_max_sed_lines=48
31650  ac_sed_frag=1 # Number of current file.
31651  ac_beg=1 # First line for current file.
31652  ac_end=$ac_max_sed_lines # Line after last line for current file.
31653  ac_more_lines=:
31654  ac_sed_cmds=
31655  while $ac_more_lines; do
31656    if test $ac_beg -gt 1; then
31657      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31658    else
31659      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31660    fi
31661    if test ! -s $tmp/subs.frag; then
31662      ac_more_lines=false
31663    else
31664      # The purpose of the label and of the branching condition is to
31665      # speed up the sed processing (if there are no `@' at all, there
31666      # is no need to browse any of the substitutions).
31667      # These are the two extra sed commands mentioned above.
31668      (echo ':t
31669  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31670      if test -z "$ac_sed_cmds"; then
31671	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31672      else
31673	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31674      fi
31675      ac_sed_frag=`expr $ac_sed_frag + 1`
31676      ac_beg=$ac_end
31677      ac_end=`expr $ac_end + $ac_max_sed_lines`
31678    fi
31679  done
31680  if test -z "$ac_sed_cmds"; then
31681    ac_sed_cmds=cat
31682  fi
31683fi # test -n "$CONFIG_FILES"
31684
31685_ACEOF
31686cat >>$CONFIG_STATUS <<\_ACEOF
31687for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31688  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31689  case $ac_file in
31690  - | *:- | *:-:* ) # input from stdin
31691	cat >$tmp/stdin
31692	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31693	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31694  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31695	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31696  * )   ac_file_in=$ac_file.in ;;
31697  esac
31698
31699  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31700  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31701$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31702	 X"$ac_file" : 'X\(//\)[^/]' \| \
31703	 X"$ac_file" : 'X\(//\)$' \| \
31704	 X"$ac_file" : 'X\(/\)' \| \
31705	 .     : '\(.\)' 2>/dev/null ||
31706echo X"$ac_file" |
31707    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31708  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31709  	  /^X\(\/\/\)$/{ s//\1/; q; }
31710  	  /^X\(\/\).*/{ s//\1/; q; }
31711  	  s/.*/./; q'`
31712  { if $as_mkdir_p; then
31713    mkdir -p "$ac_dir"
31714  else
31715    as_dir="$ac_dir"
31716    as_dirs=
31717    while test ! -d "$as_dir"; do
31718      as_dirs="$as_dir $as_dirs"
31719      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31721	 X"$as_dir" : 'X\(//\)[^/]' \| \
31722	 X"$as_dir" : 'X\(//\)$' \| \
31723	 X"$as_dir" : 'X\(/\)' \| \
31724	 .     : '\(.\)' 2>/dev/null ||
31725echo X"$as_dir" |
31726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31727  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31728  	  /^X\(\/\/\)$/{ s//\1/; q; }
31729  	  /^X\(\/\).*/{ s//\1/; q; }
31730  	  s/.*/./; q'`
31731    done
31732    test ! -n "$as_dirs" || mkdir $as_dirs
31733  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31734echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31735   { (exit 1); exit 1; }; }; }
31736
31737  ac_builddir=.
31738
31739if test "$ac_dir" != .; then
31740  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31741  # A "../" for each directory in $ac_dir_suffix.
31742  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31743else
31744  ac_dir_suffix= ac_top_builddir=
31745fi
31746
31747case $srcdir in
31748  .)  # No --srcdir option.  We are building in place.
31749    ac_srcdir=.
31750    if test -z "$ac_top_builddir"; then
31751       ac_top_srcdir=.
31752    else
31753       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31754    fi ;;
31755  [\\/]* | ?:[\\/]* )  # Absolute path.
31756    ac_srcdir=$srcdir$ac_dir_suffix;
31757    ac_top_srcdir=$srcdir ;;
31758  *) # Relative path.
31759    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31760    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31761esac
31762
31763# Do not use `cd foo && pwd` to compute absolute paths, because
31764# the directories may not exist.
31765case `pwd` in
31766.) ac_abs_builddir="$ac_dir";;
31767*)
31768  case "$ac_dir" in
31769  .) ac_abs_builddir=`pwd`;;
31770  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31771  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31772  esac;;
31773esac
31774case $ac_abs_builddir in
31775.) ac_abs_top_builddir=${ac_top_builddir}.;;
31776*)
31777  case ${ac_top_builddir}. in
31778  .) ac_abs_top_builddir=$ac_abs_builddir;;
31779  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31780  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31781  esac;;
31782esac
31783case $ac_abs_builddir in
31784.) ac_abs_srcdir=$ac_srcdir;;
31785*)
31786  case $ac_srcdir in
31787  .) ac_abs_srcdir=$ac_abs_builddir;;
31788  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31789  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31790  esac;;
31791esac
31792case $ac_abs_builddir in
31793.) ac_abs_top_srcdir=$ac_top_srcdir;;
31794*)
31795  case $ac_top_srcdir in
31796  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31797  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31798  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31799  esac;;
31800esac
31801
31802
31803  case $INSTALL in
31804  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31805  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31806  esac
31807
31808  if test x"$ac_file" != x-; then
31809    { echo "$as_me:$LINENO: creating $ac_file" >&5
31810echo "$as_me: creating $ac_file" >&6;}
31811    rm -f "$ac_file"
31812  fi
31813  # Let's still pretend it is `configure' which instantiates (i.e., don't
31814  # use $as_me), people would be surprised to read:
31815  #    /* config.h.  Generated by config.status.  */
31816  if test x"$ac_file" = x-; then
31817    configure_input=
31818  else
31819    configure_input="$ac_file.  "
31820  fi
31821  configure_input=$configure_input"Generated from `echo $ac_file_in |
31822				     sed 's,.*/,,'` by configure."
31823
31824  # First look for the input files in the build tree, otherwise in the
31825  # src tree.
31826  ac_file_inputs=`IFS=:
31827    for f in $ac_file_in; do
31828      case $f in
31829      -) echo $tmp/stdin ;;
31830      [\\/$]*)
31831	 # Absolute (can't be DOS-style, as IFS=:)
31832	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31833echo "$as_me: error: cannot find input file: $f" >&2;}
31834   { (exit 1); exit 1; }; }
31835	 echo "$f";;
31836      *) # Relative
31837	 if test -f "$f"; then
31838	   # Build tree
31839	   echo "$f"
31840	 elif test -f "$srcdir/$f"; then
31841	   # Source tree
31842	   echo "$srcdir/$f"
31843	 else
31844	   # /dev/null tree
31845	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31846echo "$as_me: error: cannot find input file: $f" >&2;}
31847   { (exit 1); exit 1; }; }
31848	 fi;;
31849      esac
31850    done` || { (exit 1); exit 1; }
31851_ACEOF
31852cat >>$CONFIG_STATUS <<_ACEOF
31853  sed "$ac_vpsub
31854$extrasub
31855_ACEOF
31856cat >>$CONFIG_STATUS <<\_ACEOF
31857:t
31858/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31859s,@configure_input@,$configure_input,;t t
31860s,@srcdir@,$ac_srcdir,;t t
31861s,@abs_srcdir@,$ac_abs_srcdir,;t t
31862s,@top_srcdir@,$ac_top_srcdir,;t t
31863s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31864s,@builddir@,$ac_builddir,;t t
31865s,@abs_builddir@,$ac_abs_builddir,;t t
31866s,@top_builddir@,$ac_top_builddir,;t t
31867s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31868s,@INSTALL@,$ac_INSTALL,;t t
31869" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31870  rm -f $tmp/stdin
31871  if test x"$ac_file" != x-; then
31872    mv $tmp/out $ac_file
31873  else
31874    cat $tmp/out
31875    rm -f $tmp/out
31876  fi
31877
31878done
31879_ACEOF
31880cat >>$CONFIG_STATUS <<\_ACEOF
31881
31882#
31883# CONFIG_HEADER section.
31884#
31885
31886# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31887# NAME is the cpp macro being defined and VALUE is the value it is being given.
31888#
31889# ac_d sets the value in "#define NAME VALUE" lines.
31890ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31891ac_dB='[	 ].*$,\1#\2'
31892ac_dC=' '
31893ac_dD=',;t'
31894# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31895ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31896ac_uB='$,\1#\2define\3'
31897ac_uC=' '
31898ac_uD=',;t'
31899
31900for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31901  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31902  case $ac_file in
31903  - | *:- | *:-:* ) # input from stdin
31904	cat >$tmp/stdin
31905	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31906	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31907  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31908	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31909  * )   ac_file_in=$ac_file.in ;;
31910  esac
31911
31912  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31913echo "$as_me: creating $ac_file" >&6;}
31914
31915  # First look for the input files in the build tree, otherwise in the
31916  # src tree.
31917  ac_file_inputs=`IFS=:
31918    for f in $ac_file_in; do
31919      case $f in
31920      -) echo $tmp/stdin ;;
31921      [\\/$]*)
31922	 # Absolute (can't be DOS-style, as IFS=:)
31923	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31924echo "$as_me: error: cannot find input file: $f" >&2;}
31925   { (exit 1); exit 1; }; }
31926	 # Do quote $f, to prevent DOS paths from being IFS'd.
31927	 echo "$f";;
31928      *) # Relative
31929	 if test -f "$f"; then
31930	   # Build tree
31931	   echo "$f"
31932	 elif test -f "$srcdir/$f"; then
31933	   # Source tree
31934	   echo "$srcdir/$f"
31935	 else
31936	   # /dev/null tree
31937	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31938echo "$as_me: error: cannot find input file: $f" >&2;}
31939   { (exit 1); exit 1; }; }
31940	 fi;;
31941      esac
31942    done` || { (exit 1); exit 1; }
31943  # Remove the trailing spaces.
31944  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31945
31946_ACEOF
31947
31948# Transform confdefs.h into two sed scripts, `conftest.defines' and
31949# `conftest.undefs', that substitutes the proper values into
31950# config.h.in to produce config.h.  The first handles `#define'
31951# templates, and the second `#undef' templates.
31952# And first: Protect against being on the right side of a sed subst in
31953# config.status.  Protect against being in an unquoted here document
31954# in config.status.
31955rm -f conftest.defines conftest.undefs
31956# Using a here document instead of a string reduces the quoting nightmare.
31957# Putting comments in sed scripts is not portable.
31958#
31959# `end' is used to avoid that the second main sed command (meant for
31960# 0-ary CPP macros) applies to n-ary macro definitions.
31961# See the Autoconf documentation for `clear'.
31962cat >confdef2sed.sed <<\_ACEOF
31963s/[\\&,]/\\&/g
31964s,[\\$`],\\&,g
31965t clear
31966: clear
31967s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31968t end
31969s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31970: end
31971_ACEOF
31972# If some macros were called several times there might be several times
31973# the same #defines, which is useless.  Nevertheless, we may not want to
31974# sort them, since we want the *last* AC-DEFINE to be honored.
31975uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31976sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31977rm -f confdef2sed.sed
31978
31979# This sed command replaces #undef with comments.  This is necessary, for
31980# example, in the case of _POSIX_SOURCE, which is predefined and required
31981# on some systems where configure will not decide to define it.
31982cat >>conftest.undefs <<\_ACEOF
31983s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31984_ACEOF
31985
31986# Break up conftest.defines because some shells have a limit on the size
31987# of here documents, and old seds have small limits too (100 cmds).
31988echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31989echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31990echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31991echo '  :' >>$CONFIG_STATUS
31992rm -f conftest.tail
31993while grep . conftest.defines >/dev/null
31994do
31995  # Write a limited-size here document to $tmp/defines.sed.
31996  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31997  # Speed up: don't consider the non `#define' lines.
31998  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31999  # Work around the forget-to-reset-the-flag bug.
32000  echo 't clr' >>$CONFIG_STATUS
32001  echo ': clr' >>$CONFIG_STATUS
32002  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32003  echo 'CEOF
32004  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32005  rm -f $tmp/in
32006  mv $tmp/out $tmp/in
32007' >>$CONFIG_STATUS
32008  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32009  rm -f conftest.defines
32010  mv conftest.tail conftest.defines
32011done
32012rm -f conftest.defines
32013echo '  fi # grep' >>$CONFIG_STATUS
32014echo >>$CONFIG_STATUS
32015
32016# Break up conftest.undefs because some shells have a limit on the size
32017# of here documents, and old seds have small limits too (100 cmds).
32018echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32019rm -f conftest.tail
32020while grep . conftest.undefs >/dev/null
32021do
32022  # Write a limited-size here document to $tmp/undefs.sed.
32023  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32024  # Speed up: don't consider the non `#undef'
32025  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32026  # Work around the forget-to-reset-the-flag bug.
32027  echo 't clr' >>$CONFIG_STATUS
32028  echo ': clr' >>$CONFIG_STATUS
32029  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32030  echo 'CEOF
32031  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32032  rm -f $tmp/in
32033  mv $tmp/out $tmp/in
32034' >>$CONFIG_STATUS
32035  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32036  rm -f conftest.undefs
32037  mv conftest.tail conftest.undefs
32038done
32039rm -f conftest.undefs
32040
32041cat >>$CONFIG_STATUS <<\_ACEOF
32042  # Let's still pretend it is `configure' which instantiates (i.e., don't
32043  # use $as_me), people would be surprised to read:
32044  #    /* config.h.  Generated by config.status.  */
32045  if test x"$ac_file" = x-; then
32046    echo "/* Generated by configure.  */" >$tmp/config.h
32047  else
32048    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32049  fi
32050  cat $tmp/in >>$tmp/config.h
32051  rm -f $tmp/in
32052  if test x"$ac_file" != x-; then
32053    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32054      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32055echo "$as_me: $ac_file is unchanged" >&6;}
32056    else
32057      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32058$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32059	 X"$ac_file" : 'X\(//\)[^/]' \| \
32060	 X"$ac_file" : 'X\(//\)$' \| \
32061	 X"$ac_file" : 'X\(/\)' \| \
32062	 .     : '\(.\)' 2>/dev/null ||
32063echo X"$ac_file" |
32064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32065  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32066  	  /^X\(\/\/\)$/{ s//\1/; q; }
32067  	  /^X\(\/\).*/{ s//\1/; q; }
32068  	  s/.*/./; q'`
32069      { if $as_mkdir_p; then
32070    mkdir -p "$ac_dir"
32071  else
32072    as_dir="$ac_dir"
32073    as_dirs=
32074    while test ! -d "$as_dir"; do
32075      as_dirs="$as_dir $as_dirs"
32076      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32078	 X"$as_dir" : 'X\(//\)[^/]' \| \
32079	 X"$as_dir" : 'X\(//\)$' \| \
32080	 X"$as_dir" : 'X\(/\)' \| \
32081	 .     : '\(.\)' 2>/dev/null ||
32082echo X"$as_dir" |
32083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32084  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32085  	  /^X\(\/\/\)$/{ s//\1/; q; }
32086  	  /^X\(\/\).*/{ s//\1/; q; }
32087  	  s/.*/./; q'`
32088    done
32089    test ! -n "$as_dirs" || mkdir $as_dirs
32090  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32091echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32092   { (exit 1); exit 1; }; }; }
32093
32094      rm -f $ac_file
32095      mv $tmp/config.h $ac_file
32096    fi
32097  else
32098    cat $tmp/config.h
32099    rm -f $tmp/config.h
32100  fi
32101done
32102_ACEOF
32103cat >>$CONFIG_STATUS <<\_ACEOF
32104
32105#
32106# CONFIG_COMMANDS section.
32107#
32108for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32109  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32110  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32111  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32112$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32113	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32114	 X"$ac_dest" : 'X\(//\)$' \| \
32115	 X"$ac_dest" : 'X\(/\)' \| \
32116	 .     : '\(.\)' 2>/dev/null ||
32117echo X"$ac_dest" |
32118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32119  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32120  	  /^X\(\/\/\)$/{ s//\1/; q; }
32121  	  /^X\(\/\).*/{ s//\1/; q; }
32122  	  s/.*/./; q'`
32123  { if $as_mkdir_p; then
32124    mkdir -p "$ac_dir"
32125  else
32126    as_dir="$ac_dir"
32127    as_dirs=
32128    while test ! -d "$as_dir"; do
32129      as_dirs="$as_dir $as_dirs"
32130      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32131$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32132	 X"$as_dir" : 'X\(//\)[^/]' \| \
32133	 X"$as_dir" : 'X\(//\)$' \| \
32134	 X"$as_dir" : 'X\(/\)' \| \
32135	 .     : '\(.\)' 2>/dev/null ||
32136echo X"$as_dir" |
32137    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32138  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32139  	  /^X\(\/\/\)$/{ s//\1/; q; }
32140  	  /^X\(\/\).*/{ s//\1/; q; }
32141  	  s/.*/./; q'`
32142    done
32143    test ! -n "$as_dirs" || mkdir $as_dirs
32144  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32145echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32146   { (exit 1); exit 1; }; }; }
32147
32148  ac_builddir=.
32149
32150if test "$ac_dir" != .; then
32151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32152  # A "../" for each directory in $ac_dir_suffix.
32153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32154else
32155  ac_dir_suffix= ac_top_builddir=
32156fi
32157
32158case $srcdir in
32159  .)  # No --srcdir option.  We are building in place.
32160    ac_srcdir=.
32161    if test -z "$ac_top_builddir"; then
32162       ac_top_srcdir=.
32163    else
32164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32165    fi ;;
32166  [\\/]* | ?:[\\/]* )  # Absolute path.
32167    ac_srcdir=$srcdir$ac_dir_suffix;
32168    ac_top_srcdir=$srcdir ;;
32169  *) # Relative path.
32170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32172esac
32173
32174# Do not use `cd foo && pwd` to compute absolute paths, because
32175# the directories may not exist.
32176case `pwd` in
32177.) ac_abs_builddir="$ac_dir";;
32178*)
32179  case "$ac_dir" in
32180  .) ac_abs_builddir=`pwd`;;
32181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32183  esac;;
32184esac
32185case $ac_abs_builddir in
32186.) ac_abs_top_builddir=${ac_top_builddir}.;;
32187*)
32188  case ${ac_top_builddir}. in
32189  .) ac_abs_top_builddir=$ac_abs_builddir;;
32190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32192  esac;;
32193esac
32194case $ac_abs_builddir in
32195.) ac_abs_srcdir=$ac_srcdir;;
32196*)
32197  case $ac_srcdir in
32198  .) ac_abs_srcdir=$ac_abs_builddir;;
32199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32201  esac;;
32202esac
32203case $ac_abs_builddir in
32204.) ac_abs_top_srcdir=$ac_top_srcdir;;
32205*)
32206  case $ac_top_srcdir in
32207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32210  esac;;
32211esac
32212
32213
32214  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32215echo "$as_me: executing $ac_dest commands" >&6;}
32216  case $ac_dest in
32217    Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32218   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32219    Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32220   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32221    examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32222   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32223    lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32224   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32225    runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32226   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32227    test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32228   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32229    test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32230   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32231    tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32232   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32233    utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32234   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32235    projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32236   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32237  esac
32238done
32239_ACEOF
32240
32241cat >>$CONFIG_STATUS <<\_ACEOF
32242
32243{ (exit 0); exit 0; }
32244_ACEOF
32245chmod +x $CONFIG_STATUS
32246ac_clean_files=$ac_clean_files_save
32247
32248
32249# configure is writing to config.log, and then calls config.status.
32250# config.status does its own redirection, appending to config.log.
32251# Unfortunately, on DOS this fails, as config.log is still kept open
32252# by configure, so config.status won't be able to write to it; its
32253# output is simply discarded.  So we exec the FD to /dev/null,
32254# effectively closing config.log, so it can be properly (re)opened and
32255# appended to by config.status.  When coming back to configure, we
32256# need to make the FD available again.
32257if test "$no_create" != yes; then
32258  ac_cs_success=:
32259  ac_config_status_args=
32260  test "$silent" = yes &&
32261    ac_config_status_args="$ac_config_status_args --quiet"
32262  exec 5>/dev/null
32263  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32264  exec 5>>config.log
32265  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32266  # would make configure fail if this is the last instruction.
32267  $ac_cs_success || { (exit 1); exit 1; }
32268fi
32269
32270#
32271# CONFIG_SUBDIRS section.
32272#
32273if test "$no_recursion" != yes; then
32274
32275  # Remove --cache-file and --srcdir arguments so they do not pile up.
32276  ac_sub_configure_args=
32277  ac_prev=
32278  for ac_arg in $ac_configure_args; do
32279    if test -n "$ac_prev"; then
32280      ac_prev=
32281      continue
32282    fi
32283    case $ac_arg in
32284    -cache-file | --cache-file | --cache-fil | --cache-fi \
32285    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32286      ac_prev=cache_file ;;
32287    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32288    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32289    | --c=*)
32290      ;;
32291    --config-cache | -C)
32292      ;;
32293    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32294      ac_prev=srcdir ;;
32295    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32296      ;;
32297    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32298      ac_prev=prefix ;;
32299    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32300      ;;
32301    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32302    esac
32303  done
32304
32305  # Always prepend --prefix to ensure using the same prefix
32306  # in subdir configurations.
32307  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32308
32309  ac_popdir=`pwd`
32310  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32311
32312    # Do not complain, so a configure script can configure whichever
32313    # parts of a large source tree are present.
32314    test -d $srcdir/$ac_dir || continue
32315
32316    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32317echo "$as_me: configuring in $ac_dir" >&6;}
32318    { if $as_mkdir_p; then
32319    mkdir -p "$ac_dir"
32320  else
32321    as_dir="$ac_dir"
32322    as_dirs=
32323    while test ! -d "$as_dir"; do
32324      as_dirs="$as_dir $as_dirs"
32325      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32326$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32327	 X"$as_dir" : 'X\(//\)[^/]' \| \
32328	 X"$as_dir" : 'X\(//\)$' \| \
32329	 X"$as_dir" : 'X\(/\)' \| \
32330	 .     : '\(.\)' 2>/dev/null ||
32331echo X"$as_dir" |
32332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32333  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32334  	  /^X\(\/\/\)$/{ s//\1/; q; }
32335  	  /^X\(\/\).*/{ s//\1/; q; }
32336  	  s/.*/./; q'`
32337    done
32338    test ! -n "$as_dirs" || mkdir $as_dirs
32339  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32340echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32341   { (exit 1); exit 1; }; }; }
32342
32343    ac_builddir=.
32344
32345if test "$ac_dir" != .; then
32346  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32347  # A "../" for each directory in $ac_dir_suffix.
32348  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32349else
32350  ac_dir_suffix= ac_top_builddir=
32351fi
32352
32353case $srcdir in
32354  .)  # No --srcdir option.  We are building in place.
32355    ac_srcdir=.
32356    if test -z "$ac_top_builddir"; then
32357       ac_top_srcdir=.
32358    else
32359       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32360    fi ;;
32361  [\\/]* | ?:[\\/]* )  # Absolute path.
32362    ac_srcdir=$srcdir$ac_dir_suffix;
32363    ac_top_srcdir=$srcdir ;;
32364  *) # Relative path.
32365    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32366    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32367esac
32368
32369# Do not use `cd foo && pwd` to compute absolute paths, because
32370# the directories may not exist.
32371case `pwd` in
32372.) ac_abs_builddir="$ac_dir";;
32373*)
32374  case "$ac_dir" in
32375  .) ac_abs_builddir=`pwd`;;
32376  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32377  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32378  esac;;
32379esac
32380case $ac_abs_builddir in
32381.) ac_abs_top_builddir=${ac_top_builddir}.;;
32382*)
32383  case ${ac_top_builddir}. in
32384  .) ac_abs_top_builddir=$ac_abs_builddir;;
32385  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32386  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32387  esac;;
32388esac
32389case $ac_abs_builddir in
32390.) ac_abs_srcdir=$ac_srcdir;;
32391*)
32392  case $ac_srcdir in
32393  .) ac_abs_srcdir=$ac_abs_builddir;;
32394  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32395  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32396  esac;;
32397esac
32398case $ac_abs_builddir in
32399.) ac_abs_top_srcdir=$ac_top_srcdir;;
32400*)
32401  case $ac_top_srcdir in
32402  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32403  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32404  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32405  esac;;
32406esac
32407
32408
32409    cd $ac_dir
32410
32411    # Check for guested configure; otherwise get Cygnus style configure.
32412    if test -f $ac_srcdir/configure.gnu; then
32413      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32414    elif test -f $ac_srcdir/configure; then
32415      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32416    elif test -f $ac_srcdir/configure.in; then
32417      ac_sub_configure=$ac_configure
32418    else
32419      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32420echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32421      ac_sub_configure=
32422    fi
32423
32424    # The recursion is here.
32425    if test -n "$ac_sub_configure"; then
32426      # Make the cache file name correct relative to the subdirectory.
32427      case $cache_file in
32428      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32429      *) # Relative path.
32430	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32431      esac
32432
32433      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32434echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32435      # The eval makes quoting arguments work.
32436      eval $ac_sub_configure $ac_sub_configure_args \
32437	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32438	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32439echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32440   { (exit 1); exit 1; }; }
32441    fi
32442
32443    cd $ac_popdir
32444  done
32445fi
32446
32447
32448if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32449 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32450echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32451 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32452echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32453 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32454echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32455 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32456echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32457 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32458echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32459fi
32460