configure revision c6cf2fbb01f45862545ef51f41980adbff4b7849
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.4.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11# $LLVM_COPYRIGHT
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.4'
429PACKAGE_STRING='llvm 1.4'
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-fefw"
441ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
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 ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR 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 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.4 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.4:";;
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-jit            Enable Just In Time Compiling (default is YES)
1039  --enable-doxygen        Build doxygen documentation (default is NO)
1040  --enable-ltdl-install   install libltdl
1041  --enable-shared[=PKGS]
1042                          build shared libraries [default=yes]
1043  --enable-static[=PKGS]
1044                          build static libraries [default=yes]
1045  --enable-fast-install[=PKGS]
1046                          optimize for fast installation [default=yes]
1047  --disable-libtool-lock  avoid locking (might break parallel builds)
1048
1049Optional Packages:
1050  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1053                          searches PATH)
1054  --with-tclinclude       directory where tcl headers are
1055  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1056  --with-pic              try to use only PIC/non-PIC objects [default=use
1057                          both]
1058  --with-tags[=TAGS]
1059                          include additional configurations [automatic]
1060
1061Some influential environment variables:
1062  CC          C compiler command
1063  CFLAGS      C compiler flags
1064  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065              nonstandard directory <lib dir>
1066  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067              headers in a nonstandard directory <include dir>
1068  CPP         C preprocessor
1069  CXX         C++ compiler command
1070  CXXFLAGS    C++ compiler flags
1071  CXXCPP      C++ preprocessor
1072  F77         Fortran 77 compiler command
1073  FFLAGS      Fortran 77 compiler flags
1074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <llvmbugs@cs.uiuc.edu>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083  # If there are subdirs, report their specific --help.
1084  ac_popdir=`pwd`
1085  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086    test -d $ac_dir || continue
1087    ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091  # A "../" for each directory in $ac_dir_suffix.
1092  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094  ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098  .)  # No --srcdir option.  We are building in place.
1099    ac_srcdir=.
1100    if test -z "$ac_top_builddir"; then
1101       ac_top_srcdir=.
1102    else
1103       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104    fi ;;
1105  [\\/]* | ?:[\\/]* )  # Absolute path.
1106    ac_srcdir=$srcdir$ac_dir_suffix;
1107    ac_top_srcdir=$srcdir ;;
1108  *) # Relative path.
1109    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
1112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118  case "$ac_dir" in
1119  .) ac_abs_builddir=`pwd`;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127  case ${ac_top_builddir}. in
1128  .) ac_abs_top_builddir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136  case $ac_srcdir in
1137  .) ac_abs_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140  esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145  case $ac_top_srcdir in
1146  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149  esac;;
1150esac
1151
1152    cd $ac_dir
1153    # Check for guested configure; otherwise get Cygnus style configure.
1154    if test -f $ac_srcdir/configure.gnu; then
1155      echo
1156      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157    elif test -f $ac_srcdir/configure; then
1158      echo
1159      $SHELL $ac_srcdir/configure  --help=recursive
1160    elif test -f $ac_srcdir/configure.ac ||
1161	   test -f $ac_srcdir/configure.in; then
1162      echo
1163      $ac_configure --help
1164    else
1165      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166    fi
1167    cd $ac_popdir
1168  done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173  cat <<\_ACEOF
1174llvm configure 1.4
1175generated by GNU Autoconf 2.59
1176
1177Copyright (C) 2003 Free Software Foundation, Inc.
1178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
1180
1181$LLVM_COPYRIGHT
1182_ACEOF
1183  exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
1190It was created by llvm $as_me 1.4, which was
1191generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193  $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224  IFS=$as_save_IFS
1225  test -z "$as_dir" && as_dir=.
1226  echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
1243# Strip out --silent because we don't want to record it for future runs.
1244# Also quote any args containing shell meta-characters.
1245# Make two passes to allow for proper duplicate-argument suppression.
1246ac_configure_args=
1247ac_configure_args0=
1248ac_configure_args1=
1249ac_sep=
1250ac_must_keep_next=false
1251for ac_pass in 1 2
1252do
1253  for ac_arg
1254  do
1255    case $ac_arg in
1256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258    | -silent | --silent | --silen | --sile | --sil)
1259      continue ;;
1260    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262    esac
1263    case $ac_pass in
1264    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265    2)
1266      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267      if test $ac_must_keep_next = true; then
1268	ac_must_keep_next=false # Got value, back to normal.
1269      else
1270	case $ac_arg in
1271	  *=* | --config-cache | -C | -disable-* | --disable-* \
1272	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274	  | -with-* | --with-* | -without-* | --without-* | --x)
1275	    case "$ac_configure_args0 " in
1276	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277	    esac
1278	    ;;
1279	  -* ) ac_must_keep_next=true ;;
1280	esac
1281      fi
1282      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283      # Get rid of the leading space.
1284      ac_sep=" "
1285      ;;
1286    esac
1287  done
1288done
1289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log.  We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298  # Save into config.log some information that might help in debugging.
1299  {
1300    echo
1301
1302    cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307    echo
1308    # The following way of writing the cache mishandles newlines in values,
1309{
1310  (set) 2>&1 |
1311    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312    *ac_space=\ *)
1313      sed -n \
1314	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316      ;;
1317    *)
1318      sed -n \
1319	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320      ;;
1321    esac;
1322}
1323    echo
1324
1325    cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330    echo
1331    for ac_var in $ac_subst_vars
1332    do
1333      eval ac_val=$`echo $ac_var`
1334      echo "$ac_var='"'"'$ac_val'"'"'"
1335    done | sort
1336    echo
1337
1338    if test -n "$ac_subst_files"; then
1339      cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344      echo
1345      for ac_var in $ac_subst_files
1346      do
1347	eval ac_val=$`echo $ac_var`
1348	echo "$ac_var='"'"'$ac_val'"'"'"
1349      done | sort
1350      echo
1351    fi
1352
1353    if test -s confdefs.h; then
1354      cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359      echo
1360      sed "/^$/d" confdefs.h | sort
1361      echo
1362    fi
1363    test "$ac_signal" != 0 &&
1364      echo "$as_me: caught signal $ac_signal"
1365    echo "$as_me: exit $exit_status"
1366  } >&5
1367  rm -f core *.core &&
1368  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369    exit $exit_status
1370     ' 0
1371for ac_signal in 1 2 13 15; do
1372  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411  if test "x$prefix" != xNONE; then
1412    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413  else
1414    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415  fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418  if test -r "$ac_site_file"; then
1419    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421    sed 's/^/| /' "$ac_site_file" >&5
1422    . "$ac_site_file"
1423  fi
1424done
1425
1426if test -r "$cache_file"; then
1427  # Some versions of bash will fail to source /dev/null (special
1428  # files actually), so we avoid doing that.
1429  if test -f "$cache_file"; then
1430    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432    case $cache_file in
1433      [\\/]* | ?:[\\/]* ) . $cache_file;;
1434      *)                      . ./$cache_file;;
1435    esac
1436  fi
1437else
1438  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440  >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
1447	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449  eval ac_new_set=\$ac_env_${ac_var}_set
1450  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451  eval ac_new_val="\$ac_env_${ac_var}_value"
1452  case $ac_old_set,$ac_new_set in
1453    set,)
1454      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456      ac_cache_corrupted=: ;;
1457    ,set)
1458      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460      ac_cache_corrupted=: ;;
1461    ,);;
1462    *)
1463      if test "x$ac_old_val" != "x$ac_new_val"; then
1464	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467echo "$as_me:   former value:  $ac_old_val" >&2;}
1468	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469echo "$as_me:   current value: $ac_new_val" >&2;}
1470	ac_cache_corrupted=:
1471      fi;;
1472  esac
1473  # Pass precious variables to config.status.
1474  if test "$ac_new_set" = set; then
1475    case $ac_new_val in
1476    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478    *) ac_arg=$ac_var=$ac_new_val ;;
1479    esac
1480    case " $ac_configure_args " in
1481      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483    esac
1484  fi
1485done
1486if $ac_cache_corrupted; then
1487  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491   { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
1535ac_aux_dir=
1536for ac_dir in autoconf $srcdir/autoconf; do
1537  if test -f $ac_dir/install-sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install-sh -c"
1540    break
1541  elif test -f $ac_dir/install.sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install.sh -c"
1544    break
1545  elif test -f $ac_dir/shtool; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/shtool install -c"
1548    break
1549  fi
1550done
1551if test -z "$ac_aux_dir"; then
1552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560
1561if test ${srcdir} != "." ; then
1562  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1564echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565   { (exit 1); exit 1; }; }
1566  fi
1567fi
1568
1569for i in `ls ${srcdir}/projects`
1570do
1571  if test -d ${srcdir}/projects/${i} ; then
1572    case ${i} in
1573      "CVS") ;;
1574      "sample")
1575
1576subdirs="$subdirs projects/sample"
1577    ;;
1578      "Stacker")
1579
1580subdirs="$subdirs projects/Stacker"
1581   ;;
1582      "llvm-test")
1583
1584subdirs="$subdirs projects/llvm-test"
1585 ;;
1586      "llvm-reopt")
1587
1588subdirs="$subdirs projects/llvm-reopt"
1589;;
1590      "llvm-gcc")
1591
1592subdirs="$subdirs projects/llvm-gcc"
1593  ;;
1594      "llvm-java")
1595
1596subdirs="$subdirs projects/llvm-java"
1597 ;;
1598      "llvm-tv")
1599
1600subdirs="$subdirs projects/llvm-tv"
1601   ;;
1602      "llvm-fefw")
1603
1604subdirs="$subdirs projects/llvm-fefw"
1605 ;;
1606      "llvm-poolalloc")
1607
1608subdirs="$subdirs projects/llvm-poolalloc"
1609 ;;
1610      *)
1611        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1613        ;;
1614    esac
1615  fi
1616done
1617
1618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623   { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632  ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636   { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640   { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651echo "$as_me:$LINENO: checking host system type" >&5
1652echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653if test "${ac_cv_host+set}" = set; then
1654  echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656  ac_cv_host_alias=$host_alias
1657test -z "$ac_cv_host_alias" &&
1658  ac_cv_host_alias=$ac_cv_build_alias
1659ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662   { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666echo "${ECHO_T}$ac_cv_host" >&6
1667host=$ac_cv_host
1668host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673echo "$as_me:$LINENO: checking target system type" >&5
1674echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675if test "${ac_cv_target+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  ac_cv_target_alias=$target_alias
1679test "x$ac_cv_target_alias" = "x" &&
1680  ac_cv_target_alias=$ac_cv_host_alias
1681ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684   { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688echo "${ECHO_T}$ac_cv_target" >&6
1689target=$ac_cv_target
1690target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695# The aliases save the names the user supplied, while $host etc.
1696# will get canonicalized.
1697test -n "$target_alias" &&
1698  test "$program_prefix$program_suffix$program_transform_name" = \
1699    NONENONEs,x,x, &&
1700  program_prefix=${target_alias}-
1701
1702echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704if test "${llvm_cv_os_type+set}" = set; then
1705  echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707  case $build in
1708  *-*-aix*)
1709    llvm_cv_os_type="AIX"
1710    llvm_cv_platform_type="Unix" ;;
1711  *-*-cygwin*)
1712    llvm_cv_os_type="Cygwin"
1713    llvm_cv_platform_type="Unix" ;;
1714  *-*-darwin*)
1715    llvm_cv_os_type="Darwin"
1716    llvm_cv_platform_type="Unix" ;;
1717  *-*-freebsd*)
1718    llvm_cv_os_type="FreeBSD"
1719    llvm_cv_platform_type="Unix" ;;
1720  *-*-interix*)
1721    llvm_cv_os_type="Interix"
1722    llvm_cv_platform_type="Unix" ;;
1723  *-*-linux*)
1724    llvm_cv_os_type="Linux"
1725    llvm_cv_platform_type="Unix" ;;
1726  *-*-solaris*)
1727    llvm_cv_os_type="SunOS"
1728    llvm_cv_platform_type="Unix" ;;
1729  *-*-win32*)
1730    llvm_cv_os_type="Win32"
1731    llvm_cv_platform_type="Win32" ;;
1732  *-*-mingw*)
1733    llvm_cv_os_type="MingW"
1734    llvm_cv_platform_type="Win32" ;;
1735  *)
1736    llvm_cv_os_type="Unknown"
1737    llvm_cv_platform_type="Unknown" ;;
1738esac
1739fi
1740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743if test "$llvm_cv_os_type" = "Unknown" ; then
1744  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746   { (exit 1); exit 1; }; }
1747fi
1748
1749OS=$llvm_cv_os_type
1750
1751
1752case $llvm_cv_platform_type in
1753  Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
1759    LLVM_ON_UNIX=1
1760
1761    LLVM_ON_WIN32=0
1762
1763    ;;
1764  Win32)
1765
1766cat >>confdefs.h <<\_ACEOF
1767#define LLVM_ON_WIN32 1
1768_ACEOF
1769
1770    LLVM_ON_UNIX=0
1771
1772    LLVM_ON_WIN32=1
1773
1774    ;;
1775esac
1776
1777case $target in
1778  sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1779
1780  ;;
1781esac
1782
1783echo "$as_me:$LINENO: checking target architecture" >&5
1784echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785if test "${llvm_cv_target_arch+set}" = set; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  case $target in
1789  i?86-*)                 llvm_cv_target_arch="x86" ;;
1790  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1791  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1792  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1793  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1794  *)                      llvm_cv_target_arch="Unknown" ;;
1795esac
1796fi
1797echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1798echo "${ECHO_T}$llvm_cv_target_arch" >&6
1799
1800if test "$llvm_cv_target_arch" = "Unknown" ; then
1801  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1802echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1803fi
1804
1805ARCH=$llvm_cv_target_arch
1806
1807
1808ac_ext=c
1809ac_cpp='$CPP $CPPFLAGS'
1810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813if test -n "$ac_tool_prefix"; then
1814  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1815set dummy ${ac_tool_prefix}gcc; ac_word=$2
1816echo "$as_me:$LINENO: checking for $ac_word" >&5
1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818if test "${ac_cv_prog_CC+set}" = set; then
1819  echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821  if test -n "$CC"; then
1822  ac_cv_prog_CC="$CC" # Let the user override the test.
1823else
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827  IFS=$as_save_IFS
1828  test -z "$as_dir" && as_dir=.
1829  for ac_exec_ext in '' $ac_executable_extensions; do
1830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833    break 2
1834  fi
1835done
1836done
1837
1838fi
1839fi
1840CC=$ac_cv_prog_CC
1841if test -n "$CC"; then
1842  echo "$as_me:$LINENO: result: $CC" >&5
1843echo "${ECHO_T}$CC" >&6
1844else
1845  echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849fi
1850if test -z "$ac_cv_prog_CC"; then
1851  ac_ct_CC=$CC
1852  # Extract the first word of "gcc", so it can be a program name with args.
1853set dummy gcc; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857  echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859  if test -n "$ac_ct_CC"; then
1860  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865  IFS=$as_save_IFS
1866  test -z "$as_dir" && as_dir=.
1867  for ac_exec_ext in '' $ac_executable_extensions; do
1868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869    ac_cv_prog_ac_ct_CC="gcc"
1870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871    break 2
1872  fi
1873done
1874done
1875
1876fi
1877fi
1878ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879if test -n "$ac_ct_CC"; then
1880  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881echo "${ECHO_T}$ac_ct_CC" >&6
1882else
1883  echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887  CC=$ac_ct_CC
1888else
1889  CC="$ac_cv_prog_CC"
1890fi
1891
1892if test -z "$CC"; then
1893  if test -n "$ac_tool_prefix"; then
1894  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}cc; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_CC+set}" = set; then
1899  echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901  if test -n "$CC"; then
1902  ac_cv_prog_CC="$CC" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907  IFS=$as_save_IFS
1908  test -z "$as_dir" && as_dir=.
1909  for ac_exec_ext in '' $ac_executable_extensions; do
1910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911    ac_cv_prog_CC="${ac_tool_prefix}cc"
1912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913    break 2
1914  fi
1915done
1916done
1917
1918fi
1919fi
1920CC=$ac_cv_prog_CC
1921if test -n "$CC"; then
1922  echo "$as_me:$LINENO: result: $CC" >&5
1923echo "${ECHO_T}$CC" >&6
1924else
1925  echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$ac_cv_prog_CC"; then
1931  ac_ct_CC=$CC
1932  # Extract the first word of "cc", so it can be a program name with args.
1933set dummy cc; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1937  echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939  if test -n "$ac_ct_CC"; then
1940  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945  IFS=$as_save_IFS
1946  test -z "$as_dir" && as_dir=.
1947  for ac_exec_ext in '' $ac_executable_extensions; do
1948  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949    ac_cv_prog_ac_ct_CC="cc"
1950    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951    break 2
1952  fi
1953done
1954done
1955
1956fi
1957fi
1958ac_ct_CC=$ac_cv_prog_ac_ct_CC
1959if test -n "$ac_ct_CC"; then
1960  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1961echo "${ECHO_T}$ac_ct_CC" >&6
1962else
1963  echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967  CC=$ac_ct_CC
1968else
1969  CC="$ac_cv_prog_CC"
1970fi
1971
1972fi
1973if test -z "$CC"; then
1974  # Extract the first word of "cc", so it can be a program name with args.
1975set dummy cc; ac_word=$2
1976echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978if test "${ac_cv_prog_CC+set}" = set; then
1979  echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981  if test -n "$CC"; then
1982  ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984  ac_prog_rejected=no
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990  for ac_exec_ext in '' $ac_executable_extensions; do
1991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993       ac_prog_rejected=yes
1994       continue
1995     fi
1996    ac_cv_prog_CC="cc"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003if test $ac_prog_rejected = yes; then
2004  # We found a bogon in the path, so make sure we never use it.
2005  set dummy $ac_cv_prog_CC
2006  shift
2007  if test $# != 0; then
2008    # We chose a different compiler from the bogus one.
2009    # However, it has the same basename, so the bogon will be chosen
2010    # first if we set CC to just the basename; use the full file name.
2011    shift
2012    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2013  fi
2014fi
2015fi
2016fi
2017CC=$ac_cv_prog_CC
2018if test -n "$CC"; then
2019  echo "$as_me:$LINENO: result: $CC" >&5
2020echo "${ECHO_T}$CC" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026fi
2027if test -z "$CC"; then
2028  if test -n "$ac_tool_prefix"; then
2029  for ac_prog in cl
2030  do
2031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035if test "${ac_cv_prog_CC+set}" = set; then
2036  echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038  if test -n "$CC"; then
2039  ac_cv_prog_CC="$CC" # Let the user override the test.
2040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044  IFS=$as_save_IFS
2045  test -z "$as_dir" && as_dir=.
2046  for ac_exec_ext in '' $ac_executable_extensions; do
2047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050    break 2
2051  fi
2052done
2053done
2054
2055fi
2056fi
2057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
2059  echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066    test -n "$CC" && break
2067  done
2068fi
2069if test -z "$CC"; then
2070  ac_ct_CC=$CC
2071  for ac_prog in cl
2072do
2073  # Extract the first word of "$ac_prog", so it can be a program name with args.
2074set dummy $ac_prog; ac_word=$2
2075echo "$as_me:$LINENO: checking for $ac_word" >&5
2076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078  echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080  if test -n "$ac_ct_CC"; then
2081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082else
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086  IFS=$as_save_IFS
2087  test -z "$as_dir" && as_dir=.
2088  for ac_exec_ext in '' $ac_executable_extensions; do
2089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090    ac_cv_prog_ac_ct_CC="$ac_prog"
2091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092    break 2
2093  fi
2094done
2095done
2096
2097fi
2098fi
2099ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100if test -n "$ac_ct_CC"; then
2101  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102echo "${ECHO_T}$ac_ct_CC" >&6
2103else
2104  echo "$as_me:$LINENO: result: no" >&5
2105echo "${ECHO_T}no" >&6
2106fi
2107
2108  test -n "$ac_ct_CC" && break
2109done
2110
2111  CC=$ac_ct_CC
2112fi
2113
2114fi
2115
2116
2117test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&5
2119echo "$as_me: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&2;}
2121   { (exit 1); exit 1; }; }
2122
2123# Provide some information about the compiler.
2124echo "$as_me:$LINENO:" \
2125     "checking for C compiler version" >&5
2126ac_compiler=`set X $ac_compile; echo $2`
2127{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2128  (eval $ac_compiler --version </dev/null >&5) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2133  (eval $ac_compiler -v </dev/null >&5) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2138  (eval $ac_compiler -V </dev/null >&5) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }
2142
2143cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h.  */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h.  */
2149
2150int
2151main ()
2152{
2153
2154  ;
2155  return 0;
2156}
2157_ACEOF
2158ac_clean_files_save=$ac_clean_files
2159ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160# Try to create an executable without -o first, disregard a.out.
2161# It will help us diagnose broken compilers, and finding out an intuition
2162# of exeext.
2163echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2165ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2167  (eval $ac_link_default) 2>&5
2168  ac_status=$?
2169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170  (exit $ac_status); }; then
2171  # Find the output, starting from the most likely.  This scheme is
2172# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2173# resort.
2174
2175# Be careful to initialize this variable, since it used to be cached.
2176# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2177ac_cv_exeext=
2178# b.out is created by i960 compilers.
2179for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180do
2181  test -f "$ac_file" || continue
2182  case $ac_file in
2183    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184	;;
2185    conftest.$ac_ext )
2186	# This is the source file.
2187	;;
2188    [ab].out )
2189	# We found the default executable, but exeext='' is most
2190	# certainly right.
2191	break;;
2192    *.* )
2193	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194	# FIXME: I believe we export ac_cv_exeext for Libtool,
2195	# but it would be cool to find out if it's true.  Does anybody
2196	# maintain Libtool? --akim.
2197	export ac_cv_exeext
2198	break;;
2199    * )
2200	break;;
2201  esac
2202done
2203else
2204  echo "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
2206
2207{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: C compiler cannot create executables
2210See \`config.log' for more details." >&2;}
2211   { (exit 77); exit 77; }; }
2212fi
2213
2214ac_exeext=$ac_cv_exeext
2215echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6
2217
2218# Check the compiler produces executables we can run.  If not, either
2219# the compiler is broken, or we cross compile.
2220echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2222# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223# If not cross compiling, check that we can run a simple program.
2224if test "$cross_compiling" != yes; then
2225  if { ac_try='./$ac_file'
2226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227  (eval $ac_try) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); }; }; then
2231    cross_compiling=no
2232  else
2233    if test "$cross_compiling" = maybe; then
2234	cross_compiling=yes
2235    else
2236	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: cannot run C compiled programs.
2240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&2;}
2242   { (exit 1); exit 1; }; }
2243    fi
2244  fi
2245fi
2246echo "$as_me:$LINENO: result: yes" >&5
2247echo "${ECHO_T}yes" >&6
2248
2249rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250ac_clean_files=$ac_clean_files_save
2251# Check the compiler produces executables we can run.  If not, either
2252# the compiler is broken, or we cross compile.
2253echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2255echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256echo "${ECHO_T}$cross_compiling" >&6
2257
2258echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2261  (eval $ac_link) 2>&5
2262  ac_status=$?
2263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264  (exit $ac_status); }; then
2265  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2267# work properly (i.e., refer to `conftest.exe'), while it won't with
2268# `rm'.
2269for ac_file in conftest.exe conftest conftest.*; do
2270  test -f "$ac_file" || continue
2271  case $ac_file in
2272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2273    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274	  export ac_cv_exeext
2275	  break;;
2276    * ) break;;
2277  esac
2278done
2279else
2280  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&5
2282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&2;}
2284   { (exit 1); exit 1; }; }
2285fi
2286
2287rm -f conftest$ac_cv_exeext
2288echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289echo "${ECHO_T}$ac_cv_exeext" >&6
2290
2291rm -f conftest.$ac_ext
2292EXEEXT=$ac_cv_exeext
2293ac_exeext=$EXEEXT
2294echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2296if test "${ac_cv_objext+set}" = set; then
2297  echo $ECHO_N "(cached) $ECHO_C" >&6
2298else
2299  cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h.  */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h.  */
2305
2306int
2307main ()
2308{
2309
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314rm -f conftest.o conftest.obj
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316  (eval $ac_compile) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; then
2320  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321  case $ac_file in
2322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324       break;;
2325  esac
2326done
2327else
2328  echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332See \`config.log' for more details." >&5
2333echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&2;}
2335   { (exit 1); exit 1; }; }
2336fi
2337
2338rm -f conftest.$ac_cv_objext conftest.$ac_ext
2339fi
2340echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341echo "${ECHO_T}$ac_cv_objext" >&6
2342OBJEXT=$ac_cv_objext
2343ac_objext=$OBJEXT
2344echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346if test "${ac_cv_c_compiler_gnu+set}" = set; then
2347  echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349  cat >conftest.$ac_ext <<_ACEOF
2350/* confdefs.h.  */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h.  */
2355
2356int
2357main ()
2358{
2359#ifndef __GNUC__
2360       choke me
2361#endif
2362
2363  ;
2364  return 0;
2365}
2366_ACEOF
2367rm -f conftest.$ac_objext
2368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369  (eval $ac_compile) 2>conftest.er1
2370  ac_status=$?
2371  grep -v '^ *+' conftest.er1 >conftest.err
2372  rm -f conftest.er1
2373  cat conftest.err >&5
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); } &&
2376	 { ac_try='test -z "$ac_c_werror_flag"
2377			 || test ! -s conftest.err'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; } &&
2383	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2389  ac_compiler_gnu=yes
2390else
2391  echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394ac_compiler_gnu=no
2395fi
2396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2397ac_cv_c_compiler_gnu=$ac_compiler_gnu
2398
2399fi
2400echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2401echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2402GCC=`test $ac_compiler_gnu = yes && echo yes`
2403ac_test_CFLAGS=${CFLAGS+set}
2404ac_save_CFLAGS=$CFLAGS
2405CFLAGS="-g"
2406echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2407echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2408if test "${ac_cv_prog_cc_g+set}" = set; then
2409  echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411  cat >conftest.$ac_ext <<_ACEOF
2412/* confdefs.h.  */
2413_ACEOF
2414cat confdefs.h >>conftest.$ac_ext
2415cat >>conftest.$ac_ext <<_ACEOF
2416/* end confdefs.h.  */
2417
2418int
2419main ()
2420{
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435	 { ac_try='test -z "$ac_c_werror_flag"
2436			 || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2448  ac_cv_prog_cc_g=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_cv_prog_cc_g=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456fi
2457echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2458echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2459if test "$ac_test_CFLAGS" = set; then
2460  CFLAGS=$ac_save_CFLAGS
2461elif test $ac_cv_prog_cc_g = yes; then
2462  if test "$GCC" = yes; then
2463    CFLAGS="-g -O2"
2464  else
2465    CFLAGS="-g"
2466  fi
2467else
2468  if test "$GCC" = yes; then
2469    CFLAGS="-O2"
2470  else
2471    CFLAGS=
2472  fi
2473fi
2474echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2475echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2476if test "${ac_cv_prog_cc_stdc+set}" = set; then
2477  echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479  ac_cv_prog_cc_stdc=no
2480ac_save_CC=$CC
2481cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h.  */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h.  */
2487#include <stdarg.h>
2488#include <stdio.h>
2489#include <sys/types.h>
2490#include <sys/stat.h>
2491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2492struct buf { int x; };
2493FILE * (*rcsopen) (struct buf *, struct stat *, int);
2494static char *e (p, i)
2495     char **p;
2496     int i;
2497{
2498  return p[i];
2499}
2500static char *f (char * (*g) (char **, int), char **p, ...)
2501{
2502  char *s;
2503  va_list v;
2504  va_start (v,p);
2505  s = g (p, va_arg (v,int));
2506  va_end (v);
2507  return s;
2508}
2509
2510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2511   function prototypes and stuff, but not '\xHH' hex character constants.
2512   These don't provoke an error unfortunately, instead are silently treated
2513   as 'x'.  The following induces an error, until -std1 is added to get
2514   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2515   array size at least.  It's necessary to write '\x00'==0 to get something
2516   that's true only with -std1.  */
2517int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2518
2519int test (int i, double x);
2520struct s1 {int (*f) (int a);};
2521struct s2 {int (*f) (double a);};
2522int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2523int argc;
2524char **argv;
2525int
2526main ()
2527{
2528return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2529  ;
2530  return 0;
2531}
2532_ACEOF
2533# Don't try gcc -ansi; that turns off useful extensions and
2534# breaks some systems' header files.
2535# AIX			-qlanglvl=ansi
2536# Ultrix and OSF/1	-std1
2537# HP-UX 10.20 and later	-Ae
2538# HP-UX older versions	-Aa -D_HPUX_SOURCE
2539# SVR4			-Xc -D__EXTENSIONS__
2540for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2541do
2542  CC="$ac_save_CC $ac_arg"
2543  rm -f conftest.$ac_objext
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545  (eval $ac_compile) 2>conftest.er1
2546  ac_status=$?
2547  grep -v '^ *+' conftest.er1 >conftest.err
2548  rm -f conftest.er1
2549  cat conftest.err >&5
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); } &&
2552	 { ac_try='test -z "$ac_c_werror_flag"
2553			 || test ! -s conftest.err'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; } &&
2559	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2565  ac_cv_prog_cc_stdc=$ac_arg
2566break
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571fi
2572rm -f conftest.err conftest.$ac_objext
2573done
2574rm -f conftest.$ac_ext conftest.$ac_objext
2575CC=$ac_save_CC
2576
2577fi
2578
2579case "x$ac_cv_prog_cc_stdc" in
2580  x|xno)
2581    echo "$as_me:$LINENO: result: none needed" >&5
2582echo "${ECHO_T}none needed" >&6 ;;
2583  *)
2584    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2585echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2586    CC="$CC $ac_cv_prog_cc_stdc" ;;
2587esac
2588
2589# Some people use a C++ compiler to compile C.  Since we use `exit',
2590# in C++ we need to declare it.  In case someone uses the same compiler
2591# for both compiling C and C++ we need to have the C++ compiler decide
2592# the declaration of exit, since it's the most demanding environment.
2593cat >conftest.$ac_ext <<_ACEOF
2594#ifndef __cplusplus
2595  choke me
2596#endif
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600  (eval $ac_compile) 2>conftest.er1
2601  ac_status=$?
2602  grep -v '^ *+' conftest.er1 >conftest.err
2603  rm -f conftest.er1
2604  cat conftest.err >&5
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); } &&
2607	 { ac_try='test -z "$ac_c_werror_flag"
2608			 || test ! -s conftest.err'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; } &&
2614	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2620  for ac_declaration in \
2621   '' \
2622   'extern "C" void std::exit (int) throw (); using std::exit;' \
2623   'extern "C" void std::exit (int); using std::exit;' \
2624   'extern "C" void exit (int) throw ();' \
2625   'extern "C" void exit (int);' \
2626   'void exit (int);'
2627do
2628  cat >conftest.$ac_ext <<_ACEOF
2629/* confdefs.h.  */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h.  */
2634$ac_declaration
2635#include <stdlib.h>
2636int
2637main ()
2638{
2639exit (42);
2640  ;
2641  return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646  (eval $ac_compile) 2>conftest.er1
2647  ac_status=$?
2648  grep -v '^ *+' conftest.er1 >conftest.err
2649  rm -f conftest.er1
2650  cat conftest.err >&5
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); } &&
2653	 { ac_try='test -z "$ac_c_werror_flag"
2654			 || test ! -s conftest.err'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; } &&
2660	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2666  :
2667else
2668  echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671continue
2672fi
2673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674  cat >conftest.$ac_ext <<_ACEOF
2675/* confdefs.h.  */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h.  */
2680$ac_declaration
2681int
2682main ()
2683{
2684exit (42);
2685  ;
2686  return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691  (eval $ac_compile) 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } &&
2698	 { ac_try='test -z "$ac_c_werror_flag"
2699			 || test ! -s conftest.err'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; } &&
2705	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2711  break
2712else
2713  echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718done
2719rm -f conftest*
2720if test -n "$ac_declaration"; then
2721  echo '#ifdef __cplusplus' >>confdefs.h
2722  echo $ac_declaration      >>confdefs.h
2723  echo '#endif'             >>confdefs.h
2724fi
2725
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2740echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2741if test "${ac_cv_c_bigendian+set}" = set; then
2742  echo $ECHO_N "(cached) $ECHO_C" >&6
2743else
2744  # See if sys/param.h defines the BYTE_ORDER macro.
2745cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751#include <sys/types.h>
2752#include <sys/param.h>
2753
2754int
2755main ()
2756{
2757#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2758 bogus endian macros
2759#endif
2760
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767  (eval $ac_compile) 2>conftest.er1
2768  ac_status=$?
2769  grep -v '^ *+' conftest.er1 >conftest.err
2770  rm -f conftest.er1
2771  cat conftest.err >&5
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); } &&
2774	 { ac_try='test -z "$ac_c_werror_flag"
2775			 || test ! -s conftest.err'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; } &&
2781	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2787  # It does; now see whether it defined to BIG_ENDIAN or not.
2788cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h.  */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h.  */
2794#include <sys/types.h>
2795#include <sys/param.h>
2796
2797int
2798main ()
2799{
2800#if BYTE_ORDER != BIG_ENDIAN
2801 not big endian
2802#endif
2803
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext
2809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2810  (eval $ac_compile) 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } &&
2817	 { ac_try='test -z "$ac_c_werror_flag"
2818			 || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2830  ac_cv_c_bigendian=yes
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835ac_cv_c_bigendian=no
2836fi
2837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838else
2839  echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842# It does not; compile a test program.
2843if test "$cross_compiling" = yes; then
2844  # try to guess the endianness by grepping values into an object file
2845  ac_cv_c_bigendian=unknown
2846  cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2853short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2854void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2855short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2856short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2857void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2858int
2859main ()
2860{
2861 _ascii (); _ebcdic ();
2862  ;
2863  return 0;
2864}
2865_ACEOF
2866rm -f conftest.$ac_objext
2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868  (eval $ac_compile) 2>conftest.er1
2869  ac_status=$?
2870  grep -v '^ *+' conftest.er1 >conftest.err
2871  rm -f conftest.er1
2872  cat conftest.err >&5
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); } &&
2875	 { ac_try='test -z "$ac_c_werror_flag"
2876			 || test ! -s conftest.err'
2877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878  (eval $ac_try) 2>&5
2879  ac_status=$?
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); }; } &&
2882	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2888  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2889  ac_cv_c_bigendian=yes
2890fi
2891if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2892  if test "$ac_cv_c_bigendian" = unknown; then
2893    ac_cv_c_bigendian=no
2894  else
2895    # finding both strings is unlikely to happen, but who knows?
2896    ac_cv_c_bigendian=unknown
2897  fi
2898fi
2899else
2900  echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903fi
2904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905else
2906  cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h.  */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h.  */
2912int
2913main ()
2914{
2915  /* Are we little or big endian?  From Harbison&Steele.  */
2916  union
2917  {
2918    long l;
2919    char c[sizeof (long)];
2920  } u;
2921  u.l = 1;
2922  exit (u.c[sizeof (long) - 1] == 1);
2923}
2924_ACEOF
2925rm -f conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927  (eval $ac_link) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932  (eval $ac_try) 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }; }; then
2936  ac_cv_c_bigendian=no
2937else
2938  echo "$as_me: program exited with status $ac_status" >&5
2939echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942( exit $ac_status )
2943ac_cv_c_bigendian=yes
2944fi
2945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946fi
2947fi
2948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949fi
2950echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2951echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2952case $ac_cv_c_bigendian in
2953  yes)
2954    ENDIAN=big
2955 ;;
2956  no)
2957    ENDIAN=little
2958 ;;
2959  *)
2960    { { echo "$as_me:$LINENO: error: unknown endianness
2961presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2962echo "$as_me: error: unknown endianness
2963presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2964   { (exit 1); exit 1; }; } ;;
2965esac
2966
2967
2968
2969# Check whether --enable-optimized or --disable-optimized was given.
2970if test "${enable_optimized+set}" = set; then
2971  enableval="$enable_optimized"
2972
2973else
2974  enableval=no
2975fi;
2976if test ${enableval} = "no" ; then
2977  ENABLE_OPTIMIZED=
2978
2979else
2980  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2981
2982fi
2983
2984# Check whether --enable-jit or --disable-jit was given.
2985if test "${enable_jit+set}" = set; then
2986  enableval="$enable_jit"
2987
2988else
2989  enableval=default
2990fi;
2991if test ${enableval} = "no"
2992then
2993  JIT=
2994
2995else
2996  case "$llvm_cv_target_arch" in
2997    x86)     JIT=TARGET_HAS_JIT=1
2998 ;;
2999    Sparc)   JIT=TARGET_HAS_JIT=1
3000 ;;
3001    PowerPC) JIT=TARGET_HAS_JIT=1
3002 ;;
3003    x86_64)  JIT=
3004 ;;
3005    *)       JIT=
3006 ;;
3007  esac
3008fi
3009
3010# Check whether --enable-doxygen or --disable-doxygen was given.
3011if test "${enable_doxygen+set}" = set; then
3012  enableval="$enable_doxygen"
3013
3014else
3015  enableval=default
3016fi;
3017case "$enableval" in
3018  yes) ENABLE_DOXYGEN=1
3019 ;;
3020  no)  ENABLE_DOXYGEN=0
3021 ;;
3022  default) ENABLE_DOXYGEN=0
3023 ;;
3024  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3025echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3026   { (exit 1); exit 1; }; } ;;
3027esac
3028
3029
3030# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3031if test "${with_llvmgccdir+set}" = set; then
3032  withval="$with_llvmgccdir"
3033
3034else
3035  withval=default
3036fi;
3037case "$withval" in
3038  default) WITH_LLVMGCCDIR=default ;;
3039  /*)      WITH_LLVMGCCDIR=$withval ;;
3040  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3041echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3042   { (exit 1); exit 1; }; } ;;
3043esac
3044
3045
3046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3052echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3053# On Suns, sometimes $CPP names a directory.
3054if test -n "$CPP" && test -d "$CPP"; then
3055  CPP=
3056fi
3057if test -z "$CPP"; then
3058  if test "${ac_cv_prog_CPP+set}" = set; then
3059  echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061      # Double quotes because CPP needs to be expanded
3062    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3063    do
3064      ac_preproc_ok=false
3065for ac_c_preproc_warn_flag in '' yes
3066do
3067  # Use a header file that comes with gcc, so configuring glibc
3068  # with a fresh cross-compiler works.
3069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070  # <limits.h> exists even on freestanding compilers.
3071  # On the NeXT, cc -E runs the code through the compiler's parser,
3072  # not just through cpp. "Syntax error" is here to catch this case.
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079#ifdef __STDC__
3080# include <limits.h>
3081#else
3082# include <assert.h>
3083#endif
3084		     Syntax error
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } >/dev/null; then
3094  if test -s conftest.err; then
3095    ac_cpp_err=$ac_c_preproc_warn_flag
3096    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097  else
3098    ac_cpp_err=
3099  fi
3100else
3101  ac_cpp_err=yes
3102fi
3103if test -z "$ac_cpp_err"; then
3104  :
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109  # Broken: fails on valid input.
3110continue
3111fi
3112rm -f conftest.err conftest.$ac_ext
3113
3114  # OK, works on sane cases.  Now check whether non-existent headers
3115  # can be detected and how.
3116  cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h.  */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h.  */
3122#include <ac_nonexistent.h>
3123_ACEOF
3124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } >/dev/null; then
3132  if test -s conftest.err; then
3133    ac_cpp_err=$ac_c_preproc_warn_flag
3134    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3135  else
3136    ac_cpp_err=
3137  fi
3138else
3139  ac_cpp_err=yes
3140fi
3141if test -z "$ac_cpp_err"; then
3142  # Broken: success on invalid input.
3143continue
3144else
3145  echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148  # Passes both tests.
3149ac_preproc_ok=:
3150break
3151fi
3152rm -f conftest.err conftest.$ac_ext
3153
3154done
3155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156rm -f conftest.err conftest.$ac_ext
3157if $ac_preproc_ok; then
3158  break
3159fi
3160
3161    done
3162    ac_cv_prog_CPP=$CPP
3163
3164fi
3165  CPP=$ac_cv_prog_CPP
3166else
3167  ac_cv_prog_CPP=$CPP
3168fi
3169echo "$as_me:$LINENO: result: $CPP" >&5
3170echo "${ECHO_T}$CPP" >&6
3171ac_preproc_ok=false
3172for ac_c_preproc_warn_flag in '' yes
3173do
3174  # Use a header file that comes with gcc, so configuring glibc
3175  # with a fresh cross-compiler works.
3176  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3177  # <limits.h> exists even on freestanding compilers.
3178  # On the NeXT, cc -E runs the code through the compiler's parser,
3179  # not just through cpp. "Syntax error" is here to catch this case.
3180  cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h.  */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h.  */
3186#ifdef __STDC__
3187# include <limits.h>
3188#else
3189# include <assert.h>
3190#endif
3191		     Syntax error
3192_ACEOF
3193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195  ac_status=$?
3196  grep -v '^ *+' conftest.er1 >conftest.err
3197  rm -f conftest.er1
3198  cat conftest.err >&5
3199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); } >/dev/null; then
3201  if test -s conftest.err; then
3202    ac_cpp_err=$ac_c_preproc_warn_flag
3203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204  else
3205    ac_cpp_err=
3206  fi
3207else
3208  ac_cpp_err=yes
3209fi
3210if test -z "$ac_cpp_err"; then
3211  :
3212else
3213  echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216  # Broken: fails on valid input.
3217continue
3218fi
3219rm -f conftest.err conftest.$ac_ext
3220
3221  # OK, works on sane cases.  Now check whether non-existent headers
3222  # can be detected and how.
3223  cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h.  */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h.  */
3229#include <ac_nonexistent.h>
3230_ACEOF
3231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233  ac_status=$?
3234  grep -v '^ *+' conftest.er1 >conftest.err
3235  rm -f conftest.er1
3236  cat conftest.err >&5
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); } >/dev/null; then
3239  if test -s conftest.err; then
3240    ac_cpp_err=$ac_c_preproc_warn_flag
3241    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3242  else
3243    ac_cpp_err=
3244  fi
3245else
3246  ac_cpp_err=yes
3247fi
3248if test -z "$ac_cpp_err"; then
3249  # Broken: success on invalid input.
3250continue
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255  # Passes both tests.
3256ac_preproc_ok=:
3257break
3258fi
3259rm -f conftest.err conftest.$ac_ext
3260
3261done
3262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263rm -f conftest.err conftest.$ac_ext
3264if $ac_preproc_ok; then
3265  :
3266else
3267  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3268See \`config.log' for more details." >&5
3269echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3270See \`config.log' for more details." >&2;}
3271   { (exit 1); exit 1; }; }
3272fi
3273
3274ac_ext=c
3275ac_cpp='$CPP $CPPFLAGS'
3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280ac_ext=c
3281ac_cpp='$CPP $CPPFLAGS'
3282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285if test -n "$ac_tool_prefix"; then
3286  for ac_prog in gcc
3287  do
3288    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290echo "$as_me:$LINENO: checking for $ac_word" >&5
3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292if test "${ac_cv_prog_CC+set}" = set; then
3293  echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295  if test -n "$CC"; then
3296  ac_cv_prog_CC="$CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303  for ac_exec_ext in '' $ac_executable_extensions; do
3304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307    break 2
3308  fi
3309done
3310done
3311
3312fi
3313fi
3314CC=$ac_cv_prog_CC
3315if test -n "$CC"; then
3316  echo "$as_me:$LINENO: result: $CC" >&5
3317echo "${ECHO_T}$CC" >&6
3318else
3319  echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323    test -n "$CC" && break
3324  done
3325fi
3326if test -z "$CC"; then
3327  ac_ct_CC=$CC
3328  for ac_prog in gcc
3329do
3330  # Extract the first word of "$ac_prog", so it can be a program name with args.
3331set dummy $ac_prog; ac_word=$2
3332echo "$as_me:$LINENO: checking for $ac_word" >&5
3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3335  echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337  if test -n "$ac_ct_CC"; then
3338  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345  for ac_exec_ext in '' $ac_executable_extensions; do
3346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_ac_ct_CC="$ac_prog"
3348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352done
3353
3354fi
3355fi
3356ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357if test -n "$ac_ct_CC"; then
3358  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359echo "${ECHO_T}$ac_ct_CC" >&6
3360else
3361  echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363fi
3364
3365  test -n "$ac_ct_CC" && break
3366done
3367
3368  CC=$ac_ct_CC
3369fi
3370
3371
3372test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3373See \`config.log' for more details." >&5
3374echo "$as_me: error: no acceptable C compiler found in \$PATH
3375See \`config.log' for more details." >&2;}
3376   { (exit 1); exit 1; }; }
3377
3378# Provide some information about the compiler.
3379echo "$as_me:$LINENO:" \
3380     "checking for C compiler version" >&5
3381ac_compiler=`set X $ac_compile; echo $2`
3382{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3383  (eval $ac_compiler --version </dev/null >&5) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }
3387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3388  (eval $ac_compiler -v </dev/null >&5) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }
3392{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3393  (eval $ac_compiler -V </dev/null >&5) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }
3397
3398echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3399echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3400if test "${ac_cv_c_compiler_gnu+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409
3410int
3411main ()
3412{
3413#ifndef __GNUC__
3414       choke me
3415#endif
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423  (eval $ac_compile) 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } &&
3430	 { ac_try='test -z "$ac_c_werror_flag"
3431			 || test ! -s conftest.err'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; } &&
3437	 { ac_try='test -s conftest.$ac_objext'
3438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439  (eval $ac_try) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; }; then
3443  ac_compiler_gnu=yes
3444else
3445  echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448ac_compiler_gnu=no
3449fi
3450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453fi
3454echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3455echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3456GCC=`test $ac_compiler_gnu = yes && echo yes`
3457ac_test_CFLAGS=${CFLAGS+set}
3458ac_save_CFLAGS=$CFLAGS
3459CFLAGS="-g"
3460echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3462if test "${ac_cv_prog_cc_g+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h.  */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480rm -f conftest.$ac_objext
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482  (eval $ac_compile) 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } &&
3489	 { ac_try='test -z "$ac_c_werror_flag"
3490			 || test ! -s conftest.err'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; } &&
3496	 { ac_try='test -s conftest.$ac_objext'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; }; then
3502  ac_cv_prog_cc_g=yes
3503else
3504  echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_cv_prog_cc_g=no
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510fi
3511echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3513if test "$ac_test_CFLAGS" = set; then
3514  CFLAGS=$ac_save_CFLAGS
3515elif test $ac_cv_prog_cc_g = yes; then
3516  if test "$GCC" = yes; then
3517    CFLAGS="-g -O2"
3518  else
3519    CFLAGS="-g"
3520  fi
3521else
3522  if test "$GCC" = yes; then
3523    CFLAGS="-O2"
3524  else
3525    CFLAGS=
3526  fi
3527fi
3528echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3529echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3530if test "${ac_cv_prog_cc_stdc+set}" = set; then
3531  echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533  ac_cv_prog_cc_stdc=no
3534ac_save_CC=$CC
3535cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h.  */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h.  */
3541#include <stdarg.h>
3542#include <stdio.h>
3543#include <sys/types.h>
3544#include <sys/stat.h>
3545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3546struct buf { int x; };
3547FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548static char *e (p, i)
3549     char **p;
3550     int i;
3551{
3552  return p[i];
3553}
3554static char *f (char * (*g) (char **, int), char **p, ...)
3555{
3556  char *s;
3557  va_list v;
3558  va_start (v,p);
3559  s = g (p, va_arg (v,int));
3560  va_end (v);
3561  return s;
3562}
3563
3564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3565   function prototypes and stuff, but not '\xHH' hex character constants.
3566   These don't provoke an error unfortunately, instead are silently treated
3567   as 'x'.  The following induces an error, until -std1 is added to get
3568   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3569   array size at least.  It's necessary to write '\x00'==0 to get something
3570   that's true only with -std1.  */
3571int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3572
3573int test (int i, double x);
3574struct s1 {int (*f) (int a);};
3575struct s2 {int (*f) (double a);};
3576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577int argc;
3578char **argv;
3579int
3580main ()
3581{
3582return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587# Don't try gcc -ansi; that turns off useful extensions and
3588# breaks some systems' header files.
3589# AIX			-qlanglvl=ansi
3590# Ultrix and OSF/1	-std1
3591# HP-UX 10.20 and later	-Ae
3592# HP-UX older versions	-Aa -D_HPUX_SOURCE
3593# SVR4			-Xc -D__EXTENSIONS__
3594for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595do
3596  CC="$ac_save_CC $ac_arg"
3597  rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599  (eval $ac_compile) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606	 { ac_try='test -z "$ac_c_werror_flag"
3607			 || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613	 { ac_try='test -s conftest.$ac_objext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  ac_cv_prog_cc_stdc=$ac_arg
3620break
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625fi
3626rm -f conftest.err conftest.$ac_objext
3627done
3628rm -f conftest.$ac_ext conftest.$ac_objext
3629CC=$ac_save_CC
3630
3631fi
3632
3633case "x$ac_cv_prog_cc_stdc" in
3634  x|xno)
3635    echo "$as_me:$LINENO: result: none needed" >&5
3636echo "${ECHO_T}none needed" >&6 ;;
3637  *)
3638    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3639echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3640    CC="$CC $ac_cv_prog_cc_stdc" ;;
3641esac
3642
3643# Some people use a C++ compiler to compile C.  Since we use `exit',
3644# in C++ we need to declare it.  In case someone uses the same compiler
3645# for both compiling C and C++ we need to have the C++ compiler decide
3646# the declaration of exit, since it's the most demanding environment.
3647cat >conftest.$ac_ext <<_ACEOF
3648#ifndef __cplusplus
3649  choke me
3650#endif
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661	 { ac_try='test -z "$ac_c_werror_flag"
3662			 || test ! -s conftest.err'
3663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664  (eval $ac_try) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); }; } &&
3668	 { ac_try='test -s conftest.$ac_objext'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; }; then
3674  for ac_declaration in \
3675   '' \
3676   'extern "C" void std::exit (int) throw (); using std::exit;' \
3677   'extern "C" void std::exit (int); using std::exit;' \
3678   'extern "C" void exit (int) throw ();' \
3679   'extern "C" void exit (int);' \
3680   'void exit (int);'
3681do
3682  cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688$ac_declaration
3689#include <stdlib.h>
3690int
3691main ()
3692{
3693exit (42);
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707	 { ac_try='test -z "$ac_c_werror_flag"
3708			 || test ! -s conftest.err'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; } &&
3714	 { ac_try='test -s conftest.$ac_objext'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  :
3721else
3722  echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725continue
3726fi
3727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728  cat >conftest.$ac_ext <<_ACEOF
3729/* confdefs.h.  */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h.  */
3734$ac_declaration
3735int
3736main ()
3737{
3738exit (42);
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743rm -f conftest.$ac_objext
3744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745  (eval $ac_compile) 2>conftest.er1
3746  ac_status=$?
3747  grep -v '^ *+' conftest.er1 >conftest.err
3748  rm -f conftest.er1
3749  cat conftest.err >&5
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); } &&
3752	 { ac_try='test -z "$ac_c_werror_flag"
3753			 || test ! -s conftest.err'
3754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755  (eval $ac_try) 2>&5
3756  ac_status=$?
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); }; } &&
3759	 { ac_try='test -s conftest.$ac_objext'
3760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761  (eval $ac_try) 2>&5
3762  ac_status=$?
3763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); }; }; then
3765  break
3766else
3767  echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770fi
3771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3772done
3773rm -f conftest*
3774if test -n "$ac_declaration"; then
3775  echo '#ifdef __cplusplus' >>confdefs.h
3776  echo $ac_declaration      >>confdefs.h
3777  echo '#endif'             >>confdefs.h
3778fi
3779
3780else
3781  echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784fi
3785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792ac_ext=cc
3793ac_cpp='$CXXCPP $CPPFLAGS'
3794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3797if test -n "$ac_tool_prefix"; then
3798  for ac_prog in $CCC g++
3799  do
3800    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_CXX+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  if test -n "$CXX"; then
3808  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813  IFS=$as_save_IFS
3814  test -z "$as_dir" && as_dir=.
3815  for ac_exec_ext in '' $ac_executable_extensions; do
3816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819    break 2
3820  fi
3821done
3822done
3823
3824fi
3825fi
3826CXX=$ac_cv_prog_CXX
3827if test -n "$CXX"; then
3828  echo "$as_me:$LINENO: result: $CXX" >&5
3829echo "${ECHO_T}$CXX" >&6
3830else
3831  echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835    test -n "$CXX" && break
3836  done
3837fi
3838if test -z "$CXX"; then
3839  ac_ct_CXX=$CXX
3840  for ac_prog in $CCC g++
3841do
3842  # Extract the first word of "$ac_prog", so it can be a program name with args.
3843set dummy $ac_prog; ac_word=$2
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847  echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849  if test -n "$ac_ct_CXX"; then
3850  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857  for ac_exec_ext in '' $ac_executable_extensions; do
3858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859    ac_cv_prog_ac_ct_CXX="$ac_prog"
3860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861    break 2
3862  fi
3863done
3864done
3865
3866fi
3867fi
3868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3869if test -n "$ac_ct_CXX"; then
3870  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3871echo "${ECHO_T}$ac_ct_CXX" >&6
3872else
3873  echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
3875fi
3876
3877  test -n "$ac_ct_CXX" && break
3878done
3879test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3880
3881  CXX=$ac_ct_CXX
3882fi
3883
3884
3885# Provide some information about the compiler.
3886echo "$as_me:$LINENO:" \
3887     "checking for C++ compiler version" >&5
3888ac_compiler=`set X $ac_compile; echo $2`
3889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3890  (eval $ac_compiler --version </dev/null >&5) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }
3894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3895  (eval $ac_compiler -v </dev/null >&5) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }
3899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3900  (eval $ac_compiler -V </dev/null >&5) 2>&5
3901  ac_status=$?
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); }
3904
3905echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3906echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  cat >conftest.$ac_ext <<_ACEOF
3911/* confdefs.h.  */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h.  */
3916
3917int
3918main ()
3919{
3920#ifndef __GNUC__
3921       choke me
3922#endif
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext
3929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930  (eval $ac_compile) 2>conftest.er1
3931  ac_status=$?
3932  grep -v '^ *+' conftest.er1 >conftest.err
3933  rm -f conftest.er1
3934  cat conftest.err >&5
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); } &&
3937	 { ac_try='test -z "$ac_cxx_werror_flag"
3938			 || test ! -s conftest.err'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; } &&
3944	 { ac_try='test -s conftest.$ac_objext'
3945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946  (eval $ac_try) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); }; }; then
3950  ac_compiler_gnu=yes
3951else
3952  echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955ac_compiler_gnu=no
3956fi
3957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3959
3960fi
3961echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3962echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3963GXX=`test $ac_compiler_gnu = yes && echo yes`
3964ac_test_CXXFLAGS=${CXXFLAGS+set}
3965ac_save_CXXFLAGS=$CXXFLAGS
3966CXXFLAGS="-g"
3967echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3968echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3969if test "${ac_cv_prog_cxx_g+set}" = set; then
3970  echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972  cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h.  */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989  (eval $ac_compile) 2>conftest.er1
3990  ac_status=$?
3991  grep -v '^ *+' conftest.er1 >conftest.err
3992  rm -f conftest.er1
3993  cat conftest.err >&5
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); } &&
3996	 { ac_try='test -z "$ac_cxx_werror_flag"
3997			 || test ! -s conftest.err'
3998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999  (eval $ac_try) 2>&5
4000  ac_status=$?
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); }; } &&
4003	 { ac_try='test -s conftest.$ac_objext'
4004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005  (eval $ac_try) 2>&5
4006  ac_status=$?
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); }; }; then
4009  ac_cv_prog_cxx_g=yes
4010else
4011  echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014ac_cv_prog_cxx_g=no
4015fi
4016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017fi
4018echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4019echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4020if test "$ac_test_CXXFLAGS" = set; then
4021  CXXFLAGS=$ac_save_CXXFLAGS
4022elif test $ac_cv_prog_cxx_g = yes; then
4023  if test "$GXX" = yes; then
4024    CXXFLAGS="-g -O2"
4025  else
4026    CXXFLAGS="-g"
4027  fi
4028else
4029  if test "$GXX" = yes; then
4030    CXXFLAGS="-O2"
4031  else
4032    CXXFLAGS=
4033  fi
4034fi
4035for ac_declaration in \
4036   '' \
4037   'extern "C" void std::exit (int) throw (); using std::exit;' \
4038   'extern "C" void std::exit (int); using std::exit;' \
4039   'extern "C" void exit (int) throw ();' \
4040   'extern "C" void exit (int);' \
4041   'void exit (int);'
4042do
4043  cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049$ac_declaration
4050#include <stdlib.h>
4051int
4052main ()
4053{
4054exit (42);
4055  ;
4056  return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061  (eval $ac_compile) 2>conftest.er1
4062  ac_status=$?
4063  grep -v '^ *+' conftest.er1 >conftest.err
4064  rm -f conftest.er1
4065  cat conftest.err >&5
4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067  (exit $ac_status); } &&
4068	 { ac_try='test -z "$ac_cxx_werror_flag"
4069			 || test ! -s conftest.err'
4070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071  (eval $ac_try) 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; } &&
4075	 { ac_try='test -s conftest.$ac_objext'
4076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077  (eval $ac_try) 2>&5
4078  ac_status=$?
4079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080  (exit $ac_status); }; }; then
4081  :
4082else
4083  echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086continue
4087fi
4088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089  cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h.  */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h.  */
4095$ac_declaration
4096int
4097main ()
4098{
4099exit (42);
4100  ;
4101  return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106  (eval $ac_compile) 2>conftest.er1
4107  ac_status=$?
4108  grep -v '^ *+' conftest.er1 >conftest.err
4109  rm -f conftest.er1
4110  cat conftest.err >&5
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); } &&
4113	 { ac_try='test -z "$ac_cxx_werror_flag"
4114			 || test ! -s conftest.err'
4115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116  (eval $ac_try) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; } &&
4120	 { ac_try='test -s conftest.$ac_objext'
4121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122  (eval $ac_try) 2>&5
4123  ac_status=$?
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); }; }; then
4126  break
4127else
4128  echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131fi
4132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133done
4134rm -f conftest*
4135if test -n "$ac_declaration"; then
4136  echo '#ifdef __cplusplus' >>confdefs.h
4137  echo $ac_declaration      >>confdefs.h
4138  echo '#endif'             >>confdefs.h
4139fi
4140
4141ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147echo "$as_me:$LINENO: checking " >&5
4148echo $ECHO_N "checking ... $ECHO_C" >&6
4149if test "${ac_cv_has_flex+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  for ac_prog in flex lex
4153do
4154  # Extract the first word of "$ac_prog", so it can be a program name with args.
4155set dummy $ac_prog; ac_word=$2
4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158if test "${ac_cv_prog_LEX+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  if test -n "$LEX"; then
4162  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169  for ac_exec_ext in '' $ac_executable_extensions; do
4170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171    ac_cv_prog_LEX="$ac_prog"
4172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176done
4177
4178fi
4179fi
4180LEX=$ac_cv_prog_LEX
4181if test -n "$LEX"; then
4182  echo "$as_me:$LINENO: result: $LEX" >&5
4183echo "${ECHO_T}$LEX" >&6
4184else
4185  echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187fi
4188
4189  test -n "$LEX" && break
4190done
4191test -n "$LEX" || LEX=":"
4192
4193if test -z "$LEXLIB"
4194then
4195  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4196echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4197if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  ac_check_lib_save_LIBS=$LIBS
4201LIBS="-lfl  $LIBS"
4202cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h.  */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h.  */
4208
4209/* Override any gcc2 internal prototype to avoid an error.  */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213/* We use char because int might match the return type of a gcc2
4214   builtin and then its argument prototype would still apply.  */
4215char yywrap ();
4216int
4217main ()
4218{
4219yywrap ();
4220  ;
4221  return 0;
4222}
4223_ACEOF
4224rm -f conftest.$ac_objext conftest$ac_exeext
4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226  (eval $ac_link) 2>conftest.er1
4227  ac_status=$?
4228  grep -v '^ *+' conftest.er1 >conftest.err
4229  rm -f conftest.er1
4230  cat conftest.err >&5
4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232  (exit $ac_status); } &&
4233	 { ac_try='test -z "$ac_c_werror_flag"
4234			 || test ! -s conftest.err'
4235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236  (eval $ac_try) 2>&5
4237  ac_status=$?
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); }; } &&
4240	 { ac_try='test -s conftest$ac_exeext'
4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242  (eval $ac_try) 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; }; then
4246  ac_cv_lib_fl_yywrap=yes
4247else
4248  echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251ac_cv_lib_fl_yywrap=no
4252fi
4253rm -f conftest.err conftest.$ac_objext \
4254      conftest$ac_exeext conftest.$ac_ext
4255LIBS=$ac_check_lib_save_LIBS
4256fi
4257echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4258echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4259if test $ac_cv_lib_fl_yywrap = yes; then
4260  LEXLIB="-lfl"
4261else
4262  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4263echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4264if test "${ac_cv_lib_l_yywrap+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  ac_check_lib_save_LIBS=$LIBS
4268LIBS="-ll  $LIBS"
4269cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h.  */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h.  */
4275
4276/* Override any gcc2 internal prototype to avoid an error.  */
4277#ifdef __cplusplus
4278extern "C"
4279#endif
4280/* We use char because int might match the return type of a gcc2
4281   builtin and then its argument prototype would still apply.  */
4282char yywrap ();
4283int
4284main ()
4285{
4286yywrap ();
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext conftest$ac_exeext
4292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293  (eval $ac_link) 2>conftest.er1
4294  ac_status=$?
4295  grep -v '^ *+' conftest.er1 >conftest.err
4296  rm -f conftest.er1
4297  cat conftest.err >&5
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); } &&
4300	 { ac_try='test -z "$ac_c_werror_flag"
4301			 || test ! -s conftest.err'
4302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303  (eval $ac_try) 2>&5
4304  ac_status=$?
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }; } &&
4307	 { ac_try='test -s conftest$ac_exeext'
4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309  (eval $ac_try) 2>&5
4310  ac_status=$?
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); }; }; then
4313  ac_cv_lib_l_yywrap=yes
4314else
4315  echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318ac_cv_lib_l_yywrap=no
4319fi
4320rm -f conftest.err conftest.$ac_objext \
4321      conftest$ac_exeext conftest.$ac_ext
4322LIBS=$ac_check_lib_save_LIBS
4323fi
4324echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4325echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4326if test $ac_cv_lib_l_yywrap = yes; then
4327  LEXLIB="-ll"
4328fi
4329
4330fi
4331
4332fi
4333
4334if test "x$LEX" != "x:"; then
4335  echo "$as_me:$LINENO: checking lex output file root" >&5
4336echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4337if test "${ac_cv_prog_lex_root+set}" = set; then
4338  echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340  # The minimal lex program is just a single line: %%.  But some broken lexes
4341# (Solaris, I think it was) want two %% lines, so accommodate them.
4342cat >conftest.l <<_ACEOF
4343%%
4344%%
4345_ACEOF
4346{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4347  (eval $LEX conftest.l) 2>&5
4348  ac_status=$?
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); }
4351if test -f lex.yy.c; then
4352  ac_cv_prog_lex_root=lex.yy
4353elif test -f lexyy.c; then
4354  ac_cv_prog_lex_root=lexyy
4355else
4356  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4357echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4358   { (exit 1); exit 1; }; }
4359fi
4360fi
4361echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4362echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4363rm -f conftest.l
4364LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4365
4366echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4367echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4368if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  # POSIX says lex can declare yytext either as a pointer or an array; the
4372# default is implementation-dependent. Figure out which it is, since
4373# not all implementations provide the %pointer and %array declarations.
4374ac_cv_prog_lex_yytext_pointer=no
4375echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4376ac_save_LIBS=$LIBS
4377LIBS="$LIBS $LEXLIB"
4378cat >conftest.$ac_ext <<_ACEOF
4379`cat $LEX_OUTPUT_ROOT.c`
4380_ACEOF
4381rm -f conftest.$ac_objext conftest$ac_exeext
4382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383  (eval $ac_link) 2>conftest.er1
4384  ac_status=$?
4385  grep -v '^ *+' conftest.er1 >conftest.err
4386  rm -f conftest.er1
4387  cat conftest.err >&5
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); } &&
4390	 { ac_try='test -z "$ac_c_werror_flag"
4391			 || test ! -s conftest.err'
4392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393  (eval $ac_try) 2>&5
4394  ac_status=$?
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); }; } &&
4397	 { ac_try='test -s conftest$ac_exeext'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; }; then
4403  ac_cv_prog_lex_yytext_pointer=yes
4404else
4405  echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
4407
4408fi
4409rm -f conftest.err conftest.$ac_objext \
4410      conftest$ac_exeext conftest.$ac_ext
4411LIBS=$ac_save_LIBS
4412rm -f "${LEX_OUTPUT_ROOT}.c"
4413
4414fi
4415echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4416echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4417if test $ac_cv_prog_lex_yytext_pointer = yes; then
4418
4419cat >>confdefs.h <<\_ACEOF
4420#define YYTEXT_POINTER 1
4421_ACEOF
4422
4423fi
4424
4425fi
4426
4427fi
4428echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4429echo "${ECHO_T}$ac_cv_has_flex" >&6
4430if test "$LEX" != "flex"; then
4431  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4432echo "$as_me: error: flex not found but required" >&2;}
4433   { (exit 1); exit 1; }; }
4434else
4435  FLEX=flex
4436
4437fi
4438
4439echo "$as_me:$LINENO: checking " >&5
4440echo $ECHO_N "checking ... $ECHO_C" >&6
4441if test "${llvm_cv_has_bison+set}" = set; then
4442  echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444  for ac_prog in 'bison -y' byacc
4445do
4446  # Extract the first word of "$ac_prog", so it can be a program name with args.
4447set dummy $ac_prog; ac_word=$2
4448echo "$as_me:$LINENO: checking for $ac_word" >&5
4449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450if test "${ac_cv_prog_YACC+set}" = set; then
4451  echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453  if test -n "$YACC"; then
4454  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459  IFS=$as_save_IFS
4460  test -z "$as_dir" && as_dir=.
4461  for ac_exec_ext in '' $ac_executable_extensions; do
4462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463    ac_cv_prog_YACC="$ac_prog"
4464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465    break 2
4466  fi
4467done
4468done
4469
4470fi
4471fi
4472YACC=$ac_cv_prog_YACC
4473if test -n "$YACC"; then
4474  echo "$as_me:$LINENO: result: $YACC" >&5
4475echo "${ECHO_T}$YACC" >&6
4476else
4477  echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479fi
4480
4481  test -n "$YACC" && break
4482done
4483test -n "$YACC" || YACC="yacc"
4484
4485fi
4486echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4487echo "${ECHO_T}$llvm_cv_has_bison" >&6
4488if test "$YACC" != "bison -y"; then
4489  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4490echo "$as_me: error: bison not found but required" >&2;}
4491   { (exit 1); exit 1; }; }
4492else
4493  BISON=bison
4494
4495fi
4496
4497echo "$as_me:$LINENO: checking for GNU make" >&5
4498echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4499if test "${llvm_cv_gnu_make_command+set}" = set; then
4500  echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502  llvm_cv_gnu_make_command=''
4503 for a in "$MAKE" make gmake gnumake ; do
4504  if test -z "$a" ; then continue ; fi ;
4505  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4506  then
4507   llvm_cv_gnu_make_command=$a ;
4508   break;
4509  fi
4510 done
4511fi
4512echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4513echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4514 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4515   ifGNUmake='' ;
4516 else
4517   ifGNUmake='#' ;
4518   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4519echo "${ECHO_T}\"Not found\"" >&6;
4520 fi
4521
4522
4523echo "$as_me:$LINENO: checking whether ln -s works" >&5
4524echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4525LN_S=$as_ln_s
4526if test "$LN_S" = "ln -s"; then
4527  echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529else
4530  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4531echo "${ECHO_T}no, using $LN_S" >&6
4532fi
4533
4534# Extract the first word of "cmp", so it can be a program name with args.
4535set dummy cmp; ac_word=$2
4536echo "$as_me:$LINENO: checking for $ac_word" >&5
4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538if test "${ac_cv_path_CMP+set}" = set; then
4539  echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541  case $CMP in
4542  [\\/]* | ?:[\\/]*)
4543  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544  ;;
4545  *)
4546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549  IFS=$as_save_IFS
4550  test -z "$as_dir" && as_dir=.
4551  for ac_exec_ext in '' $ac_executable_extensions; do
4552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555    break 2
4556  fi
4557done
4558done
4559
4560  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561  ;;
4562esac
4563fi
4564CMP=$ac_cv_path_CMP
4565
4566if test -n "$CMP"; then
4567  echo "$as_me:$LINENO: result: $CMP" >&5
4568echo "${ECHO_T}$CMP" >&6
4569else
4570  echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572fi
4573
4574# Extract the first word of "cp", so it can be a program name with args.
4575set dummy cp; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578if test "${ac_cv_path_CP+set}" = set; then
4579  echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581  case $CP in
4582  [\\/]* | ?:[\\/]*)
4583  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4584  ;;
4585  *)
4586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591  for ac_exec_ext in '' $ac_executable_extensions; do
4592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597done
4598done
4599
4600  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4601  ;;
4602esac
4603fi
4604CP=$ac_cv_path_CP
4605
4606if test -n "$CP"; then
4607  echo "$as_me:$LINENO: result: $CP" >&5
4608echo "${ECHO_T}$CP" >&6
4609else
4610  echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6
4612fi
4613
4614# Extract the first word of "date", so it can be a program name with args.
4615set dummy date; ac_word=$2
4616echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618if test "${ac_cv_path_DATE+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  case $DATE in
4622  [\\/]* | ?:[\\/]*)
4623  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4624  ;;
4625  *)
4626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631  for ac_exec_ext in '' $ac_executable_extensions; do
4632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638done
4639
4640  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4641  ;;
4642esac
4643fi
4644DATE=$ac_cv_path_DATE
4645
4646if test -n "$DATE"; then
4647  echo "$as_me:$LINENO: result: $DATE" >&5
4648echo "${ECHO_T}$DATE" >&6
4649else
4650  echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652fi
4653
4654# Extract the first word of "find", so it can be a program name with args.
4655set dummy find; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658if test "${ac_cv_path_FIND+set}" = set; then
4659  echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661  case $FIND in
4662  [\\/]* | ?:[\\/]*)
4663  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4664  ;;
4665  *)
4666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669  IFS=$as_save_IFS
4670  test -z "$as_dir" && as_dir=.
4671  for ac_exec_ext in '' $ac_executable_extensions; do
4672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675    break 2
4676  fi
4677done
4678done
4679
4680  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4681  ;;
4682esac
4683fi
4684FIND=$ac_cv_path_FIND
4685
4686if test -n "$FIND"; then
4687  echo "$as_me:$LINENO: result: $FIND" >&5
4688echo "${ECHO_T}$FIND" >&6
4689else
4690  echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692fi
4693
4694# Extract the first word of "grep", so it can be a program name with args.
4695set dummy grep; ac_word=$2
4696echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698if test "${ac_cv_path_GREP+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  case $GREP in
4702  [\\/]* | ?:[\\/]*)
4703  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4704  ;;
4705  *)
4706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711  for ac_exec_ext in '' $ac_executable_extensions; do
4712  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4714    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715    break 2
4716  fi
4717done
4718done
4719
4720  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4721  ;;
4722esac
4723fi
4724GREP=$ac_cv_path_GREP
4725
4726if test -n "$GREP"; then
4727  echo "$as_me:$LINENO: result: $GREP" >&5
4728echo "${ECHO_T}$GREP" >&6
4729else
4730  echo "$as_me:$LINENO: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732fi
4733
4734# Extract the first word of "mkdir", so it can be a program name with args.
4735set dummy mkdir; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_path_MKDIR+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  case $MKDIR in
4742  [\\/]* | ?:[\\/]*)
4743  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4744  ;;
4745  *)
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  test -z "$as_dir" && as_dir=.
4751  for ac_exec_ext in '' $ac_executable_extensions; do
4752  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755    break 2
4756  fi
4757done
4758done
4759
4760  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4761  ;;
4762esac
4763fi
4764MKDIR=$ac_cv_path_MKDIR
4765
4766if test -n "$MKDIR"; then
4767  echo "$as_me:$LINENO: result: $MKDIR" >&5
4768echo "${ECHO_T}$MKDIR" >&6
4769else
4770  echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774# Extract the first word of "mv", so it can be a program name with args.
4775set dummy mv; ac_word=$2
4776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_path_MV+set}" = set; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
4781  case $MV in
4782  [\\/]* | ?:[\\/]*)
4783  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4784  ;;
4785  *)
4786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789  IFS=$as_save_IFS
4790  test -z "$as_dir" && as_dir=.
4791  for ac_exec_ext in '' $ac_executable_extensions; do
4792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795    break 2
4796  fi
4797done
4798done
4799
4800  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4801  ;;
4802esac
4803fi
4804MV=$ac_cv_path_MV
4805
4806if test -n "$MV"; then
4807  echo "$as_me:$LINENO: result: $MV" >&5
4808echo "${ECHO_T}$MV" >&6
4809else
4810  echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814# Extract the first word of "pax", so it can be a program name with args.
4815set dummy pax; ac_word=$2
4816echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818if test "${ac_cv_path_PAX+set}" = set; then
4819  echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821  case $PAX in
4822  [\\/]* | ?:[\\/]*)
4823  ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4824  ;;
4825  *)
4826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827for as_dir in $PATH
4828do
4829  IFS=$as_save_IFS
4830  test -z "$as_dir" && as_dir=.
4831  for ac_exec_ext in '' $ac_executable_extensions; do
4832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833    ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835    break 2
4836  fi
4837done
4838done
4839
4840  test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4841  ;;
4842esac
4843fi
4844PAX=$ac_cv_path_PAX
4845
4846if test -n "$PAX"; then
4847  echo "$as_me:$LINENO: result: $PAX" >&5
4848echo "${ECHO_T}$PAX" >&6
4849else
4850  echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852fi
4853
4854if test -n "$ac_tool_prefix"; then
4855  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4856set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4857echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4859if test "${ac_cv_prog_RANLIB+set}" = set; then
4860  echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862  if test -n "$RANLIB"; then
4863  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868  IFS=$as_save_IFS
4869  test -z "$as_dir" && as_dir=.
4870  for ac_exec_ext in '' $ac_executable_extensions; do
4871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874    break 2
4875  fi
4876done
4877done
4878
4879fi
4880fi
4881RANLIB=$ac_cv_prog_RANLIB
4882if test -n "$RANLIB"; then
4883  echo "$as_me:$LINENO: result: $RANLIB" >&5
4884echo "${ECHO_T}$RANLIB" >&6
4885else
4886  echo "$as_me:$LINENO: result: no" >&5
4887echo "${ECHO_T}no" >&6
4888fi
4889
4890fi
4891if test -z "$ac_cv_prog_RANLIB"; then
4892  ac_ct_RANLIB=$RANLIB
4893  # Extract the first word of "ranlib", so it can be a program name with args.
4894set dummy ranlib; ac_word=$2
4895echo "$as_me:$LINENO: checking for $ac_word" >&5
4896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4898  echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900  if test -n "$ac_ct_RANLIB"; then
4901  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906  IFS=$as_save_IFS
4907  test -z "$as_dir" && as_dir=.
4908  for ac_exec_ext in '' $ac_executable_extensions; do
4909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910    ac_cv_prog_ac_ct_RANLIB="ranlib"
4911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912    break 2
4913  fi
4914done
4915done
4916
4917  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4918fi
4919fi
4920ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4921if test -n "$ac_ct_RANLIB"; then
4922  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4923echo "${ECHO_T}$ac_ct_RANLIB" >&6
4924else
4925  echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927fi
4928
4929  RANLIB=$ac_ct_RANLIB
4930else
4931  RANLIB="$ac_cv_prog_RANLIB"
4932fi
4933
4934# Extract the first word of "rm", so it can be a program name with args.
4935set dummy rm; ac_word=$2
4936echo "$as_me:$LINENO: checking for $ac_word" >&5
4937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938if test "${ac_cv_path_RM+set}" = set; then
4939  echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941  case $RM in
4942  [\\/]* | ?:[\\/]*)
4943  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4944  ;;
4945  *)
4946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949  IFS=$as_save_IFS
4950  test -z "$as_dir" && as_dir=.
4951  for ac_exec_ext in '' $ac_executable_extensions; do
4952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955    break 2
4956  fi
4957done
4958done
4959
4960  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4961  ;;
4962esac
4963fi
4964RM=$ac_cv_path_RM
4965
4966if test -n "$RM"; then
4967  echo "$as_me:$LINENO: result: $RM" >&5
4968echo "${ECHO_T}$RM" >&6
4969else
4970  echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6
4972fi
4973
4974# Extract the first word of "sed", so it can be a program name with args.
4975set dummy sed; ac_word=$2
4976echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978if test "${ac_cv_path_SED+set}" = set; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981  case $SED in
4982  [\\/]* | ?:[\\/]*)
4983  ac_cv_path_SED="$SED" # Let the user override the test with a path.
4984  ;;
4985  *)
4986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991  for ac_exec_ext in '' $ac_executable_extensions; do
4992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998done
4999
5000  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5001  ;;
5002esac
5003fi
5004SED=$ac_cv_path_SED
5005
5006if test -n "$SED"; then
5007  echo "$as_me:$LINENO: result: $SED" >&5
5008echo "${ECHO_T}$SED" >&6
5009else
5010  echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014# Extract the first word of "tar", so it can be a program name with args.
5015set dummy tar; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_path_TAR+set}" = set; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021  case $TAR in
5022  [\\/]* | ?:[\\/]*)
5023  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5024  ;;
5025  *)
5026  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029  IFS=$as_save_IFS
5030  test -z "$as_dir" && as_dir=.
5031  for ac_exec_ext in '' $ac_executable_extensions; do
5032  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5034    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035    break 2
5036  fi
5037done
5038done
5039
5040  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5041  ;;
5042esac
5043fi
5044TAR=$ac_cv_path_TAR
5045
5046if test -n "$TAR"; then
5047  echo "$as_me:$LINENO: result: $TAR" >&5
5048echo "${ECHO_T}$TAR" >&6
5049else
5050  echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052fi
5053
5054
5055# Find a good install program.  We prefer a C program (faster),
5056# so one script is as good as another.  But avoid the broken or
5057# incompatible versions:
5058# SysV /etc/install, /usr/sbin/install
5059# SunOS /usr/etc/install
5060# IRIX /sbin/install
5061# AIX /bin/install
5062# AmigaOS /C/install, which installs bootblocks on floppy discs
5063# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5064# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5065# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5066# OS/2's system install, which has a completely different semantic
5067# ./install, which can be erroneously created by make from ./install.sh.
5068echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5069echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5070if test -z "$INSTALL"; then
5071if test "${ac_cv_path_install+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079  # Account for people who put trailing slashes in PATH elements.
5080case $as_dir/ in
5081  ./ | .// | /cC/* | \
5082  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5083  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5084  /usr/ucb/* ) ;;
5085  *)
5086    # OSF1 and SCO ODT 3.0 have their own names for install.
5087    # Don't use installbsd from OSF since it installs stuff as root
5088    # by default.
5089    for ac_prog in ginstall scoinst install; do
5090      for ac_exec_ext in '' $ac_executable_extensions; do
5091	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5092	  if test $ac_prog = install &&
5093	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5094	    # AIX install.  It has an incompatible calling convention.
5095	    :
5096	  elif test $ac_prog = install &&
5097	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5098	    # program-specific install script used by HP pwplus--don't use.
5099	    :
5100	  else
5101	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5102	    break 3
5103	  fi
5104	fi
5105      done
5106    done
5107    ;;
5108esac
5109done
5110
5111
5112fi
5113  if test "${ac_cv_path_install+set}" = set; then
5114    INSTALL=$ac_cv_path_install
5115  else
5116    # As a last resort, use the slow shell script.  We don't cache a
5117    # path for INSTALL within a source directory, because that will
5118    # break other packages using the cache if that directory is
5119    # removed, or if the path is relative.
5120    INSTALL=$ac_install_sh
5121  fi
5122fi
5123echo "$as_me:$LINENO: result: $INSTALL" >&5
5124echo "${ECHO_T}$INSTALL" >&6
5125
5126# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5127# It thinks the first close brace ends the variable substitution.
5128test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5129
5130test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5131
5132test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5133
5134
5135# Extract the first word of "bzip2", so it can be a program name with args.
5136set dummy bzip2; ac_word=$2
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_path_BZIP2+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  case $BZIP2 in
5143  [\\/]* | ?:[\\/]*)
5144  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5145  ;;
5146  *)
5147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152  for ac_exec_ext in '' $ac_executable_extensions; do
5153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156    break 2
5157  fi
5158done
5159done
5160
5161  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5162  ;;
5163esac
5164fi
5165BZIP2=$ac_cv_path_BZIP2
5166
5167if test -n "$BZIP2"; then
5168  echo "$as_me:$LINENO: result: $BZIP2" >&5
5169echo "${ECHO_T}$BZIP2" >&6
5170else
5171  echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
5175# Extract the first word of "dot", so it can be a program name with args.
5176set dummy dot; ac_word=$2
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179if test "${ac_cv_path_DOT+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  case $DOT in
5183  [\\/]* | ?:[\\/]*)
5184  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5185  ;;
5186  *)
5187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190  IFS=$as_save_IFS
5191  test -z "$as_dir" && as_dir=.
5192  for ac_exec_ext in '' $ac_executable_extensions; do
5193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196    break 2
5197  fi
5198done
5199done
5200
5201  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5202  ;;
5203esac
5204fi
5205DOT=$ac_cv_path_DOT
5206
5207if test -n "$DOT"; then
5208  echo "$as_me:$LINENO: result: $DOT" >&5
5209echo "${ECHO_T}$DOT" >&6
5210else
5211  echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213fi
5214
5215# Extract the first word of "doxygen", so it can be a program name with args.
5216set dummy doxygen; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_path_DOXYGEN+set}" = set; then
5220  echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222  case $DOXYGEN in
5223  [\\/]* | ?:[\\/]*)
5224  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5225  ;;
5226  *)
5227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230  IFS=$as_save_IFS
5231  test -z "$as_dir" && as_dir=.
5232  for ac_exec_ext in '' $ac_executable_extensions; do
5233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236    break 2
5237  fi
5238done
5239done
5240
5241  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5242  ;;
5243esac
5244fi
5245DOXYGEN=$ac_cv_path_DOXYGEN
5246
5247if test -n "$DOXYGEN"; then
5248  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5249echo "${ECHO_T}$DOXYGEN" >&6
5250else
5251  echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253fi
5254
5255# Extract the first word of "etags", so it can be a program name with args.
5256set dummy etags; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_path_ETAGS+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  case $ETAGS in
5263  [\\/]* | ?:[\\/]*)
5264  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5265  ;;
5266  *)
5267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272  for ac_exec_ext in '' $ac_executable_extensions; do
5273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279done
5280
5281  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5282  ;;
5283esac
5284fi
5285ETAGS=$ac_cv_path_ETAGS
5286
5287if test -n "$ETAGS"; then
5288  echo "$as_me:$LINENO: result: $ETAGS" >&5
5289echo "${ECHO_T}$ETAGS" >&6
5290else
5291  echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293fi
5294
5295# Extract the first word of "groff", so it can be a program name with args.
5296set dummy groff; ac_word=$2
5297echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299if test "${ac_cv_path_GROFF+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  case $GROFF in
5303  [\\/]* | ?:[\\/]*)
5304  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5305  ;;
5306  *)
5307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  test -z "$as_dir" && as_dir=.
5312  for ac_exec_ext in '' $ac_executable_extensions; do
5313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316    break 2
5317  fi
5318done
5319done
5320
5321  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5322  ;;
5323esac
5324fi
5325GROFF=$ac_cv_path_GROFF
5326
5327if test -n "$GROFF"; then
5328  echo "$as_me:$LINENO: result: $GROFF" >&5
5329echo "${ECHO_T}$GROFF" >&6
5330else
5331  echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
5334
5335# Extract the first word of "gzip", so it can be a program name with args.
5336set dummy gzip; ac_word=$2
5337echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339if test "${ac_cv_path_GZIP+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  case $GZIP in
5343  [\\/]* | ?:[\\/]*)
5344  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5345  ;;
5346  *)
5347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  for ac_exec_ext in '' $ac_executable_extensions; do
5353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359done
5360
5361  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5362  ;;
5363esac
5364fi
5365GZIP=$ac_cv_path_GZIP
5366
5367if test -n "$GZIP"; then
5368  echo "$as_me:$LINENO: result: $GZIP" >&5
5369echo "${ECHO_T}$GZIP" >&6
5370else
5371  echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375# Extract the first word of "pod2html", so it can be a program name with args.
5376set dummy pod2html; ac_word=$2
5377echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379if test "${ac_cv_path_POD2HTML+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382  case $POD2HTML in
5383  [\\/]* | ?:[\\/]*)
5384  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5385  ;;
5386  *)
5387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392  for ac_exec_ext in '' $ac_executable_extensions; do
5393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399done
5400
5401  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5402  ;;
5403esac
5404fi
5405POD2HTML=$ac_cv_path_POD2HTML
5406
5407if test -n "$POD2HTML"; then
5408  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5409echo "${ECHO_T}$POD2HTML" >&6
5410else
5411  echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413fi
5414
5415# Extract the first word of "pod2man", so it can be a program name with args.
5416set dummy pod2man; ac_word=$2
5417echo "$as_me:$LINENO: checking for $ac_word" >&5
5418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5419if test "${ac_cv_path_POD2MAN+set}" = set; then
5420  echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422  case $POD2MAN in
5423  [\\/]* | ?:[\\/]*)
5424  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5425  ;;
5426  *)
5427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432  for ac_exec_ext in '' $ac_executable_extensions; do
5433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439done
5440
5441  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5442  ;;
5443esac
5444fi
5445POD2MAN=$ac_cv_path_POD2MAN
5446
5447if test -n "$POD2MAN"; then
5448  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5449echo "${ECHO_T}$POD2MAN" >&6
5450else
5451  echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453fi
5454
5455# Extract the first word of "runtest", so it can be a program name with args.
5456set dummy runtest; ac_word=$2
5457echo "$as_me:$LINENO: checking for $ac_word" >&5
5458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459if test "${ac_cv_path_RUNTEST+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  case $RUNTEST in
5463  [\\/]* | ?:[\\/]*)
5464  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5465  ;;
5466  *)
5467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472  for ac_exec_ext in '' $ac_executable_extensions; do
5473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479done
5480
5481  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5482  ;;
5483esac
5484fi
5485RUNTEST=$ac_cv_path_RUNTEST
5486
5487if test -n "$RUNTEST"; then
5488  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5489echo "${ECHO_T}$RUNTEST" >&6
5490else
5491  echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
5494
5495
5496no_itcl=true
5497echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5498echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5499
5500# Check whether --with-tclinclude or --without-tclinclude was given.
5501if test "${with_tclinclude+set}" = set; then
5502  withval="$with_tclinclude"
5503  with_tclinclude=${withval}
5504else
5505  with_tclinclude=''
5506fi;
5507if test "${ac_cv_path_tclsh+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510
5511if test x"${with_tclinclude}" != x ; then
5512  if test -f ${with_tclinclude}/tclsh ; then
5513    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5514  elif test -f ${with_tclinclude}/src/tclsh ; then
5515    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5516  else
5517    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5518echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5519   { (exit 1); exit 1; }; }
5520  fi
5521fi
5522
5523if test x"${ac_cv_path_tclsh}" = x ; then
5524  echo "$as_me:$LINENO: result: none" >&5
5525echo "${ECHO_T}none" >&6
5526  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
5527do
5528  # Extract the first word of "$ac_prog", so it can be a program name with args.
5529set dummy $ac_prog; ac_word=$2
5530echo "$as_me:$LINENO: checking for $ac_word" >&5
5531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532if test "${ac_cv_path_TCLSH+set}" = set; then
5533  echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535  case $TCLSH in
5536  [\\/]* | ?:[\\/]*)
5537  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5538  ;;
5539  *)
5540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543  IFS=$as_save_IFS
5544  test -z "$as_dir" && as_dir=.
5545  for ac_exec_ext in '' $ac_executable_extensions; do
5546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549    break 2
5550  fi
5551done
5552done
5553
5554  ;;
5555esac
5556fi
5557TCLSH=$ac_cv_path_TCLSH
5558
5559if test -n "$TCLSH"; then
5560  echo "$as_me:$LINENO: result: $TCLSH" >&5
5561echo "${ECHO_T}$TCLSH" >&6
5562else
5563  echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565fi
5566
5567  test -n "$TCLSH" && break
5568done
5569
5570  if test x"${TCLSH}" = x ; then
5571    ac_cv_path_tclsh='';
5572  else
5573    ac_cv_path_tclsh="${TCLSH}";
5574  fi
5575else
5576  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5577echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5578  TCLSH="${ac_cv_path_tclsh}"
5579
5580fi
5581
5582fi
5583
5584# Extract the first word of "zip", so it can be a program name with args.
5585set dummy zip; ac_word=$2
5586echo "$as_me:$LINENO: checking for $ac_word" >&5
5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588if test "${ac_cv_path_ZIP+set}" = set; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591  case $ZIP in
5592  [\\/]* | ?:[\\/]*)
5593  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5594  ;;
5595  *)
5596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599  IFS=$as_save_IFS
5600  test -z "$as_dir" && as_dir=.
5601  for ac_exec_ext in '' $ac_executable_extensions; do
5602  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5604    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605    break 2
5606  fi
5607done
5608done
5609
5610  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5611  ;;
5612esac
5613fi
5614ZIP=$ac_cv_path_ZIP
5615
5616if test -n "$ZIP"; then
5617  echo "$as_me:$LINENO: result: $ZIP" >&5
5618echo "${ECHO_T}$ZIP" >&6
5619else
5620  echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622fi
5623
5624
5625echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5626echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5627if test "${llvm_cv_link_use_r+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630   ac_ext=c
5631ac_cpp='$CPP $CPPFLAGS'
5632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635
5636  oldcflags="$CFLAGS"
5637  CFLAGS="$CFLAGS -Wl,-R."
5638  cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h.  */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h.  */
5644
5645int
5646main ()
5647{
5648int main() { return 0; }
5649  ;
5650  return 0;
5651}
5652_ACEOF
5653rm -f conftest.$ac_objext conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655  (eval $ac_link) 2>conftest.er1
5656  ac_status=$?
5657  grep -v '^ *+' conftest.er1 >conftest.err
5658  rm -f conftest.er1
5659  cat conftest.err >&5
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); } &&
5662	 { ac_try='test -z "$ac_c_werror_flag"
5663			 || test ! -s conftest.err'
5664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665  (eval $ac_try) 2>&5
5666  ac_status=$?
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); }; } &&
5669	 { ac_try='test -s conftest$ac_exeext'
5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671  (eval $ac_try) 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; }; then
5675  llvm_cv_link_use_r=yes
5676else
5677  echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
5680llvm_cv_link_use_r=no
5681fi
5682rm -f conftest.err conftest.$ac_objext \
5683      conftest$ac_exeext conftest.$ac_ext
5684  CFLAGS="$oldcflags"
5685  ac_ext=c
5686ac_cpp='$CPP $CPPFLAGS'
5687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
5691
5692fi
5693echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5694echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5695if test "$llvm_cv_link_use_r" = yes ; then
5696
5697cat >>confdefs.h <<\_ACEOF
5698#define HAVE_LINK_R 1
5699_ACEOF
5700
5701  fi
5702
5703
5704
5705
5706echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5707echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5708if test "${ac_cv_c_const+set}" = set; then
5709  echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711  cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h.  */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h.  */
5717
5718int
5719main ()
5720{
5721/* FIXME: Include the comments suggested by Paul. */
5722#ifndef __cplusplus
5723  /* Ultrix mips cc rejects this.  */
5724  typedef int charset[2];
5725  const charset x;
5726  /* SunOS 4.1.1 cc rejects this.  */
5727  char const *const *ccp;
5728  char **p;
5729  /* NEC SVR4.0.2 mips cc rejects this.  */
5730  struct point {int x, y;};
5731  static struct point const zero = {0,0};
5732  /* AIX XL C 1.02.0.0 rejects this.
5733     It does not let you subtract one const X* pointer from another in
5734     an arm of an if-expression whose if-part is not a constant
5735     expression */
5736  const char *g = "string";
5737  ccp = &g + (g ? g-g : 0);
5738  /* HPUX 7.0 cc rejects these. */
5739  ++ccp;
5740  p = (char**) ccp;
5741  ccp = (char const *const *) p;
5742  { /* SCO 3.2v4 cc rejects this.  */
5743    char *t;
5744    char const *s = 0 ? (char *) 0 : (char const *) 0;
5745
5746    *t++ = 0;
5747  }
5748  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5749    int x[] = {25, 17};
5750    const int *foo = &x[0];
5751    ++foo;
5752  }
5753  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5754    typedef const int *iptr;
5755    iptr p = 0;
5756    ++p;
5757  }
5758  { /* AIX XL C 1.02.0.0 rejects this saying
5759       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5760    struct s { int j; const int *ap[3]; };
5761    struct s *b; b->j = 5;
5762  }
5763  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5764    const int foo = 10;
5765  }
5766#endif
5767
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772rm -f conftest.$ac_objext
5773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774  (eval $ac_compile) 2>conftest.er1
5775  ac_status=$?
5776  grep -v '^ *+' conftest.er1 >conftest.err
5777  rm -f conftest.er1
5778  cat conftest.err >&5
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); } &&
5781	 { ac_try='test -z "$ac_c_werror_flag"
5782			 || test ! -s conftest.err'
5783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784  (eval $ac_try) 2>&5
5785  ac_status=$?
5786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787  (exit $ac_status); }; } &&
5788	 { ac_try='test -s conftest.$ac_objext'
5789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790  (eval $ac_try) 2>&5
5791  ac_status=$?
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); }; }; then
5794  ac_cv_c_const=yes
5795else
5796  echo "$as_me: failed program was:" >&5
5797sed 's/^/| /' conftest.$ac_ext >&5
5798
5799ac_cv_c_const=no
5800fi
5801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802fi
5803echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5804echo "${ECHO_T}$ac_cv_c_const" >&6
5805if test $ac_cv_c_const = no; then
5806
5807cat >>confdefs.h <<\_ACEOF
5808#define const
5809_ACEOF
5810
5811fi
5812
5813
5814echo "$as_me:$LINENO: checking for egrep" >&5
5815echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5816if test "${ac_cv_prog_egrep+set}" = set; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5820    then ac_cv_prog_egrep='grep -E'
5821    else ac_cv_prog_egrep='egrep'
5822    fi
5823fi
5824echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5825echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5826 EGREP=$ac_cv_prog_egrep
5827
5828
5829echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5831if test "${ac_cv_header_stdc+set}" = set; then
5832  echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834  cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h.  */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h.  */
5840#include <stdlib.h>
5841#include <stdarg.h>
5842#include <string.h>
5843#include <float.h>
5844
5845int
5846main ()
5847{
5848
5849  ;
5850  return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext
5854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855  (eval $ac_compile) 2>conftest.er1
5856  ac_status=$?
5857  grep -v '^ *+' conftest.er1 >conftest.err
5858  rm -f conftest.er1
5859  cat conftest.err >&5
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); } &&
5862	 { ac_try='test -z "$ac_c_werror_flag"
5863			 || test ! -s conftest.err'
5864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865  (eval $ac_try) 2>&5
5866  ac_status=$?
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); }; } &&
5869	 { ac_try='test -s conftest.$ac_objext'
5870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871  (eval $ac_try) 2>&5
5872  ac_status=$?
5873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874  (exit $ac_status); }; }; then
5875  ac_cv_header_stdc=yes
5876else
5877  echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880ac_cv_header_stdc=no
5881fi
5882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883
5884if test $ac_cv_header_stdc = yes; then
5885  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#include <string.h>
5893
5894_ACEOF
5895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896  $EGREP "memchr" >/dev/null 2>&1; then
5897  :
5898else
5899  ac_cv_header_stdc=no
5900fi
5901rm -f conftest*
5902
5903fi
5904
5905if test $ac_cv_header_stdc = yes; then
5906  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907  cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h.  */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h.  */
5913#include <stdlib.h>
5914
5915_ACEOF
5916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917  $EGREP "free" >/dev/null 2>&1; then
5918  :
5919else
5920  ac_cv_header_stdc=no
5921fi
5922rm -f conftest*
5923
5924fi
5925
5926if test $ac_cv_header_stdc = yes; then
5927  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928  if test "$cross_compiling" = yes; then
5929  :
5930else
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#include <ctype.h>
5938#if ((' ' & 0x0FF) == 0x020)
5939# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941#else
5942# define ISLOWER(c) \
5943		   (('a' <= (c) && (c) <= 'i') \
5944		     || ('j' <= (c) && (c) <= 'r') \
5945		     || ('s' <= (c) && (c) <= 'z'))
5946# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5947#endif
5948
5949#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5950int
5951main ()
5952{
5953  int i;
5954  for (i = 0; i < 256; i++)
5955    if (XOR (islower (i), ISLOWER (i))
5956	|| toupper (i) != TOUPPER (i))
5957      exit(2);
5958  exit (0);
5959}
5960_ACEOF
5961rm -f conftest$ac_exeext
5962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963  (eval $ac_link) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968  (eval $ac_try) 2>&5
5969  ac_status=$?
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); }; }; then
5972  :
5973else
5974  echo "$as_me: program exited with status $ac_status" >&5
5975echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978( exit $ac_status )
5979ac_cv_header_stdc=no
5980fi
5981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5982fi
5983fi
5984fi
5985echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987if test $ac_cv_header_stdc = yes; then
5988
5989cat >>confdefs.h <<\_ACEOF
5990#define STDC_HEADERS 1
5991_ACEOF
5992
5993fi
5994
5995
5996
5997
5998
5999
6000ac_header_dirent=no
6001for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6002  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6003echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6004echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6005if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006  echo $ECHO_N "(cached) $ECHO_C" >&6
6007else
6008  cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h.  */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h.  */
6014#include <sys/types.h>
6015#include <$ac_hdr>
6016
6017int
6018main ()
6019{
6020if ((DIR *) 0)
6021return 0;
6022  ;
6023  return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext
6027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028  (eval $ac_compile) 2>conftest.er1
6029  ac_status=$?
6030  grep -v '^ *+' conftest.er1 >conftest.err
6031  rm -f conftest.er1
6032  cat conftest.err >&5
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); } &&
6035	 { ac_try='test -z "$ac_c_werror_flag"
6036			 || test ! -s conftest.err'
6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038  (eval $ac_try) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; } &&
6042	 { ac_try='test -s conftest.$ac_objext'
6043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044  (eval $ac_try) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); }; }; then
6048  eval "$as_ac_Header=yes"
6049else
6050  echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053eval "$as_ac_Header=no"
6054fi
6055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056fi
6057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6059if test `eval echo '${'$as_ac_Header'}'` = yes; then
6060  cat >>confdefs.h <<_ACEOF
6061#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6062_ACEOF
6063
6064ac_header_dirent=$ac_hdr; break
6065fi
6066
6067done
6068# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6069if test $ac_header_dirent = dirent.h; then
6070  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6071echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6072if test "${ac_cv_search_opendir+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  ac_func_search_save_LIBS=$LIBS
6076ac_cv_search_opendir=no
6077cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h.  */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h.  */
6083
6084/* Override any gcc2 internal prototype to avoid an error.  */
6085#ifdef __cplusplus
6086extern "C"
6087#endif
6088/* We use char because int might match the return type of a gcc2
6089   builtin and then its argument prototype would still apply.  */
6090char opendir ();
6091int
6092main ()
6093{
6094opendir ();
6095  ;
6096  return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext conftest$ac_exeext
6100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101  (eval $ac_link) 2>conftest.er1
6102  ac_status=$?
6103  grep -v '^ *+' conftest.er1 >conftest.err
6104  rm -f conftest.er1
6105  cat conftest.err >&5
6106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107  (exit $ac_status); } &&
6108	 { ac_try='test -z "$ac_c_werror_flag"
6109			 || test ! -s conftest.err'
6110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111  (eval $ac_try) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); }; } &&
6115	 { ac_try='test -s conftest$ac_exeext'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  ac_cv_search_opendir="none required"
6122else
6123  echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126fi
6127rm -f conftest.err conftest.$ac_objext \
6128      conftest$ac_exeext conftest.$ac_ext
6129if test "$ac_cv_search_opendir" = no; then
6130  for ac_lib in dir; do
6131    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6132    cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138
6139/* Override any gcc2 internal prototype to avoid an error.  */
6140#ifdef __cplusplus
6141extern "C"
6142#endif
6143/* We use char because int might match the return type of a gcc2
6144   builtin and then its argument prototype would still apply.  */
6145char opendir ();
6146int
6147main ()
6148{
6149opendir ();
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext conftest$ac_exeext
6155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156  (eval $ac_link) 2>conftest.er1
6157  ac_status=$?
6158  grep -v '^ *+' conftest.er1 >conftest.err
6159  rm -f conftest.er1
6160  cat conftest.err >&5
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); } &&
6163	 { ac_try='test -z "$ac_c_werror_flag"
6164			 || test ! -s conftest.err'
6165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166  (eval $ac_try) 2>&5
6167  ac_status=$?
6168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169  (exit $ac_status); }; } &&
6170	 { ac_try='test -s conftest$ac_exeext'
6171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172  (eval $ac_try) 2>&5
6173  ac_status=$?
6174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175  (exit $ac_status); }; }; then
6176  ac_cv_search_opendir="-l$ac_lib"
6177break
6178else
6179  echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182fi
6183rm -f conftest.err conftest.$ac_objext \
6184      conftest$ac_exeext conftest.$ac_ext
6185  done
6186fi
6187LIBS=$ac_func_search_save_LIBS
6188fi
6189echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6190echo "${ECHO_T}$ac_cv_search_opendir" >&6
6191if test "$ac_cv_search_opendir" != no; then
6192  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6193
6194fi
6195
6196else
6197  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6198echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6199if test "${ac_cv_search_opendir+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  ac_func_search_save_LIBS=$LIBS
6203ac_cv_search_opendir=no
6204cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h.  */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h.  */
6210
6211/* Override any gcc2 internal prototype to avoid an error.  */
6212#ifdef __cplusplus
6213extern "C"
6214#endif
6215/* We use char because int might match the return type of a gcc2
6216   builtin and then its argument prototype would still apply.  */
6217char opendir ();
6218int
6219main ()
6220{
6221opendir ();
6222  ;
6223  return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext conftest$ac_exeext
6227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228  (eval $ac_link) 2>conftest.er1
6229  ac_status=$?
6230  grep -v '^ *+' conftest.er1 >conftest.err
6231  rm -f conftest.er1
6232  cat conftest.err >&5
6233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); } &&
6235	 { ac_try='test -z "$ac_c_werror_flag"
6236			 || test ! -s conftest.err'
6237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238  (eval $ac_try) 2>&5
6239  ac_status=$?
6240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241  (exit $ac_status); }; } &&
6242	 { ac_try='test -s conftest$ac_exeext'
6243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244  (eval $ac_try) 2>&5
6245  ac_status=$?
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); }; }; then
6248  ac_cv_search_opendir="none required"
6249else
6250  echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253fi
6254rm -f conftest.err conftest.$ac_objext \
6255      conftest$ac_exeext conftest.$ac_ext
6256if test "$ac_cv_search_opendir" = no; then
6257  for ac_lib in x; do
6258    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6259    cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265
6266/* Override any gcc2 internal prototype to avoid an error.  */
6267#ifdef __cplusplus
6268extern "C"
6269#endif
6270/* We use char because int might match the return type of a gcc2
6271   builtin and then its argument prototype would still apply.  */
6272char opendir ();
6273int
6274main ()
6275{
6276opendir ();
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281rm -f conftest.$ac_objext conftest$ac_exeext
6282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283  (eval $ac_link) 2>conftest.er1
6284  ac_status=$?
6285  grep -v '^ *+' conftest.er1 >conftest.err
6286  rm -f conftest.er1
6287  cat conftest.err >&5
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); } &&
6290	 { ac_try='test -z "$ac_c_werror_flag"
6291			 || test ! -s conftest.err'
6292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293  (eval $ac_try) 2>&5
6294  ac_status=$?
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); }; } &&
6297	 { ac_try='test -s conftest$ac_exeext'
6298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299  (eval $ac_try) 2>&5
6300  ac_status=$?
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); }; }; then
6303  ac_cv_search_opendir="-l$ac_lib"
6304break
6305else
6306  echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309fi
6310rm -f conftest.err conftest.$ac_objext \
6311      conftest$ac_exeext conftest.$ac_ext
6312  done
6313fi
6314LIBS=$ac_func_search_save_LIBS
6315fi
6316echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6317echo "${ECHO_T}$ac_cv_search_opendir" >&6
6318if test "$ac_cv_search_opendir" != no; then
6319  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6320
6321fi
6322
6323fi
6324
6325# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6336		  inttypes.h stdint.h unistd.h
6337do
6338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339echo "$as_me:$LINENO: checking for $ac_header" >&5
6340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6341if eval "test \"\${$as_ac_Header+set}\" = set"; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h.  */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h.  */
6350$ac_includes_default
6351
6352#include <$ac_header>
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356  (eval $ac_compile) 2>conftest.er1
6357  ac_status=$?
6358  grep -v '^ *+' conftest.er1 >conftest.err
6359  rm -f conftest.er1
6360  cat conftest.err >&5
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); } &&
6363	 { ac_try='test -z "$ac_c_werror_flag"
6364			 || test ! -s conftest.err'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; } &&
6370	 { ac_try='test -s conftest.$ac_objext'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; }; then
6376  eval "$as_ac_Header=yes"
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381eval "$as_ac_Header=no"
6382fi
6383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384fi
6385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6387if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388  cat >>confdefs.h <<_ACEOF
6389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390_ACEOF
6391
6392fi
6393
6394done
6395
6396
6397
6398for ac_header in dlfcn.h
6399do
6400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402  echo "$as_me:$LINENO: checking for $ac_header" >&5
6403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406fi
6407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409else
6410  # Is the header compilable?
6411echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h.  */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h.  */
6419$ac_includes_default
6420#include <$ac_header>
6421_ACEOF
6422rm -f conftest.$ac_objext
6423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424  (eval $ac_compile) 2>conftest.er1
6425  ac_status=$?
6426  grep -v '^ *+' conftest.er1 >conftest.err
6427  rm -f conftest.er1
6428  cat conftest.err >&5
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); } &&
6431	 { ac_try='test -z "$ac_c_werror_flag"
6432			 || test ! -s conftest.err'
6433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434  (eval $ac_try) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; } &&
6438	 { ac_try='test -s conftest.$ac_objext'
6439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440  (eval $ac_try) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; }; then
6444  ac_header_compiler=yes
6445else
6446  echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449ac_header_compiler=no
6450fi
6451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455# Is the header present?
6456echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464#include <$ac_header>
6465_ACEOF
6466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468  ac_status=$?
6469  grep -v '^ *+' conftest.er1 >conftest.err
6470  rm -f conftest.er1
6471  cat conftest.err >&5
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } >/dev/null; then
6474  if test -s conftest.err; then
6475    ac_cpp_err=$ac_c_preproc_warn_flag
6476    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477  else
6478    ac_cpp_err=
6479  fi
6480else
6481  ac_cpp_err=yes
6482fi
6483if test -z "$ac_cpp_err"; then
6484  ac_header_preproc=yes
6485else
6486  echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489  ac_header_preproc=no
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495# So?  What about this header?
6496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497  yes:no: )
6498    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502    ac_header_preproc=yes
6503    ;;
6504  no:yes:* )
6505    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6508echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6509    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6512echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6513    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6517    (
6518      cat <<\_ASBOX
6519## ----------------------------------- ##
6520## Report this to llvmbugs@cs.uiuc.edu ##
6521## ----------------------------------- ##
6522_ASBOX
6523    ) |
6524      sed "s/^/$as_me: WARNING:     /" >&2
6525    ;;
6526esac
6527echo "$as_me:$LINENO: checking for $ac_header" >&5
6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  eval "$as_ac_Header=\$ac_header_preproc"
6533fi
6534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537fi
6538if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539  cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
6543fi
6544
6545done
6546
6547# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6548if test "${enable_ltdl_install+set}" = set; then
6549  enableval="$enable_ltdl_install"
6550
6551fi;
6552
6553
6554
6555if test x"${enable_ltdl_install-no}" != xno; then
6556  INSTALL_LTDL_TRUE=
6557  INSTALL_LTDL_FALSE='#'
6558else
6559  INSTALL_LTDL_TRUE='#'
6560  INSTALL_LTDL_FALSE=
6561fi
6562
6563
6564
6565if test x"${enable_ltdl_convenience-no}" != xno; then
6566  CONVENIENCE_LTDL_TRUE=
6567  CONVENIENCE_LTDL_FALSE='#'
6568else
6569  CONVENIENCE_LTDL_TRUE='#'
6570  CONVENIENCE_LTDL_FALSE=
6571fi
6572
6573
6574echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6575echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6576library_names_spec=
6577libname_spec='lib$name'
6578soname_spec=
6579shrext_cmds=".so"
6580postinstall_cmds=
6581postuninstall_cmds=
6582finish_cmds=
6583finish_eval=
6584shlibpath_var=
6585shlibpath_overrides_runpath=unknown
6586version_type=none
6587dynamic_linker="$host_os ld.so"
6588sys_lib_dlsearch_path_spec="/lib /usr/lib"
6589if test "$GCC" = yes; then
6590  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6591  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6592    # if the path contains ";" then we assume it to be the separator
6593    # otherwise default to the standard path separator (i.e. ":") - it is
6594    # assumed that no part of a normal pathname contains ";" but that should
6595    # okay in the real world where ";" in dirpaths is itself problematic.
6596    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6597  else
6598    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6599  fi
6600else
6601  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6602fi
6603need_lib_prefix=unknown
6604hardcode_into_libs=no
6605
6606# when you set need_version to no, make sure it does not cause -set_version
6607# flags to be left without arguments
6608need_version=unknown
6609
6610case $host_os in
6611aix3*)
6612  version_type=linux
6613  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6614  shlibpath_var=LIBPATH
6615
6616  # AIX 3 has no versioning support, so we append a major version to the name.
6617  soname_spec='${libname}${release}${shared_ext}$major'
6618  ;;
6619
6620aix4* | aix5*)
6621  version_type=linux
6622  need_lib_prefix=no
6623  need_version=no
6624  hardcode_into_libs=yes
6625  if test "$host_cpu" = ia64; then
6626    # AIX 5 supports IA64
6627    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6628    shlibpath_var=LD_LIBRARY_PATH
6629  else
6630    # With GCC up to 2.95.x, collect2 would create an import file
6631    # for dependence libraries.  The import file would start with
6632    # the line `#! .'.  This would cause the generated library to
6633    # depend on `.', always an invalid library.  This was fixed in
6634    # development snapshots of GCC prior to 3.0.
6635    case $host_os in
6636      aix4 | aix4.[01] | aix4.[01].*)
6637      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6638	   echo ' yes '
6639	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6640	:
6641      else
6642	can_build_shared=no
6643      fi
6644      ;;
6645    esac
6646    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6647    # soname into executable. Probably we can add versioning support to
6648    # collect2, so additional links can be useful in future.
6649    if test "$aix_use_runtimelinking" = yes; then
6650      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6651      # instead of lib<name>.a to let people know that these are not
6652      # typical AIX shared libraries.
6653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6654    else
6655      # We preserve .a as extension for shared libraries through AIX4.2
6656      # and later when we are not doing run time linking.
6657      library_names_spec='${libname}${release}.a $libname.a'
6658      soname_spec='${libname}${release}${shared_ext}$major'
6659    fi
6660    shlibpath_var=LIBPATH
6661  fi
6662  ;;
6663
6664amigaos*)
6665  library_names_spec='$libname.ixlibrary $libname.a'
6666  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6667  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'
6668  ;;
6669
6670beos*)
6671  library_names_spec='${libname}${shared_ext}'
6672  dynamic_linker="$host_os ld.so"
6673  shlibpath_var=LIBRARY_PATH
6674  ;;
6675
6676bsdi[45]*)
6677  version_type=linux
6678  need_version=no
6679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6680  soname_spec='${libname}${release}${shared_ext}$major'
6681  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6682  shlibpath_var=LD_LIBRARY_PATH
6683  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6684  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6685  # the default ld.so.conf also contains /usr/contrib/lib and
6686  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6687  # libtool to hard-code these into programs
6688  ;;
6689
6690cygwin* | mingw* | pw32*)
6691  version_type=windows
6692  shrext_cmds=".dll"
6693  need_version=no
6694  need_lib_prefix=no
6695
6696  case $GCC,$host_os in
6697  yes,cygwin* | yes,mingw* | yes,pw32*)
6698    library_names_spec='$libname.dll.a'
6699    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6700    postinstall_cmds='base_file=`basename \${file}`~
6701      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6702      dldir=$destdir/`dirname \$dlpath`~
6703      test -d \$dldir || mkdir -p \$dldir~
6704      $install_prog $dir/$dlname \$dldir/$dlname'
6705    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6706      dlpath=$dir/\$dldll~
6707       $rm \$dlpath'
6708    shlibpath_overrides_runpath=yes
6709
6710    case $host_os in
6711    cygwin*)
6712      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6713      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6714      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6715      ;;
6716    mingw*)
6717      # MinGW DLLs use traditional 'lib' prefix
6718      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6719      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6720      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6721        # It is most probably a Windows format PATH printed by
6722        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6723        # path with ; separators, and with drive letters. We can handle the
6724        # drive letters (cygwin fileutils understands them), so leave them,
6725        # especially as we might pass files found there to a mingw objdump,
6726        # which wouldn't understand a cygwinified path. Ahh.
6727        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6728      else
6729        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6730      fi
6731      ;;
6732    pw32*)
6733      # pw32 DLLs use 'pw' prefix rather than 'lib'
6734      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6735      ;;
6736    esac
6737    ;;
6738
6739  *)
6740    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6741    ;;
6742  esac
6743  dynamic_linker='Win32 ld.exe'
6744  # FIXME: first we should search . and the directory the executable is in
6745  shlibpath_var=PATH
6746  ;;
6747
6748darwin* | rhapsody*)
6749  dynamic_linker="$host_os dyld"
6750  version_type=darwin
6751  need_lib_prefix=no
6752  need_version=no
6753  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6754  soname_spec='${libname}${release}${major}$shared_ext'
6755  shlibpath_overrides_runpath=yes
6756  shlibpath_var=DYLD_LIBRARY_PATH
6757  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6758  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6759  if test "$GCC" = yes; then
6760    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"`
6761  else
6762    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6763  fi
6764  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6765  ;;
6766
6767dgux*)
6768  version_type=linux
6769  need_lib_prefix=no
6770  need_version=no
6771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6772  soname_spec='${libname}${release}${shared_ext}$major'
6773  shlibpath_var=LD_LIBRARY_PATH
6774  ;;
6775
6776freebsd1*)
6777  dynamic_linker=no
6778  ;;
6779
6780kfreebsd*-gnu)
6781  version_type=linux
6782  need_lib_prefix=no
6783  need_version=no
6784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6785  soname_spec='${libname}${release}${shared_ext}$major'
6786  shlibpath_var=LD_LIBRARY_PATH
6787  shlibpath_overrides_runpath=no
6788  hardcode_into_libs=yes
6789  dynamic_linker='GNU ld.so'
6790  ;;
6791
6792freebsd*)
6793  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6794  version_type=freebsd-$objformat
6795  case $version_type in
6796    freebsd-elf*)
6797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6798      need_version=no
6799      need_lib_prefix=no
6800      ;;
6801    freebsd-*)
6802      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6803      need_version=yes
6804      ;;
6805  esac
6806  shlibpath_var=LD_LIBRARY_PATH
6807  case $host_os in
6808  freebsd2*)
6809    shlibpath_overrides_runpath=yes
6810    ;;
6811  freebsd3.01* | freebsdelf3.01*)
6812    shlibpath_overrides_runpath=yes
6813    hardcode_into_libs=yes
6814    ;;
6815  *) # from 3.2 on
6816    shlibpath_overrides_runpath=no
6817    hardcode_into_libs=yes
6818    ;;
6819  esac
6820  ;;
6821
6822gnu*)
6823  version_type=linux
6824  need_lib_prefix=no
6825  need_version=no
6826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6827  soname_spec='${libname}${release}${shared_ext}$major'
6828  shlibpath_var=LD_LIBRARY_PATH
6829  hardcode_into_libs=yes
6830  ;;
6831
6832hpux9* | hpux10* | hpux11*)
6833  # Give a soname corresponding to the major version so that dld.sl refuses to
6834  # link against other versions.
6835  version_type=sunos
6836  need_lib_prefix=no
6837  need_version=no
6838  case "$host_cpu" in
6839  ia64*)
6840    shrext_cmds='.so'
6841    hardcode_into_libs=yes
6842    dynamic_linker="$host_os dld.so"
6843    shlibpath_var=LD_LIBRARY_PATH
6844    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6845    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6846    soname_spec='${libname}${release}${shared_ext}$major'
6847    if test "X$HPUX_IA64_MODE" = X32; then
6848      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6849    else
6850      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6851    fi
6852    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6853    ;;
6854   hppa*64*)
6855     shrext_cmds='.sl'
6856     hardcode_into_libs=yes
6857     dynamic_linker="$host_os dld.sl"
6858     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6859     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6861     soname_spec='${libname}${release}${shared_ext}$major'
6862     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6863     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6864     ;;
6865   *)
6866    shrext_cmds='.sl'
6867    dynamic_linker="$host_os dld.sl"
6868    shlibpath_var=SHLIB_PATH
6869    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6870    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6871    soname_spec='${libname}${release}${shared_ext}$major'
6872    ;;
6873  esac
6874  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6875  postinstall_cmds='chmod 555 $lib'
6876  ;;
6877
6878irix5* | irix6* | nonstopux*)
6879  case $host_os in
6880    nonstopux*) version_type=nonstopux ;;
6881    *)
6882	if test "$lt_cv_prog_gnu_ld" = yes; then
6883		version_type=linux
6884	else
6885		version_type=irix
6886	fi ;;
6887  esac
6888  need_lib_prefix=no
6889  need_version=no
6890  soname_spec='${libname}${release}${shared_ext}$major'
6891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6892  case $host_os in
6893  irix5* | nonstopux*)
6894    libsuff= shlibsuff=
6895    ;;
6896  *)
6897    case $LD in # libtool.m4 will add one of these switches to LD
6898    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6899      libsuff= shlibsuff= libmagic=32-bit;;
6900    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6901      libsuff=32 shlibsuff=N32 libmagic=N32;;
6902    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6903      libsuff=64 shlibsuff=64 libmagic=64-bit;;
6904    *) libsuff= shlibsuff= libmagic=never-match;;
6905    esac
6906    ;;
6907  esac
6908  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6909  shlibpath_overrides_runpath=no
6910  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6911  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6912  hardcode_into_libs=yes
6913  ;;
6914
6915# No shared lib support for Linux oldld, aout, or coff.
6916linux*oldld* | linux*aout* | linux*coff*)
6917  dynamic_linker=no
6918  ;;
6919
6920# This must be Linux ELF.
6921linux*)
6922  version_type=linux
6923  need_lib_prefix=no
6924  need_version=no
6925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926  soname_spec='${libname}${release}${shared_ext}$major'
6927  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6928  shlibpath_var=LD_LIBRARY_PATH
6929  shlibpath_overrides_runpath=no
6930  # This implies no fast_install, which is unacceptable.
6931  # Some rework will be needed to allow for fast_install
6932  # before this can be enabled.
6933  hardcode_into_libs=yes
6934
6935  # Append ld.so.conf contents to the search path
6936  if test -f /etc/ld.so.conf; then
6937    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6938    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6939  fi
6940
6941  # We used to test for /lib/ld.so.1 and disable shared libraries on
6942  # powerpc, because MkLinux only supported shared libraries with the
6943  # GNU dynamic linker.  Since this was broken with cross compilers,
6944  # most powerpc-linux boxes support dynamic linking these days and
6945  # people can always --disable-shared, the test was removed, and we
6946  # assume the GNU/Linux dynamic linker is in use.
6947  dynamic_linker='GNU/Linux ld.so'
6948  ;;
6949
6950knetbsd*-gnu)
6951  version_type=linux
6952  need_lib_prefix=no
6953  need_version=no
6954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6955  soname_spec='${libname}${release}${shared_ext}$major'
6956  shlibpath_var=LD_LIBRARY_PATH
6957  shlibpath_overrides_runpath=no
6958  hardcode_into_libs=yes
6959  dynamic_linker='GNU ld.so'
6960  ;;
6961
6962netbsd*)
6963  version_type=sunos
6964  need_lib_prefix=no
6965  need_version=no
6966  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6967    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6968    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6969    dynamic_linker='NetBSD (a.out) ld.so'
6970  else
6971    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6972    soname_spec='${libname}${release}${shared_ext}$major'
6973    dynamic_linker='NetBSD ld.elf_so'
6974  fi
6975  shlibpath_var=LD_LIBRARY_PATH
6976  shlibpath_overrides_runpath=yes
6977  hardcode_into_libs=yes
6978  ;;
6979
6980newsos6)
6981  version_type=linux
6982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983  shlibpath_var=LD_LIBRARY_PATH
6984  shlibpath_overrides_runpath=yes
6985  ;;
6986
6987nto-qnx*)
6988  version_type=linux
6989  need_lib_prefix=no
6990  need_version=no
6991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992  soname_spec='${libname}${release}${shared_ext}$major'
6993  shlibpath_var=LD_LIBRARY_PATH
6994  shlibpath_overrides_runpath=yes
6995  ;;
6996
6997openbsd*)
6998  version_type=sunos
6999  need_lib_prefix=no
7000  need_version=no
7001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7002  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7003  shlibpath_var=LD_LIBRARY_PATH
7004  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7005    case $host_os in
7006      openbsd2.[89] | openbsd2.[89].*)
7007	shlibpath_overrides_runpath=no
7008	;;
7009      *)
7010	shlibpath_overrides_runpath=yes
7011	;;
7012      esac
7013  else
7014    shlibpath_overrides_runpath=yes
7015  fi
7016  ;;
7017
7018os2*)
7019  libname_spec='$name'
7020  shrext_cmds=".dll"
7021  need_lib_prefix=no
7022  library_names_spec='$libname${shared_ext} $libname.a'
7023  dynamic_linker='OS/2 ld.exe'
7024  shlibpath_var=LIBPATH
7025  ;;
7026
7027osf3* | osf4* | osf5*)
7028  version_type=osf
7029  need_lib_prefix=no
7030  need_version=no
7031  soname_spec='${libname}${release}${shared_ext}$major'
7032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7033  shlibpath_var=LD_LIBRARY_PATH
7034  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7035  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7036  ;;
7037
7038sco3.2v5*)
7039  version_type=osf
7040  soname_spec='${libname}${release}${shared_ext}$major'
7041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042  shlibpath_var=LD_LIBRARY_PATH
7043  ;;
7044
7045solaris*)
7046  version_type=linux
7047  need_lib_prefix=no
7048  need_version=no
7049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7050  soname_spec='${libname}${release}${shared_ext}$major'
7051  shlibpath_var=LD_LIBRARY_PATH
7052  shlibpath_overrides_runpath=yes
7053  hardcode_into_libs=yes
7054  # ldd complains unless libraries are executable
7055  postinstall_cmds='chmod +x $lib'
7056  ;;
7057
7058sunos4*)
7059  version_type=sunos
7060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7061  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7062  shlibpath_var=LD_LIBRARY_PATH
7063  shlibpath_overrides_runpath=yes
7064  if test "$with_gnu_ld" = yes; then
7065    need_lib_prefix=no
7066  fi
7067  need_version=yes
7068  ;;
7069
7070sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7071  version_type=linux
7072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7073  soname_spec='${libname}${release}${shared_ext}$major'
7074  shlibpath_var=LD_LIBRARY_PATH
7075  case $host_vendor in
7076    sni)
7077      shlibpath_overrides_runpath=no
7078      need_lib_prefix=no
7079      export_dynamic_flag_spec='${wl}-Blargedynsym'
7080      runpath_var=LD_RUN_PATH
7081      ;;
7082    siemens)
7083      need_lib_prefix=no
7084      ;;
7085    motorola)
7086      need_lib_prefix=no
7087      need_version=no
7088      shlibpath_overrides_runpath=no
7089      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7090      ;;
7091  esac
7092  ;;
7093
7094sysv4*MP*)
7095  if test -d /usr/nec ;then
7096    version_type=linux
7097    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7098    soname_spec='$libname${shared_ext}.$major'
7099    shlibpath_var=LD_LIBRARY_PATH
7100  fi
7101  ;;
7102
7103uts4*)
7104  version_type=linux
7105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106  soname_spec='${libname}${release}${shared_ext}$major'
7107  shlibpath_var=LD_LIBRARY_PATH
7108  ;;
7109
7110*)
7111  dynamic_linker=no
7112  ;;
7113esac
7114echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7115echo "${ECHO_T}$dynamic_linker" >&6
7116test "$dynamic_linker" = no && can_build_shared=no
7117
7118
7119echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7120echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7121if test "${libltdl_cv_shlibext+set}" = set; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124
7125module=yes
7126eval libltdl_cv_shlibext=$shrext_cmds
7127
7128fi
7129echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7130echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7131if test -n "$libltdl_cv_shlibext"; then
7132
7133cat >>confdefs.h <<_ACEOF
7134#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7135_ACEOF
7136
7137fi
7138
7139
7140echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7141echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7142if test "${libltdl_cv_shlibpath_var+set}" = set; then
7143  echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145  libltdl_cv_shlibpath_var="$shlibpath_var"
7146fi
7147echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7148echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7149if test -n "$libltdl_cv_shlibpath_var"; then
7150
7151cat >>confdefs.h <<_ACEOF
7152#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7153_ACEOF
7154
7155fi
7156
7157
7158echo "$as_me:$LINENO: checking for the default library search path" >&5
7159echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7160if test "${libltdl_cv_sys_search_path+set}" = set; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7164fi
7165echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7166echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7167if test -n "$libltdl_cv_sys_search_path"; then
7168  sys_search_path=
7169  for dir in $libltdl_cv_sys_search_path; do
7170    if test -z "$sys_search_path"; then
7171      sys_search_path="$dir"
7172    else
7173      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7174    fi
7175  done
7176
7177cat >>confdefs.h <<_ACEOF
7178#define LTDL_SYSSEARCHPATH "$sys_search_path"
7179_ACEOF
7180
7181fi
7182
7183echo "$as_me:$LINENO: checking for objdir" >&5
7184echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7185if test "${libltdl_cv_objdir+set}" = set; then
7186  echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188  libltdl_cv_objdir="$objdir"
7189  if test -n "$objdir"; then
7190    :
7191  else
7192    rm -f .libs 2>/dev/null
7193    mkdir .libs 2>/dev/null
7194    if test -d .libs; then
7195      libltdl_cv_objdir=.libs
7196    else
7197      # MS-DOS does not allow filenames that begin with a dot.
7198      libltdl_cv_objdir=_libs
7199    fi
7200  rmdir .libs 2>/dev/null
7201  fi
7202
7203fi
7204echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7205echo "${ECHO_T}$libltdl_cv_objdir" >&6
7206
7207cat >>confdefs.h <<_ACEOF
7208#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7209_ACEOF
7210
7211
7212echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7213echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7214if test "${lt_cv_path_NM+set}" = set; then
7215  echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217  if test -n "$NM"; then
7218  # Let the user override the test.
7219  lt_cv_path_NM="$NM"
7220else
7221  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7223    IFS="$lt_save_ifs"
7224    test -z "$ac_dir" && ac_dir=.
7225    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7226    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7227      # Check to see if the nm accepts a BSD-compat flag.
7228      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7229      #   nm: unknown option "B" ignored
7230      # Tru64's nm complains that /dev/null is an invalid object file
7231      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7232      */dev/null* | *'Invalid file or object type'*)
7233	lt_cv_path_NM="$tmp_nm -B"
7234	break
7235        ;;
7236      *)
7237	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7238	*/dev/null*)
7239	  lt_cv_path_NM="$tmp_nm -p"
7240	  break
7241	  ;;
7242	*)
7243	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7244	  continue # so that we can try to find one that supports BSD flags
7245	  ;;
7246	esac
7247      esac
7248    fi
7249  done
7250  IFS="$lt_save_ifs"
7251  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7252fi
7253fi
7254echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7255echo "${ECHO_T}$lt_cv_path_NM" >&6
7256NM="$lt_cv_path_NM"
7257
7258
7259
7260
7261
7262# Check for command to grab the raw symbol name followed by C symbol from nm.
7263echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7264echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7265if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7266  echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268
7269# These are sane defaults that work on at least a few old systems.
7270# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7271
7272# Character class describing NM global symbol codes.
7273symcode='[BCDEGRST]'
7274
7275# Regexp to match symbols that can be accessed directly from C.
7276sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7277
7278# Transform the above into a raw symbol and a C symbol.
7279symxfrm='\1 \2\3 \3'
7280
7281# Transform an extracted symbol line into a proper C declaration
7282lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7283
7284# Transform an extracted symbol line into symbol name and symbol address
7285lt_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'"
7286
7287# Define system-specific variables.
7288case $host_os in
7289aix*)
7290  symcode='[BCDT]'
7291  ;;
7292cygwin* | mingw* | pw32*)
7293  symcode='[ABCDGISTW]'
7294  ;;
7295hpux*) # Its linker distinguishes data from code symbols
7296  if test "$host_cpu" = ia64; then
7297    symcode='[ABCDEGRST]'
7298  fi
7299  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300  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'"
7301  ;;
7302linux*)
7303  if test "$host_cpu" = ia64; then
7304    symcode='[ABCDGIRSTW]'
7305    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306    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'"
7307  fi
7308  ;;
7309irix* | nonstopux*)
7310  symcode='[BCDEGRST]'
7311  ;;
7312osf*)
7313  symcode='[BCDEGQRST]'
7314  ;;
7315solaris* | sysv5*)
7316  symcode='[BDRT]'
7317  ;;
7318sysv4)
7319  symcode='[DFNSTU]'
7320  ;;
7321esac
7322
7323# Handle CRLF in mingw tool chain
7324opt_cr=
7325case $build_os in
7326mingw*)
7327  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7328  ;;
7329esac
7330
7331# If we're using GNU nm, then use its standard symbol codes.
7332case `$NM -V 2>&1` in
7333*GNU* | *'with BFD'*)
7334  symcode='[ABCDGIRSTW]' ;;
7335esac
7336
7337# Try without a prefix undercore, then with it.
7338for ac_symprfx in "" "_"; do
7339
7340  # Write the raw and C identifiers.
7341  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7342
7343  # Check to see that the pipe works correctly.
7344  pipe_works=no
7345
7346  rm -f conftest*
7347  cat > conftest.$ac_ext <<EOF
7348#ifdef __cplusplus
7349extern "C" {
7350#endif
7351char nm_test_var;
7352void nm_test_func(){}
7353#ifdef __cplusplus
7354}
7355#endif
7356int main(){nm_test_var='a';nm_test_func();return(0);}
7357EOF
7358
7359  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7360  (eval $ac_compile) 2>&5
7361  ac_status=$?
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); }; then
7364    # Now try to grab the symbols.
7365    nlist=conftest.nm
7366    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7367  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } && test -s "$nlist"; then
7371      # Try sorting and uniquifying the output.
7372      if sort "$nlist" | uniq > "$nlist"T; then
7373	mv -f "$nlist"T "$nlist"
7374      else
7375	rm -f "$nlist"T
7376      fi
7377
7378      # Make sure that we snagged all the symbols we need.
7379      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7380	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7381	  cat <<EOF > conftest.$ac_ext
7382#ifdef __cplusplus
7383extern "C" {
7384#endif
7385
7386EOF
7387	  # Now generate the symbol file.
7388	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7389
7390	  cat <<EOF >> conftest.$ac_ext
7391#if defined (__STDC__) && __STDC__
7392# define lt_ptr_t void *
7393#else
7394# define lt_ptr_t char *
7395# define const
7396#endif
7397
7398/* The mapping between symbol names and symbols. */
7399const struct {
7400  const char *name;
7401  lt_ptr_t address;
7402}
7403lt_preloaded_symbols[] =
7404{
7405EOF
7406	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7407	  cat <<\EOF >> conftest.$ac_ext
7408  {0, (lt_ptr_t) 0}
7409};
7410
7411#ifdef __cplusplus
7412}
7413#endif
7414EOF
7415	  # Now try linking the two files.
7416	  mv conftest.$ac_objext conftstm.$ac_objext
7417	  lt_save_LIBS="$LIBS"
7418	  lt_save_CFLAGS="$CFLAGS"
7419	  LIBS="conftstm.$ac_objext"
7420	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7421	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7422  (eval $ac_link) 2>&5
7423  ac_status=$?
7424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7426	    pipe_works=yes
7427	  fi
7428	  LIBS="$lt_save_LIBS"
7429	  CFLAGS="$lt_save_CFLAGS"
7430	else
7431	  echo "cannot find nm_test_func in $nlist" >&5
7432	fi
7433      else
7434	echo "cannot find nm_test_var in $nlist" >&5
7435      fi
7436    else
7437      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7438    fi
7439  else
7440    echo "$progname: failed program was:" >&5
7441    cat conftest.$ac_ext >&5
7442  fi
7443  rm -f conftest* conftst*
7444
7445  # Do not use the global_symbol_pipe unless it works.
7446  if test "$pipe_works" = yes; then
7447    break
7448  else
7449    lt_cv_sys_global_symbol_pipe=
7450  fi
7451done
7452
7453fi
7454
7455if test -z "$lt_cv_sys_global_symbol_pipe"; then
7456  lt_cv_sys_global_symbol_to_cdecl=
7457fi
7458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7459  echo "$as_me:$LINENO: result: failed" >&5
7460echo "${ECHO_T}failed" >&6
7461else
7462  echo "$as_me:$LINENO: result: ok" >&5
7463echo "${ECHO_T}ok" >&6
7464fi
7465
7466
7467echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7468echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7469if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7473    libltdl_cv_preloaded_symbols=yes
7474  else
7475    libltdl_cv_preloaded_symbols=no
7476  fi
7477
7478fi
7479echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7480echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7481if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7482
7483cat >>confdefs.h <<\_ACEOF
7484#define HAVE_PRELOADED_SYMBOLS 1
7485_ACEOF
7486
7487fi
7488
7489LIBADD_DL=
7490
7491ac_ext=c
7492ac_cpp='$CPP $CPPFLAGS'
7493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497
7498echo "$as_me:$LINENO: checking for shl_load" >&5
7499echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7500if test "${ac_cv_func_shl_load+set}" = set; then
7501  echo $ECHO_N "(cached) $ECHO_C" >&6
7502else
7503  cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h.  */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h.  */
7509/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7511#define shl_load innocuous_shl_load
7512
7513/* System header to define __stub macros and hopefully few prototypes,
7514    which can conflict with char shl_load (); below.
7515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7516    <limits.h> exists even on freestanding compilers.  */
7517
7518#ifdef __STDC__
7519# include <limits.h>
7520#else
7521# include <assert.h>
7522#endif
7523
7524#undef shl_load
7525
7526/* Override any gcc2 internal prototype to avoid an error.  */
7527#ifdef __cplusplus
7528extern "C"
7529{
7530#endif
7531/* We use char because int might match the return type of a gcc2
7532   builtin and then its argument prototype would still apply.  */
7533char shl_load ();
7534/* The GNU C library defines this for functions which it implements
7535    to always fail with ENOSYS.  Some functions are actually named
7536    something starting with __ and the normal name is an alias.  */
7537#if defined (__stub_shl_load) || defined (__stub___shl_load)
7538choke me
7539#else
7540char (*f) () = shl_load;
7541#endif
7542#ifdef __cplusplus
7543}
7544#endif
7545
7546int
7547main ()
7548{
7549return f != shl_load;
7550  ;
7551  return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext conftest$ac_exeext
7555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556  (eval $ac_link) 2>conftest.er1
7557  ac_status=$?
7558  grep -v '^ *+' conftest.er1 >conftest.err
7559  rm -f conftest.er1
7560  cat conftest.err >&5
7561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); } &&
7563	 { ac_try='test -z "$ac_c_werror_flag"
7564			 || test ! -s conftest.err'
7565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566  (eval $ac_try) 2>&5
7567  ac_status=$?
7568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569  (exit $ac_status); }; } &&
7570	 { ac_try='test -s conftest$ac_exeext'
7571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572  (eval $ac_try) 2>&5
7573  ac_status=$?
7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575  (exit $ac_status); }; }; then
7576  ac_cv_func_shl_load=yes
7577else
7578  echo "$as_me: failed program was:" >&5
7579sed 's/^/| /' conftest.$ac_ext >&5
7580
7581ac_cv_func_shl_load=no
7582fi
7583rm -f conftest.err conftest.$ac_objext \
7584      conftest$ac_exeext conftest.$ac_ext
7585fi
7586echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7587echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7588if test $ac_cv_func_shl_load = yes; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_SHL_LOAD 1
7592_ACEOF
7593
7594else
7595  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7596echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7597if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7598  echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600  ac_check_lib_save_LIBS=$LIBS
7601LIBS="-ldld  $LIBS"
7602cat >conftest.$ac_ext <<_ACEOF
7603/* confdefs.h.  */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h.  */
7608
7609/* Override any gcc2 internal prototype to avoid an error.  */
7610#ifdef __cplusplus
7611extern "C"
7612#endif
7613/* We use char because int might match the return type of a gcc2
7614   builtin and then its argument prototype would still apply.  */
7615char shl_load ();
7616int
7617main ()
7618{
7619shl_load ();
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext conftest$ac_exeext
7625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626  (eval $ac_link) 2>conftest.er1
7627  ac_status=$?
7628  grep -v '^ *+' conftest.er1 >conftest.err
7629  rm -f conftest.er1
7630  cat conftest.err >&5
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); } &&
7633	 { ac_try='test -z "$ac_c_werror_flag"
7634			 || test ! -s conftest.err'
7635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636  (eval $ac_try) 2>&5
7637  ac_status=$?
7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); }; } &&
7640	 { ac_try='test -s conftest$ac_exeext'
7641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642  (eval $ac_try) 2>&5
7643  ac_status=$?
7644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645  (exit $ac_status); }; }; then
7646  ac_cv_lib_dld_shl_load=yes
7647else
7648  echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651ac_cv_lib_dld_shl_load=no
7652fi
7653rm -f conftest.err conftest.$ac_objext \
7654      conftest$ac_exeext conftest.$ac_ext
7655LIBS=$ac_check_lib_save_LIBS
7656fi
7657echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7658echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7659if test $ac_cv_lib_dld_shl_load = yes; then
7660
7661cat >>confdefs.h <<\_ACEOF
7662#define HAVE_SHL_LOAD 1
7663_ACEOF
7664
7665	LIBADD_DL="$LIBADD_DL -ldld"
7666else
7667  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7668echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7669if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672  ac_check_lib_save_LIBS=$LIBS
7673LIBS="-ldl  $LIBS"
7674cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h.  */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h.  */
7680
7681/* Override any gcc2 internal prototype to avoid an error.  */
7682#ifdef __cplusplus
7683extern "C"
7684#endif
7685/* We use char because int might match the return type of a gcc2
7686   builtin and then its argument prototype would still apply.  */
7687char dlopen ();
7688int
7689main ()
7690{
7691dlopen ();
7692  ;
7693  return 0;
7694}
7695_ACEOF
7696rm -f conftest.$ac_objext conftest$ac_exeext
7697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7698  (eval $ac_link) 2>conftest.er1
7699  ac_status=$?
7700  grep -v '^ *+' conftest.er1 >conftest.err
7701  rm -f conftest.er1
7702  cat conftest.err >&5
7703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704  (exit $ac_status); } &&
7705	 { ac_try='test -z "$ac_c_werror_flag"
7706			 || test ! -s conftest.err'
7707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708  (eval $ac_try) 2>&5
7709  ac_status=$?
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); }; } &&
7712	 { ac_try='test -s conftest$ac_exeext'
7713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714  (eval $ac_try) 2>&5
7715  ac_status=$?
7716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717  (exit $ac_status); }; }; then
7718  ac_cv_lib_dl_dlopen=yes
7719else
7720  echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723ac_cv_lib_dl_dlopen=no
7724fi
7725rm -f conftest.err conftest.$ac_objext \
7726      conftest$ac_exeext conftest.$ac_ext
7727LIBS=$ac_check_lib_save_LIBS
7728fi
7729echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7730echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7731if test $ac_cv_lib_dl_dlopen = yes; then
7732
7733cat >>confdefs.h <<\_ACEOF
7734#define HAVE_LIBDL 1
7735_ACEOF
7736
7737	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7738else
7739  cat >conftest.$ac_ext <<_ACEOF
7740/* confdefs.h.  */
7741_ACEOF
7742cat confdefs.h >>conftest.$ac_ext
7743cat >>conftest.$ac_ext <<_ACEOF
7744/* end confdefs.h.  */
7745#if HAVE_DLFCN_H
7746#  include <dlfcn.h>
7747#endif
7748
7749int
7750main ()
7751{
7752dlopen(0, 0);
7753  ;
7754  return 0;
7755}
7756_ACEOF
7757rm -f conftest.$ac_objext conftest$ac_exeext
7758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759  (eval $ac_link) 2>conftest.er1
7760  ac_status=$?
7761  grep -v '^ *+' conftest.er1 >conftest.err
7762  rm -f conftest.er1
7763  cat conftest.err >&5
7764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765  (exit $ac_status); } &&
7766	 { ac_try='test -z "$ac_c_werror_flag"
7767			 || test ! -s conftest.err'
7768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769  (eval $ac_try) 2>&5
7770  ac_status=$?
7771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772  (exit $ac_status); }; } &&
7773	 { ac_try='test -s conftest$ac_exeext'
7774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775  (eval $ac_try) 2>&5
7776  ac_status=$?
7777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778  (exit $ac_status); }; }; then
7779
7780cat >>confdefs.h <<\_ACEOF
7781#define HAVE_LIBDL 1
7782_ACEOF
7783 libltdl_cv_func_dlopen="yes"
7784else
7785  echo "$as_me: failed program was:" >&5
7786sed 's/^/| /' conftest.$ac_ext >&5
7787
7788echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7789echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7790if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7791  echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793  ac_check_lib_save_LIBS=$LIBS
7794LIBS="-lsvld  $LIBS"
7795cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h.  */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h.  */
7801
7802/* Override any gcc2 internal prototype to avoid an error.  */
7803#ifdef __cplusplus
7804extern "C"
7805#endif
7806/* We use char because int might match the return type of a gcc2
7807   builtin and then its argument prototype would still apply.  */
7808char dlopen ();
7809int
7810main ()
7811{
7812dlopen ();
7813  ;
7814  return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext conftest$ac_exeext
7818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819  (eval $ac_link) 2>conftest.er1
7820  ac_status=$?
7821  grep -v '^ *+' conftest.er1 >conftest.err
7822  rm -f conftest.er1
7823  cat conftest.err >&5
7824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825  (exit $ac_status); } &&
7826	 { ac_try='test -z "$ac_c_werror_flag"
7827			 || test ! -s conftest.err'
7828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829  (eval $ac_try) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }; } &&
7833	 { ac_try='test -s conftest$ac_exeext'
7834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835  (eval $ac_try) 2>&5
7836  ac_status=$?
7837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838  (exit $ac_status); }; }; then
7839  ac_cv_lib_svld_dlopen=yes
7840else
7841  echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844ac_cv_lib_svld_dlopen=no
7845fi
7846rm -f conftest.err conftest.$ac_objext \
7847      conftest$ac_exeext conftest.$ac_ext
7848LIBS=$ac_check_lib_save_LIBS
7849fi
7850echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7851echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7852if test $ac_cv_lib_svld_dlopen = yes; then
7853
7854cat >>confdefs.h <<\_ACEOF
7855#define HAVE_LIBDL 1
7856_ACEOF
7857
7858	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7859else
7860  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7861echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7862if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7863  echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865  ac_check_lib_save_LIBS=$LIBS
7866LIBS="-ldld  $LIBS"
7867cat >conftest.$ac_ext <<_ACEOF
7868/* confdefs.h.  */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h.  */
7873
7874/* Override any gcc2 internal prototype to avoid an error.  */
7875#ifdef __cplusplus
7876extern "C"
7877#endif
7878/* We use char because int might match the return type of a gcc2
7879   builtin and then its argument prototype would still apply.  */
7880char dld_link ();
7881int
7882main ()
7883{
7884dld_link ();
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889rm -f conftest.$ac_objext conftest$ac_exeext
7890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891  (eval $ac_link) 2>conftest.er1
7892  ac_status=$?
7893  grep -v '^ *+' conftest.er1 >conftest.err
7894  rm -f conftest.er1
7895  cat conftest.err >&5
7896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897  (exit $ac_status); } &&
7898	 { ac_try='test -z "$ac_c_werror_flag"
7899			 || test ! -s conftest.err'
7900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901  (eval $ac_try) 2>&5
7902  ac_status=$?
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); }; } &&
7905	 { ac_try='test -s conftest$ac_exeext'
7906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907  (eval $ac_try) 2>&5
7908  ac_status=$?
7909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910  (exit $ac_status); }; }; then
7911  ac_cv_lib_dld_dld_link=yes
7912else
7913  echo "$as_me: failed program was:" >&5
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
7916ac_cv_lib_dld_dld_link=no
7917fi
7918rm -f conftest.err conftest.$ac_objext \
7919      conftest$ac_exeext conftest.$ac_ext
7920LIBS=$ac_check_lib_save_LIBS
7921fi
7922echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7923echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7924if test $ac_cv_lib_dld_dld_link = yes; then
7925
7926cat >>confdefs.h <<\_ACEOF
7927#define HAVE_DLD 1
7928_ACEOF
7929
7930	 	LIBADD_DL="$LIBADD_DL -ldld"
7931else
7932  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7933echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7934if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7935  echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937  cat >conftest.$ac_ext <<_ACEOF
7938/* confdefs.h.  */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
7942/* end confdefs.h.  */
7943/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7945#define _dyld_func_lookup innocuous__dyld_func_lookup
7946
7947/* System header to define __stub macros and hopefully few prototypes,
7948    which can conflict with char _dyld_func_lookup (); below.
7949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950    <limits.h> exists even on freestanding compilers.  */
7951
7952#ifdef __STDC__
7953# include <limits.h>
7954#else
7955# include <assert.h>
7956#endif
7957
7958#undef _dyld_func_lookup
7959
7960/* Override any gcc2 internal prototype to avoid an error.  */
7961#ifdef __cplusplus
7962extern "C"
7963{
7964#endif
7965/* We use char because int might match the return type of a gcc2
7966   builtin and then its argument prototype would still apply.  */
7967char _dyld_func_lookup ();
7968/* The GNU C library defines this for functions which it implements
7969    to always fail with ENOSYS.  Some functions are actually named
7970    something starting with __ and the normal name is an alias.  */
7971#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7972choke me
7973#else
7974char (*f) () = _dyld_func_lookup;
7975#endif
7976#ifdef __cplusplus
7977}
7978#endif
7979
7980int
7981main ()
7982{
7983return f != _dyld_func_lookup;
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext conftest$ac_exeext
7989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990  (eval $ac_link) 2>conftest.er1
7991  ac_status=$?
7992  grep -v '^ *+' conftest.er1 >conftest.err
7993  rm -f conftest.er1
7994  cat conftest.err >&5
7995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996  (exit $ac_status); } &&
7997	 { ac_try='test -z "$ac_c_werror_flag"
7998			 || test ! -s conftest.err'
7999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000  (eval $ac_try) 2>&5
8001  ac_status=$?
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); }; } &&
8004	 { ac_try='test -s conftest$ac_exeext'
8005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006  (eval $ac_try) 2>&5
8007  ac_status=$?
8008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009  (exit $ac_status); }; }; then
8010  ac_cv_func__dyld_func_lookup=yes
8011else
8012  echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015ac_cv_func__dyld_func_lookup=no
8016fi
8017rm -f conftest.err conftest.$ac_objext \
8018      conftest$ac_exeext conftest.$ac_ext
8019fi
8020echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8021echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8022if test $ac_cv_func__dyld_func_lookup = yes; then
8023
8024cat >>confdefs.h <<\_ACEOF
8025#define HAVE_DYLD 1
8026_ACEOF
8027
8028fi
8029
8030
8031fi
8032
8033
8034fi
8035
8036
8037fi
8038rm -f conftest.err conftest.$ac_objext \
8039      conftest$ac_exeext conftest.$ac_ext
8040
8041fi
8042
8043
8044fi
8045
8046
8047fi
8048
8049
8050if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8051then
8052  lt_save_LIBS="$LIBS"
8053  LIBS="$LIBS $LIBADD_DL"
8054
8055for ac_func in dlerror
8056do
8057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058echo "$as_me:$LINENO: checking for $ac_func" >&5
8059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8060if eval "test \"\${$as_ac_var+set}\" = set"; then
8061  echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063  cat >conftest.$ac_ext <<_ACEOF
8064/* confdefs.h.  */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h.  */
8069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8071#define $ac_func innocuous_$ac_func
8072
8073/* System header to define __stub macros and hopefully few prototypes,
8074    which can conflict with char $ac_func (); below.
8075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8076    <limits.h> exists even on freestanding compilers.  */
8077
8078#ifdef __STDC__
8079# include <limits.h>
8080#else
8081# include <assert.h>
8082#endif
8083
8084#undef $ac_func
8085
8086/* Override any gcc2 internal prototype to avoid an error.  */
8087#ifdef __cplusplus
8088extern "C"
8089{
8090#endif
8091/* We use char because int might match the return type of a gcc2
8092   builtin and then its argument prototype would still apply.  */
8093char $ac_func ();
8094/* The GNU C library defines this for functions which it implements
8095    to always fail with ENOSYS.  Some functions are actually named
8096    something starting with __ and the normal name is an alias.  */
8097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8098choke me
8099#else
8100char (*f) () = $ac_func;
8101#endif
8102#ifdef __cplusplus
8103}
8104#endif
8105
8106int
8107main ()
8108{
8109return f != $ac_func;
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116  (eval $ac_link) 2>conftest.er1
8117  ac_status=$?
8118  grep -v '^ *+' conftest.er1 >conftest.err
8119  rm -f conftest.er1
8120  cat conftest.err >&5
8121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122  (exit $ac_status); } &&
8123	 { ac_try='test -z "$ac_c_werror_flag"
8124			 || test ! -s conftest.err'
8125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126  (eval $ac_try) 2>&5
8127  ac_status=$?
8128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129  (exit $ac_status); }; } &&
8130	 { ac_try='test -s conftest$ac_exeext'
8131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132  (eval $ac_try) 2>&5
8133  ac_status=$?
8134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135  (exit $ac_status); }; }; then
8136  eval "$as_ac_var=yes"
8137else
8138  echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141eval "$as_ac_var=no"
8142fi
8143rm -f conftest.err conftest.$ac_objext \
8144      conftest$ac_exeext conftest.$ac_ext
8145fi
8146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8148if test `eval echo '${'$as_ac_var'}'` = yes; then
8149  cat >>confdefs.h <<_ACEOF
8150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8151_ACEOF
8152
8153fi
8154done
8155
8156  LIBS="$lt_save_LIBS"
8157fi
8158ac_ext=c
8159ac_cpp='$CPP $CPPFLAGS'
8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165
8166echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8167echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8168if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8169  echo $ECHO_N "(cached) $ECHO_C" >&6
8170else
8171  ac_cv_sys_symbol_underscore=no
8172  cat > conftest.$ac_ext <<EOF
8173void nm_test_func(){}
8174int main(){nm_test_func;return 0;}
8175EOF
8176  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177  (eval $ac_compile) 2>&5
8178  ac_status=$?
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); }; then
8181    # Now try to grab the symbols.
8182    ac_nlist=conftest.nm
8183    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8184  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8185  ac_status=$?
8186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); } && test -s "$ac_nlist"; then
8188      # See whether the symbols have a leading underscore.
8189      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8190        ac_cv_sys_symbol_underscore=yes
8191      else
8192        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8193	  :
8194        else
8195	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8196        fi
8197      fi
8198    else
8199      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8200    fi
8201  else
8202    echo "configure: failed program was:" >&5
8203    cat conftest.c >&5
8204  fi
8205  rm -rf conftest*
8206
8207fi
8208echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8209echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8210
8211
8212if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8213  if test x"$libltdl_cv_func_dlopen" = xyes ||
8214     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8215	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8216echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8217if test "${libltdl_cv_need_uscore+set}" = set; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220  libltdl_cv_need_uscore=unknown
8221          save_LIBS="$LIBS"
8222          LIBS="$LIBS $LIBADD_DL"
8223	  if test "$cross_compiling" = yes; then :
8224  libltdl_cv_need_uscore=cross
8225else
8226  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8227  lt_status=$lt_dlunknown
8228  cat > conftest.$ac_ext <<EOF
8229#line 8228 "configure"
8230#include "confdefs.h"
8231
8232#if HAVE_DLFCN_H
8233#include <dlfcn.h>
8234#endif
8235
8236#include <stdio.h>
8237
8238#ifdef RTLD_GLOBAL
8239#  define LT_DLGLOBAL		RTLD_GLOBAL
8240#else
8241#  ifdef DL_GLOBAL
8242#    define LT_DLGLOBAL		DL_GLOBAL
8243#  else
8244#    define LT_DLGLOBAL		0
8245#  endif
8246#endif
8247
8248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8249   find out it does not work in some platform. */
8250#ifndef LT_DLLAZY_OR_NOW
8251#  ifdef RTLD_LAZY
8252#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8253#  else
8254#    ifdef DL_LAZY
8255#      define LT_DLLAZY_OR_NOW		DL_LAZY
8256#    else
8257#      ifdef RTLD_NOW
8258#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8259#      else
8260#        ifdef DL_NOW
8261#          define LT_DLLAZY_OR_NOW	DL_NOW
8262#        else
8263#          define LT_DLLAZY_OR_NOW	0
8264#        endif
8265#      endif
8266#    endif
8267#  endif
8268#endif
8269
8270#ifdef __cplusplus
8271extern "C" void exit (int);
8272#endif
8273
8274void fnord() { int i=42;}
8275int main ()
8276{
8277  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8278  int status = $lt_dlunknown;
8279
8280  if (self)
8281    {
8282      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8283      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8284      /* dlclose (self); */
8285    }
8286
8287    exit (status);
8288}
8289EOF
8290  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291  (eval $ac_link) 2>&5
8292  ac_status=$?
8293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8295    (./conftest; exit; ) 2>/dev/null
8296    lt_status=$?
8297    case x$lt_status in
8298      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8299      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8300      x$lt_unknown|x*)  ;;
8301    esac
8302  else :
8303    # compilation failed
8304
8305  fi
8306fi
8307rm -fr conftest*
8308
8309	  LIBS="$save_LIBS"
8310
8311fi
8312echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8313echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8314  fi
8315fi
8316
8317if test x"$libltdl_cv_need_uscore" = xyes; then
8318
8319cat >>confdefs.h <<\_ACEOF
8320#define NEED_USCORE 1
8321_ACEOF
8322
8323fi
8324
8325
8326echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8327echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8328if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8329  echo $ECHO_N "(cached) $ECHO_C" >&6
8330else
8331  # PORTME does your system automatically load deplibs for dlopen?
8332  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8333  # For now, we just catch OSes we know something about -- in the
8334  # future, we'll try test this programmatically.
8335  libltdl_cv_sys_dlopen_deplibs=unknown
8336  case "$host_os" in
8337  aix3*|aix4.1.*|aix4.2.*)
8338    # Unknown whether this is true for these versions of AIX, but
8339    # we want this `case' here to explicitly catch those versions.
8340    libltdl_cv_sys_dlopen_deplibs=unknown
8341    ;;
8342  aix[45]*)
8343    libltdl_cv_sys_dlopen_deplibs=yes
8344    ;;
8345  darwin*)
8346    # Assuming the user has installed a libdl from somewhere, this is true
8347    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8348    libltdl_cv_sys_dlopen_deplibs=yes
8349    ;;
8350  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8351    # GNU and its variants, using gnu ld.so (Glibc)
8352    libltdl_cv_sys_dlopen_deplibs=yes
8353    ;;
8354  hpux10*|hpux11*)
8355    libltdl_cv_sys_dlopen_deplibs=yes
8356    ;;
8357  irix[12345]*|irix6.[01]*)
8358    # Catch all versions of IRIX before 6.2, and indicate that we don't
8359    # know how it worked for any of those versions.
8360    libltdl_cv_sys_dlopen_deplibs=unknown
8361    ;;
8362  irix*)
8363    # The case above catches anything before 6.2, and it's known that
8364    # at 6.2 and later dlopen does load deplibs.
8365    libltdl_cv_sys_dlopen_deplibs=yes
8366    ;;
8367  netbsd*)
8368    libltdl_cv_sys_dlopen_deplibs=yes
8369    ;;
8370  openbsd*)
8371    libltdl_cv_sys_dlopen_deplibs=yes
8372    ;;
8373  osf[1234]*)
8374    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8375    # it did *not* use an RPATH in a shared library to find objects the
8376    # library depends on, so we explictly say `no'.
8377    libltdl_cv_sys_dlopen_deplibs=no
8378    ;;
8379  osf5.0|osf5.0a|osf5.1)
8380    # dlopen *does* load deplibs and with the right loader patch applied
8381    # it even uses RPATH in a shared library to search for shared objects
8382    # that the library depends on, but there's no easy way to know if that
8383    # patch is installed.  Since this is the case, all we can really
8384    # say is unknown -- it depends on the patch being installed.  If
8385    # it is, this changes to `yes'.  Without it, it would be `no'.
8386    libltdl_cv_sys_dlopen_deplibs=unknown
8387    ;;
8388  osf*)
8389    # the two cases above should catch all versions of osf <= 5.1.  Read
8390    # the comments above for what we know about them.
8391    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8392    # is used to find them so we can finally say `yes'.
8393    libltdl_cv_sys_dlopen_deplibs=yes
8394    ;;
8395  solaris*)
8396    libltdl_cv_sys_dlopen_deplibs=yes
8397    ;;
8398  esac
8399
8400fi
8401echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8402echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8403if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8404
8405cat >>confdefs.h <<\_ACEOF
8406#define LTDL_DLOPEN_DEPLIBS 1
8407_ACEOF
8408
8409fi
8410
8411
8412for ac_header in argz.h
8413do
8414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416  echo "$as_me:$LINENO: checking for $ac_header" >&5
8417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419  echo $ECHO_N "(cached) $ECHO_C" >&6
8420fi
8421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8423else
8424  # Is the header compilable?
8425echo "$as_me:$LINENO: checking $ac_header usability" >&5
8426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8427cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h.  */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h.  */
8433$ac_includes_default
8434#include <$ac_header>
8435_ACEOF
8436rm -f conftest.$ac_objext
8437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438  (eval $ac_compile) 2>conftest.er1
8439  ac_status=$?
8440  grep -v '^ *+' conftest.er1 >conftest.err
8441  rm -f conftest.er1
8442  cat conftest.err >&5
8443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444  (exit $ac_status); } &&
8445	 { ac_try='test -z "$ac_c_werror_flag"
8446			 || test ! -s conftest.err'
8447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448  (eval $ac_try) 2>&5
8449  ac_status=$?
8450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451  (exit $ac_status); }; } &&
8452	 { ac_try='test -s conftest.$ac_objext'
8453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454  (eval $ac_try) 2>&5
8455  ac_status=$?
8456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); }; }; then
8458  ac_header_compiler=yes
8459else
8460  echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463ac_header_compiler=no
8464fi
8465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467echo "${ECHO_T}$ac_header_compiler" >&6
8468
8469# Is the header present?
8470echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h.  */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h.  */
8478#include <$ac_header>
8479_ACEOF
8480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482  ac_status=$?
8483  grep -v '^ *+' conftest.er1 >conftest.err
8484  rm -f conftest.er1
8485  cat conftest.err >&5
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); } >/dev/null; then
8488  if test -s conftest.err; then
8489    ac_cpp_err=$ac_c_preproc_warn_flag
8490    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491  else
8492    ac_cpp_err=
8493  fi
8494else
8495  ac_cpp_err=yes
8496fi
8497if test -z "$ac_cpp_err"; then
8498  ac_header_preproc=yes
8499else
8500  echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503  ac_header_preproc=no
8504fi
8505rm -f conftest.err conftest.$ac_ext
8506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507echo "${ECHO_T}$ac_header_preproc" >&6
8508
8509# So?  What about this header?
8510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8511  yes:no: )
8512    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8516    ac_header_preproc=yes
8517    ;;
8518  no:yes:* )
8519    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8521    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8522echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8523    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8525    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8526echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8527    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8531    (
8532      cat <<\_ASBOX
8533## ----------------------------------- ##
8534## Report this to llvmbugs@cs.uiuc.edu ##
8535## ----------------------------------- ##
8536_ASBOX
8537    ) |
8538      sed "s/^/$as_me: WARNING:     /" >&2
8539    ;;
8540esac
8541echo "$as_me:$LINENO: checking for $ac_header" >&5
8542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544  echo $ECHO_N "(cached) $ECHO_C" >&6
8545else
8546  eval "$as_ac_Header=\$ac_header_preproc"
8547fi
8548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8550
8551fi
8552if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553  cat >>confdefs.h <<_ACEOF
8554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555_ACEOF
8556
8557fi
8558
8559done
8560
8561
8562echo "$as_me:$LINENO: checking for error_t" >&5
8563echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8564if test "${ac_cv_type_error_t+set}" = set; then
8565  echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567  cat >conftest.$ac_ext <<_ACEOF
8568/* confdefs.h.  */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h.  */
8573#if HAVE_ARGZ_H
8574#  include <argz.h>
8575#endif
8576
8577int
8578main ()
8579{
8580if ((error_t *) 0)
8581  return 0;
8582if (sizeof (error_t))
8583  return 0;
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588rm -f conftest.$ac_objext
8589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590  (eval $ac_compile) 2>conftest.er1
8591  ac_status=$?
8592  grep -v '^ *+' conftest.er1 >conftest.err
8593  rm -f conftest.er1
8594  cat conftest.err >&5
8595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596  (exit $ac_status); } &&
8597	 { ac_try='test -z "$ac_c_werror_flag"
8598			 || test ! -s conftest.err'
8599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600  (eval $ac_try) 2>&5
8601  ac_status=$?
8602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603  (exit $ac_status); }; } &&
8604	 { ac_try='test -s conftest.$ac_objext'
8605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606  (eval $ac_try) 2>&5
8607  ac_status=$?
8608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609  (exit $ac_status); }; }; then
8610  ac_cv_type_error_t=yes
8611else
8612  echo "$as_me: failed program was:" >&5
8613sed 's/^/| /' conftest.$ac_ext >&5
8614
8615ac_cv_type_error_t=no
8616fi
8617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8618fi
8619echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8620echo "${ECHO_T}$ac_cv_type_error_t" >&6
8621if test $ac_cv_type_error_t = yes; then
8622
8623cat >>confdefs.h <<_ACEOF
8624#define HAVE_ERROR_T 1
8625_ACEOF
8626
8627
8628else
8629
8630cat >>confdefs.h <<\_ACEOF
8631#define error_t int
8632_ACEOF
8633
8634fi
8635
8636
8637
8638
8639
8640
8641
8642for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8643do
8644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8645echo "$as_me:$LINENO: checking for $ac_func" >&5
8646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8647if eval "test \"\${$as_ac_var+set}\" = set"; then
8648  echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650  cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h.  */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h.  */
8656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8657   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8658#define $ac_func innocuous_$ac_func
8659
8660/* System header to define __stub macros and hopefully few prototypes,
8661    which can conflict with char $ac_func (); below.
8662    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8663    <limits.h> exists even on freestanding compilers.  */
8664
8665#ifdef __STDC__
8666# include <limits.h>
8667#else
8668# include <assert.h>
8669#endif
8670
8671#undef $ac_func
8672
8673/* Override any gcc2 internal prototype to avoid an error.  */
8674#ifdef __cplusplus
8675extern "C"
8676{
8677#endif
8678/* We use char because int might match the return type of a gcc2
8679   builtin and then its argument prototype would still apply.  */
8680char $ac_func ();
8681/* The GNU C library defines this for functions which it implements
8682    to always fail with ENOSYS.  Some functions are actually named
8683    something starting with __ and the normal name is an alias.  */
8684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8685choke me
8686#else
8687char (*f) () = $ac_func;
8688#endif
8689#ifdef __cplusplus
8690}
8691#endif
8692
8693int
8694main ()
8695{
8696return f != $ac_func;
8697  ;
8698  return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703  (eval $ac_link) 2>conftest.er1
8704  ac_status=$?
8705  grep -v '^ *+' conftest.er1 >conftest.err
8706  rm -f conftest.er1
8707  cat conftest.err >&5
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); } &&
8710	 { ac_try='test -z "$ac_c_werror_flag"
8711			 || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest$ac_exeext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723  eval "$as_ac_var=yes"
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728eval "$as_ac_var=no"
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731      conftest$ac_exeext conftest.$ac_ext
8732fi
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8735if test `eval echo '${'$as_ac_var'}'` = yes; then
8736  cat >>confdefs.h <<_ACEOF
8737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738_ACEOF
8739
8740fi
8741done
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8771		  stdio.h unistd.h
8772do
8773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774if eval "test \"\${$as_ac_Header+set}\" = set"; then
8775  echo "$as_me:$LINENO: checking for $ac_header" >&5
8776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8777if eval "test \"\${$as_ac_Header+set}\" = set"; then
8778  echo $ECHO_N "(cached) $ECHO_C" >&6
8779fi
8780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8782else
8783  # Is the header compilable?
8784echo "$as_me:$LINENO: checking $ac_header usability" >&5
8785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8786cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h.  */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h.  */
8792$ac_includes_default
8793#include <$ac_header>
8794_ACEOF
8795rm -f conftest.$ac_objext
8796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8797  (eval $ac_compile) 2>conftest.er1
8798  ac_status=$?
8799  grep -v '^ *+' conftest.er1 >conftest.err
8800  rm -f conftest.er1
8801  cat conftest.err >&5
8802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803  (exit $ac_status); } &&
8804	 { ac_try='test -z "$ac_c_werror_flag"
8805			 || test ! -s conftest.err'
8806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807  (eval $ac_try) 2>&5
8808  ac_status=$?
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); }; } &&
8811	 { ac_try='test -s conftest.$ac_objext'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; }; then
8817  ac_header_compiler=yes
8818else
8819  echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822ac_header_compiler=no
8823fi
8824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8826echo "${ECHO_T}$ac_header_compiler" >&6
8827
8828# Is the header present?
8829echo "$as_me:$LINENO: checking $ac_header presence" >&5
8830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8831cat >conftest.$ac_ext <<_ACEOF
8832/* confdefs.h.  */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
8836/* end confdefs.h.  */
8837#include <$ac_header>
8838_ACEOF
8839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8841  ac_status=$?
8842  grep -v '^ *+' conftest.er1 >conftest.err
8843  rm -f conftest.er1
8844  cat conftest.err >&5
8845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846  (exit $ac_status); } >/dev/null; then
8847  if test -s conftest.err; then
8848    ac_cpp_err=$ac_c_preproc_warn_flag
8849    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8850  else
8851    ac_cpp_err=
8852  fi
8853else
8854  ac_cpp_err=yes
8855fi
8856if test -z "$ac_cpp_err"; then
8857  ac_header_preproc=yes
8858else
8859  echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
8862  ac_header_preproc=no
8863fi
8864rm -f conftest.err conftest.$ac_ext
8865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8866echo "${ECHO_T}$ac_header_preproc" >&6
8867
8868# So?  What about this header?
8869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8870  yes:no: )
8871    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8875    ac_header_preproc=yes
8876    ;;
8877  no:yes:* )
8878    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8881echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8882    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8884    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8885echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8886    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8888    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8890    (
8891      cat <<\_ASBOX
8892## ----------------------------------- ##
8893## Report this to llvmbugs@cs.uiuc.edu ##
8894## ----------------------------------- ##
8895_ASBOX
8896    ) |
8897      sed "s/^/$as_me: WARNING:     /" >&2
8898    ;;
8899esac
8900echo "$as_me:$LINENO: checking for $ac_header" >&5
8901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905  eval "$as_ac_Header=\$ac_header_preproc"
8906fi
8907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8909
8910fi
8911if test `eval echo '${'$as_ac_Header'}'` = yes; then
8912  cat >>confdefs.h <<_ACEOF
8913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8914_ACEOF
8915
8916fi
8917
8918done
8919
8920
8921
8922
8923
8924for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8925do
8926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8927if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928  echo "$as_me:$LINENO: checking for $ac_header" >&5
8929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931  echo $ECHO_N "(cached) $ECHO_C" >&6
8932fi
8933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8935else
8936  # Is the header compilable?
8937echo "$as_me:$LINENO: checking $ac_header usability" >&5
8938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8939cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h.  */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h.  */
8945$ac_includes_default
8946#include <$ac_header>
8947_ACEOF
8948rm -f conftest.$ac_objext
8949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950  (eval $ac_compile) 2>conftest.er1
8951  ac_status=$?
8952  grep -v '^ *+' conftest.er1 >conftest.err
8953  rm -f conftest.er1
8954  cat conftest.err >&5
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); } &&
8957	 { ac_try='test -z "$ac_c_werror_flag"
8958			 || test ! -s conftest.err'
8959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960  (eval $ac_try) 2>&5
8961  ac_status=$?
8962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963  (exit $ac_status); }; } &&
8964	 { ac_try='test -s conftest.$ac_objext'
8965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966  (eval $ac_try) 2>&5
8967  ac_status=$?
8968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969  (exit $ac_status); }; }; then
8970  ac_header_compiler=yes
8971else
8972  echo "$as_me: failed program was:" >&5
8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8975ac_header_compiler=no
8976fi
8977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979echo "${ECHO_T}$ac_header_compiler" >&6
8980
8981# Is the header present?
8982echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8984cat >conftest.$ac_ext <<_ACEOF
8985/* confdefs.h.  */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h.  */
8990#include <$ac_header>
8991_ACEOF
8992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8993  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8994  ac_status=$?
8995  grep -v '^ *+' conftest.er1 >conftest.err
8996  rm -f conftest.er1
8997  cat conftest.err >&5
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); } >/dev/null; then
9000  if test -s conftest.err; then
9001    ac_cpp_err=$ac_c_preproc_warn_flag
9002    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9003  else
9004    ac_cpp_err=
9005  fi
9006else
9007  ac_cpp_err=yes
9008fi
9009if test -z "$ac_cpp_err"; then
9010  ac_header_preproc=yes
9011else
9012  echo "$as_me: failed program was:" >&5
9013sed 's/^/| /' conftest.$ac_ext >&5
9014
9015  ac_header_preproc=no
9016fi
9017rm -f conftest.err conftest.$ac_ext
9018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019echo "${ECHO_T}$ac_header_preproc" >&6
9020
9021# So?  What about this header?
9022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023  yes:no: )
9024    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028    ac_header_preproc=yes
9029    ;;
9030  no:yes:* )
9031    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9034echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9035    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9038echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9039    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9043    (
9044      cat <<\_ASBOX
9045## ----------------------------------- ##
9046## Report this to llvmbugs@cs.uiuc.edu ##
9047## ----------------------------------- ##
9048_ASBOX
9049    ) |
9050      sed "s/^/$as_me: WARNING:     /" >&2
9051    ;;
9052esac
9053echo "$as_me:$LINENO: checking for $ac_header" >&5
9054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9055if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056  echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058  eval "$as_ac_Header=\$ac_header_preproc"
9059fi
9060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9062
9063fi
9064if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065  cat >>confdefs.h <<_ACEOF
9066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067_ACEOF
9068
9069fi
9070
9071done
9072
9073
9074
9075for ac_header in string.h strings.h
9076do
9077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079  echo "$as_me:$LINENO: checking for $ac_header" >&5
9080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082  echo $ECHO_N "(cached) $ECHO_C" >&6
9083fi
9084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086else
9087  # Is the header compilable?
9088echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h.  */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h.  */
9096$ac_includes_default
9097#include <$ac_header>
9098_ACEOF
9099rm -f conftest.$ac_objext
9100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101  (eval $ac_compile) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } &&
9108	 { ac_try='test -z "$ac_c_werror_flag"
9109			 || test ! -s conftest.err'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; } &&
9115	 { ac_try='test -s conftest.$ac_objext'
9116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117  (eval $ac_try) 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_header_compiler=yes
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_header_compiler=no
9127fi
9128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132# Is the header present?
9133echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h.  */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h.  */
9141#include <$ac_header>
9142_ACEOF
9143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145  ac_status=$?
9146  grep -v '^ *+' conftest.er1 >conftest.err
9147  rm -f conftest.er1
9148  cat conftest.err >&5
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); } >/dev/null; then
9151  if test -s conftest.err; then
9152    ac_cpp_err=$ac_c_preproc_warn_flag
9153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154  else
9155    ac_cpp_err=
9156  fi
9157else
9158  ac_cpp_err=yes
9159fi
9160if test -z "$ac_cpp_err"; then
9161  ac_header_preproc=yes
9162else
9163  echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166  ac_header_preproc=no
9167fi
9168rm -f conftest.err conftest.$ac_ext
9169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172# So?  What about this header?
9173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174  yes:no: )
9175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179    ac_header_preproc=yes
9180    ;;
9181  no:yes:* )
9182    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9185echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9186    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9189echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194    (
9195      cat <<\_ASBOX
9196## ----------------------------------- ##
9197## Report this to llvmbugs@cs.uiuc.edu ##
9198## ----------------------------------- ##
9199_ASBOX
9200    ) |
9201      sed "s/^/$as_me: WARNING:     /" >&2
9202    ;;
9203esac
9204echo "$as_me:$LINENO: checking for $ac_header" >&5
9205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  eval "$as_ac_Header=\$ac_header_preproc"
9210fi
9211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214fi
9215if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216  cat >>confdefs.h <<_ACEOF
9217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218_ACEOF
9219 break
9220fi
9221
9222done
9223
9224
9225
9226
9227for ac_func in strchr index
9228do
9229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9230echo "$as_me:$LINENO: checking for $ac_func" >&5
9231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9232if eval "test \"\${$as_ac_var+set}\" = set"; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  cat >conftest.$ac_ext <<_ACEOF
9236/* confdefs.h.  */
9237_ACEOF
9238cat confdefs.h >>conftest.$ac_ext
9239cat >>conftest.$ac_ext <<_ACEOF
9240/* end confdefs.h.  */
9241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9242   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9243#define $ac_func innocuous_$ac_func
9244
9245/* System header to define __stub macros and hopefully few prototypes,
9246    which can conflict with char $ac_func (); below.
9247    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9248    <limits.h> exists even on freestanding compilers.  */
9249
9250#ifdef __STDC__
9251# include <limits.h>
9252#else
9253# include <assert.h>
9254#endif
9255
9256#undef $ac_func
9257
9258/* Override any gcc2 internal prototype to avoid an error.  */
9259#ifdef __cplusplus
9260extern "C"
9261{
9262#endif
9263/* We use char because int might match the return type of a gcc2
9264   builtin and then its argument prototype would still apply.  */
9265char $ac_func ();
9266/* The GNU C library defines this for functions which it implements
9267    to always fail with ENOSYS.  Some functions are actually named
9268    something starting with __ and the normal name is an alias.  */
9269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9270choke me
9271#else
9272char (*f) () = $ac_func;
9273#endif
9274#ifdef __cplusplus
9275}
9276#endif
9277
9278int
9279main ()
9280{
9281return f != $ac_func;
9282  ;
9283  return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext conftest$ac_exeext
9287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9288  (eval $ac_link) 2>conftest.er1
9289  ac_status=$?
9290  grep -v '^ *+' conftest.er1 >conftest.err
9291  rm -f conftest.er1
9292  cat conftest.err >&5
9293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); } &&
9295	 { ac_try='test -z "$ac_c_werror_flag"
9296			 || test ! -s conftest.err'
9297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298  (eval $ac_try) 2>&5
9299  ac_status=$?
9300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301  (exit $ac_status); }; } &&
9302	 { ac_try='test -s conftest$ac_exeext'
9303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304  (eval $ac_try) 2>&5
9305  ac_status=$?
9306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307  (exit $ac_status); }; }; then
9308  eval "$as_ac_var=yes"
9309else
9310  echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313eval "$as_ac_var=no"
9314fi
9315rm -f conftest.err conftest.$ac_objext \
9316      conftest$ac_exeext conftest.$ac_ext
9317fi
9318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9320if test `eval echo '${'$as_ac_var'}'` = yes; then
9321  cat >>confdefs.h <<_ACEOF
9322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9323_ACEOF
9324 break
9325fi
9326done
9327
9328
9329
9330for ac_func in strrchr rindex
9331do
9332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9333echo "$as_me:$LINENO: checking for $ac_func" >&5
9334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9335if eval "test \"\${$as_ac_var+set}\" = set"; then
9336  echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338  cat >conftest.$ac_ext <<_ACEOF
9339/* confdefs.h.  */
9340_ACEOF
9341cat confdefs.h >>conftest.$ac_ext
9342cat >>conftest.$ac_ext <<_ACEOF
9343/* end confdefs.h.  */
9344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9346#define $ac_func innocuous_$ac_func
9347
9348/* System header to define __stub macros and hopefully few prototypes,
9349    which can conflict with char $ac_func (); below.
9350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351    <limits.h> exists even on freestanding compilers.  */
9352
9353#ifdef __STDC__
9354# include <limits.h>
9355#else
9356# include <assert.h>
9357#endif
9358
9359#undef $ac_func
9360
9361/* Override any gcc2 internal prototype to avoid an error.  */
9362#ifdef __cplusplus
9363extern "C"
9364{
9365#endif
9366/* We use char because int might match the return type of a gcc2
9367   builtin and then its argument prototype would still apply.  */
9368char $ac_func ();
9369/* The GNU C library defines this for functions which it implements
9370    to always fail with ENOSYS.  Some functions are actually named
9371    something starting with __ and the normal name is an alias.  */
9372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9373choke me
9374#else
9375char (*f) () = $ac_func;
9376#endif
9377#ifdef __cplusplus
9378}
9379#endif
9380
9381int
9382main ()
9383{
9384return f != $ac_func;
9385  ;
9386  return 0;
9387}
9388_ACEOF
9389rm -f conftest.$ac_objext conftest$ac_exeext
9390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391  (eval $ac_link) 2>conftest.er1
9392  ac_status=$?
9393  grep -v '^ *+' conftest.er1 >conftest.err
9394  rm -f conftest.er1
9395  cat conftest.err >&5
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } &&
9398	 { ac_try='test -z "$ac_c_werror_flag"
9399			 || test ! -s conftest.err'
9400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401  (eval $ac_try) 2>&5
9402  ac_status=$?
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); }; } &&
9405	 { ac_try='test -s conftest$ac_exeext'
9406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407  (eval $ac_try) 2>&5
9408  ac_status=$?
9409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410  (exit $ac_status); }; }; then
9411  eval "$as_ac_var=yes"
9412else
9413  echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416eval "$as_ac_var=no"
9417fi
9418rm -f conftest.err conftest.$ac_objext \
9419      conftest$ac_exeext conftest.$ac_ext
9420fi
9421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9423if test `eval echo '${'$as_ac_var'}'` = yes; then
9424  cat >>confdefs.h <<_ACEOF
9425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9426_ACEOF
9427 break
9428fi
9429done
9430
9431
9432
9433for ac_func in memcpy bcopy
9434do
9435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9436echo "$as_me:$LINENO: checking for $ac_func" >&5
9437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9438if eval "test \"\${$as_ac_var+set}\" = set"; then
9439  echo $ECHO_N "(cached) $ECHO_C" >&6
9440else
9441  cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h.  */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h.  */
9447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9448   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9449#define $ac_func innocuous_$ac_func
9450
9451/* System header to define __stub macros and hopefully few prototypes,
9452    which can conflict with char $ac_func (); below.
9453    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9454    <limits.h> exists even on freestanding compilers.  */
9455
9456#ifdef __STDC__
9457# include <limits.h>
9458#else
9459# include <assert.h>
9460#endif
9461
9462#undef $ac_func
9463
9464/* Override any gcc2 internal prototype to avoid an error.  */
9465#ifdef __cplusplus
9466extern "C"
9467{
9468#endif
9469/* We use char because int might match the return type of a gcc2
9470   builtin and then its argument prototype would still apply.  */
9471char $ac_func ();
9472/* The GNU C library defines this for functions which it implements
9473    to always fail with ENOSYS.  Some functions are actually named
9474    something starting with __ and the normal name is an alias.  */
9475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9476choke me
9477#else
9478char (*f) () = $ac_func;
9479#endif
9480#ifdef __cplusplus
9481}
9482#endif
9483
9484int
9485main ()
9486{
9487return f != $ac_func;
9488  ;
9489  return 0;
9490}
9491_ACEOF
9492rm -f conftest.$ac_objext conftest$ac_exeext
9493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494  (eval $ac_link) 2>conftest.er1
9495  ac_status=$?
9496  grep -v '^ *+' conftest.er1 >conftest.err
9497  rm -f conftest.er1
9498  cat conftest.err >&5
9499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500  (exit $ac_status); } &&
9501	 { ac_try='test -z "$ac_c_werror_flag"
9502			 || test ! -s conftest.err'
9503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504  (eval $ac_try) 2>&5
9505  ac_status=$?
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); }; } &&
9508	 { ac_try='test -s conftest$ac_exeext'
9509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510  (eval $ac_try) 2>&5
9511  ac_status=$?
9512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513  (exit $ac_status); }; }; then
9514  eval "$as_ac_var=yes"
9515else
9516  echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
9519eval "$as_ac_var=no"
9520fi
9521rm -f conftest.err conftest.$ac_objext \
9522      conftest$ac_exeext conftest.$ac_ext
9523fi
9524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9526if test `eval echo '${'$as_ac_var'}'` = yes; then
9527  cat >>confdefs.h <<_ACEOF
9528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529_ACEOF
9530 break
9531fi
9532done
9533
9534
9535
9536for ac_func in memmove strcmp
9537do
9538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9539echo "$as_me:$LINENO: checking for $ac_func" >&5
9540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9541if eval "test \"\${$as_ac_var+set}\" = set"; then
9542  echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544  cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h.  */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h.  */
9550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9552#define $ac_func innocuous_$ac_func
9553
9554/* System header to define __stub macros and hopefully few prototypes,
9555    which can conflict with char $ac_func (); below.
9556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9557    <limits.h> exists even on freestanding compilers.  */
9558
9559#ifdef __STDC__
9560# include <limits.h>
9561#else
9562# include <assert.h>
9563#endif
9564
9565#undef $ac_func
9566
9567/* Override any gcc2 internal prototype to avoid an error.  */
9568#ifdef __cplusplus
9569extern "C"
9570{
9571#endif
9572/* We use char because int might match the return type of a gcc2
9573   builtin and then its argument prototype would still apply.  */
9574char $ac_func ();
9575/* The GNU C library defines this for functions which it implements
9576    to always fail with ENOSYS.  Some functions are actually named
9577    something starting with __ and the normal name is an alias.  */
9578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9579choke me
9580#else
9581char (*f) () = $ac_func;
9582#endif
9583#ifdef __cplusplus
9584}
9585#endif
9586
9587int
9588main ()
9589{
9590return f != $ac_func;
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
9596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597  (eval $ac_link) 2>conftest.er1
9598  ac_status=$?
9599  grep -v '^ *+' conftest.er1 >conftest.err
9600  rm -f conftest.er1
9601  cat conftest.err >&5
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); } &&
9604	 { ac_try='test -z "$ac_c_werror_flag"
9605			 || test ! -s conftest.err'
9606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607  (eval $ac_try) 2>&5
9608  ac_status=$?
9609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610  (exit $ac_status); }; } &&
9611	 { ac_try='test -s conftest$ac_exeext'
9612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613  (eval $ac_try) 2>&5
9614  ac_status=$?
9615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616  (exit $ac_status); }; }; then
9617  eval "$as_ac_var=yes"
9618else
9619  echo "$as_me: failed program was:" >&5
9620sed 's/^/| /' conftest.$ac_ext >&5
9621
9622eval "$as_ac_var=no"
9623fi
9624rm -f conftest.err conftest.$ac_objext \
9625      conftest$ac_exeext conftest.$ac_ext
9626fi
9627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9629if test `eval echo '${'$as_ac_var'}'` = yes; then
9630  cat >>confdefs.h <<_ACEOF
9631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9632_ACEOF
9633
9634fi
9635done
9636
9637
9638
9639
9640for ac_func in closedir opendir readdir
9641do
9642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9643echo "$as_me:$LINENO: checking for $ac_func" >&5
9644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9645if eval "test \"\${$as_ac_var+set}\" = set"; then
9646  echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648  cat >conftest.$ac_ext <<_ACEOF
9649/* confdefs.h.  */
9650_ACEOF
9651cat confdefs.h >>conftest.$ac_ext
9652cat >>conftest.$ac_ext <<_ACEOF
9653/* end confdefs.h.  */
9654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9656#define $ac_func innocuous_$ac_func
9657
9658/* System header to define __stub macros and hopefully few prototypes,
9659    which can conflict with char $ac_func (); below.
9660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661    <limits.h> exists even on freestanding compilers.  */
9662
9663#ifdef __STDC__
9664# include <limits.h>
9665#else
9666# include <assert.h>
9667#endif
9668
9669#undef $ac_func
9670
9671/* Override any gcc2 internal prototype to avoid an error.  */
9672#ifdef __cplusplus
9673extern "C"
9674{
9675#endif
9676/* We use char because int might match the return type of a gcc2
9677   builtin and then its argument prototype would still apply.  */
9678char $ac_func ();
9679/* The GNU C library defines this for functions which it implements
9680    to always fail with ENOSYS.  Some functions are actually named
9681    something starting with __ and the normal name is an alias.  */
9682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9683choke me
9684#else
9685char (*f) () = $ac_func;
9686#endif
9687#ifdef __cplusplus
9688}
9689#endif
9690
9691int
9692main ()
9693{
9694return f != $ac_func;
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701  (eval $ac_link) 2>conftest.er1
9702  ac_status=$?
9703  grep -v '^ *+' conftest.er1 >conftest.err
9704  rm -f conftest.er1
9705  cat conftest.err >&5
9706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); } &&
9708	 { ac_try='test -z "$ac_c_werror_flag"
9709			 || test ! -s conftest.err'
9710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711  (eval $ac_try) 2>&5
9712  ac_status=$?
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); }; } &&
9715	 { ac_try='test -s conftest$ac_exeext'
9716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717  (eval $ac_try) 2>&5
9718  ac_status=$?
9719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720  (exit $ac_status); }; }; then
9721  eval "$as_ac_var=yes"
9722else
9723  echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726eval "$as_ac_var=no"
9727fi
9728rm -f conftest.err conftest.$ac_objext \
9729      conftest$ac_exeext conftest.$ac_ext
9730fi
9731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9733if test `eval echo '${'$as_ac_var'}'` = yes; then
9734  cat >>confdefs.h <<_ACEOF
9735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9736_ACEOF
9737
9738fi
9739done
9740
9741
9742# Check whether --enable-shared or --disable-shared was given.
9743if test "${enable_shared+set}" = set; then
9744  enableval="$enable_shared"
9745  p=${PACKAGE-default}
9746    case $enableval in
9747    yes) enable_shared=yes ;;
9748    no) enable_shared=no ;;
9749    *)
9750      enable_shared=no
9751      # Look at the argument we got.  We use all the common list separators.
9752      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9753      for pkg in $enableval; do
9754	IFS="$lt_save_ifs"
9755	if test "X$pkg" = "X$p"; then
9756	  enable_shared=yes
9757	fi
9758      done
9759      IFS="$lt_save_ifs"
9760      ;;
9761    esac
9762else
9763  enable_shared=yes
9764fi;
9765
9766# Check whether --enable-static or --disable-static was given.
9767if test "${enable_static+set}" = set; then
9768  enableval="$enable_static"
9769  p=${PACKAGE-default}
9770    case $enableval in
9771    yes) enable_static=yes ;;
9772    no) enable_static=no ;;
9773    *)
9774     enable_static=no
9775      # Look at the argument we got.  We use all the common list separators.
9776      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9777      for pkg in $enableval; do
9778	IFS="$lt_save_ifs"
9779	if test "X$pkg" = "X$p"; then
9780	  enable_static=yes
9781	fi
9782      done
9783      IFS="$lt_save_ifs"
9784      ;;
9785    esac
9786else
9787  enable_static=yes
9788fi;
9789
9790# Check whether --enable-fast-install or --disable-fast-install was given.
9791if test "${enable_fast_install+set}" = set; then
9792  enableval="$enable_fast_install"
9793  p=${PACKAGE-default}
9794    case $enableval in
9795    yes) enable_fast_install=yes ;;
9796    no) enable_fast_install=no ;;
9797    *)
9798      enable_fast_install=no
9799      # Look at the argument we got.  We use all the common list separators.
9800      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801      for pkg in $enableval; do
9802	IFS="$lt_save_ifs"
9803	if test "X$pkg" = "X$p"; then
9804	  enable_fast_install=yes
9805	fi
9806      done
9807      IFS="$lt_save_ifs"
9808      ;;
9809    esac
9810else
9811  enable_fast_install=yes
9812fi;
9813
9814echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9815echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9816if test "${lt_cv_path_SED+set}" = set; then
9817  echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819  # Loop through the user's path and test for sed and gsed.
9820# Then use that list of sed's as ones to test for truncation.
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824  IFS=$as_save_IFS
9825  test -z "$as_dir" && as_dir=.
9826  for lt_ac_prog in sed gsed; do
9827    for ac_exec_ext in '' $ac_executable_extensions; do
9828      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9829        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9830      fi
9831    done
9832  done
9833done
9834lt_ac_max=0
9835lt_ac_count=0
9836# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9837# along with /bin/sed that truncates output.
9838for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9839  test ! -f $lt_ac_sed && break
9840  cat /dev/null > conftest.in
9841  lt_ac_count=0
9842  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9843  # Check for GNU sed and select it if it is found.
9844  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9845    lt_cv_path_SED=$lt_ac_sed
9846    break
9847  fi
9848  while true; do
9849    cat conftest.in conftest.in >conftest.tmp
9850    mv conftest.tmp conftest.in
9851    cp conftest.in conftest.nl
9852    echo >>conftest.nl
9853    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9854    cmp -s conftest.out conftest.nl || break
9855    # 10000 chars as input seems more than enough
9856    test $lt_ac_count -gt 10 && break
9857    lt_ac_count=`expr $lt_ac_count + 1`
9858    if test $lt_ac_count -gt $lt_ac_max; then
9859      lt_ac_max=$lt_ac_count
9860      lt_cv_path_SED=$lt_ac_sed
9861    fi
9862  done
9863done
9864
9865fi
9866
9867SED=$lt_cv_path_SED
9868echo "$as_me:$LINENO: result: $SED" >&5
9869echo "${ECHO_T}$SED" >&6
9870
9871
9872# Check whether --with-gnu-ld or --without-gnu-ld was given.
9873if test "${with_gnu_ld+set}" = set; then
9874  withval="$with_gnu_ld"
9875  test "$withval" = no || with_gnu_ld=yes
9876else
9877  with_gnu_ld=no
9878fi;
9879ac_prog=ld
9880if test "$GCC" = yes; then
9881  # Check if gcc -print-prog-name=ld gives a path.
9882  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9883echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9884  case $host in
9885  *-*-mingw*)
9886    # gcc leaves a trailing carriage return which upsets mingw
9887    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9888  *)
9889    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9890  esac
9891  case $ac_prog in
9892    # Accept absolute paths.
9893    [\\/]* | ?:[\\/]*)
9894      re_direlt='/[^/][^/]*/\.\./'
9895      # Canonicalize the pathname of ld
9896      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9897      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9898	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9899      done
9900      test -z "$LD" && LD="$ac_prog"
9901      ;;
9902  "")
9903    # If it fails, then pretend we aren't using GCC.
9904    ac_prog=ld
9905    ;;
9906  *)
9907    # If it is relative, then search for the first ld in PATH.
9908    with_gnu_ld=unknown
9909    ;;
9910  esac
9911elif test "$with_gnu_ld" = yes; then
9912  echo "$as_me:$LINENO: checking for GNU ld" >&5
9913echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9914else
9915  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9916echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9917fi
9918if test "${lt_cv_path_LD+set}" = set; then
9919  echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921  if test -z "$LD"; then
9922  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9923  for ac_dir in $PATH; do
9924    IFS="$lt_save_ifs"
9925    test -z "$ac_dir" && ac_dir=.
9926    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9927      lt_cv_path_LD="$ac_dir/$ac_prog"
9928      # Check to see if the program is GNU ld.  I'd rather use --version,
9929      # but apparently some GNU ld's only accept -v.
9930      # Break only if it was the GNU/non-GNU ld that we prefer.
9931      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9932      *GNU* | *'with BFD'*)
9933	test "$with_gnu_ld" != no && break
9934	;;
9935      *)
9936	test "$with_gnu_ld" != yes && break
9937	;;
9938      esac
9939    fi
9940  done
9941  IFS="$lt_save_ifs"
9942else
9943  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9944fi
9945fi
9946
9947LD="$lt_cv_path_LD"
9948if test -n "$LD"; then
9949  echo "$as_me:$LINENO: result: $LD" >&5
9950echo "${ECHO_T}$LD" >&6
9951else
9952  echo "$as_me:$LINENO: result: no" >&5
9953echo "${ECHO_T}no" >&6
9954fi
9955test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9956echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9957   { (exit 1); exit 1; }; }
9958echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9959echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9960if test "${lt_cv_prog_gnu_ld+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9964case `$LD -v 2>&1 </dev/null` in
9965*GNU* | *'with BFD'*)
9966  lt_cv_prog_gnu_ld=yes
9967  ;;
9968*)
9969  lt_cv_prog_gnu_ld=no
9970  ;;
9971esac
9972fi
9973echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9974echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9975with_gnu_ld=$lt_cv_prog_gnu_ld
9976
9977
9978echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9979echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9980if test "${lt_cv_ld_reload_flag+set}" = set; then
9981  echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983  lt_cv_ld_reload_flag='-r'
9984fi
9985echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9986echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9987reload_flag=$lt_cv_ld_reload_flag
9988case $reload_flag in
9989"" | " "*) ;;
9990*) reload_flag=" $reload_flag" ;;
9991esac
9992reload_cmds='$LD$reload_flag -o $output$reload_objs'
9993case $host_os in
9994  darwin*)
9995    if test "$GCC" = yes; then
9996      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9997    else
9998      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9999    fi
10000    ;;
10001esac
10002
10003echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10004echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10005if test "${lt_cv_deplibs_check_method+set}" = set; then
10006  echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008  lt_cv_file_magic_cmd='$MAGIC_CMD'
10009lt_cv_file_magic_test_file=
10010lt_cv_deplibs_check_method='unknown'
10011# Need to set the preceding variable on all platforms that support
10012# interlibrary dependencies.
10013# 'none' -- dependencies not supported.
10014# `unknown' -- same as none, but documents that we really don't know.
10015# 'pass_all' -- all dependencies passed with no checks.
10016# 'test_compile' -- check by making test program.
10017# 'file_magic [[regex]]' -- check by looking for files in library path
10018# which responds to the $file_magic_cmd with a given extended regex.
10019# If you have `file' or equivalent on your system and you're not sure
10020# whether `pass_all' will *always* work, you probably want this one.
10021
10022case $host_os in
10023aix4* | aix5*)
10024  lt_cv_deplibs_check_method=pass_all
10025  ;;
10026
10027beos*)
10028  lt_cv_deplibs_check_method=pass_all
10029  ;;
10030
10031bsdi[45]*)
10032  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10033  lt_cv_file_magic_cmd='/usr/bin/file -L'
10034  lt_cv_file_magic_test_file=/shlib/libc.so
10035  ;;
10036
10037cygwin*)
10038  # func_win32_libid is a shell function defined in ltmain.sh
10039  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10040  lt_cv_file_magic_cmd='func_win32_libid'
10041  ;;
10042
10043mingw* | pw32*)
10044  # Base MSYS/MinGW do not provide the 'file' command needed by
10045  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10046  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10047  lt_cv_file_magic_cmd='$OBJDUMP -f'
10048  ;;
10049
10050darwin* | rhapsody*)
10051  lt_cv_deplibs_check_method=pass_all
10052  ;;
10053
10054freebsd* | kfreebsd*-gnu)
10055  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10056    case $host_cpu in
10057    i*86 )
10058      # Not sure whether the presence of OpenBSD here was a mistake.
10059      # Let's accept both of them until this is cleared up.
10060      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10061      lt_cv_file_magic_cmd=/usr/bin/file
10062      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10063      ;;
10064    esac
10065  else
10066    lt_cv_deplibs_check_method=pass_all
10067  fi
10068  ;;
10069
10070gnu*)
10071  lt_cv_deplibs_check_method=pass_all
10072  ;;
10073
10074hpux10.20* | hpux11*)
10075  lt_cv_file_magic_cmd=/usr/bin/file
10076  case "$host_cpu" in
10077  ia64*)
10078    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10079    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10080    ;;
10081  hppa*64*)
10082    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]'
10083    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10084    ;;
10085  *)
10086    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10087    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10088    ;;
10089  esac
10090  ;;
10091
10092irix5* | irix6* | nonstopux*)
10093  case $LD in
10094  *-32|*"-32 ") libmagic=32-bit;;
10095  *-n32|*"-n32 ") libmagic=N32;;
10096  *-64|*"-64 ") libmagic=64-bit;;
10097  *) libmagic=never-match;;
10098  esac
10099  lt_cv_deplibs_check_method=pass_all
10100  ;;
10101
10102# This must be Linux ELF.
10103linux*)
10104  lt_cv_deplibs_check_method=pass_all
10105  ;;
10106
10107netbsd*)
10108  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10109    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10110  else
10111    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10112  fi
10113  ;;
10114
10115newos6*)
10116  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10117  lt_cv_file_magic_cmd=/usr/bin/file
10118  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10119  ;;
10120
10121nto-qnx*)
10122  lt_cv_deplibs_check_method=unknown
10123  ;;
10124
10125openbsd*)
10126  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10127    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10128  else
10129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10130  fi
10131  ;;
10132
10133osf3* | osf4* | osf5*)
10134  lt_cv_deplibs_check_method=pass_all
10135  ;;
10136
10137sco3.2v5*)
10138  lt_cv_deplibs_check_method=pass_all
10139  ;;
10140
10141solaris*)
10142  lt_cv_deplibs_check_method=pass_all
10143  ;;
10144
10145sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146  case $host_vendor in
10147  motorola)
10148    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]'
10149    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10150    ;;
10151  ncr)
10152    lt_cv_deplibs_check_method=pass_all
10153    ;;
10154  sequent)
10155    lt_cv_file_magic_cmd='/bin/file'
10156    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10157    ;;
10158  sni)
10159    lt_cv_file_magic_cmd='/bin/file'
10160    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10161    lt_cv_file_magic_test_file=/lib/libc.so
10162    ;;
10163  siemens)
10164    lt_cv_deplibs_check_method=pass_all
10165    ;;
10166  esac
10167  ;;
10168
10169sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10170  lt_cv_deplibs_check_method=pass_all
10171  ;;
10172esac
10173
10174fi
10175echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10176echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10177file_magic_cmd=$lt_cv_file_magic_cmd
10178deplibs_check_method=$lt_cv_deplibs_check_method
10179test -z "$deplibs_check_method" && deplibs_check_method=unknown
10180
10181
10182
10183# If no C compiler was specified, use CC.
10184LTCC=${LTCC-"$CC"}
10185
10186# Allow CC to be a program name with arguments.
10187compiler=$CC
10188
10189# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10190if test "${enable_libtool_lock+set}" = set; then
10191  enableval="$enable_libtool_lock"
10192
10193fi;
10194test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10195
10196# Some flags need to be propagated to the compiler or linker for good
10197# libtool support.
10198case $host in
10199ia64-*-hpux*)
10200  # Find out which ABI we are using.
10201  echo 'int i;' > conftest.$ac_ext
10202  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203  (eval $ac_compile) 2>&5
10204  ac_status=$?
10205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206  (exit $ac_status); }; then
10207    case `/usr/bin/file conftest.$ac_objext` in
10208    *ELF-32*)
10209      HPUX_IA64_MODE="32"
10210      ;;
10211    *ELF-64*)
10212      HPUX_IA64_MODE="64"
10213      ;;
10214    esac
10215  fi
10216  rm -rf conftest*
10217  ;;
10218*-*-irix6*)
10219  # Find out which ABI we are using.
10220  echo '#line 10219 "configure"' > conftest.$ac_ext
10221  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222  (eval $ac_compile) 2>&5
10223  ac_status=$?
10224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225  (exit $ac_status); }; then
10226   if test "$lt_cv_prog_gnu_ld" = yes; then
10227    case `/usr/bin/file conftest.$ac_objext` in
10228    *32-bit*)
10229      LD="${LD-ld} -melf32bsmip"
10230      ;;
10231    *N32*)
10232      LD="${LD-ld} -melf32bmipn32"
10233      ;;
10234    *64-bit*)
10235      LD="${LD-ld} -melf64bmip"
10236      ;;
10237    esac
10238   else
10239    case `/usr/bin/file conftest.$ac_objext` in
10240    *32-bit*)
10241      LD="${LD-ld} -32"
10242      ;;
10243    *N32*)
10244      LD="${LD-ld} -n32"
10245      ;;
10246    *64-bit*)
10247      LD="${LD-ld} -64"
10248      ;;
10249    esac
10250   fi
10251  fi
10252  rm -rf conftest*
10253  ;;
10254
10255x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10256  # Find out which ABI we are using.
10257  echo 'int i;' > conftest.$ac_ext
10258  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259  (eval $ac_compile) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; then
10263    case "`/usr/bin/file conftest.o`" in
10264    *32-bit*)
10265      case $host in
10266        x86_64-*linux*)
10267          LD="${LD-ld} -m elf_i386"
10268          ;;
10269        ppc64-*linux*|powerpc64-*linux*)
10270          LD="${LD-ld} -m elf32ppclinux"
10271          ;;
10272        s390x-*linux*)
10273          LD="${LD-ld} -m elf_s390"
10274          ;;
10275        sparc64-*linux*)
10276          LD="${LD-ld} -m elf32_sparc"
10277          ;;
10278      esac
10279      ;;
10280    *64-bit*)
10281      case $host in
10282        x86_64-*linux*)
10283          LD="${LD-ld} -m elf_x86_64"
10284          ;;
10285        ppc*-*linux*|powerpc*-*linux*)
10286          LD="${LD-ld} -m elf64ppc"
10287          ;;
10288        s390*-*linux*)
10289          LD="${LD-ld} -m elf64_s390"
10290          ;;
10291        sparc*-*linux*)
10292          LD="${LD-ld} -m elf64_sparc"
10293          ;;
10294      esac
10295      ;;
10296    esac
10297  fi
10298  rm -rf conftest*
10299  ;;
10300
10301*-*-sco3.2v5*)
10302  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10303  SAVE_CFLAGS="$CFLAGS"
10304  CFLAGS="$CFLAGS -belf"
10305  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10306echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10307if test "${lt_cv_cc_needs_belf+set}" = set; then
10308  echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310  ac_ext=c
10311ac_cpp='$CPP $CPPFLAGS'
10312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315
10316     cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h.  */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h.  */
10322
10323_ACEOF
10324rm -f conftest.$ac_objext conftest$ac_exeext
10325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326  (eval $ac_link) 2>conftest.er1
10327  ac_status=$?
10328  grep -v '^ *+' conftest.er1 >conftest.err
10329  rm -f conftest.er1
10330  cat conftest.err >&5
10331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332  (exit $ac_status); } &&
10333	 { ac_try='test -z "$ac_c_werror_flag"
10334			 || test ! -s conftest.err'
10335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336  (eval $ac_try) 2>&5
10337  ac_status=$?
10338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339  (exit $ac_status); }; } &&
10340	 { ac_try='test -s conftest$ac_exeext'
10341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342  (eval $ac_try) 2>&5
10343  ac_status=$?
10344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345  (exit $ac_status); }; }; then
10346  lt_cv_cc_needs_belf=yes
10347else
10348  echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
10351lt_cv_cc_needs_belf=no
10352fi
10353rm -f conftest.err conftest.$ac_objext \
10354      conftest$ac_exeext conftest.$ac_ext
10355     ac_ext=c
10356ac_cpp='$CPP $CPPFLAGS'
10357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10359ac_compiler_gnu=$ac_cv_c_compiler_gnu
10360
10361fi
10362echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10363echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10364  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10365    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10366    CFLAGS="$SAVE_CFLAGS"
10367  fi
10368  ;;
10369
10370esac
10371
10372need_locks="$enable_libtool_lock"
10373
10374
10375
10376
10377if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10378    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10379    (test "X$CXX" != "Xg++"))) ; then
10380  ac_ext=cc
10381ac_cpp='$CXXCPP $CPPFLAGS'
10382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10385echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10386echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10387if test -z "$CXXCPP"; then
10388  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10389  echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391      # Double quotes because CXXCPP needs to be expanded
10392    for CXXCPP in "$CXX -E" "/lib/cpp"
10393    do
10394      ac_preproc_ok=false
10395for ac_cxx_preproc_warn_flag in '' yes
10396do
10397  # Use a header file that comes with gcc, so configuring glibc
10398  # with a fresh cross-compiler works.
10399  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10400  # <limits.h> exists even on freestanding compilers.
10401  # On the NeXT, cc -E runs the code through the compiler's parser,
10402  # not just through cpp. "Syntax error" is here to catch this case.
10403  cat >conftest.$ac_ext <<_ACEOF
10404/* confdefs.h.  */
10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h.  */
10409#ifdef __STDC__
10410# include <limits.h>
10411#else
10412# include <assert.h>
10413#endif
10414		     Syntax error
10415_ACEOF
10416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10417  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10418  ac_status=$?
10419  grep -v '^ *+' conftest.er1 >conftest.err
10420  rm -f conftest.er1
10421  cat conftest.err >&5
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); } >/dev/null; then
10424  if test -s conftest.err; then
10425    ac_cpp_err=$ac_cxx_preproc_warn_flag
10426    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10427  else
10428    ac_cpp_err=
10429  fi
10430else
10431  ac_cpp_err=yes
10432fi
10433if test -z "$ac_cpp_err"; then
10434  :
10435else
10436  echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
10439  # Broken: fails on valid input.
10440continue
10441fi
10442rm -f conftest.err conftest.$ac_ext
10443
10444  # OK, works on sane cases.  Now check whether non-existent headers
10445  # can be detected and how.
10446  cat >conftest.$ac_ext <<_ACEOF
10447/* confdefs.h.  */
10448_ACEOF
10449cat confdefs.h >>conftest.$ac_ext
10450cat >>conftest.$ac_ext <<_ACEOF
10451/* end confdefs.h.  */
10452#include <ac_nonexistent.h>
10453_ACEOF
10454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10456  ac_status=$?
10457  grep -v '^ *+' conftest.er1 >conftest.err
10458  rm -f conftest.er1
10459  cat conftest.err >&5
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); } >/dev/null; then
10462  if test -s conftest.err; then
10463    ac_cpp_err=$ac_cxx_preproc_warn_flag
10464    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10465  else
10466    ac_cpp_err=
10467  fi
10468else
10469  ac_cpp_err=yes
10470fi
10471if test -z "$ac_cpp_err"; then
10472  # Broken: success on invalid input.
10473continue
10474else
10475  echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478  # Passes both tests.
10479ac_preproc_ok=:
10480break
10481fi
10482rm -f conftest.err conftest.$ac_ext
10483
10484done
10485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10486rm -f conftest.err conftest.$ac_ext
10487if $ac_preproc_ok; then
10488  break
10489fi
10490
10491    done
10492    ac_cv_prog_CXXCPP=$CXXCPP
10493
10494fi
10495  CXXCPP=$ac_cv_prog_CXXCPP
10496else
10497  ac_cv_prog_CXXCPP=$CXXCPP
10498fi
10499echo "$as_me:$LINENO: result: $CXXCPP" >&5
10500echo "${ECHO_T}$CXXCPP" >&6
10501ac_preproc_ok=false
10502for ac_cxx_preproc_warn_flag in '' yes
10503do
10504  # Use a header file that comes with gcc, so configuring glibc
10505  # with a fresh cross-compiler works.
10506  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507  # <limits.h> exists even on freestanding compilers.
10508  # On the NeXT, cc -E runs the code through the compiler's parser,
10509  # not just through cpp. "Syntax error" is here to catch this case.
10510  cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h.  */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h.  */
10516#ifdef __STDC__
10517# include <limits.h>
10518#else
10519# include <assert.h>
10520#endif
10521		     Syntax error
10522_ACEOF
10523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10524  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10525  ac_status=$?
10526  grep -v '^ *+' conftest.er1 >conftest.err
10527  rm -f conftest.er1
10528  cat conftest.err >&5
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); } >/dev/null; then
10531  if test -s conftest.err; then
10532    ac_cpp_err=$ac_cxx_preproc_warn_flag
10533    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10534  else
10535    ac_cpp_err=
10536  fi
10537else
10538  ac_cpp_err=yes
10539fi
10540if test -z "$ac_cpp_err"; then
10541  :
10542else
10543  echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546  # Broken: fails on valid input.
10547continue
10548fi
10549rm -f conftest.err conftest.$ac_ext
10550
10551  # OK, works on sane cases.  Now check whether non-existent headers
10552  # can be detected and how.
10553  cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h.  */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h.  */
10559#include <ac_nonexistent.h>
10560_ACEOF
10561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10562  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10563  ac_status=$?
10564  grep -v '^ *+' conftest.er1 >conftest.err
10565  rm -f conftest.er1
10566  cat conftest.err >&5
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); } >/dev/null; then
10569  if test -s conftest.err; then
10570    ac_cpp_err=$ac_cxx_preproc_warn_flag
10571    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10572  else
10573    ac_cpp_err=
10574  fi
10575else
10576  ac_cpp_err=yes
10577fi
10578if test -z "$ac_cpp_err"; then
10579  # Broken: success on invalid input.
10580continue
10581else
10582  echo "$as_me: failed program was:" >&5
10583sed 's/^/| /' conftest.$ac_ext >&5
10584
10585  # Passes both tests.
10586ac_preproc_ok=:
10587break
10588fi
10589rm -f conftest.err conftest.$ac_ext
10590
10591done
10592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10593rm -f conftest.err conftest.$ac_ext
10594if $ac_preproc_ok; then
10595  :
10596else
10597  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10598See \`config.log' for more details." >&5
10599echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10600See \`config.log' for more details." >&2;}
10601   { (exit 1); exit 1; }; }
10602fi
10603
10604ac_ext=cc
10605ac_cpp='$CXXCPP $CPPFLAGS'
10606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10609
10610fi
10611
10612
10613ac_ext=f
10614ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10615ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10616ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10617if test -n "$ac_tool_prefix"; then
10618  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10619  do
10620    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10622echo "$as_me:$LINENO: checking for $ac_word" >&5
10623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10624if test "${ac_cv_prog_F77+set}" = set; then
10625  echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627  if test -n "$F77"; then
10628  ac_cv_prog_F77="$F77" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633  IFS=$as_save_IFS
10634  test -z "$as_dir" && as_dir=.
10635  for ac_exec_ext in '' $ac_executable_extensions; do
10636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639    break 2
10640  fi
10641done
10642done
10643
10644fi
10645fi
10646F77=$ac_cv_prog_F77
10647if test -n "$F77"; then
10648  echo "$as_me:$LINENO: result: $F77" >&5
10649echo "${ECHO_T}$F77" >&6
10650else
10651  echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655    test -n "$F77" && break
10656  done
10657fi
10658if test -z "$F77"; then
10659  ac_ct_F77=$F77
10660  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10661do
10662  # Extract the first word of "$ac_prog", so it can be a program name with args.
10663set dummy $ac_prog; ac_word=$2
10664echo "$as_me:$LINENO: checking for $ac_word" >&5
10665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10667  echo $ECHO_N "(cached) $ECHO_C" >&6
10668else
10669  if test -n "$ac_ct_F77"; then
10670  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10671else
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675  IFS=$as_save_IFS
10676  test -z "$as_dir" && as_dir=.
10677  for ac_exec_ext in '' $ac_executable_extensions; do
10678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679    ac_cv_prog_ac_ct_F77="$ac_prog"
10680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681    break 2
10682  fi
10683done
10684done
10685
10686fi
10687fi
10688ac_ct_F77=$ac_cv_prog_ac_ct_F77
10689if test -n "$ac_ct_F77"; then
10690  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10691echo "${ECHO_T}$ac_ct_F77" >&6
10692else
10693  echo "$as_me:$LINENO: result: no" >&5
10694echo "${ECHO_T}no" >&6
10695fi
10696
10697  test -n "$ac_ct_F77" && break
10698done
10699
10700  F77=$ac_ct_F77
10701fi
10702
10703
10704# Provide some information about the compiler.
10705echo "$as_me:10704:" \
10706     "checking for Fortran 77 compiler version" >&5
10707ac_compiler=`set X $ac_compile; echo $2`
10708{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10709  (eval $ac_compiler --version </dev/null >&5) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }
10713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10714  (eval $ac_compiler -v </dev/null >&5) 2>&5
10715  ac_status=$?
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); }
10718{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10719  (eval $ac_compiler -V </dev/null >&5) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); }
10723rm -f a.out
10724
10725# If we don't use `.F' as extension, the preprocessor is not run on the
10726# input file.  (Note that this only needs to work for GNU compilers.)
10727ac_save_ext=$ac_ext
10728ac_ext=F
10729echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10730echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10731if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10732  echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734  cat >conftest.$ac_ext <<_ACEOF
10735      program main
10736#ifndef __GNUC__
10737       choke me
10738#endif
10739
10740      end
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744  (eval $ac_compile) 2>conftest.er1
10745  ac_status=$?
10746  grep -v '^ *+' conftest.er1 >conftest.err
10747  rm -f conftest.er1
10748  cat conftest.err >&5
10749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750  (exit $ac_status); } &&
10751	 { ac_try='test -z "$ac_f77_werror_flag"
10752			 || test ! -s conftest.err'
10753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754  (eval $ac_try) 2>&5
10755  ac_status=$?
10756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757  (exit $ac_status); }; } &&
10758	 { ac_try='test -s conftest.$ac_objext'
10759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760  (eval $ac_try) 2>&5
10761  ac_status=$?
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); }; }; then
10764  ac_compiler_gnu=yes
10765else
10766  echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
10769ac_compiler_gnu=no
10770fi
10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10773
10774fi
10775echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10776echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10777ac_ext=$ac_save_ext
10778ac_test_FFLAGS=${FFLAGS+set}
10779ac_save_FFLAGS=$FFLAGS
10780FFLAGS=
10781echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10782echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10783if test "${ac_cv_prog_f77_g+set}" = set; then
10784  echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786  FFLAGS=-g
10787cat >conftest.$ac_ext <<_ACEOF
10788      program main
10789
10790      end
10791_ACEOF
10792rm -f conftest.$ac_objext
10793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10794  (eval $ac_compile) 2>conftest.er1
10795  ac_status=$?
10796  grep -v '^ *+' conftest.er1 >conftest.err
10797  rm -f conftest.er1
10798  cat conftest.err >&5
10799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800  (exit $ac_status); } &&
10801	 { ac_try='test -z "$ac_f77_werror_flag"
10802			 || test ! -s conftest.err'
10803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804  (eval $ac_try) 2>&5
10805  ac_status=$?
10806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807  (exit $ac_status); }; } &&
10808	 { ac_try='test -s conftest.$ac_objext'
10809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810  (eval $ac_try) 2>&5
10811  ac_status=$?
10812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813  (exit $ac_status); }; }; then
10814  ac_cv_prog_f77_g=yes
10815else
10816  echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819ac_cv_prog_f77_g=no
10820fi
10821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822
10823fi
10824echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10825echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10826if test "$ac_test_FFLAGS" = set; then
10827  FFLAGS=$ac_save_FFLAGS
10828elif test $ac_cv_prog_f77_g = yes; then
10829  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10830    FFLAGS="-g -O2"
10831  else
10832    FFLAGS="-g"
10833  fi
10834else
10835  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10836    FFLAGS="-O2"
10837  else
10838    FFLAGS=
10839  fi
10840fi
10841
10842G77=`test $ac_compiler_gnu = yes && echo yes`
10843ac_ext=c
10844ac_cpp='$CPP $CPPFLAGS'
10845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848
10849
10850
10851# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10852
10853# find the maximum length of command line arguments
10854echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10855echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10856if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859    i=0
10860  teststring="ABCD"
10861
10862  case $build_os in
10863  msdosdjgpp*)
10864    # On DJGPP, this test can blow up pretty badly due to problems in libc
10865    # (any single argument exceeding 2000 bytes causes a buffer overrun
10866    # during glob expansion).  Even if it were fixed, the result of this
10867    # check would be larger than it should be.
10868    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10869    ;;
10870
10871  gnu*)
10872    # Under GNU Hurd, this test is not required because there is
10873    # no limit to the length of command line arguments.
10874    # Libtool will interpret -1 as no limit whatsoever
10875    lt_cv_sys_max_cmd_len=-1;
10876    ;;
10877
10878  cygwin* | mingw*)
10879    # On Win9x/ME, this test blows up -- it succeeds, but takes
10880    # about 5 minutes as the teststring grows exponentially.
10881    # Worse, since 9x/ME are not pre-emptively multitasking,
10882    # you end up with a "frozen" computer, even though with patience
10883    # the test eventually succeeds (with a max line length of 256k).
10884    # Instead, let's just punt: use the minimum linelength reported by
10885    # all of the supported platforms: 8192 (on NT/2K/XP).
10886    lt_cv_sys_max_cmd_len=8192;
10887    ;;
10888
10889  amigaos*)
10890    # On AmigaOS with pdksh, this test takes hours, literally.
10891    # So we just punt and use a minimum line length of 8192.
10892    lt_cv_sys_max_cmd_len=8192;
10893    ;;
10894
10895  netbsd* | freebsd* | openbsd* | darwin* )
10896    # This has been around since 386BSD, at least.  Likely further.
10897    if test -x /sbin/sysctl; then
10898      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10899    elif test -x /usr/sbin/sysctl; then
10900      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10901    else
10902      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10903    fi
10904    # And add a safety zone
10905    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10906    ;;
10907
10908 *)
10909    # If test is not a shell built-in, we'll probably end up computing a
10910    # maximum length that is only half of the actual maximum length, but
10911    # we can't tell.
10912    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10913    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10914	       = "XX$teststring") >/dev/null 2>&1 &&
10915	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
10916	    lt_cv_sys_max_cmd_len=$new_result &&
10917	    test $i != 17 # 1/2 MB should be enough
10918    do
10919      i=`expr $i + 1`
10920      teststring=$teststring$teststring
10921    done
10922    teststring=
10923    # Add a significant safety factor because C++ compilers can tack on massive
10924    # amounts of additional arguments before passing them to the linker.
10925    # It appears as though 1/2 is a usable value.
10926    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10927    ;;
10928  esac
10929
10930fi
10931
10932if test -n $lt_cv_sys_max_cmd_len ; then
10933  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10934echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10935else
10936  echo "$as_me:$LINENO: result: none" >&5
10937echo "${ECHO_T}none" >&6
10938fi
10939
10940
10941
10942
10943# Check for command to grab the raw symbol name followed by C symbol from nm.
10944echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10945echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10946if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10947  echo $ECHO_N "(cached) $ECHO_C" >&6
10948else
10949
10950# These are sane defaults that work on at least a few old systems.
10951# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10952
10953# Character class describing NM global symbol codes.
10954symcode='[BCDEGRST]'
10955
10956# Regexp to match symbols that can be accessed directly from C.
10957sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10958
10959# Transform the above into a raw symbol and a C symbol.
10960symxfrm='\1 \2\3 \3'
10961
10962# Transform an extracted symbol line into a proper C declaration
10963lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10964
10965# Transform an extracted symbol line into symbol name and symbol address
10966lt_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'"
10967
10968# Define system-specific variables.
10969case $host_os in
10970aix*)
10971  symcode='[BCDT]'
10972  ;;
10973cygwin* | mingw* | pw32*)
10974  symcode='[ABCDGISTW]'
10975  ;;
10976hpux*) # Its linker distinguishes data from code symbols
10977  if test "$host_cpu" = ia64; then
10978    symcode='[ABCDEGRST]'
10979  fi
10980  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981  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'"
10982  ;;
10983linux*)
10984  if test "$host_cpu" = ia64; then
10985    symcode='[ABCDGIRSTW]'
10986    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10987    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'"
10988  fi
10989  ;;
10990irix* | nonstopux*)
10991  symcode='[BCDEGRST]'
10992  ;;
10993osf*)
10994  symcode='[BCDEGQRST]'
10995  ;;
10996solaris* | sysv5*)
10997  symcode='[BDRT]'
10998  ;;
10999sysv4)
11000  symcode='[DFNSTU]'
11001  ;;
11002esac
11003
11004# Handle CRLF in mingw tool chain
11005opt_cr=
11006case $build_os in
11007mingw*)
11008  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11009  ;;
11010esac
11011
11012# If we're using GNU nm, then use its standard symbol codes.
11013case `$NM -V 2>&1` in
11014*GNU* | *'with BFD'*)
11015  symcode='[ABCDGIRSTW]' ;;
11016esac
11017
11018# Try without a prefix undercore, then with it.
11019for ac_symprfx in "" "_"; do
11020
11021  # Write the raw and C identifiers.
11022  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11023
11024  # Check to see that the pipe works correctly.
11025  pipe_works=no
11026
11027  rm -f conftest*
11028  cat > conftest.$ac_ext <<EOF
11029#ifdef __cplusplus
11030extern "C" {
11031#endif
11032char nm_test_var;
11033void nm_test_func(){}
11034#ifdef __cplusplus
11035}
11036#endif
11037int main(){nm_test_var='a';nm_test_func();return(0);}
11038EOF
11039
11040  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041  (eval $ac_compile) 2>&5
11042  ac_status=$?
11043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044  (exit $ac_status); }; then
11045    # Now try to grab the symbols.
11046    nlist=conftest.nm
11047    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11048  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11049  ac_status=$?
11050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051  (exit $ac_status); } && test -s "$nlist"; then
11052      # Try sorting and uniquifying the output.
11053      if sort "$nlist" | uniq > "$nlist"T; then
11054	mv -f "$nlist"T "$nlist"
11055      else
11056	rm -f "$nlist"T
11057      fi
11058
11059      # Make sure that we snagged all the symbols we need.
11060      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11061	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11062	  cat <<EOF > conftest.$ac_ext
11063#ifdef __cplusplus
11064extern "C" {
11065#endif
11066
11067EOF
11068	  # Now generate the symbol file.
11069	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11070
11071	  cat <<EOF >> conftest.$ac_ext
11072#if defined (__STDC__) && __STDC__
11073# define lt_ptr_t void *
11074#else
11075# define lt_ptr_t char *
11076# define const
11077#endif
11078
11079/* The mapping between symbol names and symbols. */
11080const struct {
11081  const char *name;
11082  lt_ptr_t address;
11083}
11084lt_preloaded_symbols[] =
11085{
11086EOF
11087	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11088	  cat <<\EOF >> conftest.$ac_ext
11089  {0, (lt_ptr_t) 0}
11090};
11091
11092#ifdef __cplusplus
11093}
11094#endif
11095EOF
11096	  # Now try linking the two files.
11097	  mv conftest.$ac_objext conftstm.$ac_objext
11098	  lt_save_LIBS="$LIBS"
11099	  lt_save_CFLAGS="$CFLAGS"
11100	  LIBS="conftstm.$ac_objext"
11101	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11102	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103  (eval $ac_link) 2>&5
11104  ac_status=$?
11105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11107	    pipe_works=yes
11108	  fi
11109	  LIBS="$lt_save_LIBS"
11110	  CFLAGS="$lt_save_CFLAGS"
11111	else
11112	  echo "cannot find nm_test_func in $nlist" >&5
11113	fi
11114      else
11115	echo "cannot find nm_test_var in $nlist" >&5
11116      fi
11117    else
11118      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11119    fi
11120  else
11121    echo "$progname: failed program was:" >&5
11122    cat conftest.$ac_ext >&5
11123  fi
11124  rm -f conftest* conftst*
11125
11126  # Do not use the global_symbol_pipe unless it works.
11127  if test "$pipe_works" = yes; then
11128    break
11129  else
11130    lt_cv_sys_global_symbol_pipe=
11131  fi
11132done
11133
11134fi
11135
11136if test -z "$lt_cv_sys_global_symbol_pipe"; then
11137  lt_cv_sys_global_symbol_to_cdecl=
11138fi
11139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11140  echo "$as_me:$LINENO: result: failed" >&5
11141echo "${ECHO_T}failed" >&6
11142else
11143  echo "$as_me:$LINENO: result: ok" >&5
11144echo "${ECHO_T}ok" >&6
11145fi
11146
11147echo "$as_me:$LINENO: checking for objdir" >&5
11148echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11149if test "${lt_cv_objdir+set}" = set; then
11150  echo $ECHO_N "(cached) $ECHO_C" >&6
11151else
11152  rm -f .libs 2>/dev/null
11153mkdir .libs 2>/dev/null
11154if test -d .libs; then
11155  lt_cv_objdir=.libs
11156else
11157  # MS-DOS does not allow filenames that begin with a dot.
11158  lt_cv_objdir=_libs
11159fi
11160rmdir .libs 2>/dev/null
11161fi
11162echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11163echo "${ECHO_T}$lt_cv_objdir" >&6
11164objdir=$lt_cv_objdir
11165
11166
11167
11168
11169
11170case $host_os in
11171aix3*)
11172  # AIX sometimes has problems with the GCC collect2 program.  For some
11173  # reason, if we set the COLLECT_NAMES environment variable, the problems
11174  # vanish in a puff of smoke.
11175  if test "X${COLLECT_NAMES+set}" != Xset; then
11176    COLLECT_NAMES=
11177    export COLLECT_NAMES
11178  fi
11179  ;;
11180esac
11181
11182# Sed substitution that helps us do robust quoting.  It backslashifies
11183# metacharacters that are still active within double-quoted strings.
11184Xsed='sed -e s/^X//'
11185sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11186
11187# Same as above, but do not quote variable references.
11188double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11189
11190# Sed substitution to delay expansion of an escaped shell variable in a
11191# double_quote_subst'ed string.
11192delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11193
11194# Sed substitution to avoid accidental globbing in evaled expressions
11195no_glob_subst='s/\*/\\\*/g'
11196
11197# Constants:
11198rm="rm -f"
11199
11200# Global variables:
11201default_ofile=mklib
11202can_build_shared=yes
11203
11204# All known linkers require a `.a' archive for static linking (except M$VC,
11205# which needs '.lib').
11206libext=a
11207ltmain="$ac_aux_dir/ltmain.sh"
11208ofile="$default_ofile"
11209with_gnu_ld="$lt_cv_prog_gnu_ld"
11210
11211if test -n "$ac_tool_prefix"; then
11212  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11213set dummy ${ac_tool_prefix}ar; ac_word=$2
11214echo "$as_me:$LINENO: checking for $ac_word" >&5
11215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11216if test "${ac_cv_prog_AR+set}" = set; then
11217  echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219  if test -n "$AR"; then
11220  ac_cv_prog_AR="$AR" # Let the user override the test.
11221else
11222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $PATH
11224do
11225  IFS=$as_save_IFS
11226  test -z "$as_dir" && as_dir=.
11227  for ac_exec_ext in '' $ac_executable_extensions; do
11228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229    ac_cv_prog_AR="${ac_tool_prefix}ar"
11230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231    break 2
11232  fi
11233done
11234done
11235
11236fi
11237fi
11238AR=$ac_cv_prog_AR
11239if test -n "$AR"; then
11240  echo "$as_me:$LINENO: result: $AR" >&5
11241echo "${ECHO_T}$AR" >&6
11242else
11243  echo "$as_me:$LINENO: result: no" >&5
11244echo "${ECHO_T}no" >&6
11245fi
11246
11247fi
11248if test -z "$ac_cv_prog_AR"; then
11249  ac_ct_AR=$AR
11250  # Extract the first word of "ar", so it can be a program name with args.
11251set dummy ar; ac_word=$2
11252echo "$as_me:$LINENO: checking for $ac_word" >&5
11253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11255  echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257  if test -n "$ac_ct_AR"; then
11258  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263  IFS=$as_save_IFS
11264  test -z "$as_dir" && as_dir=.
11265  for ac_exec_ext in '' $ac_executable_extensions; do
11266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267    ac_cv_prog_ac_ct_AR="ar"
11268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269    break 2
11270  fi
11271done
11272done
11273
11274  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11275fi
11276fi
11277ac_ct_AR=$ac_cv_prog_ac_ct_AR
11278if test -n "$ac_ct_AR"; then
11279  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11280echo "${ECHO_T}$ac_ct_AR" >&6
11281else
11282  echo "$as_me:$LINENO: result: no" >&5
11283echo "${ECHO_T}no" >&6
11284fi
11285
11286  AR=$ac_ct_AR
11287else
11288  AR="$ac_cv_prog_AR"
11289fi
11290
11291if test -n "$ac_tool_prefix"; then
11292  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11293set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11294echo "$as_me:$LINENO: checking for $ac_word" >&5
11295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11296if test "${ac_cv_prog_RANLIB+set}" = set; then
11297  echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299  if test -n "$RANLIB"; then
11300  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11301else
11302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303for as_dir in $PATH
11304do
11305  IFS=$as_save_IFS
11306  test -z "$as_dir" && as_dir=.
11307  for ac_exec_ext in '' $ac_executable_extensions; do
11308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11311    break 2
11312  fi
11313done
11314done
11315
11316fi
11317fi
11318RANLIB=$ac_cv_prog_RANLIB
11319if test -n "$RANLIB"; then
11320  echo "$as_me:$LINENO: result: $RANLIB" >&5
11321echo "${ECHO_T}$RANLIB" >&6
11322else
11323  echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325fi
11326
11327fi
11328if test -z "$ac_cv_prog_RANLIB"; then
11329  ac_ct_RANLIB=$RANLIB
11330  # Extract the first word of "ranlib", so it can be a program name with args.
11331set dummy ranlib; ac_word=$2
11332echo "$as_me:$LINENO: checking for $ac_word" >&5
11333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11334if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11335  echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337  if test -n "$ac_ct_RANLIB"; then
11338  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11339else
11340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $PATH
11342do
11343  IFS=$as_save_IFS
11344  test -z "$as_dir" && as_dir=.
11345  for ac_exec_ext in '' $ac_executable_extensions; do
11346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347    ac_cv_prog_ac_ct_RANLIB="ranlib"
11348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349    break 2
11350  fi
11351done
11352done
11353
11354  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11355fi
11356fi
11357ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11358if test -n "$ac_ct_RANLIB"; then
11359  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11360echo "${ECHO_T}$ac_ct_RANLIB" >&6
11361else
11362  echo "$as_me:$LINENO: result: no" >&5
11363echo "${ECHO_T}no" >&6
11364fi
11365
11366  RANLIB=$ac_ct_RANLIB
11367else
11368  RANLIB="$ac_cv_prog_RANLIB"
11369fi
11370
11371if test -n "$ac_tool_prefix"; then
11372  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11373set dummy ${ac_tool_prefix}strip; ac_word=$2
11374echo "$as_me:$LINENO: checking for $ac_word" >&5
11375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11376if test "${ac_cv_prog_STRIP+set}" = set; then
11377  echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379  if test -n "$STRIP"; then
11380  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385  IFS=$as_save_IFS
11386  test -z "$as_dir" && as_dir=.
11387  for ac_exec_ext in '' $ac_executable_extensions; do
11388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11389    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11391    break 2
11392  fi
11393done
11394done
11395
11396fi
11397fi
11398STRIP=$ac_cv_prog_STRIP
11399if test -n "$STRIP"; then
11400  echo "$as_me:$LINENO: result: $STRIP" >&5
11401echo "${ECHO_T}$STRIP" >&6
11402else
11403  echo "$as_me:$LINENO: result: no" >&5
11404echo "${ECHO_T}no" >&6
11405fi
11406
11407fi
11408if test -z "$ac_cv_prog_STRIP"; then
11409  ac_ct_STRIP=$STRIP
11410  # Extract the first word of "strip", so it can be a program name with args.
11411set dummy strip; ac_word=$2
11412echo "$as_me:$LINENO: checking for $ac_word" >&5
11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11414if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11415  echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417  if test -n "$ac_ct_STRIP"; then
11418  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11419else
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423  IFS=$as_save_IFS
11424  test -z "$as_dir" && as_dir=.
11425  for ac_exec_ext in '' $ac_executable_extensions; do
11426  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427    ac_cv_prog_ac_ct_STRIP="strip"
11428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429    break 2
11430  fi
11431done
11432done
11433
11434  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11435fi
11436fi
11437ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11438if test -n "$ac_ct_STRIP"; then
11439  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11440echo "${ECHO_T}$ac_ct_STRIP" >&6
11441else
11442  echo "$as_me:$LINENO: result: no" >&5
11443echo "${ECHO_T}no" >&6
11444fi
11445
11446  STRIP=$ac_ct_STRIP
11447else
11448  STRIP="$ac_cv_prog_STRIP"
11449fi
11450
11451
11452old_CC="$CC"
11453old_CFLAGS="$CFLAGS"
11454
11455# Set sane defaults for various variables
11456test -z "$AR" && AR=ar
11457test -z "$AR_FLAGS" && AR_FLAGS=cru
11458test -z "$AS" && AS=as
11459test -z "$CC" && CC=cc
11460test -z "$LTCC" && LTCC=$CC
11461test -z "$DLLTOOL" && DLLTOOL=dlltool
11462test -z "$LD" && LD=ld
11463test -z "$LN_S" && LN_S="ln -s"
11464test -z "$MAGIC_CMD" && MAGIC_CMD=file
11465test -z "$NM" && NM=nm
11466test -z "$SED" && SED=sed
11467test -z "$OBJDUMP" && OBJDUMP=objdump
11468test -z "$RANLIB" && RANLIB=:
11469test -z "$STRIP" && STRIP=:
11470test -z "$ac_objext" && ac_objext=o
11471
11472# Determine commands to create old-style static archives.
11473old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11474old_postinstall_cmds='chmod 644 $oldlib'
11475old_postuninstall_cmds=
11476
11477if test -n "$RANLIB"; then
11478  case $host_os in
11479  openbsd*)
11480    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11481    ;;
11482  *)
11483    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11484    ;;
11485  esac
11486  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11487fi
11488
11489cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11490
11491# Only perform the check for file, if the check method requires it
11492case $deplibs_check_method in
11493file_magic*)
11494  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11495    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11496echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11497if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11498  echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500  case $MAGIC_CMD in
11501[\\/*] |  ?:[\\/]*)
11502  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11503  ;;
11504*)
11505  lt_save_MAGIC_CMD="$MAGIC_CMD"
11506  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11507  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11508  for ac_dir in $ac_dummy; do
11509    IFS="$lt_save_ifs"
11510    test -z "$ac_dir" && ac_dir=.
11511    if test -f $ac_dir/${ac_tool_prefix}file; then
11512      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11513      if test -n "$file_magic_test_file"; then
11514	case $deplibs_check_method in
11515	"file_magic "*)
11516	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11517	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11518	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11519	    $EGREP "$file_magic_regex" > /dev/null; then
11520	    :
11521	  else
11522	    cat <<EOF 1>&2
11523
11524*** Warning: the command libtool uses to detect shared libraries,
11525*** $file_magic_cmd, produces output that libtool cannot recognize.
11526*** The result is that libtool may fail to recognize shared libraries
11527*** as such.  This will affect the creation of libtool libraries that
11528*** depend on shared libraries, but programs linked with such libtool
11529*** libraries will work regardless of this problem.  Nevertheless, you
11530*** may want to report the problem to your system manager and/or to
11531*** bug-libtool@gnu.org
11532
11533EOF
11534	  fi ;;
11535	esac
11536      fi
11537      break
11538    fi
11539  done
11540  IFS="$lt_save_ifs"
11541  MAGIC_CMD="$lt_save_MAGIC_CMD"
11542  ;;
11543esac
11544fi
11545
11546MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11547if test -n "$MAGIC_CMD"; then
11548  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11549echo "${ECHO_T}$MAGIC_CMD" >&6
11550else
11551  echo "$as_me:$LINENO: result: no" >&5
11552echo "${ECHO_T}no" >&6
11553fi
11554
11555if test -z "$lt_cv_path_MAGIC_CMD"; then
11556  if test -n "$ac_tool_prefix"; then
11557    echo "$as_me:$LINENO: checking for file" >&5
11558echo $ECHO_N "checking for file... $ECHO_C" >&6
11559if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11560  echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562  case $MAGIC_CMD in
11563[\\/*] |  ?:[\\/]*)
11564  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11565  ;;
11566*)
11567  lt_save_MAGIC_CMD="$MAGIC_CMD"
11568  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11570  for ac_dir in $ac_dummy; do
11571    IFS="$lt_save_ifs"
11572    test -z "$ac_dir" && ac_dir=.
11573    if test -f $ac_dir/file; then
11574      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11575      if test -n "$file_magic_test_file"; then
11576	case $deplibs_check_method in
11577	"file_magic "*)
11578	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11579	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11580	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11581	    $EGREP "$file_magic_regex" > /dev/null; then
11582	    :
11583	  else
11584	    cat <<EOF 1>&2
11585
11586*** Warning: the command libtool uses to detect shared libraries,
11587*** $file_magic_cmd, produces output that libtool cannot recognize.
11588*** The result is that libtool may fail to recognize shared libraries
11589*** as such.  This will affect the creation of libtool libraries that
11590*** depend on shared libraries, but programs linked with such libtool
11591*** libraries will work regardless of this problem.  Nevertheless, you
11592*** may want to report the problem to your system manager and/or to
11593*** bug-libtool@gnu.org
11594
11595EOF
11596	  fi ;;
11597	esac
11598      fi
11599      break
11600    fi
11601  done
11602  IFS="$lt_save_ifs"
11603  MAGIC_CMD="$lt_save_MAGIC_CMD"
11604  ;;
11605esac
11606fi
11607
11608MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11609if test -n "$MAGIC_CMD"; then
11610  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11611echo "${ECHO_T}$MAGIC_CMD" >&6
11612else
11613  echo "$as_me:$LINENO: result: no" >&5
11614echo "${ECHO_T}no" >&6
11615fi
11616
11617  else
11618    MAGIC_CMD=:
11619  fi
11620fi
11621
11622  fi
11623  ;;
11624esac
11625
11626enable_dlopen=yes
11627enable_win32_dll=no
11628
11629# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11630if test "${enable_libtool_lock+set}" = set; then
11631  enableval="$enable_libtool_lock"
11632
11633fi;
11634test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11635
11636
11637# Check whether --with-pic or --without-pic was given.
11638if test "${with_pic+set}" = set; then
11639  withval="$with_pic"
11640  pic_mode="$withval"
11641else
11642  pic_mode=default
11643fi;
11644test -z "$pic_mode" && pic_mode=default
11645
11646# Use C for the default configuration in the libtool script
11647tagname=
11648lt_save_CC="$CC"
11649ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655
11656# Source file extension for C test sources.
11657ac_ext=c
11658
11659# Object file extension for compiled C test sources.
11660objext=o
11661objext=$objext
11662
11663# Code to be used in simple compile tests
11664lt_simple_compile_test_code="int some_variable = 0;\n"
11665
11666# Code to be used in simple link tests
11667lt_simple_link_test_code='int main(){return(0);}\n'
11668
11669
11670# If no C compiler was specified, use CC.
11671LTCC=${LTCC-"$CC"}
11672
11673# Allow CC to be a program name with arguments.
11674compiler=$CC
11675
11676
11677#
11678# Check for any special shared library compilation flags.
11679#
11680lt_prog_cc_shlib=
11681if test "$GCC" = no; then
11682  case $host_os in
11683  sco3.2v5*)
11684    lt_prog_cc_shlib='-belf'
11685    ;;
11686  esac
11687fi
11688if test -n "$lt_prog_cc_shlib"; then
11689  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11690echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11691  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11692  else
11693    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11694echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11695    lt_cv_prog_cc_can_build_shared=no
11696  fi
11697fi
11698
11699
11700#
11701# Check to make sure the static flag actually works.
11702#
11703echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11704echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11705if test "${lt_prog_compiler_static_works+set}" = set; then
11706  echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708  lt_prog_compiler_static_works=no
11709   save_LDFLAGS="$LDFLAGS"
11710   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11713     # The compiler can only warn and ignore the option if not recognized
11714     # So say no if there are warnings
11715     if test -s conftest.err; then
11716       # Append any errors to the config.log.
11717       cat conftest.err 1>&5
11718     else
11719       lt_prog_compiler_static_works=yes
11720     fi
11721   fi
11722   $rm conftest*
11723   LDFLAGS="$save_LDFLAGS"
11724
11725fi
11726echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11727echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11728
11729if test x"$lt_prog_compiler_static_works" = xyes; then
11730    :
11731else
11732    lt_prog_compiler_static=
11733fi
11734
11735
11736
11737
11738lt_prog_compiler_no_builtin_flag=
11739
11740if test "$GCC" = yes; then
11741  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11742
11743
11744echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11745echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11746if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11747  echo $ECHO_N "(cached) $ECHO_C" >&6
11748else
11749  lt_cv_prog_compiler_rtti_exceptions=no
11750  ac_outfile=conftest.$ac_objext
11751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11752   lt_compiler_flag="-fno-rtti -fno-exceptions"
11753   # Insert the option either (1) after the last *FLAGS variable, or
11754   # (2) before a word containing "conftest.", or (3) at the end.
11755   # Note that $ac_compile itself does not contain backslashes and begins
11756   # with a dollar sign (not a hyphen), so the echo should work correctly.
11757   # The option is referenced via a variable to avoid confusing sed.
11758   lt_compile=`echo "$ac_compile" | $SED \
11759   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11761   -e 's:$: $lt_compiler_flag:'`
11762   (eval echo "\"\$as_me:11761: $lt_compile\"" >&5)
11763   (eval "$lt_compile" 2>conftest.err)
11764   ac_status=$?
11765   cat conftest.err >&5
11766   echo "$as_me:11765: \$? = $ac_status" >&5
11767   if (exit $ac_status) && test -s "$ac_outfile"; then
11768     # The compiler can only warn and ignore the option if not recognized
11769     # So say no if there are warnings
11770     if test ! -s conftest.err; then
11771       lt_cv_prog_compiler_rtti_exceptions=yes
11772     fi
11773   fi
11774   $rm conftest*
11775
11776fi
11777echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11778echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11779
11780if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11781    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11782else
11783    :
11784fi
11785
11786fi
11787
11788lt_prog_compiler_wl=
11789lt_prog_compiler_pic=
11790lt_prog_compiler_static=
11791
11792echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11793echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11794
11795  if test "$GCC" = yes; then
11796    lt_prog_compiler_wl='-Wl,'
11797    lt_prog_compiler_static='-static'
11798
11799    case $host_os in
11800      aix*)
11801      # All AIX code is PIC.
11802      if test "$host_cpu" = ia64; then
11803	# AIX 5 now supports IA64 processor
11804	lt_prog_compiler_static='-Bstatic'
11805      fi
11806      ;;
11807
11808    amigaos*)
11809      # FIXME: we need at least 68020 code to build shared libraries, but
11810      # adding the `-m68020' flag to GCC prevents building anything better,
11811      # like `-m68040'.
11812      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11813      ;;
11814
11815    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11816      # PIC is the default for these OSes.
11817      ;;
11818
11819    mingw* | pw32* | os2*)
11820      # This hack is so that the source file can tell whether it is being
11821      # built for inclusion in a dll (and should export symbols for example).
11822      lt_prog_compiler_pic='-DDLL_EXPORT'
11823      ;;
11824
11825    darwin* | rhapsody*)
11826      # PIC is the default on this platform
11827      # Common symbols not allowed in MH_DYLIB files
11828      lt_prog_compiler_pic='-fno-common'
11829      ;;
11830
11831    msdosdjgpp*)
11832      # Just because we use GCC doesn't mean we suddenly get shared libraries
11833      # on systems that don't support them.
11834      lt_prog_compiler_can_build_shared=no
11835      enable_shared=no
11836      ;;
11837
11838    sysv4*MP*)
11839      if test -d /usr/nec; then
11840	lt_prog_compiler_pic=-Kconform_pic
11841      fi
11842      ;;
11843
11844    hpux*)
11845      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11846      # not for PA HP-UX.
11847      case "$host_cpu" in
11848      hppa*64*|ia64*)
11849	# +Z the default
11850	;;
11851      *)
11852	lt_prog_compiler_pic='-fPIC'
11853	;;
11854      esac
11855      ;;
11856
11857    *)
11858      lt_prog_compiler_pic='-fPIC'
11859      ;;
11860    esac
11861  else
11862    # PORTME Check for flag to pass linker flags through the system compiler.
11863    case $host_os in
11864    aix*)
11865      lt_prog_compiler_wl='-Wl,'
11866      if test "$host_cpu" = ia64; then
11867	# AIX 5 now supports IA64 processor
11868	lt_prog_compiler_static='-Bstatic'
11869      else
11870	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11871      fi
11872      ;;
11873      darwin*)
11874        # PIC is the default on this platform
11875        # Common symbols not allowed in MH_DYLIB files
11876       case "$cc_basename" in
11877         xlc*)
11878         lt_prog_compiler_pic='-qnocommon'
11879         lt_prog_compiler_wl='-Wl,'
11880         ;;
11881       esac
11882       ;;
11883
11884    mingw* | pw32* | os2*)
11885      # This hack is so that the source file can tell whether it is being
11886      # built for inclusion in a dll (and should export symbols for example).
11887      lt_prog_compiler_pic='-DDLL_EXPORT'
11888      ;;
11889
11890    hpux9* | hpux10* | hpux11*)
11891      lt_prog_compiler_wl='-Wl,'
11892      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11893      # not for PA HP-UX.
11894      case "$host_cpu" in
11895      hppa*64*|ia64*)
11896	# +Z the default
11897	;;
11898      *)
11899	lt_prog_compiler_pic='+Z'
11900	;;
11901      esac
11902      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11903      lt_prog_compiler_static='${wl}-a ${wl}archive'
11904      ;;
11905
11906    irix5* | irix6* | nonstopux*)
11907      lt_prog_compiler_wl='-Wl,'
11908      # PIC (with -KPIC) is the default.
11909      lt_prog_compiler_static='-non_shared'
11910      ;;
11911
11912    newsos6)
11913      lt_prog_compiler_pic='-KPIC'
11914      lt_prog_compiler_static='-Bstatic'
11915      ;;
11916
11917    linux*)
11918      case $CC in
11919      icc* | ecc*)
11920	lt_prog_compiler_wl='-Wl,'
11921	lt_prog_compiler_pic='-KPIC'
11922	lt_prog_compiler_static='-static'
11923        ;;
11924      ccc*)
11925        lt_prog_compiler_wl='-Wl,'
11926        # All Alpha code is PIC.
11927        lt_prog_compiler_static='-non_shared'
11928        ;;
11929      esac
11930      ;;
11931
11932    osf3* | osf4* | osf5*)
11933      lt_prog_compiler_wl='-Wl,'
11934      # All OSF/1 code is PIC.
11935      lt_prog_compiler_static='-non_shared'
11936      ;;
11937
11938    sco3.2v5*)
11939      lt_prog_compiler_pic='-Kpic'
11940      lt_prog_compiler_static='-dn'
11941      ;;
11942
11943    solaris*)
11944      lt_prog_compiler_wl='-Wl,'
11945      lt_prog_compiler_pic='-KPIC'
11946      lt_prog_compiler_static='-Bstatic'
11947      ;;
11948
11949    sunos4*)
11950      lt_prog_compiler_wl='-Qoption ld '
11951      lt_prog_compiler_pic='-PIC'
11952      lt_prog_compiler_static='-Bstatic'
11953      ;;
11954
11955    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11956      lt_prog_compiler_wl='-Wl,'
11957      lt_prog_compiler_pic='-KPIC'
11958      lt_prog_compiler_static='-Bstatic'
11959      ;;
11960
11961    sysv4*MP*)
11962      if test -d /usr/nec ;then
11963	lt_prog_compiler_pic='-Kconform_pic'
11964	lt_prog_compiler_static='-Bstatic'
11965      fi
11966      ;;
11967
11968    uts4*)
11969      lt_prog_compiler_pic='-pic'
11970      lt_prog_compiler_static='-Bstatic'
11971      ;;
11972
11973    *)
11974      lt_prog_compiler_can_build_shared=no
11975      ;;
11976    esac
11977  fi
11978
11979echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11980echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11981
11982#
11983# Check to make sure the PIC flag actually works.
11984#
11985if test -n "$lt_prog_compiler_pic"; then
11986
11987echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11988echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11989if test "${lt_prog_compiler_pic_works+set}" = set; then
11990  echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992  lt_prog_compiler_pic_works=no
11993  ac_outfile=conftest.$ac_objext
11994   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11995   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11996   # Insert the option either (1) after the last *FLAGS variable, or
11997   # (2) before a word containing "conftest.", or (3) at the end.
11998   # Note that $ac_compile itself does not contain backslashes and begins
11999   # with a dollar sign (not a hyphen), so the echo should work correctly.
12000   # The option is referenced via a variable to avoid confusing sed.
12001   lt_compile=`echo "$ac_compile" | $SED \
12002   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12004   -e 's:$: $lt_compiler_flag:'`
12005   (eval echo "\"\$as_me:12004: $lt_compile\"" >&5)
12006   (eval "$lt_compile" 2>conftest.err)
12007   ac_status=$?
12008   cat conftest.err >&5
12009   echo "$as_me:12008: \$? = $ac_status" >&5
12010   if (exit $ac_status) && test -s "$ac_outfile"; then
12011     # The compiler can only warn and ignore the option if not recognized
12012     # So say no if there are warnings
12013     if test ! -s conftest.err; then
12014       lt_prog_compiler_pic_works=yes
12015     fi
12016   fi
12017   $rm conftest*
12018
12019fi
12020echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12021echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12022
12023if test x"$lt_prog_compiler_pic_works" = xyes; then
12024    case $lt_prog_compiler_pic in
12025     "" | " "*) ;;
12026     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12027     esac
12028else
12029    lt_prog_compiler_pic=
12030     lt_prog_compiler_can_build_shared=no
12031fi
12032
12033fi
12034case "$host_os" in
12035  # For platforms which do not support PIC, -DPIC is meaningless:
12036  *djgpp*)
12037    lt_prog_compiler_pic=
12038    ;;
12039  *)
12040    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12041    ;;
12042esac
12043
12044echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12045echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12046if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12047  echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049  lt_cv_prog_compiler_c_o=no
12050   $rm -r conftest 2>/dev/null
12051   mkdir conftest
12052   cd conftest
12053   mkdir out
12054   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12055
12056   lt_compiler_flag="-o out/conftest2.$ac_objext"
12057   # Insert the option either (1) after the last *FLAGS variable, or
12058   # (2) before a word containing "conftest.", or (3) at the end.
12059   # Note that $ac_compile itself does not contain backslashes and begins
12060   # with a dollar sign (not a hyphen), so the echo should work correctly.
12061   lt_compile=`echo "$ac_compile" | $SED \
12062   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12064   -e 's:$: $lt_compiler_flag:'`
12065   (eval echo "\"\$as_me:12064: $lt_compile\"" >&5)
12066   (eval "$lt_compile" 2>out/conftest.err)
12067   ac_status=$?
12068   cat out/conftest.err >&5
12069   echo "$as_me:12068: \$? = $ac_status" >&5
12070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12071   then
12072     # The compiler can only warn and ignore the option if not recognized
12073     # So say no if there are warnings
12074     if test ! -s out/conftest.err; then
12075       lt_cv_prog_compiler_c_o=yes
12076     fi
12077   fi
12078   chmod u+w .
12079   $rm conftest*
12080   # SGI C++ compiler will create directory out/ii_files/ for
12081   # template instantiation
12082   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12083   $rm out/* && rmdir out
12084   cd ..
12085   rmdir conftest
12086   $rm conftest*
12087
12088fi
12089echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12090echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12091
12092
12093hard_links="nottested"
12094if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12095  # do not overwrite the value of need_locks provided by the user
12096  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12097echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12098  hard_links=yes
12099  $rm conftest*
12100  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12101  touch conftest.a
12102  ln conftest.a conftest.b 2>&5 || hard_links=no
12103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12104  echo "$as_me:$LINENO: result: $hard_links" >&5
12105echo "${ECHO_T}$hard_links" >&6
12106  if test "$hard_links" = no; then
12107    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12108echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12109    need_locks=warn
12110  fi
12111else
12112  need_locks=no
12113fi
12114
12115echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12116echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12117
12118  runpath_var=
12119  allow_undefined_flag=
12120  enable_shared_with_static_runtimes=no
12121  archive_cmds=
12122  archive_expsym_cmds=
12123  old_archive_From_new_cmds=
12124  old_archive_from_expsyms_cmds=
12125  export_dynamic_flag_spec=
12126  whole_archive_flag_spec=
12127  thread_safe_flag_spec=
12128  hardcode_libdir_flag_spec=
12129  hardcode_libdir_flag_spec_ld=
12130  hardcode_libdir_separator=
12131  hardcode_direct=no
12132  hardcode_minus_L=no
12133  hardcode_shlibpath_var=unsupported
12134  link_all_deplibs=unknown
12135  hardcode_automatic=no
12136  module_cmds=
12137  module_expsym_cmds=
12138  always_export_symbols=no
12139  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12140  # include_expsyms should be a list of space-separated symbols to be *always*
12141  # included in the symbol list
12142  include_expsyms=
12143  # exclude_expsyms can be an extended regexp of symbols to exclude
12144  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12145  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12146  # as well as any symbol that contains `d'.
12147  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12148  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12149  # platforms (ab)use it in PIC code, but their linkers get confused if
12150  # the symbol is explicitly referenced.  Since portable code cannot
12151  # rely on this symbol name, it's probably fine to never include it in
12152  # preloaded symbol tables.
12153  extract_expsyms_cmds=
12154
12155  case $host_os in
12156  cygwin* | mingw* | pw32*)
12157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12158    # When not using gcc, we currently assume that we are using
12159    # Microsoft Visual C++.
12160    if test "$GCC" != yes; then
12161      with_gnu_ld=no
12162    fi
12163    ;;
12164  openbsd*)
12165    with_gnu_ld=no
12166    ;;
12167  esac
12168
12169  ld_shlibs=yes
12170  if test "$with_gnu_ld" = yes; then
12171    # If archive_cmds runs LD, not CC, wlarc should be empty
12172    wlarc='${wl}'
12173
12174    # See if GNU ld supports shared libraries.
12175    case $host_os in
12176    aix3* | aix4* | aix5*)
12177      # On AIX/PPC, the GNU linker is very broken
12178      if test "$host_cpu" != ia64; then
12179	ld_shlibs=no
12180	cat <<EOF 1>&2
12181
12182*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12183*** to be unable to reliably create shared libraries on AIX.
12184*** Therefore, libtool is disabling shared libraries support.  If you
12185*** really care for shared libraries, you may want to modify your PATH
12186*** so that a non-GNU linker is found, and then restart.
12187
12188EOF
12189      fi
12190      ;;
12191
12192    amigaos*)
12193      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)'
12194      hardcode_libdir_flag_spec='-L$libdir'
12195      hardcode_minus_L=yes
12196
12197      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12198      # that the semantics of dynamic libraries on AmigaOS, at least up
12199      # to version 4, is to share data among multiple programs linked
12200      # with the same dynamic library.  Since this doesn't match the
12201      # behavior of shared libraries on other platforms, we can't use
12202      # them.
12203      ld_shlibs=no
12204      ;;
12205
12206    beos*)
12207      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12208	allow_undefined_flag=unsupported
12209	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12210	# support --undefined.  This deserves some investigation.  FIXME
12211	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212      else
12213	ld_shlibs=no
12214      fi
12215      ;;
12216
12217    cygwin* | mingw* | pw32*)
12218      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12219      # as there is no search path for DLLs.
12220      hardcode_libdir_flag_spec='-L$libdir'
12221      allow_undefined_flag=unsupported
12222      always_export_symbols=no
12223      enable_shared_with_static_runtimes=yes
12224      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12225
12226      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12227        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12228	# If the export-symbols file already is a .def file (1st line
12229	# is EXPORTS), use it as is; otherwise, prepend...
12230	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12231	  cp $export_symbols $output_objdir/$soname.def;
12232	else
12233	  echo EXPORTS > $output_objdir/$soname.def;
12234	  cat $export_symbols >> $output_objdir/$soname.def;
12235	fi~
12236	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12237      else
12238	ld_shlibs=no
12239      fi
12240      ;;
12241
12242    netbsd*)
12243      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12244	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12245	wlarc=
12246      else
12247	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12249      fi
12250      ;;
12251
12252    solaris* | sysv5*)
12253      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12254	ld_shlibs=no
12255	cat <<EOF 1>&2
12256
12257*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12258*** create shared libraries on Solaris systems.  Therefore, libtool
12259*** is disabling shared libraries support.  We urge you to upgrade GNU
12260*** binutils to release 2.9.1 or newer.  Another option is to modify
12261*** your PATH or compiler configuration so that the native linker is
12262*** used, and then restart.
12263
12264EOF
12265      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12266	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12267	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12268      else
12269	ld_shlibs=no
12270      fi
12271      ;;
12272
12273    sunos4*)
12274      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12275      wlarc=
12276      hardcode_direct=yes
12277      hardcode_shlibpath_var=no
12278      ;;
12279
12280  linux*)
12281    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12282        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12283	archive_cmds="$tmp_archive_cmds"
12284      supports_anon_versioning=no
12285      case `$LD -v 2>/dev/null` in
12286        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12287        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12288        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12289        *\ 2.11.*) ;; # other 2.11 versions
12290        *) supports_anon_versioning=yes ;;
12291      esac
12292      if test $supports_anon_versioning = yes; then
12293        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12294cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12295$echo "local: *; };" >> $output_objdir/$libname.ver~
12296        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12297      else
12298        archive_expsym_cmds="$tmp_archive_cmds"
12299      fi
12300    else
12301      ld_shlibs=no
12302    fi
12303    ;;
12304
12305    *)
12306      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12307	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12308	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12309      else
12310	ld_shlibs=no
12311      fi
12312      ;;
12313    esac
12314
12315    if test "$ld_shlibs" = yes; then
12316      runpath_var=LD_RUN_PATH
12317      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12318      export_dynamic_flag_spec='${wl}--export-dynamic'
12319      # ancient GNU ld didn't support --whole-archive et. al.
12320      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12321 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12322      else
12323  	whole_archive_flag_spec=
12324      fi
12325    fi
12326  else
12327    # PORTME fill in a description of your system's linker (not GNU ld)
12328    case $host_os in
12329    aix3*)
12330      allow_undefined_flag=unsupported
12331      always_export_symbols=yes
12332      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'
12333      # Note: this linker hardcodes the directories in LIBPATH if there
12334      # are no directories specified by -L.
12335      hardcode_minus_L=yes
12336      if test "$GCC" = yes && test -z "$link_static_flag"; then
12337	# Neither direct hardcoding nor static linking is supported with a
12338	# broken collect2.
12339	hardcode_direct=unsupported
12340      fi
12341      ;;
12342
12343    aix4* | aix5*)
12344      if test "$host_cpu" = ia64; then
12345	# On IA64, the linker does run time linking by default, so we don't
12346	# have to do anything special.
12347	aix_use_runtimelinking=no
12348	exp_sym_flag='-Bexport'
12349	no_entry_flag=""
12350      else
12351	# If we're using GNU nm, then we don't want the "-C" option.
12352	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12353	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12354	  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'
12355	else
12356	  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'
12357	fi
12358	aix_use_runtimelinking=no
12359
12360	# Test if we are trying to use run time linking or normal
12361	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12362	# need to do runtime linking.
12363	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12364	  for ld_flag in $LDFLAGS; do
12365  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12366  	    aix_use_runtimelinking=yes
12367  	    break
12368  	  fi
12369	  done
12370	esac
12371
12372	exp_sym_flag='-bexport'
12373	no_entry_flag='-bnoentry'
12374      fi
12375
12376      # When large executables or shared objects are built, AIX ld can
12377      # have problems creating the table of contents.  If linking a library
12378      # or program results in "error TOC overflow" add -mminimal-toc to
12379      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12380      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12381
12382      archive_cmds=''
12383      hardcode_direct=yes
12384      hardcode_libdir_separator=':'
12385      link_all_deplibs=yes
12386
12387      if test "$GCC" = yes; then
12388	case $host_os in aix4.012|aix4.012.*)
12389	# We only want to do this on AIX 4.2 and lower, the check
12390	# below for broken collect2 doesn't work under 4.3+
12391	  collect2name=`${CC} -print-prog-name=collect2`
12392	  if test -f "$collect2name" && \
12393  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12394	  then
12395  	  # We have reworked collect2
12396  	  hardcode_direct=yes
12397	  else
12398  	  # We have old collect2
12399  	  hardcode_direct=unsupported
12400  	  # It fails to find uninstalled libraries when the uninstalled
12401  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12402  	  # to unsupported forces relinking
12403  	  hardcode_minus_L=yes
12404  	  hardcode_libdir_flag_spec='-L$libdir'
12405  	  hardcode_libdir_separator=
12406	  fi
12407	esac
12408	shared_flag='-shared'
12409      else
12410	# not using gcc
12411	if test "$host_cpu" = ia64; then
12412  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12413  	# chokes on -Wl,-G. The following line is correct:
12414	  shared_flag='-G'
12415	else
12416  	if test "$aix_use_runtimelinking" = yes; then
12417	    shared_flag='${wl}-G'
12418	  else
12419	    shared_flag='${wl}-bM:SRE'
12420  	fi
12421	fi
12422      fi
12423
12424      # It seems that -bexpall does not export symbols beginning with
12425      # underscore (_), so it is better to generate a list of symbols to export.
12426      always_export_symbols=yes
12427      if test "$aix_use_runtimelinking" = yes; then
12428	# Warning - without using the other runtime loading flags (-brtl),
12429	# -berok will link without error, but may produce a broken library.
12430	allow_undefined_flag='-berok'
12431       # Determine the default libpath from the value encoded in an empty executable.
12432       cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h.  */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h.  */
12438
12439int
12440main ()
12441{
12442
12443  ;
12444  return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext conftest$ac_exeext
12448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449  (eval $ac_link) 2>conftest.er1
12450  ac_status=$?
12451  grep -v '^ *+' conftest.er1 >conftest.err
12452  rm -f conftest.er1
12453  cat conftest.err >&5
12454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455  (exit $ac_status); } &&
12456	 { ac_try='test -z "$ac_c_werror_flag"
12457			 || test ! -s conftest.err'
12458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459  (eval $ac_try) 2>&5
12460  ac_status=$?
12461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462  (exit $ac_status); }; } &&
12463	 { ac_try='test -s conftest$ac_exeext'
12464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465  (eval $ac_try) 2>&5
12466  ac_status=$?
12467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468  (exit $ac_status); }; }; then
12469
12470aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12471}'`
12472# Check for a 64-bit object if we didn't find anything.
12473if 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; }
12474}'`; fi
12475else
12476  echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479fi
12480rm -f conftest.err conftest.$ac_objext \
12481      conftest$ac_exeext conftest.$ac_ext
12482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12483
12484       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12485	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"
12486       else
12487	if test "$host_cpu" = ia64; then
12488	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12489	  allow_undefined_flag="-z nodefs"
12490	  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"
12491	else
12492	 # Determine the default libpath from the value encoded in an empty executable.
12493	 cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h.  */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h.  */
12499
12500int
12501main ()
12502{
12503
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext conftest$ac_exeext
12509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510  (eval $ac_link) 2>conftest.er1
12511  ac_status=$?
12512  grep -v '^ *+' conftest.er1 >conftest.err
12513  rm -f conftest.er1
12514  cat conftest.err >&5
12515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516  (exit $ac_status); } &&
12517	 { ac_try='test -z "$ac_c_werror_flag"
12518			 || test ! -s conftest.err'
12519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520  (eval $ac_try) 2>&5
12521  ac_status=$?
12522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523  (exit $ac_status); }; } &&
12524	 { ac_try='test -s conftest$ac_exeext'
12525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526  (eval $ac_try) 2>&5
12527  ac_status=$?
12528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529  (exit $ac_status); }; }; then
12530
12531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12532}'`
12533# Check for a 64-bit object if we didn't find anything.
12534if 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; }
12535}'`; fi
12536else
12537  echo "$as_me: failed program was:" >&5
12538sed 's/^/| /' conftest.$ac_ext >&5
12539
12540fi
12541rm -f conftest.err conftest.$ac_objext \
12542      conftest$ac_exeext conftest.$ac_ext
12543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12544
12545	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12546	  # Warning - without using the other run time loading flags,
12547	  # -berok will link without error, but may produce a broken library.
12548	  no_undefined_flag=' ${wl}-bernotok'
12549	  allow_undefined_flag=' ${wl}-berok'
12550	  # -bexpall does not export symbols beginning with underscore (_)
12551	  always_export_symbols=yes
12552	  # Exported symbols can be pulled into shared objects from archives
12553	  whole_archive_flag_spec=' '
12554	  archive_cmds_need_lc=yes
12555	  # This is similar to how AIX traditionally builds it's shared libraries.
12556	  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'
12557	fi
12558      fi
12559      ;;
12560
12561    amigaos*)
12562      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)'
12563      hardcode_libdir_flag_spec='-L$libdir'
12564      hardcode_minus_L=yes
12565      # see comment about different semantics on the GNU ld section
12566      ld_shlibs=no
12567      ;;
12568
12569    bsdi[45]*)
12570      export_dynamic_flag_spec=-rdynamic
12571      ;;
12572
12573    cygwin* | mingw* | pw32*)
12574      # When not using gcc, we currently assume that we are using
12575      # Microsoft Visual C++.
12576      # hardcode_libdir_flag_spec is actually meaningless, as there is
12577      # no search path for DLLs.
12578      hardcode_libdir_flag_spec=' '
12579      allow_undefined_flag=unsupported
12580      # Tell ltmain to make .lib files, not .a files.
12581      libext=lib
12582      # Tell ltmain to make .dll files, not .so files.
12583      shrext_cmds=".dll"
12584      # FIXME: Setting linknames here is a bad hack.
12585      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12586      # The linker will automatically build a .lib file if we build a DLL.
12587      old_archive_From_new_cmds='true'
12588      # FIXME: Should let the user specify the lib program.
12589      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12590      fix_srcfile_path='`cygpath -w "$srcfile"`'
12591      enable_shared_with_static_runtimes=yes
12592      ;;
12593
12594    darwin* | rhapsody*)
12595      case "$host_os" in
12596        rhapsody* | darwin1.[012])
12597         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12598         ;;
12599       *) # Darwin 1.3 on
12600         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12601           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12602         else
12603           case ${MACOSX_DEPLOYMENT_TARGET} in
12604             10.[012])
12605               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12606               ;;
12607             10.*)
12608               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12609               ;;
12610           esac
12611         fi
12612         ;;
12613      esac
12614      archive_cmds_need_lc=no
12615      hardcode_direct=no
12616      hardcode_automatic=yes
12617      hardcode_shlibpath_var=unsupported
12618      whole_archive_flag_spec=''
12619      link_all_deplibs=yes
12620    if test "$GCC" = yes ; then
12621    	output_verbose_link_cmd='echo'
12622        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12623      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12624      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12625      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}'
12626      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}'
12627    else
12628      case "$cc_basename" in
12629        xlc*)
12630         output_verbose_link_cmd='echo'
12631         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12632         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12634         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}'
12635          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}'
12636          ;;
12637       *)
12638         ld_shlibs=no
12639          ;;
12640      esac
12641    fi
12642      ;;
12643
12644    dgux*)
12645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12646      hardcode_libdir_flag_spec='-L$libdir'
12647      hardcode_shlibpath_var=no
12648      ;;
12649
12650    freebsd1*)
12651      ld_shlibs=no
12652      ;;
12653
12654    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12655    # support.  Future versions do this automatically, but an explicit c++rt0.o
12656    # does not break anything, and helps significantly (at the cost of a little
12657    # extra space).
12658    freebsd2.2*)
12659      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12660      hardcode_libdir_flag_spec='-R$libdir'
12661      hardcode_direct=yes
12662      hardcode_shlibpath_var=no
12663      ;;
12664
12665    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12666    freebsd2*)
12667      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12668      hardcode_direct=yes
12669      hardcode_minus_L=yes
12670      hardcode_shlibpath_var=no
12671      ;;
12672
12673    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12674    freebsd* | kfreebsd*-gnu)
12675      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12676      hardcode_libdir_flag_spec='-R$libdir'
12677      hardcode_direct=yes
12678      hardcode_shlibpath_var=no
12679      ;;
12680
12681    hpux9*)
12682      if test "$GCC" = yes; then
12683	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'
12684      else
12685	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'
12686      fi
12687      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12688      hardcode_libdir_separator=:
12689      hardcode_direct=yes
12690
12691      # hardcode_minus_L: Not really in the search PATH,
12692      # but as the default location of the library.
12693      hardcode_minus_L=yes
12694      export_dynamic_flag_spec='${wl}-E'
12695      ;;
12696
12697    hpux10* | hpux11*)
12698      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12699	case "$host_cpu" in
12700	hppa*64*|ia64*)
12701	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12702	  ;;
12703	*)
12704	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12705	  ;;
12706	esac
12707      else
12708	case "$host_cpu" in
12709	hppa*64*|ia64*)
12710	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12711	  ;;
12712	*)
12713	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12714	  ;;
12715	esac
12716      fi
12717      if test "$with_gnu_ld" = no; then
12718	case "$host_cpu" in
12719	hppa*64*)
12720	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12721	  hardcode_libdir_flag_spec_ld='+b $libdir'
12722	  hardcode_libdir_separator=:
12723	  hardcode_direct=no
12724	  hardcode_shlibpath_var=no
12725	  ;;
12726	ia64*)
12727	  hardcode_libdir_flag_spec='-L$libdir'
12728	  hardcode_direct=no
12729	  hardcode_shlibpath_var=no
12730
12731	  # hardcode_minus_L: Not really in the search PATH,
12732	  # but as the default location of the library.
12733	  hardcode_minus_L=yes
12734	  ;;
12735	*)
12736	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12737	  hardcode_libdir_separator=:
12738	  hardcode_direct=yes
12739	  export_dynamic_flag_spec='${wl}-E'
12740
12741	  # hardcode_minus_L: Not really in the search PATH,
12742	  # but as the default location of the library.
12743	  hardcode_minus_L=yes
12744	  ;;
12745	esac
12746      fi
12747      ;;
12748
12749    irix5* | irix6* | nonstopux*)
12750      if test "$GCC" = yes; then
12751	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'
12752      else
12753	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'
12754	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12755      fi
12756      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12757      hardcode_libdir_separator=:
12758      link_all_deplibs=yes
12759      ;;
12760
12761    netbsd*)
12762      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12763	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12764      else
12765	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12766      fi
12767      hardcode_libdir_flag_spec='-R$libdir'
12768      hardcode_direct=yes
12769      hardcode_shlibpath_var=no
12770      ;;
12771
12772    newsos6)
12773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12774      hardcode_direct=yes
12775      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12776      hardcode_libdir_separator=:
12777      hardcode_shlibpath_var=no
12778      ;;
12779
12780    openbsd*)
12781      hardcode_direct=yes
12782      hardcode_shlibpath_var=no
12783      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12785	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12786	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12787	export_dynamic_flag_spec='${wl}-E'
12788      else
12789       case $host_os in
12790	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12791	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12792	   hardcode_libdir_flag_spec='-R$libdir'
12793	   ;;
12794	 *)
12795	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12796	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12797	   ;;
12798       esac
12799      fi
12800      ;;
12801
12802    os2*)
12803      hardcode_libdir_flag_spec='-L$libdir'
12804      hardcode_minus_L=yes
12805      allow_undefined_flag=unsupported
12806      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'
12807      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12808      ;;
12809
12810    osf3*)
12811      if test "$GCC" = yes; then
12812	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12813	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'
12814      else
12815	allow_undefined_flag=' -expect_unresolved \*'
12816	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'
12817      fi
12818      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12819      hardcode_libdir_separator=:
12820      ;;
12821
12822    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12823      if test "$GCC" = yes; then
12824	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12825	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'
12826	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12827      else
12828	allow_undefined_flag=' -expect_unresolved \*'
12829	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'
12830	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12831	$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'
12832
12833	# Both c and cxx compiler support -rpath directly
12834	hardcode_libdir_flag_spec='-rpath $libdir'
12835      fi
12836      hardcode_libdir_separator=:
12837      ;;
12838
12839    sco3.2v5*)
12840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841      hardcode_shlibpath_var=no
12842      export_dynamic_flag_spec='${wl}-Bexport'
12843      runpath_var=LD_RUN_PATH
12844      hardcode_runpath_var=yes
12845      ;;
12846
12847    solaris*)
12848      no_undefined_flag=' -z text'
12849      if test "$GCC" = yes; then
12850	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12851	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12852	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12853      else
12854	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12855	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12856  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12857      fi
12858      hardcode_libdir_flag_spec='-R$libdir'
12859      hardcode_shlibpath_var=no
12860      case $host_os in
12861      solaris2.[0-5] | solaris2.[0-5].*) ;;
12862      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12863	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12864      esac
12865      link_all_deplibs=yes
12866      ;;
12867
12868    sunos4*)
12869      if test "x$host_vendor" = xsequent; then
12870	# Use $CC to link under sequent, because it throws in some extra .o
12871	# files that make .init and .fini sections work.
12872	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12873      else
12874	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12875      fi
12876      hardcode_libdir_flag_spec='-L$libdir'
12877      hardcode_direct=yes
12878      hardcode_minus_L=yes
12879      hardcode_shlibpath_var=no
12880      ;;
12881
12882    sysv4)
12883      case $host_vendor in
12884	sni)
12885	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12886	  hardcode_direct=yes # is this really true???
12887	;;
12888	siemens)
12889	  ## LD is ld it makes a PLAMLIB
12890	  ## CC just makes a GrossModule.
12891	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12892	  reload_cmds='$CC -r -o $output$reload_objs'
12893	  hardcode_direct=no
12894        ;;
12895	motorola)
12896	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12898	;;
12899      esac
12900      runpath_var='LD_RUN_PATH'
12901      hardcode_shlibpath_var=no
12902      ;;
12903
12904    sysv4.3*)
12905      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906      hardcode_shlibpath_var=no
12907      export_dynamic_flag_spec='-Bexport'
12908      ;;
12909
12910    sysv4*MP*)
12911      if test -d /usr/nec; then
12912	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913	hardcode_shlibpath_var=no
12914	runpath_var=LD_RUN_PATH
12915	hardcode_runpath_var=yes
12916	ld_shlibs=yes
12917      fi
12918      ;;
12919
12920    sysv4.2uw2*)
12921      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12922      hardcode_direct=yes
12923      hardcode_minus_L=no
12924      hardcode_shlibpath_var=no
12925      hardcode_runpath_var=yes
12926      runpath_var=LD_RUN_PATH
12927      ;;
12928
12929   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12930      no_undefined_flag='${wl}-z ${wl}text'
12931      if test "$GCC" = yes; then
12932	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12933      else
12934	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12935      fi
12936      runpath_var='LD_RUN_PATH'
12937      hardcode_shlibpath_var=no
12938      ;;
12939
12940    sysv5*)
12941      no_undefined_flag=' -z text'
12942      # $CC -shared without GNU ld will not create a library from C++
12943      # object files and a static libstdc++, better avoid it by now
12944      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12945      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12947      hardcode_libdir_flag_spec=
12948      hardcode_shlibpath_var=no
12949      runpath_var='LD_RUN_PATH'
12950      ;;
12951
12952    uts4*)
12953      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954      hardcode_libdir_flag_spec='-L$libdir'
12955      hardcode_shlibpath_var=no
12956      ;;
12957
12958    *)
12959      ld_shlibs=no
12960      ;;
12961    esac
12962  fi
12963
12964echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12965echo "${ECHO_T}$ld_shlibs" >&6
12966test "$ld_shlibs" = no && can_build_shared=no
12967
12968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12969if test "$GCC" = yes; then
12970  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12971fi
12972
12973#
12974# Do we need to explicitly link libc?
12975#
12976case "x$archive_cmds_need_lc" in
12977x|xyes)
12978  # Assume -lc should be added
12979  archive_cmds_need_lc=yes
12980
12981  if test "$enable_shared" = yes && test "$GCC" = yes; then
12982    case $archive_cmds in
12983    *'~'*)
12984      # FIXME: we may have to deal with multi-command sequences.
12985      ;;
12986    '$CC '*)
12987      # Test whether the compiler implicitly links with -lc since on some
12988      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12989      # to ld, don't add -lc before -lgcc.
12990      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12991echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12992      $rm conftest*
12993      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
12995      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996  (eval $ac_compile) 2>&5
12997  ac_status=$?
12998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999  (exit $ac_status); } 2>conftest.err; then
13000        soname=conftest
13001        lib=conftest
13002        libobjs=conftest.$ac_objext
13003        deplibs=
13004        wl=$lt_prog_compiler_wl
13005        compiler_flags=-v
13006        linker_flags=-v
13007        verstring=
13008        output_objdir=.
13009        libname=conftest
13010        lt_save_allow_undefined_flag=$allow_undefined_flag
13011        allow_undefined_flag=
13012        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13013  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13014  ac_status=$?
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); }
13017        then
13018	  archive_cmds_need_lc=no
13019        else
13020	  archive_cmds_need_lc=yes
13021        fi
13022        allow_undefined_flag=$lt_save_allow_undefined_flag
13023      else
13024        cat conftest.err 1>&5
13025      fi
13026      $rm conftest*
13027      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13028echo "${ECHO_T}$archive_cmds_need_lc" >&6
13029      ;;
13030    esac
13031  fi
13032  ;;
13033esac
13034
13035echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13036echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13037library_names_spec=
13038libname_spec='lib$name'
13039soname_spec=
13040shrext_cmds=".so"
13041postinstall_cmds=
13042postuninstall_cmds=
13043finish_cmds=
13044finish_eval=
13045shlibpath_var=
13046shlibpath_overrides_runpath=unknown
13047version_type=none
13048dynamic_linker="$host_os ld.so"
13049sys_lib_dlsearch_path_spec="/lib /usr/lib"
13050if test "$GCC" = yes; then
13051  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13052  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13053    # if the path contains ";" then we assume it to be the separator
13054    # otherwise default to the standard path separator (i.e. ":") - it is
13055    # assumed that no part of a normal pathname contains ";" but that should
13056    # okay in the real world where ";" in dirpaths is itself problematic.
13057    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13058  else
13059    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13060  fi
13061else
13062  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13063fi
13064need_lib_prefix=unknown
13065hardcode_into_libs=no
13066
13067# when you set need_version to no, make sure it does not cause -set_version
13068# flags to be left without arguments
13069need_version=unknown
13070
13071case $host_os in
13072aix3*)
13073  version_type=linux
13074  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13075  shlibpath_var=LIBPATH
13076
13077  # AIX 3 has no versioning support, so we append a major version to the name.
13078  soname_spec='${libname}${release}${shared_ext}$major'
13079  ;;
13080
13081aix4* | aix5*)
13082  version_type=linux
13083  need_lib_prefix=no
13084  need_version=no
13085  hardcode_into_libs=yes
13086  if test "$host_cpu" = ia64; then
13087    # AIX 5 supports IA64
13088    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13089    shlibpath_var=LD_LIBRARY_PATH
13090  else
13091    # With GCC up to 2.95.x, collect2 would create an import file
13092    # for dependence libraries.  The import file would start with
13093    # the line `#! .'.  This would cause the generated library to
13094    # depend on `.', always an invalid library.  This was fixed in
13095    # development snapshots of GCC prior to 3.0.
13096    case $host_os in
13097      aix4 | aix4.[01] | aix4.[01].*)
13098      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13099	   echo ' yes '
13100	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13101	:
13102      else
13103	can_build_shared=no
13104      fi
13105      ;;
13106    esac
13107    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13108    # soname into executable. Probably we can add versioning support to
13109    # collect2, so additional links can be useful in future.
13110    if test "$aix_use_runtimelinking" = yes; then
13111      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13112      # instead of lib<name>.a to let people know that these are not
13113      # typical AIX shared libraries.
13114      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13115    else
13116      # We preserve .a as extension for shared libraries through AIX4.2
13117      # and later when we are not doing run time linking.
13118      library_names_spec='${libname}${release}.a $libname.a'
13119      soname_spec='${libname}${release}${shared_ext}$major'
13120    fi
13121    shlibpath_var=LIBPATH
13122  fi
13123  ;;
13124
13125amigaos*)
13126  library_names_spec='$libname.ixlibrary $libname.a'
13127  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13128  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'
13129  ;;
13130
13131beos*)
13132  library_names_spec='${libname}${shared_ext}'
13133  dynamic_linker="$host_os ld.so"
13134  shlibpath_var=LIBRARY_PATH
13135  ;;
13136
13137bsdi[45]*)
13138  version_type=linux
13139  need_version=no
13140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141  soname_spec='${libname}${release}${shared_ext}$major'
13142  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13143  shlibpath_var=LD_LIBRARY_PATH
13144  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13145  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13146  # the default ld.so.conf also contains /usr/contrib/lib and
13147  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13148  # libtool to hard-code these into programs
13149  ;;
13150
13151cygwin* | mingw* | pw32*)
13152  version_type=windows
13153  shrext_cmds=".dll"
13154  need_version=no
13155  need_lib_prefix=no
13156
13157  case $GCC,$host_os in
13158  yes,cygwin* | yes,mingw* | yes,pw32*)
13159    library_names_spec='$libname.dll.a'
13160    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13161    postinstall_cmds='base_file=`basename \${file}`~
13162      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13163      dldir=$destdir/`dirname \$dlpath`~
13164      test -d \$dldir || mkdir -p \$dldir~
13165      $install_prog $dir/$dlname \$dldir/$dlname'
13166    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13167      dlpath=$dir/\$dldll~
13168       $rm \$dlpath'
13169    shlibpath_overrides_runpath=yes
13170
13171    case $host_os in
13172    cygwin*)
13173      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13174      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13175      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13176      ;;
13177    mingw*)
13178      # MinGW DLLs use traditional 'lib' prefix
13179      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13180      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13181      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13182        # It is most probably a Windows format PATH printed by
13183        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13184        # path with ; separators, and with drive letters. We can handle the
13185        # drive letters (cygwin fileutils understands them), so leave them,
13186        # especially as we might pass files found there to a mingw objdump,
13187        # which wouldn't understand a cygwinified path. Ahh.
13188        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189      else
13190        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13191      fi
13192      ;;
13193    pw32*)
13194      # pw32 DLLs use 'pw' prefix rather than 'lib'
13195      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13196      ;;
13197    esac
13198    ;;
13199
13200  *)
13201    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13202    ;;
13203  esac
13204  dynamic_linker='Win32 ld.exe'
13205  # FIXME: first we should search . and the directory the executable is in
13206  shlibpath_var=PATH
13207  ;;
13208
13209darwin* | rhapsody*)
13210  dynamic_linker="$host_os dyld"
13211  version_type=darwin
13212  need_lib_prefix=no
13213  need_version=no
13214  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13215  soname_spec='${libname}${release}${major}$shared_ext'
13216  shlibpath_overrides_runpath=yes
13217  shlibpath_var=DYLD_LIBRARY_PATH
13218  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13219  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13220  if test "$GCC" = yes; then
13221    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"`
13222  else
13223    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13224  fi
13225  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13226  ;;
13227
13228dgux*)
13229  version_type=linux
13230  need_lib_prefix=no
13231  need_version=no
13232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13233  soname_spec='${libname}${release}${shared_ext}$major'
13234  shlibpath_var=LD_LIBRARY_PATH
13235  ;;
13236
13237freebsd1*)
13238  dynamic_linker=no
13239  ;;
13240
13241kfreebsd*-gnu)
13242  version_type=linux
13243  need_lib_prefix=no
13244  need_version=no
13245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13246  soname_spec='${libname}${release}${shared_ext}$major'
13247  shlibpath_var=LD_LIBRARY_PATH
13248  shlibpath_overrides_runpath=no
13249  hardcode_into_libs=yes
13250  dynamic_linker='GNU ld.so'
13251  ;;
13252
13253freebsd*)
13254  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13255  version_type=freebsd-$objformat
13256  case $version_type in
13257    freebsd-elf*)
13258      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13259      need_version=no
13260      need_lib_prefix=no
13261      ;;
13262    freebsd-*)
13263      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13264      need_version=yes
13265      ;;
13266  esac
13267  shlibpath_var=LD_LIBRARY_PATH
13268  case $host_os in
13269  freebsd2*)
13270    shlibpath_overrides_runpath=yes
13271    ;;
13272  freebsd3.01* | freebsdelf3.01*)
13273    shlibpath_overrides_runpath=yes
13274    hardcode_into_libs=yes
13275    ;;
13276  *) # from 3.2 on
13277    shlibpath_overrides_runpath=no
13278    hardcode_into_libs=yes
13279    ;;
13280  esac
13281  ;;
13282
13283gnu*)
13284  version_type=linux
13285  need_lib_prefix=no
13286  need_version=no
13287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288  soname_spec='${libname}${release}${shared_ext}$major'
13289  shlibpath_var=LD_LIBRARY_PATH
13290  hardcode_into_libs=yes
13291  ;;
13292
13293hpux9* | hpux10* | hpux11*)
13294  # Give a soname corresponding to the major version so that dld.sl refuses to
13295  # link against other versions.
13296  version_type=sunos
13297  need_lib_prefix=no
13298  need_version=no
13299  case "$host_cpu" in
13300  ia64*)
13301    shrext_cmds='.so'
13302    hardcode_into_libs=yes
13303    dynamic_linker="$host_os dld.so"
13304    shlibpath_var=LD_LIBRARY_PATH
13305    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307    soname_spec='${libname}${release}${shared_ext}$major'
13308    if test "X$HPUX_IA64_MODE" = X32; then
13309      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13310    else
13311      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13312    fi
13313    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13314    ;;
13315   hppa*64*)
13316     shrext_cmds='.sl'
13317     hardcode_into_libs=yes
13318     dynamic_linker="$host_os dld.sl"
13319     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322     soname_spec='${libname}${release}${shared_ext}$major'
13323     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13324     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13325     ;;
13326   *)
13327    shrext_cmds='.sl'
13328    dynamic_linker="$host_os dld.sl"
13329    shlibpath_var=SHLIB_PATH
13330    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332    soname_spec='${libname}${release}${shared_ext}$major'
13333    ;;
13334  esac
13335  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13336  postinstall_cmds='chmod 555 $lib'
13337  ;;
13338
13339irix5* | irix6* | nonstopux*)
13340  case $host_os in
13341    nonstopux*) version_type=nonstopux ;;
13342    *)
13343	if test "$lt_cv_prog_gnu_ld" = yes; then
13344		version_type=linux
13345	else
13346		version_type=irix
13347	fi ;;
13348  esac
13349  need_lib_prefix=no
13350  need_version=no
13351  soname_spec='${libname}${release}${shared_ext}$major'
13352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13353  case $host_os in
13354  irix5* | nonstopux*)
13355    libsuff= shlibsuff=
13356    ;;
13357  *)
13358    case $LD in # libtool.m4 will add one of these switches to LD
13359    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13360      libsuff= shlibsuff= libmagic=32-bit;;
13361    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13362      libsuff=32 shlibsuff=N32 libmagic=N32;;
13363    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13364      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13365    *) libsuff= shlibsuff= libmagic=never-match;;
13366    esac
13367    ;;
13368  esac
13369  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13370  shlibpath_overrides_runpath=no
13371  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13372  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13373  hardcode_into_libs=yes
13374  ;;
13375
13376# No shared lib support for Linux oldld, aout, or coff.
13377linux*oldld* | linux*aout* | linux*coff*)
13378  dynamic_linker=no
13379  ;;
13380
13381# This must be Linux ELF.
13382linux*)
13383  version_type=linux
13384  need_lib_prefix=no
13385  need_version=no
13386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13387  soname_spec='${libname}${release}${shared_ext}$major'
13388  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13389  shlibpath_var=LD_LIBRARY_PATH
13390  shlibpath_overrides_runpath=no
13391  # This implies no fast_install, which is unacceptable.
13392  # Some rework will be needed to allow for fast_install
13393  # before this can be enabled.
13394  hardcode_into_libs=yes
13395
13396  # Append ld.so.conf contents to the search path
13397  if test -f /etc/ld.so.conf; then
13398    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13399    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13400  fi
13401
13402  # We used to test for /lib/ld.so.1 and disable shared libraries on
13403  # powerpc, because MkLinux only supported shared libraries with the
13404  # GNU dynamic linker.  Since this was broken with cross compilers,
13405  # most powerpc-linux boxes support dynamic linking these days and
13406  # people can always --disable-shared, the test was removed, and we
13407  # assume the GNU/Linux dynamic linker is in use.
13408  dynamic_linker='GNU/Linux ld.so'
13409  ;;
13410
13411knetbsd*-gnu)
13412  version_type=linux
13413  need_lib_prefix=no
13414  need_version=no
13415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13416  soname_spec='${libname}${release}${shared_ext}$major'
13417  shlibpath_var=LD_LIBRARY_PATH
13418  shlibpath_overrides_runpath=no
13419  hardcode_into_libs=yes
13420  dynamic_linker='GNU ld.so'
13421  ;;
13422
13423netbsd*)
13424  version_type=sunos
13425  need_lib_prefix=no
13426  need_version=no
13427  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13429    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13430    dynamic_linker='NetBSD (a.out) ld.so'
13431  else
13432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13433    soname_spec='${libname}${release}${shared_ext}$major'
13434    dynamic_linker='NetBSD ld.elf_so'
13435  fi
13436  shlibpath_var=LD_LIBRARY_PATH
13437  shlibpath_overrides_runpath=yes
13438  hardcode_into_libs=yes
13439  ;;
13440
13441newsos6)
13442  version_type=linux
13443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444  shlibpath_var=LD_LIBRARY_PATH
13445  shlibpath_overrides_runpath=yes
13446  ;;
13447
13448nto-qnx*)
13449  version_type=linux
13450  need_lib_prefix=no
13451  need_version=no
13452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453  soname_spec='${libname}${release}${shared_ext}$major'
13454  shlibpath_var=LD_LIBRARY_PATH
13455  shlibpath_overrides_runpath=yes
13456  ;;
13457
13458openbsd*)
13459  version_type=sunos
13460  need_lib_prefix=no
13461  need_version=no
13462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13463  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13464  shlibpath_var=LD_LIBRARY_PATH
13465  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13466    case $host_os in
13467      openbsd2.[89] | openbsd2.[89].*)
13468	shlibpath_overrides_runpath=no
13469	;;
13470      *)
13471	shlibpath_overrides_runpath=yes
13472	;;
13473      esac
13474  else
13475    shlibpath_overrides_runpath=yes
13476  fi
13477  ;;
13478
13479os2*)
13480  libname_spec='$name'
13481  shrext_cmds=".dll"
13482  need_lib_prefix=no
13483  library_names_spec='$libname${shared_ext} $libname.a'
13484  dynamic_linker='OS/2 ld.exe'
13485  shlibpath_var=LIBPATH
13486  ;;
13487
13488osf3* | osf4* | osf5*)
13489  version_type=osf
13490  need_lib_prefix=no
13491  need_version=no
13492  soname_spec='${libname}${release}${shared_ext}$major'
13493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494  shlibpath_var=LD_LIBRARY_PATH
13495  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13496  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13497  ;;
13498
13499sco3.2v5*)
13500  version_type=osf
13501  soname_spec='${libname}${release}${shared_ext}$major'
13502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  ;;
13505
13506solaris*)
13507  version_type=linux
13508  need_lib_prefix=no
13509  need_version=no
13510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13511  soname_spec='${libname}${release}${shared_ext}$major'
13512  shlibpath_var=LD_LIBRARY_PATH
13513  shlibpath_overrides_runpath=yes
13514  hardcode_into_libs=yes
13515  # ldd complains unless libraries are executable
13516  postinstall_cmds='chmod +x $lib'
13517  ;;
13518
13519sunos4*)
13520  version_type=sunos
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13522  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13523  shlibpath_var=LD_LIBRARY_PATH
13524  shlibpath_overrides_runpath=yes
13525  if test "$with_gnu_ld" = yes; then
13526    need_lib_prefix=no
13527  fi
13528  need_version=yes
13529  ;;
13530
13531sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13532  version_type=linux
13533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13534  soname_spec='${libname}${release}${shared_ext}$major'
13535  shlibpath_var=LD_LIBRARY_PATH
13536  case $host_vendor in
13537    sni)
13538      shlibpath_overrides_runpath=no
13539      need_lib_prefix=no
13540      export_dynamic_flag_spec='${wl}-Blargedynsym'
13541      runpath_var=LD_RUN_PATH
13542      ;;
13543    siemens)
13544      need_lib_prefix=no
13545      ;;
13546    motorola)
13547      need_lib_prefix=no
13548      need_version=no
13549      shlibpath_overrides_runpath=no
13550      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13551      ;;
13552  esac
13553  ;;
13554
13555sysv4*MP*)
13556  if test -d /usr/nec ;then
13557    version_type=linux
13558    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13559    soname_spec='$libname${shared_ext}.$major'
13560    shlibpath_var=LD_LIBRARY_PATH
13561  fi
13562  ;;
13563
13564uts4*)
13565  version_type=linux
13566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567  soname_spec='${libname}${release}${shared_ext}$major'
13568  shlibpath_var=LD_LIBRARY_PATH
13569  ;;
13570
13571*)
13572  dynamic_linker=no
13573  ;;
13574esac
13575echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13576echo "${ECHO_T}$dynamic_linker" >&6
13577test "$dynamic_linker" = no && can_build_shared=no
13578
13579echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13580echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13581hardcode_action=
13582if test -n "$hardcode_libdir_flag_spec" || \
13583   test -n "$runpath_var" || \
13584   test "X$hardcode_automatic" = "Xyes" ; then
13585
13586  # We can hardcode non-existant directories.
13587  if test "$hardcode_direct" != no &&
13588     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13589     # have to relink, otherwise we might link with an installed library
13590     # when we should be linking with a yet-to-be-installed one
13591     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13592     test "$hardcode_minus_L" != no; then
13593    # Linking always hardcodes the temporary library directory.
13594    hardcode_action=relink
13595  else
13596    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13597    hardcode_action=immediate
13598  fi
13599else
13600  # We cannot hardcode anything, or else we can only hardcode existing
13601  # directories.
13602  hardcode_action=unsupported
13603fi
13604echo "$as_me:$LINENO: result: $hardcode_action" >&5
13605echo "${ECHO_T}$hardcode_action" >&6
13606
13607if test "$hardcode_action" = relink; then
13608  # Fast installation is not supported
13609  enable_fast_install=no
13610elif test "$shlibpath_overrides_runpath" = yes ||
13611     test "$enable_shared" = no; then
13612  # Fast installation is not necessary
13613  enable_fast_install=needless
13614fi
13615
13616striplib=
13617old_striplib=
13618echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13619echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13620if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13621  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13622  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13623  echo "$as_me:$LINENO: result: yes" >&5
13624echo "${ECHO_T}yes" >&6
13625else
13626# FIXME - insert some real tests, host_os isn't really good enough
13627  case $host_os in
13628   darwin*)
13629       if test -n "$STRIP" ; then
13630         striplib="$STRIP -x"
13631         echo "$as_me:$LINENO: result: yes" >&5
13632echo "${ECHO_T}yes" >&6
13633       else
13634  echo "$as_me:$LINENO: result: no" >&5
13635echo "${ECHO_T}no" >&6
13636fi
13637       ;;
13638   *)
13639  echo "$as_me:$LINENO: result: no" >&5
13640echo "${ECHO_T}no" >&6
13641    ;;
13642  esac
13643fi
13644
13645if test "x$enable_dlopen" != xyes; then
13646  enable_dlopen=unknown
13647  enable_dlopen_self=unknown
13648  enable_dlopen_self_static=unknown
13649else
13650  lt_cv_dlopen=no
13651  lt_cv_dlopen_libs=
13652
13653  case $host_os in
13654  beos*)
13655    lt_cv_dlopen="load_add_on"
13656    lt_cv_dlopen_libs=
13657    lt_cv_dlopen_self=yes
13658    ;;
13659
13660  mingw* | pw32*)
13661    lt_cv_dlopen="LoadLibrary"
13662    lt_cv_dlopen_libs=
13663   ;;
13664
13665  cygwin*)
13666    lt_cv_dlopen="dlopen"
13667    lt_cv_dlopen_libs=
13668   ;;
13669
13670  darwin*)
13671  # if libdl is installed we need to link against it
13672    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13673echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13674if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13675  echo $ECHO_N "(cached) $ECHO_C" >&6
13676else
13677  ac_check_lib_save_LIBS=$LIBS
13678LIBS="-ldl  $LIBS"
13679cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h.  */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h.  */
13685
13686/* Override any gcc2 internal prototype to avoid an error.  */
13687#ifdef __cplusplus
13688extern "C"
13689#endif
13690/* We use char because int might match the return type of a gcc2
13691   builtin and then its argument prototype would still apply.  */
13692char dlopen ();
13693int
13694main ()
13695{
13696dlopen ();
13697  ;
13698  return 0;
13699}
13700_ACEOF
13701rm -f conftest.$ac_objext conftest$ac_exeext
13702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703  (eval $ac_link) 2>conftest.er1
13704  ac_status=$?
13705  grep -v '^ *+' conftest.er1 >conftest.err
13706  rm -f conftest.er1
13707  cat conftest.err >&5
13708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709  (exit $ac_status); } &&
13710	 { ac_try='test -z "$ac_c_werror_flag"
13711			 || test ! -s conftest.err'
13712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713  (eval $ac_try) 2>&5
13714  ac_status=$?
13715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716  (exit $ac_status); }; } &&
13717	 { ac_try='test -s conftest$ac_exeext'
13718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719  (eval $ac_try) 2>&5
13720  ac_status=$?
13721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722  (exit $ac_status); }; }; then
13723  ac_cv_lib_dl_dlopen=yes
13724else
13725  echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
13728ac_cv_lib_dl_dlopen=no
13729fi
13730rm -f conftest.err conftest.$ac_objext \
13731      conftest$ac_exeext conftest.$ac_ext
13732LIBS=$ac_check_lib_save_LIBS
13733fi
13734echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13735echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13736if test $ac_cv_lib_dl_dlopen = yes; then
13737  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13738else
13739
13740    lt_cv_dlopen="dyld"
13741    lt_cv_dlopen_libs=
13742    lt_cv_dlopen_self=yes
13743
13744fi
13745
13746   ;;
13747
13748  *)
13749    echo "$as_me:$LINENO: checking for shl_load" >&5
13750echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13751if test "${ac_cv_func_shl_load+set}" = set; then
13752  echo $ECHO_N "(cached) $ECHO_C" >&6
13753else
13754  cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h.  */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h.  */
13760/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13761   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13762#define shl_load innocuous_shl_load
13763
13764/* System header to define __stub macros and hopefully few prototypes,
13765    which can conflict with char shl_load (); below.
13766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767    <limits.h> exists even on freestanding compilers.  */
13768
13769#ifdef __STDC__
13770# include <limits.h>
13771#else
13772# include <assert.h>
13773#endif
13774
13775#undef shl_load
13776
13777/* Override any gcc2 internal prototype to avoid an error.  */
13778#ifdef __cplusplus
13779extern "C"
13780{
13781#endif
13782/* We use char because int might match the return type of a gcc2
13783   builtin and then its argument prototype would still apply.  */
13784char shl_load ();
13785/* The GNU C library defines this for functions which it implements
13786    to always fail with ENOSYS.  Some functions are actually named
13787    something starting with __ and the normal name is an alias.  */
13788#if defined (__stub_shl_load) || defined (__stub___shl_load)
13789choke me
13790#else
13791char (*f) () = shl_load;
13792#endif
13793#ifdef __cplusplus
13794}
13795#endif
13796
13797int
13798main ()
13799{
13800return f != shl_load;
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext conftest$ac_exeext
13806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807  (eval $ac_link) 2>conftest.er1
13808  ac_status=$?
13809  grep -v '^ *+' conftest.er1 >conftest.err
13810  rm -f conftest.er1
13811  cat conftest.err >&5
13812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813  (exit $ac_status); } &&
13814	 { ac_try='test -z "$ac_c_werror_flag"
13815			 || test ! -s conftest.err'
13816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817  (eval $ac_try) 2>&5
13818  ac_status=$?
13819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820  (exit $ac_status); }; } &&
13821	 { ac_try='test -s conftest$ac_exeext'
13822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823  (eval $ac_try) 2>&5
13824  ac_status=$?
13825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826  (exit $ac_status); }; }; then
13827  ac_cv_func_shl_load=yes
13828else
13829  echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
13832ac_cv_func_shl_load=no
13833fi
13834rm -f conftest.err conftest.$ac_objext \
13835      conftest$ac_exeext conftest.$ac_ext
13836fi
13837echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13838echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13839if test $ac_cv_func_shl_load = yes; then
13840  lt_cv_dlopen="shl_load"
13841else
13842  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13843echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13844if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13845  echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847  ac_check_lib_save_LIBS=$LIBS
13848LIBS="-ldld  $LIBS"
13849cat >conftest.$ac_ext <<_ACEOF
13850/* confdefs.h.  */
13851_ACEOF
13852cat confdefs.h >>conftest.$ac_ext
13853cat >>conftest.$ac_ext <<_ACEOF
13854/* end confdefs.h.  */
13855
13856/* Override any gcc2 internal prototype to avoid an error.  */
13857#ifdef __cplusplus
13858extern "C"
13859#endif
13860/* We use char because int might match the return type of a gcc2
13861   builtin and then its argument prototype would still apply.  */
13862char shl_load ();
13863int
13864main ()
13865{
13866shl_load ();
13867  ;
13868  return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext conftest$ac_exeext
13872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873  (eval $ac_link) 2>conftest.er1
13874  ac_status=$?
13875  grep -v '^ *+' conftest.er1 >conftest.err
13876  rm -f conftest.er1
13877  cat conftest.err >&5
13878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879  (exit $ac_status); } &&
13880	 { ac_try='test -z "$ac_c_werror_flag"
13881			 || test ! -s conftest.err'
13882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883  (eval $ac_try) 2>&5
13884  ac_status=$?
13885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886  (exit $ac_status); }; } &&
13887	 { ac_try='test -s conftest$ac_exeext'
13888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889  (eval $ac_try) 2>&5
13890  ac_status=$?
13891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892  (exit $ac_status); }; }; then
13893  ac_cv_lib_dld_shl_load=yes
13894else
13895  echo "$as_me: failed program was:" >&5
13896sed 's/^/| /' conftest.$ac_ext >&5
13897
13898ac_cv_lib_dld_shl_load=no
13899fi
13900rm -f conftest.err conftest.$ac_objext \
13901      conftest$ac_exeext conftest.$ac_ext
13902LIBS=$ac_check_lib_save_LIBS
13903fi
13904echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13905echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13906if test $ac_cv_lib_dld_shl_load = yes; then
13907  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13908else
13909  echo "$as_me:$LINENO: checking for dlopen" >&5
13910echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13911if test "${ac_cv_func_dlopen+set}" = set; then
13912  echo $ECHO_N "(cached) $ECHO_C" >&6
13913else
13914  cat >conftest.$ac_ext <<_ACEOF
13915/* confdefs.h.  */
13916_ACEOF
13917cat confdefs.h >>conftest.$ac_ext
13918cat >>conftest.$ac_ext <<_ACEOF
13919/* end confdefs.h.  */
13920/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13922#define dlopen innocuous_dlopen
13923
13924/* System header to define __stub macros and hopefully few prototypes,
13925    which can conflict with char dlopen (); below.
13926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13927    <limits.h> exists even on freestanding compilers.  */
13928
13929#ifdef __STDC__
13930# include <limits.h>
13931#else
13932# include <assert.h>
13933#endif
13934
13935#undef dlopen
13936
13937/* Override any gcc2 internal prototype to avoid an error.  */
13938#ifdef __cplusplus
13939extern "C"
13940{
13941#endif
13942/* We use char because int might match the return type of a gcc2
13943   builtin and then its argument prototype would still apply.  */
13944char dlopen ();
13945/* The GNU C library defines this for functions which it implements
13946    to always fail with ENOSYS.  Some functions are actually named
13947    something starting with __ and the normal name is an alias.  */
13948#if defined (__stub_dlopen) || defined (__stub___dlopen)
13949choke me
13950#else
13951char (*f) () = dlopen;
13952#endif
13953#ifdef __cplusplus
13954}
13955#endif
13956
13957int
13958main ()
13959{
13960return f != dlopen;
13961  ;
13962  return 0;
13963}
13964_ACEOF
13965rm -f conftest.$ac_objext conftest$ac_exeext
13966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967  (eval $ac_link) 2>conftest.er1
13968  ac_status=$?
13969  grep -v '^ *+' conftest.er1 >conftest.err
13970  rm -f conftest.er1
13971  cat conftest.err >&5
13972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973  (exit $ac_status); } &&
13974	 { ac_try='test -z "$ac_c_werror_flag"
13975			 || test ! -s conftest.err'
13976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977  (eval $ac_try) 2>&5
13978  ac_status=$?
13979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980  (exit $ac_status); }; } &&
13981	 { ac_try='test -s conftest$ac_exeext'
13982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983  (eval $ac_try) 2>&5
13984  ac_status=$?
13985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986  (exit $ac_status); }; }; then
13987  ac_cv_func_dlopen=yes
13988else
13989  echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992ac_cv_func_dlopen=no
13993fi
13994rm -f conftest.err conftest.$ac_objext \
13995      conftest$ac_exeext conftest.$ac_ext
13996fi
13997echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13998echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13999if test $ac_cv_func_dlopen = yes; then
14000  lt_cv_dlopen="dlopen"
14001else
14002  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14004if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14005  echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
14007  ac_check_lib_save_LIBS=$LIBS
14008LIBS="-ldl  $LIBS"
14009cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h.  */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h.  */
14015
14016/* Override any gcc2 internal prototype to avoid an error.  */
14017#ifdef __cplusplus
14018extern "C"
14019#endif
14020/* We use char because int might match the return type of a gcc2
14021   builtin and then its argument prototype would still apply.  */
14022char dlopen ();
14023int
14024main ()
14025{
14026dlopen ();
14027  ;
14028  return 0;
14029}
14030_ACEOF
14031rm -f conftest.$ac_objext conftest$ac_exeext
14032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14033  (eval $ac_link) 2>conftest.er1
14034  ac_status=$?
14035  grep -v '^ *+' conftest.er1 >conftest.err
14036  rm -f conftest.er1
14037  cat conftest.err >&5
14038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039  (exit $ac_status); } &&
14040	 { ac_try='test -z "$ac_c_werror_flag"
14041			 || test ! -s conftest.err'
14042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043  (eval $ac_try) 2>&5
14044  ac_status=$?
14045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046  (exit $ac_status); }; } &&
14047	 { ac_try='test -s conftest$ac_exeext'
14048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049  (eval $ac_try) 2>&5
14050  ac_status=$?
14051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052  (exit $ac_status); }; }; then
14053  ac_cv_lib_dl_dlopen=yes
14054else
14055  echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058ac_cv_lib_dl_dlopen=no
14059fi
14060rm -f conftest.err conftest.$ac_objext \
14061      conftest$ac_exeext conftest.$ac_ext
14062LIBS=$ac_check_lib_save_LIBS
14063fi
14064echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14065echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14066if test $ac_cv_lib_dl_dlopen = yes; then
14067  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14068else
14069  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14070echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14071if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14072  echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074  ac_check_lib_save_LIBS=$LIBS
14075LIBS="-lsvld  $LIBS"
14076cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h.  */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h.  */
14082
14083/* Override any gcc2 internal prototype to avoid an error.  */
14084#ifdef __cplusplus
14085extern "C"
14086#endif
14087/* We use char because int might match the return type of a gcc2
14088   builtin and then its argument prototype would still apply.  */
14089char dlopen ();
14090int
14091main ()
14092{
14093dlopen ();
14094  ;
14095  return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext conftest$ac_exeext
14099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14100  (eval $ac_link) 2>conftest.er1
14101  ac_status=$?
14102  grep -v '^ *+' conftest.er1 >conftest.err
14103  rm -f conftest.er1
14104  cat conftest.err >&5
14105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106  (exit $ac_status); } &&
14107	 { ac_try='test -z "$ac_c_werror_flag"
14108			 || test ! -s conftest.err'
14109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110  (eval $ac_try) 2>&5
14111  ac_status=$?
14112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113  (exit $ac_status); }; } &&
14114	 { ac_try='test -s conftest$ac_exeext'
14115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116  (eval $ac_try) 2>&5
14117  ac_status=$?
14118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119  (exit $ac_status); }; }; then
14120  ac_cv_lib_svld_dlopen=yes
14121else
14122  echo "$as_me: failed program was:" >&5
14123sed 's/^/| /' conftest.$ac_ext >&5
14124
14125ac_cv_lib_svld_dlopen=no
14126fi
14127rm -f conftest.err conftest.$ac_objext \
14128      conftest$ac_exeext conftest.$ac_ext
14129LIBS=$ac_check_lib_save_LIBS
14130fi
14131echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14132echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14133if test $ac_cv_lib_svld_dlopen = yes; then
14134  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14135else
14136  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14137echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14138if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14139  echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
14141  ac_check_lib_save_LIBS=$LIBS
14142LIBS="-ldld  $LIBS"
14143cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h.  */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h.  */
14149
14150/* Override any gcc2 internal prototype to avoid an error.  */
14151#ifdef __cplusplus
14152extern "C"
14153#endif
14154/* We use char because int might match the return type of a gcc2
14155   builtin and then its argument prototype would still apply.  */
14156char dld_link ();
14157int
14158main ()
14159{
14160dld_link ();
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165rm -f conftest.$ac_objext conftest$ac_exeext
14166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14167  (eval $ac_link) 2>conftest.er1
14168  ac_status=$?
14169  grep -v '^ *+' conftest.er1 >conftest.err
14170  rm -f conftest.er1
14171  cat conftest.err >&5
14172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173  (exit $ac_status); } &&
14174	 { ac_try='test -z "$ac_c_werror_flag"
14175			 || test ! -s conftest.err'
14176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177  (eval $ac_try) 2>&5
14178  ac_status=$?
14179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180  (exit $ac_status); }; } &&
14181	 { ac_try='test -s conftest$ac_exeext'
14182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183  (eval $ac_try) 2>&5
14184  ac_status=$?
14185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186  (exit $ac_status); }; }; then
14187  ac_cv_lib_dld_dld_link=yes
14188else
14189  echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192ac_cv_lib_dld_dld_link=no
14193fi
14194rm -f conftest.err conftest.$ac_objext \
14195      conftest$ac_exeext conftest.$ac_ext
14196LIBS=$ac_check_lib_save_LIBS
14197fi
14198echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14199echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14200if test $ac_cv_lib_dld_dld_link = yes; then
14201  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14202fi
14203
14204
14205fi
14206
14207
14208fi
14209
14210
14211fi
14212
14213
14214fi
14215
14216
14217fi
14218
14219    ;;
14220  esac
14221
14222  if test "x$lt_cv_dlopen" != xno; then
14223    enable_dlopen=yes
14224  else
14225    enable_dlopen=no
14226  fi
14227
14228  case $lt_cv_dlopen in
14229  dlopen)
14230    save_CPPFLAGS="$CPPFLAGS"
14231    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14232
14233    save_LDFLAGS="$LDFLAGS"
14234    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14235
14236    save_LIBS="$LIBS"
14237    LIBS="$lt_cv_dlopen_libs $LIBS"
14238
14239    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14240echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14241if test "${lt_cv_dlopen_self+set}" = set; then
14242  echo $ECHO_N "(cached) $ECHO_C" >&6
14243else
14244  	  if test "$cross_compiling" = yes; then :
14245  lt_cv_dlopen_self=cross
14246else
14247  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14248  lt_status=$lt_dlunknown
14249  cat > conftest.$ac_ext <<EOF
14250#line 14249 "configure"
14251#include "confdefs.h"
14252
14253#if HAVE_DLFCN_H
14254#include <dlfcn.h>
14255#endif
14256
14257#include <stdio.h>
14258
14259#ifdef RTLD_GLOBAL
14260#  define LT_DLGLOBAL		RTLD_GLOBAL
14261#else
14262#  ifdef DL_GLOBAL
14263#    define LT_DLGLOBAL		DL_GLOBAL
14264#  else
14265#    define LT_DLGLOBAL		0
14266#  endif
14267#endif
14268
14269/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14270   find out it does not work in some platform. */
14271#ifndef LT_DLLAZY_OR_NOW
14272#  ifdef RTLD_LAZY
14273#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14274#  else
14275#    ifdef DL_LAZY
14276#      define LT_DLLAZY_OR_NOW		DL_LAZY
14277#    else
14278#      ifdef RTLD_NOW
14279#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14280#      else
14281#        ifdef DL_NOW
14282#          define LT_DLLAZY_OR_NOW	DL_NOW
14283#        else
14284#          define LT_DLLAZY_OR_NOW	0
14285#        endif
14286#      endif
14287#    endif
14288#  endif
14289#endif
14290
14291#ifdef __cplusplus
14292extern "C" void exit (int);
14293#endif
14294
14295void fnord() { int i=42;}
14296int main ()
14297{
14298  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14299  int status = $lt_dlunknown;
14300
14301  if (self)
14302    {
14303      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14304      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14305      /* dlclose (self); */
14306    }
14307
14308    exit (status);
14309}
14310EOF
14311  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312  (eval $ac_link) 2>&5
14313  ac_status=$?
14314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14316    (./conftest; exit; ) 2>/dev/null
14317    lt_status=$?
14318    case x$lt_status in
14319      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14320      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14321      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14322    esac
14323  else :
14324    # compilation failed
14325    lt_cv_dlopen_self=no
14326  fi
14327fi
14328rm -fr conftest*
14329
14330
14331fi
14332echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14333echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14334
14335    if test "x$lt_cv_dlopen_self" = xyes; then
14336      LDFLAGS="$LDFLAGS $link_static_flag"
14337      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14338echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14339if test "${lt_cv_dlopen_self_static+set}" = set; then
14340  echo $ECHO_N "(cached) $ECHO_C" >&6
14341else
14342  	  if test "$cross_compiling" = yes; then :
14343  lt_cv_dlopen_self_static=cross
14344else
14345  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14346  lt_status=$lt_dlunknown
14347  cat > conftest.$ac_ext <<EOF
14348#line 14347 "configure"
14349#include "confdefs.h"
14350
14351#if HAVE_DLFCN_H
14352#include <dlfcn.h>
14353#endif
14354
14355#include <stdio.h>
14356
14357#ifdef RTLD_GLOBAL
14358#  define LT_DLGLOBAL		RTLD_GLOBAL
14359#else
14360#  ifdef DL_GLOBAL
14361#    define LT_DLGLOBAL		DL_GLOBAL
14362#  else
14363#    define LT_DLGLOBAL		0
14364#  endif
14365#endif
14366
14367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14368   find out it does not work in some platform. */
14369#ifndef LT_DLLAZY_OR_NOW
14370#  ifdef RTLD_LAZY
14371#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14372#  else
14373#    ifdef DL_LAZY
14374#      define LT_DLLAZY_OR_NOW		DL_LAZY
14375#    else
14376#      ifdef RTLD_NOW
14377#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14378#      else
14379#        ifdef DL_NOW
14380#          define LT_DLLAZY_OR_NOW	DL_NOW
14381#        else
14382#          define LT_DLLAZY_OR_NOW	0
14383#        endif
14384#      endif
14385#    endif
14386#  endif
14387#endif
14388
14389#ifdef __cplusplus
14390extern "C" void exit (int);
14391#endif
14392
14393void fnord() { int i=42;}
14394int main ()
14395{
14396  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14397  int status = $lt_dlunknown;
14398
14399  if (self)
14400    {
14401      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14402      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14403      /* dlclose (self); */
14404    }
14405
14406    exit (status);
14407}
14408EOF
14409  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410  (eval $ac_link) 2>&5
14411  ac_status=$?
14412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14414    (./conftest; exit; ) 2>/dev/null
14415    lt_status=$?
14416    case x$lt_status in
14417      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14418      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14419      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14420    esac
14421  else :
14422    # compilation failed
14423    lt_cv_dlopen_self_static=no
14424  fi
14425fi
14426rm -fr conftest*
14427
14428
14429fi
14430echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14431echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14432    fi
14433
14434    CPPFLAGS="$save_CPPFLAGS"
14435    LDFLAGS="$save_LDFLAGS"
14436    LIBS="$save_LIBS"
14437    ;;
14438  esac
14439
14440  case $lt_cv_dlopen_self in
14441  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14442  *) enable_dlopen_self=unknown ;;
14443  esac
14444
14445  case $lt_cv_dlopen_self_static in
14446  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14447  *) enable_dlopen_self_static=unknown ;;
14448  esac
14449fi
14450
14451
14452# Report which librarie types wil actually be built
14453echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14454echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14455echo "$as_me:$LINENO: result: $can_build_shared" >&5
14456echo "${ECHO_T}$can_build_shared" >&6
14457
14458echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14459echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14460test "$can_build_shared" = "no" && enable_shared=no
14461
14462# On AIX, shared libraries and static libraries use the same namespace, and
14463# are all built from PIC.
14464case "$host_os" in
14465aix3*)
14466  test "$enable_shared" = yes && enable_static=no
14467  if test -n "$RANLIB"; then
14468    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14469    postinstall_cmds='$RANLIB $lib'
14470  fi
14471  ;;
14472
14473aix4* | aix5*)
14474  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14475    test "$enable_shared" = yes && enable_static=no
14476  fi
14477    ;;
14478esac
14479echo "$as_me:$LINENO: result: $enable_shared" >&5
14480echo "${ECHO_T}$enable_shared" >&6
14481
14482echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14483echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14484# Make sure either enable_shared or enable_static is yes.
14485test "$enable_shared" = yes || enable_static=yes
14486echo "$as_me:$LINENO: result: $enable_static" >&5
14487echo "${ECHO_T}$enable_static" >&6
14488
14489# The else clause should only fire when bootstrapping the
14490# libtool distribution, otherwise you forgot to ship ltmain.sh
14491# with your package, and you will get complaints that there are
14492# no rules to generate ltmain.sh.
14493if test -f "$ltmain"; then
14494  # See if we are running on zsh, and set the options which allow our commands through
14495  # without removal of \ escapes.
14496  if test -n "${ZSH_VERSION+set}" ; then
14497    setopt NO_GLOB_SUBST
14498  fi
14499  # Now quote all the things that may contain metacharacters while being
14500  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14501  # variables and quote the copies for generation of the libtool script.
14502  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14503    SED SHELL STRIP \
14504    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14505    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14506    deplibs_check_method reload_flag reload_cmds need_locks \
14507    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14508    lt_cv_sys_global_symbol_to_c_name_address \
14509    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14510    old_postinstall_cmds old_postuninstall_cmds \
14511    compiler \
14512    CC \
14513    LD \
14514    lt_prog_compiler_wl \
14515    lt_prog_compiler_pic \
14516    lt_prog_compiler_static \
14517    lt_prog_compiler_no_builtin_flag \
14518    export_dynamic_flag_spec \
14519    thread_safe_flag_spec \
14520    whole_archive_flag_spec \
14521    enable_shared_with_static_runtimes \
14522    old_archive_cmds \
14523    old_archive_from_new_cmds \
14524    predep_objects \
14525    postdep_objects \
14526    predeps \
14527    postdeps \
14528    compiler_lib_search_path \
14529    archive_cmds \
14530    archive_expsym_cmds \
14531    postinstall_cmds \
14532    postuninstall_cmds \
14533    old_archive_from_expsyms_cmds \
14534    allow_undefined_flag \
14535    no_undefined_flag \
14536    export_symbols_cmds \
14537    hardcode_libdir_flag_spec \
14538    hardcode_libdir_flag_spec_ld \
14539    hardcode_libdir_separator \
14540    hardcode_automatic \
14541    module_cmds \
14542    module_expsym_cmds \
14543    lt_cv_prog_compiler_c_o \
14544    exclude_expsyms \
14545    include_expsyms; do
14546
14547    case $var in
14548    old_archive_cmds | \
14549    old_archive_from_new_cmds | \
14550    archive_cmds | \
14551    archive_expsym_cmds | \
14552    module_cmds | \
14553    module_expsym_cmds | \
14554    old_archive_from_expsyms_cmds | \
14555    export_symbols_cmds | \
14556    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14557    postinstall_cmds | postuninstall_cmds | \
14558    old_postinstall_cmds | old_postuninstall_cmds | \
14559    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14560      # Double-quote double-evaled strings.
14561      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14562      ;;
14563    *)
14564      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14565      ;;
14566    esac
14567  done
14568
14569  case $lt_echo in
14570  *'\$0 --fallback-echo"')
14571    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14572    ;;
14573  esac
14574
14575cfgfile="${ofile}T"
14576  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14577  $rm -f "$cfgfile"
14578  { echo "$as_me:$LINENO: creating $ofile" >&5
14579echo "$as_me: creating $ofile" >&6;}
14580
14581  cat <<__EOF__ >> "$cfgfile"
14582#! $SHELL
14583
14584# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14585# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14586# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14587#
14588# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14589# Free Software Foundation, Inc.
14590#
14591# This file is part of GNU Libtool:
14592# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14593#
14594# This program is free software; you can redistribute it and/or modify
14595# it under the terms of the GNU General Public License as published by
14596# the Free Software Foundation; either version 2 of the License, or
14597# (at your option) any later version.
14598#
14599# This program is distributed in the hope that it will be useful, but
14600# WITHOUT ANY WARRANTY; without even the implied warranty of
14601# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14602# General Public License for more details.
14603#
14604# You should have received a copy of the GNU General Public License
14605# along with this program; if not, write to the Free Software
14606# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14607#
14608# As a special exception to the GNU General Public License, if you
14609# distribute this file as part of a program that contains a
14610# configuration script generated by Autoconf, you may include it under
14611# the same distribution terms that you use for the rest of that program.
14612
14613# A sed program that does not truncate output.
14614SED=$lt_SED
14615
14616# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14617Xsed="$SED -e s/^X//"
14618
14619# The HP-UX ksh and POSIX shell print the target directory to stdout
14620# if CDPATH is set.
14621(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14622
14623# The names of the tagged configurations supported by this script.
14624available_tags=
14625
14626# ### BEGIN LIBTOOL CONFIG
14627
14628# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14629
14630# Shell to use when invoking shell scripts.
14631SHELL=$lt_SHELL
14632
14633# Whether or not to build shared libraries.
14634build_libtool_libs=$enable_shared
14635
14636# Whether or not to build static libraries.
14637build_old_libs=$enable_static
14638
14639# Whether or not to add -lc for building shared libraries.
14640build_libtool_need_lc=$archive_cmds_need_lc
14641
14642# Whether or not to disallow shared libs when runtime libs are static
14643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14644
14645# Whether or not to optimize for fast installation.
14646fast_install=$enable_fast_install
14647
14648# The host system.
14649host_alias=$host_alias
14650host=$host
14651
14652# An echo program that does not interpret backslashes.
14653echo=$lt_echo
14654
14655# The archiver.
14656AR=$lt_AR
14657AR_FLAGS=$lt_AR_FLAGS
14658
14659# A C compiler.
14660LTCC=$lt_LTCC
14661
14662# A language-specific compiler.
14663CC=$lt_compiler
14664
14665# Is the compiler the GNU C compiler?
14666with_gcc=$GCC
14667
14668# An ERE matcher.
14669EGREP=$lt_EGREP
14670
14671# The linker used to build libraries.
14672LD=$lt_LD
14673
14674# Whether we need hard or soft links.
14675LN_S=$lt_LN_S
14676
14677# A BSD-compatible nm program.
14678NM=$lt_NM
14679
14680# A symbol stripping program
14681STRIP=$lt_STRIP
14682
14683# Used to examine libraries when file_magic_cmd begins "file"
14684MAGIC_CMD=$MAGIC_CMD
14685
14686# Used on cygwin: DLL creation program.
14687DLLTOOL="$DLLTOOL"
14688
14689# Used on cygwin: object dumper.
14690OBJDUMP="$OBJDUMP"
14691
14692# Used on cygwin: assembler.
14693AS="$AS"
14694
14695# The name of the directory that contains temporary libtool files.
14696objdir=$objdir
14697
14698# How to create reloadable object files.
14699reload_flag=$lt_reload_flag
14700reload_cmds=$lt_reload_cmds
14701
14702# How to pass a linker flag through the compiler.
14703wl=$lt_lt_prog_compiler_wl
14704
14705# Object file suffix (normally "o").
14706objext="$ac_objext"
14707
14708# Old archive suffix (normally "a").
14709libext="$libext"
14710
14711# Shared library suffix (normally ".so").
14712shrext_cmds='$shrext_cmds'
14713
14714# Executable file suffix (normally "").
14715exeext="$exeext"
14716
14717# Additional compiler flags for building library objects.
14718pic_flag=$lt_lt_prog_compiler_pic
14719pic_mode=$pic_mode
14720
14721# What is the maximum length of a command?
14722max_cmd_len=$lt_cv_sys_max_cmd_len
14723
14724# Does compiler simultaneously support -c and -o options?
14725compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14726
14727# Must we lock files when doing compilation ?
14728need_locks=$lt_need_locks
14729
14730# Do we need the lib prefix for modules?
14731need_lib_prefix=$need_lib_prefix
14732
14733# Do we need a version for libraries?
14734need_version=$need_version
14735
14736# Whether dlopen is supported.
14737dlopen_support=$enable_dlopen
14738
14739# Whether dlopen of programs is supported.
14740dlopen_self=$enable_dlopen_self
14741
14742# Whether dlopen of statically linked programs is supported.
14743dlopen_self_static=$enable_dlopen_self_static
14744
14745# Compiler flag to prevent dynamic linking.
14746link_static_flag=$lt_lt_prog_compiler_static
14747
14748# Compiler flag to turn off builtin functions.
14749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14750
14751# Compiler flag to allow reflexive dlopens.
14752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14753
14754# Compiler flag to generate shared objects directly from archives.
14755whole_archive_flag_spec=$lt_whole_archive_flag_spec
14756
14757# Compiler flag to generate thread-safe objects.
14758thread_safe_flag_spec=$lt_thread_safe_flag_spec
14759
14760# Library versioning type.
14761version_type=$version_type
14762
14763# Format of library name prefix.
14764libname_spec=$lt_libname_spec
14765
14766# List of archive names.  First name is the real one, the rest are links.
14767# The last name is the one that the linker finds with -lNAME.
14768library_names_spec=$lt_library_names_spec
14769
14770# The coded name of the library, if different from the real name.
14771soname_spec=$lt_soname_spec
14772
14773# Commands used to build and install an old-style archive.
14774RANLIB=$lt_RANLIB
14775old_archive_cmds=$lt_old_archive_cmds
14776old_postinstall_cmds=$lt_old_postinstall_cmds
14777old_postuninstall_cmds=$lt_old_postuninstall_cmds
14778
14779# Create an old-style archive from a shared archive.
14780old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14781
14782# Create a temporary old-style archive to link instead of a shared archive.
14783old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14784
14785# Commands used to build and install a shared archive.
14786archive_cmds=$lt_archive_cmds
14787archive_expsym_cmds=$lt_archive_expsym_cmds
14788postinstall_cmds=$lt_postinstall_cmds
14789postuninstall_cmds=$lt_postuninstall_cmds
14790
14791# Commands used to build a loadable module (assumed same as above if empty)
14792module_cmds=$lt_module_cmds
14793module_expsym_cmds=$lt_module_expsym_cmds
14794
14795# Commands to strip libraries.
14796old_striplib=$lt_old_striplib
14797striplib=$lt_striplib
14798
14799# Dependencies to place before the objects being linked to create a
14800# shared library.
14801predep_objects=$lt_predep_objects
14802
14803# Dependencies to place after the objects being linked to create a
14804# shared library.
14805postdep_objects=$lt_postdep_objects
14806
14807# Dependencies to place before the objects being linked to create a
14808# shared library.
14809predeps=$lt_predeps
14810
14811# Dependencies to place after the objects being linked to create a
14812# shared library.
14813postdeps=$lt_postdeps
14814
14815# The library search path used internally by the compiler when linking
14816# a shared library.
14817compiler_lib_search_path=$lt_compiler_lib_search_path
14818
14819# Method to check whether dependent libraries are shared objects.
14820deplibs_check_method=$lt_deplibs_check_method
14821
14822# Command to use when deplibs_check_method == file_magic.
14823file_magic_cmd=$lt_file_magic_cmd
14824
14825# Flag that allows shared libraries with undefined symbols to be built.
14826allow_undefined_flag=$lt_allow_undefined_flag
14827
14828# Flag that forces no undefined symbols.
14829no_undefined_flag=$lt_no_undefined_flag
14830
14831# Commands used to finish a libtool library installation in a directory.
14832finish_cmds=$lt_finish_cmds
14833
14834# Same as above, but a single script fragment to be evaled but not shown.
14835finish_eval=$lt_finish_eval
14836
14837# Take the output of nm and produce a listing of raw symbols and C names.
14838global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14839
14840# Transform the output of nm in a proper C declaration
14841global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14842
14843# Transform the output of nm in a C name address pair
14844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14845
14846# This is the shared library runtime path variable.
14847runpath_var=$runpath_var
14848
14849# This is the shared library path variable.
14850shlibpath_var=$shlibpath_var
14851
14852# Is shlibpath searched before the hard-coded library search path?
14853shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14854
14855# How to hardcode a shared library path into an executable.
14856hardcode_action=$hardcode_action
14857
14858# Whether we should hardcode library paths into libraries.
14859hardcode_into_libs=$hardcode_into_libs
14860
14861# Flag to hardcode \$libdir into a binary during linking.
14862# This must work even if \$libdir does not exist.
14863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14864
14865# If ld is used when linking, flag to hardcode \$libdir into
14866# a binary during linking. This must work even if \$libdir does
14867# not exist.
14868hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14869
14870# Whether we need a single -rpath flag with a separated argument.
14871hardcode_libdir_separator=$lt_hardcode_libdir_separator
14872
14873# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14874# resulting binary.
14875hardcode_direct=$hardcode_direct
14876
14877# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14878# resulting binary.
14879hardcode_minus_L=$hardcode_minus_L
14880
14881# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14882# the resulting binary.
14883hardcode_shlibpath_var=$hardcode_shlibpath_var
14884
14885# Set to yes if building a shared library automatically hardcodes DIR into the library
14886# and all subsequent libraries and executables linked against it.
14887hardcode_automatic=$hardcode_automatic
14888
14889# Variables whose values should be saved in libtool wrapper scripts and
14890# restored at relink time.
14891variables_saved_for_relink="$variables_saved_for_relink"
14892
14893# Whether libtool must link a program against all its dependency libraries.
14894link_all_deplibs=$link_all_deplibs
14895
14896# Compile-time system search path for libraries
14897sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14898
14899# Run-time system search path for libraries
14900sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14901
14902# Fix the shell variable \$srcfile for the compiler.
14903fix_srcfile_path="$fix_srcfile_path"
14904
14905# Set to yes if exported symbols are required.
14906always_export_symbols=$always_export_symbols
14907
14908# The commands to list exported symbols.
14909export_symbols_cmds=$lt_export_symbols_cmds
14910
14911# The commands to extract the exported symbol list from a shared archive.
14912extract_expsyms_cmds=$lt_extract_expsyms_cmds
14913
14914# Symbols that should not be listed in the preloaded symbols.
14915exclude_expsyms=$lt_exclude_expsyms
14916
14917# Symbols that must always be exported.
14918include_expsyms=$lt_include_expsyms
14919
14920# ### END LIBTOOL CONFIG
14921
14922__EOF__
14923
14924
14925  case $host_os in
14926  aix3*)
14927    cat <<\EOF >> "$cfgfile"
14928
14929# AIX sometimes has problems with the GCC collect2 program.  For some
14930# reason, if we set the COLLECT_NAMES environment variable, the problems
14931# vanish in a puff of smoke.
14932if test "X${COLLECT_NAMES+set}" != Xset; then
14933  COLLECT_NAMES=
14934  export COLLECT_NAMES
14935fi
14936EOF
14937    ;;
14938  esac
14939
14940  # We use sed instead of cat because bash on DJGPP gets confused if
14941  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14942  # text mode, it properly converts lines to CR/LF.  This bash problem
14943  # is reportedly fixed, but why not run on old versions too?
14944  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14945
14946  mv -f "$cfgfile" "$ofile" || \
14947    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14948  chmod +x "$ofile"
14949
14950else
14951  # If there is no Makefile yet, we rely on a make rule to execute
14952  # `config.status --recheck' to rerun these tests and create the
14953  # libtool script then.
14954  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14955  if test -f "$ltmain_in"; then
14956    test -f Makefile && make "$ltmain"
14957  fi
14958fi
14959
14960
14961ac_ext=c
14962ac_cpp='$CPP $CPPFLAGS'
14963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
14967CC="$lt_save_CC"
14968
14969
14970# Check whether --with-tags or --without-tags was given.
14971if test "${with_tags+set}" = set; then
14972  withval="$with_tags"
14973  tagnames="$withval"
14974fi;
14975
14976if test -f "$ltmain" && test -n "$tagnames"; then
14977  if test ! -f "${ofile}"; then
14978    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14979echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14980  fi
14981
14982  if test -z "$LTCC"; then
14983    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14984    if test -z "$LTCC"; then
14985      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14986echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14987    else
14988      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14989echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14990    fi
14991  fi
14992
14993  # Extract list of available tagged configurations in $ofile.
14994  # Note that this assumes the entire list is on one line.
14995  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14996
14997  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14998  for tagname in $tagnames; do
14999    IFS="$lt_save_ifs"
15000    # Check whether tagname contains only valid characters
15001    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15002    "") ;;
15003    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15004echo "$as_me: error: invalid tag name: $tagname" >&2;}
15005   { (exit 1); exit 1; }; }
15006	;;
15007    esac
15008
15009    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15010    then
15011      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15012echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15013   { (exit 1); exit 1; }; }
15014    fi
15015
15016    # Update the list of available tags.
15017    if test -n "$tagname"; then
15018      echo appending configuration tag "$tagname" to $ofile
15019
15020      case $tagname in
15021      CXX)
15022	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15023	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15024	    (test "X$CXX" != "Xg++"))) ; then
15025	  ac_ext=cc
15026ac_cpp='$CXXCPP $CPPFLAGS'
15027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15030
15031
15032
15033
15034archive_cmds_need_lc_CXX=no
15035allow_undefined_flag_CXX=
15036always_export_symbols_CXX=no
15037archive_expsym_cmds_CXX=
15038export_dynamic_flag_spec_CXX=
15039hardcode_direct_CXX=no
15040hardcode_libdir_flag_spec_CXX=
15041hardcode_libdir_flag_spec_ld_CXX=
15042hardcode_libdir_separator_CXX=
15043hardcode_minus_L_CXX=no
15044hardcode_automatic_CXX=no
15045module_cmds_CXX=
15046module_expsym_cmds_CXX=
15047link_all_deplibs_CXX=unknown
15048old_archive_cmds_CXX=$old_archive_cmds
15049no_undefined_flag_CXX=
15050whole_archive_flag_spec_CXX=
15051enable_shared_with_static_runtimes_CXX=no
15052
15053# Dependencies to place before and after the object being linked:
15054predep_objects_CXX=
15055postdep_objects_CXX=
15056predeps_CXX=
15057postdeps_CXX=
15058compiler_lib_search_path_CXX=
15059
15060# Source file extension for C++ test sources.
15061ac_ext=cc
15062
15063# Object file extension for compiled C++ test sources.
15064objext=o
15065objext_CXX=$objext
15066
15067# Code to be used in simple compile tests
15068lt_simple_compile_test_code="int some_variable = 0;\n"
15069
15070# Code to be used in simple link tests
15071lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15072
15073# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15074
15075# If no C compiler was specified, use CC.
15076LTCC=${LTCC-"$CC"}
15077
15078# Allow CC to be a program name with arguments.
15079compiler=$CC
15080
15081
15082# Allow CC to be a program name with arguments.
15083lt_save_CC=$CC
15084lt_save_LD=$LD
15085lt_save_GCC=$GCC
15086GCC=$GXX
15087lt_save_with_gnu_ld=$with_gnu_ld
15088lt_save_path_LD=$lt_cv_path_LD
15089if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15090  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15091else
15092  unset lt_cv_prog_gnu_ld
15093fi
15094if test -n "${lt_cv_path_LDCXX+set}"; then
15095  lt_cv_path_LD=$lt_cv_path_LDCXX
15096else
15097  unset lt_cv_path_LD
15098fi
15099test -z "${LDCXX+set}" || LD=$LDCXX
15100CC=${CXX-"c++"}
15101compiler=$CC
15102compiler_CXX=$CC
15103cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15104
15105# We don't want -fno-exception wen compiling C++ code, so set the
15106# no_builtin_flag separately
15107if test "$GXX" = yes; then
15108  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15109else
15110  lt_prog_compiler_no_builtin_flag_CXX=
15111fi
15112
15113if test "$GXX" = yes; then
15114  # Set up default GNU C++ configuration
15115
15116
15117# Check whether --with-gnu-ld or --without-gnu-ld was given.
15118if test "${with_gnu_ld+set}" = set; then
15119  withval="$with_gnu_ld"
15120  test "$withval" = no || with_gnu_ld=yes
15121else
15122  with_gnu_ld=no
15123fi;
15124ac_prog=ld
15125if test "$GCC" = yes; then
15126  # Check if gcc -print-prog-name=ld gives a path.
15127  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15128echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15129  case $host in
15130  *-*-mingw*)
15131    # gcc leaves a trailing carriage return which upsets mingw
15132    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15133  *)
15134    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15135  esac
15136  case $ac_prog in
15137    # Accept absolute paths.
15138    [\\/]* | ?:[\\/]*)
15139      re_direlt='/[^/][^/]*/\.\./'
15140      # Canonicalize the pathname of ld
15141      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15142      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15143	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15144      done
15145      test -z "$LD" && LD="$ac_prog"
15146      ;;
15147  "")
15148    # If it fails, then pretend we aren't using GCC.
15149    ac_prog=ld
15150    ;;
15151  *)
15152    # If it is relative, then search for the first ld in PATH.
15153    with_gnu_ld=unknown
15154    ;;
15155  esac
15156elif test "$with_gnu_ld" = yes; then
15157  echo "$as_me:$LINENO: checking for GNU ld" >&5
15158echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15159else
15160  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15161echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15162fi
15163if test "${lt_cv_path_LD+set}" = set; then
15164  echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166  if test -z "$LD"; then
15167  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15168  for ac_dir in $PATH; do
15169    IFS="$lt_save_ifs"
15170    test -z "$ac_dir" && ac_dir=.
15171    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15172      lt_cv_path_LD="$ac_dir/$ac_prog"
15173      # Check to see if the program is GNU ld.  I'd rather use --version,
15174      # but apparently some GNU ld's only accept -v.
15175      # Break only if it was the GNU/non-GNU ld that we prefer.
15176      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15177      *GNU* | *'with BFD'*)
15178	test "$with_gnu_ld" != no && break
15179	;;
15180      *)
15181	test "$with_gnu_ld" != yes && break
15182	;;
15183      esac
15184    fi
15185  done
15186  IFS="$lt_save_ifs"
15187else
15188  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15189fi
15190fi
15191
15192LD="$lt_cv_path_LD"
15193if test -n "$LD"; then
15194  echo "$as_me:$LINENO: result: $LD" >&5
15195echo "${ECHO_T}$LD" >&6
15196else
15197  echo "$as_me:$LINENO: result: no" >&5
15198echo "${ECHO_T}no" >&6
15199fi
15200test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15201echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15202   { (exit 1); exit 1; }; }
15203echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15204echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15205if test "${lt_cv_prog_gnu_ld+set}" = set; then
15206  echo $ECHO_N "(cached) $ECHO_C" >&6
15207else
15208  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15209case `$LD -v 2>&1 </dev/null` in
15210*GNU* | *'with BFD'*)
15211  lt_cv_prog_gnu_ld=yes
15212  ;;
15213*)
15214  lt_cv_prog_gnu_ld=no
15215  ;;
15216esac
15217fi
15218echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15219echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15220with_gnu_ld=$lt_cv_prog_gnu_ld
15221
15222
15223
15224  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15225  # archiving commands below assume that GNU ld is being used.
15226  if test "$with_gnu_ld" = yes; then
15227    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228    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'
15229
15230    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15231    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15232
15233    # If archive_cmds runs LD, not CC, wlarc should be empty
15234    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15235    #     investigate it a little bit more. (MM)
15236    wlarc='${wl}'
15237
15238    # ancient GNU ld didn't support --whole-archive et. al.
15239    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15240	grep 'no-whole-archive' > /dev/null; then
15241      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15242    else
15243      whole_archive_flag_spec_CXX=
15244    fi
15245  else
15246    with_gnu_ld=no
15247    wlarc=
15248
15249    # A generic and very simple default shared library creation
15250    # command for GNU C++ for the case where it uses the native
15251    # linker, instead of GNU ld.  If possible, this setting should
15252    # overridden to take advantage of the native linker features on
15253    # the platform it is being used on.
15254    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15255  fi
15256
15257  # Commands to make compiler produce verbose output that lists
15258  # what "hidden" libraries, object files and flags are used when
15259  # linking a shared library.
15260  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15261
15262else
15263  GXX=no
15264  with_gnu_ld=no
15265  wlarc=
15266fi
15267
15268# PORTME: fill in a description of your system's C++ link characteristics
15269echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15271ld_shlibs_CXX=yes
15272case $host_os in
15273  aix3*)
15274    # FIXME: insert proper C++ library support
15275    ld_shlibs_CXX=no
15276    ;;
15277  aix4* | aix5*)
15278    if test "$host_cpu" = ia64; then
15279      # On IA64, the linker does run time linking by default, so we don't
15280      # have to do anything special.
15281      aix_use_runtimelinking=no
15282      exp_sym_flag='-Bexport'
15283      no_entry_flag=""
15284    else
15285      aix_use_runtimelinking=no
15286
15287      # Test if we are trying to use run time linking or normal
15288      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15289      # need to do runtime linking.
15290      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15291	for ld_flag in $LDFLAGS; do
15292	  case $ld_flag in
15293	  *-brtl*)
15294	    aix_use_runtimelinking=yes
15295	    break
15296	    ;;
15297	  esac
15298	done
15299      esac
15300
15301      exp_sym_flag='-bexport'
15302      no_entry_flag='-bnoentry'
15303    fi
15304
15305    # When large executables or shared objects are built, AIX ld can
15306    # have problems creating the table of contents.  If linking a library
15307    # or program results in "error TOC overflow" add -mminimal-toc to
15308    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15309    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15310
15311    archive_cmds_CXX=''
15312    hardcode_direct_CXX=yes
15313    hardcode_libdir_separator_CXX=':'
15314    link_all_deplibs_CXX=yes
15315
15316    if test "$GXX" = yes; then
15317      case $host_os in aix4.012|aix4.012.*)
15318      # We only want to do this on AIX 4.2 and lower, the check
15319      # below for broken collect2 doesn't work under 4.3+
15320	collect2name=`${CC} -print-prog-name=collect2`
15321	if test -f "$collect2name" && \
15322	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15323	then
15324	  # We have reworked collect2
15325	  hardcode_direct_CXX=yes
15326	else
15327	  # We have old collect2
15328	  hardcode_direct_CXX=unsupported
15329	  # It fails to find uninstalled libraries when the uninstalled
15330	  # path is not listed in the libpath.  Setting hardcode_minus_L
15331	  # to unsupported forces relinking
15332	  hardcode_minus_L_CXX=yes
15333	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15334	  hardcode_libdir_separator_CXX=
15335	fi
15336      esac
15337      shared_flag='-shared'
15338    else
15339      # not using gcc
15340      if test "$host_cpu" = ia64; then
15341	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15342	# chokes on -Wl,-G. The following line is correct:
15343	shared_flag='-G'
15344      else
15345	if test "$aix_use_runtimelinking" = yes; then
15346	  shared_flag='${wl}-G'
15347	else
15348	  shared_flag='${wl}-bM:SRE'
15349	fi
15350      fi
15351    fi
15352
15353    # It seems that -bexpall does not export symbols beginning with
15354    # underscore (_), so it is better to generate a list of symbols to export.
15355    always_export_symbols_CXX=yes
15356    if test "$aix_use_runtimelinking" = yes; then
15357      # Warning - without using the other runtime loading flags (-brtl),
15358      # -berok will link without error, but may produce a broken library.
15359      allow_undefined_flag_CXX='-berok'
15360      # Determine the default libpath from the value encoded in an empty executable.
15361      cat >conftest.$ac_ext <<_ACEOF
15362/* confdefs.h.  */
15363_ACEOF
15364cat confdefs.h >>conftest.$ac_ext
15365cat >>conftest.$ac_ext <<_ACEOF
15366/* end confdefs.h.  */
15367
15368int
15369main ()
15370{
15371
15372  ;
15373  return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext conftest$ac_exeext
15377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378  (eval $ac_link) 2>conftest.er1
15379  ac_status=$?
15380  grep -v '^ *+' conftest.er1 >conftest.err
15381  rm -f conftest.er1
15382  cat conftest.err >&5
15383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384  (exit $ac_status); } &&
15385	 { ac_try='test -z "$ac_cxx_werror_flag"
15386			 || test ! -s conftest.err'
15387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388  (eval $ac_try) 2>&5
15389  ac_status=$?
15390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391  (exit $ac_status); }; } &&
15392	 { ac_try='test -s conftest$ac_exeext'
15393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394  (eval $ac_try) 2>&5
15395  ac_status=$?
15396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397  (exit $ac_status); }; }; then
15398
15399aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15400}'`
15401# Check for a 64-bit object if we didn't find anything.
15402if 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; }
15403}'`; fi
15404else
15405  echo "$as_me: failed program was:" >&5
15406sed 's/^/| /' conftest.$ac_ext >&5
15407
15408fi
15409rm -f conftest.err conftest.$ac_objext \
15410      conftest$ac_exeext conftest.$ac_ext
15411if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15412
15413      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15414
15415      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"
15416     else
15417      if test "$host_cpu" = ia64; then
15418	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15419	allow_undefined_flag_CXX="-z nodefs"
15420	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"
15421      else
15422	# Determine the default libpath from the value encoded in an empty executable.
15423	cat >conftest.$ac_ext <<_ACEOF
15424/* confdefs.h.  */
15425_ACEOF
15426cat confdefs.h >>conftest.$ac_ext
15427cat >>conftest.$ac_ext <<_ACEOF
15428/* end confdefs.h.  */
15429
15430int
15431main ()
15432{
15433
15434  ;
15435  return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext conftest$ac_exeext
15439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440  (eval $ac_link) 2>conftest.er1
15441  ac_status=$?
15442  grep -v '^ *+' conftest.er1 >conftest.err
15443  rm -f conftest.er1
15444  cat conftest.err >&5
15445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446  (exit $ac_status); } &&
15447	 { ac_try='test -z "$ac_cxx_werror_flag"
15448			 || test ! -s conftest.err'
15449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450  (eval $ac_try) 2>&5
15451  ac_status=$?
15452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453  (exit $ac_status); }; } &&
15454	 { ac_try='test -s conftest$ac_exeext'
15455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456  (eval $ac_try) 2>&5
15457  ac_status=$?
15458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459  (exit $ac_status); }; }; then
15460
15461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15462}'`
15463# Check for a 64-bit object if we didn't find anything.
15464if 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; }
15465}'`; fi
15466else
15467  echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470fi
15471rm -f conftest.err conftest.$ac_objext \
15472      conftest$ac_exeext conftest.$ac_ext
15473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15474
15475	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15476	# Warning - without using the other run time loading flags,
15477	# -berok will link without error, but may produce a broken library.
15478	no_undefined_flag_CXX=' ${wl}-bernotok'
15479	allow_undefined_flag_CXX=' ${wl}-berok'
15480	# -bexpall does not export symbols beginning with underscore (_)
15481	always_export_symbols_CXX=yes
15482	# Exported symbols can be pulled into shared objects from archives
15483	whole_archive_flag_spec_CXX=' '
15484	archive_cmds_need_lc_CXX=yes
15485	# This is similar to how AIX traditionally builds it's shared libraries.
15486	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'
15487      fi
15488    fi
15489    ;;
15490  chorus*)
15491    case $cc_basename in
15492      *)
15493	# FIXME: insert proper C++ library support
15494	ld_shlibs_CXX=no
15495	;;
15496    esac
15497    ;;
15498
15499
15500  cygwin* | mingw* | pw32*)
15501    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15502    # as there is no search path for DLLs.
15503    hardcode_libdir_flag_spec_CXX='-L$libdir'
15504    allow_undefined_flag_CXX=unsupported
15505    always_export_symbols_CXX=no
15506    enable_shared_with_static_runtimes_CXX=yes
15507
15508    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15509      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'
15510      # If the export-symbols file already is a .def file (1st line
15511      # is EXPORTS), use it as is; otherwise, prepend...
15512      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15513	cp $export_symbols $output_objdir/$soname.def;
15514      else
15515	echo EXPORTS > $output_objdir/$soname.def;
15516	cat $export_symbols >> $output_objdir/$soname.def;
15517      fi~
15518      $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'
15519    else
15520      ld_shlibs_CXX=no
15521    fi
15522  ;;
15523      darwin* | rhapsody*)
15524        case "$host_os" in
15525        rhapsody* | darwin1.[012])
15526         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15527         ;;
15528       *) # Darwin 1.3 on
15529         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15530           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531         else
15532           case ${MACOSX_DEPLOYMENT_TARGET} in
15533             10.[012])
15534               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15535               ;;
15536             10.*)
15537               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15538               ;;
15539           esac
15540         fi
15541         ;;
15542        esac
15543      archive_cmds_need_lc_CXX=no
15544      hardcode_direct_CXX=no
15545      hardcode_automatic_CXX=yes
15546      hardcode_shlibpath_var_CXX=unsupported
15547      whole_archive_flag_spec_CXX=''
15548      link_all_deplibs_CXX=yes
15549
15550    if test "$GXX" = yes ; then
15551      lt_int_apple_cc_single_mod=no
15552      output_verbose_link_cmd='echo'
15553      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15554       lt_int_apple_cc_single_mod=yes
15555      fi
15556      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15557       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15558      else
15559          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'
15560        fi
15561        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15562        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15563          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15564            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}'
15565          else
15566            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}'
15567          fi
15568            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}'
15569      else
15570      case "$cc_basename" in
15571        xlc*)
15572         output_verbose_link_cmd='echo'
15573          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'
15574          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15575          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15576          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}'
15577          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}'
15578          ;;
15579       *)
15580         ld_shlibs_CXX=no
15581          ;;
15582      esac
15583      fi
15584        ;;
15585
15586  dgux*)
15587    case $cc_basename in
15588      ec++)
15589	# FIXME: insert proper C++ library support
15590	ld_shlibs_CXX=no
15591	;;
15592      ghcx)
15593	# Green Hills C++ Compiler
15594	# FIXME: insert proper C++ library support
15595	ld_shlibs_CXX=no
15596	;;
15597      *)
15598	# FIXME: insert proper C++ library support
15599	ld_shlibs_CXX=no
15600	;;
15601    esac
15602    ;;
15603  freebsd12*)
15604    # C++ shared libraries reported to be fairly broken before switch to ELF
15605    ld_shlibs_CXX=no
15606    ;;
15607  freebsd-elf*)
15608    archive_cmds_need_lc_CXX=no
15609    ;;
15610  freebsd* | kfreebsd*-gnu)
15611    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15612    # conventions
15613    ld_shlibs_CXX=yes
15614    ;;
15615  gnu*)
15616    ;;
15617  hpux9*)
15618    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15619    hardcode_libdir_separator_CXX=:
15620    export_dynamic_flag_spec_CXX='${wl}-E'
15621    hardcode_direct_CXX=yes
15622    hardcode_minus_L_CXX=yes # Not in the search PATH,
15623				# but as the default
15624				# location of the library.
15625
15626    case $cc_basename in
15627    CC)
15628      # FIXME: insert proper C++ library support
15629      ld_shlibs_CXX=no
15630      ;;
15631    aCC)
15632      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'
15633      # Commands to make compiler produce verbose output that lists
15634      # what "hidden" libraries, object files and flags are used when
15635      # linking a shared library.
15636      #
15637      # There doesn't appear to be a way to prevent this compiler from
15638      # explicitly linking system object files so we need to strip them
15639      # from the output so that they don't get included in the library
15640      # dependencies.
15641      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'
15642      ;;
15643    *)
15644      if test "$GXX" = yes; then
15645        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'
15646      else
15647        # FIXME: insert proper C++ library support
15648        ld_shlibs_CXX=no
15649      fi
15650      ;;
15651    esac
15652    ;;
15653  hpux10*|hpux11*)
15654    if test $with_gnu_ld = no; then
15655      case "$host_cpu" in
15656      hppa*64*)
15657	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15658	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15659	hardcode_libdir_separator_CXX=:
15660        ;;
15661      ia64*)
15662	hardcode_libdir_flag_spec_CXX='-L$libdir'
15663        ;;
15664      *)
15665	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15666	hardcode_libdir_separator_CXX=:
15667	export_dynamic_flag_spec_CXX='${wl}-E'
15668        ;;
15669      esac
15670    fi
15671    case "$host_cpu" in
15672    hppa*64*)
15673      hardcode_direct_CXX=no
15674      hardcode_shlibpath_var_CXX=no
15675      ;;
15676    ia64*)
15677      hardcode_direct_CXX=no
15678      hardcode_shlibpath_var_CXX=no
15679      hardcode_minus_L_CXX=yes # Not in the search PATH,
15680					      # but as the default
15681					      # location of the library.
15682      ;;
15683    *)
15684      hardcode_direct_CXX=yes
15685      hardcode_minus_L_CXX=yes # Not in the search PATH,
15686					      # but as the default
15687					      # location of the library.
15688      ;;
15689    esac
15690
15691    case $cc_basename in
15692      CC)
15693	# FIXME: insert proper C++ library support
15694	ld_shlibs_CXX=no
15695	;;
15696      aCC)
15697	case "$host_cpu" in
15698	hppa*64*|ia64*)
15699	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15700	  ;;
15701	*)
15702	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15703	  ;;
15704	esac
15705	# Commands to make compiler produce verbose output that lists
15706	# what "hidden" libraries, object files and flags are used when
15707	# linking a shared library.
15708	#
15709	# There doesn't appear to be a way to prevent this compiler from
15710	# explicitly linking system object files so we need to strip them
15711	# from the output so that they don't get included in the library
15712	# dependencies.
15713	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'
15714	;;
15715      *)
15716	if test "$GXX" = yes; then
15717	  if test $with_gnu_ld = no; then
15718	    case "$host_cpu" in
15719	    ia64*|hppa*64*)
15720	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15721	      ;;
15722	    *)
15723	      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'
15724	      ;;
15725	    esac
15726	  fi
15727	else
15728	  # FIXME: insert proper C++ library support
15729	  ld_shlibs_CXX=no
15730	fi
15731	;;
15732    esac
15733    ;;
15734  irix5* | irix6*)
15735    case $cc_basename in
15736      CC)
15737	# SGI C++
15738	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'
15739
15740	# Archives containing C++ object files must be created using
15741	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15742	# necessary to make sure instantiated templates are included
15743	# in the archive.
15744	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15745	;;
15746      *)
15747	if test "$GXX" = yes; then
15748	  if test "$with_gnu_ld" = no; then
15749	    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'
15750	  else
15751	    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'
15752	  fi
15753	fi
15754	link_all_deplibs_CXX=yes
15755	;;
15756    esac
15757    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15758    hardcode_libdir_separator_CXX=:
15759    ;;
15760  linux*)
15761    case $cc_basename in
15762      KCC)
15763	# Kuck and Associates, Inc. (KAI) C++ Compiler
15764
15765	# KCC will only create a shared library if the output file
15766	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15767	# to its proper name (with version) after linking.
15768	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'
15769	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'
15770	# Commands to make compiler produce verbose output that lists
15771	# what "hidden" libraries, object files and flags are used when
15772	# linking a shared library.
15773	#
15774	# There doesn't appear to be a way to prevent this compiler from
15775	# explicitly linking system object files so we need to strip them
15776	# from the output so that they don't get included in the library
15777	# dependencies.
15778	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'
15779
15780	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15781	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15782
15783	# Archives containing C++ object files must be created using
15784	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15785	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15786	;;
15787      icpc)
15788	# Intel C++
15789	with_gnu_ld=yes
15790	# version 8.0 and above of icpc choke on multiply defined symbols
15791	# if we add $predep_objects and $postdep_objects, however 7.1 and
15792	# earlier do not add the objects themselves.
15793	case `$CC -V 2>&1` in
15794	*"Version 7."*)
15795  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796  	  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'
15797	  ;;
15798	*)  # Version 8.0 or newer
15799  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15801	  ;;
15802	esac
15803	archive_cmds_need_lc_CXX=no
15804	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15805	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15806	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15807	;;
15808      cxx)
15809	# Compaq C++
15810	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811	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'
15812
15813	runpath_var=LD_RUN_PATH
15814	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15815	hardcode_libdir_separator_CXX=:
15816
15817	# Commands to make compiler produce verbose output that lists
15818	# what "hidden" libraries, object files and flags are used when
15819	# linking a shared library.
15820	#
15821	# There doesn't appear to be a way to prevent this compiler from
15822	# explicitly linking system object files so we need to strip them
15823	# from the output so that they don't get included in the library
15824	# dependencies.
15825	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'
15826	;;
15827    esac
15828    ;;
15829  lynxos*)
15830    # FIXME: insert proper C++ library support
15831    ld_shlibs_CXX=no
15832    ;;
15833  m88k*)
15834    # FIXME: insert proper C++ library support
15835    ld_shlibs_CXX=no
15836    ;;
15837  mvs*)
15838    case $cc_basename in
15839      cxx)
15840	# FIXME: insert proper C++ library support
15841	ld_shlibs_CXX=no
15842	;;
15843      *)
15844	# FIXME: insert proper C++ library support
15845	ld_shlibs_CXX=no
15846	;;
15847    esac
15848    ;;
15849  netbsd*)
15850    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15851      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15852      wlarc=
15853      hardcode_libdir_flag_spec_CXX='-R$libdir'
15854      hardcode_direct_CXX=yes
15855      hardcode_shlibpath_var_CXX=no
15856    fi
15857    # Workaround some broken pre-1.5 toolchains
15858    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15859    ;;
15860  openbsd2*)
15861    # C++ shared libraries are fairly broken
15862    ld_shlibs_CXX=no
15863    ;;
15864  openbsd*)
15865    hardcode_direct_CXX=yes
15866    hardcode_shlibpath_var_CXX=no
15867    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15868    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15869    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15870      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15871      export_dynamic_flag_spec_CXX='${wl}-E'
15872      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15873    fi
15874    output_verbose_link_cmd='echo'
15875    ;;
15876  osf3*)
15877    case $cc_basename in
15878      KCC)
15879	# Kuck and Associates, Inc. (KAI) C++ Compiler
15880
15881	# KCC will only create a shared library if the output file
15882	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15883	# to its proper name (with version) after linking.
15884	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'
15885
15886	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15887	hardcode_libdir_separator_CXX=:
15888
15889	# Archives containing C++ object files must be created using
15890	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15891	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15892
15893	;;
15894      RCC)
15895	# Rational C++ 2.4.1
15896	# FIXME: insert proper C++ library support
15897	ld_shlibs_CXX=no
15898	;;
15899      cxx)
15900	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15901	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'
15902
15903	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15904	hardcode_libdir_separator_CXX=:
15905
15906	# Commands to make compiler produce verbose output that lists
15907	# what "hidden" libraries, object files and flags are used when
15908	# linking a shared library.
15909	#
15910	# There doesn't appear to be a way to prevent this compiler from
15911	# explicitly linking system object files so we need to strip them
15912	# from the output so that they don't get included in the library
15913	# dependencies.
15914	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'
15915	;;
15916      *)
15917	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15918	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15919	  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'
15920
15921	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15922	  hardcode_libdir_separator_CXX=:
15923
15924	  # Commands to make compiler produce verbose output that lists
15925	  # what "hidden" libraries, object files and flags are used when
15926	  # linking a shared library.
15927	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15928
15929	else
15930	  # FIXME: insert proper C++ library support
15931	  ld_shlibs_CXX=no
15932	fi
15933	;;
15934    esac
15935    ;;
15936  osf4* | osf5*)
15937    case $cc_basename in
15938      KCC)
15939	# Kuck and Associates, Inc. (KAI) C++ Compiler
15940
15941	# KCC will only create a shared library if the output file
15942	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15943	# to its proper name (with version) after linking.
15944	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'
15945
15946	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15947	hardcode_libdir_separator_CXX=:
15948
15949	# Archives containing C++ object files must be created using
15950	# the KAI C++ compiler.
15951	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15952	;;
15953      RCC)
15954	# Rational C++ 2.4.1
15955	# FIXME: insert proper C++ library support
15956	ld_shlibs_CXX=no
15957	;;
15958      cxx)
15959	allow_undefined_flag_CXX=' -expect_unresolved \*'
15960	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'
15961	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15962	  echo "-hidden">> $lib.exp~
15963	  $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~
15964	  $rm $lib.exp'
15965
15966	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15967	hardcode_libdir_separator_CXX=:
15968
15969	# Commands to make compiler produce verbose output that lists
15970	# what "hidden" libraries, object files and flags are used when
15971	# linking a shared library.
15972	#
15973	# There doesn't appear to be a way to prevent this compiler from
15974	# explicitly linking system object files so we need to strip them
15975	# from the output so that they don't get included in the library
15976	# dependencies.
15977	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'
15978	;;
15979      *)
15980	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15981	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15982	 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'
15983
15984	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15985	  hardcode_libdir_separator_CXX=:
15986
15987	  # Commands to make compiler produce verbose output that lists
15988	  # what "hidden" libraries, object files and flags are used when
15989	  # linking a shared library.
15990	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15991
15992	else
15993	  # FIXME: insert proper C++ library support
15994	  ld_shlibs_CXX=no
15995	fi
15996	;;
15997    esac
15998    ;;
15999  psos*)
16000    # FIXME: insert proper C++ library support
16001    ld_shlibs_CXX=no
16002    ;;
16003  sco*)
16004    archive_cmds_need_lc_CXX=no
16005    case $cc_basename in
16006      CC)
16007	# FIXME: insert proper C++ library support
16008	ld_shlibs_CXX=no
16009	;;
16010      *)
16011	# FIXME: insert proper C++ library support
16012	ld_shlibs_CXX=no
16013	;;
16014    esac
16015    ;;
16016  sunos4*)
16017    case $cc_basename in
16018      CC)
16019	# Sun C++ 4.x
16020	# FIXME: insert proper C++ library support
16021	ld_shlibs_CXX=no
16022	;;
16023      lcc)
16024	# Lucid
16025	# FIXME: insert proper C++ library support
16026	ld_shlibs_CXX=no
16027	;;
16028      *)
16029	# FIXME: insert proper C++ library support
16030	ld_shlibs_CXX=no
16031	;;
16032    esac
16033    ;;
16034  solaris*)
16035    case $cc_basename in
16036      CC)
16037	# Sun C++ 4.2, 5.x and Centerline C++
16038	no_undefined_flag_CXX=' -zdefs'
16039	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16040	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16041	$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'
16042
16043	hardcode_libdir_flag_spec_CXX='-R$libdir'
16044	hardcode_shlibpath_var_CXX=no
16045	case $host_os in
16046	  solaris2.0-5 | solaris2.0-5.*) ;;
16047	  *)
16048	    # The C++ compiler is used as linker so we must use $wl
16049	    # flag to pass the commands to the underlying system
16050	    # linker.
16051	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16052	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16053	    ;;
16054	esac
16055	link_all_deplibs_CXX=yes
16056
16057	# Commands to make compiler produce verbose output that lists
16058	# what "hidden" libraries, object files and flags are used when
16059	# linking a shared library.
16060	#
16061	# There doesn't appear to be a way to prevent this compiler from
16062	# explicitly linking system object files so we need to strip them
16063	# from the output so that they don't get included in the library
16064	# dependencies.
16065	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'
16066
16067	# Archives containing C++ object files must be created using
16068	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16069	# necessary to make sure instantiated templates are included
16070	# in the archive.
16071	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16072	;;
16073      gcx)
16074	# Green Hills C++ Compiler
16075	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16076
16077	# The C++ compiler must be used to create the archive.
16078	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16079	;;
16080      *)
16081	# GNU C++ compiler with Solaris linker
16082	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16083	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16084	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16085	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16086	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16087		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16088
16089	    # Commands to make compiler produce verbose output that lists
16090	    # what "hidden" libraries, object files and flags are used when
16091	    # linking a shared library.
16092	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16093	  else
16094	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16095	    # platform.
16096	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16097	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16098		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16099
16100	    # Commands to make compiler produce verbose output that lists
16101	    # what "hidden" libraries, object files and flags are used when
16102	    # linking a shared library.
16103	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16104	  fi
16105
16106	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16107	fi
16108	;;
16109    esac
16110    ;;
16111  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16112    archive_cmds_need_lc_CXX=no
16113    ;;
16114  tandem*)
16115    case $cc_basename in
16116      NCC)
16117	# NonStop-UX NCC 3.20
16118	# FIXME: insert proper C++ library support
16119	ld_shlibs_CXX=no
16120	;;
16121      *)
16122	# FIXME: insert proper C++ library support
16123	ld_shlibs_CXX=no
16124	;;
16125    esac
16126    ;;
16127  vxworks*)
16128    # FIXME: insert proper C++ library support
16129    ld_shlibs_CXX=no
16130    ;;
16131  *)
16132    # FIXME: insert proper C++ library support
16133    ld_shlibs_CXX=no
16134    ;;
16135esac
16136echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16137echo "${ECHO_T}$ld_shlibs_CXX" >&6
16138test "$ld_shlibs_CXX" = no && can_build_shared=no
16139
16140GCC_CXX="$GXX"
16141LD_CXX="$LD"
16142
16143
16144cat > conftest.$ac_ext <<EOF
16145class Foo
16146{
16147public:
16148  Foo (void) { a = 0; }
16149private:
16150  int a;
16151};
16152EOF
16153
16154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16155  (eval $ac_compile) 2>&5
16156  ac_status=$?
16157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158  (exit $ac_status); }; then
16159  # Parse the compiler output and extract the necessary
16160  # objects, libraries and library flags.
16161
16162  # Sentinel used to keep track of whether or not we are before
16163  # the conftest object file.
16164  pre_test_object_deps_done=no
16165
16166  # The `*' in the case matches for architectures that use `case' in
16167  # $output_verbose_cmd can trigger glob expansion during the loop
16168  # eval without this substitution.
16169  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16170
16171  for p in `eval $output_verbose_link_cmd`; do
16172    case $p in
16173
16174    -L* | -R* | -l*)
16175       # Some compilers place space between "-{L,R}" and the path.
16176       # Remove the space.
16177       if test $p = "-L" \
16178	  || test $p = "-R"; then
16179	 prev=$p
16180	 continue
16181       else
16182	 prev=
16183       fi
16184
16185       if test "$pre_test_object_deps_done" = no; then
16186	 case $p in
16187	 -L* | -R*)
16188	   # Internal compiler library paths should come after those
16189	   # provided the user.  The postdeps already come after the
16190	   # user supplied libs so there is no need to process them.
16191	   if test -z "$compiler_lib_search_path_CXX"; then
16192	     compiler_lib_search_path_CXX="${prev}${p}"
16193	   else
16194	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16195	   fi
16196	   ;;
16197	 # The "-l" case would never come before the object being
16198	 # linked, so don't bother handling this case.
16199	 esac
16200       else
16201	 if test -z "$postdeps_CXX"; then
16202	   postdeps_CXX="${prev}${p}"
16203	 else
16204	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16205	 fi
16206       fi
16207       ;;
16208
16209    *.$objext)
16210       # This assumes that the test object file only shows up
16211       # once in the compiler output.
16212       if test "$p" = "conftest.$objext"; then
16213	 pre_test_object_deps_done=yes
16214	 continue
16215       fi
16216
16217       if test "$pre_test_object_deps_done" = no; then
16218	 if test -z "$predep_objects_CXX"; then
16219	   predep_objects_CXX="$p"
16220	 else
16221	   predep_objects_CXX="$predep_objects_CXX $p"
16222	 fi
16223       else
16224	 if test -z "$postdep_objects_CXX"; then
16225	   postdep_objects_CXX="$p"
16226	 else
16227	   postdep_objects_CXX="$postdep_objects_CXX $p"
16228	 fi
16229       fi
16230       ;;
16231
16232    *) ;; # Ignore the rest.
16233
16234    esac
16235  done
16236
16237  # Clean up.
16238  rm -f a.out a.exe
16239else
16240  echo "libtool.m4: error: problem compiling CXX test program"
16241fi
16242
16243$rm -f confest.$objext
16244
16245case " $postdeps_CXX " in
16246*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16247esac
16248
16249lt_prog_compiler_wl_CXX=
16250lt_prog_compiler_pic_CXX=
16251lt_prog_compiler_static_CXX=
16252
16253echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16255
16256  # C++ specific cases for pic, static, wl, etc.
16257  if test "$GXX" = yes; then
16258    lt_prog_compiler_wl_CXX='-Wl,'
16259    lt_prog_compiler_static_CXX='-static'
16260
16261    case $host_os in
16262    aix*)
16263      # All AIX code is PIC.
16264      if test "$host_cpu" = ia64; then
16265	# AIX 5 now supports IA64 processor
16266	lt_prog_compiler_static_CXX='-Bstatic'
16267      fi
16268      ;;
16269    amigaos*)
16270      # FIXME: we need at least 68020 code to build shared libraries, but
16271      # adding the `-m68020' flag to GCC prevents building anything better,
16272      # like `-m68040'.
16273      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16274      ;;
16275    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16276      # PIC is the default for these OSes.
16277      ;;
16278    mingw* | os2* | pw32*)
16279      # This hack is so that the source file can tell whether it is being
16280      # built for inclusion in a dll (and should export symbols for example).
16281      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16282      ;;
16283    darwin* | rhapsody*)
16284      # PIC is the default on this platform
16285      # Common symbols not allowed in MH_DYLIB files
16286      lt_prog_compiler_pic_CXX='-fno-common'
16287      ;;
16288    *djgpp*)
16289      # DJGPP does not support shared libraries at all
16290      lt_prog_compiler_pic_CXX=
16291      ;;
16292    sysv4*MP*)
16293      if test -d /usr/nec; then
16294	lt_prog_compiler_pic_CXX=-Kconform_pic
16295      fi
16296      ;;
16297    hpux*)
16298      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16299      # not for PA HP-UX.
16300      case "$host_cpu" in
16301      hppa*64*|ia64*)
16302	;;
16303      *)
16304	lt_prog_compiler_pic_CXX='-fPIC'
16305	;;
16306      esac
16307      ;;
16308    *)
16309      lt_prog_compiler_pic_CXX='-fPIC'
16310      ;;
16311    esac
16312  else
16313    case $host_os in
16314      aix4* | aix5*)
16315	# All AIX code is PIC.
16316	if test "$host_cpu" = ia64; then
16317	  # AIX 5 now supports IA64 processor
16318	  lt_prog_compiler_static_CXX='-Bstatic'
16319	else
16320	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16321	fi
16322	;;
16323      chorus*)
16324	case $cc_basename in
16325	cxch68)
16326	  # Green Hills C++ Compiler
16327	  # _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"
16328	  ;;
16329	esac
16330	;;
16331       darwin*)
16332         # PIC is the default on this platform
16333         # Common symbols not allowed in MH_DYLIB files
16334         case "$cc_basename" in
16335           xlc*)
16336           lt_prog_compiler_pic_CXX='-qnocommon'
16337           lt_prog_compiler_wl_CXX='-Wl,'
16338           ;;
16339         esac
16340       ;;
16341      dgux*)
16342	case $cc_basename in
16343	  ec++)
16344	    lt_prog_compiler_pic_CXX='-KPIC'
16345	    ;;
16346	  ghcx)
16347	    # Green Hills C++ Compiler
16348	    lt_prog_compiler_pic_CXX='-pic'
16349	    ;;
16350	  *)
16351	    ;;
16352	esac
16353	;;
16354      freebsd* | kfreebsd*-gnu)
16355	# FreeBSD uses GNU C++
16356	;;
16357      hpux9* | hpux10* | hpux11*)
16358	case $cc_basename in
16359	  CC)
16360	    lt_prog_compiler_wl_CXX='-Wl,'
16361	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16362	    if test "$host_cpu" != ia64; then
16363	      lt_prog_compiler_pic_CXX='+Z'
16364	    fi
16365	    ;;
16366	  aCC)
16367	    lt_prog_compiler_wl_CXX='-Wl,'
16368	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16369	    case "$host_cpu" in
16370	    hppa*64*|ia64*)
16371	      # +Z the default
16372	      ;;
16373	    *)
16374	      lt_prog_compiler_pic_CXX='+Z'
16375	      ;;
16376	    esac
16377	    ;;
16378	  *)
16379	    ;;
16380	esac
16381	;;
16382      irix5* | irix6* | nonstopux*)
16383	case $cc_basename in
16384	  CC)
16385	    lt_prog_compiler_wl_CXX='-Wl,'
16386	    lt_prog_compiler_static_CXX='-non_shared'
16387	    # CC pic flag -KPIC is the default.
16388	    ;;
16389	  *)
16390	    ;;
16391	esac
16392	;;
16393      linux*)
16394	case $cc_basename in
16395	  KCC)
16396	    # KAI C++ Compiler
16397	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16398	    lt_prog_compiler_pic_CXX='-fPIC'
16399	    ;;
16400	  icpc)
16401	    # Intel C++
16402	    lt_prog_compiler_wl_CXX='-Wl,'
16403	    lt_prog_compiler_pic_CXX='-KPIC'
16404	    lt_prog_compiler_static_CXX='-static'
16405	    ;;
16406	  cxx)
16407	    # Compaq C++
16408	    # Make sure the PIC flag is empty.  It appears that all Alpha
16409	    # Linux and Compaq Tru64 Unix objects are PIC.
16410	    lt_prog_compiler_pic_CXX=
16411	    lt_prog_compiler_static_CXX='-non_shared'
16412	    ;;
16413	  *)
16414	    ;;
16415	esac
16416	;;
16417      lynxos*)
16418	;;
16419      m88k*)
16420	;;
16421      mvs*)
16422	case $cc_basename in
16423	  cxx)
16424	    lt_prog_compiler_pic_CXX='-W c,exportall'
16425	    ;;
16426	  *)
16427	    ;;
16428	esac
16429	;;
16430      netbsd*)
16431	;;
16432      osf3* | osf4* | osf5*)
16433	case $cc_basename in
16434	  KCC)
16435	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16436	    ;;
16437	  RCC)
16438	    # Rational C++ 2.4.1
16439	    lt_prog_compiler_pic_CXX='-pic'
16440	    ;;
16441	  cxx)
16442	    # Digital/Compaq C++
16443	    lt_prog_compiler_wl_CXX='-Wl,'
16444	    # Make sure the PIC flag is empty.  It appears that all Alpha
16445	    # Linux and Compaq Tru64 Unix objects are PIC.
16446	    lt_prog_compiler_pic_CXX=
16447	    lt_prog_compiler_static_CXX='-non_shared'
16448	    ;;
16449	  *)
16450	    ;;
16451	esac
16452	;;
16453      psos*)
16454	;;
16455      sco*)
16456	case $cc_basename in
16457	  CC)
16458	    lt_prog_compiler_pic_CXX='-fPIC'
16459	    ;;
16460	  *)
16461	    ;;
16462	esac
16463	;;
16464      solaris*)
16465	case $cc_basename in
16466	  CC)
16467	    # Sun C++ 4.2, 5.x and Centerline C++
16468	    lt_prog_compiler_pic_CXX='-KPIC'
16469	    lt_prog_compiler_static_CXX='-Bstatic'
16470	    lt_prog_compiler_wl_CXX='-Qoption ld '
16471	    ;;
16472	  gcx)
16473	    # Green Hills C++ Compiler
16474	    lt_prog_compiler_pic_CXX='-PIC'
16475	    ;;
16476	  *)
16477	    ;;
16478	esac
16479	;;
16480      sunos4*)
16481	case $cc_basename in
16482	  CC)
16483	    # Sun C++ 4.x
16484	    lt_prog_compiler_pic_CXX='-pic'
16485	    lt_prog_compiler_static_CXX='-Bstatic'
16486	    ;;
16487	  lcc)
16488	    # Lucid
16489	    lt_prog_compiler_pic_CXX='-pic'
16490	    ;;
16491	  *)
16492	    ;;
16493	esac
16494	;;
16495      tandem*)
16496	case $cc_basename in
16497	  NCC)
16498	    # NonStop-UX NCC 3.20
16499	    lt_prog_compiler_pic_CXX='-KPIC'
16500	    ;;
16501	  *)
16502	    ;;
16503	esac
16504	;;
16505      unixware*)
16506	;;
16507      vxworks*)
16508	;;
16509      *)
16510	lt_prog_compiler_can_build_shared_CXX=no
16511	;;
16512    esac
16513  fi
16514
16515echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16516echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16517
16518#
16519# Check to make sure the PIC flag actually works.
16520#
16521if test -n "$lt_prog_compiler_pic_CXX"; then
16522
16523echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16524echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16525if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16526  echo $ECHO_N "(cached) $ECHO_C" >&6
16527else
16528  lt_prog_compiler_pic_works_CXX=no
16529  ac_outfile=conftest.$ac_objext
16530   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16531   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16532   # Insert the option either (1) after the last *FLAGS variable, or
16533   # (2) before a word containing "conftest.", or (3) at the end.
16534   # Note that $ac_compile itself does not contain backslashes and begins
16535   # with a dollar sign (not a hyphen), so the echo should work correctly.
16536   # The option is referenced via a variable to avoid confusing sed.
16537   lt_compile=`echo "$ac_compile" | $SED \
16538   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540   -e 's:$: $lt_compiler_flag:'`
16541   (eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
16542   (eval "$lt_compile" 2>conftest.err)
16543   ac_status=$?
16544   cat conftest.err >&5
16545   echo "$as_me:16544: \$? = $ac_status" >&5
16546   if (exit $ac_status) && test -s "$ac_outfile"; then
16547     # The compiler can only warn and ignore the option if not recognized
16548     # So say no if there are warnings
16549     if test ! -s conftest.err; then
16550       lt_prog_compiler_pic_works_CXX=yes
16551     fi
16552   fi
16553   $rm conftest*
16554
16555fi
16556echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16557echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16558
16559if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16560    case $lt_prog_compiler_pic_CXX in
16561     "" | " "*) ;;
16562     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16563     esac
16564else
16565    lt_prog_compiler_pic_CXX=
16566     lt_prog_compiler_can_build_shared_CXX=no
16567fi
16568
16569fi
16570case "$host_os" in
16571  # For platforms which do not support PIC, -DPIC is meaningless:
16572  *djgpp*)
16573    lt_prog_compiler_pic_CXX=
16574    ;;
16575  *)
16576    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16577    ;;
16578esac
16579
16580echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16581echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16583  echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
16585  lt_cv_prog_compiler_c_o_CXX=no
16586   $rm -r conftest 2>/dev/null
16587   mkdir conftest
16588   cd conftest
16589   mkdir out
16590   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16591
16592   lt_compiler_flag="-o out/conftest2.$ac_objext"
16593   # Insert the option either (1) after the last *FLAGS variable, or
16594   # (2) before a word containing "conftest.", or (3) at the end.
16595   # Note that $ac_compile itself does not contain backslashes and begins
16596   # with a dollar sign (not a hyphen), so the echo should work correctly.
16597   lt_compile=`echo "$ac_compile" | $SED \
16598   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16600   -e 's:$: $lt_compiler_flag:'`
16601   (eval echo "\"\$as_me:16600: $lt_compile\"" >&5)
16602   (eval "$lt_compile" 2>out/conftest.err)
16603   ac_status=$?
16604   cat out/conftest.err >&5
16605   echo "$as_me:16604: \$? = $ac_status" >&5
16606   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16607   then
16608     # The compiler can only warn and ignore the option if not recognized
16609     # So say no if there are warnings
16610     if test ! -s out/conftest.err; then
16611       lt_cv_prog_compiler_c_o_CXX=yes
16612     fi
16613   fi
16614   chmod u+w .
16615   $rm conftest*
16616   # SGI C++ compiler will create directory out/ii_files/ for
16617   # template instantiation
16618   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16619   $rm out/* && rmdir out
16620   cd ..
16621   rmdir conftest
16622   $rm conftest*
16623
16624fi
16625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16626echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16627
16628
16629hard_links="nottested"
16630if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16631  # do not overwrite the value of need_locks provided by the user
16632  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16633echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16634  hard_links=yes
16635  $rm conftest*
16636  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16637  touch conftest.a
16638  ln conftest.a conftest.b 2>&5 || hard_links=no
16639  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16640  echo "$as_me:$LINENO: result: $hard_links" >&5
16641echo "${ECHO_T}$hard_links" >&6
16642  if test "$hard_links" = no; then
16643    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16644echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16645    need_locks=warn
16646  fi
16647else
16648  need_locks=no
16649fi
16650
16651echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16652echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16653
16654  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16655  case $host_os in
16656  aix4* | aix5*)
16657    # If we're using GNU nm, then we don't want the "-C" option.
16658    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16659    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16660      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'
16661    else
16662      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'
16663    fi
16664    ;;
16665  pw32*)
16666    export_symbols_cmds_CXX="$ltdll_cmds"
16667  ;;
16668  cygwin* | mingw*)
16669    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16670  ;;
16671  *)
16672    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16673  ;;
16674  esac
16675
16676echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16677echo "${ECHO_T}$ld_shlibs_CXX" >&6
16678test "$ld_shlibs_CXX" = no && can_build_shared=no
16679
16680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16681if test "$GCC" = yes; then
16682  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16683fi
16684
16685#
16686# Do we need to explicitly link libc?
16687#
16688case "x$archive_cmds_need_lc_CXX" in
16689x|xyes)
16690  # Assume -lc should be added
16691  archive_cmds_need_lc_CXX=yes
16692
16693  if test "$enable_shared" = yes && test "$GCC" = yes; then
16694    case $archive_cmds_CXX in
16695    *'~'*)
16696      # FIXME: we may have to deal with multi-command sequences.
16697      ;;
16698    '$CC '*)
16699      # Test whether the compiler implicitly links with -lc since on some
16700      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16701      # to ld, don't add -lc before -lgcc.
16702      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16703echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16704      $rm conftest*
16705      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16706
16707      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16708  (eval $ac_compile) 2>&5
16709  ac_status=$?
16710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711  (exit $ac_status); } 2>conftest.err; then
16712        soname=conftest
16713        lib=conftest
16714        libobjs=conftest.$ac_objext
16715        deplibs=
16716        wl=$lt_prog_compiler_wl_CXX
16717        compiler_flags=-v
16718        linker_flags=-v
16719        verstring=
16720        output_objdir=.
16721        libname=conftest
16722        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16723        allow_undefined_flag_CXX=
16724        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16725  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726  ac_status=$?
16727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728  (exit $ac_status); }
16729        then
16730	  archive_cmds_need_lc_CXX=no
16731        else
16732	  archive_cmds_need_lc_CXX=yes
16733        fi
16734        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16735      else
16736        cat conftest.err 1>&5
16737      fi
16738      $rm conftest*
16739      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16740echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16741      ;;
16742    esac
16743  fi
16744  ;;
16745esac
16746
16747echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16749library_names_spec=
16750libname_spec='lib$name'
16751soname_spec=
16752shrext_cmds=".so"
16753postinstall_cmds=
16754postuninstall_cmds=
16755finish_cmds=
16756finish_eval=
16757shlibpath_var=
16758shlibpath_overrides_runpath=unknown
16759version_type=none
16760dynamic_linker="$host_os ld.so"
16761sys_lib_dlsearch_path_spec="/lib /usr/lib"
16762if test "$GCC" = yes; then
16763  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16764  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16765    # if the path contains ";" then we assume it to be the separator
16766    # otherwise default to the standard path separator (i.e. ":") - it is
16767    # assumed that no part of a normal pathname contains ";" but that should
16768    # okay in the real world where ";" in dirpaths is itself problematic.
16769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16770  else
16771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16772  fi
16773else
16774  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16775fi
16776need_lib_prefix=unknown
16777hardcode_into_libs=no
16778
16779# when you set need_version to no, make sure it does not cause -set_version
16780# flags to be left without arguments
16781need_version=unknown
16782
16783case $host_os in
16784aix3*)
16785  version_type=linux
16786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16787  shlibpath_var=LIBPATH
16788
16789  # AIX 3 has no versioning support, so we append a major version to the name.
16790  soname_spec='${libname}${release}${shared_ext}$major'
16791  ;;
16792
16793aix4* | aix5*)
16794  version_type=linux
16795  need_lib_prefix=no
16796  need_version=no
16797  hardcode_into_libs=yes
16798  if test "$host_cpu" = ia64; then
16799    # AIX 5 supports IA64
16800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16801    shlibpath_var=LD_LIBRARY_PATH
16802  else
16803    # With GCC up to 2.95.x, collect2 would create an import file
16804    # for dependence libraries.  The import file would start with
16805    # the line `#! .'.  This would cause the generated library to
16806    # depend on `.', always an invalid library.  This was fixed in
16807    # development snapshots of GCC prior to 3.0.
16808    case $host_os in
16809      aix4 | aix4.[01] | aix4.[01].*)
16810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16811	   echo ' yes '
16812	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16813	:
16814      else
16815	can_build_shared=no
16816      fi
16817      ;;
16818    esac
16819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16820    # soname into executable. Probably we can add versioning support to
16821    # collect2, so additional links can be useful in future.
16822    if test "$aix_use_runtimelinking" = yes; then
16823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16824      # instead of lib<name>.a to let people know that these are not
16825      # typical AIX shared libraries.
16826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827    else
16828      # We preserve .a as extension for shared libraries through AIX4.2
16829      # and later when we are not doing run time linking.
16830      library_names_spec='${libname}${release}.a $libname.a'
16831      soname_spec='${libname}${release}${shared_ext}$major'
16832    fi
16833    shlibpath_var=LIBPATH
16834  fi
16835  ;;
16836
16837amigaos*)
16838  library_names_spec='$libname.ixlibrary $libname.a'
16839  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16840  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'
16841  ;;
16842
16843beos*)
16844  library_names_spec='${libname}${shared_ext}'
16845  dynamic_linker="$host_os ld.so"
16846  shlibpath_var=LIBRARY_PATH
16847  ;;
16848
16849bsdi[45]*)
16850  version_type=linux
16851  need_version=no
16852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853  soname_spec='${libname}${release}${shared_ext}$major'
16854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16855  shlibpath_var=LD_LIBRARY_PATH
16856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16858  # the default ld.so.conf also contains /usr/contrib/lib and
16859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16860  # libtool to hard-code these into programs
16861  ;;
16862
16863cygwin* | mingw* | pw32*)
16864  version_type=windows
16865  shrext_cmds=".dll"
16866  need_version=no
16867  need_lib_prefix=no
16868
16869  case $GCC,$host_os in
16870  yes,cygwin* | yes,mingw* | yes,pw32*)
16871    library_names_spec='$libname.dll.a'
16872    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16873    postinstall_cmds='base_file=`basename \${file}`~
16874      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16875      dldir=$destdir/`dirname \$dlpath`~
16876      test -d \$dldir || mkdir -p \$dldir~
16877      $install_prog $dir/$dlname \$dldir/$dlname'
16878    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16879      dlpath=$dir/\$dldll~
16880       $rm \$dlpath'
16881    shlibpath_overrides_runpath=yes
16882
16883    case $host_os in
16884    cygwin*)
16885      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16886      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16887      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16888      ;;
16889    mingw*)
16890      # MinGW DLLs use traditional 'lib' prefix
16891      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16892      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16893      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16894        # It is most probably a Windows format PATH printed by
16895        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16896        # path with ; separators, and with drive letters. We can handle the
16897        # drive letters (cygwin fileutils understands them), so leave them,
16898        # especially as we might pass files found there to a mingw objdump,
16899        # which wouldn't understand a cygwinified path. Ahh.
16900        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16901      else
16902        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16903      fi
16904      ;;
16905    pw32*)
16906      # pw32 DLLs use 'pw' prefix rather than 'lib'
16907      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16908      ;;
16909    esac
16910    ;;
16911
16912  *)
16913    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16914    ;;
16915  esac
16916  dynamic_linker='Win32 ld.exe'
16917  # FIXME: first we should search . and the directory the executable is in
16918  shlibpath_var=PATH
16919  ;;
16920
16921darwin* | rhapsody*)
16922  dynamic_linker="$host_os dyld"
16923  version_type=darwin
16924  need_lib_prefix=no
16925  need_version=no
16926  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16927  soname_spec='${libname}${release}${major}$shared_ext'
16928  shlibpath_overrides_runpath=yes
16929  shlibpath_var=DYLD_LIBRARY_PATH
16930  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16931  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16932  if test "$GCC" = yes; then
16933    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"`
16934  else
16935    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16936  fi
16937  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16938  ;;
16939
16940dgux*)
16941  version_type=linux
16942  need_lib_prefix=no
16943  need_version=no
16944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16945  soname_spec='${libname}${release}${shared_ext}$major'
16946  shlibpath_var=LD_LIBRARY_PATH
16947  ;;
16948
16949freebsd1*)
16950  dynamic_linker=no
16951  ;;
16952
16953kfreebsd*-gnu)
16954  version_type=linux
16955  need_lib_prefix=no
16956  need_version=no
16957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16958  soname_spec='${libname}${release}${shared_ext}$major'
16959  shlibpath_var=LD_LIBRARY_PATH
16960  shlibpath_overrides_runpath=no
16961  hardcode_into_libs=yes
16962  dynamic_linker='GNU ld.so'
16963  ;;
16964
16965freebsd*)
16966  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16967  version_type=freebsd-$objformat
16968  case $version_type in
16969    freebsd-elf*)
16970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16971      need_version=no
16972      need_lib_prefix=no
16973      ;;
16974    freebsd-*)
16975      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16976      need_version=yes
16977      ;;
16978  esac
16979  shlibpath_var=LD_LIBRARY_PATH
16980  case $host_os in
16981  freebsd2*)
16982    shlibpath_overrides_runpath=yes
16983    ;;
16984  freebsd3.01* | freebsdelf3.01*)
16985    shlibpath_overrides_runpath=yes
16986    hardcode_into_libs=yes
16987    ;;
16988  *) # from 3.2 on
16989    shlibpath_overrides_runpath=no
16990    hardcode_into_libs=yes
16991    ;;
16992  esac
16993  ;;
16994
16995gnu*)
16996  version_type=linux
16997  need_lib_prefix=no
16998  need_version=no
16999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17000  soname_spec='${libname}${release}${shared_ext}$major'
17001  shlibpath_var=LD_LIBRARY_PATH
17002  hardcode_into_libs=yes
17003  ;;
17004
17005hpux9* | hpux10* | hpux11*)
17006  # Give a soname corresponding to the major version so that dld.sl refuses to
17007  # link against other versions.
17008  version_type=sunos
17009  need_lib_prefix=no
17010  need_version=no
17011  case "$host_cpu" in
17012  ia64*)
17013    shrext_cmds='.so'
17014    hardcode_into_libs=yes
17015    dynamic_linker="$host_os dld.so"
17016    shlibpath_var=LD_LIBRARY_PATH
17017    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17018    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17019    soname_spec='${libname}${release}${shared_ext}$major'
17020    if test "X$HPUX_IA64_MODE" = X32; then
17021      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17022    else
17023      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17024    fi
17025    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17026    ;;
17027   hppa*64*)
17028     shrext_cmds='.sl'
17029     hardcode_into_libs=yes
17030     dynamic_linker="$host_os dld.sl"
17031     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034     soname_spec='${libname}${release}${shared_ext}$major'
17035     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17037     ;;
17038   *)
17039    shrext_cmds='.sl'
17040    dynamic_linker="$host_os dld.sl"
17041    shlibpath_var=SHLIB_PATH
17042    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17043    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044    soname_spec='${libname}${release}${shared_ext}$major'
17045    ;;
17046  esac
17047  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17048  postinstall_cmds='chmod 555 $lib'
17049  ;;
17050
17051irix5* | irix6* | nonstopux*)
17052  case $host_os in
17053    nonstopux*) version_type=nonstopux ;;
17054    *)
17055	if test "$lt_cv_prog_gnu_ld" = yes; then
17056		version_type=linux
17057	else
17058		version_type=irix
17059	fi ;;
17060  esac
17061  need_lib_prefix=no
17062  need_version=no
17063  soname_spec='${libname}${release}${shared_ext}$major'
17064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17065  case $host_os in
17066  irix5* | nonstopux*)
17067    libsuff= shlibsuff=
17068    ;;
17069  *)
17070    case $LD in # libtool.m4 will add one of these switches to LD
17071    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17072      libsuff= shlibsuff= libmagic=32-bit;;
17073    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17074      libsuff=32 shlibsuff=N32 libmagic=N32;;
17075    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17076      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17077    *) libsuff= shlibsuff= libmagic=never-match;;
17078    esac
17079    ;;
17080  esac
17081  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17082  shlibpath_overrides_runpath=no
17083  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17084  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17085  hardcode_into_libs=yes
17086  ;;
17087
17088# No shared lib support for Linux oldld, aout, or coff.
17089linux*oldld* | linux*aout* | linux*coff*)
17090  dynamic_linker=no
17091  ;;
17092
17093# This must be Linux ELF.
17094linux*)
17095  version_type=linux
17096  need_lib_prefix=no
17097  need_version=no
17098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099  soname_spec='${libname}${release}${shared_ext}$major'
17100  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17101  shlibpath_var=LD_LIBRARY_PATH
17102  shlibpath_overrides_runpath=no
17103  # This implies no fast_install, which is unacceptable.
17104  # Some rework will be needed to allow for fast_install
17105  # before this can be enabled.
17106  hardcode_into_libs=yes
17107
17108  # Append ld.so.conf contents to the search path
17109  if test -f /etc/ld.so.conf; then
17110    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17111    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17112  fi
17113
17114  # We used to test for /lib/ld.so.1 and disable shared libraries on
17115  # powerpc, because MkLinux only supported shared libraries with the
17116  # GNU dynamic linker.  Since this was broken with cross compilers,
17117  # most powerpc-linux boxes support dynamic linking these days and
17118  # people can always --disable-shared, the test was removed, and we
17119  # assume the GNU/Linux dynamic linker is in use.
17120  dynamic_linker='GNU/Linux ld.so'
17121  ;;
17122
17123knetbsd*-gnu)
17124  version_type=linux
17125  need_lib_prefix=no
17126  need_version=no
17127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17128  soname_spec='${libname}${release}${shared_ext}$major'
17129  shlibpath_var=LD_LIBRARY_PATH
17130  shlibpath_overrides_runpath=no
17131  hardcode_into_libs=yes
17132  dynamic_linker='GNU ld.so'
17133  ;;
17134
17135netbsd*)
17136  version_type=sunos
17137  need_lib_prefix=no
17138  need_version=no
17139  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17140    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17141    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17142    dynamic_linker='NetBSD (a.out) ld.so'
17143  else
17144    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17145    soname_spec='${libname}${release}${shared_ext}$major'
17146    dynamic_linker='NetBSD ld.elf_so'
17147  fi
17148  shlibpath_var=LD_LIBRARY_PATH
17149  shlibpath_overrides_runpath=yes
17150  hardcode_into_libs=yes
17151  ;;
17152
17153newsos6)
17154  version_type=linux
17155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156  shlibpath_var=LD_LIBRARY_PATH
17157  shlibpath_overrides_runpath=yes
17158  ;;
17159
17160nto-qnx*)
17161  version_type=linux
17162  need_lib_prefix=no
17163  need_version=no
17164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165  soname_spec='${libname}${release}${shared_ext}$major'
17166  shlibpath_var=LD_LIBRARY_PATH
17167  shlibpath_overrides_runpath=yes
17168  ;;
17169
17170openbsd*)
17171  version_type=sunos
17172  need_lib_prefix=no
17173  need_version=no
17174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17175  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17176  shlibpath_var=LD_LIBRARY_PATH
17177  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17178    case $host_os in
17179      openbsd2.[89] | openbsd2.[89].*)
17180	shlibpath_overrides_runpath=no
17181	;;
17182      *)
17183	shlibpath_overrides_runpath=yes
17184	;;
17185      esac
17186  else
17187    shlibpath_overrides_runpath=yes
17188  fi
17189  ;;
17190
17191os2*)
17192  libname_spec='$name'
17193  shrext_cmds=".dll"
17194  need_lib_prefix=no
17195  library_names_spec='$libname${shared_ext} $libname.a'
17196  dynamic_linker='OS/2 ld.exe'
17197  shlibpath_var=LIBPATH
17198  ;;
17199
17200osf3* | osf4* | osf5*)
17201  version_type=osf
17202  need_lib_prefix=no
17203  need_version=no
17204  soname_spec='${libname}${release}${shared_ext}$major'
17205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206  shlibpath_var=LD_LIBRARY_PATH
17207  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17208  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17209  ;;
17210
17211sco3.2v5*)
17212  version_type=osf
17213  soname_spec='${libname}${release}${shared_ext}$major'
17214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215  shlibpath_var=LD_LIBRARY_PATH
17216  ;;
17217
17218solaris*)
17219  version_type=linux
17220  need_lib_prefix=no
17221  need_version=no
17222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223  soname_spec='${libname}${release}${shared_ext}$major'
17224  shlibpath_var=LD_LIBRARY_PATH
17225  shlibpath_overrides_runpath=yes
17226  hardcode_into_libs=yes
17227  # ldd complains unless libraries are executable
17228  postinstall_cmds='chmod +x $lib'
17229  ;;
17230
17231sunos4*)
17232  version_type=sunos
17233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17234  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17235  shlibpath_var=LD_LIBRARY_PATH
17236  shlibpath_overrides_runpath=yes
17237  if test "$with_gnu_ld" = yes; then
17238    need_lib_prefix=no
17239  fi
17240  need_version=yes
17241  ;;
17242
17243sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17244  version_type=linux
17245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246  soname_spec='${libname}${release}${shared_ext}$major'
17247  shlibpath_var=LD_LIBRARY_PATH
17248  case $host_vendor in
17249    sni)
17250      shlibpath_overrides_runpath=no
17251      need_lib_prefix=no
17252      export_dynamic_flag_spec='${wl}-Blargedynsym'
17253      runpath_var=LD_RUN_PATH
17254      ;;
17255    siemens)
17256      need_lib_prefix=no
17257      ;;
17258    motorola)
17259      need_lib_prefix=no
17260      need_version=no
17261      shlibpath_overrides_runpath=no
17262      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17263      ;;
17264  esac
17265  ;;
17266
17267sysv4*MP*)
17268  if test -d /usr/nec ;then
17269    version_type=linux
17270    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17271    soname_spec='$libname${shared_ext}.$major'
17272    shlibpath_var=LD_LIBRARY_PATH
17273  fi
17274  ;;
17275
17276uts4*)
17277  version_type=linux
17278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279  soname_spec='${libname}${release}${shared_ext}$major'
17280  shlibpath_var=LD_LIBRARY_PATH
17281  ;;
17282
17283*)
17284  dynamic_linker=no
17285  ;;
17286esac
17287echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17288echo "${ECHO_T}$dynamic_linker" >&6
17289test "$dynamic_linker" = no && can_build_shared=no
17290
17291echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17292echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17293hardcode_action_CXX=
17294if test -n "$hardcode_libdir_flag_spec_CXX" || \
17295   test -n "$runpath_var_CXX" || \
17296   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17297
17298  # We can hardcode non-existant directories.
17299  if test "$hardcode_direct_CXX" != no &&
17300     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17301     # have to relink, otherwise we might link with an installed library
17302     # when we should be linking with a yet-to-be-installed one
17303     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17304     test "$hardcode_minus_L_CXX" != no; then
17305    # Linking always hardcodes the temporary library directory.
17306    hardcode_action_CXX=relink
17307  else
17308    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17309    hardcode_action_CXX=immediate
17310  fi
17311else
17312  # We cannot hardcode anything, or else we can only hardcode existing
17313  # directories.
17314  hardcode_action_CXX=unsupported
17315fi
17316echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17317echo "${ECHO_T}$hardcode_action_CXX" >&6
17318
17319if test "$hardcode_action_CXX" = relink; then
17320  # Fast installation is not supported
17321  enable_fast_install=no
17322elif test "$shlibpath_overrides_runpath" = yes ||
17323     test "$enable_shared" = no; then
17324  # Fast installation is not necessary
17325  enable_fast_install=needless
17326fi
17327
17328striplib=
17329old_striplib=
17330echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17331echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17332if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17333  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17334  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17335  echo "$as_me:$LINENO: result: yes" >&5
17336echo "${ECHO_T}yes" >&6
17337else
17338# FIXME - insert some real tests, host_os isn't really good enough
17339  case $host_os in
17340   darwin*)
17341       if test -n "$STRIP" ; then
17342         striplib="$STRIP -x"
17343         echo "$as_me:$LINENO: result: yes" >&5
17344echo "${ECHO_T}yes" >&6
17345       else
17346  echo "$as_me:$LINENO: result: no" >&5
17347echo "${ECHO_T}no" >&6
17348fi
17349       ;;
17350   *)
17351  echo "$as_me:$LINENO: result: no" >&5
17352echo "${ECHO_T}no" >&6
17353    ;;
17354  esac
17355fi
17356
17357if test "x$enable_dlopen" != xyes; then
17358  enable_dlopen=unknown
17359  enable_dlopen_self=unknown
17360  enable_dlopen_self_static=unknown
17361else
17362  lt_cv_dlopen=no
17363  lt_cv_dlopen_libs=
17364
17365  case $host_os in
17366  beos*)
17367    lt_cv_dlopen="load_add_on"
17368    lt_cv_dlopen_libs=
17369    lt_cv_dlopen_self=yes
17370    ;;
17371
17372  mingw* | pw32*)
17373    lt_cv_dlopen="LoadLibrary"
17374    lt_cv_dlopen_libs=
17375   ;;
17376
17377  cygwin*)
17378    lt_cv_dlopen="dlopen"
17379    lt_cv_dlopen_libs=
17380   ;;
17381
17382  darwin*)
17383  # if libdl is installed we need to link against it
17384    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17385echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17386if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17387  echo $ECHO_N "(cached) $ECHO_C" >&6
17388else
17389  ac_check_lib_save_LIBS=$LIBS
17390LIBS="-ldl  $LIBS"
17391cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h.  */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h.  */
17397
17398/* Override any gcc2 internal prototype to avoid an error.  */
17399#ifdef __cplusplus
17400extern "C"
17401#endif
17402/* We use char because int might match the return type of a gcc2
17403   builtin and then its argument prototype would still apply.  */
17404char dlopen ();
17405int
17406main ()
17407{
17408dlopen ();
17409  ;
17410  return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
17414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415  (eval $ac_link) 2>conftest.er1
17416  ac_status=$?
17417  grep -v '^ *+' conftest.er1 >conftest.err
17418  rm -f conftest.er1
17419  cat conftest.err >&5
17420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421  (exit $ac_status); } &&
17422	 { ac_try='test -z "$ac_cxx_werror_flag"
17423			 || test ! -s conftest.err'
17424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425  (eval $ac_try) 2>&5
17426  ac_status=$?
17427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428  (exit $ac_status); }; } &&
17429	 { ac_try='test -s conftest$ac_exeext'
17430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431  (eval $ac_try) 2>&5
17432  ac_status=$?
17433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434  (exit $ac_status); }; }; then
17435  ac_cv_lib_dl_dlopen=yes
17436else
17437  echo "$as_me: failed program was:" >&5
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
17440ac_cv_lib_dl_dlopen=no
17441fi
17442rm -f conftest.err conftest.$ac_objext \
17443      conftest$ac_exeext conftest.$ac_ext
17444LIBS=$ac_check_lib_save_LIBS
17445fi
17446echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17448if test $ac_cv_lib_dl_dlopen = yes; then
17449  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17450else
17451
17452    lt_cv_dlopen="dyld"
17453    lt_cv_dlopen_libs=
17454    lt_cv_dlopen_self=yes
17455
17456fi
17457
17458   ;;
17459
17460  *)
17461    echo "$as_me:$LINENO: checking for shl_load" >&5
17462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17463if test "${ac_cv_func_shl_load+set}" = set; then
17464  echo $ECHO_N "(cached) $ECHO_C" >&6
17465else
17466  cat >conftest.$ac_ext <<_ACEOF
17467/* confdefs.h.  */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h.  */
17472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17473   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17474#define shl_load innocuous_shl_load
17475
17476/* System header to define __stub macros and hopefully few prototypes,
17477    which can conflict with char shl_load (); below.
17478    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479    <limits.h> exists even on freestanding compilers.  */
17480
17481#ifdef __STDC__
17482# include <limits.h>
17483#else
17484# include <assert.h>
17485#endif
17486
17487#undef shl_load
17488
17489/* Override any gcc2 internal prototype to avoid an error.  */
17490#ifdef __cplusplus
17491extern "C"
17492{
17493#endif
17494/* We use char because int might match the return type of a gcc2
17495   builtin and then its argument prototype would still apply.  */
17496char shl_load ();
17497/* The GNU C library defines this for functions which it implements
17498    to always fail with ENOSYS.  Some functions are actually named
17499    something starting with __ and the normal name is an alias.  */
17500#if defined (__stub_shl_load) || defined (__stub___shl_load)
17501choke me
17502#else
17503char (*f) () = shl_load;
17504#endif
17505#ifdef __cplusplus
17506}
17507#endif
17508
17509int
17510main ()
17511{
17512return f != shl_load;
17513  ;
17514  return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext conftest$ac_exeext
17518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17519  (eval $ac_link) 2>conftest.er1
17520  ac_status=$?
17521  grep -v '^ *+' conftest.er1 >conftest.err
17522  rm -f conftest.er1
17523  cat conftest.err >&5
17524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525  (exit $ac_status); } &&
17526	 { ac_try='test -z "$ac_cxx_werror_flag"
17527			 || test ! -s conftest.err'
17528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529  (eval $ac_try) 2>&5
17530  ac_status=$?
17531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532  (exit $ac_status); }; } &&
17533	 { ac_try='test -s conftest$ac_exeext'
17534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535  (eval $ac_try) 2>&5
17536  ac_status=$?
17537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538  (exit $ac_status); }; }; then
17539  ac_cv_func_shl_load=yes
17540else
17541  echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544ac_cv_func_shl_load=no
17545fi
17546rm -f conftest.err conftest.$ac_objext \
17547      conftest$ac_exeext conftest.$ac_ext
17548fi
17549echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17550echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17551if test $ac_cv_func_shl_load = yes; then
17552  lt_cv_dlopen="shl_load"
17553else
17554  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17555echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17556if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17557  echo $ECHO_N "(cached) $ECHO_C" >&6
17558else
17559  ac_check_lib_save_LIBS=$LIBS
17560LIBS="-ldld  $LIBS"
17561cat >conftest.$ac_ext <<_ACEOF
17562/* confdefs.h.  */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h.  */
17567
17568/* Override any gcc2 internal prototype to avoid an error.  */
17569#ifdef __cplusplus
17570extern "C"
17571#endif
17572/* We use char because int might match the return type of a gcc2
17573   builtin and then its argument prototype would still apply.  */
17574char shl_load ();
17575int
17576main ()
17577{
17578shl_load ();
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585  (eval $ac_link) 2>conftest.er1
17586  ac_status=$?
17587  grep -v '^ *+' conftest.er1 >conftest.err
17588  rm -f conftest.er1
17589  cat conftest.err >&5
17590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591  (exit $ac_status); } &&
17592	 { ac_try='test -z "$ac_cxx_werror_flag"
17593			 || test ! -s conftest.err'
17594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595  (eval $ac_try) 2>&5
17596  ac_status=$?
17597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598  (exit $ac_status); }; } &&
17599	 { ac_try='test -s conftest$ac_exeext'
17600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601  (eval $ac_try) 2>&5
17602  ac_status=$?
17603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604  (exit $ac_status); }; }; then
17605  ac_cv_lib_dld_shl_load=yes
17606else
17607  echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610ac_cv_lib_dld_shl_load=no
17611fi
17612rm -f conftest.err conftest.$ac_objext \
17613      conftest$ac_exeext conftest.$ac_ext
17614LIBS=$ac_check_lib_save_LIBS
17615fi
17616echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17617echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17618if test $ac_cv_lib_dld_shl_load = yes; then
17619  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17620else
17621  echo "$as_me:$LINENO: checking for dlopen" >&5
17622echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17623if test "${ac_cv_func_dlopen+set}" = set; then
17624  echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626  cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h.  */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h.  */
17632/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17633   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17634#define dlopen innocuous_dlopen
17635
17636/* System header to define __stub macros and hopefully few prototypes,
17637    which can conflict with char dlopen (); below.
17638    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639    <limits.h> exists even on freestanding compilers.  */
17640
17641#ifdef __STDC__
17642# include <limits.h>
17643#else
17644# include <assert.h>
17645#endif
17646
17647#undef dlopen
17648
17649/* Override any gcc2 internal prototype to avoid an error.  */
17650#ifdef __cplusplus
17651extern "C"
17652{
17653#endif
17654/* We use char because int might match the return type of a gcc2
17655   builtin and then its argument prototype would still apply.  */
17656char dlopen ();
17657/* The GNU C library defines this for functions which it implements
17658    to always fail with ENOSYS.  Some functions are actually named
17659    something starting with __ and the normal name is an alias.  */
17660#if defined (__stub_dlopen) || defined (__stub___dlopen)
17661choke me
17662#else
17663char (*f) () = dlopen;
17664#endif
17665#ifdef __cplusplus
17666}
17667#endif
17668
17669int
17670main ()
17671{
17672return f != dlopen;
17673  ;
17674  return 0;
17675}
17676_ACEOF
17677rm -f conftest.$ac_objext conftest$ac_exeext
17678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679  (eval $ac_link) 2>conftest.er1
17680  ac_status=$?
17681  grep -v '^ *+' conftest.er1 >conftest.err
17682  rm -f conftest.er1
17683  cat conftest.err >&5
17684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685  (exit $ac_status); } &&
17686	 { ac_try='test -z "$ac_cxx_werror_flag"
17687			 || test ! -s conftest.err'
17688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689  (eval $ac_try) 2>&5
17690  ac_status=$?
17691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692  (exit $ac_status); }; } &&
17693	 { ac_try='test -s conftest$ac_exeext'
17694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695  (eval $ac_try) 2>&5
17696  ac_status=$?
17697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698  (exit $ac_status); }; }; then
17699  ac_cv_func_dlopen=yes
17700else
17701  echo "$as_me: failed program was:" >&5
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704ac_cv_func_dlopen=no
17705fi
17706rm -f conftest.err conftest.$ac_objext \
17707      conftest$ac_exeext conftest.$ac_ext
17708fi
17709echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17710echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17711if test $ac_cv_func_dlopen = yes; then
17712  lt_cv_dlopen="dlopen"
17713else
17714  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17716if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17717  echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719  ac_check_lib_save_LIBS=$LIBS
17720LIBS="-ldl  $LIBS"
17721cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h.  */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h.  */
17727
17728/* Override any gcc2 internal prototype to avoid an error.  */
17729#ifdef __cplusplus
17730extern "C"
17731#endif
17732/* We use char because int might match the return type of a gcc2
17733   builtin and then its argument prototype would still apply.  */
17734char dlopen ();
17735int
17736main ()
17737{
17738dlopen ();
17739  ;
17740  return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext conftest$ac_exeext
17744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17745  (eval $ac_link) 2>conftest.er1
17746  ac_status=$?
17747  grep -v '^ *+' conftest.er1 >conftest.err
17748  rm -f conftest.er1
17749  cat conftest.err >&5
17750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751  (exit $ac_status); } &&
17752	 { ac_try='test -z "$ac_cxx_werror_flag"
17753			 || test ! -s conftest.err'
17754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755  (eval $ac_try) 2>&5
17756  ac_status=$?
17757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758  (exit $ac_status); }; } &&
17759	 { ac_try='test -s conftest$ac_exeext'
17760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761  (eval $ac_try) 2>&5
17762  ac_status=$?
17763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764  (exit $ac_status); }; }; then
17765  ac_cv_lib_dl_dlopen=yes
17766else
17767  echo "$as_me: failed program was:" >&5
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
17770ac_cv_lib_dl_dlopen=no
17771fi
17772rm -f conftest.err conftest.$ac_objext \
17773      conftest$ac_exeext conftest.$ac_ext
17774LIBS=$ac_check_lib_save_LIBS
17775fi
17776echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17778if test $ac_cv_lib_dl_dlopen = yes; then
17779  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17780else
17781  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17782echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17783if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17784  echo $ECHO_N "(cached) $ECHO_C" >&6
17785else
17786  ac_check_lib_save_LIBS=$LIBS
17787LIBS="-lsvld  $LIBS"
17788cat >conftest.$ac_ext <<_ACEOF
17789/* confdefs.h.  */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h.  */
17794
17795/* Override any gcc2 internal prototype to avoid an error.  */
17796#ifdef __cplusplus
17797extern "C"
17798#endif
17799/* We use char because int might match the return type of a gcc2
17800   builtin and then its argument prototype would still apply.  */
17801char dlopen ();
17802int
17803main ()
17804{
17805dlopen ();
17806  ;
17807  return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext conftest$ac_exeext
17811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812  (eval $ac_link) 2>conftest.er1
17813  ac_status=$?
17814  grep -v '^ *+' conftest.er1 >conftest.err
17815  rm -f conftest.er1
17816  cat conftest.err >&5
17817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818  (exit $ac_status); } &&
17819	 { ac_try='test -z "$ac_cxx_werror_flag"
17820			 || test ! -s conftest.err'
17821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822  (eval $ac_try) 2>&5
17823  ac_status=$?
17824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825  (exit $ac_status); }; } &&
17826	 { ac_try='test -s conftest$ac_exeext'
17827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828  (eval $ac_try) 2>&5
17829  ac_status=$?
17830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831  (exit $ac_status); }; }; then
17832  ac_cv_lib_svld_dlopen=yes
17833else
17834  echo "$as_me: failed program was:" >&5
17835sed 's/^/| /' conftest.$ac_ext >&5
17836
17837ac_cv_lib_svld_dlopen=no
17838fi
17839rm -f conftest.err conftest.$ac_objext \
17840      conftest$ac_exeext conftest.$ac_ext
17841LIBS=$ac_check_lib_save_LIBS
17842fi
17843echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17844echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17845if test $ac_cv_lib_svld_dlopen = yes; then
17846  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17847else
17848  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17849echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17850if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17851  echo $ECHO_N "(cached) $ECHO_C" >&6
17852else
17853  ac_check_lib_save_LIBS=$LIBS
17854LIBS="-ldld  $LIBS"
17855cat >conftest.$ac_ext <<_ACEOF
17856/* confdefs.h.  */
17857_ACEOF
17858cat confdefs.h >>conftest.$ac_ext
17859cat >>conftest.$ac_ext <<_ACEOF
17860/* end confdefs.h.  */
17861
17862/* Override any gcc2 internal prototype to avoid an error.  */
17863#ifdef __cplusplus
17864extern "C"
17865#endif
17866/* We use char because int might match the return type of a gcc2
17867   builtin and then its argument prototype would still apply.  */
17868char dld_link ();
17869int
17870main ()
17871{
17872dld_link ();
17873  ;
17874  return 0;
17875}
17876_ACEOF
17877rm -f conftest.$ac_objext conftest$ac_exeext
17878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879  (eval $ac_link) 2>conftest.er1
17880  ac_status=$?
17881  grep -v '^ *+' conftest.er1 >conftest.err
17882  rm -f conftest.er1
17883  cat conftest.err >&5
17884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885  (exit $ac_status); } &&
17886	 { ac_try='test -z "$ac_cxx_werror_flag"
17887			 || test ! -s conftest.err'
17888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889  (eval $ac_try) 2>&5
17890  ac_status=$?
17891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892  (exit $ac_status); }; } &&
17893	 { ac_try='test -s conftest$ac_exeext'
17894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895  (eval $ac_try) 2>&5
17896  ac_status=$?
17897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898  (exit $ac_status); }; }; then
17899  ac_cv_lib_dld_dld_link=yes
17900else
17901  echo "$as_me: failed program was:" >&5
17902sed 's/^/| /' conftest.$ac_ext >&5
17903
17904ac_cv_lib_dld_dld_link=no
17905fi
17906rm -f conftest.err conftest.$ac_objext \
17907      conftest$ac_exeext conftest.$ac_ext
17908LIBS=$ac_check_lib_save_LIBS
17909fi
17910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17911echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17912if test $ac_cv_lib_dld_dld_link = yes; then
17913  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17914fi
17915
17916
17917fi
17918
17919
17920fi
17921
17922
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931    ;;
17932  esac
17933
17934  if test "x$lt_cv_dlopen" != xno; then
17935    enable_dlopen=yes
17936  else
17937    enable_dlopen=no
17938  fi
17939
17940  case $lt_cv_dlopen in
17941  dlopen)
17942    save_CPPFLAGS="$CPPFLAGS"
17943    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17944
17945    save_LDFLAGS="$LDFLAGS"
17946    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17947
17948    save_LIBS="$LIBS"
17949    LIBS="$lt_cv_dlopen_libs $LIBS"
17950
17951    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17952echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17953if test "${lt_cv_dlopen_self+set}" = set; then
17954  echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956  	  if test "$cross_compiling" = yes; then :
17957  lt_cv_dlopen_self=cross
17958else
17959  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960  lt_status=$lt_dlunknown
17961  cat > conftest.$ac_ext <<EOF
17962#line 17961 "configure"
17963#include "confdefs.h"
17964
17965#if HAVE_DLFCN_H
17966#include <dlfcn.h>
17967#endif
17968
17969#include <stdio.h>
17970
17971#ifdef RTLD_GLOBAL
17972#  define LT_DLGLOBAL		RTLD_GLOBAL
17973#else
17974#  ifdef DL_GLOBAL
17975#    define LT_DLGLOBAL		DL_GLOBAL
17976#  else
17977#    define LT_DLGLOBAL		0
17978#  endif
17979#endif
17980
17981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982   find out it does not work in some platform. */
17983#ifndef LT_DLLAZY_OR_NOW
17984#  ifdef RTLD_LAZY
17985#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17986#  else
17987#    ifdef DL_LAZY
17988#      define LT_DLLAZY_OR_NOW		DL_LAZY
17989#    else
17990#      ifdef RTLD_NOW
17991#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17992#      else
17993#        ifdef DL_NOW
17994#          define LT_DLLAZY_OR_NOW	DL_NOW
17995#        else
17996#          define LT_DLLAZY_OR_NOW	0
17997#        endif
17998#      endif
17999#    endif
18000#  endif
18001#endif
18002
18003#ifdef __cplusplus
18004extern "C" void exit (int);
18005#endif
18006
18007void fnord() { int i=42;}
18008int main ()
18009{
18010  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011  int status = $lt_dlunknown;
18012
18013  if (self)
18014    {
18015      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18016      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017      /* dlclose (self); */
18018    }
18019
18020    exit (status);
18021}
18022EOF
18023  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024  (eval $ac_link) 2>&5
18025  ac_status=$?
18026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028    (./conftest; exit; ) 2>/dev/null
18029    lt_status=$?
18030    case x$lt_status in
18031      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18032      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18033      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18034    esac
18035  else :
18036    # compilation failed
18037    lt_cv_dlopen_self=no
18038  fi
18039fi
18040rm -fr conftest*
18041
18042
18043fi
18044echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18045echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18046
18047    if test "x$lt_cv_dlopen_self" = xyes; then
18048      LDFLAGS="$LDFLAGS $link_static_flag"
18049      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18050echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18051if test "${lt_cv_dlopen_self_static+set}" = set; then
18052  echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054  	  if test "$cross_compiling" = yes; then :
18055  lt_cv_dlopen_self_static=cross
18056else
18057  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18058  lt_status=$lt_dlunknown
18059  cat > conftest.$ac_ext <<EOF
18060#line 18059 "configure"
18061#include "confdefs.h"
18062
18063#if HAVE_DLFCN_H
18064#include <dlfcn.h>
18065#endif
18066
18067#include <stdio.h>
18068
18069#ifdef RTLD_GLOBAL
18070#  define LT_DLGLOBAL		RTLD_GLOBAL
18071#else
18072#  ifdef DL_GLOBAL
18073#    define LT_DLGLOBAL		DL_GLOBAL
18074#  else
18075#    define LT_DLGLOBAL		0
18076#  endif
18077#endif
18078
18079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18080   find out it does not work in some platform. */
18081#ifndef LT_DLLAZY_OR_NOW
18082#  ifdef RTLD_LAZY
18083#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18084#  else
18085#    ifdef DL_LAZY
18086#      define LT_DLLAZY_OR_NOW		DL_LAZY
18087#    else
18088#      ifdef RTLD_NOW
18089#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18090#      else
18091#        ifdef DL_NOW
18092#          define LT_DLLAZY_OR_NOW	DL_NOW
18093#        else
18094#          define LT_DLLAZY_OR_NOW	0
18095#        endif
18096#      endif
18097#    endif
18098#  endif
18099#endif
18100
18101#ifdef __cplusplus
18102extern "C" void exit (int);
18103#endif
18104
18105void fnord() { int i=42;}
18106int main ()
18107{
18108  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18109  int status = $lt_dlunknown;
18110
18111  if (self)
18112    {
18113      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18114      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18115      /* dlclose (self); */
18116    }
18117
18118    exit (status);
18119}
18120EOF
18121  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122  (eval $ac_link) 2>&5
18123  ac_status=$?
18124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18126    (./conftest; exit; ) 2>/dev/null
18127    lt_status=$?
18128    case x$lt_status in
18129      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18130      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18131      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18132    esac
18133  else :
18134    # compilation failed
18135    lt_cv_dlopen_self_static=no
18136  fi
18137fi
18138rm -fr conftest*
18139
18140
18141fi
18142echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18143echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18144    fi
18145
18146    CPPFLAGS="$save_CPPFLAGS"
18147    LDFLAGS="$save_LDFLAGS"
18148    LIBS="$save_LIBS"
18149    ;;
18150  esac
18151
18152  case $lt_cv_dlopen_self in
18153  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18154  *) enable_dlopen_self=unknown ;;
18155  esac
18156
18157  case $lt_cv_dlopen_self_static in
18158  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18159  *) enable_dlopen_self_static=unknown ;;
18160  esac
18161fi
18162
18163
18164# The else clause should only fire when bootstrapping the
18165# libtool distribution, otherwise you forgot to ship ltmain.sh
18166# with your package, and you will get complaints that there are
18167# no rules to generate ltmain.sh.
18168if test -f "$ltmain"; then
18169  # See if we are running on zsh, and set the options which allow our commands through
18170  # without removal of \ escapes.
18171  if test -n "${ZSH_VERSION+set}" ; then
18172    setopt NO_GLOB_SUBST
18173  fi
18174  # Now quote all the things that may contain metacharacters while being
18175  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18176  # variables and quote the copies for generation of the libtool script.
18177  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18178    SED SHELL STRIP \
18179    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181    deplibs_check_method reload_flag reload_cmds need_locks \
18182    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183    lt_cv_sys_global_symbol_to_c_name_address \
18184    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185    old_postinstall_cmds old_postuninstall_cmds \
18186    compiler_CXX \
18187    CC_CXX \
18188    LD_CXX \
18189    lt_prog_compiler_wl_CXX \
18190    lt_prog_compiler_pic_CXX \
18191    lt_prog_compiler_static_CXX \
18192    lt_prog_compiler_no_builtin_flag_CXX \
18193    export_dynamic_flag_spec_CXX \
18194    thread_safe_flag_spec_CXX \
18195    whole_archive_flag_spec_CXX \
18196    enable_shared_with_static_runtimes_CXX \
18197    old_archive_cmds_CXX \
18198    old_archive_from_new_cmds_CXX \
18199    predep_objects_CXX \
18200    postdep_objects_CXX \
18201    predeps_CXX \
18202    postdeps_CXX \
18203    compiler_lib_search_path_CXX \
18204    archive_cmds_CXX \
18205    archive_expsym_cmds_CXX \
18206    postinstall_cmds_CXX \
18207    postuninstall_cmds_CXX \
18208    old_archive_from_expsyms_cmds_CXX \
18209    allow_undefined_flag_CXX \
18210    no_undefined_flag_CXX \
18211    export_symbols_cmds_CXX \
18212    hardcode_libdir_flag_spec_CXX \
18213    hardcode_libdir_flag_spec_ld_CXX \
18214    hardcode_libdir_separator_CXX \
18215    hardcode_automatic_CXX \
18216    module_cmds_CXX \
18217    module_expsym_cmds_CXX \
18218    lt_cv_prog_compiler_c_o_CXX \
18219    exclude_expsyms_CXX \
18220    include_expsyms_CXX; do
18221
18222    case $var in
18223    old_archive_cmds_CXX | \
18224    old_archive_from_new_cmds_CXX | \
18225    archive_cmds_CXX | \
18226    archive_expsym_cmds_CXX | \
18227    module_cmds_CXX | \
18228    module_expsym_cmds_CXX | \
18229    old_archive_from_expsyms_cmds_CXX | \
18230    export_symbols_cmds_CXX | \
18231    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232    postinstall_cmds | postuninstall_cmds | \
18233    old_postinstall_cmds | old_postuninstall_cmds | \
18234    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235      # Double-quote double-evaled strings.
18236      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18237      ;;
18238    *)
18239      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18240      ;;
18241    esac
18242  done
18243
18244  case $lt_echo in
18245  *'\$0 --fallback-echo"')
18246    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18247    ;;
18248  esac
18249
18250cfgfile="$ofile"
18251
18252  cat <<__EOF__ >> "$cfgfile"
18253# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18254
18255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256
18257# Shell to use when invoking shell scripts.
18258SHELL=$lt_SHELL
18259
18260# Whether or not to build shared libraries.
18261build_libtool_libs=$enable_shared
18262
18263# Whether or not to build static libraries.
18264build_old_libs=$enable_static
18265
18266# Whether or not to add -lc for building shared libraries.
18267build_libtool_need_lc=$archive_cmds_need_lc_CXX
18268
18269# Whether or not to disallow shared libs when runtime libs are static
18270allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18271
18272# Whether or not to optimize for fast installation.
18273fast_install=$enable_fast_install
18274
18275# The host system.
18276host_alias=$host_alias
18277host=$host
18278
18279# An echo program that does not interpret backslashes.
18280echo=$lt_echo
18281
18282# The archiver.
18283AR=$lt_AR
18284AR_FLAGS=$lt_AR_FLAGS
18285
18286# A C compiler.
18287LTCC=$lt_LTCC
18288
18289# A language-specific compiler.
18290CC=$lt_compiler_CXX
18291
18292# Is the compiler the GNU C compiler?
18293with_gcc=$GCC_CXX
18294
18295# An ERE matcher.
18296EGREP=$lt_EGREP
18297
18298# The linker used to build libraries.
18299LD=$lt_LD_CXX
18300
18301# Whether we need hard or soft links.
18302LN_S=$lt_LN_S
18303
18304# A BSD-compatible nm program.
18305NM=$lt_NM
18306
18307# A symbol stripping program
18308STRIP=$lt_STRIP
18309
18310# Used to examine libraries when file_magic_cmd begins "file"
18311MAGIC_CMD=$MAGIC_CMD
18312
18313# Used on cygwin: DLL creation program.
18314DLLTOOL="$DLLTOOL"
18315
18316# Used on cygwin: object dumper.
18317OBJDUMP="$OBJDUMP"
18318
18319# Used on cygwin: assembler.
18320AS="$AS"
18321
18322# The name of the directory that contains temporary libtool files.
18323objdir=$objdir
18324
18325# How to create reloadable object files.
18326reload_flag=$lt_reload_flag
18327reload_cmds=$lt_reload_cmds
18328
18329# How to pass a linker flag through the compiler.
18330wl=$lt_lt_prog_compiler_wl_CXX
18331
18332# Object file suffix (normally "o").
18333objext="$ac_objext"
18334
18335# Old archive suffix (normally "a").
18336libext="$libext"
18337
18338# Shared library suffix (normally ".so").
18339shrext_cmds='$shrext_cmds'
18340
18341# Executable file suffix (normally "").
18342exeext="$exeext"
18343
18344# Additional compiler flags for building library objects.
18345pic_flag=$lt_lt_prog_compiler_pic_CXX
18346pic_mode=$pic_mode
18347
18348# What is the maximum length of a command?
18349max_cmd_len=$lt_cv_sys_max_cmd_len
18350
18351# Does compiler simultaneously support -c and -o options?
18352compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18353
18354# Must we lock files when doing compilation ?
18355need_locks=$lt_need_locks
18356
18357# Do we need the lib prefix for modules?
18358need_lib_prefix=$need_lib_prefix
18359
18360# Do we need a version for libraries?
18361need_version=$need_version
18362
18363# Whether dlopen is supported.
18364dlopen_support=$enable_dlopen
18365
18366# Whether dlopen of programs is supported.
18367dlopen_self=$enable_dlopen_self
18368
18369# Whether dlopen of statically linked programs is supported.
18370dlopen_self_static=$enable_dlopen_self_static
18371
18372# Compiler flag to prevent dynamic linking.
18373link_static_flag=$lt_lt_prog_compiler_static_CXX
18374
18375# Compiler flag to turn off builtin functions.
18376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18377
18378# Compiler flag to allow reflexive dlopens.
18379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18380
18381# Compiler flag to generate shared objects directly from archives.
18382whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18383
18384# Compiler flag to generate thread-safe objects.
18385thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18386
18387# Library versioning type.
18388version_type=$version_type
18389
18390# Format of library name prefix.
18391libname_spec=$lt_libname_spec
18392
18393# List of archive names.  First name is the real one, the rest are links.
18394# The last name is the one that the linker finds with -lNAME.
18395library_names_spec=$lt_library_names_spec
18396
18397# The coded name of the library, if different from the real name.
18398soname_spec=$lt_soname_spec
18399
18400# Commands used to build and install an old-style archive.
18401RANLIB=$lt_RANLIB
18402old_archive_cmds=$lt_old_archive_cmds_CXX
18403old_postinstall_cmds=$lt_old_postinstall_cmds
18404old_postuninstall_cmds=$lt_old_postuninstall_cmds
18405
18406# Create an old-style archive from a shared archive.
18407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18408
18409# Create a temporary old-style archive to link instead of a shared archive.
18410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18411
18412# Commands used to build and install a shared archive.
18413archive_cmds=$lt_archive_cmds_CXX
18414archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18415postinstall_cmds=$lt_postinstall_cmds
18416postuninstall_cmds=$lt_postuninstall_cmds
18417
18418# Commands used to build a loadable module (assumed same as above if empty)
18419module_cmds=$lt_module_cmds_CXX
18420module_expsym_cmds=$lt_module_expsym_cmds_CXX
18421
18422# Commands to strip libraries.
18423old_striplib=$lt_old_striplib
18424striplib=$lt_striplib
18425
18426# Dependencies to place before the objects being linked to create a
18427# shared library.
18428predep_objects=$lt_predep_objects_CXX
18429
18430# Dependencies to place after the objects being linked to create a
18431# shared library.
18432postdep_objects=$lt_postdep_objects_CXX
18433
18434# Dependencies to place before the objects being linked to create a
18435# shared library.
18436predeps=$lt_predeps_CXX
18437
18438# Dependencies to place after the objects being linked to create a
18439# shared library.
18440postdeps=$lt_postdeps_CXX
18441
18442# The library search path used internally by the compiler when linking
18443# a shared library.
18444compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18445
18446# Method to check whether dependent libraries are shared objects.
18447deplibs_check_method=$lt_deplibs_check_method
18448
18449# Command to use when deplibs_check_method == file_magic.
18450file_magic_cmd=$lt_file_magic_cmd
18451
18452# Flag that allows shared libraries with undefined symbols to be built.
18453allow_undefined_flag=$lt_allow_undefined_flag_CXX
18454
18455# Flag that forces no undefined symbols.
18456no_undefined_flag=$lt_no_undefined_flag_CXX
18457
18458# Commands used to finish a libtool library installation in a directory.
18459finish_cmds=$lt_finish_cmds
18460
18461# Same as above, but a single script fragment to be evaled but not shown.
18462finish_eval=$lt_finish_eval
18463
18464# Take the output of nm and produce a listing of raw symbols and C names.
18465global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18466
18467# Transform the output of nm in a proper C declaration
18468global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18469
18470# Transform the output of nm in a C name address pair
18471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18472
18473# This is the shared library runtime path variable.
18474runpath_var=$runpath_var
18475
18476# This is the shared library path variable.
18477shlibpath_var=$shlibpath_var
18478
18479# Is shlibpath searched before the hard-coded library search path?
18480shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18481
18482# How to hardcode a shared library path into an executable.
18483hardcode_action=$hardcode_action_CXX
18484
18485# Whether we should hardcode library paths into libraries.
18486hardcode_into_libs=$hardcode_into_libs
18487
18488# Flag to hardcode \$libdir into a binary during linking.
18489# This must work even if \$libdir does not exist.
18490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18491
18492# If ld is used when linking, flag to hardcode \$libdir into
18493# a binary during linking. This must work even if \$libdir does
18494# not exist.
18495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18496
18497# Whether we need a single -rpath flag with a separated argument.
18498hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18499
18500# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18501# resulting binary.
18502hardcode_direct=$hardcode_direct_CXX
18503
18504# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18505# resulting binary.
18506hardcode_minus_L=$hardcode_minus_L_CXX
18507
18508# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18509# the resulting binary.
18510hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18511
18512# Set to yes if building a shared library automatically hardcodes DIR into the library
18513# and all subsequent libraries and executables linked against it.
18514hardcode_automatic=$hardcode_automatic_CXX
18515
18516# Variables whose values should be saved in libtool wrapper scripts and
18517# restored at relink time.
18518variables_saved_for_relink="$variables_saved_for_relink"
18519
18520# Whether libtool must link a program against all its dependency libraries.
18521link_all_deplibs=$link_all_deplibs_CXX
18522
18523# Compile-time system search path for libraries
18524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18525
18526# Run-time system search path for libraries
18527sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18528
18529# Fix the shell variable \$srcfile for the compiler.
18530fix_srcfile_path="$fix_srcfile_path_CXX"
18531
18532# Set to yes if exported symbols are required.
18533always_export_symbols=$always_export_symbols_CXX
18534
18535# The commands to list exported symbols.
18536export_symbols_cmds=$lt_export_symbols_cmds_CXX
18537
18538# The commands to extract the exported symbol list from a shared archive.
18539extract_expsyms_cmds=$lt_extract_expsyms_cmds
18540
18541# Symbols that should not be listed in the preloaded symbols.
18542exclude_expsyms=$lt_exclude_expsyms_CXX
18543
18544# Symbols that must always be exported.
18545include_expsyms=$lt_include_expsyms_CXX
18546
18547# ### END LIBTOOL TAG CONFIG: $tagname
18548
18549__EOF__
18550
18551
18552else
18553  # If there is no Makefile yet, we rely on a make rule to execute
18554  # `config.status --recheck' to rerun these tests and create the
18555  # libtool script then.
18556  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18557  if test -f "$ltmain_in"; then
18558    test -f Makefile && make "$ltmain"
18559  fi
18560fi
18561
18562
18563ac_ext=c
18564ac_cpp='$CPP $CPPFLAGS'
18565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567ac_compiler_gnu=$ac_cv_c_compiler_gnu
18568
18569CC=$lt_save_CC
18570LDCXX=$LD
18571LD=$lt_save_LD
18572GCC=$lt_save_GCC
18573with_gnu_ldcxx=$with_gnu_ld
18574with_gnu_ld=$lt_save_with_gnu_ld
18575lt_cv_path_LDCXX=$lt_cv_path_LD
18576lt_cv_path_LD=$lt_save_path_LD
18577lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18578lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18579
18580	else
18581	  tagname=""
18582	fi
18583	;;
18584
18585      F77)
18586	if test -n "$F77" && test "X$F77" != "Xno"; then
18587
18588ac_ext=f
18589ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18590ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18591ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18592
18593
18594archive_cmds_need_lc_F77=no
18595allow_undefined_flag_F77=
18596always_export_symbols_F77=no
18597archive_expsym_cmds_F77=
18598export_dynamic_flag_spec_F77=
18599hardcode_direct_F77=no
18600hardcode_libdir_flag_spec_F77=
18601hardcode_libdir_flag_spec_ld_F77=
18602hardcode_libdir_separator_F77=
18603hardcode_minus_L_F77=no
18604hardcode_automatic_F77=no
18605module_cmds_F77=
18606module_expsym_cmds_F77=
18607link_all_deplibs_F77=unknown
18608old_archive_cmds_F77=$old_archive_cmds
18609no_undefined_flag_F77=
18610whole_archive_flag_spec_F77=
18611enable_shared_with_static_runtimes_F77=no
18612
18613# Source file extension for f77 test sources.
18614ac_ext=f
18615
18616# Object file extension for compiled f77 test sources.
18617objext=o
18618objext_F77=$objext
18619
18620# Code to be used in simple compile tests
18621lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18622
18623# Code to be used in simple link tests
18624lt_simple_link_test_code="      program t\n      end\n"
18625
18626# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18627
18628# If no C compiler was specified, use CC.
18629LTCC=${LTCC-"$CC"}
18630
18631# Allow CC to be a program name with arguments.
18632compiler=$CC
18633
18634
18635# Allow CC to be a program name with arguments.
18636lt_save_CC="$CC"
18637CC=${F77-"f77"}
18638compiler=$CC
18639compiler_F77=$CC
18640cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18641
18642echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18643echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18644echo "$as_me:$LINENO: result: $can_build_shared" >&5
18645echo "${ECHO_T}$can_build_shared" >&6
18646
18647echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18648echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18649test "$can_build_shared" = "no" && enable_shared=no
18650
18651# On AIX, shared libraries and static libraries use the same namespace, and
18652# are all built from PIC.
18653case "$host_os" in
18654aix3*)
18655  test "$enable_shared" = yes && enable_static=no
18656  if test -n "$RANLIB"; then
18657    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18658    postinstall_cmds='$RANLIB $lib'
18659  fi
18660  ;;
18661aix4* | aix5*)
18662  test "$enable_shared" = yes && enable_static=no
18663  ;;
18664esac
18665echo "$as_me:$LINENO: result: $enable_shared" >&5
18666echo "${ECHO_T}$enable_shared" >&6
18667
18668echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18669echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18670# Make sure either enable_shared or enable_static is yes.
18671test "$enable_shared" = yes || enable_static=yes
18672echo "$as_me:$LINENO: result: $enable_static" >&5
18673echo "${ECHO_T}$enable_static" >&6
18674
18675test "$ld_shlibs_F77" = no && can_build_shared=no
18676
18677GCC_F77="$G77"
18678LD_F77="$LD"
18679
18680lt_prog_compiler_wl_F77=
18681lt_prog_compiler_pic_F77=
18682lt_prog_compiler_static_F77=
18683
18684echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18686
18687  if test "$GCC" = yes; then
18688    lt_prog_compiler_wl_F77='-Wl,'
18689    lt_prog_compiler_static_F77='-static'
18690
18691    case $host_os in
18692      aix*)
18693      # All AIX code is PIC.
18694      if test "$host_cpu" = ia64; then
18695	# AIX 5 now supports IA64 processor
18696	lt_prog_compiler_static_F77='-Bstatic'
18697      fi
18698      ;;
18699
18700    amigaos*)
18701      # FIXME: we need at least 68020 code to build shared libraries, but
18702      # adding the `-m68020' flag to GCC prevents building anything better,
18703      # like `-m68040'.
18704      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18705      ;;
18706
18707    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18708      # PIC is the default for these OSes.
18709      ;;
18710
18711    mingw* | pw32* | os2*)
18712      # This hack is so that the source file can tell whether it is being
18713      # built for inclusion in a dll (and should export symbols for example).
18714      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18715      ;;
18716
18717    darwin* | rhapsody*)
18718      # PIC is the default on this platform
18719      # Common symbols not allowed in MH_DYLIB files
18720      lt_prog_compiler_pic_F77='-fno-common'
18721      ;;
18722
18723    msdosdjgpp*)
18724      # Just because we use GCC doesn't mean we suddenly get shared libraries
18725      # on systems that don't support them.
18726      lt_prog_compiler_can_build_shared_F77=no
18727      enable_shared=no
18728      ;;
18729
18730    sysv4*MP*)
18731      if test -d /usr/nec; then
18732	lt_prog_compiler_pic_F77=-Kconform_pic
18733      fi
18734      ;;
18735
18736    hpux*)
18737      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18738      # not for PA HP-UX.
18739      case "$host_cpu" in
18740      hppa*64*|ia64*)
18741	# +Z the default
18742	;;
18743      *)
18744	lt_prog_compiler_pic_F77='-fPIC'
18745	;;
18746      esac
18747      ;;
18748
18749    *)
18750      lt_prog_compiler_pic_F77='-fPIC'
18751      ;;
18752    esac
18753  else
18754    # PORTME Check for flag to pass linker flags through the system compiler.
18755    case $host_os in
18756    aix*)
18757      lt_prog_compiler_wl_F77='-Wl,'
18758      if test "$host_cpu" = ia64; then
18759	# AIX 5 now supports IA64 processor
18760	lt_prog_compiler_static_F77='-Bstatic'
18761      else
18762	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18763      fi
18764      ;;
18765      darwin*)
18766        # PIC is the default on this platform
18767        # Common symbols not allowed in MH_DYLIB files
18768       case "$cc_basename" in
18769         xlc*)
18770         lt_prog_compiler_pic_F77='-qnocommon'
18771         lt_prog_compiler_wl_F77='-Wl,'
18772         ;;
18773       esac
18774       ;;
18775
18776    mingw* | pw32* | os2*)
18777      # This hack is so that the source file can tell whether it is being
18778      # built for inclusion in a dll (and should export symbols for example).
18779      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18780      ;;
18781
18782    hpux9* | hpux10* | hpux11*)
18783      lt_prog_compiler_wl_F77='-Wl,'
18784      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18785      # not for PA HP-UX.
18786      case "$host_cpu" in
18787      hppa*64*|ia64*)
18788	# +Z the default
18789	;;
18790      *)
18791	lt_prog_compiler_pic_F77='+Z'
18792	;;
18793      esac
18794      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18795      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18796      ;;
18797
18798    irix5* | irix6* | nonstopux*)
18799      lt_prog_compiler_wl_F77='-Wl,'
18800      # PIC (with -KPIC) is the default.
18801      lt_prog_compiler_static_F77='-non_shared'
18802      ;;
18803
18804    newsos6)
18805      lt_prog_compiler_pic_F77='-KPIC'
18806      lt_prog_compiler_static_F77='-Bstatic'
18807      ;;
18808
18809    linux*)
18810      case $CC in
18811      icc* | ecc*)
18812	lt_prog_compiler_wl_F77='-Wl,'
18813	lt_prog_compiler_pic_F77='-KPIC'
18814	lt_prog_compiler_static_F77='-static'
18815        ;;
18816      ccc*)
18817        lt_prog_compiler_wl_F77='-Wl,'
18818        # All Alpha code is PIC.
18819        lt_prog_compiler_static_F77='-non_shared'
18820        ;;
18821      esac
18822      ;;
18823
18824    osf3* | osf4* | osf5*)
18825      lt_prog_compiler_wl_F77='-Wl,'
18826      # All OSF/1 code is PIC.
18827      lt_prog_compiler_static_F77='-non_shared'
18828      ;;
18829
18830    sco3.2v5*)
18831      lt_prog_compiler_pic_F77='-Kpic'
18832      lt_prog_compiler_static_F77='-dn'
18833      ;;
18834
18835    solaris*)
18836      lt_prog_compiler_wl_F77='-Wl,'
18837      lt_prog_compiler_pic_F77='-KPIC'
18838      lt_prog_compiler_static_F77='-Bstatic'
18839      ;;
18840
18841    sunos4*)
18842      lt_prog_compiler_wl_F77='-Qoption ld '
18843      lt_prog_compiler_pic_F77='-PIC'
18844      lt_prog_compiler_static_F77='-Bstatic'
18845      ;;
18846
18847    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18848      lt_prog_compiler_wl_F77='-Wl,'
18849      lt_prog_compiler_pic_F77='-KPIC'
18850      lt_prog_compiler_static_F77='-Bstatic'
18851      ;;
18852
18853    sysv4*MP*)
18854      if test -d /usr/nec ;then
18855	lt_prog_compiler_pic_F77='-Kconform_pic'
18856	lt_prog_compiler_static_F77='-Bstatic'
18857      fi
18858      ;;
18859
18860    uts4*)
18861      lt_prog_compiler_pic_F77='-pic'
18862      lt_prog_compiler_static_F77='-Bstatic'
18863      ;;
18864
18865    *)
18866      lt_prog_compiler_can_build_shared_F77=no
18867      ;;
18868    esac
18869  fi
18870
18871echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18872echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18873
18874#
18875# Check to make sure the PIC flag actually works.
18876#
18877if test -n "$lt_prog_compiler_pic_F77"; then
18878
18879echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18880echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18881if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18882  echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884  lt_prog_compiler_pic_works_F77=no
18885  ac_outfile=conftest.$ac_objext
18886   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18887   lt_compiler_flag="$lt_prog_compiler_pic_F77"
18888   # Insert the option either (1) after the last *FLAGS variable, or
18889   # (2) before a word containing "conftest.", or (3) at the end.
18890   # Note that $ac_compile itself does not contain backslashes and begins
18891   # with a dollar sign (not a hyphen), so the echo should work correctly.
18892   # The option is referenced via a variable to avoid confusing sed.
18893   lt_compile=`echo "$ac_compile" | $SED \
18894   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18896   -e 's:$: $lt_compiler_flag:'`
18897   (eval echo "\"\$as_me:18896: $lt_compile\"" >&5)
18898   (eval "$lt_compile" 2>conftest.err)
18899   ac_status=$?
18900   cat conftest.err >&5
18901   echo "$as_me:18900: \$? = $ac_status" >&5
18902   if (exit $ac_status) && test -s "$ac_outfile"; then
18903     # The compiler can only warn and ignore the option if not recognized
18904     # So say no if there are warnings
18905     if test ! -s conftest.err; then
18906       lt_prog_compiler_pic_works_F77=yes
18907     fi
18908   fi
18909   $rm conftest*
18910
18911fi
18912echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18913echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18914
18915if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18916    case $lt_prog_compiler_pic_F77 in
18917     "" | " "*) ;;
18918     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18919     esac
18920else
18921    lt_prog_compiler_pic_F77=
18922     lt_prog_compiler_can_build_shared_F77=no
18923fi
18924
18925fi
18926case "$host_os" in
18927  # For platforms which do not support PIC, -DPIC is meaningless:
18928  *djgpp*)
18929    lt_prog_compiler_pic_F77=
18930    ;;
18931  *)
18932    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18933    ;;
18934esac
18935
18936echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18937echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18938if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18939  echo $ECHO_N "(cached) $ECHO_C" >&6
18940else
18941  lt_cv_prog_compiler_c_o_F77=no
18942   $rm -r conftest 2>/dev/null
18943   mkdir conftest
18944   cd conftest
18945   mkdir out
18946   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18947
18948   lt_compiler_flag="-o out/conftest2.$ac_objext"
18949   # Insert the option either (1) after the last *FLAGS variable, or
18950   # (2) before a word containing "conftest.", or (3) at the end.
18951   # Note that $ac_compile itself does not contain backslashes and begins
18952   # with a dollar sign (not a hyphen), so the echo should work correctly.
18953   lt_compile=`echo "$ac_compile" | $SED \
18954   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18955   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18956   -e 's:$: $lt_compiler_flag:'`
18957   (eval echo "\"\$as_me:18956: $lt_compile\"" >&5)
18958   (eval "$lt_compile" 2>out/conftest.err)
18959   ac_status=$?
18960   cat out/conftest.err >&5
18961   echo "$as_me:18960: \$? = $ac_status" >&5
18962   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18963   then
18964     # The compiler can only warn and ignore the option if not recognized
18965     # So say no if there are warnings
18966     if test ! -s out/conftest.err; then
18967       lt_cv_prog_compiler_c_o_F77=yes
18968     fi
18969   fi
18970   chmod u+w .
18971   $rm conftest*
18972   # SGI C++ compiler will create directory out/ii_files/ for
18973   # template instantiation
18974   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18975   $rm out/* && rmdir out
18976   cd ..
18977   rmdir conftest
18978   $rm conftest*
18979
18980fi
18981echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18982echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18983
18984
18985hard_links="nottested"
18986if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18987  # do not overwrite the value of need_locks provided by the user
18988  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18989echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18990  hard_links=yes
18991  $rm conftest*
18992  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18993  touch conftest.a
18994  ln conftest.a conftest.b 2>&5 || hard_links=no
18995  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18996  echo "$as_me:$LINENO: result: $hard_links" >&5
18997echo "${ECHO_T}$hard_links" >&6
18998  if test "$hard_links" = no; then
18999    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19000echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19001    need_locks=warn
19002  fi
19003else
19004  need_locks=no
19005fi
19006
19007echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19008echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19009
19010  runpath_var=
19011  allow_undefined_flag_F77=
19012  enable_shared_with_static_runtimes_F77=no
19013  archive_cmds_F77=
19014  archive_expsym_cmds_F77=
19015  old_archive_From_new_cmds_F77=
19016  old_archive_from_expsyms_cmds_F77=
19017  export_dynamic_flag_spec_F77=
19018  whole_archive_flag_spec_F77=
19019  thread_safe_flag_spec_F77=
19020  hardcode_libdir_flag_spec_F77=
19021  hardcode_libdir_flag_spec_ld_F77=
19022  hardcode_libdir_separator_F77=
19023  hardcode_direct_F77=no
19024  hardcode_minus_L_F77=no
19025  hardcode_shlibpath_var_F77=unsupported
19026  link_all_deplibs_F77=unknown
19027  hardcode_automatic_F77=no
19028  module_cmds_F77=
19029  module_expsym_cmds_F77=
19030  always_export_symbols_F77=no
19031  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19032  # include_expsyms should be a list of space-separated symbols to be *always*
19033  # included in the symbol list
19034  include_expsyms_F77=
19035  # exclude_expsyms can be an extended regexp of symbols to exclude
19036  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19037  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19038  # as well as any symbol that contains `d'.
19039  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19040  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19041  # platforms (ab)use it in PIC code, but their linkers get confused if
19042  # the symbol is explicitly referenced.  Since portable code cannot
19043  # rely on this symbol name, it's probably fine to never include it in
19044  # preloaded symbol tables.
19045  extract_expsyms_cmds=
19046
19047  case $host_os in
19048  cygwin* | mingw* | pw32*)
19049    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19050    # When not using gcc, we currently assume that we are using
19051    # Microsoft Visual C++.
19052    if test "$GCC" != yes; then
19053      with_gnu_ld=no
19054    fi
19055    ;;
19056  openbsd*)
19057    with_gnu_ld=no
19058    ;;
19059  esac
19060
19061  ld_shlibs_F77=yes
19062  if test "$with_gnu_ld" = yes; then
19063    # If archive_cmds runs LD, not CC, wlarc should be empty
19064    wlarc='${wl}'
19065
19066    # See if GNU ld supports shared libraries.
19067    case $host_os in
19068    aix3* | aix4* | aix5*)
19069      # On AIX/PPC, the GNU linker is very broken
19070      if test "$host_cpu" != ia64; then
19071	ld_shlibs_F77=no
19072	cat <<EOF 1>&2
19073
19074*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19075*** to be unable to reliably create shared libraries on AIX.
19076*** Therefore, libtool is disabling shared libraries support.  If you
19077*** really care for shared libraries, you may want to modify your PATH
19078*** so that a non-GNU linker is found, and then restart.
19079
19080EOF
19081      fi
19082      ;;
19083
19084    amigaos*)
19085      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)'
19086      hardcode_libdir_flag_spec_F77='-L$libdir'
19087      hardcode_minus_L_F77=yes
19088
19089      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19090      # that the semantics of dynamic libraries on AmigaOS, at least up
19091      # to version 4, is to share data among multiple programs linked
19092      # with the same dynamic library.  Since this doesn't match the
19093      # behavior of shared libraries on other platforms, we can't use
19094      # them.
19095      ld_shlibs_F77=no
19096      ;;
19097
19098    beos*)
19099      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19100	allow_undefined_flag_F77=unsupported
19101	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19102	# support --undefined.  This deserves some investigation.  FIXME
19103	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19104      else
19105	ld_shlibs_F77=no
19106      fi
19107      ;;
19108
19109    cygwin* | mingw* | pw32*)
19110      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19111      # as there is no search path for DLLs.
19112      hardcode_libdir_flag_spec_F77='-L$libdir'
19113      allow_undefined_flag_F77=unsupported
19114      always_export_symbols_F77=no
19115      enable_shared_with_static_runtimes_F77=yes
19116      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19117
19118      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19119        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19120	# If the export-symbols file already is a .def file (1st line
19121	# is EXPORTS), use it as is; otherwise, prepend...
19122	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19123	  cp $export_symbols $output_objdir/$soname.def;
19124	else
19125	  echo EXPORTS > $output_objdir/$soname.def;
19126	  cat $export_symbols >> $output_objdir/$soname.def;
19127	fi~
19128	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19129      else
19130	ld_shlibs=no
19131      fi
19132      ;;
19133
19134    netbsd*)
19135      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19136	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19137	wlarc=
19138      else
19139	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19140	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19141      fi
19142      ;;
19143
19144    solaris* | sysv5*)
19145      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19146	ld_shlibs_F77=no
19147	cat <<EOF 1>&2
19148
19149*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19150*** create shared libraries on Solaris systems.  Therefore, libtool
19151*** is disabling shared libraries support.  We urge you to upgrade GNU
19152*** binutils to release 2.9.1 or newer.  Another option is to modify
19153*** your PATH or compiler configuration so that the native linker is
19154*** used, and then restart.
19155
19156EOF
19157      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19158	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19160      else
19161	ld_shlibs_F77=no
19162      fi
19163      ;;
19164
19165    sunos4*)
19166      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19167      wlarc=
19168      hardcode_direct_F77=yes
19169      hardcode_shlibpath_var_F77=no
19170      ;;
19171
19172  linux*)
19173    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19174        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175	archive_cmds_F77="$tmp_archive_cmds"
19176      supports_anon_versioning=no
19177      case `$LD -v 2>/dev/null` in
19178        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19179        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19180        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19181        *\ 2.11.*) ;; # other 2.11 versions
19182        *) supports_anon_versioning=yes ;;
19183      esac
19184      if test $supports_anon_versioning = yes; then
19185        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19186cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19187$echo "local: *; };" >> $output_objdir/$libname.ver~
19188        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19189      else
19190        archive_expsym_cmds_F77="$tmp_archive_cmds"
19191      fi
19192    else
19193      ld_shlibs_F77=no
19194    fi
19195    ;;
19196
19197    *)
19198      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19199	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19200	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19201      else
19202	ld_shlibs_F77=no
19203      fi
19204      ;;
19205    esac
19206
19207    if test "$ld_shlibs_F77" = yes; then
19208      runpath_var=LD_RUN_PATH
19209      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19210      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19211      # ancient GNU ld didn't support --whole-archive et. al.
19212      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19213 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19214      else
19215  	whole_archive_flag_spec_F77=
19216      fi
19217    fi
19218  else
19219    # PORTME fill in a description of your system's linker (not GNU ld)
19220    case $host_os in
19221    aix3*)
19222      allow_undefined_flag_F77=unsupported
19223      always_export_symbols_F77=yes
19224      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'
19225      # Note: this linker hardcodes the directories in LIBPATH if there
19226      # are no directories specified by -L.
19227      hardcode_minus_L_F77=yes
19228      if test "$GCC" = yes && test -z "$link_static_flag"; then
19229	# Neither direct hardcoding nor static linking is supported with a
19230	# broken collect2.
19231	hardcode_direct_F77=unsupported
19232      fi
19233      ;;
19234
19235    aix4* | aix5*)
19236      if test "$host_cpu" = ia64; then
19237	# On IA64, the linker does run time linking by default, so we don't
19238	# have to do anything special.
19239	aix_use_runtimelinking=no
19240	exp_sym_flag='-Bexport'
19241	no_entry_flag=""
19242      else
19243	# If we're using GNU nm, then we don't want the "-C" option.
19244	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19245	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19246	  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'
19247	else
19248	  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'
19249	fi
19250	aix_use_runtimelinking=no
19251
19252	# Test if we are trying to use run time linking or normal
19253	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19254	# need to do runtime linking.
19255	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19256	  for ld_flag in $LDFLAGS; do
19257  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19258  	    aix_use_runtimelinking=yes
19259  	    break
19260  	  fi
19261	  done
19262	esac
19263
19264	exp_sym_flag='-bexport'
19265	no_entry_flag='-bnoentry'
19266      fi
19267
19268      # When large executables or shared objects are built, AIX ld can
19269      # have problems creating the table of contents.  If linking a library
19270      # or program results in "error TOC overflow" add -mminimal-toc to
19271      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19272      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19273
19274      archive_cmds_F77=''
19275      hardcode_direct_F77=yes
19276      hardcode_libdir_separator_F77=':'
19277      link_all_deplibs_F77=yes
19278
19279      if test "$GCC" = yes; then
19280	case $host_os in aix4.012|aix4.012.*)
19281	# We only want to do this on AIX 4.2 and lower, the check
19282	# below for broken collect2 doesn't work under 4.3+
19283	  collect2name=`${CC} -print-prog-name=collect2`
19284	  if test -f "$collect2name" && \
19285  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19286	  then
19287  	  # We have reworked collect2
19288  	  hardcode_direct_F77=yes
19289	  else
19290  	  # We have old collect2
19291  	  hardcode_direct_F77=unsupported
19292  	  # It fails to find uninstalled libraries when the uninstalled
19293  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19294  	  # to unsupported forces relinking
19295  	  hardcode_minus_L_F77=yes
19296  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19297  	  hardcode_libdir_separator_F77=
19298	  fi
19299	esac
19300	shared_flag='-shared'
19301      else
19302	# not using gcc
19303	if test "$host_cpu" = ia64; then
19304  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19305  	# chokes on -Wl,-G. The following line is correct:
19306	  shared_flag='-G'
19307	else
19308  	if test "$aix_use_runtimelinking" = yes; then
19309	    shared_flag='${wl}-G'
19310	  else
19311	    shared_flag='${wl}-bM:SRE'
19312  	fi
19313	fi
19314      fi
19315
19316      # It seems that -bexpall does not export symbols beginning with
19317      # underscore (_), so it is better to generate a list of symbols to export.
19318      always_export_symbols_F77=yes
19319      if test "$aix_use_runtimelinking" = yes; then
19320	# Warning - without using the other runtime loading flags (-brtl),
19321	# -berok will link without error, but may produce a broken library.
19322	allow_undefined_flag_F77='-berok'
19323       # Determine the default libpath from the value encoded in an empty executable.
19324       cat >conftest.$ac_ext <<_ACEOF
19325      program main
19326
19327      end
19328_ACEOF
19329rm -f conftest.$ac_objext conftest$ac_exeext
19330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19331  (eval $ac_link) 2>conftest.er1
19332  ac_status=$?
19333  grep -v '^ *+' conftest.er1 >conftest.err
19334  rm -f conftest.er1
19335  cat conftest.err >&5
19336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337  (exit $ac_status); } &&
19338	 { ac_try='test -z "$ac_f77_werror_flag"
19339			 || test ! -s conftest.err'
19340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341  (eval $ac_try) 2>&5
19342  ac_status=$?
19343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344  (exit $ac_status); }; } &&
19345	 { ac_try='test -s conftest$ac_exeext'
19346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347  (eval $ac_try) 2>&5
19348  ac_status=$?
19349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350  (exit $ac_status); }; }; then
19351
19352aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19353}'`
19354# Check for a 64-bit object if we didn't find anything.
19355if 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; }
19356}'`; fi
19357else
19358  echo "$as_me: failed program was:" >&5
19359sed 's/^/| /' conftest.$ac_ext >&5
19360
19361fi
19362rm -f conftest.err conftest.$ac_objext \
19363      conftest$ac_exeext conftest.$ac_ext
19364if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19365
19366       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19367	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"
19368       else
19369	if test "$host_cpu" = ia64; then
19370	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19371	  allow_undefined_flag_F77="-z nodefs"
19372	  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"
19373	else
19374	 # Determine the default libpath from the value encoded in an empty executable.
19375	 cat >conftest.$ac_ext <<_ACEOF
19376      program main
19377
19378      end
19379_ACEOF
19380rm -f conftest.$ac_objext conftest$ac_exeext
19381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19382  (eval $ac_link) 2>conftest.er1
19383  ac_status=$?
19384  grep -v '^ *+' conftest.er1 >conftest.err
19385  rm -f conftest.er1
19386  cat conftest.err >&5
19387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388  (exit $ac_status); } &&
19389	 { ac_try='test -z "$ac_f77_werror_flag"
19390			 || test ! -s conftest.err'
19391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392  (eval $ac_try) 2>&5
19393  ac_status=$?
19394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395  (exit $ac_status); }; } &&
19396	 { ac_try='test -s conftest$ac_exeext'
19397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398  (eval $ac_try) 2>&5
19399  ac_status=$?
19400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401  (exit $ac_status); }; }; then
19402
19403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19404}'`
19405# Check for a 64-bit object if we didn't find anything.
19406if 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; }
19407}'`; fi
19408else
19409  echo "$as_me: failed program was:" >&5
19410sed 's/^/| /' conftest.$ac_ext >&5
19411
19412fi
19413rm -f conftest.err conftest.$ac_objext \
19414      conftest$ac_exeext conftest.$ac_ext
19415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19416
19417	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19418	  # Warning - without using the other run time loading flags,
19419	  # -berok will link without error, but may produce a broken library.
19420	  no_undefined_flag_F77=' ${wl}-bernotok'
19421	  allow_undefined_flag_F77=' ${wl}-berok'
19422	  # -bexpall does not export symbols beginning with underscore (_)
19423	  always_export_symbols_F77=yes
19424	  # Exported symbols can be pulled into shared objects from archives
19425	  whole_archive_flag_spec_F77=' '
19426	  archive_cmds_need_lc_F77=yes
19427	  # This is similar to how AIX traditionally builds it's shared libraries.
19428	  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'
19429	fi
19430      fi
19431      ;;
19432
19433    amigaos*)
19434      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)'
19435      hardcode_libdir_flag_spec_F77='-L$libdir'
19436      hardcode_minus_L_F77=yes
19437      # see comment about different semantics on the GNU ld section
19438      ld_shlibs_F77=no
19439      ;;
19440
19441    bsdi[45]*)
19442      export_dynamic_flag_spec_F77=-rdynamic
19443      ;;
19444
19445    cygwin* | mingw* | pw32*)
19446      # When not using gcc, we currently assume that we are using
19447      # Microsoft Visual C++.
19448      # hardcode_libdir_flag_spec is actually meaningless, as there is
19449      # no search path for DLLs.
19450      hardcode_libdir_flag_spec_F77=' '
19451      allow_undefined_flag_F77=unsupported
19452      # Tell ltmain to make .lib files, not .a files.
19453      libext=lib
19454      # Tell ltmain to make .dll files, not .so files.
19455      shrext_cmds=".dll"
19456      # FIXME: Setting linknames here is a bad hack.
19457      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19458      # The linker will automatically build a .lib file if we build a DLL.
19459      old_archive_From_new_cmds_F77='true'
19460      # FIXME: Should let the user specify the lib program.
19461      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19462      fix_srcfile_path='`cygpath -w "$srcfile"`'
19463      enable_shared_with_static_runtimes_F77=yes
19464      ;;
19465
19466    darwin* | rhapsody*)
19467      case "$host_os" in
19468        rhapsody* | darwin1.[012])
19469         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19470         ;;
19471       *) # Darwin 1.3 on
19472         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19473           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19474         else
19475           case ${MACOSX_DEPLOYMENT_TARGET} in
19476             10.[012])
19477               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19478               ;;
19479             10.*)
19480               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19481               ;;
19482           esac
19483         fi
19484         ;;
19485      esac
19486      archive_cmds_need_lc_F77=no
19487      hardcode_direct_F77=no
19488      hardcode_automatic_F77=yes
19489      hardcode_shlibpath_var_F77=unsupported
19490      whole_archive_flag_spec_F77=''
19491      link_all_deplibs_F77=yes
19492    if test "$GCC" = yes ; then
19493    	output_verbose_link_cmd='echo'
19494        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19495      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19496      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19497      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}'
19498      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}'
19499    else
19500      case "$cc_basename" in
19501        xlc*)
19502         output_verbose_link_cmd='echo'
19503         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19504         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19506         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}'
19507          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}'
19508          ;;
19509       *)
19510         ld_shlibs_F77=no
19511          ;;
19512      esac
19513    fi
19514      ;;
19515
19516    dgux*)
19517      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518      hardcode_libdir_flag_spec_F77='-L$libdir'
19519      hardcode_shlibpath_var_F77=no
19520      ;;
19521
19522    freebsd1*)
19523      ld_shlibs_F77=no
19524      ;;
19525
19526    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19527    # support.  Future versions do this automatically, but an explicit c++rt0.o
19528    # does not break anything, and helps significantly (at the cost of a little
19529    # extra space).
19530    freebsd2.2*)
19531      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19532      hardcode_libdir_flag_spec_F77='-R$libdir'
19533      hardcode_direct_F77=yes
19534      hardcode_shlibpath_var_F77=no
19535      ;;
19536
19537    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19538    freebsd2*)
19539      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19540      hardcode_direct_F77=yes
19541      hardcode_minus_L_F77=yes
19542      hardcode_shlibpath_var_F77=no
19543      ;;
19544
19545    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19546    freebsd* | kfreebsd*-gnu)
19547      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19548      hardcode_libdir_flag_spec_F77='-R$libdir'
19549      hardcode_direct_F77=yes
19550      hardcode_shlibpath_var_F77=no
19551      ;;
19552
19553    hpux9*)
19554      if test "$GCC" = yes; then
19555	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'
19556      else
19557	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'
19558      fi
19559      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19560      hardcode_libdir_separator_F77=:
19561      hardcode_direct_F77=yes
19562
19563      # hardcode_minus_L: Not really in the search PATH,
19564      # but as the default location of the library.
19565      hardcode_minus_L_F77=yes
19566      export_dynamic_flag_spec_F77='${wl}-E'
19567      ;;
19568
19569    hpux10* | hpux11*)
19570      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19571	case "$host_cpu" in
19572	hppa*64*|ia64*)
19573	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19574	  ;;
19575	*)
19576	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19577	  ;;
19578	esac
19579      else
19580	case "$host_cpu" in
19581	hppa*64*|ia64*)
19582	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19583	  ;;
19584	*)
19585	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19586	  ;;
19587	esac
19588      fi
19589      if test "$with_gnu_ld" = no; then
19590	case "$host_cpu" in
19591	hppa*64*)
19592	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19593	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19594	  hardcode_libdir_separator_F77=:
19595	  hardcode_direct_F77=no
19596	  hardcode_shlibpath_var_F77=no
19597	  ;;
19598	ia64*)
19599	  hardcode_libdir_flag_spec_F77='-L$libdir'
19600	  hardcode_direct_F77=no
19601	  hardcode_shlibpath_var_F77=no
19602
19603	  # hardcode_minus_L: Not really in the search PATH,
19604	  # but as the default location of the library.
19605	  hardcode_minus_L_F77=yes
19606	  ;;
19607	*)
19608	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19609	  hardcode_libdir_separator_F77=:
19610	  hardcode_direct_F77=yes
19611	  export_dynamic_flag_spec_F77='${wl}-E'
19612
19613	  # hardcode_minus_L: Not really in the search PATH,
19614	  # but as the default location of the library.
19615	  hardcode_minus_L_F77=yes
19616	  ;;
19617	esac
19618      fi
19619      ;;
19620
19621    irix5* | irix6* | nonstopux*)
19622      if test "$GCC" = yes; then
19623	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'
19624      else
19625	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'
19626	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19627      fi
19628      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19629      hardcode_libdir_separator_F77=:
19630      link_all_deplibs_F77=yes
19631      ;;
19632
19633    netbsd*)
19634      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19635	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19636      else
19637	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19638      fi
19639      hardcode_libdir_flag_spec_F77='-R$libdir'
19640      hardcode_direct_F77=yes
19641      hardcode_shlibpath_var_F77=no
19642      ;;
19643
19644    newsos6)
19645      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19646      hardcode_direct_F77=yes
19647      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19648      hardcode_libdir_separator_F77=:
19649      hardcode_shlibpath_var_F77=no
19650      ;;
19651
19652    openbsd*)
19653      hardcode_direct_F77=yes
19654      hardcode_shlibpath_var_F77=no
19655      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19656	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19657	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19658	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19659	export_dynamic_flag_spec_F77='${wl}-E'
19660      else
19661       case $host_os in
19662	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19663	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19664	   hardcode_libdir_flag_spec_F77='-R$libdir'
19665	   ;;
19666	 *)
19667	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19668	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19669	   ;;
19670       esac
19671      fi
19672      ;;
19673
19674    os2*)
19675      hardcode_libdir_flag_spec_F77='-L$libdir'
19676      hardcode_minus_L_F77=yes
19677      allow_undefined_flag_F77=unsupported
19678      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'
19679      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19680      ;;
19681
19682    osf3*)
19683      if test "$GCC" = yes; then
19684	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19685	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'
19686      else
19687	allow_undefined_flag_F77=' -expect_unresolved \*'
19688	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'
19689      fi
19690      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19691      hardcode_libdir_separator_F77=:
19692      ;;
19693
19694    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19695      if test "$GCC" = yes; then
19696	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19697	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'
19698	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19699      else
19700	allow_undefined_flag_F77=' -expect_unresolved \*'
19701	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'
19702	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~
19703	$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'
19704
19705	# Both c and cxx compiler support -rpath directly
19706	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19707      fi
19708      hardcode_libdir_separator_F77=:
19709      ;;
19710
19711    sco3.2v5*)
19712      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19713      hardcode_shlibpath_var_F77=no
19714      export_dynamic_flag_spec_F77='${wl}-Bexport'
19715      runpath_var=LD_RUN_PATH
19716      hardcode_runpath_var=yes
19717      ;;
19718
19719    solaris*)
19720      no_undefined_flag_F77=' -z text'
19721      if test "$GCC" = yes; then
19722	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19723	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19724	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19725      else
19726	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19727	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19728  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19729      fi
19730      hardcode_libdir_flag_spec_F77='-R$libdir'
19731      hardcode_shlibpath_var_F77=no
19732      case $host_os in
19733      solaris2.[0-5] | solaris2.[0-5].*) ;;
19734      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19735	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19736      esac
19737      link_all_deplibs_F77=yes
19738      ;;
19739
19740    sunos4*)
19741      if test "x$host_vendor" = xsequent; then
19742	# Use $CC to link under sequent, because it throws in some extra .o
19743	# files that make .init and .fini sections work.
19744	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19745      else
19746	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19747      fi
19748      hardcode_libdir_flag_spec_F77='-L$libdir'
19749      hardcode_direct_F77=yes
19750      hardcode_minus_L_F77=yes
19751      hardcode_shlibpath_var_F77=no
19752      ;;
19753
19754    sysv4)
19755      case $host_vendor in
19756	sni)
19757	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19758	  hardcode_direct_F77=yes # is this really true???
19759	;;
19760	siemens)
19761	  ## LD is ld it makes a PLAMLIB
19762	  ## CC just makes a GrossModule.
19763	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19764	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19765	  hardcode_direct_F77=no
19766        ;;
19767	motorola)
19768	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19770	;;
19771      esac
19772      runpath_var='LD_RUN_PATH'
19773      hardcode_shlibpath_var_F77=no
19774      ;;
19775
19776    sysv4.3*)
19777      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778      hardcode_shlibpath_var_F77=no
19779      export_dynamic_flag_spec_F77='-Bexport'
19780      ;;
19781
19782    sysv4*MP*)
19783      if test -d /usr/nec; then
19784	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19785	hardcode_shlibpath_var_F77=no
19786	runpath_var=LD_RUN_PATH
19787	hardcode_runpath_var=yes
19788	ld_shlibs_F77=yes
19789      fi
19790      ;;
19791
19792    sysv4.2uw2*)
19793      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19794      hardcode_direct_F77=yes
19795      hardcode_minus_L_F77=no
19796      hardcode_shlibpath_var_F77=no
19797      hardcode_runpath_var=yes
19798      runpath_var=LD_RUN_PATH
19799      ;;
19800
19801   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19802      no_undefined_flag_F77='${wl}-z ${wl}text'
19803      if test "$GCC" = yes; then
19804	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19805      else
19806	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19807      fi
19808      runpath_var='LD_RUN_PATH'
19809      hardcode_shlibpath_var_F77=no
19810      ;;
19811
19812    sysv5*)
19813      no_undefined_flag_F77=' -z text'
19814      # $CC -shared without GNU ld will not create a library from C++
19815      # object files and a static libstdc++, better avoid it by now
19816      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19817      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19818  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19819      hardcode_libdir_flag_spec_F77=
19820      hardcode_shlibpath_var_F77=no
19821      runpath_var='LD_RUN_PATH'
19822      ;;
19823
19824    uts4*)
19825      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826      hardcode_libdir_flag_spec_F77='-L$libdir'
19827      hardcode_shlibpath_var_F77=no
19828      ;;
19829
19830    *)
19831      ld_shlibs_F77=no
19832      ;;
19833    esac
19834  fi
19835
19836echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19837echo "${ECHO_T}$ld_shlibs_F77" >&6
19838test "$ld_shlibs_F77" = no && can_build_shared=no
19839
19840variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19841if test "$GCC" = yes; then
19842  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19843fi
19844
19845#
19846# Do we need to explicitly link libc?
19847#
19848case "x$archive_cmds_need_lc_F77" in
19849x|xyes)
19850  # Assume -lc should be added
19851  archive_cmds_need_lc_F77=yes
19852
19853  if test "$enable_shared" = yes && test "$GCC" = yes; then
19854    case $archive_cmds_F77 in
19855    *'~'*)
19856      # FIXME: we may have to deal with multi-command sequences.
19857      ;;
19858    '$CC '*)
19859      # Test whether the compiler implicitly links with -lc since on some
19860      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19861      # to ld, don't add -lc before -lgcc.
19862      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19863echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19864      $rm conftest*
19865      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19866
19867      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868  (eval $ac_compile) 2>&5
19869  ac_status=$?
19870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871  (exit $ac_status); } 2>conftest.err; then
19872        soname=conftest
19873        lib=conftest
19874        libobjs=conftest.$ac_objext
19875        deplibs=
19876        wl=$lt_prog_compiler_wl_F77
19877        compiler_flags=-v
19878        linker_flags=-v
19879        verstring=
19880        output_objdir=.
19881        libname=conftest
19882        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19883        allow_undefined_flag_F77=
19884        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19885  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19886  ac_status=$?
19887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888  (exit $ac_status); }
19889        then
19890	  archive_cmds_need_lc_F77=no
19891        else
19892	  archive_cmds_need_lc_F77=yes
19893        fi
19894        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19895      else
19896        cat conftest.err 1>&5
19897      fi
19898      $rm conftest*
19899      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19900echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19901      ;;
19902    esac
19903  fi
19904  ;;
19905esac
19906
19907echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19908echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19909library_names_spec=
19910libname_spec='lib$name'
19911soname_spec=
19912shrext_cmds=".so"
19913postinstall_cmds=
19914postuninstall_cmds=
19915finish_cmds=
19916finish_eval=
19917shlibpath_var=
19918shlibpath_overrides_runpath=unknown
19919version_type=none
19920dynamic_linker="$host_os ld.so"
19921sys_lib_dlsearch_path_spec="/lib /usr/lib"
19922if test "$GCC" = yes; then
19923  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19924  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19925    # if the path contains ";" then we assume it to be the separator
19926    # otherwise default to the standard path separator (i.e. ":") - it is
19927    # assumed that no part of a normal pathname contains ";" but that should
19928    # okay in the real world where ";" in dirpaths is itself problematic.
19929    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19930  else
19931    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19932  fi
19933else
19934  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19935fi
19936need_lib_prefix=unknown
19937hardcode_into_libs=no
19938
19939# when you set need_version to no, make sure it does not cause -set_version
19940# flags to be left without arguments
19941need_version=unknown
19942
19943case $host_os in
19944aix3*)
19945  version_type=linux
19946  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19947  shlibpath_var=LIBPATH
19948
19949  # AIX 3 has no versioning support, so we append a major version to the name.
19950  soname_spec='${libname}${release}${shared_ext}$major'
19951  ;;
19952
19953aix4* | aix5*)
19954  version_type=linux
19955  need_lib_prefix=no
19956  need_version=no
19957  hardcode_into_libs=yes
19958  if test "$host_cpu" = ia64; then
19959    # AIX 5 supports IA64
19960    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19961    shlibpath_var=LD_LIBRARY_PATH
19962  else
19963    # With GCC up to 2.95.x, collect2 would create an import file
19964    # for dependence libraries.  The import file would start with
19965    # the line `#! .'.  This would cause the generated library to
19966    # depend on `.', always an invalid library.  This was fixed in
19967    # development snapshots of GCC prior to 3.0.
19968    case $host_os in
19969      aix4 | aix4.[01] | aix4.[01].*)
19970      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19971	   echo ' yes '
19972	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19973	:
19974      else
19975	can_build_shared=no
19976      fi
19977      ;;
19978    esac
19979    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19980    # soname into executable. Probably we can add versioning support to
19981    # collect2, so additional links can be useful in future.
19982    if test "$aix_use_runtimelinking" = yes; then
19983      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19984      # instead of lib<name>.a to let people know that these are not
19985      # typical AIX shared libraries.
19986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987    else
19988      # We preserve .a as extension for shared libraries through AIX4.2
19989      # and later when we are not doing run time linking.
19990      library_names_spec='${libname}${release}.a $libname.a'
19991      soname_spec='${libname}${release}${shared_ext}$major'
19992    fi
19993    shlibpath_var=LIBPATH
19994  fi
19995  ;;
19996
19997amigaos*)
19998  library_names_spec='$libname.ixlibrary $libname.a'
19999  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20000  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'
20001  ;;
20002
20003beos*)
20004  library_names_spec='${libname}${shared_ext}'
20005  dynamic_linker="$host_os ld.so"
20006  shlibpath_var=LIBRARY_PATH
20007  ;;
20008
20009bsdi[45]*)
20010  version_type=linux
20011  need_version=no
20012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20013  soname_spec='${libname}${release}${shared_ext}$major'
20014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20015  shlibpath_var=LD_LIBRARY_PATH
20016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20018  # the default ld.so.conf also contains /usr/contrib/lib and
20019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20020  # libtool to hard-code these into programs
20021  ;;
20022
20023cygwin* | mingw* | pw32*)
20024  version_type=windows
20025  shrext_cmds=".dll"
20026  need_version=no
20027  need_lib_prefix=no
20028
20029  case $GCC,$host_os in
20030  yes,cygwin* | yes,mingw* | yes,pw32*)
20031    library_names_spec='$libname.dll.a'
20032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20033    postinstall_cmds='base_file=`basename \${file}`~
20034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20035      dldir=$destdir/`dirname \$dlpath`~
20036      test -d \$dldir || mkdir -p \$dldir~
20037      $install_prog $dir/$dlname \$dldir/$dlname'
20038    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20039      dlpath=$dir/\$dldll~
20040       $rm \$dlpath'
20041    shlibpath_overrides_runpath=yes
20042
20043    case $host_os in
20044    cygwin*)
20045      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20046      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20047      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20048      ;;
20049    mingw*)
20050      # MinGW DLLs use traditional 'lib' prefix
20051      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20052      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20053      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20054        # It is most probably a Windows format PATH printed by
20055        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20056        # path with ; separators, and with drive letters. We can handle the
20057        # drive letters (cygwin fileutils understands them), so leave them,
20058        # especially as we might pass files found there to a mingw objdump,
20059        # which wouldn't understand a cygwinified path. Ahh.
20060        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061      else
20062        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20063      fi
20064      ;;
20065    pw32*)
20066      # pw32 DLLs use 'pw' prefix rather than 'lib'
20067      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20068      ;;
20069    esac
20070    ;;
20071
20072  *)
20073    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20074    ;;
20075  esac
20076  dynamic_linker='Win32 ld.exe'
20077  # FIXME: first we should search . and the directory the executable is in
20078  shlibpath_var=PATH
20079  ;;
20080
20081darwin* | rhapsody*)
20082  dynamic_linker="$host_os dyld"
20083  version_type=darwin
20084  need_lib_prefix=no
20085  need_version=no
20086  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20087  soname_spec='${libname}${release}${major}$shared_ext'
20088  shlibpath_overrides_runpath=yes
20089  shlibpath_var=DYLD_LIBRARY_PATH
20090  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20091  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20092  if test "$GCC" = yes; then
20093    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"`
20094  else
20095    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20096  fi
20097  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20098  ;;
20099
20100dgux*)
20101  version_type=linux
20102  need_lib_prefix=no
20103  need_version=no
20104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20105  soname_spec='${libname}${release}${shared_ext}$major'
20106  shlibpath_var=LD_LIBRARY_PATH
20107  ;;
20108
20109freebsd1*)
20110  dynamic_linker=no
20111  ;;
20112
20113kfreebsd*-gnu)
20114  version_type=linux
20115  need_lib_prefix=no
20116  need_version=no
20117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20118  soname_spec='${libname}${release}${shared_ext}$major'
20119  shlibpath_var=LD_LIBRARY_PATH
20120  shlibpath_overrides_runpath=no
20121  hardcode_into_libs=yes
20122  dynamic_linker='GNU ld.so'
20123  ;;
20124
20125freebsd*)
20126  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20127  version_type=freebsd-$objformat
20128  case $version_type in
20129    freebsd-elf*)
20130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20131      need_version=no
20132      need_lib_prefix=no
20133      ;;
20134    freebsd-*)
20135      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20136      need_version=yes
20137      ;;
20138  esac
20139  shlibpath_var=LD_LIBRARY_PATH
20140  case $host_os in
20141  freebsd2*)
20142    shlibpath_overrides_runpath=yes
20143    ;;
20144  freebsd3.01* | freebsdelf3.01*)
20145    shlibpath_overrides_runpath=yes
20146    hardcode_into_libs=yes
20147    ;;
20148  *) # from 3.2 on
20149    shlibpath_overrides_runpath=no
20150    hardcode_into_libs=yes
20151    ;;
20152  esac
20153  ;;
20154
20155gnu*)
20156  version_type=linux
20157  need_lib_prefix=no
20158  need_version=no
20159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20160  soname_spec='${libname}${release}${shared_ext}$major'
20161  shlibpath_var=LD_LIBRARY_PATH
20162  hardcode_into_libs=yes
20163  ;;
20164
20165hpux9* | hpux10* | hpux11*)
20166  # Give a soname corresponding to the major version so that dld.sl refuses to
20167  # link against other versions.
20168  version_type=sunos
20169  need_lib_prefix=no
20170  need_version=no
20171  case "$host_cpu" in
20172  ia64*)
20173    shrext_cmds='.so'
20174    hardcode_into_libs=yes
20175    dynamic_linker="$host_os dld.so"
20176    shlibpath_var=LD_LIBRARY_PATH
20177    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20178    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179    soname_spec='${libname}${release}${shared_ext}$major'
20180    if test "X$HPUX_IA64_MODE" = X32; then
20181      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20182    else
20183      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20184    fi
20185    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20186    ;;
20187   hppa*64*)
20188     shrext_cmds='.sl'
20189     hardcode_into_libs=yes
20190     dynamic_linker="$host_os dld.sl"
20191     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20192     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194     soname_spec='${libname}${release}${shared_ext}$major'
20195     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20197     ;;
20198   *)
20199    shrext_cmds='.sl'
20200    dynamic_linker="$host_os dld.sl"
20201    shlibpath_var=SHLIB_PATH
20202    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20203    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204    soname_spec='${libname}${release}${shared_ext}$major'
20205    ;;
20206  esac
20207  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20208  postinstall_cmds='chmod 555 $lib'
20209  ;;
20210
20211irix5* | irix6* | nonstopux*)
20212  case $host_os in
20213    nonstopux*) version_type=nonstopux ;;
20214    *)
20215	if test "$lt_cv_prog_gnu_ld" = yes; then
20216		version_type=linux
20217	else
20218		version_type=irix
20219	fi ;;
20220  esac
20221  need_lib_prefix=no
20222  need_version=no
20223  soname_spec='${libname}${release}${shared_ext}$major'
20224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20225  case $host_os in
20226  irix5* | nonstopux*)
20227    libsuff= shlibsuff=
20228    ;;
20229  *)
20230    case $LD in # libtool.m4 will add one of these switches to LD
20231    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20232      libsuff= shlibsuff= libmagic=32-bit;;
20233    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20234      libsuff=32 shlibsuff=N32 libmagic=N32;;
20235    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20236      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20237    *) libsuff= shlibsuff= libmagic=never-match;;
20238    esac
20239    ;;
20240  esac
20241  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20242  shlibpath_overrides_runpath=no
20243  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20244  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20245  hardcode_into_libs=yes
20246  ;;
20247
20248# No shared lib support for Linux oldld, aout, or coff.
20249linux*oldld* | linux*aout* | linux*coff*)
20250  dynamic_linker=no
20251  ;;
20252
20253# This must be Linux ELF.
20254linux*)
20255  version_type=linux
20256  need_lib_prefix=no
20257  need_version=no
20258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259  soname_spec='${libname}${release}${shared_ext}$major'
20260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20261  shlibpath_var=LD_LIBRARY_PATH
20262  shlibpath_overrides_runpath=no
20263  # This implies no fast_install, which is unacceptable.
20264  # Some rework will be needed to allow for fast_install
20265  # before this can be enabled.
20266  hardcode_into_libs=yes
20267
20268  # Append ld.so.conf contents to the search path
20269  if test -f /etc/ld.so.conf; then
20270    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20271    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20272  fi
20273
20274  # We used to test for /lib/ld.so.1 and disable shared libraries on
20275  # powerpc, because MkLinux only supported shared libraries with the
20276  # GNU dynamic linker.  Since this was broken with cross compilers,
20277  # most powerpc-linux boxes support dynamic linking these days and
20278  # people can always --disable-shared, the test was removed, and we
20279  # assume the GNU/Linux dynamic linker is in use.
20280  dynamic_linker='GNU/Linux ld.so'
20281  ;;
20282
20283knetbsd*-gnu)
20284  version_type=linux
20285  need_lib_prefix=no
20286  need_version=no
20287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288  soname_spec='${libname}${release}${shared_ext}$major'
20289  shlibpath_var=LD_LIBRARY_PATH
20290  shlibpath_overrides_runpath=no
20291  hardcode_into_libs=yes
20292  dynamic_linker='GNU ld.so'
20293  ;;
20294
20295netbsd*)
20296  version_type=sunos
20297  need_lib_prefix=no
20298  need_version=no
20299  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20300    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20301    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20302    dynamic_linker='NetBSD (a.out) ld.so'
20303  else
20304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20305    soname_spec='${libname}${release}${shared_ext}$major'
20306    dynamic_linker='NetBSD ld.elf_so'
20307  fi
20308  shlibpath_var=LD_LIBRARY_PATH
20309  shlibpath_overrides_runpath=yes
20310  hardcode_into_libs=yes
20311  ;;
20312
20313newsos6)
20314  version_type=linux
20315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316  shlibpath_var=LD_LIBRARY_PATH
20317  shlibpath_overrides_runpath=yes
20318  ;;
20319
20320nto-qnx*)
20321  version_type=linux
20322  need_lib_prefix=no
20323  need_version=no
20324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325  soname_spec='${libname}${release}${shared_ext}$major'
20326  shlibpath_var=LD_LIBRARY_PATH
20327  shlibpath_overrides_runpath=yes
20328  ;;
20329
20330openbsd*)
20331  version_type=sunos
20332  need_lib_prefix=no
20333  need_version=no
20334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20335  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20336  shlibpath_var=LD_LIBRARY_PATH
20337  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20338    case $host_os in
20339      openbsd2.[89] | openbsd2.[89].*)
20340	shlibpath_overrides_runpath=no
20341	;;
20342      *)
20343	shlibpath_overrides_runpath=yes
20344	;;
20345      esac
20346  else
20347    shlibpath_overrides_runpath=yes
20348  fi
20349  ;;
20350
20351os2*)
20352  libname_spec='$name'
20353  shrext_cmds=".dll"
20354  need_lib_prefix=no
20355  library_names_spec='$libname${shared_ext} $libname.a'
20356  dynamic_linker='OS/2 ld.exe'
20357  shlibpath_var=LIBPATH
20358  ;;
20359
20360osf3* | osf4* | osf5*)
20361  version_type=osf
20362  need_lib_prefix=no
20363  need_version=no
20364  soname_spec='${libname}${release}${shared_ext}$major'
20365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366  shlibpath_var=LD_LIBRARY_PATH
20367  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20368  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20369  ;;
20370
20371sco3.2v5*)
20372  version_type=osf
20373  soname_spec='${libname}${release}${shared_ext}$major'
20374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375  shlibpath_var=LD_LIBRARY_PATH
20376  ;;
20377
20378solaris*)
20379  version_type=linux
20380  need_lib_prefix=no
20381  need_version=no
20382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20383  soname_spec='${libname}${release}${shared_ext}$major'
20384  shlibpath_var=LD_LIBRARY_PATH
20385  shlibpath_overrides_runpath=yes
20386  hardcode_into_libs=yes
20387  # ldd complains unless libraries are executable
20388  postinstall_cmds='chmod +x $lib'
20389  ;;
20390
20391sunos4*)
20392  version_type=sunos
20393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20394  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20395  shlibpath_var=LD_LIBRARY_PATH
20396  shlibpath_overrides_runpath=yes
20397  if test "$with_gnu_ld" = yes; then
20398    need_lib_prefix=no
20399  fi
20400  need_version=yes
20401  ;;
20402
20403sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20404  version_type=linux
20405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406  soname_spec='${libname}${release}${shared_ext}$major'
20407  shlibpath_var=LD_LIBRARY_PATH
20408  case $host_vendor in
20409    sni)
20410      shlibpath_overrides_runpath=no
20411      need_lib_prefix=no
20412      export_dynamic_flag_spec='${wl}-Blargedynsym'
20413      runpath_var=LD_RUN_PATH
20414      ;;
20415    siemens)
20416      need_lib_prefix=no
20417      ;;
20418    motorola)
20419      need_lib_prefix=no
20420      need_version=no
20421      shlibpath_overrides_runpath=no
20422      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20423      ;;
20424  esac
20425  ;;
20426
20427sysv4*MP*)
20428  if test -d /usr/nec ;then
20429    version_type=linux
20430    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20431    soname_spec='$libname${shared_ext}.$major'
20432    shlibpath_var=LD_LIBRARY_PATH
20433  fi
20434  ;;
20435
20436uts4*)
20437  version_type=linux
20438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439  soname_spec='${libname}${release}${shared_ext}$major'
20440  shlibpath_var=LD_LIBRARY_PATH
20441  ;;
20442
20443*)
20444  dynamic_linker=no
20445  ;;
20446esac
20447echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20448echo "${ECHO_T}$dynamic_linker" >&6
20449test "$dynamic_linker" = no && can_build_shared=no
20450
20451echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20452echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20453hardcode_action_F77=
20454if test -n "$hardcode_libdir_flag_spec_F77" || \
20455   test -n "$runpath_var_F77" || \
20456   test "X$hardcode_automatic_F77" = "Xyes" ; then
20457
20458  # We can hardcode non-existant directories.
20459  if test "$hardcode_direct_F77" != no &&
20460     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20461     # have to relink, otherwise we might link with an installed library
20462     # when we should be linking with a yet-to-be-installed one
20463     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20464     test "$hardcode_minus_L_F77" != no; then
20465    # Linking always hardcodes the temporary library directory.
20466    hardcode_action_F77=relink
20467  else
20468    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20469    hardcode_action_F77=immediate
20470  fi
20471else
20472  # We cannot hardcode anything, or else we can only hardcode existing
20473  # directories.
20474  hardcode_action_F77=unsupported
20475fi
20476echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20477echo "${ECHO_T}$hardcode_action_F77" >&6
20478
20479if test "$hardcode_action_F77" = relink; then
20480  # Fast installation is not supported
20481  enable_fast_install=no
20482elif test "$shlibpath_overrides_runpath" = yes ||
20483     test "$enable_shared" = no; then
20484  # Fast installation is not necessary
20485  enable_fast_install=needless
20486fi
20487
20488striplib=
20489old_striplib=
20490echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20491echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20492if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20493  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20494  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20495  echo "$as_me:$LINENO: result: yes" >&5
20496echo "${ECHO_T}yes" >&6
20497else
20498# FIXME - insert some real tests, host_os isn't really good enough
20499  case $host_os in
20500   darwin*)
20501       if test -n "$STRIP" ; then
20502         striplib="$STRIP -x"
20503         echo "$as_me:$LINENO: result: yes" >&5
20504echo "${ECHO_T}yes" >&6
20505       else
20506  echo "$as_me:$LINENO: result: no" >&5
20507echo "${ECHO_T}no" >&6
20508fi
20509       ;;
20510   *)
20511  echo "$as_me:$LINENO: result: no" >&5
20512echo "${ECHO_T}no" >&6
20513    ;;
20514  esac
20515fi
20516
20517
20518
20519# The else clause should only fire when bootstrapping the
20520# libtool distribution, otherwise you forgot to ship ltmain.sh
20521# with your package, and you will get complaints that there are
20522# no rules to generate ltmain.sh.
20523if test -f "$ltmain"; then
20524  # See if we are running on zsh, and set the options which allow our commands through
20525  # without removal of \ escapes.
20526  if test -n "${ZSH_VERSION+set}" ; then
20527    setopt NO_GLOB_SUBST
20528  fi
20529  # Now quote all the things that may contain metacharacters while being
20530  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20531  # variables and quote the copies for generation of the libtool script.
20532  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20533    SED SHELL STRIP \
20534    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20535    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20536    deplibs_check_method reload_flag reload_cmds need_locks \
20537    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20538    lt_cv_sys_global_symbol_to_c_name_address \
20539    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20540    old_postinstall_cmds old_postuninstall_cmds \
20541    compiler_F77 \
20542    CC_F77 \
20543    LD_F77 \
20544    lt_prog_compiler_wl_F77 \
20545    lt_prog_compiler_pic_F77 \
20546    lt_prog_compiler_static_F77 \
20547    lt_prog_compiler_no_builtin_flag_F77 \
20548    export_dynamic_flag_spec_F77 \
20549    thread_safe_flag_spec_F77 \
20550    whole_archive_flag_spec_F77 \
20551    enable_shared_with_static_runtimes_F77 \
20552    old_archive_cmds_F77 \
20553    old_archive_from_new_cmds_F77 \
20554    predep_objects_F77 \
20555    postdep_objects_F77 \
20556    predeps_F77 \
20557    postdeps_F77 \
20558    compiler_lib_search_path_F77 \
20559    archive_cmds_F77 \
20560    archive_expsym_cmds_F77 \
20561    postinstall_cmds_F77 \
20562    postuninstall_cmds_F77 \
20563    old_archive_from_expsyms_cmds_F77 \
20564    allow_undefined_flag_F77 \
20565    no_undefined_flag_F77 \
20566    export_symbols_cmds_F77 \
20567    hardcode_libdir_flag_spec_F77 \
20568    hardcode_libdir_flag_spec_ld_F77 \
20569    hardcode_libdir_separator_F77 \
20570    hardcode_automatic_F77 \
20571    module_cmds_F77 \
20572    module_expsym_cmds_F77 \
20573    lt_cv_prog_compiler_c_o_F77 \
20574    exclude_expsyms_F77 \
20575    include_expsyms_F77; do
20576
20577    case $var in
20578    old_archive_cmds_F77 | \
20579    old_archive_from_new_cmds_F77 | \
20580    archive_cmds_F77 | \
20581    archive_expsym_cmds_F77 | \
20582    module_cmds_F77 | \
20583    module_expsym_cmds_F77 | \
20584    old_archive_from_expsyms_cmds_F77 | \
20585    export_symbols_cmds_F77 | \
20586    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20587    postinstall_cmds | postuninstall_cmds | \
20588    old_postinstall_cmds | old_postuninstall_cmds | \
20589    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20590      # Double-quote double-evaled strings.
20591      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20592      ;;
20593    *)
20594      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20595      ;;
20596    esac
20597  done
20598
20599  case $lt_echo in
20600  *'\$0 --fallback-echo"')
20601    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20602    ;;
20603  esac
20604
20605cfgfile="$ofile"
20606
20607  cat <<__EOF__ >> "$cfgfile"
20608# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20609
20610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20611
20612# Shell to use when invoking shell scripts.
20613SHELL=$lt_SHELL
20614
20615# Whether or not to build shared libraries.
20616build_libtool_libs=$enable_shared
20617
20618# Whether or not to build static libraries.
20619build_old_libs=$enable_static
20620
20621# Whether or not to add -lc for building shared libraries.
20622build_libtool_need_lc=$archive_cmds_need_lc_F77
20623
20624# Whether or not to disallow shared libs when runtime libs are static
20625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20626
20627# Whether or not to optimize for fast installation.
20628fast_install=$enable_fast_install
20629
20630# The host system.
20631host_alias=$host_alias
20632host=$host
20633
20634# An echo program that does not interpret backslashes.
20635echo=$lt_echo
20636
20637# The archiver.
20638AR=$lt_AR
20639AR_FLAGS=$lt_AR_FLAGS
20640
20641# A C compiler.
20642LTCC=$lt_LTCC
20643
20644# A language-specific compiler.
20645CC=$lt_compiler_F77
20646
20647# Is the compiler the GNU C compiler?
20648with_gcc=$GCC_F77
20649
20650# An ERE matcher.
20651EGREP=$lt_EGREP
20652
20653# The linker used to build libraries.
20654LD=$lt_LD_F77
20655
20656# Whether we need hard or soft links.
20657LN_S=$lt_LN_S
20658
20659# A BSD-compatible nm program.
20660NM=$lt_NM
20661
20662# A symbol stripping program
20663STRIP=$lt_STRIP
20664
20665# Used to examine libraries when file_magic_cmd begins "file"
20666MAGIC_CMD=$MAGIC_CMD
20667
20668# Used on cygwin: DLL creation program.
20669DLLTOOL="$DLLTOOL"
20670
20671# Used on cygwin: object dumper.
20672OBJDUMP="$OBJDUMP"
20673
20674# Used on cygwin: assembler.
20675AS="$AS"
20676
20677# The name of the directory that contains temporary libtool files.
20678objdir=$objdir
20679
20680# How to create reloadable object files.
20681reload_flag=$lt_reload_flag
20682reload_cmds=$lt_reload_cmds
20683
20684# How to pass a linker flag through the compiler.
20685wl=$lt_lt_prog_compiler_wl_F77
20686
20687# Object file suffix (normally "o").
20688objext="$ac_objext"
20689
20690# Old archive suffix (normally "a").
20691libext="$libext"
20692
20693# Shared library suffix (normally ".so").
20694shrext_cmds='$shrext_cmds'
20695
20696# Executable file suffix (normally "").
20697exeext="$exeext"
20698
20699# Additional compiler flags for building library objects.
20700pic_flag=$lt_lt_prog_compiler_pic_F77
20701pic_mode=$pic_mode
20702
20703# What is the maximum length of a command?
20704max_cmd_len=$lt_cv_sys_max_cmd_len
20705
20706# Does compiler simultaneously support -c and -o options?
20707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20708
20709# Must we lock files when doing compilation ?
20710need_locks=$lt_need_locks
20711
20712# Do we need the lib prefix for modules?
20713need_lib_prefix=$need_lib_prefix
20714
20715# Do we need a version for libraries?
20716need_version=$need_version
20717
20718# Whether dlopen is supported.
20719dlopen_support=$enable_dlopen
20720
20721# Whether dlopen of programs is supported.
20722dlopen_self=$enable_dlopen_self
20723
20724# Whether dlopen of statically linked programs is supported.
20725dlopen_self_static=$enable_dlopen_self_static
20726
20727# Compiler flag to prevent dynamic linking.
20728link_static_flag=$lt_lt_prog_compiler_static_F77
20729
20730# Compiler flag to turn off builtin functions.
20731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20732
20733# Compiler flag to allow reflexive dlopens.
20734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20735
20736# Compiler flag to generate shared objects directly from archives.
20737whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20738
20739# Compiler flag to generate thread-safe objects.
20740thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20741
20742# Library versioning type.
20743version_type=$version_type
20744
20745# Format of library name prefix.
20746libname_spec=$lt_libname_spec
20747
20748# List of archive names.  First name is the real one, the rest are links.
20749# The last name is the one that the linker finds with -lNAME.
20750library_names_spec=$lt_library_names_spec
20751
20752# The coded name of the library, if different from the real name.
20753soname_spec=$lt_soname_spec
20754
20755# Commands used to build and install an old-style archive.
20756RANLIB=$lt_RANLIB
20757old_archive_cmds=$lt_old_archive_cmds_F77
20758old_postinstall_cmds=$lt_old_postinstall_cmds
20759old_postuninstall_cmds=$lt_old_postuninstall_cmds
20760
20761# Create an old-style archive from a shared archive.
20762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20763
20764# Create a temporary old-style archive to link instead of a shared archive.
20765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20766
20767# Commands used to build and install a shared archive.
20768archive_cmds=$lt_archive_cmds_F77
20769archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20770postinstall_cmds=$lt_postinstall_cmds
20771postuninstall_cmds=$lt_postuninstall_cmds
20772
20773# Commands used to build a loadable module (assumed same as above if empty)
20774module_cmds=$lt_module_cmds_F77
20775module_expsym_cmds=$lt_module_expsym_cmds_F77
20776
20777# Commands to strip libraries.
20778old_striplib=$lt_old_striplib
20779striplib=$lt_striplib
20780
20781# Dependencies to place before the objects being linked to create a
20782# shared library.
20783predep_objects=$lt_predep_objects_F77
20784
20785# Dependencies to place after the objects being linked to create a
20786# shared library.
20787postdep_objects=$lt_postdep_objects_F77
20788
20789# Dependencies to place before the objects being linked to create a
20790# shared library.
20791predeps=$lt_predeps_F77
20792
20793# Dependencies to place after the objects being linked to create a
20794# shared library.
20795postdeps=$lt_postdeps_F77
20796
20797# The library search path used internally by the compiler when linking
20798# a shared library.
20799compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20800
20801# Method to check whether dependent libraries are shared objects.
20802deplibs_check_method=$lt_deplibs_check_method
20803
20804# Command to use when deplibs_check_method == file_magic.
20805file_magic_cmd=$lt_file_magic_cmd
20806
20807# Flag that allows shared libraries with undefined symbols to be built.
20808allow_undefined_flag=$lt_allow_undefined_flag_F77
20809
20810# Flag that forces no undefined symbols.
20811no_undefined_flag=$lt_no_undefined_flag_F77
20812
20813# Commands used to finish a libtool library installation in a directory.
20814finish_cmds=$lt_finish_cmds
20815
20816# Same as above, but a single script fragment to be evaled but not shown.
20817finish_eval=$lt_finish_eval
20818
20819# Take the output of nm and produce a listing of raw symbols and C names.
20820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20821
20822# Transform the output of nm in a proper C declaration
20823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20824
20825# Transform the output of nm in a C name address pair
20826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20827
20828# This is the shared library runtime path variable.
20829runpath_var=$runpath_var
20830
20831# This is the shared library path variable.
20832shlibpath_var=$shlibpath_var
20833
20834# Is shlibpath searched before the hard-coded library search path?
20835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20836
20837# How to hardcode a shared library path into an executable.
20838hardcode_action=$hardcode_action_F77
20839
20840# Whether we should hardcode library paths into libraries.
20841hardcode_into_libs=$hardcode_into_libs
20842
20843# Flag to hardcode \$libdir into a binary during linking.
20844# This must work even if \$libdir does not exist.
20845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20846
20847# If ld is used when linking, flag to hardcode \$libdir into
20848# a binary during linking. This must work even if \$libdir does
20849# not exist.
20850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20851
20852# Whether we need a single -rpath flag with a separated argument.
20853hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20854
20855# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20856# resulting binary.
20857hardcode_direct=$hardcode_direct_F77
20858
20859# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20860# resulting binary.
20861hardcode_minus_L=$hardcode_minus_L_F77
20862
20863# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20864# the resulting binary.
20865hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20866
20867# Set to yes if building a shared library automatically hardcodes DIR into the library
20868# and all subsequent libraries and executables linked against it.
20869hardcode_automatic=$hardcode_automatic_F77
20870
20871# Variables whose values should be saved in libtool wrapper scripts and
20872# restored at relink time.
20873variables_saved_for_relink="$variables_saved_for_relink"
20874
20875# Whether libtool must link a program against all its dependency libraries.
20876link_all_deplibs=$link_all_deplibs_F77
20877
20878# Compile-time system search path for libraries
20879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20880
20881# Run-time system search path for libraries
20882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20883
20884# Fix the shell variable \$srcfile for the compiler.
20885fix_srcfile_path="$fix_srcfile_path_F77"
20886
20887# Set to yes if exported symbols are required.
20888always_export_symbols=$always_export_symbols_F77
20889
20890# The commands to list exported symbols.
20891export_symbols_cmds=$lt_export_symbols_cmds_F77
20892
20893# The commands to extract the exported symbol list from a shared archive.
20894extract_expsyms_cmds=$lt_extract_expsyms_cmds
20895
20896# Symbols that should not be listed in the preloaded symbols.
20897exclude_expsyms=$lt_exclude_expsyms_F77
20898
20899# Symbols that must always be exported.
20900include_expsyms=$lt_include_expsyms_F77
20901
20902# ### END LIBTOOL TAG CONFIG: $tagname
20903
20904__EOF__
20905
20906
20907else
20908  # If there is no Makefile yet, we rely on a make rule to execute
20909  # `config.status --recheck' to rerun these tests and create the
20910  # libtool script then.
20911  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20912  if test -f "$ltmain_in"; then
20913    test -f Makefile && make "$ltmain"
20914  fi
20915fi
20916
20917
20918ac_ext=c
20919ac_cpp='$CPP $CPPFLAGS'
20920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923
20924CC="$lt_save_CC"
20925
20926	else
20927	  tagname=""
20928	fi
20929	;;
20930
20931      GCJ)
20932	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20933	  ac_ext=c
20934ac_cpp='$CPP $CPPFLAGS'
20935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938
20939
20940# Source file extension for Java test sources.
20941ac_ext=java
20942
20943# Object file extension for compiled Java test sources.
20944objext=o
20945objext_GCJ=$objext
20946
20947# Code to be used in simple compile tests
20948lt_simple_compile_test_code="class foo {}\n"
20949
20950# Code to be used in simple link tests
20951lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20952
20953# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20954
20955# If no C compiler was specified, use CC.
20956LTCC=${LTCC-"$CC"}
20957
20958# Allow CC to be a program name with arguments.
20959compiler=$CC
20960
20961
20962# Allow CC to be a program name with arguments.
20963lt_save_CC="$CC"
20964CC=${GCJ-"gcj"}
20965compiler=$CC
20966compiler_GCJ=$CC
20967
20968# GCJ did not exist at the time GCC didn't implicitly link libc in.
20969archive_cmds_need_lc_GCJ=no
20970
20971
20972lt_prog_compiler_no_builtin_flag_GCJ=
20973
20974if test "$GCC" = yes; then
20975  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20976
20977
20978echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20979echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20980if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20981  echo $ECHO_N "(cached) $ECHO_C" >&6
20982else
20983  lt_cv_prog_compiler_rtti_exceptions=no
20984  ac_outfile=conftest.$ac_objext
20985   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20986   lt_compiler_flag="-fno-rtti -fno-exceptions"
20987   # Insert the option either (1) after the last *FLAGS variable, or
20988   # (2) before a word containing "conftest.", or (3) at the end.
20989   # Note that $ac_compile itself does not contain backslashes and begins
20990   # with a dollar sign (not a hyphen), so the echo should work correctly.
20991   # The option is referenced via a variable to avoid confusing sed.
20992   lt_compile=`echo "$ac_compile" | $SED \
20993   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20994   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20995   -e 's:$: $lt_compiler_flag:'`
20996   (eval echo "\"\$as_me:20995: $lt_compile\"" >&5)
20997   (eval "$lt_compile" 2>conftest.err)
20998   ac_status=$?
20999   cat conftest.err >&5
21000   echo "$as_me:20999: \$? = $ac_status" >&5
21001   if (exit $ac_status) && test -s "$ac_outfile"; then
21002     # The compiler can only warn and ignore the option if not recognized
21003     # So say no if there are warnings
21004     if test ! -s conftest.err; then
21005       lt_cv_prog_compiler_rtti_exceptions=yes
21006     fi
21007   fi
21008   $rm conftest*
21009
21010fi
21011echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21012echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21013
21014if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21015    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21016else
21017    :
21018fi
21019
21020fi
21021
21022lt_prog_compiler_wl_GCJ=
21023lt_prog_compiler_pic_GCJ=
21024lt_prog_compiler_static_GCJ=
21025
21026echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21027echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21028
21029  if test "$GCC" = yes; then
21030    lt_prog_compiler_wl_GCJ='-Wl,'
21031    lt_prog_compiler_static_GCJ='-static'
21032
21033    case $host_os in
21034      aix*)
21035      # All AIX code is PIC.
21036      if test "$host_cpu" = ia64; then
21037	# AIX 5 now supports IA64 processor
21038	lt_prog_compiler_static_GCJ='-Bstatic'
21039      fi
21040      ;;
21041
21042    amigaos*)
21043      # FIXME: we need at least 68020 code to build shared libraries, but
21044      # adding the `-m68020' flag to GCC prevents building anything better,
21045      # like `-m68040'.
21046      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21047      ;;
21048
21049    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21050      # PIC is the default for these OSes.
21051      ;;
21052
21053    mingw* | pw32* | os2*)
21054      # This hack is so that the source file can tell whether it is being
21055      # built for inclusion in a dll (and should export symbols for example).
21056      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21057      ;;
21058
21059    darwin* | rhapsody*)
21060      # PIC is the default on this platform
21061      # Common symbols not allowed in MH_DYLIB files
21062      lt_prog_compiler_pic_GCJ='-fno-common'
21063      ;;
21064
21065    msdosdjgpp*)
21066      # Just because we use GCC doesn't mean we suddenly get shared libraries
21067      # on systems that don't support them.
21068      lt_prog_compiler_can_build_shared_GCJ=no
21069      enable_shared=no
21070      ;;
21071
21072    sysv4*MP*)
21073      if test -d /usr/nec; then
21074	lt_prog_compiler_pic_GCJ=-Kconform_pic
21075      fi
21076      ;;
21077
21078    hpux*)
21079      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21080      # not for PA HP-UX.
21081      case "$host_cpu" in
21082      hppa*64*|ia64*)
21083	# +Z the default
21084	;;
21085      *)
21086	lt_prog_compiler_pic_GCJ='-fPIC'
21087	;;
21088      esac
21089      ;;
21090
21091    *)
21092      lt_prog_compiler_pic_GCJ='-fPIC'
21093      ;;
21094    esac
21095  else
21096    # PORTME Check for flag to pass linker flags through the system compiler.
21097    case $host_os in
21098    aix*)
21099      lt_prog_compiler_wl_GCJ='-Wl,'
21100      if test "$host_cpu" = ia64; then
21101	# AIX 5 now supports IA64 processor
21102	lt_prog_compiler_static_GCJ='-Bstatic'
21103      else
21104	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21105      fi
21106      ;;
21107      darwin*)
21108        # PIC is the default on this platform
21109        # Common symbols not allowed in MH_DYLIB files
21110       case "$cc_basename" in
21111         xlc*)
21112         lt_prog_compiler_pic_GCJ='-qnocommon'
21113         lt_prog_compiler_wl_GCJ='-Wl,'
21114         ;;
21115       esac
21116       ;;
21117
21118    mingw* | pw32* | os2*)
21119      # This hack is so that the source file can tell whether it is being
21120      # built for inclusion in a dll (and should export symbols for example).
21121      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21122      ;;
21123
21124    hpux9* | hpux10* | hpux11*)
21125      lt_prog_compiler_wl_GCJ='-Wl,'
21126      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21127      # not for PA HP-UX.
21128      case "$host_cpu" in
21129      hppa*64*|ia64*)
21130	# +Z the default
21131	;;
21132      *)
21133	lt_prog_compiler_pic_GCJ='+Z'
21134	;;
21135      esac
21136      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21137      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21138      ;;
21139
21140    irix5* | irix6* | nonstopux*)
21141      lt_prog_compiler_wl_GCJ='-Wl,'
21142      # PIC (with -KPIC) is the default.
21143      lt_prog_compiler_static_GCJ='-non_shared'
21144      ;;
21145
21146    newsos6)
21147      lt_prog_compiler_pic_GCJ='-KPIC'
21148      lt_prog_compiler_static_GCJ='-Bstatic'
21149      ;;
21150
21151    linux*)
21152      case $CC in
21153      icc* | ecc*)
21154	lt_prog_compiler_wl_GCJ='-Wl,'
21155	lt_prog_compiler_pic_GCJ='-KPIC'
21156	lt_prog_compiler_static_GCJ='-static'
21157        ;;
21158      ccc*)
21159        lt_prog_compiler_wl_GCJ='-Wl,'
21160        # All Alpha code is PIC.
21161        lt_prog_compiler_static_GCJ='-non_shared'
21162        ;;
21163      esac
21164      ;;
21165
21166    osf3* | osf4* | osf5*)
21167      lt_prog_compiler_wl_GCJ='-Wl,'
21168      # All OSF/1 code is PIC.
21169      lt_prog_compiler_static_GCJ='-non_shared'
21170      ;;
21171
21172    sco3.2v5*)
21173      lt_prog_compiler_pic_GCJ='-Kpic'
21174      lt_prog_compiler_static_GCJ='-dn'
21175      ;;
21176
21177    solaris*)
21178      lt_prog_compiler_wl_GCJ='-Wl,'
21179      lt_prog_compiler_pic_GCJ='-KPIC'
21180      lt_prog_compiler_static_GCJ='-Bstatic'
21181      ;;
21182
21183    sunos4*)
21184      lt_prog_compiler_wl_GCJ='-Qoption ld '
21185      lt_prog_compiler_pic_GCJ='-PIC'
21186      lt_prog_compiler_static_GCJ='-Bstatic'
21187      ;;
21188
21189    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21190      lt_prog_compiler_wl_GCJ='-Wl,'
21191      lt_prog_compiler_pic_GCJ='-KPIC'
21192      lt_prog_compiler_static_GCJ='-Bstatic'
21193      ;;
21194
21195    sysv4*MP*)
21196      if test -d /usr/nec ;then
21197	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21198	lt_prog_compiler_static_GCJ='-Bstatic'
21199      fi
21200      ;;
21201
21202    uts4*)
21203      lt_prog_compiler_pic_GCJ='-pic'
21204      lt_prog_compiler_static_GCJ='-Bstatic'
21205      ;;
21206
21207    *)
21208      lt_prog_compiler_can_build_shared_GCJ=no
21209      ;;
21210    esac
21211  fi
21212
21213echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21214echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21215
21216#
21217# Check to make sure the PIC flag actually works.
21218#
21219if test -n "$lt_prog_compiler_pic_GCJ"; then
21220
21221echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21222echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21223if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21224  echo $ECHO_N "(cached) $ECHO_C" >&6
21225else
21226  lt_prog_compiler_pic_works_GCJ=no
21227  ac_outfile=conftest.$ac_objext
21228   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21229   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21230   # Insert the option either (1) after the last *FLAGS variable, or
21231   # (2) before a word containing "conftest.", or (3) at the end.
21232   # Note that $ac_compile itself does not contain backslashes and begins
21233   # with a dollar sign (not a hyphen), so the echo should work correctly.
21234   # The option is referenced via a variable to avoid confusing sed.
21235   lt_compile=`echo "$ac_compile" | $SED \
21236   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21238   -e 's:$: $lt_compiler_flag:'`
21239   (eval echo "\"\$as_me:21238: $lt_compile\"" >&5)
21240   (eval "$lt_compile" 2>conftest.err)
21241   ac_status=$?
21242   cat conftest.err >&5
21243   echo "$as_me:21242: \$? = $ac_status" >&5
21244   if (exit $ac_status) && test -s "$ac_outfile"; then
21245     # The compiler can only warn and ignore the option if not recognized
21246     # So say no if there are warnings
21247     if test ! -s conftest.err; then
21248       lt_prog_compiler_pic_works_GCJ=yes
21249     fi
21250   fi
21251   $rm conftest*
21252
21253fi
21254echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21255echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21256
21257if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21258    case $lt_prog_compiler_pic_GCJ in
21259     "" | " "*) ;;
21260     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21261     esac
21262else
21263    lt_prog_compiler_pic_GCJ=
21264     lt_prog_compiler_can_build_shared_GCJ=no
21265fi
21266
21267fi
21268case "$host_os" in
21269  # For platforms which do not support PIC, -DPIC is meaningless:
21270  *djgpp*)
21271    lt_prog_compiler_pic_GCJ=
21272    ;;
21273  *)
21274    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21275    ;;
21276esac
21277
21278echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21279echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21280if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21281  echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283  lt_cv_prog_compiler_c_o_GCJ=no
21284   $rm -r conftest 2>/dev/null
21285   mkdir conftest
21286   cd conftest
21287   mkdir out
21288   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21289
21290   lt_compiler_flag="-o out/conftest2.$ac_objext"
21291   # Insert the option either (1) after the last *FLAGS variable, or
21292   # (2) before a word containing "conftest.", or (3) at the end.
21293   # Note that $ac_compile itself does not contain backslashes and begins
21294   # with a dollar sign (not a hyphen), so the echo should work correctly.
21295   lt_compile=`echo "$ac_compile" | $SED \
21296   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21298   -e 's:$: $lt_compiler_flag:'`
21299   (eval echo "\"\$as_me:21298: $lt_compile\"" >&5)
21300   (eval "$lt_compile" 2>out/conftest.err)
21301   ac_status=$?
21302   cat out/conftest.err >&5
21303   echo "$as_me:21302: \$? = $ac_status" >&5
21304   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21305   then
21306     # The compiler can only warn and ignore the option if not recognized
21307     # So say no if there are warnings
21308     if test ! -s out/conftest.err; then
21309       lt_cv_prog_compiler_c_o_GCJ=yes
21310     fi
21311   fi
21312   chmod u+w .
21313   $rm conftest*
21314   # SGI C++ compiler will create directory out/ii_files/ for
21315   # template instantiation
21316   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21317   $rm out/* && rmdir out
21318   cd ..
21319   rmdir conftest
21320   $rm conftest*
21321
21322fi
21323echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21324echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21325
21326
21327hard_links="nottested"
21328if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21329  # do not overwrite the value of need_locks provided by the user
21330  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21331echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21332  hard_links=yes
21333  $rm conftest*
21334  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21335  touch conftest.a
21336  ln conftest.a conftest.b 2>&5 || hard_links=no
21337  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21338  echo "$as_me:$LINENO: result: $hard_links" >&5
21339echo "${ECHO_T}$hard_links" >&6
21340  if test "$hard_links" = no; then
21341    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21342echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21343    need_locks=warn
21344  fi
21345else
21346  need_locks=no
21347fi
21348
21349echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21350echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21351
21352  runpath_var=
21353  allow_undefined_flag_GCJ=
21354  enable_shared_with_static_runtimes_GCJ=no
21355  archive_cmds_GCJ=
21356  archive_expsym_cmds_GCJ=
21357  old_archive_From_new_cmds_GCJ=
21358  old_archive_from_expsyms_cmds_GCJ=
21359  export_dynamic_flag_spec_GCJ=
21360  whole_archive_flag_spec_GCJ=
21361  thread_safe_flag_spec_GCJ=
21362  hardcode_libdir_flag_spec_GCJ=
21363  hardcode_libdir_flag_spec_ld_GCJ=
21364  hardcode_libdir_separator_GCJ=
21365  hardcode_direct_GCJ=no
21366  hardcode_minus_L_GCJ=no
21367  hardcode_shlibpath_var_GCJ=unsupported
21368  link_all_deplibs_GCJ=unknown
21369  hardcode_automatic_GCJ=no
21370  module_cmds_GCJ=
21371  module_expsym_cmds_GCJ=
21372  always_export_symbols_GCJ=no
21373  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21374  # include_expsyms should be a list of space-separated symbols to be *always*
21375  # included in the symbol list
21376  include_expsyms_GCJ=
21377  # exclude_expsyms can be an extended regexp of symbols to exclude
21378  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21379  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21380  # as well as any symbol that contains `d'.
21381  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21382  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21383  # platforms (ab)use it in PIC code, but their linkers get confused if
21384  # the symbol is explicitly referenced.  Since portable code cannot
21385  # rely on this symbol name, it's probably fine to never include it in
21386  # preloaded symbol tables.
21387  extract_expsyms_cmds=
21388
21389  case $host_os in
21390  cygwin* | mingw* | pw32*)
21391    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21392    # When not using gcc, we currently assume that we are using
21393    # Microsoft Visual C++.
21394    if test "$GCC" != yes; then
21395      with_gnu_ld=no
21396    fi
21397    ;;
21398  openbsd*)
21399    with_gnu_ld=no
21400    ;;
21401  esac
21402
21403  ld_shlibs_GCJ=yes
21404  if test "$with_gnu_ld" = yes; then
21405    # If archive_cmds runs LD, not CC, wlarc should be empty
21406    wlarc='${wl}'
21407
21408    # See if GNU ld supports shared libraries.
21409    case $host_os in
21410    aix3* | aix4* | aix5*)
21411      # On AIX/PPC, the GNU linker is very broken
21412      if test "$host_cpu" != ia64; then
21413	ld_shlibs_GCJ=no
21414	cat <<EOF 1>&2
21415
21416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417*** to be unable to reliably create shared libraries on AIX.
21418*** Therefore, libtool is disabling shared libraries support.  If you
21419*** really care for shared libraries, you may want to modify your PATH
21420*** so that a non-GNU linker is found, and then restart.
21421
21422EOF
21423      fi
21424      ;;
21425
21426    amigaos*)
21427      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)'
21428      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21429      hardcode_minus_L_GCJ=yes
21430
21431      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432      # that the semantics of dynamic libraries on AmigaOS, at least up
21433      # to version 4, is to share data among multiple programs linked
21434      # with the same dynamic library.  Since this doesn't match the
21435      # behavior of shared libraries on other platforms, we can't use
21436      # them.
21437      ld_shlibs_GCJ=no
21438      ;;
21439
21440    beos*)
21441      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442	allow_undefined_flag_GCJ=unsupported
21443	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444	# support --undefined.  This deserves some investigation.  FIXME
21445	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446      else
21447	ld_shlibs_GCJ=no
21448      fi
21449      ;;
21450
21451    cygwin* | mingw* | pw32*)
21452      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21453      # as there is no search path for DLLs.
21454      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21455      allow_undefined_flag_GCJ=unsupported
21456      always_export_symbols_GCJ=no
21457      enable_shared_with_static_runtimes_GCJ=yes
21458      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21459
21460      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21461        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21462	# If the export-symbols file already is a .def file (1st line
21463	# is EXPORTS), use it as is; otherwise, prepend...
21464	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465	  cp $export_symbols $output_objdir/$soname.def;
21466	else
21467	  echo EXPORTS > $output_objdir/$soname.def;
21468	  cat $export_symbols >> $output_objdir/$soname.def;
21469	fi~
21470	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21471      else
21472	ld_shlibs=no
21473      fi
21474      ;;
21475
21476    netbsd*)
21477      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21479	wlarc=
21480      else
21481	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21483      fi
21484      ;;
21485
21486    solaris* | sysv5*)
21487      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21488	ld_shlibs_GCJ=no
21489	cat <<EOF 1>&2
21490
21491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492*** create shared libraries on Solaris systems.  Therefore, libtool
21493*** is disabling shared libraries support.  We urge you to upgrade GNU
21494*** binutils to release 2.9.1 or newer.  Another option is to modify
21495*** your PATH or compiler configuration so that the native linker is
21496*** used, and then restart.
21497
21498EOF
21499      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502      else
21503	ld_shlibs_GCJ=no
21504      fi
21505      ;;
21506
21507    sunos4*)
21508      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21509      wlarc=
21510      hardcode_direct_GCJ=yes
21511      hardcode_shlibpath_var_GCJ=no
21512      ;;
21513
21514  linux*)
21515    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21516        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21517	archive_cmds_GCJ="$tmp_archive_cmds"
21518      supports_anon_versioning=no
21519      case `$LD -v 2>/dev/null` in
21520        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21521        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21522        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21523        *\ 2.11.*) ;; # other 2.11 versions
21524        *) supports_anon_versioning=yes ;;
21525      esac
21526      if test $supports_anon_versioning = yes; then
21527        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21528cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21529$echo "local: *; };" >> $output_objdir/$libname.ver~
21530        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21531      else
21532        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21533      fi
21534    else
21535      ld_shlibs_GCJ=no
21536    fi
21537    ;;
21538
21539    *)
21540      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21542	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21543      else
21544	ld_shlibs_GCJ=no
21545      fi
21546      ;;
21547    esac
21548
21549    if test "$ld_shlibs_GCJ" = yes; then
21550      runpath_var=LD_RUN_PATH
21551      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21552      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21553      # ancient GNU ld didn't support --whole-archive et. al.
21554      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21555 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21556      else
21557  	whole_archive_flag_spec_GCJ=
21558      fi
21559    fi
21560  else
21561    # PORTME fill in a description of your system's linker (not GNU ld)
21562    case $host_os in
21563    aix3*)
21564      allow_undefined_flag_GCJ=unsupported
21565      always_export_symbols_GCJ=yes
21566      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'
21567      # Note: this linker hardcodes the directories in LIBPATH if there
21568      # are no directories specified by -L.
21569      hardcode_minus_L_GCJ=yes
21570      if test "$GCC" = yes && test -z "$link_static_flag"; then
21571	# Neither direct hardcoding nor static linking is supported with a
21572	# broken collect2.
21573	hardcode_direct_GCJ=unsupported
21574      fi
21575      ;;
21576
21577    aix4* | aix5*)
21578      if test "$host_cpu" = ia64; then
21579	# On IA64, the linker does run time linking by default, so we don't
21580	# have to do anything special.
21581	aix_use_runtimelinking=no
21582	exp_sym_flag='-Bexport'
21583	no_entry_flag=""
21584      else
21585	# If we're using GNU nm, then we don't want the "-C" option.
21586	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21587	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21588	  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'
21589	else
21590	  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'
21591	fi
21592	aix_use_runtimelinking=no
21593
21594	# Test if we are trying to use run time linking or normal
21595	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21596	# need to do runtime linking.
21597	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21598	  for ld_flag in $LDFLAGS; do
21599  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21600  	    aix_use_runtimelinking=yes
21601  	    break
21602  	  fi
21603	  done
21604	esac
21605
21606	exp_sym_flag='-bexport'
21607	no_entry_flag='-bnoentry'
21608      fi
21609
21610      # When large executables or shared objects are built, AIX ld can
21611      # have problems creating the table of contents.  If linking a library
21612      # or program results in "error TOC overflow" add -mminimal-toc to
21613      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21614      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21615
21616      archive_cmds_GCJ=''
21617      hardcode_direct_GCJ=yes
21618      hardcode_libdir_separator_GCJ=':'
21619      link_all_deplibs_GCJ=yes
21620
21621      if test "$GCC" = yes; then
21622	case $host_os in aix4.012|aix4.012.*)
21623	# We only want to do this on AIX 4.2 and lower, the check
21624	# below for broken collect2 doesn't work under 4.3+
21625	  collect2name=`${CC} -print-prog-name=collect2`
21626	  if test -f "$collect2name" && \
21627  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21628	  then
21629  	  # We have reworked collect2
21630  	  hardcode_direct_GCJ=yes
21631	  else
21632  	  # We have old collect2
21633  	  hardcode_direct_GCJ=unsupported
21634  	  # It fails to find uninstalled libraries when the uninstalled
21635  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21636  	  # to unsupported forces relinking
21637  	  hardcode_minus_L_GCJ=yes
21638  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21639  	  hardcode_libdir_separator_GCJ=
21640	  fi
21641	esac
21642	shared_flag='-shared'
21643      else
21644	# not using gcc
21645	if test "$host_cpu" = ia64; then
21646  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21647  	# chokes on -Wl,-G. The following line is correct:
21648	  shared_flag='-G'
21649	else
21650  	if test "$aix_use_runtimelinking" = yes; then
21651	    shared_flag='${wl}-G'
21652	  else
21653	    shared_flag='${wl}-bM:SRE'
21654  	fi
21655	fi
21656      fi
21657
21658      # It seems that -bexpall does not export symbols beginning with
21659      # underscore (_), so it is better to generate a list of symbols to export.
21660      always_export_symbols_GCJ=yes
21661      if test "$aix_use_runtimelinking" = yes; then
21662	# Warning - without using the other runtime loading flags (-brtl),
21663	# -berok will link without error, but may produce a broken library.
21664	allow_undefined_flag_GCJ='-berok'
21665       # Determine the default libpath from the value encoded in an empty executable.
21666       cat >conftest.$ac_ext <<_ACEOF
21667/* confdefs.h.  */
21668_ACEOF
21669cat confdefs.h >>conftest.$ac_ext
21670cat >>conftest.$ac_ext <<_ACEOF
21671/* end confdefs.h.  */
21672
21673int
21674main ()
21675{
21676
21677  ;
21678  return 0;
21679}
21680_ACEOF
21681rm -f conftest.$ac_objext conftest$ac_exeext
21682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683  (eval $ac_link) 2>conftest.er1
21684  ac_status=$?
21685  grep -v '^ *+' conftest.er1 >conftest.err
21686  rm -f conftest.er1
21687  cat conftest.err >&5
21688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689  (exit $ac_status); } &&
21690	 { ac_try='test -z "$ac_c_werror_flag"
21691			 || test ! -s conftest.err'
21692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693  (eval $ac_try) 2>&5
21694  ac_status=$?
21695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696  (exit $ac_status); }; } &&
21697	 { ac_try='test -s conftest$ac_exeext'
21698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699  (eval $ac_try) 2>&5
21700  ac_status=$?
21701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702  (exit $ac_status); }; }; then
21703
21704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21705}'`
21706# Check for a 64-bit object if we didn't find anything.
21707if 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; }
21708}'`; fi
21709else
21710  echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713fi
21714rm -f conftest.err conftest.$ac_objext \
21715      conftest$ac_exeext conftest.$ac_ext
21716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21717
21718       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21719	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"
21720       else
21721	if test "$host_cpu" = ia64; then
21722	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21723	  allow_undefined_flag_GCJ="-z nodefs"
21724	  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"
21725	else
21726	 # Determine the default libpath from the value encoded in an empty executable.
21727	 cat >conftest.$ac_ext <<_ACEOF
21728/* confdefs.h.  */
21729_ACEOF
21730cat confdefs.h >>conftest.$ac_ext
21731cat >>conftest.$ac_ext <<_ACEOF
21732/* end confdefs.h.  */
21733
21734int
21735main ()
21736{
21737
21738  ;
21739  return 0;
21740}
21741_ACEOF
21742rm -f conftest.$ac_objext conftest$ac_exeext
21743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21744  (eval $ac_link) 2>conftest.er1
21745  ac_status=$?
21746  grep -v '^ *+' conftest.er1 >conftest.err
21747  rm -f conftest.er1
21748  cat conftest.err >&5
21749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750  (exit $ac_status); } &&
21751	 { ac_try='test -z "$ac_c_werror_flag"
21752			 || test ! -s conftest.err'
21753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754  (eval $ac_try) 2>&5
21755  ac_status=$?
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); }; } &&
21758	 { ac_try='test -s conftest$ac_exeext'
21759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760  (eval $ac_try) 2>&5
21761  ac_status=$?
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); }; }; then
21764
21765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21766}'`
21767# Check for a 64-bit object if we didn't find anything.
21768if 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; }
21769}'`; fi
21770else
21771  echo "$as_me: failed program was:" >&5
21772sed 's/^/| /' conftest.$ac_ext >&5
21773
21774fi
21775rm -f conftest.err conftest.$ac_objext \
21776      conftest$ac_exeext conftest.$ac_ext
21777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21778
21779	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21780	  # Warning - without using the other run time loading flags,
21781	  # -berok will link without error, but may produce a broken library.
21782	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21783	  allow_undefined_flag_GCJ=' ${wl}-berok'
21784	  # -bexpall does not export symbols beginning with underscore (_)
21785	  always_export_symbols_GCJ=yes
21786	  # Exported symbols can be pulled into shared objects from archives
21787	  whole_archive_flag_spec_GCJ=' '
21788	  archive_cmds_need_lc_GCJ=yes
21789	  # This is similar to how AIX traditionally builds it's shared libraries.
21790	  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'
21791	fi
21792      fi
21793      ;;
21794
21795    amigaos*)
21796      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)'
21797      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21798      hardcode_minus_L_GCJ=yes
21799      # see comment about different semantics on the GNU ld section
21800      ld_shlibs_GCJ=no
21801      ;;
21802
21803    bsdi[45]*)
21804      export_dynamic_flag_spec_GCJ=-rdynamic
21805      ;;
21806
21807    cygwin* | mingw* | pw32*)
21808      # When not using gcc, we currently assume that we are using
21809      # Microsoft Visual C++.
21810      # hardcode_libdir_flag_spec is actually meaningless, as there is
21811      # no search path for DLLs.
21812      hardcode_libdir_flag_spec_GCJ=' '
21813      allow_undefined_flag_GCJ=unsupported
21814      # Tell ltmain to make .lib files, not .a files.
21815      libext=lib
21816      # Tell ltmain to make .dll files, not .so files.
21817      shrext_cmds=".dll"
21818      # FIXME: Setting linknames here is a bad hack.
21819      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21820      # The linker will automatically build a .lib file if we build a DLL.
21821      old_archive_From_new_cmds_GCJ='true'
21822      # FIXME: Should let the user specify the lib program.
21823      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21824      fix_srcfile_path='`cygpath -w "$srcfile"`'
21825      enable_shared_with_static_runtimes_GCJ=yes
21826      ;;
21827
21828    darwin* | rhapsody*)
21829      case "$host_os" in
21830        rhapsody* | darwin1.[012])
21831         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21832         ;;
21833       *) # Darwin 1.3 on
21834         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21835           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21836         else
21837           case ${MACOSX_DEPLOYMENT_TARGET} in
21838             10.[012])
21839               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21840               ;;
21841             10.*)
21842               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21843               ;;
21844           esac
21845         fi
21846         ;;
21847      esac
21848      archive_cmds_need_lc_GCJ=no
21849      hardcode_direct_GCJ=no
21850      hardcode_automatic_GCJ=yes
21851      hardcode_shlibpath_var_GCJ=unsupported
21852      whole_archive_flag_spec_GCJ=''
21853      link_all_deplibs_GCJ=yes
21854    if test "$GCC" = yes ; then
21855    	output_verbose_link_cmd='echo'
21856        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21857      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21858      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21859      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}'
21860      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}'
21861    else
21862      case "$cc_basename" in
21863        xlc*)
21864         output_verbose_link_cmd='echo'
21865         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21866         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21868         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}'
21869          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}'
21870          ;;
21871       *)
21872         ld_shlibs_GCJ=no
21873          ;;
21874      esac
21875    fi
21876      ;;
21877
21878    dgux*)
21879      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21880      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21881      hardcode_shlibpath_var_GCJ=no
21882      ;;
21883
21884    freebsd1*)
21885      ld_shlibs_GCJ=no
21886      ;;
21887
21888    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21889    # support.  Future versions do this automatically, but an explicit c++rt0.o
21890    # does not break anything, and helps significantly (at the cost of a little
21891    # extra space).
21892    freebsd2.2*)
21893      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21894      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21895      hardcode_direct_GCJ=yes
21896      hardcode_shlibpath_var_GCJ=no
21897      ;;
21898
21899    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21900    freebsd2*)
21901      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21902      hardcode_direct_GCJ=yes
21903      hardcode_minus_L_GCJ=yes
21904      hardcode_shlibpath_var_GCJ=no
21905      ;;
21906
21907    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21908    freebsd* | kfreebsd*-gnu)
21909      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21910      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911      hardcode_direct_GCJ=yes
21912      hardcode_shlibpath_var_GCJ=no
21913      ;;
21914
21915    hpux9*)
21916      if test "$GCC" = yes; then
21917	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'
21918      else
21919	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'
21920      fi
21921      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21922      hardcode_libdir_separator_GCJ=:
21923      hardcode_direct_GCJ=yes
21924
21925      # hardcode_minus_L: Not really in the search PATH,
21926      # but as the default location of the library.
21927      hardcode_minus_L_GCJ=yes
21928      export_dynamic_flag_spec_GCJ='${wl}-E'
21929      ;;
21930
21931    hpux10* | hpux11*)
21932      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21933	case "$host_cpu" in
21934	hppa*64*|ia64*)
21935	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21936	  ;;
21937	*)
21938	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21939	  ;;
21940	esac
21941      else
21942	case "$host_cpu" in
21943	hppa*64*|ia64*)
21944	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21945	  ;;
21946	*)
21947	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21948	  ;;
21949	esac
21950      fi
21951      if test "$with_gnu_ld" = no; then
21952	case "$host_cpu" in
21953	hppa*64*)
21954	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21955	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21956	  hardcode_libdir_separator_GCJ=:
21957	  hardcode_direct_GCJ=no
21958	  hardcode_shlibpath_var_GCJ=no
21959	  ;;
21960	ia64*)
21961	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21962	  hardcode_direct_GCJ=no
21963	  hardcode_shlibpath_var_GCJ=no
21964
21965	  # hardcode_minus_L: Not really in the search PATH,
21966	  # but as the default location of the library.
21967	  hardcode_minus_L_GCJ=yes
21968	  ;;
21969	*)
21970	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21971	  hardcode_libdir_separator_GCJ=:
21972	  hardcode_direct_GCJ=yes
21973	  export_dynamic_flag_spec_GCJ='${wl}-E'
21974
21975	  # hardcode_minus_L: Not really in the search PATH,
21976	  # but as the default location of the library.
21977	  hardcode_minus_L_GCJ=yes
21978	  ;;
21979	esac
21980      fi
21981      ;;
21982
21983    irix5* | irix6* | nonstopux*)
21984      if test "$GCC" = yes; then
21985	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'
21986      else
21987	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'
21988	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21989      fi
21990      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21991      hardcode_libdir_separator_GCJ=:
21992      link_all_deplibs_GCJ=yes
21993      ;;
21994
21995    netbsd*)
21996      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21997	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21998      else
21999	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22000      fi
22001      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22002      hardcode_direct_GCJ=yes
22003      hardcode_shlibpath_var_GCJ=no
22004      ;;
22005
22006    newsos6)
22007      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22008      hardcode_direct_GCJ=yes
22009      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22010      hardcode_libdir_separator_GCJ=:
22011      hardcode_shlibpath_var_GCJ=no
22012      ;;
22013
22014    openbsd*)
22015      hardcode_direct_GCJ=yes
22016      hardcode_shlibpath_var_GCJ=no
22017      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22018	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22019	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22020	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22021	export_dynamic_flag_spec_GCJ='${wl}-E'
22022      else
22023       case $host_os in
22024	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22025	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22026	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22027	   ;;
22028	 *)
22029	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22030	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22031	   ;;
22032       esac
22033      fi
22034      ;;
22035
22036    os2*)
22037      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22038      hardcode_minus_L_GCJ=yes
22039      allow_undefined_flag_GCJ=unsupported
22040      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'
22041      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22042      ;;
22043
22044    osf3*)
22045      if test "$GCC" = yes; then
22046	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22047	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'
22048      else
22049	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22050	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'
22051      fi
22052      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22053      hardcode_libdir_separator_GCJ=:
22054      ;;
22055
22056    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22057      if test "$GCC" = yes; then
22058	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22059	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'
22060	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22061      else
22062	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22063	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'
22064	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~
22065	$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'
22066
22067	# Both c and cxx compiler support -rpath directly
22068	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22069      fi
22070      hardcode_libdir_separator_GCJ=:
22071      ;;
22072
22073    sco3.2v5*)
22074      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22075      hardcode_shlibpath_var_GCJ=no
22076      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22077      runpath_var=LD_RUN_PATH
22078      hardcode_runpath_var=yes
22079      ;;
22080
22081    solaris*)
22082      no_undefined_flag_GCJ=' -z text'
22083      if test "$GCC" = yes; then
22084	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22085	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22086	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22087      else
22088	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22089	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22090  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22091      fi
22092      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22093      hardcode_shlibpath_var_GCJ=no
22094      case $host_os in
22095      solaris2.[0-5] | solaris2.[0-5].*) ;;
22096      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22097	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22098      esac
22099      link_all_deplibs_GCJ=yes
22100      ;;
22101
22102    sunos4*)
22103      if test "x$host_vendor" = xsequent; then
22104	# Use $CC to link under sequent, because it throws in some extra .o
22105	# files that make .init and .fini sections work.
22106	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22107      else
22108	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22109      fi
22110      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22111      hardcode_direct_GCJ=yes
22112      hardcode_minus_L_GCJ=yes
22113      hardcode_shlibpath_var_GCJ=no
22114      ;;
22115
22116    sysv4)
22117      case $host_vendor in
22118	sni)
22119	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22120	  hardcode_direct_GCJ=yes # is this really true???
22121	;;
22122	siemens)
22123	  ## LD is ld it makes a PLAMLIB
22124	  ## CC just makes a GrossModule.
22125	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22126	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22127	  hardcode_direct_GCJ=no
22128        ;;
22129	motorola)
22130	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22132	;;
22133      esac
22134      runpath_var='LD_RUN_PATH'
22135      hardcode_shlibpath_var_GCJ=no
22136      ;;
22137
22138    sysv4.3*)
22139      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140      hardcode_shlibpath_var_GCJ=no
22141      export_dynamic_flag_spec_GCJ='-Bexport'
22142      ;;
22143
22144    sysv4*MP*)
22145      if test -d /usr/nec; then
22146	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147	hardcode_shlibpath_var_GCJ=no
22148	runpath_var=LD_RUN_PATH
22149	hardcode_runpath_var=yes
22150	ld_shlibs_GCJ=yes
22151      fi
22152      ;;
22153
22154    sysv4.2uw2*)
22155      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22156      hardcode_direct_GCJ=yes
22157      hardcode_minus_L_GCJ=no
22158      hardcode_shlibpath_var_GCJ=no
22159      hardcode_runpath_var=yes
22160      runpath_var=LD_RUN_PATH
22161      ;;
22162
22163   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22164      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22165      if test "$GCC" = yes; then
22166	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22167      else
22168	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22169      fi
22170      runpath_var='LD_RUN_PATH'
22171      hardcode_shlibpath_var_GCJ=no
22172      ;;
22173
22174    sysv5*)
22175      no_undefined_flag_GCJ=' -z text'
22176      # $CC -shared without GNU ld will not create a library from C++
22177      # object files and a static libstdc++, better avoid it by now
22178      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22179      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22180  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22181      hardcode_libdir_flag_spec_GCJ=
22182      hardcode_shlibpath_var_GCJ=no
22183      runpath_var='LD_RUN_PATH'
22184      ;;
22185
22186    uts4*)
22187      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189      hardcode_shlibpath_var_GCJ=no
22190      ;;
22191
22192    *)
22193      ld_shlibs_GCJ=no
22194      ;;
22195    esac
22196  fi
22197
22198echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22199echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22200test "$ld_shlibs_GCJ" = no && can_build_shared=no
22201
22202variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22203if test "$GCC" = yes; then
22204  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22205fi
22206
22207#
22208# Do we need to explicitly link libc?
22209#
22210case "x$archive_cmds_need_lc_GCJ" in
22211x|xyes)
22212  # Assume -lc should be added
22213  archive_cmds_need_lc_GCJ=yes
22214
22215  if test "$enable_shared" = yes && test "$GCC" = yes; then
22216    case $archive_cmds_GCJ in
22217    *'~'*)
22218      # FIXME: we may have to deal with multi-command sequences.
22219      ;;
22220    '$CC '*)
22221      # Test whether the compiler implicitly links with -lc since on some
22222      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22223      # to ld, don't add -lc before -lgcc.
22224      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22225echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22226      $rm conftest*
22227      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22228
22229      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22230  (eval $ac_compile) 2>&5
22231  ac_status=$?
22232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233  (exit $ac_status); } 2>conftest.err; then
22234        soname=conftest
22235        lib=conftest
22236        libobjs=conftest.$ac_objext
22237        deplibs=
22238        wl=$lt_prog_compiler_wl_GCJ
22239        compiler_flags=-v
22240        linker_flags=-v
22241        verstring=
22242        output_objdir=.
22243        libname=conftest
22244        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22245        allow_undefined_flag_GCJ=
22246        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22247  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22248  ac_status=$?
22249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250  (exit $ac_status); }
22251        then
22252	  archive_cmds_need_lc_GCJ=no
22253        else
22254	  archive_cmds_need_lc_GCJ=yes
22255        fi
22256        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22257      else
22258        cat conftest.err 1>&5
22259      fi
22260      $rm conftest*
22261      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22262echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22263      ;;
22264    esac
22265  fi
22266  ;;
22267esac
22268
22269echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22271library_names_spec=
22272libname_spec='lib$name'
22273soname_spec=
22274shrext_cmds=".so"
22275postinstall_cmds=
22276postuninstall_cmds=
22277finish_cmds=
22278finish_eval=
22279shlibpath_var=
22280shlibpath_overrides_runpath=unknown
22281version_type=none
22282dynamic_linker="$host_os ld.so"
22283sys_lib_dlsearch_path_spec="/lib /usr/lib"
22284if test "$GCC" = yes; then
22285  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22286  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22287    # if the path contains ";" then we assume it to be the separator
22288    # otherwise default to the standard path separator (i.e. ":") - it is
22289    # assumed that no part of a normal pathname contains ";" but that should
22290    # okay in the real world where ";" in dirpaths is itself problematic.
22291    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22292  else
22293    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22294  fi
22295else
22296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22297fi
22298need_lib_prefix=unknown
22299hardcode_into_libs=no
22300
22301# when you set need_version to no, make sure it does not cause -set_version
22302# flags to be left without arguments
22303need_version=unknown
22304
22305case $host_os in
22306aix3*)
22307  version_type=linux
22308  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22309  shlibpath_var=LIBPATH
22310
22311  # AIX 3 has no versioning support, so we append a major version to the name.
22312  soname_spec='${libname}${release}${shared_ext}$major'
22313  ;;
22314
22315aix4* | aix5*)
22316  version_type=linux
22317  need_lib_prefix=no
22318  need_version=no
22319  hardcode_into_libs=yes
22320  if test "$host_cpu" = ia64; then
22321    # AIX 5 supports IA64
22322    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22323    shlibpath_var=LD_LIBRARY_PATH
22324  else
22325    # With GCC up to 2.95.x, collect2 would create an import file
22326    # for dependence libraries.  The import file would start with
22327    # the line `#! .'.  This would cause the generated library to
22328    # depend on `.', always an invalid library.  This was fixed in
22329    # development snapshots of GCC prior to 3.0.
22330    case $host_os in
22331      aix4 | aix4.[01] | aix4.[01].*)
22332      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22333	   echo ' yes '
22334	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22335	:
22336      else
22337	can_build_shared=no
22338      fi
22339      ;;
22340    esac
22341    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22342    # soname into executable. Probably we can add versioning support to
22343    # collect2, so additional links can be useful in future.
22344    if test "$aix_use_runtimelinking" = yes; then
22345      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22346      # instead of lib<name>.a to let people know that these are not
22347      # typical AIX shared libraries.
22348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22349    else
22350      # We preserve .a as extension for shared libraries through AIX4.2
22351      # and later when we are not doing run time linking.
22352      library_names_spec='${libname}${release}.a $libname.a'
22353      soname_spec='${libname}${release}${shared_ext}$major'
22354    fi
22355    shlibpath_var=LIBPATH
22356  fi
22357  ;;
22358
22359amigaos*)
22360  library_names_spec='$libname.ixlibrary $libname.a'
22361  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22362  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'
22363  ;;
22364
22365beos*)
22366  library_names_spec='${libname}${shared_ext}'
22367  dynamic_linker="$host_os ld.so"
22368  shlibpath_var=LIBRARY_PATH
22369  ;;
22370
22371bsdi[45]*)
22372  version_type=linux
22373  need_version=no
22374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22375  soname_spec='${libname}${release}${shared_ext}$major'
22376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22377  shlibpath_var=LD_LIBRARY_PATH
22378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22380  # the default ld.so.conf also contains /usr/contrib/lib and
22381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22382  # libtool to hard-code these into programs
22383  ;;
22384
22385cygwin* | mingw* | pw32*)
22386  version_type=windows
22387  shrext_cmds=".dll"
22388  need_version=no
22389  need_lib_prefix=no
22390
22391  case $GCC,$host_os in
22392  yes,cygwin* | yes,mingw* | yes,pw32*)
22393    library_names_spec='$libname.dll.a'
22394    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22395    postinstall_cmds='base_file=`basename \${file}`~
22396      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22397      dldir=$destdir/`dirname \$dlpath`~
22398      test -d \$dldir || mkdir -p \$dldir~
22399      $install_prog $dir/$dlname \$dldir/$dlname'
22400    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22401      dlpath=$dir/\$dldll~
22402       $rm \$dlpath'
22403    shlibpath_overrides_runpath=yes
22404
22405    case $host_os in
22406    cygwin*)
22407      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22408      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22409      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22410      ;;
22411    mingw*)
22412      # MinGW DLLs use traditional 'lib' prefix
22413      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22414      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22415      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22416        # It is most probably a Windows format PATH printed by
22417        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22418        # path with ; separators, and with drive letters. We can handle the
22419        # drive letters (cygwin fileutils understands them), so leave them,
22420        # especially as we might pass files found there to a mingw objdump,
22421        # which wouldn't understand a cygwinified path. Ahh.
22422        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22423      else
22424        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22425      fi
22426      ;;
22427    pw32*)
22428      # pw32 DLLs use 'pw' prefix rather than 'lib'
22429      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22430      ;;
22431    esac
22432    ;;
22433
22434  *)
22435    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22436    ;;
22437  esac
22438  dynamic_linker='Win32 ld.exe'
22439  # FIXME: first we should search . and the directory the executable is in
22440  shlibpath_var=PATH
22441  ;;
22442
22443darwin* | rhapsody*)
22444  dynamic_linker="$host_os dyld"
22445  version_type=darwin
22446  need_lib_prefix=no
22447  need_version=no
22448  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22449  soname_spec='${libname}${release}${major}$shared_ext'
22450  shlibpath_overrides_runpath=yes
22451  shlibpath_var=DYLD_LIBRARY_PATH
22452  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22453  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22454  if test "$GCC" = yes; then
22455    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"`
22456  else
22457    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22458  fi
22459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22460  ;;
22461
22462dgux*)
22463  version_type=linux
22464  need_lib_prefix=no
22465  need_version=no
22466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22467  soname_spec='${libname}${release}${shared_ext}$major'
22468  shlibpath_var=LD_LIBRARY_PATH
22469  ;;
22470
22471freebsd1*)
22472  dynamic_linker=no
22473  ;;
22474
22475kfreebsd*-gnu)
22476  version_type=linux
22477  need_lib_prefix=no
22478  need_version=no
22479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22480  soname_spec='${libname}${release}${shared_ext}$major'
22481  shlibpath_var=LD_LIBRARY_PATH
22482  shlibpath_overrides_runpath=no
22483  hardcode_into_libs=yes
22484  dynamic_linker='GNU ld.so'
22485  ;;
22486
22487freebsd*)
22488  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22489  version_type=freebsd-$objformat
22490  case $version_type in
22491    freebsd-elf*)
22492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22493      need_version=no
22494      need_lib_prefix=no
22495      ;;
22496    freebsd-*)
22497      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22498      need_version=yes
22499      ;;
22500  esac
22501  shlibpath_var=LD_LIBRARY_PATH
22502  case $host_os in
22503  freebsd2*)
22504    shlibpath_overrides_runpath=yes
22505    ;;
22506  freebsd3.01* | freebsdelf3.01*)
22507    shlibpath_overrides_runpath=yes
22508    hardcode_into_libs=yes
22509    ;;
22510  *) # from 3.2 on
22511    shlibpath_overrides_runpath=no
22512    hardcode_into_libs=yes
22513    ;;
22514  esac
22515  ;;
22516
22517gnu*)
22518  version_type=linux
22519  need_lib_prefix=no
22520  need_version=no
22521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22522  soname_spec='${libname}${release}${shared_ext}$major'
22523  shlibpath_var=LD_LIBRARY_PATH
22524  hardcode_into_libs=yes
22525  ;;
22526
22527hpux9* | hpux10* | hpux11*)
22528  # Give a soname corresponding to the major version so that dld.sl refuses to
22529  # link against other versions.
22530  version_type=sunos
22531  need_lib_prefix=no
22532  need_version=no
22533  case "$host_cpu" in
22534  ia64*)
22535    shrext_cmds='.so'
22536    hardcode_into_libs=yes
22537    dynamic_linker="$host_os dld.so"
22538    shlibpath_var=LD_LIBRARY_PATH
22539    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22541    soname_spec='${libname}${release}${shared_ext}$major'
22542    if test "X$HPUX_IA64_MODE" = X32; then
22543      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22544    else
22545      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22546    fi
22547    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22548    ;;
22549   hppa*64*)
22550     shrext_cmds='.sl'
22551     hardcode_into_libs=yes
22552     dynamic_linker="$host_os dld.sl"
22553     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22556     soname_spec='${libname}${release}${shared_ext}$major'
22557     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22559     ;;
22560   *)
22561    shrext_cmds='.sl'
22562    dynamic_linker="$host_os dld.sl"
22563    shlibpath_var=SHLIB_PATH
22564    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22565    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22566    soname_spec='${libname}${release}${shared_ext}$major'
22567    ;;
22568  esac
22569  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22570  postinstall_cmds='chmod 555 $lib'
22571  ;;
22572
22573irix5* | irix6* | nonstopux*)
22574  case $host_os in
22575    nonstopux*) version_type=nonstopux ;;
22576    *)
22577	if test "$lt_cv_prog_gnu_ld" = yes; then
22578		version_type=linux
22579	else
22580		version_type=irix
22581	fi ;;
22582  esac
22583  need_lib_prefix=no
22584  need_version=no
22585  soname_spec='${libname}${release}${shared_ext}$major'
22586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22587  case $host_os in
22588  irix5* | nonstopux*)
22589    libsuff= shlibsuff=
22590    ;;
22591  *)
22592    case $LD in # libtool.m4 will add one of these switches to LD
22593    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22594      libsuff= shlibsuff= libmagic=32-bit;;
22595    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22596      libsuff=32 shlibsuff=N32 libmagic=N32;;
22597    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22598      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22599    *) libsuff= shlibsuff= libmagic=never-match;;
22600    esac
22601    ;;
22602  esac
22603  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22604  shlibpath_overrides_runpath=no
22605  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22606  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22607  hardcode_into_libs=yes
22608  ;;
22609
22610# No shared lib support for Linux oldld, aout, or coff.
22611linux*oldld* | linux*aout* | linux*coff*)
22612  dynamic_linker=no
22613  ;;
22614
22615# This must be Linux ELF.
22616linux*)
22617  version_type=linux
22618  need_lib_prefix=no
22619  need_version=no
22620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621  soname_spec='${libname}${release}${shared_ext}$major'
22622  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22623  shlibpath_var=LD_LIBRARY_PATH
22624  shlibpath_overrides_runpath=no
22625  # This implies no fast_install, which is unacceptable.
22626  # Some rework will be needed to allow for fast_install
22627  # before this can be enabled.
22628  hardcode_into_libs=yes
22629
22630  # Append ld.so.conf contents to the search path
22631  if test -f /etc/ld.so.conf; then
22632    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22633    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22634  fi
22635
22636  # We used to test for /lib/ld.so.1 and disable shared libraries on
22637  # powerpc, because MkLinux only supported shared libraries with the
22638  # GNU dynamic linker.  Since this was broken with cross compilers,
22639  # most powerpc-linux boxes support dynamic linking these days and
22640  # people can always --disable-shared, the test was removed, and we
22641  # assume the GNU/Linux dynamic linker is in use.
22642  dynamic_linker='GNU/Linux ld.so'
22643  ;;
22644
22645knetbsd*-gnu)
22646  version_type=linux
22647  need_lib_prefix=no
22648  need_version=no
22649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22650  soname_spec='${libname}${release}${shared_ext}$major'
22651  shlibpath_var=LD_LIBRARY_PATH
22652  shlibpath_overrides_runpath=no
22653  hardcode_into_libs=yes
22654  dynamic_linker='GNU ld.so'
22655  ;;
22656
22657netbsd*)
22658  version_type=sunos
22659  need_lib_prefix=no
22660  need_version=no
22661  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22662    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22663    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22664    dynamic_linker='NetBSD (a.out) ld.so'
22665  else
22666    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22667    soname_spec='${libname}${release}${shared_ext}$major'
22668    dynamic_linker='NetBSD ld.elf_so'
22669  fi
22670  shlibpath_var=LD_LIBRARY_PATH
22671  shlibpath_overrides_runpath=yes
22672  hardcode_into_libs=yes
22673  ;;
22674
22675newsos6)
22676  version_type=linux
22677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678  shlibpath_var=LD_LIBRARY_PATH
22679  shlibpath_overrides_runpath=yes
22680  ;;
22681
22682nto-qnx*)
22683  version_type=linux
22684  need_lib_prefix=no
22685  need_version=no
22686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687  soname_spec='${libname}${release}${shared_ext}$major'
22688  shlibpath_var=LD_LIBRARY_PATH
22689  shlibpath_overrides_runpath=yes
22690  ;;
22691
22692openbsd*)
22693  version_type=sunos
22694  need_lib_prefix=no
22695  need_version=no
22696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22697  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22698  shlibpath_var=LD_LIBRARY_PATH
22699  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22700    case $host_os in
22701      openbsd2.[89] | openbsd2.[89].*)
22702	shlibpath_overrides_runpath=no
22703	;;
22704      *)
22705	shlibpath_overrides_runpath=yes
22706	;;
22707      esac
22708  else
22709    shlibpath_overrides_runpath=yes
22710  fi
22711  ;;
22712
22713os2*)
22714  libname_spec='$name'
22715  shrext_cmds=".dll"
22716  need_lib_prefix=no
22717  library_names_spec='$libname${shared_ext} $libname.a'
22718  dynamic_linker='OS/2 ld.exe'
22719  shlibpath_var=LIBPATH
22720  ;;
22721
22722osf3* | osf4* | osf5*)
22723  version_type=osf
22724  need_lib_prefix=no
22725  need_version=no
22726  soname_spec='${libname}${release}${shared_ext}$major'
22727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728  shlibpath_var=LD_LIBRARY_PATH
22729  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22730  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22731  ;;
22732
22733sco3.2v5*)
22734  version_type=osf
22735  soname_spec='${libname}${release}${shared_ext}$major'
22736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737  shlibpath_var=LD_LIBRARY_PATH
22738  ;;
22739
22740solaris*)
22741  version_type=linux
22742  need_lib_prefix=no
22743  need_version=no
22744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22745  soname_spec='${libname}${release}${shared_ext}$major'
22746  shlibpath_var=LD_LIBRARY_PATH
22747  shlibpath_overrides_runpath=yes
22748  hardcode_into_libs=yes
22749  # ldd complains unless libraries are executable
22750  postinstall_cmds='chmod +x $lib'
22751  ;;
22752
22753sunos4*)
22754  version_type=sunos
22755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22757  shlibpath_var=LD_LIBRARY_PATH
22758  shlibpath_overrides_runpath=yes
22759  if test "$with_gnu_ld" = yes; then
22760    need_lib_prefix=no
22761  fi
22762  need_version=yes
22763  ;;
22764
22765sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22766  version_type=linux
22767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768  soname_spec='${libname}${release}${shared_ext}$major'
22769  shlibpath_var=LD_LIBRARY_PATH
22770  case $host_vendor in
22771    sni)
22772      shlibpath_overrides_runpath=no
22773      need_lib_prefix=no
22774      export_dynamic_flag_spec='${wl}-Blargedynsym'
22775      runpath_var=LD_RUN_PATH
22776      ;;
22777    siemens)
22778      need_lib_prefix=no
22779      ;;
22780    motorola)
22781      need_lib_prefix=no
22782      need_version=no
22783      shlibpath_overrides_runpath=no
22784      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22785      ;;
22786  esac
22787  ;;
22788
22789sysv4*MP*)
22790  if test -d /usr/nec ;then
22791    version_type=linux
22792    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22793    soname_spec='$libname${shared_ext}.$major'
22794    shlibpath_var=LD_LIBRARY_PATH
22795  fi
22796  ;;
22797
22798uts4*)
22799  version_type=linux
22800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22801  soname_spec='${libname}${release}${shared_ext}$major'
22802  shlibpath_var=LD_LIBRARY_PATH
22803  ;;
22804
22805*)
22806  dynamic_linker=no
22807  ;;
22808esac
22809echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22810echo "${ECHO_T}$dynamic_linker" >&6
22811test "$dynamic_linker" = no && can_build_shared=no
22812
22813echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22814echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22815hardcode_action_GCJ=
22816if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22817   test -n "$runpath_var_GCJ" || \
22818   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22819
22820  # We can hardcode non-existant directories.
22821  if test "$hardcode_direct_GCJ" != no &&
22822     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22823     # have to relink, otherwise we might link with an installed library
22824     # when we should be linking with a yet-to-be-installed one
22825     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22826     test "$hardcode_minus_L_GCJ" != no; then
22827    # Linking always hardcodes the temporary library directory.
22828    hardcode_action_GCJ=relink
22829  else
22830    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22831    hardcode_action_GCJ=immediate
22832  fi
22833else
22834  # We cannot hardcode anything, or else we can only hardcode existing
22835  # directories.
22836  hardcode_action_GCJ=unsupported
22837fi
22838echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22839echo "${ECHO_T}$hardcode_action_GCJ" >&6
22840
22841if test "$hardcode_action_GCJ" = relink; then
22842  # Fast installation is not supported
22843  enable_fast_install=no
22844elif test "$shlibpath_overrides_runpath" = yes ||
22845     test "$enable_shared" = no; then
22846  # Fast installation is not necessary
22847  enable_fast_install=needless
22848fi
22849
22850striplib=
22851old_striplib=
22852echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22853echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22854if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22855  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22856  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22857  echo "$as_me:$LINENO: result: yes" >&5
22858echo "${ECHO_T}yes" >&6
22859else
22860# FIXME - insert some real tests, host_os isn't really good enough
22861  case $host_os in
22862   darwin*)
22863       if test -n "$STRIP" ; then
22864         striplib="$STRIP -x"
22865         echo "$as_me:$LINENO: result: yes" >&5
22866echo "${ECHO_T}yes" >&6
22867       else
22868  echo "$as_me:$LINENO: result: no" >&5
22869echo "${ECHO_T}no" >&6
22870fi
22871       ;;
22872   *)
22873  echo "$as_me:$LINENO: result: no" >&5
22874echo "${ECHO_T}no" >&6
22875    ;;
22876  esac
22877fi
22878
22879if test "x$enable_dlopen" != xyes; then
22880  enable_dlopen=unknown
22881  enable_dlopen_self=unknown
22882  enable_dlopen_self_static=unknown
22883else
22884  lt_cv_dlopen=no
22885  lt_cv_dlopen_libs=
22886
22887  case $host_os in
22888  beos*)
22889    lt_cv_dlopen="load_add_on"
22890    lt_cv_dlopen_libs=
22891    lt_cv_dlopen_self=yes
22892    ;;
22893
22894  mingw* | pw32*)
22895    lt_cv_dlopen="LoadLibrary"
22896    lt_cv_dlopen_libs=
22897   ;;
22898
22899  cygwin*)
22900    lt_cv_dlopen="dlopen"
22901    lt_cv_dlopen_libs=
22902   ;;
22903
22904  darwin*)
22905  # if libdl is installed we need to link against it
22906    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22907echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22908if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22909  echo $ECHO_N "(cached) $ECHO_C" >&6
22910else
22911  ac_check_lib_save_LIBS=$LIBS
22912LIBS="-ldl  $LIBS"
22913cat >conftest.$ac_ext <<_ACEOF
22914/* confdefs.h.  */
22915_ACEOF
22916cat confdefs.h >>conftest.$ac_ext
22917cat >>conftest.$ac_ext <<_ACEOF
22918/* end confdefs.h.  */
22919
22920/* Override any gcc2 internal prototype to avoid an error.  */
22921#ifdef __cplusplus
22922extern "C"
22923#endif
22924/* We use char because int might match the return type of a gcc2
22925   builtin and then its argument prototype would still apply.  */
22926char dlopen ();
22927int
22928main ()
22929{
22930dlopen ();
22931  ;
22932  return 0;
22933}
22934_ACEOF
22935rm -f conftest.$ac_objext conftest$ac_exeext
22936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22937  (eval $ac_link) 2>conftest.er1
22938  ac_status=$?
22939  grep -v '^ *+' conftest.er1 >conftest.err
22940  rm -f conftest.er1
22941  cat conftest.err >&5
22942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943  (exit $ac_status); } &&
22944	 { ac_try='test -z "$ac_c_werror_flag"
22945			 || test ! -s conftest.err'
22946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947  (eval $ac_try) 2>&5
22948  ac_status=$?
22949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950  (exit $ac_status); }; } &&
22951	 { ac_try='test -s conftest$ac_exeext'
22952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953  (eval $ac_try) 2>&5
22954  ac_status=$?
22955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956  (exit $ac_status); }; }; then
22957  ac_cv_lib_dl_dlopen=yes
22958else
22959  echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962ac_cv_lib_dl_dlopen=no
22963fi
22964rm -f conftest.err conftest.$ac_objext \
22965      conftest$ac_exeext conftest.$ac_ext
22966LIBS=$ac_check_lib_save_LIBS
22967fi
22968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22970if test $ac_cv_lib_dl_dlopen = yes; then
22971  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22972else
22973
22974    lt_cv_dlopen="dyld"
22975    lt_cv_dlopen_libs=
22976    lt_cv_dlopen_self=yes
22977
22978fi
22979
22980   ;;
22981
22982  *)
22983    echo "$as_me:$LINENO: checking for shl_load" >&5
22984echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22985if test "${ac_cv_func_shl_load+set}" = set; then
22986  echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
22988  cat >conftest.$ac_ext <<_ACEOF
22989/* confdefs.h.  */
22990_ACEOF
22991cat confdefs.h >>conftest.$ac_ext
22992cat >>conftest.$ac_ext <<_ACEOF
22993/* end confdefs.h.  */
22994/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22996#define shl_load innocuous_shl_load
22997
22998/* System header to define __stub macros and hopefully few prototypes,
22999    which can conflict with char shl_load (); below.
23000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001    <limits.h> exists even on freestanding compilers.  */
23002
23003#ifdef __STDC__
23004# include <limits.h>
23005#else
23006# include <assert.h>
23007#endif
23008
23009#undef shl_load
23010
23011/* Override any gcc2 internal prototype to avoid an error.  */
23012#ifdef __cplusplus
23013extern "C"
23014{
23015#endif
23016/* We use char because int might match the return type of a gcc2
23017   builtin and then its argument prototype would still apply.  */
23018char shl_load ();
23019/* The GNU C library defines this for functions which it implements
23020    to always fail with ENOSYS.  Some functions are actually named
23021    something starting with __ and the normal name is an alias.  */
23022#if defined (__stub_shl_load) || defined (__stub___shl_load)
23023choke me
23024#else
23025char (*f) () = shl_load;
23026#endif
23027#ifdef __cplusplus
23028}
23029#endif
23030
23031int
23032main ()
23033{
23034return f != shl_load;
23035  ;
23036  return 0;
23037}
23038_ACEOF
23039rm -f conftest.$ac_objext conftest$ac_exeext
23040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041  (eval $ac_link) 2>conftest.er1
23042  ac_status=$?
23043  grep -v '^ *+' conftest.er1 >conftest.err
23044  rm -f conftest.er1
23045  cat conftest.err >&5
23046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047  (exit $ac_status); } &&
23048	 { ac_try='test -z "$ac_c_werror_flag"
23049			 || test ! -s conftest.err'
23050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051  (eval $ac_try) 2>&5
23052  ac_status=$?
23053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054  (exit $ac_status); }; } &&
23055	 { ac_try='test -s conftest$ac_exeext'
23056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057  (eval $ac_try) 2>&5
23058  ac_status=$?
23059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060  (exit $ac_status); }; }; then
23061  ac_cv_func_shl_load=yes
23062else
23063  echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
23066ac_cv_func_shl_load=no
23067fi
23068rm -f conftest.err conftest.$ac_objext \
23069      conftest$ac_exeext conftest.$ac_ext
23070fi
23071echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23072echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23073if test $ac_cv_func_shl_load = yes; then
23074  lt_cv_dlopen="shl_load"
23075else
23076  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23077echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23078if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23079  echo $ECHO_N "(cached) $ECHO_C" >&6
23080else
23081  ac_check_lib_save_LIBS=$LIBS
23082LIBS="-ldld  $LIBS"
23083cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h.  */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h.  */
23089
23090/* Override any gcc2 internal prototype to avoid an error.  */
23091#ifdef __cplusplus
23092extern "C"
23093#endif
23094/* We use char because int might match the return type of a gcc2
23095   builtin and then its argument prototype would still apply.  */
23096char shl_load ();
23097int
23098main ()
23099{
23100shl_load ();
23101  ;
23102  return 0;
23103}
23104_ACEOF
23105rm -f conftest.$ac_objext conftest$ac_exeext
23106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107  (eval $ac_link) 2>conftest.er1
23108  ac_status=$?
23109  grep -v '^ *+' conftest.er1 >conftest.err
23110  rm -f conftest.er1
23111  cat conftest.err >&5
23112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113  (exit $ac_status); } &&
23114	 { ac_try='test -z "$ac_c_werror_flag"
23115			 || test ! -s conftest.err'
23116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117  (eval $ac_try) 2>&5
23118  ac_status=$?
23119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120  (exit $ac_status); }; } &&
23121	 { ac_try='test -s conftest$ac_exeext'
23122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123  (eval $ac_try) 2>&5
23124  ac_status=$?
23125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126  (exit $ac_status); }; }; then
23127  ac_cv_lib_dld_shl_load=yes
23128else
23129  echo "$as_me: failed program was:" >&5
23130sed 's/^/| /' conftest.$ac_ext >&5
23131
23132ac_cv_lib_dld_shl_load=no
23133fi
23134rm -f conftest.err conftest.$ac_objext \
23135      conftest$ac_exeext conftest.$ac_ext
23136LIBS=$ac_check_lib_save_LIBS
23137fi
23138echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23139echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23140if test $ac_cv_lib_dld_shl_load = yes; then
23141  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23142else
23143  echo "$as_me:$LINENO: checking for dlopen" >&5
23144echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23145if test "${ac_cv_func_dlopen+set}" = set; then
23146  echo $ECHO_N "(cached) $ECHO_C" >&6
23147else
23148  cat >conftest.$ac_ext <<_ACEOF
23149/* confdefs.h.  */
23150_ACEOF
23151cat confdefs.h >>conftest.$ac_ext
23152cat >>conftest.$ac_ext <<_ACEOF
23153/* end confdefs.h.  */
23154/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23155   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23156#define dlopen innocuous_dlopen
23157
23158/* System header to define __stub macros and hopefully few prototypes,
23159    which can conflict with char dlopen (); below.
23160    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161    <limits.h> exists even on freestanding compilers.  */
23162
23163#ifdef __STDC__
23164# include <limits.h>
23165#else
23166# include <assert.h>
23167#endif
23168
23169#undef dlopen
23170
23171/* Override any gcc2 internal prototype to avoid an error.  */
23172#ifdef __cplusplus
23173extern "C"
23174{
23175#endif
23176/* We use char because int might match the return type of a gcc2
23177   builtin and then its argument prototype would still apply.  */
23178char dlopen ();
23179/* The GNU C library defines this for functions which it implements
23180    to always fail with ENOSYS.  Some functions are actually named
23181    something starting with __ and the normal name is an alias.  */
23182#if defined (__stub_dlopen) || defined (__stub___dlopen)
23183choke me
23184#else
23185char (*f) () = dlopen;
23186#endif
23187#ifdef __cplusplus
23188}
23189#endif
23190
23191int
23192main ()
23193{
23194return f != dlopen;
23195  ;
23196  return 0;
23197}
23198_ACEOF
23199rm -f conftest.$ac_objext conftest$ac_exeext
23200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201  (eval $ac_link) 2>conftest.er1
23202  ac_status=$?
23203  grep -v '^ *+' conftest.er1 >conftest.err
23204  rm -f conftest.er1
23205  cat conftest.err >&5
23206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207  (exit $ac_status); } &&
23208	 { ac_try='test -z "$ac_c_werror_flag"
23209			 || test ! -s conftest.err'
23210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211  (eval $ac_try) 2>&5
23212  ac_status=$?
23213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214  (exit $ac_status); }; } &&
23215	 { ac_try='test -s conftest$ac_exeext'
23216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217  (eval $ac_try) 2>&5
23218  ac_status=$?
23219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220  (exit $ac_status); }; }; then
23221  ac_cv_func_dlopen=yes
23222else
23223  echo "$as_me: failed program was:" >&5
23224sed 's/^/| /' conftest.$ac_ext >&5
23225
23226ac_cv_func_dlopen=no
23227fi
23228rm -f conftest.err conftest.$ac_objext \
23229      conftest$ac_exeext conftest.$ac_ext
23230fi
23231echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23232echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23233if test $ac_cv_func_dlopen = yes; then
23234  lt_cv_dlopen="dlopen"
23235else
23236  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23237echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23238if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23239  echo $ECHO_N "(cached) $ECHO_C" >&6
23240else
23241  ac_check_lib_save_LIBS=$LIBS
23242LIBS="-ldl  $LIBS"
23243cat >conftest.$ac_ext <<_ACEOF
23244/* confdefs.h.  */
23245_ACEOF
23246cat confdefs.h >>conftest.$ac_ext
23247cat >>conftest.$ac_ext <<_ACEOF
23248/* end confdefs.h.  */
23249
23250/* Override any gcc2 internal prototype to avoid an error.  */
23251#ifdef __cplusplus
23252extern "C"
23253#endif
23254/* We use char because int might match the return type of a gcc2
23255   builtin and then its argument prototype would still apply.  */
23256char dlopen ();
23257int
23258main ()
23259{
23260dlopen ();
23261  ;
23262  return 0;
23263}
23264_ACEOF
23265rm -f conftest.$ac_objext conftest$ac_exeext
23266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267  (eval $ac_link) 2>conftest.er1
23268  ac_status=$?
23269  grep -v '^ *+' conftest.er1 >conftest.err
23270  rm -f conftest.er1
23271  cat conftest.err >&5
23272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273  (exit $ac_status); } &&
23274	 { ac_try='test -z "$ac_c_werror_flag"
23275			 || test ! -s conftest.err'
23276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277  (eval $ac_try) 2>&5
23278  ac_status=$?
23279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280  (exit $ac_status); }; } &&
23281	 { ac_try='test -s conftest$ac_exeext'
23282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283  (eval $ac_try) 2>&5
23284  ac_status=$?
23285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286  (exit $ac_status); }; }; then
23287  ac_cv_lib_dl_dlopen=yes
23288else
23289  echo "$as_me: failed program was:" >&5
23290sed 's/^/| /' conftest.$ac_ext >&5
23291
23292ac_cv_lib_dl_dlopen=no
23293fi
23294rm -f conftest.err conftest.$ac_objext \
23295      conftest$ac_exeext conftest.$ac_ext
23296LIBS=$ac_check_lib_save_LIBS
23297fi
23298echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23299echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23300if test $ac_cv_lib_dl_dlopen = yes; then
23301  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23302else
23303  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23304echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23305if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23306  echo $ECHO_N "(cached) $ECHO_C" >&6
23307else
23308  ac_check_lib_save_LIBS=$LIBS
23309LIBS="-lsvld  $LIBS"
23310cat >conftest.$ac_ext <<_ACEOF
23311/* confdefs.h.  */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h.  */
23316
23317/* Override any gcc2 internal prototype to avoid an error.  */
23318#ifdef __cplusplus
23319extern "C"
23320#endif
23321/* We use char because int might match the return type of a gcc2
23322   builtin and then its argument prototype would still apply.  */
23323char dlopen ();
23324int
23325main ()
23326{
23327dlopen ();
23328  ;
23329  return 0;
23330}
23331_ACEOF
23332rm -f conftest.$ac_objext conftest$ac_exeext
23333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23334  (eval $ac_link) 2>conftest.er1
23335  ac_status=$?
23336  grep -v '^ *+' conftest.er1 >conftest.err
23337  rm -f conftest.er1
23338  cat conftest.err >&5
23339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340  (exit $ac_status); } &&
23341	 { ac_try='test -z "$ac_c_werror_flag"
23342			 || test ! -s conftest.err'
23343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344  (eval $ac_try) 2>&5
23345  ac_status=$?
23346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347  (exit $ac_status); }; } &&
23348	 { ac_try='test -s conftest$ac_exeext'
23349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350  (eval $ac_try) 2>&5
23351  ac_status=$?
23352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353  (exit $ac_status); }; }; then
23354  ac_cv_lib_svld_dlopen=yes
23355else
23356  echo "$as_me: failed program was:" >&5
23357sed 's/^/| /' conftest.$ac_ext >&5
23358
23359ac_cv_lib_svld_dlopen=no
23360fi
23361rm -f conftest.err conftest.$ac_objext \
23362      conftest$ac_exeext conftest.$ac_ext
23363LIBS=$ac_check_lib_save_LIBS
23364fi
23365echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23366echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23367if test $ac_cv_lib_svld_dlopen = yes; then
23368  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23369else
23370  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23371echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23372if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23373  echo $ECHO_N "(cached) $ECHO_C" >&6
23374else
23375  ac_check_lib_save_LIBS=$LIBS
23376LIBS="-ldld  $LIBS"
23377cat >conftest.$ac_ext <<_ACEOF
23378/* confdefs.h.  */
23379_ACEOF
23380cat confdefs.h >>conftest.$ac_ext
23381cat >>conftest.$ac_ext <<_ACEOF
23382/* end confdefs.h.  */
23383
23384/* Override any gcc2 internal prototype to avoid an error.  */
23385#ifdef __cplusplus
23386extern "C"
23387#endif
23388/* We use char because int might match the return type of a gcc2
23389   builtin and then its argument prototype would still apply.  */
23390char dld_link ();
23391int
23392main ()
23393{
23394dld_link ();
23395  ;
23396  return 0;
23397}
23398_ACEOF
23399rm -f conftest.$ac_objext conftest$ac_exeext
23400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23401  (eval $ac_link) 2>conftest.er1
23402  ac_status=$?
23403  grep -v '^ *+' conftest.er1 >conftest.err
23404  rm -f conftest.er1
23405  cat conftest.err >&5
23406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407  (exit $ac_status); } &&
23408	 { ac_try='test -z "$ac_c_werror_flag"
23409			 || test ! -s conftest.err'
23410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411  (eval $ac_try) 2>&5
23412  ac_status=$?
23413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414  (exit $ac_status); }; } &&
23415	 { ac_try='test -s conftest$ac_exeext'
23416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417  (eval $ac_try) 2>&5
23418  ac_status=$?
23419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420  (exit $ac_status); }; }; then
23421  ac_cv_lib_dld_dld_link=yes
23422else
23423  echo "$as_me: failed program was:" >&5
23424sed 's/^/| /' conftest.$ac_ext >&5
23425
23426ac_cv_lib_dld_dld_link=no
23427fi
23428rm -f conftest.err conftest.$ac_objext \
23429      conftest$ac_exeext conftest.$ac_ext
23430LIBS=$ac_check_lib_save_LIBS
23431fi
23432echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23433echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23434if test $ac_cv_lib_dld_dld_link = yes; then
23435  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23436fi
23437
23438
23439fi
23440
23441
23442fi
23443
23444
23445fi
23446
23447
23448fi
23449
23450
23451fi
23452
23453    ;;
23454  esac
23455
23456  if test "x$lt_cv_dlopen" != xno; then
23457    enable_dlopen=yes
23458  else
23459    enable_dlopen=no
23460  fi
23461
23462  case $lt_cv_dlopen in
23463  dlopen)
23464    save_CPPFLAGS="$CPPFLAGS"
23465    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23466
23467    save_LDFLAGS="$LDFLAGS"
23468    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23469
23470    save_LIBS="$LIBS"
23471    LIBS="$lt_cv_dlopen_libs $LIBS"
23472
23473    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23474echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23475if test "${lt_cv_dlopen_self+set}" = set; then
23476  echo $ECHO_N "(cached) $ECHO_C" >&6
23477else
23478  	  if test "$cross_compiling" = yes; then :
23479  lt_cv_dlopen_self=cross
23480else
23481  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23482  lt_status=$lt_dlunknown
23483  cat > conftest.$ac_ext <<EOF
23484#line 23483 "configure"
23485#include "confdefs.h"
23486
23487#if HAVE_DLFCN_H
23488#include <dlfcn.h>
23489#endif
23490
23491#include <stdio.h>
23492
23493#ifdef RTLD_GLOBAL
23494#  define LT_DLGLOBAL		RTLD_GLOBAL
23495#else
23496#  ifdef DL_GLOBAL
23497#    define LT_DLGLOBAL		DL_GLOBAL
23498#  else
23499#    define LT_DLGLOBAL		0
23500#  endif
23501#endif
23502
23503/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23504   find out it does not work in some platform. */
23505#ifndef LT_DLLAZY_OR_NOW
23506#  ifdef RTLD_LAZY
23507#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23508#  else
23509#    ifdef DL_LAZY
23510#      define LT_DLLAZY_OR_NOW		DL_LAZY
23511#    else
23512#      ifdef RTLD_NOW
23513#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23514#      else
23515#        ifdef DL_NOW
23516#          define LT_DLLAZY_OR_NOW	DL_NOW
23517#        else
23518#          define LT_DLLAZY_OR_NOW	0
23519#        endif
23520#      endif
23521#    endif
23522#  endif
23523#endif
23524
23525#ifdef __cplusplus
23526extern "C" void exit (int);
23527#endif
23528
23529void fnord() { int i=42;}
23530int main ()
23531{
23532  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23533  int status = $lt_dlunknown;
23534
23535  if (self)
23536    {
23537      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23538      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23539      /* dlclose (self); */
23540    }
23541
23542    exit (status);
23543}
23544EOF
23545  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546  (eval $ac_link) 2>&5
23547  ac_status=$?
23548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23550    (./conftest; exit; ) 2>/dev/null
23551    lt_status=$?
23552    case x$lt_status in
23553      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23554      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23555      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23556    esac
23557  else :
23558    # compilation failed
23559    lt_cv_dlopen_self=no
23560  fi
23561fi
23562rm -fr conftest*
23563
23564
23565fi
23566echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23567echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23568
23569    if test "x$lt_cv_dlopen_self" = xyes; then
23570      LDFLAGS="$LDFLAGS $link_static_flag"
23571      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23572echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23573if test "${lt_cv_dlopen_self_static+set}" = set; then
23574  echo $ECHO_N "(cached) $ECHO_C" >&6
23575else
23576  	  if test "$cross_compiling" = yes; then :
23577  lt_cv_dlopen_self_static=cross
23578else
23579  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23580  lt_status=$lt_dlunknown
23581  cat > conftest.$ac_ext <<EOF
23582#line 23581 "configure"
23583#include "confdefs.h"
23584
23585#if HAVE_DLFCN_H
23586#include <dlfcn.h>
23587#endif
23588
23589#include <stdio.h>
23590
23591#ifdef RTLD_GLOBAL
23592#  define LT_DLGLOBAL		RTLD_GLOBAL
23593#else
23594#  ifdef DL_GLOBAL
23595#    define LT_DLGLOBAL		DL_GLOBAL
23596#  else
23597#    define LT_DLGLOBAL		0
23598#  endif
23599#endif
23600
23601/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23602   find out it does not work in some platform. */
23603#ifndef LT_DLLAZY_OR_NOW
23604#  ifdef RTLD_LAZY
23605#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23606#  else
23607#    ifdef DL_LAZY
23608#      define LT_DLLAZY_OR_NOW		DL_LAZY
23609#    else
23610#      ifdef RTLD_NOW
23611#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23612#      else
23613#        ifdef DL_NOW
23614#          define LT_DLLAZY_OR_NOW	DL_NOW
23615#        else
23616#          define LT_DLLAZY_OR_NOW	0
23617#        endif
23618#      endif
23619#    endif
23620#  endif
23621#endif
23622
23623#ifdef __cplusplus
23624extern "C" void exit (int);
23625#endif
23626
23627void fnord() { int i=42;}
23628int main ()
23629{
23630  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23631  int status = $lt_dlunknown;
23632
23633  if (self)
23634    {
23635      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23636      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23637      /* dlclose (self); */
23638    }
23639
23640    exit (status);
23641}
23642EOF
23643  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644  (eval $ac_link) 2>&5
23645  ac_status=$?
23646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23648    (./conftest; exit; ) 2>/dev/null
23649    lt_status=$?
23650    case x$lt_status in
23651      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23652      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23653      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23654    esac
23655  else :
23656    # compilation failed
23657    lt_cv_dlopen_self_static=no
23658  fi
23659fi
23660rm -fr conftest*
23661
23662
23663fi
23664echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23665echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23666    fi
23667
23668    CPPFLAGS="$save_CPPFLAGS"
23669    LDFLAGS="$save_LDFLAGS"
23670    LIBS="$save_LIBS"
23671    ;;
23672  esac
23673
23674  case $lt_cv_dlopen_self in
23675  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23676  *) enable_dlopen_self=unknown ;;
23677  esac
23678
23679  case $lt_cv_dlopen_self_static in
23680  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23681  *) enable_dlopen_self_static=unknown ;;
23682  esac
23683fi
23684
23685
23686# The else clause should only fire when bootstrapping the
23687# libtool distribution, otherwise you forgot to ship ltmain.sh
23688# with your package, and you will get complaints that there are
23689# no rules to generate ltmain.sh.
23690if test -f "$ltmain"; then
23691  # See if we are running on zsh, and set the options which allow our commands through
23692  # without removal of \ escapes.
23693  if test -n "${ZSH_VERSION+set}" ; then
23694    setopt NO_GLOB_SUBST
23695  fi
23696  # Now quote all the things that may contain metacharacters while being
23697  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23698  # variables and quote the copies for generation of the libtool script.
23699  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23700    SED SHELL STRIP \
23701    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23702    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23703    deplibs_check_method reload_flag reload_cmds need_locks \
23704    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23705    lt_cv_sys_global_symbol_to_c_name_address \
23706    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23707    old_postinstall_cmds old_postuninstall_cmds \
23708    compiler_GCJ \
23709    CC_GCJ \
23710    LD_GCJ \
23711    lt_prog_compiler_wl_GCJ \
23712    lt_prog_compiler_pic_GCJ \
23713    lt_prog_compiler_static_GCJ \
23714    lt_prog_compiler_no_builtin_flag_GCJ \
23715    export_dynamic_flag_spec_GCJ \
23716    thread_safe_flag_spec_GCJ \
23717    whole_archive_flag_spec_GCJ \
23718    enable_shared_with_static_runtimes_GCJ \
23719    old_archive_cmds_GCJ \
23720    old_archive_from_new_cmds_GCJ \
23721    predep_objects_GCJ \
23722    postdep_objects_GCJ \
23723    predeps_GCJ \
23724    postdeps_GCJ \
23725    compiler_lib_search_path_GCJ \
23726    archive_cmds_GCJ \
23727    archive_expsym_cmds_GCJ \
23728    postinstall_cmds_GCJ \
23729    postuninstall_cmds_GCJ \
23730    old_archive_from_expsyms_cmds_GCJ \
23731    allow_undefined_flag_GCJ \
23732    no_undefined_flag_GCJ \
23733    export_symbols_cmds_GCJ \
23734    hardcode_libdir_flag_spec_GCJ \
23735    hardcode_libdir_flag_spec_ld_GCJ \
23736    hardcode_libdir_separator_GCJ \
23737    hardcode_automatic_GCJ \
23738    module_cmds_GCJ \
23739    module_expsym_cmds_GCJ \
23740    lt_cv_prog_compiler_c_o_GCJ \
23741    exclude_expsyms_GCJ \
23742    include_expsyms_GCJ; do
23743
23744    case $var in
23745    old_archive_cmds_GCJ | \
23746    old_archive_from_new_cmds_GCJ | \
23747    archive_cmds_GCJ | \
23748    archive_expsym_cmds_GCJ | \
23749    module_cmds_GCJ | \
23750    module_expsym_cmds_GCJ | \
23751    old_archive_from_expsyms_cmds_GCJ | \
23752    export_symbols_cmds_GCJ | \
23753    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23754    postinstall_cmds | postuninstall_cmds | \
23755    old_postinstall_cmds | old_postuninstall_cmds | \
23756    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23757      # Double-quote double-evaled strings.
23758      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23759      ;;
23760    *)
23761      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23762      ;;
23763    esac
23764  done
23765
23766  case $lt_echo in
23767  *'\$0 --fallback-echo"')
23768    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23769    ;;
23770  esac
23771
23772cfgfile="$ofile"
23773
23774  cat <<__EOF__ >> "$cfgfile"
23775# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23776
23777# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23778
23779# Shell to use when invoking shell scripts.
23780SHELL=$lt_SHELL
23781
23782# Whether or not to build shared libraries.
23783build_libtool_libs=$enable_shared
23784
23785# Whether or not to build static libraries.
23786build_old_libs=$enable_static
23787
23788# Whether or not to add -lc for building shared libraries.
23789build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23790
23791# Whether or not to disallow shared libs when runtime libs are static
23792allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23793
23794# Whether or not to optimize for fast installation.
23795fast_install=$enable_fast_install
23796
23797# The host system.
23798host_alias=$host_alias
23799host=$host
23800
23801# An echo program that does not interpret backslashes.
23802echo=$lt_echo
23803
23804# The archiver.
23805AR=$lt_AR
23806AR_FLAGS=$lt_AR_FLAGS
23807
23808# A C compiler.
23809LTCC=$lt_LTCC
23810
23811# A language-specific compiler.
23812CC=$lt_compiler_GCJ
23813
23814# Is the compiler the GNU C compiler?
23815with_gcc=$GCC_GCJ
23816
23817# An ERE matcher.
23818EGREP=$lt_EGREP
23819
23820# The linker used to build libraries.
23821LD=$lt_LD_GCJ
23822
23823# Whether we need hard or soft links.
23824LN_S=$lt_LN_S
23825
23826# A BSD-compatible nm program.
23827NM=$lt_NM
23828
23829# A symbol stripping program
23830STRIP=$lt_STRIP
23831
23832# Used to examine libraries when file_magic_cmd begins "file"
23833MAGIC_CMD=$MAGIC_CMD
23834
23835# Used on cygwin: DLL creation program.
23836DLLTOOL="$DLLTOOL"
23837
23838# Used on cygwin: object dumper.
23839OBJDUMP="$OBJDUMP"
23840
23841# Used on cygwin: assembler.
23842AS="$AS"
23843
23844# The name of the directory that contains temporary libtool files.
23845objdir=$objdir
23846
23847# How to create reloadable object files.
23848reload_flag=$lt_reload_flag
23849reload_cmds=$lt_reload_cmds
23850
23851# How to pass a linker flag through the compiler.
23852wl=$lt_lt_prog_compiler_wl_GCJ
23853
23854# Object file suffix (normally "o").
23855objext="$ac_objext"
23856
23857# Old archive suffix (normally "a").
23858libext="$libext"
23859
23860# Shared library suffix (normally ".so").
23861shrext_cmds='$shrext_cmds'
23862
23863# Executable file suffix (normally "").
23864exeext="$exeext"
23865
23866# Additional compiler flags for building library objects.
23867pic_flag=$lt_lt_prog_compiler_pic_GCJ
23868pic_mode=$pic_mode
23869
23870# What is the maximum length of a command?
23871max_cmd_len=$lt_cv_sys_max_cmd_len
23872
23873# Does compiler simultaneously support -c and -o options?
23874compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23875
23876# Must we lock files when doing compilation ?
23877need_locks=$lt_need_locks
23878
23879# Do we need the lib prefix for modules?
23880need_lib_prefix=$need_lib_prefix
23881
23882# Do we need a version for libraries?
23883need_version=$need_version
23884
23885# Whether dlopen is supported.
23886dlopen_support=$enable_dlopen
23887
23888# Whether dlopen of programs is supported.
23889dlopen_self=$enable_dlopen_self
23890
23891# Whether dlopen of statically linked programs is supported.
23892dlopen_self_static=$enable_dlopen_self_static
23893
23894# Compiler flag to prevent dynamic linking.
23895link_static_flag=$lt_lt_prog_compiler_static_GCJ
23896
23897# Compiler flag to turn off builtin functions.
23898no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23899
23900# Compiler flag to allow reflexive dlopens.
23901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23902
23903# Compiler flag to generate shared objects directly from archives.
23904whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23905
23906# Compiler flag to generate thread-safe objects.
23907thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23908
23909# Library versioning type.
23910version_type=$version_type
23911
23912# Format of library name prefix.
23913libname_spec=$lt_libname_spec
23914
23915# List of archive names.  First name is the real one, the rest are links.
23916# The last name is the one that the linker finds with -lNAME.
23917library_names_spec=$lt_library_names_spec
23918
23919# The coded name of the library, if different from the real name.
23920soname_spec=$lt_soname_spec
23921
23922# Commands used to build and install an old-style archive.
23923RANLIB=$lt_RANLIB
23924old_archive_cmds=$lt_old_archive_cmds_GCJ
23925old_postinstall_cmds=$lt_old_postinstall_cmds
23926old_postuninstall_cmds=$lt_old_postuninstall_cmds
23927
23928# Create an old-style archive from a shared archive.
23929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23930
23931# Create a temporary old-style archive to link instead of a shared archive.
23932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23933
23934# Commands used to build and install a shared archive.
23935archive_cmds=$lt_archive_cmds_GCJ
23936archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23937postinstall_cmds=$lt_postinstall_cmds
23938postuninstall_cmds=$lt_postuninstall_cmds
23939
23940# Commands used to build a loadable module (assumed same as above if empty)
23941module_cmds=$lt_module_cmds_GCJ
23942module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23943
23944# Commands to strip libraries.
23945old_striplib=$lt_old_striplib
23946striplib=$lt_striplib
23947
23948# Dependencies to place before the objects being linked to create a
23949# shared library.
23950predep_objects=$lt_predep_objects_GCJ
23951
23952# Dependencies to place after the objects being linked to create a
23953# shared library.
23954postdep_objects=$lt_postdep_objects_GCJ
23955
23956# Dependencies to place before the objects being linked to create a
23957# shared library.
23958predeps=$lt_predeps_GCJ
23959
23960# Dependencies to place after the objects being linked to create a
23961# shared library.
23962postdeps=$lt_postdeps_GCJ
23963
23964# The library search path used internally by the compiler when linking
23965# a shared library.
23966compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23967
23968# Method to check whether dependent libraries are shared objects.
23969deplibs_check_method=$lt_deplibs_check_method
23970
23971# Command to use when deplibs_check_method == file_magic.
23972file_magic_cmd=$lt_file_magic_cmd
23973
23974# Flag that allows shared libraries with undefined symbols to be built.
23975allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23976
23977# Flag that forces no undefined symbols.
23978no_undefined_flag=$lt_no_undefined_flag_GCJ
23979
23980# Commands used to finish a libtool library installation in a directory.
23981finish_cmds=$lt_finish_cmds
23982
23983# Same as above, but a single script fragment to be evaled but not shown.
23984finish_eval=$lt_finish_eval
23985
23986# Take the output of nm and produce a listing of raw symbols and C names.
23987global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23988
23989# Transform the output of nm in a proper C declaration
23990global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23991
23992# Transform the output of nm in a C name address pair
23993global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23994
23995# This is the shared library runtime path variable.
23996runpath_var=$runpath_var
23997
23998# This is the shared library path variable.
23999shlibpath_var=$shlibpath_var
24000
24001# Is shlibpath searched before the hard-coded library search path?
24002shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24003
24004# How to hardcode a shared library path into an executable.
24005hardcode_action=$hardcode_action_GCJ
24006
24007# Whether we should hardcode library paths into libraries.
24008hardcode_into_libs=$hardcode_into_libs
24009
24010# Flag to hardcode \$libdir into a binary during linking.
24011# This must work even if \$libdir does not exist.
24012hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24013
24014# If ld is used when linking, flag to hardcode \$libdir into
24015# a binary during linking. This must work even if \$libdir does
24016# not exist.
24017hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24018
24019# Whether we need a single -rpath flag with a separated argument.
24020hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24021
24022# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24023# resulting binary.
24024hardcode_direct=$hardcode_direct_GCJ
24025
24026# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24027# resulting binary.
24028hardcode_minus_L=$hardcode_minus_L_GCJ
24029
24030# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24031# the resulting binary.
24032hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24033
24034# Set to yes if building a shared library automatically hardcodes DIR into the library
24035# and all subsequent libraries and executables linked against it.
24036hardcode_automatic=$hardcode_automatic_GCJ
24037
24038# Variables whose values should be saved in libtool wrapper scripts and
24039# restored at relink time.
24040variables_saved_for_relink="$variables_saved_for_relink"
24041
24042# Whether libtool must link a program against all its dependency libraries.
24043link_all_deplibs=$link_all_deplibs_GCJ
24044
24045# Compile-time system search path for libraries
24046sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24047
24048# Run-time system search path for libraries
24049sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24050
24051# Fix the shell variable \$srcfile for the compiler.
24052fix_srcfile_path="$fix_srcfile_path_GCJ"
24053
24054# Set to yes if exported symbols are required.
24055always_export_symbols=$always_export_symbols_GCJ
24056
24057# The commands to list exported symbols.
24058export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24059
24060# The commands to extract the exported symbol list from a shared archive.
24061extract_expsyms_cmds=$lt_extract_expsyms_cmds
24062
24063# Symbols that should not be listed in the preloaded symbols.
24064exclude_expsyms=$lt_exclude_expsyms_GCJ
24065
24066# Symbols that must always be exported.
24067include_expsyms=$lt_include_expsyms_GCJ
24068
24069# ### END LIBTOOL TAG CONFIG: $tagname
24070
24071__EOF__
24072
24073
24074else
24075  # If there is no Makefile yet, we rely on a make rule to execute
24076  # `config.status --recheck' to rerun these tests and create the
24077  # libtool script then.
24078  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24079  if test -f "$ltmain_in"; then
24080    test -f Makefile && make "$ltmain"
24081  fi
24082fi
24083
24084
24085ac_ext=c
24086ac_cpp='$CPP $CPPFLAGS'
24087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24089ac_compiler_gnu=$ac_cv_c_compiler_gnu
24090
24091CC="$lt_save_CC"
24092
24093	else
24094	  tagname=""
24095	fi
24096	;;
24097
24098      RC)
24099	ac_ext=c
24100ac_cpp='$CPP $CPPFLAGS'
24101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24103ac_compiler_gnu=$ac_cv_c_compiler_gnu
24104
24105
24106# Source file extension for RC test sources.
24107ac_ext=rc
24108
24109# Object file extension for compiled RC test sources.
24110objext=o
24111objext_RC=$objext
24112
24113# Code to be used in simple compile tests
24114lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24115
24116# Code to be used in simple link tests
24117lt_simple_link_test_code="$lt_simple_compile_test_code"
24118
24119# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24120
24121# If no C compiler was specified, use CC.
24122LTCC=${LTCC-"$CC"}
24123
24124# Allow CC to be a program name with arguments.
24125compiler=$CC
24126
24127
24128# Allow CC to be a program name with arguments.
24129lt_save_CC="$CC"
24130CC=${RC-"windres"}
24131compiler=$CC
24132compiler_RC=$CC
24133lt_cv_prog_compiler_c_o_RC=yes
24134
24135# The else clause should only fire when bootstrapping the
24136# libtool distribution, otherwise you forgot to ship ltmain.sh
24137# with your package, and you will get complaints that there are
24138# no rules to generate ltmain.sh.
24139if test -f "$ltmain"; then
24140  # See if we are running on zsh, and set the options which allow our commands through
24141  # without removal of \ escapes.
24142  if test -n "${ZSH_VERSION+set}" ; then
24143    setopt NO_GLOB_SUBST
24144  fi
24145  # Now quote all the things that may contain metacharacters while being
24146  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24147  # variables and quote the copies for generation of the libtool script.
24148  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24149    SED SHELL STRIP \
24150    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24151    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24152    deplibs_check_method reload_flag reload_cmds need_locks \
24153    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24154    lt_cv_sys_global_symbol_to_c_name_address \
24155    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24156    old_postinstall_cmds old_postuninstall_cmds \
24157    compiler_RC \
24158    CC_RC \
24159    LD_RC \
24160    lt_prog_compiler_wl_RC \
24161    lt_prog_compiler_pic_RC \
24162    lt_prog_compiler_static_RC \
24163    lt_prog_compiler_no_builtin_flag_RC \
24164    export_dynamic_flag_spec_RC \
24165    thread_safe_flag_spec_RC \
24166    whole_archive_flag_spec_RC \
24167    enable_shared_with_static_runtimes_RC \
24168    old_archive_cmds_RC \
24169    old_archive_from_new_cmds_RC \
24170    predep_objects_RC \
24171    postdep_objects_RC \
24172    predeps_RC \
24173    postdeps_RC \
24174    compiler_lib_search_path_RC \
24175    archive_cmds_RC \
24176    archive_expsym_cmds_RC \
24177    postinstall_cmds_RC \
24178    postuninstall_cmds_RC \
24179    old_archive_from_expsyms_cmds_RC \
24180    allow_undefined_flag_RC \
24181    no_undefined_flag_RC \
24182    export_symbols_cmds_RC \
24183    hardcode_libdir_flag_spec_RC \
24184    hardcode_libdir_flag_spec_ld_RC \
24185    hardcode_libdir_separator_RC \
24186    hardcode_automatic_RC \
24187    module_cmds_RC \
24188    module_expsym_cmds_RC \
24189    lt_cv_prog_compiler_c_o_RC \
24190    exclude_expsyms_RC \
24191    include_expsyms_RC; do
24192
24193    case $var in
24194    old_archive_cmds_RC | \
24195    old_archive_from_new_cmds_RC | \
24196    archive_cmds_RC | \
24197    archive_expsym_cmds_RC | \
24198    module_cmds_RC | \
24199    module_expsym_cmds_RC | \
24200    old_archive_from_expsyms_cmds_RC | \
24201    export_symbols_cmds_RC | \
24202    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24203    postinstall_cmds | postuninstall_cmds | \
24204    old_postinstall_cmds | old_postuninstall_cmds | \
24205    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24206      # Double-quote double-evaled strings.
24207      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24208      ;;
24209    *)
24210      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24211      ;;
24212    esac
24213  done
24214
24215  case $lt_echo in
24216  *'\$0 --fallback-echo"')
24217    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24218    ;;
24219  esac
24220
24221cfgfile="$ofile"
24222
24223  cat <<__EOF__ >> "$cfgfile"
24224# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24225
24226# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24227
24228# Shell to use when invoking shell scripts.
24229SHELL=$lt_SHELL
24230
24231# Whether or not to build shared libraries.
24232build_libtool_libs=$enable_shared
24233
24234# Whether or not to build static libraries.
24235build_old_libs=$enable_static
24236
24237# Whether or not to add -lc for building shared libraries.
24238build_libtool_need_lc=$archive_cmds_need_lc_RC
24239
24240# Whether or not to disallow shared libs when runtime libs are static
24241allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24242
24243# Whether or not to optimize for fast installation.
24244fast_install=$enable_fast_install
24245
24246# The host system.
24247host_alias=$host_alias
24248host=$host
24249
24250# An echo program that does not interpret backslashes.
24251echo=$lt_echo
24252
24253# The archiver.
24254AR=$lt_AR
24255AR_FLAGS=$lt_AR_FLAGS
24256
24257# A C compiler.
24258LTCC=$lt_LTCC
24259
24260# A language-specific compiler.
24261CC=$lt_compiler_RC
24262
24263# Is the compiler the GNU C compiler?
24264with_gcc=$GCC_RC
24265
24266# An ERE matcher.
24267EGREP=$lt_EGREP
24268
24269# The linker used to build libraries.
24270LD=$lt_LD_RC
24271
24272# Whether we need hard or soft links.
24273LN_S=$lt_LN_S
24274
24275# A BSD-compatible nm program.
24276NM=$lt_NM
24277
24278# A symbol stripping program
24279STRIP=$lt_STRIP
24280
24281# Used to examine libraries when file_magic_cmd begins "file"
24282MAGIC_CMD=$MAGIC_CMD
24283
24284# Used on cygwin: DLL creation program.
24285DLLTOOL="$DLLTOOL"
24286
24287# Used on cygwin: object dumper.
24288OBJDUMP="$OBJDUMP"
24289
24290# Used on cygwin: assembler.
24291AS="$AS"
24292
24293# The name of the directory that contains temporary libtool files.
24294objdir=$objdir
24295
24296# How to create reloadable object files.
24297reload_flag=$lt_reload_flag
24298reload_cmds=$lt_reload_cmds
24299
24300# How to pass a linker flag through the compiler.
24301wl=$lt_lt_prog_compiler_wl_RC
24302
24303# Object file suffix (normally "o").
24304objext="$ac_objext"
24305
24306# Old archive suffix (normally "a").
24307libext="$libext"
24308
24309# Shared library suffix (normally ".so").
24310shrext_cmds='$shrext_cmds'
24311
24312# Executable file suffix (normally "").
24313exeext="$exeext"
24314
24315# Additional compiler flags for building library objects.
24316pic_flag=$lt_lt_prog_compiler_pic_RC
24317pic_mode=$pic_mode
24318
24319# What is the maximum length of a command?
24320max_cmd_len=$lt_cv_sys_max_cmd_len
24321
24322# Does compiler simultaneously support -c and -o options?
24323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24324
24325# Must we lock files when doing compilation ?
24326need_locks=$lt_need_locks
24327
24328# Do we need the lib prefix for modules?
24329need_lib_prefix=$need_lib_prefix
24330
24331# Do we need a version for libraries?
24332need_version=$need_version
24333
24334# Whether dlopen is supported.
24335dlopen_support=$enable_dlopen
24336
24337# Whether dlopen of programs is supported.
24338dlopen_self=$enable_dlopen_self
24339
24340# Whether dlopen of statically linked programs is supported.
24341dlopen_self_static=$enable_dlopen_self_static
24342
24343# Compiler flag to prevent dynamic linking.
24344link_static_flag=$lt_lt_prog_compiler_static_RC
24345
24346# Compiler flag to turn off builtin functions.
24347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24348
24349# Compiler flag to allow reflexive dlopens.
24350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24351
24352# Compiler flag to generate shared objects directly from archives.
24353whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24354
24355# Compiler flag to generate thread-safe objects.
24356thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24357
24358# Library versioning type.
24359version_type=$version_type
24360
24361# Format of library name prefix.
24362libname_spec=$lt_libname_spec
24363
24364# List of archive names.  First name is the real one, the rest are links.
24365# The last name is the one that the linker finds with -lNAME.
24366library_names_spec=$lt_library_names_spec
24367
24368# The coded name of the library, if different from the real name.
24369soname_spec=$lt_soname_spec
24370
24371# Commands used to build and install an old-style archive.
24372RANLIB=$lt_RANLIB
24373old_archive_cmds=$lt_old_archive_cmds_RC
24374old_postinstall_cmds=$lt_old_postinstall_cmds
24375old_postuninstall_cmds=$lt_old_postuninstall_cmds
24376
24377# Create an old-style archive from a shared archive.
24378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24379
24380# Create a temporary old-style archive to link instead of a shared archive.
24381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24382
24383# Commands used to build and install a shared archive.
24384archive_cmds=$lt_archive_cmds_RC
24385archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24386postinstall_cmds=$lt_postinstall_cmds
24387postuninstall_cmds=$lt_postuninstall_cmds
24388
24389# Commands used to build a loadable module (assumed same as above if empty)
24390module_cmds=$lt_module_cmds_RC
24391module_expsym_cmds=$lt_module_expsym_cmds_RC
24392
24393# Commands to strip libraries.
24394old_striplib=$lt_old_striplib
24395striplib=$lt_striplib
24396
24397# Dependencies to place before the objects being linked to create a
24398# shared library.
24399predep_objects=$lt_predep_objects_RC
24400
24401# Dependencies to place after the objects being linked to create a
24402# shared library.
24403postdep_objects=$lt_postdep_objects_RC
24404
24405# Dependencies to place before the objects being linked to create a
24406# shared library.
24407predeps=$lt_predeps_RC
24408
24409# Dependencies to place after the objects being linked to create a
24410# shared library.
24411postdeps=$lt_postdeps_RC
24412
24413# The library search path used internally by the compiler when linking
24414# a shared library.
24415compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24416
24417# Method to check whether dependent libraries are shared objects.
24418deplibs_check_method=$lt_deplibs_check_method
24419
24420# Command to use when deplibs_check_method == file_magic.
24421file_magic_cmd=$lt_file_magic_cmd
24422
24423# Flag that allows shared libraries with undefined symbols to be built.
24424allow_undefined_flag=$lt_allow_undefined_flag_RC
24425
24426# Flag that forces no undefined symbols.
24427no_undefined_flag=$lt_no_undefined_flag_RC
24428
24429# Commands used to finish a libtool library installation in a directory.
24430finish_cmds=$lt_finish_cmds
24431
24432# Same as above, but a single script fragment to be evaled but not shown.
24433finish_eval=$lt_finish_eval
24434
24435# Take the output of nm and produce a listing of raw symbols and C names.
24436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24437
24438# Transform the output of nm in a proper C declaration
24439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24440
24441# Transform the output of nm in a C name address pair
24442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24443
24444# This is the shared library runtime path variable.
24445runpath_var=$runpath_var
24446
24447# This is the shared library path variable.
24448shlibpath_var=$shlibpath_var
24449
24450# Is shlibpath searched before the hard-coded library search path?
24451shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24452
24453# How to hardcode a shared library path into an executable.
24454hardcode_action=$hardcode_action_RC
24455
24456# Whether we should hardcode library paths into libraries.
24457hardcode_into_libs=$hardcode_into_libs
24458
24459# Flag to hardcode \$libdir into a binary during linking.
24460# This must work even if \$libdir does not exist.
24461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24462
24463# If ld is used when linking, flag to hardcode \$libdir into
24464# a binary during linking. This must work even if \$libdir does
24465# not exist.
24466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24467
24468# Whether we need a single -rpath flag with a separated argument.
24469hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24470
24471# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24472# resulting binary.
24473hardcode_direct=$hardcode_direct_RC
24474
24475# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24476# resulting binary.
24477hardcode_minus_L=$hardcode_minus_L_RC
24478
24479# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24480# the resulting binary.
24481hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24482
24483# Set to yes if building a shared library automatically hardcodes DIR into the library
24484# and all subsequent libraries and executables linked against it.
24485hardcode_automatic=$hardcode_automatic_RC
24486
24487# Variables whose values should be saved in libtool wrapper scripts and
24488# restored at relink time.
24489variables_saved_for_relink="$variables_saved_for_relink"
24490
24491# Whether libtool must link a program against all its dependency libraries.
24492link_all_deplibs=$link_all_deplibs_RC
24493
24494# Compile-time system search path for libraries
24495sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24496
24497# Run-time system search path for libraries
24498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24499
24500# Fix the shell variable \$srcfile for the compiler.
24501fix_srcfile_path="$fix_srcfile_path_RC"
24502
24503# Set to yes if exported symbols are required.
24504always_export_symbols=$always_export_symbols_RC
24505
24506# The commands to list exported symbols.
24507export_symbols_cmds=$lt_export_symbols_cmds_RC
24508
24509# The commands to extract the exported symbol list from a shared archive.
24510extract_expsyms_cmds=$lt_extract_expsyms_cmds
24511
24512# Symbols that should not be listed in the preloaded symbols.
24513exclude_expsyms=$lt_exclude_expsyms_RC
24514
24515# Symbols that must always be exported.
24516include_expsyms=$lt_include_expsyms_RC
24517
24518# ### END LIBTOOL TAG CONFIG: $tagname
24519
24520__EOF__
24521
24522
24523else
24524  # If there is no Makefile yet, we rely on a make rule to execute
24525  # `config.status --recheck' to rerun these tests and create the
24526  # libtool script then.
24527  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24528  if test -f "$ltmain_in"; then
24529    test -f Makefile && make "$ltmain"
24530  fi
24531fi
24532
24533
24534ac_ext=c
24535ac_cpp='$CPP $CPPFLAGS'
24536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24538ac_compiler_gnu=$ac_cv_c_compiler_gnu
24539
24540CC="$lt_save_CC"
24541
24542	;;
24543
24544      *)
24545	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24546echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24547   { (exit 1); exit 1; }; }
24548	;;
24549      esac
24550
24551      # Append the new tag name to the list of available tags.
24552      if test -n "$tagname" ; then
24553      available_tags="$available_tags $tagname"
24554    fi
24555    fi
24556  done
24557  IFS="$lt_save_ifs"
24558
24559  # Now substitute the updated list of available tags.
24560  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24561    mv "${ofile}T" "$ofile"
24562    chmod +x "$ofile"
24563  else
24564    rm -f "${ofile}T"
24565    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24566echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24567   { (exit 1); exit 1; }; }
24568  fi
24569fi
24570
24571
24572
24573# This can be used to rebuild libtool when needed
24574LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24575
24576# Always use our own libtool.
24577LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24578
24579# Prevent multiple expansion
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601if test "$lt_cv_dlopen_self" = "yes" ; then
24602
24603cat >>confdefs.h <<\_ACEOF
24604#define CAN_DLOPEN_SELF 1
24605_ACEOF
24606
24607fi
24608
24609etags_version=`$ETAGS --version 2>&1`
24610case "$etags_version" in
24611	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24612	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24613	*) ETAGSFLAGS="" ;;
24614esac
24615ETAGSFLAGS=$ETAGSFLAGS
24616
24617
24618if test "$WITH_LLVMGCCDIR" = "default" ; then
24619  # Extract the first word of "llvm-gcc", so it can be a program name with args.
24620set dummy llvm-gcc; ac_word=$2
24621echo "$as_me:$LINENO: checking for $ac_word" >&5
24622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24623if test "${ac_cv_path_LLVMGCC+set}" = set; then
24624  echo $ECHO_N "(cached) $ECHO_C" >&6
24625else
24626  case $LLVMGCC in
24627  [\\/]* | ?:[\\/]*)
24628  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24629  ;;
24630  *)
24631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24632for as_dir in $PATH
24633do
24634  IFS=$as_save_IFS
24635  test -z "$as_dir" && as_dir=.
24636  for ac_exec_ext in '' $ac_executable_extensions; do
24637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24640    break 2
24641  fi
24642done
24643done
24644
24645  test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24646  ;;
24647esac
24648fi
24649LLVMGCC=$ac_cv_path_LLVMGCC
24650
24651if test -n "$LLVMGCC"; then
24652  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24653echo "${ECHO_T}$LLVMGCC" >&6
24654else
24655  echo "$as_me:$LINENO: result: no" >&5
24656echo "${ECHO_T}no" >&6
24657fi
24658
24659  # Extract the first word of "llvm-g++", so it can be a program name with args.
24660set dummy llvm-g++; ac_word=$2
24661echo "$as_me:$LINENO: checking for $ac_word" >&5
24662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24663if test "${ac_cv_path_LLVMGXX+set}" = set; then
24664  echo $ECHO_N "(cached) $ECHO_C" >&6
24665else
24666  case $LLVMGXX in
24667  [\\/]* | ?:[\\/]*)
24668  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24669  ;;
24670  *)
24671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672for as_dir in $PATH
24673do
24674  IFS=$as_save_IFS
24675  test -z "$as_dir" && as_dir=.
24676  for ac_exec_ext in '' $ac_executable_extensions; do
24677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24680    break 2
24681  fi
24682done
24683done
24684
24685  test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24686  ;;
24687esac
24688fi
24689LLVMGXX=$ac_cv_path_LLVMGXX
24690
24691if test -n "$LLVMGXX"; then
24692  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24693echo "${ECHO_T}$LLVMGXX" >&6
24694else
24695  echo "$as_me:$LINENO: result: no" >&5
24696echo "${ECHO_T}no" >&6
24697fi
24698
24699else
24700  LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24701  LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24702  LLVMGCC=$LLVMGCC
24703
24704  LLVMGXX=$LLVMGXX
24705
24706fi
24707
24708echo "$as_me:$LINENO: checking tool compatibility" >&5
24709echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24710
24711ICC=no
24712IXX=no
24713case $CC in
24714  icc*|icpc*)
24715    ICC=yes
24716    IXX=yes
24717    ;;
24718   *)
24719    ;;
24720esac
24721
24722if test "$GCC" != "yes" && test "$ICC" != "yes"
24723then
24724  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24725echo "$as_me: error: gcc|icc required but not found" >&2;}
24726   { (exit 1); exit 1; }; }
24727fi
24728
24729if test "$GXX" != "yes" && test "$IXX" != "yes"
24730then
24731  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24732echo "$as_me: error: g++|icc required but not found" >&2;}
24733   { (exit 1); exit 1; }; }
24734fi
24735
24736if test "$GCC" = "yes"
24737then
24738  gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24739  if test "$gccmajor" -lt "3"
24740  then
24741    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24742echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24743   { (exit 1); exit 1; }; }
24744  fi
24745fi
24746
24747if test -z "$llvm_cv_gnu_make_command"
24748then
24749  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24750echo "$as_me: error: GNU Make required but not found" >&2;}
24751   { (exit 1); exit 1; }; }
24752fi
24753
24754echo "$as_me:$LINENO: result: ok" >&5
24755echo "${ECHO_T}ok" >&6
24756
24757
24758
24759echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24760echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24761if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24762  echo $ECHO_N "(cached) $ECHO_C" >&6
24763else
24764  ac_check_lib_save_LIBS=$LIBS
24765LIBS="-lelf  $LIBS"
24766cat >conftest.$ac_ext <<_ACEOF
24767/* confdefs.h.  */
24768_ACEOF
24769cat confdefs.h >>conftest.$ac_ext
24770cat >>conftest.$ac_ext <<_ACEOF
24771/* end confdefs.h.  */
24772
24773/* Override any gcc2 internal prototype to avoid an error.  */
24774#ifdef __cplusplus
24775extern "C"
24776#endif
24777/* We use char because int might match the return type of a gcc2
24778   builtin and then its argument prototype would still apply.  */
24779char elf_begin ();
24780int
24781main ()
24782{
24783elf_begin ();
24784  ;
24785  return 0;
24786}
24787_ACEOF
24788rm -f conftest.$ac_objext conftest$ac_exeext
24789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790  (eval $ac_link) 2>conftest.er1
24791  ac_status=$?
24792  grep -v '^ *+' conftest.er1 >conftest.err
24793  rm -f conftest.er1
24794  cat conftest.err >&5
24795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796  (exit $ac_status); } &&
24797	 { ac_try='test -z "$ac_c_werror_flag"
24798			 || test ! -s conftest.err'
24799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800  (eval $ac_try) 2>&5
24801  ac_status=$?
24802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803  (exit $ac_status); }; } &&
24804	 { ac_try='test -s conftest$ac_exeext'
24805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806  (eval $ac_try) 2>&5
24807  ac_status=$?
24808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809  (exit $ac_status); }; }; then
24810  ac_cv_lib_elf_elf_begin=yes
24811else
24812  echo "$as_me: failed program was:" >&5
24813sed 's/^/| /' conftest.$ac_ext >&5
24814
24815ac_cv_lib_elf_elf_begin=no
24816fi
24817rm -f conftest.err conftest.$ac_objext \
24818      conftest$ac_exeext conftest.$ac_ext
24819LIBS=$ac_check_lib_save_LIBS
24820fi
24821echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24822echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24823if test $ac_cv_lib_elf_elf_begin = yes; then
24824  cat >>confdefs.h <<_ACEOF
24825#define HAVE_LIBELF 1
24826_ACEOF
24827
24828  LIBS="-lelf $LIBS"
24829
24830fi
24831
24832
24833echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24834echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24835if test "${ac_cv_search_lt_dlopen+set}" = set; then
24836  echo $ECHO_N "(cached) $ECHO_C" >&6
24837else
24838  ac_func_search_save_LIBS=$LIBS
24839ac_cv_search_lt_dlopen=no
24840cat >conftest.$ac_ext <<_ACEOF
24841/* confdefs.h.  */
24842_ACEOF
24843cat confdefs.h >>conftest.$ac_ext
24844cat >>conftest.$ac_ext <<_ACEOF
24845/* end confdefs.h.  */
24846
24847/* Override any gcc2 internal prototype to avoid an error.  */
24848#ifdef __cplusplus
24849extern "C"
24850#endif
24851/* We use char because int might match the return type of a gcc2
24852   builtin and then its argument prototype would still apply.  */
24853char lt_dlopen ();
24854int
24855main ()
24856{
24857lt_dlopen ();
24858  ;
24859  return 0;
24860}
24861_ACEOF
24862rm -f conftest.$ac_objext conftest$ac_exeext
24863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24864  (eval $ac_link) 2>conftest.er1
24865  ac_status=$?
24866  grep -v '^ *+' conftest.er1 >conftest.err
24867  rm -f conftest.er1
24868  cat conftest.err >&5
24869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870  (exit $ac_status); } &&
24871	 { ac_try='test -z "$ac_c_werror_flag"
24872			 || test ! -s conftest.err'
24873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874  (eval $ac_try) 2>&5
24875  ac_status=$?
24876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877  (exit $ac_status); }; } &&
24878	 { ac_try='test -s conftest$ac_exeext'
24879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880  (eval $ac_try) 2>&5
24881  ac_status=$?
24882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883  (exit $ac_status); }; }; then
24884  ac_cv_search_lt_dlopen="none required"
24885else
24886  echo "$as_me: failed program was:" >&5
24887sed 's/^/| /' conftest.$ac_ext >&5
24888
24889fi
24890rm -f conftest.err conftest.$ac_objext \
24891      conftest$ac_exeext conftest.$ac_ext
24892if test "$ac_cv_search_lt_dlopen" = no; then
24893  for ac_lib in ltdl; do
24894    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24895    cat >conftest.$ac_ext <<_ACEOF
24896/* confdefs.h.  */
24897_ACEOF
24898cat confdefs.h >>conftest.$ac_ext
24899cat >>conftest.$ac_ext <<_ACEOF
24900/* end confdefs.h.  */
24901
24902/* Override any gcc2 internal prototype to avoid an error.  */
24903#ifdef __cplusplus
24904extern "C"
24905#endif
24906/* We use char because int might match the return type of a gcc2
24907   builtin and then its argument prototype would still apply.  */
24908char lt_dlopen ();
24909int
24910main ()
24911{
24912lt_dlopen ();
24913  ;
24914  return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
24918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24919  (eval $ac_link) 2>conftest.er1
24920  ac_status=$?
24921  grep -v '^ *+' conftest.er1 >conftest.err
24922  rm -f conftest.er1
24923  cat conftest.err >&5
24924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925  (exit $ac_status); } &&
24926	 { ac_try='test -z "$ac_c_werror_flag"
24927			 || test ! -s conftest.err'
24928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929  (eval $ac_try) 2>&5
24930  ac_status=$?
24931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932  (exit $ac_status); }; } &&
24933	 { ac_try='test -s conftest$ac_exeext'
24934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935  (eval $ac_try) 2>&5
24936  ac_status=$?
24937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938  (exit $ac_status); }; }; then
24939  ac_cv_search_lt_dlopen="-l$ac_lib"
24940break
24941else
24942  echo "$as_me: failed program was:" >&5
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
24945fi
24946rm -f conftest.err conftest.$ac_objext \
24947      conftest$ac_exeext conftest.$ac_ext
24948  done
24949fi
24950LIBS=$ac_func_search_save_LIBS
24951fi
24952echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24953echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24954if test "$ac_cv_search_lt_dlopen" != no; then
24955  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24956
24957cat >>confdefs.h <<\_ACEOF
24958#define HAVE_LT_DLOPEN 1
24959_ACEOF
24960
24961else
24962  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24963                           not be available" >&5
24964echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24965                           not be available" >&2;}
24966fi
24967
24968
24969echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24970echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24971if test "${ac_cv_search_dlopen+set}" = set; then
24972  echo $ECHO_N "(cached) $ECHO_C" >&6
24973else
24974  ac_func_search_save_LIBS=$LIBS
24975ac_cv_search_dlopen=no
24976cat >conftest.$ac_ext <<_ACEOF
24977/* confdefs.h.  */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h.  */
24982
24983/* Override any gcc2 internal prototype to avoid an error.  */
24984#ifdef __cplusplus
24985extern "C"
24986#endif
24987/* We use char because int might match the return type of a gcc2
24988   builtin and then its argument prototype would still apply.  */
24989char dlopen ();
24990int
24991main ()
24992{
24993dlopen ();
24994  ;
24995  return 0;
24996}
24997_ACEOF
24998rm -f conftest.$ac_objext conftest$ac_exeext
24999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000  (eval $ac_link) 2>conftest.er1
25001  ac_status=$?
25002  grep -v '^ *+' conftest.er1 >conftest.err
25003  rm -f conftest.er1
25004  cat conftest.err >&5
25005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006  (exit $ac_status); } &&
25007	 { ac_try='test -z "$ac_c_werror_flag"
25008			 || test ! -s conftest.err'
25009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010  (eval $ac_try) 2>&5
25011  ac_status=$?
25012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013  (exit $ac_status); }; } &&
25014	 { ac_try='test -s conftest$ac_exeext'
25015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016  (eval $ac_try) 2>&5
25017  ac_status=$?
25018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019  (exit $ac_status); }; }; then
25020  ac_cv_search_dlopen="none required"
25021else
25022  echo "$as_me: failed program was:" >&5
25023sed 's/^/| /' conftest.$ac_ext >&5
25024
25025fi
25026rm -f conftest.err conftest.$ac_objext \
25027      conftest$ac_exeext conftest.$ac_ext
25028if test "$ac_cv_search_dlopen" = no; then
25029  for ac_lib in dl; do
25030    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25031    cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h.  */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h.  */
25037
25038/* Override any gcc2 internal prototype to avoid an error.  */
25039#ifdef __cplusplus
25040extern "C"
25041#endif
25042/* We use char because int might match the return type of a gcc2
25043   builtin and then its argument prototype would still apply.  */
25044char dlopen ();
25045int
25046main ()
25047{
25048dlopen ();
25049  ;
25050  return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext conftest$ac_exeext
25054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25055  (eval $ac_link) 2>conftest.er1
25056  ac_status=$?
25057  grep -v '^ *+' conftest.er1 >conftest.err
25058  rm -f conftest.er1
25059  cat conftest.err >&5
25060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061  (exit $ac_status); } &&
25062	 { ac_try='test -z "$ac_c_werror_flag"
25063			 || test ! -s conftest.err'
25064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065  (eval $ac_try) 2>&5
25066  ac_status=$?
25067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068  (exit $ac_status); }; } &&
25069	 { ac_try='test -s conftest$ac_exeext'
25070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071  (eval $ac_try) 2>&5
25072  ac_status=$?
25073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074  (exit $ac_status); }; }; then
25075  ac_cv_search_dlopen="-l$ac_lib"
25076break
25077else
25078  echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081fi
25082rm -f conftest.err conftest.$ac_objext \
25083      conftest$ac_exeext conftest.$ac_ext
25084  done
25085fi
25086LIBS=$ac_func_search_save_LIBS
25087fi
25088echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25089echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25090if test "$ac_cv_search_dlopen" != no; then
25091  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25092
25093cat >>confdefs.h <<\_ACEOF
25094#define HAVE_DLOPEN 1
25095_ACEOF
25096
25097else
25098  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25099echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25100fi
25101
25102
25103echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25104echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25105if test "${ac_cv_search_mallinfo+set}" = set; then
25106  echo $ECHO_N "(cached) $ECHO_C" >&6
25107else
25108  ac_func_search_save_LIBS=$LIBS
25109ac_cv_search_mallinfo=no
25110cat >conftest.$ac_ext <<_ACEOF
25111/* confdefs.h.  */
25112_ACEOF
25113cat confdefs.h >>conftest.$ac_ext
25114cat >>conftest.$ac_ext <<_ACEOF
25115/* end confdefs.h.  */
25116
25117/* Override any gcc2 internal prototype to avoid an error.  */
25118#ifdef __cplusplus
25119extern "C"
25120#endif
25121/* We use char because int might match the return type of a gcc2
25122   builtin and then its argument prototype would still apply.  */
25123char mallinfo ();
25124int
25125main ()
25126{
25127mallinfo ();
25128  ;
25129  return 0;
25130}
25131_ACEOF
25132rm -f conftest.$ac_objext conftest$ac_exeext
25133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134  (eval $ac_link) 2>conftest.er1
25135  ac_status=$?
25136  grep -v '^ *+' conftest.er1 >conftest.err
25137  rm -f conftest.er1
25138  cat conftest.err >&5
25139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140  (exit $ac_status); } &&
25141	 { ac_try='test -z "$ac_c_werror_flag"
25142			 || test ! -s conftest.err'
25143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144  (eval $ac_try) 2>&5
25145  ac_status=$?
25146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147  (exit $ac_status); }; } &&
25148	 { ac_try='test -s conftest$ac_exeext'
25149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150  (eval $ac_try) 2>&5
25151  ac_status=$?
25152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153  (exit $ac_status); }; }; then
25154  ac_cv_search_mallinfo="none required"
25155else
25156  echo "$as_me: failed program was:" >&5
25157sed 's/^/| /' conftest.$ac_ext >&5
25158
25159fi
25160rm -f conftest.err conftest.$ac_objext \
25161      conftest$ac_exeext conftest.$ac_ext
25162if test "$ac_cv_search_mallinfo" = no; then
25163  for ac_lib in malloc; do
25164    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25165    cat >conftest.$ac_ext <<_ACEOF
25166/* confdefs.h.  */
25167_ACEOF
25168cat confdefs.h >>conftest.$ac_ext
25169cat >>conftest.$ac_ext <<_ACEOF
25170/* end confdefs.h.  */
25171
25172/* Override any gcc2 internal prototype to avoid an error.  */
25173#ifdef __cplusplus
25174extern "C"
25175#endif
25176/* We use char because int might match the return type of a gcc2
25177   builtin and then its argument prototype would still apply.  */
25178char mallinfo ();
25179int
25180main ()
25181{
25182mallinfo ();
25183  ;
25184  return 0;
25185}
25186_ACEOF
25187rm -f conftest.$ac_objext conftest$ac_exeext
25188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25189  (eval $ac_link) 2>conftest.er1
25190  ac_status=$?
25191  grep -v '^ *+' conftest.er1 >conftest.err
25192  rm -f conftest.er1
25193  cat conftest.err >&5
25194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195  (exit $ac_status); } &&
25196	 { ac_try='test -z "$ac_c_werror_flag"
25197			 || test ! -s conftest.err'
25198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199  (eval $ac_try) 2>&5
25200  ac_status=$?
25201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202  (exit $ac_status); }; } &&
25203	 { ac_try='test -s conftest$ac_exeext'
25204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205  (eval $ac_try) 2>&5
25206  ac_status=$?
25207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208  (exit $ac_status); }; }; then
25209  ac_cv_search_mallinfo="-l$ac_lib"
25210break
25211else
25212  echo "$as_me: failed program was:" >&5
25213sed 's/^/| /' conftest.$ac_ext >&5
25214
25215fi
25216rm -f conftest.err conftest.$ac_objext \
25217      conftest$ac_exeext conftest.$ac_ext
25218  done
25219fi
25220LIBS=$ac_func_search_save_LIBS
25221fi
25222echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25223echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25224if test "$ac_cv_search_mallinfo" != no; then
25225  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25226
25227cat >>confdefs.h <<\_ACEOF
25228#define HAVE_MALLINFO 1
25229_ACEOF
25230
25231fi
25232
25233
25234echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25235echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25236if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25237  echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239  ac_func_search_save_LIBS=$LIBS
25240ac_cv_search_pthread_mutex_lock=no
25241cat >conftest.$ac_ext <<_ACEOF
25242/* confdefs.h.  */
25243_ACEOF
25244cat confdefs.h >>conftest.$ac_ext
25245cat >>conftest.$ac_ext <<_ACEOF
25246/* end confdefs.h.  */
25247
25248/* Override any gcc2 internal prototype to avoid an error.  */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252/* We use char because int might match the return type of a gcc2
25253   builtin and then its argument prototype would still apply.  */
25254char pthread_mutex_lock ();
25255int
25256main ()
25257{
25258pthread_mutex_lock ();
25259  ;
25260  return 0;
25261}
25262_ACEOF
25263rm -f conftest.$ac_objext conftest$ac_exeext
25264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25265  (eval $ac_link) 2>conftest.er1
25266  ac_status=$?
25267  grep -v '^ *+' conftest.er1 >conftest.err
25268  rm -f conftest.er1
25269  cat conftest.err >&5
25270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271  (exit $ac_status); } &&
25272	 { ac_try='test -z "$ac_c_werror_flag"
25273			 || test ! -s conftest.err'
25274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275  (eval $ac_try) 2>&5
25276  ac_status=$?
25277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278  (exit $ac_status); }; } &&
25279	 { ac_try='test -s conftest$ac_exeext'
25280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281  (eval $ac_try) 2>&5
25282  ac_status=$?
25283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284  (exit $ac_status); }; }; then
25285  ac_cv_search_pthread_mutex_lock="none required"
25286else
25287  echo "$as_me: failed program was:" >&5
25288sed 's/^/| /' conftest.$ac_ext >&5
25289
25290fi
25291rm -f conftest.err conftest.$ac_objext \
25292      conftest$ac_exeext conftest.$ac_ext
25293if test "$ac_cv_search_pthread_mutex_lock" = no; then
25294  for ac_lib in pthread; do
25295    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25296    cat >conftest.$ac_ext <<_ACEOF
25297/* confdefs.h.  */
25298_ACEOF
25299cat confdefs.h >>conftest.$ac_ext
25300cat >>conftest.$ac_ext <<_ACEOF
25301/* end confdefs.h.  */
25302
25303/* Override any gcc2 internal prototype to avoid an error.  */
25304#ifdef __cplusplus
25305extern "C"
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308   builtin and then its argument prototype would still apply.  */
25309char pthread_mutex_lock ();
25310int
25311main ()
25312{
25313pthread_mutex_lock ();
25314  ;
25315  return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext conftest$ac_exeext
25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320  (eval $ac_link) 2>conftest.er1
25321  ac_status=$?
25322  grep -v '^ *+' conftest.er1 >conftest.err
25323  rm -f conftest.er1
25324  cat conftest.err >&5
25325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326  (exit $ac_status); } &&
25327	 { ac_try='test -z "$ac_c_werror_flag"
25328			 || test ! -s conftest.err'
25329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330  (eval $ac_try) 2>&5
25331  ac_status=$?
25332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333  (exit $ac_status); }; } &&
25334	 { ac_try='test -s conftest$ac_exeext'
25335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336  (eval $ac_try) 2>&5
25337  ac_status=$?
25338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339  (exit $ac_status); }; }; then
25340  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25341break
25342else
25343  echo "$as_me: failed program was:" >&5
25344sed 's/^/| /' conftest.$ac_ext >&5
25345
25346fi
25347rm -f conftest.err conftest.$ac_objext \
25348      conftest$ac_exeext conftest.$ac_ext
25349  done
25350fi
25351LIBS=$ac_func_search_save_LIBS
25352fi
25353echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25354echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25355if test "$ac_cv_search_pthread_mutex_lock" != no; then
25356  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25357
25358cat >>confdefs.h <<\_ACEOF
25359#define HAVE_PTHREAD_MUTEX_LOCK 1
25360_ACEOF
25361
25362fi
25363
25364
25365
25366
25367
25368
25369
25370
25371ac_header_dirent=no
25372for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25373  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25374echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25375echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25376if eval "test \"\${$as_ac_Header+set}\" = set"; then
25377  echo $ECHO_N "(cached) $ECHO_C" >&6
25378else
25379  cat >conftest.$ac_ext <<_ACEOF
25380/* confdefs.h.  */
25381_ACEOF
25382cat confdefs.h >>conftest.$ac_ext
25383cat >>conftest.$ac_ext <<_ACEOF
25384/* end confdefs.h.  */
25385#include <sys/types.h>
25386#include <$ac_hdr>
25387
25388int
25389main ()
25390{
25391if ((DIR *) 0)
25392return 0;
25393  ;
25394  return 0;
25395}
25396_ACEOF
25397rm -f conftest.$ac_objext
25398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25399  (eval $ac_compile) 2>conftest.er1
25400  ac_status=$?
25401  grep -v '^ *+' conftest.er1 >conftest.err
25402  rm -f conftest.er1
25403  cat conftest.err >&5
25404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405  (exit $ac_status); } &&
25406	 { ac_try='test -z "$ac_c_werror_flag"
25407			 || test ! -s conftest.err'
25408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409  (eval $ac_try) 2>&5
25410  ac_status=$?
25411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412  (exit $ac_status); }; } &&
25413	 { ac_try='test -s conftest.$ac_objext'
25414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415  (eval $ac_try) 2>&5
25416  ac_status=$?
25417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418  (exit $ac_status); }; }; then
25419  eval "$as_ac_Header=yes"
25420else
25421  echo "$as_me: failed program was:" >&5
25422sed 's/^/| /' conftest.$ac_ext >&5
25423
25424eval "$as_ac_Header=no"
25425fi
25426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25427fi
25428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25430if test `eval echo '${'$as_ac_Header'}'` = yes; then
25431  cat >>confdefs.h <<_ACEOF
25432#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25433_ACEOF
25434
25435ac_header_dirent=$ac_hdr; break
25436fi
25437
25438done
25439# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25440if test $ac_header_dirent = dirent.h; then
25441  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25442echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25443if test "${ac_cv_search_opendir+set}" = set; then
25444  echo $ECHO_N "(cached) $ECHO_C" >&6
25445else
25446  ac_func_search_save_LIBS=$LIBS
25447ac_cv_search_opendir=no
25448cat >conftest.$ac_ext <<_ACEOF
25449/* confdefs.h.  */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h.  */
25454
25455/* Override any gcc2 internal prototype to avoid an error.  */
25456#ifdef __cplusplus
25457extern "C"
25458#endif
25459/* We use char because int might match the return type of a gcc2
25460   builtin and then its argument prototype would still apply.  */
25461char opendir ();
25462int
25463main ()
25464{
25465opendir ();
25466  ;
25467  return 0;
25468}
25469_ACEOF
25470rm -f conftest.$ac_objext conftest$ac_exeext
25471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472  (eval $ac_link) 2>conftest.er1
25473  ac_status=$?
25474  grep -v '^ *+' conftest.er1 >conftest.err
25475  rm -f conftest.er1
25476  cat conftest.err >&5
25477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478  (exit $ac_status); } &&
25479	 { ac_try='test -z "$ac_c_werror_flag"
25480			 || test ! -s conftest.err'
25481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482  (eval $ac_try) 2>&5
25483  ac_status=$?
25484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485  (exit $ac_status); }; } &&
25486	 { ac_try='test -s conftest$ac_exeext'
25487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488  (eval $ac_try) 2>&5
25489  ac_status=$?
25490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491  (exit $ac_status); }; }; then
25492  ac_cv_search_opendir="none required"
25493else
25494  echo "$as_me: failed program was:" >&5
25495sed 's/^/| /' conftest.$ac_ext >&5
25496
25497fi
25498rm -f conftest.err conftest.$ac_objext \
25499      conftest$ac_exeext conftest.$ac_ext
25500if test "$ac_cv_search_opendir" = no; then
25501  for ac_lib in dir; do
25502    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25503    cat >conftest.$ac_ext <<_ACEOF
25504/* confdefs.h.  */
25505_ACEOF
25506cat confdefs.h >>conftest.$ac_ext
25507cat >>conftest.$ac_ext <<_ACEOF
25508/* end confdefs.h.  */
25509
25510/* Override any gcc2 internal prototype to avoid an error.  */
25511#ifdef __cplusplus
25512extern "C"
25513#endif
25514/* We use char because int might match the return type of a gcc2
25515   builtin and then its argument prototype would still apply.  */
25516char opendir ();
25517int
25518main ()
25519{
25520opendir ();
25521  ;
25522  return 0;
25523}
25524_ACEOF
25525rm -f conftest.$ac_objext conftest$ac_exeext
25526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527  (eval $ac_link) 2>conftest.er1
25528  ac_status=$?
25529  grep -v '^ *+' conftest.er1 >conftest.err
25530  rm -f conftest.er1
25531  cat conftest.err >&5
25532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533  (exit $ac_status); } &&
25534	 { ac_try='test -z "$ac_c_werror_flag"
25535			 || test ! -s conftest.err'
25536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537  (eval $ac_try) 2>&5
25538  ac_status=$?
25539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540  (exit $ac_status); }; } &&
25541	 { ac_try='test -s conftest$ac_exeext'
25542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543  (eval $ac_try) 2>&5
25544  ac_status=$?
25545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546  (exit $ac_status); }; }; then
25547  ac_cv_search_opendir="-l$ac_lib"
25548break
25549else
25550  echo "$as_me: failed program was:" >&5
25551sed 's/^/| /' conftest.$ac_ext >&5
25552
25553fi
25554rm -f conftest.err conftest.$ac_objext \
25555      conftest$ac_exeext conftest.$ac_ext
25556  done
25557fi
25558LIBS=$ac_func_search_save_LIBS
25559fi
25560echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25561echo "${ECHO_T}$ac_cv_search_opendir" >&6
25562if test "$ac_cv_search_opendir" != no; then
25563  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25564
25565fi
25566
25567else
25568  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25569echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25570if test "${ac_cv_search_opendir+set}" = set; then
25571  echo $ECHO_N "(cached) $ECHO_C" >&6
25572else
25573  ac_func_search_save_LIBS=$LIBS
25574ac_cv_search_opendir=no
25575cat >conftest.$ac_ext <<_ACEOF
25576/* confdefs.h.  */
25577_ACEOF
25578cat confdefs.h >>conftest.$ac_ext
25579cat >>conftest.$ac_ext <<_ACEOF
25580/* end confdefs.h.  */
25581
25582/* Override any gcc2 internal prototype to avoid an error.  */
25583#ifdef __cplusplus
25584extern "C"
25585#endif
25586/* We use char because int might match the return type of a gcc2
25587   builtin and then its argument prototype would still apply.  */
25588char opendir ();
25589int
25590main ()
25591{
25592opendir ();
25593  ;
25594  return 0;
25595}
25596_ACEOF
25597rm -f conftest.$ac_objext conftest$ac_exeext
25598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599  (eval $ac_link) 2>conftest.er1
25600  ac_status=$?
25601  grep -v '^ *+' conftest.er1 >conftest.err
25602  rm -f conftest.er1
25603  cat conftest.err >&5
25604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605  (exit $ac_status); } &&
25606	 { ac_try='test -z "$ac_c_werror_flag"
25607			 || test ! -s conftest.err'
25608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609  (eval $ac_try) 2>&5
25610  ac_status=$?
25611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612  (exit $ac_status); }; } &&
25613	 { ac_try='test -s conftest$ac_exeext'
25614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615  (eval $ac_try) 2>&5
25616  ac_status=$?
25617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618  (exit $ac_status); }; }; then
25619  ac_cv_search_opendir="none required"
25620else
25621  echo "$as_me: failed program was:" >&5
25622sed 's/^/| /' conftest.$ac_ext >&5
25623
25624fi
25625rm -f conftest.err conftest.$ac_objext \
25626      conftest$ac_exeext conftest.$ac_ext
25627if test "$ac_cv_search_opendir" = no; then
25628  for ac_lib in x; do
25629    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25630    cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h.  */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h.  */
25636
25637/* Override any gcc2 internal prototype to avoid an error.  */
25638#ifdef __cplusplus
25639extern "C"
25640#endif
25641/* We use char because int might match the return type of a gcc2
25642   builtin and then its argument prototype would still apply.  */
25643char opendir ();
25644int
25645main ()
25646{
25647opendir ();
25648  ;
25649  return 0;
25650}
25651_ACEOF
25652rm -f conftest.$ac_objext conftest$ac_exeext
25653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654  (eval $ac_link) 2>conftest.er1
25655  ac_status=$?
25656  grep -v '^ *+' conftest.er1 >conftest.err
25657  rm -f conftest.er1
25658  cat conftest.err >&5
25659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660  (exit $ac_status); } &&
25661	 { ac_try='test -z "$ac_c_werror_flag"
25662			 || test ! -s conftest.err'
25663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664  (eval $ac_try) 2>&5
25665  ac_status=$?
25666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667  (exit $ac_status); }; } &&
25668	 { ac_try='test -s conftest$ac_exeext'
25669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670  (eval $ac_try) 2>&5
25671  ac_status=$?
25672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673  (exit $ac_status); }; }; then
25674  ac_cv_search_opendir="-l$ac_lib"
25675break
25676else
25677  echo "$as_me: failed program was:" >&5
25678sed 's/^/| /' conftest.$ac_ext >&5
25679
25680fi
25681rm -f conftest.err conftest.$ac_objext \
25682      conftest$ac_exeext conftest.$ac_ext
25683  done
25684fi
25685LIBS=$ac_func_search_save_LIBS
25686fi
25687echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25688echo "${ECHO_T}$ac_cv_search_opendir" >&6
25689if test "$ac_cv_search_opendir" != no; then
25690  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25691
25692fi
25693
25694fi
25695
25696echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25697echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25698if test "${ac_cv_header_mmap_anon+set}" = set; then
25699  echo $ECHO_N "(cached) $ECHO_C" >&6
25700else
25701   ac_ext=c
25702ac_cpp='$CPP $CPPFLAGS'
25703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25705ac_compiler_gnu=$ac_cv_c_compiler_gnu
25706
25707  cat >conftest.$ac_ext <<_ACEOF
25708/* confdefs.h.  */
25709_ACEOF
25710cat confdefs.h >>conftest.$ac_ext
25711cat >>conftest.$ac_ext <<_ACEOF
25712/* end confdefs.h.  */
25713#include <sys/mman.h>
25714#include <unistd.h>
25715#include <fcntl.h>
25716int
25717main ()
25718{
25719mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25720  ;
25721  return 0;
25722}
25723_ACEOF
25724rm -f conftest.$ac_objext
25725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726  (eval $ac_compile) 2>conftest.er1
25727  ac_status=$?
25728  grep -v '^ *+' conftest.er1 >conftest.err
25729  rm -f conftest.er1
25730  cat conftest.err >&5
25731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732  (exit $ac_status); } &&
25733	 { ac_try='test -z "$ac_c_werror_flag"
25734			 || test ! -s conftest.err'
25735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736  (eval $ac_try) 2>&5
25737  ac_status=$?
25738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739  (exit $ac_status); }; } &&
25740	 { ac_try='test -s conftest.$ac_objext'
25741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742  (eval $ac_try) 2>&5
25743  ac_status=$?
25744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745  (exit $ac_status); }; }; then
25746  ac_cv_header_mmap_anon=yes
25747else
25748  echo "$as_me: failed program was:" >&5
25749sed 's/^/| /' conftest.$ac_ext >&5
25750
25751ac_cv_header_mmap_anon=no
25752fi
25753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754  ac_ext=c
25755ac_cpp='$CPP $CPPFLAGS'
25756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25758ac_compiler_gnu=$ac_cv_c_compiler_gnu
25759
25760
25761fi
25762echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25763echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25764if test "$ac_cv_header_mmap_anon" = yes; then
25765
25766cat >>confdefs.h <<\_ACEOF
25767#define HAVE_MMAP_ANONYMOUS 1
25768_ACEOF
25769
25770fi
25771
25772echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25773echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25774if test "${ac_cv_header_stat_broken+set}" = set; then
25775  echo $ECHO_N "(cached) $ECHO_C" >&6
25776else
25777  cat >conftest.$ac_ext <<_ACEOF
25778/* confdefs.h.  */
25779_ACEOF
25780cat confdefs.h >>conftest.$ac_ext
25781cat >>conftest.$ac_ext <<_ACEOF
25782/* end confdefs.h.  */
25783#include <sys/types.h>
25784#include <sys/stat.h>
25785
25786#if defined(S_ISBLK) && defined(S_IFDIR)
25787# if S_ISBLK (S_IFDIR)
25788You lose.
25789# endif
25790#endif
25791
25792#if defined(S_ISBLK) && defined(S_IFCHR)
25793# if S_ISBLK (S_IFCHR)
25794You lose.
25795# endif
25796#endif
25797
25798#if defined(S_ISLNK) && defined(S_IFREG)
25799# if S_ISLNK (S_IFREG)
25800You lose.
25801# endif
25802#endif
25803
25804#if defined(S_ISSOCK) && defined(S_IFREG)
25805# if S_ISSOCK (S_IFREG)
25806You lose.
25807# endif
25808#endif
25809
25810_ACEOF
25811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25812  $EGREP "You lose" >/dev/null 2>&1; then
25813  ac_cv_header_stat_broken=yes
25814else
25815  ac_cv_header_stat_broken=no
25816fi
25817rm -f conftest*
25818
25819fi
25820echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25821echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25822if test $ac_cv_header_stat_broken = yes; then
25823
25824cat >>confdefs.h <<\_ACEOF
25825#define STAT_MACROS_BROKEN 1
25826_ACEOF
25827
25828fi
25829
25830echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25831echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25832if test "${ac_cv_header_stdc+set}" = set; then
25833  echo $ECHO_N "(cached) $ECHO_C" >&6
25834else
25835  cat >conftest.$ac_ext <<_ACEOF
25836/* confdefs.h.  */
25837_ACEOF
25838cat confdefs.h >>conftest.$ac_ext
25839cat >>conftest.$ac_ext <<_ACEOF
25840/* end confdefs.h.  */
25841#include <stdlib.h>
25842#include <stdarg.h>
25843#include <string.h>
25844#include <float.h>
25845
25846int
25847main ()
25848{
25849
25850  ;
25851  return 0;
25852}
25853_ACEOF
25854rm -f conftest.$ac_objext
25855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856  (eval $ac_compile) 2>conftest.er1
25857  ac_status=$?
25858  grep -v '^ *+' conftest.er1 >conftest.err
25859  rm -f conftest.er1
25860  cat conftest.err >&5
25861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862  (exit $ac_status); } &&
25863	 { ac_try='test -z "$ac_c_werror_flag"
25864			 || test ! -s conftest.err'
25865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866  (eval $ac_try) 2>&5
25867  ac_status=$?
25868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869  (exit $ac_status); }; } &&
25870	 { ac_try='test -s conftest.$ac_objext'
25871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872  (eval $ac_try) 2>&5
25873  ac_status=$?
25874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875  (exit $ac_status); }; }; then
25876  ac_cv_header_stdc=yes
25877else
25878  echo "$as_me: failed program was:" >&5
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
25881ac_cv_header_stdc=no
25882fi
25883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884
25885if test $ac_cv_header_stdc = yes; then
25886  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25887  cat >conftest.$ac_ext <<_ACEOF
25888/* confdefs.h.  */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h.  */
25893#include <string.h>
25894
25895_ACEOF
25896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25897  $EGREP "memchr" >/dev/null 2>&1; then
25898  :
25899else
25900  ac_cv_header_stdc=no
25901fi
25902rm -f conftest*
25903
25904fi
25905
25906if test $ac_cv_header_stdc = yes; then
25907  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25908  cat >conftest.$ac_ext <<_ACEOF
25909/* confdefs.h.  */
25910_ACEOF
25911cat confdefs.h >>conftest.$ac_ext
25912cat >>conftest.$ac_ext <<_ACEOF
25913/* end confdefs.h.  */
25914#include <stdlib.h>
25915
25916_ACEOF
25917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25918  $EGREP "free" >/dev/null 2>&1; then
25919  :
25920else
25921  ac_cv_header_stdc=no
25922fi
25923rm -f conftest*
25924
25925fi
25926
25927if test $ac_cv_header_stdc = yes; then
25928  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25929  if test "$cross_compiling" = yes; then
25930  :
25931else
25932  cat >conftest.$ac_ext <<_ACEOF
25933/* confdefs.h.  */
25934_ACEOF
25935cat confdefs.h >>conftest.$ac_ext
25936cat >>conftest.$ac_ext <<_ACEOF
25937/* end confdefs.h.  */
25938#include <ctype.h>
25939#if ((' ' & 0x0FF) == 0x020)
25940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25942#else
25943# define ISLOWER(c) \
25944		   (('a' <= (c) && (c) <= 'i') \
25945		     || ('j' <= (c) && (c) <= 'r') \
25946		     || ('s' <= (c) && (c) <= 'z'))
25947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25948#endif
25949
25950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25951int
25952main ()
25953{
25954  int i;
25955  for (i = 0; i < 256; i++)
25956    if (XOR (islower (i), ISLOWER (i))
25957	|| toupper (i) != TOUPPER (i))
25958      exit(2);
25959  exit (0);
25960}
25961_ACEOF
25962rm -f conftest$ac_exeext
25963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25964  (eval $ac_link) 2>&5
25965  ac_status=$?
25966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969  (eval $ac_try) 2>&5
25970  ac_status=$?
25971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972  (exit $ac_status); }; }; then
25973  :
25974else
25975  echo "$as_me: program exited with status $ac_status" >&5
25976echo "$as_me: failed program was:" >&5
25977sed 's/^/| /' conftest.$ac_ext >&5
25978
25979( exit $ac_status )
25980ac_cv_header_stdc=no
25981fi
25982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25983fi
25984fi
25985fi
25986echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25987echo "${ECHO_T}$ac_cv_header_stdc" >&6
25988if test $ac_cv_header_stdc = yes; then
25989
25990cat >>confdefs.h <<\_ACEOF
25991#define STDC_HEADERS 1
25992_ACEOF
25993
25994fi
25995
25996echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25997echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25998if test "${ac_cv_header_sys_wait_h+set}" = set; then
25999  echo $ECHO_N "(cached) $ECHO_C" >&6
26000else
26001  cat >conftest.$ac_ext <<_ACEOF
26002/* confdefs.h.  */
26003_ACEOF
26004cat confdefs.h >>conftest.$ac_ext
26005cat >>conftest.$ac_ext <<_ACEOF
26006/* end confdefs.h.  */
26007#include <sys/types.h>
26008#include <sys/wait.h>
26009#ifndef WEXITSTATUS
26010# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26011#endif
26012#ifndef WIFEXITED
26013# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26014#endif
26015
26016int
26017main ()
26018{
26019  int s;
26020  wait (&s);
26021  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26022  ;
26023  return 0;
26024}
26025_ACEOF
26026rm -f conftest.$ac_objext
26027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26028  (eval $ac_compile) 2>conftest.er1
26029  ac_status=$?
26030  grep -v '^ *+' conftest.er1 >conftest.err
26031  rm -f conftest.er1
26032  cat conftest.err >&5
26033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034  (exit $ac_status); } &&
26035	 { ac_try='test -z "$ac_c_werror_flag"
26036			 || test ! -s conftest.err'
26037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038  (eval $ac_try) 2>&5
26039  ac_status=$?
26040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041  (exit $ac_status); }; } &&
26042	 { ac_try='test -s conftest.$ac_objext'
26043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044  (eval $ac_try) 2>&5
26045  ac_status=$?
26046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047  (exit $ac_status); }; }; then
26048  ac_cv_header_sys_wait_h=yes
26049else
26050  echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053ac_cv_header_sys_wait_h=no
26054fi
26055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056fi
26057echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26058echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26059if test $ac_cv_header_sys_wait_h = yes; then
26060
26061cat >>confdefs.h <<\_ACEOF
26062#define HAVE_SYS_WAIT_H 1
26063_ACEOF
26064
26065fi
26066
26067echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26068echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26069if test "${ac_cv_header_time+set}" = set; then
26070  echo $ECHO_N "(cached) $ECHO_C" >&6
26071else
26072  cat >conftest.$ac_ext <<_ACEOF
26073/* confdefs.h.  */
26074_ACEOF
26075cat confdefs.h >>conftest.$ac_ext
26076cat >>conftest.$ac_ext <<_ACEOF
26077/* end confdefs.h.  */
26078#include <sys/types.h>
26079#include <sys/time.h>
26080#include <time.h>
26081
26082int
26083main ()
26084{
26085if ((struct tm *) 0)
26086return 0;
26087  ;
26088  return 0;
26089}
26090_ACEOF
26091rm -f conftest.$ac_objext
26092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093  (eval $ac_compile) 2>conftest.er1
26094  ac_status=$?
26095  grep -v '^ *+' conftest.er1 >conftest.err
26096  rm -f conftest.er1
26097  cat conftest.err >&5
26098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099  (exit $ac_status); } &&
26100	 { ac_try='test -z "$ac_c_werror_flag"
26101			 || test ! -s conftest.err'
26102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103  (eval $ac_try) 2>&5
26104  ac_status=$?
26105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106  (exit $ac_status); }; } &&
26107	 { ac_try='test -s conftest.$ac_objext'
26108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109  (eval $ac_try) 2>&5
26110  ac_status=$?
26111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112  (exit $ac_status); }; }; then
26113  ac_cv_header_time=yes
26114else
26115  echo "$as_me: failed program was:" >&5
26116sed 's/^/| /' conftest.$ac_ext >&5
26117
26118ac_cv_header_time=no
26119fi
26120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121fi
26122echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26123echo "${ECHO_T}$ac_cv_header_time" >&6
26124if test $ac_cv_header_time = yes; then
26125
26126cat >>confdefs.h <<\_ACEOF
26127#define TIME_WITH_SYS_TIME 1
26128_ACEOF
26129
26130fi
26131
26132
26133
26134
26135
26136
26137
26138
26139for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26140do
26141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26142if eval "test \"\${$as_ac_Header+set}\" = set"; then
26143  echo "$as_me:$LINENO: checking for $ac_header" >&5
26144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26145if eval "test \"\${$as_ac_Header+set}\" = set"; then
26146  echo $ECHO_N "(cached) $ECHO_C" >&6
26147fi
26148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26150else
26151  # Is the header compilable?
26152echo "$as_me:$LINENO: checking $ac_header usability" >&5
26153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26154cat >conftest.$ac_ext <<_ACEOF
26155/* confdefs.h.  */
26156_ACEOF
26157cat confdefs.h >>conftest.$ac_ext
26158cat >>conftest.$ac_ext <<_ACEOF
26159/* end confdefs.h.  */
26160$ac_includes_default
26161#include <$ac_header>
26162_ACEOF
26163rm -f conftest.$ac_objext
26164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26165  (eval $ac_compile) 2>conftest.er1
26166  ac_status=$?
26167  grep -v '^ *+' conftest.er1 >conftest.err
26168  rm -f conftest.er1
26169  cat conftest.err >&5
26170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171  (exit $ac_status); } &&
26172	 { ac_try='test -z "$ac_c_werror_flag"
26173			 || test ! -s conftest.err'
26174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175  (eval $ac_try) 2>&5
26176  ac_status=$?
26177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178  (exit $ac_status); }; } &&
26179	 { ac_try='test -s conftest.$ac_objext'
26180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181  (eval $ac_try) 2>&5
26182  ac_status=$?
26183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184  (exit $ac_status); }; }; then
26185  ac_header_compiler=yes
26186else
26187  echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190ac_header_compiler=no
26191fi
26192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26194echo "${ECHO_T}$ac_header_compiler" >&6
26195
26196# Is the header present?
26197echo "$as_me:$LINENO: checking $ac_header presence" >&5
26198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26199cat >conftest.$ac_ext <<_ACEOF
26200/* confdefs.h.  */
26201_ACEOF
26202cat confdefs.h >>conftest.$ac_ext
26203cat >>conftest.$ac_ext <<_ACEOF
26204/* end confdefs.h.  */
26205#include <$ac_header>
26206_ACEOF
26207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26209  ac_status=$?
26210  grep -v '^ *+' conftest.er1 >conftest.err
26211  rm -f conftest.er1
26212  cat conftest.err >&5
26213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214  (exit $ac_status); } >/dev/null; then
26215  if test -s conftest.err; then
26216    ac_cpp_err=$ac_c_preproc_warn_flag
26217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26218  else
26219    ac_cpp_err=
26220  fi
26221else
26222  ac_cpp_err=yes
26223fi
26224if test -z "$ac_cpp_err"; then
26225  ac_header_preproc=yes
26226else
26227  echo "$as_me: failed program was:" >&5
26228sed 's/^/| /' conftest.$ac_ext >&5
26229
26230  ac_header_preproc=no
26231fi
26232rm -f conftest.err conftest.$ac_ext
26233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26234echo "${ECHO_T}$ac_header_preproc" >&6
26235
26236# So?  What about this header?
26237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26238  yes:no: )
26239    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26243    ac_header_preproc=yes
26244    ;;
26245  no:yes:* )
26246    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26248    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26249echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26250    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26252    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26253echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26256    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26258    (
26259      cat <<\_ASBOX
26260## ----------------------------------- ##
26261## Report this to llvmbugs@cs.uiuc.edu ##
26262## ----------------------------------- ##
26263_ASBOX
26264    ) |
26265      sed "s/^/$as_me: WARNING:     /" >&2
26266    ;;
26267esac
26268echo "$as_me:$LINENO: checking for $ac_header" >&5
26269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26270if eval "test \"\${$as_ac_Header+set}\" = set"; then
26271  echo $ECHO_N "(cached) $ECHO_C" >&6
26272else
26273  eval "$as_ac_Header=\$ac_header_preproc"
26274fi
26275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26277
26278fi
26279if test `eval echo '${'$as_ac_Header'}'` = yes; then
26280  cat >>confdefs.h <<_ACEOF
26281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26282_ACEOF
26283
26284fi
26285
26286done
26287
26288
26289
26290
26291
26292
26293
26294for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26295do
26296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26297if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298  echo "$as_me:$LINENO: checking for $ac_header" >&5
26299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26300if eval "test \"\${$as_ac_Header+set}\" = set"; then
26301  echo $ECHO_N "(cached) $ECHO_C" >&6
26302fi
26303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26305else
26306  # Is the header compilable?
26307echo "$as_me:$LINENO: checking $ac_header usability" >&5
26308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26309cat >conftest.$ac_ext <<_ACEOF
26310/* confdefs.h.  */
26311_ACEOF
26312cat confdefs.h >>conftest.$ac_ext
26313cat >>conftest.$ac_ext <<_ACEOF
26314/* end confdefs.h.  */
26315$ac_includes_default
26316#include <$ac_header>
26317_ACEOF
26318rm -f conftest.$ac_objext
26319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26320  (eval $ac_compile) 2>conftest.er1
26321  ac_status=$?
26322  grep -v '^ *+' conftest.er1 >conftest.err
26323  rm -f conftest.er1
26324  cat conftest.err >&5
26325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326  (exit $ac_status); } &&
26327	 { ac_try='test -z "$ac_c_werror_flag"
26328			 || test ! -s conftest.err'
26329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330  (eval $ac_try) 2>&5
26331  ac_status=$?
26332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333  (exit $ac_status); }; } &&
26334	 { ac_try='test -s conftest.$ac_objext'
26335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336  (eval $ac_try) 2>&5
26337  ac_status=$?
26338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339  (exit $ac_status); }; }; then
26340  ac_header_compiler=yes
26341else
26342  echo "$as_me: failed program was:" >&5
26343sed 's/^/| /' conftest.$ac_ext >&5
26344
26345ac_header_compiler=no
26346fi
26347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26349echo "${ECHO_T}$ac_header_compiler" >&6
26350
26351# Is the header present?
26352echo "$as_me:$LINENO: checking $ac_header presence" >&5
26353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26354cat >conftest.$ac_ext <<_ACEOF
26355/* confdefs.h.  */
26356_ACEOF
26357cat confdefs.h >>conftest.$ac_ext
26358cat >>conftest.$ac_ext <<_ACEOF
26359/* end confdefs.h.  */
26360#include <$ac_header>
26361_ACEOF
26362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26364  ac_status=$?
26365  grep -v '^ *+' conftest.er1 >conftest.err
26366  rm -f conftest.er1
26367  cat conftest.err >&5
26368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369  (exit $ac_status); } >/dev/null; then
26370  if test -s conftest.err; then
26371    ac_cpp_err=$ac_c_preproc_warn_flag
26372    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26373  else
26374    ac_cpp_err=
26375  fi
26376else
26377  ac_cpp_err=yes
26378fi
26379if test -z "$ac_cpp_err"; then
26380  ac_header_preproc=yes
26381else
26382  echo "$as_me: failed program was:" >&5
26383sed 's/^/| /' conftest.$ac_ext >&5
26384
26385  ac_header_preproc=no
26386fi
26387rm -f conftest.err conftest.$ac_ext
26388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26389echo "${ECHO_T}$ac_header_preproc" >&6
26390
26391# So?  What about this header?
26392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26393  yes:no: )
26394    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26398    ac_header_preproc=yes
26399    ;;
26400  no:yes:* )
26401    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26403    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26404echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26405    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26407    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26408echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26409    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26411    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26413    (
26414      cat <<\_ASBOX
26415## ----------------------------------- ##
26416## Report this to llvmbugs@cs.uiuc.edu ##
26417## ----------------------------------- ##
26418_ASBOX
26419    ) |
26420      sed "s/^/$as_me: WARNING:     /" >&2
26421    ;;
26422esac
26423echo "$as_me:$LINENO: checking for $ac_header" >&5
26424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26425if eval "test \"\${$as_ac_Header+set}\" = set"; then
26426  echo $ECHO_N "(cached) $ECHO_C" >&6
26427else
26428  eval "$as_ac_Header=\$ac_header_preproc"
26429fi
26430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26432
26433fi
26434if test `eval echo '${'$as_ac_Header'}'` = yes; then
26435  cat >>confdefs.h <<_ACEOF
26436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26437_ACEOF
26438
26439fi
26440
26441done
26442
26443
26444
26445
26446
26447
26448for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26449do
26450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26451if eval "test \"\${$as_ac_Header+set}\" = set"; then
26452  echo "$as_me:$LINENO: checking for $ac_header" >&5
26453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26454if eval "test \"\${$as_ac_Header+set}\" = set"; then
26455  echo $ECHO_N "(cached) $ECHO_C" >&6
26456fi
26457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26459else
26460  # Is the header compilable?
26461echo "$as_me:$LINENO: checking $ac_header usability" >&5
26462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26463cat >conftest.$ac_ext <<_ACEOF
26464/* confdefs.h.  */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h.  */
26469$ac_includes_default
26470#include <$ac_header>
26471_ACEOF
26472rm -f conftest.$ac_objext
26473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474  (eval $ac_compile) 2>conftest.er1
26475  ac_status=$?
26476  grep -v '^ *+' conftest.er1 >conftest.err
26477  rm -f conftest.er1
26478  cat conftest.err >&5
26479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480  (exit $ac_status); } &&
26481	 { ac_try='test -z "$ac_c_werror_flag"
26482			 || test ! -s conftest.err'
26483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484  (eval $ac_try) 2>&5
26485  ac_status=$?
26486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487  (exit $ac_status); }; } &&
26488	 { ac_try='test -s conftest.$ac_objext'
26489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490  (eval $ac_try) 2>&5
26491  ac_status=$?
26492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493  (exit $ac_status); }; }; then
26494  ac_header_compiler=yes
26495else
26496  echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499ac_header_compiler=no
26500fi
26501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26503echo "${ECHO_T}$ac_header_compiler" >&6
26504
26505# Is the header present?
26506echo "$as_me:$LINENO: checking $ac_header presence" >&5
26507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26508cat >conftest.$ac_ext <<_ACEOF
26509/* confdefs.h.  */
26510_ACEOF
26511cat confdefs.h >>conftest.$ac_ext
26512cat >>conftest.$ac_ext <<_ACEOF
26513/* end confdefs.h.  */
26514#include <$ac_header>
26515_ACEOF
26516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26518  ac_status=$?
26519  grep -v '^ *+' conftest.er1 >conftest.err
26520  rm -f conftest.er1
26521  cat conftest.err >&5
26522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523  (exit $ac_status); } >/dev/null; then
26524  if test -s conftest.err; then
26525    ac_cpp_err=$ac_c_preproc_warn_flag
26526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26527  else
26528    ac_cpp_err=
26529  fi
26530else
26531  ac_cpp_err=yes
26532fi
26533if test -z "$ac_cpp_err"; then
26534  ac_header_preproc=yes
26535else
26536  echo "$as_me: failed program was:" >&5
26537sed 's/^/| /' conftest.$ac_ext >&5
26538
26539  ac_header_preproc=no
26540fi
26541rm -f conftest.err conftest.$ac_ext
26542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26543echo "${ECHO_T}$ac_header_preproc" >&6
26544
26545# So?  What about this header?
26546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26547  yes:no: )
26548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26552    ac_header_preproc=yes
26553    ;;
26554  no:yes:* )
26555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26567    (
26568      cat <<\_ASBOX
26569## ----------------------------------- ##
26570## Report this to llvmbugs@cs.uiuc.edu ##
26571## ----------------------------------- ##
26572_ASBOX
26573    ) |
26574      sed "s/^/$as_me: WARNING:     /" >&2
26575    ;;
26576esac
26577echo "$as_me:$LINENO: checking for $ac_header" >&5
26578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26579if eval "test \"\${$as_ac_Header+set}\" = set"; then
26580  echo $ECHO_N "(cached) $ECHO_C" >&6
26581else
26582  eval "$as_ac_Header=\$ac_header_preproc"
26583fi
26584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26586
26587fi
26588if test `eval echo '${'$as_ac_Header'}'` = yes; then
26589  cat >>confdefs.h <<_ACEOF
26590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26591_ACEOF
26592
26593fi
26594
26595done
26596
26597
26598
26599for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26600do
26601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26602if eval "test \"\${$as_ac_Header+set}\" = set"; then
26603  echo "$as_me:$LINENO: checking for $ac_header" >&5
26604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26605if eval "test \"\${$as_ac_Header+set}\" = set"; then
26606  echo $ECHO_N "(cached) $ECHO_C" >&6
26607fi
26608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26610else
26611  # Is the header compilable?
26612echo "$as_me:$LINENO: checking $ac_header usability" >&5
26613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26614cat >conftest.$ac_ext <<_ACEOF
26615/* confdefs.h.  */
26616_ACEOF
26617cat confdefs.h >>conftest.$ac_ext
26618cat >>conftest.$ac_ext <<_ACEOF
26619/* end confdefs.h.  */
26620$ac_includes_default
26621#include <$ac_header>
26622_ACEOF
26623rm -f conftest.$ac_objext
26624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26625  (eval $ac_compile) 2>conftest.er1
26626  ac_status=$?
26627  grep -v '^ *+' conftest.er1 >conftest.err
26628  rm -f conftest.er1
26629  cat conftest.err >&5
26630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631  (exit $ac_status); } &&
26632	 { ac_try='test -z "$ac_c_werror_flag"
26633			 || test ! -s conftest.err'
26634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635  (eval $ac_try) 2>&5
26636  ac_status=$?
26637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638  (exit $ac_status); }; } &&
26639	 { ac_try='test -s conftest.$ac_objext'
26640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641  (eval $ac_try) 2>&5
26642  ac_status=$?
26643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644  (exit $ac_status); }; }; then
26645  ac_header_compiler=yes
26646else
26647  echo "$as_me: failed program was:" >&5
26648sed 's/^/| /' conftest.$ac_ext >&5
26649
26650ac_header_compiler=no
26651fi
26652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26654echo "${ECHO_T}$ac_header_compiler" >&6
26655
26656# Is the header present?
26657echo "$as_me:$LINENO: checking $ac_header presence" >&5
26658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26659cat >conftest.$ac_ext <<_ACEOF
26660/* confdefs.h.  */
26661_ACEOF
26662cat confdefs.h >>conftest.$ac_ext
26663cat >>conftest.$ac_ext <<_ACEOF
26664/* end confdefs.h.  */
26665#include <$ac_header>
26666_ACEOF
26667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26668  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26669  ac_status=$?
26670  grep -v '^ *+' conftest.er1 >conftest.err
26671  rm -f conftest.er1
26672  cat conftest.err >&5
26673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674  (exit $ac_status); } >/dev/null; then
26675  if test -s conftest.err; then
26676    ac_cpp_err=$ac_c_preproc_warn_flag
26677    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26678  else
26679    ac_cpp_err=
26680  fi
26681else
26682  ac_cpp_err=yes
26683fi
26684if test -z "$ac_cpp_err"; then
26685  ac_header_preproc=yes
26686else
26687  echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690  ac_header_preproc=no
26691fi
26692rm -f conftest.err conftest.$ac_ext
26693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26694echo "${ECHO_T}$ac_header_preproc" >&6
26695
26696# So?  What about this header?
26697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26698  yes:no: )
26699    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26703    ac_header_preproc=yes
26704    ;;
26705  no:yes:* )
26706    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26708    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26709echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26710    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26712    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26713echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26714    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26716    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26718    (
26719      cat <<\_ASBOX
26720## ----------------------------------- ##
26721## Report this to llvmbugs@cs.uiuc.edu ##
26722## ----------------------------------- ##
26723_ASBOX
26724    ) |
26725      sed "s/^/$as_me: WARNING:     /" >&2
26726    ;;
26727esac
26728echo "$as_me:$LINENO: checking for $ac_header" >&5
26729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26730if eval "test \"\${$as_ac_Header+set}\" = set"; then
26731  echo $ECHO_N "(cached) $ECHO_C" >&6
26732else
26733  eval "$as_ac_Header=\$ac_header_preproc"
26734fi
26735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26737
26738fi
26739if test `eval echo '${'$as_ac_Header'}'` = yes; then
26740  cat >>confdefs.h <<_ACEOF
26741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26742_ACEOF
26743
26744fi
26745
26746done
26747
26748
26749
26750echo "$as_me:$LINENO: checking for pid_t" >&5
26751echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26752if test "${ac_cv_type_pid_t+set}" = set; then
26753  echo $ECHO_N "(cached) $ECHO_C" >&6
26754else
26755  cat >conftest.$ac_ext <<_ACEOF
26756/* confdefs.h.  */
26757_ACEOF
26758cat confdefs.h >>conftest.$ac_ext
26759cat >>conftest.$ac_ext <<_ACEOF
26760/* end confdefs.h.  */
26761$ac_includes_default
26762int
26763main ()
26764{
26765if ((pid_t *) 0)
26766  return 0;
26767if (sizeof (pid_t))
26768  return 0;
26769  ;
26770  return 0;
26771}
26772_ACEOF
26773rm -f conftest.$ac_objext
26774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775  (eval $ac_compile) 2>conftest.er1
26776  ac_status=$?
26777  grep -v '^ *+' conftest.er1 >conftest.err
26778  rm -f conftest.er1
26779  cat conftest.err >&5
26780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781  (exit $ac_status); } &&
26782	 { ac_try='test -z "$ac_c_werror_flag"
26783			 || test ! -s conftest.err'
26784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785  (eval $ac_try) 2>&5
26786  ac_status=$?
26787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788  (exit $ac_status); }; } &&
26789	 { ac_try='test -s conftest.$ac_objext'
26790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791  (eval $ac_try) 2>&5
26792  ac_status=$?
26793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794  (exit $ac_status); }; }; then
26795  ac_cv_type_pid_t=yes
26796else
26797  echo "$as_me: failed program was:" >&5
26798sed 's/^/| /' conftest.$ac_ext >&5
26799
26800ac_cv_type_pid_t=no
26801fi
26802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803fi
26804echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26805echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26806if test $ac_cv_type_pid_t = yes; then
26807  :
26808else
26809
26810cat >>confdefs.h <<_ACEOF
26811#define pid_t int
26812_ACEOF
26813
26814fi
26815
26816echo "$as_me:$LINENO: checking for size_t" >&5
26817echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26818if test "${ac_cv_type_size_t+set}" = set; then
26819  echo $ECHO_N "(cached) $ECHO_C" >&6
26820else
26821  cat >conftest.$ac_ext <<_ACEOF
26822/* confdefs.h.  */
26823_ACEOF
26824cat confdefs.h >>conftest.$ac_ext
26825cat >>conftest.$ac_ext <<_ACEOF
26826/* end confdefs.h.  */
26827$ac_includes_default
26828int
26829main ()
26830{
26831if ((size_t *) 0)
26832  return 0;
26833if (sizeof (size_t))
26834  return 0;
26835  ;
26836  return 0;
26837}
26838_ACEOF
26839rm -f conftest.$ac_objext
26840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26841  (eval $ac_compile) 2>conftest.er1
26842  ac_status=$?
26843  grep -v '^ *+' conftest.er1 >conftest.err
26844  rm -f conftest.er1
26845  cat conftest.err >&5
26846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847  (exit $ac_status); } &&
26848	 { ac_try='test -z "$ac_c_werror_flag"
26849			 || test ! -s conftest.err'
26850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851  (eval $ac_try) 2>&5
26852  ac_status=$?
26853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854  (exit $ac_status); }; } &&
26855	 { ac_try='test -s conftest.$ac_objext'
26856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857  (eval $ac_try) 2>&5
26858  ac_status=$?
26859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860  (exit $ac_status); }; }; then
26861  ac_cv_type_size_t=yes
26862else
26863  echo "$as_me: failed program was:" >&5
26864sed 's/^/| /' conftest.$ac_ext >&5
26865
26866ac_cv_type_size_t=no
26867fi
26868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26869fi
26870echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26871echo "${ECHO_T}$ac_cv_type_size_t" >&6
26872if test $ac_cv_type_size_t = yes; then
26873  :
26874else
26875
26876cat >>confdefs.h <<_ACEOF
26877#define size_t unsigned
26878_ACEOF
26879
26880fi
26881
26882echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26883echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26884if test "${ac_cv_type_signal+set}" = set; then
26885  echo $ECHO_N "(cached) $ECHO_C" >&6
26886else
26887  cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h.  */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h.  */
26893#include <sys/types.h>
26894#include <signal.h>
26895#ifdef signal
26896# undef signal
26897#endif
26898#ifdef __cplusplus
26899extern "C" void (*signal (int, void (*)(int)))(int);
26900#else
26901void (*signal ()) ();
26902#endif
26903
26904int
26905main ()
26906{
26907int i;
26908  ;
26909  return 0;
26910}
26911_ACEOF
26912rm -f conftest.$ac_objext
26913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26914  (eval $ac_compile) 2>conftest.er1
26915  ac_status=$?
26916  grep -v '^ *+' conftest.er1 >conftest.err
26917  rm -f conftest.er1
26918  cat conftest.err >&5
26919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920  (exit $ac_status); } &&
26921	 { ac_try='test -z "$ac_c_werror_flag"
26922			 || test ! -s conftest.err'
26923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924  (eval $ac_try) 2>&5
26925  ac_status=$?
26926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927  (exit $ac_status); }; } &&
26928	 { ac_try='test -s conftest.$ac_objext'
26929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930  (eval $ac_try) 2>&5
26931  ac_status=$?
26932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933  (exit $ac_status); }; }; then
26934  ac_cv_type_signal=void
26935else
26936  echo "$as_me: failed program was:" >&5
26937sed 's/^/| /' conftest.$ac_ext >&5
26938
26939ac_cv_type_signal=int
26940fi
26941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26942fi
26943echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26944echo "${ECHO_T}$ac_cv_type_signal" >&6
26945
26946cat >>confdefs.h <<_ACEOF
26947#define RETSIGTYPE $ac_cv_type_signal
26948_ACEOF
26949
26950
26951echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26952echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26953if test "${ac_cv_struct_tm+set}" = set; then
26954  echo $ECHO_N "(cached) $ECHO_C" >&6
26955else
26956  cat >conftest.$ac_ext <<_ACEOF
26957/* confdefs.h.  */
26958_ACEOF
26959cat confdefs.h >>conftest.$ac_ext
26960cat >>conftest.$ac_ext <<_ACEOF
26961/* end confdefs.h.  */
26962#include <sys/types.h>
26963#include <time.h>
26964
26965int
26966main ()
26967{
26968struct tm *tp; tp->tm_sec;
26969  ;
26970  return 0;
26971}
26972_ACEOF
26973rm -f conftest.$ac_objext
26974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26975  (eval $ac_compile) 2>conftest.er1
26976  ac_status=$?
26977  grep -v '^ *+' conftest.er1 >conftest.err
26978  rm -f conftest.er1
26979  cat conftest.err >&5
26980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981  (exit $ac_status); } &&
26982	 { ac_try='test -z "$ac_c_werror_flag"
26983			 || test ! -s conftest.err'
26984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985  (eval $ac_try) 2>&5
26986  ac_status=$?
26987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988  (exit $ac_status); }; } &&
26989	 { ac_try='test -s conftest.$ac_objext'
26990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991  (eval $ac_try) 2>&5
26992  ac_status=$?
26993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994  (exit $ac_status); }; }; then
26995  ac_cv_struct_tm=time.h
26996else
26997  echo "$as_me: failed program was:" >&5
26998sed 's/^/| /' conftest.$ac_ext >&5
26999
27000ac_cv_struct_tm=sys/time.h
27001fi
27002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27003fi
27004echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27005echo "${ECHO_T}$ac_cv_struct_tm" >&6
27006if test $ac_cv_struct_tm = sys/time.h; then
27007
27008cat >>confdefs.h <<\_ACEOF
27009#define TM_IN_SYS_TIME 1
27010_ACEOF
27011
27012fi
27013
27014echo "$as_me:$LINENO: checking for int64_t" >&5
27015echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27016if test "${ac_cv_type_int64_t+set}" = set; then
27017  echo $ECHO_N "(cached) $ECHO_C" >&6
27018else
27019  cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h.  */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h.  */
27025$ac_includes_default
27026int
27027main ()
27028{
27029if ((int64_t *) 0)
27030  return 0;
27031if (sizeof (int64_t))
27032  return 0;
27033  ;
27034  return 0;
27035}
27036_ACEOF
27037rm -f conftest.$ac_objext
27038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27039  (eval $ac_compile) 2>conftest.er1
27040  ac_status=$?
27041  grep -v '^ *+' conftest.er1 >conftest.err
27042  rm -f conftest.er1
27043  cat conftest.err >&5
27044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045  (exit $ac_status); } &&
27046	 { ac_try='test -z "$ac_c_werror_flag"
27047			 || test ! -s conftest.err'
27048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049  (eval $ac_try) 2>&5
27050  ac_status=$?
27051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052  (exit $ac_status); }; } &&
27053	 { ac_try='test -s conftest.$ac_objext'
27054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055  (eval $ac_try) 2>&5
27056  ac_status=$?
27057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058  (exit $ac_status); }; }; then
27059  ac_cv_type_int64_t=yes
27060else
27061  echo "$as_me: failed program was:" >&5
27062sed 's/^/| /' conftest.$ac_ext >&5
27063
27064ac_cv_type_int64_t=no
27065fi
27066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27067fi
27068echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27069echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27070if test $ac_cv_type_int64_t = yes; then
27071
27072cat >>confdefs.h <<_ACEOF
27073#define HAVE_INT64_T 1
27074_ACEOF
27075
27076
27077else
27078  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27079echo "$as_me: error: Type int64_t required but not found" >&2;}
27080   { (exit 1); exit 1; }; }
27081fi
27082
27083echo "$as_me:$LINENO: checking for uint64_t" >&5
27084echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27085if test "${ac_cv_type_uint64_t+set}" = set; then
27086  echo $ECHO_N "(cached) $ECHO_C" >&6
27087else
27088  cat >conftest.$ac_ext <<_ACEOF
27089/* confdefs.h.  */
27090_ACEOF
27091cat confdefs.h >>conftest.$ac_ext
27092cat >>conftest.$ac_ext <<_ACEOF
27093/* end confdefs.h.  */
27094$ac_includes_default
27095int
27096main ()
27097{
27098if ((uint64_t *) 0)
27099  return 0;
27100if (sizeof (uint64_t))
27101  return 0;
27102  ;
27103  return 0;
27104}
27105_ACEOF
27106rm -f conftest.$ac_objext
27107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27108  (eval $ac_compile) 2>conftest.er1
27109  ac_status=$?
27110  grep -v '^ *+' conftest.er1 >conftest.err
27111  rm -f conftest.er1
27112  cat conftest.err >&5
27113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114  (exit $ac_status); } &&
27115	 { ac_try='test -z "$ac_c_werror_flag"
27116			 || test ! -s conftest.err'
27117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118  (eval $ac_try) 2>&5
27119  ac_status=$?
27120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121  (exit $ac_status); }; } &&
27122	 { ac_try='test -s conftest.$ac_objext'
27123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124  (eval $ac_try) 2>&5
27125  ac_status=$?
27126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127  (exit $ac_status); }; }; then
27128  ac_cv_type_uint64_t=yes
27129else
27130  echo "$as_me: failed program was:" >&5
27131sed 's/^/| /' conftest.$ac_ext >&5
27132
27133ac_cv_type_uint64_t=no
27134fi
27135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27136fi
27137echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27138echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27139if test $ac_cv_type_uint64_t = yes; then
27140
27141cat >>confdefs.h <<_ACEOF
27142#define HAVE_UINT64_T 1
27143_ACEOF
27144
27145
27146else
27147  echo "$as_me:$LINENO: checking for u_int64_t" >&5
27148echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27149if test "${ac_cv_type_u_int64_t+set}" = set; then
27150  echo $ECHO_N "(cached) $ECHO_C" >&6
27151else
27152  cat >conftest.$ac_ext <<_ACEOF
27153/* confdefs.h.  */
27154_ACEOF
27155cat confdefs.h >>conftest.$ac_ext
27156cat >>conftest.$ac_ext <<_ACEOF
27157/* end confdefs.h.  */
27158$ac_includes_default
27159int
27160main ()
27161{
27162if ((u_int64_t *) 0)
27163  return 0;
27164if (sizeof (u_int64_t))
27165  return 0;
27166  ;
27167  return 0;
27168}
27169_ACEOF
27170rm -f conftest.$ac_objext
27171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172  (eval $ac_compile) 2>conftest.er1
27173  ac_status=$?
27174  grep -v '^ *+' conftest.er1 >conftest.err
27175  rm -f conftest.er1
27176  cat conftest.err >&5
27177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178  (exit $ac_status); } &&
27179	 { ac_try='test -z "$ac_c_werror_flag"
27180			 || test ! -s conftest.err'
27181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182  (eval $ac_try) 2>&5
27183  ac_status=$?
27184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185  (exit $ac_status); }; } &&
27186	 { ac_try='test -s conftest.$ac_objext'
27187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188  (eval $ac_try) 2>&5
27189  ac_status=$?
27190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191  (exit $ac_status); }; }; then
27192  ac_cv_type_u_int64_t=yes
27193else
27194  echo "$as_me: failed program was:" >&5
27195sed 's/^/| /' conftest.$ac_ext >&5
27196
27197ac_cv_type_u_int64_t=no
27198fi
27199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27200fi
27201echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27202echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27203if test $ac_cv_type_u_int64_t = yes; then
27204
27205cat >>confdefs.h <<_ACEOF
27206#define HAVE_U_INT64_T 1
27207_ACEOF
27208
27209
27210else
27211  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27212echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27213   { (exit 1); exit 1; }; }
27214fi
27215
27216fi
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27227do
27228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27229echo "$as_me:$LINENO: checking for $ac_func" >&5
27230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27231if eval "test \"\${$as_ac_var+set}\" = set"; then
27232  echo $ECHO_N "(cached) $ECHO_C" >&6
27233else
27234  cat >conftest.$ac_ext <<_ACEOF
27235/* confdefs.h.  */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h.  */
27240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27241   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27242#define $ac_func innocuous_$ac_func
27243
27244/* System header to define __stub macros and hopefully few prototypes,
27245    which can conflict with char $ac_func (); below.
27246    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27247    <limits.h> exists even on freestanding compilers.  */
27248
27249#ifdef __STDC__
27250# include <limits.h>
27251#else
27252# include <assert.h>
27253#endif
27254
27255#undef $ac_func
27256
27257/* Override any gcc2 internal prototype to avoid an error.  */
27258#ifdef __cplusplus
27259extern "C"
27260{
27261#endif
27262/* We use char because int might match the return type of a gcc2
27263   builtin and then its argument prototype would still apply.  */
27264char $ac_func ();
27265/* The GNU C library defines this for functions which it implements
27266    to always fail with ENOSYS.  Some functions are actually named
27267    something starting with __ and the normal name is an alias.  */
27268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27269choke me
27270#else
27271char (*f) () = $ac_func;
27272#endif
27273#ifdef __cplusplus
27274}
27275#endif
27276
27277int
27278main ()
27279{
27280return f != $ac_func;
27281  ;
27282  return 0;
27283}
27284_ACEOF
27285rm -f conftest.$ac_objext conftest$ac_exeext
27286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27287  (eval $ac_link) 2>conftest.er1
27288  ac_status=$?
27289  grep -v '^ *+' conftest.er1 >conftest.err
27290  rm -f conftest.er1
27291  cat conftest.err >&5
27292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293  (exit $ac_status); } &&
27294	 { ac_try='test -z "$ac_c_werror_flag"
27295			 || test ! -s conftest.err'
27296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297  (eval $ac_try) 2>&5
27298  ac_status=$?
27299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300  (exit $ac_status); }; } &&
27301	 { ac_try='test -s conftest$ac_exeext'
27302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303  (eval $ac_try) 2>&5
27304  ac_status=$?
27305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306  (exit $ac_status); }; }; then
27307  eval "$as_ac_var=yes"
27308else
27309  echo "$as_me: failed program was:" >&5
27310sed 's/^/| /' conftest.$ac_ext >&5
27311
27312eval "$as_ac_var=no"
27313fi
27314rm -f conftest.err conftest.$ac_objext \
27315      conftest$ac_exeext conftest.$ac_ext
27316fi
27317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27319if test `eval echo '${'$as_ac_var'}'` = yes; then
27320  cat >>confdefs.h <<_ACEOF
27321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27322_ACEOF
27323
27324fi
27325done
27326
27327
27328
27329
27330for ac_func in mkdtemp mkstemp mktemp
27331do
27332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27333echo "$as_me:$LINENO: checking for $ac_func" >&5
27334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27335if eval "test \"\${$as_ac_var+set}\" = set"; then
27336  echo $ECHO_N "(cached) $ECHO_C" >&6
27337else
27338  cat >conftest.$ac_ext <<_ACEOF
27339/* confdefs.h.  */
27340_ACEOF
27341cat confdefs.h >>conftest.$ac_ext
27342cat >>conftest.$ac_ext <<_ACEOF
27343/* end confdefs.h.  */
27344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27346#define $ac_func innocuous_$ac_func
27347
27348/* System header to define __stub macros and hopefully few prototypes,
27349    which can conflict with char $ac_func (); below.
27350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27351    <limits.h> exists even on freestanding compilers.  */
27352
27353#ifdef __STDC__
27354# include <limits.h>
27355#else
27356# include <assert.h>
27357#endif
27358
27359#undef $ac_func
27360
27361/* Override any gcc2 internal prototype to avoid an error.  */
27362#ifdef __cplusplus
27363extern "C"
27364{
27365#endif
27366/* We use char because int might match the return type of a gcc2
27367   builtin and then its argument prototype would still apply.  */
27368char $ac_func ();
27369/* The GNU C library defines this for functions which it implements
27370    to always fail with ENOSYS.  Some functions are actually named
27371    something starting with __ and the normal name is an alias.  */
27372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27373choke me
27374#else
27375char (*f) () = $ac_func;
27376#endif
27377#ifdef __cplusplus
27378}
27379#endif
27380
27381int
27382main ()
27383{
27384return f != $ac_func;
27385  ;
27386  return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext conftest$ac_exeext
27390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391  (eval $ac_link) 2>conftest.er1
27392  ac_status=$?
27393  grep -v '^ *+' conftest.er1 >conftest.err
27394  rm -f conftest.er1
27395  cat conftest.err >&5
27396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397  (exit $ac_status); } &&
27398	 { ac_try='test -z "$ac_c_werror_flag"
27399			 || test ! -s conftest.err'
27400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401  (eval $ac_try) 2>&5
27402  ac_status=$?
27403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404  (exit $ac_status); }; } &&
27405	 { ac_try='test -s conftest$ac_exeext'
27406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407  (eval $ac_try) 2>&5
27408  ac_status=$?
27409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410  (exit $ac_status); }; }; then
27411  eval "$as_ac_var=yes"
27412else
27413  echo "$as_me: failed program was:" >&5
27414sed 's/^/| /' conftest.$ac_ext >&5
27415
27416eval "$as_ac_var=no"
27417fi
27418rm -f conftest.err conftest.$ac_objext \
27419      conftest$ac_exeext conftest.$ac_ext
27420fi
27421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27423if test `eval echo '${'$as_ac_var'}'` = yes; then
27424  cat >>confdefs.h <<_ACEOF
27425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426_ACEOF
27427
27428fi
27429done
27430
27431
27432
27433
27434
27435
27436
27437for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27438do
27439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27440echo "$as_me:$LINENO: checking for $ac_func" >&5
27441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27442if eval "test \"\${$as_ac_var+set}\" = set"; then
27443  echo $ECHO_N "(cached) $ECHO_C" >&6
27444else
27445  cat >conftest.$ac_ext <<_ACEOF
27446/* confdefs.h.  */
27447_ACEOF
27448cat confdefs.h >>conftest.$ac_ext
27449cat >>conftest.$ac_ext <<_ACEOF
27450/* end confdefs.h.  */
27451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27453#define $ac_func innocuous_$ac_func
27454
27455/* System header to define __stub macros and hopefully few prototypes,
27456    which can conflict with char $ac_func (); below.
27457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27458    <limits.h> exists even on freestanding compilers.  */
27459
27460#ifdef __STDC__
27461# include <limits.h>
27462#else
27463# include <assert.h>
27464#endif
27465
27466#undef $ac_func
27467
27468/* Override any gcc2 internal prototype to avoid an error.  */
27469#ifdef __cplusplus
27470extern "C"
27471{
27472#endif
27473/* We use char because int might match the return type of a gcc2
27474   builtin and then its argument prototype would still apply.  */
27475char $ac_func ();
27476/* The GNU C library defines this for functions which it implements
27477    to always fail with ENOSYS.  Some functions are actually named
27478    something starting with __ and the normal name is an alias.  */
27479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27480choke me
27481#else
27482char (*f) () = $ac_func;
27483#endif
27484#ifdef __cplusplus
27485}
27486#endif
27487
27488int
27489main ()
27490{
27491return f != $ac_func;
27492  ;
27493  return 0;
27494}
27495_ACEOF
27496rm -f conftest.$ac_objext conftest$ac_exeext
27497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27498  (eval $ac_link) 2>conftest.er1
27499  ac_status=$?
27500  grep -v '^ *+' conftest.er1 >conftest.err
27501  rm -f conftest.er1
27502  cat conftest.err >&5
27503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504  (exit $ac_status); } &&
27505	 { ac_try='test -z "$ac_c_werror_flag"
27506			 || test ! -s conftest.err'
27507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508  (eval $ac_try) 2>&5
27509  ac_status=$?
27510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511  (exit $ac_status); }; } &&
27512	 { ac_try='test -s conftest$ac_exeext'
27513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514  (eval $ac_try) 2>&5
27515  ac_status=$?
27516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517  (exit $ac_status); }; }; then
27518  eval "$as_ac_var=yes"
27519else
27520  echo "$as_me: failed program was:" >&5
27521sed 's/^/| /' conftest.$ac_ext >&5
27522
27523eval "$as_ac_var=no"
27524fi
27525rm -f conftest.err conftest.$ac_objext \
27526      conftest$ac_exeext conftest.$ac_ext
27527fi
27528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27530if test `eval echo '${'$as_ac_var'}'` = yes; then
27531  cat >>confdefs.h <<_ACEOF
27532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27533_ACEOF
27534
27535fi
27536done
27537
27538
27539
27540
27541for ac_func in strtoll strtoq sysconf
27542do
27543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27544echo "$as_me:$LINENO: checking for $ac_func" >&5
27545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27546if eval "test \"\${$as_ac_var+set}\" = set"; then
27547  echo $ECHO_N "(cached) $ECHO_C" >&6
27548else
27549  cat >conftest.$ac_ext <<_ACEOF
27550/* confdefs.h.  */
27551_ACEOF
27552cat confdefs.h >>conftest.$ac_ext
27553cat >>conftest.$ac_ext <<_ACEOF
27554/* end confdefs.h.  */
27555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27556   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27557#define $ac_func innocuous_$ac_func
27558
27559/* System header to define __stub macros and hopefully few prototypes,
27560    which can conflict with char $ac_func (); below.
27561    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27562    <limits.h> exists even on freestanding compilers.  */
27563
27564#ifdef __STDC__
27565# include <limits.h>
27566#else
27567# include <assert.h>
27568#endif
27569
27570#undef $ac_func
27571
27572/* Override any gcc2 internal prototype to avoid an error.  */
27573#ifdef __cplusplus
27574extern "C"
27575{
27576#endif
27577/* We use char because int might match the return type of a gcc2
27578   builtin and then its argument prototype would still apply.  */
27579char $ac_func ();
27580/* The GNU C library defines this for functions which it implements
27581    to always fail with ENOSYS.  Some functions are actually named
27582    something starting with __ and the normal name is an alias.  */
27583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27584choke me
27585#else
27586char (*f) () = $ac_func;
27587#endif
27588#ifdef __cplusplus
27589}
27590#endif
27591
27592int
27593main ()
27594{
27595return f != $ac_func;
27596  ;
27597  return 0;
27598}
27599_ACEOF
27600rm -f conftest.$ac_objext conftest$ac_exeext
27601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27602  (eval $ac_link) 2>conftest.er1
27603  ac_status=$?
27604  grep -v '^ *+' conftest.er1 >conftest.err
27605  rm -f conftest.er1
27606  cat conftest.err >&5
27607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608  (exit $ac_status); } &&
27609	 { ac_try='test -z "$ac_c_werror_flag"
27610			 || test ! -s conftest.err'
27611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612  (eval $ac_try) 2>&5
27613  ac_status=$?
27614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615  (exit $ac_status); }; } &&
27616	 { ac_try='test -s conftest$ac_exeext'
27617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618  (eval $ac_try) 2>&5
27619  ac_status=$?
27620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621  (exit $ac_status); }; }; then
27622  eval "$as_ac_var=yes"
27623else
27624  echo "$as_me: failed program was:" >&5
27625sed 's/^/| /' conftest.$ac_ext >&5
27626
27627eval "$as_ac_var=no"
27628fi
27629rm -f conftest.err conftest.$ac_objext \
27630      conftest$ac_exeext conftest.$ac_ext
27631fi
27632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27634if test `eval echo '${'$as_ac_var'}'` = yes; then
27635  cat >>confdefs.h <<_ACEOF
27636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27637_ACEOF
27638
27639fi
27640done
27641
27642echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27643echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27644if test "${llvm_cv_c_printf_a+set}" = set; then
27645  echo $ECHO_N "(cached) $ECHO_C" >&6
27646else
27647  ac_ext=c
27648ac_cpp='$CPP $CPPFLAGS'
27649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27651ac_compiler_gnu=$ac_cv_c_compiler_gnu
27652
27653 if test "$cross_compiling" = yes; then
27654  llvmac_cv_c_printf_a=no
27655else
27656  cat >conftest.$ac_ext <<_ACEOF
27657
27658  /* confdefs.h.  */
27659_ACEOF
27660cat confdefs.h >>conftest.$ac_ext
27661cat >>conftest.$ac_ext <<_ACEOF
27662/* end confdefs.h.  */
27663
27664#include <stdio.h>
27665#include <stdlib.h>
27666
27667int
27668main ()
27669{
27670
27671volatile double A, B;
27672char Buffer[100];
27673A = 1;
27674A /= 10.0;
27675sprintf(Buffer, "%a", A);
27676B = atof(Buffer);
27677if (A != B)
27678  return (1);
27679if (A != 0x1.999999999999ap-4)
27680  return (1);
27681return (0);
27682  ;
27683  return 0;
27684}
27685_ACEOF
27686rm -f conftest$ac_exeext
27687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688  (eval $ac_link) 2>&5
27689  ac_status=$?
27690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693  (eval $ac_try) 2>&5
27694  ac_status=$?
27695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696  (exit $ac_status); }; }; then
27697  llvm_cv_c_printf_a=yes
27698else
27699  echo "$as_me: program exited with status $ac_status" >&5
27700echo "$as_me: failed program was:" >&5
27701sed 's/^/| /' conftest.$ac_ext >&5
27702
27703( exit $ac_status )
27704llvmac_cv_c_printf_a=no
27705fi
27706rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27707fi
27708 ac_ext=c
27709ac_cpp='$CPP $CPPFLAGS'
27710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27712ac_compiler_gnu=$ac_cv_c_compiler_gnu
27713
27714fi
27715echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27716echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27717 if test "$llvm_cv_c_printf_a" = "yes"; then
27718
27719cat >>confdefs.h <<\_ACEOF
27720#define HAVE_PRINTF_A 1
27721_ACEOF
27722
27723 fi
27724
27725# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27726# for constant arguments.  Useless!
27727echo "$as_me:$LINENO: checking for working alloca.h" >&5
27728echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27729if test "${ac_cv_working_alloca_h+set}" = set; then
27730  echo $ECHO_N "(cached) $ECHO_C" >&6
27731else
27732  cat >conftest.$ac_ext <<_ACEOF
27733/* confdefs.h.  */
27734_ACEOF
27735cat confdefs.h >>conftest.$ac_ext
27736cat >>conftest.$ac_ext <<_ACEOF
27737/* end confdefs.h.  */
27738#include <alloca.h>
27739int
27740main ()
27741{
27742char *p = (char *) alloca (2 * sizeof (int));
27743  ;
27744  return 0;
27745}
27746_ACEOF
27747rm -f conftest.$ac_objext conftest$ac_exeext
27748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27749  (eval $ac_link) 2>conftest.er1
27750  ac_status=$?
27751  grep -v '^ *+' conftest.er1 >conftest.err
27752  rm -f conftest.er1
27753  cat conftest.err >&5
27754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755  (exit $ac_status); } &&
27756	 { ac_try='test -z "$ac_c_werror_flag"
27757			 || test ! -s conftest.err'
27758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759  (eval $ac_try) 2>&5
27760  ac_status=$?
27761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762  (exit $ac_status); }; } &&
27763	 { ac_try='test -s conftest$ac_exeext'
27764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27765  (eval $ac_try) 2>&5
27766  ac_status=$?
27767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768  (exit $ac_status); }; }; then
27769  ac_cv_working_alloca_h=yes
27770else
27771  echo "$as_me: failed program was:" >&5
27772sed 's/^/| /' conftest.$ac_ext >&5
27773
27774ac_cv_working_alloca_h=no
27775fi
27776rm -f conftest.err conftest.$ac_objext \
27777      conftest$ac_exeext conftest.$ac_ext
27778fi
27779echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27780echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27781if test $ac_cv_working_alloca_h = yes; then
27782
27783cat >>confdefs.h <<\_ACEOF
27784#define HAVE_ALLOCA_H 1
27785_ACEOF
27786
27787fi
27788
27789echo "$as_me:$LINENO: checking for alloca" >&5
27790echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27791if test "${ac_cv_func_alloca_works+set}" = set; then
27792  echo $ECHO_N "(cached) $ECHO_C" >&6
27793else
27794  cat >conftest.$ac_ext <<_ACEOF
27795/* confdefs.h.  */
27796_ACEOF
27797cat confdefs.h >>conftest.$ac_ext
27798cat >>conftest.$ac_ext <<_ACEOF
27799/* end confdefs.h.  */
27800#ifdef __GNUC__
27801# define alloca __builtin_alloca
27802#else
27803# ifdef _MSC_VER
27804#  include <malloc.h>
27805#  define alloca _alloca
27806# else
27807#  if HAVE_ALLOCA_H
27808#   include <alloca.h>
27809#  else
27810#   ifdef _AIX
27811 #pragma alloca
27812#   else
27813#    ifndef alloca /* predefined by HP cc +Olibcalls */
27814char *alloca ();
27815#    endif
27816#   endif
27817#  endif
27818# endif
27819#endif
27820
27821int
27822main ()
27823{
27824char *p = (char *) alloca (1);
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  ac_cv_func_alloca_works=yes
27852else
27853  echo "$as_me: failed program was:" >&5
27854sed 's/^/| /' conftest.$ac_ext >&5
27855
27856ac_cv_func_alloca_works=no
27857fi
27858rm -f conftest.err conftest.$ac_objext \
27859      conftest$ac_exeext conftest.$ac_ext
27860fi
27861echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27862echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27863
27864if test $ac_cv_func_alloca_works = yes; then
27865
27866cat >>confdefs.h <<\_ACEOF
27867#define HAVE_ALLOCA 1
27868_ACEOF
27869
27870else
27871  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27872# that cause trouble.  Some versions do not even contain alloca or
27873# contain a buggy version.  If you still want to use their alloca,
27874# use ar to extract alloca.o from them instead of compiling alloca.c.
27875
27876ALLOCA=alloca.$ac_objext
27877
27878cat >>confdefs.h <<\_ACEOF
27879#define C_ALLOCA 1
27880_ACEOF
27881
27882
27883echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27884echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27885if test "${ac_cv_os_cray+set}" = set; then
27886  echo $ECHO_N "(cached) $ECHO_C" >&6
27887else
27888  cat >conftest.$ac_ext <<_ACEOF
27889/* confdefs.h.  */
27890_ACEOF
27891cat confdefs.h >>conftest.$ac_ext
27892cat >>conftest.$ac_ext <<_ACEOF
27893/* end confdefs.h.  */
27894#if defined(CRAY) && ! defined(CRAY2)
27895webecray
27896#else
27897wenotbecray
27898#endif
27899
27900_ACEOF
27901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27902  $EGREP "webecray" >/dev/null 2>&1; then
27903  ac_cv_os_cray=yes
27904else
27905  ac_cv_os_cray=no
27906fi
27907rm -f conftest*
27908
27909fi
27910echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27911echo "${ECHO_T}$ac_cv_os_cray" >&6
27912if test $ac_cv_os_cray = yes; then
27913  for ac_func in _getb67 GETB67 getb67; do
27914    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27915echo "$as_me:$LINENO: checking for $ac_func" >&5
27916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27917if eval "test \"\${$as_ac_var+set}\" = set"; then
27918  echo $ECHO_N "(cached) $ECHO_C" >&6
27919else
27920  cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h.  */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h.  */
27926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27928#define $ac_func innocuous_$ac_func
27929
27930/* System header to define __stub macros and hopefully few prototypes,
27931    which can conflict with char $ac_func (); below.
27932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27933    <limits.h> exists even on freestanding compilers.  */
27934
27935#ifdef __STDC__
27936# include <limits.h>
27937#else
27938# include <assert.h>
27939#endif
27940
27941#undef $ac_func
27942
27943/* Override any gcc2 internal prototype to avoid an error.  */
27944#ifdef __cplusplus
27945extern "C"
27946{
27947#endif
27948/* We use char because int might match the return type of a gcc2
27949   builtin and then its argument prototype would still apply.  */
27950char $ac_func ();
27951/* The GNU C library defines this for functions which it implements
27952    to always fail with ENOSYS.  Some functions are actually named
27953    something starting with __ and the normal name is an alias.  */
27954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27955choke me
27956#else
27957char (*f) () = $ac_func;
27958#endif
27959#ifdef __cplusplus
27960}
27961#endif
27962
27963int
27964main ()
27965{
27966return f != $ac_func;
27967  ;
27968  return 0;
27969}
27970_ACEOF
27971rm -f conftest.$ac_objext conftest$ac_exeext
27972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27973  (eval $ac_link) 2>conftest.er1
27974  ac_status=$?
27975  grep -v '^ *+' conftest.er1 >conftest.err
27976  rm -f conftest.er1
27977  cat conftest.err >&5
27978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979  (exit $ac_status); } &&
27980	 { ac_try='test -z "$ac_c_werror_flag"
27981			 || test ! -s conftest.err'
27982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983  (eval $ac_try) 2>&5
27984  ac_status=$?
27985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986  (exit $ac_status); }; } &&
27987	 { ac_try='test -s conftest$ac_exeext'
27988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989  (eval $ac_try) 2>&5
27990  ac_status=$?
27991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992  (exit $ac_status); }; }; then
27993  eval "$as_ac_var=yes"
27994else
27995  echo "$as_me: failed program was:" >&5
27996sed 's/^/| /' conftest.$ac_ext >&5
27997
27998eval "$as_ac_var=no"
27999fi
28000rm -f conftest.err conftest.$ac_objext \
28001      conftest$ac_exeext conftest.$ac_ext
28002fi
28003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28004echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28005if test `eval echo '${'$as_ac_var'}'` = yes; then
28006
28007cat >>confdefs.h <<_ACEOF
28008#define CRAY_STACKSEG_END $ac_func
28009_ACEOF
28010
28011    break
28012fi
28013
28014  done
28015fi
28016
28017echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28018echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28019if test "${ac_cv_c_stack_direction+set}" = set; then
28020  echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022  if test "$cross_compiling" = yes; then
28023  ac_cv_c_stack_direction=0
28024else
28025  cat >conftest.$ac_ext <<_ACEOF
28026/* confdefs.h.  */
28027_ACEOF
28028cat confdefs.h >>conftest.$ac_ext
28029cat >>conftest.$ac_ext <<_ACEOF
28030/* end confdefs.h.  */
28031int
28032find_stack_direction ()
28033{
28034  static char *addr = 0;
28035  auto char dummy;
28036  if (addr == 0)
28037    {
28038      addr = &dummy;
28039      return find_stack_direction ();
28040    }
28041  else
28042    return (&dummy > addr) ? 1 : -1;
28043}
28044
28045int
28046main ()
28047{
28048  exit (find_stack_direction () < 0);
28049}
28050_ACEOF
28051rm -f conftest$ac_exeext
28052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28053  (eval $ac_link) 2>&5
28054  ac_status=$?
28055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058  (eval $ac_try) 2>&5
28059  ac_status=$?
28060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061  (exit $ac_status); }; }; then
28062  ac_cv_c_stack_direction=1
28063else
28064  echo "$as_me: program exited with status $ac_status" >&5
28065echo "$as_me: failed program was:" >&5
28066sed 's/^/| /' conftest.$ac_ext >&5
28067
28068( exit $ac_status )
28069ac_cv_c_stack_direction=-1
28070fi
28071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28072fi
28073fi
28074echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28075echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28076
28077cat >>confdefs.h <<_ACEOF
28078#define STACK_DIRECTION $ac_cv_c_stack_direction
28079_ACEOF
28080
28081
28082fi
28083
28084
28085echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28086echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28087if test "${ac_cv_func_rand48+set}" = set; then
28088  echo $ECHO_N "(cached) $ECHO_C" >&6
28089else
28090  ac_ext=cc
28091ac_cpp='$CXXCPP $CPPFLAGS'
28092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28095
28096   cat >conftest.$ac_ext <<_ACEOF
28097/* confdefs.h.  */
28098_ACEOF
28099cat confdefs.h >>conftest.$ac_ext
28100cat >>conftest.$ac_ext <<_ACEOF
28101/* end confdefs.h.  */
28102#include <stdlib.h>
28103int
28104main ()
28105{
28106srand48(0);lrand48();drand48();
28107  ;
28108  return 0;
28109}
28110_ACEOF
28111rm -f conftest.$ac_objext
28112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28113  (eval $ac_compile) 2>conftest.er1
28114  ac_status=$?
28115  grep -v '^ *+' conftest.er1 >conftest.err
28116  rm -f conftest.er1
28117  cat conftest.err >&5
28118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119  (exit $ac_status); } &&
28120	 { ac_try='test -z "$ac_cxx_werror_flag"
28121			 || test ! -s conftest.err'
28122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28123  (eval $ac_try) 2>&5
28124  ac_status=$?
28125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126  (exit $ac_status); }; } &&
28127	 { ac_try='test -s conftest.$ac_objext'
28128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28129  (eval $ac_try) 2>&5
28130  ac_status=$?
28131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132  (exit $ac_status); }; }; then
28133  ac_cv_func_rand48=yes
28134else
28135  echo "$as_me: failed program was:" >&5
28136sed 's/^/| /' conftest.$ac_ext >&5
28137
28138ac_cv_func_rand48=no
28139fi
28140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28141  ac_ext=c
28142ac_cpp='$CPP $CPPFLAGS'
28143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28145ac_compiler_gnu=$ac_cv_c_compiler_gnu
28146
28147fi
28148echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28149echo "${ECHO_T}$ac_cv_func_rand48" >&6
28150
28151if test "$ac_cv_func_rand48" = "yes" ; then
28152
28153cat >>confdefs.h <<\_ACEOF
28154#define HAVE_RAND48 1
28155_ACEOF
28156
28157fi
28158
28159
28160echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28161echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28162if test "${ac_cv_cxx_namespaces+set}" = set; then
28163  echo $ECHO_N "(cached) $ECHO_C" >&6
28164else
28165  ac_ext=cc
28166ac_cpp='$CXXCPP $CPPFLAGS'
28167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28170
28171 cat >conftest.$ac_ext <<_ACEOF
28172/* confdefs.h.  */
28173_ACEOF
28174cat confdefs.h >>conftest.$ac_ext
28175cat >>conftest.$ac_ext <<_ACEOF
28176/* end confdefs.h.  */
28177namespace Outer { namespace Inner { int i = 0; }}
28178int
28179main ()
28180{
28181using namespace Outer::Inner; return i;
28182  ;
28183  return 0;
28184}
28185_ACEOF
28186rm -f conftest.$ac_objext
28187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28188  (eval $ac_compile) 2>conftest.er1
28189  ac_status=$?
28190  grep -v '^ *+' conftest.er1 >conftest.err
28191  rm -f conftest.er1
28192  cat conftest.err >&5
28193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194  (exit $ac_status); } &&
28195	 { ac_try='test -z "$ac_cxx_werror_flag"
28196			 || test ! -s conftest.err'
28197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198  (eval $ac_try) 2>&5
28199  ac_status=$?
28200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201  (exit $ac_status); }; } &&
28202	 { ac_try='test -s conftest.$ac_objext'
28203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204  (eval $ac_try) 2>&5
28205  ac_status=$?
28206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207  (exit $ac_status); }; }; then
28208  ac_cv_cxx_namespaces=yes
28209else
28210  echo "$as_me: failed program was:" >&5
28211sed 's/^/| /' conftest.$ac_ext >&5
28212
28213ac_cv_cxx_namespaces=no
28214fi
28215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28216 ac_ext=c
28217ac_cpp='$CPP $CPPFLAGS'
28218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28220ac_compiler_gnu=$ac_cv_c_compiler_gnu
28221
28222
28223fi
28224echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28225echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28226if test "$ac_cv_cxx_namespaces" = yes; then
28227
28228cat >>confdefs.h <<\_ACEOF
28229#define HAVE_NAMESPACES
28230_ACEOF
28231
28232fi
28233
28234echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28235echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28236if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28237  echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239
28240  ac_ext=cc
28241ac_cpp='$CXXCPP $CPPFLAGS'
28242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28245
28246  cat >conftest.$ac_ext <<_ACEOF
28247/* confdefs.h.  */
28248_ACEOF
28249cat confdefs.h >>conftest.$ac_ext
28250cat >>conftest.$ac_ext <<_ACEOF
28251/* end confdefs.h.  */
28252#include <ext/hash_map>
28253#ifdef HAVE_NAMESPACES
28254using namespace std;
28255#endif
28256int
28257main ()
28258{
28259hash_map<int, int> t;
28260  ;
28261  return 0;
28262}
28263_ACEOF
28264rm -f conftest.$ac_objext
28265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266  (eval $ac_compile) 2>conftest.er1
28267  ac_status=$?
28268  grep -v '^ *+' conftest.er1 >conftest.err
28269  rm -f conftest.er1
28270  cat conftest.err >&5
28271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272  (exit $ac_status); } &&
28273	 { ac_try='test -z "$ac_cxx_werror_flag"
28274			 || test ! -s conftest.err'
28275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276  (eval $ac_try) 2>&5
28277  ac_status=$?
28278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279  (exit $ac_status); }; } &&
28280	 { ac_try='test -s conftest.$ac_objext'
28281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282  (eval $ac_try) 2>&5
28283  ac_status=$?
28284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285  (exit $ac_status); }; }; then
28286  ac_cv_cxx_have_std_ext_hash_map=yes
28287else
28288  echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291ac_cv_cxx_have_std_ext_hash_map=no
28292fi
28293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28294  ac_ext=c
28295ac_cpp='$CPP $CPPFLAGS'
28296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28298ac_compiler_gnu=$ac_cv_c_compiler_gnu
28299
28300fi
28301echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28302echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28303 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28304 then
28305
28306cat >>confdefs.h <<\_ACEOF
28307#define HAVE_STD_EXT_HASH_MAP 1
28308_ACEOF
28309
28310 else
28311
28312cat >>confdefs.h <<\_ACEOF
28313#define HAVE_STD_EXT_HASH_MAP 0
28314_ACEOF
28315
28316 fi
28317
28318 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28319echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28320if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28321  echo $ECHO_N "(cached) $ECHO_C" >&6
28322else
28323
28324  ac_ext=cc
28325ac_cpp='$CXXCPP $CPPFLAGS'
28326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329
28330  cat >conftest.$ac_ext <<_ACEOF
28331/* confdefs.h.  */
28332_ACEOF
28333cat confdefs.h >>conftest.$ac_ext
28334cat >>conftest.$ac_ext <<_ACEOF
28335/* end confdefs.h.  */
28336#include <ext/hash_map>
28337#ifdef HAVE_NAMESPACES
28338using namespace __gnu_cxx;
28339#endif
28340int
28341main ()
28342{
28343hash_map<int,int> t;
28344  ;
28345  return 0;
28346}
28347_ACEOF
28348rm -f conftest.$ac_objext
28349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28350  (eval $ac_compile) 2>conftest.er1
28351  ac_status=$?
28352  grep -v '^ *+' conftest.er1 >conftest.err
28353  rm -f conftest.er1
28354  cat conftest.err >&5
28355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356  (exit $ac_status); } &&
28357	 { ac_try='test -z "$ac_cxx_werror_flag"
28358			 || test ! -s conftest.err'
28359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360  (eval $ac_try) 2>&5
28361  ac_status=$?
28362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363  (exit $ac_status); }; } &&
28364	 { ac_try='test -s conftest.$ac_objext'
28365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28366  (eval $ac_try) 2>&5
28367  ac_status=$?
28368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369  (exit $ac_status); }; }; then
28370  ac_cv_cxx_have_gnu_ext_hash_map=yes
28371else
28372  echo "$as_me: failed program was:" >&5
28373sed 's/^/| /' conftest.$ac_ext >&5
28374
28375ac_cv_cxx_have_gnu_ext_hash_map=no
28376fi
28377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378  ac_ext=c
28379ac_cpp='$CPP $CPPFLAGS'
28380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28382ac_compiler_gnu=$ac_cv_c_compiler_gnu
28383
28384fi
28385echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28386echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28387 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28388 then
28389
28390cat >>confdefs.h <<\_ACEOF
28391#define HAVE_GNU_EXT_HASH_MAP 1
28392_ACEOF
28393
28394 else
28395
28396cat >>confdefs.h <<\_ACEOF
28397#define HAVE_GNU_EXT_HASH_MAP 0
28398_ACEOF
28399
28400 fi
28401
28402 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28403echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28404if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28405  echo $ECHO_N "(cached) $ECHO_C" >&6
28406else
28407
28408  ac_ext=cc
28409ac_cpp='$CXXCPP $CPPFLAGS'
28410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413
28414  cat >conftest.$ac_ext <<_ACEOF
28415/* confdefs.h.  */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h.  */
28420#include <hash_map>
28421int
28422main ()
28423{
28424hash_map<int,int> t;
28425  ;
28426  return 0;
28427}
28428_ACEOF
28429rm -f conftest.$ac_objext
28430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28431  (eval $ac_compile) 2>conftest.er1
28432  ac_status=$?
28433  grep -v '^ *+' conftest.er1 >conftest.err
28434  rm -f conftest.er1
28435  cat conftest.err >&5
28436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437  (exit $ac_status); } &&
28438	 { ac_try='test -z "$ac_cxx_werror_flag"
28439			 || test ! -s conftest.err'
28440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441  (eval $ac_try) 2>&5
28442  ac_status=$?
28443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444  (exit $ac_status); }; } &&
28445	 { ac_try='test -s conftest.$ac_objext'
28446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447  (eval $ac_try) 2>&5
28448  ac_status=$?
28449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450  (exit $ac_status); }; }; then
28451  ac_cv_cxx_have_global_hash_map=yes
28452else
28453  echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456ac_cv_cxx_have_global_hash_map=no
28457fi
28458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28459  ac_ext=c
28460ac_cpp='$CPP $CPPFLAGS'
28461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_c_compiler_gnu
28464
28465fi
28466echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28467echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28468 if test "$ac_cv_cxx_have_global_hash_map" = yes
28469 then
28470
28471cat >>confdefs.h <<\_ACEOF
28472#define HAVE_GLOBAL_HASH_MAP 1
28473_ACEOF
28474
28475 else
28476
28477cat >>confdefs.h <<\_ACEOF
28478#define HAVE_GLOBAL_HASH_MAP 0
28479_ACEOF
28480
28481 fi
28482
28483echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28484echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28485if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28486  echo $ECHO_N "(cached) $ECHO_C" >&6
28487else
28488
28489  ac_ext=cc
28490ac_cpp='$CXXCPP $CPPFLAGS'
28491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28494
28495  cat >conftest.$ac_ext <<_ACEOF
28496/* confdefs.h.  */
28497_ACEOF
28498cat confdefs.h >>conftest.$ac_ext
28499cat >>conftest.$ac_ext <<_ACEOF
28500/* end confdefs.h.  */
28501#include <ext/hash_set>
28502#ifdef HAVE_NAMESPACES
28503using namespace std;
28504#endif
28505int
28506main ()
28507{
28508hash_set<int> t;
28509  ;
28510  return 0;
28511}
28512_ACEOF
28513rm -f conftest.$ac_objext
28514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28515  (eval $ac_compile) 2>conftest.er1
28516  ac_status=$?
28517  grep -v '^ *+' conftest.er1 >conftest.err
28518  rm -f conftest.er1
28519  cat conftest.err >&5
28520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521  (exit $ac_status); } &&
28522	 { ac_try='test -z "$ac_cxx_werror_flag"
28523			 || test ! -s conftest.err'
28524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525  (eval $ac_try) 2>&5
28526  ac_status=$?
28527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528  (exit $ac_status); }; } &&
28529	 { ac_try='test -s conftest.$ac_objext'
28530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531  (eval $ac_try) 2>&5
28532  ac_status=$?
28533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534  (exit $ac_status); }; }; then
28535  ac_cv_cxx_have_std_ext_hash_set=yes
28536else
28537  echo "$as_me: failed program was:" >&5
28538sed 's/^/| /' conftest.$ac_ext >&5
28539
28540ac_cv_cxx_have_std_ext_hash_set=no
28541fi
28542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28543  ac_ext=c
28544ac_cpp='$CPP $CPPFLAGS'
28545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28547ac_compiler_gnu=$ac_cv_c_compiler_gnu
28548
28549fi
28550echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28551echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28552 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28553 then
28554
28555cat >>confdefs.h <<\_ACEOF
28556#define HAVE_STD_EXT_HASH_SET 1
28557_ACEOF
28558
28559 else
28560
28561cat >>confdefs.h <<\_ACEOF
28562#define HAVE_STD_EXT_HASH_SET 0
28563_ACEOF
28564
28565 fi
28566
28567 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28568echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28569if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28570  echo $ECHO_N "(cached) $ECHO_C" >&6
28571else
28572
28573  ac_ext=cc
28574ac_cpp='$CXXCPP $CPPFLAGS'
28575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28578
28579  cat >conftest.$ac_ext <<_ACEOF
28580/* confdefs.h.  */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h.  */
28585#include <ext/hash_set>
28586#ifdef HAVE_NAMESPACES
28587using namespace __gnu_cxx;
28588#endif
28589int
28590main ()
28591{
28592hash_set<int> t;
28593  ;
28594  return 0;
28595}
28596_ACEOF
28597rm -f conftest.$ac_objext
28598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28599  (eval $ac_compile) 2>conftest.er1
28600  ac_status=$?
28601  grep -v '^ *+' conftest.er1 >conftest.err
28602  rm -f conftest.er1
28603  cat conftest.err >&5
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); } &&
28606	 { ac_try='test -z "$ac_cxx_werror_flag"
28607			 || test ! -s conftest.err'
28608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609  (eval $ac_try) 2>&5
28610  ac_status=$?
28611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612  (exit $ac_status); }; } &&
28613	 { ac_try='test -s conftest.$ac_objext'
28614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615  (eval $ac_try) 2>&5
28616  ac_status=$?
28617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618  (exit $ac_status); }; }; then
28619  ac_cv_cxx_have_gnu_ext_hash_set=yes
28620else
28621  echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624ac_cv_cxx_have_gnu_ext_hash_set=no
28625fi
28626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28627  ac_ext=c
28628ac_cpp='$CPP $CPPFLAGS'
28629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28631ac_compiler_gnu=$ac_cv_c_compiler_gnu
28632
28633fi
28634echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28635echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28636 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28637 then
28638
28639cat >>confdefs.h <<\_ACEOF
28640#define HAVE_GNU_EXT_HASH_SET 1
28641_ACEOF
28642
28643 else
28644
28645cat >>confdefs.h <<\_ACEOF
28646#define HAVE_GNU_EXT_HASH_SET 0
28647_ACEOF
28648
28649 fi
28650
28651 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28652echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28653if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28654  echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656
28657  ac_ext=cc
28658ac_cpp='$CXXCPP $CPPFLAGS'
28659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662
28663  cat >conftest.$ac_ext <<_ACEOF
28664/* confdefs.h.  */
28665_ACEOF
28666cat confdefs.h >>conftest.$ac_ext
28667cat >>conftest.$ac_ext <<_ACEOF
28668/* end confdefs.h.  */
28669#include <hash_set>
28670int
28671main ()
28672{
28673hash_set<int> t; return 0;
28674  ;
28675  return 0;
28676}
28677_ACEOF
28678rm -f conftest.$ac_objext
28679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28680  (eval $ac_compile) 2>conftest.er1
28681  ac_status=$?
28682  grep -v '^ *+' conftest.er1 >conftest.err
28683  rm -f conftest.er1
28684  cat conftest.err >&5
28685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686  (exit $ac_status); } &&
28687	 { ac_try='test -z "$ac_cxx_werror_flag"
28688			 || test ! -s conftest.err'
28689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690  (eval $ac_try) 2>&5
28691  ac_status=$?
28692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693  (exit $ac_status); }; } &&
28694	 { ac_try='test -s conftest.$ac_objext'
28695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696  (eval $ac_try) 2>&5
28697  ac_status=$?
28698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699  (exit $ac_status); }; }; then
28700  ac_cv_cxx_have_global_hash_set=yes
28701else
28702  echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705ac_cv_cxx_have_global_hash_set=no
28706fi
28707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28708  ac_ext=c
28709ac_cpp='$CPP $CPPFLAGS'
28710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712ac_compiler_gnu=$ac_cv_c_compiler_gnu
28713
28714fi
28715echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28716echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28717 if test "$ac_cv_cxx_have_global_hash_set" = yes
28718 then
28719
28720cat >>confdefs.h <<\_ACEOF
28721#define HAVE_GLOBAL_HASH_SET 1
28722_ACEOF
28723
28724 else
28725
28726cat >>confdefs.h <<\_ACEOF
28727#define HAVE_GLOBAL_HASH_SET 0
28728_ACEOF
28729
28730 fi
28731
28732echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28733echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28734if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28735  echo $ECHO_N "(cached) $ECHO_C" >&6
28736else
28737
28738  ac_ext=cc
28739ac_cpp='$CXXCPP $CPPFLAGS'
28740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28743
28744  cat >conftest.$ac_ext <<_ACEOF
28745/* confdefs.h.  */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h.  */
28750#include <iterator>
28751#ifdef HAVE_NAMESPACES
28752using namespace std;
28753#endif
28754int
28755main ()
28756{
28757iterator<int,int,int> t; return 0;
28758  ;
28759  return 0;
28760}
28761_ACEOF
28762rm -f conftest.$ac_objext
28763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28764  (eval $ac_compile) 2>conftest.er1
28765  ac_status=$?
28766  grep -v '^ *+' conftest.er1 >conftest.err
28767  rm -f conftest.er1
28768  cat conftest.err >&5
28769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770  (exit $ac_status); } &&
28771	 { ac_try='test -z "$ac_cxx_werror_flag"
28772			 || test ! -s conftest.err'
28773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774  (eval $ac_try) 2>&5
28775  ac_status=$?
28776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777  (exit $ac_status); }; } &&
28778	 { ac_try='test -s conftest.$ac_objext'
28779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780  (eval $ac_try) 2>&5
28781  ac_status=$?
28782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783  (exit $ac_status); }; }; then
28784  ac_cv_cxx_have_std_iterator=yes
28785else
28786  echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789ac_cv_cxx_have_std_iterator=no
28790fi
28791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28792  ac_ext=c
28793ac_cpp='$CPP $CPPFLAGS'
28794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28796ac_compiler_gnu=$ac_cv_c_compiler_gnu
28797
28798
28799fi
28800echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28801echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28802if test "$ac_cv_cxx_have_std_iterator" = yes
28803then
28804
28805cat >>confdefs.h <<\_ACEOF
28806#define HAVE_STD_ITERATOR 1
28807_ACEOF
28808
28809else
28810
28811cat >>confdefs.h <<\_ACEOF
28812#define HAVE_STD_ITERATOR 0
28813_ACEOF
28814
28815fi
28816
28817echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28818echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28819if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28820  echo $ECHO_N "(cached) $ECHO_C" >&6
28821else
28822
28823  ac_ext=cc
28824ac_cpp='$CXXCPP $CPPFLAGS'
28825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28828
28829  cat >conftest.$ac_ext <<_ACEOF
28830/* confdefs.h.  */
28831_ACEOF
28832cat confdefs.h >>conftest.$ac_ext
28833cat >>conftest.$ac_ext <<_ACEOF
28834/* end confdefs.h.  */
28835#include <iterator>
28836#ifdef HAVE_NAMESPACES
28837using namespace std;
28838#endif
28839int
28840main ()
28841{
28842bidirectional_iterator<int,int> t; return 0;
28843  ;
28844  return 0;
28845}
28846_ACEOF
28847rm -f conftest.$ac_objext
28848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28849  (eval $ac_compile) 2>conftest.er1
28850  ac_status=$?
28851  grep -v '^ *+' conftest.er1 >conftest.err
28852  rm -f conftest.er1
28853  cat conftest.err >&5
28854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855  (exit $ac_status); } &&
28856	 { ac_try='test -z "$ac_cxx_werror_flag"
28857			 || test ! -s conftest.err'
28858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859  (eval $ac_try) 2>&5
28860  ac_status=$?
28861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862  (exit $ac_status); }; } &&
28863	 { ac_try='test -s conftest.$ac_objext'
28864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865  (eval $ac_try) 2>&5
28866  ac_status=$?
28867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868  (exit $ac_status); }; }; then
28869  ac_cv_cxx_have_bi_iterator=yes
28870else
28871  echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874ac_cv_cxx_have_bi_iterator=no
28875fi
28876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28877  ac_ext=c
28878ac_cpp='$CPP $CPPFLAGS'
28879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28881ac_compiler_gnu=$ac_cv_c_compiler_gnu
28882
28883
28884fi
28885echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28886echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28887if test "$ac_cv_cxx_have_bi_iterator" = yes
28888then
28889
28890cat >>confdefs.h <<\_ACEOF
28891#define HAVE_BI_ITERATOR 1
28892_ACEOF
28893
28894else
28895
28896cat >>confdefs.h <<\_ACEOF
28897#define HAVE_BI_ITERATOR 0
28898_ACEOF
28899
28900fi
28901
28902echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28903echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28904if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28905  echo $ECHO_N "(cached) $ECHO_C" >&6
28906else
28907
28908  ac_ext=cc
28909ac_cpp='$CXXCPP $CPPFLAGS'
28910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28913
28914  cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h.  */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h.  */
28920#include <iterator>
28921#ifdef HAVE_NAMESPACES
28922using namespace std;
28923#endif
28924int
28925main ()
28926{
28927forward_iterator<int,int> t; return 0;
28928  ;
28929  return 0;
28930}
28931_ACEOF
28932rm -f conftest.$ac_objext
28933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28934  (eval $ac_compile) 2>conftest.er1
28935  ac_status=$?
28936  grep -v '^ *+' conftest.er1 >conftest.err
28937  rm -f conftest.er1
28938  cat conftest.err >&5
28939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940  (exit $ac_status); } &&
28941	 { ac_try='test -z "$ac_cxx_werror_flag"
28942			 || test ! -s conftest.err'
28943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944  (eval $ac_try) 2>&5
28945  ac_status=$?
28946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947  (exit $ac_status); }; } &&
28948	 { ac_try='test -s conftest.$ac_objext'
28949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28950  (eval $ac_try) 2>&5
28951  ac_status=$?
28952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953  (exit $ac_status); }; }; then
28954  ac_cv_cxx_have_fwd_iterator=yes
28955else
28956  echo "$as_me: failed program was:" >&5
28957sed 's/^/| /' conftest.$ac_ext >&5
28958
28959ac_cv_cxx_have_fwd_iterator=no
28960fi
28961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28962  ac_ext=c
28963ac_cpp='$CPP $CPPFLAGS'
28964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28966ac_compiler_gnu=$ac_cv_c_compiler_gnu
28967
28968
28969fi
28970echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28971echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28972if test "$ac_cv_cxx_have_fwd_iterator" = yes
28973then
28974
28975cat >>confdefs.h <<\_ACEOF
28976#define HAVE_FWD_ITERATOR 1
28977_ACEOF
28978
28979else
28980
28981cat >>confdefs.h <<\_ACEOF
28982#define HAVE_FWD_ITERATOR 0
28983_ACEOF
28984
28985fi
28986
28987
28988echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28989echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28990if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28991  echo $ECHO_N "(cached) $ECHO_C" >&6
28992else
28993  ac_ext=cc
28994ac_cpp='$CXXCPP $CPPFLAGS'
28995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28998
28999   cat >conftest.$ac_ext <<_ACEOF
29000/* confdefs.h.  */
29001_ACEOF
29002cat confdefs.h >>conftest.$ac_ext
29003cat >>conftest.$ac_ext <<_ACEOF
29004/* end confdefs.h.  */
29005#include <math.h>
29006int
29007main ()
29008{
29009float f; isnan(f);
29010  ;
29011  return 0;
29012}
29013_ACEOF
29014rm -f conftest.$ac_objext
29015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29016  (eval $ac_compile) 2>conftest.er1
29017  ac_status=$?
29018  grep -v '^ *+' conftest.er1 >conftest.err
29019  rm -f conftest.er1
29020  cat conftest.err >&5
29021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022  (exit $ac_status); } &&
29023	 { ac_try='test -z "$ac_cxx_werror_flag"
29024			 || test ! -s conftest.err'
29025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026  (eval $ac_try) 2>&5
29027  ac_status=$?
29028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029  (exit $ac_status); }; } &&
29030	 { ac_try='test -s conftest.$ac_objext'
29031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032  (eval $ac_try) 2>&5
29033  ac_status=$?
29034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035  (exit $ac_status); }; }; then
29036  ac_cv_func_isnan_in_math_h=yes
29037else
29038  echo "$as_me: failed program was:" >&5
29039sed 's/^/| /' conftest.$ac_ext >&5
29040
29041ac_cv_func_isnan_in_math_h=no
29042fi
29043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29044  ac_ext=c
29045ac_cpp='$CPP $CPPFLAGS'
29046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29048ac_compiler_gnu=$ac_cv_c_compiler_gnu
29049
29050fi
29051echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29052echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29053
29054
29055if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29056
29057cat >>confdefs.h <<\_ACEOF
29058#define HAVE_ISNAN_IN_MATH_H 1
29059_ACEOF
29060
29061fi
29062
29063echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29064echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29065if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29066  echo $ECHO_N "(cached) $ECHO_C" >&6
29067else
29068  ac_ext=cc
29069ac_cpp='$CXXCPP $CPPFLAGS'
29070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29073
29074   cat >conftest.$ac_ext <<_ACEOF
29075/* confdefs.h.  */
29076_ACEOF
29077cat confdefs.h >>conftest.$ac_ext
29078cat >>conftest.$ac_ext <<_ACEOF
29079/* end confdefs.h.  */
29080#include <cmath>
29081int
29082main ()
29083{
29084float f; isnan(f);
29085  ;
29086  return 0;
29087}
29088_ACEOF
29089rm -f conftest.$ac_objext
29090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29091  (eval $ac_compile) 2>conftest.er1
29092  ac_status=$?
29093  grep -v '^ *+' conftest.er1 >conftest.err
29094  rm -f conftest.er1
29095  cat conftest.err >&5
29096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097  (exit $ac_status); } &&
29098	 { ac_try='test -z "$ac_cxx_werror_flag"
29099			 || test ! -s conftest.err'
29100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101  (eval $ac_try) 2>&5
29102  ac_status=$?
29103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104  (exit $ac_status); }; } &&
29105	 { ac_try='test -s conftest.$ac_objext'
29106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107  (eval $ac_try) 2>&5
29108  ac_status=$?
29109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110  (exit $ac_status); }; }; then
29111  ac_cv_func_isnan_in_cmath=yes
29112else
29113  echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116ac_cv_func_isnan_in_cmath=no
29117fi
29118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29119  ac_ext=c
29120ac_cpp='$CPP $CPPFLAGS'
29121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123ac_compiler_gnu=$ac_cv_c_compiler_gnu
29124
29125fi
29126echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29127echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29128
29129if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29130
29131cat >>confdefs.h <<\_ACEOF
29132#define HAVE_ISNAN_IN_CMATH 1
29133_ACEOF
29134
29135fi
29136
29137echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29138echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29139if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29140  echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142  ac_ext=cc
29143ac_cpp='$CXXCPP $CPPFLAGS'
29144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29147
29148   cat >conftest.$ac_ext <<_ACEOF
29149/* confdefs.h.  */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h.  */
29154#include <cmath>
29155int
29156main ()
29157{
29158float f; std::isnan(f);
29159  ;
29160  return 0;
29161}
29162_ACEOF
29163rm -f conftest.$ac_objext
29164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29165  (eval $ac_compile) 2>conftest.er1
29166  ac_status=$?
29167  grep -v '^ *+' conftest.er1 >conftest.err
29168  rm -f conftest.er1
29169  cat conftest.err >&5
29170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171  (exit $ac_status); } &&
29172	 { ac_try='test -z "$ac_cxx_werror_flag"
29173			 || test ! -s conftest.err'
29174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175  (eval $ac_try) 2>&5
29176  ac_status=$?
29177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178  (exit $ac_status); }; } &&
29179	 { ac_try='test -s conftest.$ac_objext'
29180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181  (eval $ac_try) 2>&5
29182  ac_status=$?
29183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184  (exit $ac_status); }; }; then
29185  ac_cv_func_std_isnan_in_cmath=yes
29186else
29187  echo "$as_me: failed program was:" >&5
29188sed 's/^/| /' conftest.$ac_ext >&5
29189
29190ac_cv_func_std_isnan_in_cmath=no
29191fi
29192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29193  ac_ext=c
29194ac_cpp='$CPP $CPPFLAGS'
29195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29197ac_compiler_gnu=$ac_cv_c_compiler_gnu
29198
29199fi
29200echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29201echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29202
29203if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29204
29205cat >>confdefs.h <<\_ACEOF
29206#define HAVE_STD_ISNAN_IN_CMATH 1
29207_ACEOF
29208
29209fi
29210
29211
29212echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29213echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29214if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29215  echo $ECHO_N "(cached) $ECHO_C" >&6
29216else
29217  ac_ext=cc
29218ac_cpp='$CXXCPP $CPPFLAGS'
29219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29222
29223   cat >conftest.$ac_ext <<_ACEOF
29224/* confdefs.h.  */
29225_ACEOF
29226cat confdefs.h >>conftest.$ac_ext
29227cat >>conftest.$ac_ext <<_ACEOF
29228/* end confdefs.h.  */
29229#include <math.h>
29230int
29231main ()
29232{
29233float f; isinf(f);
29234  ;
29235  return 0;
29236}
29237_ACEOF
29238rm -f conftest.$ac_objext
29239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29240  (eval $ac_compile) 2>conftest.er1
29241  ac_status=$?
29242  grep -v '^ *+' conftest.er1 >conftest.err
29243  rm -f conftest.er1
29244  cat conftest.err >&5
29245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246  (exit $ac_status); } &&
29247	 { ac_try='test -z "$ac_cxx_werror_flag"
29248			 || test ! -s conftest.err'
29249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250  (eval $ac_try) 2>&5
29251  ac_status=$?
29252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253  (exit $ac_status); }; } &&
29254	 { ac_try='test -s conftest.$ac_objext'
29255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256  (eval $ac_try) 2>&5
29257  ac_status=$?
29258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259  (exit $ac_status); }; }; then
29260  ac_cv_func_isinf_in_math_h=yes
29261else
29262  echo "$as_me: failed program was:" >&5
29263sed 's/^/| /' conftest.$ac_ext >&5
29264
29265ac_cv_func_isinf_in_math_h=no
29266fi
29267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29268  ac_ext=c
29269ac_cpp='$CPP $CPPFLAGS'
29270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272ac_compiler_gnu=$ac_cv_c_compiler_gnu
29273
29274fi
29275echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29276echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29277
29278if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29279
29280cat >>confdefs.h <<\_ACEOF
29281#define HAVE_ISINF_IN_MATH_H 1
29282_ACEOF
29283
29284fi
29285
29286echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29287echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29288if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29289  echo $ECHO_N "(cached) $ECHO_C" >&6
29290else
29291  ac_ext=cc
29292ac_cpp='$CXXCPP $CPPFLAGS'
29293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29296
29297   cat >conftest.$ac_ext <<_ACEOF
29298/* confdefs.h.  */
29299_ACEOF
29300cat confdefs.h >>conftest.$ac_ext
29301cat >>conftest.$ac_ext <<_ACEOF
29302/* end confdefs.h.  */
29303#include <cmath>
29304int
29305main ()
29306{
29307float f; isinf(f);
29308  ;
29309  return 0;
29310}
29311_ACEOF
29312rm -f conftest.$ac_objext
29313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29314  (eval $ac_compile) 2>conftest.er1
29315  ac_status=$?
29316  grep -v '^ *+' conftest.er1 >conftest.err
29317  rm -f conftest.er1
29318  cat conftest.err >&5
29319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320  (exit $ac_status); } &&
29321	 { ac_try='test -z "$ac_cxx_werror_flag"
29322			 || test ! -s conftest.err'
29323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324  (eval $ac_try) 2>&5
29325  ac_status=$?
29326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327  (exit $ac_status); }; } &&
29328	 { ac_try='test -s conftest.$ac_objext'
29329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330  (eval $ac_try) 2>&5
29331  ac_status=$?
29332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333  (exit $ac_status); }; }; then
29334  ac_cv_func_isinf_in_cmath=yes
29335else
29336  echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339ac_cv_func_isinf_in_cmath=no
29340fi
29341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29342  ac_ext=c
29343ac_cpp='$CPP $CPPFLAGS'
29344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29346ac_compiler_gnu=$ac_cv_c_compiler_gnu
29347
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29350echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29351
29352if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29353
29354cat >>confdefs.h <<\_ACEOF
29355#define HAVE_ISINF_IN_CMATH 1
29356_ACEOF
29357
29358fi
29359
29360echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29361echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29362if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29363  echo $ECHO_N "(cached) $ECHO_C" >&6
29364else
29365  ac_ext=cc
29366ac_cpp='$CXXCPP $CPPFLAGS'
29367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370
29371   cat >conftest.$ac_ext <<_ACEOF
29372/* confdefs.h.  */
29373_ACEOF
29374cat confdefs.h >>conftest.$ac_ext
29375cat >>conftest.$ac_ext <<_ACEOF
29376/* end confdefs.h.  */
29377#include <cmath>
29378int
29379main ()
29380{
29381float f; std::isinf(f)}
29382  ;
29383  return 0;
29384}
29385_ACEOF
29386rm -f conftest.$ac_objext
29387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29388  (eval $ac_compile) 2>conftest.er1
29389  ac_status=$?
29390  grep -v '^ *+' conftest.er1 >conftest.err
29391  rm -f conftest.er1
29392  cat conftest.err >&5
29393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394  (exit $ac_status); } &&
29395	 { ac_try='test -z "$ac_cxx_werror_flag"
29396			 || test ! -s conftest.err'
29397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398  (eval $ac_try) 2>&5
29399  ac_status=$?
29400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401  (exit $ac_status); }; } &&
29402	 { ac_try='test -s conftest.$ac_objext'
29403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404  (eval $ac_try) 2>&5
29405  ac_status=$?
29406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407  (exit $ac_status); }; }; then
29408  ac_cv_func_std_isinf_in_cmath=yes
29409else
29410  echo "$as_me: failed program was:" >&5
29411sed 's/^/| /' conftest.$ac_ext >&5
29412
29413ac_cv_func_std_isinf_in_cmath=no
29414fi
29415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29416  ac_ext=c
29417ac_cpp='$CPP $CPPFLAGS'
29418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29420ac_compiler_gnu=$ac_cv_c_compiler_gnu
29421
29422fi
29423echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29424echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29425
29426if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29427
29428cat >>confdefs.h <<\_ACEOF
29429#define HAVE_STD_ISINF_IN_CMATH 1
29430_ACEOF
29431
29432fi
29433
29434echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29435echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29436if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29437  echo $ECHO_N "(cached) $ECHO_C" >&6
29438else
29439  ac_ext=cc
29440ac_cpp='$CXXCPP $CPPFLAGS'
29441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29444
29445   cat >conftest.$ac_ext <<_ACEOF
29446/* confdefs.h.  */
29447_ACEOF
29448cat confdefs.h >>conftest.$ac_ext
29449cat >>conftest.$ac_ext <<_ACEOF
29450/* end confdefs.h.  */
29451#include <ieeefp.h>
29452int
29453main ()
29454{
29455float f; finite(f);
29456  ;
29457  return 0;
29458}
29459_ACEOF
29460rm -f conftest.$ac_objext
29461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29462  (eval $ac_compile) 2>conftest.er1
29463  ac_status=$?
29464  grep -v '^ *+' conftest.er1 >conftest.err
29465  rm -f conftest.er1
29466  cat conftest.err >&5
29467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468  (exit $ac_status); } &&
29469	 { ac_try='test -z "$ac_cxx_werror_flag"
29470			 || test ! -s conftest.err'
29471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472  (eval $ac_try) 2>&5
29473  ac_status=$?
29474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475  (exit $ac_status); }; } &&
29476	 { ac_try='test -s conftest.$ac_objext'
29477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478  (eval $ac_try) 2>&5
29479  ac_status=$?
29480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481  (exit $ac_status); }; }; then
29482  ac_cv_func_finite_in_ieeefp_h=yes
29483else
29484  echo "$as_me: failed program was:" >&5
29485sed 's/^/| /' conftest.$ac_ext >&5
29486
29487ac_cv_func_finite_in_ieeefp_h=no
29488fi
29489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29490  ac_ext=c
29491ac_cpp='$CPP $CPPFLAGS'
29492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29494ac_compiler_gnu=$ac_cv_c_compiler_gnu
29495
29496fi
29497echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29498echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29499
29500if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29501
29502cat >>confdefs.h <<\_ACEOF
29503#define HAVE_FINITE_IN_IEEEFP_H 1
29504_ACEOF
29505
29506fi
29507
29508
29509
29510
29511
29512for ac_header in stdlib.h unistd.h
29513do
29514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29515if eval "test \"\${$as_ac_Header+set}\" = set"; then
29516  echo "$as_me:$LINENO: checking for $ac_header" >&5
29517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29518if eval "test \"\${$as_ac_Header+set}\" = set"; then
29519  echo $ECHO_N "(cached) $ECHO_C" >&6
29520fi
29521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29523else
29524  # Is the header compilable?
29525echo "$as_me:$LINENO: checking $ac_header usability" >&5
29526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29527cat >conftest.$ac_ext <<_ACEOF
29528/* confdefs.h.  */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h.  */
29533$ac_includes_default
29534#include <$ac_header>
29535_ACEOF
29536rm -f conftest.$ac_objext
29537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29538  (eval $ac_compile) 2>conftest.er1
29539  ac_status=$?
29540  grep -v '^ *+' conftest.er1 >conftest.err
29541  rm -f conftest.er1
29542  cat conftest.err >&5
29543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544  (exit $ac_status); } &&
29545	 { ac_try='test -z "$ac_c_werror_flag"
29546			 || test ! -s conftest.err'
29547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548  (eval $ac_try) 2>&5
29549  ac_status=$?
29550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551  (exit $ac_status); }; } &&
29552	 { ac_try='test -s conftest.$ac_objext'
29553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554  (eval $ac_try) 2>&5
29555  ac_status=$?
29556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557  (exit $ac_status); }; }; then
29558  ac_header_compiler=yes
29559else
29560  echo "$as_me: failed program was:" >&5
29561sed 's/^/| /' conftest.$ac_ext >&5
29562
29563ac_header_compiler=no
29564fi
29565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29567echo "${ECHO_T}$ac_header_compiler" >&6
29568
29569# Is the header present?
29570echo "$as_me:$LINENO: checking $ac_header presence" >&5
29571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29572cat >conftest.$ac_ext <<_ACEOF
29573/* confdefs.h.  */
29574_ACEOF
29575cat confdefs.h >>conftest.$ac_ext
29576cat >>conftest.$ac_ext <<_ACEOF
29577/* end confdefs.h.  */
29578#include <$ac_header>
29579_ACEOF
29580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29582  ac_status=$?
29583  grep -v '^ *+' conftest.er1 >conftest.err
29584  rm -f conftest.er1
29585  cat conftest.err >&5
29586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587  (exit $ac_status); } >/dev/null; then
29588  if test -s conftest.err; then
29589    ac_cpp_err=$ac_c_preproc_warn_flag
29590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29591  else
29592    ac_cpp_err=
29593  fi
29594else
29595  ac_cpp_err=yes
29596fi
29597if test -z "$ac_cpp_err"; then
29598  ac_header_preproc=yes
29599else
29600  echo "$as_me: failed program was:" >&5
29601sed 's/^/| /' conftest.$ac_ext >&5
29602
29603  ac_header_preproc=no
29604fi
29605rm -f conftest.err conftest.$ac_ext
29606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29607echo "${ECHO_T}$ac_header_preproc" >&6
29608
29609# So?  What about this header?
29610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29611  yes:no: )
29612    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29616    ac_header_preproc=yes
29617    ;;
29618  no:yes:* )
29619    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29621    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29622echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29623    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29625    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29626echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29629    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29631    (
29632      cat <<\_ASBOX
29633## ----------------------------------- ##
29634## Report this to llvmbugs@cs.uiuc.edu ##
29635## ----------------------------------- ##
29636_ASBOX
29637    ) |
29638      sed "s/^/$as_me: WARNING:     /" >&2
29639    ;;
29640esac
29641echo "$as_me:$LINENO: checking for $ac_header" >&5
29642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29643if eval "test \"\${$as_ac_Header+set}\" = set"; then
29644  echo $ECHO_N "(cached) $ECHO_C" >&6
29645else
29646  eval "$as_ac_Header=\$ac_header_preproc"
29647fi
29648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29650
29651fi
29652if test `eval echo '${'$as_ac_Header'}'` = yes; then
29653  cat >>confdefs.h <<_ACEOF
29654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29655_ACEOF
29656
29657fi
29658
29659done
29660
29661
29662for ac_func in getpagesize
29663do
29664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29665echo "$as_me:$LINENO: checking for $ac_func" >&5
29666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29667if eval "test \"\${$as_ac_var+set}\" = set"; then
29668  echo $ECHO_N "(cached) $ECHO_C" >&6
29669else
29670  cat >conftest.$ac_ext <<_ACEOF
29671/* confdefs.h.  */
29672_ACEOF
29673cat confdefs.h >>conftest.$ac_ext
29674cat >>conftest.$ac_ext <<_ACEOF
29675/* end confdefs.h.  */
29676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29678#define $ac_func innocuous_$ac_func
29679
29680/* System header to define __stub macros and hopefully few prototypes,
29681    which can conflict with char $ac_func (); below.
29682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683    <limits.h> exists even on freestanding compilers.  */
29684
29685#ifdef __STDC__
29686# include <limits.h>
29687#else
29688# include <assert.h>
29689#endif
29690
29691#undef $ac_func
29692
29693/* Override any gcc2 internal prototype to avoid an error.  */
29694#ifdef __cplusplus
29695extern "C"
29696{
29697#endif
29698/* We use char because int might match the return type of a gcc2
29699   builtin and then its argument prototype would still apply.  */
29700char $ac_func ();
29701/* The GNU C library defines this for functions which it implements
29702    to always fail with ENOSYS.  Some functions are actually named
29703    something starting with __ and the normal name is an alias.  */
29704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29705choke me
29706#else
29707char (*f) () = $ac_func;
29708#endif
29709#ifdef __cplusplus
29710}
29711#endif
29712
29713int
29714main ()
29715{
29716return f != $ac_func;
29717  ;
29718  return 0;
29719}
29720_ACEOF
29721rm -f conftest.$ac_objext conftest$ac_exeext
29722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723  (eval $ac_link) 2>conftest.er1
29724  ac_status=$?
29725  grep -v '^ *+' conftest.er1 >conftest.err
29726  rm -f conftest.er1
29727  cat conftest.err >&5
29728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729  (exit $ac_status); } &&
29730	 { ac_try='test -z "$ac_c_werror_flag"
29731			 || test ! -s conftest.err'
29732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733  (eval $ac_try) 2>&5
29734  ac_status=$?
29735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736  (exit $ac_status); }; } &&
29737	 { ac_try='test -s conftest$ac_exeext'
29738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739  (eval $ac_try) 2>&5
29740  ac_status=$?
29741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742  (exit $ac_status); }; }; then
29743  eval "$as_ac_var=yes"
29744else
29745  echo "$as_me: failed program was:" >&5
29746sed 's/^/| /' conftest.$ac_ext >&5
29747
29748eval "$as_ac_var=no"
29749fi
29750rm -f conftest.err conftest.$ac_objext \
29751      conftest$ac_exeext conftest.$ac_ext
29752fi
29753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29755if test `eval echo '${'$as_ac_var'}'` = yes; then
29756  cat >>confdefs.h <<_ACEOF
29757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29758_ACEOF
29759
29760fi
29761done
29762
29763echo "$as_me:$LINENO: checking for working mmap" >&5
29764echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29765if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29766  echo $ECHO_N "(cached) $ECHO_C" >&6
29767else
29768  if test "$cross_compiling" = yes; then
29769  ac_cv_func_mmap_fixed_mapped=no
29770else
29771  cat >conftest.$ac_ext <<_ACEOF
29772/* confdefs.h.  */
29773_ACEOF
29774cat confdefs.h >>conftest.$ac_ext
29775cat >>conftest.$ac_ext <<_ACEOF
29776/* end confdefs.h.  */
29777$ac_includes_default
29778/* malloc might have been renamed as rpl_malloc. */
29779#undef malloc
29780
29781/* Thanks to Mike Haertel and Jim Avera for this test.
29782   Here is a matrix of mmap possibilities:
29783	mmap private not fixed
29784	mmap private fixed at somewhere currently unmapped
29785	mmap private fixed at somewhere already mapped
29786	mmap shared not fixed
29787	mmap shared fixed at somewhere currently unmapped
29788	mmap shared fixed at somewhere already mapped
29789   For private mappings, we should verify that changes cannot be read()
29790   back from the file, nor mmap's back from the file at a different
29791   address.  (There have been systems where private was not correctly
29792   implemented like the infamous i386 svr4.0, and systems where the
29793   VM page cache was not coherent with the file system buffer cache
29794   like early versions of FreeBSD and possibly contemporary NetBSD.)
29795   For shared mappings, we should conversely verify that changes get
29796   propagated back to all the places they're supposed to be.
29797
29798   Grep wants private fixed already mapped.
29799   The main things grep needs to know about mmap are:
29800   * does it exist and is it safe to write into the mmap'd area
29801   * how to use it (BSD variants)  */
29802
29803#include <fcntl.h>
29804#include <sys/mman.h>
29805
29806#if !STDC_HEADERS && !HAVE_STDLIB_H
29807char *malloc ();
29808#endif
29809
29810/* This mess was copied from the GNU getpagesize.h.  */
29811#if !HAVE_GETPAGESIZE
29812/* Assume that all systems that can run configure have sys/param.h.  */
29813# if !HAVE_SYS_PARAM_H
29814#  define HAVE_SYS_PARAM_H 1
29815# endif
29816
29817# ifdef _SC_PAGESIZE
29818#  define getpagesize() sysconf(_SC_PAGESIZE)
29819# else /* no _SC_PAGESIZE */
29820#  if HAVE_SYS_PARAM_H
29821#   include <sys/param.h>
29822#   ifdef EXEC_PAGESIZE
29823#    define getpagesize() EXEC_PAGESIZE
29824#   else /* no EXEC_PAGESIZE */
29825#    ifdef NBPG
29826#     define getpagesize() NBPG * CLSIZE
29827#     ifndef CLSIZE
29828#      define CLSIZE 1
29829#     endif /* no CLSIZE */
29830#    else /* no NBPG */
29831#     ifdef NBPC
29832#      define getpagesize() NBPC
29833#     else /* no NBPC */
29834#      ifdef PAGESIZE
29835#       define getpagesize() PAGESIZE
29836#      endif /* PAGESIZE */
29837#     endif /* no NBPC */
29838#    endif /* no NBPG */
29839#   endif /* no EXEC_PAGESIZE */
29840#  else /* no HAVE_SYS_PARAM_H */
29841#   define getpagesize() 8192	/* punt totally */
29842#  endif /* no HAVE_SYS_PARAM_H */
29843# endif /* no _SC_PAGESIZE */
29844
29845#endif /* no HAVE_GETPAGESIZE */
29846
29847int
29848main ()
29849{
29850  char *data, *data2, *data3;
29851  int i, pagesize;
29852  int fd;
29853
29854  pagesize = getpagesize ();
29855
29856  /* First, make a file with some known garbage in it. */
29857  data = (char *) malloc (pagesize);
29858  if (!data)
29859    exit (1);
29860  for (i = 0; i < pagesize; ++i)
29861    *(data + i) = rand ();
29862  umask (0);
29863  fd = creat ("conftest.mmap", 0600);
29864  if (fd < 0)
29865    exit (1);
29866  if (write (fd, data, pagesize) != pagesize)
29867    exit (1);
29868  close (fd);
29869
29870  /* Next, try to mmap the file at a fixed address which already has
29871     something else allocated at it.  If we can, also make sure that
29872     we see the same garbage.  */
29873  fd = open ("conftest.mmap", O_RDWR);
29874  if (fd < 0)
29875    exit (1);
29876  data2 = (char *) malloc (2 * pagesize);
29877  if (!data2)
29878    exit (1);
29879  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29880  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29881		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
29882    exit (1);
29883  for (i = 0; i < pagesize; ++i)
29884    if (*(data + i) != *(data2 + i))
29885      exit (1);
29886
29887  /* Finally, make sure that changes to the mapped area do not
29888     percolate back to the file as seen by read().  (This is a bug on
29889     some variants of i386 svr4.0.)  */
29890  for (i = 0; i < pagesize; ++i)
29891    *(data2 + i) = *(data2 + i) + 1;
29892  data3 = (char *) malloc (pagesize);
29893  if (!data3)
29894    exit (1);
29895  if (read (fd, data3, pagesize) != pagesize)
29896    exit (1);
29897  for (i = 0; i < pagesize; ++i)
29898    if (*(data + i) != *(data3 + i))
29899      exit (1);
29900  close (fd);
29901  exit (0);
29902}
29903_ACEOF
29904rm -f conftest$ac_exeext
29905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29906  (eval $ac_link) 2>&5
29907  ac_status=$?
29908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911  (eval $ac_try) 2>&5
29912  ac_status=$?
29913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914  (exit $ac_status); }; }; then
29915  ac_cv_func_mmap_fixed_mapped=yes
29916else
29917  echo "$as_me: program exited with status $ac_status" >&5
29918echo "$as_me: failed program was:" >&5
29919sed 's/^/| /' conftest.$ac_ext >&5
29920
29921( exit $ac_status )
29922ac_cv_func_mmap_fixed_mapped=no
29923fi
29924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29925fi
29926fi
29927echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29928echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29929if test $ac_cv_func_mmap_fixed_mapped = yes; then
29930
29931cat >>confdefs.h <<\_ACEOF
29932#define HAVE_MMAP 1
29933_ACEOF
29934
29935fi
29936rm -f conftest.mmap
29937
29938echo "$as_me:$LINENO: checking for mmap of files" >&5
29939echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29940if test "${ac_cv_func_mmap_file+set}" = set; then
29941  echo $ECHO_N "(cached) $ECHO_C" >&6
29942else
29943   ac_ext=c
29944ac_cpp='$CPP $CPPFLAGS'
29945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29947ac_compiler_gnu=$ac_cv_c_compiler_gnu
29948
29949  if test "$cross_compiling" = yes; then
29950  ac_cv_func_mmap_file=no
29951else
29952  cat >conftest.$ac_ext <<_ACEOF
29953
29954    /* confdefs.h.  */
29955_ACEOF
29956cat confdefs.h >>conftest.$ac_ext
29957cat >>conftest.$ac_ext <<_ACEOF
29958/* end confdefs.h.  */
29959
29960#include <sys/types.h>
29961#include <sys/mman.h>
29962#include <fcntl.h>
29963
29964int
29965main ()
29966{
29967
29968  int fd;
29969  fd = creat ("foo",0777);
29970  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29971  unlink ("foo");
29972  return (fd != (int) MAP_FAILED);
29973  ;
29974  return 0;
29975}
29976_ACEOF
29977rm -f conftest$ac_exeext
29978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29979  (eval $ac_link) 2>&5
29980  ac_status=$?
29981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984  (eval $ac_try) 2>&5
29985  ac_status=$?
29986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987  (exit $ac_status); }; }; then
29988  ac_cv_func_mmap_file=yes
29989else
29990  echo "$as_me: program exited with status $ac_status" >&5
29991echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994( exit $ac_status )
29995ac_cv_func_mmap_file=no
29996fi
29997rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29998fi
29999  ac_ext=c
30000ac_cpp='$CPP $CPPFLAGS'
30001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30003ac_compiler_gnu=$ac_cv_c_compiler_gnu
30004
30005
30006fi
30007echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30008echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30009if test "$ac_cv_func_mmap_file" = yes; then
30010
30011cat >>confdefs.h <<\_ACEOF
30012#define HAVE_MMAP_FILE
30013_ACEOF
30014
30015   MMAP_FILE=yes
30016
30017fi
30018
30019echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30020echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30021if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30022  echo $ECHO_N "(cached) $ECHO_C" >&6
30023else
30024  if test "$llvm_cv_os_type" = "Interix" ; then
30025   ac_cv_need_dev_zero_for_mmap=yes
30026 else
30027   ac_cv_need_dev_zero_for_mmap=no
30028 fi
30029
30030fi
30031echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30032echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30033if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30034
30035cat >>confdefs.h <<\_ACEOF
30036#define NEED_DEV_ZERO_FOR_MMAP 1
30037_ACEOF
30038
30039fi
30040echo "$as_me:$LINENO: checking for mprotect" >&5
30041echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30042if test "${ac_cv_func_mprotect+set}" = set; then
30043  echo $ECHO_N "(cached) $ECHO_C" >&6
30044else
30045  cat >conftest.$ac_ext <<_ACEOF
30046/* confdefs.h.  */
30047_ACEOF
30048cat confdefs.h >>conftest.$ac_ext
30049cat >>conftest.$ac_ext <<_ACEOF
30050/* end confdefs.h.  */
30051/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30052   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30053#define mprotect innocuous_mprotect
30054
30055/* System header to define __stub macros and hopefully few prototypes,
30056    which can conflict with char mprotect (); below.
30057    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30058    <limits.h> exists even on freestanding compilers.  */
30059
30060#ifdef __STDC__
30061# include <limits.h>
30062#else
30063# include <assert.h>
30064#endif
30065
30066#undef mprotect
30067
30068/* Override any gcc2 internal prototype to avoid an error.  */
30069#ifdef __cplusplus
30070extern "C"
30071{
30072#endif
30073/* We use char because int might match the return type of a gcc2
30074   builtin and then its argument prototype would still apply.  */
30075char mprotect ();
30076/* The GNU C library defines this for functions which it implements
30077    to always fail with ENOSYS.  Some functions are actually named
30078    something starting with __ and the normal name is an alias.  */
30079#if defined (__stub_mprotect) || defined (__stub___mprotect)
30080choke me
30081#else
30082char (*f) () = mprotect;
30083#endif
30084#ifdef __cplusplus
30085}
30086#endif
30087
30088int
30089main ()
30090{
30091return f != mprotect;
30092  ;
30093  return 0;
30094}
30095_ACEOF
30096rm -f conftest.$ac_objext conftest$ac_exeext
30097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30098  (eval $ac_link) 2>conftest.er1
30099  ac_status=$?
30100  grep -v '^ *+' conftest.er1 >conftest.err
30101  rm -f conftest.er1
30102  cat conftest.err >&5
30103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104  (exit $ac_status); } &&
30105	 { ac_try='test -z "$ac_c_werror_flag"
30106			 || test ! -s conftest.err'
30107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108  (eval $ac_try) 2>&5
30109  ac_status=$?
30110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111  (exit $ac_status); }; } &&
30112	 { ac_try='test -s conftest$ac_exeext'
30113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30114  (eval $ac_try) 2>&5
30115  ac_status=$?
30116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117  (exit $ac_status); }; }; then
30118  ac_cv_func_mprotect=yes
30119else
30120  echo "$as_me: failed program was:" >&5
30121sed 's/^/| /' conftest.$ac_ext >&5
30122
30123ac_cv_func_mprotect=no
30124fi
30125rm -f conftest.err conftest.$ac_objext \
30126      conftest$ac_exeext conftest.$ac_ext
30127fi
30128echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30129echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30130if test $ac_cv_func_mprotect = yes; then
30131  :
30132else
30133  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30134echo "$as_me: error: Function mprotect() required but not found" >&2;}
30135   { (exit 1); exit 1; }; }
30136fi
30137
30138
30139if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30140then
30141  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30142echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30143fi
30144if test "$ac_cv_func_mmap_file" = "no"
30145then
30146  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30147echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30148fi
30149
30150
30151echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30152echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30153if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30154  echo $ECHO_N "(cached) $ECHO_C" >&6
30155else
30156  llvm_cv_llvmgcc_sanity="no"
30157if test -x "$LLVMGCC" ; then
30158  cp /dev/null conftest.c
30159  "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30160  if test $? -eq 0 ; then
30161    llvm_cv_llvmgcc_sanity="yes"
30162  fi
30163  rm conftest.c
30164fi
30165fi
30166echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30167echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30168
30169if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30170  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30171  LLVMCC1=$llvmcc1path
30172
30173  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30174  LLVMCC1PLUS=$llvmcc1pluspath
30175
30176  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30177  LLVMGCCDIR=$llvmgccdir
30178
30179fi
30180
30181SHLIBEXT=$libltdl_cv_shlibext
30182
30183
30184# Translate the various configuration directories and other basic
30185# information into substitutions that will end up in Makefile.config.in
30186# that these configured values can be used by the makefiles
30187eval LLVM_PREFIX="${prefix}";
30188eval LLVM_BINDIR="${prefix}/bin";
30189eval LLVM_LIBDIR="${prefix}/lib";
30190eval LLVM_DATADIR="${prefix}/share/llvm";
30191eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30192eval LLVM_ETCDIR="${prefix}/etc/llvm";
30193eval LLVM_INCLUDEDIR="${prefix}/include";
30194eval LLVM_INFODIR="${prefix}/info";
30195eval LLVM_MANDIR="${prefix}/man";
30196LLVM_CONFIGTIME=`date`
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208# Place the various directores into the config.h file as #defines so that we
30209# can know about the installation paths within LLVM.
30210
30211cat >>confdefs.h <<_ACEOF
30212#define LLVM_PREFIX "$LLVM_PREFIX"
30213_ACEOF
30214
30215
30216cat >>confdefs.h <<_ACEOF
30217#define LLVM_BINDIR "$LLVM_BINDIR"
30218_ACEOF
30219
30220
30221cat >>confdefs.h <<_ACEOF
30222#define LLVM_LIBDIR "$LLVM_LIBDIR"
30223_ACEOF
30224
30225
30226cat >>confdefs.h <<_ACEOF
30227#define LLVM_DATADIR "$LLVM_DATADIR"
30228_ACEOF
30229
30230
30231cat >>confdefs.h <<_ACEOF
30232#define LLVM_DATADIR "$LLVM_DOCSDIR"
30233_ACEOF
30234
30235
30236cat >>confdefs.h <<_ACEOF
30237#define LLVM_ETCDIR "$LLVM_ETCDIR"
30238_ACEOF
30239
30240
30241cat >>confdefs.h <<_ACEOF
30242#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30243_ACEOF
30244
30245
30246cat >>confdefs.h <<_ACEOF
30247#define LLVM_INFODIR "$LLVM_INFODIR"
30248_ACEOF
30249
30250
30251cat >>confdefs.h <<_ACEOF
30252#define LLVM_MANDIR "$LLVM_MANDIR"
30253_ACEOF
30254
30255
30256cat >>confdefs.h <<_ACEOF
30257#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30258_ACEOF
30259
30260
30261
30262          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30263
30264
30265          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30266
30267          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30268
30269          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30270
30271          ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30272
30273          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30274
30275
30276          ac_config_files="$ac_config_files Makefile.config"
30277
30278
30279                                        ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30280
30281
30282          ac_config_files="$ac_config_files docs/doxygen.cfg"
30283
30284
30285          ac_config_commands="$ac_config_commands Makefile"
30286
30287
30288          ac_config_commands="$ac_config_commands Makefile.common"
30289
30290
30291          ac_config_commands="$ac_config_commands examples/Makefile"
30292
30293
30294          ac_config_commands="$ac_config_commands lib/Makefile"
30295
30296
30297          ac_config_commands="$ac_config_commands runtime/Makefile"
30298
30299
30300          ac_config_commands="$ac_config_commands test/Makefile"
30301
30302
30303          ac_config_commands="$ac_config_commands test/Makefile.tests"
30304
30305
30306          ac_config_commands="$ac_config_commands tools/Makefile"
30307
30308
30309          ac_config_commands="$ac_config_commands utils/Makefile"
30310
30311
30312          ac_config_commands="$ac_config_commands projects/Makefile"
30313
30314
30315
30316cat >confcache <<\_ACEOF
30317# This file is a shell script that caches the results of configure
30318# tests run on this system so they can be shared between configure
30319# scripts and configure runs, see configure's option --config-cache.
30320# It is not useful on other systems.  If it contains results you don't
30321# want to keep, you may remove or edit it.
30322#
30323# config.status only pays attention to the cache file if you give it
30324# the --recheck option to rerun configure.
30325#
30326# `ac_cv_env_foo' variables (set or unset) will be overridden when
30327# loading this file, other *unset* `ac_cv_foo' will be assigned the
30328# following values.
30329
30330_ACEOF
30331
30332# The following way of writing the cache mishandles newlines in values,
30333# but we know of no workaround that is simple, portable, and efficient.
30334# So, don't put newlines in cache variables' values.
30335# Ultrix sh set writes to stderr and can't be redirected directly,
30336# and sets the high bit in the cache file unless we assign to the vars.
30337{
30338  (set) 2>&1 |
30339    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30340    *ac_space=\ *)
30341      # `set' does not quote correctly, so add quotes (double-quote
30342      # substitution turns \\\\ into \\, and sed turns \\ into \).
30343      sed -n \
30344	"s/'/'\\\\''/g;
30345	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30346      ;;
30347    *)
30348      # `set' quotes correctly as required by POSIX, so do not add quotes.
30349      sed -n \
30350	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30351      ;;
30352    esac;
30353} |
30354  sed '
30355     t clear
30356     : clear
30357     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30358     t end
30359     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30360     : end' >>confcache
30361if diff $cache_file confcache >/dev/null 2>&1; then :; else
30362  if test -w $cache_file; then
30363    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30364    cat confcache >$cache_file
30365  else
30366    echo "not updating unwritable cache $cache_file"
30367  fi
30368fi
30369rm -f confcache
30370
30371test "x$prefix" = xNONE && prefix=$ac_default_prefix
30372# Let make expand exec_prefix.
30373test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30374
30375# VPATH may cause trouble with some makes, so we remove $(srcdir),
30376# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30377# trailing colons and then remove the whole line if VPATH becomes empty
30378# (actually we leave an empty line to preserve line numbers).
30379if test "x$srcdir" = x.; then
30380  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30381s/:*\$(srcdir):*/:/;
30382s/:*\${srcdir}:*/:/;
30383s/:*@srcdir@:*/:/;
30384s/^\([^=]*=[	 ]*\):*/\1/;
30385s/:*$//;
30386s/^[^=]*=[	 ]*$//;
30387}'
30388fi
30389
30390DEFS=-DHAVE_CONFIG_H
30391
30392ac_libobjs=
30393ac_ltlibobjs=
30394for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30395  # 1. Remove the extension, and $U if already installed.
30396  ac_i=`echo "$ac_i" |
30397	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30398  # 2. Add them.
30399  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30400  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30401done
30402LIBOBJS=$ac_libobjs
30403
30404LTLIBOBJS=$ac_ltlibobjs
30405
30406
30407if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30408  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30409Usually this means the macro was only invoked conditionally." >&5
30410echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30411Usually this means the macro was only invoked conditionally." >&2;}
30412   { (exit 1); exit 1; }; }
30413fi
30414if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30415  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30416Usually this means the macro was only invoked conditionally." >&5
30417echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30418Usually this means the macro was only invoked conditionally." >&2;}
30419   { (exit 1); exit 1; }; }
30420fi
30421
30422: ${CONFIG_STATUS=./config.status}
30423ac_clean_files_save=$ac_clean_files
30424ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30425{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30426echo "$as_me: creating $CONFIG_STATUS" >&6;}
30427cat >$CONFIG_STATUS <<_ACEOF
30428#! $SHELL
30429# Generated by $as_me.
30430# Run this file to recreate the current configuration.
30431# Compiler output produced by configure, useful for debugging
30432# configure, is in config.log if it exists.
30433
30434debug=false
30435ac_cs_recheck=false
30436ac_cs_silent=false
30437SHELL=\${CONFIG_SHELL-$SHELL}
30438_ACEOF
30439
30440cat >>$CONFIG_STATUS <<\_ACEOF
30441## --------------------- ##
30442## M4sh Initialization.  ##
30443## --------------------- ##
30444
30445# Be Bourne compatible
30446if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30447  emulate sh
30448  NULLCMD=:
30449  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30450  # is contrary to our usage.  Disable this feature.
30451  alias -g '${1+"$@"}'='"$@"'
30452elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30453  set -o posix
30454fi
30455DUALCASE=1; export DUALCASE # for MKS sh
30456
30457# Support unset when possible.
30458if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30459  as_unset=unset
30460else
30461  as_unset=false
30462fi
30463
30464
30465# Work around bugs in pre-3.0 UWIN ksh.
30466$as_unset ENV MAIL MAILPATH
30467PS1='$ '
30468PS2='> '
30469PS4='+ '
30470
30471# NLS nuisances.
30472for as_var in \
30473  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30474  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30475  LC_TELEPHONE LC_TIME
30476do
30477  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30478    eval $as_var=C; export $as_var
30479  else
30480    $as_unset $as_var
30481  fi
30482done
30483
30484# Required to use basename.
30485if expr a : '\(a\)' >/dev/null 2>&1; then
30486  as_expr=expr
30487else
30488  as_expr=false
30489fi
30490
30491if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30492  as_basename=basename
30493else
30494  as_basename=false
30495fi
30496
30497
30498# Name of the executable.
30499as_me=`$as_basename "$0" ||
30500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30501	 X"$0" : 'X\(//\)$' \| \
30502	 X"$0" : 'X\(/\)$' \| \
30503	 .     : '\(.\)' 2>/dev/null ||
30504echo X/"$0" |
30505    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30506  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30507  	  /^X\/\(\/\).*/{ s//\1/; q; }
30508  	  s/.*/./; q'`
30509
30510
30511# PATH needs CR, and LINENO needs CR and PATH.
30512# Avoid depending upon Character Ranges.
30513as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30514as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30515as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30516as_cr_digits='0123456789'
30517as_cr_alnum=$as_cr_Letters$as_cr_digits
30518
30519# The user is always right.
30520if test "${PATH_SEPARATOR+set}" != set; then
30521  echo "#! /bin/sh" >conf$$.sh
30522  echo  "exit 0"   >>conf$$.sh
30523  chmod +x conf$$.sh
30524  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30525    PATH_SEPARATOR=';'
30526  else
30527    PATH_SEPARATOR=:
30528  fi
30529  rm -f conf$$.sh
30530fi
30531
30532
30533  as_lineno_1=$LINENO
30534  as_lineno_2=$LINENO
30535  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30536  test "x$as_lineno_1" != "x$as_lineno_2" &&
30537  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30538  # Find who we are.  Look in the path if we contain no path at all
30539  # relative or not.
30540  case $0 in
30541    *[\\/]* ) as_myself=$0 ;;
30542    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30543for as_dir in $PATH
30544do
30545  IFS=$as_save_IFS
30546  test -z "$as_dir" && as_dir=.
30547  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30548done
30549
30550       ;;
30551  esac
30552  # We did not find ourselves, most probably we were run as `sh COMMAND'
30553  # in which case we are not to be found in the path.
30554  if test "x$as_myself" = x; then
30555    as_myself=$0
30556  fi
30557  if test ! -f "$as_myself"; then
30558    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30559echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30560   { (exit 1); exit 1; }; }
30561  fi
30562  case $CONFIG_SHELL in
30563  '')
30564    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30565for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30566do
30567  IFS=$as_save_IFS
30568  test -z "$as_dir" && as_dir=.
30569  for as_base in sh bash ksh sh5; do
30570	 case $as_dir in
30571	 /*)
30572	   if ("$as_dir/$as_base" -c '
30573  as_lineno_1=$LINENO
30574  as_lineno_2=$LINENO
30575  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30576  test "x$as_lineno_1" != "x$as_lineno_2" &&
30577  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30578	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30579	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30580	     CONFIG_SHELL=$as_dir/$as_base
30581	     export CONFIG_SHELL
30582	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30583	   fi;;
30584	 esac
30585       done
30586done
30587;;
30588  esac
30589
30590  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30591  # uniformly replaced by the line number.  The first 'sed' inserts a
30592  # line-number line before each line; the second 'sed' does the real
30593  # work.  The second script uses 'N' to pair each line-number line
30594  # with the numbered line, and appends trailing '-' during
30595  # substitution so that $LINENO is not a special case at line end.
30596  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30597  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30598  sed '=' <$as_myself |
30599    sed '
30600      N
30601      s,$,-,
30602      : loop
30603      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30604      t loop
30605      s,-$,,
30606      s,^['$as_cr_digits']*\n,,
30607    ' >$as_me.lineno &&
30608  chmod +x $as_me.lineno ||
30609    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30610echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30611   { (exit 1); exit 1; }; }
30612
30613  # Don't try to exec as it changes $[0], causing all sort of problems
30614  # (the dirname of $[0] is not the place where we might find the
30615  # original and so on.  Autoconf is especially sensible to this).
30616  . ./$as_me.lineno
30617  # Exit status is that of the last command.
30618  exit
30619}
30620
30621
30622case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30623  *c*,-n*) ECHO_N= ECHO_C='
30624' ECHO_T='	' ;;
30625  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30626  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30627esac
30628
30629if expr a : '\(a\)' >/dev/null 2>&1; then
30630  as_expr=expr
30631else
30632  as_expr=false
30633fi
30634
30635rm -f conf$$ conf$$.exe conf$$.file
30636echo >conf$$.file
30637if ln -s conf$$.file conf$$ 2>/dev/null; then
30638  # We could just check for DJGPP; but this test a) works b) is more generic
30639  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30640  if test -f conf$$.exe; then
30641    # Don't use ln at all; we don't have any links
30642    as_ln_s='cp -p'
30643  else
30644    as_ln_s='ln -s'
30645  fi
30646elif ln conf$$.file conf$$ 2>/dev/null; then
30647  as_ln_s=ln
30648else
30649  as_ln_s='cp -p'
30650fi
30651rm -f conf$$ conf$$.exe conf$$.file
30652
30653if mkdir -p . 2>/dev/null; then
30654  as_mkdir_p=:
30655else
30656  test -d ./-p && rmdir ./-p
30657  as_mkdir_p=false
30658fi
30659
30660as_executable_p="test -f"
30661
30662# Sed expression to map a string onto a valid CPP name.
30663as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30664
30665# Sed expression to map a string onto a valid variable name.
30666as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30667
30668
30669# IFS
30670# We need space, tab and new line, in precisely that order.
30671as_nl='
30672'
30673IFS=" 	$as_nl"
30674
30675# CDPATH.
30676$as_unset CDPATH
30677
30678exec 6>&1
30679
30680# Open the log real soon, to keep \$[0] and so on meaningful, and to
30681# report actual input values of CONFIG_FILES etc. instead of their
30682# values after options handling.  Logging --version etc. is OK.
30683exec 5>>config.log
30684{
30685  echo
30686  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30687## Running $as_me. ##
30688_ASBOX
30689} >&5
30690cat >&5 <<_CSEOF
30691
30692This file was extended by llvm $as_me 1.4, which was
30693generated by GNU Autoconf 2.59.  Invocation command line was
30694
30695  CONFIG_FILES    = $CONFIG_FILES
30696  CONFIG_HEADERS  = $CONFIG_HEADERS
30697  CONFIG_LINKS    = $CONFIG_LINKS
30698  CONFIG_COMMANDS = $CONFIG_COMMANDS
30699  $ $0 $@
30700
30701_CSEOF
30702echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30703echo >&5
30704_ACEOF
30705
30706# Files that config.status was made for.
30707if test -n "$ac_config_files"; then
30708  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30709fi
30710
30711if test -n "$ac_config_headers"; then
30712  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30713fi
30714
30715if test -n "$ac_config_links"; then
30716  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30717fi
30718
30719if test -n "$ac_config_commands"; then
30720  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30721fi
30722
30723cat >>$CONFIG_STATUS <<\_ACEOF
30724
30725ac_cs_usage="\
30726\`$as_me' instantiates files from templates according to the
30727current configuration.
30728
30729Usage: $0 [OPTIONS] [FILE]...
30730
30731  -h, --help       print this help, then exit
30732  -V, --version    print version number, then exit
30733  -q, --quiet      do not print progress messages
30734  -d, --debug      don't remove temporary files
30735      --recheck    update $as_me by reconfiguring in the same conditions
30736  --file=FILE[:TEMPLATE]
30737		   instantiate the configuration file FILE
30738  --header=FILE[:TEMPLATE]
30739		   instantiate the configuration header FILE
30740
30741Configuration files:
30742$config_files
30743
30744Configuration headers:
30745$config_headers
30746
30747Configuration commands:
30748$config_commands
30749
30750Report bugs to <bug-autoconf@gnu.org>."
30751_ACEOF
30752
30753cat >>$CONFIG_STATUS <<_ACEOF
30754ac_cs_version="\\
30755llvm config.status 1.4
30756configured by $0, generated by GNU Autoconf 2.59,
30757  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30758
30759Copyright (C) 2003 Free Software Foundation, Inc.
30760This config.status script is free software; the Free Software Foundation
30761gives unlimited permission to copy, distribute and modify it."
30762srcdir=$srcdir
30763INSTALL="$INSTALL"
30764_ACEOF
30765
30766cat >>$CONFIG_STATUS <<\_ACEOF
30767# If no file are specified by the user, then we need to provide default
30768# value.  By we need to know if files were specified by the user.
30769ac_need_defaults=:
30770while test $# != 0
30771do
30772  case $1 in
30773  --*=*)
30774    ac_option=`expr "x$1" : 'x\([^=]*\)='`
30775    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30776    ac_shift=:
30777    ;;
30778  -*)
30779    ac_option=$1
30780    ac_optarg=$2
30781    ac_shift=shift
30782    ;;
30783  *) # This is not an option, so the user has probably given explicit
30784     # arguments.
30785     ac_option=$1
30786     ac_need_defaults=false;;
30787  esac
30788
30789  case $ac_option in
30790  # Handling of the options.
30791_ACEOF
30792cat >>$CONFIG_STATUS <<\_ACEOF
30793  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30794    ac_cs_recheck=: ;;
30795  --version | --vers* | -V )
30796    echo "$ac_cs_version"; exit 0 ;;
30797  --he | --h)
30798    # Conflict between --help and --header
30799    { { echo "$as_me:$LINENO: error: ambiguous option: $1
30800Try \`$0 --help' for more information." >&5
30801echo "$as_me: error: ambiguous option: $1
30802Try \`$0 --help' for more information." >&2;}
30803   { (exit 1); exit 1; }; };;
30804  --help | --hel | -h )
30805    echo "$ac_cs_usage"; exit 0 ;;
30806  --debug | --d* | -d )
30807    debug=: ;;
30808  --file | --fil | --fi | --f )
30809    $ac_shift
30810    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30811    ac_need_defaults=false;;
30812  --header | --heade | --head | --hea )
30813    $ac_shift
30814    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30815    ac_need_defaults=false;;
30816  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30817  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30818    ac_cs_silent=: ;;
30819
30820  # This is an error.
30821  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30822Try \`$0 --help' for more information." >&5
30823echo "$as_me: error: unrecognized option: $1
30824Try \`$0 --help' for more information." >&2;}
30825   { (exit 1); exit 1; }; } ;;
30826
30827  *) ac_config_targets="$ac_config_targets $1" ;;
30828
30829  esac
30830  shift
30831done
30832
30833ac_configure_extra_args=
30834
30835if $ac_cs_silent; then
30836  exec 6>/dev/null
30837  ac_configure_extra_args="$ac_configure_extra_args --silent"
30838fi
30839
30840_ACEOF
30841cat >>$CONFIG_STATUS <<_ACEOF
30842if \$ac_cs_recheck; then
30843  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30844  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30845fi
30846
30847_ACEOF
30848
30849cat >>$CONFIG_STATUS <<_ACEOF
30850#
30851# INIT-COMMANDS section.
30852#
30853
30854${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30855${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
30856${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
30857${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
30858${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
30859${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30860${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
30861${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
30862${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
30863${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
30864
30865_ACEOF
30866
30867
30868
30869cat >>$CONFIG_STATUS <<\_ACEOF
30870for ac_config_target in $ac_config_targets
30871do
30872  case "$ac_config_target" in
30873  # Handling of arguments.
30874  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30875  "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30876  "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30877  "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30878  "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30879  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30880  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30881  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30882  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30883  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30884  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30885  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30886  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30887  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30888  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30889  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30890  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30891  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30892  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30893  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30894  "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30895  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30896  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30897echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30898   { (exit 1); exit 1; }; };;
30899  esac
30900done
30901
30902# If the user did not use the arguments to specify the items to instantiate,
30903# then the envvar interface is used.  Set only those that are not.
30904# We use the long form for the default assignment because of an extremely
30905# bizarre bug on SunOS 4.1.3.
30906if $ac_need_defaults; then
30907  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30908  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30909  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30910fi
30911
30912# Have a temporary directory for convenience.  Make it in the build tree
30913# simply because there is no reason to put it here, and in addition,
30914# creating and moving files from /tmp can sometimes cause problems.
30915# Create a temporary directory, and hook for its removal unless debugging.
30916$debug ||
30917{
30918  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30919  trap '{ (exit 1); exit 1; }' 1 2 13 15
30920}
30921
30922# Create a (secure) tmp directory for tmp files.
30923
30924{
30925  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30926  test -n "$tmp" && test -d "$tmp"
30927}  ||
30928{
30929  tmp=./confstat$$-$RANDOM
30930  (umask 077 && mkdir $tmp)
30931} ||
30932{
30933   echo "$me: cannot create a temporary directory in ." >&2
30934   { (exit 1); exit 1; }
30935}
30936
30937_ACEOF
30938
30939cat >>$CONFIG_STATUS <<_ACEOF
30940
30941#
30942# CONFIG_FILES section.
30943#
30944
30945# No need to generate the scripts if there are no CONFIG_FILES.
30946# This happens for instance when ./config.status config.h
30947if test -n "\$CONFIG_FILES"; then
30948  # Protect against being on the right side of a sed subst in config.status.
30949  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30950   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30951s,@SHELL@,$SHELL,;t t
30952s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30953s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30954s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30955s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30956s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30957s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30958s,@exec_prefix@,$exec_prefix,;t t
30959s,@prefix@,$prefix,;t t
30960s,@program_transform_name@,$program_transform_name,;t t
30961s,@bindir@,$bindir,;t t
30962s,@sbindir@,$sbindir,;t t
30963s,@libexecdir@,$libexecdir,;t t
30964s,@datadir@,$datadir,;t t
30965s,@sysconfdir@,$sysconfdir,;t t
30966s,@sharedstatedir@,$sharedstatedir,;t t
30967s,@localstatedir@,$localstatedir,;t t
30968s,@libdir@,$libdir,;t t
30969s,@includedir@,$includedir,;t t
30970s,@oldincludedir@,$oldincludedir,;t t
30971s,@infodir@,$infodir,;t t
30972s,@mandir@,$mandir,;t t
30973s,@build_alias@,$build_alias,;t t
30974s,@host_alias@,$host_alias,;t t
30975s,@target_alias@,$target_alias,;t t
30976s,@DEFS@,$DEFS,;t t
30977s,@ECHO_C@,$ECHO_C,;t t
30978s,@ECHO_N@,$ECHO_N,;t t
30979s,@ECHO_T@,$ECHO_T,;t t
30980s,@LIBS@,$LIBS,;t t
30981s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30982s,@subdirs@,$subdirs,;t t
30983s,@build@,$build,;t t
30984s,@build_cpu@,$build_cpu,;t t
30985s,@build_vendor@,$build_vendor,;t t
30986s,@build_os@,$build_os,;t t
30987s,@host@,$host,;t t
30988s,@host_cpu@,$host_cpu,;t t
30989s,@host_vendor@,$host_vendor,;t t
30990s,@host_os@,$host_os,;t t
30991s,@target@,$target,;t t
30992s,@target_cpu@,$target_cpu,;t t
30993s,@target_vendor@,$target_vendor,;t t
30994s,@target_os@,$target_os,;t t
30995s,@OS@,$OS,;t t
30996s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30997s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30998s,@ARCH@,$ARCH,;t t
30999s,@ENDIAN@,$ENDIAN,;t t
31000s,@CC@,$CC,;t t
31001s,@CFLAGS@,$CFLAGS,;t t
31002s,@LDFLAGS@,$LDFLAGS,;t t
31003s,@CPPFLAGS@,$CPPFLAGS,;t t
31004s,@ac_ct_CC@,$ac_ct_CC,;t t
31005s,@EXEEXT@,$EXEEXT,;t t
31006s,@OBJEXT@,$OBJEXT,;t t
31007s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31008s,@JIT@,$JIT,;t t
31009s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31010s,@CPP@,$CPP,;t t
31011s,@CXX@,$CXX,;t t
31012s,@CXXFLAGS@,$CXXFLAGS,;t t
31013s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31014s,@LEX@,$LEX,;t t
31015s,@LEXLIB@,$LEXLIB,;t t
31016s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31017s,@FLEX@,$FLEX,;t t
31018s,@YACC@,$YACC,;t t
31019s,@BISON@,$BISON,;t t
31020s,@ifGNUmake@,$ifGNUmake,;t t
31021s,@LN_S@,$LN_S,;t t
31022s,@CMP@,$CMP,;t t
31023s,@CP@,$CP,;t t
31024s,@DATE@,$DATE,;t t
31025s,@FIND@,$FIND,;t t
31026s,@GREP@,$GREP,;t t
31027s,@MKDIR@,$MKDIR,;t t
31028s,@MV@,$MV,;t t
31029s,@PAX@,$PAX,;t t
31030s,@RANLIB@,$RANLIB,;t t
31031s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31032s,@RM@,$RM,;t t
31033s,@SED@,$SED,;t t
31034s,@TAR@,$TAR,;t t
31035s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31036s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31037s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31038s,@BZIP2@,$BZIP2,;t t
31039s,@DOT@,$DOT,;t t
31040s,@DOXYGEN@,$DOXYGEN,;t t
31041s,@ETAGS@,$ETAGS,;t t
31042s,@GROFF@,$GROFF,;t t
31043s,@GZIP@,$GZIP,;t t
31044s,@POD2HTML@,$POD2HTML,;t t
31045s,@POD2MAN@,$POD2MAN,;t t
31046s,@RUNTEST@,$RUNTEST,;t t
31047s,@TCLSH@,$TCLSH,;t t
31048s,@ZIP@,$ZIP,;t t
31049s,@EGREP@,$EGREP,;t t
31050s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31051s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31052s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31053s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31054s,@LIBADD_DL@,$LIBADD_DL,;t t
31055s,@ECHO@,$ECHO,;t t
31056s,@AR@,$AR,;t t
31057s,@ac_ct_AR@,$ac_ct_AR,;t t
31058s,@STRIP@,$STRIP,;t t
31059s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31060s,@CXXCPP@,$CXXCPP,;t t
31061s,@F77@,$F77,;t t
31062s,@FFLAGS@,$FFLAGS,;t t
31063s,@ac_ct_F77@,$ac_ct_F77,;t t
31064s,@LIBTOOL@,$LIBTOOL,;t t
31065s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31066s,@LLVMGCC@,$LLVMGCC,;t t
31067s,@LLVMGXX@,$LLVMGXX,;t t
31068s,@ALLOCA@,$ALLOCA,;t t
31069s,@MMAP_FILE@,$MMAP_FILE,;t t
31070s,@LLVMCC1@,$LLVMCC1,;t t
31071s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31072s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31073s,@SHLIBEXT@,$SHLIBEXT,;t t
31074s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31075s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31076s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31077s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31078s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31079s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31080s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31081s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31082s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31083s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31084s,@LIBOBJS@,$LIBOBJS,;t t
31085s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31086CEOF
31087
31088_ACEOF
31089
31090  cat >>$CONFIG_STATUS <<\_ACEOF
31091  # Split the substitutions into bite-sized pieces for seds with
31092  # small command number limits, like on Digital OSF/1 and HP-UX.
31093  ac_max_sed_lines=48
31094  ac_sed_frag=1 # Number of current file.
31095  ac_beg=1 # First line for current file.
31096  ac_end=$ac_max_sed_lines # Line after last line for current file.
31097  ac_more_lines=:
31098  ac_sed_cmds=
31099  while $ac_more_lines; do
31100    if test $ac_beg -gt 1; then
31101      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31102    else
31103      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31104    fi
31105    if test ! -s $tmp/subs.frag; then
31106      ac_more_lines=false
31107    else
31108      # The purpose of the label and of the branching condition is to
31109      # speed up the sed processing (if there are no `@' at all, there
31110      # is no need to browse any of the substitutions).
31111      # These are the two extra sed commands mentioned above.
31112      (echo ':t
31113  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31114      if test -z "$ac_sed_cmds"; then
31115	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31116      else
31117	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31118      fi
31119      ac_sed_frag=`expr $ac_sed_frag + 1`
31120      ac_beg=$ac_end
31121      ac_end=`expr $ac_end + $ac_max_sed_lines`
31122    fi
31123  done
31124  if test -z "$ac_sed_cmds"; then
31125    ac_sed_cmds=cat
31126  fi
31127fi # test -n "$CONFIG_FILES"
31128
31129_ACEOF
31130cat >>$CONFIG_STATUS <<\_ACEOF
31131for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31132  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31133  case $ac_file in
31134  - | *:- | *:-:* ) # input from stdin
31135	cat >$tmp/stdin
31136	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31138  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31139	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31140  * )   ac_file_in=$ac_file.in ;;
31141  esac
31142
31143  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31144  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31146	 X"$ac_file" : 'X\(//\)[^/]' \| \
31147	 X"$ac_file" : 'X\(//\)$' \| \
31148	 X"$ac_file" : 'X\(/\)' \| \
31149	 .     : '\(.\)' 2>/dev/null ||
31150echo X"$ac_file" |
31151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31152  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31153  	  /^X\(\/\/\)$/{ s//\1/; q; }
31154  	  /^X\(\/\).*/{ s//\1/; q; }
31155  	  s/.*/./; q'`
31156  { if $as_mkdir_p; then
31157    mkdir -p "$ac_dir"
31158  else
31159    as_dir="$ac_dir"
31160    as_dirs=
31161    while test ! -d "$as_dir"; do
31162      as_dirs="$as_dir $as_dirs"
31163      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31165	 X"$as_dir" : 'X\(//\)[^/]' \| \
31166	 X"$as_dir" : 'X\(//\)$' \| \
31167	 X"$as_dir" : 'X\(/\)' \| \
31168	 .     : '\(.\)' 2>/dev/null ||
31169echo X"$as_dir" |
31170    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31171  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31172  	  /^X\(\/\/\)$/{ s//\1/; q; }
31173  	  /^X\(\/\).*/{ s//\1/; q; }
31174  	  s/.*/./; q'`
31175    done
31176    test ! -n "$as_dirs" || mkdir $as_dirs
31177  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31178echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31179   { (exit 1); exit 1; }; }; }
31180
31181  ac_builddir=.
31182
31183if test "$ac_dir" != .; then
31184  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31185  # A "../" for each directory in $ac_dir_suffix.
31186  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31187else
31188  ac_dir_suffix= ac_top_builddir=
31189fi
31190
31191case $srcdir in
31192  .)  # No --srcdir option.  We are building in place.
31193    ac_srcdir=.
31194    if test -z "$ac_top_builddir"; then
31195       ac_top_srcdir=.
31196    else
31197       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31198    fi ;;
31199  [\\/]* | ?:[\\/]* )  # Absolute path.
31200    ac_srcdir=$srcdir$ac_dir_suffix;
31201    ac_top_srcdir=$srcdir ;;
31202  *) # Relative path.
31203    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31204    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31205esac
31206
31207# Do not use `cd foo && pwd` to compute absolute paths, because
31208# the directories may not exist.
31209case `pwd` in
31210.) ac_abs_builddir="$ac_dir";;
31211*)
31212  case "$ac_dir" in
31213  .) ac_abs_builddir=`pwd`;;
31214  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31215  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31216  esac;;
31217esac
31218case $ac_abs_builddir in
31219.) ac_abs_top_builddir=${ac_top_builddir}.;;
31220*)
31221  case ${ac_top_builddir}. in
31222  .) ac_abs_top_builddir=$ac_abs_builddir;;
31223  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31224  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31225  esac;;
31226esac
31227case $ac_abs_builddir in
31228.) ac_abs_srcdir=$ac_srcdir;;
31229*)
31230  case $ac_srcdir in
31231  .) ac_abs_srcdir=$ac_abs_builddir;;
31232  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31233  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31234  esac;;
31235esac
31236case $ac_abs_builddir in
31237.) ac_abs_top_srcdir=$ac_top_srcdir;;
31238*)
31239  case $ac_top_srcdir in
31240  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31241  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31242  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31243  esac;;
31244esac
31245
31246
31247  case $INSTALL in
31248  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31249  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31250  esac
31251
31252  if test x"$ac_file" != x-; then
31253    { echo "$as_me:$LINENO: creating $ac_file" >&5
31254echo "$as_me: creating $ac_file" >&6;}
31255    rm -f "$ac_file"
31256  fi
31257  # Let's still pretend it is `configure' which instantiates (i.e., don't
31258  # use $as_me), people would be surprised to read:
31259  #    /* config.h.  Generated by config.status.  */
31260  if test x"$ac_file" = x-; then
31261    configure_input=
31262  else
31263    configure_input="$ac_file.  "
31264  fi
31265  configure_input=$configure_input"Generated from `echo $ac_file_in |
31266				     sed 's,.*/,,'` by configure."
31267
31268  # First look for the input files in the build tree, otherwise in the
31269  # src tree.
31270  ac_file_inputs=`IFS=:
31271    for f in $ac_file_in; do
31272      case $f in
31273      -) echo $tmp/stdin ;;
31274      [\\/$]*)
31275	 # Absolute (can't be DOS-style, as IFS=:)
31276	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31277echo "$as_me: error: cannot find input file: $f" >&2;}
31278   { (exit 1); exit 1; }; }
31279	 echo "$f";;
31280      *) # Relative
31281	 if test -f "$f"; then
31282	   # Build tree
31283	   echo "$f"
31284	 elif test -f "$srcdir/$f"; then
31285	   # Source tree
31286	   echo "$srcdir/$f"
31287	 else
31288	   # /dev/null tree
31289	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31290echo "$as_me: error: cannot find input file: $f" >&2;}
31291   { (exit 1); exit 1; }; }
31292	 fi;;
31293      esac
31294    done` || { (exit 1); exit 1; }
31295_ACEOF
31296cat >>$CONFIG_STATUS <<_ACEOF
31297  sed "$ac_vpsub
31298$extrasub
31299_ACEOF
31300cat >>$CONFIG_STATUS <<\_ACEOF
31301:t
31302/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31303s,@configure_input@,$configure_input,;t t
31304s,@srcdir@,$ac_srcdir,;t t
31305s,@abs_srcdir@,$ac_abs_srcdir,;t t
31306s,@top_srcdir@,$ac_top_srcdir,;t t
31307s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31308s,@builddir@,$ac_builddir,;t t
31309s,@abs_builddir@,$ac_abs_builddir,;t t
31310s,@top_builddir@,$ac_top_builddir,;t t
31311s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31312s,@INSTALL@,$ac_INSTALL,;t t
31313" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31314  rm -f $tmp/stdin
31315  if test x"$ac_file" != x-; then
31316    mv $tmp/out $ac_file
31317  else
31318    cat $tmp/out
31319    rm -f $tmp/out
31320  fi
31321
31322done
31323_ACEOF
31324cat >>$CONFIG_STATUS <<\_ACEOF
31325
31326#
31327# CONFIG_HEADER section.
31328#
31329
31330# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31331# NAME is the cpp macro being defined and VALUE is the value it is being given.
31332#
31333# ac_d sets the value in "#define NAME VALUE" lines.
31334ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31335ac_dB='[	 ].*$,\1#\2'
31336ac_dC=' '
31337ac_dD=',;t'
31338# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31339ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31340ac_uB='$,\1#\2define\3'
31341ac_uC=' '
31342ac_uD=',;t'
31343
31344for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31345  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31346  case $ac_file in
31347  - | *:- | *:-:* ) # input from stdin
31348	cat >$tmp/stdin
31349	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31350	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31351  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31352	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31353  * )   ac_file_in=$ac_file.in ;;
31354  esac
31355
31356  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31357echo "$as_me: creating $ac_file" >&6;}
31358
31359  # First look for the input files in the build tree, otherwise in the
31360  # src tree.
31361  ac_file_inputs=`IFS=:
31362    for f in $ac_file_in; do
31363      case $f in
31364      -) echo $tmp/stdin ;;
31365      [\\/$]*)
31366	 # Absolute (can't be DOS-style, as IFS=:)
31367	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31368echo "$as_me: error: cannot find input file: $f" >&2;}
31369   { (exit 1); exit 1; }; }
31370	 # Do quote $f, to prevent DOS paths from being IFS'd.
31371	 echo "$f";;
31372      *) # Relative
31373	 if test -f "$f"; then
31374	   # Build tree
31375	   echo "$f"
31376	 elif test -f "$srcdir/$f"; then
31377	   # Source tree
31378	   echo "$srcdir/$f"
31379	 else
31380	   # /dev/null tree
31381	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31382echo "$as_me: error: cannot find input file: $f" >&2;}
31383   { (exit 1); exit 1; }; }
31384	 fi;;
31385      esac
31386    done` || { (exit 1); exit 1; }
31387  # Remove the trailing spaces.
31388  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31389
31390_ACEOF
31391
31392# Transform confdefs.h into two sed scripts, `conftest.defines' and
31393# `conftest.undefs', that substitutes the proper values into
31394# config.h.in to produce config.h.  The first handles `#define'
31395# templates, and the second `#undef' templates.
31396# And first: Protect against being on the right side of a sed subst in
31397# config.status.  Protect against being in an unquoted here document
31398# in config.status.
31399rm -f conftest.defines conftest.undefs
31400# Using a here document instead of a string reduces the quoting nightmare.
31401# Putting comments in sed scripts is not portable.
31402#
31403# `end' is used to avoid that the second main sed command (meant for
31404# 0-ary CPP macros) applies to n-ary macro definitions.
31405# See the Autoconf documentation for `clear'.
31406cat >confdef2sed.sed <<\_ACEOF
31407s/[\\&,]/\\&/g
31408s,[\\$`],\\&,g
31409t clear
31410: clear
31411s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31412t end
31413s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31414: end
31415_ACEOF
31416# If some macros were called several times there might be several times
31417# the same #defines, which is useless.  Nevertheless, we may not want to
31418# sort them, since we want the *last* AC-DEFINE to be honored.
31419uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31420sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31421rm -f confdef2sed.sed
31422
31423# This sed command replaces #undef with comments.  This is necessary, for
31424# example, in the case of _POSIX_SOURCE, which is predefined and required
31425# on some systems where configure will not decide to define it.
31426cat >>conftest.undefs <<\_ACEOF
31427s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31428_ACEOF
31429
31430# Break up conftest.defines because some shells have a limit on the size
31431# of here documents, and old seds have small limits too (100 cmds).
31432echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31433echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31434echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31435echo '  :' >>$CONFIG_STATUS
31436rm -f conftest.tail
31437while grep . conftest.defines >/dev/null
31438do
31439  # Write a limited-size here document to $tmp/defines.sed.
31440  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31441  # Speed up: don't consider the non `#define' lines.
31442  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31443  # Work around the forget-to-reset-the-flag bug.
31444  echo 't clr' >>$CONFIG_STATUS
31445  echo ': clr' >>$CONFIG_STATUS
31446  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31447  echo 'CEOF
31448  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31449  rm -f $tmp/in
31450  mv $tmp/out $tmp/in
31451' >>$CONFIG_STATUS
31452  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31453  rm -f conftest.defines
31454  mv conftest.tail conftest.defines
31455done
31456rm -f conftest.defines
31457echo '  fi # grep' >>$CONFIG_STATUS
31458echo >>$CONFIG_STATUS
31459
31460# Break up conftest.undefs because some shells have a limit on the size
31461# of here documents, and old seds have small limits too (100 cmds).
31462echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31463rm -f conftest.tail
31464while grep . conftest.undefs >/dev/null
31465do
31466  # Write a limited-size here document to $tmp/undefs.sed.
31467  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31468  # Speed up: don't consider the non `#undef'
31469  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31470  # Work around the forget-to-reset-the-flag bug.
31471  echo 't clr' >>$CONFIG_STATUS
31472  echo ': clr' >>$CONFIG_STATUS
31473  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31474  echo 'CEOF
31475  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31476  rm -f $tmp/in
31477  mv $tmp/out $tmp/in
31478' >>$CONFIG_STATUS
31479  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31480  rm -f conftest.undefs
31481  mv conftest.tail conftest.undefs
31482done
31483rm -f conftest.undefs
31484
31485cat >>$CONFIG_STATUS <<\_ACEOF
31486  # Let's still pretend it is `configure' which instantiates (i.e., don't
31487  # use $as_me), people would be surprised to read:
31488  #    /* config.h.  Generated by config.status.  */
31489  if test x"$ac_file" = x-; then
31490    echo "/* Generated by configure.  */" >$tmp/config.h
31491  else
31492    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31493  fi
31494  cat $tmp/in >>$tmp/config.h
31495  rm -f $tmp/in
31496  if test x"$ac_file" != x-; then
31497    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31498      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31499echo "$as_me: $ac_file is unchanged" >&6;}
31500    else
31501      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31502$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31503	 X"$ac_file" : 'X\(//\)[^/]' \| \
31504	 X"$ac_file" : 'X\(//\)$' \| \
31505	 X"$ac_file" : 'X\(/\)' \| \
31506	 .     : '\(.\)' 2>/dev/null ||
31507echo X"$ac_file" |
31508    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31509  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31510  	  /^X\(\/\/\)$/{ s//\1/; q; }
31511  	  /^X\(\/\).*/{ s//\1/; q; }
31512  	  s/.*/./; q'`
31513      { if $as_mkdir_p; then
31514    mkdir -p "$ac_dir"
31515  else
31516    as_dir="$ac_dir"
31517    as_dirs=
31518    while test ! -d "$as_dir"; do
31519      as_dirs="$as_dir $as_dirs"
31520      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31522	 X"$as_dir" : 'X\(//\)[^/]' \| \
31523	 X"$as_dir" : 'X\(//\)$' \| \
31524	 X"$as_dir" : 'X\(/\)' \| \
31525	 .     : '\(.\)' 2>/dev/null ||
31526echo X"$as_dir" |
31527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31528  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31529  	  /^X\(\/\/\)$/{ s//\1/; q; }
31530  	  /^X\(\/\).*/{ s//\1/; q; }
31531  	  s/.*/./; q'`
31532    done
31533    test ! -n "$as_dirs" || mkdir $as_dirs
31534  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31535echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31536   { (exit 1); exit 1; }; }; }
31537
31538      rm -f $ac_file
31539      mv $tmp/config.h $ac_file
31540    fi
31541  else
31542    cat $tmp/config.h
31543    rm -f $tmp/config.h
31544  fi
31545done
31546_ACEOF
31547cat >>$CONFIG_STATUS <<\_ACEOF
31548
31549#
31550# CONFIG_COMMANDS section.
31551#
31552for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31553  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31554  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31555  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31556$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31557	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31558	 X"$ac_dest" : 'X\(//\)$' \| \
31559	 X"$ac_dest" : 'X\(/\)' \| \
31560	 .     : '\(.\)' 2>/dev/null ||
31561echo X"$ac_dest" |
31562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31563  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31564  	  /^X\(\/\/\)$/{ s//\1/; q; }
31565  	  /^X\(\/\).*/{ s//\1/; q; }
31566  	  s/.*/./; q'`
31567  { if $as_mkdir_p; then
31568    mkdir -p "$ac_dir"
31569  else
31570    as_dir="$ac_dir"
31571    as_dirs=
31572    while test ! -d "$as_dir"; do
31573      as_dirs="$as_dir $as_dirs"
31574      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31576	 X"$as_dir" : 'X\(//\)[^/]' \| \
31577	 X"$as_dir" : 'X\(//\)$' \| \
31578	 X"$as_dir" : 'X\(/\)' \| \
31579	 .     : '\(.\)' 2>/dev/null ||
31580echo X"$as_dir" |
31581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31582  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31583  	  /^X\(\/\/\)$/{ s//\1/; q; }
31584  	  /^X\(\/\).*/{ s//\1/; q; }
31585  	  s/.*/./; q'`
31586    done
31587    test ! -n "$as_dirs" || mkdir $as_dirs
31588  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31589echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31590   { (exit 1); exit 1; }; }; }
31591
31592  ac_builddir=.
31593
31594if test "$ac_dir" != .; then
31595  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31596  # A "../" for each directory in $ac_dir_suffix.
31597  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31598else
31599  ac_dir_suffix= ac_top_builddir=
31600fi
31601
31602case $srcdir in
31603  .)  # No --srcdir option.  We are building in place.
31604    ac_srcdir=.
31605    if test -z "$ac_top_builddir"; then
31606       ac_top_srcdir=.
31607    else
31608       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31609    fi ;;
31610  [\\/]* | ?:[\\/]* )  # Absolute path.
31611    ac_srcdir=$srcdir$ac_dir_suffix;
31612    ac_top_srcdir=$srcdir ;;
31613  *) # Relative path.
31614    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31615    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31616esac
31617
31618# Do not use `cd foo && pwd` to compute absolute paths, because
31619# the directories may not exist.
31620case `pwd` in
31621.) ac_abs_builddir="$ac_dir";;
31622*)
31623  case "$ac_dir" in
31624  .) ac_abs_builddir=`pwd`;;
31625  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31626  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31627  esac;;
31628esac
31629case $ac_abs_builddir in
31630.) ac_abs_top_builddir=${ac_top_builddir}.;;
31631*)
31632  case ${ac_top_builddir}. in
31633  .) ac_abs_top_builddir=$ac_abs_builddir;;
31634  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31635  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31636  esac;;
31637esac
31638case $ac_abs_builddir in
31639.) ac_abs_srcdir=$ac_srcdir;;
31640*)
31641  case $ac_srcdir in
31642  .) ac_abs_srcdir=$ac_abs_builddir;;
31643  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31644  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31645  esac;;
31646esac
31647case $ac_abs_builddir in
31648.) ac_abs_top_srcdir=$ac_top_srcdir;;
31649*)
31650  case $ac_top_srcdir in
31651  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31652  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31653  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31654  esac;;
31655esac
31656
31657
31658  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31659echo "$as_me: executing $ac_dest commands" >&6;}
31660  case $ac_dest in
31661    Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31662    Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31663    examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31664    lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31665    runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31666    test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31667    test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31668    tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31669    utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31670    projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31671  esac
31672done
31673_ACEOF
31674
31675cat >>$CONFIG_STATUS <<\_ACEOF
31676
31677{ (exit 0); exit 0; }
31678_ACEOF
31679chmod +x $CONFIG_STATUS
31680ac_clean_files=$ac_clean_files_save
31681
31682
31683# configure is writing to config.log, and then calls config.status.
31684# config.status does its own redirection, appending to config.log.
31685# Unfortunately, on DOS this fails, as config.log is still kept open
31686# by configure, so config.status won't be able to write to it; its
31687# output is simply discarded.  So we exec the FD to /dev/null,
31688# effectively closing config.log, so it can be properly (re)opened and
31689# appended to by config.status.  When coming back to configure, we
31690# need to make the FD available again.
31691if test "$no_create" != yes; then
31692  ac_cs_success=:
31693  ac_config_status_args=
31694  test "$silent" = yes &&
31695    ac_config_status_args="$ac_config_status_args --quiet"
31696  exec 5>/dev/null
31697  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31698  exec 5>>config.log
31699  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31700  # would make configure fail if this is the last instruction.
31701  $ac_cs_success || { (exit 1); exit 1; }
31702fi
31703
31704#
31705# CONFIG_SUBDIRS section.
31706#
31707if test "$no_recursion" != yes; then
31708
31709  # Remove --cache-file and --srcdir arguments so they do not pile up.
31710  ac_sub_configure_args=
31711  ac_prev=
31712  for ac_arg in $ac_configure_args; do
31713    if test -n "$ac_prev"; then
31714      ac_prev=
31715      continue
31716    fi
31717    case $ac_arg in
31718    -cache-file | --cache-file | --cache-fil | --cache-fi \
31719    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31720      ac_prev=cache_file ;;
31721    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31722    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31723    | --c=*)
31724      ;;
31725    --config-cache | -C)
31726      ;;
31727    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31728      ac_prev=srcdir ;;
31729    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31730      ;;
31731    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31732      ac_prev=prefix ;;
31733    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31734      ;;
31735    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31736    esac
31737  done
31738
31739  # Always prepend --prefix to ensure using the same prefix
31740  # in subdir configurations.
31741  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31742
31743  ac_popdir=`pwd`
31744  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31745
31746    # Do not complain, so a configure script can configure whichever
31747    # parts of a large source tree are present.
31748    test -d $srcdir/$ac_dir || continue
31749
31750    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31751echo "$as_me: configuring in $ac_dir" >&6;}
31752    { if $as_mkdir_p; then
31753    mkdir -p "$ac_dir"
31754  else
31755    as_dir="$ac_dir"
31756    as_dirs=
31757    while test ! -d "$as_dir"; do
31758      as_dirs="$as_dir $as_dirs"
31759      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31761	 X"$as_dir" : 'X\(//\)[^/]' \| \
31762	 X"$as_dir" : 'X\(//\)$' \| \
31763	 X"$as_dir" : 'X\(/\)' \| \
31764	 .     : '\(.\)' 2>/dev/null ||
31765echo X"$as_dir" |
31766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31767  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31768  	  /^X\(\/\/\)$/{ s//\1/; q; }
31769  	  /^X\(\/\).*/{ s//\1/; q; }
31770  	  s/.*/./; q'`
31771    done
31772    test ! -n "$as_dirs" || mkdir $as_dirs
31773  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31774echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31775   { (exit 1); exit 1; }; }; }
31776
31777    ac_builddir=.
31778
31779if test "$ac_dir" != .; then
31780  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31781  # A "../" for each directory in $ac_dir_suffix.
31782  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31783else
31784  ac_dir_suffix= ac_top_builddir=
31785fi
31786
31787case $srcdir in
31788  .)  # No --srcdir option.  We are building in place.
31789    ac_srcdir=.
31790    if test -z "$ac_top_builddir"; then
31791       ac_top_srcdir=.
31792    else
31793       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31794    fi ;;
31795  [\\/]* | ?:[\\/]* )  # Absolute path.
31796    ac_srcdir=$srcdir$ac_dir_suffix;
31797    ac_top_srcdir=$srcdir ;;
31798  *) # Relative path.
31799    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31800    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31801esac
31802
31803# Do not use `cd foo && pwd` to compute absolute paths, because
31804# the directories may not exist.
31805case `pwd` in
31806.) ac_abs_builddir="$ac_dir";;
31807*)
31808  case "$ac_dir" in
31809  .) ac_abs_builddir=`pwd`;;
31810  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31811  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31812  esac;;
31813esac
31814case $ac_abs_builddir in
31815.) ac_abs_top_builddir=${ac_top_builddir}.;;
31816*)
31817  case ${ac_top_builddir}. in
31818  .) ac_abs_top_builddir=$ac_abs_builddir;;
31819  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31820  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31821  esac;;
31822esac
31823case $ac_abs_builddir in
31824.) ac_abs_srcdir=$ac_srcdir;;
31825*)
31826  case $ac_srcdir in
31827  .) ac_abs_srcdir=$ac_abs_builddir;;
31828  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31829  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31830  esac;;
31831esac
31832case $ac_abs_builddir in
31833.) ac_abs_top_srcdir=$ac_top_srcdir;;
31834*)
31835  case $ac_top_srcdir in
31836  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31837  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31838  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31839  esac;;
31840esac
31841
31842
31843    cd $ac_dir
31844
31845    # Check for guested configure; otherwise get Cygnus style configure.
31846    if test -f $ac_srcdir/configure.gnu; then
31847      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31848    elif test -f $ac_srcdir/configure; then
31849      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31850    elif test -f $ac_srcdir/configure.in; then
31851      ac_sub_configure=$ac_configure
31852    else
31853      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31854echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31855      ac_sub_configure=
31856    fi
31857
31858    # The recursion is here.
31859    if test -n "$ac_sub_configure"; then
31860      # Make the cache file name correct relative to the subdirectory.
31861      case $cache_file in
31862      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31863      *) # Relative path.
31864	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31865      esac
31866
31867      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31868echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31869      # The eval makes quoting arguments work.
31870      eval $ac_sub_configure $ac_sub_configure_args \
31871	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31872	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31873echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31874   { (exit 1); exit 1; }; }
31875    fi
31876
31877    cd $ac_popdir
31878  done
31879fi
31880
31881
31882if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31883 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31884echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31885 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31886echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31887 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31888echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31889 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31890echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31891 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31892echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31893fi
31894