configure revision c0c186d140b75fc3b2e4e3632f826a40cf4f8626
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for llvm 1.6.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26DUALCASE=1; export DUALCASE # for MKS sh
27
28# Support unset when possible.
29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30  as_unset=unset
31else
32  as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46  LC_TELEPHONE LC_TIME
47do
48  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49    eval $as_var=C; export $as_var
50  else
51    $as_unset $as_var
52  fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57  as_expr=expr
58else
59  as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63  as_basename=basename
64else
65  as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72	 X"$0" : 'X\(//\)$' \| \
73	 X"$0" : 'X\(/\)$' \| \
74	 .     : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
78  	  /^X\/\(\/\).*/{ s//\1/; q; }
79  	  s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92  echo "#! /bin/sh" >conf$$.sh
93  echo  "exit 0"   >>conf$$.sh
94  chmod +x conf$$.sh
95  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96    PATH_SEPARATOR=';'
97  else
98    PATH_SEPARATOR=:
99  fi
100  rm -f conf$$.sh
101fi
102
103
104  as_lineno_1=$LINENO
105  as_lineno_2=$LINENO
106  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107  test "x$as_lineno_1" != "x$as_lineno_2" &&
108  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109  # Find who we are.  Look in the path if we contain no path at all
110  # relative or not.
111  case $0 in
112    *[\\/]* ) as_myself=$0 ;;
113    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116  IFS=$as_save_IFS
117  test -z "$as_dir" && as_dir=.
118  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121       ;;
122  esac
123  # We did not find ourselves, most probably we were run as `sh COMMAND'
124  # in which case we are not to be found in the path.
125  if test "x$as_myself" = x; then
126    as_myself=$0
127  fi
128  if test ! -f "$as_myself"; then
129    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130   { (exit 1); exit 1; }; }
131  fi
132  case $CONFIG_SHELL in
133  '')
134    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137  IFS=$as_save_IFS
138  test -z "$as_dir" && as_dir=.
139  for as_base in sh bash ksh sh5; do
140	 case $as_dir in
141	 /*)
142	   if ("$as_dir/$as_base" -c '
143  as_lineno_1=$LINENO
144  as_lineno_2=$LINENO
145  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146  test "x$as_lineno_1" != "x$as_lineno_2" &&
147  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150	     CONFIG_SHELL=$as_dir/$as_base
151	     export CONFIG_SHELL
152	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153	   fi;;
154	 esac
155       done
156done
157;;
158  esac
159
160  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161  # uniformly replaced by the line number.  The first 'sed' inserts a
162  # line-number line before each line; the second 'sed' does the real
163  # work.  The second script uses 'N' to pair each line-number line
164  # with the numbered line, and appends trailing '-' during
165  # substitution so that $LINENO is not a special case at line end.
166  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168  sed '=' <$as_myself |
169    sed '
170      N
171      s,$,-,
172      : loop
173      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174      t loop
175      s,-$,,
176      s,^['$as_cr_digits']*\n,,
177    ' >$as_me.lineno &&
178  chmod +x $as_me.lineno ||
179    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180   { (exit 1); exit 1; }; }
181
182  # Don't try to exec as it changes $[0], causing all sort of problems
183  # (the dirname of $[0] is not the place where we might find the
184  # original and so on.  Autoconf is especially sensible to this).
185  . ./$as_me.lineno
186  # Exit status is that of the last command.
187  exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192  *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T='	' ;;
194  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199  as_expr=expr
200else
201  as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207  # We could just check for DJGPP; but this test a) works b) is more generic
208  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209  if test -f conf$$.exe; then
210    # Don't use ln at all; we don't have any links
211    as_ln_s='cp -p'
212  else
213    as_ln_s='ln -s'
214  fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216  as_ln_s=ln
217else
218  as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223  as_mkdir_p=:
224else
225  test -d ./-p && rmdir ./-p
226  as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234# Sed expression to map a string onto a valid variable name.
235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" 	$as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
247
248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254  # Remove one level of quotation (which was required for Make).
255  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256  ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261  # Discard the --no-reexec flag, and continue.
262  shift
263elif test "X$1" = X--fallback-echo; then
264  # Avoid inline document here, it may be left over
265  :
266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267  # Yippee, $echo works!
268  :
269else
270  # Restart under the correct shell.
271  exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275  # used as fallback echo
276  shift
277  cat <<EOF
278$*
279EOF
280  exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293       echo_test_string="`eval $cmd`" &&
294       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295    then
296      break
297    fi
298  done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303   test "X$echo_testing_string" = "X$echo_test_string"; then
304  :
305else
306  # The Solaris, AIX, and Digital Unix default echo programs unquote
307  # backslashes.  This makes it impossible to quote backslashes using
308  #   echo "$something" | sed 's/\\/\\\\/g'
309  #
310  # So, first we look for a working echo in the user's PATH.
311
312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313  for dir in $PATH /usr/ucb; do
314    IFS="$lt_save_ifs"
315    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318       test "X$echo_testing_string" = "X$echo_test_string"; then
319      echo="$dir/echo"
320      break
321    fi
322  done
323  IFS="$lt_save_ifs"
324
325  if test "X$echo" = Xecho; then
326    # We didn't find a better echo, so look for alternatives.
327    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329       test "X$echo_testing_string" = "X$echo_test_string"; then
330      # This shell has a builtin print -r that does the trick.
331      echo='print -r'
332    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333	 test "X$CONFIG_SHELL" != X/bin/ksh; then
334      # If we have ksh, try running configure again with it.
335      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336      export ORIGINAL_CONFIG_SHELL
337      CONFIG_SHELL=/bin/ksh
338      export CONFIG_SHELL
339      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340    else
341      # Try using printf.
342      echo='printf %s\n'
343      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345	 test "X$echo_testing_string" = "X$echo_test_string"; then
346	# Cool, printf works
347	:
348      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349	   test "X$echo_testing_string" = 'X\t' &&
350	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351	   test "X$echo_testing_string" = "X$echo_test_string"; then
352	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353	export CONFIG_SHELL
354	SHELL="$CONFIG_SHELL"
355	export SHELL
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358	   test "X$echo_testing_string" = 'X\t' &&
359	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360	   test "X$echo_testing_string" = "X$echo_test_string"; then
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      else
363	# maybe with a smaller string...
364	prev=:
365
366	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368	  then
369	    break
370	  fi
371	  prev="$cmd"
372	done
373
374	if test "$prev" != 'sed 50q "$0"'; then
375	  echo_test_string=`eval $prev`
376	  export echo_test_string
377	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378	else
379	  # Oops.  We lost completely, so just stick with echo.
380	  echo=echo
381	fi
382      fi
383    fi
384  fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
397
398tagnames=${tagnames+${tagnames},}CXX
399
400tagnames=${tagnames+${tagnames},}F77
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME='llvm'
427PACKAGE_TARNAME='-llvm-'
428PACKAGE_VERSION='1.6'
429PACKAGE_STRING='llvm 1.6'
430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432ac_unique_file="lib/VMCore/Module.cpp"
433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441# Factoring default headers for most tests.
442ac_includes_default="\
443#include <stdio.h>
444#if HAVE_SYS_TYPES_H
445# include <sys/types.h>
446#endif
447#if HAVE_SYS_STAT_H
448# include <sys/stat.h>
449#endif
450#if STDC_HEADERS
451# include <stdlib.h>
452# include <stddef.h>
453#else
454# if HAVE_STDLIB_H
455#  include <stdlib.h>
456# endif
457#endif
458#if HAVE_STRING_H
459# if !STDC_HEADERS && HAVE_MEMORY_H
460#  include <memory.h>
461# endif
462# include <string.h>
463#endif
464#if HAVE_STRINGS_H
465# include <strings.h>
466#endif
467#if HAVE_INTTYPES_H
468# include <inttypes.h>
469#else
470# if HAVE_STDINT_H
471#  include <stdint.h>
472# endif
473#endif
474#if HAVE_UNISTD_H
475# include <unistd.h>
476#endif"
477
478ac_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 ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV 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'
479ac_subst_files=''
480
481# Initialize some variables set by options.
482ac_init_help=
483ac_init_version=false
484# The variables have the same names as the options, with
485# dashes changed to underlines.
486cache_file=/dev/null
487exec_prefix=NONE
488no_create=
489no_recursion=
490prefix=NONE
491program_prefix=NONE
492program_suffix=NONE
493program_transform_name=s,x,x,
494silent=
495site=
496srcdir=
497verbose=
498x_includes=NONE
499x_libraries=NONE
500
501# Installation directory options.
502# These are left unexpanded so users can "make install exec_prefix=/foo"
503# and all the variables that are supposed to be based on exec_prefix
504# by default will actually change.
505# Use braces instead of parens because sh, perl, etc. also accept them.
506bindir='${exec_prefix}/bin'
507sbindir='${exec_prefix}/sbin'
508libexecdir='${exec_prefix}/libexec'
509datadir='${prefix}/share'
510sysconfdir='${prefix}/etc'
511sharedstatedir='${prefix}/com'
512localstatedir='${prefix}/var'
513libdir='${exec_prefix}/lib'
514includedir='${prefix}/include'
515oldincludedir='/usr/include'
516infodir='${prefix}/info'
517mandir='${prefix}/man'
518
519ac_prev=
520for ac_option
521do
522  # If the previous option needs an argument, assign it.
523  if test -n "$ac_prev"; then
524    eval "$ac_prev=\$ac_option"
525    ac_prev=
526    continue
527  fi
528
529  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531  # Accept the important Cygnus configure options, so we can diagnose typos.
532
533  case $ac_option in
534
535  -bindir | --bindir | --bindi | --bind | --bin | --bi)
536    ac_prev=bindir ;;
537  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538    bindir=$ac_optarg ;;
539
540  -build | --build | --buil | --bui | --bu)
541    ac_prev=build_alias ;;
542  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543    build_alias=$ac_optarg ;;
544
545  -cache-file | --cache-file | --cache-fil | --cache-fi \
546  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547    ac_prev=cache_file ;;
548  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550    cache_file=$ac_optarg ;;
551
552  --config-cache | -C)
553    cache_file=config.cache ;;
554
555  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556    ac_prev=datadir ;;
557  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558  | --da=*)
559    datadir=$ac_optarg ;;
560
561  -disable-* | --disable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    eval "enable_$ac_feature=no" ;;
569
570  -enable-* | --enable-*)
571    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575   { (exit 1); exit 1; }; }
576    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577    case $ac_option in
578      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579      *) ac_optarg=yes ;;
580    esac
581    eval "enable_$ac_feature='$ac_optarg'" ;;
582
583  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585  | --exec | --exe | --ex)
586    ac_prev=exec_prefix ;;
587  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589  | --exec=* | --exe=* | --ex=*)
590    exec_prefix=$ac_optarg ;;
591
592  -gas | --gas | --ga | --g)
593    # Obsolete; use --with-gas.
594    with_gas=yes ;;
595
596  -help | --help | --hel | --he | -h)
597    ac_init_help=long ;;
598  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599    ac_init_help=recursive ;;
600  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601    ac_init_help=short ;;
602
603  -host | --host | --hos | --ho)
604    ac_prev=host_alias ;;
605  -host=* | --host=* | --hos=* | --ho=*)
606    host_alias=$ac_optarg ;;
607
608  -includedir | --includedir | --includedi | --included | --include \
609  | --includ | --inclu | --incl | --inc)
610    ac_prev=includedir ;;
611  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612  | --includ=* | --inclu=* | --incl=* | --inc=*)
613    includedir=$ac_optarg ;;
614
615  -infodir | --infodir | --infodi | --infod | --info | --inf)
616    ac_prev=infodir ;;
617  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618    infodir=$ac_optarg ;;
619
620  -libdir | --libdir | --libdi | --libd)
621    ac_prev=libdir ;;
622  -libdir=* | --libdir=* | --libdi=* | --libd=*)
623    libdir=$ac_optarg ;;
624
625  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626  | --libexe | --libex | --libe)
627    ac_prev=libexecdir ;;
628  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629  | --libexe=* | --libex=* | --libe=*)
630    libexecdir=$ac_optarg ;;
631
632  -localstatedir | --localstatedir | --localstatedi | --localstated \
633  | --localstate | --localstat | --localsta | --localst \
634  | --locals | --local | --loca | --loc | --lo)
635    ac_prev=localstatedir ;;
636  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639    localstatedir=$ac_optarg ;;
640
641  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642    ac_prev=mandir ;;
643  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644    mandir=$ac_optarg ;;
645
646  -nfp | --nfp | --nf)
647    # Obsolete; use --without-fp.
648    with_fp=no ;;
649
650  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651  | --no-cr | --no-c | -n)
652    no_create=yes ;;
653
654  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656    no_recursion=yes ;;
657
658  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660  | --oldin | --oldi | --old | --ol | --o)
661    ac_prev=oldincludedir ;;
662  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665    oldincludedir=$ac_optarg ;;
666
667  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668    ac_prev=prefix ;;
669  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670    prefix=$ac_optarg ;;
671
672  -program-prefix | --program-prefix | --program-prefi | --program-pref \
673  | --program-pre | --program-pr | --program-p)
674    ac_prev=program_prefix ;;
675  -program-prefix=* | --program-prefix=* | --program-prefi=* \
676  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677    program_prefix=$ac_optarg ;;
678
679  -program-suffix | --program-suffix | --program-suffi | --program-suff \
680  | --program-suf | --program-su | --program-s)
681    ac_prev=program_suffix ;;
682  -program-suffix=* | --program-suffix=* | --program-suffi=* \
683  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684    program_suffix=$ac_optarg ;;
685
686  -program-transform-name | --program-transform-name \
687  | --program-transform-nam | --program-transform-na \
688  | --program-transform-n | --program-transform- \
689  | --program-transform | --program-transfor \
690  | --program-transfo | --program-transf \
691  | --program-trans | --program-tran \
692  | --progr-tra | --program-tr | --program-t)
693    ac_prev=program_transform_name ;;
694  -program-transform-name=* | --program-transform-name=* \
695  | --program-transform-nam=* | --program-transform-na=* \
696  | --program-transform-n=* | --program-transform-=* \
697  | --program-transform=* | --program-transfor=* \
698  | --program-transfo=* | --program-transf=* \
699  | --program-trans=* | --program-tran=* \
700  | --progr-tra=* | --program-tr=* | --program-t=*)
701    program_transform_name=$ac_optarg ;;
702
703  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704  | -silent | --silent | --silen | --sile | --sil)
705    silent=yes ;;
706
707  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708    ac_prev=sbindir ;;
709  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710  | --sbi=* | --sb=*)
711    sbindir=$ac_optarg ;;
712
713  -sharedstatedir | --sharedstatedir | --sharedstatedi \
714  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715  | --sharedst | --shareds | --shared | --share | --shar \
716  | --sha | --sh)
717    ac_prev=sharedstatedir ;;
718  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721  | --sha=* | --sh=*)
722    sharedstatedir=$ac_optarg ;;
723
724  -site | --site | --sit)
725    ac_prev=site ;;
726  -site=* | --site=* | --sit=*)
727    site=$ac_optarg ;;
728
729  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730    ac_prev=srcdir ;;
731  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732    srcdir=$ac_optarg ;;
733
734  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735  | --syscon | --sysco | --sysc | --sys | --sy)
736    ac_prev=sysconfdir ;;
737  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739    sysconfdir=$ac_optarg ;;
740
741  -target | --target | --targe | --targ | --tar | --ta | --t)
742    ac_prev=target_alias ;;
743  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744    target_alias=$ac_optarg ;;
745
746  -v | -verbose | --verbose | --verbos | --verbo | --verb)
747    verbose=yes ;;
748
749  -version | --version | --versio | --versi | --vers | -V)
750    ac_init_version=: ;;
751
752  -with-* | --with-*)
753    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754    # Reject names that are not valid shell variable names.
755    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756      { echo "$as_me: error: invalid package name: $ac_package" >&2
757   { (exit 1); exit 1; }; }
758    ac_package=`echo $ac_package| sed 's/-/_/g'`
759    case $ac_option in
760      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761      *) ac_optarg=yes ;;
762    esac
763    eval "with_$ac_package='$ac_optarg'" ;;
764
765  -without-* | --without-*)
766    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767    # Reject names that are not valid shell variable names.
768    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769      { echo "$as_me: error: invalid package name: $ac_package" >&2
770   { (exit 1); exit 1; }; }
771    ac_package=`echo $ac_package | sed 's/-/_/g'`
772    eval "with_$ac_package=no" ;;
773
774  --x)
775    # Obsolete; use --with-x.
776    with_x=yes ;;
777
778  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779  | --x-incl | --x-inc | --x-in | --x-i)
780    ac_prev=x_includes ;;
781  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783    x_includes=$ac_optarg ;;
784
785  -x-libraries | --x-libraries | --x-librarie | --x-librari \
786  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787    ac_prev=x_libraries ;;
788  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790    x_libraries=$ac_optarg ;;
791
792  -*) { echo "$as_me: error: unrecognized option: $ac_option
793Try \`$0 --help' for more information." >&2
794   { (exit 1); exit 1; }; }
795    ;;
796
797  *=*)
798    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799    # Reject names that are not valid shell variable names.
800    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802   { (exit 1); exit 1; }; }
803    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804    eval "$ac_envvar='$ac_optarg'"
805    export $ac_envvar ;;
806
807  *)
808    # FIXME: should be removed in autoconf 3.0.
809    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813    ;;
814
815  esac
816done
817
818if test -n "$ac_prev"; then
819  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820  { echo "$as_me: error: missing argument to $ac_option" >&2
821   { (exit 1); exit 1; }; }
822fi
823
824# Be sure to have absolute paths.
825for ac_var in exec_prefix prefix
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# Be sure to have absolute paths.
836for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837	      localstatedir libdir includedir oldincludedir infodir mandir
838do
839  eval ac_val=$`echo $ac_var`
840  case $ac_val in
841    [\\/$]* | ?:[\\/]* ) ;;
842    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843   { (exit 1); exit 1; }; };;
844  esac
845done
846
847# There might be people who depend on the old broken behavior: `$host'
848# used to hold the argument of --host etc.
849# FIXME: To remove some day.
850build=$build_alias
851host=$host_alias
852target=$target_alias
853
854# FIXME: To remove some day.
855if test "x$host_alias" != x; then
856  if test "x$build_alias" = x; then
857    cross_compiling=maybe
858    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859    If a cross compiler is detected then cross compile mode will be used." >&2
860  elif test "x$build_alias" != "x$host_alias"; then
861    cross_compiling=yes
862  fi
863fi
864
865ac_tool_prefix=
866test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868test "$silent" = yes && exec 6>/dev/null
869
870
871# Find the source files, if location was not specified.
872if test -z "$srcdir"; then
873  ac_srcdir_defaulted=yes
874  # Try the directory containing this script, then its parent.
875  ac_confdir=`(dirname "$0") 2>/dev/null ||
876$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877	 X"$0" : 'X\(//\)[^/]' \| \
878	 X"$0" : 'X\(//\)$' \| \
879	 X"$0" : 'X\(/\)' \| \
880	 .     : '\(.\)' 2>/dev/null ||
881echo X"$0" |
882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884  	  /^X\(\/\/\)$/{ s//\1/; q; }
885  	  /^X\(\/\).*/{ s//\1/; q; }
886  	  s/.*/./; q'`
887  srcdir=$ac_confdir
888  if test ! -r $srcdir/$ac_unique_file; then
889    srcdir=..
890  fi
891else
892  ac_srcdir_defaulted=no
893fi
894if test ! -r $srcdir/$ac_unique_file; then
895  if test "$ac_srcdir_defaulted" = yes; then
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897   { (exit 1); exit 1; }; }
898  else
899    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900   { (exit 1); exit 1; }; }
901  fi
902fi
903(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905   { (exit 1); exit 1; }; }
906srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907ac_env_build_alias_set=${build_alias+set}
908ac_env_build_alias_value=$build_alias
909ac_cv_env_build_alias_set=${build_alias+set}
910ac_cv_env_build_alias_value=$build_alias
911ac_env_host_alias_set=${host_alias+set}
912ac_env_host_alias_value=$host_alias
913ac_cv_env_host_alias_set=${host_alias+set}
914ac_cv_env_host_alias_value=$host_alias
915ac_env_target_alias_set=${target_alias+set}
916ac_env_target_alias_value=$target_alias
917ac_cv_env_target_alias_set=${target_alias+set}
918ac_cv_env_target_alias_value=$target_alias
919ac_env_CC_set=${CC+set}
920ac_env_CC_value=$CC
921ac_cv_env_CC_set=${CC+set}
922ac_cv_env_CC_value=$CC
923ac_env_CFLAGS_set=${CFLAGS+set}
924ac_env_CFLAGS_value=$CFLAGS
925ac_cv_env_CFLAGS_set=${CFLAGS+set}
926ac_cv_env_CFLAGS_value=$CFLAGS
927ac_env_LDFLAGS_set=${LDFLAGS+set}
928ac_env_LDFLAGS_value=$LDFLAGS
929ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930ac_cv_env_LDFLAGS_value=$LDFLAGS
931ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_env_CPPFLAGS_value=$CPPFLAGS
933ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXX_set=${CXX+set}
940ac_env_CXX_value=$CXX
941ac_cv_env_CXX_set=${CXX+set}
942ac_cv_env_CXX_value=$CXX
943ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944ac_env_CXXFLAGS_value=$CXXFLAGS
945ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947ac_env_CXXCPP_set=${CXXCPP+set}
948ac_env_CXXCPP_value=$CXXCPP
949ac_cv_env_CXXCPP_set=${CXXCPP+set}
950ac_cv_env_CXXCPP_value=$CXXCPP
951ac_env_F77_set=${F77+set}
952ac_env_F77_value=$F77
953ac_cv_env_F77_set=${F77+set}
954ac_cv_env_F77_value=$F77
955ac_env_FFLAGS_set=${FFLAGS+set}
956ac_env_FFLAGS_value=$FFLAGS
957ac_cv_env_FFLAGS_set=${FFLAGS+set}
958ac_cv_env_FFLAGS_value=$FFLAGS
959
960#
961# Report the --help message.
962#
963if test "$ac_init_help" = "long"; then
964  # Omit some internal or obsolete options to make the list less imposing.
965  # This message is too long to be a string in the A/UX 3.1 sh.
966  cat <<_ACEOF
967\`configure' configures llvm 1.6 to adapt to many kinds of systems.
968
969Usage: $0 [OPTION]... [VAR=VALUE]...
970
971To assign environment variables (e.g., CC, CFLAGS...), specify them as
972VAR=VALUE.  See below for descriptions of some of the useful variables.
973
974Defaults for the options are specified in brackets.
975
976Configuration:
977  -h, --help              display this help and exit
978      --help=short        display options specific to this package
979      --help=recursive    display the short help of all the included packages
980  -V, --version           display version information and exit
981  -q, --quiet, --silent   do not print \`checking...' messages
982      --cache-file=FILE   cache test results in FILE [disabled]
983  -C, --config-cache      alias for \`--cache-file=config.cache'
984  -n, --no-create         do not create output files
985      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
987_ACEOF
988
989  cat <<_ACEOF
990Installation directories:
991  --prefix=PREFIX         install architecture-independent files in PREFIX
992			  [$ac_default_prefix]
993  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994			  [PREFIX]
995
996By default, \`make install' will install all the files in
997\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
998an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999for instance \`--prefix=\$HOME'.
1000
1001For better control, use the options below.
1002
1003Fine tuning of the installation directories:
1004  --bindir=DIR           user executables [EPREFIX/bin]
1005  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006  --libexecdir=DIR       program executables [EPREFIX/libexec]
1007  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011  --libdir=DIR           object code libraries [EPREFIX/lib]
1012  --includedir=DIR       C header files [PREFIX/include]
1013  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014  --infodir=DIR          info documentation [PREFIX/info]
1015  --mandir=DIR           man documentation [PREFIX/man]
1016_ACEOF
1017
1018  cat <<\_ACEOF
1019
1020System types:
1021  --build=BUILD     configure for building on BUILD [guessed]
1022  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023  --target=TARGET   configure for building compilers for TARGET [HOST]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028  case $ac_init_help in
1029     short | recursive ) echo "Configuration of llvm 1.6:";;
1030   esac
1031  cat <<\_ACEOF
1032
1033Optional Features:
1034  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036  --enable-optimized
1037  --enable-jit            Enable Just In Time Compiling (default is YES)
1038  --enable-doxygen        Build doxygen documentation (default is NO)
1039  --enable-threads        Use threads if available (default is YES)
1040  --enable-target         Build specific host targets:
1041                          all,host-only,{target-name} (default=all)
1042  --enable-ltdl-install   install libltdl
1043  --enable-shared[=PKGS]
1044                          build shared libraries [default=yes]
1045  --enable-static[=PKGS]
1046                          build static libraries [default=yes]
1047  --enable-fast-install[=PKGS]
1048                          optimize for fast installation [default=yes]
1049  --disable-libtool-lock  avoid locking (might break parallel builds)
1050
1051Optional Packages:
1052  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1055                          searches PATH)
1056  --with-tclinclude       directory where tcl headers are
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062
1063Some influential environment variables:
1064  CC          C compiler command
1065  CFLAGS      C compiler flags
1066  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1067              nonstandard directory <lib dir>
1068  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1069              headers in a nonstandard directory <include dir>
1070  CPP         C preprocessor
1071  CXX         C++ compiler command
1072  CXXFLAGS    C++ compiler flags
1073  CXXCPP      C++ preprocessor
1074  F77         Fortran 77 compiler command
1075  FFLAGS      Fortran 77 compiler flags
1076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <llvmbugs@cs.uiuc.edu>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085  # If there are subdirs, report their specific --help.
1086  ac_popdir=`pwd`
1087  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088    test -d $ac_dir || continue
1089    ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093  # A "../" for each directory in $ac_dir_suffix.
1094  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096  ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100  .)  # No --srcdir option.  We are building in place.
1101    ac_srcdir=.
1102    if test -z "$ac_top_builddir"; then
1103       ac_top_srcdir=.
1104    else
1105       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106    fi ;;
1107  [\\/]* | ?:[\\/]* )  # Absolute path.
1108    ac_srcdir=$srcdir$ac_dir_suffix;
1109    ac_top_srcdir=$srcdir ;;
1110  *) # Relative path.
1111    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
1114
1115# Do not use `cd foo && pwd` to compute absolute paths, because
1116# the directories may not exist.
1117case `pwd` in
1118.) ac_abs_builddir="$ac_dir";;
1119*)
1120  case "$ac_dir" in
1121  .) ac_abs_builddir=`pwd`;;
1122  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124  esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128*)
1129  case ${ac_top_builddir}. in
1130  .) ac_abs_top_builddir=$ac_abs_builddir;;
1131  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133  esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_srcdir=$ac_srcdir;;
1137*)
1138  case $ac_srcdir in
1139  .) ac_abs_srcdir=$ac_abs_builddir;;
1140  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142  esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146*)
1147  case $ac_top_srcdir in
1148  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151  esac;;
1152esac
1153
1154    cd $ac_dir
1155    # Check for guested configure; otherwise get Cygnus style configure.
1156    if test -f $ac_srcdir/configure.gnu; then
1157      echo
1158      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1159    elif test -f $ac_srcdir/configure; then
1160      echo
1161      $SHELL $ac_srcdir/configure  --help=recursive
1162    elif test -f $ac_srcdir/configure.ac ||
1163	   test -f $ac_srcdir/configure.in; then
1164      echo
1165      $ac_configure --help
1166    else
1167      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168    fi
1169    cd $ac_popdir
1170  done
1171fi
1172
1173test -n "$ac_init_help" && exit 0
1174if $ac_init_version; then
1175  cat <<\_ACEOF
1176llvm configure 1.6
1177generated by GNU Autoconf 2.59
1178
1179Copyright (C) 2003 Free Software Foundation, Inc.
1180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
1182
1183Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1184_ACEOF
1185  exit 0
1186fi
1187exec 5>config.log
1188cat >&5 <<_ACEOF
1189This file contains any messages produced by compilers while
1190running configure, to aid debugging if configure makes a mistake.
1191
1192It was created by llvm $as_me 1.6, which was
1193generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195  $ $0 $@
1196
1197_ACEOF
1198{
1199cat <<_ASUNAME
1200## --------- ##
1201## Platform. ##
1202## --------- ##
1203
1204hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221_ASUNAME
1222
1223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224for as_dir in $PATH
1225do
1226  IFS=$as_save_IFS
1227  test -z "$as_dir" && as_dir=.
1228  echo "PATH: $as_dir"
1229done
1230
1231} >&5
1232
1233cat >&5 <<_ACEOF
1234
1235
1236## ----------- ##
1237## Core tests. ##
1238## ----------- ##
1239
1240_ACEOF
1241
1242
1243# Keep a trace of the command line.
1244# Strip out --no-create and --no-recursion so they do not pile up.
1245# Strip out --silent because we don't want to record it for future runs.
1246# Also quote any args containing shell meta-characters.
1247# Make two passes to allow for proper duplicate-argument suppression.
1248ac_configure_args=
1249ac_configure_args0=
1250ac_configure_args1=
1251ac_sep=
1252ac_must_keep_next=false
1253for ac_pass in 1 2
1254do
1255  for ac_arg
1256  do
1257    case $ac_arg in
1258    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260    | -silent | --silent | --silen | --sile | --sil)
1261      continue ;;
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    esac
1265    case $ac_pass in
1266    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267    2)
1268      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269      if test $ac_must_keep_next = true; then
1270	ac_must_keep_next=false # Got value, back to normal.
1271      else
1272	case $ac_arg in
1273	  *=* | --config-cache | -C | -disable-* | --disable-* \
1274	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276	  | -with-* | --with-* | -without-* | --without-* | --x)
1277	    case "$ac_configure_args0 " in
1278	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279	    esac
1280	    ;;
1281	  -* ) ac_must_keep_next=true ;;
1282	esac
1283      fi
1284      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285      # Get rid of the leading space.
1286      ac_sep=" "
1287      ;;
1288    esac
1289  done
1290done
1291$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294# When interrupted or exit'd, cleanup temporary files, and complete
1295# config.log.  We remove comments because anyway the quotes in there
1296# would cause problems or look ugly.
1297# WARNING: Be sure not to use single quotes in there, as some shells,
1298# such as our DU 5.0 friend, will then `close' the trap.
1299trap 'exit_status=$?
1300  # Save into config.log some information that might help in debugging.
1301  {
1302    echo
1303
1304    cat <<\_ASBOX
1305## ---------------- ##
1306## Cache variables. ##
1307## ---------------- ##
1308_ASBOX
1309    echo
1310    # The following way of writing the cache mishandles newlines in values,
1311{
1312  (set) 2>&1 |
1313    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314    *ac_space=\ *)
1315      sed -n \
1316	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318      ;;
1319    *)
1320      sed -n \
1321	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322      ;;
1323    esac;
1324}
1325    echo
1326
1327    cat <<\_ASBOX
1328## ----------------- ##
1329## Output variables. ##
1330## ----------------- ##
1331_ASBOX
1332    echo
1333    for ac_var in $ac_subst_vars
1334    do
1335      eval ac_val=$`echo $ac_var`
1336      echo "$ac_var='"'"'$ac_val'"'"'"
1337    done | sort
1338    echo
1339
1340    if test -n "$ac_subst_files"; then
1341      cat <<\_ASBOX
1342## ------------- ##
1343## Output files. ##
1344## ------------- ##
1345_ASBOX
1346      echo
1347      for ac_var in $ac_subst_files
1348      do
1349	eval ac_val=$`echo $ac_var`
1350	echo "$ac_var='"'"'$ac_val'"'"'"
1351      done | sort
1352      echo
1353    fi
1354
1355    if test -s confdefs.h; then
1356      cat <<\_ASBOX
1357## ----------- ##
1358## confdefs.h. ##
1359## ----------- ##
1360_ASBOX
1361      echo
1362      sed "/^$/d" confdefs.h | sort
1363      echo
1364    fi
1365    test "$ac_signal" != 0 &&
1366      echo "$as_me: caught signal $ac_signal"
1367    echo "$as_me: exit $exit_status"
1368  } >&5
1369  rm -f core *.core &&
1370  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371    exit $exit_status
1372     ' 0
1373for ac_signal in 1 2 13 15; do
1374  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375done
1376ac_signal=0
1377
1378# confdefs.h avoids OS command line length limits that DEFS can exceed.
1379rm -rf conftest* confdefs.h
1380# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381echo >confdefs.h
1382
1383# Predefined preprocessor variables.
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_NAME "$PACKAGE_NAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_VERSION "$PACKAGE_VERSION"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_STRING "$PACKAGE_STRING"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407_ACEOF
1408
1409
1410# Let the site file select an alternate cache file if it wants to.
1411# Prefer explicitly selected file to automatically selected ones.
1412if test -z "$CONFIG_SITE"; then
1413  if test "x$prefix" != xNONE; then
1414    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415  else
1416    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417  fi
1418fi
1419for ac_site_file in $CONFIG_SITE; do
1420  if test -r "$ac_site_file"; then
1421    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422echo "$as_me: loading site script $ac_site_file" >&6;}
1423    sed 's/^/| /' "$ac_site_file" >&5
1424    . "$ac_site_file"
1425  fi
1426done
1427
1428if test -r "$cache_file"; then
1429  # Some versions of bash will fail to source /dev/null (special
1430  # files actually), so we avoid doing that.
1431  if test -f "$cache_file"; then
1432    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433echo "$as_me: loading cache $cache_file" >&6;}
1434    case $cache_file in
1435      [\\/]* | ?:[\\/]* ) . $cache_file;;
1436      *)                      . ./$cache_file;;
1437    esac
1438  fi
1439else
1440  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441echo "$as_me: creating cache $cache_file" >&6;}
1442  >$cache_file
1443fi
1444
1445# Check that the precious variables saved in the cache have kept the same
1446# value.
1447ac_cache_corrupted=false
1448for ac_var in `(set) 2>&1 |
1449	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451  eval ac_new_set=\$ac_env_${ac_var}_set
1452  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453  eval ac_new_val="\$ac_env_${ac_var}_value"
1454  case $ac_old_set,$ac_new_set in
1455    set,)
1456      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458      ac_cache_corrupted=: ;;
1459    ,set)
1460      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462      ac_cache_corrupted=: ;;
1463    ,);;
1464    *)
1465      if test "x$ac_old_val" != "x$ac_new_val"; then
1466	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469echo "$as_me:   former value:  $ac_old_val" >&2;}
1470	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471echo "$as_me:   current value: $ac_new_val" >&2;}
1472	ac_cache_corrupted=:
1473      fi;;
1474  esac
1475  # Pass precious variables to config.status.
1476  if test "$ac_new_set" = set; then
1477    case $ac_new_val in
1478    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480    *) ac_arg=$ac_var=$ac_new_val ;;
1481    esac
1482    case " $ac_configure_args " in
1483      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485    esac
1486  fi
1487done
1488if $ac_cache_corrupted; then
1489  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493   { (exit 1); exit 1; }; }
1494fi
1495
1496ac_ext=c
1497ac_cpp='$CPP $CPPFLAGS'
1498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1527
1528
1529LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1530
1531
1532
1533
1534
1535
1536
1537ac_aux_dir=
1538for ac_dir in autoconf $srcdir/autoconf; do
1539  if test -f $ac_dir/install-sh; then
1540    ac_aux_dir=$ac_dir
1541    ac_install_sh="$ac_aux_dir/install-sh -c"
1542    break
1543  elif test -f $ac_dir/install.sh; then
1544    ac_aux_dir=$ac_dir
1545    ac_install_sh="$ac_aux_dir/install.sh -c"
1546    break
1547  elif test -f $ac_dir/shtool; then
1548    ac_aux_dir=$ac_dir
1549    ac_install_sh="$ac_aux_dir/shtool install -c"
1550    break
1551  fi
1552done
1553if test -z "$ac_aux_dir"; then
1554  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1555echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
1562
1563if test ${srcdir} != "." ; then
1564  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1565    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1566echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1567   { (exit 1); exit 1; }; }
1568  fi
1569fi
1570
1571for i in `ls ${srcdir}/projects`
1572do
1573  if test -d ${srcdir}/projects/${i} ; then
1574    case ${i} in
1575      "CVS") ;;
1576      "sample")
1577
1578subdirs="$subdirs projects/sample"
1579    ;;
1580      "Stacker")
1581
1582subdirs="$subdirs projects/Stacker"
1583   ;;
1584      "llvm-test")
1585
1586subdirs="$subdirs projects/llvm-test"
1587 ;;
1588      "llvm-reopt")
1589
1590subdirs="$subdirs projects/llvm-reopt"
1591;;
1592      "llvm-gcc")
1593
1594subdirs="$subdirs projects/llvm-gcc"
1595  ;;
1596      "llvm-java")
1597
1598subdirs="$subdirs projects/llvm-java"
1599 ;;
1600      "llvm-tv")
1601
1602subdirs="$subdirs projects/llvm-tv"
1603   ;;
1604      "llvm-poolalloc")
1605
1606subdirs="$subdirs projects/llvm-poolalloc"
1607 ;;
1608      *)
1609        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1611        ;;
1612    esac
1613  fi
1614done
1615
1616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621   { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626  echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628  ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630  ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634   { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652  echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654  ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656  ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660   { (exit 1); exit 1; }; }
1661
1662fi
1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671echo "$as_me:$LINENO: checking target system type" >&5
1672echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673if test "${ac_cv_target+set}" = set; then
1674  echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676  ac_cv_target_alias=$target_alias
1677test "x$ac_cv_target_alias" = "x" &&
1678  ac_cv_target_alias=$ac_cv_host_alias
1679ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682   { (exit 1); exit 1; }; }
1683
1684fi
1685echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686echo "${ECHO_T}$ac_cv_target" >&6
1687target=$ac_cv_target
1688target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693# The aliases save the names the user supplied, while $host etc.
1694# will get canonicalized.
1695test -n "$target_alias" &&
1696  test "$program_prefix$program_suffix$program_transform_name" = \
1697    NONENONEs,x,x, &&
1698  program_prefix=${target_alias}-
1699
1700echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1701echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1702if test "${llvm_cv_os_type+set}" = set; then
1703  echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705  case $build in
1706  *-*-aix*)
1707    llvm_cv_os_type="AIX"
1708    llvm_cv_platform_type="Unix" ;;
1709  *-*-cygwin*)
1710    llvm_cv_os_type="Cygwin"
1711    llvm_cv_platform_type="Unix" ;;
1712  *-*-darwin*)
1713    llvm_cv_os_type="Darwin"
1714    llvm_cv_platform_type="Unix" ;;
1715  *-*-freebsd*)
1716    llvm_cv_os_type="FreeBSD"
1717    llvm_cv_platform_type="Unix" ;;
1718  *-*-hpux*)
1719    llvm_cv_os_type="HP-UX"
1720    llvm_cv_platform_type="Unix" ;;
1721  *-*-interix*)
1722    llvm_cv_os_type="Interix"
1723    llvm_cv_platform_type="Unix" ;;
1724  *-*-linux*)
1725    llvm_cv_os_type="Linux"
1726    llvm_cv_platform_type="Unix" ;;
1727  *-*-solaris*)
1728    llvm_cv_os_type="SunOS"
1729    llvm_cv_platform_type="Unix" ;;
1730  *-*-win32*)
1731    llvm_cv_os_type="Win32"
1732    llvm_cv_platform_type="Win32" ;;
1733  *-*-mingw*)
1734    llvm_cv_os_type="MingW"
1735    llvm_cv_platform_type="Win32" ;;
1736  *)
1737    llvm_cv_os_type="Unknown"
1738    llvm_cv_platform_type="Unknown" ;;
1739esac
1740fi
1741echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1742echo "${ECHO_T}$llvm_cv_os_type" >&6
1743
1744if test "$llvm_cv_os_type" = "Unknown" ; then
1745  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1746echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1747   { (exit 1); exit 1; }; }
1748fi
1749
1750OS=$llvm_cv_os_type
1751
1752
1753case $llvm_cv_platform_type in
1754  Unix)
1755
1756cat >>confdefs.h <<\_ACEOF
1757#define LLVM_ON_UNIX 1
1758_ACEOF
1759
1760    LLVM_ON_UNIX=1
1761
1762    LLVM_ON_WIN32=0
1763
1764    ;;
1765  Win32)
1766
1767cat >>confdefs.h <<\_ACEOF
1768#define LLVM_ON_WIN32 1
1769_ACEOF
1770
1771    LLVM_ON_UNIX=0
1772
1773    LLVM_ON_WIN32=1
1774
1775    ;;
1776esac
1777
1778echo "$as_me:$LINENO: checking target architecture" >&5
1779echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1780if test "${llvm_cv_target_arch+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  case $target in
1784  i?86-*)                 llvm_cv_target_arch="x86" ;;
1785  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1786  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1787  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1788  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1789  ia64-*)                 llvm_cv_target_arch="IA64" ;;
1790  *)                      llvm_cv_target_arch="Unknown" ;;
1791esac
1792fi
1793echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1794echo "${ECHO_T}$llvm_cv_target_arch" >&6
1795
1796if test "$llvm_cv_target_arch" = "Unknown" ; then
1797  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1798echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1799fi
1800
1801ARCH=$llvm_cv_target_arch
1802
1803
1804ac_ext=c
1805ac_cpp='$CPP $CPPFLAGS'
1806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809if test -n "$ac_tool_prefix"; then
1810  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1811set dummy ${ac_tool_prefix}gcc; ac_word=$2
1812echo "$as_me:$LINENO: checking for $ac_word" >&5
1813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814if test "${ac_cv_prog_CC+set}" = set; then
1815  echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817  if test -n "$CC"; then
1818  ac_cv_prog_CC="$CC" # Let the user override the test.
1819else
1820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821for as_dir in $PATH
1822do
1823  IFS=$as_save_IFS
1824  test -z "$as_dir" && as_dir=.
1825  for ac_exec_ext in '' $ac_executable_extensions; do
1826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829    break 2
1830  fi
1831done
1832done
1833
1834fi
1835fi
1836CC=$ac_cv_prog_CC
1837if test -n "$CC"; then
1838  echo "$as_me:$LINENO: result: $CC" >&5
1839echo "${ECHO_T}$CC" >&6
1840else
1841  echo "$as_me:$LINENO: result: no" >&5
1842echo "${ECHO_T}no" >&6
1843fi
1844
1845fi
1846if test -z "$ac_cv_prog_CC"; then
1847  ac_ct_CC=$CC
1848  # Extract the first word of "gcc", so it can be a program name with args.
1849set dummy gcc; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853  echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855  if test -n "$ac_ct_CC"; then
1856  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861  IFS=$as_save_IFS
1862  test -z "$as_dir" && as_dir=.
1863  for ac_exec_ext in '' $ac_executable_extensions; do
1864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865    ac_cv_prog_ac_ct_CC="gcc"
1866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867    break 2
1868  fi
1869done
1870done
1871
1872fi
1873fi
1874ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875if test -n "$ac_ct_CC"; then
1876  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877echo "${ECHO_T}$ac_ct_CC" >&6
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883  CC=$ac_ct_CC
1884else
1885  CC="$ac_cv_prog_CC"
1886fi
1887
1888if test -z "$CC"; then
1889  if test -n "$ac_tool_prefix"; then
1890  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1891set dummy ${ac_tool_prefix}cc; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_CC+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$CC"; then
1898  ac_cv_prog_CC="$CC" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905  for ac_exec_ext in '' $ac_executable_extensions; do
1906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907    ac_cv_prog_CC="${ac_tool_prefix}cc"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914fi
1915fi
1916CC=$ac_cv_prog_CC
1917if test -n "$CC"; then
1918  echo "$as_me:$LINENO: result: $CC" >&5
1919echo "${ECHO_T}$CC" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925fi
1926if test -z "$ac_cv_prog_CC"; then
1927  ac_ct_CC=$CC
1928  # Extract the first word of "cc", so it can be a program name with args.
1929set dummy cc; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933  echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935  if test -n "$ac_ct_CC"; then
1936  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941  IFS=$as_save_IFS
1942  test -z "$as_dir" && as_dir=.
1943  for ac_exec_ext in '' $ac_executable_extensions; do
1944  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945    ac_cv_prog_ac_ct_CC="cc"
1946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947    break 2
1948  fi
1949done
1950done
1951
1952fi
1953fi
1954ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955if test -n "$ac_ct_CC"; then
1956  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957echo "${ECHO_T}$ac_ct_CC" >&6
1958else
1959  echo "$as_me:$LINENO: result: no" >&5
1960echo "${ECHO_T}no" >&6
1961fi
1962
1963  CC=$ac_ct_CC
1964else
1965  CC="$ac_cv_prog_CC"
1966fi
1967
1968fi
1969if test -z "$CC"; then
1970  # Extract the first word of "cc", so it can be a program name with args.
1971set dummy cc; ac_word=$2
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974if test "${ac_cv_prog_CC+set}" = set; then
1975  echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977  if test -n "$CC"; then
1978  ac_cv_prog_CC="$CC" # Let the user override the test.
1979else
1980  ac_prog_rejected=no
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989       ac_prog_rejected=yes
1990       continue
1991     fi
1992    ac_cv_prog_CC="cc"
1993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994    break 2
1995  fi
1996done
1997done
1998
1999if test $ac_prog_rejected = yes; then
2000  # We found a bogon in the path, so make sure we never use it.
2001  set dummy $ac_cv_prog_CC
2002  shift
2003  if test $# != 0; then
2004    # We chose a different compiler from the bogus one.
2005    # However, it has the same basename, so the bogon will be chosen
2006    # first if we set CC to just the basename; use the full file name.
2007    shift
2008    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2009  fi
2010fi
2011fi
2012fi
2013CC=$ac_cv_prog_CC
2014if test -n "$CC"; then
2015  echo "$as_me:$LINENO: result: $CC" >&5
2016echo "${ECHO_T}$CC" >&6
2017else
2018  echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
2020fi
2021
2022fi
2023if test -z "$CC"; then
2024  if test -n "$ac_tool_prefix"; then
2025  for ac_prog in cl
2026  do
2027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031if test "${ac_cv_prog_CC+set}" = set; then
2032  echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034  if test -n "$CC"; then
2035  ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042  for ac_exec_ext in '' $ac_executable_extensions; do
2043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046    break 2
2047  fi
2048done
2049done
2050
2051fi
2052fi
2053CC=$ac_cv_prog_CC
2054if test -n "$CC"; then
2055  echo "$as_me:$LINENO: result: $CC" >&5
2056echo "${ECHO_T}$CC" >&6
2057else
2058  echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
2062    test -n "$CC" && break
2063  done
2064fi
2065if test -z "$CC"; then
2066  ac_ct_CC=$CC
2067  for ac_prog in cl
2068do
2069  # Extract the first word of "$ac_prog", so it can be a program name with args.
2070set dummy $ac_prog; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test -n "$ac_ct_CC"; then
2077  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084  for ac_exec_ext in '' $ac_executable_extensions; do
2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086    ac_cv_prog_ac_ct_CC="$ac_prog"
2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088    break 2
2089  fi
2090done
2091done
2092
2093fi
2094fi
2095ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096if test -n "$ac_ct_CC"; then
2097  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098echo "${ECHO_T}$ac_ct_CC" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104  test -n "$ac_ct_CC" && break
2105done
2106
2107  CC=$ac_ct_CC
2108fi
2109
2110fi
2111
2112
2113test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118
2119# Provide some information about the compiler.
2120echo "$as_me:$LINENO:" \
2121     "checking for C compiler version" >&5
2122ac_compiler=`set X $ac_compile; echo $2`
2123{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2124  (eval $ac_compiler --version </dev/null >&5) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }
2128{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2129  (eval $ac_compiler -v </dev/null >&5) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2134  (eval $ac_compiler -V </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138
2139cat >conftest.$ac_ext <<_ACEOF
2140/* confdefs.h.  */
2141_ACEOF
2142cat confdefs.h >>conftest.$ac_ext
2143cat >>conftest.$ac_ext <<_ACEOF
2144/* end confdefs.h.  */
2145
2146int
2147main ()
2148{
2149
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154ac_clean_files_save=$ac_clean_files
2155ac_clean_files="$ac_clean_files a.out a.exe b.out"
2156# Try to create an executable without -o first, disregard a.out.
2157# It will help us diagnose broken compilers, and finding out an intuition
2158# of exeext.
2159echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2160echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2161ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2163  (eval $ac_link_default) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; then
2167  # Find the output, starting from the most likely.  This scheme is
2168# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2169# resort.
2170
2171# Be careful to initialize this variable, since it used to be cached.
2172# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2173ac_cv_exeext=
2174# b.out is created by i960 compilers.
2175for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2176do
2177  test -f "$ac_file" || continue
2178  case $ac_file in
2179    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2180	;;
2181    conftest.$ac_ext )
2182	# This is the source file.
2183	;;
2184    [ab].out )
2185	# We found the default executable, but exeext='' is most
2186	# certainly right.
2187	break;;
2188    *.* )
2189	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190	# FIXME: I believe we export ac_cv_exeext for Libtool,
2191	# but it would be cool to find out if it's true.  Does anybody
2192	# maintain Libtool? --akim.
2193	export ac_cv_exeext
2194	break;;
2195    * )
2196	break;;
2197  esac
2198done
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: C compiler cannot create executables
2206See \`config.log' for more details." >&2;}
2207   { (exit 77); exit 77; }; }
2208fi
2209
2210ac_exeext=$ac_cv_exeext
2211echo "$as_me:$LINENO: result: $ac_file" >&5
2212echo "${ECHO_T}$ac_file" >&6
2213
2214# Check the compiler produces executables we can run.  If not, either
2215# the compiler is broken, or we cross compile.
2216echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2218# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219# If not cross compiling, check that we can run a simple program.
2220if test "$cross_compiling" != yes; then
2221  if { ac_try='./$ac_file'
2222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223  (eval $ac_try) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; }; then
2227    cross_compiling=no
2228  else
2229    if test "$cross_compiling" = maybe; then
2230	cross_compiling=yes
2231    else
2232	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233If you meant to cross compile, use \`--host'.
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot run C compiled programs.
2236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&2;}
2238   { (exit 1); exit 1; }; }
2239    fi
2240  fi
2241fi
2242echo "$as_me:$LINENO: result: yes" >&5
2243echo "${ECHO_T}yes" >&6
2244
2245rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246ac_clean_files=$ac_clean_files_save
2247# Check the compiler produces executables we can run.  If not, either
2248# the compiler is broken, or we cross compile.
2249echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2251echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252echo "${ECHO_T}$cross_compiling" >&6
2253
2254echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257  (eval $ac_link) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; then
2261  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2262# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2263# work properly (i.e., refer to `conftest.exe'), while it won't with
2264# `rm'.
2265for ac_file in conftest.exe conftest conftest.*; do
2266  test -f "$ac_file" || continue
2267  case $ac_file in
2268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2269    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270	  export ac_cv_exeext
2271	  break;;
2272    * ) break;;
2273  esac
2274done
2275else
2276  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2277See \`config.log' for more details." >&5
2278echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2279See \`config.log' for more details." >&2;}
2280   { (exit 1); exit 1; }; }
2281fi
2282
2283rm -f conftest$ac_cv_exeext
2284echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2285echo "${ECHO_T}$ac_cv_exeext" >&6
2286
2287rm -f conftest.$ac_ext
2288EXEEXT=$ac_cv_exeext
2289ac_exeext=$EXEEXT
2290echo "$as_me:$LINENO: checking for suffix of object files" >&5
2291echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2292if test "${ac_cv_objext+set}" = set; then
2293  echo $ECHO_N "(cached) $ECHO_C" >&6
2294else
2295  cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310rm -f conftest.o conftest.obj
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312  (eval $ac_compile) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; then
2316  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2317  case $ac_file in
2318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2319    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320       break;;
2321  esac
2322done
2323else
2324  echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&2;}
2331   { (exit 1); exit 1; }; }
2332fi
2333
2334rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335fi
2336echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337echo "${ECHO_T}$ac_cv_objext" >&6
2338OBJEXT=$ac_cv_objext
2339ac_objext=$OBJEXT
2340echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2342if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h.  */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h.  */
2351
2352int
2353main ()
2354{
2355#ifndef __GNUC__
2356       choke me
2357#endif
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365  (eval $ac_compile) 2>conftest.er1
2366  ac_status=$?
2367  grep -v '^ *+' conftest.er1 >conftest.err
2368  rm -f conftest.er1
2369  cat conftest.err >&5
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); } &&
2372	 { ac_try='test -z "$ac_c_werror_flag"
2373			 || test ! -s conftest.err'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; } &&
2379	 { ac_try='test -s conftest.$ac_objext'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; }; then
2385  ac_compiler_gnu=yes
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390ac_compiler_gnu=no
2391fi
2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393ac_cv_c_compiler_gnu=$ac_compiler_gnu
2394
2395fi
2396echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2397echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2398GCC=`test $ac_compiler_gnu = yes && echo yes`
2399ac_test_CFLAGS=${CFLAGS+set}
2400ac_save_CFLAGS=$CFLAGS
2401CFLAGS="-g"
2402echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2403echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2404if test "${ac_cv_prog_cc_g+set}" = set; then
2405  echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407  cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414int
2415main ()
2416{
2417
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422rm -f conftest.$ac_objext
2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424  (eval $ac_compile) 2>conftest.er1
2425  ac_status=$?
2426  grep -v '^ *+' conftest.er1 >conftest.err
2427  rm -f conftest.er1
2428  cat conftest.err >&5
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); } &&
2431	 { ac_try='test -z "$ac_c_werror_flag"
2432			 || test ! -s conftest.err'
2433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434  (eval $ac_try) 2>&5
2435  ac_status=$?
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); }; } &&
2438	 { ac_try='test -s conftest.$ac_objext'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; }; then
2444  ac_cv_prog_cc_g=yes
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449ac_cv_prog_cc_g=no
2450fi
2451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452fi
2453echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2454echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2455if test "$ac_test_CFLAGS" = set; then
2456  CFLAGS=$ac_save_CFLAGS
2457elif test $ac_cv_prog_cc_g = yes; then
2458  if test "$GCC" = yes; then
2459    CFLAGS="-g -O2"
2460  else
2461    CFLAGS="-g"
2462  fi
2463else
2464  if test "$GCC" = yes; then
2465    CFLAGS="-O2"
2466  else
2467    CFLAGS=
2468  fi
2469fi
2470echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2471echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2472if test "${ac_cv_prog_cc_stdc+set}" = set; then
2473  echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475  ac_cv_prog_cc_stdc=no
2476ac_save_CC=$CC
2477cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h.  */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h.  */
2483#include <stdarg.h>
2484#include <stdio.h>
2485#include <sys/types.h>
2486#include <sys/stat.h>
2487/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2488struct buf { int x; };
2489FILE * (*rcsopen) (struct buf *, struct stat *, int);
2490static char *e (p, i)
2491     char **p;
2492     int i;
2493{
2494  return p[i];
2495}
2496static char *f (char * (*g) (char **, int), char **p, ...)
2497{
2498  char *s;
2499  va_list v;
2500  va_start (v,p);
2501  s = g (p, va_arg (v,int));
2502  va_end (v);
2503  return s;
2504}
2505
2506/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2507   function prototypes and stuff, but not '\xHH' hex character constants.
2508   These don't provoke an error unfortunately, instead are silently treated
2509   as 'x'.  The following induces an error, until -std1 is added to get
2510   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2511   array size at least.  It's necessary to write '\x00'==0 to get something
2512   that's true only with -std1.  */
2513int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2514
2515int test (int i, double x);
2516struct s1 {int (*f) (int a);};
2517struct s2 {int (*f) (double a);};
2518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2519int argc;
2520char **argv;
2521int
2522main ()
2523{
2524return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2525  ;
2526  return 0;
2527}
2528_ACEOF
2529# Don't try gcc -ansi; that turns off useful extensions and
2530# breaks some systems' header files.
2531# AIX			-qlanglvl=ansi
2532# Ultrix and OSF/1	-std1
2533# HP-UX 10.20 and later	-Ae
2534# HP-UX older versions	-Aa -D_HPUX_SOURCE
2535# SVR4			-Xc -D__EXTENSIONS__
2536for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2537do
2538  CC="$ac_save_CC $ac_arg"
2539  rm -f conftest.$ac_objext
2540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541  (eval $ac_compile) 2>conftest.er1
2542  ac_status=$?
2543  grep -v '^ *+' conftest.er1 >conftest.err
2544  rm -f conftest.er1
2545  cat conftest.err >&5
2546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547  (exit $ac_status); } &&
2548	 { ac_try='test -z "$ac_c_werror_flag"
2549			 || test ! -s conftest.err'
2550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551  (eval $ac_try) 2>&5
2552  ac_status=$?
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); }; } &&
2555	 { ac_try='test -s conftest.$ac_objext'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; }; then
2561  ac_cv_prog_cc_stdc=$ac_arg
2562break
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567fi
2568rm -f conftest.err conftest.$ac_objext
2569done
2570rm -f conftest.$ac_ext conftest.$ac_objext
2571CC=$ac_save_CC
2572
2573fi
2574
2575case "x$ac_cv_prog_cc_stdc" in
2576  x|xno)
2577    echo "$as_me:$LINENO: result: none needed" >&5
2578echo "${ECHO_T}none needed" >&6 ;;
2579  *)
2580    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2581echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2582    CC="$CC $ac_cv_prog_cc_stdc" ;;
2583esac
2584
2585# Some people use a C++ compiler to compile C.  Since we use `exit',
2586# in C++ we need to declare it.  In case someone uses the same compiler
2587# for both compiling C and C++ we need to have the C++ compiler decide
2588# the declaration of exit, since it's the most demanding environment.
2589cat >conftest.$ac_ext <<_ACEOF
2590#ifndef __cplusplus
2591  choke me
2592#endif
2593_ACEOF
2594rm -f conftest.$ac_objext
2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596  (eval $ac_compile) 2>conftest.er1
2597  ac_status=$?
2598  grep -v '^ *+' conftest.er1 >conftest.err
2599  rm -f conftest.er1
2600  cat conftest.err >&5
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); } &&
2603	 { ac_try='test -z "$ac_c_werror_flag"
2604			 || test ! -s conftest.err'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; } &&
2610	 { ac_try='test -s conftest.$ac_objext'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616  for ac_declaration in \
2617   '' \
2618   'extern "C" void std::exit (int) throw (); using std::exit;' \
2619   'extern "C" void std::exit (int); using std::exit;' \
2620   'extern "C" void exit (int) throw ();' \
2621   'extern "C" void exit (int);' \
2622   'void exit (int);'
2623do
2624  cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h.  */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
2629/* end confdefs.h.  */
2630$ac_declaration
2631#include <stdlib.h>
2632int
2633main ()
2634{
2635exit (42);
2636  ;
2637  return 0;
2638}
2639_ACEOF
2640rm -f conftest.$ac_objext
2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642  (eval $ac_compile) 2>conftest.er1
2643  ac_status=$?
2644  grep -v '^ *+' conftest.er1 >conftest.err
2645  rm -f conftest.er1
2646  cat conftest.err >&5
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); } &&
2649	 { ac_try='test -z "$ac_c_werror_flag"
2650			 || test ! -s conftest.err'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; } &&
2656	 { ac_try='test -s conftest.$ac_objext'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; }; then
2662  :
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667continue
2668fi
2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670  cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h.  */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h.  */
2676$ac_declaration
2677int
2678main ()
2679{
2680exit (42);
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685rm -f conftest.$ac_objext
2686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687  (eval $ac_compile) 2>conftest.er1
2688  ac_status=$?
2689  grep -v '^ *+' conftest.er1 >conftest.err
2690  rm -f conftest.er1
2691  cat conftest.err >&5
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); } &&
2694	 { ac_try='test -z "$ac_c_werror_flag"
2695			 || test ! -s conftest.err'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; } &&
2701	 { ac_try='test -s conftest.$ac_objext'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; }; then
2707  break
2708else
2709  echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712fi
2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714done
2715rm -f conftest*
2716if test -n "$ac_declaration"; then
2717  echo '#ifdef __cplusplus' >>confdefs.h
2718  echo $ac_declaration      >>confdefs.h
2719  echo '#endif'             >>confdefs.h
2720fi
2721
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728ac_ext=c
2729ac_cpp='$CPP $CPPFLAGS'
2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733
2734
2735echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2736echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2737if test "${ac_cv_c_bigendian+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  # See if sys/param.h defines the BYTE_ORDER macro.
2741cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h.  */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h.  */
2747#include <sys/types.h>
2748#include <sys/param.h>
2749
2750int
2751main ()
2752{
2753#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2754 bogus endian macros
2755#endif
2756
2757  ;
2758  return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
2762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763  (eval $ac_compile) 2>conftest.er1
2764  ac_status=$?
2765  grep -v '^ *+' conftest.er1 >conftest.err
2766  rm -f conftest.er1
2767  cat conftest.err >&5
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); } &&
2770	 { ac_try='test -z "$ac_c_werror_flag"
2771			 || test ! -s conftest.err'
2772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773  (eval $ac_try) 2>&5
2774  ac_status=$?
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); }; } &&
2777	 { ac_try='test -s conftest.$ac_objext'
2778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779  (eval $ac_try) 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; }; then
2783  # It does; now see whether it defined to BIG_ENDIAN or not.
2784cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h.  */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h.  */
2790#include <sys/types.h>
2791#include <sys/param.h>
2792
2793int
2794main ()
2795{
2796#if BYTE_ORDER != BIG_ENDIAN
2797 not big endian
2798#endif
2799
2800  ;
2801  return 0;
2802}
2803_ACEOF
2804rm -f conftest.$ac_objext
2805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806  (eval $ac_compile) 2>conftest.er1
2807  ac_status=$?
2808  grep -v '^ *+' conftest.er1 >conftest.err
2809  rm -f conftest.er1
2810  cat conftest.err >&5
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); } &&
2813	 { ac_try='test -z "$ac_c_werror_flag"
2814			 || test ! -s conftest.err'
2815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816  (eval $ac_try) 2>&5
2817  ac_status=$?
2818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819  (exit $ac_status); }; } &&
2820	 { ac_try='test -s conftest.$ac_objext'
2821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822  (eval $ac_try) 2>&5
2823  ac_status=$?
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); }; }; then
2826  ac_cv_c_bigendian=yes
2827else
2828  echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831ac_cv_c_bigendian=no
2832fi
2833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834else
2835  echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838# It does not; compile a test program.
2839if test "$cross_compiling" = yes; then
2840  # try to guess the endianness by grepping values into an object file
2841  ac_cv_c_bigendian=unknown
2842  cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h.  */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h.  */
2848short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2849short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2850void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2851short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2852short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2853void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2854int
2855main ()
2856{
2857 _ascii (); _ebcdic ();
2858  ;
2859  return 0;
2860}
2861_ACEOF
2862rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864  (eval $ac_compile) 2>conftest.er1
2865  ac_status=$?
2866  grep -v '^ *+' conftest.er1 >conftest.err
2867  rm -f conftest.er1
2868  cat conftest.err >&5
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); } &&
2871	 { ac_try='test -z "$ac_c_werror_flag"
2872			 || test ! -s conftest.err'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; } &&
2878	 { ac_try='test -s conftest.$ac_objext'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; }; then
2884  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2885  ac_cv_c_bigendian=yes
2886fi
2887if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2888  if test "$ac_cv_c_bigendian" = unknown; then
2889    ac_cv_c_bigendian=no
2890  else
2891    # finding both strings is unlikely to happen, but who knows?
2892    ac_cv_c_bigendian=unknown
2893  fi
2894fi
2895else
2896  echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899fi
2900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901else
2902  cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h.  */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h.  */
2908int
2909main ()
2910{
2911  /* Are we little or big endian?  From Harbison&Steele.  */
2912  union
2913  {
2914    long l;
2915    char c[sizeof (long)];
2916  } u;
2917  u.l = 1;
2918  exit (u.c[sizeof (long) - 1] == 1);
2919}
2920_ACEOF
2921rm -f conftest$ac_exeext
2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923  (eval $ac_link) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; }; then
2932  ac_cv_c_bigendian=no
2933else
2934  echo "$as_me: program exited with status $ac_status" >&5
2935echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938( exit $ac_status )
2939ac_cv_c_bigendian=yes
2940fi
2941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2942fi
2943fi
2944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945fi
2946echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2947echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2948case $ac_cv_c_bigendian in
2949  yes)
2950    ENDIAN=big
2951 ;;
2952  no)
2953    ENDIAN=little
2954 ;;
2955  *)
2956    { { echo "$as_me:$LINENO: error: unknown endianness
2957presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2958echo "$as_me: error: unknown endianness
2959presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2960   { (exit 1); exit 1; }; } ;;
2961esac
2962
2963
2964
2965# Check whether --enable-optimized or --disable-optimized was given.
2966if test "${enable_optimized+set}" = set; then
2967  enableval="$enable_optimized"
2968
2969else
2970  enableval=no
2971fi;
2972if test ${enableval} = "no" ; then
2973  ENABLE_OPTIMIZED=
2974
2975else
2976  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2977
2978fi
2979
2980# Check whether --enable-jit or --disable-jit was given.
2981if test "${enable_jit+set}" = set; then
2982  enableval="$enable_jit"
2983
2984else
2985  enableval=default
2986fi;
2987if test ${enableval} = "no"
2988then
2989  JIT=
2990
2991else
2992  case "$llvm_cv_target_arch" in
2993    x86)     JIT=TARGET_HAS_JIT=1
2994 ;;
2995    Sparc)   JIT=TARGET_HAS_JIT=1
2996 ;;
2997    PowerPC) JIT=TARGET_HAS_JIT=1
2998 ;;
2999    x86_64)  JIT=
3000 ;;
3001    Alpha)   JIT=TARGET_HAS_JIT=1
3002 ;;
3003    IA64)    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# Check whether --enable-threads or --disable-threads was given.
3030if test "${enable_threads+set}" = set; then
3031  enableval="$enable_threads"
3032
3033else
3034  enableval=yes
3035fi;
3036case "$enableval" in
3037  yes) ENABLE_THREADS=1
3038 ;;
3039  no)  ENABLE_THREADS=0
3040 ;;
3041  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3042echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3043   { (exit 1); exit 1; }; } ;;
3044esac
3045
3046cat >>confdefs.h <<_ACEOF
3047#define ENABLE_THREADS $ENABLE_THREADS
3048_ACEOF
3049
3050
3051TARGETS_TO_BUILD=""
3052# Check whether --enable-targets or --disable-targets was given.
3053if test "${enable_targets+set}" = set; then
3054  enableval="$enable_targets"
3055
3056else
3057  enableval=all
3058fi;
3059case "$enableval" in
3060  all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3061  host-only)
3062    case "$llvm_cv_target_arch" in
3063      x86)     TARGETS_TO_BUILD="X86" ;;
3064      x86_64)  TARGETS_TO_BUILD="X86" ;;
3065      Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3066      PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3067      Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3068      IA64)    TARGETS_TO_BUILD="IA64" ;;
3069      *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3070echo "$as_me: error: Can not set target to build" >&2;}
3071   { (exit 1); exit 1; }; } ;;
3072    esac
3073    ;;
3074  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3075      case "$a_target" in
3076        x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3077        x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3078        sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3079        powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3080        alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3081        ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3082        skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3083        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3084echo "$as_me: error: Unrecognized target $a_target" >&2;}
3085   { (exit 1); exit 1; }; } ;;
3086      esac
3087  done
3088  ;;
3089esac
3090TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3091TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3092
3093
3094
3095# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3096if test "${with_llvmgccdir+set}" = set; then
3097  withval="$with_llvmgccdir"
3098
3099else
3100  withval=default
3101fi;
3102case "$withval" in
3103  default) WITH_LLVMGCCDIR=default ;;
3104  /*)      WITH_LLVMGCCDIR=$withval ;;
3105  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3106echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3107   { (exit 1); exit 1; }; } ;;
3108esac
3109
3110
3111
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3118echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3119# On Suns, sometimes $CPP names a directory.
3120if test -n "$CPP" && test -d "$CPP"; then
3121  CPP=
3122fi
3123if test -z "$CPP"; then
3124  if test "${ac_cv_prog_CPP+set}" = set; then
3125  echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127      # Double quotes because CPP needs to be expanded
3128    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3129    do
3130      ac_preproc_ok=false
3131for ac_c_preproc_warn_flag in '' yes
3132do
3133  # Use a header file that comes with gcc, so configuring glibc
3134  # with a fresh cross-compiler works.
3135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136  # <limits.h> exists even on freestanding compilers.
3137  # On the NeXT, cc -E runs the code through the compiler's parser,
3138  # not just through cpp. "Syntax error" is here to catch this case.
3139  cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h.  */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h.  */
3145#ifdef __STDC__
3146# include <limits.h>
3147#else
3148# include <assert.h>
3149#endif
3150		     Syntax error
3151_ACEOF
3152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3154  ac_status=$?
3155  grep -v '^ *+' conftest.er1 >conftest.err
3156  rm -f conftest.er1
3157  cat conftest.err >&5
3158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); } >/dev/null; then
3160  if test -s conftest.err; then
3161    ac_cpp_err=$ac_c_preproc_warn_flag
3162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3163  else
3164    ac_cpp_err=
3165  fi
3166else
3167  ac_cpp_err=yes
3168fi
3169if test -z "$ac_cpp_err"; then
3170  :
3171else
3172  echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175  # Broken: fails on valid input.
3176continue
3177fi
3178rm -f conftest.err conftest.$ac_ext
3179
3180  # OK, works on sane cases.  Now check whether non-existent headers
3181  # can be detected and how.
3182  cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188#include <ac_nonexistent.h>
3189_ACEOF
3190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192  ac_status=$?
3193  grep -v '^ *+' conftest.er1 >conftest.err
3194  rm -f conftest.er1
3195  cat conftest.err >&5
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); } >/dev/null; then
3198  if test -s conftest.err; then
3199    ac_cpp_err=$ac_c_preproc_warn_flag
3200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3201  else
3202    ac_cpp_err=
3203  fi
3204else
3205  ac_cpp_err=yes
3206fi
3207if test -z "$ac_cpp_err"; then
3208  # Broken: success on invalid input.
3209continue
3210else
3211  echo "$as_me: failed program was:" >&5
3212sed 's/^/| /' conftest.$ac_ext >&5
3213
3214  # Passes both tests.
3215ac_preproc_ok=:
3216break
3217fi
3218rm -f conftest.err conftest.$ac_ext
3219
3220done
3221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222rm -f conftest.err conftest.$ac_ext
3223if $ac_preproc_ok; then
3224  break
3225fi
3226
3227    done
3228    ac_cv_prog_CPP=$CPP
3229
3230fi
3231  CPP=$ac_cv_prog_CPP
3232else
3233  ac_cv_prog_CPP=$CPP
3234fi
3235echo "$as_me:$LINENO: result: $CPP" >&5
3236echo "${ECHO_T}$CPP" >&6
3237ac_preproc_ok=false
3238for ac_c_preproc_warn_flag in '' yes
3239do
3240  # Use a header file that comes with gcc, so configuring glibc
3241  # with a fresh cross-compiler works.
3242  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243  # <limits.h> exists even on freestanding compilers.
3244  # On the NeXT, cc -E runs the code through the compiler's parser,
3245  # not just through cpp. "Syntax error" is here to catch this case.
3246  cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h.  */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h.  */
3252#ifdef __STDC__
3253# include <limits.h>
3254#else
3255# include <assert.h>
3256#endif
3257		     Syntax error
3258_ACEOF
3259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3261  ac_status=$?
3262  grep -v '^ *+' conftest.er1 >conftest.err
3263  rm -f conftest.er1
3264  cat conftest.err >&5
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); } >/dev/null; then
3267  if test -s conftest.err; then
3268    ac_cpp_err=$ac_c_preproc_warn_flag
3269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3270  else
3271    ac_cpp_err=
3272  fi
3273else
3274  ac_cpp_err=yes
3275fi
3276if test -z "$ac_cpp_err"; then
3277  :
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282  # Broken: fails on valid input.
3283continue
3284fi
3285rm -f conftest.err conftest.$ac_ext
3286
3287  # OK, works on sane cases.  Now check whether non-existent headers
3288  # can be detected and how.
3289  cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h.  */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h.  */
3295#include <ac_nonexistent.h>
3296_ACEOF
3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } >/dev/null; then
3305  if test -s conftest.err; then
3306    ac_cpp_err=$ac_c_preproc_warn_flag
3307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308  else
3309    ac_cpp_err=
3310  fi
3311else
3312  ac_cpp_err=yes
3313fi
3314if test -z "$ac_cpp_err"; then
3315  # Broken: success on invalid input.
3316continue
3317else
3318  echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321  # Passes both tests.
3322ac_preproc_ok=:
3323break
3324fi
3325rm -f conftest.err conftest.$ac_ext
3326
3327done
3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329rm -f conftest.err conftest.$ac_ext
3330if $ac_preproc_ok; then
3331  :
3332else
3333  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3334See \`config.log' for more details." >&5
3335echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3336See \`config.log' for more details." >&2;}
3337   { (exit 1); exit 1; }; }
3338fi
3339
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346ac_ext=c
3347ac_cpp='$CPP $CPPFLAGS'
3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351if test -n "$ac_tool_prefix"; then
3352  for ac_prog in gcc
3353  do
3354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3356echo "$as_me:$LINENO: checking for $ac_word" >&5
3357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358if test "${ac_cv_prog_CC+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  if test -n "$CC"; then
3362  ac_cv_prog_CC="$CC" # Let the user override the test.
3363else
3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369  for ac_exec_ext in '' $ac_executable_extensions; do
3370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373    break 2
3374  fi
3375done
3376done
3377
3378fi
3379fi
3380CC=$ac_cv_prog_CC
3381if test -n "$CC"; then
3382  echo "$as_me:$LINENO: result: $CC" >&5
3383echo "${ECHO_T}$CC" >&6
3384else
3385  echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387fi
3388
3389    test -n "$CC" && break
3390  done
3391fi
3392if test -z "$CC"; then
3393  ac_ct_CC=$CC
3394  for ac_prog in gcc
3395do
3396  # Extract the first word of "$ac_prog", so it can be a program name with args.
3397set dummy $ac_prog; ac_word=$2
3398echo "$as_me:$LINENO: checking for $ac_word" >&5
3399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  if test -n "$ac_ct_CC"; then
3404  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411  for ac_exec_ext in '' $ac_executable_extensions; do
3412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413    ac_cv_prog_ac_ct_CC="$ac_prog"
3414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415    break 2
3416  fi
3417done
3418done
3419
3420fi
3421fi
3422ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423if test -n "$ac_ct_CC"; then
3424  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3425echo "${ECHO_T}$ac_ct_CC" >&6
3426else
3427  echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429fi
3430
3431  test -n "$ac_ct_CC" && break
3432done
3433
3434  CC=$ac_ct_CC
3435fi
3436
3437
3438test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3439See \`config.log' for more details." >&5
3440echo "$as_me: error: no acceptable C compiler found in \$PATH
3441See \`config.log' for more details." >&2;}
3442   { (exit 1); exit 1; }; }
3443
3444# Provide some information about the compiler.
3445echo "$as_me:$LINENO:" \
3446     "checking for C compiler version" >&5
3447ac_compiler=`set X $ac_compile; echo $2`
3448{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3449  (eval $ac_compiler --version </dev/null >&5) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }
3453{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3454  (eval $ac_compiler -v </dev/null >&5) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }
3458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3459  (eval $ac_compiler -V </dev/null >&5) 2>&5
3460  ac_status=$?
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); }
3463
3464echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3465echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3466if test "${ac_cv_c_compiler_gnu+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469  cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h.  */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479#ifndef __GNUC__
3480       choke me
3481#endif
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489  (eval $ac_compile) 2>conftest.er1
3490  ac_status=$?
3491  grep -v '^ *+' conftest.er1 >conftest.err
3492  rm -f conftest.er1
3493  cat conftest.err >&5
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); } &&
3496	 { ac_try='test -z "$ac_c_werror_flag"
3497			 || test ! -s conftest.err'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; } &&
3503	 { ac_try='test -s conftest.$ac_objext'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; }; then
3509  ac_compiler_gnu=yes
3510else
3511  echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514ac_compiler_gnu=no
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519fi
3520echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3521echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3522GCC=`test $ac_compiler_gnu = yes && echo yes`
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
3525CFLAGS="-g"
3526echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3528if test "${ac_cv_prog_cc_g+set}" = set; then
3529  echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531  cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555	 { ac_try='test -z "$ac_c_werror_flag"
3556			 || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562	 { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  ac_cv_prog_cc_g=yes
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573ac_cv_prog_cc_g=no
3574fi
3575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3578echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3579if test "$ac_test_CFLAGS" = set; then
3580  CFLAGS=$ac_save_CFLAGS
3581elif test $ac_cv_prog_cc_g = yes; then
3582  if test "$GCC" = yes; then
3583    CFLAGS="-g -O2"
3584  else
3585    CFLAGS="-g"
3586  fi
3587else
3588  if test "$GCC" = yes; then
3589    CFLAGS="-O2"
3590  else
3591    CFLAGS=
3592  fi
3593fi
3594echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3595echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3596if test "${ac_cv_prog_cc_stdc+set}" = set; then
3597  echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599  ac_cv_prog_cc_stdc=no
3600ac_save_CC=$CC
3601cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607#include <stdarg.h>
3608#include <stdio.h>
3609#include <sys/types.h>
3610#include <sys/stat.h>
3611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3612struct buf { int x; };
3613FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614static char *e (p, i)
3615     char **p;
3616     int i;
3617{
3618  return p[i];
3619}
3620static char *f (char * (*g) (char **, int), char **p, ...)
3621{
3622  char *s;
3623  va_list v;
3624  va_start (v,p);
3625  s = g (p, va_arg (v,int));
3626  va_end (v);
3627  return s;
3628}
3629
3630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3631   function prototypes and stuff, but not '\xHH' hex character constants.
3632   These don't provoke an error unfortunately, instead are silently treated
3633   as 'x'.  The following induces an error, until -std1 is added to get
3634   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3635   array size at least.  It's necessary to write '\x00'==0 to get something
3636   that's true only with -std1.  */
3637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638
3639int test (int i, double x);
3640struct s1 {int (*f) (int a);};
3641struct s2 {int (*f) (double a);};
3642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643int argc;
3644char **argv;
3645int
3646main ()
3647{
3648return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653# Don't try gcc -ansi; that turns off useful extensions and
3654# breaks some systems' header files.
3655# AIX			-qlanglvl=ansi
3656# Ultrix and OSF/1	-std1
3657# HP-UX 10.20 and later	-Ae
3658# HP-UX older versions	-Aa -D_HPUX_SOURCE
3659# SVR4			-Xc -D__EXTENSIONS__
3660for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661do
3662  CC="$ac_save_CC $ac_arg"
3663  rm -f conftest.$ac_objext
3664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665  (eval $ac_compile) 2>conftest.er1
3666  ac_status=$?
3667  grep -v '^ *+' conftest.er1 >conftest.err
3668  rm -f conftest.er1
3669  cat conftest.err >&5
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); } &&
3672	 { ac_try='test -z "$ac_c_werror_flag"
3673			 || test ! -s conftest.err'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; } &&
3679	 { ac_try='test -s conftest.$ac_objext'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; }; then
3685  ac_cv_prog_cc_stdc=$ac_arg
3686break
3687else
3688  echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691fi
3692rm -f conftest.err conftest.$ac_objext
3693done
3694rm -f conftest.$ac_ext conftest.$ac_objext
3695CC=$ac_save_CC
3696
3697fi
3698
3699case "x$ac_cv_prog_cc_stdc" in
3700  x|xno)
3701    echo "$as_me:$LINENO: result: none needed" >&5
3702echo "${ECHO_T}none needed" >&6 ;;
3703  *)
3704    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3705echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3706    CC="$CC $ac_cv_prog_cc_stdc" ;;
3707esac
3708
3709# Some people use a C++ compiler to compile C.  Since we use `exit',
3710# in C++ we need to declare it.  In case someone uses the same compiler
3711# for both compiling C and C++ we need to have the C++ compiler decide
3712# the declaration of exit, since it's the most demanding environment.
3713cat >conftest.$ac_ext <<_ACEOF
3714#ifndef __cplusplus
3715  choke me
3716#endif
3717_ACEOF
3718rm -f conftest.$ac_objext
3719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720  (eval $ac_compile) 2>conftest.er1
3721  ac_status=$?
3722  grep -v '^ *+' conftest.er1 >conftest.err
3723  rm -f conftest.er1
3724  cat conftest.err >&5
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); } &&
3727	 { ac_try='test -z "$ac_c_werror_flag"
3728			 || test ! -s conftest.err'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; } &&
3734	 { ac_try='test -s conftest.$ac_objext'
3735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736  (eval $ac_try) 2>&5
3737  ac_status=$?
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); }; }; then
3740  for ac_declaration in \
3741   '' \
3742   'extern "C" void std::exit (int) throw (); using std::exit;' \
3743   'extern "C" void std::exit (int); using std::exit;' \
3744   'extern "C" void exit (int) throw ();' \
3745   'extern "C" void exit (int);' \
3746   'void exit (int);'
3747do
3748  cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h.  */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h.  */
3754$ac_declaration
3755#include <stdlib.h>
3756int
3757main ()
3758{
3759exit (42);
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764rm -f conftest.$ac_objext
3765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766  (eval $ac_compile) 2>conftest.er1
3767  ac_status=$?
3768  grep -v '^ *+' conftest.er1 >conftest.err
3769  rm -f conftest.er1
3770  cat conftest.err >&5
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); } &&
3773	 { ac_try='test -z "$ac_c_werror_flag"
3774			 || test ! -s conftest.err'
3775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776  (eval $ac_try) 2>&5
3777  ac_status=$?
3778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779  (exit $ac_status); }; } &&
3780	 { ac_try='test -s conftest.$ac_objext'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; }; then
3786  :
3787else
3788  echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791continue
3792fi
3793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3794  cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h.  */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h.  */
3800$ac_declaration
3801int
3802main ()
3803{
3804exit (42);
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809rm -f conftest.$ac_objext
3810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811  (eval $ac_compile) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } &&
3818	 { ac_try='test -z "$ac_c_werror_flag"
3819			 || test ! -s conftest.err'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; } &&
3825	 { ac_try='test -s conftest.$ac_objext'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; }; then
3831  break
3832else
3833  echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836fi
3837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838done
3839rm -f conftest*
3840if test -n "$ac_declaration"; then
3841  echo '#ifdef __cplusplus' >>confdefs.h
3842  echo $ac_declaration      >>confdefs.h
3843  echo '#endif'             >>confdefs.h
3844fi
3845
3846else
3847  echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850fi
3851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852ac_ext=c
3853ac_cpp='$CPP $CPPFLAGS'
3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858ac_ext=cc
3859ac_cpp='$CXXCPP $CPPFLAGS'
3860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863if test -n "$ac_tool_prefix"; then
3864  for ac_prog in $CCC g++
3865  do
3866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868echo "$as_me:$LINENO: checking for $ac_word" >&5
3869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870if test "${ac_cv_prog_CXX+set}" = set; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  if test -n "$CXX"; then
3874  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879  IFS=$as_save_IFS
3880  test -z "$as_dir" && as_dir=.
3881  for ac_exec_ext in '' $ac_executable_extensions; do
3882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885    break 2
3886  fi
3887done
3888done
3889
3890fi
3891fi
3892CXX=$ac_cv_prog_CXX
3893if test -n "$CXX"; then
3894  echo "$as_me:$LINENO: result: $CXX" >&5
3895echo "${ECHO_T}$CXX" >&6
3896else
3897  echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899fi
3900
3901    test -n "$CXX" && break
3902  done
3903fi
3904if test -z "$CXX"; then
3905  ac_ct_CXX=$CXX
3906  for ac_prog in $CCC g++
3907do
3908  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909set dummy $ac_prog; ac_word=$2
3910echo "$as_me:$LINENO: checking for $ac_word" >&5
3911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  if test -n "$ac_ct_CXX"; then
3916  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923  for ac_exec_ext in '' $ac_executable_extensions; do
3924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925    ac_cv_prog_ac_ct_CXX="$ac_prog"
3926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929done
3930done
3931
3932fi
3933fi
3934ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3935if test -n "$ac_ct_CXX"; then
3936  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3937echo "${ECHO_T}$ac_ct_CXX" >&6
3938else
3939  echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
3941fi
3942
3943  test -n "$ac_ct_CXX" && break
3944done
3945test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3946
3947  CXX=$ac_ct_CXX
3948fi
3949
3950
3951# Provide some information about the compiler.
3952echo "$as_me:$LINENO:" \
3953     "checking for C++ compiler version" >&5
3954ac_compiler=`set X $ac_compile; echo $2`
3955{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3956  (eval $ac_compiler --version </dev/null >&5) 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); }
3960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3961  (eval $ac_compiler -v </dev/null >&5) 2>&5
3962  ac_status=$?
3963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964  (exit $ac_status); }
3965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3966  (eval $ac_compiler -V </dev/null >&5) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }
3970
3971echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3972echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3973if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3974  echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976  cat >conftest.$ac_ext <<_ACEOF
3977/* confdefs.h.  */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h.  */
3982
3983int
3984main ()
3985{
3986#ifndef __GNUC__
3987       choke me
3988#endif
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994rm -f conftest.$ac_objext
3995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996  (eval $ac_compile) 2>conftest.er1
3997  ac_status=$?
3998  grep -v '^ *+' conftest.er1 >conftest.err
3999  rm -f conftest.er1
4000  cat conftest.err >&5
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); } &&
4003	 { ac_try='test -z "$ac_cxx_werror_flag"
4004			 || test ! -s conftest.err'
4005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006  (eval $ac_try) 2>&5
4007  ac_status=$?
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); }; } &&
4010	 { ac_try='test -s conftest.$ac_objext'
4011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012  (eval $ac_try) 2>&5
4013  ac_status=$?
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); }; }; then
4016  ac_compiler_gnu=yes
4017else
4018  echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021ac_compiler_gnu=no
4022fi
4023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4024ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4025
4026fi
4027echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4028echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4029GXX=`test $ac_compiler_gnu = yes && echo yes`
4030ac_test_CXXFLAGS=${CXXFLAGS+set}
4031ac_save_CXXFLAGS=$CXXFLAGS
4032CXXFLAGS="-g"
4033echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4034echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4035if test "${ac_cv_prog_cxx_g+set}" = set; then
4036  echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038  cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h.  */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055  (eval $ac_compile) 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } &&
4062	 { ac_try='test -z "$ac_cxx_werror_flag"
4063			 || test ! -s conftest.err'
4064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065  (eval $ac_try) 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); }; } &&
4069	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4075  ac_cv_prog_cxx_g=yes
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080ac_cv_prog_cxx_g=no
4081fi
4082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4085echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4086if test "$ac_test_CXXFLAGS" = set; then
4087  CXXFLAGS=$ac_save_CXXFLAGS
4088elif test $ac_cv_prog_cxx_g = yes; then
4089  if test "$GXX" = yes; then
4090    CXXFLAGS="-g -O2"
4091  else
4092    CXXFLAGS="-g"
4093  fi
4094else
4095  if test "$GXX" = yes; then
4096    CXXFLAGS="-O2"
4097  else
4098    CXXFLAGS=
4099  fi
4100fi
4101for ac_declaration in \
4102   '' \
4103   'extern "C" void std::exit (int) throw (); using std::exit;' \
4104   'extern "C" void std::exit (int); using std::exit;' \
4105   'extern "C" void exit (int) throw ();' \
4106   'extern "C" void exit (int);' \
4107   'void exit (int);'
4108do
4109  cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115$ac_declaration
4116#include <stdlib.h>
4117int
4118main ()
4119{
4120exit (42);
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125rm -f conftest.$ac_objext
4126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127  (eval $ac_compile) 2>conftest.er1
4128  ac_status=$?
4129  grep -v '^ *+' conftest.er1 >conftest.err
4130  rm -f conftest.er1
4131  cat conftest.err >&5
4132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133  (exit $ac_status); } &&
4134	 { ac_try='test -z "$ac_cxx_werror_flag"
4135			 || test ! -s conftest.err'
4136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137  (eval $ac_try) 2>&5
4138  ac_status=$?
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); }; } &&
4141	 { ac_try='test -s conftest.$ac_objext'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; }; then
4147  :
4148else
4149  echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152continue
4153fi
4154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155  cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h.  */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h.  */
4161$ac_declaration
4162int
4163main ()
4164{
4165exit (42);
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext
4171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172  (eval $ac_compile) 2>conftest.er1
4173  ac_status=$?
4174  grep -v '^ *+' conftest.er1 >conftest.err
4175  rm -f conftest.er1
4176  cat conftest.err >&5
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); } &&
4179	 { ac_try='test -z "$ac_cxx_werror_flag"
4180			 || test ! -s conftest.err'
4181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182  (eval $ac_try) 2>&5
4183  ac_status=$?
4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }; } &&
4186	 { ac_try='test -s conftest.$ac_objext'
4187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188  (eval $ac_try) 2>&5
4189  ac_status=$?
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); }; }; then
4192  break
4193else
4194  echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197fi
4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199done
4200rm -f conftest*
4201if test -n "$ac_declaration"; then
4202  echo '#ifdef __cplusplus' >>confdefs.h
4203  echo $ac_declaration      >>confdefs.h
4204  echo '#endif'             >>confdefs.h
4205fi
4206
4207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213echo "$as_me:$LINENO: checking " >&5
4214echo $ECHO_N "checking ... $ECHO_C" >&6
4215if test "${ac_cv_has_flex+set}" = set; then
4216  echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218  for ac_prog in flex lex
4219do
4220  # Extract the first word of "$ac_prog", so it can be a program name with args.
4221set dummy $ac_prog; ac_word=$2
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224if test "${ac_cv_prog_LEX+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  if test -n "$LEX"; then
4228  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235  for ac_exec_ext in '' $ac_executable_extensions; do
4236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237    ac_cv_prog_LEX="$ac_prog"
4238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242done
4243
4244fi
4245fi
4246LEX=$ac_cv_prog_LEX
4247if test -n "$LEX"; then
4248  echo "$as_me:$LINENO: result: $LEX" >&5
4249echo "${ECHO_T}$LEX" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255  test -n "$LEX" && break
4256done
4257test -n "$LEX" || LEX=":"
4258
4259if test -z "$LEXLIB"
4260then
4261  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4262echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4263if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  ac_check_lib_save_LIBS=$LIBS
4267LIBS="-lfl  $LIBS"
4268cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h.  */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h.  */
4274
4275/* Override any gcc2 internal prototype to avoid an error.  */
4276#ifdef __cplusplus
4277extern "C"
4278#endif
4279/* We use char because int might match the return type of a gcc2
4280   builtin and then its argument prototype would still apply.  */
4281char yywrap ();
4282int
4283main ()
4284{
4285yywrap ();
4286  ;
4287  return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292  (eval $ac_link) 2>conftest.er1
4293  ac_status=$?
4294  grep -v '^ *+' conftest.er1 >conftest.err
4295  rm -f conftest.er1
4296  cat conftest.err >&5
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } &&
4299	 { ac_try='test -z "$ac_c_werror_flag"
4300			 || test ! -s conftest.err'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; } &&
4306	 { ac_try='test -s conftest$ac_exeext'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; }; then
4312  ac_cv_lib_fl_yywrap=yes
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317ac_cv_lib_fl_yywrap=no
4318fi
4319rm -f conftest.err conftest.$ac_objext \
4320      conftest$ac_exeext conftest.$ac_ext
4321LIBS=$ac_check_lib_save_LIBS
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4324echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4325if test $ac_cv_lib_fl_yywrap = yes; then
4326  LEXLIB="-lfl"
4327else
4328  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4329echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4330if test "${ac_cv_lib_l_yywrap+set}" = set; then
4331  echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333  ac_check_lib_save_LIBS=$LIBS
4334LIBS="-ll  $LIBS"
4335cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h.  */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h.  */
4341
4342/* Override any gcc2 internal prototype to avoid an error.  */
4343#ifdef __cplusplus
4344extern "C"
4345#endif
4346/* We use char because int might match the return type of a gcc2
4347   builtin and then its argument prototype would still apply.  */
4348char yywrap ();
4349int
4350main ()
4351{
4352yywrap ();
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext conftest$ac_exeext
4358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359  (eval $ac_link) 2>conftest.er1
4360  ac_status=$?
4361  grep -v '^ *+' conftest.er1 >conftest.err
4362  rm -f conftest.er1
4363  cat conftest.err >&5
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); } &&
4366	 { ac_try='test -z "$ac_c_werror_flag"
4367			 || test ! -s conftest.err'
4368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369  (eval $ac_try) 2>&5
4370  ac_status=$?
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); }; } &&
4373	 { ac_try='test -s conftest$ac_exeext'
4374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375  (eval $ac_try) 2>&5
4376  ac_status=$?
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); }; }; then
4379  ac_cv_lib_l_yywrap=yes
4380else
4381  echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384ac_cv_lib_l_yywrap=no
4385fi
4386rm -f conftest.err conftest.$ac_objext \
4387      conftest$ac_exeext conftest.$ac_ext
4388LIBS=$ac_check_lib_save_LIBS
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4391echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4392if test $ac_cv_lib_l_yywrap = yes; then
4393  LEXLIB="-ll"
4394fi
4395
4396fi
4397
4398fi
4399
4400if test "x$LEX" != "x:"; then
4401  echo "$as_me:$LINENO: checking lex output file root" >&5
4402echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4403if test "${ac_cv_prog_lex_root+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  # The minimal lex program is just a single line: %%.  But some broken lexes
4407# (Solaris, I think it was) want two %% lines, so accommodate them.
4408cat >conftest.l <<_ACEOF
4409%%
4410%%
4411_ACEOF
4412{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4413  (eval $LEX conftest.l) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }
4417if test -f lex.yy.c; then
4418  ac_cv_prog_lex_root=lex.yy
4419elif test -f lexyy.c; then
4420  ac_cv_prog_lex_root=lexyy
4421else
4422  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4423echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4424   { (exit 1); exit 1; }; }
4425fi
4426fi
4427echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4428echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4429rm -f conftest.l
4430LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4431
4432echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4433echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4434if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  # POSIX says lex can declare yytext either as a pointer or an array; the
4438# default is implementation-dependent. Figure out which it is, since
4439# not all implementations provide the %pointer and %array declarations.
4440ac_cv_prog_lex_yytext_pointer=no
4441echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4442ac_save_LIBS=$LIBS
4443LIBS="$LIBS $LEXLIB"
4444cat >conftest.$ac_ext <<_ACEOF
4445`cat $LEX_OUTPUT_ROOT.c`
4446_ACEOF
4447rm -f conftest.$ac_objext conftest$ac_exeext
4448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449  (eval $ac_link) 2>conftest.er1
4450  ac_status=$?
4451  grep -v '^ *+' conftest.er1 >conftest.err
4452  rm -f conftest.er1
4453  cat conftest.err >&5
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); } &&
4456	 { ac_try='test -z "$ac_c_werror_flag"
4457			 || test ! -s conftest.err'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; } &&
4463	 { ac_try='test -s conftest$ac_exeext'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; }; then
4469  ac_cv_prog_lex_yytext_pointer=yes
4470else
4471  echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474fi
4475rm -f conftest.err conftest.$ac_objext \
4476      conftest$ac_exeext conftest.$ac_ext
4477LIBS=$ac_save_LIBS
4478rm -f "${LEX_OUTPUT_ROOT}.c"
4479
4480fi
4481echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4482echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4483if test $ac_cv_prog_lex_yytext_pointer = yes; then
4484
4485cat >>confdefs.h <<\_ACEOF
4486#define YYTEXT_POINTER 1
4487_ACEOF
4488
4489fi
4490
4491fi
4492
4493fi
4494echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4495echo "${ECHO_T}$ac_cv_has_flex" >&6
4496if test "$LEX" != "flex"; then
4497  { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4498echo "$as_me: error: flex not found but required" >&2;}
4499   { (exit 1); exit 1; }; }
4500else
4501  FLEX=flex
4502
4503fi
4504
4505echo "$as_me:$LINENO: checking " >&5
4506echo $ECHO_N "checking ... $ECHO_C" >&6
4507if test "${llvm_cv_has_bison+set}" = set; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  for ac_prog in 'bison -y' byacc
4511do
4512  # Extract the first word of "$ac_prog", so it can be a program name with args.
4513set dummy $ac_prog; ac_word=$2
4514echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516if test "${ac_cv_prog_YACC+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  if test -n "$YACC"; then
4520  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527  for ac_exec_ext in '' $ac_executable_extensions; do
4528  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_YACC="$ac_prog"
4530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534done
4535
4536fi
4537fi
4538YACC=$ac_cv_prog_YACC
4539if test -n "$YACC"; then
4540  echo "$as_me:$LINENO: result: $YACC" >&5
4541echo "${ECHO_T}$YACC" >&6
4542else
4543  echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
4545fi
4546
4547  test -n "$YACC" && break
4548done
4549test -n "$YACC" || YACC="yacc"
4550
4551fi
4552echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4553echo "${ECHO_T}$llvm_cv_has_bison" >&6
4554if test "$YACC" != "bison -y"; then
4555  { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4556echo "$as_me: error: bison not found but required" >&2;}
4557   { (exit 1); exit 1; }; }
4558else
4559  BISON=bison
4560
4561fi
4562
4563echo "$as_me:$LINENO: checking for GNU make" >&5
4564echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4565if test "${llvm_cv_gnu_make_command+set}" = set; then
4566  echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568  llvm_cv_gnu_make_command=''
4569 for a in "$MAKE" make gmake gnumake ; do
4570  if test -z "$a" ; then continue ; fi ;
4571  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4572  then
4573   llvm_cv_gnu_make_command=$a ;
4574   break;
4575  fi
4576 done
4577fi
4578echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4579echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4580 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4581   ifGNUmake='' ;
4582 else
4583   ifGNUmake='#' ;
4584   echo "$as_me:$LINENO: result: \"Not found\"" >&5
4585echo "${ECHO_T}\"Not found\"" >&6;
4586 fi
4587
4588
4589echo "$as_me:$LINENO: checking whether ln -s works" >&5
4590echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4591LN_S=$as_ln_s
4592if test "$LN_S" = "ln -s"; then
4593  echo "$as_me:$LINENO: result: yes" >&5
4594echo "${ECHO_T}yes" >&6
4595else
4596  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4597echo "${ECHO_T}no, using $LN_S" >&6
4598fi
4599
4600# Extract the first word of "cmp", so it can be a program name with args.
4601set dummy cmp; ac_word=$2
4602echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604if test "${ac_cv_path_CMP+set}" = set; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  case $CMP in
4608  [\\/]* | ?:[\\/]*)
4609  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4610  ;;
4611  *)
4612  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615  IFS=$as_save_IFS
4616  test -z "$as_dir" && as_dir=.
4617  for ac_exec_ext in '' $ac_executable_extensions; do
4618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621    break 2
4622  fi
4623done
4624done
4625
4626  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4627  ;;
4628esac
4629fi
4630CMP=$ac_cv_path_CMP
4631
4632if test -n "$CMP"; then
4633  echo "$as_me:$LINENO: result: $CMP" >&5
4634echo "${ECHO_T}$CMP" >&6
4635else
4636  echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638fi
4639
4640# Extract the first word of "cp", so it can be a program name with args.
4641set dummy cp; ac_word=$2
4642echo "$as_me:$LINENO: checking for $ac_word" >&5
4643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644if test "${ac_cv_path_CP+set}" = set; then
4645  echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647  case $CP in
4648  [\\/]* | ?:[\\/]*)
4649  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4650  ;;
4651  *)
4652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655  IFS=$as_save_IFS
4656  test -z "$as_dir" && as_dir=.
4657  for ac_exec_ext in '' $ac_executable_extensions; do
4658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4660    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661    break 2
4662  fi
4663done
4664done
4665
4666  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4667  ;;
4668esac
4669fi
4670CP=$ac_cv_path_CP
4671
4672if test -n "$CP"; then
4673  echo "$as_me:$LINENO: result: $CP" >&5
4674echo "${ECHO_T}$CP" >&6
4675else
4676  echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678fi
4679
4680# Extract the first word of "date", so it can be a program name with args.
4681set dummy date; ac_word=$2
4682echo "$as_me:$LINENO: checking for $ac_word" >&5
4683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684if test "${ac_cv_path_DATE+set}" = set; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686else
4687  case $DATE in
4688  [\\/]* | ?:[\\/]*)
4689  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4690  ;;
4691  *)
4692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695  IFS=$as_save_IFS
4696  test -z "$as_dir" && as_dir=.
4697  for ac_exec_ext in '' $ac_executable_extensions; do
4698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704done
4705
4706  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4707  ;;
4708esac
4709fi
4710DATE=$ac_cv_path_DATE
4711
4712if test -n "$DATE"; then
4713  echo "$as_me:$LINENO: result: $DATE" >&5
4714echo "${ECHO_T}$DATE" >&6
4715else
4716  echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718fi
4719
4720# Extract the first word of "find", so it can be a program name with args.
4721set dummy find; ac_word=$2
4722echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724if test "${ac_cv_path_FIND+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  case $FIND in
4728  [\\/]* | ?:[\\/]*)
4729  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4730  ;;
4731  *)
4732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735  IFS=$as_save_IFS
4736  test -z "$as_dir" && as_dir=.
4737  for ac_exec_ext in '' $ac_executable_extensions; do
4738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741    break 2
4742  fi
4743done
4744done
4745
4746  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4747  ;;
4748esac
4749fi
4750FIND=$ac_cv_path_FIND
4751
4752if test -n "$FIND"; then
4753  echo "$as_me:$LINENO: result: $FIND" >&5
4754echo "${ECHO_T}$FIND" >&6
4755else
4756  echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6
4758fi
4759
4760# Extract the first word of "grep", so it can be a program name with args.
4761set dummy grep; ac_word=$2
4762echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764if test "${ac_cv_path_GREP+set}" = set; then
4765  echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767  case $GREP in
4768  [\\/]* | ?:[\\/]*)
4769  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4770  ;;
4771  *)
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777  for ac_exec_ext in '' $ac_executable_extensions; do
4778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784done
4785
4786  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4787  ;;
4788esac
4789fi
4790GREP=$ac_cv_path_GREP
4791
4792if test -n "$GREP"; then
4793  echo "$as_me:$LINENO: result: $GREP" >&5
4794echo "${ECHO_T}$GREP" >&6
4795else
4796  echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798fi
4799
4800# Extract the first word of "mkdir", so it can be a program name with args.
4801set dummy mkdir; ac_word=$2
4802echo "$as_me:$LINENO: checking for $ac_word" >&5
4803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804if test "${ac_cv_path_MKDIR+set}" = set; then
4805  echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807  case $MKDIR in
4808  [\\/]* | ?:[\\/]*)
4809  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4810  ;;
4811  *)
4812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817  for ac_exec_ext in '' $ac_executable_extensions; do
4818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824done
4825
4826  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4827  ;;
4828esac
4829fi
4830MKDIR=$ac_cv_path_MKDIR
4831
4832if test -n "$MKDIR"; then
4833  echo "$as_me:$LINENO: result: $MKDIR" >&5
4834echo "${ECHO_T}$MKDIR" >&6
4835else
4836  echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838fi
4839
4840# Extract the first word of "mv", so it can be a program name with args.
4841set dummy mv; ac_word=$2
4842echo "$as_me:$LINENO: checking for $ac_word" >&5
4843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844if test "${ac_cv_path_MV+set}" = set; then
4845  echo $ECHO_N "(cached) $ECHO_C" >&6
4846else
4847  case $MV in
4848  [\\/]* | ?:[\\/]*)
4849  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4850  ;;
4851  *)
4852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857  for ac_exec_ext in '' $ac_executable_extensions; do
4858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861    break 2
4862  fi
4863done
4864done
4865
4866  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4867  ;;
4868esac
4869fi
4870MV=$ac_cv_path_MV
4871
4872if test -n "$MV"; then
4873  echo "$as_me:$LINENO: result: $MV" >&5
4874echo "${ECHO_T}$MV" >&6
4875else
4876  echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
4878fi
4879
4880if test -n "$ac_tool_prefix"; then
4881  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_prog_RANLIB+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  if test -n "$RANLIB"; then
4889  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890else
4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896  for ac_exec_ext in '' $ac_executable_extensions; do
4897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900    break 2
4901  fi
4902done
4903done
4904
4905fi
4906fi
4907RANLIB=$ac_cv_prog_RANLIB
4908if test -n "$RANLIB"; then
4909  echo "$as_me:$LINENO: result: $RANLIB" >&5
4910echo "${ECHO_T}$RANLIB" >&6
4911else
4912  echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914fi
4915
4916fi
4917if test -z "$ac_cv_prog_RANLIB"; then
4918  ac_ct_RANLIB=$RANLIB
4919  # Extract the first word of "ranlib", so it can be a program name with args.
4920set dummy ranlib; ac_word=$2
4921echo "$as_me:$LINENO: checking for $ac_word" >&5
4922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test -n "$ac_ct_RANLIB"; then
4927  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932  IFS=$as_save_IFS
4933  test -z "$as_dir" && as_dir=.
4934  for ac_exec_ext in '' $ac_executable_extensions; do
4935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936    ac_cv_prog_ac_ct_RANLIB="ranlib"
4937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938    break 2
4939  fi
4940done
4941done
4942
4943  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4944fi
4945fi
4946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947if test -n "$ac_ct_RANLIB"; then
4948  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949echo "${ECHO_T}$ac_ct_RANLIB" >&6
4950else
4951  echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953fi
4954
4955  RANLIB=$ac_ct_RANLIB
4956else
4957  RANLIB="$ac_cv_prog_RANLIB"
4958fi
4959
4960# Extract the first word of "rm", so it can be a program name with args.
4961set dummy rm; ac_word=$2
4962echo "$as_me:$LINENO: checking for $ac_word" >&5
4963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964if test "${ac_cv_path_RM+set}" = set; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  case $RM in
4968  [\\/]* | ?:[\\/]*)
4969  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4970  ;;
4971  *)
4972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977  for ac_exec_ext in '' $ac_executable_extensions; do
4978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981    break 2
4982  fi
4983done
4984done
4985
4986  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4987  ;;
4988esac
4989fi
4990RM=$ac_cv_path_RM
4991
4992if test -n "$RM"; then
4993  echo "$as_me:$LINENO: result: $RM" >&5
4994echo "${ECHO_T}$RM" >&6
4995else
4996  echo "$as_me:$LINENO: result: no" >&5
4997echo "${ECHO_T}no" >&6
4998fi
4999
5000# Extract the first word of "sed", so it can be a program name with args.
5001set dummy sed; ac_word=$2
5002echo "$as_me:$LINENO: checking for $ac_word" >&5
5003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004if test "${ac_cv_path_SED+set}" = set; then
5005  echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007  case $SED in
5008  [\\/]* | ?:[\\/]*)
5009  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5010  ;;
5011  *)
5012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017  for ac_exec_ext in '' $ac_executable_extensions; do
5018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5019    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024done
5025
5026  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5027  ;;
5028esac
5029fi
5030SED=$ac_cv_path_SED
5031
5032if test -n "$SED"; then
5033  echo "$as_me:$LINENO: result: $SED" >&5
5034echo "${ECHO_T}$SED" >&6
5035else
5036  echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038fi
5039
5040# Extract the first word of "tar", so it can be a program name with args.
5041set dummy tar; ac_word=$2
5042echo "$as_me:$LINENO: checking for $ac_word" >&5
5043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044if test "${ac_cv_path_TAR+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  case $TAR in
5048  [\\/]* | ?:[\\/]*)
5049  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5050  ;;
5051  *)
5052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057  for ac_exec_ext in '' $ac_executable_extensions; do
5058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064done
5065
5066  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5067  ;;
5068esac
5069fi
5070TAR=$ac_cv_path_TAR
5071
5072if test -n "$TAR"; then
5073  echo "$as_me:$LINENO: result: $TAR" >&5
5074echo "${ECHO_T}$TAR" >&6
5075else
5076  echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6
5078fi
5079
5080# Extract the first word of "Graphviz", so it can be a program name with args.
5081set dummy Graphviz; ac_word=$2
5082echo "$as_me:$LINENO: checking for $ac_word" >&5
5083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  case $GRAPHVIZ in
5088  [\\/]* | ?:[\\/]*)
5089  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5090  ;;
5091  *)
5092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097  for ac_exec_ext in '' $ac_executable_extensions; do
5098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104done
5105
5106  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5107  ;;
5108esac
5109fi
5110GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5111
5112if test -n "$GRAPHVIZ"; then
5113  echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5114echo "${ECHO_T}$GRAPHVIZ" >&6
5115else
5116  echo "$as_me:$LINENO: result: no" >&5
5117echo "${ECHO_T}no" >&6
5118fi
5119
5120if test "$GRAPHVIZ" != "echo Graphviz" ; then
5121
5122cat >>confdefs.h <<\_ACEOF
5123#define HAVE_GRAPHVIZ 1
5124_ACEOF
5125
5126
5127cat >>confdefs.h <<_ACEOF
5128#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5129_ACEOF
5130
5131fi
5132# Extract the first word of "gv", so it can be a program name with args.
5133set dummy gv; ac_word=$2
5134echo "$as_me:$LINENO: checking for $ac_word" >&5
5135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5136if test "${ac_cv_path_GV+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  case $GV in
5140  [\\/]* | ?:[\\/]*)
5141  ac_cv_path_GV="$GV" # Let the user override the test with a path.
5142  ;;
5143  *)
5144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149  for ac_exec_ext in '' $ac_executable_extensions; do
5150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156done
5157
5158  test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5159  ;;
5160esac
5161fi
5162GV=$ac_cv_path_GV
5163
5164if test -n "$GV"; then
5165  echo "$as_me:$LINENO: result: $GV" >&5
5166echo "${ECHO_T}$GV" >&6
5167else
5168  echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170fi
5171
5172if test "$GV" != "echo gv" ; then
5173
5174cat >>confdefs.h <<\_ACEOF
5175#define HAVE_GV 1
5176_ACEOF
5177
5178
5179cat >>confdefs.h <<_ACEOF
5180#define LLVM_PATH_GV "$GV"
5181_ACEOF
5182
5183fi
5184
5185# Find a good install program.  We prefer a C program (faster),
5186# so one script is as good as another.  But avoid the broken or
5187# incompatible versions:
5188# SysV /etc/install, /usr/sbin/install
5189# SunOS /usr/etc/install
5190# IRIX /sbin/install
5191# AIX /bin/install
5192# AmigaOS /C/install, which installs bootblocks on floppy discs
5193# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5194# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5195# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5196# OS/2's system install, which has a completely different semantic
5197# ./install, which can be erroneously created by make from ./install.sh.
5198echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5199echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5200if test -z "$INSTALL"; then
5201if test "${ac_cv_path_install+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209  # Account for people who put trailing slashes in PATH elements.
5210case $as_dir/ in
5211  ./ | .// | /cC/* | \
5212  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5214  /usr/ucb/* ) ;;
5215  *)
5216    # OSF1 and SCO ODT 3.0 have their own names for install.
5217    # Don't use installbsd from OSF since it installs stuff as root
5218    # by default.
5219    for ac_prog in ginstall scoinst install; do
5220      for ac_exec_ext in '' $ac_executable_extensions; do
5221	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5222	  if test $ac_prog = install &&
5223	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5224	    # AIX install.  It has an incompatible calling convention.
5225	    :
5226	  elif test $ac_prog = install &&
5227	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5228	    # program-specific install script used by HP pwplus--don't use.
5229	    :
5230	  else
5231	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5232	    break 3
5233	  fi
5234	fi
5235      done
5236    done
5237    ;;
5238esac
5239done
5240
5241
5242fi
5243  if test "${ac_cv_path_install+set}" = set; then
5244    INSTALL=$ac_cv_path_install
5245  else
5246    # As a last resort, use the slow shell script.  We don't cache a
5247    # path for INSTALL within a source directory, because that will
5248    # break other packages using the cache if that directory is
5249    # removed, or if the path is relative.
5250    INSTALL=$ac_install_sh
5251  fi
5252fi
5253echo "$as_me:$LINENO: result: $INSTALL" >&5
5254echo "${ECHO_T}$INSTALL" >&6
5255
5256# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5257# It thinks the first close brace ends the variable substitution.
5258test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5259
5260test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5261
5262test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5263
5264
5265# Extract the first word of "bzip2", so it can be a program name with args.
5266set dummy bzip2; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_path_BZIP2+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  case $BZIP2 in
5273  [\\/]* | ?:[\\/]*)
5274  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5275  ;;
5276  *)
5277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282  for ac_exec_ext in '' $ac_executable_extensions; do
5283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286    break 2
5287  fi
5288done
5289done
5290
5291  test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5292  ;;
5293esac
5294fi
5295BZIP2=$ac_cv_path_BZIP2
5296
5297if test -n "$BZIP2"; then
5298  echo "$as_me:$LINENO: result: $BZIP2" >&5
5299echo "${ECHO_T}$BZIP2" >&6
5300else
5301  echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
5304
5305# Extract the first word of "dot", so it can be a program name with args.
5306set dummy dot; ac_word=$2
5307echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309if test "${ac_cv_path_DOT+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  case $DOT in
5313  [\\/]* | ?:[\\/]*)
5314  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5315  ;;
5316  *)
5317  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322  for ac_exec_ext in '' $ac_executable_extensions; do
5323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329done
5330
5331  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5332  ;;
5333esac
5334fi
5335DOT=$ac_cv_path_DOT
5336
5337if test -n "$DOT"; then
5338  echo "$as_me:$LINENO: result: $DOT" >&5
5339echo "${ECHO_T}$DOT" >&6
5340else
5341  echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345# Extract the first word of "doxygen", so it can be a program name with args.
5346set dummy doxygen; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_path_DOXYGEN+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  case $DOXYGEN in
5353  [\\/]* | ?:[\\/]*)
5354  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5355  ;;
5356  *)
5357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362  for ac_exec_ext in '' $ac_executable_extensions; do
5363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369done
5370
5371  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5372  ;;
5373esac
5374fi
5375DOXYGEN=$ac_cv_path_DOXYGEN
5376
5377if test -n "$DOXYGEN"; then
5378  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5379echo "${ECHO_T}$DOXYGEN" >&6
5380else
5381  echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6
5383fi
5384
5385# Extract the first word of "etags", so it can be a program name with args.
5386set dummy etags; ac_word=$2
5387echo "$as_me:$LINENO: checking for $ac_word" >&5
5388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389if test "${ac_cv_path_ETAGS+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392  case $ETAGS in
5393  [\\/]* | ?:[\\/]*)
5394  ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5395  ;;
5396  *)
5397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402  for ac_exec_ext in '' $ac_executable_extensions; do
5403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404    ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409done
5410
5411  test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5412  ;;
5413esac
5414fi
5415ETAGS=$ac_cv_path_ETAGS
5416
5417if test -n "$ETAGS"; then
5418  echo "$as_me:$LINENO: result: $ETAGS" >&5
5419echo "${ECHO_T}$ETAGS" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425# Extract the first word of "groff", so it can be a program name with args.
5426set dummy groff; ac_word=$2
5427echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5429if test "${ac_cv_path_GROFF+set}" = set; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  case $GROFF in
5433  [\\/]* | ?:[\\/]*)
5434  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5435  ;;
5436  *)
5437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440  IFS=$as_save_IFS
5441  test -z "$as_dir" && as_dir=.
5442  for ac_exec_ext in '' $ac_executable_extensions; do
5443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446    break 2
5447  fi
5448done
5449done
5450
5451  test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5452  ;;
5453esac
5454fi
5455GROFF=$ac_cv_path_GROFF
5456
5457if test -n "$GROFF"; then
5458  echo "$as_me:$LINENO: result: $GROFF" >&5
5459echo "${ECHO_T}$GROFF" >&6
5460else
5461  echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6
5463fi
5464
5465# Extract the first word of "gzip", so it can be a program name with args.
5466set dummy gzip; ac_word=$2
5467echo "$as_me:$LINENO: checking for $ac_word" >&5
5468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469if test "${ac_cv_path_GZIP+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  case $GZIP in
5473  [\\/]* | ?:[\\/]*)
5474  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5475  ;;
5476  *)
5477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490
5491  test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5492  ;;
5493esac
5494fi
5495GZIP=$ac_cv_path_GZIP
5496
5497if test -n "$GZIP"; then
5498  echo "$as_me:$LINENO: result: $GZIP" >&5
5499echo "${ECHO_T}$GZIP" >&6
5500else
5501  echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6
5503fi
5504
5505# Extract the first word of "pod2html", so it can be a program name with args.
5506set dummy pod2html; ac_word=$2
5507echo "$as_me:$LINENO: checking for $ac_word" >&5
5508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5509if test "${ac_cv_path_POD2HTML+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512  case $POD2HTML in
5513  [\\/]* | ?:[\\/]*)
5514  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5515  ;;
5516  *)
5517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518for as_dir in $PATH
5519do
5520  IFS=$as_save_IFS
5521  test -z "$as_dir" && as_dir=.
5522  for ac_exec_ext in '' $ac_executable_extensions; do
5523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526    break 2
5527  fi
5528done
5529done
5530
5531  test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5532  ;;
5533esac
5534fi
5535POD2HTML=$ac_cv_path_POD2HTML
5536
5537if test -n "$POD2HTML"; then
5538  echo "$as_me:$LINENO: result: $POD2HTML" >&5
5539echo "${ECHO_T}$POD2HTML" >&6
5540else
5541  echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544
5545# Extract the first word of "pod2man", so it can be a program name with args.
5546set dummy pod2man; ac_word=$2
5547echo "$as_me:$LINENO: checking for $ac_word" >&5
5548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549if test "${ac_cv_path_POD2MAN+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  case $POD2MAN in
5553  [\\/]* | ?:[\\/]*)
5554  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5555  ;;
5556  *)
5557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH
5559do
5560  IFS=$as_save_IFS
5561  test -z "$as_dir" && as_dir=.
5562  for ac_exec_ext in '' $ac_executable_extensions; do
5563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566    break 2
5567  fi
5568done
5569done
5570
5571  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5572  ;;
5573esac
5574fi
5575POD2MAN=$ac_cv_path_POD2MAN
5576
5577if test -n "$POD2MAN"; then
5578  echo "$as_me:$LINENO: result: $POD2MAN" >&5
5579echo "${ECHO_T}$POD2MAN" >&6
5580else
5581  echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
5583fi
5584
5585# Extract the first word of "runtest", so it can be a program name with args.
5586set dummy runtest; ac_word=$2
5587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589if test "${ac_cv_path_RUNTEST+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  case $RUNTEST in
5593  [\\/]* | ?:[\\/]*)
5594  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5595  ;;
5596  *)
5597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600  IFS=$as_save_IFS
5601  test -z "$as_dir" && as_dir=.
5602  for ac_exec_ext in '' $ac_executable_extensions; do
5603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5604    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606    break 2
5607  fi
5608done
5609done
5610
5611  test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5612  ;;
5613esac
5614fi
5615RUNTEST=$ac_cv_path_RUNTEST
5616
5617if test -n "$RUNTEST"; then
5618  echo "$as_me:$LINENO: result: $RUNTEST" >&5
5619echo "${ECHO_T}$RUNTEST" >&6
5620else
5621  echo "$as_me:$LINENO: result: no" >&5
5622echo "${ECHO_T}no" >&6
5623fi
5624
5625
5626no_itcl=true
5627echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5628echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5629
5630# Check whether --with-tclinclude or --without-tclinclude was given.
5631if test "${with_tclinclude+set}" = set; then
5632  withval="$with_tclinclude"
5633  with_tclinclude=${withval}
5634else
5635  with_tclinclude=''
5636fi;
5637if test "${ac_cv_path_tclsh+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640
5641if test x"${with_tclinclude}" != x ; then
5642  if test -f ${with_tclinclude}/tclsh ; then
5643    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5644  elif test -f ${with_tclinclude}/src/tclsh ; then
5645    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5646  else
5647    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5648echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5649   { (exit 1); exit 1; }; }
5650  fi
5651fi
5652
5653if test x"${ac_cv_path_tclsh}" = x ; then
5654  echo "$as_me:$LINENO: result: none" >&5
5655echo "${ECHO_T}none" >&6
5656  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
5657do
5658  # Extract the first word of "$ac_prog", so it can be a program name with args.
5659set dummy $ac_prog; ac_word=$2
5660echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5662if test "${ac_cv_path_TCLSH+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  case $TCLSH in
5666  [\\/]* | ?:[\\/]*)
5667  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5668  ;;
5669  *)
5670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675  for ac_exec_ext in '' $ac_executable_extensions; do
5676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682done
5683
5684  ;;
5685esac
5686fi
5687TCLSH=$ac_cv_path_TCLSH
5688
5689if test -n "$TCLSH"; then
5690  echo "$as_me:$LINENO: result: $TCLSH" >&5
5691echo "${ECHO_T}$TCLSH" >&6
5692else
5693  echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
5695fi
5696
5697  test -n "$TCLSH" && break
5698done
5699
5700  if test x"${TCLSH}" = x ; then
5701    ac_cv_path_tclsh='';
5702  else
5703    ac_cv_path_tclsh="${TCLSH}";
5704  fi
5705else
5706  echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5707echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5708  TCLSH="${ac_cv_path_tclsh}"
5709
5710fi
5711
5712fi
5713
5714# Extract the first word of "zip", so it can be a program name with args.
5715set dummy zip; ac_word=$2
5716echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5718if test "${ac_cv_path_ZIP+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  case $ZIP in
5722  [\\/]* | ?:[\\/]*)
5723  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5724  ;;
5725  *)
5726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731  for ac_exec_ext in '' $ac_executable_extensions; do
5732  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5734    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738done
5739
5740  test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5741  ;;
5742esac
5743fi
5744ZIP=$ac_cv_path_ZIP
5745
5746if test -n "$ZIP"; then
5747  echo "$as_me:$LINENO: result: $ZIP" >&5
5748echo "${ECHO_T}$ZIP" >&6
5749else
5750  echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752fi
5753
5754
5755echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5756echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5757if test "${llvm_cv_link_use_r+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760   ac_ext=c
5761ac_cpp='$CPP $CPPFLAGS'
5762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765
5766  oldcflags="$CFLAGS"
5767  CFLAGS="$CFLAGS -Wl,-R."
5768  cat >conftest.$ac_ext <<_ACEOF
5769/* confdefs.h.  */
5770_ACEOF
5771cat confdefs.h >>conftest.$ac_ext
5772cat >>conftest.$ac_ext <<_ACEOF
5773/* end confdefs.h.  */
5774
5775int
5776main ()
5777{
5778int main() { return 0; }
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783rm -f conftest.$ac_objext conftest$ac_exeext
5784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785  (eval $ac_link) 2>conftest.er1
5786  ac_status=$?
5787  grep -v '^ *+' conftest.er1 >conftest.err
5788  rm -f conftest.er1
5789  cat conftest.err >&5
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); } &&
5792	 { ac_try='test -z "$ac_c_werror_flag"
5793			 || test ! -s conftest.err'
5794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795  (eval $ac_try) 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); }; } &&
5799	 { ac_try='test -s conftest$ac_exeext'
5800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801  (eval $ac_try) 2>&5
5802  ac_status=$?
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); }; }; then
5805  llvm_cv_link_use_r=yes
5806else
5807  echo "$as_me: failed program was:" >&5
5808sed 's/^/| /' conftest.$ac_ext >&5
5809
5810llvm_cv_link_use_r=no
5811fi
5812rm -f conftest.err conftest.$ac_objext \
5813      conftest$ac_exeext conftest.$ac_ext
5814  CFLAGS="$oldcflags"
5815  ac_ext=c
5816ac_cpp='$CPP $CPPFLAGS'
5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821
5822fi
5823echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5824echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5825if test "$llvm_cv_link_use_r" = yes ; then
5826
5827cat >>confdefs.h <<\_ACEOF
5828#define HAVE_LINK_R 1
5829_ACEOF
5830
5831  fi
5832
5833
5834
5835
5836echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5837echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5838if test "${ac_cv_c_const+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h.  */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h.  */
5847
5848int
5849main ()
5850{
5851/* FIXME: Include the comments suggested by Paul. */
5852#ifndef __cplusplus
5853  /* Ultrix mips cc rejects this.  */
5854  typedef int charset[2];
5855  const charset x;
5856  /* SunOS 4.1.1 cc rejects this.  */
5857  char const *const *ccp;
5858  char **p;
5859  /* NEC SVR4.0.2 mips cc rejects this.  */
5860  struct point {int x, y;};
5861  static struct point const zero = {0,0};
5862  /* AIX XL C 1.02.0.0 rejects this.
5863     It does not let you subtract one const X* pointer from another in
5864     an arm of an if-expression whose if-part is not a constant
5865     expression */
5866  const char *g = "string";
5867  ccp = &g + (g ? g-g : 0);
5868  /* HPUX 7.0 cc rejects these. */
5869  ++ccp;
5870  p = (char**) ccp;
5871  ccp = (char const *const *) p;
5872  { /* SCO 3.2v4 cc rejects this.  */
5873    char *t;
5874    char const *s = 0 ? (char *) 0 : (char const *) 0;
5875
5876    *t++ = 0;
5877  }
5878  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5879    int x[] = {25, 17};
5880    const int *foo = &x[0];
5881    ++foo;
5882  }
5883  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5884    typedef const int *iptr;
5885    iptr p = 0;
5886    ++p;
5887  }
5888  { /* AIX XL C 1.02.0.0 rejects this saying
5889       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5890    struct s { int j; const int *ap[3]; };
5891    struct s *b; b->j = 5;
5892  }
5893  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5894    const int foo = 10;
5895  }
5896#endif
5897
5898  ;
5899  return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904  (eval $ac_compile) 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } &&
5911	 { ac_try='test -z "$ac_c_werror_flag"
5912			 || test ! -s conftest.err'
5913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914  (eval $ac_try) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }; } &&
5918	 { ac_try='test -s conftest.$ac_objext'
5919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920  (eval $ac_try) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }; }; then
5924  ac_cv_c_const=yes
5925else
5926  echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929ac_cv_c_const=no
5930fi
5931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932fi
5933echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5934echo "${ECHO_T}$ac_cv_c_const" >&6
5935if test $ac_cv_c_const = no; then
5936
5937cat >>confdefs.h <<\_ACEOF
5938#define const
5939_ACEOF
5940
5941fi
5942
5943
5944echo "$as_me:$LINENO: checking for egrep" >&5
5945echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5946if test "${ac_cv_prog_egrep+set}" = set; then
5947  echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5950    then ac_cv_prog_egrep='grep -E'
5951    else ac_cv_prog_egrep='egrep'
5952    fi
5953fi
5954echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5955echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5956 EGREP=$ac_cv_prog_egrep
5957
5958
5959echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5960echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5961if test "${ac_cv_header_stdc+set}" = set; then
5962  echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964  cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970#include <stdlib.h>
5971#include <stdarg.h>
5972#include <string.h>
5973#include <float.h>
5974
5975int
5976main ()
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985  (eval $ac_compile) 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } &&
5992	 { ac_try='test -z "$ac_c_werror_flag"
5993			 || test ! -s conftest.err'
5994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995  (eval $ac_try) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; } &&
5999	 { ac_try='test -s conftest.$ac_objext'
6000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001  (eval $ac_try) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }; }; then
6005  ac_cv_header_stdc=yes
6006else
6007  echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010ac_cv_header_stdc=no
6011fi
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013
6014if test $ac_cv_header_stdc = yes; then
6015  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6016  cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h.  */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h.  */
6022#include <string.h>
6023
6024_ACEOF
6025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6026  $EGREP "memchr" >/dev/null 2>&1; then
6027  :
6028else
6029  ac_cv_header_stdc=no
6030fi
6031rm -f conftest*
6032
6033fi
6034
6035if test $ac_cv_header_stdc = yes; then
6036  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6037  cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h.  */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h.  */
6043#include <stdlib.h>
6044
6045_ACEOF
6046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047  $EGREP "free" >/dev/null 2>&1; then
6048  :
6049else
6050  ac_cv_header_stdc=no
6051fi
6052rm -f conftest*
6053
6054fi
6055
6056if test $ac_cv_header_stdc = yes; then
6057  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6058  if test "$cross_compiling" = yes; then
6059  :
6060else
6061  cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h.  */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h.  */
6067#include <ctype.h>
6068#if ((' ' & 0x0FF) == 0x020)
6069# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6070# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6071#else
6072# define ISLOWER(c) \
6073		   (('a' <= (c) && (c) <= 'i') \
6074		     || ('j' <= (c) && (c) <= 'r') \
6075		     || ('s' <= (c) && (c) <= 'z'))
6076# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6077#endif
6078
6079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6080int
6081main ()
6082{
6083  int i;
6084  for (i = 0; i < 256; i++)
6085    if (XOR (islower (i), ISLOWER (i))
6086	|| toupper (i) != TOUPPER (i))
6087      exit(2);
6088  exit (0);
6089}
6090_ACEOF
6091rm -f conftest$ac_exeext
6092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093  (eval $ac_link) 2>&5
6094  ac_status=$?
6095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098  (eval $ac_try) 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }; }; then
6102  :
6103else
6104  echo "$as_me: program exited with status $ac_status" >&5
6105echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108( exit $ac_status )
6109ac_cv_header_stdc=no
6110fi
6111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6112fi
6113fi
6114fi
6115echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6116echo "${ECHO_T}$ac_cv_header_stdc" >&6
6117if test $ac_cv_header_stdc = yes; then
6118
6119cat >>confdefs.h <<\_ACEOF
6120#define STDC_HEADERS 1
6121_ACEOF
6122
6123fi
6124
6125
6126
6127
6128
6129
6130ac_header_dirent=no
6131for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6132  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6133echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6134echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6135if eval "test \"\${$as_ac_Header+set}\" = set"; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h.  */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h.  */
6144#include <sys/types.h>
6145#include <$ac_hdr>
6146
6147int
6148main ()
6149{
6150if ((DIR *) 0)
6151return 0;
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext
6157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6158  (eval $ac_compile) 2>conftest.er1
6159  ac_status=$?
6160  grep -v '^ *+' conftest.er1 >conftest.err
6161  rm -f conftest.er1
6162  cat conftest.err >&5
6163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164  (exit $ac_status); } &&
6165	 { ac_try='test -z "$ac_c_werror_flag"
6166			 || test ! -s conftest.err'
6167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168  (eval $ac_try) 2>&5
6169  ac_status=$?
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); }; } &&
6172	 { ac_try='test -s conftest.$ac_objext'
6173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174  (eval $ac_try) 2>&5
6175  ac_status=$?
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); }; }; then
6178  eval "$as_ac_Header=yes"
6179else
6180  echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183eval "$as_ac_Header=no"
6184fi
6185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6186fi
6187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189if test `eval echo '${'$as_ac_Header'}'` = yes; then
6190  cat >>confdefs.h <<_ACEOF
6191#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6192_ACEOF
6193
6194ac_header_dirent=$ac_hdr; break
6195fi
6196
6197done
6198# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6199if test $ac_header_dirent = dirent.h; then
6200  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6201echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6202if test "${ac_cv_search_opendir+set}" = set; then
6203  echo $ECHO_N "(cached) $ECHO_C" >&6
6204else
6205  ac_func_search_save_LIBS=$LIBS
6206ac_cv_search_opendir=no
6207cat >conftest.$ac_ext <<_ACEOF
6208/* confdefs.h.  */
6209_ACEOF
6210cat confdefs.h >>conftest.$ac_ext
6211cat >>conftest.$ac_ext <<_ACEOF
6212/* end confdefs.h.  */
6213
6214/* Override any gcc2 internal prototype to avoid an error.  */
6215#ifdef __cplusplus
6216extern "C"
6217#endif
6218/* We use char because int might match the return type of a gcc2
6219   builtin and then its argument prototype would still apply.  */
6220char opendir ();
6221int
6222main ()
6223{
6224opendir ();
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext conftest$ac_exeext
6230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231  (eval $ac_link) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238	 { ac_try='test -z "$ac_c_werror_flag"
6239			 || test ! -s conftest.err'
6240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241  (eval $ac_try) 2>&5
6242  ac_status=$?
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); }; } &&
6245	 { ac_try='test -s conftest$ac_exeext'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; }; then
6251  ac_cv_search_opendir="none required"
6252else
6253  echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256fi
6257rm -f conftest.err conftest.$ac_objext \
6258      conftest$ac_exeext conftest.$ac_ext
6259if test "$ac_cv_search_opendir" = no; then
6260  for ac_lib in dir; do
6261    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6262    cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269/* Override any gcc2 internal prototype to avoid an error.  */
6270#ifdef __cplusplus
6271extern "C"
6272#endif
6273/* We use char because int might match the return type of a gcc2
6274   builtin and then its argument prototype would still apply.  */
6275char opendir ();
6276int
6277main ()
6278{
6279opendir ();
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284rm -f conftest.$ac_objext conftest$ac_exeext
6285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6286  (eval $ac_link) 2>conftest.er1
6287  ac_status=$?
6288  grep -v '^ *+' conftest.er1 >conftest.err
6289  rm -f conftest.er1
6290  cat conftest.err >&5
6291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292  (exit $ac_status); } &&
6293	 { ac_try='test -z "$ac_c_werror_flag"
6294			 || test ! -s conftest.err'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; } &&
6300	 { ac_try='test -s conftest$ac_exeext'
6301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302  (eval $ac_try) 2>&5
6303  ac_status=$?
6304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305  (exit $ac_status); }; }; then
6306  ac_cv_search_opendir="-l$ac_lib"
6307break
6308else
6309  echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312fi
6313rm -f conftest.err conftest.$ac_objext \
6314      conftest$ac_exeext conftest.$ac_ext
6315  done
6316fi
6317LIBS=$ac_func_search_save_LIBS
6318fi
6319echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6320echo "${ECHO_T}$ac_cv_search_opendir" >&6
6321if test "$ac_cv_search_opendir" != no; then
6322  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6323
6324fi
6325
6326else
6327  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6328echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6329if test "${ac_cv_search_opendir+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  ac_func_search_save_LIBS=$LIBS
6333ac_cv_search_opendir=no
6334cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h.  */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h.  */
6340
6341/* Override any gcc2 internal prototype to avoid an error.  */
6342#ifdef __cplusplus
6343extern "C"
6344#endif
6345/* We use char because int might match the return type of a gcc2
6346   builtin and then its argument prototype would still apply.  */
6347char opendir ();
6348int
6349main ()
6350{
6351opendir ();
6352  ;
6353  return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
6357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358  (eval $ac_link) 2>conftest.er1
6359  ac_status=$?
6360  grep -v '^ *+' conftest.er1 >conftest.err
6361  rm -f conftest.er1
6362  cat conftest.err >&5
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } &&
6365	 { ac_try='test -z "$ac_c_werror_flag"
6366			 || test ! -s conftest.err'
6367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368  (eval $ac_try) 2>&5
6369  ac_status=$?
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); }; } &&
6372	 { ac_try='test -s conftest$ac_exeext'
6373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374  (eval $ac_try) 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; }; then
6378  ac_cv_search_opendir="none required"
6379else
6380  echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383fi
6384rm -f conftest.err conftest.$ac_objext \
6385      conftest$ac_exeext conftest.$ac_ext
6386if test "$ac_cv_search_opendir" = no; then
6387  for ac_lib in x; do
6388    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6389    cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h.  */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h.  */
6395
6396/* Override any gcc2 internal prototype to avoid an error.  */
6397#ifdef __cplusplus
6398extern "C"
6399#endif
6400/* We use char because int might match the return type of a gcc2
6401   builtin and then its argument prototype would still apply.  */
6402char opendir ();
6403int
6404main ()
6405{
6406opendir ();
6407  ;
6408  return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext conftest$ac_exeext
6412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6413  (eval $ac_link) 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } &&
6420	 { ac_try='test -z "$ac_c_werror_flag"
6421			 || test ! -s conftest.err'
6422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423  (eval $ac_try) 2>&5
6424  ac_status=$?
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); }; } &&
6427	 { ac_try='test -s conftest$ac_exeext'
6428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429  (eval $ac_try) 2>&5
6430  ac_status=$?
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); }; }; then
6433  ac_cv_search_opendir="-l$ac_lib"
6434break
6435else
6436  echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
6439fi
6440rm -f conftest.err conftest.$ac_objext \
6441      conftest$ac_exeext conftest.$ac_ext
6442  done
6443fi
6444LIBS=$ac_func_search_save_LIBS
6445fi
6446echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6447echo "${ECHO_T}$ac_cv_search_opendir" >&6
6448if test "$ac_cv_search_opendir" != no; then
6449  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6450
6451fi
6452
6453fi
6454
6455# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6466		  inttypes.h stdint.h unistd.h
6467do
6468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6469echo "$as_me:$LINENO: checking for $ac_header" >&5
6470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6471if eval "test \"\${$as_ac_Header+set}\" = set"; then
6472  echo $ECHO_N "(cached) $ECHO_C" >&6
6473else
6474  cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480$ac_includes_default
6481
6482#include <$ac_header>
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486  (eval $ac_compile) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493	 { ac_try='test -z "$ac_c_werror_flag"
6494			 || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500	 { ac_try='test -s conftest.$ac_objext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  eval "$as_ac_Header=yes"
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511eval "$as_ac_Header=no"
6512fi
6513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514fi
6515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6517if test `eval echo '${'$as_ac_Header'}'` = yes; then
6518  cat >>confdefs.h <<_ACEOF
6519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6520_ACEOF
6521
6522fi
6523
6524done
6525
6526
6527
6528for ac_header in dlfcn.h
6529do
6530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532  echo "$as_me:$LINENO: checking for $ac_header" >&5
6533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539else
6540  # Is the header compilable?
6541echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549$ac_includes_default
6550#include <$ac_header>
6551_ACEOF
6552rm -f conftest.$ac_objext
6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554  (eval $ac_compile) 2>conftest.er1
6555  ac_status=$?
6556  grep -v '^ *+' conftest.er1 >conftest.err
6557  rm -f conftest.er1
6558  cat conftest.err >&5
6559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560  (exit $ac_status); } &&
6561	 { ac_try='test -z "$ac_c_werror_flag"
6562			 || test ! -s conftest.err'
6563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564  (eval $ac_try) 2>&5
6565  ac_status=$?
6566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); }; } &&
6568	 { ac_try='test -s conftest.$ac_objext'
6569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570  (eval $ac_try) 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; }; then
6574  ac_header_compiler=yes
6575else
6576  echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579ac_header_compiler=no
6580fi
6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583echo "${ECHO_T}$ac_header_compiler" >&6
6584
6585# Is the header present?
6586echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6588cat >conftest.$ac_ext <<_ACEOF
6589/* confdefs.h.  */
6590_ACEOF
6591cat confdefs.h >>conftest.$ac_ext
6592cat >>conftest.$ac_ext <<_ACEOF
6593/* end confdefs.h.  */
6594#include <$ac_header>
6595_ACEOF
6596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6598  ac_status=$?
6599  grep -v '^ *+' conftest.er1 >conftest.err
6600  rm -f conftest.er1
6601  cat conftest.err >&5
6602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603  (exit $ac_status); } >/dev/null; then
6604  if test -s conftest.err; then
6605    ac_cpp_err=$ac_c_preproc_warn_flag
6606    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6607  else
6608    ac_cpp_err=
6609  fi
6610else
6611  ac_cpp_err=yes
6612fi
6613if test -z "$ac_cpp_err"; then
6614  ac_header_preproc=yes
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619  ac_header_preproc=no
6620fi
6621rm -f conftest.err conftest.$ac_ext
6622echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6623echo "${ECHO_T}$ac_header_preproc" >&6
6624
6625# So?  What about this header?
6626case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6627  yes:no: )
6628    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6629echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6630    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6631echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6632    ac_header_preproc=yes
6633    ;;
6634  no:yes:* )
6635    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6636echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6637    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6638echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6640echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6642echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6646echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6647    (
6648      cat <<\_ASBOX
6649## ----------------------------------- ##
6650## Report this to llvmbugs@cs.uiuc.edu ##
6651## ----------------------------------- ##
6652_ASBOX
6653    ) |
6654      sed "s/^/$as_me: WARNING:     /" >&2
6655    ;;
6656esac
6657echo "$as_me:$LINENO: checking for $ac_header" >&5
6658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660  echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662  eval "$as_ac_Header=\$ac_header_preproc"
6663fi
6664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6666
6667fi
6668if test `eval echo '${'$as_ac_Header'}'` = yes; then
6669  cat >>confdefs.h <<_ACEOF
6670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671_ACEOF
6672
6673fi
6674
6675done
6676
6677# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6678if test "${enable_ltdl_install+set}" = set; then
6679  enableval="$enable_ltdl_install"
6680
6681fi;
6682
6683
6684
6685if test x"${enable_ltdl_install-no}" != xno; then
6686  INSTALL_LTDL_TRUE=
6687  INSTALL_LTDL_FALSE='#'
6688else
6689  INSTALL_LTDL_TRUE='#'
6690  INSTALL_LTDL_FALSE=
6691fi
6692
6693
6694
6695if test x"${enable_ltdl_convenience-no}" != xno; then
6696  CONVENIENCE_LTDL_TRUE=
6697  CONVENIENCE_LTDL_FALSE='#'
6698else
6699  CONVENIENCE_LTDL_TRUE='#'
6700  CONVENIENCE_LTDL_FALSE=
6701fi
6702
6703
6704echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6705echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6706library_names_spec=
6707libname_spec='lib$name'
6708soname_spec=
6709shrext_cmds=".so"
6710postinstall_cmds=
6711postuninstall_cmds=
6712finish_cmds=
6713finish_eval=
6714shlibpath_var=
6715shlibpath_overrides_runpath=unknown
6716version_type=none
6717dynamic_linker="$host_os ld.so"
6718sys_lib_dlsearch_path_spec="/lib /usr/lib"
6719if test "$GCC" = yes; then
6720  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6721  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6722    # if the path contains ";" then we assume it to be the separator
6723    # otherwise default to the standard path separator (i.e. ":") - it is
6724    # assumed that no part of a normal pathname contains ";" but that should
6725    # okay in the real world where ";" in dirpaths is itself problematic.
6726    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6727  else
6728    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6729  fi
6730else
6731  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6732fi
6733need_lib_prefix=unknown
6734hardcode_into_libs=no
6735
6736# when you set need_version to no, make sure it does not cause -set_version
6737# flags to be left without arguments
6738need_version=unknown
6739
6740case $host_os in
6741aix3*)
6742  version_type=linux
6743  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6744  shlibpath_var=LIBPATH
6745
6746  # AIX 3 has no versioning support, so we append a major version to the name.
6747  soname_spec='${libname}${release}${shared_ext}$major'
6748  ;;
6749
6750aix4* | aix5*)
6751  version_type=linux
6752  need_lib_prefix=no
6753  need_version=no
6754  hardcode_into_libs=yes
6755  if test "$host_cpu" = ia64; then
6756    # AIX 5 supports IA64
6757    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6758    shlibpath_var=LD_LIBRARY_PATH
6759  else
6760    # With GCC up to 2.95.x, collect2 would create an import file
6761    # for dependence libraries.  The import file would start with
6762    # the line `#! .'.  This would cause the generated library to
6763    # depend on `.', always an invalid library.  This was fixed in
6764    # development snapshots of GCC prior to 3.0.
6765    case $host_os in
6766      aix4 | aix4.[01] | aix4.[01].*)
6767      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6768	   echo ' yes '
6769	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6770	:
6771      else
6772	can_build_shared=no
6773      fi
6774      ;;
6775    esac
6776    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6777    # soname into executable. Probably we can add versioning support to
6778    # collect2, so additional links can be useful in future.
6779    if test "$aix_use_runtimelinking" = yes; then
6780      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6781      # instead of lib<name>.a to let people know that these are not
6782      # typical AIX shared libraries.
6783      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6784    else
6785      # We preserve .a as extension for shared libraries through AIX4.2
6786      # and later when we are not doing run time linking.
6787      library_names_spec='${libname}${release}.a $libname.a'
6788      soname_spec='${libname}${release}${shared_ext}$major'
6789    fi
6790    shlibpath_var=LIBPATH
6791  fi
6792  ;;
6793
6794amigaos*)
6795  library_names_spec='$libname.ixlibrary $libname.a'
6796  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6797  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'
6798  ;;
6799
6800beos*)
6801  library_names_spec='${libname}${shared_ext}'
6802  dynamic_linker="$host_os ld.so"
6803  shlibpath_var=LIBRARY_PATH
6804  ;;
6805
6806bsdi[45]*)
6807  version_type=linux
6808  need_version=no
6809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810  soname_spec='${libname}${release}${shared_ext}$major'
6811  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6812  shlibpath_var=LD_LIBRARY_PATH
6813  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6814  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6815  # the default ld.so.conf also contains /usr/contrib/lib and
6816  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6817  # libtool to hard-code these into programs
6818  ;;
6819
6820cygwin* | mingw* | pw32*)
6821  version_type=windows
6822  shrext_cmds=".dll"
6823  need_version=no
6824  need_lib_prefix=no
6825
6826  case $GCC,$host_os in
6827  yes,cygwin* | yes,mingw* | yes,pw32*)
6828    library_names_spec='$libname.dll.a'
6829    # DLL is installed to $(libdir)/../bin by postinstall_cmds
6830    postinstall_cmds='base_file=`basename \${file}`~
6831      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6832      dldir=$destdir/`dirname \$dlpath`~
6833      test -d \$dldir || mkdir -p \$dldir~
6834      $install_prog $dir/$dlname \$dldir/$dlname'
6835    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6836      dlpath=$dir/\$dldll~
6837       $rm \$dlpath'
6838    shlibpath_overrides_runpath=yes
6839
6840    case $host_os in
6841    cygwin*)
6842      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6843      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6844      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6845      ;;
6846    mingw*)
6847      # MinGW DLLs use traditional 'lib' prefix
6848      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6849      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6850      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6851        # It is most probably a Windows format PATH printed by
6852        # mingw gcc, but we are running on Cygwin. Gcc prints its search
6853        # path with ; separators, and with drive letters. We can handle the
6854        # drive letters (cygwin fileutils understands them), so leave them,
6855        # especially as we might pass files found there to a mingw objdump,
6856        # which wouldn't understand a cygwinified path. Ahh.
6857        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6858      else
6859        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6860      fi
6861      ;;
6862    pw32*)
6863      # pw32 DLLs use 'pw' prefix rather than 'lib'
6864      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6865      ;;
6866    esac
6867    ;;
6868
6869  *)
6870    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6871    ;;
6872  esac
6873  dynamic_linker='Win32 ld.exe'
6874  # FIXME: first we should search . and the directory the executable is in
6875  shlibpath_var=PATH
6876  ;;
6877
6878darwin* | rhapsody*)
6879  dynamic_linker="$host_os dyld"
6880  version_type=darwin
6881  need_lib_prefix=no
6882  need_version=no
6883  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6884  soname_spec='${libname}${release}${major}$shared_ext'
6885  shlibpath_overrides_runpath=yes
6886  shlibpath_var=DYLD_LIBRARY_PATH
6887  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6888  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6889  if test "$GCC" = yes; then
6890    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"`
6891  else
6892    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6893  fi
6894  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6895  ;;
6896
6897dgux*)
6898  version_type=linux
6899  need_lib_prefix=no
6900  need_version=no
6901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6902  soname_spec='${libname}${release}${shared_ext}$major'
6903  shlibpath_var=LD_LIBRARY_PATH
6904  ;;
6905
6906freebsd1*)
6907  dynamic_linker=no
6908  ;;
6909
6910kfreebsd*-gnu)
6911  version_type=linux
6912  need_lib_prefix=no
6913  need_version=no
6914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6915  soname_spec='${libname}${release}${shared_ext}$major'
6916  shlibpath_var=LD_LIBRARY_PATH
6917  shlibpath_overrides_runpath=no
6918  hardcode_into_libs=yes
6919  dynamic_linker='GNU ld.so'
6920  ;;
6921
6922freebsd*)
6923  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6924  version_type=freebsd-$objformat
6925  case $version_type in
6926    freebsd-elf*)
6927      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6928      need_version=no
6929      need_lib_prefix=no
6930      ;;
6931    freebsd-*)
6932      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6933      need_version=yes
6934      ;;
6935  esac
6936  shlibpath_var=LD_LIBRARY_PATH
6937  case $host_os in
6938  freebsd2*)
6939    shlibpath_overrides_runpath=yes
6940    ;;
6941  freebsd3.01* | freebsdelf3.01*)
6942    shlibpath_overrides_runpath=yes
6943    hardcode_into_libs=yes
6944    ;;
6945  *) # from 3.2 on
6946    shlibpath_overrides_runpath=no
6947    hardcode_into_libs=yes
6948    ;;
6949  esac
6950  ;;
6951
6952gnu*)
6953  version_type=linux
6954  need_lib_prefix=no
6955  need_version=no
6956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6957  soname_spec='${libname}${release}${shared_ext}$major'
6958  shlibpath_var=LD_LIBRARY_PATH
6959  hardcode_into_libs=yes
6960  ;;
6961
6962hpux9* | hpux10* | hpux11*)
6963  # Give a soname corresponding to the major version so that dld.sl refuses to
6964  # link against other versions.
6965  version_type=sunos
6966  need_lib_prefix=no
6967  need_version=no
6968  case "$host_cpu" in
6969  ia64*)
6970    shrext_cmds='.so'
6971    hardcode_into_libs=yes
6972    dynamic_linker="$host_os dld.so"
6973    shlibpath_var=LD_LIBRARY_PATH
6974    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6976    soname_spec='${libname}${release}${shared_ext}$major'
6977    if test "X$HPUX_IA64_MODE" = X32; then
6978      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6979    else
6980      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6981    fi
6982    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6983    ;;
6984   hppa*64*)
6985     shrext_cmds='.sl'
6986     hardcode_into_libs=yes
6987     dynamic_linker="$host_os dld.sl"
6988     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6989     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6991     soname_spec='${libname}${release}${shared_ext}$major'
6992     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6994     ;;
6995   *)
6996    shrext_cmds='.sl'
6997    dynamic_linker="$host_os dld.sl"
6998    shlibpath_var=SHLIB_PATH
6999    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7000    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001    soname_spec='${libname}${release}${shared_ext}$major'
7002    ;;
7003  esac
7004  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7005  postinstall_cmds='chmod 555 $lib'
7006  ;;
7007
7008irix5* | irix6* | nonstopux*)
7009  case $host_os in
7010    nonstopux*) version_type=nonstopux ;;
7011    *)
7012	if test "$lt_cv_prog_gnu_ld" = yes; then
7013		version_type=linux
7014	else
7015		version_type=irix
7016	fi ;;
7017  esac
7018  need_lib_prefix=no
7019  need_version=no
7020  soname_spec='${libname}${release}${shared_ext}$major'
7021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7022  case $host_os in
7023  irix5* | nonstopux*)
7024    libsuff= shlibsuff=
7025    ;;
7026  *)
7027    case $LD in # libtool.m4 will add one of these switches to LD
7028    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7029      libsuff= shlibsuff= libmagic=32-bit;;
7030    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7031      libsuff=32 shlibsuff=N32 libmagic=N32;;
7032    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7033      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7034    *) libsuff= shlibsuff= libmagic=never-match;;
7035    esac
7036    ;;
7037  esac
7038  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7039  shlibpath_overrides_runpath=no
7040  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7041  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7042  hardcode_into_libs=yes
7043  ;;
7044
7045# No shared lib support for Linux oldld, aout, or coff.
7046linux*oldld* | linux*aout* | linux*coff*)
7047  dynamic_linker=no
7048  ;;
7049
7050# This must be Linux ELF.
7051linux*)
7052  version_type=linux
7053  need_lib_prefix=no
7054  need_version=no
7055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056  soname_spec='${libname}${release}${shared_ext}$major'
7057  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7058  shlibpath_var=LD_LIBRARY_PATH
7059  shlibpath_overrides_runpath=no
7060  # This implies no fast_install, which is unacceptable.
7061  # Some rework will be needed to allow for fast_install
7062  # before this can be enabled.
7063  hardcode_into_libs=yes
7064
7065  # Append ld.so.conf contents to the search path
7066  if test -f /etc/ld.so.conf; then
7067    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7068    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7069  fi
7070
7071  # We used to test for /lib/ld.so.1 and disable shared libraries on
7072  # powerpc, because MkLinux only supported shared libraries with the
7073  # GNU dynamic linker.  Since this was broken with cross compilers,
7074  # most powerpc-linux boxes support dynamic linking these days and
7075  # people can always --disable-shared, the test was removed, and we
7076  # assume the GNU/Linux dynamic linker is in use.
7077  dynamic_linker='GNU/Linux ld.so'
7078  ;;
7079
7080knetbsd*-gnu)
7081  version_type=linux
7082  need_lib_prefix=no
7083  need_version=no
7084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7085  soname_spec='${libname}${release}${shared_ext}$major'
7086  shlibpath_var=LD_LIBRARY_PATH
7087  shlibpath_overrides_runpath=no
7088  hardcode_into_libs=yes
7089  dynamic_linker='GNU ld.so'
7090  ;;
7091
7092netbsd*)
7093  version_type=sunos
7094  need_lib_prefix=no
7095  need_version=no
7096  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7097    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7098    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7099    dynamic_linker='NetBSD (a.out) ld.so'
7100  else
7101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7102    soname_spec='${libname}${release}${shared_ext}$major'
7103    dynamic_linker='NetBSD ld.elf_so'
7104  fi
7105  shlibpath_var=LD_LIBRARY_PATH
7106  shlibpath_overrides_runpath=yes
7107  hardcode_into_libs=yes
7108  ;;
7109
7110newsos6)
7111  version_type=linux
7112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7113  shlibpath_var=LD_LIBRARY_PATH
7114  shlibpath_overrides_runpath=yes
7115  ;;
7116
7117nto-qnx*)
7118  version_type=linux
7119  need_lib_prefix=no
7120  need_version=no
7121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122  soname_spec='${libname}${release}${shared_ext}$major'
7123  shlibpath_var=LD_LIBRARY_PATH
7124  shlibpath_overrides_runpath=yes
7125  ;;
7126
7127openbsd*)
7128  version_type=sunos
7129  need_lib_prefix=no
7130  need_version=no
7131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7132  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7133  shlibpath_var=LD_LIBRARY_PATH
7134  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7135    case $host_os in
7136      openbsd2.[89] | openbsd2.[89].*)
7137	shlibpath_overrides_runpath=no
7138	;;
7139      *)
7140	shlibpath_overrides_runpath=yes
7141	;;
7142      esac
7143  else
7144    shlibpath_overrides_runpath=yes
7145  fi
7146  ;;
7147
7148os2*)
7149  libname_spec='$name'
7150  shrext_cmds=".dll"
7151  need_lib_prefix=no
7152  library_names_spec='$libname${shared_ext} $libname.a'
7153  dynamic_linker='OS/2 ld.exe'
7154  shlibpath_var=LIBPATH
7155  ;;
7156
7157osf3* | osf4* | osf5*)
7158  version_type=osf
7159  need_lib_prefix=no
7160  need_version=no
7161  soname_spec='${libname}${release}${shared_ext}$major'
7162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7163  shlibpath_var=LD_LIBRARY_PATH
7164  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7165  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7166  ;;
7167
7168sco3.2v5*)
7169  version_type=osf
7170  soname_spec='${libname}${release}${shared_ext}$major'
7171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7172  shlibpath_var=LD_LIBRARY_PATH
7173  ;;
7174
7175solaris*)
7176  version_type=linux
7177  need_lib_prefix=no
7178  need_version=no
7179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7180  soname_spec='${libname}${release}${shared_ext}$major'
7181  shlibpath_var=LD_LIBRARY_PATH
7182  shlibpath_overrides_runpath=yes
7183  hardcode_into_libs=yes
7184  # ldd complains unless libraries are executable
7185  postinstall_cmds='chmod +x $lib'
7186  ;;
7187
7188sunos4*)
7189  version_type=sunos
7190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7191  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7192  shlibpath_var=LD_LIBRARY_PATH
7193  shlibpath_overrides_runpath=yes
7194  if test "$with_gnu_ld" = yes; then
7195    need_lib_prefix=no
7196  fi
7197  need_version=yes
7198  ;;
7199
7200sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7201  version_type=linux
7202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203  soname_spec='${libname}${release}${shared_ext}$major'
7204  shlibpath_var=LD_LIBRARY_PATH
7205  case $host_vendor in
7206    sni)
7207      shlibpath_overrides_runpath=no
7208      need_lib_prefix=no
7209      export_dynamic_flag_spec='${wl}-Blargedynsym'
7210      runpath_var=LD_RUN_PATH
7211      ;;
7212    siemens)
7213      need_lib_prefix=no
7214      ;;
7215    motorola)
7216      need_lib_prefix=no
7217      need_version=no
7218      shlibpath_overrides_runpath=no
7219      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7220      ;;
7221  esac
7222  ;;
7223
7224sysv4*MP*)
7225  if test -d /usr/nec ;then
7226    version_type=linux
7227    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7228    soname_spec='$libname${shared_ext}.$major'
7229    shlibpath_var=LD_LIBRARY_PATH
7230  fi
7231  ;;
7232
7233uts4*)
7234  version_type=linux
7235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7236  soname_spec='${libname}${release}${shared_ext}$major'
7237  shlibpath_var=LD_LIBRARY_PATH
7238  ;;
7239
7240*)
7241  dynamic_linker=no
7242  ;;
7243esac
7244echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7245echo "${ECHO_T}$dynamic_linker" >&6
7246test "$dynamic_linker" = no && can_build_shared=no
7247
7248
7249echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7250echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7251if test "${libltdl_cv_shlibext+set}" = set; then
7252  echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
7254
7255module=yes
7256eval libltdl_cv_shlibext=$shrext_cmds
7257
7258fi
7259echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7260echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7261if test -n "$libltdl_cv_shlibext"; then
7262
7263cat >>confdefs.h <<_ACEOF
7264#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7265_ACEOF
7266
7267fi
7268
7269
7270echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7271echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7272if test "${libltdl_cv_shlibpath_var+set}" = set; then
7273  echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275  libltdl_cv_shlibpath_var="$shlibpath_var"
7276fi
7277echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7278echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7279if test -n "$libltdl_cv_shlibpath_var"; then
7280
7281cat >>confdefs.h <<_ACEOF
7282#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7283_ACEOF
7284
7285fi
7286
7287
7288echo "$as_me:$LINENO: checking for the default library search path" >&5
7289echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7290if test "${libltdl_cv_sys_search_path+set}" = set; then
7291  echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7294fi
7295echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7296echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7297if test -n "$libltdl_cv_sys_search_path"; then
7298  sys_search_path=
7299  for dir in $libltdl_cv_sys_search_path; do
7300    if test -z "$sys_search_path"; then
7301      sys_search_path="$dir"
7302    else
7303      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7304    fi
7305  done
7306
7307cat >>confdefs.h <<_ACEOF
7308#define LTDL_SYSSEARCHPATH "$sys_search_path"
7309_ACEOF
7310
7311fi
7312
7313echo "$as_me:$LINENO: checking for objdir" >&5
7314echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7315if test "${libltdl_cv_objdir+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  libltdl_cv_objdir="$objdir"
7319  if test -n "$objdir"; then
7320    :
7321  else
7322    rm -f .libs 2>/dev/null
7323    mkdir .libs 2>/dev/null
7324    if test -d .libs; then
7325      libltdl_cv_objdir=.libs
7326    else
7327      # MS-DOS does not allow filenames that begin with a dot.
7328      libltdl_cv_objdir=_libs
7329    fi
7330  rmdir .libs 2>/dev/null
7331  fi
7332
7333fi
7334echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7335echo "${ECHO_T}$libltdl_cv_objdir" >&6
7336
7337cat >>confdefs.h <<_ACEOF
7338#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7339_ACEOF
7340
7341
7342echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7343echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7344if test "${lt_cv_path_NM+set}" = set; then
7345  echo $ECHO_N "(cached) $ECHO_C" >&6
7346else
7347  if test -n "$NM"; then
7348  # Let the user override the test.
7349  lt_cv_path_NM="$NM"
7350else
7351  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7352  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7353    IFS="$lt_save_ifs"
7354    test -z "$ac_dir" && ac_dir=.
7355    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7356    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7357      # Check to see if the nm accepts a BSD-compat flag.
7358      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7359      #   nm: unknown option "B" ignored
7360      # Tru64's nm complains that /dev/null is an invalid object file
7361      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7362      */dev/null* | *'Invalid file or object type'*)
7363	lt_cv_path_NM="$tmp_nm -B"
7364	break
7365        ;;
7366      *)
7367	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7368	*/dev/null*)
7369	  lt_cv_path_NM="$tmp_nm -p"
7370	  break
7371	  ;;
7372	*)
7373	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7374	  continue # so that we can try to find one that supports BSD flags
7375	  ;;
7376	esac
7377      esac
7378    fi
7379  done
7380  IFS="$lt_save_ifs"
7381  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7382fi
7383fi
7384echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7385echo "${ECHO_T}$lt_cv_path_NM" >&6
7386NM="$lt_cv_path_NM"
7387
7388
7389
7390
7391
7392# Check for command to grab the raw symbol name followed by C symbol from nm.
7393echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7394echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7395if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7396  echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398
7399# These are sane defaults that work on at least a few old systems.
7400# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7401
7402# Character class describing NM global symbol codes.
7403symcode='[BCDEGRST]'
7404
7405# Regexp to match symbols that can be accessed directly from C.
7406sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7407
7408# Transform the above into a raw symbol and a C symbol.
7409symxfrm='\1 \2\3 \3'
7410
7411# Transform an extracted symbol line into a proper C declaration
7412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7413
7414# Transform an extracted symbol line into symbol name and symbol address
7415lt_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'"
7416
7417# Define system-specific variables.
7418case $host_os in
7419aix*)
7420  symcode='[BCDT]'
7421  ;;
7422cygwin* | mingw* | pw32*)
7423  symcode='[ABCDGISTW]'
7424  ;;
7425hpux*) # Its linker distinguishes data from code symbols
7426  if test "$host_cpu" = ia64; then
7427    symcode='[ABCDEGRST]'
7428  fi
7429  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7430  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'"
7431  ;;
7432linux*)
7433  if test "$host_cpu" = ia64; then
7434    symcode='[ABCDGIRSTW]'
7435    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436    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'"
7437  fi
7438  ;;
7439irix* | nonstopux*)
7440  symcode='[BCDEGRST]'
7441  ;;
7442osf*)
7443  symcode='[BCDEGQRST]'
7444  ;;
7445solaris* | sysv5*)
7446  symcode='[BDRT]'
7447  ;;
7448sysv4)
7449  symcode='[DFNSTU]'
7450  ;;
7451esac
7452
7453# Handle CRLF in mingw tool chain
7454opt_cr=
7455case $build_os in
7456mingw*)
7457  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7458  ;;
7459esac
7460
7461# If we're using GNU nm, then use its standard symbol codes.
7462case `$NM -V 2>&1` in
7463*GNU* | *'with BFD'*)
7464  symcode='[ABCDGIRSTW]' ;;
7465esac
7466
7467# Try without a prefix undercore, then with it.
7468for ac_symprfx in "" "_"; do
7469
7470  # Write the raw and C identifiers.
7471  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7472
7473  # Check to see that the pipe works correctly.
7474  pipe_works=no
7475
7476  rm -f conftest*
7477  cat > conftest.$ac_ext <<EOF
7478#ifdef __cplusplus
7479extern "C" {
7480#endif
7481char nm_test_var;
7482void nm_test_func(){}
7483#ifdef __cplusplus
7484}
7485#endif
7486int main(){nm_test_var='a';nm_test_func();return(0);}
7487EOF
7488
7489  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7490  (eval $ac_compile) 2>&5
7491  ac_status=$?
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); }; then
7494    # Now try to grab the symbols.
7495    nlist=conftest.nm
7496    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7497  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7498  ac_status=$?
7499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500  (exit $ac_status); } && test -s "$nlist"; then
7501      # Try sorting and uniquifying the output.
7502      if sort "$nlist" | uniq > "$nlist"T; then
7503	mv -f "$nlist"T "$nlist"
7504      else
7505	rm -f "$nlist"T
7506      fi
7507
7508      # Make sure that we snagged all the symbols we need.
7509      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7510	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7511	  cat <<EOF > conftest.$ac_ext
7512#ifdef __cplusplus
7513extern "C" {
7514#endif
7515
7516EOF
7517	  # Now generate the symbol file.
7518	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7519
7520	  cat <<EOF >> conftest.$ac_ext
7521#if defined (__STDC__) && __STDC__
7522# define lt_ptr_t void *
7523#else
7524# define lt_ptr_t char *
7525# define const
7526#endif
7527
7528/* The mapping between symbol names and symbols. */
7529const struct {
7530  const char *name;
7531  lt_ptr_t address;
7532}
7533lt_preloaded_symbols[] =
7534{
7535EOF
7536	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7537	  cat <<\EOF >> conftest.$ac_ext
7538  {0, (lt_ptr_t) 0}
7539};
7540
7541#ifdef __cplusplus
7542}
7543#endif
7544EOF
7545	  # Now try linking the two files.
7546	  mv conftest.$ac_objext conftstm.$ac_objext
7547	  lt_save_LIBS="$LIBS"
7548	  lt_save_CFLAGS="$CFLAGS"
7549	  LIBS="conftstm.$ac_objext"
7550	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7551	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552  (eval $ac_link) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7556	    pipe_works=yes
7557	  fi
7558	  LIBS="$lt_save_LIBS"
7559	  CFLAGS="$lt_save_CFLAGS"
7560	else
7561	  echo "cannot find nm_test_func in $nlist" >&5
7562	fi
7563      else
7564	echo "cannot find nm_test_var in $nlist" >&5
7565      fi
7566    else
7567      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7568    fi
7569  else
7570    echo "$progname: failed program was:" >&5
7571    cat conftest.$ac_ext >&5
7572  fi
7573  rm -f conftest* conftst*
7574
7575  # Do not use the global_symbol_pipe unless it works.
7576  if test "$pipe_works" = yes; then
7577    break
7578  else
7579    lt_cv_sys_global_symbol_pipe=
7580  fi
7581done
7582
7583fi
7584
7585if test -z "$lt_cv_sys_global_symbol_pipe"; then
7586  lt_cv_sys_global_symbol_to_cdecl=
7587fi
7588if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7589  echo "$as_me:$LINENO: result: failed" >&5
7590echo "${ECHO_T}failed" >&6
7591else
7592  echo "$as_me:$LINENO: result: ok" >&5
7593echo "${ECHO_T}ok" >&6
7594fi
7595
7596
7597echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7598echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7599if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7600  echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602  if test -n "$lt_cv_sys_global_symbol_pipe"; then
7603    libltdl_cv_preloaded_symbols=yes
7604  else
7605    libltdl_cv_preloaded_symbols=no
7606  fi
7607
7608fi
7609echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7610echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7611if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7612
7613cat >>confdefs.h <<\_ACEOF
7614#define HAVE_PRELOADED_SYMBOLS 1
7615_ACEOF
7616
7617fi
7618
7619LIBADD_DL=
7620
7621ac_ext=c
7622ac_cpp='$CPP $CPPFLAGS'
7623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628echo "$as_me:$LINENO: checking for shl_load" >&5
7629echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7630if test "${ac_cv_func_shl_load+set}" = set; then
7631  echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633  cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h.  */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h.  */
7639/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7640   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7641#define shl_load innocuous_shl_load
7642
7643/* System header to define __stub macros and hopefully few prototypes,
7644    which can conflict with char shl_load (); below.
7645    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646    <limits.h> exists even on freestanding compilers.  */
7647
7648#ifdef __STDC__
7649# include <limits.h>
7650#else
7651# include <assert.h>
7652#endif
7653
7654#undef shl_load
7655
7656/* Override any gcc2 internal prototype to avoid an error.  */
7657#ifdef __cplusplus
7658extern "C"
7659{
7660#endif
7661/* We use char because int might match the return type of a gcc2
7662   builtin and then its argument prototype would still apply.  */
7663char shl_load ();
7664/* The GNU C library defines this for functions which it implements
7665    to always fail with ENOSYS.  Some functions are actually named
7666    something starting with __ and the normal name is an alias.  */
7667#if defined (__stub_shl_load) || defined (__stub___shl_load)
7668choke me
7669#else
7670char (*f) () = shl_load;
7671#endif
7672#ifdef __cplusplus
7673}
7674#endif
7675
7676int
7677main ()
7678{
7679return f != shl_load;
7680  ;
7681  return 0;
7682}
7683_ACEOF
7684rm -f conftest.$ac_objext conftest$ac_exeext
7685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686  (eval $ac_link) 2>conftest.er1
7687  ac_status=$?
7688  grep -v '^ *+' conftest.er1 >conftest.err
7689  rm -f conftest.er1
7690  cat conftest.err >&5
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); } &&
7693	 { ac_try='test -z "$ac_c_werror_flag"
7694			 || test ! -s conftest.err'
7695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696  (eval $ac_try) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; } &&
7700	 { ac_try='test -s conftest$ac_exeext'
7701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702  (eval $ac_try) 2>&5
7703  ac_status=$?
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); }; }; then
7706  ac_cv_func_shl_load=yes
7707else
7708  echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
7710
7711ac_cv_func_shl_load=no
7712fi
7713rm -f conftest.err conftest.$ac_objext \
7714      conftest$ac_exeext conftest.$ac_ext
7715fi
7716echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7717echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7718if test $ac_cv_func_shl_load = yes; then
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define HAVE_SHL_LOAD 1
7722_ACEOF
7723
7724else
7725  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7728  echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730  ac_check_lib_save_LIBS=$LIBS
7731LIBS="-ldld  $LIBS"
7732cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h.  */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h.  */
7738
7739/* Override any gcc2 internal prototype to avoid an error.  */
7740#ifdef __cplusplus
7741extern "C"
7742#endif
7743/* We use char because int might match the return type of a gcc2
7744   builtin and then its argument prototype would still apply.  */
7745char shl_load ();
7746int
7747main ()
7748{
7749shl_load ();
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754rm -f conftest.$ac_objext conftest$ac_exeext
7755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756  (eval $ac_link) 2>conftest.er1
7757  ac_status=$?
7758  grep -v '^ *+' conftest.er1 >conftest.err
7759  rm -f conftest.er1
7760  cat conftest.err >&5
7761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762  (exit $ac_status); } &&
7763	 { ac_try='test -z "$ac_c_werror_flag"
7764			 || test ! -s conftest.err'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; } &&
7770	 { ac_try='test -s conftest$ac_exeext'
7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772  (eval $ac_try) 2>&5
7773  ac_status=$?
7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775  (exit $ac_status); }; }; then
7776  ac_cv_lib_dld_shl_load=yes
7777else
7778  echo "$as_me: failed program was:" >&5
7779sed 's/^/| /' conftest.$ac_ext >&5
7780
7781ac_cv_lib_dld_shl_load=no
7782fi
7783rm -f conftest.err conftest.$ac_objext \
7784      conftest$ac_exeext conftest.$ac_ext
7785LIBS=$ac_check_lib_save_LIBS
7786fi
7787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7788echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7789if test $ac_cv_lib_dld_shl_load = yes; then
7790
7791cat >>confdefs.h <<\_ACEOF
7792#define HAVE_SHL_LOAD 1
7793_ACEOF
7794
7795	LIBADD_DL="$LIBADD_DL -ldld"
7796else
7797  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7798echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7799if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7800  echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802  ac_check_lib_save_LIBS=$LIBS
7803LIBS="-ldl  $LIBS"
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h.  */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h.  */
7810
7811/* Override any gcc2 internal prototype to avoid an error.  */
7812#ifdef __cplusplus
7813extern "C"
7814#endif
7815/* We use char because int might match the return type of a gcc2
7816   builtin and then its argument prototype would still apply.  */
7817char dlopen ();
7818int
7819main ()
7820{
7821dlopen ();
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828  (eval $ac_link) 2>conftest.er1
7829  ac_status=$?
7830  grep -v '^ *+' conftest.er1 >conftest.err
7831  rm -f conftest.er1
7832  cat conftest.err >&5
7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); } &&
7835	 { ac_try='test -z "$ac_c_werror_flag"
7836			 || test ! -s conftest.err'
7837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838  (eval $ac_try) 2>&5
7839  ac_status=$?
7840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841  (exit $ac_status); }; } &&
7842	 { ac_try='test -s conftest$ac_exeext'
7843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844  (eval $ac_try) 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; }; then
7848  ac_cv_lib_dl_dlopen=yes
7849else
7850  echo "$as_me: failed program was:" >&5
7851sed 's/^/| /' conftest.$ac_ext >&5
7852
7853ac_cv_lib_dl_dlopen=no
7854fi
7855rm -f conftest.err conftest.$ac_objext \
7856      conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7860echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7861if test $ac_cv_lib_dl_dlopen = yes; then
7862
7863cat >>confdefs.h <<\_ACEOF
7864#define HAVE_LIBDL 1
7865_ACEOF
7866
7867	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7868else
7869  cat >conftest.$ac_ext <<_ACEOF
7870/* confdefs.h.  */
7871_ACEOF
7872cat confdefs.h >>conftest.$ac_ext
7873cat >>conftest.$ac_ext <<_ACEOF
7874/* end confdefs.h.  */
7875#if HAVE_DLFCN_H
7876#  include <dlfcn.h>
7877#endif
7878
7879int
7880main ()
7881{
7882dlopen(0, 0);
7883  ;
7884  return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext conftest$ac_exeext
7888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7889  (eval $ac_link) 2>conftest.er1
7890  ac_status=$?
7891  grep -v '^ *+' conftest.er1 >conftest.err
7892  rm -f conftest.er1
7893  cat conftest.err >&5
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); } &&
7896	 { ac_try='test -z "$ac_c_werror_flag"
7897			 || test ! -s conftest.err'
7898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899  (eval $ac_try) 2>&5
7900  ac_status=$?
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); }; } &&
7903	 { ac_try='test -s conftest$ac_exeext'
7904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905  (eval $ac_try) 2>&5
7906  ac_status=$?
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); }; }; then
7909
7910cat >>confdefs.h <<\_ACEOF
7911#define HAVE_LIBDL 1
7912_ACEOF
7913 libltdl_cv_func_dlopen="yes"
7914else
7915  echo "$as_me: failed program was:" >&5
7916sed 's/^/| /' conftest.$ac_ext >&5
7917
7918echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7919echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7920if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923  ac_check_lib_save_LIBS=$LIBS
7924LIBS="-lsvld  $LIBS"
7925cat >conftest.$ac_ext <<_ACEOF
7926/* confdefs.h.  */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h.  */
7931
7932/* Override any gcc2 internal prototype to avoid an error.  */
7933#ifdef __cplusplus
7934extern "C"
7935#endif
7936/* We use char because int might match the return type of a gcc2
7937   builtin and then its argument prototype would still apply.  */
7938char dlopen ();
7939int
7940main ()
7941{
7942dlopen ();
7943  ;
7944  return 0;
7945}
7946_ACEOF
7947rm -f conftest.$ac_objext conftest$ac_exeext
7948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949  (eval $ac_link) 2>conftest.er1
7950  ac_status=$?
7951  grep -v '^ *+' conftest.er1 >conftest.err
7952  rm -f conftest.er1
7953  cat conftest.err >&5
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); } &&
7956	 { ac_try='test -z "$ac_c_werror_flag"
7957			 || test ! -s conftest.err'
7958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959  (eval $ac_try) 2>&5
7960  ac_status=$?
7961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962  (exit $ac_status); }; } &&
7963	 { ac_try='test -s conftest$ac_exeext'
7964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965  (eval $ac_try) 2>&5
7966  ac_status=$?
7967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968  (exit $ac_status); }; }; then
7969  ac_cv_lib_svld_dlopen=yes
7970else
7971  echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974ac_cv_lib_svld_dlopen=no
7975fi
7976rm -f conftest.err conftest.$ac_objext \
7977      conftest$ac_exeext conftest.$ac_ext
7978LIBS=$ac_check_lib_save_LIBS
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7981echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7982if test $ac_cv_lib_svld_dlopen = yes; then
7983
7984cat >>confdefs.h <<\_ACEOF
7985#define HAVE_LIBDL 1
7986_ACEOF
7987
7988	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7989else
7990  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7991echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7992if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7993  echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995  ac_check_lib_save_LIBS=$LIBS
7996LIBS="-ldld  $LIBS"
7997cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h.  */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h.  */
8003
8004/* Override any gcc2 internal prototype to avoid an error.  */
8005#ifdef __cplusplus
8006extern "C"
8007#endif
8008/* We use char because int might match the return type of a gcc2
8009   builtin and then its argument prototype would still apply.  */
8010char dld_link ();
8011int
8012main ()
8013{
8014dld_link ();
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext conftest$ac_exeext
8020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021  (eval $ac_link) 2>conftest.er1
8022  ac_status=$?
8023  grep -v '^ *+' conftest.er1 >conftest.err
8024  rm -f conftest.er1
8025  cat conftest.err >&5
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); } &&
8028	 { ac_try='test -z "$ac_c_werror_flag"
8029			 || test ! -s conftest.err'
8030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031  (eval $ac_try) 2>&5
8032  ac_status=$?
8033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034  (exit $ac_status); }; } &&
8035	 { ac_try='test -s conftest$ac_exeext'
8036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037  (eval $ac_try) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); }; }; then
8041  ac_cv_lib_dld_dld_link=yes
8042else
8043  echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046ac_cv_lib_dld_dld_link=no
8047fi
8048rm -f conftest.err conftest.$ac_objext \
8049      conftest$ac_exeext conftest.$ac_ext
8050LIBS=$ac_check_lib_save_LIBS
8051fi
8052echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8053echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8054if test $ac_cv_lib_dld_dld_link = yes; then
8055
8056cat >>confdefs.h <<\_ACEOF
8057#define HAVE_DLD 1
8058_ACEOF
8059
8060	 	LIBADD_DL="$LIBADD_DL -ldld"
8061else
8062  echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8063echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8064if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8065  echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067  cat >conftest.$ac_ext <<_ACEOF
8068/* confdefs.h.  */
8069_ACEOF
8070cat confdefs.h >>conftest.$ac_ext
8071cat >>conftest.$ac_ext <<_ACEOF
8072/* end confdefs.h.  */
8073/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8074   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8075#define _dyld_func_lookup innocuous__dyld_func_lookup
8076
8077/* System header to define __stub macros and hopefully few prototypes,
8078    which can conflict with char _dyld_func_lookup (); below.
8079    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8080    <limits.h> exists even on freestanding compilers.  */
8081
8082#ifdef __STDC__
8083# include <limits.h>
8084#else
8085# include <assert.h>
8086#endif
8087
8088#undef _dyld_func_lookup
8089
8090/* Override any gcc2 internal prototype to avoid an error.  */
8091#ifdef __cplusplus
8092extern "C"
8093{
8094#endif
8095/* We use char because int might match the return type of a gcc2
8096   builtin and then its argument prototype would still apply.  */
8097char _dyld_func_lookup ();
8098/* The GNU C library defines this for functions which it implements
8099    to always fail with ENOSYS.  Some functions are actually named
8100    something starting with __ and the normal name is an alias.  */
8101#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8102choke me
8103#else
8104char (*f) () = _dyld_func_lookup;
8105#endif
8106#ifdef __cplusplus
8107}
8108#endif
8109
8110int
8111main ()
8112{
8113return f != _dyld_func_lookup;
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118rm -f conftest.$ac_objext conftest$ac_exeext
8119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8120  (eval $ac_link) 2>conftest.er1
8121  ac_status=$?
8122  grep -v '^ *+' conftest.er1 >conftest.err
8123  rm -f conftest.er1
8124  cat conftest.err >&5
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); } &&
8127	 { ac_try='test -z "$ac_c_werror_flag"
8128			 || test ! -s conftest.err'
8129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130  (eval $ac_try) 2>&5
8131  ac_status=$?
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); }; } &&
8134	 { ac_try='test -s conftest$ac_exeext'
8135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136  (eval $ac_try) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); }; }; then
8140  ac_cv_func__dyld_func_lookup=yes
8141else
8142  echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145ac_cv_func__dyld_func_lookup=no
8146fi
8147rm -f conftest.err conftest.$ac_objext \
8148      conftest$ac_exeext conftest.$ac_ext
8149fi
8150echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8151echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8152if test $ac_cv_func__dyld_func_lookup = yes; then
8153
8154cat >>confdefs.h <<\_ACEOF
8155#define HAVE_DYLD 1
8156_ACEOF
8157
8158fi
8159
8160
8161fi
8162
8163
8164fi
8165
8166
8167fi
8168rm -f conftest.err conftest.$ac_objext \
8169      conftest$ac_exeext conftest.$ac_ext
8170
8171fi
8172
8173
8174fi
8175
8176
8177fi
8178
8179
8180if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8181then
8182  lt_save_LIBS="$LIBS"
8183  LIBS="$LIBS $LIBADD_DL"
8184
8185for ac_func in dlerror
8186do
8187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188echo "$as_me:$LINENO: checking for $ac_func" >&5
8189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8190if eval "test \"\${$as_ac_var+set}\" = set"; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h.  */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h.  */
8199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8200   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8201#define $ac_func innocuous_$ac_func
8202
8203/* System header to define __stub macros and hopefully few prototypes,
8204    which can conflict with char $ac_func (); below.
8205    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206    <limits.h> exists even on freestanding compilers.  */
8207
8208#ifdef __STDC__
8209# include <limits.h>
8210#else
8211# include <assert.h>
8212#endif
8213
8214#undef $ac_func
8215
8216/* Override any gcc2 internal prototype to avoid an error.  */
8217#ifdef __cplusplus
8218extern "C"
8219{
8220#endif
8221/* We use char because int might match the return type of a gcc2
8222   builtin and then its argument prototype would still apply.  */
8223char $ac_func ();
8224/* The GNU C library defines this for functions which it implements
8225    to always fail with ENOSYS.  Some functions are actually named
8226    something starting with __ and the normal name is an alias.  */
8227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228choke me
8229#else
8230char (*f) () = $ac_func;
8231#endif
8232#ifdef __cplusplus
8233}
8234#endif
8235
8236int
8237main ()
8238{
8239return f != $ac_func;
8240  ;
8241  return 0;
8242}
8243_ACEOF
8244rm -f conftest.$ac_objext conftest$ac_exeext
8245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246  (eval $ac_link) 2>conftest.er1
8247  ac_status=$?
8248  grep -v '^ *+' conftest.er1 >conftest.err
8249  rm -f conftest.er1
8250  cat conftest.err >&5
8251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252  (exit $ac_status); } &&
8253	 { ac_try='test -z "$ac_c_werror_flag"
8254			 || test ! -s conftest.err'
8255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256  (eval $ac_try) 2>&5
8257  ac_status=$?
8258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259  (exit $ac_status); }; } &&
8260	 { ac_try='test -s conftest$ac_exeext'
8261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262  (eval $ac_try) 2>&5
8263  ac_status=$?
8264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265  (exit $ac_status); }; }; then
8266  eval "$as_ac_var=yes"
8267else
8268  echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271eval "$as_ac_var=no"
8272fi
8273rm -f conftest.err conftest.$ac_objext \
8274      conftest$ac_exeext conftest.$ac_ext
8275fi
8276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8278if test `eval echo '${'$as_ac_var'}'` = yes; then
8279  cat >>confdefs.h <<_ACEOF
8280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8281_ACEOF
8282
8283fi
8284done
8285
8286  LIBS="$lt_save_LIBS"
8287fi
8288ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294
8295
8296echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8297echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8298if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8299  echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301  ac_cv_sys_symbol_underscore=no
8302  cat > conftest.$ac_ext <<EOF
8303void nm_test_func(){}
8304int main(){nm_test_func;return 0;}
8305EOF
8306  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8307  (eval $ac_compile) 2>&5
8308  ac_status=$?
8309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310  (exit $ac_status); }; then
8311    # Now try to grab the symbols.
8312    ac_nlist=conftest.nm
8313    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8314  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8315  ac_status=$?
8316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317  (exit $ac_status); } && test -s "$ac_nlist"; then
8318      # See whether the symbols have a leading underscore.
8319      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8320        ac_cv_sys_symbol_underscore=yes
8321      else
8322        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8323	  :
8324        else
8325	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8326        fi
8327      fi
8328    else
8329      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8330    fi
8331  else
8332    echo "configure: failed program was:" >&5
8333    cat conftest.c >&5
8334  fi
8335  rm -rf conftest*
8336
8337fi
8338echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8339echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8340
8341
8342if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8343  if test x"$libltdl_cv_func_dlopen" = xyes ||
8344     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8345	echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8346echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8347if test "${libltdl_cv_need_uscore+set}" = set; then
8348  echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350  libltdl_cv_need_uscore=unknown
8351          save_LIBS="$LIBS"
8352          LIBS="$LIBS $LIBADD_DL"
8353	  if test "$cross_compiling" = yes; then :
8354  libltdl_cv_need_uscore=cross
8355else
8356  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8357  lt_status=$lt_dlunknown
8358  cat > conftest.$ac_ext <<EOF
8359#line 8359 "configure"
8360#include "confdefs.h"
8361
8362#if HAVE_DLFCN_H
8363#include <dlfcn.h>
8364#endif
8365
8366#include <stdio.h>
8367
8368#ifdef RTLD_GLOBAL
8369#  define LT_DLGLOBAL		RTLD_GLOBAL
8370#else
8371#  ifdef DL_GLOBAL
8372#    define LT_DLGLOBAL		DL_GLOBAL
8373#  else
8374#    define LT_DLGLOBAL		0
8375#  endif
8376#endif
8377
8378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8379   find out it does not work in some platform. */
8380#ifndef LT_DLLAZY_OR_NOW
8381#  ifdef RTLD_LAZY
8382#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8383#  else
8384#    ifdef DL_LAZY
8385#      define LT_DLLAZY_OR_NOW		DL_LAZY
8386#    else
8387#      ifdef RTLD_NOW
8388#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8389#      else
8390#        ifdef DL_NOW
8391#          define LT_DLLAZY_OR_NOW	DL_NOW
8392#        else
8393#          define LT_DLLAZY_OR_NOW	0
8394#        endif
8395#      endif
8396#    endif
8397#  endif
8398#endif
8399
8400#ifdef __cplusplus
8401extern "C" void exit (int);
8402#endif
8403
8404void fnord() { int i=42;}
8405int main ()
8406{
8407  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8408  int status = $lt_dlunknown;
8409
8410  if (self)
8411    {
8412      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8413      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8414      /* dlclose (self); */
8415    }
8416
8417    exit (status);
8418}
8419EOF
8420  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421  (eval $ac_link) 2>&5
8422  ac_status=$?
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8425    (./conftest; exit; ) 2>/dev/null
8426    lt_status=$?
8427    case x$lt_status in
8428      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8429      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8430      x$lt_unknown|x*)  ;;
8431    esac
8432  else :
8433    # compilation failed
8434
8435  fi
8436fi
8437rm -fr conftest*
8438
8439	  LIBS="$save_LIBS"
8440
8441fi
8442echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8443echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8444  fi
8445fi
8446
8447if test x"$libltdl_cv_need_uscore" = xyes; then
8448
8449cat >>confdefs.h <<\_ACEOF
8450#define NEED_USCORE 1
8451_ACEOF
8452
8453fi
8454
8455
8456echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8457echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8458if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8459  echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
8461  # PORTME does your system automatically load deplibs for dlopen?
8462  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8463  # For now, we just catch OSes we know something about -- in the
8464  # future, we'll try test this programmatically.
8465  libltdl_cv_sys_dlopen_deplibs=unknown
8466  case "$host_os" in
8467  aix3*|aix4.1.*|aix4.2.*)
8468    # Unknown whether this is true for these versions of AIX, but
8469    # we want this `case' here to explicitly catch those versions.
8470    libltdl_cv_sys_dlopen_deplibs=unknown
8471    ;;
8472  aix[45]*)
8473    libltdl_cv_sys_dlopen_deplibs=yes
8474    ;;
8475  darwin*)
8476    # Assuming the user has installed a libdl from somewhere, this is true
8477    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8478    libltdl_cv_sys_dlopen_deplibs=yes
8479    ;;
8480  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8481    # GNU and its variants, using gnu ld.so (Glibc)
8482    libltdl_cv_sys_dlopen_deplibs=yes
8483    ;;
8484  hpux10*|hpux11*)
8485    libltdl_cv_sys_dlopen_deplibs=yes
8486    ;;
8487  irix[12345]*|irix6.[01]*)
8488    # Catch all versions of IRIX before 6.2, and indicate that we don't
8489    # know how it worked for any of those versions.
8490    libltdl_cv_sys_dlopen_deplibs=unknown
8491    ;;
8492  irix*)
8493    # The case above catches anything before 6.2, and it's known that
8494    # at 6.2 and later dlopen does load deplibs.
8495    libltdl_cv_sys_dlopen_deplibs=yes
8496    ;;
8497  netbsd*)
8498    libltdl_cv_sys_dlopen_deplibs=yes
8499    ;;
8500  openbsd*)
8501    libltdl_cv_sys_dlopen_deplibs=yes
8502    ;;
8503  osf[1234]*)
8504    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8505    # it did *not* use an RPATH in a shared library to find objects the
8506    # library depends on, so we explictly say `no'.
8507    libltdl_cv_sys_dlopen_deplibs=no
8508    ;;
8509  osf5.0|osf5.0a|osf5.1)
8510    # dlopen *does* load deplibs and with the right loader patch applied
8511    # it even uses RPATH in a shared library to search for shared objects
8512    # that the library depends on, but there's no easy way to know if that
8513    # patch is installed.  Since this is the case, all we can really
8514    # say is unknown -- it depends on the patch being installed.  If
8515    # it is, this changes to `yes'.  Without it, it would be `no'.
8516    libltdl_cv_sys_dlopen_deplibs=unknown
8517    ;;
8518  osf*)
8519    # the two cases above should catch all versions of osf <= 5.1.  Read
8520    # the comments above for what we know about them.
8521    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8522    # is used to find them so we can finally say `yes'.
8523    libltdl_cv_sys_dlopen_deplibs=yes
8524    ;;
8525  solaris*)
8526    libltdl_cv_sys_dlopen_deplibs=yes
8527    ;;
8528  esac
8529
8530fi
8531echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8532echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8533if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define LTDL_DLOPEN_DEPLIBS 1
8537_ACEOF
8538
8539fi
8540
8541
8542for ac_header in argz.h
8543do
8544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8545if eval "test \"\${$as_ac_Header+set}\" = set"; then
8546  echo "$as_me:$LINENO: checking for $ac_header" >&5
8547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549  echo $ECHO_N "(cached) $ECHO_C" >&6
8550fi
8551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553else
8554  # Is the header compilable?
8555echo "$as_me:$LINENO: checking $ac_header usability" >&5
8556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8557cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h.  */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h.  */
8563$ac_includes_default
8564#include <$ac_header>
8565_ACEOF
8566rm -f conftest.$ac_objext
8567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568  (eval $ac_compile) 2>conftest.er1
8569  ac_status=$?
8570  grep -v '^ *+' conftest.er1 >conftest.err
8571  rm -f conftest.er1
8572  cat conftest.err >&5
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); } &&
8575	 { ac_try='test -z "$ac_c_werror_flag"
8576			 || test ! -s conftest.err'
8577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578  (eval $ac_try) 2>&5
8579  ac_status=$?
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); }; } &&
8582	 { ac_try='test -s conftest.$ac_objext'
8583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584  (eval $ac_try) 2>&5
8585  ac_status=$?
8586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587  (exit $ac_status); }; }; then
8588  ac_header_compiler=yes
8589else
8590  echo "$as_me: failed program was:" >&5
8591sed 's/^/| /' conftest.$ac_ext >&5
8592
8593ac_header_compiler=no
8594fi
8595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8597echo "${ECHO_T}$ac_header_compiler" >&6
8598
8599# Is the header present?
8600echo "$as_me:$LINENO: checking $ac_header presence" >&5
8601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8602cat >conftest.$ac_ext <<_ACEOF
8603/* confdefs.h.  */
8604_ACEOF
8605cat confdefs.h >>conftest.$ac_ext
8606cat >>conftest.$ac_ext <<_ACEOF
8607/* end confdefs.h.  */
8608#include <$ac_header>
8609_ACEOF
8610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8612  ac_status=$?
8613  grep -v '^ *+' conftest.er1 >conftest.err
8614  rm -f conftest.er1
8615  cat conftest.err >&5
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); } >/dev/null; then
8618  if test -s conftest.err; then
8619    ac_cpp_err=$ac_c_preproc_warn_flag
8620    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8621  else
8622    ac_cpp_err=
8623  fi
8624else
8625  ac_cpp_err=yes
8626fi
8627if test -z "$ac_cpp_err"; then
8628  ac_header_preproc=yes
8629else
8630  echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633  ac_header_preproc=no
8634fi
8635rm -f conftest.err conftest.$ac_ext
8636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8637echo "${ECHO_T}$ac_header_preproc" >&6
8638
8639# So?  What about this header?
8640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8641  yes:no: )
8642    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8646    ac_header_preproc=yes
8647    ;;
8648  no:yes:* )
8649    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8651    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8652echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8653    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8655    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8656echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8657    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8659    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8661    (
8662      cat <<\_ASBOX
8663## ----------------------------------- ##
8664## Report this to llvmbugs@cs.uiuc.edu ##
8665## ----------------------------------- ##
8666_ASBOX
8667    ) |
8668      sed "s/^/$as_me: WARNING:     /" >&2
8669    ;;
8670esac
8671echo "$as_me:$LINENO: checking for $ac_header" >&5
8672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8673if eval "test \"\${$as_ac_Header+set}\" = set"; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  eval "$as_ac_Header=\$ac_header_preproc"
8677fi
8678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8680
8681fi
8682if test `eval echo '${'$as_ac_Header'}'` = yes; then
8683  cat >>confdefs.h <<_ACEOF
8684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8685_ACEOF
8686
8687fi
8688
8689done
8690
8691
8692echo "$as_me:$LINENO: checking for error_t" >&5
8693echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8694if test "${ac_cv_type_error_t+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h.  */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h.  */
8703#if HAVE_ARGZ_H
8704#  include <argz.h>
8705#endif
8706
8707int
8708main ()
8709{
8710if ((error_t *) 0)
8711  return 0;
8712if (sizeof (error_t))
8713  return 0;
8714  ;
8715  return 0;
8716}
8717_ACEOF
8718rm -f conftest.$ac_objext
8719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720  (eval $ac_compile) 2>conftest.er1
8721  ac_status=$?
8722  grep -v '^ *+' conftest.er1 >conftest.err
8723  rm -f conftest.er1
8724  cat conftest.err >&5
8725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726  (exit $ac_status); } &&
8727	 { ac_try='test -z "$ac_c_werror_flag"
8728			 || test ! -s conftest.err'
8729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730  (eval $ac_try) 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; } &&
8734	 { ac_try='test -s conftest.$ac_objext'
8735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736  (eval $ac_try) 2>&5
8737  ac_status=$?
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); }; }; then
8740  ac_cv_type_error_t=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745ac_cv_type_error_t=no
8746fi
8747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748fi
8749echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8750echo "${ECHO_T}$ac_cv_type_error_t" >&6
8751if test $ac_cv_type_error_t = yes; then
8752
8753cat >>confdefs.h <<_ACEOF
8754#define HAVE_ERROR_T 1
8755_ACEOF
8756
8757
8758else
8759
8760cat >>confdefs.h <<\_ACEOF
8761#define error_t int
8762_ACEOF
8763
8764fi
8765
8766
8767
8768
8769
8770
8771
8772for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8773do
8774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8775echo "$as_me:$LINENO: checking for $ac_func" >&5
8776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8777if eval "test \"\${$as_ac_var+set}\" = set"; then
8778  echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780  cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h.  */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h.  */
8786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8788#define $ac_func innocuous_$ac_func
8789
8790/* System header to define __stub macros and hopefully few prototypes,
8791    which can conflict with char $ac_func (); below.
8792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793    <limits.h> exists even on freestanding compilers.  */
8794
8795#ifdef __STDC__
8796# include <limits.h>
8797#else
8798# include <assert.h>
8799#endif
8800
8801#undef $ac_func
8802
8803/* Override any gcc2 internal prototype to avoid an error.  */
8804#ifdef __cplusplus
8805extern "C"
8806{
8807#endif
8808/* We use char because int might match the return type of a gcc2
8809   builtin and then its argument prototype would still apply.  */
8810char $ac_func ();
8811/* The GNU C library defines this for functions which it implements
8812    to always fail with ENOSYS.  Some functions are actually named
8813    something starting with __ and the normal name is an alias.  */
8814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8815choke me
8816#else
8817char (*f) () = $ac_func;
8818#endif
8819#ifdef __cplusplus
8820}
8821#endif
8822
8823int
8824main ()
8825{
8826return f != $ac_func;
8827  ;
8828  return 0;
8829}
8830_ACEOF
8831rm -f conftest.$ac_objext conftest$ac_exeext
8832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833  (eval $ac_link) 2>conftest.er1
8834  ac_status=$?
8835  grep -v '^ *+' conftest.er1 >conftest.err
8836  rm -f conftest.er1
8837  cat conftest.err >&5
8838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839  (exit $ac_status); } &&
8840	 { ac_try='test -z "$ac_c_werror_flag"
8841			 || test ! -s conftest.err'
8842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843  (eval $ac_try) 2>&5
8844  ac_status=$?
8845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846  (exit $ac_status); }; } &&
8847	 { ac_try='test -s conftest$ac_exeext'
8848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849  (eval $ac_try) 2>&5
8850  ac_status=$?
8851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852  (exit $ac_status); }; }; then
8853  eval "$as_ac_var=yes"
8854else
8855  echo "$as_me: failed program was:" >&5
8856sed 's/^/| /' conftest.$ac_ext >&5
8857
8858eval "$as_ac_var=no"
8859fi
8860rm -f conftest.err conftest.$ac_objext \
8861      conftest$ac_exeext conftest.$ac_ext
8862fi
8863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8865if test `eval echo '${'$as_ac_var'}'` = yes; then
8866  cat >>confdefs.h <<_ACEOF
8867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8868_ACEOF
8869
8870fi
8871done
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8901		  stdio.h unistd.h
8902do
8903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905  echo "$as_me:$LINENO: checking for $ac_header" >&5
8906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908  echo $ECHO_N "(cached) $ECHO_C" >&6
8909fi
8910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8912else
8913  # Is the header compilable?
8914echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h.  */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h.  */
8922$ac_includes_default
8923#include <$ac_header>
8924_ACEOF
8925rm -f conftest.$ac_objext
8926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927  (eval $ac_compile) 2>conftest.er1
8928  ac_status=$?
8929  grep -v '^ *+' conftest.er1 >conftest.err
8930  rm -f conftest.er1
8931  cat conftest.err >&5
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); } &&
8934	 { ac_try='test -z "$ac_c_werror_flag"
8935			 || test ! -s conftest.err'
8936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937  (eval $ac_try) 2>&5
8938  ac_status=$?
8939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940  (exit $ac_status); }; } &&
8941	 { ac_try='test -s conftest.$ac_objext'
8942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943  (eval $ac_try) 2>&5
8944  ac_status=$?
8945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946  (exit $ac_status); }; }; then
8947  ac_header_compiler=yes
8948else
8949  echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952ac_header_compiler=no
8953fi
8954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956echo "${ECHO_T}$ac_header_compiler" >&6
8957
8958# Is the header present?
8959echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961cat >conftest.$ac_ext <<_ACEOF
8962/* confdefs.h.  */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h.  */
8967#include <$ac_header>
8968_ACEOF
8969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8971  ac_status=$?
8972  grep -v '^ *+' conftest.er1 >conftest.err
8973  rm -f conftest.er1
8974  cat conftest.err >&5
8975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976  (exit $ac_status); } >/dev/null; then
8977  if test -s conftest.err; then
8978    ac_cpp_err=$ac_c_preproc_warn_flag
8979    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8980  else
8981    ac_cpp_err=
8982  fi
8983else
8984  ac_cpp_err=yes
8985fi
8986if test -z "$ac_cpp_err"; then
8987  ac_header_preproc=yes
8988else
8989  echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992  ac_header_preproc=no
8993fi
8994rm -f conftest.err conftest.$ac_ext
8995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996echo "${ECHO_T}$ac_header_preproc" >&6
8997
8998# So?  What about this header?
8999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9000  yes:no: )
9001    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005    ac_header_preproc=yes
9006    ;;
9007  no:yes:* )
9008    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9011echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9012    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9015echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9016    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9020    (
9021      cat <<\_ASBOX
9022## ----------------------------------- ##
9023## Report this to llvmbugs@cs.uiuc.edu ##
9024## ----------------------------------- ##
9025_ASBOX
9026    ) |
9027      sed "s/^/$as_me: WARNING:     /" >&2
9028    ;;
9029esac
9030echo "$as_me:$LINENO: checking for $ac_header" >&5
9031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033  echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035  eval "$as_ac_Header=\$ac_header_preproc"
9036fi
9037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9039
9040fi
9041if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042  cat >>confdefs.h <<_ACEOF
9043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044_ACEOF
9045
9046fi
9047
9048done
9049
9050
9051
9052
9053
9054for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9055do
9056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9057if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058  echo "$as_me:$LINENO: checking for $ac_header" >&5
9059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9060if eval "test \"\${$as_ac_Header+set}\" = set"; then
9061  echo $ECHO_N "(cached) $ECHO_C" >&6
9062fi
9063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065else
9066  # Is the header compilable?
9067echo "$as_me:$LINENO: checking $ac_header usability" >&5
9068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9069cat >conftest.$ac_ext <<_ACEOF
9070/* confdefs.h.  */
9071_ACEOF
9072cat confdefs.h >>conftest.$ac_ext
9073cat >>conftest.$ac_ext <<_ACEOF
9074/* end confdefs.h.  */
9075$ac_includes_default
9076#include <$ac_header>
9077_ACEOF
9078rm -f conftest.$ac_objext
9079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080  (eval $ac_compile) 2>conftest.er1
9081  ac_status=$?
9082  grep -v '^ *+' conftest.er1 >conftest.err
9083  rm -f conftest.er1
9084  cat conftest.err >&5
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } &&
9087	 { ac_try='test -z "$ac_c_werror_flag"
9088			 || test ! -s conftest.err'
9089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090  (eval $ac_try) 2>&5
9091  ac_status=$?
9092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093  (exit $ac_status); }; } &&
9094	 { ac_try='test -s conftest.$ac_objext'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; }; then
9100  ac_header_compiler=yes
9101else
9102  echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
9105ac_header_compiler=no
9106fi
9107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9109echo "${ECHO_T}$ac_header_compiler" >&6
9110
9111# Is the header present?
9112echo "$as_me:$LINENO: checking $ac_header presence" >&5
9113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9114cat >conftest.$ac_ext <<_ACEOF
9115/* confdefs.h.  */
9116_ACEOF
9117cat confdefs.h >>conftest.$ac_ext
9118cat >>conftest.$ac_ext <<_ACEOF
9119/* end confdefs.h.  */
9120#include <$ac_header>
9121_ACEOF
9122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9123  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9124  ac_status=$?
9125  grep -v '^ *+' conftest.er1 >conftest.err
9126  rm -f conftest.er1
9127  cat conftest.err >&5
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); } >/dev/null; then
9130  if test -s conftest.err; then
9131    ac_cpp_err=$ac_c_preproc_warn_flag
9132    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9133  else
9134    ac_cpp_err=
9135  fi
9136else
9137  ac_cpp_err=yes
9138fi
9139if test -z "$ac_cpp_err"; then
9140  ac_header_preproc=yes
9141else
9142  echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145  ac_header_preproc=no
9146fi
9147rm -f conftest.err conftest.$ac_ext
9148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9149echo "${ECHO_T}$ac_header_preproc" >&6
9150
9151# So?  What about this header?
9152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9153  yes:no: )
9154    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9156    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9158    ac_header_preproc=yes
9159    ;;
9160  no:yes:* )
9161    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9163    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9164echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9165    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9167    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9168echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9171    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9173    (
9174      cat <<\_ASBOX
9175## ----------------------------------- ##
9176## Report this to llvmbugs@cs.uiuc.edu ##
9177## ----------------------------------- ##
9178_ASBOX
9179    ) |
9180      sed "s/^/$as_me: WARNING:     /" >&2
9181    ;;
9182esac
9183echo "$as_me:$LINENO: checking for $ac_header" >&5
9184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186  echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188  eval "$as_ac_Header=\$ac_header_preproc"
9189fi
9190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9192
9193fi
9194if test `eval echo '${'$as_ac_Header'}'` = yes; then
9195  cat >>confdefs.h <<_ACEOF
9196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9197_ACEOF
9198
9199fi
9200
9201done
9202
9203
9204
9205for ac_header in string.h strings.h
9206do
9207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9208if eval "test \"\${$as_ac_Header+set}\" = set"; then
9209  echo "$as_me:$LINENO: checking for $ac_header" >&5
9210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9211if eval "test \"\${$as_ac_Header+set}\" = set"; then
9212  echo $ECHO_N "(cached) $ECHO_C" >&6
9213fi
9214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9216else
9217  # Is the header compilable?
9218echo "$as_me:$LINENO: checking $ac_header usability" >&5
9219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9220cat >conftest.$ac_ext <<_ACEOF
9221/* confdefs.h.  */
9222_ACEOF
9223cat confdefs.h >>conftest.$ac_ext
9224cat >>conftest.$ac_ext <<_ACEOF
9225/* end confdefs.h.  */
9226$ac_includes_default
9227#include <$ac_header>
9228_ACEOF
9229rm -f conftest.$ac_objext
9230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9231  (eval $ac_compile) 2>conftest.er1
9232  ac_status=$?
9233  grep -v '^ *+' conftest.er1 >conftest.err
9234  rm -f conftest.er1
9235  cat conftest.err >&5
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); } &&
9238	 { ac_try='test -z "$ac_c_werror_flag"
9239			 || test ! -s conftest.err'
9240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241  (eval $ac_try) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); }; } &&
9245	 { ac_try='test -s conftest.$ac_objext'
9246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247  (eval $ac_try) 2>&5
9248  ac_status=$?
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); }; }; then
9251  ac_header_compiler=yes
9252else
9253  echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256ac_header_compiler=no
9257fi
9258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9260echo "${ECHO_T}$ac_header_compiler" >&6
9261
9262# Is the header present?
9263echo "$as_me:$LINENO: checking $ac_header presence" >&5
9264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9265cat >conftest.$ac_ext <<_ACEOF
9266/* confdefs.h.  */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h.  */
9271#include <$ac_header>
9272_ACEOF
9273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9275  ac_status=$?
9276  grep -v '^ *+' conftest.er1 >conftest.err
9277  rm -f conftest.er1
9278  cat conftest.err >&5
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); } >/dev/null; then
9281  if test -s conftest.err; then
9282    ac_cpp_err=$ac_c_preproc_warn_flag
9283    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9284  else
9285    ac_cpp_err=
9286  fi
9287else
9288  ac_cpp_err=yes
9289fi
9290if test -z "$ac_cpp_err"; then
9291  ac_header_preproc=yes
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296  ac_header_preproc=no
9297fi
9298rm -f conftest.err conftest.$ac_ext
9299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9300echo "${ECHO_T}$ac_header_preproc" >&6
9301
9302# So?  What about this header?
9303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9304  yes:no: )
9305    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9309    ac_header_preproc=yes
9310    ;;
9311  no:yes:* )
9312    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9314    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9315echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9316    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9318    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9319echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9322    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9324    (
9325      cat <<\_ASBOX
9326## ----------------------------------- ##
9327## Report this to llvmbugs@cs.uiuc.edu ##
9328## ----------------------------------- ##
9329_ASBOX
9330    ) |
9331      sed "s/^/$as_me: WARNING:     /" >&2
9332    ;;
9333esac
9334echo "$as_me:$LINENO: checking for $ac_header" >&5
9335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9336if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337  echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339  eval "$as_ac_Header=\$ac_header_preproc"
9340fi
9341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9343
9344fi
9345if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346  cat >>confdefs.h <<_ACEOF
9347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348_ACEOF
9349 break
9350fi
9351
9352done
9353
9354
9355
9356
9357for ac_func in strchr index
9358do
9359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9360echo "$as_me:$LINENO: checking for $ac_func" >&5
9361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9362if eval "test \"\${$as_ac_var+set}\" = set"; then
9363  echo $ECHO_N "(cached) $ECHO_C" >&6
9364else
9365  cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h.  */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h.  */
9371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9372   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9373#define $ac_func innocuous_$ac_func
9374
9375/* System header to define __stub macros and hopefully few prototypes,
9376    which can conflict with char $ac_func (); below.
9377    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9378    <limits.h> exists even on freestanding compilers.  */
9379
9380#ifdef __STDC__
9381# include <limits.h>
9382#else
9383# include <assert.h>
9384#endif
9385
9386#undef $ac_func
9387
9388/* Override any gcc2 internal prototype to avoid an error.  */
9389#ifdef __cplusplus
9390extern "C"
9391{
9392#endif
9393/* We use char because int might match the return type of a gcc2
9394   builtin and then its argument prototype would still apply.  */
9395char $ac_func ();
9396/* The GNU C library defines this for functions which it implements
9397    to always fail with ENOSYS.  Some functions are actually named
9398    something starting with __ and the normal name is an alias.  */
9399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9400choke me
9401#else
9402char (*f) () = $ac_func;
9403#endif
9404#ifdef __cplusplus
9405}
9406#endif
9407
9408int
9409main ()
9410{
9411return f != $ac_func;
9412  ;
9413  return 0;
9414}
9415_ACEOF
9416rm -f conftest.$ac_objext conftest$ac_exeext
9417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418  (eval $ac_link) 2>conftest.er1
9419  ac_status=$?
9420  grep -v '^ *+' conftest.er1 >conftest.err
9421  rm -f conftest.er1
9422  cat conftest.err >&5
9423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424  (exit $ac_status); } &&
9425	 { ac_try='test -z "$ac_c_werror_flag"
9426			 || test ! -s conftest.err'
9427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428  (eval $ac_try) 2>&5
9429  ac_status=$?
9430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431  (exit $ac_status); }; } &&
9432	 { ac_try='test -s conftest$ac_exeext'
9433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434  (eval $ac_try) 2>&5
9435  ac_status=$?
9436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437  (exit $ac_status); }; }; then
9438  eval "$as_ac_var=yes"
9439else
9440  echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
9443eval "$as_ac_var=no"
9444fi
9445rm -f conftest.err conftest.$ac_objext \
9446      conftest$ac_exeext conftest.$ac_ext
9447fi
9448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9450if test `eval echo '${'$as_ac_var'}'` = yes; then
9451  cat >>confdefs.h <<_ACEOF
9452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9453_ACEOF
9454 break
9455fi
9456done
9457
9458
9459
9460for ac_func in strrchr rindex
9461do
9462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463echo "$as_me:$LINENO: checking for $ac_func" >&5
9464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9465if eval "test \"\${$as_ac_var+set}\" = set"; then
9466  echo $ECHO_N "(cached) $ECHO_C" >&6
9467else
9468  cat >conftest.$ac_ext <<_ACEOF
9469/* confdefs.h.  */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
9473/* end confdefs.h.  */
9474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476#define $ac_func innocuous_$ac_func
9477
9478/* System header to define __stub macros and hopefully few prototypes,
9479    which can conflict with char $ac_func (); below.
9480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481    <limits.h> exists even on freestanding compilers.  */
9482
9483#ifdef __STDC__
9484# include <limits.h>
9485#else
9486# include <assert.h>
9487#endif
9488
9489#undef $ac_func
9490
9491/* Override any gcc2 internal prototype to avoid an error.  */
9492#ifdef __cplusplus
9493extern "C"
9494{
9495#endif
9496/* We use char because int might match the return type of a gcc2
9497   builtin and then its argument prototype would still apply.  */
9498char $ac_func ();
9499/* The GNU C library defines this for functions which it implements
9500    to always fail with ENOSYS.  Some functions are actually named
9501    something starting with __ and the normal name is an alias.  */
9502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503choke me
9504#else
9505char (*f) () = $ac_func;
9506#endif
9507#ifdef __cplusplus
9508}
9509#endif
9510
9511int
9512main ()
9513{
9514return f != $ac_func;
9515  ;
9516  return 0;
9517}
9518_ACEOF
9519rm -f conftest.$ac_objext conftest$ac_exeext
9520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521  (eval $ac_link) 2>conftest.er1
9522  ac_status=$?
9523  grep -v '^ *+' conftest.er1 >conftest.err
9524  rm -f conftest.er1
9525  cat conftest.err >&5
9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527  (exit $ac_status); } &&
9528	 { ac_try='test -z "$ac_c_werror_flag"
9529			 || test ! -s conftest.err'
9530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531  (eval $ac_try) 2>&5
9532  ac_status=$?
9533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534  (exit $ac_status); }; } &&
9535	 { ac_try='test -s conftest$ac_exeext'
9536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537  (eval $ac_try) 2>&5
9538  ac_status=$?
9539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540  (exit $ac_status); }; }; then
9541  eval "$as_ac_var=yes"
9542else
9543  echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546eval "$as_ac_var=no"
9547fi
9548rm -f conftest.err conftest.$ac_objext \
9549      conftest$ac_exeext conftest.$ac_ext
9550fi
9551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9553if test `eval echo '${'$as_ac_var'}'` = yes; then
9554  cat >>confdefs.h <<_ACEOF
9555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9556_ACEOF
9557 break
9558fi
9559done
9560
9561
9562
9563for ac_func in memcpy bcopy
9564do
9565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9566echo "$as_me:$LINENO: checking for $ac_func" >&5
9567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9568if eval "test \"\${$as_ac_var+set}\" = set"; then
9569  echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571  cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h.  */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
9576/* end confdefs.h.  */
9577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9578   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9579#define $ac_func innocuous_$ac_func
9580
9581/* System header to define __stub macros and hopefully few prototypes,
9582    which can conflict with char $ac_func (); below.
9583    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584    <limits.h> exists even on freestanding compilers.  */
9585
9586#ifdef __STDC__
9587# include <limits.h>
9588#else
9589# include <assert.h>
9590#endif
9591
9592#undef $ac_func
9593
9594/* Override any gcc2 internal prototype to avoid an error.  */
9595#ifdef __cplusplus
9596extern "C"
9597{
9598#endif
9599/* We use char because int might match the return type of a gcc2
9600   builtin and then its argument prototype would still apply.  */
9601char $ac_func ();
9602/* The GNU C library defines this for functions which it implements
9603    to always fail with ENOSYS.  Some functions are actually named
9604    something starting with __ and the normal name is an alias.  */
9605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9606choke me
9607#else
9608char (*f) () = $ac_func;
9609#endif
9610#ifdef __cplusplus
9611}
9612#endif
9613
9614int
9615main ()
9616{
9617return f != $ac_func;
9618  ;
9619  return 0;
9620}
9621_ACEOF
9622rm -f conftest.$ac_objext conftest$ac_exeext
9623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9624  (eval $ac_link) 2>conftest.er1
9625  ac_status=$?
9626  grep -v '^ *+' conftest.er1 >conftest.err
9627  rm -f conftest.er1
9628  cat conftest.err >&5
9629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630  (exit $ac_status); } &&
9631	 { ac_try='test -z "$ac_c_werror_flag"
9632			 || test ! -s conftest.err'
9633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634  (eval $ac_try) 2>&5
9635  ac_status=$?
9636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637  (exit $ac_status); }; } &&
9638	 { ac_try='test -s conftest$ac_exeext'
9639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640  (eval $ac_try) 2>&5
9641  ac_status=$?
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); }; }; then
9644  eval "$as_ac_var=yes"
9645else
9646  echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649eval "$as_ac_var=no"
9650fi
9651rm -f conftest.err conftest.$ac_objext \
9652      conftest$ac_exeext conftest.$ac_ext
9653fi
9654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9656if test `eval echo '${'$as_ac_var'}'` = yes; then
9657  cat >>confdefs.h <<_ACEOF
9658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9659_ACEOF
9660 break
9661fi
9662done
9663
9664
9665
9666for ac_func in memmove strcmp
9667do
9668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9669echo "$as_me:$LINENO: checking for $ac_func" >&5
9670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9671if eval "test \"\${$as_ac_var+set}\" = set"; then
9672  echo $ECHO_N "(cached) $ECHO_C" >&6
9673else
9674  cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h.  */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h.  */
9680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9681   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9682#define $ac_func innocuous_$ac_func
9683
9684/* System header to define __stub macros and hopefully few prototypes,
9685    which can conflict with char $ac_func (); below.
9686    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687    <limits.h> exists even on freestanding compilers.  */
9688
9689#ifdef __STDC__
9690# include <limits.h>
9691#else
9692# include <assert.h>
9693#endif
9694
9695#undef $ac_func
9696
9697/* Override any gcc2 internal prototype to avoid an error.  */
9698#ifdef __cplusplus
9699extern "C"
9700{
9701#endif
9702/* We use char because int might match the return type of a gcc2
9703   builtin and then its argument prototype would still apply.  */
9704char $ac_func ();
9705/* The GNU C library defines this for functions which it implements
9706    to always fail with ENOSYS.  Some functions are actually named
9707    something starting with __ and the normal name is an alias.  */
9708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9709choke me
9710#else
9711char (*f) () = $ac_func;
9712#endif
9713#ifdef __cplusplus
9714}
9715#endif
9716
9717int
9718main ()
9719{
9720return f != $ac_func;
9721  ;
9722  return 0;
9723}
9724_ACEOF
9725rm -f conftest.$ac_objext conftest$ac_exeext
9726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9727  (eval $ac_link) 2>conftest.er1
9728  ac_status=$?
9729  grep -v '^ *+' conftest.er1 >conftest.err
9730  rm -f conftest.er1
9731  cat conftest.err >&5
9732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733  (exit $ac_status); } &&
9734	 { ac_try='test -z "$ac_c_werror_flag"
9735			 || test ! -s conftest.err'
9736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737  (eval $ac_try) 2>&5
9738  ac_status=$?
9739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740  (exit $ac_status); }; } &&
9741	 { ac_try='test -s conftest$ac_exeext'
9742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743  (eval $ac_try) 2>&5
9744  ac_status=$?
9745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); }; }; then
9747  eval "$as_ac_var=yes"
9748else
9749  echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752eval "$as_ac_var=no"
9753fi
9754rm -f conftest.err conftest.$ac_objext \
9755      conftest$ac_exeext conftest.$ac_ext
9756fi
9757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9759if test `eval echo '${'$as_ac_var'}'` = yes; then
9760  cat >>confdefs.h <<_ACEOF
9761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9762_ACEOF
9763
9764fi
9765done
9766
9767
9768
9769
9770for ac_func in closedir opendir readdir
9771do
9772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773echo "$as_me:$LINENO: checking for $ac_func" >&5
9774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775if eval "test \"\${$as_ac_var+set}\" = set"; then
9776  echo $ECHO_N "(cached) $ECHO_C" >&6
9777else
9778  cat >conftest.$ac_ext <<_ACEOF
9779/* confdefs.h.  */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h.  */
9784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9785   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9786#define $ac_func innocuous_$ac_func
9787
9788/* System header to define __stub macros and hopefully few prototypes,
9789    which can conflict with char $ac_func (); below.
9790    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791    <limits.h> exists even on freestanding compilers.  */
9792
9793#ifdef __STDC__
9794# include <limits.h>
9795#else
9796# include <assert.h>
9797#endif
9798
9799#undef $ac_func
9800
9801/* Override any gcc2 internal prototype to avoid an error.  */
9802#ifdef __cplusplus
9803extern "C"
9804{
9805#endif
9806/* We use char because int might match the return type of a gcc2
9807   builtin and then its argument prototype would still apply.  */
9808char $ac_func ();
9809/* The GNU C library defines this for functions which it implements
9810    to always fail with ENOSYS.  Some functions are actually named
9811    something starting with __ and the normal name is an alias.  */
9812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813choke me
9814#else
9815char (*f) () = $ac_func;
9816#endif
9817#ifdef __cplusplus
9818}
9819#endif
9820
9821int
9822main ()
9823{
9824return f != $ac_func;
9825  ;
9826  return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
9830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831  (eval $ac_link) 2>conftest.er1
9832  ac_status=$?
9833  grep -v '^ *+' conftest.er1 >conftest.err
9834  rm -f conftest.er1
9835  cat conftest.err >&5
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); } &&
9838	 { ac_try='test -z "$ac_c_werror_flag"
9839			 || test ! -s conftest.err'
9840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841  (eval $ac_try) 2>&5
9842  ac_status=$?
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); }; } &&
9845	 { ac_try='test -s conftest$ac_exeext'
9846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847  (eval $ac_try) 2>&5
9848  ac_status=$?
9849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850  (exit $ac_status); }; }; then
9851  eval "$as_ac_var=yes"
9852else
9853  echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856eval "$as_ac_var=no"
9857fi
9858rm -f conftest.err conftest.$ac_objext \
9859      conftest$ac_exeext conftest.$ac_ext
9860fi
9861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863if test `eval echo '${'$as_ac_var'}'` = yes; then
9864  cat >>confdefs.h <<_ACEOF
9865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866_ACEOF
9867
9868fi
9869done
9870
9871
9872# Check whether --enable-shared or --disable-shared was given.
9873if test "${enable_shared+set}" = set; then
9874  enableval="$enable_shared"
9875  p=${PACKAGE-default}
9876    case $enableval in
9877    yes) enable_shared=yes ;;
9878    no) enable_shared=no ;;
9879    *)
9880      enable_shared=no
9881      # Look at the argument we got.  We use all the common list separators.
9882      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9883      for pkg in $enableval; do
9884	IFS="$lt_save_ifs"
9885	if test "X$pkg" = "X$p"; then
9886	  enable_shared=yes
9887	fi
9888      done
9889      IFS="$lt_save_ifs"
9890      ;;
9891    esac
9892else
9893  enable_shared=yes
9894fi;
9895
9896# Check whether --enable-static or --disable-static was given.
9897if test "${enable_static+set}" = set; then
9898  enableval="$enable_static"
9899  p=${PACKAGE-default}
9900    case $enableval in
9901    yes) enable_static=yes ;;
9902    no) enable_static=no ;;
9903    *)
9904     enable_static=no
9905      # Look at the argument we got.  We use all the common list separators.
9906      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907      for pkg in $enableval; do
9908	IFS="$lt_save_ifs"
9909	if test "X$pkg" = "X$p"; then
9910	  enable_static=yes
9911	fi
9912      done
9913      IFS="$lt_save_ifs"
9914      ;;
9915    esac
9916else
9917  enable_static=yes
9918fi;
9919
9920# Check whether --enable-fast-install or --disable-fast-install was given.
9921if test "${enable_fast_install+set}" = set; then
9922  enableval="$enable_fast_install"
9923  p=${PACKAGE-default}
9924    case $enableval in
9925    yes) enable_fast_install=yes ;;
9926    no) enable_fast_install=no ;;
9927    *)
9928      enable_fast_install=no
9929      # Look at the argument we got.  We use all the common list separators.
9930      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9931      for pkg in $enableval; do
9932	IFS="$lt_save_ifs"
9933	if test "X$pkg" = "X$p"; then
9934	  enable_fast_install=yes
9935	fi
9936      done
9937      IFS="$lt_save_ifs"
9938      ;;
9939    esac
9940else
9941  enable_fast_install=yes
9942fi;
9943
9944echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9945echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9946if test "${lt_cv_path_SED+set}" = set; then
9947  echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949  # Loop through the user's path and test for sed and gsed.
9950# Then use that list of sed's as ones to test for truncation.
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954  IFS=$as_save_IFS
9955  test -z "$as_dir" && as_dir=.
9956  for lt_ac_prog in sed gsed; do
9957    for ac_exec_ext in '' $ac_executable_extensions; do
9958      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9959        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9960      fi
9961    done
9962  done
9963done
9964lt_ac_max=0
9965lt_ac_count=0
9966# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9967# along with /bin/sed that truncates output.
9968for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9969  test ! -f $lt_ac_sed && break
9970  cat /dev/null > conftest.in
9971  lt_ac_count=0
9972  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9973  # Check for GNU sed and select it if it is found.
9974  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9975    lt_cv_path_SED=$lt_ac_sed
9976    break
9977  fi
9978  while true; do
9979    cat conftest.in conftest.in >conftest.tmp
9980    mv conftest.tmp conftest.in
9981    cp conftest.in conftest.nl
9982    echo >>conftest.nl
9983    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9984    cmp -s conftest.out conftest.nl || break
9985    # 10000 chars as input seems more than enough
9986    test $lt_ac_count -gt 10 && break
9987    lt_ac_count=`expr $lt_ac_count + 1`
9988    if test $lt_ac_count -gt $lt_ac_max; then
9989      lt_ac_max=$lt_ac_count
9990      lt_cv_path_SED=$lt_ac_sed
9991    fi
9992  done
9993done
9994
9995fi
9996
9997SED=$lt_cv_path_SED
9998echo "$as_me:$LINENO: result: $SED" >&5
9999echo "${ECHO_T}$SED" >&6
10000
10001
10002# Check whether --with-gnu-ld or --without-gnu-ld was given.
10003if test "${with_gnu_ld+set}" = set; then
10004  withval="$with_gnu_ld"
10005  test "$withval" = no || with_gnu_ld=yes
10006else
10007  with_gnu_ld=no
10008fi;
10009ac_prog=ld
10010if test "$GCC" = yes; then
10011  # Check if gcc -print-prog-name=ld gives a path.
10012  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10013echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10014  case $host in
10015  *-*-mingw*)
10016    # gcc leaves a trailing carriage return which upsets mingw
10017    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10018  *)
10019    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10020  esac
10021  case $ac_prog in
10022    # Accept absolute paths.
10023    [\\/]* | ?:[\\/]*)
10024      re_direlt='/[^/][^/]*/\.\./'
10025      # Canonicalize the pathname of ld
10026      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10027      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10028	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10029      done
10030      test -z "$LD" && LD="$ac_prog"
10031      ;;
10032  "")
10033    # If it fails, then pretend we aren't using GCC.
10034    ac_prog=ld
10035    ;;
10036  *)
10037    # If it is relative, then search for the first ld in PATH.
10038    with_gnu_ld=unknown
10039    ;;
10040  esac
10041elif test "$with_gnu_ld" = yes; then
10042  echo "$as_me:$LINENO: checking for GNU ld" >&5
10043echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10044else
10045  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10046echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10047fi
10048if test "${lt_cv_path_LD+set}" = set; then
10049  echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051  if test -z "$LD"; then
10052  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10053  for ac_dir in $PATH; do
10054    IFS="$lt_save_ifs"
10055    test -z "$ac_dir" && ac_dir=.
10056    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10057      lt_cv_path_LD="$ac_dir/$ac_prog"
10058      # Check to see if the program is GNU ld.  I'd rather use --version,
10059      # but apparently some GNU ld's only accept -v.
10060      # Break only if it was the GNU/non-GNU ld that we prefer.
10061      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10062      *GNU* | *'with BFD'*)
10063	test "$with_gnu_ld" != no && break
10064	;;
10065      *)
10066	test "$with_gnu_ld" != yes && break
10067	;;
10068      esac
10069    fi
10070  done
10071  IFS="$lt_save_ifs"
10072else
10073  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10074fi
10075fi
10076
10077LD="$lt_cv_path_LD"
10078if test -n "$LD"; then
10079  echo "$as_me:$LINENO: result: $LD" >&5
10080echo "${ECHO_T}$LD" >&6
10081else
10082  echo "$as_me:$LINENO: result: no" >&5
10083echo "${ECHO_T}no" >&6
10084fi
10085test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10086echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10087   { (exit 1); exit 1; }; }
10088echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10089echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10090if test "${lt_cv_prog_gnu_ld+set}" = set; then
10091  echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
10093  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10094case `$LD -v 2>&1 </dev/null` in
10095*GNU* | *'with BFD'*)
10096  lt_cv_prog_gnu_ld=yes
10097  ;;
10098*)
10099  lt_cv_prog_gnu_ld=no
10100  ;;
10101esac
10102fi
10103echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10104echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10105with_gnu_ld=$lt_cv_prog_gnu_ld
10106
10107
10108echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10109echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10110if test "${lt_cv_ld_reload_flag+set}" = set; then
10111  echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113  lt_cv_ld_reload_flag='-r'
10114fi
10115echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10116echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10117reload_flag=$lt_cv_ld_reload_flag
10118case $reload_flag in
10119"" | " "*) ;;
10120*) reload_flag=" $reload_flag" ;;
10121esac
10122reload_cmds='$LD$reload_flag -o $output$reload_objs'
10123case $host_os in
10124  darwin*)
10125    if test "$GCC" = yes; then
10126      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10127    else
10128      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10129    fi
10130    ;;
10131esac
10132
10133echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10134echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10135if test "${lt_cv_deplibs_check_method+set}" = set; then
10136  echo $ECHO_N "(cached) $ECHO_C" >&6
10137else
10138  lt_cv_file_magic_cmd='$MAGIC_CMD'
10139lt_cv_file_magic_test_file=
10140lt_cv_deplibs_check_method='unknown'
10141# Need to set the preceding variable on all platforms that support
10142# interlibrary dependencies.
10143# 'none' -- dependencies not supported.
10144# `unknown' -- same as none, but documents that we really don't know.
10145# 'pass_all' -- all dependencies passed with no checks.
10146# 'test_compile' -- check by making test program.
10147# 'file_magic [[regex]]' -- check by looking for files in library path
10148# which responds to the $file_magic_cmd with a given extended regex.
10149# If you have `file' or equivalent on your system and you're not sure
10150# whether `pass_all' will *always* work, you probably want this one.
10151
10152case $host_os in
10153aix4* | aix5*)
10154  lt_cv_deplibs_check_method=pass_all
10155  ;;
10156
10157beos*)
10158  lt_cv_deplibs_check_method=pass_all
10159  ;;
10160
10161bsdi[45]*)
10162  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10163  lt_cv_file_magic_cmd='/usr/bin/file -L'
10164  lt_cv_file_magic_test_file=/shlib/libc.so
10165  ;;
10166
10167cygwin*)
10168  # func_win32_libid is a shell function defined in ltmain.sh
10169  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10170  lt_cv_file_magic_cmd='func_win32_libid'
10171  ;;
10172
10173mingw* | pw32*)
10174  # Base MSYS/MinGW do not provide the 'file' command needed by
10175  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10176  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10177  lt_cv_file_magic_cmd='$OBJDUMP -f'
10178  ;;
10179
10180darwin* | rhapsody*)
10181  lt_cv_deplibs_check_method=pass_all
10182  ;;
10183
10184freebsd* | kfreebsd*-gnu)
10185  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10186    case $host_cpu in
10187    i*86 )
10188      # Not sure whether the presence of OpenBSD here was a mistake.
10189      # Let's accept both of them until this is cleared up.
10190      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10191      lt_cv_file_magic_cmd=/usr/bin/file
10192      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10193      ;;
10194    esac
10195  else
10196    lt_cv_deplibs_check_method=pass_all
10197  fi
10198  ;;
10199
10200gnu*)
10201  lt_cv_deplibs_check_method=pass_all
10202  ;;
10203
10204hpux10.20* | hpux11*)
10205  lt_cv_file_magic_cmd=/usr/bin/file
10206  case "$host_cpu" in
10207  ia64*)
10208    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10209    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10210    ;;
10211  hppa*64*)
10212    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]'
10213    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10214    ;;
10215  *)
10216    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10217    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10218    ;;
10219  esac
10220  ;;
10221
10222irix5* | irix6* | nonstopux*)
10223  case $LD in
10224  *-32|*"-32 ") libmagic=32-bit;;
10225  *-n32|*"-n32 ") libmagic=N32;;
10226  *-64|*"-64 ") libmagic=64-bit;;
10227  *) libmagic=never-match;;
10228  esac
10229  lt_cv_deplibs_check_method=pass_all
10230  ;;
10231
10232# This must be Linux ELF.
10233linux*)
10234  lt_cv_deplibs_check_method=pass_all
10235  ;;
10236
10237netbsd*)
10238  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10239    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10240  else
10241    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10242  fi
10243  ;;
10244
10245newos6*)
10246  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10247  lt_cv_file_magic_cmd=/usr/bin/file
10248  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10249  ;;
10250
10251nto-qnx*)
10252  lt_cv_deplibs_check_method=unknown
10253  ;;
10254
10255openbsd*)
10256  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10257    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10258  else
10259    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10260  fi
10261  ;;
10262
10263osf3* | osf4* | osf5*)
10264  lt_cv_deplibs_check_method=pass_all
10265  ;;
10266
10267sco3.2v5*)
10268  lt_cv_deplibs_check_method=pass_all
10269  ;;
10270
10271solaris*)
10272  lt_cv_deplibs_check_method=pass_all
10273  ;;
10274
10275sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10276  case $host_vendor in
10277  motorola)
10278    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]'
10279    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10280    ;;
10281  ncr)
10282    lt_cv_deplibs_check_method=pass_all
10283    ;;
10284  sequent)
10285    lt_cv_file_magic_cmd='/bin/file'
10286    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10287    ;;
10288  sni)
10289    lt_cv_file_magic_cmd='/bin/file'
10290    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10291    lt_cv_file_magic_test_file=/lib/libc.so
10292    ;;
10293  siemens)
10294    lt_cv_deplibs_check_method=pass_all
10295    ;;
10296  esac
10297  ;;
10298
10299sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10300  lt_cv_deplibs_check_method=pass_all
10301  ;;
10302esac
10303
10304fi
10305echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10306echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10307file_magic_cmd=$lt_cv_file_magic_cmd
10308deplibs_check_method=$lt_cv_deplibs_check_method
10309test -z "$deplibs_check_method" && deplibs_check_method=unknown
10310
10311
10312
10313# If no C compiler was specified, use CC.
10314LTCC=${LTCC-"$CC"}
10315
10316# Allow CC to be a program name with arguments.
10317compiler=$CC
10318
10319# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10320if test "${enable_libtool_lock+set}" = set; then
10321  enableval="$enable_libtool_lock"
10322
10323fi;
10324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10325
10326# Some flags need to be propagated to the compiler or linker for good
10327# libtool support.
10328case $host in
10329ia64-*-hpux*)
10330  # Find out which ABI we are using.
10331  echo 'int i;' > conftest.$ac_ext
10332  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333  (eval $ac_compile) 2>&5
10334  ac_status=$?
10335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336  (exit $ac_status); }; then
10337    case `/usr/bin/file conftest.$ac_objext` in
10338    *ELF-32*)
10339      HPUX_IA64_MODE="32"
10340      ;;
10341    *ELF-64*)
10342      HPUX_IA64_MODE="64"
10343      ;;
10344    esac
10345  fi
10346  rm -rf conftest*
10347  ;;
10348*-*-irix6*)
10349  # Find out which ABI we are using.
10350  echo '#line 10350 "configure"' > conftest.$ac_ext
10351  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352  (eval $ac_compile) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; then
10356   if test "$lt_cv_prog_gnu_ld" = yes; then
10357    case `/usr/bin/file conftest.$ac_objext` in
10358    *32-bit*)
10359      LD="${LD-ld} -melf32bsmip"
10360      ;;
10361    *N32*)
10362      LD="${LD-ld} -melf32bmipn32"
10363      ;;
10364    *64-bit*)
10365      LD="${LD-ld} -melf64bmip"
10366      ;;
10367    esac
10368   else
10369    case `/usr/bin/file conftest.$ac_objext` in
10370    *32-bit*)
10371      LD="${LD-ld} -32"
10372      ;;
10373    *N32*)
10374      LD="${LD-ld} -n32"
10375      ;;
10376    *64-bit*)
10377      LD="${LD-ld} -64"
10378      ;;
10379    esac
10380   fi
10381  fi
10382  rm -rf conftest*
10383  ;;
10384
10385x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10386  # Find out which ABI we are using.
10387  echo 'int i;' > conftest.$ac_ext
10388  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10389  (eval $ac_compile) 2>&5
10390  ac_status=$?
10391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392  (exit $ac_status); }; then
10393    case "`/usr/bin/file conftest.o`" in
10394    *32-bit*)
10395      case $host in
10396        x86_64-*linux*)
10397          LD="${LD-ld} -m elf_i386"
10398          ;;
10399        ppc64-*linux*|powerpc64-*linux*)
10400          LD="${LD-ld} -m elf32ppclinux"
10401          ;;
10402        s390x-*linux*)
10403          LD="${LD-ld} -m elf_s390"
10404          ;;
10405        sparc64-*linux*)
10406          LD="${LD-ld} -m elf32_sparc"
10407          ;;
10408      esac
10409      ;;
10410    *64-bit*)
10411      case $host in
10412        x86_64-*linux*)
10413          LD="${LD-ld} -m elf_x86_64"
10414          ;;
10415        ppc*-*linux*|powerpc*-*linux*)
10416          LD="${LD-ld} -m elf64ppc"
10417          ;;
10418        s390*-*linux*)
10419          LD="${LD-ld} -m elf64_s390"
10420          ;;
10421        sparc*-*linux*)
10422          LD="${LD-ld} -m elf64_sparc"
10423          ;;
10424      esac
10425      ;;
10426    esac
10427  fi
10428  rm -rf conftest*
10429  ;;
10430
10431*-*-sco3.2v5*)
10432  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10433  SAVE_CFLAGS="$CFLAGS"
10434  CFLAGS="$CFLAGS -belf"
10435  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10436echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10437if test "${lt_cv_cc_needs_belf+set}" = set; then
10438  echo $ECHO_N "(cached) $ECHO_C" >&6
10439else
10440  ac_ext=c
10441ac_cpp='$CPP $CPPFLAGS'
10442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444ac_compiler_gnu=$ac_cv_c_compiler_gnu
10445
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
10453_ACEOF
10454rm -f conftest.$ac_objext conftest$ac_exeext
10455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456  (eval $ac_link) 2>conftest.er1
10457  ac_status=$?
10458  grep -v '^ *+' conftest.er1 >conftest.err
10459  rm -f conftest.er1
10460  cat conftest.err >&5
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); } &&
10463	 { ac_try='test -z "$ac_c_werror_flag"
10464			 || test ! -s conftest.err'
10465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466  (eval $ac_try) 2>&5
10467  ac_status=$?
10468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469  (exit $ac_status); }; } &&
10470	 { ac_try='test -s conftest$ac_exeext'
10471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472  (eval $ac_try) 2>&5
10473  ac_status=$?
10474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475  (exit $ac_status); }; }; then
10476  lt_cv_cc_needs_belf=yes
10477else
10478  echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481lt_cv_cc_needs_belf=no
10482fi
10483rm -f conftest.err conftest.$ac_objext \
10484      conftest$ac_exeext conftest.$ac_ext
10485     ac_ext=c
10486ac_cpp='$CPP $CPPFLAGS'
10487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489ac_compiler_gnu=$ac_cv_c_compiler_gnu
10490
10491fi
10492echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10493echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10494  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10495    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10496    CFLAGS="$SAVE_CFLAGS"
10497  fi
10498  ;;
10499
10500esac
10501
10502need_locks="$enable_libtool_lock"
10503
10504
10505
10506
10507if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10508    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10509    (test "X$CXX" != "Xg++"))) ; then
10510  ac_ext=cc
10511ac_cpp='$CXXCPP $CPPFLAGS'
10512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10515echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10516echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10517if test -z "$CXXCPP"; then
10518  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10519  echo $ECHO_N "(cached) $ECHO_C" >&6
10520else
10521      # Double quotes because CXXCPP needs to be expanded
10522    for CXXCPP in "$CXX -E" "/lib/cpp"
10523    do
10524      ac_preproc_ok=false
10525for ac_cxx_preproc_warn_flag in '' yes
10526do
10527  # Use a header file that comes with gcc, so configuring glibc
10528  # with a fresh cross-compiler works.
10529  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530  # <limits.h> exists even on freestanding compilers.
10531  # On the NeXT, cc -E runs the code through the compiler's parser,
10532  # not just through cpp. "Syntax error" is here to catch this case.
10533  cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h.  */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h.  */
10539#ifdef __STDC__
10540# include <limits.h>
10541#else
10542# include <assert.h>
10543#endif
10544		     Syntax error
10545_ACEOF
10546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10547  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10548  ac_status=$?
10549  grep -v '^ *+' conftest.er1 >conftest.err
10550  rm -f conftest.er1
10551  cat conftest.err >&5
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } >/dev/null; then
10554  if test -s conftest.err; then
10555    ac_cpp_err=$ac_cxx_preproc_warn_flag
10556    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10557  else
10558    ac_cpp_err=
10559  fi
10560else
10561  ac_cpp_err=yes
10562fi
10563if test -z "$ac_cpp_err"; then
10564  :
10565else
10566  echo "$as_me: failed program was:" >&5
10567sed 's/^/| /' conftest.$ac_ext >&5
10568
10569  # Broken: fails on valid input.
10570continue
10571fi
10572rm -f conftest.err conftest.$ac_ext
10573
10574  # OK, works on sane cases.  Now check whether non-existent headers
10575  # can be detected and how.
10576  cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582#include <ac_nonexistent.h>
10583_ACEOF
10584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10586  ac_status=$?
10587  grep -v '^ *+' conftest.er1 >conftest.err
10588  rm -f conftest.er1
10589  cat conftest.err >&5
10590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); } >/dev/null; then
10592  if test -s conftest.err; then
10593    ac_cpp_err=$ac_cxx_preproc_warn_flag
10594    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10595  else
10596    ac_cpp_err=
10597  fi
10598else
10599  ac_cpp_err=yes
10600fi
10601if test -z "$ac_cpp_err"; then
10602  # Broken: success on invalid input.
10603continue
10604else
10605  echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608  # Passes both tests.
10609ac_preproc_ok=:
10610break
10611fi
10612rm -f conftest.err conftest.$ac_ext
10613
10614done
10615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10616rm -f conftest.err conftest.$ac_ext
10617if $ac_preproc_ok; then
10618  break
10619fi
10620
10621    done
10622    ac_cv_prog_CXXCPP=$CXXCPP
10623
10624fi
10625  CXXCPP=$ac_cv_prog_CXXCPP
10626else
10627  ac_cv_prog_CXXCPP=$CXXCPP
10628fi
10629echo "$as_me:$LINENO: result: $CXXCPP" >&5
10630echo "${ECHO_T}$CXXCPP" >&6
10631ac_preproc_ok=false
10632for ac_cxx_preproc_warn_flag in '' yes
10633do
10634  # Use a header file that comes with gcc, so configuring glibc
10635  # with a fresh cross-compiler works.
10636  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637  # <limits.h> exists even on freestanding compilers.
10638  # On the NeXT, cc -E runs the code through the compiler's parser,
10639  # not just through cpp. "Syntax error" is here to catch this case.
10640  cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h.  */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h.  */
10646#ifdef __STDC__
10647# include <limits.h>
10648#else
10649# include <assert.h>
10650#endif
10651		     Syntax error
10652_ACEOF
10653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10654  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10655  ac_status=$?
10656  grep -v '^ *+' conftest.er1 >conftest.err
10657  rm -f conftest.er1
10658  cat conftest.err >&5
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } >/dev/null; then
10661  if test -s conftest.err; then
10662    ac_cpp_err=$ac_cxx_preproc_warn_flag
10663    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10664  else
10665    ac_cpp_err=
10666  fi
10667else
10668  ac_cpp_err=yes
10669fi
10670if test -z "$ac_cpp_err"; then
10671  :
10672else
10673  echo "$as_me: failed program was:" >&5
10674sed 's/^/| /' conftest.$ac_ext >&5
10675
10676  # Broken: fails on valid input.
10677continue
10678fi
10679rm -f conftest.err conftest.$ac_ext
10680
10681  # OK, works on sane cases.  Now check whether non-existent headers
10682  # can be detected and how.
10683  cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h.  */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h.  */
10689#include <ac_nonexistent.h>
10690_ACEOF
10691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10692  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } >/dev/null; then
10699  if test -s conftest.err; then
10700    ac_cpp_err=$ac_cxx_preproc_warn_flag
10701    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10702  else
10703    ac_cpp_err=
10704  fi
10705else
10706  ac_cpp_err=yes
10707fi
10708if test -z "$ac_cpp_err"; then
10709  # Broken: success on invalid input.
10710continue
10711else
10712  echo "$as_me: failed program was:" >&5
10713sed 's/^/| /' conftest.$ac_ext >&5
10714
10715  # Passes both tests.
10716ac_preproc_ok=:
10717break
10718fi
10719rm -f conftest.err conftest.$ac_ext
10720
10721done
10722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10723rm -f conftest.err conftest.$ac_ext
10724if $ac_preproc_ok; then
10725  :
10726else
10727  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10728See \`config.log' for more details." >&5
10729echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10730See \`config.log' for more details." >&2;}
10731   { (exit 1); exit 1; }; }
10732fi
10733
10734ac_ext=cc
10735ac_cpp='$CXXCPP $CPPFLAGS'
10736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10739
10740fi
10741
10742
10743ac_ext=f
10744ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10745ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10746ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10747if test -n "$ac_tool_prefix"; then
10748  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10749  do
10750    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10752echo "$as_me:$LINENO: checking for $ac_word" >&5
10753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10754if test "${ac_cv_prog_F77+set}" = set; then
10755  echo $ECHO_N "(cached) $ECHO_C" >&6
10756else
10757  if test -n "$F77"; then
10758  ac_cv_prog_F77="$F77" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763  IFS=$as_save_IFS
10764  test -z "$as_dir" && as_dir=.
10765  for ac_exec_ext in '' $ac_executable_extensions; do
10766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769    break 2
10770  fi
10771done
10772done
10773
10774fi
10775fi
10776F77=$ac_cv_prog_F77
10777if test -n "$F77"; then
10778  echo "$as_me:$LINENO: result: $F77" >&5
10779echo "${ECHO_T}$F77" >&6
10780else
10781  echo "$as_me:$LINENO: result: no" >&5
10782echo "${ECHO_T}no" >&6
10783fi
10784
10785    test -n "$F77" && break
10786  done
10787fi
10788if test -z "$F77"; then
10789  ac_ct_F77=$F77
10790  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10791do
10792  # Extract the first word of "$ac_prog", so it can be a program name with args.
10793set dummy $ac_prog; ac_word=$2
10794echo "$as_me:$LINENO: checking for $ac_word" >&5
10795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10797  echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799  if test -n "$ac_ct_F77"; then
10800  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805  IFS=$as_save_IFS
10806  test -z "$as_dir" && as_dir=.
10807  for ac_exec_ext in '' $ac_executable_extensions; do
10808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809    ac_cv_prog_ac_ct_F77="$ac_prog"
10810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811    break 2
10812  fi
10813done
10814done
10815
10816fi
10817fi
10818ac_ct_F77=$ac_cv_prog_ac_ct_F77
10819if test -n "$ac_ct_F77"; then
10820  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10821echo "${ECHO_T}$ac_ct_F77" >&6
10822else
10823  echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6
10825fi
10826
10827  test -n "$ac_ct_F77" && break
10828done
10829
10830  F77=$ac_ct_F77
10831fi
10832
10833
10834# Provide some information about the compiler.
10835echo "$as_me:10835:" \
10836     "checking for Fortran 77 compiler version" >&5
10837ac_compiler=`set X $ac_compile; echo $2`
10838{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10839  (eval $ac_compiler --version </dev/null >&5) 2>&5
10840  ac_status=$?
10841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842  (exit $ac_status); }
10843{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10844  (eval $ac_compiler -v </dev/null >&5) 2>&5
10845  ac_status=$?
10846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847  (exit $ac_status); }
10848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10849  (eval $ac_compiler -V </dev/null >&5) 2>&5
10850  ac_status=$?
10851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852  (exit $ac_status); }
10853rm -f a.out
10854
10855# If we don't use `.F' as extension, the preprocessor is not run on the
10856# input file.  (Note that this only needs to work for GNU compilers.)
10857ac_save_ext=$ac_ext
10858ac_ext=F
10859echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10860echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10861if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10862  echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864  cat >conftest.$ac_ext <<_ACEOF
10865      program main
10866#ifndef __GNUC__
10867       choke me
10868#endif
10869
10870      end
10871_ACEOF
10872rm -f conftest.$ac_objext
10873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874  (eval $ac_compile) 2>conftest.er1
10875  ac_status=$?
10876  grep -v '^ *+' conftest.er1 >conftest.err
10877  rm -f conftest.er1
10878  cat conftest.err >&5
10879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880  (exit $ac_status); } &&
10881	 { ac_try='test -z "$ac_f77_werror_flag"
10882			 || test ! -s conftest.err'
10883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884  (eval $ac_try) 2>&5
10885  ac_status=$?
10886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887  (exit $ac_status); }; } &&
10888	 { ac_try='test -s conftest.$ac_objext'
10889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890  (eval $ac_try) 2>&5
10891  ac_status=$?
10892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893  (exit $ac_status); }; }; then
10894  ac_compiler_gnu=yes
10895else
10896  echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899ac_compiler_gnu=no
10900fi
10901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10902ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10903
10904fi
10905echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10906echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10907ac_ext=$ac_save_ext
10908ac_test_FFLAGS=${FFLAGS+set}
10909ac_save_FFLAGS=$FFLAGS
10910FFLAGS=
10911echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10912echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10913if test "${ac_cv_prog_f77_g+set}" = set; then
10914  echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916  FFLAGS=-g
10917cat >conftest.$ac_ext <<_ACEOF
10918      program main
10919
10920      end
10921_ACEOF
10922rm -f conftest.$ac_objext
10923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924  (eval $ac_compile) 2>conftest.er1
10925  ac_status=$?
10926  grep -v '^ *+' conftest.er1 >conftest.err
10927  rm -f conftest.er1
10928  cat conftest.err >&5
10929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930  (exit $ac_status); } &&
10931	 { ac_try='test -z "$ac_f77_werror_flag"
10932			 || test ! -s conftest.err'
10933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934  (eval $ac_try) 2>&5
10935  ac_status=$?
10936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937  (exit $ac_status); }; } &&
10938	 { ac_try='test -s conftest.$ac_objext'
10939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940  (eval $ac_try) 2>&5
10941  ac_status=$?
10942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943  (exit $ac_status); }; }; then
10944  ac_cv_prog_f77_g=yes
10945else
10946  echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949ac_cv_prog_f77_g=no
10950fi
10951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10952
10953fi
10954echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10955echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10956if test "$ac_test_FFLAGS" = set; then
10957  FFLAGS=$ac_save_FFLAGS
10958elif test $ac_cv_prog_f77_g = yes; then
10959  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10960    FFLAGS="-g -O2"
10961  else
10962    FFLAGS="-g"
10963  fi
10964else
10965  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10966    FFLAGS="-O2"
10967  else
10968    FFLAGS=
10969  fi
10970fi
10971
10972G77=`test $ac_compiler_gnu = yes && echo yes`
10973ac_ext=c
10974ac_cpp='$CPP $CPPFLAGS'
10975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977ac_compiler_gnu=$ac_cv_c_compiler_gnu
10978
10979
10980
10981# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10982
10983# find the maximum length of command line arguments
10984echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10985echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10986if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10987  echo $ECHO_N "(cached) $ECHO_C" >&6
10988else
10989    i=0
10990  teststring="ABCD"
10991
10992  case $build_os in
10993  msdosdjgpp*)
10994    # On DJGPP, this test can blow up pretty badly due to problems in libc
10995    # (any single argument exceeding 2000 bytes causes a buffer overrun
10996    # during glob expansion).  Even if it were fixed, the result of this
10997    # check would be larger than it should be.
10998    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10999    ;;
11000
11001  gnu*)
11002    # Under GNU Hurd, this test is not required because there is
11003    # no limit to the length of command line arguments.
11004    # Libtool will interpret -1 as no limit whatsoever
11005    lt_cv_sys_max_cmd_len=-1;
11006    ;;
11007
11008  cygwin* | mingw*)
11009    # On Win9x/ME, this test blows up -- it succeeds, but takes
11010    # about 5 minutes as the teststring grows exponentially.
11011    # Worse, since 9x/ME are not pre-emptively multitasking,
11012    # you end up with a "frozen" computer, even though with patience
11013    # the test eventually succeeds (with a max line length of 256k).
11014    # Instead, let's just punt: use the minimum linelength reported by
11015    # all of the supported platforms: 8192 (on NT/2K/XP).
11016    lt_cv_sys_max_cmd_len=8192;
11017    ;;
11018
11019  amigaos*)
11020    # On AmigaOS with pdksh, this test takes hours, literally.
11021    # So we just punt and use a minimum line length of 8192.
11022    lt_cv_sys_max_cmd_len=8192;
11023    ;;
11024
11025  netbsd* | freebsd* | openbsd* | darwin* )
11026    # This has been around since 386BSD, at least.  Likely further.
11027    if test -x /sbin/sysctl; then
11028      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11029    elif test -x /usr/sbin/sysctl; then
11030      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11031    else
11032      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11033    fi
11034    # And add a safety zone
11035    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11036    ;;
11037
11038 *)
11039    # If test is not a shell built-in, we'll probably end up computing a
11040    # maximum length that is only half of the actual maximum length, but
11041    # we can't tell.
11042    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11043    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11044	       = "XX$teststring") >/dev/null 2>&1 &&
11045	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
11046	    lt_cv_sys_max_cmd_len=$new_result &&
11047	    test $i != 17 # 1/2 MB should be enough
11048    do
11049      i=`expr $i + 1`
11050      teststring=$teststring$teststring
11051    done
11052    teststring=
11053    # Add a significant safety factor because C++ compilers can tack on massive
11054    # amounts of additional arguments before passing them to the linker.
11055    # It appears as though 1/2 is a usable value.
11056    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11057    ;;
11058  esac
11059
11060fi
11061
11062if test -n $lt_cv_sys_max_cmd_len ; then
11063  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11064echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11065else
11066  echo "$as_me:$LINENO: result: none" >&5
11067echo "${ECHO_T}none" >&6
11068fi
11069
11070
11071
11072
11073# Check for command to grab the raw symbol name followed by C symbol from nm.
11074echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11075echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11076if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11077  echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079
11080# These are sane defaults that work on at least a few old systems.
11081# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11082
11083# Character class describing NM global symbol codes.
11084symcode='[BCDEGRST]'
11085
11086# Regexp to match symbols that can be accessed directly from C.
11087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11088
11089# Transform the above into a raw symbol and a C symbol.
11090symxfrm='\1 \2\3 \3'
11091
11092# Transform an extracted symbol line into a proper C declaration
11093lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11094
11095# Transform an extracted symbol line into symbol name and symbol address
11096lt_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'"
11097
11098# Define system-specific variables.
11099case $host_os in
11100aix*)
11101  symcode='[BCDT]'
11102  ;;
11103cygwin* | mingw* | pw32*)
11104  symcode='[ABCDGISTW]'
11105  ;;
11106hpux*) # Its linker distinguishes data from code symbols
11107  if test "$host_cpu" = ia64; then
11108    symcode='[ABCDEGRST]'
11109  fi
11110  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11111  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'"
11112  ;;
11113linux*)
11114  if test "$host_cpu" = ia64; then
11115    symcode='[ABCDGIRSTW]'
11116    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11117    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'"
11118  fi
11119  ;;
11120irix* | nonstopux*)
11121  symcode='[BCDEGRST]'
11122  ;;
11123osf*)
11124  symcode='[BCDEGQRST]'
11125  ;;
11126solaris* | sysv5*)
11127  symcode='[BDRT]'
11128  ;;
11129sysv4)
11130  symcode='[DFNSTU]'
11131  ;;
11132esac
11133
11134# Handle CRLF in mingw tool chain
11135opt_cr=
11136case $build_os in
11137mingw*)
11138  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11139  ;;
11140esac
11141
11142# If we're using GNU nm, then use its standard symbol codes.
11143case `$NM -V 2>&1` in
11144*GNU* | *'with BFD'*)
11145  symcode='[ABCDGIRSTW]' ;;
11146esac
11147
11148# Try without a prefix undercore, then with it.
11149for ac_symprfx in "" "_"; do
11150
11151  # Write the raw and C identifiers.
11152  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11153
11154  # Check to see that the pipe works correctly.
11155  pipe_works=no
11156
11157  rm -f conftest*
11158  cat > conftest.$ac_ext <<EOF
11159#ifdef __cplusplus
11160extern "C" {
11161#endif
11162char nm_test_var;
11163void nm_test_func(){}
11164#ifdef __cplusplus
11165}
11166#endif
11167int main(){nm_test_var='a';nm_test_func();return(0);}
11168EOF
11169
11170  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171  (eval $ac_compile) 2>&5
11172  ac_status=$?
11173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174  (exit $ac_status); }; then
11175    # Now try to grab the symbols.
11176    nlist=conftest.nm
11177    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11178  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11179  ac_status=$?
11180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181  (exit $ac_status); } && test -s "$nlist"; then
11182      # Try sorting and uniquifying the output.
11183      if sort "$nlist" | uniq > "$nlist"T; then
11184	mv -f "$nlist"T "$nlist"
11185      else
11186	rm -f "$nlist"T
11187      fi
11188
11189      # Make sure that we snagged all the symbols we need.
11190      if grep ' nm_test_var$' "$nlist" >/dev/null; then
11191	if grep ' nm_test_func$' "$nlist" >/dev/null; then
11192	  cat <<EOF > conftest.$ac_ext
11193#ifdef __cplusplus
11194extern "C" {
11195#endif
11196
11197EOF
11198	  # Now generate the symbol file.
11199	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11200
11201	  cat <<EOF >> conftest.$ac_ext
11202#if defined (__STDC__) && __STDC__
11203# define lt_ptr_t void *
11204#else
11205# define lt_ptr_t char *
11206# define const
11207#endif
11208
11209/* The mapping between symbol names and symbols. */
11210const struct {
11211  const char *name;
11212  lt_ptr_t address;
11213}
11214lt_preloaded_symbols[] =
11215{
11216EOF
11217	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11218	  cat <<\EOF >> conftest.$ac_ext
11219  {0, (lt_ptr_t) 0}
11220};
11221
11222#ifdef __cplusplus
11223}
11224#endif
11225EOF
11226	  # Now try linking the two files.
11227	  mv conftest.$ac_objext conftstm.$ac_objext
11228	  lt_save_LIBS="$LIBS"
11229	  lt_save_CFLAGS="$CFLAGS"
11230	  LIBS="conftstm.$ac_objext"
11231	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11232	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233  (eval $ac_link) 2>&5
11234  ac_status=$?
11235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236  (exit $ac_status); } && test -s conftest${ac_exeext}; then
11237	    pipe_works=yes
11238	  fi
11239	  LIBS="$lt_save_LIBS"
11240	  CFLAGS="$lt_save_CFLAGS"
11241	else
11242	  echo "cannot find nm_test_func in $nlist" >&5
11243	fi
11244      else
11245	echo "cannot find nm_test_var in $nlist" >&5
11246      fi
11247    else
11248      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11249    fi
11250  else
11251    echo "$progname: failed program was:" >&5
11252    cat conftest.$ac_ext >&5
11253  fi
11254  rm -f conftest* conftst*
11255
11256  # Do not use the global_symbol_pipe unless it works.
11257  if test "$pipe_works" = yes; then
11258    break
11259  else
11260    lt_cv_sys_global_symbol_pipe=
11261  fi
11262done
11263
11264fi
11265
11266if test -z "$lt_cv_sys_global_symbol_pipe"; then
11267  lt_cv_sys_global_symbol_to_cdecl=
11268fi
11269if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11270  echo "$as_me:$LINENO: result: failed" >&5
11271echo "${ECHO_T}failed" >&6
11272else
11273  echo "$as_me:$LINENO: result: ok" >&5
11274echo "${ECHO_T}ok" >&6
11275fi
11276
11277echo "$as_me:$LINENO: checking for objdir" >&5
11278echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11279if test "${lt_cv_objdir+set}" = set; then
11280  echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282  rm -f .libs 2>/dev/null
11283mkdir .libs 2>/dev/null
11284if test -d .libs; then
11285  lt_cv_objdir=.libs
11286else
11287  # MS-DOS does not allow filenames that begin with a dot.
11288  lt_cv_objdir=_libs
11289fi
11290rmdir .libs 2>/dev/null
11291fi
11292echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11293echo "${ECHO_T}$lt_cv_objdir" >&6
11294objdir=$lt_cv_objdir
11295
11296
11297
11298
11299
11300case $host_os in
11301aix3*)
11302  # AIX sometimes has problems with the GCC collect2 program.  For some
11303  # reason, if we set the COLLECT_NAMES environment variable, the problems
11304  # vanish in a puff of smoke.
11305  if test "X${COLLECT_NAMES+set}" != Xset; then
11306    COLLECT_NAMES=
11307    export COLLECT_NAMES
11308  fi
11309  ;;
11310esac
11311
11312# Sed substitution that helps us do robust quoting.  It backslashifies
11313# metacharacters that are still active within double-quoted strings.
11314Xsed='sed -e s/^X//'
11315sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11316
11317# Same as above, but do not quote variable references.
11318double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11319
11320# Sed substitution to delay expansion of an escaped shell variable in a
11321# double_quote_subst'ed string.
11322delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11323
11324# Sed substitution to avoid accidental globbing in evaled expressions
11325no_glob_subst='s/\*/\\\*/g'
11326
11327# Constants:
11328rm="rm -f"
11329
11330# Global variables:
11331default_ofile=mklib
11332can_build_shared=yes
11333
11334# All known linkers require a `.a' archive for static linking (except M$VC,
11335# which needs '.lib').
11336libext=a
11337ltmain="$ac_aux_dir/ltmain.sh"
11338ofile="$default_ofile"
11339with_gnu_ld="$lt_cv_prog_gnu_ld"
11340
11341if test -n "$ac_tool_prefix"; then
11342  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11343set dummy ${ac_tool_prefix}ar; ac_word=$2
11344echo "$as_me:$LINENO: checking for $ac_word" >&5
11345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346if test "${ac_cv_prog_AR+set}" = set; then
11347  echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349  if test -n "$AR"; then
11350  ac_cv_prog_AR="$AR" # Let the user override the test.
11351else
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355  IFS=$as_save_IFS
11356  test -z "$as_dir" && as_dir=.
11357  for ac_exec_ext in '' $ac_executable_extensions; do
11358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359    ac_cv_prog_AR="${ac_tool_prefix}ar"
11360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361    break 2
11362  fi
11363done
11364done
11365
11366fi
11367fi
11368AR=$ac_cv_prog_AR
11369if test -n "$AR"; then
11370  echo "$as_me:$LINENO: result: $AR" >&5
11371echo "${ECHO_T}$AR" >&6
11372else
11373  echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
11375fi
11376
11377fi
11378if test -z "$ac_cv_prog_AR"; then
11379  ac_ct_AR=$AR
11380  # Extract the first word of "ar", so it can be a program name with args.
11381set dummy ar; ac_word=$2
11382echo "$as_me:$LINENO: checking for $ac_word" >&5
11383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11384if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11385  echo $ECHO_N "(cached) $ECHO_C" >&6
11386else
11387  if test -n "$ac_ct_AR"; then
11388  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11389else
11390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393  IFS=$as_save_IFS
11394  test -z "$as_dir" && as_dir=.
11395  for ac_exec_ext in '' $ac_executable_extensions; do
11396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397    ac_cv_prog_ac_ct_AR="ar"
11398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11399    break 2
11400  fi
11401done
11402done
11403
11404  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11405fi
11406fi
11407ac_ct_AR=$ac_cv_prog_ac_ct_AR
11408if test -n "$ac_ct_AR"; then
11409  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11410echo "${ECHO_T}$ac_ct_AR" >&6
11411else
11412  echo "$as_me:$LINENO: result: no" >&5
11413echo "${ECHO_T}no" >&6
11414fi
11415
11416  AR=$ac_ct_AR
11417else
11418  AR="$ac_cv_prog_AR"
11419fi
11420
11421if test -n "$ac_tool_prefix"; then
11422  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11423set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11424echo "$as_me:$LINENO: checking for $ac_word" >&5
11425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11426if test "${ac_cv_prog_RANLIB+set}" = set; then
11427  echo $ECHO_N "(cached) $ECHO_C" >&6
11428else
11429  if test -n "$RANLIB"; then
11430  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11431else
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435  IFS=$as_save_IFS
11436  test -z "$as_dir" && as_dir=.
11437  for ac_exec_ext in '' $ac_executable_extensions; do
11438  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11441    break 2
11442  fi
11443done
11444done
11445
11446fi
11447fi
11448RANLIB=$ac_cv_prog_RANLIB
11449if test -n "$RANLIB"; then
11450  echo "$as_me:$LINENO: result: $RANLIB" >&5
11451echo "${ECHO_T}$RANLIB" >&6
11452else
11453  echo "$as_me:$LINENO: result: no" >&5
11454echo "${ECHO_T}no" >&6
11455fi
11456
11457fi
11458if test -z "$ac_cv_prog_RANLIB"; then
11459  ac_ct_RANLIB=$RANLIB
11460  # Extract the first word of "ranlib", so it can be a program name with args.
11461set dummy ranlib; ac_word=$2
11462echo "$as_me:$LINENO: checking for $ac_word" >&5
11463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11464if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11465  echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467  if test -n "$ac_ct_RANLIB"; then
11468  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11469else
11470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH
11472do
11473  IFS=$as_save_IFS
11474  test -z "$as_dir" && as_dir=.
11475  for ac_exec_ext in '' $ac_executable_extensions; do
11476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11477    ac_cv_prog_ac_ct_RANLIB="ranlib"
11478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11479    break 2
11480  fi
11481done
11482done
11483
11484  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11485fi
11486fi
11487ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11488if test -n "$ac_ct_RANLIB"; then
11489  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11490echo "${ECHO_T}$ac_ct_RANLIB" >&6
11491else
11492  echo "$as_me:$LINENO: result: no" >&5
11493echo "${ECHO_T}no" >&6
11494fi
11495
11496  RANLIB=$ac_ct_RANLIB
11497else
11498  RANLIB="$ac_cv_prog_RANLIB"
11499fi
11500
11501if test -n "$ac_tool_prefix"; then
11502  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11503set dummy ${ac_tool_prefix}strip; ac_word=$2
11504echo "$as_me:$LINENO: checking for $ac_word" >&5
11505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11506if test "${ac_cv_prog_STRIP+set}" = set; then
11507  echo $ECHO_N "(cached) $ECHO_C" >&6
11508else
11509  if test -n "$STRIP"; then
11510  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515  IFS=$as_save_IFS
11516  test -z "$as_dir" && as_dir=.
11517  for ac_exec_ext in '' $ac_executable_extensions; do
11518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521    break 2
11522  fi
11523done
11524done
11525
11526fi
11527fi
11528STRIP=$ac_cv_prog_STRIP
11529if test -n "$STRIP"; then
11530  echo "$as_me:$LINENO: result: $STRIP" >&5
11531echo "${ECHO_T}$STRIP" >&6
11532else
11533  echo "$as_me:$LINENO: result: no" >&5
11534echo "${ECHO_T}no" >&6
11535fi
11536
11537fi
11538if test -z "$ac_cv_prog_STRIP"; then
11539  ac_ct_STRIP=$STRIP
11540  # Extract the first word of "strip", so it can be a program name with args.
11541set dummy strip; ac_word=$2
11542echo "$as_me:$LINENO: checking for $ac_word" >&5
11543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11545  echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547  if test -n "$ac_ct_STRIP"; then
11548  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11549else
11550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551for as_dir in $PATH
11552do
11553  IFS=$as_save_IFS
11554  test -z "$as_dir" && as_dir=.
11555  for ac_exec_ext in '' $ac_executable_extensions; do
11556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557    ac_cv_prog_ac_ct_STRIP="strip"
11558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559    break 2
11560  fi
11561done
11562done
11563
11564  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11565fi
11566fi
11567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11568if test -n "$ac_ct_STRIP"; then
11569  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11570echo "${ECHO_T}$ac_ct_STRIP" >&6
11571else
11572  echo "$as_me:$LINENO: result: no" >&5
11573echo "${ECHO_T}no" >&6
11574fi
11575
11576  STRIP=$ac_ct_STRIP
11577else
11578  STRIP="$ac_cv_prog_STRIP"
11579fi
11580
11581
11582old_CC="$CC"
11583old_CFLAGS="$CFLAGS"
11584
11585# Set sane defaults for various variables
11586test -z "$AR" && AR=ar
11587test -z "$AR_FLAGS" && AR_FLAGS=cru
11588test -z "$AS" && AS=as
11589test -z "$CC" && CC=cc
11590test -z "$LTCC" && LTCC=$CC
11591test -z "$DLLTOOL" && DLLTOOL=dlltool
11592test -z "$LD" && LD=ld
11593test -z "$LN_S" && LN_S="ln -s"
11594test -z "$MAGIC_CMD" && MAGIC_CMD=file
11595test -z "$NM" && NM=nm
11596test -z "$SED" && SED=sed
11597test -z "$OBJDUMP" && OBJDUMP=objdump
11598test -z "$RANLIB" && RANLIB=:
11599test -z "$STRIP" && STRIP=:
11600test -z "$ac_objext" && ac_objext=o
11601
11602# Determine commands to create old-style static archives.
11603old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11604old_postinstall_cmds='chmod 644 $oldlib'
11605old_postuninstall_cmds=
11606
11607if test -n "$RANLIB"; then
11608  case $host_os in
11609  openbsd*)
11610    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11611    ;;
11612  *)
11613    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11614    ;;
11615  esac
11616  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11617fi
11618
11619cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11620
11621# Only perform the check for file, if the check method requires it
11622case $deplibs_check_method in
11623file_magic*)
11624  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11625    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11626echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11627if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11628  echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630  case $MAGIC_CMD in
11631[\\/*] |  ?:[\\/]*)
11632  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11633  ;;
11634*)
11635  lt_save_MAGIC_CMD="$MAGIC_CMD"
11636  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11637  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11638  for ac_dir in $ac_dummy; do
11639    IFS="$lt_save_ifs"
11640    test -z "$ac_dir" && ac_dir=.
11641    if test -f $ac_dir/${ac_tool_prefix}file; then
11642      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11643      if test -n "$file_magic_test_file"; then
11644	case $deplibs_check_method in
11645	"file_magic "*)
11646	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11647	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11648	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11649	    $EGREP "$file_magic_regex" > /dev/null; then
11650	    :
11651	  else
11652	    cat <<EOF 1>&2
11653
11654*** Warning: the command libtool uses to detect shared libraries,
11655*** $file_magic_cmd, produces output that libtool cannot recognize.
11656*** The result is that libtool may fail to recognize shared libraries
11657*** as such.  This will affect the creation of libtool libraries that
11658*** depend on shared libraries, but programs linked with such libtool
11659*** libraries will work regardless of this problem.  Nevertheless, you
11660*** may want to report the problem to your system manager and/or to
11661*** bug-libtool@gnu.org
11662
11663EOF
11664	  fi ;;
11665	esac
11666      fi
11667      break
11668    fi
11669  done
11670  IFS="$lt_save_ifs"
11671  MAGIC_CMD="$lt_save_MAGIC_CMD"
11672  ;;
11673esac
11674fi
11675
11676MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11677if test -n "$MAGIC_CMD"; then
11678  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11679echo "${ECHO_T}$MAGIC_CMD" >&6
11680else
11681  echo "$as_me:$LINENO: result: no" >&5
11682echo "${ECHO_T}no" >&6
11683fi
11684
11685if test -z "$lt_cv_path_MAGIC_CMD"; then
11686  if test -n "$ac_tool_prefix"; then
11687    echo "$as_me:$LINENO: checking for file" >&5
11688echo $ECHO_N "checking for file... $ECHO_C" >&6
11689if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11690  echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692  case $MAGIC_CMD in
11693[\\/*] |  ?:[\\/]*)
11694  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11695  ;;
11696*)
11697  lt_save_MAGIC_CMD="$MAGIC_CMD"
11698  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11699  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11700  for ac_dir in $ac_dummy; do
11701    IFS="$lt_save_ifs"
11702    test -z "$ac_dir" && ac_dir=.
11703    if test -f $ac_dir/file; then
11704      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11705      if test -n "$file_magic_test_file"; then
11706	case $deplibs_check_method in
11707	"file_magic "*)
11708	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11709	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11710	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11711	    $EGREP "$file_magic_regex" > /dev/null; then
11712	    :
11713	  else
11714	    cat <<EOF 1>&2
11715
11716*** Warning: the command libtool uses to detect shared libraries,
11717*** $file_magic_cmd, produces output that libtool cannot recognize.
11718*** The result is that libtool may fail to recognize shared libraries
11719*** as such.  This will affect the creation of libtool libraries that
11720*** depend on shared libraries, but programs linked with such libtool
11721*** libraries will work regardless of this problem.  Nevertheless, you
11722*** may want to report the problem to your system manager and/or to
11723*** bug-libtool@gnu.org
11724
11725EOF
11726	  fi ;;
11727	esac
11728      fi
11729      break
11730    fi
11731  done
11732  IFS="$lt_save_ifs"
11733  MAGIC_CMD="$lt_save_MAGIC_CMD"
11734  ;;
11735esac
11736fi
11737
11738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11739if test -n "$MAGIC_CMD"; then
11740  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11741echo "${ECHO_T}$MAGIC_CMD" >&6
11742else
11743  echo "$as_me:$LINENO: result: no" >&5
11744echo "${ECHO_T}no" >&6
11745fi
11746
11747  else
11748    MAGIC_CMD=:
11749  fi
11750fi
11751
11752  fi
11753  ;;
11754esac
11755
11756enable_dlopen=yes
11757enable_win32_dll=no
11758
11759# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11760if test "${enable_libtool_lock+set}" = set; then
11761  enableval="$enable_libtool_lock"
11762
11763fi;
11764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11765
11766
11767# Check whether --with-pic or --without-pic was given.
11768if test "${with_pic+set}" = set; then
11769  withval="$with_pic"
11770  pic_mode="$withval"
11771else
11772  pic_mode=default
11773fi;
11774test -z "$pic_mode" && pic_mode=default
11775
11776# Use C for the default configuration in the libtool script
11777tagname=
11778lt_save_CC="$CC"
11779ac_ext=c
11780ac_cpp='$CPP $CPPFLAGS'
11781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11783ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784
11785
11786# Source file extension for C test sources.
11787ac_ext=c
11788
11789# Object file extension for compiled C test sources.
11790objext=o
11791objext=$objext
11792
11793# Code to be used in simple compile tests
11794lt_simple_compile_test_code="int some_variable = 0;\n"
11795
11796# Code to be used in simple link tests
11797lt_simple_link_test_code='int main(){return(0);}\n'
11798
11799
11800# If no C compiler was specified, use CC.
11801LTCC=${LTCC-"$CC"}
11802
11803# Allow CC to be a program name with arguments.
11804compiler=$CC
11805
11806
11807#
11808# Check for any special shared library compilation flags.
11809#
11810lt_prog_cc_shlib=
11811if test "$GCC" = no; then
11812  case $host_os in
11813  sco3.2v5*)
11814    lt_prog_cc_shlib='-belf'
11815    ;;
11816  esac
11817fi
11818if test -n "$lt_prog_cc_shlib"; then
11819  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11820echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11821  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
11822  else
11823    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11824echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11825    lt_cv_prog_cc_can_build_shared=no
11826  fi
11827fi
11828
11829
11830#
11831# Check to make sure the static flag actually works.
11832#
11833echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11834echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11835if test "${lt_prog_compiler_static_works+set}" = set; then
11836  echo $ECHO_N "(cached) $ECHO_C" >&6
11837else
11838  lt_prog_compiler_static_works=no
11839   save_LDFLAGS="$LDFLAGS"
11840   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11841   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11842   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11843     # The compiler can only warn and ignore the option if not recognized
11844     # So say no if there are warnings
11845     if test -s conftest.err; then
11846       # Append any errors to the config.log.
11847       cat conftest.err 1>&5
11848     else
11849       lt_prog_compiler_static_works=yes
11850     fi
11851   fi
11852   $rm conftest*
11853   LDFLAGS="$save_LDFLAGS"
11854
11855fi
11856echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11857echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11858
11859if test x"$lt_prog_compiler_static_works" = xyes; then
11860    :
11861else
11862    lt_prog_compiler_static=
11863fi
11864
11865
11866
11867
11868lt_prog_compiler_no_builtin_flag=
11869
11870if test "$GCC" = yes; then
11871  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11872
11873
11874echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11875echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11876if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11877  echo $ECHO_N "(cached) $ECHO_C" >&6
11878else
11879  lt_cv_prog_compiler_rtti_exceptions=no
11880  ac_outfile=conftest.$ac_objext
11881   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11882   lt_compiler_flag="-fno-rtti -fno-exceptions"
11883   # Insert the option either (1) after the last *FLAGS variable, or
11884   # (2) before a word containing "conftest.", or (3) at the end.
11885   # Note that $ac_compile itself does not contain backslashes and begins
11886   # with a dollar sign (not a hyphen), so the echo should work correctly.
11887   # The option is referenced via a variable to avoid confusing sed.
11888   lt_compile=`echo "$ac_compile" | $SED \
11889   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11890   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11891   -e 's:$: $lt_compiler_flag:'`
11892   (eval echo "\"\$as_me:11892: $lt_compile\"" >&5)
11893   (eval "$lt_compile" 2>conftest.err)
11894   ac_status=$?
11895   cat conftest.err >&5
11896   echo "$as_me:11896: \$? = $ac_status" >&5
11897   if (exit $ac_status) && test -s "$ac_outfile"; then
11898     # The compiler can only warn and ignore the option if not recognized
11899     # So say no if there are warnings
11900     if test ! -s conftest.err; then
11901       lt_cv_prog_compiler_rtti_exceptions=yes
11902     fi
11903   fi
11904   $rm conftest*
11905
11906fi
11907echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11908echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11909
11910if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11911    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11912else
11913    :
11914fi
11915
11916fi
11917
11918lt_prog_compiler_wl=
11919lt_prog_compiler_pic=
11920lt_prog_compiler_static=
11921
11922echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11923echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11924
11925  if test "$GCC" = yes; then
11926    lt_prog_compiler_wl='-Wl,'
11927    lt_prog_compiler_static='-static'
11928
11929    case $host_os in
11930      aix*)
11931      # All AIX code is PIC.
11932      if test "$host_cpu" = ia64; then
11933	# AIX 5 now supports IA64 processor
11934	lt_prog_compiler_static='-Bstatic'
11935      fi
11936      ;;
11937
11938    amigaos*)
11939      # FIXME: we need at least 68020 code to build shared libraries, but
11940      # adding the `-m68020' flag to GCC prevents building anything better,
11941      # like `-m68040'.
11942      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11943      ;;
11944
11945    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11946      # PIC is the default for these OSes.
11947      ;;
11948
11949    mingw* | pw32* | os2*)
11950      # This hack is so that the source file can tell whether it is being
11951      # built for inclusion in a dll (and should export symbols for example).
11952      lt_prog_compiler_pic='-DDLL_EXPORT'
11953      ;;
11954
11955    darwin* | rhapsody*)
11956      # PIC is the default on this platform
11957      # Common symbols not allowed in MH_DYLIB files
11958      lt_prog_compiler_pic='-fno-common'
11959      ;;
11960
11961    msdosdjgpp*)
11962      # Just because we use GCC doesn't mean we suddenly get shared libraries
11963      # on systems that don't support them.
11964      lt_prog_compiler_can_build_shared=no
11965      enable_shared=no
11966      ;;
11967
11968    sysv4*MP*)
11969      if test -d /usr/nec; then
11970	lt_prog_compiler_pic=-Kconform_pic
11971      fi
11972      ;;
11973
11974    hpux*)
11975      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11976      # not for PA HP-UX.
11977      case "$host_cpu" in
11978      hppa*64*|ia64*)
11979	# +Z the default
11980	;;
11981      *)
11982	lt_prog_compiler_pic='-fPIC'
11983	;;
11984      esac
11985      ;;
11986
11987    *)
11988      lt_prog_compiler_pic='-fPIC'
11989      ;;
11990    esac
11991  else
11992    # PORTME Check for flag to pass linker flags through the system compiler.
11993    case $host_os in
11994    aix*)
11995      lt_prog_compiler_wl='-Wl,'
11996      if test "$host_cpu" = ia64; then
11997	# AIX 5 now supports IA64 processor
11998	lt_prog_compiler_static='-Bstatic'
11999      else
12000	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12001      fi
12002      ;;
12003      darwin*)
12004        # PIC is the default on this platform
12005        # Common symbols not allowed in MH_DYLIB files
12006       case "$cc_basename" in
12007         xlc*)
12008         lt_prog_compiler_pic='-qnocommon'
12009         lt_prog_compiler_wl='-Wl,'
12010         ;;
12011       esac
12012       ;;
12013
12014    mingw* | pw32* | os2*)
12015      # This hack is so that the source file can tell whether it is being
12016      # built for inclusion in a dll (and should export symbols for example).
12017      lt_prog_compiler_pic='-DDLL_EXPORT'
12018      ;;
12019
12020    hpux9* | hpux10* | hpux11*)
12021      lt_prog_compiler_wl='-Wl,'
12022      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12023      # not for PA HP-UX.
12024      case "$host_cpu" in
12025      hppa*64*|ia64*)
12026	# +Z the default
12027	;;
12028      *)
12029	lt_prog_compiler_pic='+Z'
12030	;;
12031      esac
12032      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12033      lt_prog_compiler_static='${wl}-a ${wl}archive'
12034      ;;
12035
12036    irix5* | irix6* | nonstopux*)
12037      lt_prog_compiler_wl='-Wl,'
12038      # PIC (with -KPIC) is the default.
12039      lt_prog_compiler_static='-non_shared'
12040      ;;
12041
12042    newsos6)
12043      lt_prog_compiler_pic='-KPIC'
12044      lt_prog_compiler_static='-Bstatic'
12045      ;;
12046
12047    linux*)
12048      case $CC in
12049      icc* | ecc*)
12050	lt_prog_compiler_wl='-Wl,'
12051	lt_prog_compiler_pic='-KPIC'
12052	lt_prog_compiler_static='-static'
12053        ;;
12054      ccc*)
12055        lt_prog_compiler_wl='-Wl,'
12056        # All Alpha code is PIC.
12057        lt_prog_compiler_static='-non_shared'
12058        ;;
12059      esac
12060      ;;
12061
12062    osf3* | osf4* | osf5*)
12063      lt_prog_compiler_wl='-Wl,'
12064      # All OSF/1 code is PIC.
12065      lt_prog_compiler_static='-non_shared'
12066      ;;
12067
12068    sco3.2v5*)
12069      lt_prog_compiler_pic='-Kpic'
12070      lt_prog_compiler_static='-dn'
12071      ;;
12072
12073    solaris*)
12074      lt_prog_compiler_wl='-Wl,'
12075      lt_prog_compiler_pic='-KPIC'
12076      lt_prog_compiler_static='-Bstatic'
12077      ;;
12078
12079    sunos4*)
12080      lt_prog_compiler_wl='-Qoption ld '
12081      lt_prog_compiler_pic='-PIC'
12082      lt_prog_compiler_static='-Bstatic'
12083      ;;
12084
12085    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12086      lt_prog_compiler_wl='-Wl,'
12087      lt_prog_compiler_pic='-KPIC'
12088      lt_prog_compiler_static='-Bstatic'
12089      ;;
12090
12091    sysv4*MP*)
12092      if test -d /usr/nec ;then
12093	lt_prog_compiler_pic='-Kconform_pic'
12094	lt_prog_compiler_static='-Bstatic'
12095      fi
12096      ;;
12097
12098    uts4*)
12099      lt_prog_compiler_pic='-pic'
12100      lt_prog_compiler_static='-Bstatic'
12101      ;;
12102
12103    *)
12104      lt_prog_compiler_can_build_shared=no
12105      ;;
12106    esac
12107  fi
12108
12109echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12110echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12111
12112#
12113# Check to make sure the PIC flag actually works.
12114#
12115if test -n "$lt_prog_compiler_pic"; then
12116
12117echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12118echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12119if test "${lt_prog_compiler_pic_works+set}" = set; then
12120  echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122  lt_prog_compiler_pic_works=no
12123  ac_outfile=conftest.$ac_objext
12124   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12125   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12126   # Insert the option either (1) after the last *FLAGS variable, or
12127   # (2) before a word containing "conftest.", or (3) at the end.
12128   # Note that $ac_compile itself does not contain backslashes and begins
12129   # with a dollar sign (not a hyphen), so the echo should work correctly.
12130   # The option is referenced via a variable to avoid confusing sed.
12131   lt_compile=`echo "$ac_compile" | $SED \
12132   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12133   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12134   -e 's:$: $lt_compiler_flag:'`
12135   (eval echo "\"\$as_me:12135: $lt_compile\"" >&5)
12136   (eval "$lt_compile" 2>conftest.err)
12137   ac_status=$?
12138   cat conftest.err >&5
12139   echo "$as_me:12139: \$? = $ac_status" >&5
12140   if (exit $ac_status) && test -s "$ac_outfile"; then
12141     # The compiler can only warn and ignore the option if not recognized
12142     # So say no if there are warnings
12143     if test ! -s conftest.err; then
12144       lt_prog_compiler_pic_works=yes
12145     fi
12146   fi
12147   $rm conftest*
12148
12149fi
12150echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12151echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12152
12153if test x"$lt_prog_compiler_pic_works" = xyes; then
12154    case $lt_prog_compiler_pic in
12155     "" | " "*) ;;
12156     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12157     esac
12158else
12159    lt_prog_compiler_pic=
12160     lt_prog_compiler_can_build_shared=no
12161fi
12162
12163fi
12164case "$host_os" in
12165  # For platforms which do not support PIC, -DPIC is meaningless:
12166  *djgpp*)
12167    lt_prog_compiler_pic=
12168    ;;
12169  *)
12170    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12171    ;;
12172esac
12173
12174echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12175echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12176if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12177  echo $ECHO_N "(cached) $ECHO_C" >&6
12178else
12179  lt_cv_prog_compiler_c_o=no
12180   $rm -r conftest 2>/dev/null
12181   mkdir conftest
12182   cd conftest
12183   mkdir out
12184   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12186   lt_compiler_flag="-o out/conftest2.$ac_objext"
12187   # Insert the option either (1) after the last *FLAGS variable, or
12188   # (2) before a word containing "conftest.", or (3) at the end.
12189   # Note that $ac_compile itself does not contain backslashes and begins
12190   # with a dollar sign (not a hyphen), so the echo should work correctly.
12191   lt_compile=`echo "$ac_compile" | $SED \
12192   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194   -e 's:$: $lt_compiler_flag:'`
12195   (eval echo "\"\$as_me:12195: $lt_compile\"" >&5)
12196   (eval "$lt_compile" 2>out/conftest.err)
12197   ac_status=$?
12198   cat out/conftest.err >&5
12199   echo "$as_me:12199: \$? = $ac_status" >&5
12200   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12201   then
12202     # The compiler can only warn and ignore the option if not recognized
12203     # So say no if there are warnings
12204     if test ! -s out/conftest.err; then
12205       lt_cv_prog_compiler_c_o=yes
12206     fi
12207   fi
12208   chmod u+w .
12209   $rm conftest*
12210   # SGI C++ compiler will create directory out/ii_files/ for
12211   # template instantiation
12212   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12213   $rm out/* && rmdir out
12214   cd ..
12215   rmdir conftest
12216   $rm conftest*
12217
12218fi
12219echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12220echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12221
12222
12223hard_links="nottested"
12224if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12225  # do not overwrite the value of need_locks provided by the user
12226  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12227echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12228  hard_links=yes
12229  $rm conftest*
12230  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12231  touch conftest.a
12232  ln conftest.a conftest.b 2>&5 || hard_links=no
12233  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12234  echo "$as_me:$LINENO: result: $hard_links" >&5
12235echo "${ECHO_T}$hard_links" >&6
12236  if test "$hard_links" = no; then
12237    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12238echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12239    need_locks=warn
12240  fi
12241else
12242  need_locks=no
12243fi
12244
12245echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12247
12248  runpath_var=
12249  allow_undefined_flag=
12250  enable_shared_with_static_runtimes=no
12251  archive_cmds=
12252  archive_expsym_cmds=
12253  old_archive_From_new_cmds=
12254  old_archive_from_expsyms_cmds=
12255  export_dynamic_flag_spec=
12256  whole_archive_flag_spec=
12257  thread_safe_flag_spec=
12258  hardcode_libdir_flag_spec=
12259  hardcode_libdir_flag_spec_ld=
12260  hardcode_libdir_separator=
12261  hardcode_direct=no
12262  hardcode_minus_L=no
12263  hardcode_shlibpath_var=unsupported
12264  link_all_deplibs=unknown
12265  hardcode_automatic=no
12266  module_cmds=
12267  module_expsym_cmds=
12268  always_export_symbols=no
12269  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12270  # include_expsyms should be a list of space-separated symbols to be *always*
12271  # included in the symbol list
12272  include_expsyms=
12273  # exclude_expsyms can be an extended regexp of symbols to exclude
12274  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12275  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12276  # as well as any symbol that contains `d'.
12277  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12278  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12279  # platforms (ab)use it in PIC code, but their linkers get confused if
12280  # the symbol is explicitly referenced.  Since portable code cannot
12281  # rely on this symbol name, it's probably fine to never include it in
12282  # preloaded symbol tables.
12283  extract_expsyms_cmds=
12284
12285  case $host_os in
12286  cygwin* | mingw* | pw32*)
12287    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12288    # When not using gcc, we currently assume that we are using
12289    # Microsoft Visual C++.
12290    if test "$GCC" != yes; then
12291      with_gnu_ld=no
12292    fi
12293    ;;
12294  openbsd*)
12295    with_gnu_ld=no
12296    ;;
12297  esac
12298
12299  ld_shlibs=yes
12300  if test "$with_gnu_ld" = yes; then
12301    # If archive_cmds runs LD, not CC, wlarc should be empty
12302    wlarc='${wl}'
12303
12304    # See if GNU ld supports shared libraries.
12305    case $host_os in
12306    aix3* | aix4* | aix5*)
12307      # On AIX/PPC, the GNU linker is very broken
12308      if test "$host_cpu" != ia64; then
12309	ld_shlibs=no
12310	cat <<EOF 1>&2
12311
12312*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12313*** to be unable to reliably create shared libraries on AIX.
12314*** Therefore, libtool is disabling shared libraries support.  If you
12315*** really care for shared libraries, you may want to modify your PATH
12316*** so that a non-GNU linker is found, and then restart.
12317
12318EOF
12319      fi
12320      ;;
12321
12322    amigaos*)
12323      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)'
12324      hardcode_libdir_flag_spec='-L$libdir'
12325      hardcode_minus_L=yes
12326
12327      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12328      # that the semantics of dynamic libraries on AmigaOS, at least up
12329      # to version 4, is to share data among multiple programs linked
12330      # with the same dynamic library.  Since this doesn't match the
12331      # behavior of shared libraries on other platforms, we can't use
12332      # them.
12333      ld_shlibs=no
12334      ;;
12335
12336    beos*)
12337      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12338	allow_undefined_flag=unsupported
12339	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12340	# support --undefined.  This deserves some investigation.  FIXME
12341	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342      else
12343	ld_shlibs=no
12344      fi
12345      ;;
12346
12347    cygwin* | mingw* | pw32*)
12348      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12349      # as there is no search path for DLLs.
12350      hardcode_libdir_flag_spec='-L$libdir'
12351      allow_undefined_flag=unsupported
12352      always_export_symbols=no
12353      enable_shared_with_static_runtimes=yes
12354      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12355
12356      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12357        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12358	# If the export-symbols file already is a .def file (1st line
12359	# is EXPORTS), use it as is; otherwise, prepend...
12360	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12361	  cp $export_symbols $output_objdir/$soname.def;
12362	else
12363	  echo EXPORTS > $output_objdir/$soname.def;
12364	  cat $export_symbols >> $output_objdir/$soname.def;
12365	fi~
12366	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12367      else
12368	ld_shlibs=no
12369      fi
12370      ;;
12371
12372    netbsd*)
12373      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12374	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12375	wlarc=
12376      else
12377	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12378	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12379      fi
12380      ;;
12381
12382    solaris* | sysv5*)
12383      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12384	ld_shlibs=no
12385	cat <<EOF 1>&2
12386
12387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12388*** create shared libraries on Solaris systems.  Therefore, libtool
12389*** is disabling shared libraries support.  We urge you to upgrade GNU
12390*** binutils to release 2.9.1 or newer.  Another option is to modify
12391*** your PATH or compiler configuration so that the native linker is
12392*** used, and then restart.
12393
12394EOF
12395      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12396	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12397	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12398      else
12399	ld_shlibs=no
12400      fi
12401      ;;
12402
12403    sunos4*)
12404      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12405      wlarc=
12406      hardcode_direct=yes
12407      hardcode_shlibpath_var=no
12408      ;;
12409
12410  linux*)
12411    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12412        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12413	archive_cmds="$tmp_archive_cmds"
12414      supports_anon_versioning=no
12415      case `$LD -v 2>/dev/null` in
12416        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12417        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12418        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12419        *\ 2.11.*) ;; # other 2.11 versions
12420        *) supports_anon_versioning=yes ;;
12421      esac
12422      if test $supports_anon_versioning = yes; then
12423        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12424cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12425$echo "local: *; };" >> $output_objdir/$libname.ver~
12426        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12427      else
12428        archive_expsym_cmds="$tmp_archive_cmds"
12429      fi
12430    else
12431      ld_shlibs=no
12432    fi
12433    ;;
12434
12435    *)
12436      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12437	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12438	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12439      else
12440	ld_shlibs=no
12441      fi
12442      ;;
12443    esac
12444
12445    if test "$ld_shlibs" = yes; then
12446      runpath_var=LD_RUN_PATH
12447      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12448      export_dynamic_flag_spec='${wl}--export-dynamic'
12449      # ancient GNU ld didn't support --whole-archive et. al.
12450      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12451 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12452      else
12453  	whole_archive_flag_spec=
12454      fi
12455    fi
12456  else
12457    # PORTME fill in a description of your system's linker (not GNU ld)
12458    case $host_os in
12459    aix3*)
12460      allow_undefined_flag=unsupported
12461      always_export_symbols=yes
12462      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'
12463      # Note: this linker hardcodes the directories in LIBPATH if there
12464      # are no directories specified by -L.
12465      hardcode_minus_L=yes
12466      if test "$GCC" = yes && test -z "$link_static_flag"; then
12467	# Neither direct hardcoding nor static linking is supported with a
12468	# broken collect2.
12469	hardcode_direct=unsupported
12470      fi
12471      ;;
12472
12473    aix4* | aix5*)
12474      if test "$host_cpu" = ia64; then
12475	# On IA64, the linker does run time linking by default, so we don't
12476	# have to do anything special.
12477	aix_use_runtimelinking=no
12478	exp_sym_flag='-Bexport'
12479	no_entry_flag=""
12480      else
12481	# If we're using GNU nm, then we don't want the "-C" option.
12482	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12483	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12484	  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'
12485	else
12486	  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'
12487	fi
12488	aix_use_runtimelinking=no
12489
12490	# Test if we are trying to use run time linking or normal
12491	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12492	# need to do runtime linking.
12493	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12494	  for ld_flag in $LDFLAGS; do
12495  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12496  	    aix_use_runtimelinking=yes
12497  	    break
12498  	  fi
12499	  done
12500	esac
12501
12502	exp_sym_flag='-bexport'
12503	no_entry_flag='-bnoentry'
12504      fi
12505
12506      # When large executables or shared objects are built, AIX ld can
12507      # have problems creating the table of contents.  If linking a library
12508      # or program results in "error TOC overflow" add -mminimal-toc to
12509      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12510      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512      archive_cmds=''
12513      hardcode_direct=yes
12514      hardcode_libdir_separator=':'
12515      link_all_deplibs=yes
12516
12517      if test "$GCC" = yes; then
12518	case $host_os in aix4.012|aix4.012.*)
12519	# We only want to do this on AIX 4.2 and lower, the check
12520	# below for broken collect2 doesn't work under 4.3+
12521	  collect2name=`${CC} -print-prog-name=collect2`
12522	  if test -f "$collect2name" && \
12523  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12524	  then
12525  	  # We have reworked collect2
12526  	  hardcode_direct=yes
12527	  else
12528  	  # We have old collect2
12529  	  hardcode_direct=unsupported
12530  	  # It fails to find uninstalled libraries when the uninstalled
12531  	  # path is not listed in the libpath.  Setting hardcode_minus_L
12532  	  # to unsupported forces relinking
12533  	  hardcode_minus_L=yes
12534  	  hardcode_libdir_flag_spec='-L$libdir'
12535  	  hardcode_libdir_separator=
12536	  fi
12537	esac
12538	shared_flag='-shared'
12539      else
12540	# not using gcc
12541	if test "$host_cpu" = ia64; then
12542  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543  	# chokes on -Wl,-G. The following line is correct:
12544	  shared_flag='-G'
12545	else
12546  	if test "$aix_use_runtimelinking" = yes; then
12547	    shared_flag='${wl}-G'
12548	  else
12549	    shared_flag='${wl}-bM:SRE'
12550  	fi
12551	fi
12552      fi
12553
12554      # It seems that -bexpall does not export symbols beginning with
12555      # underscore (_), so it is better to generate a list of symbols to export.
12556      always_export_symbols=yes
12557      if test "$aix_use_runtimelinking" = yes; then
12558	# Warning - without using the other runtime loading flags (-brtl),
12559	# -berok will link without error, but may produce a broken library.
12560	allow_undefined_flag='-berok'
12561       # Determine the default libpath from the value encoded in an empty executable.
12562       cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h.  */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h.  */
12568
12569int
12570main ()
12571{
12572
12573  ;
12574  return 0;
12575}
12576_ACEOF
12577rm -f conftest.$ac_objext conftest$ac_exeext
12578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579  (eval $ac_link) 2>conftest.er1
12580  ac_status=$?
12581  grep -v '^ *+' conftest.er1 >conftest.err
12582  rm -f conftest.er1
12583  cat conftest.err >&5
12584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585  (exit $ac_status); } &&
12586	 { ac_try='test -z "$ac_c_werror_flag"
12587			 || test ! -s conftest.err'
12588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589  (eval $ac_try) 2>&5
12590  ac_status=$?
12591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592  (exit $ac_status); }; } &&
12593	 { ac_try='test -s conftest$ac_exeext'
12594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595  (eval $ac_try) 2>&5
12596  ac_status=$?
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); }; }; then
12599
12600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12601}'`
12602# Check for a 64-bit object if we didn't find anything.
12603if 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; }
12604}'`; fi
12605else
12606  echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609fi
12610rm -f conftest.err conftest.$ac_objext \
12611      conftest$ac_exeext conftest.$ac_ext
12612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12613
12614       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12615	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"
12616       else
12617	if test "$host_cpu" = ia64; then
12618	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12619	  allow_undefined_flag="-z nodefs"
12620	  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"
12621	else
12622	 # Determine the default libpath from the value encoded in an empty executable.
12623	 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h.  */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h.  */
12629
12630int
12631main ()
12632{
12633
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext conftest$ac_exeext
12639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640  (eval $ac_link) 2>conftest.er1
12641  ac_status=$?
12642  grep -v '^ *+' conftest.er1 >conftest.err
12643  rm -f conftest.er1
12644  cat conftest.err >&5
12645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); } &&
12647	 { ac_try='test -z "$ac_c_werror_flag"
12648			 || test ! -s conftest.err'
12649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650  (eval $ac_try) 2>&5
12651  ac_status=$?
12652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653  (exit $ac_status); }; } &&
12654	 { ac_try='test -s conftest$ac_exeext'
12655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656  (eval $ac_try) 2>&5
12657  ac_status=$?
12658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659  (exit $ac_status); }; }; then
12660
12661aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12662}'`
12663# Check for a 64-bit object if we didn't find anything.
12664if 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; }
12665}'`; fi
12666else
12667  echo "$as_me: failed program was:" >&5
12668sed 's/^/| /' conftest.$ac_ext >&5
12669
12670fi
12671rm -f conftest.err conftest.$ac_objext \
12672      conftest$ac_exeext conftest.$ac_ext
12673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12674
12675	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12676	  # Warning - without using the other run time loading flags,
12677	  # -berok will link without error, but may produce a broken library.
12678	  no_undefined_flag=' ${wl}-bernotok'
12679	  allow_undefined_flag=' ${wl}-berok'
12680	  # -bexpall does not export symbols beginning with underscore (_)
12681	  always_export_symbols=yes
12682	  # Exported symbols can be pulled into shared objects from archives
12683	  whole_archive_flag_spec=' '
12684	  archive_cmds_need_lc=yes
12685	  # This is similar to how AIX traditionally builds it's shared libraries.
12686	  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'
12687	fi
12688      fi
12689      ;;
12690
12691    amigaos*)
12692      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)'
12693      hardcode_libdir_flag_spec='-L$libdir'
12694      hardcode_minus_L=yes
12695      # see comment about different semantics on the GNU ld section
12696      ld_shlibs=no
12697      ;;
12698
12699    bsdi[45]*)
12700      export_dynamic_flag_spec=-rdynamic
12701      ;;
12702
12703    cygwin* | mingw* | pw32*)
12704      # When not using gcc, we currently assume that we are using
12705      # Microsoft Visual C++.
12706      # hardcode_libdir_flag_spec is actually meaningless, as there is
12707      # no search path for DLLs.
12708      hardcode_libdir_flag_spec=' '
12709      allow_undefined_flag=unsupported
12710      # Tell ltmain to make .lib files, not .a files.
12711      libext=lib
12712      # Tell ltmain to make .dll files, not .so files.
12713      shrext_cmds=".dll"
12714      # FIXME: Setting linknames here is a bad hack.
12715      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12716      # The linker will automatically build a .lib file if we build a DLL.
12717      old_archive_From_new_cmds='true'
12718      # FIXME: Should let the user specify the lib program.
12719      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12720      fix_srcfile_path='`cygpath -w "$srcfile"`'
12721      enable_shared_with_static_runtimes=yes
12722      ;;
12723
12724    darwin* | rhapsody*)
12725      case "$host_os" in
12726        rhapsody* | darwin1.[012])
12727         allow_undefined_flag='${wl}-undefined ${wl}suppress'
12728         ;;
12729       *) # Darwin 1.3 on
12730         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12731           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12732         else
12733           case ${MACOSX_DEPLOYMENT_TARGET} in
12734             10.[012])
12735               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12736               ;;
12737             10.*)
12738               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12739               ;;
12740           esac
12741         fi
12742         ;;
12743      esac
12744      archive_cmds_need_lc=no
12745      hardcode_direct=no
12746      hardcode_automatic=yes
12747      hardcode_shlibpath_var=unsupported
12748      whole_archive_flag_spec=''
12749      link_all_deplibs=yes
12750    if test "$GCC" = yes ; then
12751    	output_verbose_link_cmd='echo'
12752        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12753      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12754      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12755      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}'
12756      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}'
12757    else
12758      case "$cc_basename" in
12759        xlc*)
12760         output_verbose_link_cmd='echo'
12761         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12762         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12763          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12764         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}'
12765          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}'
12766          ;;
12767       *)
12768         ld_shlibs=no
12769          ;;
12770      esac
12771    fi
12772      ;;
12773
12774    dgux*)
12775      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12776      hardcode_libdir_flag_spec='-L$libdir'
12777      hardcode_shlibpath_var=no
12778      ;;
12779
12780    freebsd1*)
12781      ld_shlibs=no
12782      ;;
12783
12784    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12785    # support.  Future versions do this automatically, but an explicit c++rt0.o
12786    # does not break anything, and helps significantly (at the cost of a little
12787    # extra space).
12788    freebsd2.2*)
12789      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12790      hardcode_libdir_flag_spec='-R$libdir'
12791      hardcode_direct=yes
12792      hardcode_shlibpath_var=no
12793      ;;
12794
12795    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12796    freebsd2*)
12797      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798      hardcode_direct=yes
12799      hardcode_minus_L=yes
12800      hardcode_shlibpath_var=no
12801      ;;
12802
12803    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12804    freebsd* | kfreebsd*-gnu)
12805      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12806      hardcode_libdir_flag_spec='-R$libdir'
12807      hardcode_direct=yes
12808      hardcode_shlibpath_var=no
12809      ;;
12810
12811    hpux9*)
12812      if test "$GCC" = yes; then
12813	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'
12814      else
12815	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'
12816      fi
12817      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12818      hardcode_libdir_separator=:
12819      hardcode_direct=yes
12820
12821      # hardcode_minus_L: Not really in the search PATH,
12822      # but as the default location of the library.
12823      hardcode_minus_L=yes
12824      export_dynamic_flag_spec='${wl}-E'
12825      ;;
12826
12827    hpux10* | hpux11*)
12828      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12829	case "$host_cpu" in
12830	hppa*64*|ia64*)
12831	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12832	  ;;
12833	*)
12834	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12835	  ;;
12836	esac
12837      else
12838	case "$host_cpu" in
12839	hppa*64*|ia64*)
12840	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12841	  ;;
12842	*)
12843	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12844	  ;;
12845	esac
12846      fi
12847      if test "$with_gnu_ld" = no; then
12848	case "$host_cpu" in
12849	hppa*64*)
12850	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12851	  hardcode_libdir_flag_spec_ld='+b $libdir'
12852	  hardcode_libdir_separator=:
12853	  hardcode_direct=no
12854	  hardcode_shlibpath_var=no
12855	  ;;
12856	ia64*)
12857	  hardcode_libdir_flag_spec='-L$libdir'
12858	  hardcode_direct=no
12859	  hardcode_shlibpath_var=no
12860
12861	  # hardcode_minus_L: Not really in the search PATH,
12862	  # but as the default location of the library.
12863	  hardcode_minus_L=yes
12864	  ;;
12865	*)
12866	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12867	  hardcode_libdir_separator=:
12868	  hardcode_direct=yes
12869	  export_dynamic_flag_spec='${wl}-E'
12870
12871	  # hardcode_minus_L: Not really in the search PATH,
12872	  # but as the default location of the library.
12873	  hardcode_minus_L=yes
12874	  ;;
12875	esac
12876      fi
12877      ;;
12878
12879    irix5* | irix6* | nonstopux*)
12880      if test "$GCC" = yes; then
12881	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'
12882      else
12883	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'
12884	hardcode_libdir_flag_spec_ld='-rpath $libdir'
12885      fi
12886      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12887      hardcode_libdir_separator=:
12888      link_all_deplibs=yes
12889      ;;
12890
12891    netbsd*)
12892      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12893	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12894      else
12895	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12896      fi
12897      hardcode_libdir_flag_spec='-R$libdir'
12898      hardcode_direct=yes
12899      hardcode_shlibpath_var=no
12900      ;;
12901
12902    newsos6)
12903      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12904      hardcode_direct=yes
12905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12906      hardcode_libdir_separator=:
12907      hardcode_shlibpath_var=no
12908      ;;
12909
12910    openbsd*)
12911      hardcode_direct=yes
12912      hardcode_shlibpath_var=no
12913      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12917	export_dynamic_flag_spec='${wl}-E'
12918      else
12919       case $host_os in
12920	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922	   hardcode_libdir_flag_spec='-R$libdir'
12923	   ;;
12924	 *)
12925	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12927	   ;;
12928       esac
12929      fi
12930      ;;
12931
12932    os2*)
12933      hardcode_libdir_flag_spec='-L$libdir'
12934      hardcode_minus_L=yes
12935      allow_undefined_flag=unsupported
12936      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'
12937      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938      ;;
12939
12940    osf3*)
12941      if test "$GCC" = yes; then
12942	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12943	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'
12944      else
12945	allow_undefined_flag=' -expect_unresolved \*'
12946	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'
12947      fi
12948      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12949      hardcode_libdir_separator=:
12950      ;;
12951
12952    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12953      if test "$GCC" = yes; then
12954	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12955	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'
12956	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12957      else
12958	allow_undefined_flag=' -expect_unresolved \*'
12959	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'
12960	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12961	$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'
12962
12963	# Both c and cxx compiler support -rpath directly
12964	hardcode_libdir_flag_spec='-rpath $libdir'
12965      fi
12966      hardcode_libdir_separator=:
12967      ;;
12968
12969    sco3.2v5*)
12970      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12971      hardcode_shlibpath_var=no
12972      export_dynamic_flag_spec='${wl}-Bexport'
12973      runpath_var=LD_RUN_PATH
12974      hardcode_runpath_var=yes
12975      ;;
12976
12977    solaris*)
12978      no_undefined_flag=' -z text'
12979      if test "$GCC" = yes; then
12980	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12981	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12982	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12983      else
12984	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12985	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12986  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12987      fi
12988      hardcode_libdir_flag_spec='-R$libdir'
12989      hardcode_shlibpath_var=no
12990      case $host_os in
12991      solaris2.[0-5] | solaris2.[0-5].*) ;;
12992      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12993	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12994      esac
12995      link_all_deplibs=yes
12996      ;;
12997
12998    sunos4*)
12999      if test "x$host_vendor" = xsequent; then
13000	# Use $CC to link under sequent, because it throws in some extra .o
13001	# files that make .init and .fini sections work.
13002	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13003      else
13004	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13005      fi
13006      hardcode_libdir_flag_spec='-L$libdir'
13007      hardcode_direct=yes
13008      hardcode_minus_L=yes
13009      hardcode_shlibpath_var=no
13010      ;;
13011
13012    sysv4)
13013      case $host_vendor in
13014	sni)
13015	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13016	  hardcode_direct=yes # is this really true???
13017	;;
13018	siemens)
13019	  ## LD is ld it makes a PLAMLIB
13020	  ## CC just makes a GrossModule.
13021	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13022	  reload_cmds='$CC -r -o $output$reload_objs'
13023	  hardcode_direct=no
13024        ;;
13025	motorola)
13026	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13028	;;
13029      esac
13030      runpath_var='LD_RUN_PATH'
13031      hardcode_shlibpath_var=no
13032      ;;
13033
13034    sysv4.3*)
13035      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036      hardcode_shlibpath_var=no
13037      export_dynamic_flag_spec='-Bexport'
13038      ;;
13039
13040    sysv4*MP*)
13041      if test -d /usr/nec; then
13042	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043	hardcode_shlibpath_var=no
13044	runpath_var=LD_RUN_PATH
13045	hardcode_runpath_var=yes
13046	ld_shlibs=yes
13047      fi
13048      ;;
13049
13050    sysv4.2uw2*)
13051      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13052      hardcode_direct=yes
13053      hardcode_minus_L=no
13054      hardcode_shlibpath_var=no
13055      hardcode_runpath_var=yes
13056      runpath_var=LD_RUN_PATH
13057      ;;
13058
13059   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13060      no_undefined_flag='${wl}-z ${wl}text'
13061      if test "$GCC" = yes; then
13062	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13063      else
13064	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13065      fi
13066      runpath_var='LD_RUN_PATH'
13067      hardcode_shlibpath_var=no
13068      ;;
13069
13070    sysv5*)
13071      no_undefined_flag=' -z text'
13072      # $CC -shared without GNU ld will not create a library from C++
13073      # object files and a static libstdc++, better avoid it by now
13074      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13076  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13077      hardcode_libdir_flag_spec=
13078      hardcode_shlibpath_var=no
13079      runpath_var='LD_RUN_PATH'
13080      ;;
13081
13082    uts4*)
13083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084      hardcode_libdir_flag_spec='-L$libdir'
13085      hardcode_shlibpath_var=no
13086      ;;
13087
13088    *)
13089      ld_shlibs=no
13090      ;;
13091    esac
13092  fi
13093
13094echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13095echo "${ECHO_T}$ld_shlibs" >&6
13096test "$ld_shlibs" = no && can_build_shared=no
13097
13098variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13099if test "$GCC" = yes; then
13100  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13101fi
13102
13103#
13104# Do we need to explicitly link libc?
13105#
13106case "x$archive_cmds_need_lc" in
13107x|xyes)
13108  # Assume -lc should be added
13109  archive_cmds_need_lc=yes
13110
13111  if test "$enable_shared" = yes && test "$GCC" = yes; then
13112    case $archive_cmds in
13113    *'~'*)
13114      # FIXME: we may have to deal with multi-command sequences.
13115      ;;
13116    '$CC '*)
13117      # Test whether the compiler implicitly links with -lc since on some
13118      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13119      # to ld, don't add -lc before -lgcc.
13120      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13121echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13122      $rm conftest*
13123      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13124
13125      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126  (eval $ac_compile) 2>&5
13127  ac_status=$?
13128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129  (exit $ac_status); } 2>conftest.err; then
13130        soname=conftest
13131        lib=conftest
13132        libobjs=conftest.$ac_objext
13133        deplibs=
13134        wl=$lt_prog_compiler_wl
13135        compiler_flags=-v
13136        linker_flags=-v
13137        verstring=
13138        output_objdir=.
13139        libname=conftest
13140        lt_save_allow_undefined_flag=$allow_undefined_flag
13141        allow_undefined_flag=
13142        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13143  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13144  ac_status=$?
13145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146  (exit $ac_status); }
13147        then
13148	  archive_cmds_need_lc=no
13149        else
13150	  archive_cmds_need_lc=yes
13151        fi
13152        allow_undefined_flag=$lt_save_allow_undefined_flag
13153      else
13154        cat conftest.err 1>&5
13155      fi
13156      $rm conftest*
13157      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13158echo "${ECHO_T}$archive_cmds_need_lc" >&6
13159      ;;
13160    esac
13161  fi
13162  ;;
13163esac
13164
13165echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13166echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13167library_names_spec=
13168libname_spec='lib$name'
13169soname_spec=
13170shrext_cmds=".so"
13171postinstall_cmds=
13172postuninstall_cmds=
13173finish_cmds=
13174finish_eval=
13175shlibpath_var=
13176shlibpath_overrides_runpath=unknown
13177version_type=none
13178dynamic_linker="$host_os ld.so"
13179sys_lib_dlsearch_path_spec="/lib /usr/lib"
13180if test "$GCC" = yes; then
13181  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13182  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13183    # if the path contains ";" then we assume it to be the separator
13184    # otherwise default to the standard path separator (i.e. ":") - it is
13185    # assumed that no part of a normal pathname contains ";" but that should
13186    # okay in the real world where ";" in dirpaths is itself problematic.
13187    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188  else
13189    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13190  fi
13191else
13192  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13193fi
13194need_lib_prefix=unknown
13195hardcode_into_libs=no
13196
13197# when you set need_version to no, make sure it does not cause -set_version
13198# flags to be left without arguments
13199need_version=unknown
13200
13201case $host_os in
13202aix3*)
13203  version_type=linux
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13205  shlibpath_var=LIBPATH
13206
13207  # AIX 3 has no versioning support, so we append a major version to the name.
13208  soname_spec='${libname}${release}${shared_ext}$major'
13209  ;;
13210
13211aix4* | aix5*)
13212  version_type=linux
13213  need_lib_prefix=no
13214  need_version=no
13215  hardcode_into_libs=yes
13216  if test "$host_cpu" = ia64; then
13217    # AIX 5 supports IA64
13218    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13219    shlibpath_var=LD_LIBRARY_PATH
13220  else
13221    # With GCC up to 2.95.x, collect2 would create an import file
13222    # for dependence libraries.  The import file would start with
13223    # the line `#! .'.  This would cause the generated library to
13224    # depend on `.', always an invalid library.  This was fixed in
13225    # development snapshots of GCC prior to 3.0.
13226    case $host_os in
13227      aix4 | aix4.[01] | aix4.[01].*)
13228      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13229	   echo ' yes '
13230	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13231	:
13232      else
13233	can_build_shared=no
13234      fi
13235      ;;
13236    esac
13237    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13238    # soname into executable. Probably we can add versioning support to
13239    # collect2, so additional links can be useful in future.
13240    if test "$aix_use_runtimelinking" = yes; then
13241      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13242      # instead of lib<name>.a to let people know that these are not
13243      # typical AIX shared libraries.
13244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245    else
13246      # We preserve .a as extension for shared libraries through AIX4.2
13247      # and later when we are not doing run time linking.
13248      library_names_spec='${libname}${release}.a $libname.a'
13249      soname_spec='${libname}${release}${shared_ext}$major'
13250    fi
13251    shlibpath_var=LIBPATH
13252  fi
13253  ;;
13254
13255amigaos*)
13256  library_names_spec='$libname.ixlibrary $libname.a'
13257  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13258  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'
13259  ;;
13260
13261beos*)
13262  library_names_spec='${libname}${shared_ext}'
13263  dynamic_linker="$host_os ld.so"
13264  shlibpath_var=LIBRARY_PATH
13265  ;;
13266
13267bsdi[45]*)
13268  version_type=linux
13269  need_version=no
13270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271  soname_spec='${libname}${release}${shared_ext}$major'
13272  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13273  shlibpath_var=LD_LIBRARY_PATH
13274  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13275  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13276  # the default ld.so.conf also contains /usr/contrib/lib and
13277  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13278  # libtool to hard-code these into programs
13279  ;;
13280
13281cygwin* | mingw* | pw32*)
13282  version_type=windows
13283  shrext_cmds=".dll"
13284  need_version=no
13285  need_lib_prefix=no
13286
13287  case $GCC,$host_os in
13288  yes,cygwin* | yes,mingw* | yes,pw32*)
13289    library_names_spec='$libname.dll.a'
13290    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13291    postinstall_cmds='base_file=`basename \${file}`~
13292      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13293      dldir=$destdir/`dirname \$dlpath`~
13294      test -d \$dldir || mkdir -p \$dldir~
13295      $install_prog $dir/$dlname \$dldir/$dlname'
13296    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13297      dlpath=$dir/\$dldll~
13298       $rm \$dlpath'
13299    shlibpath_overrides_runpath=yes
13300
13301    case $host_os in
13302    cygwin*)
13303      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13304      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13305      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13306      ;;
13307    mingw*)
13308      # MinGW DLLs use traditional 'lib' prefix
13309      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13310      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13311      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13312        # It is most probably a Windows format PATH printed by
13313        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13314        # path with ; separators, and with drive letters. We can handle the
13315        # drive letters (cygwin fileutils understands them), so leave them,
13316        # especially as we might pass files found there to a mingw objdump,
13317        # which wouldn't understand a cygwinified path. Ahh.
13318        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13319      else
13320        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13321      fi
13322      ;;
13323    pw32*)
13324      # pw32 DLLs use 'pw' prefix rather than 'lib'
13325      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13326      ;;
13327    esac
13328    ;;
13329
13330  *)
13331    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13332    ;;
13333  esac
13334  dynamic_linker='Win32 ld.exe'
13335  # FIXME: first we should search . and the directory the executable is in
13336  shlibpath_var=PATH
13337  ;;
13338
13339darwin* | rhapsody*)
13340  dynamic_linker="$host_os dyld"
13341  version_type=darwin
13342  need_lib_prefix=no
13343  need_version=no
13344  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13345  soname_spec='${libname}${release}${major}$shared_ext'
13346  shlibpath_overrides_runpath=yes
13347  shlibpath_var=DYLD_LIBRARY_PATH
13348  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13349  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13350  if test "$GCC" = yes; then
13351    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"`
13352  else
13353    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13354  fi
13355  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13356  ;;
13357
13358dgux*)
13359  version_type=linux
13360  need_lib_prefix=no
13361  need_version=no
13362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13363  soname_spec='${libname}${release}${shared_ext}$major'
13364  shlibpath_var=LD_LIBRARY_PATH
13365  ;;
13366
13367freebsd1*)
13368  dynamic_linker=no
13369  ;;
13370
13371kfreebsd*-gnu)
13372  version_type=linux
13373  need_lib_prefix=no
13374  need_version=no
13375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376  soname_spec='${libname}${release}${shared_ext}$major'
13377  shlibpath_var=LD_LIBRARY_PATH
13378  shlibpath_overrides_runpath=no
13379  hardcode_into_libs=yes
13380  dynamic_linker='GNU ld.so'
13381  ;;
13382
13383freebsd*)
13384  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13385  version_type=freebsd-$objformat
13386  case $version_type in
13387    freebsd-elf*)
13388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13389      need_version=no
13390      need_lib_prefix=no
13391      ;;
13392    freebsd-*)
13393      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13394      need_version=yes
13395      ;;
13396  esac
13397  shlibpath_var=LD_LIBRARY_PATH
13398  case $host_os in
13399  freebsd2*)
13400    shlibpath_overrides_runpath=yes
13401    ;;
13402  freebsd3.01* | freebsdelf3.01*)
13403    shlibpath_overrides_runpath=yes
13404    hardcode_into_libs=yes
13405    ;;
13406  *) # from 3.2 on
13407    shlibpath_overrides_runpath=no
13408    hardcode_into_libs=yes
13409    ;;
13410  esac
13411  ;;
13412
13413gnu*)
13414  version_type=linux
13415  need_lib_prefix=no
13416  need_version=no
13417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13418  soname_spec='${libname}${release}${shared_ext}$major'
13419  shlibpath_var=LD_LIBRARY_PATH
13420  hardcode_into_libs=yes
13421  ;;
13422
13423hpux9* | hpux10* | hpux11*)
13424  # Give a soname corresponding to the major version so that dld.sl refuses to
13425  # link against other versions.
13426  version_type=sunos
13427  need_lib_prefix=no
13428  need_version=no
13429  case "$host_cpu" in
13430  ia64*)
13431    shrext_cmds='.so'
13432    hardcode_into_libs=yes
13433    dynamic_linker="$host_os dld.so"
13434    shlibpath_var=LD_LIBRARY_PATH
13435    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437    soname_spec='${libname}${release}${shared_ext}$major'
13438    if test "X$HPUX_IA64_MODE" = X32; then
13439      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13440    else
13441      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13442    fi
13443    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13444    ;;
13445   hppa*64*)
13446     shrext_cmds='.sl'
13447     hardcode_into_libs=yes
13448     dynamic_linker="$host_os dld.sl"
13449     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13450     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452     soname_spec='${libname}${release}${shared_ext}$major'
13453     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13455     ;;
13456   *)
13457    shrext_cmds='.sl'
13458    dynamic_linker="$host_os dld.sl"
13459    shlibpath_var=SHLIB_PATH
13460    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13461    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462    soname_spec='${libname}${release}${shared_ext}$major'
13463    ;;
13464  esac
13465  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13466  postinstall_cmds='chmod 555 $lib'
13467  ;;
13468
13469irix5* | irix6* | nonstopux*)
13470  case $host_os in
13471    nonstopux*) version_type=nonstopux ;;
13472    *)
13473	if test "$lt_cv_prog_gnu_ld" = yes; then
13474		version_type=linux
13475	else
13476		version_type=irix
13477	fi ;;
13478  esac
13479  need_lib_prefix=no
13480  need_version=no
13481  soname_spec='${libname}${release}${shared_ext}$major'
13482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13483  case $host_os in
13484  irix5* | nonstopux*)
13485    libsuff= shlibsuff=
13486    ;;
13487  *)
13488    case $LD in # libtool.m4 will add one of these switches to LD
13489    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13490      libsuff= shlibsuff= libmagic=32-bit;;
13491    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13492      libsuff=32 shlibsuff=N32 libmagic=N32;;
13493    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13494      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13495    *) libsuff= shlibsuff= libmagic=never-match;;
13496    esac
13497    ;;
13498  esac
13499  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13500  shlibpath_overrides_runpath=no
13501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13503  hardcode_into_libs=yes
13504  ;;
13505
13506# No shared lib support for Linux oldld, aout, or coff.
13507linux*oldld* | linux*aout* | linux*coff*)
13508  dynamic_linker=no
13509  ;;
13510
13511# This must be Linux ELF.
13512linux*)
13513  version_type=linux
13514  need_lib_prefix=no
13515  need_version=no
13516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517  soname_spec='${libname}${release}${shared_ext}$major'
13518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13519  shlibpath_var=LD_LIBRARY_PATH
13520  shlibpath_overrides_runpath=no
13521  # This implies no fast_install, which is unacceptable.
13522  # Some rework will be needed to allow for fast_install
13523  # before this can be enabled.
13524  hardcode_into_libs=yes
13525
13526  # Append ld.so.conf contents to the search path
13527  if test -f /etc/ld.so.conf; then
13528    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13529    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13530  fi
13531
13532  # We used to test for /lib/ld.so.1 and disable shared libraries on
13533  # powerpc, because MkLinux only supported shared libraries with the
13534  # GNU dynamic linker.  Since this was broken with cross compilers,
13535  # most powerpc-linux boxes support dynamic linking these days and
13536  # people can always --disable-shared, the test was removed, and we
13537  # assume the GNU/Linux dynamic linker is in use.
13538  dynamic_linker='GNU/Linux ld.so'
13539  ;;
13540
13541knetbsd*-gnu)
13542  version_type=linux
13543  need_lib_prefix=no
13544  need_version=no
13545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13546  soname_spec='${libname}${release}${shared_ext}$major'
13547  shlibpath_var=LD_LIBRARY_PATH
13548  shlibpath_overrides_runpath=no
13549  hardcode_into_libs=yes
13550  dynamic_linker='GNU ld.so'
13551  ;;
13552
13553netbsd*)
13554  version_type=sunos
13555  need_lib_prefix=no
13556  need_version=no
13557  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13559    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13560    dynamic_linker='NetBSD (a.out) ld.so'
13561  else
13562    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13563    soname_spec='${libname}${release}${shared_ext}$major'
13564    dynamic_linker='NetBSD ld.elf_so'
13565  fi
13566  shlibpath_var=LD_LIBRARY_PATH
13567  shlibpath_overrides_runpath=yes
13568  hardcode_into_libs=yes
13569  ;;
13570
13571newsos6)
13572  version_type=linux
13573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574  shlibpath_var=LD_LIBRARY_PATH
13575  shlibpath_overrides_runpath=yes
13576  ;;
13577
13578nto-qnx*)
13579  version_type=linux
13580  need_lib_prefix=no
13581  need_version=no
13582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13583  soname_spec='${libname}${release}${shared_ext}$major'
13584  shlibpath_var=LD_LIBRARY_PATH
13585  shlibpath_overrides_runpath=yes
13586  ;;
13587
13588openbsd*)
13589  version_type=sunos
13590  need_lib_prefix=no
13591  need_version=no
13592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13593  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13594  shlibpath_var=LD_LIBRARY_PATH
13595  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13596    case $host_os in
13597      openbsd2.[89] | openbsd2.[89].*)
13598	shlibpath_overrides_runpath=no
13599	;;
13600      *)
13601	shlibpath_overrides_runpath=yes
13602	;;
13603      esac
13604  else
13605    shlibpath_overrides_runpath=yes
13606  fi
13607  ;;
13608
13609os2*)
13610  libname_spec='$name'
13611  shrext_cmds=".dll"
13612  need_lib_prefix=no
13613  library_names_spec='$libname${shared_ext} $libname.a'
13614  dynamic_linker='OS/2 ld.exe'
13615  shlibpath_var=LIBPATH
13616  ;;
13617
13618osf3* | osf4* | osf5*)
13619  version_type=osf
13620  need_lib_prefix=no
13621  need_version=no
13622  soname_spec='${libname}${release}${shared_ext}$major'
13623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624  shlibpath_var=LD_LIBRARY_PATH
13625  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13626  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13627  ;;
13628
13629sco3.2v5*)
13630  version_type=osf
13631  soname_spec='${libname}${release}${shared_ext}$major'
13632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633  shlibpath_var=LD_LIBRARY_PATH
13634  ;;
13635
13636solaris*)
13637  version_type=linux
13638  need_lib_prefix=no
13639  need_version=no
13640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641  soname_spec='${libname}${release}${shared_ext}$major'
13642  shlibpath_var=LD_LIBRARY_PATH
13643  shlibpath_overrides_runpath=yes
13644  hardcode_into_libs=yes
13645  # ldd complains unless libraries are executable
13646  postinstall_cmds='chmod +x $lib'
13647  ;;
13648
13649sunos4*)
13650  version_type=sunos
13651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13652  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13653  shlibpath_var=LD_LIBRARY_PATH
13654  shlibpath_overrides_runpath=yes
13655  if test "$with_gnu_ld" = yes; then
13656    need_lib_prefix=no
13657  fi
13658  need_version=yes
13659  ;;
13660
13661sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13662  version_type=linux
13663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664  soname_spec='${libname}${release}${shared_ext}$major'
13665  shlibpath_var=LD_LIBRARY_PATH
13666  case $host_vendor in
13667    sni)
13668      shlibpath_overrides_runpath=no
13669      need_lib_prefix=no
13670      export_dynamic_flag_spec='${wl}-Blargedynsym'
13671      runpath_var=LD_RUN_PATH
13672      ;;
13673    siemens)
13674      need_lib_prefix=no
13675      ;;
13676    motorola)
13677      need_lib_prefix=no
13678      need_version=no
13679      shlibpath_overrides_runpath=no
13680      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13681      ;;
13682  esac
13683  ;;
13684
13685sysv4*MP*)
13686  if test -d /usr/nec ;then
13687    version_type=linux
13688    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13689    soname_spec='$libname${shared_ext}.$major'
13690    shlibpath_var=LD_LIBRARY_PATH
13691  fi
13692  ;;
13693
13694uts4*)
13695  version_type=linux
13696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697  soname_spec='${libname}${release}${shared_ext}$major'
13698  shlibpath_var=LD_LIBRARY_PATH
13699  ;;
13700
13701*)
13702  dynamic_linker=no
13703  ;;
13704esac
13705echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13706echo "${ECHO_T}$dynamic_linker" >&6
13707test "$dynamic_linker" = no && can_build_shared=no
13708
13709echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13710echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13711hardcode_action=
13712if test -n "$hardcode_libdir_flag_spec" || \
13713   test -n "$runpath_var" || \
13714   test "X$hardcode_automatic" = "Xyes" ; then
13715
13716  # We can hardcode non-existant directories.
13717  if test "$hardcode_direct" != no &&
13718     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13719     # have to relink, otherwise we might link with an installed library
13720     # when we should be linking with a yet-to-be-installed one
13721     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13722     test "$hardcode_minus_L" != no; then
13723    # Linking always hardcodes the temporary library directory.
13724    hardcode_action=relink
13725  else
13726    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13727    hardcode_action=immediate
13728  fi
13729else
13730  # We cannot hardcode anything, or else we can only hardcode existing
13731  # directories.
13732  hardcode_action=unsupported
13733fi
13734echo "$as_me:$LINENO: result: $hardcode_action" >&5
13735echo "${ECHO_T}$hardcode_action" >&6
13736
13737if test "$hardcode_action" = relink; then
13738  # Fast installation is not supported
13739  enable_fast_install=no
13740elif test "$shlibpath_overrides_runpath" = yes ||
13741     test "$enable_shared" = no; then
13742  # Fast installation is not necessary
13743  enable_fast_install=needless
13744fi
13745
13746striplib=
13747old_striplib=
13748echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13749echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13750if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13751  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13752  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13753  echo "$as_me:$LINENO: result: yes" >&5
13754echo "${ECHO_T}yes" >&6
13755else
13756# FIXME - insert some real tests, host_os isn't really good enough
13757  case $host_os in
13758   darwin*)
13759       if test -n "$STRIP" ; then
13760         striplib="$STRIP -x"
13761         echo "$as_me:$LINENO: result: yes" >&5
13762echo "${ECHO_T}yes" >&6
13763       else
13764  echo "$as_me:$LINENO: result: no" >&5
13765echo "${ECHO_T}no" >&6
13766fi
13767       ;;
13768   *)
13769  echo "$as_me:$LINENO: result: no" >&5
13770echo "${ECHO_T}no" >&6
13771    ;;
13772  esac
13773fi
13774
13775if test "x$enable_dlopen" != xyes; then
13776  enable_dlopen=unknown
13777  enable_dlopen_self=unknown
13778  enable_dlopen_self_static=unknown
13779else
13780  lt_cv_dlopen=no
13781  lt_cv_dlopen_libs=
13782
13783  case $host_os in
13784  beos*)
13785    lt_cv_dlopen="load_add_on"
13786    lt_cv_dlopen_libs=
13787    lt_cv_dlopen_self=yes
13788    ;;
13789
13790  mingw* | pw32*)
13791    lt_cv_dlopen="LoadLibrary"
13792    lt_cv_dlopen_libs=
13793   ;;
13794
13795  cygwin*)
13796    lt_cv_dlopen="dlopen"
13797    lt_cv_dlopen_libs=
13798   ;;
13799
13800  darwin*)
13801  # if libdl is installed we need to link against it
13802    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13803echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13804if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13805  echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807  ac_check_lib_save_LIBS=$LIBS
13808LIBS="-ldl  $LIBS"
13809cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h.  */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h.  */
13815
13816/* Override any gcc2 internal prototype to avoid an error.  */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820/* We use char because int might match the return type of a gcc2
13821   builtin and then its argument prototype would still apply.  */
13822char dlopen ();
13823int
13824main ()
13825{
13826dlopen ();
13827  ;
13828  return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext conftest$ac_exeext
13832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833  (eval $ac_link) 2>conftest.er1
13834  ac_status=$?
13835  grep -v '^ *+' conftest.er1 >conftest.err
13836  rm -f conftest.er1
13837  cat conftest.err >&5
13838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839  (exit $ac_status); } &&
13840	 { ac_try='test -z "$ac_c_werror_flag"
13841			 || test ! -s conftest.err'
13842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843  (eval $ac_try) 2>&5
13844  ac_status=$?
13845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846  (exit $ac_status); }; } &&
13847	 { ac_try='test -s conftest$ac_exeext'
13848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849  (eval $ac_try) 2>&5
13850  ac_status=$?
13851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852  (exit $ac_status); }; }; then
13853  ac_cv_lib_dl_dlopen=yes
13854else
13855  echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858ac_cv_lib_dl_dlopen=no
13859fi
13860rm -f conftest.err conftest.$ac_objext \
13861      conftest$ac_exeext conftest.$ac_ext
13862LIBS=$ac_check_lib_save_LIBS
13863fi
13864echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13865echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13866if test $ac_cv_lib_dl_dlopen = yes; then
13867  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13868else
13869
13870    lt_cv_dlopen="dyld"
13871    lt_cv_dlopen_libs=
13872    lt_cv_dlopen_self=yes
13873
13874fi
13875
13876   ;;
13877
13878  *)
13879    echo "$as_me:$LINENO: checking for shl_load" >&5
13880echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13881if test "${ac_cv_func_shl_load+set}" = set; then
13882  echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884  cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h.  */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h.  */
13890/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13891   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13892#define shl_load innocuous_shl_load
13893
13894/* System header to define __stub macros and hopefully few prototypes,
13895    which can conflict with char shl_load (); below.
13896    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13897    <limits.h> exists even on freestanding compilers.  */
13898
13899#ifdef __STDC__
13900# include <limits.h>
13901#else
13902# include <assert.h>
13903#endif
13904
13905#undef shl_load
13906
13907/* Override any gcc2 internal prototype to avoid an error.  */
13908#ifdef __cplusplus
13909extern "C"
13910{
13911#endif
13912/* We use char because int might match the return type of a gcc2
13913   builtin and then its argument prototype would still apply.  */
13914char shl_load ();
13915/* The GNU C library defines this for functions which it implements
13916    to always fail with ENOSYS.  Some functions are actually named
13917    something starting with __ and the normal name is an alias.  */
13918#if defined (__stub_shl_load) || defined (__stub___shl_load)
13919choke me
13920#else
13921char (*f) () = shl_load;
13922#endif
13923#ifdef __cplusplus
13924}
13925#endif
13926
13927int
13928main ()
13929{
13930return f != shl_load;
13931  ;
13932  return 0;
13933}
13934_ACEOF
13935rm -f conftest.$ac_objext conftest$ac_exeext
13936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13937  (eval $ac_link) 2>conftest.er1
13938  ac_status=$?
13939  grep -v '^ *+' conftest.er1 >conftest.err
13940  rm -f conftest.er1
13941  cat conftest.err >&5
13942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943  (exit $ac_status); } &&
13944	 { ac_try='test -z "$ac_c_werror_flag"
13945			 || test ! -s conftest.err'
13946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947  (eval $ac_try) 2>&5
13948  ac_status=$?
13949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950  (exit $ac_status); }; } &&
13951	 { ac_try='test -s conftest$ac_exeext'
13952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953  (eval $ac_try) 2>&5
13954  ac_status=$?
13955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956  (exit $ac_status); }; }; then
13957  ac_cv_func_shl_load=yes
13958else
13959  echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962ac_cv_func_shl_load=no
13963fi
13964rm -f conftest.err conftest.$ac_objext \
13965      conftest$ac_exeext conftest.$ac_ext
13966fi
13967echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13968echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13969if test $ac_cv_func_shl_load = yes; then
13970  lt_cv_dlopen="shl_load"
13971else
13972  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13973echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13974if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13975  echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977  ac_check_lib_save_LIBS=$LIBS
13978LIBS="-ldld  $LIBS"
13979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h.  */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h.  */
13985
13986/* Override any gcc2 internal prototype to avoid an error.  */
13987#ifdef __cplusplus
13988extern "C"
13989#endif
13990/* We use char because int might match the return type of a gcc2
13991   builtin and then its argument prototype would still apply.  */
13992char shl_load ();
13993int
13994main ()
13995{
13996shl_load ();
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003  (eval $ac_link) 2>conftest.er1
14004  ac_status=$?
14005  grep -v '^ *+' conftest.er1 >conftest.err
14006  rm -f conftest.er1
14007  cat conftest.err >&5
14008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009  (exit $ac_status); } &&
14010	 { ac_try='test -z "$ac_c_werror_flag"
14011			 || test ! -s conftest.err'
14012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013  (eval $ac_try) 2>&5
14014  ac_status=$?
14015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016  (exit $ac_status); }; } &&
14017	 { ac_try='test -s conftest$ac_exeext'
14018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019  (eval $ac_try) 2>&5
14020  ac_status=$?
14021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022  (exit $ac_status); }; }; then
14023  ac_cv_lib_dld_shl_load=yes
14024else
14025  echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028ac_cv_lib_dld_shl_load=no
14029fi
14030rm -f conftest.err conftest.$ac_objext \
14031      conftest$ac_exeext conftest.$ac_ext
14032LIBS=$ac_check_lib_save_LIBS
14033fi
14034echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14035echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14036if test $ac_cv_lib_dld_shl_load = yes; then
14037  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14038else
14039  echo "$as_me:$LINENO: checking for dlopen" >&5
14040echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14041if test "${ac_cv_func_dlopen+set}" = set; then
14042  echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044  cat >conftest.$ac_ext <<_ACEOF
14045/* confdefs.h.  */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h.  */
14050/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14051   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14052#define dlopen innocuous_dlopen
14053
14054/* System header to define __stub macros and hopefully few prototypes,
14055    which can conflict with char dlopen (); below.
14056    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14057    <limits.h> exists even on freestanding compilers.  */
14058
14059#ifdef __STDC__
14060# include <limits.h>
14061#else
14062# include <assert.h>
14063#endif
14064
14065#undef dlopen
14066
14067/* Override any gcc2 internal prototype to avoid an error.  */
14068#ifdef __cplusplus
14069extern "C"
14070{
14071#endif
14072/* We use char because int might match the return type of a gcc2
14073   builtin and then its argument prototype would still apply.  */
14074char dlopen ();
14075/* The GNU C library defines this for functions which it implements
14076    to always fail with ENOSYS.  Some functions are actually named
14077    something starting with __ and the normal name is an alias.  */
14078#if defined (__stub_dlopen) || defined (__stub___dlopen)
14079choke me
14080#else
14081char (*f) () = dlopen;
14082#endif
14083#ifdef __cplusplus
14084}
14085#endif
14086
14087int
14088main ()
14089{
14090return f != dlopen;
14091  ;
14092  return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext conftest$ac_exeext
14096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097  (eval $ac_link) 2>conftest.er1
14098  ac_status=$?
14099  grep -v '^ *+' conftest.er1 >conftest.err
14100  rm -f conftest.er1
14101  cat conftest.err >&5
14102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103  (exit $ac_status); } &&
14104	 { ac_try='test -z "$ac_c_werror_flag"
14105			 || test ! -s conftest.err'
14106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107  (eval $ac_try) 2>&5
14108  ac_status=$?
14109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110  (exit $ac_status); }; } &&
14111	 { ac_try='test -s conftest$ac_exeext'
14112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113  (eval $ac_try) 2>&5
14114  ac_status=$?
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); }; }; then
14117  ac_cv_func_dlopen=yes
14118else
14119  echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122ac_cv_func_dlopen=no
14123fi
14124rm -f conftest.err conftest.$ac_objext \
14125      conftest$ac_exeext conftest.$ac_ext
14126fi
14127echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14128echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14129if test $ac_cv_func_dlopen = yes; then
14130  lt_cv_dlopen="dlopen"
14131else
14132  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14133echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14134if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14135  echo $ECHO_N "(cached) $ECHO_C" >&6
14136else
14137  ac_check_lib_save_LIBS=$LIBS
14138LIBS="-ldl  $LIBS"
14139cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h.  */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h.  */
14145
14146/* Override any gcc2 internal prototype to avoid an error.  */
14147#ifdef __cplusplus
14148extern "C"
14149#endif
14150/* We use char because int might match the return type of a gcc2
14151   builtin and then its argument prototype would still apply.  */
14152char dlopen ();
14153int
14154main ()
14155{
14156dlopen ();
14157  ;
14158  return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext conftest$ac_exeext
14162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163  (eval $ac_link) 2>conftest.er1
14164  ac_status=$?
14165  grep -v '^ *+' conftest.er1 >conftest.err
14166  rm -f conftest.er1
14167  cat conftest.err >&5
14168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169  (exit $ac_status); } &&
14170	 { ac_try='test -z "$ac_c_werror_flag"
14171			 || test ! -s conftest.err'
14172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173  (eval $ac_try) 2>&5
14174  ac_status=$?
14175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176  (exit $ac_status); }; } &&
14177	 { ac_try='test -s conftest$ac_exeext'
14178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179  (eval $ac_try) 2>&5
14180  ac_status=$?
14181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182  (exit $ac_status); }; }; then
14183  ac_cv_lib_dl_dlopen=yes
14184else
14185  echo "$as_me: failed program was:" >&5
14186sed 's/^/| /' conftest.$ac_ext >&5
14187
14188ac_cv_lib_dl_dlopen=no
14189fi
14190rm -f conftest.err conftest.$ac_objext \
14191      conftest$ac_exeext conftest.$ac_ext
14192LIBS=$ac_check_lib_save_LIBS
14193fi
14194echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14195echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14196if test $ac_cv_lib_dl_dlopen = yes; then
14197  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14198else
14199  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14200echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14201if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14202  echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204  ac_check_lib_save_LIBS=$LIBS
14205LIBS="-lsvld  $LIBS"
14206cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h.  */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h.  */
14212
14213/* Override any gcc2 internal prototype to avoid an error.  */
14214#ifdef __cplusplus
14215extern "C"
14216#endif
14217/* We use char because int might match the return type of a gcc2
14218   builtin and then its argument prototype would still apply.  */
14219char dlopen ();
14220int
14221main ()
14222{
14223dlopen ();
14224  ;
14225  return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext conftest$ac_exeext
14229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230  (eval $ac_link) 2>conftest.er1
14231  ac_status=$?
14232  grep -v '^ *+' conftest.er1 >conftest.err
14233  rm -f conftest.er1
14234  cat conftest.err >&5
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); } &&
14237	 { ac_try='test -z "$ac_c_werror_flag"
14238			 || test ! -s conftest.err'
14239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240  (eval $ac_try) 2>&5
14241  ac_status=$?
14242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243  (exit $ac_status); }; } &&
14244	 { ac_try='test -s conftest$ac_exeext'
14245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246  (eval $ac_try) 2>&5
14247  ac_status=$?
14248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249  (exit $ac_status); }; }; then
14250  ac_cv_lib_svld_dlopen=yes
14251else
14252  echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255ac_cv_lib_svld_dlopen=no
14256fi
14257rm -f conftest.err conftest.$ac_objext \
14258      conftest$ac_exeext conftest.$ac_ext
14259LIBS=$ac_check_lib_save_LIBS
14260fi
14261echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14263if test $ac_cv_lib_svld_dlopen = yes; then
14264  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14265else
14266  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14269  echo $ECHO_N "(cached) $ECHO_C" >&6
14270else
14271  ac_check_lib_save_LIBS=$LIBS
14272LIBS="-ldld  $LIBS"
14273cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h.  */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h.  */
14279
14280/* Override any gcc2 internal prototype to avoid an error.  */
14281#ifdef __cplusplus
14282extern "C"
14283#endif
14284/* We use char because int might match the return type of a gcc2
14285   builtin and then its argument prototype would still apply.  */
14286char dld_link ();
14287int
14288main ()
14289{
14290dld_link ();
14291  ;
14292  return 0;
14293}
14294_ACEOF
14295rm -f conftest.$ac_objext conftest$ac_exeext
14296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14297  (eval $ac_link) 2>conftest.er1
14298  ac_status=$?
14299  grep -v '^ *+' conftest.er1 >conftest.err
14300  rm -f conftest.er1
14301  cat conftest.err >&5
14302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303  (exit $ac_status); } &&
14304	 { ac_try='test -z "$ac_c_werror_flag"
14305			 || test ! -s conftest.err'
14306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307  (eval $ac_try) 2>&5
14308  ac_status=$?
14309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310  (exit $ac_status); }; } &&
14311	 { ac_try='test -s conftest$ac_exeext'
14312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313  (eval $ac_try) 2>&5
14314  ac_status=$?
14315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316  (exit $ac_status); }; }; then
14317  ac_cv_lib_dld_dld_link=yes
14318else
14319  echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322ac_cv_lib_dld_dld_link=no
14323fi
14324rm -f conftest.err conftest.$ac_objext \
14325      conftest$ac_exeext conftest.$ac_ext
14326LIBS=$ac_check_lib_save_LIBS
14327fi
14328echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14329echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14330if test $ac_cv_lib_dld_dld_link = yes; then
14331  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14332fi
14333
14334
14335fi
14336
14337
14338fi
14339
14340
14341fi
14342
14343
14344fi
14345
14346
14347fi
14348
14349    ;;
14350  esac
14351
14352  if test "x$lt_cv_dlopen" != xno; then
14353    enable_dlopen=yes
14354  else
14355    enable_dlopen=no
14356  fi
14357
14358  case $lt_cv_dlopen in
14359  dlopen)
14360    save_CPPFLAGS="$CPPFLAGS"
14361    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14362
14363    save_LDFLAGS="$LDFLAGS"
14364    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14365
14366    save_LIBS="$LIBS"
14367    LIBS="$lt_cv_dlopen_libs $LIBS"
14368
14369    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14370echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14371if test "${lt_cv_dlopen_self+set}" = set; then
14372  echo $ECHO_N "(cached) $ECHO_C" >&6
14373else
14374  	  if test "$cross_compiling" = yes; then :
14375  lt_cv_dlopen_self=cross
14376else
14377  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14378  lt_status=$lt_dlunknown
14379  cat > conftest.$ac_ext <<EOF
14380#line 14380 "configure"
14381#include "confdefs.h"
14382
14383#if HAVE_DLFCN_H
14384#include <dlfcn.h>
14385#endif
14386
14387#include <stdio.h>
14388
14389#ifdef RTLD_GLOBAL
14390#  define LT_DLGLOBAL		RTLD_GLOBAL
14391#else
14392#  ifdef DL_GLOBAL
14393#    define LT_DLGLOBAL		DL_GLOBAL
14394#  else
14395#    define LT_DLGLOBAL		0
14396#  endif
14397#endif
14398
14399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14400   find out it does not work in some platform. */
14401#ifndef LT_DLLAZY_OR_NOW
14402#  ifdef RTLD_LAZY
14403#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14404#  else
14405#    ifdef DL_LAZY
14406#      define LT_DLLAZY_OR_NOW		DL_LAZY
14407#    else
14408#      ifdef RTLD_NOW
14409#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14410#      else
14411#        ifdef DL_NOW
14412#          define LT_DLLAZY_OR_NOW	DL_NOW
14413#        else
14414#          define LT_DLLAZY_OR_NOW	0
14415#        endif
14416#      endif
14417#    endif
14418#  endif
14419#endif
14420
14421#ifdef __cplusplus
14422extern "C" void exit (int);
14423#endif
14424
14425void fnord() { int i=42;}
14426int main ()
14427{
14428  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14429  int status = $lt_dlunknown;
14430
14431  if (self)
14432    {
14433      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14434      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14435      /* dlclose (self); */
14436    }
14437
14438    exit (status);
14439}
14440EOF
14441  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442  (eval $ac_link) 2>&5
14443  ac_status=$?
14444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14446    (./conftest; exit; ) 2>/dev/null
14447    lt_status=$?
14448    case x$lt_status in
14449      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14450      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14451      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14452    esac
14453  else :
14454    # compilation failed
14455    lt_cv_dlopen_self=no
14456  fi
14457fi
14458rm -fr conftest*
14459
14460
14461fi
14462echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14463echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14464
14465    if test "x$lt_cv_dlopen_self" = xyes; then
14466      LDFLAGS="$LDFLAGS $link_static_flag"
14467      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14468echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14469if test "${lt_cv_dlopen_self_static+set}" = set; then
14470  echo $ECHO_N "(cached) $ECHO_C" >&6
14471else
14472  	  if test "$cross_compiling" = yes; then :
14473  lt_cv_dlopen_self_static=cross
14474else
14475  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14476  lt_status=$lt_dlunknown
14477  cat > conftest.$ac_ext <<EOF
14478#line 14478 "configure"
14479#include "confdefs.h"
14480
14481#if HAVE_DLFCN_H
14482#include <dlfcn.h>
14483#endif
14484
14485#include <stdio.h>
14486
14487#ifdef RTLD_GLOBAL
14488#  define LT_DLGLOBAL		RTLD_GLOBAL
14489#else
14490#  ifdef DL_GLOBAL
14491#    define LT_DLGLOBAL		DL_GLOBAL
14492#  else
14493#    define LT_DLGLOBAL		0
14494#  endif
14495#endif
14496
14497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14498   find out it does not work in some platform. */
14499#ifndef LT_DLLAZY_OR_NOW
14500#  ifdef RTLD_LAZY
14501#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14502#  else
14503#    ifdef DL_LAZY
14504#      define LT_DLLAZY_OR_NOW		DL_LAZY
14505#    else
14506#      ifdef RTLD_NOW
14507#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14508#      else
14509#        ifdef DL_NOW
14510#          define LT_DLLAZY_OR_NOW	DL_NOW
14511#        else
14512#          define LT_DLLAZY_OR_NOW	0
14513#        endif
14514#      endif
14515#    endif
14516#  endif
14517#endif
14518
14519#ifdef __cplusplus
14520extern "C" void exit (int);
14521#endif
14522
14523void fnord() { int i=42;}
14524int main ()
14525{
14526  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14527  int status = $lt_dlunknown;
14528
14529  if (self)
14530    {
14531      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14532      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14533      /* dlclose (self); */
14534    }
14535
14536    exit (status);
14537}
14538EOF
14539  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14540  (eval $ac_link) 2>&5
14541  ac_status=$?
14542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14544    (./conftest; exit; ) 2>/dev/null
14545    lt_status=$?
14546    case x$lt_status in
14547      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14548      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14549      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14550    esac
14551  else :
14552    # compilation failed
14553    lt_cv_dlopen_self_static=no
14554  fi
14555fi
14556rm -fr conftest*
14557
14558
14559fi
14560echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14561echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14562    fi
14563
14564    CPPFLAGS="$save_CPPFLAGS"
14565    LDFLAGS="$save_LDFLAGS"
14566    LIBS="$save_LIBS"
14567    ;;
14568  esac
14569
14570  case $lt_cv_dlopen_self in
14571  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14572  *) enable_dlopen_self=unknown ;;
14573  esac
14574
14575  case $lt_cv_dlopen_self_static in
14576  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14577  *) enable_dlopen_self_static=unknown ;;
14578  esac
14579fi
14580
14581
14582# Report which librarie types wil actually be built
14583echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14584echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14585echo "$as_me:$LINENO: result: $can_build_shared" >&5
14586echo "${ECHO_T}$can_build_shared" >&6
14587
14588echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14589echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14590test "$can_build_shared" = "no" && enable_shared=no
14591
14592# On AIX, shared libraries and static libraries use the same namespace, and
14593# are all built from PIC.
14594case "$host_os" in
14595aix3*)
14596  test "$enable_shared" = yes && enable_static=no
14597  if test -n "$RANLIB"; then
14598    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14599    postinstall_cmds='$RANLIB $lib'
14600  fi
14601  ;;
14602
14603aix4* | aix5*)
14604  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605    test "$enable_shared" = yes && enable_static=no
14606  fi
14607    ;;
14608esac
14609echo "$as_me:$LINENO: result: $enable_shared" >&5
14610echo "${ECHO_T}$enable_shared" >&6
14611
14612echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14614# Make sure either enable_shared or enable_static is yes.
14615test "$enable_shared" = yes || enable_static=yes
14616echo "$as_me:$LINENO: result: $enable_static" >&5
14617echo "${ECHO_T}$enable_static" >&6
14618
14619# The else clause should only fire when bootstrapping the
14620# libtool distribution, otherwise you forgot to ship ltmain.sh
14621# with your package, and you will get complaints that there are
14622# no rules to generate ltmain.sh.
14623if test -f "$ltmain"; then
14624  # See if we are running on zsh, and set the options which allow our commands through
14625  # without removal of \ escapes.
14626  if test -n "${ZSH_VERSION+set}" ; then
14627    setopt NO_GLOB_SUBST
14628  fi
14629  # Now quote all the things that may contain metacharacters while being
14630  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14631  # variables and quote the copies for generation of the libtool script.
14632  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14633    SED SHELL STRIP \
14634    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14635    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14636    deplibs_check_method reload_flag reload_cmds need_locks \
14637    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14638    lt_cv_sys_global_symbol_to_c_name_address \
14639    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14640    old_postinstall_cmds old_postuninstall_cmds \
14641    compiler \
14642    CC \
14643    LD \
14644    lt_prog_compiler_wl \
14645    lt_prog_compiler_pic \
14646    lt_prog_compiler_static \
14647    lt_prog_compiler_no_builtin_flag \
14648    export_dynamic_flag_spec \
14649    thread_safe_flag_spec \
14650    whole_archive_flag_spec \
14651    enable_shared_with_static_runtimes \
14652    old_archive_cmds \
14653    old_archive_from_new_cmds \
14654    predep_objects \
14655    postdep_objects \
14656    predeps \
14657    postdeps \
14658    compiler_lib_search_path \
14659    archive_cmds \
14660    archive_expsym_cmds \
14661    postinstall_cmds \
14662    postuninstall_cmds \
14663    old_archive_from_expsyms_cmds \
14664    allow_undefined_flag \
14665    no_undefined_flag \
14666    export_symbols_cmds \
14667    hardcode_libdir_flag_spec \
14668    hardcode_libdir_flag_spec_ld \
14669    hardcode_libdir_separator \
14670    hardcode_automatic \
14671    module_cmds \
14672    module_expsym_cmds \
14673    lt_cv_prog_compiler_c_o \
14674    exclude_expsyms \
14675    include_expsyms; do
14676
14677    case $var in
14678    old_archive_cmds | \
14679    old_archive_from_new_cmds | \
14680    archive_cmds | \
14681    archive_expsym_cmds | \
14682    module_cmds | \
14683    module_expsym_cmds | \
14684    old_archive_from_expsyms_cmds | \
14685    export_symbols_cmds | \
14686    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14687    postinstall_cmds | postuninstall_cmds | \
14688    old_postinstall_cmds | old_postuninstall_cmds | \
14689    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14690      # Double-quote double-evaled strings.
14691      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14692      ;;
14693    *)
14694      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14695      ;;
14696    esac
14697  done
14698
14699  case $lt_echo in
14700  *'\$0 --fallback-echo"')
14701    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14702    ;;
14703  esac
14704
14705cfgfile="${ofile}T"
14706  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14707  $rm -f "$cfgfile"
14708  { echo "$as_me:$LINENO: creating $ofile" >&5
14709echo "$as_me: creating $ofile" >&6;}
14710
14711  cat <<__EOF__ >> "$cfgfile"
14712#! $SHELL
14713
14714# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14715# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14716# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14717#
14718# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14719# Free Software Foundation, Inc.
14720#
14721# This file is part of GNU Libtool:
14722# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14723#
14724# This program is free software; you can redistribute it and/or modify
14725# it under the terms of the GNU General Public License as published by
14726# the Free Software Foundation; either version 2 of the License, or
14727# (at your option) any later version.
14728#
14729# This program is distributed in the hope that it will be useful, but
14730# WITHOUT ANY WARRANTY; without even the implied warranty of
14731# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14732# General Public License for more details.
14733#
14734# You should have received a copy of the GNU General Public License
14735# along with this program; if not, write to the Free Software
14736# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14737#
14738# As a special exception to the GNU General Public License, if you
14739# distribute this file as part of a program that contains a
14740# configuration script generated by Autoconf, you may include it under
14741# the same distribution terms that you use for the rest of that program.
14742
14743# A sed program that does not truncate output.
14744SED=$lt_SED
14745
14746# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14747Xsed="$SED -e s/^X//"
14748
14749# The HP-UX ksh and POSIX shell print the target directory to stdout
14750# if CDPATH is set.
14751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14752
14753# The names of the tagged configurations supported by this script.
14754available_tags=
14755
14756# ### BEGIN LIBTOOL CONFIG
14757
14758# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14759
14760# Shell to use when invoking shell scripts.
14761SHELL=$lt_SHELL
14762
14763# Whether or not to build shared libraries.
14764build_libtool_libs=$enable_shared
14765
14766# Whether or not to build static libraries.
14767build_old_libs=$enable_static
14768
14769# Whether or not to add -lc for building shared libraries.
14770build_libtool_need_lc=$archive_cmds_need_lc
14771
14772# Whether or not to disallow shared libs when runtime libs are static
14773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14774
14775# Whether or not to optimize for fast installation.
14776fast_install=$enable_fast_install
14777
14778# The host system.
14779host_alias=$host_alias
14780host=$host
14781
14782# An echo program that does not interpret backslashes.
14783echo=$lt_echo
14784
14785# The archiver.
14786AR=$lt_AR
14787AR_FLAGS=$lt_AR_FLAGS
14788
14789# A C compiler.
14790LTCC=$lt_LTCC
14791
14792# A language-specific compiler.
14793CC=$lt_compiler
14794
14795# Is the compiler the GNU C compiler?
14796with_gcc=$GCC
14797
14798# An ERE matcher.
14799EGREP=$lt_EGREP
14800
14801# The linker used to build libraries.
14802LD=$lt_LD
14803
14804# Whether we need hard or soft links.
14805LN_S=$lt_LN_S
14806
14807# A BSD-compatible nm program.
14808NM=$lt_NM
14809
14810# A symbol stripping program
14811STRIP=$lt_STRIP
14812
14813# Used to examine libraries when file_magic_cmd begins "file"
14814MAGIC_CMD=$MAGIC_CMD
14815
14816# Used on cygwin: DLL creation program.
14817DLLTOOL="$DLLTOOL"
14818
14819# Used on cygwin: object dumper.
14820OBJDUMP="$OBJDUMP"
14821
14822# Used on cygwin: assembler.
14823AS="$AS"
14824
14825# The name of the directory that contains temporary libtool files.
14826objdir=$objdir
14827
14828# How to create reloadable object files.
14829reload_flag=$lt_reload_flag
14830reload_cmds=$lt_reload_cmds
14831
14832# How to pass a linker flag through the compiler.
14833wl=$lt_lt_prog_compiler_wl
14834
14835# Object file suffix (normally "o").
14836objext="$ac_objext"
14837
14838# Old archive suffix (normally "a").
14839libext="$libext"
14840
14841# Shared library suffix (normally ".so").
14842shrext_cmds='$shrext_cmds'
14843
14844# Executable file suffix (normally "").
14845exeext="$exeext"
14846
14847# Additional compiler flags for building library objects.
14848pic_flag=$lt_lt_prog_compiler_pic
14849pic_mode=$pic_mode
14850
14851# What is the maximum length of a command?
14852max_cmd_len=$lt_cv_sys_max_cmd_len
14853
14854# Does compiler simultaneously support -c and -o options?
14855compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14856
14857# Must we lock files when doing compilation ?
14858need_locks=$lt_need_locks
14859
14860# Do we need the lib prefix for modules?
14861need_lib_prefix=$need_lib_prefix
14862
14863# Do we need a version for libraries?
14864need_version=$need_version
14865
14866# Whether dlopen is supported.
14867dlopen_support=$enable_dlopen
14868
14869# Whether dlopen of programs is supported.
14870dlopen_self=$enable_dlopen_self
14871
14872# Whether dlopen of statically linked programs is supported.
14873dlopen_self_static=$enable_dlopen_self_static
14874
14875# Compiler flag to prevent dynamic linking.
14876link_static_flag=$lt_lt_prog_compiler_static
14877
14878# Compiler flag to turn off builtin functions.
14879no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14880
14881# Compiler flag to allow reflexive dlopens.
14882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14883
14884# Compiler flag to generate shared objects directly from archives.
14885whole_archive_flag_spec=$lt_whole_archive_flag_spec
14886
14887# Compiler flag to generate thread-safe objects.
14888thread_safe_flag_spec=$lt_thread_safe_flag_spec
14889
14890# Library versioning type.
14891version_type=$version_type
14892
14893# Format of library name prefix.
14894libname_spec=$lt_libname_spec
14895
14896# List of archive names.  First name is the real one, the rest are links.
14897# The last name is the one that the linker finds with -lNAME.
14898library_names_spec=$lt_library_names_spec
14899
14900# The coded name of the library, if different from the real name.
14901soname_spec=$lt_soname_spec
14902
14903# Commands used to build and install an old-style archive.
14904RANLIB=$lt_RANLIB
14905old_archive_cmds=$lt_old_archive_cmds
14906old_postinstall_cmds=$lt_old_postinstall_cmds
14907old_postuninstall_cmds=$lt_old_postuninstall_cmds
14908
14909# Create an old-style archive from a shared archive.
14910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14911
14912# Create a temporary old-style archive to link instead of a shared archive.
14913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14914
14915# Commands used to build and install a shared archive.
14916archive_cmds=$lt_archive_cmds
14917archive_expsym_cmds=$lt_archive_expsym_cmds
14918postinstall_cmds=$lt_postinstall_cmds
14919postuninstall_cmds=$lt_postuninstall_cmds
14920
14921# Commands used to build a loadable module (assumed same as above if empty)
14922module_cmds=$lt_module_cmds
14923module_expsym_cmds=$lt_module_expsym_cmds
14924
14925# Commands to strip libraries.
14926old_striplib=$lt_old_striplib
14927striplib=$lt_striplib
14928
14929# Dependencies to place before the objects being linked to create a
14930# shared library.
14931predep_objects=$lt_predep_objects
14932
14933# Dependencies to place after the objects being linked to create a
14934# shared library.
14935postdep_objects=$lt_postdep_objects
14936
14937# Dependencies to place before the objects being linked to create a
14938# shared library.
14939predeps=$lt_predeps
14940
14941# Dependencies to place after the objects being linked to create a
14942# shared library.
14943postdeps=$lt_postdeps
14944
14945# The library search path used internally by the compiler when linking
14946# a shared library.
14947compiler_lib_search_path=$lt_compiler_lib_search_path
14948
14949# Method to check whether dependent libraries are shared objects.
14950deplibs_check_method=$lt_deplibs_check_method
14951
14952# Command to use when deplibs_check_method == file_magic.
14953file_magic_cmd=$lt_file_magic_cmd
14954
14955# Flag that allows shared libraries with undefined symbols to be built.
14956allow_undefined_flag=$lt_allow_undefined_flag
14957
14958# Flag that forces no undefined symbols.
14959no_undefined_flag=$lt_no_undefined_flag
14960
14961# Commands used to finish a libtool library installation in a directory.
14962finish_cmds=$lt_finish_cmds
14963
14964# Same as above, but a single script fragment to be evaled but not shown.
14965finish_eval=$lt_finish_eval
14966
14967# Take the output of nm and produce a listing of raw symbols and C names.
14968global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14969
14970# Transform the output of nm in a proper C declaration
14971global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14972
14973# Transform the output of nm in a C name address pair
14974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14975
14976# This is the shared library runtime path variable.
14977runpath_var=$runpath_var
14978
14979# This is the shared library path variable.
14980shlibpath_var=$shlibpath_var
14981
14982# Is shlibpath searched before the hard-coded library search path?
14983shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14984
14985# How to hardcode a shared library path into an executable.
14986hardcode_action=$hardcode_action
14987
14988# Whether we should hardcode library paths into libraries.
14989hardcode_into_libs=$hardcode_into_libs
14990
14991# Flag to hardcode \$libdir into a binary during linking.
14992# This must work even if \$libdir does not exist.
14993hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14994
14995# If ld is used when linking, flag to hardcode \$libdir into
14996# a binary during linking. This must work even if \$libdir does
14997# not exist.
14998hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14999
15000# Whether we need a single -rpath flag with a separated argument.
15001hardcode_libdir_separator=$lt_hardcode_libdir_separator
15002
15003# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15004# resulting binary.
15005hardcode_direct=$hardcode_direct
15006
15007# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15008# resulting binary.
15009hardcode_minus_L=$hardcode_minus_L
15010
15011# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15012# the resulting binary.
15013hardcode_shlibpath_var=$hardcode_shlibpath_var
15014
15015# Set to yes if building a shared library automatically hardcodes DIR into the library
15016# and all subsequent libraries and executables linked against it.
15017hardcode_automatic=$hardcode_automatic
15018
15019# Variables whose values should be saved in libtool wrapper scripts and
15020# restored at relink time.
15021variables_saved_for_relink="$variables_saved_for_relink"
15022
15023# Whether libtool must link a program against all its dependency libraries.
15024link_all_deplibs=$link_all_deplibs
15025
15026# Compile-time system search path for libraries
15027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15028
15029# Run-time system search path for libraries
15030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15031
15032# Fix the shell variable \$srcfile for the compiler.
15033fix_srcfile_path="$fix_srcfile_path"
15034
15035# Set to yes if exported symbols are required.
15036always_export_symbols=$always_export_symbols
15037
15038# The commands to list exported symbols.
15039export_symbols_cmds=$lt_export_symbols_cmds
15040
15041# The commands to extract the exported symbol list from a shared archive.
15042extract_expsyms_cmds=$lt_extract_expsyms_cmds
15043
15044# Symbols that should not be listed in the preloaded symbols.
15045exclude_expsyms=$lt_exclude_expsyms
15046
15047# Symbols that must always be exported.
15048include_expsyms=$lt_include_expsyms
15049
15050# ### END LIBTOOL CONFIG
15051
15052__EOF__
15053
15054
15055  case $host_os in
15056  aix3*)
15057    cat <<\EOF >> "$cfgfile"
15058
15059# AIX sometimes has problems with the GCC collect2 program.  For some
15060# reason, if we set the COLLECT_NAMES environment variable, the problems
15061# vanish in a puff of smoke.
15062if test "X${COLLECT_NAMES+set}" != Xset; then
15063  COLLECT_NAMES=
15064  export COLLECT_NAMES
15065fi
15066EOF
15067    ;;
15068  esac
15069
15070  # We use sed instead of cat because bash on DJGPP gets confused if
15071  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15072  # text mode, it properly converts lines to CR/LF.  This bash problem
15073  # is reportedly fixed, but why not run on old versions too?
15074  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15075
15076  mv -f "$cfgfile" "$ofile" || \
15077    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15078  chmod +x "$ofile"
15079
15080else
15081  # If there is no Makefile yet, we rely on a make rule to execute
15082  # `config.status --recheck' to rerun these tests and create the
15083  # libtool script then.
15084  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15085  if test -f "$ltmain_in"; then
15086    test -f Makefile && make "$ltmain"
15087  fi
15088fi
15089
15090
15091ac_ext=c
15092ac_cpp='$CPP $CPPFLAGS'
15093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15095ac_compiler_gnu=$ac_cv_c_compiler_gnu
15096
15097CC="$lt_save_CC"
15098
15099
15100# Check whether --with-tags or --without-tags was given.
15101if test "${with_tags+set}" = set; then
15102  withval="$with_tags"
15103  tagnames="$withval"
15104fi;
15105
15106if test -f "$ltmain" && test -n "$tagnames"; then
15107  if test ! -f "${ofile}"; then
15108    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15109echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15110  fi
15111
15112  if test -z "$LTCC"; then
15113    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15114    if test -z "$LTCC"; then
15115      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15116echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15117    else
15118      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15119echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15120    fi
15121  fi
15122
15123  # Extract list of available tagged configurations in $ofile.
15124  # Note that this assumes the entire list is on one line.
15125  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15126
15127  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15128  for tagname in $tagnames; do
15129    IFS="$lt_save_ifs"
15130    # Check whether tagname contains only valid characters
15131    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15132    "") ;;
15133    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15134echo "$as_me: error: invalid tag name: $tagname" >&2;}
15135   { (exit 1); exit 1; }; }
15136	;;
15137    esac
15138
15139    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15140    then
15141      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15142echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15143   { (exit 1); exit 1; }; }
15144    fi
15145
15146    # Update the list of available tags.
15147    if test -n "$tagname"; then
15148      echo appending configuration tag "$tagname" to $ofile
15149
15150      case $tagname in
15151      CXX)
15152	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15153	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15154	    (test "X$CXX" != "Xg++"))) ; then
15155	  ac_ext=cc
15156ac_cpp='$CXXCPP $CPPFLAGS'
15157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15160
15161
15162
15163
15164archive_cmds_need_lc_CXX=no
15165allow_undefined_flag_CXX=
15166always_export_symbols_CXX=no
15167archive_expsym_cmds_CXX=
15168export_dynamic_flag_spec_CXX=
15169hardcode_direct_CXX=no
15170hardcode_libdir_flag_spec_CXX=
15171hardcode_libdir_flag_spec_ld_CXX=
15172hardcode_libdir_separator_CXX=
15173hardcode_minus_L_CXX=no
15174hardcode_automatic_CXX=no
15175module_cmds_CXX=
15176module_expsym_cmds_CXX=
15177link_all_deplibs_CXX=unknown
15178old_archive_cmds_CXX=$old_archive_cmds
15179no_undefined_flag_CXX=
15180whole_archive_flag_spec_CXX=
15181enable_shared_with_static_runtimes_CXX=no
15182
15183# Dependencies to place before and after the object being linked:
15184predep_objects_CXX=
15185postdep_objects_CXX=
15186predeps_CXX=
15187postdeps_CXX=
15188compiler_lib_search_path_CXX=
15189
15190# Source file extension for C++ test sources.
15191ac_ext=cc
15192
15193# Object file extension for compiled C++ test sources.
15194objext=o
15195objext_CXX=$objext
15196
15197# Code to be used in simple compile tests
15198lt_simple_compile_test_code="int some_variable = 0;\n"
15199
15200# Code to be used in simple link tests
15201lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15202
15203# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15204
15205# If no C compiler was specified, use CC.
15206LTCC=${LTCC-"$CC"}
15207
15208# Allow CC to be a program name with arguments.
15209compiler=$CC
15210
15211
15212# Allow CC to be a program name with arguments.
15213lt_save_CC=$CC
15214lt_save_LD=$LD
15215lt_save_GCC=$GCC
15216GCC=$GXX
15217lt_save_with_gnu_ld=$with_gnu_ld
15218lt_save_path_LD=$lt_cv_path_LD
15219if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15220  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15221else
15222  unset lt_cv_prog_gnu_ld
15223fi
15224if test -n "${lt_cv_path_LDCXX+set}"; then
15225  lt_cv_path_LD=$lt_cv_path_LDCXX
15226else
15227  unset lt_cv_path_LD
15228fi
15229test -z "${LDCXX+set}" || LD=$LDCXX
15230CC=${CXX-"c++"}
15231compiler=$CC
15232compiler_CXX=$CC
15233cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15234
15235# We don't want -fno-exception wen compiling C++ code, so set the
15236# no_builtin_flag separately
15237if test "$GXX" = yes; then
15238  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15239else
15240  lt_prog_compiler_no_builtin_flag_CXX=
15241fi
15242
15243if test "$GXX" = yes; then
15244  # Set up default GNU C++ configuration
15245
15246
15247# Check whether --with-gnu-ld or --without-gnu-ld was given.
15248if test "${with_gnu_ld+set}" = set; then
15249  withval="$with_gnu_ld"
15250  test "$withval" = no || with_gnu_ld=yes
15251else
15252  with_gnu_ld=no
15253fi;
15254ac_prog=ld
15255if test "$GCC" = yes; then
15256  # Check if gcc -print-prog-name=ld gives a path.
15257  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15258echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15259  case $host in
15260  *-*-mingw*)
15261    # gcc leaves a trailing carriage return which upsets mingw
15262    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15263  *)
15264    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15265  esac
15266  case $ac_prog in
15267    # Accept absolute paths.
15268    [\\/]* | ?:[\\/]*)
15269      re_direlt='/[^/][^/]*/\.\./'
15270      # Canonicalize the pathname of ld
15271      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15272      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15273	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15274      done
15275      test -z "$LD" && LD="$ac_prog"
15276      ;;
15277  "")
15278    # If it fails, then pretend we aren't using GCC.
15279    ac_prog=ld
15280    ;;
15281  *)
15282    # If it is relative, then search for the first ld in PATH.
15283    with_gnu_ld=unknown
15284    ;;
15285  esac
15286elif test "$with_gnu_ld" = yes; then
15287  echo "$as_me:$LINENO: checking for GNU ld" >&5
15288echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15289else
15290  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15291echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15292fi
15293if test "${lt_cv_path_LD+set}" = set; then
15294  echo $ECHO_N "(cached) $ECHO_C" >&6
15295else
15296  if test -z "$LD"; then
15297  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15298  for ac_dir in $PATH; do
15299    IFS="$lt_save_ifs"
15300    test -z "$ac_dir" && ac_dir=.
15301    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15302      lt_cv_path_LD="$ac_dir/$ac_prog"
15303      # Check to see if the program is GNU ld.  I'd rather use --version,
15304      # but apparently some GNU ld's only accept -v.
15305      # Break only if it was the GNU/non-GNU ld that we prefer.
15306      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15307      *GNU* | *'with BFD'*)
15308	test "$with_gnu_ld" != no && break
15309	;;
15310      *)
15311	test "$with_gnu_ld" != yes && break
15312	;;
15313      esac
15314    fi
15315  done
15316  IFS="$lt_save_ifs"
15317else
15318  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15319fi
15320fi
15321
15322LD="$lt_cv_path_LD"
15323if test -n "$LD"; then
15324  echo "$as_me:$LINENO: result: $LD" >&5
15325echo "${ECHO_T}$LD" >&6
15326else
15327  echo "$as_me:$LINENO: result: no" >&5
15328echo "${ECHO_T}no" >&6
15329fi
15330test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15331echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15332   { (exit 1); exit 1; }; }
15333echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15334echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15335if test "${lt_cv_prog_gnu_ld+set}" = set; then
15336  echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15339case `$LD -v 2>&1 </dev/null` in
15340*GNU* | *'with BFD'*)
15341  lt_cv_prog_gnu_ld=yes
15342  ;;
15343*)
15344  lt_cv_prog_gnu_ld=no
15345  ;;
15346esac
15347fi
15348echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15349echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15350with_gnu_ld=$lt_cv_prog_gnu_ld
15351
15352
15353
15354  # Check if GNU C++ uses GNU ld as the underlying linker, since the
15355  # archiving commands below assume that GNU ld is being used.
15356  if test "$with_gnu_ld" = yes; then
15357    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358    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'
15359
15360    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15361    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15362
15363    # If archive_cmds runs LD, not CC, wlarc should be empty
15364    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15365    #     investigate it a little bit more. (MM)
15366    wlarc='${wl}'
15367
15368    # ancient GNU ld didn't support --whole-archive et. al.
15369    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15370	grep 'no-whole-archive' > /dev/null; then
15371      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15372    else
15373      whole_archive_flag_spec_CXX=
15374    fi
15375  else
15376    with_gnu_ld=no
15377    wlarc=
15378
15379    # A generic and very simple default shared library creation
15380    # command for GNU C++ for the case where it uses the native
15381    # linker, instead of GNU ld.  If possible, this setting should
15382    # overridden to take advantage of the native linker features on
15383    # the platform it is being used on.
15384    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15385  fi
15386
15387  # Commands to make compiler produce verbose output that lists
15388  # what "hidden" libraries, object files and flags are used when
15389  # linking a shared library.
15390  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15391
15392else
15393  GXX=no
15394  with_gnu_ld=no
15395  wlarc=
15396fi
15397
15398# PORTME: fill in a description of your system's C++ link characteristics
15399echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15401ld_shlibs_CXX=yes
15402case $host_os in
15403  aix3*)
15404    # FIXME: insert proper C++ library support
15405    ld_shlibs_CXX=no
15406    ;;
15407  aix4* | aix5*)
15408    if test "$host_cpu" = ia64; then
15409      # On IA64, the linker does run time linking by default, so we don't
15410      # have to do anything special.
15411      aix_use_runtimelinking=no
15412      exp_sym_flag='-Bexport'
15413      no_entry_flag=""
15414    else
15415      aix_use_runtimelinking=no
15416
15417      # Test if we are trying to use run time linking or normal
15418      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15419      # need to do runtime linking.
15420      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15421	for ld_flag in $LDFLAGS; do
15422	  case $ld_flag in
15423	  *-brtl*)
15424	    aix_use_runtimelinking=yes
15425	    break
15426	    ;;
15427	  esac
15428	done
15429      esac
15430
15431      exp_sym_flag='-bexport'
15432      no_entry_flag='-bnoentry'
15433    fi
15434
15435    # When large executables or shared objects are built, AIX ld can
15436    # have problems creating the table of contents.  If linking a library
15437    # or program results in "error TOC overflow" add -mminimal-toc to
15438    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15439    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15440
15441    archive_cmds_CXX=''
15442    hardcode_direct_CXX=yes
15443    hardcode_libdir_separator_CXX=':'
15444    link_all_deplibs_CXX=yes
15445
15446    if test "$GXX" = yes; then
15447      case $host_os in aix4.012|aix4.012.*)
15448      # We only want to do this on AIX 4.2 and lower, the check
15449      # below for broken collect2 doesn't work under 4.3+
15450	collect2name=`${CC} -print-prog-name=collect2`
15451	if test -f "$collect2name" && \
15452	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15453	then
15454	  # We have reworked collect2
15455	  hardcode_direct_CXX=yes
15456	else
15457	  # We have old collect2
15458	  hardcode_direct_CXX=unsupported
15459	  # It fails to find uninstalled libraries when the uninstalled
15460	  # path is not listed in the libpath.  Setting hardcode_minus_L
15461	  # to unsupported forces relinking
15462	  hardcode_minus_L_CXX=yes
15463	  hardcode_libdir_flag_spec_CXX='-L$libdir'
15464	  hardcode_libdir_separator_CXX=
15465	fi
15466      esac
15467      shared_flag='-shared'
15468    else
15469      # not using gcc
15470      if test "$host_cpu" = ia64; then
15471	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15472	# chokes on -Wl,-G. The following line is correct:
15473	shared_flag='-G'
15474      else
15475	if test "$aix_use_runtimelinking" = yes; then
15476	  shared_flag='${wl}-G'
15477	else
15478	  shared_flag='${wl}-bM:SRE'
15479	fi
15480      fi
15481    fi
15482
15483    # It seems that -bexpall does not export symbols beginning with
15484    # underscore (_), so it is better to generate a list of symbols to export.
15485    always_export_symbols_CXX=yes
15486    if test "$aix_use_runtimelinking" = yes; then
15487      # Warning - without using the other runtime loading flags (-brtl),
15488      # -berok will link without error, but may produce a broken library.
15489      allow_undefined_flag_CXX='-berok'
15490      # Determine the default libpath from the value encoded in an empty executable.
15491      cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h.  */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h.  */
15497
15498int
15499main ()
15500{
15501
15502  ;
15503  return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext conftest$ac_exeext
15507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508  (eval $ac_link) 2>conftest.er1
15509  ac_status=$?
15510  grep -v '^ *+' conftest.er1 >conftest.err
15511  rm -f conftest.er1
15512  cat conftest.err >&5
15513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514  (exit $ac_status); } &&
15515	 { ac_try='test -z "$ac_cxx_werror_flag"
15516			 || test ! -s conftest.err'
15517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518  (eval $ac_try) 2>&5
15519  ac_status=$?
15520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521  (exit $ac_status); }; } &&
15522	 { ac_try='test -s conftest$ac_exeext'
15523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524  (eval $ac_try) 2>&5
15525  ac_status=$?
15526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527  (exit $ac_status); }; }; then
15528
15529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15530}'`
15531# Check for a 64-bit object if we didn't find anything.
15532if 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; }
15533}'`; fi
15534else
15535  echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538fi
15539rm -f conftest.err conftest.$ac_objext \
15540      conftest$ac_exeext conftest.$ac_ext
15541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15542
15543      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15544
15545      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"
15546     else
15547      if test "$host_cpu" = ia64; then
15548	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15549	allow_undefined_flag_CXX="-z nodefs"
15550	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"
15551      else
15552	# Determine the default libpath from the value encoded in an empty executable.
15553	cat >conftest.$ac_ext <<_ACEOF
15554/* confdefs.h.  */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h.  */
15559
15560int
15561main ()
15562{
15563
15564  ;
15565  return 0;
15566}
15567_ACEOF
15568rm -f conftest.$ac_objext conftest$ac_exeext
15569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570  (eval $ac_link) 2>conftest.er1
15571  ac_status=$?
15572  grep -v '^ *+' conftest.er1 >conftest.err
15573  rm -f conftest.er1
15574  cat conftest.err >&5
15575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576  (exit $ac_status); } &&
15577	 { ac_try='test -z "$ac_cxx_werror_flag"
15578			 || test ! -s conftest.err'
15579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580  (eval $ac_try) 2>&5
15581  ac_status=$?
15582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583  (exit $ac_status); }; } &&
15584	 { ac_try='test -s conftest$ac_exeext'
15585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586  (eval $ac_try) 2>&5
15587  ac_status=$?
15588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589  (exit $ac_status); }; }; then
15590
15591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15592}'`
15593# Check for a 64-bit object if we didn't find anything.
15594if 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; }
15595}'`; fi
15596else
15597  echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600fi
15601rm -f conftest.err conftest.$ac_objext \
15602      conftest$ac_exeext conftest.$ac_ext
15603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15604
15605	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15606	# Warning - without using the other run time loading flags,
15607	# -berok will link without error, but may produce a broken library.
15608	no_undefined_flag_CXX=' ${wl}-bernotok'
15609	allow_undefined_flag_CXX=' ${wl}-berok'
15610	# -bexpall does not export symbols beginning with underscore (_)
15611	always_export_symbols_CXX=yes
15612	# Exported symbols can be pulled into shared objects from archives
15613	whole_archive_flag_spec_CXX=' '
15614	archive_cmds_need_lc_CXX=yes
15615	# This is similar to how AIX traditionally builds it's shared libraries.
15616	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'
15617      fi
15618    fi
15619    ;;
15620  chorus*)
15621    case $cc_basename in
15622      *)
15623	# FIXME: insert proper C++ library support
15624	ld_shlibs_CXX=no
15625	;;
15626    esac
15627    ;;
15628
15629
15630  cygwin* | mingw* | pw32*)
15631    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15632    # as there is no search path for DLLs.
15633    hardcode_libdir_flag_spec_CXX='-L$libdir'
15634    allow_undefined_flag_CXX=unsupported
15635    always_export_symbols_CXX=no
15636    enable_shared_with_static_runtimes_CXX=yes
15637
15638    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15639      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'
15640      # If the export-symbols file already is a .def file (1st line
15641      # is EXPORTS), use it as is; otherwise, prepend...
15642      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15643	cp $export_symbols $output_objdir/$soname.def;
15644      else
15645	echo EXPORTS > $output_objdir/$soname.def;
15646	cat $export_symbols >> $output_objdir/$soname.def;
15647      fi~
15648      $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'
15649    else
15650      ld_shlibs_CXX=no
15651    fi
15652  ;;
15653      darwin* | rhapsody*)
15654        case "$host_os" in
15655        rhapsody* | darwin1.[012])
15656         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15657         ;;
15658       *) # Darwin 1.3 on
15659         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15660           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15661         else
15662           case ${MACOSX_DEPLOYMENT_TARGET} in
15663             10.[012])
15664               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15665               ;;
15666             10.*)
15667               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15668               ;;
15669           esac
15670         fi
15671         ;;
15672        esac
15673      archive_cmds_need_lc_CXX=no
15674      hardcode_direct_CXX=no
15675      hardcode_automatic_CXX=yes
15676      hardcode_shlibpath_var_CXX=unsupported
15677      whole_archive_flag_spec_CXX=''
15678      link_all_deplibs_CXX=yes
15679
15680    if test "$GXX" = yes ; then
15681      lt_int_apple_cc_single_mod=no
15682      output_verbose_link_cmd='echo'
15683      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15684       lt_int_apple_cc_single_mod=yes
15685      fi
15686      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15687       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15688      else
15689          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'
15690        fi
15691        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15692        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15693          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15694            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}'
15695          else
15696            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}'
15697          fi
15698            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}'
15699      else
15700      case "$cc_basename" in
15701        xlc*)
15702         output_verbose_link_cmd='echo'
15703          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'
15704          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15705          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15706          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}'
15707          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}'
15708          ;;
15709       *)
15710         ld_shlibs_CXX=no
15711          ;;
15712      esac
15713      fi
15714        ;;
15715
15716  dgux*)
15717    case $cc_basename in
15718      ec++)
15719	# FIXME: insert proper C++ library support
15720	ld_shlibs_CXX=no
15721	;;
15722      ghcx)
15723	# Green Hills C++ Compiler
15724	# FIXME: insert proper C++ library support
15725	ld_shlibs_CXX=no
15726	;;
15727      *)
15728	# FIXME: insert proper C++ library support
15729	ld_shlibs_CXX=no
15730	;;
15731    esac
15732    ;;
15733  freebsd12*)
15734    # C++ shared libraries reported to be fairly broken before switch to ELF
15735    ld_shlibs_CXX=no
15736    ;;
15737  freebsd-elf*)
15738    archive_cmds_need_lc_CXX=no
15739    ;;
15740  freebsd* | kfreebsd*-gnu)
15741    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15742    # conventions
15743    ld_shlibs_CXX=yes
15744    ;;
15745  gnu*)
15746    ;;
15747  hpux9*)
15748    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15749    hardcode_libdir_separator_CXX=:
15750    export_dynamic_flag_spec_CXX='${wl}-E'
15751    hardcode_direct_CXX=yes
15752    hardcode_minus_L_CXX=yes # Not in the search PATH,
15753				# but as the default
15754				# location of the library.
15755
15756    case $cc_basename in
15757    CC)
15758      # FIXME: insert proper C++ library support
15759      ld_shlibs_CXX=no
15760      ;;
15761    aCC)
15762      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'
15763      # Commands to make compiler produce verbose output that lists
15764      # what "hidden" libraries, object files and flags are used when
15765      # linking a shared library.
15766      #
15767      # There doesn't appear to be a way to prevent this compiler from
15768      # explicitly linking system object files so we need to strip them
15769      # from the output so that they don't get included in the library
15770      # dependencies.
15771      output_verbose_link_cmd='templist=`($CC -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'
15772      ;;
15773    *)
15774      if test "$GXX" = yes; then
15775        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'
15776      else
15777        # FIXME: insert proper C++ library support
15778        ld_shlibs_CXX=no
15779      fi
15780      ;;
15781    esac
15782    ;;
15783  hpux10*|hpux11*)
15784    if test $with_gnu_ld = no; then
15785      case "$host_cpu" in
15786      hppa*64*)
15787	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15788	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15789	hardcode_libdir_separator_CXX=:
15790        ;;
15791      ia64*)
15792	hardcode_libdir_flag_spec_CXX='-L$libdir'
15793        ;;
15794      *)
15795	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15796	hardcode_libdir_separator_CXX=:
15797	export_dynamic_flag_spec_CXX='${wl}-E'
15798        ;;
15799      esac
15800    fi
15801    case "$host_cpu" in
15802    hppa*64*)
15803      hardcode_direct_CXX=no
15804      hardcode_shlibpath_var_CXX=no
15805      ;;
15806    ia64*)
15807      hardcode_direct_CXX=no
15808      hardcode_shlibpath_var_CXX=no
15809      hardcode_minus_L_CXX=yes # Not in the search PATH,
15810					      # but as the default
15811					      # location of the library.
15812      ;;
15813    *)
15814      hardcode_direct_CXX=yes
15815      hardcode_minus_L_CXX=yes # Not in the search PATH,
15816					      # but as the default
15817					      # location of the library.
15818      ;;
15819    esac
15820
15821    case $cc_basename in
15822      CC)
15823	# FIXME: insert proper C++ library support
15824	ld_shlibs_CXX=no
15825	;;
15826      aCC)
15827	case "$host_cpu" in
15828	hppa*64*|ia64*)
15829	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15830	  ;;
15831	*)
15832	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15833	  ;;
15834	esac
15835	# Commands to make compiler produce verbose output that lists
15836	# what "hidden" libraries, object files and flags are used when
15837	# linking a shared library.
15838	#
15839	# There doesn't appear to be a way to prevent this compiler from
15840	# explicitly linking system object files so we need to strip them
15841	# from the output so that they don't get included in the library
15842	# dependencies.
15843	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'
15844	;;
15845      *)
15846	if test "$GXX" = yes; then
15847	  if test $with_gnu_ld = no; then
15848	    case "$host_cpu" in
15849	    ia64*|hppa*64*)
15850	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851	      ;;
15852	    *)
15853	      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'
15854	      ;;
15855	    esac
15856	  fi
15857	else
15858	  # FIXME: insert proper C++ library support
15859	  ld_shlibs_CXX=no
15860	fi
15861	;;
15862    esac
15863    ;;
15864  irix5* | irix6*)
15865    case $cc_basename in
15866      CC)
15867	# SGI C++
15868	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'
15869
15870	# Archives containing C++ object files must be created using
15871	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15872	# necessary to make sure instantiated templates are included
15873	# in the archive.
15874	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15875	;;
15876      *)
15877	if test "$GXX" = yes; then
15878	  if test "$with_gnu_ld" = no; then
15879	    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'
15880	  else
15881	    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'
15882	  fi
15883	fi
15884	link_all_deplibs_CXX=yes
15885	;;
15886    esac
15887    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15888    hardcode_libdir_separator_CXX=:
15889    ;;
15890  linux*)
15891    case $cc_basename in
15892      KCC)
15893	# Kuck and Associates, Inc. (KAI) C++ Compiler
15894
15895	# KCC will only create a shared library if the output file
15896	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15897	# to its proper name (with version) after linking.
15898	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'
15899	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'
15900	# Commands to make compiler produce verbose output that lists
15901	# what "hidden" libraries, object files and flags are used when
15902	# linking a shared library.
15903	#
15904	# There doesn't appear to be a way to prevent this compiler from
15905	# explicitly linking system object files so we need to strip them
15906	# from the output so that they don't get included in the library
15907	# dependencies.
15908	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'
15909
15910	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15911	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15912
15913	# Archives containing C++ object files must be created using
15914	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15915	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15916	;;
15917      icpc)
15918	# Intel C++
15919	with_gnu_ld=yes
15920	# version 8.0 and above of icpc choke on multiply defined symbols
15921	# if we add $predep_objects and $postdep_objects, however 7.1 and
15922	# earlier do not add the objects themselves.
15923	case `$CC -V 2>&1` in
15924	*"Version 7."*)
15925  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926  	  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'
15927	  ;;
15928	*)  # Version 8.0 or newer
15929  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15930  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15931	  ;;
15932	esac
15933	archive_cmds_need_lc_CXX=no
15934	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15935	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15936	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15937	;;
15938      cxx)
15939	# Compaq C++
15940	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941	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'
15942
15943	runpath_var=LD_RUN_PATH
15944	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15945	hardcode_libdir_separator_CXX=:
15946
15947	# Commands to make compiler produce verbose output that lists
15948	# what "hidden" libraries, object files and flags are used when
15949	# linking a shared library.
15950	#
15951	# There doesn't appear to be a way to prevent this compiler from
15952	# explicitly linking system object files so we need to strip them
15953	# from the output so that they don't get included in the library
15954	# dependencies.
15955	output_verbose_link_cmd='templist=`$CC -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'
15956	;;
15957    esac
15958    ;;
15959  lynxos*)
15960    # FIXME: insert proper C++ library support
15961    ld_shlibs_CXX=no
15962    ;;
15963  m88k*)
15964    # FIXME: insert proper C++ library support
15965    ld_shlibs_CXX=no
15966    ;;
15967  mvs*)
15968    case $cc_basename in
15969      cxx)
15970	# FIXME: insert proper C++ library support
15971	ld_shlibs_CXX=no
15972	;;
15973      *)
15974	# FIXME: insert proper C++ library support
15975	ld_shlibs_CXX=no
15976	;;
15977    esac
15978    ;;
15979  netbsd*)
15980    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15981      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15982      wlarc=
15983      hardcode_libdir_flag_spec_CXX='-R$libdir'
15984      hardcode_direct_CXX=yes
15985      hardcode_shlibpath_var_CXX=no
15986    fi
15987    # Workaround some broken pre-1.5 toolchains
15988    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15989    ;;
15990  openbsd2*)
15991    # C++ shared libraries are fairly broken
15992    ld_shlibs_CXX=no
15993    ;;
15994  openbsd*)
15995    hardcode_direct_CXX=yes
15996    hardcode_shlibpath_var_CXX=no
15997    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15998    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15999    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16000      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16001      export_dynamic_flag_spec_CXX='${wl}-E'
16002      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16003    fi
16004    output_verbose_link_cmd='echo'
16005    ;;
16006  osf3*)
16007    case $cc_basename in
16008      KCC)
16009	# Kuck and Associates, Inc. (KAI) C++ Compiler
16010
16011	# KCC will only create a shared library if the output file
16012	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16013	# to its proper name (with version) after linking.
16014	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'
16015
16016	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16017	hardcode_libdir_separator_CXX=:
16018
16019	# Archives containing C++ object files must be created using
16020	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
16021	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16022
16023	;;
16024      RCC)
16025	# Rational C++ 2.4.1
16026	# FIXME: insert proper C++ library support
16027	ld_shlibs_CXX=no
16028	;;
16029      cxx)
16030	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16031	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'
16032
16033	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16034	hardcode_libdir_separator_CXX=:
16035
16036	# Commands to make compiler produce verbose output that lists
16037	# what "hidden" libraries, object files and flags are used when
16038	# linking a shared library.
16039	#
16040	# There doesn't appear to be a way to prevent this compiler from
16041	# explicitly linking system object files so we need to strip them
16042	# from the output so that they don't get included in the library
16043	# dependencies.
16044	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'
16045	;;
16046      *)
16047	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16048	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16049	  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'
16050
16051	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16052	  hardcode_libdir_separator_CXX=:
16053
16054	  # Commands to make compiler produce verbose output that lists
16055	  # what "hidden" libraries, object files and flags are used when
16056	  # linking a shared library.
16057	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16058
16059	else
16060	  # FIXME: insert proper C++ library support
16061	  ld_shlibs_CXX=no
16062	fi
16063	;;
16064    esac
16065    ;;
16066  osf4* | osf5*)
16067    case $cc_basename in
16068      KCC)
16069	# Kuck and Associates, Inc. (KAI) C++ Compiler
16070
16071	# KCC will only create a shared library if the output file
16072	# ends with ".so" (or ".sl" for HP-UX), so rename the library
16073	# to its proper name (with version) after linking.
16074	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'
16075
16076	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16077	hardcode_libdir_separator_CXX=:
16078
16079	# Archives containing C++ object files must be created using
16080	# the KAI C++ compiler.
16081	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16082	;;
16083      RCC)
16084	# Rational C++ 2.4.1
16085	# FIXME: insert proper C++ library support
16086	ld_shlibs_CXX=no
16087	;;
16088      cxx)
16089	allow_undefined_flag_CXX=' -expect_unresolved \*'
16090	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'
16091	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16092	  echo "-hidden">> $lib.exp~
16093	  $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~
16094	  $rm $lib.exp'
16095
16096	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16097	hardcode_libdir_separator_CXX=:
16098
16099	# Commands to make compiler produce verbose output that lists
16100	# what "hidden" libraries, object files and flags are used when
16101	# linking a shared library.
16102	#
16103	# There doesn't appear to be a way to prevent this compiler from
16104	# explicitly linking system object files so we need to strip them
16105	# from the output so that they don't get included in the library
16106	# dependencies.
16107	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'
16108	;;
16109      *)
16110	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16111	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16112	 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'
16113
16114	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16115	  hardcode_libdir_separator_CXX=:
16116
16117	  # Commands to make compiler produce verbose output that lists
16118	  # what "hidden" libraries, object files and flags are used when
16119	  # linking a shared library.
16120	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16121
16122	else
16123	  # FIXME: insert proper C++ library support
16124	  ld_shlibs_CXX=no
16125	fi
16126	;;
16127    esac
16128    ;;
16129  psos*)
16130    # FIXME: insert proper C++ library support
16131    ld_shlibs_CXX=no
16132    ;;
16133  sco*)
16134    archive_cmds_need_lc_CXX=no
16135    case $cc_basename in
16136      CC)
16137	# FIXME: insert proper C++ library support
16138	ld_shlibs_CXX=no
16139	;;
16140      *)
16141	# FIXME: insert proper C++ library support
16142	ld_shlibs_CXX=no
16143	;;
16144    esac
16145    ;;
16146  sunos4*)
16147    case $cc_basename in
16148      CC)
16149	# Sun C++ 4.x
16150	# FIXME: insert proper C++ library support
16151	ld_shlibs_CXX=no
16152	;;
16153      lcc)
16154	# Lucid
16155	# FIXME: insert proper C++ library support
16156	ld_shlibs_CXX=no
16157	;;
16158      *)
16159	# FIXME: insert proper C++ library support
16160	ld_shlibs_CXX=no
16161	;;
16162    esac
16163    ;;
16164  solaris*)
16165    case $cc_basename in
16166      CC)
16167	# Sun C++ 4.2, 5.x and Centerline C++
16168	no_undefined_flag_CXX=' -zdefs'
16169	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16170	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16171	$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'
16172
16173	hardcode_libdir_flag_spec_CXX='-R$libdir'
16174	hardcode_shlibpath_var_CXX=no
16175	case $host_os in
16176	  solaris2.0-5 | solaris2.0-5.*) ;;
16177	  *)
16178	    # The C++ compiler is used as linker so we must use $wl
16179	    # flag to pass the commands to the underlying system
16180	    # linker.
16181	    # Supported since Solaris 2.6 (maybe 2.5.1?)
16182	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16183	    ;;
16184	esac
16185	link_all_deplibs_CXX=yes
16186
16187	# Commands to make compiler produce verbose output that lists
16188	# what "hidden" libraries, object files and flags are used when
16189	# linking a shared library.
16190	#
16191	# There doesn't appear to be a way to prevent this compiler from
16192	# explicitly linking system object files so we need to strip them
16193	# from the output so that they don't get included in the library
16194	# dependencies.
16195	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'
16196
16197	# Archives containing C++ object files must be created using
16198	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
16199	# necessary to make sure instantiated templates are included
16200	# in the archive.
16201	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16202	;;
16203      gcx)
16204	# Green Hills C++ Compiler
16205	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16206
16207	# The C++ compiler must be used to create the archive.
16208	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16209	;;
16210      *)
16211	# GNU C++ compiler with Solaris linker
16212	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16213	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16214	  if $CC --version | grep -v '^2\.7' > /dev/null; then
16215	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16216	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16218
16219	    # Commands to make compiler produce verbose output that lists
16220	    # what "hidden" libraries, object files and flags are used when
16221	    # linking a shared library.
16222	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16223	  else
16224	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
16225	    # platform.
16226	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16228		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16229
16230	    # Commands to make compiler produce verbose output that lists
16231	    # what "hidden" libraries, object files and flags are used when
16232	    # linking a shared library.
16233	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16234	  fi
16235
16236	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16237	fi
16238	;;
16239    esac
16240    ;;
16241  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16242    archive_cmds_need_lc_CXX=no
16243    ;;
16244  tandem*)
16245    case $cc_basename in
16246      NCC)
16247	# NonStop-UX NCC 3.20
16248	# FIXME: insert proper C++ library support
16249	ld_shlibs_CXX=no
16250	;;
16251      *)
16252	# FIXME: insert proper C++ library support
16253	ld_shlibs_CXX=no
16254	;;
16255    esac
16256    ;;
16257  vxworks*)
16258    # FIXME: insert proper C++ library support
16259    ld_shlibs_CXX=no
16260    ;;
16261  *)
16262    # FIXME: insert proper C++ library support
16263    ld_shlibs_CXX=no
16264    ;;
16265esac
16266echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16267echo "${ECHO_T}$ld_shlibs_CXX" >&6
16268test "$ld_shlibs_CXX" = no && can_build_shared=no
16269
16270GCC_CXX="$GXX"
16271LD_CXX="$LD"
16272
16273
16274cat > conftest.$ac_ext <<EOF
16275class Foo
16276{
16277public:
16278  Foo (void) { a = 0; }
16279private:
16280  int a;
16281};
16282EOF
16283
16284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285  (eval $ac_compile) 2>&5
16286  ac_status=$?
16287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288  (exit $ac_status); }; then
16289  # Parse the compiler output and extract the necessary
16290  # objects, libraries and library flags.
16291
16292  # Sentinel used to keep track of whether or not we are before
16293  # the conftest object file.
16294  pre_test_object_deps_done=no
16295
16296  # The `*' in the case matches for architectures that use `case' in
16297  # $output_verbose_cmd can trigger glob expansion during the loop
16298  # eval without this substitution.
16299  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16300
16301  for p in `eval $output_verbose_link_cmd`; do
16302    case $p in
16303
16304    -L* | -R* | -l*)
16305       # Some compilers place space between "-{L,R}" and the path.
16306       # Remove the space.
16307       if test $p = "-L" \
16308	  || test $p = "-R"; then
16309	 prev=$p
16310	 continue
16311       else
16312	 prev=
16313       fi
16314
16315       if test "$pre_test_object_deps_done" = no; then
16316	 case $p in
16317	 -L* | -R*)
16318	   # Internal compiler library paths should come after those
16319	   # provided the user.  The postdeps already come after the
16320	   # user supplied libs so there is no need to process them.
16321	   if test -z "$compiler_lib_search_path_CXX"; then
16322	     compiler_lib_search_path_CXX="${prev}${p}"
16323	   else
16324	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16325	   fi
16326	   ;;
16327	 # The "-l" case would never come before the object being
16328	 # linked, so don't bother handling this case.
16329	 esac
16330       else
16331	 if test -z "$postdeps_CXX"; then
16332	   postdeps_CXX="${prev}${p}"
16333	 else
16334	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16335	 fi
16336       fi
16337       ;;
16338
16339    *.$objext)
16340       # This assumes that the test object file only shows up
16341       # once in the compiler output.
16342       if test "$p" = "conftest.$objext"; then
16343	 pre_test_object_deps_done=yes
16344	 continue
16345       fi
16346
16347       if test "$pre_test_object_deps_done" = no; then
16348	 if test -z "$predep_objects_CXX"; then
16349	   predep_objects_CXX="$p"
16350	 else
16351	   predep_objects_CXX="$predep_objects_CXX $p"
16352	 fi
16353       else
16354	 if test -z "$postdep_objects_CXX"; then
16355	   postdep_objects_CXX="$p"
16356	 else
16357	   postdep_objects_CXX="$postdep_objects_CXX $p"
16358	 fi
16359       fi
16360       ;;
16361
16362    *) ;; # Ignore the rest.
16363
16364    esac
16365  done
16366
16367  # Clean up.
16368  rm -f a.out a.exe
16369else
16370  echo "libtool.m4: error: problem compiling CXX test program"
16371fi
16372
16373$rm -f confest.$objext
16374
16375case " $postdeps_CXX " in
16376*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16377esac
16378
16379lt_prog_compiler_wl_CXX=
16380lt_prog_compiler_pic_CXX=
16381lt_prog_compiler_static_CXX=
16382
16383echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16384echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16385
16386  # C++ specific cases for pic, static, wl, etc.
16387  if test "$GXX" = yes; then
16388    lt_prog_compiler_wl_CXX='-Wl,'
16389    lt_prog_compiler_static_CXX='-static'
16390
16391    case $host_os in
16392    aix*)
16393      # All AIX code is PIC.
16394      if test "$host_cpu" = ia64; then
16395	# AIX 5 now supports IA64 processor
16396	lt_prog_compiler_static_CXX='-Bstatic'
16397      fi
16398      ;;
16399    amigaos*)
16400      # FIXME: we need at least 68020 code to build shared libraries, but
16401      # adding the `-m68020' flag to GCC prevents building anything better,
16402      # like `-m68040'.
16403      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16404      ;;
16405    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16406      # PIC is the default for these OSes.
16407      ;;
16408    mingw* | os2* | pw32*)
16409      # This hack is so that the source file can tell whether it is being
16410      # built for inclusion in a dll (and should export symbols for example).
16411      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16412      ;;
16413    darwin* | rhapsody*)
16414      # PIC is the default on this platform
16415      # Common symbols not allowed in MH_DYLIB files
16416      lt_prog_compiler_pic_CXX='-fno-common'
16417      ;;
16418    *djgpp*)
16419      # DJGPP does not support shared libraries at all
16420      lt_prog_compiler_pic_CXX=
16421      ;;
16422    sysv4*MP*)
16423      if test -d /usr/nec; then
16424	lt_prog_compiler_pic_CXX=-Kconform_pic
16425      fi
16426      ;;
16427    hpux*)
16428      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16429      # not for PA HP-UX.
16430      case "$host_cpu" in
16431      hppa*64*|ia64*)
16432	;;
16433      *)
16434	lt_prog_compiler_pic_CXX='-fPIC'
16435	;;
16436      esac
16437      ;;
16438    *)
16439      lt_prog_compiler_pic_CXX='-fPIC'
16440      ;;
16441    esac
16442  else
16443    case $host_os in
16444      aix4* | aix5*)
16445	# All AIX code is PIC.
16446	if test "$host_cpu" = ia64; then
16447	  # AIX 5 now supports IA64 processor
16448	  lt_prog_compiler_static_CXX='-Bstatic'
16449	else
16450	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16451	fi
16452	;;
16453      chorus*)
16454	case $cc_basename in
16455	cxch68)
16456	  # Green Hills C++ Compiler
16457	  # _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"
16458	  ;;
16459	esac
16460	;;
16461       darwin*)
16462         # PIC is the default on this platform
16463         # Common symbols not allowed in MH_DYLIB files
16464         case "$cc_basename" in
16465           xlc*)
16466           lt_prog_compiler_pic_CXX='-qnocommon'
16467           lt_prog_compiler_wl_CXX='-Wl,'
16468           ;;
16469         esac
16470       ;;
16471      dgux*)
16472	case $cc_basename in
16473	  ec++)
16474	    lt_prog_compiler_pic_CXX='-KPIC'
16475	    ;;
16476	  ghcx)
16477	    # Green Hills C++ Compiler
16478	    lt_prog_compiler_pic_CXX='-pic'
16479	    ;;
16480	  *)
16481	    ;;
16482	esac
16483	;;
16484      freebsd* | kfreebsd*-gnu)
16485	# FreeBSD uses GNU C++
16486	;;
16487      hpux9* | hpux10* | hpux11*)
16488	case $cc_basename in
16489	  CC)
16490	    lt_prog_compiler_wl_CXX='-Wl,'
16491	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16492	    if test "$host_cpu" != ia64; then
16493	      lt_prog_compiler_pic_CXX='+Z'
16494	    fi
16495	    ;;
16496	  aCC)
16497	    lt_prog_compiler_wl_CXX='-Wl,'
16498	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16499	    case "$host_cpu" in
16500	    hppa*64*|ia64*)
16501	      # +Z the default
16502	      ;;
16503	    *)
16504	      lt_prog_compiler_pic_CXX='+Z'
16505	      ;;
16506	    esac
16507	    ;;
16508	  *)
16509	    ;;
16510	esac
16511	;;
16512      irix5* | irix6* | nonstopux*)
16513	case $cc_basename in
16514	  CC)
16515	    lt_prog_compiler_wl_CXX='-Wl,'
16516	    lt_prog_compiler_static_CXX='-non_shared'
16517	    # CC pic flag -KPIC is the default.
16518	    ;;
16519	  *)
16520	    ;;
16521	esac
16522	;;
16523      linux*)
16524	case $cc_basename in
16525	  KCC)
16526	    # KAI C++ Compiler
16527	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16528	    lt_prog_compiler_pic_CXX='-fPIC'
16529	    ;;
16530	  icpc)
16531	    # Intel C++
16532	    lt_prog_compiler_wl_CXX='-Wl,'
16533	    lt_prog_compiler_pic_CXX='-KPIC'
16534	    lt_prog_compiler_static_CXX='-static'
16535	    ;;
16536	  cxx)
16537	    # Compaq C++
16538	    # Make sure the PIC flag is empty.  It appears that all Alpha
16539	    # Linux and Compaq Tru64 Unix objects are PIC.
16540	    lt_prog_compiler_pic_CXX=
16541	    lt_prog_compiler_static_CXX='-non_shared'
16542	    ;;
16543	  *)
16544	    ;;
16545	esac
16546	;;
16547      lynxos*)
16548	;;
16549      m88k*)
16550	;;
16551      mvs*)
16552	case $cc_basename in
16553	  cxx)
16554	    lt_prog_compiler_pic_CXX='-W c,exportall'
16555	    ;;
16556	  *)
16557	    ;;
16558	esac
16559	;;
16560      netbsd*)
16561	;;
16562      osf3* | osf4* | osf5*)
16563	case $cc_basename in
16564	  KCC)
16565	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16566	    ;;
16567	  RCC)
16568	    # Rational C++ 2.4.1
16569	    lt_prog_compiler_pic_CXX='-pic'
16570	    ;;
16571	  cxx)
16572	    # Digital/Compaq C++
16573	    lt_prog_compiler_wl_CXX='-Wl,'
16574	    # Make sure the PIC flag is empty.  It appears that all Alpha
16575	    # Linux and Compaq Tru64 Unix objects are PIC.
16576	    lt_prog_compiler_pic_CXX=
16577	    lt_prog_compiler_static_CXX='-non_shared'
16578	    ;;
16579	  *)
16580	    ;;
16581	esac
16582	;;
16583      psos*)
16584	;;
16585      sco*)
16586	case $cc_basename in
16587	  CC)
16588	    lt_prog_compiler_pic_CXX='-fPIC'
16589	    ;;
16590	  *)
16591	    ;;
16592	esac
16593	;;
16594      solaris*)
16595	case $cc_basename in
16596	  CC)
16597	    # Sun C++ 4.2, 5.x and Centerline C++
16598	    lt_prog_compiler_pic_CXX='-KPIC'
16599	    lt_prog_compiler_static_CXX='-Bstatic'
16600	    lt_prog_compiler_wl_CXX='-Qoption ld '
16601	    ;;
16602	  gcx)
16603	    # Green Hills C++ Compiler
16604	    lt_prog_compiler_pic_CXX='-PIC'
16605	    ;;
16606	  *)
16607	    ;;
16608	esac
16609	;;
16610      sunos4*)
16611	case $cc_basename in
16612	  CC)
16613	    # Sun C++ 4.x
16614	    lt_prog_compiler_pic_CXX='-pic'
16615	    lt_prog_compiler_static_CXX='-Bstatic'
16616	    ;;
16617	  lcc)
16618	    # Lucid
16619	    lt_prog_compiler_pic_CXX='-pic'
16620	    ;;
16621	  *)
16622	    ;;
16623	esac
16624	;;
16625      tandem*)
16626	case $cc_basename in
16627	  NCC)
16628	    # NonStop-UX NCC 3.20
16629	    lt_prog_compiler_pic_CXX='-KPIC'
16630	    ;;
16631	  *)
16632	    ;;
16633	esac
16634	;;
16635      unixware*)
16636	;;
16637      vxworks*)
16638	;;
16639      *)
16640	lt_prog_compiler_can_build_shared_CXX=no
16641	;;
16642    esac
16643  fi
16644
16645echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16646echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16647
16648#
16649# Check to make sure the PIC flag actually works.
16650#
16651if test -n "$lt_prog_compiler_pic_CXX"; then
16652
16653echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16654echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16655if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16656  echo $ECHO_N "(cached) $ECHO_C" >&6
16657else
16658  lt_prog_compiler_pic_works_CXX=no
16659  ac_outfile=conftest.$ac_objext
16660   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16661   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16662   # Insert the option either (1) after the last *FLAGS variable, or
16663   # (2) before a word containing "conftest.", or (3) at the end.
16664   # Note that $ac_compile itself does not contain backslashes and begins
16665   # with a dollar sign (not a hyphen), so the echo should work correctly.
16666   # The option is referenced via a variable to avoid confusing sed.
16667   lt_compile=`echo "$ac_compile" | $SED \
16668   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16669   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16670   -e 's:$: $lt_compiler_flag:'`
16671   (eval echo "\"\$as_me:16671: $lt_compile\"" >&5)
16672   (eval "$lt_compile" 2>conftest.err)
16673   ac_status=$?
16674   cat conftest.err >&5
16675   echo "$as_me:16675: \$? = $ac_status" >&5
16676   if (exit $ac_status) && test -s "$ac_outfile"; then
16677     # The compiler can only warn and ignore the option if not recognized
16678     # So say no if there are warnings
16679     if test ! -s conftest.err; then
16680       lt_prog_compiler_pic_works_CXX=yes
16681     fi
16682   fi
16683   $rm conftest*
16684
16685fi
16686echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16687echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16688
16689if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16690    case $lt_prog_compiler_pic_CXX in
16691     "" | " "*) ;;
16692     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16693     esac
16694else
16695    lt_prog_compiler_pic_CXX=
16696     lt_prog_compiler_can_build_shared_CXX=no
16697fi
16698
16699fi
16700case "$host_os" in
16701  # For platforms which do not support PIC, -DPIC is meaningless:
16702  *djgpp*)
16703    lt_prog_compiler_pic_CXX=
16704    ;;
16705  *)
16706    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16707    ;;
16708esac
16709
16710echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16711echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16712if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16713  echo $ECHO_N "(cached) $ECHO_C" >&6
16714else
16715  lt_cv_prog_compiler_c_o_CXX=no
16716   $rm -r conftest 2>/dev/null
16717   mkdir conftest
16718   cd conftest
16719   mkdir out
16720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16721
16722   lt_compiler_flag="-o out/conftest2.$ac_objext"
16723   # Insert the option either (1) after the last *FLAGS variable, or
16724   # (2) before a word containing "conftest.", or (3) at the end.
16725   # Note that $ac_compile itself does not contain backslashes and begins
16726   # with a dollar sign (not a hyphen), so the echo should work correctly.
16727   lt_compile=`echo "$ac_compile" | $SED \
16728   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16730   -e 's:$: $lt_compiler_flag:'`
16731   (eval echo "\"\$as_me:16731: $lt_compile\"" >&5)
16732   (eval "$lt_compile" 2>out/conftest.err)
16733   ac_status=$?
16734   cat out/conftest.err >&5
16735   echo "$as_me:16735: \$? = $ac_status" >&5
16736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16737   then
16738     # The compiler can only warn and ignore the option if not recognized
16739     # So say no if there are warnings
16740     if test ! -s out/conftest.err; then
16741       lt_cv_prog_compiler_c_o_CXX=yes
16742     fi
16743   fi
16744   chmod u+w .
16745   $rm conftest*
16746   # SGI C++ compiler will create directory out/ii_files/ for
16747   # template instantiation
16748   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16749   $rm out/* && rmdir out
16750   cd ..
16751   rmdir conftest
16752   $rm conftest*
16753
16754fi
16755echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16756echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16757
16758
16759hard_links="nottested"
16760if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16761  # do not overwrite the value of need_locks provided by the user
16762  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16763echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16764  hard_links=yes
16765  $rm conftest*
16766  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767  touch conftest.a
16768  ln conftest.a conftest.b 2>&5 || hard_links=no
16769  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770  echo "$as_me:$LINENO: result: $hard_links" >&5
16771echo "${ECHO_T}$hard_links" >&6
16772  if test "$hard_links" = no; then
16773    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16774echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16775    need_locks=warn
16776  fi
16777else
16778  need_locks=no
16779fi
16780
16781echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16782echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16783
16784  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16785  case $host_os in
16786  aix4* | aix5*)
16787    # If we're using GNU nm, then we don't want the "-C" option.
16788    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16789    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16790      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'
16791    else
16792      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'
16793    fi
16794    ;;
16795  pw32*)
16796    export_symbols_cmds_CXX="$ltdll_cmds"
16797  ;;
16798  cygwin* | mingw*)
16799    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16800  ;;
16801  *)
16802    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16803  ;;
16804  esac
16805
16806echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16807echo "${ECHO_T}$ld_shlibs_CXX" >&6
16808test "$ld_shlibs_CXX" = no && can_build_shared=no
16809
16810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16811if test "$GCC" = yes; then
16812  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16813fi
16814
16815#
16816# Do we need to explicitly link libc?
16817#
16818case "x$archive_cmds_need_lc_CXX" in
16819x|xyes)
16820  # Assume -lc should be added
16821  archive_cmds_need_lc_CXX=yes
16822
16823  if test "$enable_shared" = yes && test "$GCC" = yes; then
16824    case $archive_cmds_CXX in
16825    *'~'*)
16826      # FIXME: we may have to deal with multi-command sequences.
16827      ;;
16828    '$CC '*)
16829      # Test whether the compiler implicitly links with -lc since on some
16830      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16831      # to ld, don't add -lc before -lgcc.
16832      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16833echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16834      $rm conftest*
16835      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16836
16837      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838  (eval $ac_compile) 2>&5
16839  ac_status=$?
16840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841  (exit $ac_status); } 2>conftest.err; then
16842        soname=conftest
16843        lib=conftest
16844        libobjs=conftest.$ac_objext
16845        deplibs=
16846        wl=$lt_prog_compiler_wl_CXX
16847        compiler_flags=-v
16848        linker_flags=-v
16849        verstring=
16850        output_objdir=.
16851        libname=conftest
16852        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16853        allow_undefined_flag_CXX=
16854        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16855  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16856  ac_status=$?
16857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858  (exit $ac_status); }
16859        then
16860	  archive_cmds_need_lc_CXX=no
16861        else
16862	  archive_cmds_need_lc_CXX=yes
16863        fi
16864        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16865      else
16866        cat conftest.err 1>&5
16867      fi
16868      $rm conftest*
16869      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16870echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16871      ;;
16872    esac
16873  fi
16874  ;;
16875esac
16876
16877echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16878echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16879library_names_spec=
16880libname_spec='lib$name'
16881soname_spec=
16882shrext_cmds=".so"
16883postinstall_cmds=
16884postuninstall_cmds=
16885finish_cmds=
16886finish_eval=
16887shlibpath_var=
16888shlibpath_overrides_runpath=unknown
16889version_type=none
16890dynamic_linker="$host_os ld.so"
16891sys_lib_dlsearch_path_spec="/lib /usr/lib"
16892if test "$GCC" = yes; then
16893  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16894  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16895    # if the path contains ";" then we assume it to be the separator
16896    # otherwise default to the standard path separator (i.e. ":") - it is
16897    # assumed that no part of a normal pathname contains ";" but that should
16898    # okay in the real world where ";" in dirpaths is itself problematic.
16899    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16900  else
16901    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16902  fi
16903else
16904  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16905fi
16906need_lib_prefix=unknown
16907hardcode_into_libs=no
16908
16909# when you set need_version to no, make sure it does not cause -set_version
16910# flags to be left without arguments
16911need_version=unknown
16912
16913case $host_os in
16914aix3*)
16915  version_type=linux
16916  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16917  shlibpath_var=LIBPATH
16918
16919  # AIX 3 has no versioning support, so we append a major version to the name.
16920  soname_spec='${libname}${release}${shared_ext}$major'
16921  ;;
16922
16923aix4* | aix5*)
16924  version_type=linux
16925  need_lib_prefix=no
16926  need_version=no
16927  hardcode_into_libs=yes
16928  if test "$host_cpu" = ia64; then
16929    # AIX 5 supports IA64
16930    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16931    shlibpath_var=LD_LIBRARY_PATH
16932  else
16933    # With GCC up to 2.95.x, collect2 would create an import file
16934    # for dependence libraries.  The import file would start with
16935    # the line `#! .'.  This would cause the generated library to
16936    # depend on `.', always an invalid library.  This was fixed in
16937    # development snapshots of GCC prior to 3.0.
16938    case $host_os in
16939      aix4 | aix4.[01] | aix4.[01].*)
16940      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16941	   echo ' yes '
16942	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16943	:
16944      else
16945	can_build_shared=no
16946      fi
16947      ;;
16948    esac
16949    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16950    # soname into executable. Probably we can add versioning support to
16951    # collect2, so additional links can be useful in future.
16952    if test "$aix_use_runtimelinking" = yes; then
16953      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16954      # instead of lib<name>.a to let people know that these are not
16955      # typical AIX shared libraries.
16956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957    else
16958      # We preserve .a as extension for shared libraries through AIX4.2
16959      # and later when we are not doing run time linking.
16960      library_names_spec='${libname}${release}.a $libname.a'
16961      soname_spec='${libname}${release}${shared_ext}$major'
16962    fi
16963    shlibpath_var=LIBPATH
16964  fi
16965  ;;
16966
16967amigaos*)
16968  library_names_spec='$libname.ixlibrary $libname.a'
16969  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16970  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'
16971  ;;
16972
16973beos*)
16974  library_names_spec='${libname}${shared_ext}'
16975  dynamic_linker="$host_os ld.so"
16976  shlibpath_var=LIBRARY_PATH
16977  ;;
16978
16979bsdi[45]*)
16980  version_type=linux
16981  need_version=no
16982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983  soname_spec='${libname}${release}${shared_ext}$major'
16984  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16985  shlibpath_var=LD_LIBRARY_PATH
16986  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16987  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16988  # the default ld.so.conf also contains /usr/contrib/lib and
16989  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16990  # libtool to hard-code these into programs
16991  ;;
16992
16993cygwin* | mingw* | pw32*)
16994  version_type=windows
16995  shrext_cmds=".dll"
16996  need_version=no
16997  need_lib_prefix=no
16998
16999  case $GCC,$host_os in
17000  yes,cygwin* | yes,mingw* | yes,pw32*)
17001    library_names_spec='$libname.dll.a'
17002    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17003    postinstall_cmds='base_file=`basename \${file}`~
17004      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17005      dldir=$destdir/`dirname \$dlpath`~
17006      test -d \$dldir || mkdir -p \$dldir~
17007      $install_prog $dir/$dlname \$dldir/$dlname'
17008    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17009      dlpath=$dir/\$dldll~
17010       $rm \$dlpath'
17011    shlibpath_overrides_runpath=yes
17012
17013    case $host_os in
17014    cygwin*)
17015      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17016      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17018      ;;
17019    mingw*)
17020      # MinGW DLLs use traditional 'lib' prefix
17021      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17022      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17023      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17024        # It is most probably a Windows format PATH printed by
17025        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17026        # path with ; separators, and with drive letters. We can handle the
17027        # drive letters (cygwin fileutils understands them), so leave them,
17028        # especially as we might pass files found there to a mingw objdump,
17029        # which wouldn't understand a cygwinified path. Ahh.
17030        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17031      else
17032        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17033      fi
17034      ;;
17035    pw32*)
17036      # pw32 DLLs use 'pw' prefix rather than 'lib'
17037      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17038      ;;
17039    esac
17040    ;;
17041
17042  *)
17043    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17044    ;;
17045  esac
17046  dynamic_linker='Win32 ld.exe'
17047  # FIXME: first we should search . and the directory the executable is in
17048  shlibpath_var=PATH
17049  ;;
17050
17051darwin* | rhapsody*)
17052  dynamic_linker="$host_os dyld"
17053  version_type=darwin
17054  need_lib_prefix=no
17055  need_version=no
17056  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17057  soname_spec='${libname}${release}${major}$shared_ext'
17058  shlibpath_overrides_runpath=yes
17059  shlibpath_var=DYLD_LIBRARY_PATH
17060  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17061  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17062  if test "$GCC" = yes; then
17063    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"`
17064  else
17065    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17066  fi
17067  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17068  ;;
17069
17070dgux*)
17071  version_type=linux
17072  need_lib_prefix=no
17073  need_version=no
17074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17075  soname_spec='${libname}${release}${shared_ext}$major'
17076  shlibpath_var=LD_LIBRARY_PATH
17077  ;;
17078
17079freebsd1*)
17080  dynamic_linker=no
17081  ;;
17082
17083kfreebsd*-gnu)
17084  version_type=linux
17085  need_lib_prefix=no
17086  need_version=no
17087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17088  soname_spec='${libname}${release}${shared_ext}$major'
17089  shlibpath_var=LD_LIBRARY_PATH
17090  shlibpath_overrides_runpath=no
17091  hardcode_into_libs=yes
17092  dynamic_linker='GNU ld.so'
17093  ;;
17094
17095freebsd*)
17096  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17097  version_type=freebsd-$objformat
17098  case $version_type in
17099    freebsd-elf*)
17100      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17101      need_version=no
17102      need_lib_prefix=no
17103      ;;
17104    freebsd-*)
17105      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17106      need_version=yes
17107      ;;
17108  esac
17109  shlibpath_var=LD_LIBRARY_PATH
17110  case $host_os in
17111  freebsd2*)
17112    shlibpath_overrides_runpath=yes
17113    ;;
17114  freebsd3.01* | freebsdelf3.01*)
17115    shlibpath_overrides_runpath=yes
17116    hardcode_into_libs=yes
17117    ;;
17118  *) # from 3.2 on
17119    shlibpath_overrides_runpath=no
17120    hardcode_into_libs=yes
17121    ;;
17122  esac
17123  ;;
17124
17125gnu*)
17126  version_type=linux
17127  need_lib_prefix=no
17128  need_version=no
17129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17130  soname_spec='${libname}${release}${shared_ext}$major'
17131  shlibpath_var=LD_LIBRARY_PATH
17132  hardcode_into_libs=yes
17133  ;;
17134
17135hpux9* | hpux10* | hpux11*)
17136  # Give a soname corresponding to the major version so that dld.sl refuses to
17137  # link against other versions.
17138  version_type=sunos
17139  need_lib_prefix=no
17140  need_version=no
17141  case "$host_cpu" in
17142  ia64*)
17143    shrext_cmds='.so'
17144    hardcode_into_libs=yes
17145    dynamic_linker="$host_os dld.so"
17146    shlibpath_var=LD_LIBRARY_PATH
17147    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149    soname_spec='${libname}${release}${shared_ext}$major'
17150    if test "X$HPUX_IA64_MODE" = X32; then
17151      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17152    else
17153      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17154    fi
17155    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156    ;;
17157   hppa*64*)
17158     shrext_cmds='.sl'
17159     hardcode_into_libs=yes
17160     dynamic_linker="$host_os dld.sl"
17161     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17162     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164     soname_spec='${libname}${release}${shared_ext}$major'
17165     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17166     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17167     ;;
17168   *)
17169    shrext_cmds='.sl'
17170    dynamic_linker="$host_os dld.sl"
17171    shlibpath_var=SHLIB_PATH
17172    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174    soname_spec='${libname}${release}${shared_ext}$major'
17175    ;;
17176  esac
17177  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17178  postinstall_cmds='chmod 555 $lib'
17179  ;;
17180
17181irix5* | irix6* | nonstopux*)
17182  case $host_os in
17183    nonstopux*) version_type=nonstopux ;;
17184    *)
17185	if test "$lt_cv_prog_gnu_ld" = yes; then
17186		version_type=linux
17187	else
17188		version_type=irix
17189	fi ;;
17190  esac
17191  need_lib_prefix=no
17192  need_version=no
17193  soname_spec='${libname}${release}${shared_ext}$major'
17194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17195  case $host_os in
17196  irix5* | nonstopux*)
17197    libsuff= shlibsuff=
17198    ;;
17199  *)
17200    case $LD in # libtool.m4 will add one of these switches to LD
17201    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17202      libsuff= shlibsuff= libmagic=32-bit;;
17203    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17204      libsuff=32 shlibsuff=N32 libmagic=N32;;
17205    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17206      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17207    *) libsuff= shlibsuff= libmagic=never-match;;
17208    esac
17209    ;;
17210  esac
17211  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17212  shlibpath_overrides_runpath=no
17213  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17214  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17215  hardcode_into_libs=yes
17216  ;;
17217
17218# No shared lib support for Linux oldld, aout, or coff.
17219linux*oldld* | linux*aout* | linux*coff*)
17220  dynamic_linker=no
17221  ;;
17222
17223# This must be Linux ELF.
17224linux*)
17225  version_type=linux
17226  need_lib_prefix=no
17227  need_version=no
17228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229  soname_spec='${libname}${release}${shared_ext}$major'
17230  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17231  shlibpath_var=LD_LIBRARY_PATH
17232  shlibpath_overrides_runpath=no
17233  # This implies no fast_install, which is unacceptable.
17234  # Some rework will be needed to allow for fast_install
17235  # before this can be enabled.
17236  hardcode_into_libs=yes
17237
17238  # Append ld.so.conf contents to the search path
17239  if test -f /etc/ld.so.conf; then
17240    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17241    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17242  fi
17243
17244  # We used to test for /lib/ld.so.1 and disable shared libraries on
17245  # powerpc, because MkLinux only supported shared libraries with the
17246  # GNU dynamic linker.  Since this was broken with cross compilers,
17247  # most powerpc-linux boxes support dynamic linking these days and
17248  # people can always --disable-shared, the test was removed, and we
17249  # assume the GNU/Linux dynamic linker is in use.
17250  dynamic_linker='GNU/Linux ld.so'
17251  ;;
17252
17253knetbsd*-gnu)
17254  version_type=linux
17255  need_lib_prefix=no
17256  need_version=no
17257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17258  soname_spec='${libname}${release}${shared_ext}$major'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  shlibpath_overrides_runpath=no
17261  hardcode_into_libs=yes
17262  dynamic_linker='GNU ld.so'
17263  ;;
17264
17265netbsd*)
17266  version_type=sunos
17267  need_lib_prefix=no
17268  need_version=no
17269  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17270    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17271    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17272    dynamic_linker='NetBSD (a.out) ld.so'
17273  else
17274    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17275    soname_spec='${libname}${release}${shared_ext}$major'
17276    dynamic_linker='NetBSD ld.elf_so'
17277  fi
17278  shlibpath_var=LD_LIBRARY_PATH
17279  shlibpath_overrides_runpath=yes
17280  hardcode_into_libs=yes
17281  ;;
17282
17283newsos6)
17284  version_type=linux
17285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286  shlibpath_var=LD_LIBRARY_PATH
17287  shlibpath_overrides_runpath=yes
17288  ;;
17289
17290nto-qnx*)
17291  version_type=linux
17292  need_lib_prefix=no
17293  need_version=no
17294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295  soname_spec='${libname}${release}${shared_ext}$major'
17296  shlibpath_var=LD_LIBRARY_PATH
17297  shlibpath_overrides_runpath=yes
17298  ;;
17299
17300openbsd*)
17301  version_type=sunos
17302  need_lib_prefix=no
17303  need_version=no
17304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306  shlibpath_var=LD_LIBRARY_PATH
17307  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17308    case $host_os in
17309      openbsd2.[89] | openbsd2.[89].*)
17310	shlibpath_overrides_runpath=no
17311	;;
17312      *)
17313	shlibpath_overrides_runpath=yes
17314	;;
17315      esac
17316  else
17317    shlibpath_overrides_runpath=yes
17318  fi
17319  ;;
17320
17321os2*)
17322  libname_spec='$name'
17323  shrext_cmds=".dll"
17324  need_lib_prefix=no
17325  library_names_spec='$libname${shared_ext} $libname.a'
17326  dynamic_linker='OS/2 ld.exe'
17327  shlibpath_var=LIBPATH
17328  ;;
17329
17330osf3* | osf4* | osf5*)
17331  version_type=osf
17332  need_lib_prefix=no
17333  need_version=no
17334  soname_spec='${libname}${release}${shared_ext}$major'
17335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336  shlibpath_var=LD_LIBRARY_PATH
17337  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17338  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17339  ;;
17340
17341sco3.2v5*)
17342  version_type=osf
17343  soname_spec='${libname}${release}${shared_ext}$major'
17344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345  shlibpath_var=LD_LIBRARY_PATH
17346  ;;
17347
17348solaris*)
17349  version_type=linux
17350  need_lib_prefix=no
17351  need_version=no
17352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353  soname_spec='${libname}${release}${shared_ext}$major'
17354  shlibpath_var=LD_LIBRARY_PATH
17355  shlibpath_overrides_runpath=yes
17356  hardcode_into_libs=yes
17357  # ldd complains unless libraries are executable
17358  postinstall_cmds='chmod +x $lib'
17359  ;;
17360
17361sunos4*)
17362  version_type=sunos
17363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365  shlibpath_var=LD_LIBRARY_PATH
17366  shlibpath_overrides_runpath=yes
17367  if test "$with_gnu_ld" = yes; then
17368    need_lib_prefix=no
17369  fi
17370  need_version=yes
17371  ;;
17372
17373sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17374  version_type=linux
17375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376  soname_spec='${libname}${release}${shared_ext}$major'
17377  shlibpath_var=LD_LIBRARY_PATH
17378  case $host_vendor in
17379    sni)
17380      shlibpath_overrides_runpath=no
17381      need_lib_prefix=no
17382      export_dynamic_flag_spec='${wl}-Blargedynsym'
17383      runpath_var=LD_RUN_PATH
17384      ;;
17385    siemens)
17386      need_lib_prefix=no
17387      ;;
17388    motorola)
17389      need_lib_prefix=no
17390      need_version=no
17391      shlibpath_overrides_runpath=no
17392      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17393      ;;
17394  esac
17395  ;;
17396
17397sysv4*MP*)
17398  if test -d /usr/nec ;then
17399    version_type=linux
17400    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17401    soname_spec='$libname${shared_ext}.$major'
17402    shlibpath_var=LD_LIBRARY_PATH
17403  fi
17404  ;;
17405
17406uts4*)
17407  version_type=linux
17408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409  soname_spec='${libname}${release}${shared_ext}$major'
17410  shlibpath_var=LD_LIBRARY_PATH
17411  ;;
17412
17413*)
17414  dynamic_linker=no
17415  ;;
17416esac
17417echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17418echo "${ECHO_T}$dynamic_linker" >&6
17419test "$dynamic_linker" = no && can_build_shared=no
17420
17421echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17422echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17423hardcode_action_CXX=
17424if test -n "$hardcode_libdir_flag_spec_CXX" || \
17425   test -n "$runpath_var_CXX" || \
17426   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17427
17428  # We can hardcode non-existant directories.
17429  if test "$hardcode_direct_CXX" != no &&
17430     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17431     # have to relink, otherwise we might link with an installed library
17432     # when we should be linking with a yet-to-be-installed one
17433     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17434     test "$hardcode_minus_L_CXX" != no; then
17435    # Linking always hardcodes the temporary library directory.
17436    hardcode_action_CXX=relink
17437  else
17438    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17439    hardcode_action_CXX=immediate
17440  fi
17441else
17442  # We cannot hardcode anything, or else we can only hardcode existing
17443  # directories.
17444  hardcode_action_CXX=unsupported
17445fi
17446echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17447echo "${ECHO_T}$hardcode_action_CXX" >&6
17448
17449if test "$hardcode_action_CXX" = relink; then
17450  # Fast installation is not supported
17451  enable_fast_install=no
17452elif test "$shlibpath_overrides_runpath" = yes ||
17453     test "$enable_shared" = no; then
17454  # Fast installation is not necessary
17455  enable_fast_install=needless
17456fi
17457
17458striplib=
17459old_striplib=
17460echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17461echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17462if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17463  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17464  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17465  echo "$as_me:$LINENO: result: yes" >&5
17466echo "${ECHO_T}yes" >&6
17467else
17468# FIXME - insert some real tests, host_os isn't really good enough
17469  case $host_os in
17470   darwin*)
17471       if test -n "$STRIP" ; then
17472         striplib="$STRIP -x"
17473         echo "$as_me:$LINENO: result: yes" >&5
17474echo "${ECHO_T}yes" >&6
17475       else
17476  echo "$as_me:$LINENO: result: no" >&5
17477echo "${ECHO_T}no" >&6
17478fi
17479       ;;
17480   *)
17481  echo "$as_me:$LINENO: result: no" >&5
17482echo "${ECHO_T}no" >&6
17483    ;;
17484  esac
17485fi
17486
17487if test "x$enable_dlopen" != xyes; then
17488  enable_dlopen=unknown
17489  enable_dlopen_self=unknown
17490  enable_dlopen_self_static=unknown
17491else
17492  lt_cv_dlopen=no
17493  lt_cv_dlopen_libs=
17494
17495  case $host_os in
17496  beos*)
17497    lt_cv_dlopen="load_add_on"
17498    lt_cv_dlopen_libs=
17499    lt_cv_dlopen_self=yes
17500    ;;
17501
17502  mingw* | pw32*)
17503    lt_cv_dlopen="LoadLibrary"
17504    lt_cv_dlopen_libs=
17505   ;;
17506
17507  cygwin*)
17508    lt_cv_dlopen="dlopen"
17509    lt_cv_dlopen_libs=
17510   ;;
17511
17512  darwin*)
17513  # if libdl is installed we need to link against it
17514    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17515echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17516if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17517  echo $ECHO_N "(cached) $ECHO_C" >&6
17518else
17519  ac_check_lib_save_LIBS=$LIBS
17520LIBS="-ldl  $LIBS"
17521cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h.  */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h.  */
17527
17528/* Override any gcc2 internal prototype to avoid an error.  */
17529#ifdef __cplusplus
17530extern "C"
17531#endif
17532/* We use char because int might match the return type of a gcc2
17533   builtin and then its argument prototype would still apply.  */
17534char dlopen ();
17535int
17536main ()
17537{
17538dlopen ();
17539  ;
17540  return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext conftest$ac_exeext
17544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545  (eval $ac_link) 2>conftest.er1
17546  ac_status=$?
17547  grep -v '^ *+' conftest.er1 >conftest.err
17548  rm -f conftest.er1
17549  cat conftest.err >&5
17550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551  (exit $ac_status); } &&
17552	 { ac_try='test -z "$ac_cxx_werror_flag"
17553			 || test ! -s conftest.err'
17554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555  (eval $ac_try) 2>&5
17556  ac_status=$?
17557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558  (exit $ac_status); }; } &&
17559	 { ac_try='test -s conftest$ac_exeext'
17560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561  (eval $ac_try) 2>&5
17562  ac_status=$?
17563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564  (exit $ac_status); }; }; then
17565  ac_cv_lib_dl_dlopen=yes
17566else
17567  echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_cv_lib_dl_dlopen=no
17571fi
17572rm -f conftest.err conftest.$ac_objext \
17573      conftest$ac_exeext conftest.$ac_ext
17574LIBS=$ac_check_lib_save_LIBS
17575fi
17576echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17577echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17578if test $ac_cv_lib_dl_dlopen = yes; then
17579  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17580else
17581
17582    lt_cv_dlopen="dyld"
17583    lt_cv_dlopen_libs=
17584    lt_cv_dlopen_self=yes
17585
17586fi
17587
17588   ;;
17589
17590  *)
17591    echo "$as_me:$LINENO: checking for shl_load" >&5
17592echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17593if test "${ac_cv_func_shl_load+set}" = set; then
17594  echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596  cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h.  */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h.  */
17602/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17603   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17604#define shl_load innocuous_shl_load
17605
17606/* System header to define __stub macros and hopefully few prototypes,
17607    which can conflict with char shl_load (); below.
17608    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17609    <limits.h> exists even on freestanding compilers.  */
17610
17611#ifdef __STDC__
17612# include <limits.h>
17613#else
17614# include <assert.h>
17615#endif
17616
17617#undef shl_load
17618
17619/* Override any gcc2 internal prototype to avoid an error.  */
17620#ifdef __cplusplus
17621extern "C"
17622{
17623#endif
17624/* We use char because int might match the return type of a gcc2
17625   builtin and then its argument prototype would still apply.  */
17626char shl_load ();
17627/* The GNU C library defines this for functions which it implements
17628    to always fail with ENOSYS.  Some functions are actually named
17629    something starting with __ and the normal name is an alias.  */
17630#if defined (__stub_shl_load) || defined (__stub___shl_load)
17631choke me
17632#else
17633char (*f) () = shl_load;
17634#endif
17635#ifdef __cplusplus
17636}
17637#endif
17638
17639int
17640main ()
17641{
17642return f != shl_load;
17643  ;
17644  return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext conftest$ac_exeext
17648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649  (eval $ac_link) 2>conftest.er1
17650  ac_status=$?
17651  grep -v '^ *+' conftest.er1 >conftest.err
17652  rm -f conftest.er1
17653  cat conftest.err >&5
17654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655  (exit $ac_status); } &&
17656	 { ac_try='test -z "$ac_cxx_werror_flag"
17657			 || test ! -s conftest.err'
17658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659  (eval $ac_try) 2>&5
17660  ac_status=$?
17661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662  (exit $ac_status); }; } &&
17663	 { ac_try='test -s conftest$ac_exeext'
17664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665  (eval $ac_try) 2>&5
17666  ac_status=$?
17667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668  (exit $ac_status); }; }; then
17669  ac_cv_func_shl_load=yes
17670else
17671  echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674ac_cv_func_shl_load=no
17675fi
17676rm -f conftest.err conftest.$ac_objext \
17677      conftest$ac_exeext conftest.$ac_ext
17678fi
17679echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17680echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17681if test $ac_cv_func_shl_load = yes; then
17682  lt_cv_dlopen="shl_load"
17683else
17684  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17685echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17686if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17687  echo $ECHO_N "(cached) $ECHO_C" >&6
17688else
17689  ac_check_lib_save_LIBS=$LIBS
17690LIBS="-ldld  $LIBS"
17691cat >conftest.$ac_ext <<_ACEOF
17692/* confdefs.h.  */
17693_ACEOF
17694cat confdefs.h >>conftest.$ac_ext
17695cat >>conftest.$ac_ext <<_ACEOF
17696/* end confdefs.h.  */
17697
17698/* Override any gcc2 internal prototype to avoid an error.  */
17699#ifdef __cplusplus
17700extern "C"
17701#endif
17702/* We use char because int might match the return type of a gcc2
17703   builtin and then its argument prototype would still apply.  */
17704char shl_load ();
17705int
17706main ()
17707{
17708shl_load ();
17709  ;
17710  return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext conftest$ac_exeext
17714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715  (eval $ac_link) 2>conftest.er1
17716  ac_status=$?
17717  grep -v '^ *+' conftest.er1 >conftest.err
17718  rm -f conftest.er1
17719  cat conftest.err >&5
17720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721  (exit $ac_status); } &&
17722	 { ac_try='test -z "$ac_cxx_werror_flag"
17723			 || test ! -s conftest.err'
17724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725  (eval $ac_try) 2>&5
17726  ac_status=$?
17727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728  (exit $ac_status); }; } &&
17729	 { ac_try='test -s conftest$ac_exeext'
17730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731  (eval $ac_try) 2>&5
17732  ac_status=$?
17733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734  (exit $ac_status); }; }; then
17735  ac_cv_lib_dld_shl_load=yes
17736else
17737  echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740ac_cv_lib_dld_shl_load=no
17741fi
17742rm -f conftest.err conftest.$ac_objext \
17743      conftest$ac_exeext conftest.$ac_ext
17744LIBS=$ac_check_lib_save_LIBS
17745fi
17746echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17747echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17748if test $ac_cv_lib_dld_shl_load = yes; then
17749  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17750else
17751  echo "$as_me:$LINENO: checking for dlopen" >&5
17752echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17753if test "${ac_cv_func_dlopen+set}" = set; then
17754  echo $ECHO_N "(cached) $ECHO_C" >&6
17755else
17756  cat >conftest.$ac_ext <<_ACEOF
17757/* confdefs.h.  */
17758_ACEOF
17759cat confdefs.h >>conftest.$ac_ext
17760cat >>conftest.$ac_ext <<_ACEOF
17761/* end confdefs.h.  */
17762/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17763   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17764#define dlopen innocuous_dlopen
17765
17766/* System header to define __stub macros and hopefully few prototypes,
17767    which can conflict with char dlopen (); below.
17768    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17769    <limits.h> exists even on freestanding compilers.  */
17770
17771#ifdef __STDC__
17772# include <limits.h>
17773#else
17774# include <assert.h>
17775#endif
17776
17777#undef dlopen
17778
17779/* Override any gcc2 internal prototype to avoid an error.  */
17780#ifdef __cplusplus
17781extern "C"
17782{
17783#endif
17784/* We use char because int might match the return type of a gcc2
17785   builtin and then its argument prototype would still apply.  */
17786char dlopen ();
17787/* The GNU C library defines this for functions which it implements
17788    to always fail with ENOSYS.  Some functions are actually named
17789    something starting with __ and the normal name is an alias.  */
17790#if defined (__stub_dlopen) || defined (__stub___dlopen)
17791choke me
17792#else
17793char (*f) () = dlopen;
17794#endif
17795#ifdef __cplusplus
17796}
17797#endif
17798
17799int
17800main ()
17801{
17802return f != dlopen;
17803  ;
17804  return 0;
17805}
17806_ACEOF
17807rm -f conftest.$ac_objext conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809  (eval $ac_link) 2>conftest.er1
17810  ac_status=$?
17811  grep -v '^ *+' conftest.er1 >conftest.err
17812  rm -f conftest.er1
17813  cat conftest.err >&5
17814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815  (exit $ac_status); } &&
17816	 { ac_try='test -z "$ac_cxx_werror_flag"
17817			 || test ! -s conftest.err'
17818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819  (eval $ac_try) 2>&5
17820  ac_status=$?
17821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); }; } &&
17823	 { ac_try='test -s conftest$ac_exeext'
17824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825  (eval $ac_try) 2>&5
17826  ac_status=$?
17827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828  (exit $ac_status); }; }; then
17829  ac_cv_func_dlopen=yes
17830else
17831  echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834ac_cv_func_dlopen=no
17835fi
17836rm -f conftest.err conftest.$ac_objext \
17837      conftest$ac_exeext conftest.$ac_ext
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17840echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17841if test $ac_cv_func_dlopen = yes; then
17842  lt_cv_dlopen="dlopen"
17843else
17844  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17845echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17846if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17847  echo $ECHO_N "(cached) $ECHO_C" >&6
17848else
17849  ac_check_lib_save_LIBS=$LIBS
17850LIBS="-ldl  $LIBS"
17851cat >conftest.$ac_ext <<_ACEOF
17852/* confdefs.h.  */
17853_ACEOF
17854cat confdefs.h >>conftest.$ac_ext
17855cat >>conftest.$ac_ext <<_ACEOF
17856/* end confdefs.h.  */
17857
17858/* Override any gcc2 internal prototype to avoid an error.  */
17859#ifdef __cplusplus
17860extern "C"
17861#endif
17862/* We use char because int might match the return type of a gcc2
17863   builtin and then its argument prototype would still apply.  */
17864char dlopen ();
17865int
17866main ()
17867{
17868dlopen ();
17869  ;
17870  return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext conftest$ac_exeext
17874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17875  (eval $ac_link) 2>conftest.er1
17876  ac_status=$?
17877  grep -v '^ *+' conftest.er1 >conftest.err
17878  rm -f conftest.er1
17879  cat conftest.err >&5
17880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881  (exit $ac_status); } &&
17882	 { ac_try='test -z "$ac_cxx_werror_flag"
17883			 || test ! -s conftest.err'
17884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885  (eval $ac_try) 2>&5
17886  ac_status=$?
17887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888  (exit $ac_status); }; } &&
17889	 { ac_try='test -s conftest$ac_exeext'
17890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891  (eval $ac_try) 2>&5
17892  ac_status=$?
17893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894  (exit $ac_status); }; }; then
17895  ac_cv_lib_dl_dlopen=yes
17896else
17897  echo "$as_me: failed program was:" >&5
17898sed 's/^/| /' conftest.$ac_ext >&5
17899
17900ac_cv_lib_dl_dlopen=no
17901fi
17902rm -f conftest.err conftest.$ac_objext \
17903      conftest$ac_exeext conftest.$ac_ext
17904LIBS=$ac_check_lib_save_LIBS
17905fi
17906echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17908if test $ac_cv_lib_dl_dlopen = yes; then
17909  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910else
17911  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17912echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17913if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17914  echo $ECHO_N "(cached) $ECHO_C" >&6
17915else
17916  ac_check_lib_save_LIBS=$LIBS
17917LIBS="-lsvld  $LIBS"
17918cat >conftest.$ac_ext <<_ACEOF
17919/* confdefs.h.  */
17920_ACEOF
17921cat confdefs.h >>conftest.$ac_ext
17922cat >>conftest.$ac_ext <<_ACEOF
17923/* end confdefs.h.  */
17924
17925/* Override any gcc2 internal prototype to avoid an error.  */
17926#ifdef __cplusplus
17927extern "C"
17928#endif
17929/* We use char because int might match the return type of a gcc2
17930   builtin and then its argument prototype would still apply.  */
17931char dlopen ();
17932int
17933main ()
17934{
17935dlopen ();
17936  ;
17937  return 0;
17938}
17939_ACEOF
17940rm -f conftest.$ac_objext conftest$ac_exeext
17941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17942  (eval $ac_link) 2>conftest.er1
17943  ac_status=$?
17944  grep -v '^ *+' conftest.er1 >conftest.err
17945  rm -f conftest.er1
17946  cat conftest.err >&5
17947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948  (exit $ac_status); } &&
17949	 { ac_try='test -z "$ac_cxx_werror_flag"
17950			 || test ! -s conftest.err'
17951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952  (eval $ac_try) 2>&5
17953  ac_status=$?
17954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955  (exit $ac_status); }; } &&
17956	 { ac_try='test -s conftest$ac_exeext'
17957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958  (eval $ac_try) 2>&5
17959  ac_status=$?
17960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961  (exit $ac_status); }; }; then
17962  ac_cv_lib_svld_dlopen=yes
17963else
17964  echo "$as_me: failed program was:" >&5
17965sed 's/^/| /' conftest.$ac_ext >&5
17966
17967ac_cv_lib_svld_dlopen=no
17968fi
17969rm -f conftest.err conftest.$ac_objext \
17970      conftest$ac_exeext conftest.$ac_ext
17971LIBS=$ac_check_lib_save_LIBS
17972fi
17973echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17974echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17975if test $ac_cv_lib_svld_dlopen = yes; then
17976  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17977else
17978  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17979echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17980if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17981  echo $ECHO_N "(cached) $ECHO_C" >&6
17982else
17983  ac_check_lib_save_LIBS=$LIBS
17984LIBS="-ldld  $LIBS"
17985cat >conftest.$ac_ext <<_ACEOF
17986/* confdefs.h.  */
17987_ACEOF
17988cat confdefs.h >>conftest.$ac_ext
17989cat >>conftest.$ac_ext <<_ACEOF
17990/* end confdefs.h.  */
17991
17992/* Override any gcc2 internal prototype to avoid an error.  */
17993#ifdef __cplusplus
17994extern "C"
17995#endif
17996/* We use char because int might match the return type of a gcc2
17997   builtin and then its argument prototype would still apply.  */
17998char dld_link ();
17999int
18000main ()
18001{
18002dld_link ();
18003  ;
18004  return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext conftest$ac_exeext
18008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009  (eval $ac_link) 2>conftest.er1
18010  ac_status=$?
18011  grep -v '^ *+' conftest.er1 >conftest.err
18012  rm -f conftest.er1
18013  cat conftest.err >&5
18014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015  (exit $ac_status); } &&
18016	 { ac_try='test -z "$ac_cxx_werror_flag"
18017			 || test ! -s conftest.err'
18018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019  (eval $ac_try) 2>&5
18020  ac_status=$?
18021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022  (exit $ac_status); }; } &&
18023	 { ac_try='test -s conftest$ac_exeext'
18024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025  (eval $ac_try) 2>&5
18026  ac_status=$?
18027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028  (exit $ac_status); }; }; then
18029  ac_cv_lib_dld_dld_link=yes
18030else
18031  echo "$as_me: failed program was:" >&5
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
18034ac_cv_lib_dld_dld_link=no
18035fi
18036rm -f conftest.err conftest.$ac_objext \
18037      conftest$ac_exeext conftest.$ac_ext
18038LIBS=$ac_check_lib_save_LIBS
18039fi
18040echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18041echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18042if test $ac_cv_lib_dld_dld_link = yes; then
18043  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18044fi
18045
18046
18047fi
18048
18049
18050fi
18051
18052
18053fi
18054
18055
18056fi
18057
18058
18059fi
18060
18061    ;;
18062  esac
18063
18064  if test "x$lt_cv_dlopen" != xno; then
18065    enable_dlopen=yes
18066  else
18067    enable_dlopen=no
18068  fi
18069
18070  case $lt_cv_dlopen in
18071  dlopen)
18072    save_CPPFLAGS="$CPPFLAGS"
18073    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18074
18075    save_LDFLAGS="$LDFLAGS"
18076    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18077
18078    save_LIBS="$LIBS"
18079    LIBS="$lt_cv_dlopen_libs $LIBS"
18080
18081    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18082echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18083if test "${lt_cv_dlopen_self+set}" = set; then
18084  echo $ECHO_N "(cached) $ECHO_C" >&6
18085else
18086  	  if test "$cross_compiling" = yes; then :
18087  lt_cv_dlopen_self=cross
18088else
18089  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18090  lt_status=$lt_dlunknown
18091  cat > conftest.$ac_ext <<EOF
18092#line 18092 "configure"
18093#include "confdefs.h"
18094
18095#if HAVE_DLFCN_H
18096#include <dlfcn.h>
18097#endif
18098
18099#include <stdio.h>
18100
18101#ifdef RTLD_GLOBAL
18102#  define LT_DLGLOBAL		RTLD_GLOBAL
18103#else
18104#  ifdef DL_GLOBAL
18105#    define LT_DLGLOBAL		DL_GLOBAL
18106#  else
18107#    define LT_DLGLOBAL		0
18108#  endif
18109#endif
18110
18111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18112   find out it does not work in some platform. */
18113#ifndef LT_DLLAZY_OR_NOW
18114#  ifdef RTLD_LAZY
18115#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18116#  else
18117#    ifdef DL_LAZY
18118#      define LT_DLLAZY_OR_NOW		DL_LAZY
18119#    else
18120#      ifdef RTLD_NOW
18121#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18122#      else
18123#        ifdef DL_NOW
18124#          define LT_DLLAZY_OR_NOW	DL_NOW
18125#        else
18126#          define LT_DLLAZY_OR_NOW	0
18127#        endif
18128#      endif
18129#    endif
18130#  endif
18131#endif
18132
18133#ifdef __cplusplus
18134extern "C" void exit (int);
18135#endif
18136
18137void fnord() { int i=42;}
18138int main ()
18139{
18140  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18141  int status = $lt_dlunknown;
18142
18143  if (self)
18144    {
18145      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18146      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18147      /* dlclose (self); */
18148    }
18149
18150    exit (status);
18151}
18152EOF
18153  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18154  (eval $ac_link) 2>&5
18155  ac_status=$?
18156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18158    (./conftest; exit; ) 2>/dev/null
18159    lt_status=$?
18160    case x$lt_status in
18161      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18162      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18163      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18164    esac
18165  else :
18166    # compilation failed
18167    lt_cv_dlopen_self=no
18168  fi
18169fi
18170rm -fr conftest*
18171
18172
18173fi
18174echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18175echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18176
18177    if test "x$lt_cv_dlopen_self" = xyes; then
18178      LDFLAGS="$LDFLAGS $link_static_flag"
18179      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18180echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18181if test "${lt_cv_dlopen_self_static+set}" = set; then
18182  echo $ECHO_N "(cached) $ECHO_C" >&6
18183else
18184  	  if test "$cross_compiling" = yes; then :
18185  lt_cv_dlopen_self_static=cross
18186else
18187  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18188  lt_status=$lt_dlunknown
18189  cat > conftest.$ac_ext <<EOF
18190#line 18190 "configure"
18191#include "confdefs.h"
18192
18193#if HAVE_DLFCN_H
18194#include <dlfcn.h>
18195#endif
18196
18197#include <stdio.h>
18198
18199#ifdef RTLD_GLOBAL
18200#  define LT_DLGLOBAL		RTLD_GLOBAL
18201#else
18202#  ifdef DL_GLOBAL
18203#    define LT_DLGLOBAL		DL_GLOBAL
18204#  else
18205#    define LT_DLGLOBAL		0
18206#  endif
18207#endif
18208
18209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18210   find out it does not work in some platform. */
18211#ifndef LT_DLLAZY_OR_NOW
18212#  ifdef RTLD_LAZY
18213#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18214#  else
18215#    ifdef DL_LAZY
18216#      define LT_DLLAZY_OR_NOW		DL_LAZY
18217#    else
18218#      ifdef RTLD_NOW
18219#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18220#      else
18221#        ifdef DL_NOW
18222#          define LT_DLLAZY_OR_NOW	DL_NOW
18223#        else
18224#          define LT_DLLAZY_OR_NOW	0
18225#        endif
18226#      endif
18227#    endif
18228#  endif
18229#endif
18230
18231#ifdef __cplusplus
18232extern "C" void exit (int);
18233#endif
18234
18235void fnord() { int i=42;}
18236int main ()
18237{
18238  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18239  int status = $lt_dlunknown;
18240
18241  if (self)
18242    {
18243      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18244      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18245      /* dlclose (self); */
18246    }
18247
18248    exit (status);
18249}
18250EOF
18251  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18252  (eval $ac_link) 2>&5
18253  ac_status=$?
18254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18256    (./conftest; exit; ) 2>/dev/null
18257    lt_status=$?
18258    case x$lt_status in
18259      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18260      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18261      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18262    esac
18263  else :
18264    # compilation failed
18265    lt_cv_dlopen_self_static=no
18266  fi
18267fi
18268rm -fr conftest*
18269
18270
18271fi
18272echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18273echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18274    fi
18275
18276    CPPFLAGS="$save_CPPFLAGS"
18277    LDFLAGS="$save_LDFLAGS"
18278    LIBS="$save_LIBS"
18279    ;;
18280  esac
18281
18282  case $lt_cv_dlopen_self in
18283  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18284  *) enable_dlopen_self=unknown ;;
18285  esac
18286
18287  case $lt_cv_dlopen_self_static in
18288  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18289  *) enable_dlopen_self_static=unknown ;;
18290  esac
18291fi
18292
18293
18294# The else clause should only fire when bootstrapping the
18295# libtool distribution, otherwise you forgot to ship ltmain.sh
18296# with your package, and you will get complaints that there are
18297# no rules to generate ltmain.sh.
18298if test -f "$ltmain"; then
18299  # See if we are running on zsh, and set the options which allow our commands through
18300  # without removal of \ escapes.
18301  if test -n "${ZSH_VERSION+set}" ; then
18302    setopt NO_GLOB_SUBST
18303  fi
18304  # Now quote all the things that may contain metacharacters while being
18305  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18306  # variables and quote the copies for generation of the libtool script.
18307  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18308    SED SHELL STRIP \
18309    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18310    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18311    deplibs_check_method reload_flag reload_cmds need_locks \
18312    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18313    lt_cv_sys_global_symbol_to_c_name_address \
18314    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18315    old_postinstall_cmds old_postuninstall_cmds \
18316    compiler_CXX \
18317    CC_CXX \
18318    LD_CXX \
18319    lt_prog_compiler_wl_CXX \
18320    lt_prog_compiler_pic_CXX \
18321    lt_prog_compiler_static_CXX \
18322    lt_prog_compiler_no_builtin_flag_CXX \
18323    export_dynamic_flag_spec_CXX \
18324    thread_safe_flag_spec_CXX \
18325    whole_archive_flag_spec_CXX \
18326    enable_shared_with_static_runtimes_CXX \
18327    old_archive_cmds_CXX \
18328    old_archive_from_new_cmds_CXX \
18329    predep_objects_CXX \
18330    postdep_objects_CXX \
18331    predeps_CXX \
18332    postdeps_CXX \
18333    compiler_lib_search_path_CXX \
18334    archive_cmds_CXX \
18335    archive_expsym_cmds_CXX \
18336    postinstall_cmds_CXX \
18337    postuninstall_cmds_CXX \
18338    old_archive_from_expsyms_cmds_CXX \
18339    allow_undefined_flag_CXX \
18340    no_undefined_flag_CXX \
18341    export_symbols_cmds_CXX \
18342    hardcode_libdir_flag_spec_CXX \
18343    hardcode_libdir_flag_spec_ld_CXX \
18344    hardcode_libdir_separator_CXX \
18345    hardcode_automatic_CXX \
18346    module_cmds_CXX \
18347    module_expsym_cmds_CXX \
18348    lt_cv_prog_compiler_c_o_CXX \
18349    exclude_expsyms_CXX \
18350    include_expsyms_CXX; do
18351
18352    case $var in
18353    old_archive_cmds_CXX | \
18354    old_archive_from_new_cmds_CXX | \
18355    archive_cmds_CXX | \
18356    archive_expsym_cmds_CXX | \
18357    module_cmds_CXX | \
18358    module_expsym_cmds_CXX | \
18359    old_archive_from_expsyms_cmds_CXX | \
18360    export_symbols_cmds_CXX | \
18361    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18362    postinstall_cmds | postuninstall_cmds | \
18363    old_postinstall_cmds | old_postuninstall_cmds | \
18364    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18365      # Double-quote double-evaled strings.
18366      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18367      ;;
18368    *)
18369      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18370      ;;
18371    esac
18372  done
18373
18374  case $lt_echo in
18375  *'\$0 --fallback-echo"')
18376    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18377    ;;
18378  esac
18379
18380cfgfile="$ofile"
18381
18382  cat <<__EOF__ >> "$cfgfile"
18383# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18384
18385# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18386
18387# Shell to use when invoking shell scripts.
18388SHELL=$lt_SHELL
18389
18390# Whether or not to build shared libraries.
18391build_libtool_libs=$enable_shared
18392
18393# Whether or not to build static libraries.
18394build_old_libs=$enable_static
18395
18396# Whether or not to add -lc for building shared libraries.
18397build_libtool_need_lc=$archive_cmds_need_lc_CXX
18398
18399# Whether or not to disallow shared libs when runtime libs are static
18400allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18401
18402# Whether or not to optimize for fast installation.
18403fast_install=$enable_fast_install
18404
18405# The host system.
18406host_alias=$host_alias
18407host=$host
18408
18409# An echo program that does not interpret backslashes.
18410echo=$lt_echo
18411
18412# The archiver.
18413AR=$lt_AR
18414AR_FLAGS=$lt_AR_FLAGS
18415
18416# A C compiler.
18417LTCC=$lt_LTCC
18418
18419# A language-specific compiler.
18420CC=$lt_compiler_CXX
18421
18422# Is the compiler the GNU C compiler?
18423with_gcc=$GCC_CXX
18424
18425# An ERE matcher.
18426EGREP=$lt_EGREP
18427
18428# The linker used to build libraries.
18429LD=$lt_LD_CXX
18430
18431# Whether we need hard or soft links.
18432LN_S=$lt_LN_S
18433
18434# A BSD-compatible nm program.
18435NM=$lt_NM
18436
18437# A symbol stripping program
18438STRIP=$lt_STRIP
18439
18440# Used to examine libraries when file_magic_cmd begins "file"
18441MAGIC_CMD=$MAGIC_CMD
18442
18443# Used on cygwin: DLL creation program.
18444DLLTOOL="$DLLTOOL"
18445
18446# Used on cygwin: object dumper.
18447OBJDUMP="$OBJDUMP"
18448
18449# Used on cygwin: assembler.
18450AS="$AS"
18451
18452# The name of the directory that contains temporary libtool files.
18453objdir=$objdir
18454
18455# How to create reloadable object files.
18456reload_flag=$lt_reload_flag
18457reload_cmds=$lt_reload_cmds
18458
18459# How to pass a linker flag through the compiler.
18460wl=$lt_lt_prog_compiler_wl_CXX
18461
18462# Object file suffix (normally "o").
18463objext="$ac_objext"
18464
18465# Old archive suffix (normally "a").
18466libext="$libext"
18467
18468# Shared library suffix (normally ".so").
18469shrext_cmds='$shrext_cmds'
18470
18471# Executable file suffix (normally "").
18472exeext="$exeext"
18473
18474# Additional compiler flags for building library objects.
18475pic_flag=$lt_lt_prog_compiler_pic_CXX
18476pic_mode=$pic_mode
18477
18478# What is the maximum length of a command?
18479max_cmd_len=$lt_cv_sys_max_cmd_len
18480
18481# Does compiler simultaneously support -c and -o options?
18482compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18483
18484# Must we lock files when doing compilation ?
18485need_locks=$lt_need_locks
18486
18487# Do we need the lib prefix for modules?
18488need_lib_prefix=$need_lib_prefix
18489
18490# Do we need a version for libraries?
18491need_version=$need_version
18492
18493# Whether dlopen is supported.
18494dlopen_support=$enable_dlopen
18495
18496# Whether dlopen of programs is supported.
18497dlopen_self=$enable_dlopen_self
18498
18499# Whether dlopen of statically linked programs is supported.
18500dlopen_self_static=$enable_dlopen_self_static
18501
18502# Compiler flag to prevent dynamic linking.
18503link_static_flag=$lt_lt_prog_compiler_static_CXX
18504
18505# Compiler flag to turn off builtin functions.
18506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18507
18508# Compiler flag to allow reflexive dlopens.
18509export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18510
18511# Compiler flag to generate shared objects directly from archives.
18512whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18513
18514# Compiler flag to generate thread-safe objects.
18515thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18516
18517# Library versioning type.
18518version_type=$version_type
18519
18520# Format of library name prefix.
18521libname_spec=$lt_libname_spec
18522
18523# List of archive names.  First name is the real one, the rest are links.
18524# The last name is the one that the linker finds with -lNAME.
18525library_names_spec=$lt_library_names_spec
18526
18527# The coded name of the library, if different from the real name.
18528soname_spec=$lt_soname_spec
18529
18530# Commands used to build and install an old-style archive.
18531RANLIB=$lt_RANLIB
18532old_archive_cmds=$lt_old_archive_cmds_CXX
18533old_postinstall_cmds=$lt_old_postinstall_cmds
18534old_postuninstall_cmds=$lt_old_postuninstall_cmds
18535
18536# Create an old-style archive from a shared archive.
18537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18538
18539# Create a temporary old-style archive to link instead of a shared archive.
18540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18541
18542# Commands used to build and install a shared archive.
18543archive_cmds=$lt_archive_cmds_CXX
18544archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18545postinstall_cmds=$lt_postinstall_cmds
18546postuninstall_cmds=$lt_postuninstall_cmds
18547
18548# Commands used to build a loadable module (assumed same as above if empty)
18549module_cmds=$lt_module_cmds_CXX
18550module_expsym_cmds=$lt_module_expsym_cmds_CXX
18551
18552# Commands to strip libraries.
18553old_striplib=$lt_old_striplib
18554striplib=$lt_striplib
18555
18556# Dependencies to place before the objects being linked to create a
18557# shared library.
18558predep_objects=$lt_predep_objects_CXX
18559
18560# Dependencies to place after the objects being linked to create a
18561# shared library.
18562postdep_objects=$lt_postdep_objects_CXX
18563
18564# Dependencies to place before the objects being linked to create a
18565# shared library.
18566predeps=$lt_predeps_CXX
18567
18568# Dependencies to place after the objects being linked to create a
18569# shared library.
18570postdeps=$lt_postdeps_CXX
18571
18572# The library search path used internally by the compiler when linking
18573# a shared library.
18574compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18575
18576# Method to check whether dependent libraries are shared objects.
18577deplibs_check_method=$lt_deplibs_check_method
18578
18579# Command to use when deplibs_check_method == file_magic.
18580file_magic_cmd=$lt_file_magic_cmd
18581
18582# Flag that allows shared libraries with undefined symbols to be built.
18583allow_undefined_flag=$lt_allow_undefined_flag_CXX
18584
18585# Flag that forces no undefined symbols.
18586no_undefined_flag=$lt_no_undefined_flag_CXX
18587
18588# Commands used to finish a libtool library installation in a directory.
18589finish_cmds=$lt_finish_cmds
18590
18591# Same as above, but a single script fragment to be evaled but not shown.
18592finish_eval=$lt_finish_eval
18593
18594# Take the output of nm and produce a listing of raw symbols and C names.
18595global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18596
18597# Transform the output of nm in a proper C declaration
18598global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18599
18600# Transform the output of nm in a C name address pair
18601global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18602
18603# This is the shared library runtime path variable.
18604runpath_var=$runpath_var
18605
18606# This is the shared library path variable.
18607shlibpath_var=$shlibpath_var
18608
18609# Is shlibpath searched before the hard-coded library search path?
18610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18611
18612# How to hardcode a shared library path into an executable.
18613hardcode_action=$hardcode_action_CXX
18614
18615# Whether we should hardcode library paths into libraries.
18616hardcode_into_libs=$hardcode_into_libs
18617
18618# Flag to hardcode \$libdir into a binary during linking.
18619# This must work even if \$libdir does not exist.
18620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18621
18622# If ld is used when linking, flag to hardcode \$libdir into
18623# a binary during linking. This must work even if \$libdir does
18624# not exist.
18625hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18626
18627# Whether we need a single -rpath flag with a separated argument.
18628hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18629
18630# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18631# resulting binary.
18632hardcode_direct=$hardcode_direct_CXX
18633
18634# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18635# resulting binary.
18636hardcode_minus_L=$hardcode_minus_L_CXX
18637
18638# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18639# the resulting binary.
18640hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18641
18642# Set to yes if building a shared library automatically hardcodes DIR into the library
18643# and all subsequent libraries and executables linked against it.
18644hardcode_automatic=$hardcode_automatic_CXX
18645
18646# Variables whose values should be saved in libtool wrapper scripts and
18647# restored at relink time.
18648variables_saved_for_relink="$variables_saved_for_relink"
18649
18650# Whether libtool must link a program against all its dependency libraries.
18651link_all_deplibs=$link_all_deplibs_CXX
18652
18653# Compile-time system search path for libraries
18654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18655
18656# Run-time system search path for libraries
18657sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18658
18659# Fix the shell variable \$srcfile for the compiler.
18660fix_srcfile_path="$fix_srcfile_path_CXX"
18661
18662# Set to yes if exported symbols are required.
18663always_export_symbols=$always_export_symbols_CXX
18664
18665# The commands to list exported symbols.
18666export_symbols_cmds=$lt_export_symbols_cmds_CXX
18667
18668# The commands to extract the exported symbol list from a shared archive.
18669extract_expsyms_cmds=$lt_extract_expsyms_cmds
18670
18671# Symbols that should not be listed in the preloaded symbols.
18672exclude_expsyms=$lt_exclude_expsyms_CXX
18673
18674# Symbols that must always be exported.
18675include_expsyms=$lt_include_expsyms_CXX
18676
18677# ### END LIBTOOL TAG CONFIG: $tagname
18678
18679__EOF__
18680
18681
18682else
18683  # If there is no Makefile yet, we rely on a make rule to execute
18684  # `config.status --recheck' to rerun these tests and create the
18685  # libtool script then.
18686  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18687  if test -f "$ltmain_in"; then
18688    test -f Makefile && make "$ltmain"
18689  fi
18690fi
18691
18692
18693ac_ext=c
18694ac_cpp='$CPP $CPPFLAGS'
18695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697ac_compiler_gnu=$ac_cv_c_compiler_gnu
18698
18699CC=$lt_save_CC
18700LDCXX=$LD
18701LD=$lt_save_LD
18702GCC=$lt_save_GCC
18703with_gnu_ldcxx=$with_gnu_ld
18704with_gnu_ld=$lt_save_with_gnu_ld
18705lt_cv_path_LDCXX=$lt_cv_path_LD
18706lt_cv_path_LD=$lt_save_path_LD
18707lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18708lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18709
18710	else
18711	  tagname=""
18712	fi
18713	;;
18714
18715      F77)
18716	if test -n "$F77" && test "X$F77" != "Xno"; then
18717
18718ac_ext=f
18719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18722
18723
18724archive_cmds_need_lc_F77=no
18725allow_undefined_flag_F77=
18726always_export_symbols_F77=no
18727archive_expsym_cmds_F77=
18728export_dynamic_flag_spec_F77=
18729hardcode_direct_F77=no
18730hardcode_libdir_flag_spec_F77=
18731hardcode_libdir_flag_spec_ld_F77=
18732hardcode_libdir_separator_F77=
18733hardcode_minus_L_F77=no
18734hardcode_automatic_F77=no
18735module_cmds_F77=
18736module_expsym_cmds_F77=
18737link_all_deplibs_F77=unknown
18738old_archive_cmds_F77=$old_archive_cmds
18739no_undefined_flag_F77=
18740whole_archive_flag_spec_F77=
18741enable_shared_with_static_runtimes_F77=no
18742
18743# Source file extension for f77 test sources.
18744ac_ext=f
18745
18746# Object file extension for compiled f77 test sources.
18747objext=o
18748objext_F77=$objext
18749
18750# Code to be used in simple compile tests
18751lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18752
18753# Code to be used in simple link tests
18754lt_simple_link_test_code="      program t\n      end\n"
18755
18756# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18757
18758# If no C compiler was specified, use CC.
18759LTCC=${LTCC-"$CC"}
18760
18761# Allow CC to be a program name with arguments.
18762compiler=$CC
18763
18764
18765# Allow CC to be a program name with arguments.
18766lt_save_CC="$CC"
18767CC=${F77-"f77"}
18768compiler=$CC
18769compiler_F77=$CC
18770cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18771
18772echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18773echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18774echo "$as_me:$LINENO: result: $can_build_shared" >&5
18775echo "${ECHO_T}$can_build_shared" >&6
18776
18777echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18778echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18779test "$can_build_shared" = "no" && enable_shared=no
18780
18781# On AIX, shared libraries and static libraries use the same namespace, and
18782# are all built from PIC.
18783case "$host_os" in
18784aix3*)
18785  test "$enable_shared" = yes && enable_static=no
18786  if test -n "$RANLIB"; then
18787    archive_cmds="$archive_cmds~\$RANLIB \$lib"
18788    postinstall_cmds='$RANLIB $lib'
18789  fi
18790  ;;
18791aix4* | aix5*)
18792  test "$enable_shared" = yes && enable_static=no
18793  ;;
18794esac
18795echo "$as_me:$LINENO: result: $enable_shared" >&5
18796echo "${ECHO_T}$enable_shared" >&6
18797
18798echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18799echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18800# Make sure either enable_shared or enable_static is yes.
18801test "$enable_shared" = yes || enable_static=yes
18802echo "$as_me:$LINENO: result: $enable_static" >&5
18803echo "${ECHO_T}$enable_static" >&6
18804
18805test "$ld_shlibs_F77" = no && can_build_shared=no
18806
18807GCC_F77="$G77"
18808LD_F77="$LD"
18809
18810lt_prog_compiler_wl_F77=
18811lt_prog_compiler_pic_F77=
18812lt_prog_compiler_static_F77=
18813
18814echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18815echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18816
18817  if test "$GCC" = yes; then
18818    lt_prog_compiler_wl_F77='-Wl,'
18819    lt_prog_compiler_static_F77='-static'
18820
18821    case $host_os in
18822      aix*)
18823      # All AIX code is PIC.
18824      if test "$host_cpu" = ia64; then
18825	# AIX 5 now supports IA64 processor
18826	lt_prog_compiler_static_F77='-Bstatic'
18827      fi
18828      ;;
18829
18830    amigaos*)
18831      # FIXME: we need at least 68020 code to build shared libraries, but
18832      # adding the `-m68020' flag to GCC prevents building anything better,
18833      # like `-m68040'.
18834      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18835      ;;
18836
18837    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18838      # PIC is the default for these OSes.
18839      ;;
18840
18841    mingw* | pw32* | os2*)
18842      # This hack is so that the source file can tell whether it is being
18843      # built for inclusion in a dll (and should export symbols for example).
18844      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18845      ;;
18846
18847    darwin* | rhapsody*)
18848      # PIC is the default on this platform
18849      # Common symbols not allowed in MH_DYLIB files
18850      lt_prog_compiler_pic_F77='-fno-common'
18851      ;;
18852
18853    msdosdjgpp*)
18854      # Just because we use GCC doesn't mean we suddenly get shared libraries
18855      # on systems that don't support them.
18856      lt_prog_compiler_can_build_shared_F77=no
18857      enable_shared=no
18858      ;;
18859
18860    sysv4*MP*)
18861      if test -d /usr/nec; then
18862	lt_prog_compiler_pic_F77=-Kconform_pic
18863      fi
18864      ;;
18865
18866    hpux*)
18867      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18868      # not for PA HP-UX.
18869      case "$host_cpu" in
18870      hppa*64*|ia64*)
18871	# +Z the default
18872	;;
18873      *)
18874	lt_prog_compiler_pic_F77='-fPIC'
18875	;;
18876      esac
18877      ;;
18878
18879    *)
18880      lt_prog_compiler_pic_F77='-fPIC'
18881      ;;
18882    esac
18883  else
18884    # PORTME Check for flag to pass linker flags through the system compiler.
18885    case $host_os in
18886    aix*)
18887      lt_prog_compiler_wl_F77='-Wl,'
18888      if test "$host_cpu" = ia64; then
18889	# AIX 5 now supports IA64 processor
18890	lt_prog_compiler_static_F77='-Bstatic'
18891      else
18892	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18893      fi
18894      ;;
18895      darwin*)
18896        # PIC is the default on this platform
18897        # Common symbols not allowed in MH_DYLIB files
18898       case "$cc_basename" in
18899         xlc*)
18900         lt_prog_compiler_pic_F77='-qnocommon'
18901         lt_prog_compiler_wl_F77='-Wl,'
18902         ;;
18903       esac
18904       ;;
18905
18906    mingw* | pw32* | os2*)
18907      # This hack is so that the source file can tell whether it is being
18908      # built for inclusion in a dll (and should export symbols for example).
18909      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18910      ;;
18911
18912    hpux9* | hpux10* | hpux11*)
18913      lt_prog_compiler_wl_F77='-Wl,'
18914      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18915      # not for PA HP-UX.
18916      case "$host_cpu" in
18917      hppa*64*|ia64*)
18918	# +Z the default
18919	;;
18920      *)
18921	lt_prog_compiler_pic_F77='+Z'
18922	;;
18923      esac
18924      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18925      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18926      ;;
18927
18928    irix5* | irix6* | nonstopux*)
18929      lt_prog_compiler_wl_F77='-Wl,'
18930      # PIC (with -KPIC) is the default.
18931      lt_prog_compiler_static_F77='-non_shared'
18932      ;;
18933
18934    newsos6)
18935      lt_prog_compiler_pic_F77='-KPIC'
18936      lt_prog_compiler_static_F77='-Bstatic'
18937      ;;
18938
18939    linux*)
18940      case $CC in
18941      icc* | ecc*)
18942	lt_prog_compiler_wl_F77='-Wl,'
18943	lt_prog_compiler_pic_F77='-KPIC'
18944	lt_prog_compiler_static_F77='-static'
18945        ;;
18946      ccc*)
18947        lt_prog_compiler_wl_F77='-Wl,'
18948        # All Alpha code is PIC.
18949        lt_prog_compiler_static_F77='-non_shared'
18950        ;;
18951      esac
18952      ;;
18953
18954    osf3* | osf4* | osf5*)
18955      lt_prog_compiler_wl_F77='-Wl,'
18956      # All OSF/1 code is PIC.
18957      lt_prog_compiler_static_F77='-non_shared'
18958      ;;
18959
18960    sco3.2v5*)
18961      lt_prog_compiler_pic_F77='-Kpic'
18962      lt_prog_compiler_static_F77='-dn'
18963      ;;
18964
18965    solaris*)
18966      lt_prog_compiler_wl_F77='-Wl,'
18967      lt_prog_compiler_pic_F77='-KPIC'
18968      lt_prog_compiler_static_F77='-Bstatic'
18969      ;;
18970
18971    sunos4*)
18972      lt_prog_compiler_wl_F77='-Qoption ld '
18973      lt_prog_compiler_pic_F77='-PIC'
18974      lt_prog_compiler_static_F77='-Bstatic'
18975      ;;
18976
18977    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18978      lt_prog_compiler_wl_F77='-Wl,'
18979      lt_prog_compiler_pic_F77='-KPIC'
18980      lt_prog_compiler_static_F77='-Bstatic'
18981      ;;
18982
18983    sysv4*MP*)
18984      if test -d /usr/nec ;then
18985	lt_prog_compiler_pic_F77='-Kconform_pic'
18986	lt_prog_compiler_static_F77='-Bstatic'
18987      fi
18988      ;;
18989
18990    uts4*)
18991      lt_prog_compiler_pic_F77='-pic'
18992      lt_prog_compiler_static_F77='-Bstatic'
18993      ;;
18994
18995    *)
18996      lt_prog_compiler_can_build_shared_F77=no
18997      ;;
18998    esac
18999  fi
19000
19001echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19002echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19003
19004#
19005# Check to make sure the PIC flag actually works.
19006#
19007if test -n "$lt_prog_compiler_pic_F77"; then
19008
19009echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19010echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19011if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19012  echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014  lt_prog_compiler_pic_works_F77=no
19015  ac_outfile=conftest.$ac_objext
19016   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19017   lt_compiler_flag="$lt_prog_compiler_pic_F77"
19018   # Insert the option either (1) after the last *FLAGS variable, or
19019   # (2) before a word containing "conftest.", or (3) at the end.
19020   # Note that $ac_compile itself does not contain backslashes and begins
19021   # with a dollar sign (not a hyphen), so the echo should work correctly.
19022   # The option is referenced via a variable to avoid confusing sed.
19023   lt_compile=`echo "$ac_compile" | $SED \
19024   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19026   -e 's:$: $lt_compiler_flag:'`
19027   (eval echo "\"\$as_me:19027: $lt_compile\"" >&5)
19028   (eval "$lt_compile" 2>conftest.err)
19029   ac_status=$?
19030   cat conftest.err >&5
19031   echo "$as_me:19031: \$? = $ac_status" >&5
19032   if (exit $ac_status) && test -s "$ac_outfile"; then
19033     # The compiler can only warn and ignore the option if not recognized
19034     # So say no if there are warnings
19035     if test ! -s conftest.err; then
19036       lt_prog_compiler_pic_works_F77=yes
19037     fi
19038   fi
19039   $rm conftest*
19040
19041fi
19042echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19043echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19044
19045if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19046    case $lt_prog_compiler_pic_F77 in
19047     "" | " "*) ;;
19048     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19049     esac
19050else
19051    lt_prog_compiler_pic_F77=
19052     lt_prog_compiler_can_build_shared_F77=no
19053fi
19054
19055fi
19056case "$host_os" in
19057  # For platforms which do not support PIC, -DPIC is meaningless:
19058  *djgpp*)
19059    lt_prog_compiler_pic_F77=
19060    ;;
19061  *)
19062    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19063    ;;
19064esac
19065
19066echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19067echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19068if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19069  echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071  lt_cv_prog_compiler_c_o_F77=no
19072   $rm -r conftest 2>/dev/null
19073   mkdir conftest
19074   cd conftest
19075   mkdir out
19076   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19077
19078   lt_compiler_flag="-o out/conftest2.$ac_objext"
19079   # Insert the option either (1) after the last *FLAGS variable, or
19080   # (2) before a word containing "conftest.", or (3) at the end.
19081   # Note that $ac_compile itself does not contain backslashes and begins
19082   # with a dollar sign (not a hyphen), so the echo should work correctly.
19083   lt_compile=`echo "$ac_compile" | $SED \
19084   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19085   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19086   -e 's:$: $lt_compiler_flag:'`
19087   (eval echo "\"\$as_me:19087: $lt_compile\"" >&5)
19088   (eval "$lt_compile" 2>out/conftest.err)
19089   ac_status=$?
19090   cat out/conftest.err >&5
19091   echo "$as_me:19091: \$? = $ac_status" >&5
19092   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19093   then
19094     # The compiler can only warn and ignore the option if not recognized
19095     # So say no if there are warnings
19096     if test ! -s out/conftest.err; then
19097       lt_cv_prog_compiler_c_o_F77=yes
19098     fi
19099   fi
19100   chmod u+w .
19101   $rm conftest*
19102   # SGI C++ compiler will create directory out/ii_files/ for
19103   # template instantiation
19104   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19105   $rm out/* && rmdir out
19106   cd ..
19107   rmdir conftest
19108   $rm conftest*
19109
19110fi
19111echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19112echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19113
19114
19115hard_links="nottested"
19116if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19117  # do not overwrite the value of need_locks provided by the user
19118  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19119echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19120  hard_links=yes
19121  $rm conftest*
19122  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19123  touch conftest.a
19124  ln conftest.a conftest.b 2>&5 || hard_links=no
19125  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19126  echo "$as_me:$LINENO: result: $hard_links" >&5
19127echo "${ECHO_T}$hard_links" >&6
19128  if test "$hard_links" = no; then
19129    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19130echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19131    need_locks=warn
19132  fi
19133else
19134  need_locks=no
19135fi
19136
19137echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19138echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19139
19140  runpath_var=
19141  allow_undefined_flag_F77=
19142  enable_shared_with_static_runtimes_F77=no
19143  archive_cmds_F77=
19144  archive_expsym_cmds_F77=
19145  old_archive_From_new_cmds_F77=
19146  old_archive_from_expsyms_cmds_F77=
19147  export_dynamic_flag_spec_F77=
19148  whole_archive_flag_spec_F77=
19149  thread_safe_flag_spec_F77=
19150  hardcode_libdir_flag_spec_F77=
19151  hardcode_libdir_flag_spec_ld_F77=
19152  hardcode_libdir_separator_F77=
19153  hardcode_direct_F77=no
19154  hardcode_minus_L_F77=no
19155  hardcode_shlibpath_var_F77=unsupported
19156  link_all_deplibs_F77=unknown
19157  hardcode_automatic_F77=no
19158  module_cmds_F77=
19159  module_expsym_cmds_F77=
19160  always_export_symbols_F77=no
19161  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19162  # include_expsyms should be a list of space-separated symbols to be *always*
19163  # included in the symbol list
19164  include_expsyms_F77=
19165  # exclude_expsyms can be an extended regexp of symbols to exclude
19166  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19167  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19168  # as well as any symbol that contains `d'.
19169  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19170  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19171  # platforms (ab)use it in PIC code, but their linkers get confused if
19172  # the symbol is explicitly referenced.  Since portable code cannot
19173  # rely on this symbol name, it's probably fine to never include it in
19174  # preloaded symbol tables.
19175  extract_expsyms_cmds=
19176
19177  case $host_os in
19178  cygwin* | mingw* | pw32*)
19179    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19180    # When not using gcc, we currently assume that we are using
19181    # Microsoft Visual C++.
19182    if test "$GCC" != yes; then
19183      with_gnu_ld=no
19184    fi
19185    ;;
19186  openbsd*)
19187    with_gnu_ld=no
19188    ;;
19189  esac
19190
19191  ld_shlibs_F77=yes
19192  if test "$with_gnu_ld" = yes; then
19193    # If archive_cmds runs LD, not CC, wlarc should be empty
19194    wlarc='${wl}'
19195
19196    # See if GNU ld supports shared libraries.
19197    case $host_os in
19198    aix3* | aix4* | aix5*)
19199      # On AIX/PPC, the GNU linker is very broken
19200      if test "$host_cpu" != ia64; then
19201	ld_shlibs_F77=no
19202	cat <<EOF 1>&2
19203
19204*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19205*** to be unable to reliably create shared libraries on AIX.
19206*** Therefore, libtool is disabling shared libraries support.  If you
19207*** really care for shared libraries, you may want to modify your PATH
19208*** so that a non-GNU linker is found, and then restart.
19209
19210EOF
19211      fi
19212      ;;
19213
19214    amigaos*)
19215      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)'
19216      hardcode_libdir_flag_spec_F77='-L$libdir'
19217      hardcode_minus_L_F77=yes
19218
19219      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19220      # that the semantics of dynamic libraries on AmigaOS, at least up
19221      # to version 4, is to share data among multiple programs linked
19222      # with the same dynamic library.  Since this doesn't match the
19223      # behavior of shared libraries on other platforms, we can't use
19224      # them.
19225      ld_shlibs_F77=no
19226      ;;
19227
19228    beos*)
19229      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19230	allow_undefined_flag_F77=unsupported
19231	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19232	# support --undefined.  This deserves some investigation.  FIXME
19233	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19234      else
19235	ld_shlibs_F77=no
19236      fi
19237      ;;
19238
19239    cygwin* | mingw* | pw32*)
19240      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19241      # as there is no search path for DLLs.
19242      hardcode_libdir_flag_spec_F77='-L$libdir'
19243      allow_undefined_flag_F77=unsupported
19244      always_export_symbols_F77=no
19245      enable_shared_with_static_runtimes_F77=yes
19246      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19247
19248      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19249        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19250	# If the export-symbols file already is a .def file (1st line
19251	# is EXPORTS), use it as is; otherwise, prepend...
19252	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19253	  cp $export_symbols $output_objdir/$soname.def;
19254	else
19255	  echo EXPORTS > $output_objdir/$soname.def;
19256	  cat $export_symbols >> $output_objdir/$soname.def;
19257	fi~
19258	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19259      else
19260	ld_shlibs=no
19261      fi
19262      ;;
19263
19264    netbsd*)
19265      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19266	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19267	wlarc=
19268      else
19269	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19271      fi
19272      ;;
19273
19274    solaris* | sysv5*)
19275      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19276	ld_shlibs_F77=no
19277	cat <<EOF 1>&2
19278
19279*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19280*** create shared libraries on Solaris systems.  Therefore, libtool
19281*** is disabling shared libraries support.  We urge you to upgrade GNU
19282*** binutils to release 2.9.1 or newer.  Another option is to modify
19283*** your PATH or compiler configuration so that the native linker is
19284*** used, and then restart.
19285
19286EOF
19287      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19288	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19289	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19290      else
19291	ld_shlibs_F77=no
19292      fi
19293      ;;
19294
19295    sunos4*)
19296      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19297      wlarc=
19298      hardcode_direct_F77=yes
19299      hardcode_shlibpath_var_F77=no
19300      ;;
19301
19302  linux*)
19303    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19304        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305	archive_cmds_F77="$tmp_archive_cmds"
19306      supports_anon_versioning=no
19307      case `$LD -v 2>/dev/null` in
19308        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19309        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19310        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19311        *\ 2.11.*) ;; # other 2.11 versions
19312        *) supports_anon_versioning=yes ;;
19313      esac
19314      if test $supports_anon_versioning = yes; then
19315        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19316cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19317$echo "local: *; };" >> $output_objdir/$libname.ver~
19318        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19319      else
19320        archive_expsym_cmds_F77="$tmp_archive_cmds"
19321      fi
19322    else
19323      ld_shlibs_F77=no
19324    fi
19325    ;;
19326
19327    *)
19328      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19329	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19330	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19331      else
19332	ld_shlibs_F77=no
19333      fi
19334      ;;
19335    esac
19336
19337    if test "$ld_shlibs_F77" = yes; then
19338      runpath_var=LD_RUN_PATH
19339      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19340      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19341      # ancient GNU ld didn't support --whole-archive et. al.
19342      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19343 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19344      else
19345  	whole_archive_flag_spec_F77=
19346      fi
19347    fi
19348  else
19349    # PORTME fill in a description of your system's linker (not GNU ld)
19350    case $host_os in
19351    aix3*)
19352      allow_undefined_flag_F77=unsupported
19353      always_export_symbols_F77=yes
19354      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'
19355      # Note: this linker hardcodes the directories in LIBPATH if there
19356      # are no directories specified by -L.
19357      hardcode_minus_L_F77=yes
19358      if test "$GCC" = yes && test -z "$link_static_flag"; then
19359	# Neither direct hardcoding nor static linking is supported with a
19360	# broken collect2.
19361	hardcode_direct_F77=unsupported
19362      fi
19363      ;;
19364
19365    aix4* | aix5*)
19366      if test "$host_cpu" = ia64; then
19367	# On IA64, the linker does run time linking by default, so we don't
19368	# have to do anything special.
19369	aix_use_runtimelinking=no
19370	exp_sym_flag='-Bexport'
19371	no_entry_flag=""
19372      else
19373	# If we're using GNU nm, then we don't want the "-C" option.
19374	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19375	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19376	  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'
19377	else
19378	  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'
19379	fi
19380	aix_use_runtimelinking=no
19381
19382	# Test if we are trying to use run time linking or normal
19383	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19384	# need to do runtime linking.
19385	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19386	  for ld_flag in $LDFLAGS; do
19387  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19388  	    aix_use_runtimelinking=yes
19389  	    break
19390  	  fi
19391	  done
19392	esac
19393
19394	exp_sym_flag='-bexport'
19395	no_entry_flag='-bnoentry'
19396      fi
19397
19398      # When large executables or shared objects are built, AIX ld can
19399      # have problems creating the table of contents.  If linking a library
19400      # or program results in "error TOC overflow" add -mminimal-toc to
19401      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19402      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19403
19404      archive_cmds_F77=''
19405      hardcode_direct_F77=yes
19406      hardcode_libdir_separator_F77=':'
19407      link_all_deplibs_F77=yes
19408
19409      if test "$GCC" = yes; then
19410	case $host_os in aix4.012|aix4.012.*)
19411	# We only want to do this on AIX 4.2 and lower, the check
19412	# below for broken collect2 doesn't work under 4.3+
19413	  collect2name=`${CC} -print-prog-name=collect2`
19414	  if test -f "$collect2name" && \
19415  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19416	  then
19417  	  # We have reworked collect2
19418  	  hardcode_direct_F77=yes
19419	  else
19420  	  # We have old collect2
19421  	  hardcode_direct_F77=unsupported
19422  	  # It fails to find uninstalled libraries when the uninstalled
19423  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19424  	  # to unsupported forces relinking
19425  	  hardcode_minus_L_F77=yes
19426  	  hardcode_libdir_flag_spec_F77='-L$libdir'
19427  	  hardcode_libdir_separator_F77=
19428	  fi
19429	esac
19430	shared_flag='-shared'
19431      else
19432	# not using gcc
19433	if test "$host_cpu" = ia64; then
19434  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19435  	# chokes on -Wl,-G. The following line is correct:
19436	  shared_flag='-G'
19437	else
19438  	if test "$aix_use_runtimelinking" = yes; then
19439	    shared_flag='${wl}-G'
19440	  else
19441	    shared_flag='${wl}-bM:SRE'
19442  	fi
19443	fi
19444      fi
19445
19446      # It seems that -bexpall does not export symbols beginning with
19447      # underscore (_), so it is better to generate a list of symbols to export.
19448      always_export_symbols_F77=yes
19449      if test "$aix_use_runtimelinking" = yes; then
19450	# Warning - without using the other runtime loading flags (-brtl),
19451	# -berok will link without error, but may produce a broken library.
19452	allow_undefined_flag_F77='-berok'
19453       # Determine the default libpath from the value encoded in an empty executable.
19454       cat >conftest.$ac_ext <<_ACEOF
19455      program main
19456
19457      end
19458_ACEOF
19459rm -f conftest.$ac_objext conftest$ac_exeext
19460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461  (eval $ac_link) 2>conftest.er1
19462  ac_status=$?
19463  grep -v '^ *+' conftest.er1 >conftest.err
19464  rm -f conftest.er1
19465  cat conftest.err >&5
19466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467  (exit $ac_status); } &&
19468	 { ac_try='test -z "$ac_f77_werror_flag"
19469			 || test ! -s conftest.err'
19470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471  (eval $ac_try) 2>&5
19472  ac_status=$?
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); }; } &&
19475	 { ac_try='test -s conftest$ac_exeext'
19476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477  (eval $ac_try) 2>&5
19478  ac_status=$?
19479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480  (exit $ac_status); }; }; then
19481
19482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19483}'`
19484# Check for a 64-bit object if we didn't find anything.
19485if 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; }
19486}'`; fi
19487else
19488  echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491fi
19492rm -f conftest.err conftest.$ac_objext \
19493      conftest$ac_exeext conftest.$ac_ext
19494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19495
19496       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19497	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"
19498       else
19499	if test "$host_cpu" = ia64; then
19500	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19501	  allow_undefined_flag_F77="-z nodefs"
19502	  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"
19503	else
19504	 # Determine the default libpath from the value encoded in an empty executable.
19505	 cat >conftest.$ac_ext <<_ACEOF
19506      program main
19507
19508      end
19509_ACEOF
19510rm -f conftest.$ac_objext conftest$ac_exeext
19511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19512  (eval $ac_link) 2>conftest.er1
19513  ac_status=$?
19514  grep -v '^ *+' conftest.er1 >conftest.err
19515  rm -f conftest.er1
19516  cat conftest.err >&5
19517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518  (exit $ac_status); } &&
19519	 { ac_try='test -z "$ac_f77_werror_flag"
19520			 || test ! -s conftest.err'
19521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522  (eval $ac_try) 2>&5
19523  ac_status=$?
19524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525  (exit $ac_status); }; } &&
19526	 { ac_try='test -s conftest$ac_exeext'
19527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528  (eval $ac_try) 2>&5
19529  ac_status=$?
19530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531  (exit $ac_status); }; }; then
19532
19533aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19534}'`
19535# Check for a 64-bit object if we didn't find anything.
19536if 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; }
19537}'`; fi
19538else
19539  echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542fi
19543rm -f conftest.err conftest.$ac_objext \
19544      conftest$ac_exeext conftest.$ac_ext
19545if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19546
19547	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19548	  # Warning - without using the other run time loading flags,
19549	  # -berok will link without error, but may produce a broken library.
19550	  no_undefined_flag_F77=' ${wl}-bernotok'
19551	  allow_undefined_flag_F77=' ${wl}-berok'
19552	  # -bexpall does not export symbols beginning with underscore (_)
19553	  always_export_symbols_F77=yes
19554	  # Exported symbols can be pulled into shared objects from archives
19555	  whole_archive_flag_spec_F77=' '
19556	  archive_cmds_need_lc_F77=yes
19557	  # This is similar to how AIX traditionally builds it's shared libraries.
19558	  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'
19559	fi
19560      fi
19561      ;;
19562
19563    amigaos*)
19564      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)'
19565      hardcode_libdir_flag_spec_F77='-L$libdir'
19566      hardcode_minus_L_F77=yes
19567      # see comment about different semantics on the GNU ld section
19568      ld_shlibs_F77=no
19569      ;;
19570
19571    bsdi[45]*)
19572      export_dynamic_flag_spec_F77=-rdynamic
19573      ;;
19574
19575    cygwin* | mingw* | pw32*)
19576      # When not using gcc, we currently assume that we are using
19577      # Microsoft Visual C++.
19578      # hardcode_libdir_flag_spec is actually meaningless, as there is
19579      # no search path for DLLs.
19580      hardcode_libdir_flag_spec_F77=' '
19581      allow_undefined_flag_F77=unsupported
19582      # Tell ltmain to make .lib files, not .a files.
19583      libext=lib
19584      # Tell ltmain to make .dll files, not .so files.
19585      shrext_cmds=".dll"
19586      # FIXME: Setting linknames here is a bad hack.
19587      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19588      # The linker will automatically build a .lib file if we build a DLL.
19589      old_archive_From_new_cmds_F77='true'
19590      # FIXME: Should let the user specify the lib program.
19591      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19592      fix_srcfile_path='`cygpath -w "$srcfile"`'
19593      enable_shared_with_static_runtimes_F77=yes
19594      ;;
19595
19596    darwin* | rhapsody*)
19597      case "$host_os" in
19598        rhapsody* | darwin1.[012])
19599         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19600         ;;
19601       *) # Darwin 1.3 on
19602         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19603           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19604         else
19605           case ${MACOSX_DEPLOYMENT_TARGET} in
19606             10.[012])
19607               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19608               ;;
19609             10.*)
19610               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19611               ;;
19612           esac
19613         fi
19614         ;;
19615      esac
19616      archive_cmds_need_lc_F77=no
19617      hardcode_direct_F77=no
19618      hardcode_automatic_F77=yes
19619      hardcode_shlibpath_var_F77=unsupported
19620      whole_archive_flag_spec_F77=''
19621      link_all_deplibs_F77=yes
19622    if test "$GCC" = yes ; then
19623    	output_verbose_link_cmd='echo'
19624        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19625      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19626      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19627      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}'
19628      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}'
19629    else
19630      case "$cc_basename" in
19631        xlc*)
19632         output_verbose_link_cmd='echo'
19633         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19634         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19635          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19636         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}'
19637          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}'
19638          ;;
19639       *)
19640         ld_shlibs_F77=no
19641          ;;
19642      esac
19643    fi
19644      ;;
19645
19646    dgux*)
19647      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19648      hardcode_libdir_flag_spec_F77='-L$libdir'
19649      hardcode_shlibpath_var_F77=no
19650      ;;
19651
19652    freebsd1*)
19653      ld_shlibs_F77=no
19654      ;;
19655
19656    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19657    # support.  Future versions do this automatically, but an explicit c++rt0.o
19658    # does not break anything, and helps significantly (at the cost of a little
19659    # extra space).
19660    freebsd2.2*)
19661      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19662      hardcode_libdir_flag_spec_F77='-R$libdir'
19663      hardcode_direct_F77=yes
19664      hardcode_shlibpath_var_F77=no
19665      ;;
19666
19667    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19668    freebsd2*)
19669      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19670      hardcode_direct_F77=yes
19671      hardcode_minus_L_F77=yes
19672      hardcode_shlibpath_var_F77=no
19673      ;;
19674
19675    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19676    freebsd* | kfreebsd*-gnu)
19677      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19678      hardcode_libdir_flag_spec_F77='-R$libdir'
19679      hardcode_direct_F77=yes
19680      hardcode_shlibpath_var_F77=no
19681      ;;
19682
19683    hpux9*)
19684      if test "$GCC" = yes; then
19685	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'
19686      else
19687	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'
19688      fi
19689      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19690      hardcode_libdir_separator_F77=:
19691      hardcode_direct_F77=yes
19692
19693      # hardcode_minus_L: Not really in the search PATH,
19694      # but as the default location of the library.
19695      hardcode_minus_L_F77=yes
19696      export_dynamic_flag_spec_F77='${wl}-E'
19697      ;;
19698
19699    hpux10* | hpux11*)
19700      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19701	case "$host_cpu" in
19702	hppa*64*|ia64*)
19703	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19704	  ;;
19705	*)
19706	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19707	  ;;
19708	esac
19709      else
19710	case "$host_cpu" in
19711	hppa*64*|ia64*)
19712	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19713	  ;;
19714	*)
19715	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19716	  ;;
19717	esac
19718      fi
19719      if test "$with_gnu_ld" = no; then
19720	case "$host_cpu" in
19721	hppa*64*)
19722	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19723	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19724	  hardcode_libdir_separator_F77=:
19725	  hardcode_direct_F77=no
19726	  hardcode_shlibpath_var_F77=no
19727	  ;;
19728	ia64*)
19729	  hardcode_libdir_flag_spec_F77='-L$libdir'
19730	  hardcode_direct_F77=no
19731	  hardcode_shlibpath_var_F77=no
19732
19733	  # hardcode_minus_L: Not really in the search PATH,
19734	  # but as the default location of the library.
19735	  hardcode_minus_L_F77=yes
19736	  ;;
19737	*)
19738	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19739	  hardcode_libdir_separator_F77=:
19740	  hardcode_direct_F77=yes
19741	  export_dynamic_flag_spec_F77='${wl}-E'
19742
19743	  # hardcode_minus_L: Not really in the search PATH,
19744	  # but as the default location of the library.
19745	  hardcode_minus_L_F77=yes
19746	  ;;
19747	esac
19748      fi
19749      ;;
19750
19751    irix5* | irix6* | nonstopux*)
19752      if test "$GCC" = yes; then
19753	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'
19754      else
19755	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'
19756	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19757      fi
19758      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19759      hardcode_libdir_separator_F77=:
19760      link_all_deplibs_F77=yes
19761      ;;
19762
19763    netbsd*)
19764      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19765	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19766      else
19767	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19768      fi
19769      hardcode_libdir_flag_spec_F77='-R$libdir'
19770      hardcode_direct_F77=yes
19771      hardcode_shlibpath_var_F77=no
19772      ;;
19773
19774    newsos6)
19775      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19776      hardcode_direct_F77=yes
19777      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19778      hardcode_libdir_separator_F77=:
19779      hardcode_shlibpath_var_F77=no
19780      ;;
19781
19782    openbsd*)
19783      hardcode_direct_F77=yes
19784      hardcode_shlibpath_var_F77=no
19785      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19786	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19787	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19788	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19789	export_dynamic_flag_spec_F77='${wl}-E'
19790      else
19791       case $host_os in
19792	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19793	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19794	   hardcode_libdir_flag_spec_F77='-R$libdir'
19795	   ;;
19796	 *)
19797	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19798	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19799	   ;;
19800       esac
19801      fi
19802      ;;
19803
19804    os2*)
19805      hardcode_libdir_flag_spec_F77='-L$libdir'
19806      hardcode_minus_L_F77=yes
19807      allow_undefined_flag_F77=unsupported
19808      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'
19809      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19810      ;;
19811
19812    osf3*)
19813      if test "$GCC" = yes; then
19814	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19815	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'
19816      else
19817	allow_undefined_flag_F77=' -expect_unresolved \*'
19818	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'
19819      fi
19820      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19821      hardcode_libdir_separator_F77=:
19822      ;;
19823
19824    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19825      if test "$GCC" = yes; then
19826	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19827	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'
19828	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19829      else
19830	allow_undefined_flag_F77=' -expect_unresolved \*'
19831	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'
19832	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~
19833	$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'
19834
19835	# Both c and cxx compiler support -rpath directly
19836	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19837      fi
19838      hardcode_libdir_separator_F77=:
19839      ;;
19840
19841    sco3.2v5*)
19842      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19843      hardcode_shlibpath_var_F77=no
19844      export_dynamic_flag_spec_F77='${wl}-Bexport'
19845      runpath_var=LD_RUN_PATH
19846      hardcode_runpath_var=yes
19847      ;;
19848
19849    solaris*)
19850      no_undefined_flag_F77=' -z text'
19851      if test "$GCC" = yes; then
19852	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19853	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19854	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19855      else
19856	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19857	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19858  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19859      fi
19860      hardcode_libdir_flag_spec_F77='-R$libdir'
19861      hardcode_shlibpath_var_F77=no
19862      case $host_os in
19863      solaris2.[0-5] | solaris2.[0-5].*) ;;
19864      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19865	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19866      esac
19867      link_all_deplibs_F77=yes
19868      ;;
19869
19870    sunos4*)
19871      if test "x$host_vendor" = xsequent; then
19872	# Use $CC to link under sequent, because it throws in some extra .o
19873	# files that make .init and .fini sections work.
19874	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19875      else
19876	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19877      fi
19878      hardcode_libdir_flag_spec_F77='-L$libdir'
19879      hardcode_direct_F77=yes
19880      hardcode_minus_L_F77=yes
19881      hardcode_shlibpath_var_F77=no
19882      ;;
19883
19884    sysv4)
19885      case $host_vendor in
19886	sni)
19887	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19888	  hardcode_direct_F77=yes # is this really true???
19889	;;
19890	siemens)
19891	  ## LD is ld it makes a PLAMLIB
19892	  ## CC just makes a GrossModule.
19893	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19894	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19895	  hardcode_direct_F77=no
19896        ;;
19897	motorola)
19898	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19899	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19900	;;
19901      esac
19902      runpath_var='LD_RUN_PATH'
19903      hardcode_shlibpath_var_F77=no
19904      ;;
19905
19906    sysv4.3*)
19907      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908      hardcode_shlibpath_var_F77=no
19909      export_dynamic_flag_spec_F77='-Bexport'
19910      ;;
19911
19912    sysv4*MP*)
19913      if test -d /usr/nec; then
19914	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19915	hardcode_shlibpath_var_F77=no
19916	runpath_var=LD_RUN_PATH
19917	hardcode_runpath_var=yes
19918	ld_shlibs_F77=yes
19919      fi
19920      ;;
19921
19922    sysv4.2uw2*)
19923      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19924      hardcode_direct_F77=yes
19925      hardcode_minus_L_F77=no
19926      hardcode_shlibpath_var_F77=no
19927      hardcode_runpath_var=yes
19928      runpath_var=LD_RUN_PATH
19929      ;;
19930
19931   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19932      no_undefined_flag_F77='${wl}-z ${wl}text'
19933      if test "$GCC" = yes; then
19934	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19935      else
19936	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19937      fi
19938      runpath_var='LD_RUN_PATH'
19939      hardcode_shlibpath_var_F77=no
19940      ;;
19941
19942    sysv5*)
19943      no_undefined_flag_F77=' -z text'
19944      # $CC -shared without GNU ld will not create a library from C++
19945      # object files and a static libstdc++, better avoid it by now
19946      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19947      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19948  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19949      hardcode_libdir_flag_spec_F77=
19950      hardcode_shlibpath_var_F77=no
19951      runpath_var='LD_RUN_PATH'
19952      ;;
19953
19954    uts4*)
19955      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19956      hardcode_libdir_flag_spec_F77='-L$libdir'
19957      hardcode_shlibpath_var_F77=no
19958      ;;
19959
19960    *)
19961      ld_shlibs_F77=no
19962      ;;
19963    esac
19964  fi
19965
19966echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19967echo "${ECHO_T}$ld_shlibs_F77" >&6
19968test "$ld_shlibs_F77" = no && can_build_shared=no
19969
19970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19971if test "$GCC" = yes; then
19972  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19973fi
19974
19975#
19976# Do we need to explicitly link libc?
19977#
19978case "x$archive_cmds_need_lc_F77" in
19979x|xyes)
19980  # Assume -lc should be added
19981  archive_cmds_need_lc_F77=yes
19982
19983  if test "$enable_shared" = yes && test "$GCC" = yes; then
19984    case $archive_cmds_F77 in
19985    *'~'*)
19986      # FIXME: we may have to deal with multi-command sequences.
19987      ;;
19988    '$CC '*)
19989      # Test whether the compiler implicitly links with -lc since on some
19990      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991      # to ld, don't add -lc before -lgcc.
19992      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19994      $rm conftest*
19995      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19996
19997      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998  (eval $ac_compile) 2>&5
19999  ac_status=$?
20000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001  (exit $ac_status); } 2>conftest.err; then
20002        soname=conftest
20003        lib=conftest
20004        libobjs=conftest.$ac_objext
20005        deplibs=
20006        wl=$lt_prog_compiler_wl_F77
20007        compiler_flags=-v
20008        linker_flags=-v
20009        verstring=
20010        output_objdir=.
20011        libname=conftest
20012        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20013        allow_undefined_flag_F77=
20014        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20015  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20016  ac_status=$?
20017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018  (exit $ac_status); }
20019        then
20020	  archive_cmds_need_lc_F77=no
20021        else
20022	  archive_cmds_need_lc_F77=yes
20023        fi
20024        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20025      else
20026        cat conftest.err 1>&5
20027      fi
20028      $rm conftest*
20029      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20030echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20031      ;;
20032    esac
20033  fi
20034  ;;
20035esac
20036
20037echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20038echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20039library_names_spec=
20040libname_spec='lib$name'
20041soname_spec=
20042shrext_cmds=".so"
20043postinstall_cmds=
20044postuninstall_cmds=
20045finish_cmds=
20046finish_eval=
20047shlibpath_var=
20048shlibpath_overrides_runpath=unknown
20049version_type=none
20050dynamic_linker="$host_os ld.so"
20051sys_lib_dlsearch_path_spec="/lib /usr/lib"
20052if test "$GCC" = yes; then
20053  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20054  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20055    # if the path contains ";" then we assume it to be the separator
20056    # otherwise default to the standard path separator (i.e. ":") - it is
20057    # assumed that no part of a normal pathname contains ";" but that should
20058    # okay in the real world where ";" in dirpaths is itself problematic.
20059    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20060  else
20061    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20062  fi
20063else
20064  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20065fi
20066need_lib_prefix=unknown
20067hardcode_into_libs=no
20068
20069# when you set need_version to no, make sure it does not cause -set_version
20070# flags to be left without arguments
20071need_version=unknown
20072
20073case $host_os in
20074aix3*)
20075  version_type=linux
20076  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20077  shlibpath_var=LIBPATH
20078
20079  # AIX 3 has no versioning support, so we append a major version to the name.
20080  soname_spec='${libname}${release}${shared_ext}$major'
20081  ;;
20082
20083aix4* | aix5*)
20084  version_type=linux
20085  need_lib_prefix=no
20086  need_version=no
20087  hardcode_into_libs=yes
20088  if test "$host_cpu" = ia64; then
20089    # AIX 5 supports IA64
20090    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20091    shlibpath_var=LD_LIBRARY_PATH
20092  else
20093    # With GCC up to 2.95.x, collect2 would create an import file
20094    # for dependence libraries.  The import file would start with
20095    # the line `#! .'.  This would cause the generated library to
20096    # depend on `.', always an invalid library.  This was fixed in
20097    # development snapshots of GCC prior to 3.0.
20098    case $host_os in
20099      aix4 | aix4.[01] | aix4.[01].*)
20100      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20101	   echo ' yes '
20102	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20103	:
20104      else
20105	can_build_shared=no
20106      fi
20107      ;;
20108    esac
20109    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20110    # soname into executable. Probably we can add versioning support to
20111    # collect2, so additional links can be useful in future.
20112    if test "$aix_use_runtimelinking" = yes; then
20113      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20114      # instead of lib<name>.a to let people know that these are not
20115      # typical AIX shared libraries.
20116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20117    else
20118      # We preserve .a as extension for shared libraries through AIX4.2
20119      # and later when we are not doing run time linking.
20120      library_names_spec='${libname}${release}.a $libname.a'
20121      soname_spec='${libname}${release}${shared_ext}$major'
20122    fi
20123    shlibpath_var=LIBPATH
20124  fi
20125  ;;
20126
20127amigaos*)
20128  library_names_spec='$libname.ixlibrary $libname.a'
20129  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20130  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'
20131  ;;
20132
20133beos*)
20134  library_names_spec='${libname}${shared_ext}'
20135  dynamic_linker="$host_os ld.so"
20136  shlibpath_var=LIBRARY_PATH
20137  ;;
20138
20139bsdi[45]*)
20140  version_type=linux
20141  need_version=no
20142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143  soname_spec='${libname}${release}${shared_ext}$major'
20144  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20145  shlibpath_var=LD_LIBRARY_PATH
20146  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20147  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20148  # the default ld.so.conf also contains /usr/contrib/lib and
20149  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20150  # libtool to hard-code these into programs
20151  ;;
20152
20153cygwin* | mingw* | pw32*)
20154  version_type=windows
20155  shrext_cmds=".dll"
20156  need_version=no
20157  need_lib_prefix=no
20158
20159  case $GCC,$host_os in
20160  yes,cygwin* | yes,mingw* | yes,pw32*)
20161    library_names_spec='$libname.dll.a'
20162    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20163    postinstall_cmds='base_file=`basename \${file}`~
20164      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20165      dldir=$destdir/`dirname \$dlpath`~
20166      test -d \$dldir || mkdir -p \$dldir~
20167      $install_prog $dir/$dlname \$dldir/$dlname'
20168    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20169      dlpath=$dir/\$dldll~
20170       $rm \$dlpath'
20171    shlibpath_overrides_runpath=yes
20172
20173    case $host_os in
20174    cygwin*)
20175      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20176      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20177      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20178      ;;
20179    mingw*)
20180      # MinGW DLLs use traditional 'lib' prefix
20181      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20182      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20183      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20184        # It is most probably a Windows format PATH printed by
20185        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20186        # path with ; separators, and with drive letters. We can handle the
20187        # drive letters (cygwin fileutils understands them), so leave them,
20188        # especially as we might pass files found there to a mingw objdump,
20189        # which wouldn't understand a cygwinified path. Ahh.
20190        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20191      else
20192        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20193      fi
20194      ;;
20195    pw32*)
20196      # pw32 DLLs use 'pw' prefix rather than 'lib'
20197      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20198      ;;
20199    esac
20200    ;;
20201
20202  *)
20203    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20204    ;;
20205  esac
20206  dynamic_linker='Win32 ld.exe'
20207  # FIXME: first we should search . and the directory the executable is in
20208  shlibpath_var=PATH
20209  ;;
20210
20211darwin* | rhapsody*)
20212  dynamic_linker="$host_os dyld"
20213  version_type=darwin
20214  need_lib_prefix=no
20215  need_version=no
20216  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20217  soname_spec='${libname}${release}${major}$shared_ext'
20218  shlibpath_overrides_runpath=yes
20219  shlibpath_var=DYLD_LIBRARY_PATH
20220  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20221  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20222  if test "$GCC" = yes; then
20223    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"`
20224  else
20225    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20226  fi
20227  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20228  ;;
20229
20230dgux*)
20231  version_type=linux
20232  need_lib_prefix=no
20233  need_version=no
20234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20235  soname_spec='${libname}${release}${shared_ext}$major'
20236  shlibpath_var=LD_LIBRARY_PATH
20237  ;;
20238
20239freebsd1*)
20240  dynamic_linker=no
20241  ;;
20242
20243kfreebsd*-gnu)
20244  version_type=linux
20245  need_lib_prefix=no
20246  need_version=no
20247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20248  soname_spec='${libname}${release}${shared_ext}$major'
20249  shlibpath_var=LD_LIBRARY_PATH
20250  shlibpath_overrides_runpath=no
20251  hardcode_into_libs=yes
20252  dynamic_linker='GNU ld.so'
20253  ;;
20254
20255freebsd*)
20256  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20257  version_type=freebsd-$objformat
20258  case $version_type in
20259    freebsd-elf*)
20260      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20261      need_version=no
20262      need_lib_prefix=no
20263      ;;
20264    freebsd-*)
20265      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20266      need_version=yes
20267      ;;
20268  esac
20269  shlibpath_var=LD_LIBRARY_PATH
20270  case $host_os in
20271  freebsd2*)
20272    shlibpath_overrides_runpath=yes
20273    ;;
20274  freebsd3.01* | freebsdelf3.01*)
20275    shlibpath_overrides_runpath=yes
20276    hardcode_into_libs=yes
20277    ;;
20278  *) # from 3.2 on
20279    shlibpath_overrides_runpath=no
20280    hardcode_into_libs=yes
20281    ;;
20282  esac
20283  ;;
20284
20285gnu*)
20286  version_type=linux
20287  need_lib_prefix=no
20288  need_version=no
20289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20290  soname_spec='${libname}${release}${shared_ext}$major'
20291  shlibpath_var=LD_LIBRARY_PATH
20292  hardcode_into_libs=yes
20293  ;;
20294
20295hpux9* | hpux10* | hpux11*)
20296  # Give a soname corresponding to the major version so that dld.sl refuses to
20297  # link against other versions.
20298  version_type=sunos
20299  need_lib_prefix=no
20300  need_version=no
20301  case "$host_cpu" in
20302  ia64*)
20303    shrext_cmds='.so'
20304    hardcode_into_libs=yes
20305    dynamic_linker="$host_os dld.so"
20306    shlibpath_var=LD_LIBRARY_PATH
20307    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20308    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309    soname_spec='${libname}${release}${shared_ext}$major'
20310    if test "X$HPUX_IA64_MODE" = X32; then
20311      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20312    else
20313      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20314    fi
20315    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20316    ;;
20317   hppa*64*)
20318     shrext_cmds='.sl'
20319     hardcode_into_libs=yes
20320     dynamic_linker="$host_os dld.sl"
20321     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20322     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20324     soname_spec='${libname}${release}${shared_ext}$major'
20325     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20326     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20327     ;;
20328   *)
20329    shrext_cmds='.sl'
20330    dynamic_linker="$host_os dld.sl"
20331    shlibpath_var=SHLIB_PATH
20332    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334    soname_spec='${libname}${release}${shared_ext}$major'
20335    ;;
20336  esac
20337  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20338  postinstall_cmds='chmod 555 $lib'
20339  ;;
20340
20341irix5* | irix6* | nonstopux*)
20342  case $host_os in
20343    nonstopux*) version_type=nonstopux ;;
20344    *)
20345	if test "$lt_cv_prog_gnu_ld" = yes; then
20346		version_type=linux
20347	else
20348		version_type=irix
20349	fi ;;
20350  esac
20351  need_lib_prefix=no
20352  need_version=no
20353  soname_spec='${libname}${release}${shared_ext}$major'
20354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20355  case $host_os in
20356  irix5* | nonstopux*)
20357    libsuff= shlibsuff=
20358    ;;
20359  *)
20360    case $LD in # libtool.m4 will add one of these switches to LD
20361    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20362      libsuff= shlibsuff= libmagic=32-bit;;
20363    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20364      libsuff=32 shlibsuff=N32 libmagic=N32;;
20365    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20366      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20367    *) libsuff= shlibsuff= libmagic=never-match;;
20368    esac
20369    ;;
20370  esac
20371  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20372  shlibpath_overrides_runpath=no
20373  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20374  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20375  hardcode_into_libs=yes
20376  ;;
20377
20378# No shared lib support for Linux oldld, aout, or coff.
20379linux*oldld* | linux*aout* | linux*coff*)
20380  dynamic_linker=no
20381  ;;
20382
20383# This must be Linux ELF.
20384linux*)
20385  version_type=linux
20386  need_lib_prefix=no
20387  need_version=no
20388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389  soname_spec='${libname}${release}${shared_ext}$major'
20390  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20391  shlibpath_var=LD_LIBRARY_PATH
20392  shlibpath_overrides_runpath=no
20393  # This implies no fast_install, which is unacceptable.
20394  # Some rework will be needed to allow for fast_install
20395  # before this can be enabled.
20396  hardcode_into_libs=yes
20397
20398  # Append ld.so.conf contents to the search path
20399  if test -f /etc/ld.so.conf; then
20400    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20401    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20402  fi
20403
20404  # We used to test for /lib/ld.so.1 and disable shared libraries on
20405  # powerpc, because MkLinux only supported shared libraries with the
20406  # GNU dynamic linker.  Since this was broken with cross compilers,
20407  # most powerpc-linux boxes support dynamic linking these days and
20408  # people can always --disable-shared, the test was removed, and we
20409  # assume the GNU/Linux dynamic linker is in use.
20410  dynamic_linker='GNU/Linux ld.so'
20411  ;;
20412
20413knetbsd*-gnu)
20414  version_type=linux
20415  need_lib_prefix=no
20416  need_version=no
20417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20418  soname_spec='${libname}${release}${shared_ext}$major'
20419  shlibpath_var=LD_LIBRARY_PATH
20420  shlibpath_overrides_runpath=no
20421  hardcode_into_libs=yes
20422  dynamic_linker='GNU ld.so'
20423  ;;
20424
20425netbsd*)
20426  version_type=sunos
20427  need_lib_prefix=no
20428  need_version=no
20429  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20430    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20431    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20432    dynamic_linker='NetBSD (a.out) ld.so'
20433  else
20434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20435    soname_spec='${libname}${release}${shared_ext}$major'
20436    dynamic_linker='NetBSD ld.elf_so'
20437  fi
20438  shlibpath_var=LD_LIBRARY_PATH
20439  shlibpath_overrides_runpath=yes
20440  hardcode_into_libs=yes
20441  ;;
20442
20443newsos6)
20444  version_type=linux
20445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20446  shlibpath_var=LD_LIBRARY_PATH
20447  shlibpath_overrides_runpath=yes
20448  ;;
20449
20450nto-qnx*)
20451  version_type=linux
20452  need_lib_prefix=no
20453  need_version=no
20454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455  soname_spec='${libname}${release}${shared_ext}$major'
20456  shlibpath_var=LD_LIBRARY_PATH
20457  shlibpath_overrides_runpath=yes
20458  ;;
20459
20460openbsd*)
20461  version_type=sunos
20462  need_lib_prefix=no
20463  need_version=no
20464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466  shlibpath_var=LD_LIBRARY_PATH
20467  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20468    case $host_os in
20469      openbsd2.[89] | openbsd2.[89].*)
20470	shlibpath_overrides_runpath=no
20471	;;
20472      *)
20473	shlibpath_overrides_runpath=yes
20474	;;
20475      esac
20476  else
20477    shlibpath_overrides_runpath=yes
20478  fi
20479  ;;
20480
20481os2*)
20482  libname_spec='$name'
20483  shrext_cmds=".dll"
20484  need_lib_prefix=no
20485  library_names_spec='$libname${shared_ext} $libname.a'
20486  dynamic_linker='OS/2 ld.exe'
20487  shlibpath_var=LIBPATH
20488  ;;
20489
20490osf3* | osf4* | osf5*)
20491  version_type=osf
20492  need_lib_prefix=no
20493  need_version=no
20494  soname_spec='${libname}${release}${shared_ext}$major'
20495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496  shlibpath_var=LD_LIBRARY_PATH
20497  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20498  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20499  ;;
20500
20501sco3.2v5*)
20502  version_type=osf
20503  soname_spec='${libname}${release}${shared_ext}$major'
20504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505  shlibpath_var=LD_LIBRARY_PATH
20506  ;;
20507
20508solaris*)
20509  version_type=linux
20510  need_lib_prefix=no
20511  need_version=no
20512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513  soname_spec='${libname}${release}${shared_ext}$major'
20514  shlibpath_var=LD_LIBRARY_PATH
20515  shlibpath_overrides_runpath=yes
20516  hardcode_into_libs=yes
20517  # ldd complains unless libraries are executable
20518  postinstall_cmds='chmod +x $lib'
20519  ;;
20520
20521sunos4*)
20522  version_type=sunos
20523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20524  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20525  shlibpath_var=LD_LIBRARY_PATH
20526  shlibpath_overrides_runpath=yes
20527  if test "$with_gnu_ld" = yes; then
20528    need_lib_prefix=no
20529  fi
20530  need_version=yes
20531  ;;
20532
20533sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20534  version_type=linux
20535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536  soname_spec='${libname}${release}${shared_ext}$major'
20537  shlibpath_var=LD_LIBRARY_PATH
20538  case $host_vendor in
20539    sni)
20540      shlibpath_overrides_runpath=no
20541      need_lib_prefix=no
20542      export_dynamic_flag_spec='${wl}-Blargedynsym'
20543      runpath_var=LD_RUN_PATH
20544      ;;
20545    siemens)
20546      need_lib_prefix=no
20547      ;;
20548    motorola)
20549      need_lib_prefix=no
20550      need_version=no
20551      shlibpath_overrides_runpath=no
20552      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20553      ;;
20554  esac
20555  ;;
20556
20557sysv4*MP*)
20558  if test -d /usr/nec ;then
20559    version_type=linux
20560    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20561    soname_spec='$libname${shared_ext}.$major'
20562    shlibpath_var=LD_LIBRARY_PATH
20563  fi
20564  ;;
20565
20566uts4*)
20567  version_type=linux
20568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569  soname_spec='${libname}${release}${shared_ext}$major'
20570  shlibpath_var=LD_LIBRARY_PATH
20571  ;;
20572
20573*)
20574  dynamic_linker=no
20575  ;;
20576esac
20577echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578echo "${ECHO_T}$dynamic_linker" >&6
20579test "$dynamic_linker" = no && can_build_shared=no
20580
20581echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20582echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20583hardcode_action_F77=
20584if test -n "$hardcode_libdir_flag_spec_F77" || \
20585   test -n "$runpath_var_F77" || \
20586   test "X$hardcode_automatic_F77" = "Xyes" ; then
20587
20588  # We can hardcode non-existant directories.
20589  if test "$hardcode_direct_F77" != no &&
20590     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20591     # have to relink, otherwise we might link with an installed library
20592     # when we should be linking with a yet-to-be-installed one
20593     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20594     test "$hardcode_minus_L_F77" != no; then
20595    # Linking always hardcodes the temporary library directory.
20596    hardcode_action_F77=relink
20597  else
20598    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20599    hardcode_action_F77=immediate
20600  fi
20601else
20602  # We cannot hardcode anything, or else we can only hardcode existing
20603  # directories.
20604  hardcode_action_F77=unsupported
20605fi
20606echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20607echo "${ECHO_T}$hardcode_action_F77" >&6
20608
20609if test "$hardcode_action_F77" = relink; then
20610  # Fast installation is not supported
20611  enable_fast_install=no
20612elif test "$shlibpath_overrides_runpath" = yes ||
20613     test "$enable_shared" = no; then
20614  # Fast installation is not necessary
20615  enable_fast_install=needless
20616fi
20617
20618striplib=
20619old_striplib=
20620echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20621echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20622if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20623  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20624  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20625  echo "$as_me:$LINENO: result: yes" >&5
20626echo "${ECHO_T}yes" >&6
20627else
20628# FIXME - insert some real tests, host_os isn't really good enough
20629  case $host_os in
20630   darwin*)
20631       if test -n "$STRIP" ; then
20632         striplib="$STRIP -x"
20633         echo "$as_me:$LINENO: result: yes" >&5
20634echo "${ECHO_T}yes" >&6
20635       else
20636  echo "$as_me:$LINENO: result: no" >&5
20637echo "${ECHO_T}no" >&6
20638fi
20639       ;;
20640   *)
20641  echo "$as_me:$LINENO: result: no" >&5
20642echo "${ECHO_T}no" >&6
20643    ;;
20644  esac
20645fi
20646
20647
20648
20649# The else clause should only fire when bootstrapping the
20650# libtool distribution, otherwise you forgot to ship ltmain.sh
20651# with your package, and you will get complaints that there are
20652# no rules to generate ltmain.sh.
20653if test -f "$ltmain"; then
20654  # See if we are running on zsh, and set the options which allow our commands through
20655  # without removal of \ escapes.
20656  if test -n "${ZSH_VERSION+set}" ; then
20657    setopt NO_GLOB_SUBST
20658  fi
20659  # Now quote all the things that may contain metacharacters while being
20660  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20661  # variables and quote the copies for generation of the libtool script.
20662  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20663    SED SHELL STRIP \
20664    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666    deplibs_check_method reload_flag reload_cmds need_locks \
20667    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668    lt_cv_sys_global_symbol_to_c_name_address \
20669    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670    old_postinstall_cmds old_postuninstall_cmds \
20671    compiler_F77 \
20672    CC_F77 \
20673    LD_F77 \
20674    lt_prog_compiler_wl_F77 \
20675    lt_prog_compiler_pic_F77 \
20676    lt_prog_compiler_static_F77 \
20677    lt_prog_compiler_no_builtin_flag_F77 \
20678    export_dynamic_flag_spec_F77 \
20679    thread_safe_flag_spec_F77 \
20680    whole_archive_flag_spec_F77 \
20681    enable_shared_with_static_runtimes_F77 \
20682    old_archive_cmds_F77 \
20683    old_archive_from_new_cmds_F77 \
20684    predep_objects_F77 \
20685    postdep_objects_F77 \
20686    predeps_F77 \
20687    postdeps_F77 \
20688    compiler_lib_search_path_F77 \
20689    archive_cmds_F77 \
20690    archive_expsym_cmds_F77 \
20691    postinstall_cmds_F77 \
20692    postuninstall_cmds_F77 \
20693    old_archive_from_expsyms_cmds_F77 \
20694    allow_undefined_flag_F77 \
20695    no_undefined_flag_F77 \
20696    export_symbols_cmds_F77 \
20697    hardcode_libdir_flag_spec_F77 \
20698    hardcode_libdir_flag_spec_ld_F77 \
20699    hardcode_libdir_separator_F77 \
20700    hardcode_automatic_F77 \
20701    module_cmds_F77 \
20702    module_expsym_cmds_F77 \
20703    lt_cv_prog_compiler_c_o_F77 \
20704    exclude_expsyms_F77 \
20705    include_expsyms_F77; do
20706
20707    case $var in
20708    old_archive_cmds_F77 | \
20709    old_archive_from_new_cmds_F77 | \
20710    archive_cmds_F77 | \
20711    archive_expsym_cmds_F77 | \
20712    module_cmds_F77 | \
20713    module_expsym_cmds_F77 | \
20714    old_archive_from_expsyms_cmds_F77 | \
20715    export_symbols_cmds_F77 | \
20716    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717    postinstall_cmds | postuninstall_cmds | \
20718    old_postinstall_cmds | old_postuninstall_cmds | \
20719    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720      # Double-quote double-evaled strings.
20721      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20722      ;;
20723    *)
20724      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20725      ;;
20726    esac
20727  done
20728
20729  case $lt_echo in
20730  *'\$0 --fallback-echo"')
20731    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20732    ;;
20733  esac
20734
20735cfgfile="$ofile"
20736
20737  cat <<__EOF__ >> "$cfgfile"
20738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20739
20740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20741
20742# Shell to use when invoking shell scripts.
20743SHELL=$lt_SHELL
20744
20745# Whether or not to build shared libraries.
20746build_libtool_libs=$enable_shared
20747
20748# Whether or not to build static libraries.
20749build_old_libs=$enable_static
20750
20751# Whether or not to add -lc for building shared libraries.
20752build_libtool_need_lc=$archive_cmds_need_lc_F77
20753
20754# Whether or not to disallow shared libs when runtime libs are static
20755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20756
20757# Whether or not to optimize for fast installation.
20758fast_install=$enable_fast_install
20759
20760# The host system.
20761host_alias=$host_alias
20762host=$host
20763
20764# An echo program that does not interpret backslashes.
20765echo=$lt_echo
20766
20767# The archiver.
20768AR=$lt_AR
20769AR_FLAGS=$lt_AR_FLAGS
20770
20771# A C compiler.
20772LTCC=$lt_LTCC
20773
20774# A language-specific compiler.
20775CC=$lt_compiler_F77
20776
20777# Is the compiler the GNU C compiler?
20778with_gcc=$GCC_F77
20779
20780# An ERE matcher.
20781EGREP=$lt_EGREP
20782
20783# The linker used to build libraries.
20784LD=$lt_LD_F77
20785
20786# Whether we need hard or soft links.
20787LN_S=$lt_LN_S
20788
20789# A BSD-compatible nm program.
20790NM=$lt_NM
20791
20792# A symbol stripping program
20793STRIP=$lt_STRIP
20794
20795# Used to examine libraries when file_magic_cmd begins "file"
20796MAGIC_CMD=$MAGIC_CMD
20797
20798# Used on cygwin: DLL creation program.
20799DLLTOOL="$DLLTOOL"
20800
20801# Used on cygwin: object dumper.
20802OBJDUMP="$OBJDUMP"
20803
20804# Used on cygwin: assembler.
20805AS="$AS"
20806
20807# The name of the directory that contains temporary libtool files.
20808objdir=$objdir
20809
20810# How to create reloadable object files.
20811reload_flag=$lt_reload_flag
20812reload_cmds=$lt_reload_cmds
20813
20814# How to pass a linker flag through the compiler.
20815wl=$lt_lt_prog_compiler_wl_F77
20816
20817# Object file suffix (normally "o").
20818objext="$ac_objext"
20819
20820# Old archive suffix (normally "a").
20821libext="$libext"
20822
20823# Shared library suffix (normally ".so").
20824shrext_cmds='$shrext_cmds'
20825
20826# Executable file suffix (normally "").
20827exeext="$exeext"
20828
20829# Additional compiler flags for building library objects.
20830pic_flag=$lt_lt_prog_compiler_pic_F77
20831pic_mode=$pic_mode
20832
20833# What is the maximum length of a command?
20834max_cmd_len=$lt_cv_sys_max_cmd_len
20835
20836# Does compiler simultaneously support -c and -o options?
20837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20838
20839# Must we lock files when doing compilation ?
20840need_locks=$lt_need_locks
20841
20842# Do we need the lib prefix for modules?
20843need_lib_prefix=$need_lib_prefix
20844
20845# Do we need a version for libraries?
20846need_version=$need_version
20847
20848# Whether dlopen is supported.
20849dlopen_support=$enable_dlopen
20850
20851# Whether dlopen of programs is supported.
20852dlopen_self=$enable_dlopen_self
20853
20854# Whether dlopen of statically linked programs is supported.
20855dlopen_self_static=$enable_dlopen_self_static
20856
20857# Compiler flag to prevent dynamic linking.
20858link_static_flag=$lt_lt_prog_compiler_static_F77
20859
20860# Compiler flag to turn off builtin functions.
20861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20862
20863# Compiler flag to allow reflexive dlopens.
20864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20865
20866# Compiler flag to generate shared objects directly from archives.
20867whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20868
20869# Compiler flag to generate thread-safe objects.
20870thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20871
20872# Library versioning type.
20873version_type=$version_type
20874
20875# Format of library name prefix.
20876libname_spec=$lt_libname_spec
20877
20878# List of archive names.  First name is the real one, the rest are links.
20879# The last name is the one that the linker finds with -lNAME.
20880library_names_spec=$lt_library_names_spec
20881
20882# The coded name of the library, if different from the real name.
20883soname_spec=$lt_soname_spec
20884
20885# Commands used to build and install an old-style archive.
20886RANLIB=$lt_RANLIB
20887old_archive_cmds=$lt_old_archive_cmds_F77
20888old_postinstall_cmds=$lt_old_postinstall_cmds
20889old_postuninstall_cmds=$lt_old_postuninstall_cmds
20890
20891# Create an old-style archive from a shared archive.
20892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20893
20894# Create a temporary old-style archive to link instead of a shared archive.
20895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20896
20897# Commands used to build and install a shared archive.
20898archive_cmds=$lt_archive_cmds_F77
20899archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20900postinstall_cmds=$lt_postinstall_cmds
20901postuninstall_cmds=$lt_postuninstall_cmds
20902
20903# Commands used to build a loadable module (assumed same as above if empty)
20904module_cmds=$lt_module_cmds_F77
20905module_expsym_cmds=$lt_module_expsym_cmds_F77
20906
20907# Commands to strip libraries.
20908old_striplib=$lt_old_striplib
20909striplib=$lt_striplib
20910
20911# Dependencies to place before the objects being linked to create a
20912# shared library.
20913predep_objects=$lt_predep_objects_F77
20914
20915# Dependencies to place after the objects being linked to create a
20916# shared library.
20917postdep_objects=$lt_postdep_objects_F77
20918
20919# Dependencies to place before the objects being linked to create a
20920# shared library.
20921predeps=$lt_predeps_F77
20922
20923# Dependencies to place after the objects being linked to create a
20924# shared library.
20925postdeps=$lt_postdeps_F77
20926
20927# The library search path used internally by the compiler when linking
20928# a shared library.
20929compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20930
20931# Method to check whether dependent libraries are shared objects.
20932deplibs_check_method=$lt_deplibs_check_method
20933
20934# Command to use when deplibs_check_method == file_magic.
20935file_magic_cmd=$lt_file_magic_cmd
20936
20937# Flag that allows shared libraries with undefined symbols to be built.
20938allow_undefined_flag=$lt_allow_undefined_flag_F77
20939
20940# Flag that forces no undefined symbols.
20941no_undefined_flag=$lt_no_undefined_flag_F77
20942
20943# Commands used to finish a libtool library installation in a directory.
20944finish_cmds=$lt_finish_cmds
20945
20946# Same as above, but a single script fragment to be evaled but not shown.
20947finish_eval=$lt_finish_eval
20948
20949# Take the output of nm and produce a listing of raw symbols and C names.
20950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20951
20952# Transform the output of nm in a proper C declaration
20953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20954
20955# Transform the output of nm in a C name address pair
20956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20957
20958# This is the shared library runtime path variable.
20959runpath_var=$runpath_var
20960
20961# This is the shared library path variable.
20962shlibpath_var=$shlibpath_var
20963
20964# Is shlibpath searched before the hard-coded library search path?
20965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20966
20967# How to hardcode a shared library path into an executable.
20968hardcode_action=$hardcode_action_F77
20969
20970# Whether we should hardcode library paths into libraries.
20971hardcode_into_libs=$hardcode_into_libs
20972
20973# Flag to hardcode \$libdir into a binary during linking.
20974# This must work even if \$libdir does not exist.
20975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20976
20977# If ld is used when linking, flag to hardcode \$libdir into
20978# a binary during linking. This must work even if \$libdir does
20979# not exist.
20980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20981
20982# Whether we need a single -rpath flag with a separated argument.
20983hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20984
20985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20986# resulting binary.
20987hardcode_direct=$hardcode_direct_F77
20988
20989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20990# resulting binary.
20991hardcode_minus_L=$hardcode_minus_L_F77
20992
20993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20994# the resulting binary.
20995hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20996
20997# Set to yes if building a shared library automatically hardcodes DIR into the library
20998# and all subsequent libraries and executables linked against it.
20999hardcode_automatic=$hardcode_automatic_F77
21000
21001# Variables whose values should be saved in libtool wrapper scripts and
21002# restored at relink time.
21003variables_saved_for_relink="$variables_saved_for_relink"
21004
21005# Whether libtool must link a program against all its dependency libraries.
21006link_all_deplibs=$link_all_deplibs_F77
21007
21008# Compile-time system search path for libraries
21009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21010
21011# Run-time system search path for libraries
21012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21013
21014# Fix the shell variable \$srcfile for the compiler.
21015fix_srcfile_path="$fix_srcfile_path_F77"
21016
21017# Set to yes if exported symbols are required.
21018always_export_symbols=$always_export_symbols_F77
21019
21020# The commands to list exported symbols.
21021export_symbols_cmds=$lt_export_symbols_cmds_F77
21022
21023# The commands to extract the exported symbol list from a shared archive.
21024extract_expsyms_cmds=$lt_extract_expsyms_cmds
21025
21026# Symbols that should not be listed in the preloaded symbols.
21027exclude_expsyms=$lt_exclude_expsyms_F77
21028
21029# Symbols that must always be exported.
21030include_expsyms=$lt_include_expsyms_F77
21031
21032# ### END LIBTOOL TAG CONFIG: $tagname
21033
21034__EOF__
21035
21036
21037else
21038  # If there is no Makefile yet, we rely on a make rule to execute
21039  # `config.status --recheck' to rerun these tests and create the
21040  # libtool script then.
21041  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21042  if test -f "$ltmain_in"; then
21043    test -f Makefile && make "$ltmain"
21044  fi
21045fi
21046
21047
21048ac_ext=c
21049ac_cpp='$CPP $CPPFLAGS'
21050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21052ac_compiler_gnu=$ac_cv_c_compiler_gnu
21053
21054CC="$lt_save_CC"
21055
21056	else
21057	  tagname=""
21058	fi
21059	;;
21060
21061      GCJ)
21062	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21063	  ac_ext=c
21064ac_cpp='$CPP $CPPFLAGS'
21065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068
21069
21070# Source file extension for Java test sources.
21071ac_ext=java
21072
21073# Object file extension for compiled Java test sources.
21074objext=o
21075objext_GCJ=$objext
21076
21077# Code to be used in simple compile tests
21078lt_simple_compile_test_code="class foo {}\n"
21079
21080# Code to be used in simple link tests
21081lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21082
21083# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21084
21085# If no C compiler was specified, use CC.
21086LTCC=${LTCC-"$CC"}
21087
21088# Allow CC to be a program name with arguments.
21089compiler=$CC
21090
21091
21092# Allow CC to be a program name with arguments.
21093lt_save_CC="$CC"
21094CC=${GCJ-"gcj"}
21095compiler=$CC
21096compiler_GCJ=$CC
21097
21098# GCJ did not exist at the time GCC didn't implicitly link libc in.
21099archive_cmds_need_lc_GCJ=no
21100
21101
21102lt_prog_compiler_no_builtin_flag_GCJ=
21103
21104if test "$GCC" = yes; then
21105  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21106
21107
21108echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21109echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21110if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21111  echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113  lt_cv_prog_compiler_rtti_exceptions=no
21114  ac_outfile=conftest.$ac_objext
21115   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21116   lt_compiler_flag="-fno-rtti -fno-exceptions"
21117   # Insert the option either (1) after the last *FLAGS variable, or
21118   # (2) before a word containing "conftest.", or (3) at the end.
21119   # Note that $ac_compile itself does not contain backslashes and begins
21120   # with a dollar sign (not a hyphen), so the echo should work correctly.
21121   # The option is referenced via a variable to avoid confusing sed.
21122   lt_compile=`echo "$ac_compile" | $SED \
21123   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21124   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21125   -e 's:$: $lt_compiler_flag:'`
21126   (eval echo "\"\$as_me:21126: $lt_compile\"" >&5)
21127   (eval "$lt_compile" 2>conftest.err)
21128   ac_status=$?
21129   cat conftest.err >&5
21130   echo "$as_me:21130: \$? = $ac_status" >&5
21131   if (exit $ac_status) && test -s "$ac_outfile"; then
21132     # The compiler can only warn and ignore the option if not recognized
21133     # So say no if there are warnings
21134     if test ! -s conftest.err; then
21135       lt_cv_prog_compiler_rtti_exceptions=yes
21136     fi
21137   fi
21138   $rm conftest*
21139
21140fi
21141echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21142echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21143
21144if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21145    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21146else
21147    :
21148fi
21149
21150fi
21151
21152lt_prog_compiler_wl_GCJ=
21153lt_prog_compiler_pic_GCJ=
21154lt_prog_compiler_static_GCJ=
21155
21156echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21157echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21158
21159  if test "$GCC" = yes; then
21160    lt_prog_compiler_wl_GCJ='-Wl,'
21161    lt_prog_compiler_static_GCJ='-static'
21162
21163    case $host_os in
21164      aix*)
21165      # All AIX code is PIC.
21166      if test "$host_cpu" = ia64; then
21167	# AIX 5 now supports IA64 processor
21168	lt_prog_compiler_static_GCJ='-Bstatic'
21169      fi
21170      ;;
21171
21172    amigaos*)
21173      # FIXME: we need at least 68020 code to build shared libraries, but
21174      # adding the `-m68020' flag to GCC prevents building anything better,
21175      # like `-m68040'.
21176      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21177      ;;
21178
21179    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21180      # PIC is the default for these OSes.
21181      ;;
21182
21183    mingw* | pw32* | os2*)
21184      # This hack is so that the source file can tell whether it is being
21185      # built for inclusion in a dll (and should export symbols for example).
21186      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21187      ;;
21188
21189    darwin* | rhapsody*)
21190      # PIC is the default on this platform
21191      # Common symbols not allowed in MH_DYLIB files
21192      lt_prog_compiler_pic_GCJ='-fno-common'
21193      ;;
21194
21195    msdosdjgpp*)
21196      # Just because we use GCC doesn't mean we suddenly get shared libraries
21197      # on systems that don't support them.
21198      lt_prog_compiler_can_build_shared_GCJ=no
21199      enable_shared=no
21200      ;;
21201
21202    sysv4*MP*)
21203      if test -d /usr/nec; then
21204	lt_prog_compiler_pic_GCJ=-Kconform_pic
21205      fi
21206      ;;
21207
21208    hpux*)
21209      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21210      # not for PA HP-UX.
21211      case "$host_cpu" in
21212      hppa*64*|ia64*)
21213	# +Z the default
21214	;;
21215      *)
21216	lt_prog_compiler_pic_GCJ='-fPIC'
21217	;;
21218      esac
21219      ;;
21220
21221    *)
21222      lt_prog_compiler_pic_GCJ='-fPIC'
21223      ;;
21224    esac
21225  else
21226    # PORTME Check for flag to pass linker flags through the system compiler.
21227    case $host_os in
21228    aix*)
21229      lt_prog_compiler_wl_GCJ='-Wl,'
21230      if test "$host_cpu" = ia64; then
21231	# AIX 5 now supports IA64 processor
21232	lt_prog_compiler_static_GCJ='-Bstatic'
21233      else
21234	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21235      fi
21236      ;;
21237      darwin*)
21238        # PIC is the default on this platform
21239        # Common symbols not allowed in MH_DYLIB files
21240       case "$cc_basename" in
21241         xlc*)
21242         lt_prog_compiler_pic_GCJ='-qnocommon'
21243         lt_prog_compiler_wl_GCJ='-Wl,'
21244         ;;
21245       esac
21246       ;;
21247
21248    mingw* | pw32* | os2*)
21249      # This hack is so that the source file can tell whether it is being
21250      # built for inclusion in a dll (and should export symbols for example).
21251      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21252      ;;
21253
21254    hpux9* | hpux10* | hpux11*)
21255      lt_prog_compiler_wl_GCJ='-Wl,'
21256      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21257      # not for PA HP-UX.
21258      case "$host_cpu" in
21259      hppa*64*|ia64*)
21260	# +Z the default
21261	;;
21262      *)
21263	lt_prog_compiler_pic_GCJ='+Z'
21264	;;
21265      esac
21266      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21267      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21268      ;;
21269
21270    irix5* | irix6* | nonstopux*)
21271      lt_prog_compiler_wl_GCJ='-Wl,'
21272      # PIC (with -KPIC) is the default.
21273      lt_prog_compiler_static_GCJ='-non_shared'
21274      ;;
21275
21276    newsos6)
21277      lt_prog_compiler_pic_GCJ='-KPIC'
21278      lt_prog_compiler_static_GCJ='-Bstatic'
21279      ;;
21280
21281    linux*)
21282      case $CC in
21283      icc* | ecc*)
21284	lt_prog_compiler_wl_GCJ='-Wl,'
21285	lt_prog_compiler_pic_GCJ='-KPIC'
21286	lt_prog_compiler_static_GCJ='-static'
21287        ;;
21288      ccc*)
21289        lt_prog_compiler_wl_GCJ='-Wl,'
21290        # All Alpha code is PIC.
21291        lt_prog_compiler_static_GCJ='-non_shared'
21292        ;;
21293      esac
21294      ;;
21295
21296    osf3* | osf4* | osf5*)
21297      lt_prog_compiler_wl_GCJ='-Wl,'
21298      # All OSF/1 code is PIC.
21299      lt_prog_compiler_static_GCJ='-non_shared'
21300      ;;
21301
21302    sco3.2v5*)
21303      lt_prog_compiler_pic_GCJ='-Kpic'
21304      lt_prog_compiler_static_GCJ='-dn'
21305      ;;
21306
21307    solaris*)
21308      lt_prog_compiler_wl_GCJ='-Wl,'
21309      lt_prog_compiler_pic_GCJ='-KPIC'
21310      lt_prog_compiler_static_GCJ='-Bstatic'
21311      ;;
21312
21313    sunos4*)
21314      lt_prog_compiler_wl_GCJ='-Qoption ld '
21315      lt_prog_compiler_pic_GCJ='-PIC'
21316      lt_prog_compiler_static_GCJ='-Bstatic'
21317      ;;
21318
21319    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21320      lt_prog_compiler_wl_GCJ='-Wl,'
21321      lt_prog_compiler_pic_GCJ='-KPIC'
21322      lt_prog_compiler_static_GCJ='-Bstatic'
21323      ;;
21324
21325    sysv4*MP*)
21326      if test -d /usr/nec ;then
21327	lt_prog_compiler_pic_GCJ='-Kconform_pic'
21328	lt_prog_compiler_static_GCJ='-Bstatic'
21329      fi
21330      ;;
21331
21332    uts4*)
21333      lt_prog_compiler_pic_GCJ='-pic'
21334      lt_prog_compiler_static_GCJ='-Bstatic'
21335      ;;
21336
21337    *)
21338      lt_prog_compiler_can_build_shared_GCJ=no
21339      ;;
21340    esac
21341  fi
21342
21343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21344echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21345
21346#
21347# Check to make sure the PIC flag actually works.
21348#
21349if test -n "$lt_prog_compiler_pic_GCJ"; then
21350
21351echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21352echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21353if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21354  echo $ECHO_N "(cached) $ECHO_C" >&6
21355else
21356  lt_prog_compiler_pic_works_GCJ=no
21357  ac_outfile=conftest.$ac_objext
21358   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21359   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21360   # Insert the option either (1) after the last *FLAGS variable, or
21361   # (2) before a word containing "conftest.", or (3) at the end.
21362   # Note that $ac_compile itself does not contain backslashes and begins
21363   # with a dollar sign (not a hyphen), so the echo should work correctly.
21364   # The option is referenced via a variable to avoid confusing sed.
21365   lt_compile=`echo "$ac_compile" | $SED \
21366   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21368   -e 's:$: $lt_compiler_flag:'`
21369   (eval echo "\"\$as_me:21369: $lt_compile\"" >&5)
21370   (eval "$lt_compile" 2>conftest.err)
21371   ac_status=$?
21372   cat conftest.err >&5
21373   echo "$as_me:21373: \$? = $ac_status" >&5
21374   if (exit $ac_status) && test -s "$ac_outfile"; then
21375     # The compiler can only warn and ignore the option if not recognized
21376     # So say no if there are warnings
21377     if test ! -s conftest.err; then
21378       lt_prog_compiler_pic_works_GCJ=yes
21379     fi
21380   fi
21381   $rm conftest*
21382
21383fi
21384echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21385echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21386
21387if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21388    case $lt_prog_compiler_pic_GCJ in
21389     "" | " "*) ;;
21390     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21391     esac
21392else
21393    lt_prog_compiler_pic_GCJ=
21394     lt_prog_compiler_can_build_shared_GCJ=no
21395fi
21396
21397fi
21398case "$host_os" in
21399  # For platforms which do not support PIC, -DPIC is meaningless:
21400  *djgpp*)
21401    lt_prog_compiler_pic_GCJ=
21402    ;;
21403  *)
21404    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21405    ;;
21406esac
21407
21408echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21409echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21410if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21411  echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413  lt_cv_prog_compiler_c_o_GCJ=no
21414   $rm -r conftest 2>/dev/null
21415   mkdir conftest
21416   cd conftest
21417   mkdir out
21418   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21419
21420   lt_compiler_flag="-o out/conftest2.$ac_objext"
21421   # Insert the option either (1) after the last *FLAGS variable, or
21422   # (2) before a word containing "conftest.", or (3) at the end.
21423   # Note that $ac_compile itself does not contain backslashes and begins
21424   # with a dollar sign (not a hyphen), so the echo should work correctly.
21425   lt_compile=`echo "$ac_compile" | $SED \
21426   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21427   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21428   -e 's:$: $lt_compiler_flag:'`
21429   (eval echo "\"\$as_me:21429: $lt_compile\"" >&5)
21430   (eval "$lt_compile" 2>out/conftest.err)
21431   ac_status=$?
21432   cat out/conftest.err >&5
21433   echo "$as_me:21433: \$? = $ac_status" >&5
21434   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21435   then
21436     # The compiler can only warn and ignore the option if not recognized
21437     # So say no if there are warnings
21438     if test ! -s out/conftest.err; then
21439       lt_cv_prog_compiler_c_o_GCJ=yes
21440     fi
21441   fi
21442   chmod u+w .
21443   $rm conftest*
21444   # SGI C++ compiler will create directory out/ii_files/ for
21445   # template instantiation
21446   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21447   $rm out/* && rmdir out
21448   cd ..
21449   rmdir conftest
21450   $rm conftest*
21451
21452fi
21453echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21454echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21455
21456
21457hard_links="nottested"
21458if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21459  # do not overwrite the value of need_locks provided by the user
21460  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21461echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21462  hard_links=yes
21463  $rm conftest*
21464  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21465  touch conftest.a
21466  ln conftest.a conftest.b 2>&5 || hard_links=no
21467  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21468  echo "$as_me:$LINENO: result: $hard_links" >&5
21469echo "${ECHO_T}$hard_links" >&6
21470  if test "$hard_links" = no; then
21471    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21472echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21473    need_locks=warn
21474  fi
21475else
21476  need_locks=no
21477fi
21478
21479echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21480echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21481
21482  runpath_var=
21483  allow_undefined_flag_GCJ=
21484  enable_shared_with_static_runtimes_GCJ=no
21485  archive_cmds_GCJ=
21486  archive_expsym_cmds_GCJ=
21487  old_archive_From_new_cmds_GCJ=
21488  old_archive_from_expsyms_cmds_GCJ=
21489  export_dynamic_flag_spec_GCJ=
21490  whole_archive_flag_spec_GCJ=
21491  thread_safe_flag_spec_GCJ=
21492  hardcode_libdir_flag_spec_GCJ=
21493  hardcode_libdir_flag_spec_ld_GCJ=
21494  hardcode_libdir_separator_GCJ=
21495  hardcode_direct_GCJ=no
21496  hardcode_minus_L_GCJ=no
21497  hardcode_shlibpath_var_GCJ=unsupported
21498  link_all_deplibs_GCJ=unknown
21499  hardcode_automatic_GCJ=no
21500  module_cmds_GCJ=
21501  module_expsym_cmds_GCJ=
21502  always_export_symbols_GCJ=no
21503  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21504  # include_expsyms should be a list of space-separated symbols to be *always*
21505  # included in the symbol list
21506  include_expsyms_GCJ=
21507  # exclude_expsyms can be an extended regexp of symbols to exclude
21508  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21509  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21510  # as well as any symbol that contains `d'.
21511  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21512  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21513  # platforms (ab)use it in PIC code, but their linkers get confused if
21514  # the symbol is explicitly referenced.  Since portable code cannot
21515  # rely on this symbol name, it's probably fine to never include it in
21516  # preloaded symbol tables.
21517  extract_expsyms_cmds=
21518
21519  case $host_os in
21520  cygwin* | mingw* | pw32*)
21521    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21522    # When not using gcc, we currently assume that we are using
21523    # Microsoft Visual C++.
21524    if test "$GCC" != yes; then
21525      with_gnu_ld=no
21526    fi
21527    ;;
21528  openbsd*)
21529    with_gnu_ld=no
21530    ;;
21531  esac
21532
21533  ld_shlibs_GCJ=yes
21534  if test "$with_gnu_ld" = yes; then
21535    # If archive_cmds runs LD, not CC, wlarc should be empty
21536    wlarc='${wl}'
21537
21538    # See if GNU ld supports shared libraries.
21539    case $host_os in
21540    aix3* | aix4* | aix5*)
21541      # On AIX/PPC, the GNU linker is very broken
21542      if test "$host_cpu" != ia64; then
21543	ld_shlibs_GCJ=no
21544	cat <<EOF 1>&2
21545
21546*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21547*** to be unable to reliably create shared libraries on AIX.
21548*** Therefore, libtool is disabling shared libraries support.  If you
21549*** really care for shared libraries, you may want to modify your PATH
21550*** so that a non-GNU linker is found, and then restart.
21551
21552EOF
21553      fi
21554      ;;
21555
21556    amigaos*)
21557      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)'
21558      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21559      hardcode_minus_L_GCJ=yes
21560
21561      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21562      # that the semantics of dynamic libraries on AmigaOS, at least up
21563      # to version 4, is to share data among multiple programs linked
21564      # with the same dynamic library.  Since this doesn't match the
21565      # behavior of shared libraries on other platforms, we can't use
21566      # them.
21567      ld_shlibs_GCJ=no
21568      ;;
21569
21570    beos*)
21571      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572	allow_undefined_flag_GCJ=unsupported
21573	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21574	# support --undefined.  This deserves some investigation.  FIXME
21575	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21576      else
21577	ld_shlibs_GCJ=no
21578      fi
21579      ;;
21580
21581    cygwin* | mingw* | pw32*)
21582      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21583      # as there is no search path for DLLs.
21584      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21585      allow_undefined_flag_GCJ=unsupported
21586      always_export_symbols_GCJ=no
21587      enable_shared_with_static_runtimes_GCJ=yes
21588      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21589
21590      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21591        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21592	# If the export-symbols file already is a .def file (1st line
21593	# is EXPORTS), use it as is; otherwise, prepend...
21594	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21595	  cp $export_symbols $output_objdir/$soname.def;
21596	else
21597	  echo EXPORTS > $output_objdir/$soname.def;
21598	  cat $export_symbols >> $output_objdir/$soname.def;
21599	fi~
21600	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21601      else
21602	ld_shlibs=no
21603      fi
21604      ;;
21605
21606    netbsd*)
21607      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21608	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21609	wlarc=
21610      else
21611	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21612	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21613      fi
21614      ;;
21615
21616    solaris* | sysv5*)
21617      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21618	ld_shlibs_GCJ=no
21619	cat <<EOF 1>&2
21620
21621*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21622*** create shared libraries on Solaris systems.  Therefore, libtool
21623*** is disabling shared libraries support.  We urge you to upgrade GNU
21624*** binutils to release 2.9.1 or newer.  Another option is to modify
21625*** your PATH or compiler configuration so that the native linker is
21626*** used, and then restart.
21627
21628EOF
21629      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21630	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21631	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21632      else
21633	ld_shlibs_GCJ=no
21634      fi
21635      ;;
21636
21637    sunos4*)
21638      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21639      wlarc=
21640      hardcode_direct_GCJ=yes
21641      hardcode_shlibpath_var_GCJ=no
21642      ;;
21643
21644  linux*)
21645    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21646        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21647	archive_cmds_GCJ="$tmp_archive_cmds"
21648      supports_anon_versioning=no
21649      case `$LD -v 2>/dev/null` in
21650        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21651        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21652        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21653        *\ 2.11.*) ;; # other 2.11 versions
21654        *) supports_anon_versioning=yes ;;
21655      esac
21656      if test $supports_anon_versioning = yes; then
21657        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21658cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21659$echo "local: *; };" >> $output_objdir/$libname.ver~
21660        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21661      else
21662        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21663      fi
21664    else
21665      ld_shlibs_GCJ=no
21666    fi
21667    ;;
21668
21669    *)
21670      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21671	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21672	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21673      else
21674	ld_shlibs_GCJ=no
21675      fi
21676      ;;
21677    esac
21678
21679    if test "$ld_shlibs_GCJ" = yes; then
21680      runpath_var=LD_RUN_PATH
21681      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21682      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21683      # ancient GNU ld didn't support --whole-archive et. al.
21684      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21685 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21686      else
21687  	whole_archive_flag_spec_GCJ=
21688      fi
21689    fi
21690  else
21691    # PORTME fill in a description of your system's linker (not GNU ld)
21692    case $host_os in
21693    aix3*)
21694      allow_undefined_flag_GCJ=unsupported
21695      always_export_symbols_GCJ=yes
21696      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'
21697      # Note: this linker hardcodes the directories in LIBPATH if there
21698      # are no directories specified by -L.
21699      hardcode_minus_L_GCJ=yes
21700      if test "$GCC" = yes && test -z "$link_static_flag"; then
21701	# Neither direct hardcoding nor static linking is supported with a
21702	# broken collect2.
21703	hardcode_direct_GCJ=unsupported
21704      fi
21705      ;;
21706
21707    aix4* | aix5*)
21708      if test "$host_cpu" = ia64; then
21709	# On IA64, the linker does run time linking by default, so we don't
21710	# have to do anything special.
21711	aix_use_runtimelinking=no
21712	exp_sym_flag='-Bexport'
21713	no_entry_flag=""
21714      else
21715	# If we're using GNU nm, then we don't want the "-C" option.
21716	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21717	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21718	  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'
21719	else
21720	  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'
21721	fi
21722	aix_use_runtimelinking=no
21723
21724	# Test if we are trying to use run time linking or normal
21725	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21726	# need to do runtime linking.
21727	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21728	  for ld_flag in $LDFLAGS; do
21729  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21730  	    aix_use_runtimelinking=yes
21731  	    break
21732  	  fi
21733	  done
21734	esac
21735
21736	exp_sym_flag='-bexport'
21737	no_entry_flag='-bnoentry'
21738      fi
21739
21740      # When large executables or shared objects are built, AIX ld can
21741      # have problems creating the table of contents.  If linking a library
21742      # or program results in "error TOC overflow" add -mminimal-toc to
21743      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21744      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21745
21746      archive_cmds_GCJ=''
21747      hardcode_direct_GCJ=yes
21748      hardcode_libdir_separator_GCJ=':'
21749      link_all_deplibs_GCJ=yes
21750
21751      if test "$GCC" = yes; then
21752	case $host_os in aix4.012|aix4.012.*)
21753	# We only want to do this on AIX 4.2 and lower, the check
21754	# below for broken collect2 doesn't work under 4.3+
21755	  collect2name=`${CC} -print-prog-name=collect2`
21756	  if test -f "$collect2name" && \
21757  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21758	  then
21759  	  # We have reworked collect2
21760  	  hardcode_direct_GCJ=yes
21761	  else
21762  	  # We have old collect2
21763  	  hardcode_direct_GCJ=unsupported
21764  	  # It fails to find uninstalled libraries when the uninstalled
21765  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21766  	  # to unsupported forces relinking
21767  	  hardcode_minus_L_GCJ=yes
21768  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
21769  	  hardcode_libdir_separator_GCJ=
21770	  fi
21771	esac
21772	shared_flag='-shared'
21773      else
21774	# not using gcc
21775	if test "$host_cpu" = ia64; then
21776  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21777  	# chokes on -Wl,-G. The following line is correct:
21778	  shared_flag='-G'
21779	else
21780  	if test "$aix_use_runtimelinking" = yes; then
21781	    shared_flag='${wl}-G'
21782	  else
21783	    shared_flag='${wl}-bM:SRE'
21784  	fi
21785	fi
21786      fi
21787
21788      # It seems that -bexpall does not export symbols beginning with
21789      # underscore (_), so it is better to generate a list of symbols to export.
21790      always_export_symbols_GCJ=yes
21791      if test "$aix_use_runtimelinking" = yes; then
21792	# Warning - without using the other runtime loading flags (-brtl),
21793	# -berok will link without error, but may produce a broken library.
21794	allow_undefined_flag_GCJ='-berok'
21795       # Determine the default libpath from the value encoded in an empty executable.
21796       cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h.  */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h.  */
21802
21803int
21804main ()
21805{
21806
21807  ;
21808  return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext conftest$ac_exeext
21812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21813  (eval $ac_link) 2>conftest.er1
21814  ac_status=$?
21815  grep -v '^ *+' conftest.er1 >conftest.err
21816  rm -f conftest.er1
21817  cat conftest.err >&5
21818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819  (exit $ac_status); } &&
21820	 { ac_try='test -z "$ac_c_werror_flag"
21821			 || test ! -s conftest.err'
21822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823  (eval $ac_try) 2>&5
21824  ac_status=$?
21825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826  (exit $ac_status); }; } &&
21827	 { ac_try='test -s conftest$ac_exeext'
21828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829  (eval $ac_try) 2>&5
21830  ac_status=$?
21831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832  (exit $ac_status); }; }; then
21833
21834aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21835}'`
21836# Check for a 64-bit object if we didn't find anything.
21837if 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; }
21838}'`; fi
21839else
21840  echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
21842
21843fi
21844rm -f conftest.err conftest.$ac_objext \
21845      conftest$ac_exeext conftest.$ac_ext
21846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21847
21848       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21849	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"
21850       else
21851	if test "$host_cpu" = ia64; then
21852	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21853	  allow_undefined_flag_GCJ="-z nodefs"
21854	  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"
21855	else
21856	 # Determine the default libpath from the value encoded in an empty executable.
21857	 cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h.  */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h.  */
21863
21864int
21865main ()
21866{
21867
21868  ;
21869  return 0;
21870}
21871_ACEOF
21872rm -f conftest.$ac_objext conftest$ac_exeext
21873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874  (eval $ac_link) 2>conftest.er1
21875  ac_status=$?
21876  grep -v '^ *+' conftest.er1 >conftest.err
21877  rm -f conftest.er1
21878  cat conftest.err >&5
21879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880  (exit $ac_status); } &&
21881	 { ac_try='test -z "$ac_c_werror_flag"
21882			 || test ! -s conftest.err'
21883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884  (eval $ac_try) 2>&5
21885  ac_status=$?
21886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887  (exit $ac_status); }; } &&
21888	 { ac_try='test -s conftest$ac_exeext'
21889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890  (eval $ac_try) 2>&5
21891  ac_status=$?
21892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893  (exit $ac_status); }; }; then
21894
21895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21896}'`
21897# Check for a 64-bit object if we didn't find anything.
21898if 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; }
21899}'`; fi
21900else
21901  echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904fi
21905rm -f conftest.err conftest.$ac_objext \
21906      conftest$ac_exeext conftest.$ac_ext
21907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21908
21909	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21910	  # Warning - without using the other run time loading flags,
21911	  # -berok will link without error, but may produce a broken library.
21912	  no_undefined_flag_GCJ=' ${wl}-bernotok'
21913	  allow_undefined_flag_GCJ=' ${wl}-berok'
21914	  # -bexpall does not export symbols beginning with underscore (_)
21915	  always_export_symbols_GCJ=yes
21916	  # Exported symbols can be pulled into shared objects from archives
21917	  whole_archive_flag_spec_GCJ=' '
21918	  archive_cmds_need_lc_GCJ=yes
21919	  # This is similar to how AIX traditionally builds it's shared libraries.
21920	  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'
21921	fi
21922      fi
21923      ;;
21924
21925    amigaos*)
21926      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)'
21927      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21928      hardcode_minus_L_GCJ=yes
21929      # see comment about different semantics on the GNU ld section
21930      ld_shlibs_GCJ=no
21931      ;;
21932
21933    bsdi[45]*)
21934      export_dynamic_flag_spec_GCJ=-rdynamic
21935      ;;
21936
21937    cygwin* | mingw* | pw32*)
21938      # When not using gcc, we currently assume that we are using
21939      # Microsoft Visual C++.
21940      # hardcode_libdir_flag_spec is actually meaningless, as there is
21941      # no search path for DLLs.
21942      hardcode_libdir_flag_spec_GCJ=' '
21943      allow_undefined_flag_GCJ=unsupported
21944      # Tell ltmain to make .lib files, not .a files.
21945      libext=lib
21946      # Tell ltmain to make .dll files, not .so files.
21947      shrext_cmds=".dll"
21948      # FIXME: Setting linknames here is a bad hack.
21949      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21950      # The linker will automatically build a .lib file if we build a DLL.
21951      old_archive_From_new_cmds_GCJ='true'
21952      # FIXME: Should let the user specify the lib program.
21953      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21954      fix_srcfile_path='`cygpath -w "$srcfile"`'
21955      enable_shared_with_static_runtimes_GCJ=yes
21956      ;;
21957
21958    darwin* | rhapsody*)
21959      case "$host_os" in
21960        rhapsody* | darwin1.[012])
21961         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21962         ;;
21963       *) # Darwin 1.3 on
21964         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21965           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21966         else
21967           case ${MACOSX_DEPLOYMENT_TARGET} in
21968             10.[012])
21969               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21970               ;;
21971             10.*)
21972               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21973               ;;
21974           esac
21975         fi
21976         ;;
21977      esac
21978      archive_cmds_need_lc_GCJ=no
21979      hardcode_direct_GCJ=no
21980      hardcode_automatic_GCJ=yes
21981      hardcode_shlibpath_var_GCJ=unsupported
21982      whole_archive_flag_spec_GCJ=''
21983      link_all_deplibs_GCJ=yes
21984    if test "$GCC" = yes ; then
21985    	output_verbose_link_cmd='echo'
21986        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21987      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21988      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21989      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}'
21990      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}'
21991    else
21992      case "$cc_basename" in
21993        xlc*)
21994         output_verbose_link_cmd='echo'
21995         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21996         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21997          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21998         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}'
21999          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}'
22000          ;;
22001       *)
22002         ld_shlibs_GCJ=no
22003          ;;
22004      esac
22005    fi
22006      ;;
22007
22008    dgux*)
22009      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22010      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011      hardcode_shlibpath_var_GCJ=no
22012      ;;
22013
22014    freebsd1*)
22015      ld_shlibs_GCJ=no
22016      ;;
22017
22018    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22019    # support.  Future versions do this automatically, but an explicit c++rt0.o
22020    # does not break anything, and helps significantly (at the cost of a little
22021    # extra space).
22022    freebsd2.2*)
22023      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22024      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22025      hardcode_direct_GCJ=yes
22026      hardcode_shlibpath_var_GCJ=no
22027      ;;
22028
22029    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22030    freebsd2*)
22031      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032      hardcode_direct_GCJ=yes
22033      hardcode_minus_L_GCJ=yes
22034      hardcode_shlibpath_var_GCJ=no
22035      ;;
22036
22037    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22038    freebsd* | kfreebsd*-gnu)
22039      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22040      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22041      hardcode_direct_GCJ=yes
22042      hardcode_shlibpath_var_GCJ=no
22043      ;;
22044
22045    hpux9*)
22046      if test "$GCC" = yes; then
22047	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'
22048      else
22049	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'
22050      fi
22051      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22052      hardcode_libdir_separator_GCJ=:
22053      hardcode_direct_GCJ=yes
22054
22055      # hardcode_minus_L: Not really in the search PATH,
22056      # but as the default location of the library.
22057      hardcode_minus_L_GCJ=yes
22058      export_dynamic_flag_spec_GCJ='${wl}-E'
22059      ;;
22060
22061    hpux10* | hpux11*)
22062      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22063	case "$host_cpu" in
22064	hppa*64*|ia64*)
22065	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22066	  ;;
22067	*)
22068	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22069	  ;;
22070	esac
22071      else
22072	case "$host_cpu" in
22073	hppa*64*|ia64*)
22074	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22075	  ;;
22076	*)
22077	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22078	  ;;
22079	esac
22080      fi
22081      if test "$with_gnu_ld" = no; then
22082	case "$host_cpu" in
22083	hppa*64*)
22084	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22085	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22086	  hardcode_libdir_separator_GCJ=:
22087	  hardcode_direct_GCJ=no
22088	  hardcode_shlibpath_var_GCJ=no
22089	  ;;
22090	ia64*)
22091	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
22092	  hardcode_direct_GCJ=no
22093	  hardcode_shlibpath_var_GCJ=no
22094
22095	  # hardcode_minus_L: Not really in the search PATH,
22096	  # but as the default location of the library.
22097	  hardcode_minus_L_GCJ=yes
22098	  ;;
22099	*)
22100	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22101	  hardcode_libdir_separator_GCJ=:
22102	  hardcode_direct_GCJ=yes
22103	  export_dynamic_flag_spec_GCJ='${wl}-E'
22104
22105	  # hardcode_minus_L: Not really in the search PATH,
22106	  # but as the default location of the library.
22107	  hardcode_minus_L_GCJ=yes
22108	  ;;
22109	esac
22110      fi
22111      ;;
22112
22113    irix5* | irix6* | nonstopux*)
22114      if test "$GCC" = yes; then
22115	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'
22116      else
22117	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'
22118	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22119      fi
22120      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22121      hardcode_libdir_separator_GCJ=:
22122      link_all_deplibs_GCJ=yes
22123      ;;
22124
22125    netbsd*)
22126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22127	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22128      else
22129	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22130      fi
22131      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22132      hardcode_direct_GCJ=yes
22133      hardcode_shlibpath_var_GCJ=no
22134      ;;
22135
22136    newsos6)
22137      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22138      hardcode_direct_GCJ=yes
22139      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22140      hardcode_libdir_separator_GCJ=:
22141      hardcode_shlibpath_var_GCJ=no
22142      ;;
22143
22144    openbsd*)
22145      hardcode_direct_GCJ=yes
22146      hardcode_shlibpath_var_GCJ=no
22147      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22148	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22149	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22150	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22151	export_dynamic_flag_spec_GCJ='${wl}-E'
22152      else
22153       case $host_os in
22154	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22155	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22156	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
22157	   ;;
22158	 *)
22159	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22160	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22161	   ;;
22162       esac
22163      fi
22164      ;;
22165
22166    os2*)
22167      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22168      hardcode_minus_L_GCJ=yes
22169      allow_undefined_flag_GCJ=unsupported
22170      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'
22171      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22172      ;;
22173
22174    osf3*)
22175      if test "$GCC" = yes; then
22176	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22177	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'
22178      else
22179	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22180	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'
22181      fi
22182      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22183      hardcode_libdir_separator_GCJ=:
22184      ;;
22185
22186    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22187      if test "$GCC" = yes; then
22188	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22189	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'
22190	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22191      else
22192	allow_undefined_flag_GCJ=' -expect_unresolved \*'
22193	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'
22194	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~
22195	$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'
22196
22197	# Both c and cxx compiler support -rpath directly
22198	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22199      fi
22200      hardcode_libdir_separator_GCJ=:
22201      ;;
22202
22203    sco3.2v5*)
22204      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22205      hardcode_shlibpath_var_GCJ=no
22206      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22207      runpath_var=LD_RUN_PATH
22208      hardcode_runpath_var=yes
22209      ;;
22210
22211    solaris*)
22212      no_undefined_flag_GCJ=' -z text'
22213      if test "$GCC" = yes; then
22214	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22216	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22217      else
22218	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22219	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22220  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22221      fi
22222      hardcode_libdir_flag_spec_GCJ='-R$libdir'
22223      hardcode_shlibpath_var_GCJ=no
22224      case $host_os in
22225      solaris2.[0-5] | solaris2.[0-5].*) ;;
22226      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22227	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22228      esac
22229      link_all_deplibs_GCJ=yes
22230      ;;
22231
22232    sunos4*)
22233      if test "x$host_vendor" = xsequent; then
22234	# Use $CC to link under sequent, because it throws in some extra .o
22235	# files that make .init and .fini sections work.
22236	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22237      else
22238	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22239      fi
22240      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22241      hardcode_direct_GCJ=yes
22242      hardcode_minus_L_GCJ=yes
22243      hardcode_shlibpath_var_GCJ=no
22244      ;;
22245
22246    sysv4)
22247      case $host_vendor in
22248	sni)
22249	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22250	  hardcode_direct_GCJ=yes # is this really true???
22251	;;
22252	siemens)
22253	  ## LD is ld it makes a PLAMLIB
22254	  ## CC just makes a GrossModule.
22255	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22256	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22257	  hardcode_direct_GCJ=no
22258        ;;
22259	motorola)
22260	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22261	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22262	;;
22263      esac
22264      runpath_var='LD_RUN_PATH'
22265      hardcode_shlibpath_var_GCJ=no
22266      ;;
22267
22268    sysv4.3*)
22269      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270      hardcode_shlibpath_var_GCJ=no
22271      export_dynamic_flag_spec_GCJ='-Bexport'
22272      ;;
22273
22274    sysv4*MP*)
22275      if test -d /usr/nec; then
22276	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22277	hardcode_shlibpath_var_GCJ=no
22278	runpath_var=LD_RUN_PATH
22279	hardcode_runpath_var=yes
22280	ld_shlibs_GCJ=yes
22281      fi
22282      ;;
22283
22284    sysv4.2uw2*)
22285      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22286      hardcode_direct_GCJ=yes
22287      hardcode_minus_L_GCJ=no
22288      hardcode_shlibpath_var_GCJ=no
22289      hardcode_runpath_var=yes
22290      runpath_var=LD_RUN_PATH
22291      ;;
22292
22293   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22294      no_undefined_flag_GCJ='${wl}-z ${wl}text'
22295      if test "$GCC" = yes; then
22296	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22297      else
22298	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22299      fi
22300      runpath_var='LD_RUN_PATH'
22301      hardcode_shlibpath_var_GCJ=no
22302      ;;
22303
22304    sysv5*)
22305      no_undefined_flag_GCJ=' -z text'
22306      # $CC -shared without GNU ld will not create a library from C++
22307      # object files and a static libstdc++, better avoid it by now
22308      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22310  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22311      hardcode_libdir_flag_spec_GCJ=
22312      hardcode_shlibpath_var_GCJ=no
22313      runpath_var='LD_RUN_PATH'
22314      ;;
22315
22316    uts4*)
22317      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22318      hardcode_libdir_flag_spec_GCJ='-L$libdir'
22319      hardcode_shlibpath_var_GCJ=no
22320      ;;
22321
22322    *)
22323      ld_shlibs_GCJ=no
22324      ;;
22325    esac
22326  fi
22327
22328echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22329echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22330test "$ld_shlibs_GCJ" = no && can_build_shared=no
22331
22332variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22333if test "$GCC" = yes; then
22334  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22335fi
22336
22337#
22338# Do we need to explicitly link libc?
22339#
22340case "x$archive_cmds_need_lc_GCJ" in
22341x|xyes)
22342  # Assume -lc should be added
22343  archive_cmds_need_lc_GCJ=yes
22344
22345  if test "$enable_shared" = yes && test "$GCC" = yes; then
22346    case $archive_cmds_GCJ in
22347    *'~'*)
22348      # FIXME: we may have to deal with multi-command sequences.
22349      ;;
22350    '$CC '*)
22351      # Test whether the compiler implicitly links with -lc since on some
22352      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22353      # to ld, don't add -lc before -lgcc.
22354      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22355echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22356      $rm conftest*
22357      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22358
22359      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360  (eval $ac_compile) 2>&5
22361  ac_status=$?
22362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363  (exit $ac_status); } 2>conftest.err; then
22364        soname=conftest
22365        lib=conftest
22366        libobjs=conftest.$ac_objext
22367        deplibs=
22368        wl=$lt_prog_compiler_wl_GCJ
22369        compiler_flags=-v
22370        linker_flags=-v
22371        verstring=
22372        output_objdir=.
22373        libname=conftest
22374        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22375        allow_undefined_flag_GCJ=
22376        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22377  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22378  ac_status=$?
22379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380  (exit $ac_status); }
22381        then
22382	  archive_cmds_need_lc_GCJ=no
22383        else
22384	  archive_cmds_need_lc_GCJ=yes
22385        fi
22386        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22387      else
22388        cat conftest.err 1>&5
22389      fi
22390      $rm conftest*
22391      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22392echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22393      ;;
22394    esac
22395  fi
22396  ;;
22397esac
22398
22399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22401library_names_spec=
22402libname_spec='lib$name'
22403soname_spec=
22404shrext_cmds=".so"
22405postinstall_cmds=
22406postuninstall_cmds=
22407finish_cmds=
22408finish_eval=
22409shlibpath_var=
22410shlibpath_overrides_runpath=unknown
22411version_type=none
22412dynamic_linker="$host_os ld.so"
22413sys_lib_dlsearch_path_spec="/lib /usr/lib"
22414if test "$GCC" = yes; then
22415  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22416  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22417    # if the path contains ";" then we assume it to be the separator
22418    # otherwise default to the standard path separator (i.e. ":") - it is
22419    # assumed that no part of a normal pathname contains ";" but that should
22420    # okay in the real world where ";" in dirpaths is itself problematic.
22421    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22422  else
22423    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22424  fi
22425else
22426  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22427fi
22428need_lib_prefix=unknown
22429hardcode_into_libs=no
22430
22431# when you set need_version to no, make sure it does not cause -set_version
22432# flags to be left without arguments
22433need_version=unknown
22434
22435case $host_os in
22436aix3*)
22437  version_type=linux
22438  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22439  shlibpath_var=LIBPATH
22440
22441  # AIX 3 has no versioning support, so we append a major version to the name.
22442  soname_spec='${libname}${release}${shared_ext}$major'
22443  ;;
22444
22445aix4* | aix5*)
22446  version_type=linux
22447  need_lib_prefix=no
22448  need_version=no
22449  hardcode_into_libs=yes
22450  if test "$host_cpu" = ia64; then
22451    # AIX 5 supports IA64
22452    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22453    shlibpath_var=LD_LIBRARY_PATH
22454  else
22455    # With GCC up to 2.95.x, collect2 would create an import file
22456    # for dependence libraries.  The import file would start with
22457    # the line `#! .'.  This would cause the generated library to
22458    # depend on `.', always an invalid library.  This was fixed in
22459    # development snapshots of GCC prior to 3.0.
22460    case $host_os in
22461      aix4 | aix4.[01] | aix4.[01].*)
22462      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22463	   echo ' yes '
22464	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22465	:
22466      else
22467	can_build_shared=no
22468      fi
22469      ;;
22470    esac
22471    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22472    # soname into executable. Probably we can add versioning support to
22473    # collect2, so additional links can be useful in future.
22474    if test "$aix_use_runtimelinking" = yes; then
22475      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22476      # instead of lib<name>.a to let people know that these are not
22477      # typical AIX shared libraries.
22478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22479    else
22480      # We preserve .a as extension for shared libraries through AIX4.2
22481      # and later when we are not doing run time linking.
22482      library_names_spec='${libname}${release}.a $libname.a'
22483      soname_spec='${libname}${release}${shared_ext}$major'
22484    fi
22485    shlibpath_var=LIBPATH
22486  fi
22487  ;;
22488
22489amigaos*)
22490  library_names_spec='$libname.ixlibrary $libname.a'
22491  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22492  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'
22493  ;;
22494
22495beos*)
22496  library_names_spec='${libname}${shared_ext}'
22497  dynamic_linker="$host_os ld.so"
22498  shlibpath_var=LIBRARY_PATH
22499  ;;
22500
22501bsdi[45]*)
22502  version_type=linux
22503  need_version=no
22504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505  soname_spec='${libname}${release}${shared_ext}$major'
22506  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22507  shlibpath_var=LD_LIBRARY_PATH
22508  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22509  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22510  # the default ld.so.conf also contains /usr/contrib/lib and
22511  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22512  # libtool to hard-code these into programs
22513  ;;
22514
22515cygwin* | mingw* | pw32*)
22516  version_type=windows
22517  shrext_cmds=".dll"
22518  need_version=no
22519  need_lib_prefix=no
22520
22521  case $GCC,$host_os in
22522  yes,cygwin* | yes,mingw* | yes,pw32*)
22523    library_names_spec='$libname.dll.a'
22524    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22525    postinstall_cmds='base_file=`basename \${file}`~
22526      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22527      dldir=$destdir/`dirname \$dlpath`~
22528      test -d \$dldir || mkdir -p \$dldir~
22529      $install_prog $dir/$dlname \$dldir/$dlname'
22530    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22531      dlpath=$dir/\$dldll~
22532       $rm \$dlpath'
22533    shlibpath_overrides_runpath=yes
22534
22535    case $host_os in
22536    cygwin*)
22537      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22538      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22539      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22540      ;;
22541    mingw*)
22542      # MinGW DLLs use traditional 'lib' prefix
22543      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22544      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22545      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22546        # It is most probably a Windows format PATH printed by
22547        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22548        # path with ; separators, and with drive letters. We can handle the
22549        # drive letters (cygwin fileutils understands them), so leave them,
22550        # especially as we might pass files found there to a mingw objdump,
22551        # which wouldn't understand a cygwinified path. Ahh.
22552        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22553      else
22554        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22555      fi
22556      ;;
22557    pw32*)
22558      # pw32 DLLs use 'pw' prefix rather than 'lib'
22559      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22560      ;;
22561    esac
22562    ;;
22563
22564  *)
22565    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22566    ;;
22567  esac
22568  dynamic_linker='Win32 ld.exe'
22569  # FIXME: first we should search . and the directory the executable is in
22570  shlibpath_var=PATH
22571  ;;
22572
22573darwin* | rhapsody*)
22574  dynamic_linker="$host_os dyld"
22575  version_type=darwin
22576  need_lib_prefix=no
22577  need_version=no
22578  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22579  soname_spec='${libname}${release}${major}$shared_ext'
22580  shlibpath_overrides_runpath=yes
22581  shlibpath_var=DYLD_LIBRARY_PATH
22582  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22583  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22584  if test "$GCC" = yes; then
22585    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"`
22586  else
22587    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22588  fi
22589  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22590  ;;
22591
22592dgux*)
22593  version_type=linux
22594  need_lib_prefix=no
22595  need_version=no
22596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22597  soname_spec='${libname}${release}${shared_ext}$major'
22598  shlibpath_var=LD_LIBRARY_PATH
22599  ;;
22600
22601freebsd1*)
22602  dynamic_linker=no
22603  ;;
22604
22605kfreebsd*-gnu)
22606  version_type=linux
22607  need_lib_prefix=no
22608  need_version=no
22609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22610  soname_spec='${libname}${release}${shared_ext}$major'
22611  shlibpath_var=LD_LIBRARY_PATH
22612  shlibpath_overrides_runpath=no
22613  hardcode_into_libs=yes
22614  dynamic_linker='GNU ld.so'
22615  ;;
22616
22617freebsd*)
22618  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22619  version_type=freebsd-$objformat
22620  case $version_type in
22621    freebsd-elf*)
22622      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22623      need_version=no
22624      need_lib_prefix=no
22625      ;;
22626    freebsd-*)
22627      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22628      need_version=yes
22629      ;;
22630  esac
22631  shlibpath_var=LD_LIBRARY_PATH
22632  case $host_os in
22633  freebsd2*)
22634    shlibpath_overrides_runpath=yes
22635    ;;
22636  freebsd3.01* | freebsdelf3.01*)
22637    shlibpath_overrides_runpath=yes
22638    hardcode_into_libs=yes
22639    ;;
22640  *) # from 3.2 on
22641    shlibpath_overrides_runpath=no
22642    hardcode_into_libs=yes
22643    ;;
22644  esac
22645  ;;
22646
22647gnu*)
22648  version_type=linux
22649  need_lib_prefix=no
22650  need_version=no
22651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22652  soname_spec='${libname}${release}${shared_ext}$major'
22653  shlibpath_var=LD_LIBRARY_PATH
22654  hardcode_into_libs=yes
22655  ;;
22656
22657hpux9* | hpux10* | hpux11*)
22658  # Give a soname corresponding to the major version so that dld.sl refuses to
22659  # link against other versions.
22660  version_type=sunos
22661  need_lib_prefix=no
22662  need_version=no
22663  case "$host_cpu" in
22664  ia64*)
22665    shrext_cmds='.so'
22666    hardcode_into_libs=yes
22667    dynamic_linker="$host_os dld.so"
22668    shlibpath_var=LD_LIBRARY_PATH
22669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22671    soname_spec='${libname}${release}${shared_ext}$major'
22672    if test "X$HPUX_IA64_MODE" = X32; then
22673      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22674    else
22675      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22676    fi
22677    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22678    ;;
22679   hppa*64*)
22680     shrext_cmds='.sl'
22681     hardcode_into_libs=yes
22682     dynamic_linker="$host_os dld.sl"
22683     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22684     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686     soname_spec='${libname}${release}${shared_ext}$major'
22687     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22689     ;;
22690   *)
22691    shrext_cmds='.sl'
22692    dynamic_linker="$host_os dld.sl"
22693    shlibpath_var=SHLIB_PATH
22694    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696    soname_spec='${libname}${release}${shared_ext}$major'
22697    ;;
22698  esac
22699  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22700  postinstall_cmds='chmod 555 $lib'
22701  ;;
22702
22703irix5* | irix6* | nonstopux*)
22704  case $host_os in
22705    nonstopux*) version_type=nonstopux ;;
22706    *)
22707	if test "$lt_cv_prog_gnu_ld" = yes; then
22708		version_type=linux
22709	else
22710		version_type=irix
22711	fi ;;
22712  esac
22713  need_lib_prefix=no
22714  need_version=no
22715  soname_spec='${libname}${release}${shared_ext}$major'
22716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22717  case $host_os in
22718  irix5* | nonstopux*)
22719    libsuff= shlibsuff=
22720    ;;
22721  *)
22722    case $LD in # libtool.m4 will add one of these switches to LD
22723    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22724      libsuff= shlibsuff= libmagic=32-bit;;
22725    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22726      libsuff=32 shlibsuff=N32 libmagic=N32;;
22727    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22728      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22729    *) libsuff= shlibsuff= libmagic=never-match;;
22730    esac
22731    ;;
22732  esac
22733  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22734  shlibpath_overrides_runpath=no
22735  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22736  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22737  hardcode_into_libs=yes
22738  ;;
22739
22740# No shared lib support for Linux oldld, aout, or coff.
22741linux*oldld* | linux*aout* | linux*coff*)
22742  dynamic_linker=no
22743  ;;
22744
22745# This must be Linux ELF.
22746linux*)
22747  version_type=linux
22748  need_lib_prefix=no
22749  need_version=no
22750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751  soname_spec='${libname}${release}${shared_ext}$major'
22752  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22753  shlibpath_var=LD_LIBRARY_PATH
22754  shlibpath_overrides_runpath=no
22755  # This implies no fast_install, which is unacceptable.
22756  # Some rework will be needed to allow for fast_install
22757  # before this can be enabled.
22758  hardcode_into_libs=yes
22759
22760  # Append ld.so.conf contents to the search path
22761  if test -f /etc/ld.so.conf; then
22762    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22763    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22764  fi
22765
22766  # We used to test for /lib/ld.so.1 and disable shared libraries on
22767  # powerpc, because MkLinux only supported shared libraries with the
22768  # GNU dynamic linker.  Since this was broken with cross compilers,
22769  # most powerpc-linux boxes support dynamic linking these days and
22770  # people can always --disable-shared, the test was removed, and we
22771  # assume the GNU/Linux dynamic linker is in use.
22772  dynamic_linker='GNU/Linux ld.so'
22773  ;;
22774
22775knetbsd*-gnu)
22776  version_type=linux
22777  need_lib_prefix=no
22778  need_version=no
22779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22780  soname_spec='${libname}${release}${shared_ext}$major'
22781  shlibpath_var=LD_LIBRARY_PATH
22782  shlibpath_overrides_runpath=no
22783  hardcode_into_libs=yes
22784  dynamic_linker='GNU ld.so'
22785  ;;
22786
22787netbsd*)
22788  version_type=sunos
22789  need_lib_prefix=no
22790  need_version=no
22791  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22792    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22793    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22794    dynamic_linker='NetBSD (a.out) ld.so'
22795  else
22796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22797    soname_spec='${libname}${release}${shared_ext}$major'
22798    dynamic_linker='NetBSD ld.elf_so'
22799  fi
22800  shlibpath_var=LD_LIBRARY_PATH
22801  shlibpath_overrides_runpath=yes
22802  hardcode_into_libs=yes
22803  ;;
22804
22805newsos6)
22806  version_type=linux
22807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22808  shlibpath_var=LD_LIBRARY_PATH
22809  shlibpath_overrides_runpath=yes
22810  ;;
22811
22812nto-qnx*)
22813  version_type=linux
22814  need_lib_prefix=no
22815  need_version=no
22816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22817  soname_spec='${libname}${release}${shared_ext}$major'
22818  shlibpath_var=LD_LIBRARY_PATH
22819  shlibpath_overrides_runpath=yes
22820  ;;
22821
22822openbsd*)
22823  version_type=sunos
22824  need_lib_prefix=no
22825  need_version=no
22826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22827  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22828  shlibpath_var=LD_LIBRARY_PATH
22829  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22830    case $host_os in
22831      openbsd2.[89] | openbsd2.[89].*)
22832	shlibpath_overrides_runpath=no
22833	;;
22834      *)
22835	shlibpath_overrides_runpath=yes
22836	;;
22837      esac
22838  else
22839    shlibpath_overrides_runpath=yes
22840  fi
22841  ;;
22842
22843os2*)
22844  libname_spec='$name'
22845  shrext_cmds=".dll"
22846  need_lib_prefix=no
22847  library_names_spec='$libname${shared_ext} $libname.a'
22848  dynamic_linker='OS/2 ld.exe'
22849  shlibpath_var=LIBPATH
22850  ;;
22851
22852osf3* | osf4* | osf5*)
22853  version_type=osf
22854  need_lib_prefix=no
22855  need_version=no
22856  soname_spec='${libname}${release}${shared_ext}$major'
22857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22858  shlibpath_var=LD_LIBRARY_PATH
22859  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22860  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22861  ;;
22862
22863sco3.2v5*)
22864  version_type=osf
22865  soname_spec='${libname}${release}${shared_ext}$major'
22866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22867  shlibpath_var=LD_LIBRARY_PATH
22868  ;;
22869
22870solaris*)
22871  version_type=linux
22872  need_lib_prefix=no
22873  need_version=no
22874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875  soname_spec='${libname}${release}${shared_ext}$major'
22876  shlibpath_var=LD_LIBRARY_PATH
22877  shlibpath_overrides_runpath=yes
22878  hardcode_into_libs=yes
22879  # ldd complains unless libraries are executable
22880  postinstall_cmds='chmod +x $lib'
22881  ;;
22882
22883sunos4*)
22884  version_type=sunos
22885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22886  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22887  shlibpath_var=LD_LIBRARY_PATH
22888  shlibpath_overrides_runpath=yes
22889  if test "$with_gnu_ld" = yes; then
22890    need_lib_prefix=no
22891  fi
22892  need_version=yes
22893  ;;
22894
22895sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22896  version_type=linux
22897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898  soname_spec='${libname}${release}${shared_ext}$major'
22899  shlibpath_var=LD_LIBRARY_PATH
22900  case $host_vendor in
22901    sni)
22902      shlibpath_overrides_runpath=no
22903      need_lib_prefix=no
22904      export_dynamic_flag_spec='${wl}-Blargedynsym'
22905      runpath_var=LD_RUN_PATH
22906      ;;
22907    siemens)
22908      need_lib_prefix=no
22909      ;;
22910    motorola)
22911      need_lib_prefix=no
22912      need_version=no
22913      shlibpath_overrides_runpath=no
22914      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22915      ;;
22916  esac
22917  ;;
22918
22919sysv4*MP*)
22920  if test -d /usr/nec ;then
22921    version_type=linux
22922    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22923    soname_spec='$libname${shared_ext}.$major'
22924    shlibpath_var=LD_LIBRARY_PATH
22925  fi
22926  ;;
22927
22928uts4*)
22929  version_type=linux
22930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931  soname_spec='${libname}${release}${shared_ext}$major'
22932  shlibpath_var=LD_LIBRARY_PATH
22933  ;;
22934
22935*)
22936  dynamic_linker=no
22937  ;;
22938esac
22939echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22940echo "${ECHO_T}$dynamic_linker" >&6
22941test "$dynamic_linker" = no && can_build_shared=no
22942
22943echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22944echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22945hardcode_action_GCJ=
22946if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22947   test -n "$runpath_var_GCJ" || \
22948   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22949
22950  # We can hardcode non-existant directories.
22951  if test "$hardcode_direct_GCJ" != no &&
22952     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22953     # have to relink, otherwise we might link with an installed library
22954     # when we should be linking with a yet-to-be-installed one
22955     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22956     test "$hardcode_minus_L_GCJ" != no; then
22957    # Linking always hardcodes the temporary library directory.
22958    hardcode_action_GCJ=relink
22959  else
22960    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22961    hardcode_action_GCJ=immediate
22962  fi
22963else
22964  # We cannot hardcode anything, or else we can only hardcode existing
22965  # directories.
22966  hardcode_action_GCJ=unsupported
22967fi
22968echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22969echo "${ECHO_T}$hardcode_action_GCJ" >&6
22970
22971if test "$hardcode_action_GCJ" = relink; then
22972  # Fast installation is not supported
22973  enable_fast_install=no
22974elif test "$shlibpath_overrides_runpath" = yes ||
22975     test "$enable_shared" = no; then
22976  # Fast installation is not necessary
22977  enable_fast_install=needless
22978fi
22979
22980striplib=
22981old_striplib=
22982echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22983echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22984if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22985  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22986  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22987  echo "$as_me:$LINENO: result: yes" >&5
22988echo "${ECHO_T}yes" >&6
22989else
22990# FIXME - insert some real tests, host_os isn't really good enough
22991  case $host_os in
22992   darwin*)
22993       if test -n "$STRIP" ; then
22994         striplib="$STRIP -x"
22995         echo "$as_me:$LINENO: result: yes" >&5
22996echo "${ECHO_T}yes" >&6
22997       else
22998  echo "$as_me:$LINENO: result: no" >&5
22999echo "${ECHO_T}no" >&6
23000fi
23001       ;;
23002   *)
23003  echo "$as_me:$LINENO: result: no" >&5
23004echo "${ECHO_T}no" >&6
23005    ;;
23006  esac
23007fi
23008
23009if test "x$enable_dlopen" != xyes; then
23010  enable_dlopen=unknown
23011  enable_dlopen_self=unknown
23012  enable_dlopen_self_static=unknown
23013else
23014  lt_cv_dlopen=no
23015  lt_cv_dlopen_libs=
23016
23017  case $host_os in
23018  beos*)
23019    lt_cv_dlopen="load_add_on"
23020    lt_cv_dlopen_libs=
23021    lt_cv_dlopen_self=yes
23022    ;;
23023
23024  mingw* | pw32*)
23025    lt_cv_dlopen="LoadLibrary"
23026    lt_cv_dlopen_libs=
23027   ;;
23028
23029  cygwin*)
23030    lt_cv_dlopen="dlopen"
23031    lt_cv_dlopen_libs=
23032   ;;
23033
23034  darwin*)
23035  # if libdl is installed we need to link against it
23036    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23037echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23038if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23039  echo $ECHO_N "(cached) $ECHO_C" >&6
23040else
23041  ac_check_lib_save_LIBS=$LIBS
23042LIBS="-ldl  $LIBS"
23043cat >conftest.$ac_ext <<_ACEOF
23044/* confdefs.h.  */
23045_ACEOF
23046cat confdefs.h >>conftest.$ac_ext
23047cat >>conftest.$ac_ext <<_ACEOF
23048/* end confdefs.h.  */
23049
23050/* Override any gcc2 internal prototype to avoid an error.  */
23051#ifdef __cplusplus
23052extern "C"
23053#endif
23054/* We use char because int might match the return type of a gcc2
23055   builtin and then its argument prototype would still apply.  */
23056char dlopen ();
23057int
23058main ()
23059{
23060dlopen ();
23061  ;
23062  return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext conftest$ac_exeext
23066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067  (eval $ac_link) 2>conftest.er1
23068  ac_status=$?
23069  grep -v '^ *+' conftest.er1 >conftest.err
23070  rm -f conftest.er1
23071  cat conftest.err >&5
23072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073  (exit $ac_status); } &&
23074	 { ac_try='test -z "$ac_c_werror_flag"
23075			 || test ! -s conftest.err'
23076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077  (eval $ac_try) 2>&5
23078  ac_status=$?
23079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080  (exit $ac_status); }; } &&
23081	 { ac_try='test -s conftest$ac_exeext'
23082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083  (eval $ac_try) 2>&5
23084  ac_status=$?
23085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086  (exit $ac_status); }; }; then
23087  ac_cv_lib_dl_dlopen=yes
23088else
23089  echo "$as_me: failed program was:" >&5
23090sed 's/^/| /' conftest.$ac_ext >&5
23091
23092ac_cv_lib_dl_dlopen=no
23093fi
23094rm -f conftest.err conftest.$ac_objext \
23095      conftest$ac_exeext conftest.$ac_ext
23096LIBS=$ac_check_lib_save_LIBS
23097fi
23098echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23100if test $ac_cv_lib_dl_dlopen = yes; then
23101  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23102else
23103
23104    lt_cv_dlopen="dyld"
23105    lt_cv_dlopen_libs=
23106    lt_cv_dlopen_self=yes
23107
23108fi
23109
23110   ;;
23111
23112  *)
23113    echo "$as_me:$LINENO: checking for shl_load" >&5
23114echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23115if test "${ac_cv_func_shl_load+set}" = set; then
23116  echo $ECHO_N "(cached) $ECHO_C" >&6
23117else
23118  cat >conftest.$ac_ext <<_ACEOF
23119/* confdefs.h.  */
23120_ACEOF
23121cat confdefs.h >>conftest.$ac_ext
23122cat >>conftest.$ac_ext <<_ACEOF
23123/* end confdefs.h.  */
23124/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23126#define shl_load innocuous_shl_load
23127
23128/* System header to define __stub macros and hopefully few prototypes,
23129    which can conflict with char shl_load (); below.
23130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23131    <limits.h> exists even on freestanding compilers.  */
23132
23133#ifdef __STDC__
23134# include <limits.h>
23135#else
23136# include <assert.h>
23137#endif
23138
23139#undef shl_load
23140
23141/* Override any gcc2 internal prototype to avoid an error.  */
23142#ifdef __cplusplus
23143extern "C"
23144{
23145#endif
23146/* We use char because int might match the return type of a gcc2
23147   builtin and then its argument prototype would still apply.  */
23148char shl_load ();
23149/* The GNU C library defines this for functions which it implements
23150    to always fail with ENOSYS.  Some functions are actually named
23151    something starting with __ and the normal name is an alias.  */
23152#if defined (__stub_shl_load) || defined (__stub___shl_load)
23153choke me
23154#else
23155char (*f) () = shl_load;
23156#endif
23157#ifdef __cplusplus
23158}
23159#endif
23160
23161int
23162main ()
23163{
23164return f != shl_load;
23165  ;
23166  return 0;
23167}
23168_ACEOF
23169rm -f conftest.$ac_objext conftest$ac_exeext
23170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23171  (eval $ac_link) 2>conftest.er1
23172  ac_status=$?
23173  grep -v '^ *+' conftest.er1 >conftest.err
23174  rm -f conftest.er1
23175  cat conftest.err >&5
23176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177  (exit $ac_status); } &&
23178	 { ac_try='test -z "$ac_c_werror_flag"
23179			 || test ! -s conftest.err'
23180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181  (eval $ac_try) 2>&5
23182  ac_status=$?
23183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184  (exit $ac_status); }; } &&
23185	 { ac_try='test -s conftest$ac_exeext'
23186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187  (eval $ac_try) 2>&5
23188  ac_status=$?
23189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190  (exit $ac_status); }; }; then
23191  ac_cv_func_shl_load=yes
23192else
23193  echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196ac_cv_func_shl_load=no
23197fi
23198rm -f conftest.err conftest.$ac_objext \
23199      conftest$ac_exeext conftest.$ac_ext
23200fi
23201echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23202echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23203if test $ac_cv_func_shl_load = yes; then
23204  lt_cv_dlopen="shl_load"
23205else
23206  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23207echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23208if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23209  echo $ECHO_N "(cached) $ECHO_C" >&6
23210else
23211  ac_check_lib_save_LIBS=$LIBS
23212LIBS="-ldld  $LIBS"
23213cat >conftest.$ac_ext <<_ACEOF
23214/* confdefs.h.  */
23215_ACEOF
23216cat confdefs.h >>conftest.$ac_ext
23217cat >>conftest.$ac_ext <<_ACEOF
23218/* end confdefs.h.  */
23219
23220/* Override any gcc2 internal prototype to avoid an error.  */
23221#ifdef __cplusplus
23222extern "C"
23223#endif
23224/* We use char because int might match the return type of a gcc2
23225   builtin and then its argument prototype would still apply.  */
23226char shl_load ();
23227int
23228main ()
23229{
23230shl_load ();
23231  ;
23232  return 0;
23233}
23234_ACEOF
23235rm -f conftest.$ac_objext conftest$ac_exeext
23236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237  (eval $ac_link) 2>conftest.er1
23238  ac_status=$?
23239  grep -v '^ *+' conftest.er1 >conftest.err
23240  rm -f conftest.er1
23241  cat conftest.err >&5
23242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243  (exit $ac_status); } &&
23244	 { ac_try='test -z "$ac_c_werror_flag"
23245			 || test ! -s conftest.err'
23246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247  (eval $ac_try) 2>&5
23248  ac_status=$?
23249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250  (exit $ac_status); }; } &&
23251	 { ac_try='test -s conftest$ac_exeext'
23252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253  (eval $ac_try) 2>&5
23254  ac_status=$?
23255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256  (exit $ac_status); }; }; then
23257  ac_cv_lib_dld_shl_load=yes
23258else
23259  echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
23262ac_cv_lib_dld_shl_load=no
23263fi
23264rm -f conftest.err conftest.$ac_objext \
23265      conftest$ac_exeext conftest.$ac_ext
23266LIBS=$ac_check_lib_save_LIBS
23267fi
23268echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23269echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23270if test $ac_cv_lib_dld_shl_load = yes; then
23271  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23272else
23273  echo "$as_me:$LINENO: checking for dlopen" >&5
23274echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23275if test "${ac_cv_func_dlopen+set}" = set; then
23276  echo $ECHO_N "(cached) $ECHO_C" >&6
23277else
23278  cat >conftest.$ac_ext <<_ACEOF
23279/* confdefs.h.  */
23280_ACEOF
23281cat confdefs.h >>conftest.$ac_ext
23282cat >>conftest.$ac_ext <<_ACEOF
23283/* end confdefs.h.  */
23284/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23285   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23286#define dlopen innocuous_dlopen
23287
23288/* System header to define __stub macros and hopefully few prototypes,
23289    which can conflict with char dlopen (); below.
23290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23291    <limits.h> exists even on freestanding compilers.  */
23292
23293#ifdef __STDC__
23294# include <limits.h>
23295#else
23296# include <assert.h>
23297#endif
23298
23299#undef dlopen
23300
23301/* Override any gcc2 internal prototype to avoid an error.  */
23302#ifdef __cplusplus
23303extern "C"
23304{
23305#endif
23306/* We use char because int might match the return type of a gcc2
23307   builtin and then its argument prototype would still apply.  */
23308char dlopen ();
23309/* The GNU C library defines this for functions which it implements
23310    to always fail with ENOSYS.  Some functions are actually named
23311    something starting with __ and the normal name is an alias.  */
23312#if defined (__stub_dlopen) || defined (__stub___dlopen)
23313choke me
23314#else
23315char (*f) () = dlopen;
23316#endif
23317#ifdef __cplusplus
23318}
23319#endif
23320
23321int
23322main ()
23323{
23324return f != dlopen;
23325  ;
23326  return 0;
23327}
23328_ACEOF
23329rm -f conftest.$ac_objext conftest$ac_exeext
23330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331  (eval $ac_link) 2>conftest.er1
23332  ac_status=$?
23333  grep -v '^ *+' conftest.er1 >conftest.err
23334  rm -f conftest.er1
23335  cat conftest.err >&5
23336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337  (exit $ac_status); } &&
23338	 { ac_try='test -z "$ac_c_werror_flag"
23339			 || test ! -s conftest.err'
23340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341  (eval $ac_try) 2>&5
23342  ac_status=$?
23343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344  (exit $ac_status); }; } &&
23345	 { ac_try='test -s conftest$ac_exeext'
23346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347  (eval $ac_try) 2>&5
23348  ac_status=$?
23349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350  (exit $ac_status); }; }; then
23351  ac_cv_func_dlopen=yes
23352else
23353  echo "$as_me: failed program was:" >&5
23354sed 's/^/| /' conftest.$ac_ext >&5
23355
23356ac_cv_func_dlopen=no
23357fi
23358rm -f conftest.err conftest.$ac_objext \
23359      conftest$ac_exeext conftest.$ac_ext
23360fi
23361echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23362echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23363if test $ac_cv_func_dlopen = yes; then
23364  lt_cv_dlopen="dlopen"
23365else
23366  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23369  echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371  ac_check_lib_save_LIBS=$LIBS
23372LIBS="-ldl  $LIBS"
23373cat >conftest.$ac_ext <<_ACEOF
23374/* confdefs.h.  */
23375_ACEOF
23376cat confdefs.h >>conftest.$ac_ext
23377cat >>conftest.$ac_ext <<_ACEOF
23378/* end confdefs.h.  */
23379
23380/* Override any gcc2 internal prototype to avoid an error.  */
23381#ifdef __cplusplus
23382extern "C"
23383#endif
23384/* We use char because int might match the return type of a gcc2
23385   builtin and then its argument prototype would still apply.  */
23386char dlopen ();
23387int
23388main ()
23389{
23390dlopen ();
23391  ;
23392  return 0;
23393}
23394_ACEOF
23395rm -f conftest.$ac_objext conftest$ac_exeext
23396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23397  (eval $ac_link) 2>conftest.er1
23398  ac_status=$?
23399  grep -v '^ *+' conftest.er1 >conftest.err
23400  rm -f conftest.er1
23401  cat conftest.err >&5
23402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403  (exit $ac_status); } &&
23404	 { ac_try='test -z "$ac_c_werror_flag"
23405			 || test ! -s conftest.err'
23406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407  (eval $ac_try) 2>&5
23408  ac_status=$?
23409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410  (exit $ac_status); }; } &&
23411	 { ac_try='test -s conftest$ac_exeext'
23412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413  (eval $ac_try) 2>&5
23414  ac_status=$?
23415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416  (exit $ac_status); }; }; then
23417  ac_cv_lib_dl_dlopen=yes
23418else
23419  echo "$as_me: failed program was:" >&5
23420sed 's/^/| /' conftest.$ac_ext >&5
23421
23422ac_cv_lib_dl_dlopen=no
23423fi
23424rm -f conftest.err conftest.$ac_objext \
23425      conftest$ac_exeext conftest.$ac_ext
23426LIBS=$ac_check_lib_save_LIBS
23427fi
23428echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23429echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23430if test $ac_cv_lib_dl_dlopen = yes; then
23431  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23432else
23433  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23434echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23435if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23436  echo $ECHO_N "(cached) $ECHO_C" >&6
23437else
23438  ac_check_lib_save_LIBS=$LIBS
23439LIBS="-lsvld  $LIBS"
23440cat >conftest.$ac_ext <<_ACEOF
23441/* confdefs.h.  */
23442_ACEOF
23443cat confdefs.h >>conftest.$ac_ext
23444cat >>conftest.$ac_ext <<_ACEOF
23445/* end confdefs.h.  */
23446
23447/* Override any gcc2 internal prototype to avoid an error.  */
23448#ifdef __cplusplus
23449extern "C"
23450#endif
23451/* We use char because int might match the return type of a gcc2
23452   builtin and then its argument prototype would still apply.  */
23453char dlopen ();
23454int
23455main ()
23456{
23457dlopen ();
23458  ;
23459  return 0;
23460}
23461_ACEOF
23462rm -f conftest.$ac_objext conftest$ac_exeext
23463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23464  (eval $ac_link) 2>conftest.er1
23465  ac_status=$?
23466  grep -v '^ *+' conftest.er1 >conftest.err
23467  rm -f conftest.er1
23468  cat conftest.err >&5
23469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470  (exit $ac_status); } &&
23471	 { ac_try='test -z "$ac_c_werror_flag"
23472			 || test ! -s conftest.err'
23473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474  (eval $ac_try) 2>&5
23475  ac_status=$?
23476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477  (exit $ac_status); }; } &&
23478	 { ac_try='test -s conftest$ac_exeext'
23479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480  (eval $ac_try) 2>&5
23481  ac_status=$?
23482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483  (exit $ac_status); }; }; then
23484  ac_cv_lib_svld_dlopen=yes
23485else
23486  echo "$as_me: failed program was:" >&5
23487sed 's/^/| /' conftest.$ac_ext >&5
23488
23489ac_cv_lib_svld_dlopen=no
23490fi
23491rm -f conftest.err conftest.$ac_objext \
23492      conftest$ac_exeext conftest.$ac_ext
23493LIBS=$ac_check_lib_save_LIBS
23494fi
23495echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23496echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23497if test $ac_cv_lib_svld_dlopen = yes; then
23498  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23499else
23500  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23501echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23502if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23503  echo $ECHO_N "(cached) $ECHO_C" >&6
23504else
23505  ac_check_lib_save_LIBS=$LIBS
23506LIBS="-ldld  $LIBS"
23507cat >conftest.$ac_ext <<_ACEOF
23508/* confdefs.h.  */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h.  */
23513
23514/* Override any gcc2 internal prototype to avoid an error.  */
23515#ifdef __cplusplus
23516extern "C"
23517#endif
23518/* We use char because int might match the return type of a gcc2
23519   builtin and then its argument prototype would still apply.  */
23520char dld_link ();
23521int
23522main ()
23523{
23524dld_link ();
23525  ;
23526  return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext conftest$ac_exeext
23530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23531  (eval $ac_link) 2>conftest.er1
23532  ac_status=$?
23533  grep -v '^ *+' conftest.er1 >conftest.err
23534  rm -f conftest.er1
23535  cat conftest.err >&5
23536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537  (exit $ac_status); } &&
23538	 { ac_try='test -z "$ac_c_werror_flag"
23539			 || test ! -s conftest.err'
23540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541  (eval $ac_try) 2>&5
23542  ac_status=$?
23543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544  (exit $ac_status); }; } &&
23545	 { ac_try='test -s conftest$ac_exeext'
23546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547  (eval $ac_try) 2>&5
23548  ac_status=$?
23549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550  (exit $ac_status); }; }; then
23551  ac_cv_lib_dld_dld_link=yes
23552else
23553  echo "$as_me: failed program was:" >&5
23554sed 's/^/| /' conftest.$ac_ext >&5
23555
23556ac_cv_lib_dld_dld_link=no
23557fi
23558rm -f conftest.err conftest.$ac_objext \
23559      conftest$ac_exeext conftest.$ac_ext
23560LIBS=$ac_check_lib_save_LIBS
23561fi
23562echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23563echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23564if test $ac_cv_lib_dld_dld_link = yes; then
23565  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23566fi
23567
23568
23569fi
23570
23571
23572fi
23573
23574
23575fi
23576
23577
23578fi
23579
23580
23581fi
23582
23583    ;;
23584  esac
23585
23586  if test "x$lt_cv_dlopen" != xno; then
23587    enable_dlopen=yes
23588  else
23589    enable_dlopen=no
23590  fi
23591
23592  case $lt_cv_dlopen in
23593  dlopen)
23594    save_CPPFLAGS="$CPPFLAGS"
23595    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23596
23597    save_LDFLAGS="$LDFLAGS"
23598    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23599
23600    save_LIBS="$LIBS"
23601    LIBS="$lt_cv_dlopen_libs $LIBS"
23602
23603    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23604echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23605if test "${lt_cv_dlopen_self+set}" = set; then
23606  echo $ECHO_N "(cached) $ECHO_C" >&6
23607else
23608  	  if test "$cross_compiling" = yes; then :
23609  lt_cv_dlopen_self=cross
23610else
23611  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23612  lt_status=$lt_dlunknown
23613  cat > conftest.$ac_ext <<EOF
23614#line 23614 "configure"
23615#include "confdefs.h"
23616
23617#if HAVE_DLFCN_H
23618#include <dlfcn.h>
23619#endif
23620
23621#include <stdio.h>
23622
23623#ifdef RTLD_GLOBAL
23624#  define LT_DLGLOBAL		RTLD_GLOBAL
23625#else
23626#  ifdef DL_GLOBAL
23627#    define LT_DLGLOBAL		DL_GLOBAL
23628#  else
23629#    define LT_DLGLOBAL		0
23630#  endif
23631#endif
23632
23633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23634   find out it does not work in some platform. */
23635#ifndef LT_DLLAZY_OR_NOW
23636#  ifdef RTLD_LAZY
23637#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23638#  else
23639#    ifdef DL_LAZY
23640#      define LT_DLLAZY_OR_NOW		DL_LAZY
23641#    else
23642#      ifdef RTLD_NOW
23643#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23644#      else
23645#        ifdef DL_NOW
23646#          define LT_DLLAZY_OR_NOW	DL_NOW
23647#        else
23648#          define LT_DLLAZY_OR_NOW	0
23649#        endif
23650#      endif
23651#    endif
23652#  endif
23653#endif
23654
23655#ifdef __cplusplus
23656extern "C" void exit (int);
23657#endif
23658
23659void fnord() { int i=42;}
23660int main ()
23661{
23662  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23663  int status = $lt_dlunknown;
23664
23665  if (self)
23666    {
23667      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23668      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23669      /* dlclose (self); */
23670    }
23671
23672    exit (status);
23673}
23674EOF
23675  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676  (eval $ac_link) 2>&5
23677  ac_status=$?
23678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23680    (./conftest; exit; ) 2>/dev/null
23681    lt_status=$?
23682    case x$lt_status in
23683      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23684      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23685      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23686    esac
23687  else :
23688    # compilation failed
23689    lt_cv_dlopen_self=no
23690  fi
23691fi
23692rm -fr conftest*
23693
23694
23695fi
23696echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23697echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23698
23699    if test "x$lt_cv_dlopen_self" = xyes; then
23700      LDFLAGS="$LDFLAGS $link_static_flag"
23701      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23702echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23703if test "${lt_cv_dlopen_self_static+set}" = set; then
23704  echo $ECHO_N "(cached) $ECHO_C" >&6
23705else
23706  	  if test "$cross_compiling" = yes; then :
23707  lt_cv_dlopen_self_static=cross
23708else
23709  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23710  lt_status=$lt_dlunknown
23711  cat > conftest.$ac_ext <<EOF
23712#line 23712 "configure"
23713#include "confdefs.h"
23714
23715#if HAVE_DLFCN_H
23716#include <dlfcn.h>
23717#endif
23718
23719#include <stdio.h>
23720
23721#ifdef RTLD_GLOBAL
23722#  define LT_DLGLOBAL		RTLD_GLOBAL
23723#else
23724#  ifdef DL_GLOBAL
23725#    define LT_DLGLOBAL		DL_GLOBAL
23726#  else
23727#    define LT_DLGLOBAL		0
23728#  endif
23729#endif
23730
23731/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23732   find out it does not work in some platform. */
23733#ifndef LT_DLLAZY_OR_NOW
23734#  ifdef RTLD_LAZY
23735#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23736#  else
23737#    ifdef DL_LAZY
23738#      define LT_DLLAZY_OR_NOW		DL_LAZY
23739#    else
23740#      ifdef RTLD_NOW
23741#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23742#      else
23743#        ifdef DL_NOW
23744#          define LT_DLLAZY_OR_NOW	DL_NOW
23745#        else
23746#          define LT_DLLAZY_OR_NOW	0
23747#        endif
23748#      endif
23749#    endif
23750#  endif
23751#endif
23752
23753#ifdef __cplusplus
23754extern "C" void exit (int);
23755#endif
23756
23757void fnord() { int i=42;}
23758int main ()
23759{
23760  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23761  int status = $lt_dlunknown;
23762
23763  if (self)
23764    {
23765      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23766      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23767      /* dlclose (self); */
23768    }
23769
23770    exit (status);
23771}
23772EOF
23773  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774  (eval $ac_link) 2>&5
23775  ac_status=$?
23776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23778    (./conftest; exit; ) 2>/dev/null
23779    lt_status=$?
23780    case x$lt_status in
23781      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23782      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23783      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23784    esac
23785  else :
23786    # compilation failed
23787    lt_cv_dlopen_self_static=no
23788  fi
23789fi
23790rm -fr conftest*
23791
23792
23793fi
23794echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23795echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23796    fi
23797
23798    CPPFLAGS="$save_CPPFLAGS"
23799    LDFLAGS="$save_LDFLAGS"
23800    LIBS="$save_LIBS"
23801    ;;
23802  esac
23803
23804  case $lt_cv_dlopen_self in
23805  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23806  *) enable_dlopen_self=unknown ;;
23807  esac
23808
23809  case $lt_cv_dlopen_self_static in
23810  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23811  *) enable_dlopen_self_static=unknown ;;
23812  esac
23813fi
23814
23815
23816# The else clause should only fire when bootstrapping the
23817# libtool distribution, otherwise you forgot to ship ltmain.sh
23818# with your package, and you will get complaints that there are
23819# no rules to generate ltmain.sh.
23820if test -f "$ltmain"; then
23821  # See if we are running on zsh, and set the options which allow our commands through
23822  # without removal of \ escapes.
23823  if test -n "${ZSH_VERSION+set}" ; then
23824    setopt NO_GLOB_SUBST
23825  fi
23826  # Now quote all the things that may contain metacharacters while being
23827  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23828  # variables and quote the copies for generation of the libtool script.
23829  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23830    SED SHELL STRIP \
23831    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23832    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23833    deplibs_check_method reload_flag reload_cmds need_locks \
23834    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23835    lt_cv_sys_global_symbol_to_c_name_address \
23836    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23837    old_postinstall_cmds old_postuninstall_cmds \
23838    compiler_GCJ \
23839    CC_GCJ \
23840    LD_GCJ \
23841    lt_prog_compiler_wl_GCJ \
23842    lt_prog_compiler_pic_GCJ \
23843    lt_prog_compiler_static_GCJ \
23844    lt_prog_compiler_no_builtin_flag_GCJ \
23845    export_dynamic_flag_spec_GCJ \
23846    thread_safe_flag_spec_GCJ \
23847    whole_archive_flag_spec_GCJ \
23848    enable_shared_with_static_runtimes_GCJ \
23849    old_archive_cmds_GCJ \
23850    old_archive_from_new_cmds_GCJ \
23851    predep_objects_GCJ \
23852    postdep_objects_GCJ \
23853    predeps_GCJ \
23854    postdeps_GCJ \
23855    compiler_lib_search_path_GCJ \
23856    archive_cmds_GCJ \
23857    archive_expsym_cmds_GCJ \
23858    postinstall_cmds_GCJ \
23859    postuninstall_cmds_GCJ \
23860    old_archive_from_expsyms_cmds_GCJ \
23861    allow_undefined_flag_GCJ \
23862    no_undefined_flag_GCJ \
23863    export_symbols_cmds_GCJ \
23864    hardcode_libdir_flag_spec_GCJ \
23865    hardcode_libdir_flag_spec_ld_GCJ \
23866    hardcode_libdir_separator_GCJ \
23867    hardcode_automatic_GCJ \
23868    module_cmds_GCJ \
23869    module_expsym_cmds_GCJ \
23870    lt_cv_prog_compiler_c_o_GCJ \
23871    exclude_expsyms_GCJ \
23872    include_expsyms_GCJ; do
23873
23874    case $var in
23875    old_archive_cmds_GCJ | \
23876    old_archive_from_new_cmds_GCJ | \
23877    archive_cmds_GCJ | \
23878    archive_expsym_cmds_GCJ | \
23879    module_cmds_GCJ | \
23880    module_expsym_cmds_GCJ | \
23881    old_archive_from_expsyms_cmds_GCJ | \
23882    export_symbols_cmds_GCJ | \
23883    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23884    postinstall_cmds | postuninstall_cmds | \
23885    old_postinstall_cmds | old_postuninstall_cmds | \
23886    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23887      # Double-quote double-evaled strings.
23888      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23889      ;;
23890    *)
23891      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23892      ;;
23893    esac
23894  done
23895
23896  case $lt_echo in
23897  *'\$0 --fallback-echo"')
23898    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23899    ;;
23900  esac
23901
23902cfgfile="$ofile"
23903
23904  cat <<__EOF__ >> "$cfgfile"
23905# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23906
23907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23908
23909# Shell to use when invoking shell scripts.
23910SHELL=$lt_SHELL
23911
23912# Whether or not to build shared libraries.
23913build_libtool_libs=$enable_shared
23914
23915# Whether or not to build static libraries.
23916build_old_libs=$enable_static
23917
23918# Whether or not to add -lc for building shared libraries.
23919build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23920
23921# Whether or not to disallow shared libs when runtime libs are static
23922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23923
23924# Whether or not to optimize for fast installation.
23925fast_install=$enable_fast_install
23926
23927# The host system.
23928host_alias=$host_alias
23929host=$host
23930
23931# An echo program that does not interpret backslashes.
23932echo=$lt_echo
23933
23934# The archiver.
23935AR=$lt_AR
23936AR_FLAGS=$lt_AR_FLAGS
23937
23938# A C compiler.
23939LTCC=$lt_LTCC
23940
23941# A language-specific compiler.
23942CC=$lt_compiler_GCJ
23943
23944# Is the compiler the GNU C compiler?
23945with_gcc=$GCC_GCJ
23946
23947# An ERE matcher.
23948EGREP=$lt_EGREP
23949
23950# The linker used to build libraries.
23951LD=$lt_LD_GCJ
23952
23953# Whether we need hard or soft links.
23954LN_S=$lt_LN_S
23955
23956# A BSD-compatible nm program.
23957NM=$lt_NM
23958
23959# A symbol stripping program
23960STRIP=$lt_STRIP
23961
23962# Used to examine libraries when file_magic_cmd begins "file"
23963MAGIC_CMD=$MAGIC_CMD
23964
23965# Used on cygwin: DLL creation program.
23966DLLTOOL="$DLLTOOL"
23967
23968# Used on cygwin: object dumper.
23969OBJDUMP="$OBJDUMP"
23970
23971# Used on cygwin: assembler.
23972AS="$AS"
23973
23974# The name of the directory that contains temporary libtool files.
23975objdir=$objdir
23976
23977# How to create reloadable object files.
23978reload_flag=$lt_reload_flag
23979reload_cmds=$lt_reload_cmds
23980
23981# How to pass a linker flag through the compiler.
23982wl=$lt_lt_prog_compiler_wl_GCJ
23983
23984# Object file suffix (normally "o").
23985objext="$ac_objext"
23986
23987# Old archive suffix (normally "a").
23988libext="$libext"
23989
23990# Shared library suffix (normally ".so").
23991shrext_cmds='$shrext_cmds'
23992
23993# Executable file suffix (normally "").
23994exeext="$exeext"
23995
23996# Additional compiler flags for building library objects.
23997pic_flag=$lt_lt_prog_compiler_pic_GCJ
23998pic_mode=$pic_mode
23999
24000# What is the maximum length of a command?
24001max_cmd_len=$lt_cv_sys_max_cmd_len
24002
24003# Does compiler simultaneously support -c and -o options?
24004compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24005
24006# Must we lock files when doing compilation ?
24007need_locks=$lt_need_locks
24008
24009# Do we need the lib prefix for modules?
24010need_lib_prefix=$need_lib_prefix
24011
24012# Do we need a version for libraries?
24013need_version=$need_version
24014
24015# Whether dlopen is supported.
24016dlopen_support=$enable_dlopen
24017
24018# Whether dlopen of programs is supported.
24019dlopen_self=$enable_dlopen_self
24020
24021# Whether dlopen of statically linked programs is supported.
24022dlopen_self_static=$enable_dlopen_self_static
24023
24024# Compiler flag to prevent dynamic linking.
24025link_static_flag=$lt_lt_prog_compiler_static_GCJ
24026
24027# Compiler flag to turn off builtin functions.
24028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24029
24030# Compiler flag to allow reflexive dlopens.
24031export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24032
24033# Compiler flag to generate shared objects directly from archives.
24034whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24035
24036# Compiler flag to generate thread-safe objects.
24037thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24038
24039# Library versioning type.
24040version_type=$version_type
24041
24042# Format of library name prefix.
24043libname_spec=$lt_libname_spec
24044
24045# List of archive names.  First name is the real one, the rest are links.
24046# The last name is the one that the linker finds with -lNAME.
24047library_names_spec=$lt_library_names_spec
24048
24049# The coded name of the library, if different from the real name.
24050soname_spec=$lt_soname_spec
24051
24052# Commands used to build and install an old-style archive.
24053RANLIB=$lt_RANLIB
24054old_archive_cmds=$lt_old_archive_cmds_GCJ
24055old_postinstall_cmds=$lt_old_postinstall_cmds
24056old_postuninstall_cmds=$lt_old_postuninstall_cmds
24057
24058# Create an old-style archive from a shared archive.
24059old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24060
24061# Create a temporary old-style archive to link instead of a shared archive.
24062old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24063
24064# Commands used to build and install a shared archive.
24065archive_cmds=$lt_archive_cmds_GCJ
24066archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24067postinstall_cmds=$lt_postinstall_cmds
24068postuninstall_cmds=$lt_postuninstall_cmds
24069
24070# Commands used to build a loadable module (assumed same as above if empty)
24071module_cmds=$lt_module_cmds_GCJ
24072module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24073
24074# Commands to strip libraries.
24075old_striplib=$lt_old_striplib
24076striplib=$lt_striplib
24077
24078# Dependencies to place before the objects being linked to create a
24079# shared library.
24080predep_objects=$lt_predep_objects_GCJ
24081
24082# Dependencies to place after the objects being linked to create a
24083# shared library.
24084postdep_objects=$lt_postdep_objects_GCJ
24085
24086# Dependencies to place before the objects being linked to create a
24087# shared library.
24088predeps=$lt_predeps_GCJ
24089
24090# Dependencies to place after the objects being linked to create a
24091# shared library.
24092postdeps=$lt_postdeps_GCJ
24093
24094# The library search path used internally by the compiler when linking
24095# a shared library.
24096compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24097
24098# Method to check whether dependent libraries are shared objects.
24099deplibs_check_method=$lt_deplibs_check_method
24100
24101# Command to use when deplibs_check_method == file_magic.
24102file_magic_cmd=$lt_file_magic_cmd
24103
24104# Flag that allows shared libraries with undefined symbols to be built.
24105allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24106
24107# Flag that forces no undefined symbols.
24108no_undefined_flag=$lt_no_undefined_flag_GCJ
24109
24110# Commands used to finish a libtool library installation in a directory.
24111finish_cmds=$lt_finish_cmds
24112
24113# Same as above, but a single script fragment to be evaled but not shown.
24114finish_eval=$lt_finish_eval
24115
24116# Take the output of nm and produce a listing of raw symbols and C names.
24117global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24118
24119# Transform the output of nm in a proper C declaration
24120global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24121
24122# Transform the output of nm in a C name address pair
24123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24124
24125# This is the shared library runtime path variable.
24126runpath_var=$runpath_var
24127
24128# This is the shared library path variable.
24129shlibpath_var=$shlibpath_var
24130
24131# Is shlibpath searched before the hard-coded library search path?
24132shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24133
24134# How to hardcode a shared library path into an executable.
24135hardcode_action=$hardcode_action_GCJ
24136
24137# Whether we should hardcode library paths into libraries.
24138hardcode_into_libs=$hardcode_into_libs
24139
24140# Flag to hardcode \$libdir into a binary during linking.
24141# This must work even if \$libdir does not exist.
24142hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24143
24144# If ld is used when linking, flag to hardcode \$libdir into
24145# a binary during linking. This must work even if \$libdir does
24146# not exist.
24147hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24148
24149# Whether we need a single -rpath flag with a separated argument.
24150hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24151
24152# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24153# resulting binary.
24154hardcode_direct=$hardcode_direct_GCJ
24155
24156# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24157# resulting binary.
24158hardcode_minus_L=$hardcode_minus_L_GCJ
24159
24160# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24161# the resulting binary.
24162hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24163
24164# Set to yes if building a shared library automatically hardcodes DIR into the library
24165# and all subsequent libraries and executables linked against it.
24166hardcode_automatic=$hardcode_automatic_GCJ
24167
24168# Variables whose values should be saved in libtool wrapper scripts and
24169# restored at relink time.
24170variables_saved_for_relink="$variables_saved_for_relink"
24171
24172# Whether libtool must link a program against all its dependency libraries.
24173link_all_deplibs=$link_all_deplibs_GCJ
24174
24175# Compile-time system search path for libraries
24176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24177
24178# Run-time system search path for libraries
24179sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24180
24181# Fix the shell variable \$srcfile for the compiler.
24182fix_srcfile_path="$fix_srcfile_path_GCJ"
24183
24184# Set to yes if exported symbols are required.
24185always_export_symbols=$always_export_symbols_GCJ
24186
24187# The commands to list exported symbols.
24188export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24189
24190# The commands to extract the exported symbol list from a shared archive.
24191extract_expsyms_cmds=$lt_extract_expsyms_cmds
24192
24193# Symbols that should not be listed in the preloaded symbols.
24194exclude_expsyms=$lt_exclude_expsyms_GCJ
24195
24196# Symbols that must always be exported.
24197include_expsyms=$lt_include_expsyms_GCJ
24198
24199# ### END LIBTOOL TAG CONFIG: $tagname
24200
24201__EOF__
24202
24203
24204else
24205  # If there is no Makefile yet, we rely on a make rule to execute
24206  # `config.status --recheck' to rerun these tests and create the
24207  # libtool script then.
24208  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24209  if test -f "$ltmain_in"; then
24210    test -f Makefile && make "$ltmain"
24211  fi
24212fi
24213
24214
24215ac_ext=c
24216ac_cpp='$CPP $CPPFLAGS'
24217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24219ac_compiler_gnu=$ac_cv_c_compiler_gnu
24220
24221CC="$lt_save_CC"
24222
24223	else
24224	  tagname=""
24225	fi
24226	;;
24227
24228      RC)
24229	ac_ext=c
24230ac_cpp='$CPP $CPPFLAGS'
24231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24233ac_compiler_gnu=$ac_cv_c_compiler_gnu
24234
24235
24236# Source file extension for RC test sources.
24237ac_ext=rc
24238
24239# Object file extension for compiled RC test sources.
24240objext=o
24241objext_RC=$objext
24242
24243# Code to be used in simple compile tests
24244lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24245
24246# Code to be used in simple link tests
24247lt_simple_link_test_code="$lt_simple_compile_test_code"
24248
24249# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24250
24251# If no C compiler was specified, use CC.
24252LTCC=${LTCC-"$CC"}
24253
24254# Allow CC to be a program name with arguments.
24255compiler=$CC
24256
24257
24258# Allow CC to be a program name with arguments.
24259lt_save_CC="$CC"
24260CC=${RC-"windres"}
24261compiler=$CC
24262compiler_RC=$CC
24263lt_cv_prog_compiler_c_o_RC=yes
24264
24265# The else clause should only fire when bootstrapping the
24266# libtool distribution, otherwise you forgot to ship ltmain.sh
24267# with your package, and you will get complaints that there are
24268# no rules to generate ltmain.sh.
24269if test -f "$ltmain"; then
24270  # See if we are running on zsh, and set the options which allow our commands through
24271  # without removal of \ escapes.
24272  if test -n "${ZSH_VERSION+set}" ; then
24273    setopt NO_GLOB_SUBST
24274  fi
24275  # Now quote all the things that may contain metacharacters while being
24276  # careful not to overquote the AC_SUBSTed values.  We take copies of the
24277  # variables and quote the copies for generation of the libtool script.
24278  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24279    SED SHELL STRIP \
24280    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24281    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24282    deplibs_check_method reload_flag reload_cmds need_locks \
24283    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24284    lt_cv_sys_global_symbol_to_c_name_address \
24285    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24286    old_postinstall_cmds old_postuninstall_cmds \
24287    compiler_RC \
24288    CC_RC \
24289    LD_RC \
24290    lt_prog_compiler_wl_RC \
24291    lt_prog_compiler_pic_RC \
24292    lt_prog_compiler_static_RC \
24293    lt_prog_compiler_no_builtin_flag_RC \
24294    export_dynamic_flag_spec_RC \
24295    thread_safe_flag_spec_RC \
24296    whole_archive_flag_spec_RC \
24297    enable_shared_with_static_runtimes_RC \
24298    old_archive_cmds_RC \
24299    old_archive_from_new_cmds_RC \
24300    predep_objects_RC \
24301    postdep_objects_RC \
24302    predeps_RC \
24303    postdeps_RC \
24304    compiler_lib_search_path_RC \
24305    archive_cmds_RC \
24306    archive_expsym_cmds_RC \
24307    postinstall_cmds_RC \
24308    postuninstall_cmds_RC \
24309    old_archive_from_expsyms_cmds_RC \
24310    allow_undefined_flag_RC \
24311    no_undefined_flag_RC \
24312    export_symbols_cmds_RC \
24313    hardcode_libdir_flag_spec_RC \
24314    hardcode_libdir_flag_spec_ld_RC \
24315    hardcode_libdir_separator_RC \
24316    hardcode_automatic_RC \
24317    module_cmds_RC \
24318    module_expsym_cmds_RC \
24319    lt_cv_prog_compiler_c_o_RC \
24320    exclude_expsyms_RC \
24321    include_expsyms_RC; do
24322
24323    case $var in
24324    old_archive_cmds_RC | \
24325    old_archive_from_new_cmds_RC | \
24326    archive_cmds_RC | \
24327    archive_expsym_cmds_RC | \
24328    module_cmds_RC | \
24329    module_expsym_cmds_RC | \
24330    old_archive_from_expsyms_cmds_RC | \
24331    export_symbols_cmds_RC | \
24332    extract_expsyms_cmds | reload_cmds | finish_cmds | \
24333    postinstall_cmds | postuninstall_cmds | \
24334    old_postinstall_cmds | old_postuninstall_cmds | \
24335    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24336      # Double-quote double-evaled strings.
24337      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24338      ;;
24339    *)
24340      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24341      ;;
24342    esac
24343  done
24344
24345  case $lt_echo in
24346  *'\$0 --fallback-echo"')
24347    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24348    ;;
24349  esac
24350
24351cfgfile="$ofile"
24352
24353  cat <<__EOF__ >> "$cfgfile"
24354# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24355
24356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24357
24358# Shell to use when invoking shell scripts.
24359SHELL=$lt_SHELL
24360
24361# Whether or not to build shared libraries.
24362build_libtool_libs=$enable_shared
24363
24364# Whether or not to build static libraries.
24365build_old_libs=$enable_static
24366
24367# Whether or not to add -lc for building shared libraries.
24368build_libtool_need_lc=$archive_cmds_need_lc_RC
24369
24370# Whether or not to disallow shared libs when runtime libs are static
24371allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24372
24373# Whether or not to optimize for fast installation.
24374fast_install=$enable_fast_install
24375
24376# The host system.
24377host_alias=$host_alias
24378host=$host
24379
24380# An echo program that does not interpret backslashes.
24381echo=$lt_echo
24382
24383# The archiver.
24384AR=$lt_AR
24385AR_FLAGS=$lt_AR_FLAGS
24386
24387# A C compiler.
24388LTCC=$lt_LTCC
24389
24390# A language-specific compiler.
24391CC=$lt_compiler_RC
24392
24393# Is the compiler the GNU C compiler?
24394with_gcc=$GCC_RC
24395
24396# An ERE matcher.
24397EGREP=$lt_EGREP
24398
24399# The linker used to build libraries.
24400LD=$lt_LD_RC
24401
24402# Whether we need hard or soft links.
24403LN_S=$lt_LN_S
24404
24405# A BSD-compatible nm program.
24406NM=$lt_NM
24407
24408# A symbol stripping program
24409STRIP=$lt_STRIP
24410
24411# Used to examine libraries when file_magic_cmd begins "file"
24412MAGIC_CMD=$MAGIC_CMD
24413
24414# Used on cygwin: DLL creation program.
24415DLLTOOL="$DLLTOOL"
24416
24417# Used on cygwin: object dumper.
24418OBJDUMP="$OBJDUMP"
24419
24420# Used on cygwin: assembler.
24421AS="$AS"
24422
24423# The name of the directory that contains temporary libtool files.
24424objdir=$objdir
24425
24426# How to create reloadable object files.
24427reload_flag=$lt_reload_flag
24428reload_cmds=$lt_reload_cmds
24429
24430# How to pass a linker flag through the compiler.
24431wl=$lt_lt_prog_compiler_wl_RC
24432
24433# Object file suffix (normally "o").
24434objext="$ac_objext"
24435
24436# Old archive suffix (normally "a").
24437libext="$libext"
24438
24439# Shared library suffix (normally ".so").
24440shrext_cmds='$shrext_cmds'
24441
24442# Executable file suffix (normally "").
24443exeext="$exeext"
24444
24445# Additional compiler flags for building library objects.
24446pic_flag=$lt_lt_prog_compiler_pic_RC
24447pic_mode=$pic_mode
24448
24449# What is the maximum length of a command?
24450max_cmd_len=$lt_cv_sys_max_cmd_len
24451
24452# Does compiler simultaneously support -c and -o options?
24453compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24454
24455# Must we lock files when doing compilation ?
24456need_locks=$lt_need_locks
24457
24458# Do we need the lib prefix for modules?
24459need_lib_prefix=$need_lib_prefix
24460
24461# Do we need a version for libraries?
24462need_version=$need_version
24463
24464# Whether dlopen is supported.
24465dlopen_support=$enable_dlopen
24466
24467# Whether dlopen of programs is supported.
24468dlopen_self=$enable_dlopen_self
24469
24470# Whether dlopen of statically linked programs is supported.
24471dlopen_self_static=$enable_dlopen_self_static
24472
24473# Compiler flag to prevent dynamic linking.
24474link_static_flag=$lt_lt_prog_compiler_static_RC
24475
24476# Compiler flag to turn off builtin functions.
24477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24478
24479# Compiler flag to allow reflexive dlopens.
24480export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24481
24482# Compiler flag to generate shared objects directly from archives.
24483whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24484
24485# Compiler flag to generate thread-safe objects.
24486thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24487
24488# Library versioning type.
24489version_type=$version_type
24490
24491# Format of library name prefix.
24492libname_spec=$lt_libname_spec
24493
24494# List of archive names.  First name is the real one, the rest are links.
24495# The last name is the one that the linker finds with -lNAME.
24496library_names_spec=$lt_library_names_spec
24497
24498# The coded name of the library, if different from the real name.
24499soname_spec=$lt_soname_spec
24500
24501# Commands used to build and install an old-style archive.
24502RANLIB=$lt_RANLIB
24503old_archive_cmds=$lt_old_archive_cmds_RC
24504old_postinstall_cmds=$lt_old_postinstall_cmds
24505old_postuninstall_cmds=$lt_old_postuninstall_cmds
24506
24507# Create an old-style archive from a shared archive.
24508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24509
24510# Create a temporary old-style archive to link instead of a shared archive.
24511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24512
24513# Commands used to build and install a shared archive.
24514archive_cmds=$lt_archive_cmds_RC
24515archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24516postinstall_cmds=$lt_postinstall_cmds
24517postuninstall_cmds=$lt_postuninstall_cmds
24518
24519# Commands used to build a loadable module (assumed same as above if empty)
24520module_cmds=$lt_module_cmds_RC
24521module_expsym_cmds=$lt_module_expsym_cmds_RC
24522
24523# Commands to strip libraries.
24524old_striplib=$lt_old_striplib
24525striplib=$lt_striplib
24526
24527# Dependencies to place before the objects being linked to create a
24528# shared library.
24529predep_objects=$lt_predep_objects_RC
24530
24531# Dependencies to place after the objects being linked to create a
24532# shared library.
24533postdep_objects=$lt_postdep_objects_RC
24534
24535# Dependencies to place before the objects being linked to create a
24536# shared library.
24537predeps=$lt_predeps_RC
24538
24539# Dependencies to place after the objects being linked to create a
24540# shared library.
24541postdeps=$lt_postdeps_RC
24542
24543# The library search path used internally by the compiler when linking
24544# a shared library.
24545compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24546
24547# Method to check whether dependent libraries are shared objects.
24548deplibs_check_method=$lt_deplibs_check_method
24549
24550# Command to use when deplibs_check_method == file_magic.
24551file_magic_cmd=$lt_file_magic_cmd
24552
24553# Flag that allows shared libraries with undefined symbols to be built.
24554allow_undefined_flag=$lt_allow_undefined_flag_RC
24555
24556# Flag that forces no undefined symbols.
24557no_undefined_flag=$lt_no_undefined_flag_RC
24558
24559# Commands used to finish a libtool library installation in a directory.
24560finish_cmds=$lt_finish_cmds
24561
24562# Same as above, but a single script fragment to be evaled but not shown.
24563finish_eval=$lt_finish_eval
24564
24565# Take the output of nm and produce a listing of raw symbols and C names.
24566global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24567
24568# Transform the output of nm in a proper C declaration
24569global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24570
24571# Transform the output of nm in a C name address pair
24572global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24573
24574# This is the shared library runtime path variable.
24575runpath_var=$runpath_var
24576
24577# This is the shared library path variable.
24578shlibpath_var=$shlibpath_var
24579
24580# Is shlibpath searched before the hard-coded library search path?
24581shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24582
24583# How to hardcode a shared library path into an executable.
24584hardcode_action=$hardcode_action_RC
24585
24586# Whether we should hardcode library paths into libraries.
24587hardcode_into_libs=$hardcode_into_libs
24588
24589# Flag to hardcode \$libdir into a binary during linking.
24590# This must work even if \$libdir does not exist.
24591hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24592
24593# If ld is used when linking, flag to hardcode \$libdir into
24594# a binary during linking. This must work even if \$libdir does
24595# not exist.
24596hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24597
24598# Whether we need a single -rpath flag with a separated argument.
24599hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24600
24601# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24602# resulting binary.
24603hardcode_direct=$hardcode_direct_RC
24604
24605# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24606# resulting binary.
24607hardcode_minus_L=$hardcode_minus_L_RC
24608
24609# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24610# the resulting binary.
24611hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24612
24613# Set to yes if building a shared library automatically hardcodes DIR into the library
24614# and all subsequent libraries and executables linked against it.
24615hardcode_automatic=$hardcode_automatic_RC
24616
24617# Variables whose values should be saved in libtool wrapper scripts and
24618# restored at relink time.
24619variables_saved_for_relink="$variables_saved_for_relink"
24620
24621# Whether libtool must link a program against all its dependency libraries.
24622link_all_deplibs=$link_all_deplibs_RC
24623
24624# Compile-time system search path for libraries
24625sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24626
24627# Run-time system search path for libraries
24628sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24629
24630# Fix the shell variable \$srcfile for the compiler.
24631fix_srcfile_path="$fix_srcfile_path_RC"
24632
24633# Set to yes if exported symbols are required.
24634always_export_symbols=$always_export_symbols_RC
24635
24636# The commands to list exported symbols.
24637export_symbols_cmds=$lt_export_symbols_cmds_RC
24638
24639# The commands to extract the exported symbol list from a shared archive.
24640extract_expsyms_cmds=$lt_extract_expsyms_cmds
24641
24642# Symbols that should not be listed in the preloaded symbols.
24643exclude_expsyms=$lt_exclude_expsyms_RC
24644
24645# Symbols that must always be exported.
24646include_expsyms=$lt_include_expsyms_RC
24647
24648# ### END LIBTOOL TAG CONFIG: $tagname
24649
24650__EOF__
24651
24652
24653else
24654  # If there is no Makefile yet, we rely on a make rule to execute
24655  # `config.status --recheck' to rerun these tests and create the
24656  # libtool script then.
24657  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24658  if test -f "$ltmain_in"; then
24659    test -f Makefile && make "$ltmain"
24660  fi
24661fi
24662
24663
24664ac_ext=c
24665ac_cpp='$CPP $CPPFLAGS'
24666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24668ac_compiler_gnu=$ac_cv_c_compiler_gnu
24669
24670CC="$lt_save_CC"
24671
24672	;;
24673
24674      *)
24675	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24676echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24677   { (exit 1); exit 1; }; }
24678	;;
24679      esac
24680
24681      # Append the new tag name to the list of available tags.
24682      if test -n "$tagname" ; then
24683      available_tags="$available_tags $tagname"
24684    fi
24685    fi
24686  done
24687  IFS="$lt_save_ifs"
24688
24689  # Now substitute the updated list of available tags.
24690  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24691    mv "${ofile}T" "$ofile"
24692    chmod +x "$ofile"
24693  else
24694    rm -f "${ofile}T"
24695    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24696echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24697   { (exit 1); exit 1; }; }
24698  fi
24699fi
24700
24701
24702
24703# This can be used to rebuild libtool when needed
24704LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24705
24706# Always use our own libtool.
24707LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24708
24709# Prevent multiple expansion
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731if test "$lt_cv_dlopen_self" = "yes" ; then
24732
24733cat >>confdefs.h <<\_ACEOF
24734#define CAN_DLOPEN_SELF 1
24735_ACEOF
24736
24737fi
24738
24739etags_version=`$ETAGS --version 2>&1`
24740case "$etags_version" in
24741	*Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24742	*GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24743	*) ETAGSFLAGS="" ;;
24744esac
24745ETAGSFLAGS=$ETAGSFLAGS
24746
24747
24748if test "$WITH_LLVMGCCDIR" = "default" ; then
24749  LLVMGCC="llvm-gcc${EXEEXT}"
24750  LLVMGXX="llvm-g++${EXEEXT}"
24751  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24752set dummy $LLVMGCC; ac_word=$2
24753echo "$as_me:$LINENO: checking for $ac_word" >&5
24754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24755if test "${ac_cv_path_LLVMGCC+set}" = set; then
24756  echo $ECHO_N "(cached) $ECHO_C" >&6
24757else
24758  case $LLVMGCC in
24759  [\\/]* | ?:[\\/]*)
24760  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24761  ;;
24762  *)
24763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24764for as_dir in $PATH
24765do
24766  IFS=$as_save_IFS
24767  test -z "$as_dir" && as_dir=.
24768  for ac_exec_ext in '' $ac_executable_extensions; do
24769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24770    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24772    break 2
24773  fi
24774done
24775done
24776
24777  ;;
24778esac
24779fi
24780LLVMGCC=$ac_cv_path_LLVMGCC
24781
24782if test -n "$LLVMGCC"; then
24783  echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24784echo "${ECHO_T}$LLVMGCC" >&6
24785else
24786  echo "$as_me:$LINENO: result: no" >&5
24787echo "${ECHO_T}no" >&6
24788fi
24789
24790  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24791set dummy $LLVMGXX; ac_word=$2
24792echo "$as_me:$LINENO: checking for $ac_word" >&5
24793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24794if test "${ac_cv_path_LLVMGXX+set}" = set; then
24795  echo $ECHO_N "(cached) $ECHO_C" >&6
24796else
24797  case $LLVMGXX in
24798  [\\/]* | ?:[\\/]*)
24799  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24800  ;;
24801  *)
24802  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803for as_dir in $PATH
24804do
24805  IFS=$as_save_IFS
24806  test -z "$as_dir" && as_dir=.
24807  for ac_exec_ext in '' $ac_executable_extensions; do
24808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24809    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24811    break 2
24812  fi
24813done
24814done
24815
24816  ;;
24817esac
24818fi
24819LLVMGXX=$ac_cv_path_LLVMGXX
24820
24821if test -n "$LLVMGXX"; then
24822  echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24823echo "${ECHO_T}$LLVMGXX" >&6
24824else
24825  echo "$as_me:$LINENO: result: no" >&5
24826echo "${ECHO_T}no" >&6
24827fi
24828
24829else
24830  LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24831  LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24832  LLVMGCC=$LLVMGCC
24833
24834  LLVMGXX=$LLVMGXX
24835
24836fi
24837
24838echo "$as_me:$LINENO: checking tool compatibility" >&5
24839echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24840
24841ICC=no
24842IXX=no
24843case $CC in
24844  icc*|icpc*)
24845    ICC=yes
24846    IXX=yes
24847    ;;
24848   *)
24849    ;;
24850esac
24851
24852if test "$GCC" != "yes" && test "$ICC" != "yes"
24853then
24854  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24855echo "$as_me: error: gcc|icc required but not found" >&2;}
24856   { (exit 1); exit 1; }; }
24857fi
24858
24859if test "$GXX" != "yes" && test "$IXX" != "yes"
24860then
24861  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24862echo "$as_me: error: g++|icc required but not found" >&2;}
24863   { (exit 1); exit 1; }; }
24864fi
24865
24866if test "$GCC" = "yes"
24867then
24868  gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24869  if test "$gccmajor" -lt "3"
24870  then
24871    { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24872echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24873   { (exit 1); exit 1; }; }
24874  fi
24875fi
24876
24877if test -z "$llvm_cv_gnu_make_command"
24878then
24879  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24880echo "$as_me: error: GNU Make required but not found" >&2;}
24881   { (exit 1); exit 1; }; }
24882fi
24883
24884echo "$as_me:$LINENO: result: ok" >&5
24885echo "${ECHO_T}ok" >&6
24886
24887
24888
24889echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24890echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24891if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24892  echo $ECHO_N "(cached) $ECHO_C" >&6
24893else
24894  ac_check_lib_save_LIBS=$LIBS
24895LIBS="-lelf  $LIBS"
24896cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h.  */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h.  */
24902
24903/* Override any gcc2 internal prototype to avoid an error.  */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907/* We use char because int might match the return type of a gcc2
24908   builtin and then its argument prototype would still apply.  */
24909char elf_begin ();
24910int
24911main ()
24912{
24913elf_begin ();
24914  ;
24915  return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24920  (eval $ac_link) 2>conftest.er1
24921  ac_status=$?
24922  grep -v '^ *+' conftest.er1 >conftest.err
24923  rm -f conftest.er1
24924  cat conftest.err >&5
24925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926  (exit $ac_status); } &&
24927	 { ac_try='test -z "$ac_c_werror_flag"
24928			 || test ! -s conftest.err'
24929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930  (eval $ac_try) 2>&5
24931  ac_status=$?
24932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933  (exit $ac_status); }; } &&
24934	 { ac_try='test -s conftest$ac_exeext'
24935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936  (eval $ac_try) 2>&5
24937  ac_status=$?
24938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939  (exit $ac_status); }; }; then
24940  ac_cv_lib_elf_elf_begin=yes
24941else
24942  echo "$as_me: failed program was:" >&5
24943sed 's/^/| /' conftest.$ac_ext >&5
24944
24945ac_cv_lib_elf_elf_begin=no
24946fi
24947rm -f conftest.err conftest.$ac_objext \
24948      conftest$ac_exeext conftest.$ac_ext
24949LIBS=$ac_check_lib_save_LIBS
24950fi
24951echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24952echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24953if test $ac_cv_lib_elf_elf_begin = yes; then
24954  cat >>confdefs.h <<_ACEOF
24955#define HAVE_LIBELF 1
24956_ACEOF
24957
24958  LIBS="-lelf $LIBS"
24959
24960fi
24961
24962
24963
24964echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24965echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24966if test "${ac_cv_search_lt_dlopen+set}" = set; then
24967  echo $ECHO_N "(cached) $ECHO_C" >&6
24968else
24969  ac_func_search_save_LIBS=$LIBS
24970ac_cv_search_lt_dlopen=no
24971cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h.  */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h.  */
24977
24978/* Override any gcc2 internal prototype to avoid an error.  */
24979#ifdef __cplusplus
24980extern "C"
24981#endif
24982/* We use char because int might match the return type of a gcc2
24983   builtin and then its argument prototype would still apply.  */
24984char lt_dlopen ();
24985int
24986main ()
24987{
24988lt_dlopen ();
24989  ;
24990  return 0;
24991}
24992_ACEOF
24993rm -f conftest.$ac_objext conftest$ac_exeext
24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24995  (eval $ac_link) 2>conftest.er1
24996  ac_status=$?
24997  grep -v '^ *+' conftest.er1 >conftest.err
24998  rm -f conftest.er1
24999  cat conftest.err >&5
25000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001  (exit $ac_status); } &&
25002	 { ac_try='test -z "$ac_c_werror_flag"
25003			 || test ! -s conftest.err'
25004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005  (eval $ac_try) 2>&5
25006  ac_status=$?
25007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008  (exit $ac_status); }; } &&
25009	 { ac_try='test -s conftest$ac_exeext'
25010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011  (eval $ac_try) 2>&5
25012  ac_status=$?
25013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014  (exit $ac_status); }; }; then
25015  ac_cv_search_lt_dlopen="none required"
25016else
25017  echo "$as_me: failed program was:" >&5
25018sed 's/^/| /' conftest.$ac_ext >&5
25019
25020fi
25021rm -f conftest.err conftest.$ac_objext \
25022      conftest$ac_exeext conftest.$ac_ext
25023if test "$ac_cv_search_lt_dlopen" = no; then
25024  for ac_lib in ltdl; do
25025    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25026    cat >conftest.$ac_ext <<_ACEOF
25027/* confdefs.h.  */
25028_ACEOF
25029cat confdefs.h >>conftest.$ac_ext
25030cat >>conftest.$ac_ext <<_ACEOF
25031/* end confdefs.h.  */
25032
25033/* Override any gcc2 internal prototype to avoid an error.  */
25034#ifdef __cplusplus
25035extern "C"
25036#endif
25037/* We use char because int might match the return type of a gcc2
25038   builtin and then its argument prototype would still apply.  */
25039char lt_dlopen ();
25040int
25041main ()
25042{
25043lt_dlopen ();
25044  ;
25045  return 0;
25046}
25047_ACEOF
25048rm -f conftest.$ac_objext conftest$ac_exeext
25049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25050  (eval $ac_link) 2>conftest.er1
25051  ac_status=$?
25052  grep -v '^ *+' conftest.er1 >conftest.err
25053  rm -f conftest.er1
25054  cat conftest.err >&5
25055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056  (exit $ac_status); } &&
25057	 { ac_try='test -z "$ac_c_werror_flag"
25058			 || test ! -s conftest.err'
25059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060  (eval $ac_try) 2>&5
25061  ac_status=$?
25062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063  (exit $ac_status); }; } &&
25064	 { ac_try='test -s conftest$ac_exeext'
25065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066  (eval $ac_try) 2>&5
25067  ac_status=$?
25068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069  (exit $ac_status); }; }; then
25070  ac_cv_search_lt_dlopen="-l$ac_lib"
25071break
25072else
25073  echo "$as_me: failed program was:" >&5
25074sed 's/^/| /' conftest.$ac_ext >&5
25075
25076fi
25077rm -f conftest.err conftest.$ac_objext \
25078      conftest$ac_exeext conftest.$ac_ext
25079  done
25080fi
25081LIBS=$ac_func_search_save_LIBS
25082fi
25083echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25084echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25085if test "$ac_cv_search_lt_dlopen" != no; then
25086  test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25087
25088cat >>confdefs.h <<\_ACEOF
25089#define HAVE_LT_DLOPEN 1
25090_ACEOF
25091
25092else
25093  { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25094                           not be available" >&5
25095echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25096                           not be available" >&2;}
25097fi
25098
25099
25100echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25101echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25102if test "${ac_cv_search_dlopen+set}" = set; then
25103  echo $ECHO_N "(cached) $ECHO_C" >&6
25104else
25105  ac_func_search_save_LIBS=$LIBS
25106ac_cv_search_dlopen=no
25107cat >conftest.$ac_ext <<_ACEOF
25108/* confdefs.h.  */
25109_ACEOF
25110cat confdefs.h >>conftest.$ac_ext
25111cat >>conftest.$ac_ext <<_ACEOF
25112/* end confdefs.h.  */
25113
25114/* Override any gcc2 internal prototype to avoid an error.  */
25115#ifdef __cplusplus
25116extern "C"
25117#endif
25118/* We use char because int might match the return type of a gcc2
25119   builtin and then its argument prototype would still apply.  */
25120char dlopen ();
25121int
25122main ()
25123{
25124dlopen ();
25125  ;
25126  return 0;
25127}
25128_ACEOF
25129rm -f conftest.$ac_objext conftest$ac_exeext
25130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25131  (eval $ac_link) 2>conftest.er1
25132  ac_status=$?
25133  grep -v '^ *+' conftest.er1 >conftest.err
25134  rm -f conftest.er1
25135  cat conftest.err >&5
25136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137  (exit $ac_status); } &&
25138	 { ac_try='test -z "$ac_c_werror_flag"
25139			 || test ! -s conftest.err'
25140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141  (eval $ac_try) 2>&5
25142  ac_status=$?
25143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144  (exit $ac_status); }; } &&
25145	 { ac_try='test -s conftest$ac_exeext'
25146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147  (eval $ac_try) 2>&5
25148  ac_status=$?
25149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150  (exit $ac_status); }; }; then
25151  ac_cv_search_dlopen="none required"
25152else
25153  echo "$as_me: failed program was:" >&5
25154sed 's/^/| /' conftest.$ac_ext >&5
25155
25156fi
25157rm -f conftest.err conftest.$ac_objext \
25158      conftest$ac_exeext conftest.$ac_ext
25159if test "$ac_cv_search_dlopen" = no; then
25160  for ac_lib in dl; do
25161    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25162    cat >conftest.$ac_ext <<_ACEOF
25163/* confdefs.h.  */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h.  */
25168
25169/* Override any gcc2 internal prototype to avoid an error.  */
25170#ifdef __cplusplus
25171extern "C"
25172#endif
25173/* We use char because int might match the return type of a gcc2
25174   builtin and then its argument prototype would still apply.  */
25175char dlopen ();
25176int
25177main ()
25178{
25179dlopen ();
25180  ;
25181  return 0;
25182}
25183_ACEOF
25184rm -f conftest.$ac_objext conftest$ac_exeext
25185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25186  (eval $ac_link) 2>conftest.er1
25187  ac_status=$?
25188  grep -v '^ *+' conftest.er1 >conftest.err
25189  rm -f conftest.er1
25190  cat conftest.err >&5
25191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192  (exit $ac_status); } &&
25193	 { ac_try='test -z "$ac_c_werror_flag"
25194			 || test ! -s conftest.err'
25195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196  (eval $ac_try) 2>&5
25197  ac_status=$?
25198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199  (exit $ac_status); }; } &&
25200	 { ac_try='test -s conftest$ac_exeext'
25201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202  (eval $ac_try) 2>&5
25203  ac_status=$?
25204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205  (exit $ac_status); }; }; then
25206  ac_cv_search_dlopen="-l$ac_lib"
25207break
25208else
25209  echo "$as_me: failed program was:" >&5
25210sed 's/^/| /' conftest.$ac_ext >&5
25211
25212fi
25213rm -f conftest.err conftest.$ac_objext \
25214      conftest$ac_exeext conftest.$ac_ext
25215  done
25216fi
25217LIBS=$ac_func_search_save_LIBS
25218fi
25219echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25220echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25221if test "$ac_cv_search_dlopen" != no; then
25222  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25223
25224cat >>confdefs.h <<\_ACEOF
25225#define HAVE_DLOPEN 1
25226_ACEOF
25227
25228else
25229  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25230echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25231fi
25232
25233
25234echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25235echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25236if test "${ac_cv_search_mallinfo+set}" = set; then
25237  echo $ECHO_N "(cached) $ECHO_C" >&6
25238else
25239  ac_func_search_save_LIBS=$LIBS
25240ac_cv_search_mallinfo=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 mallinfo ();
25255int
25256main ()
25257{
25258mallinfo ();
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_mallinfo="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_mallinfo" = no; then
25294  for ac_lib in malloc; 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 mallinfo ();
25310int
25311main ()
25312{
25313mallinfo ();
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_mallinfo="-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_mallinfo" >&5
25354echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25355if test "$ac_cv_search_mallinfo" != no; then
25356  test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25357
25358cat >>confdefs.h <<\_ACEOF
25359#define HAVE_MALLINFO 1
25360_ACEOF
25361
25362fi
25363
25364
25365if test "$ENABLE_THREADS" -eq 1 ; then
25366
25367echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25368echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25369if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25370  echo $ECHO_N "(cached) $ECHO_C" >&6
25371else
25372  ac_check_lib_save_LIBS=$LIBS
25373LIBS="-lpthread  $LIBS"
25374cat >conftest.$ac_ext <<_ACEOF
25375/* confdefs.h.  */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h.  */
25380
25381/* Override any gcc2 internal prototype to avoid an error.  */
25382#ifdef __cplusplus
25383extern "C"
25384#endif
25385/* We use char because int might match the return type of a gcc2
25386   builtin and then its argument prototype would still apply.  */
25387char pthread_mutex_init ();
25388int
25389main ()
25390{
25391pthread_mutex_init ();
25392  ;
25393  return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext conftest$ac_exeext
25397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398  (eval $ac_link) 2>conftest.er1
25399  ac_status=$?
25400  grep -v '^ *+' conftest.er1 >conftest.err
25401  rm -f conftest.er1
25402  cat conftest.err >&5
25403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404  (exit $ac_status); } &&
25405	 { ac_try='test -z "$ac_c_werror_flag"
25406			 || test ! -s conftest.err'
25407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408  (eval $ac_try) 2>&5
25409  ac_status=$?
25410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411  (exit $ac_status); }; } &&
25412	 { ac_try='test -s conftest$ac_exeext'
25413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414  (eval $ac_try) 2>&5
25415  ac_status=$?
25416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417  (exit $ac_status); }; }; then
25418  ac_cv_lib_pthread_pthread_mutex_init=yes
25419else
25420  echo "$as_me: failed program was:" >&5
25421sed 's/^/| /' conftest.$ac_ext >&5
25422
25423ac_cv_lib_pthread_pthread_mutex_init=no
25424fi
25425rm -f conftest.err conftest.$ac_objext \
25426      conftest$ac_exeext conftest.$ac_ext
25427LIBS=$ac_check_lib_save_LIBS
25428fi
25429echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25430echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25431if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25432  cat >>confdefs.h <<_ACEOF
25433#define HAVE_LIBPTHREAD 1
25434_ACEOF
25435
25436  LIBS="-lpthread $LIBS"
25437
25438fi
25439
25440  echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25441echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25442if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25443  echo $ECHO_N "(cached) $ECHO_C" >&6
25444else
25445  ac_func_search_save_LIBS=$LIBS
25446ac_cv_search_pthread_mutex_lock=no
25447cat >conftest.$ac_ext <<_ACEOF
25448/* confdefs.h.  */
25449_ACEOF
25450cat confdefs.h >>conftest.$ac_ext
25451cat >>conftest.$ac_ext <<_ACEOF
25452/* end confdefs.h.  */
25453
25454/* Override any gcc2 internal prototype to avoid an error.  */
25455#ifdef __cplusplus
25456extern "C"
25457#endif
25458/* We use char because int might match the return type of a gcc2
25459   builtin and then its argument prototype would still apply.  */
25460char pthread_mutex_lock ();
25461int
25462main ()
25463{
25464pthread_mutex_lock ();
25465  ;
25466  return 0;
25467}
25468_ACEOF
25469rm -f conftest.$ac_objext conftest$ac_exeext
25470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25471  (eval $ac_link) 2>conftest.er1
25472  ac_status=$?
25473  grep -v '^ *+' conftest.er1 >conftest.err
25474  rm -f conftest.er1
25475  cat conftest.err >&5
25476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477  (exit $ac_status); } &&
25478	 { ac_try='test -z "$ac_c_werror_flag"
25479			 || test ! -s conftest.err'
25480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481  (eval $ac_try) 2>&5
25482  ac_status=$?
25483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484  (exit $ac_status); }; } &&
25485	 { ac_try='test -s conftest$ac_exeext'
25486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487  (eval $ac_try) 2>&5
25488  ac_status=$?
25489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490  (exit $ac_status); }; }; then
25491  ac_cv_search_pthread_mutex_lock="none required"
25492else
25493  echo "$as_me: failed program was:" >&5
25494sed 's/^/| /' conftest.$ac_ext >&5
25495
25496fi
25497rm -f conftest.err conftest.$ac_objext \
25498      conftest$ac_exeext conftest.$ac_ext
25499if test "$ac_cv_search_pthread_mutex_lock" = no; then
25500  for ac_lib in pthread; do
25501    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25502    cat >conftest.$ac_ext <<_ACEOF
25503/* confdefs.h.  */
25504_ACEOF
25505cat confdefs.h >>conftest.$ac_ext
25506cat >>conftest.$ac_ext <<_ACEOF
25507/* end confdefs.h.  */
25508
25509/* Override any gcc2 internal prototype to avoid an error.  */
25510#ifdef __cplusplus
25511extern "C"
25512#endif
25513/* We use char because int might match the return type of a gcc2
25514   builtin and then its argument prototype would still apply.  */
25515char pthread_mutex_lock ();
25516int
25517main ()
25518{
25519pthread_mutex_lock ();
25520  ;
25521  return 0;
25522}
25523_ACEOF
25524rm -f conftest.$ac_objext conftest$ac_exeext
25525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25526  (eval $ac_link) 2>conftest.er1
25527  ac_status=$?
25528  grep -v '^ *+' conftest.er1 >conftest.err
25529  rm -f conftest.er1
25530  cat conftest.err >&5
25531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532  (exit $ac_status); } &&
25533	 { ac_try='test -z "$ac_c_werror_flag"
25534			 || test ! -s conftest.err'
25535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536  (eval $ac_try) 2>&5
25537  ac_status=$?
25538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539  (exit $ac_status); }; } &&
25540	 { ac_try='test -s conftest$ac_exeext'
25541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542  (eval $ac_try) 2>&5
25543  ac_status=$?
25544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545  (exit $ac_status); }; }; then
25546  ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25547break
25548else
25549  echo "$as_me: failed program was:" >&5
25550sed 's/^/| /' conftest.$ac_ext >&5
25551
25552fi
25553rm -f conftest.err conftest.$ac_objext \
25554      conftest$ac_exeext conftest.$ac_ext
25555  done
25556fi
25557LIBS=$ac_func_search_save_LIBS
25558fi
25559echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25560echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25561if test "$ac_cv_search_pthread_mutex_lock" != no; then
25562  test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25563
25564cat >>confdefs.h <<\_ACEOF
25565#define HAVE_PTHREAD_MUTEX_LOCK 1
25566_ACEOF
25567
25568fi
25569
25570fi
25571
25572
25573
25574
25575
25576
25577
25578ac_header_dirent=no
25579for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25580  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25581echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25582echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25583if eval "test \"\${$as_ac_Header+set}\" = set"; then
25584  echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586  cat >conftest.$ac_ext <<_ACEOF
25587/* confdefs.h.  */
25588_ACEOF
25589cat confdefs.h >>conftest.$ac_ext
25590cat >>conftest.$ac_ext <<_ACEOF
25591/* end confdefs.h.  */
25592#include <sys/types.h>
25593#include <$ac_hdr>
25594
25595int
25596main ()
25597{
25598if ((DIR *) 0)
25599return 0;
25600  ;
25601  return 0;
25602}
25603_ACEOF
25604rm -f conftest.$ac_objext
25605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25606  (eval $ac_compile) 2>conftest.er1
25607  ac_status=$?
25608  grep -v '^ *+' conftest.er1 >conftest.err
25609  rm -f conftest.er1
25610  cat conftest.err >&5
25611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612  (exit $ac_status); } &&
25613	 { ac_try='test -z "$ac_c_werror_flag"
25614			 || test ! -s conftest.err'
25615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616  (eval $ac_try) 2>&5
25617  ac_status=$?
25618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619  (exit $ac_status); }; } &&
25620	 { ac_try='test -s conftest.$ac_objext'
25621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622  (eval $ac_try) 2>&5
25623  ac_status=$?
25624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625  (exit $ac_status); }; }; then
25626  eval "$as_ac_Header=yes"
25627else
25628  echo "$as_me: failed program was:" >&5
25629sed 's/^/| /' conftest.$ac_ext >&5
25630
25631eval "$as_ac_Header=no"
25632fi
25633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25634fi
25635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638  cat >>confdefs.h <<_ACEOF
25639#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25640_ACEOF
25641
25642ac_header_dirent=$ac_hdr; break
25643fi
25644
25645done
25646# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25647if test $ac_header_dirent = dirent.h; then
25648  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25649echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25650if test "${ac_cv_search_opendir+set}" = set; then
25651  echo $ECHO_N "(cached) $ECHO_C" >&6
25652else
25653  ac_func_search_save_LIBS=$LIBS
25654ac_cv_search_opendir=no
25655cat >conftest.$ac_ext <<_ACEOF
25656/* confdefs.h.  */
25657_ACEOF
25658cat confdefs.h >>conftest.$ac_ext
25659cat >>conftest.$ac_ext <<_ACEOF
25660/* end confdefs.h.  */
25661
25662/* Override any gcc2 internal prototype to avoid an error.  */
25663#ifdef __cplusplus
25664extern "C"
25665#endif
25666/* We use char because int might match the return type of a gcc2
25667   builtin and then its argument prototype would still apply.  */
25668char opendir ();
25669int
25670main ()
25671{
25672opendir ();
25673  ;
25674  return 0;
25675}
25676_ACEOF
25677rm -f conftest.$ac_objext conftest$ac_exeext
25678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25679  (eval $ac_link) 2>conftest.er1
25680  ac_status=$?
25681  grep -v '^ *+' conftest.er1 >conftest.err
25682  rm -f conftest.er1
25683  cat conftest.err >&5
25684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685  (exit $ac_status); } &&
25686	 { ac_try='test -z "$ac_c_werror_flag"
25687			 || test ! -s conftest.err'
25688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689  (eval $ac_try) 2>&5
25690  ac_status=$?
25691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692  (exit $ac_status); }; } &&
25693	 { ac_try='test -s conftest$ac_exeext'
25694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695  (eval $ac_try) 2>&5
25696  ac_status=$?
25697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698  (exit $ac_status); }; }; then
25699  ac_cv_search_opendir="none required"
25700else
25701  echo "$as_me: failed program was:" >&5
25702sed 's/^/| /' conftest.$ac_ext >&5
25703
25704fi
25705rm -f conftest.err conftest.$ac_objext \
25706      conftest$ac_exeext conftest.$ac_ext
25707if test "$ac_cv_search_opendir" = no; then
25708  for ac_lib in dir; do
25709    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25710    cat >conftest.$ac_ext <<_ACEOF
25711/* confdefs.h.  */
25712_ACEOF
25713cat confdefs.h >>conftest.$ac_ext
25714cat >>conftest.$ac_ext <<_ACEOF
25715/* end confdefs.h.  */
25716
25717/* Override any gcc2 internal prototype to avoid an error.  */
25718#ifdef __cplusplus
25719extern "C"
25720#endif
25721/* We use char because int might match the return type of a gcc2
25722   builtin and then its argument prototype would still apply.  */
25723char opendir ();
25724int
25725main ()
25726{
25727opendir ();
25728  ;
25729  return 0;
25730}
25731_ACEOF
25732rm -f conftest.$ac_objext conftest$ac_exeext
25733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25734  (eval $ac_link) 2>conftest.er1
25735  ac_status=$?
25736  grep -v '^ *+' conftest.er1 >conftest.err
25737  rm -f conftest.er1
25738  cat conftest.err >&5
25739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740  (exit $ac_status); } &&
25741	 { ac_try='test -z "$ac_c_werror_flag"
25742			 || test ! -s conftest.err'
25743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744  (eval $ac_try) 2>&5
25745  ac_status=$?
25746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747  (exit $ac_status); }; } &&
25748	 { ac_try='test -s conftest$ac_exeext'
25749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750  (eval $ac_try) 2>&5
25751  ac_status=$?
25752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753  (exit $ac_status); }; }; then
25754  ac_cv_search_opendir="-l$ac_lib"
25755break
25756else
25757  echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760fi
25761rm -f conftest.err conftest.$ac_objext \
25762      conftest$ac_exeext conftest.$ac_ext
25763  done
25764fi
25765LIBS=$ac_func_search_save_LIBS
25766fi
25767echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25768echo "${ECHO_T}$ac_cv_search_opendir" >&6
25769if test "$ac_cv_search_opendir" != no; then
25770  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25771
25772fi
25773
25774else
25775  echo "$as_me:$LINENO: checking for library containing opendir" >&5
25776echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25777if test "${ac_cv_search_opendir+set}" = set; then
25778  echo $ECHO_N "(cached) $ECHO_C" >&6
25779else
25780  ac_func_search_save_LIBS=$LIBS
25781ac_cv_search_opendir=no
25782cat >conftest.$ac_ext <<_ACEOF
25783/* confdefs.h.  */
25784_ACEOF
25785cat confdefs.h >>conftest.$ac_ext
25786cat >>conftest.$ac_ext <<_ACEOF
25787/* end confdefs.h.  */
25788
25789/* Override any gcc2 internal prototype to avoid an error.  */
25790#ifdef __cplusplus
25791extern "C"
25792#endif
25793/* We use char because int might match the return type of a gcc2
25794   builtin and then its argument prototype would still apply.  */
25795char opendir ();
25796int
25797main ()
25798{
25799opendir ();
25800  ;
25801  return 0;
25802}
25803_ACEOF
25804rm -f conftest.$ac_objext conftest$ac_exeext
25805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806  (eval $ac_link) 2>conftest.er1
25807  ac_status=$?
25808  grep -v '^ *+' conftest.er1 >conftest.err
25809  rm -f conftest.er1
25810  cat conftest.err >&5
25811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812  (exit $ac_status); } &&
25813	 { ac_try='test -z "$ac_c_werror_flag"
25814			 || test ! -s conftest.err'
25815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816  (eval $ac_try) 2>&5
25817  ac_status=$?
25818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819  (exit $ac_status); }; } &&
25820	 { ac_try='test -s conftest$ac_exeext'
25821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25822  (eval $ac_try) 2>&5
25823  ac_status=$?
25824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825  (exit $ac_status); }; }; then
25826  ac_cv_search_opendir="none required"
25827else
25828  echo "$as_me: failed program was:" >&5
25829sed 's/^/| /' conftest.$ac_ext >&5
25830
25831fi
25832rm -f conftest.err conftest.$ac_objext \
25833      conftest$ac_exeext conftest.$ac_ext
25834if test "$ac_cv_search_opendir" = no; then
25835  for ac_lib in x; do
25836    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25837    cat >conftest.$ac_ext <<_ACEOF
25838/* confdefs.h.  */
25839_ACEOF
25840cat confdefs.h >>conftest.$ac_ext
25841cat >>conftest.$ac_ext <<_ACEOF
25842/* end confdefs.h.  */
25843
25844/* Override any gcc2 internal prototype to avoid an error.  */
25845#ifdef __cplusplus
25846extern "C"
25847#endif
25848/* We use char because int might match the return type of a gcc2
25849   builtin and then its argument prototype would still apply.  */
25850char opendir ();
25851int
25852main ()
25853{
25854opendir ();
25855  ;
25856  return 0;
25857}
25858_ACEOF
25859rm -f conftest.$ac_objext conftest$ac_exeext
25860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861  (eval $ac_link) 2>conftest.er1
25862  ac_status=$?
25863  grep -v '^ *+' conftest.er1 >conftest.err
25864  rm -f conftest.er1
25865  cat conftest.err >&5
25866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867  (exit $ac_status); } &&
25868	 { ac_try='test -z "$ac_c_werror_flag"
25869			 || test ! -s conftest.err'
25870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871  (eval $ac_try) 2>&5
25872  ac_status=$?
25873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874  (exit $ac_status); }; } &&
25875	 { ac_try='test -s conftest$ac_exeext'
25876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877  (eval $ac_try) 2>&5
25878  ac_status=$?
25879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880  (exit $ac_status); }; }; then
25881  ac_cv_search_opendir="-l$ac_lib"
25882break
25883else
25884  echo "$as_me: failed program was:" >&5
25885sed 's/^/| /' conftest.$ac_ext >&5
25886
25887fi
25888rm -f conftest.err conftest.$ac_objext \
25889      conftest$ac_exeext conftest.$ac_ext
25890  done
25891fi
25892LIBS=$ac_func_search_save_LIBS
25893fi
25894echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25895echo "${ECHO_T}$ac_cv_search_opendir" >&6
25896if test "$ac_cv_search_opendir" != no; then
25897  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25898
25899fi
25900
25901fi
25902
25903echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25904echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25905if test "${ac_cv_header_mmap_anon+set}" = set; then
25906  echo $ECHO_N "(cached) $ECHO_C" >&6
25907else
25908   ac_ext=c
25909ac_cpp='$CPP $CPPFLAGS'
25910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25912ac_compiler_gnu=$ac_cv_c_compiler_gnu
25913
25914  cat >conftest.$ac_ext <<_ACEOF
25915/* confdefs.h.  */
25916_ACEOF
25917cat confdefs.h >>conftest.$ac_ext
25918cat >>conftest.$ac_ext <<_ACEOF
25919/* end confdefs.h.  */
25920#include <sys/mman.h>
25921#include <unistd.h>
25922#include <fcntl.h>
25923int
25924main ()
25925{
25926mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25927  ;
25928  return 0;
25929}
25930_ACEOF
25931rm -f conftest.$ac_objext
25932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25933  (eval $ac_compile) 2>conftest.er1
25934  ac_status=$?
25935  grep -v '^ *+' conftest.er1 >conftest.err
25936  rm -f conftest.er1
25937  cat conftest.err >&5
25938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939  (exit $ac_status); } &&
25940	 { ac_try='test -z "$ac_c_werror_flag"
25941			 || test ! -s conftest.err'
25942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943  (eval $ac_try) 2>&5
25944  ac_status=$?
25945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946  (exit $ac_status); }; } &&
25947	 { ac_try='test -s conftest.$ac_objext'
25948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949  (eval $ac_try) 2>&5
25950  ac_status=$?
25951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952  (exit $ac_status); }; }; then
25953  ac_cv_header_mmap_anon=yes
25954else
25955  echo "$as_me: failed program was:" >&5
25956sed 's/^/| /' conftest.$ac_ext >&5
25957
25958ac_cv_header_mmap_anon=no
25959fi
25960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25961  ac_ext=c
25962ac_cpp='$CPP $CPPFLAGS'
25963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965ac_compiler_gnu=$ac_cv_c_compiler_gnu
25966
25967
25968fi
25969echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25970echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25971if test "$ac_cv_header_mmap_anon" = yes; then
25972
25973cat >>confdefs.h <<\_ACEOF
25974#define HAVE_MMAP_ANONYMOUS 1
25975_ACEOF
25976
25977fi
25978
25979echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25980echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25981if test "${ac_cv_header_stat_broken+set}" = set; then
25982  echo $ECHO_N "(cached) $ECHO_C" >&6
25983else
25984  cat >conftest.$ac_ext <<_ACEOF
25985/* confdefs.h.  */
25986_ACEOF
25987cat confdefs.h >>conftest.$ac_ext
25988cat >>conftest.$ac_ext <<_ACEOF
25989/* end confdefs.h.  */
25990#include <sys/types.h>
25991#include <sys/stat.h>
25992
25993#if defined(S_ISBLK) && defined(S_IFDIR)
25994# if S_ISBLK (S_IFDIR)
25995You lose.
25996# endif
25997#endif
25998
25999#if defined(S_ISBLK) && defined(S_IFCHR)
26000# if S_ISBLK (S_IFCHR)
26001You lose.
26002# endif
26003#endif
26004
26005#if defined(S_ISLNK) && defined(S_IFREG)
26006# if S_ISLNK (S_IFREG)
26007You lose.
26008# endif
26009#endif
26010
26011#if defined(S_ISSOCK) && defined(S_IFREG)
26012# if S_ISSOCK (S_IFREG)
26013You lose.
26014# endif
26015#endif
26016
26017_ACEOF
26018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26019  $EGREP "You lose" >/dev/null 2>&1; then
26020  ac_cv_header_stat_broken=yes
26021else
26022  ac_cv_header_stat_broken=no
26023fi
26024rm -f conftest*
26025
26026fi
26027echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26028echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26029if test $ac_cv_header_stat_broken = yes; then
26030
26031cat >>confdefs.h <<\_ACEOF
26032#define STAT_MACROS_BROKEN 1
26033_ACEOF
26034
26035fi
26036
26037echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26038echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26039if test "${ac_cv_header_stdc+set}" = set; then
26040  echo $ECHO_N "(cached) $ECHO_C" >&6
26041else
26042  cat >conftest.$ac_ext <<_ACEOF
26043/* confdefs.h.  */
26044_ACEOF
26045cat confdefs.h >>conftest.$ac_ext
26046cat >>conftest.$ac_ext <<_ACEOF
26047/* end confdefs.h.  */
26048#include <stdlib.h>
26049#include <stdarg.h>
26050#include <string.h>
26051#include <float.h>
26052
26053int
26054main ()
26055{
26056
26057  ;
26058  return 0;
26059}
26060_ACEOF
26061rm -f conftest.$ac_objext
26062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26063  (eval $ac_compile) 2>conftest.er1
26064  ac_status=$?
26065  grep -v '^ *+' conftest.er1 >conftest.err
26066  rm -f conftest.er1
26067  cat conftest.err >&5
26068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069  (exit $ac_status); } &&
26070	 { ac_try='test -z "$ac_c_werror_flag"
26071			 || test ! -s conftest.err'
26072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073  (eval $ac_try) 2>&5
26074  ac_status=$?
26075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076  (exit $ac_status); }; } &&
26077	 { ac_try='test -s conftest.$ac_objext'
26078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26079  (eval $ac_try) 2>&5
26080  ac_status=$?
26081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082  (exit $ac_status); }; }; then
26083  ac_cv_header_stdc=yes
26084else
26085  echo "$as_me: failed program was:" >&5
26086sed 's/^/| /' conftest.$ac_ext >&5
26087
26088ac_cv_header_stdc=no
26089fi
26090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26091
26092if test $ac_cv_header_stdc = yes; then
26093  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26094  cat >conftest.$ac_ext <<_ACEOF
26095/* confdefs.h.  */
26096_ACEOF
26097cat confdefs.h >>conftest.$ac_ext
26098cat >>conftest.$ac_ext <<_ACEOF
26099/* end confdefs.h.  */
26100#include <string.h>
26101
26102_ACEOF
26103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26104  $EGREP "memchr" >/dev/null 2>&1; then
26105  :
26106else
26107  ac_cv_header_stdc=no
26108fi
26109rm -f conftest*
26110
26111fi
26112
26113if test $ac_cv_header_stdc = yes; then
26114  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26115  cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h.  */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h.  */
26121#include <stdlib.h>
26122
26123_ACEOF
26124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26125  $EGREP "free" >/dev/null 2>&1; then
26126  :
26127else
26128  ac_cv_header_stdc=no
26129fi
26130rm -f conftest*
26131
26132fi
26133
26134if test $ac_cv_header_stdc = yes; then
26135  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26136  if test "$cross_compiling" = yes; then
26137  :
26138else
26139  cat >conftest.$ac_ext <<_ACEOF
26140/* confdefs.h.  */
26141_ACEOF
26142cat confdefs.h >>conftest.$ac_ext
26143cat >>conftest.$ac_ext <<_ACEOF
26144/* end confdefs.h.  */
26145#include <ctype.h>
26146#if ((' ' & 0x0FF) == 0x020)
26147# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26148# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26149#else
26150# define ISLOWER(c) \
26151		   (('a' <= (c) && (c) <= 'i') \
26152		     || ('j' <= (c) && (c) <= 'r') \
26153		     || ('s' <= (c) && (c) <= 'z'))
26154# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26155#endif
26156
26157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26158int
26159main ()
26160{
26161  int i;
26162  for (i = 0; i < 256; i++)
26163    if (XOR (islower (i), ISLOWER (i))
26164	|| toupper (i) != TOUPPER (i))
26165      exit(2);
26166  exit (0);
26167}
26168_ACEOF
26169rm -f conftest$ac_exeext
26170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26171  (eval $ac_link) 2>&5
26172  ac_status=$?
26173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176  (eval $ac_try) 2>&5
26177  ac_status=$?
26178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179  (exit $ac_status); }; }; then
26180  :
26181else
26182  echo "$as_me: program exited with status $ac_status" >&5
26183echo "$as_me: failed program was:" >&5
26184sed 's/^/| /' conftest.$ac_ext >&5
26185
26186( exit $ac_status )
26187ac_cv_header_stdc=no
26188fi
26189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26190fi
26191fi
26192fi
26193echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26194echo "${ECHO_T}$ac_cv_header_stdc" >&6
26195if test $ac_cv_header_stdc = yes; then
26196
26197cat >>confdefs.h <<\_ACEOF
26198#define STDC_HEADERS 1
26199_ACEOF
26200
26201fi
26202
26203echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26204echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26205if test "${ac_cv_header_sys_wait_h+set}" = set; then
26206  echo $ECHO_N "(cached) $ECHO_C" >&6
26207else
26208  cat >conftest.$ac_ext <<_ACEOF
26209/* confdefs.h.  */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h.  */
26214#include <sys/types.h>
26215#include <sys/wait.h>
26216#ifndef WEXITSTATUS
26217# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26218#endif
26219#ifndef WIFEXITED
26220# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26221#endif
26222
26223int
26224main ()
26225{
26226  int s;
26227  wait (&s);
26228  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26229  ;
26230  return 0;
26231}
26232_ACEOF
26233rm -f conftest.$ac_objext
26234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26235  (eval $ac_compile) 2>conftest.er1
26236  ac_status=$?
26237  grep -v '^ *+' conftest.er1 >conftest.err
26238  rm -f conftest.er1
26239  cat conftest.err >&5
26240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241  (exit $ac_status); } &&
26242	 { ac_try='test -z "$ac_c_werror_flag"
26243			 || test ! -s conftest.err'
26244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245  (eval $ac_try) 2>&5
26246  ac_status=$?
26247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248  (exit $ac_status); }; } &&
26249	 { ac_try='test -s conftest.$ac_objext'
26250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251  (eval $ac_try) 2>&5
26252  ac_status=$?
26253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254  (exit $ac_status); }; }; then
26255  ac_cv_header_sys_wait_h=yes
26256else
26257  echo "$as_me: failed program was:" >&5
26258sed 's/^/| /' conftest.$ac_ext >&5
26259
26260ac_cv_header_sys_wait_h=no
26261fi
26262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263fi
26264echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26265echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26266if test $ac_cv_header_sys_wait_h = yes; then
26267
26268cat >>confdefs.h <<\_ACEOF
26269#define HAVE_SYS_WAIT_H 1
26270_ACEOF
26271
26272fi
26273
26274echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26275echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26276if test "${ac_cv_header_time+set}" = set; then
26277  echo $ECHO_N "(cached) $ECHO_C" >&6
26278else
26279  cat >conftest.$ac_ext <<_ACEOF
26280/* confdefs.h.  */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h.  */
26285#include <sys/types.h>
26286#include <sys/time.h>
26287#include <time.h>
26288
26289int
26290main ()
26291{
26292if ((struct tm *) 0)
26293return 0;
26294  ;
26295  return 0;
26296}
26297_ACEOF
26298rm -f conftest.$ac_objext
26299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26300  (eval $ac_compile) 2>conftest.er1
26301  ac_status=$?
26302  grep -v '^ *+' conftest.er1 >conftest.err
26303  rm -f conftest.er1
26304  cat conftest.err >&5
26305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306  (exit $ac_status); } &&
26307	 { ac_try='test -z "$ac_c_werror_flag"
26308			 || test ! -s conftest.err'
26309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26310  (eval $ac_try) 2>&5
26311  ac_status=$?
26312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313  (exit $ac_status); }; } &&
26314	 { ac_try='test -s conftest.$ac_objext'
26315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316  (eval $ac_try) 2>&5
26317  ac_status=$?
26318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319  (exit $ac_status); }; }; then
26320  ac_cv_header_time=yes
26321else
26322  echo "$as_me: failed program was:" >&5
26323sed 's/^/| /' conftest.$ac_ext >&5
26324
26325ac_cv_header_time=no
26326fi
26327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26328fi
26329echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26330echo "${ECHO_T}$ac_cv_header_time" >&6
26331if test $ac_cv_header_time = yes; then
26332
26333cat >>confdefs.h <<\_ACEOF
26334#define TIME_WITH_SYS_TIME 1
26335_ACEOF
26336
26337fi
26338
26339
26340
26341
26342
26343
26344
26345
26346for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26347do
26348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26349if eval "test \"\${$as_ac_Header+set}\" = set"; then
26350  echo "$as_me:$LINENO: checking for $ac_header" >&5
26351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26352if eval "test \"\${$as_ac_Header+set}\" = set"; then
26353  echo $ECHO_N "(cached) $ECHO_C" >&6
26354fi
26355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26357else
26358  # Is the header compilable?
26359echo "$as_me:$LINENO: checking $ac_header usability" >&5
26360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26361cat >conftest.$ac_ext <<_ACEOF
26362/* confdefs.h.  */
26363_ACEOF
26364cat confdefs.h >>conftest.$ac_ext
26365cat >>conftest.$ac_ext <<_ACEOF
26366/* end confdefs.h.  */
26367$ac_includes_default
26368#include <$ac_header>
26369_ACEOF
26370rm -f conftest.$ac_objext
26371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26372  (eval $ac_compile) 2>conftest.er1
26373  ac_status=$?
26374  grep -v '^ *+' conftest.er1 >conftest.err
26375  rm -f conftest.er1
26376  cat conftest.err >&5
26377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378  (exit $ac_status); } &&
26379	 { ac_try='test -z "$ac_c_werror_flag"
26380			 || test ! -s conftest.err'
26381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382  (eval $ac_try) 2>&5
26383  ac_status=$?
26384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385  (exit $ac_status); }; } &&
26386	 { ac_try='test -s conftest.$ac_objext'
26387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388  (eval $ac_try) 2>&5
26389  ac_status=$?
26390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391  (exit $ac_status); }; }; then
26392  ac_header_compiler=yes
26393else
26394  echo "$as_me: failed program was:" >&5
26395sed 's/^/| /' conftest.$ac_ext >&5
26396
26397ac_header_compiler=no
26398fi
26399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26401echo "${ECHO_T}$ac_header_compiler" >&6
26402
26403# Is the header present?
26404echo "$as_me:$LINENO: checking $ac_header presence" >&5
26405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26406cat >conftest.$ac_ext <<_ACEOF
26407/* confdefs.h.  */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h.  */
26412#include <$ac_header>
26413_ACEOF
26414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26415  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26416  ac_status=$?
26417  grep -v '^ *+' conftest.er1 >conftest.err
26418  rm -f conftest.er1
26419  cat conftest.err >&5
26420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421  (exit $ac_status); } >/dev/null; then
26422  if test -s conftest.err; then
26423    ac_cpp_err=$ac_c_preproc_warn_flag
26424    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26425  else
26426    ac_cpp_err=
26427  fi
26428else
26429  ac_cpp_err=yes
26430fi
26431if test -z "$ac_cpp_err"; then
26432  ac_header_preproc=yes
26433else
26434  echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437  ac_header_preproc=no
26438fi
26439rm -f conftest.err conftest.$ac_ext
26440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26441echo "${ECHO_T}$ac_header_preproc" >&6
26442
26443# So?  What about this header?
26444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26445  yes:no: )
26446    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26448    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26450    ac_header_preproc=yes
26451    ;;
26452  no:yes:* )
26453    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26455    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26456echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26457    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26459    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26460echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26463    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26465    (
26466      cat <<\_ASBOX
26467## ----------------------------------- ##
26468## Report this to llvmbugs@cs.uiuc.edu ##
26469## ----------------------------------- ##
26470_ASBOX
26471    ) |
26472      sed "s/^/$as_me: WARNING:     /" >&2
26473    ;;
26474esac
26475echo "$as_me:$LINENO: checking for $ac_header" >&5
26476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26477if eval "test \"\${$as_ac_Header+set}\" = set"; then
26478  echo $ECHO_N "(cached) $ECHO_C" >&6
26479else
26480  eval "$as_ac_Header=\$ac_header_preproc"
26481fi
26482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26484
26485fi
26486if test `eval echo '${'$as_ac_Header'}'` = yes; then
26487  cat >>confdefs.h <<_ACEOF
26488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26489_ACEOF
26490
26491fi
26492
26493done
26494
26495
26496
26497
26498
26499
26500
26501for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26502do
26503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26504if eval "test \"\${$as_ac_Header+set}\" = set"; then
26505  echo "$as_me:$LINENO: checking for $ac_header" >&5
26506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26507if eval "test \"\${$as_ac_Header+set}\" = set"; then
26508  echo $ECHO_N "(cached) $ECHO_C" >&6
26509fi
26510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26512else
26513  # Is the header compilable?
26514echo "$as_me:$LINENO: checking $ac_header usability" >&5
26515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26516cat >conftest.$ac_ext <<_ACEOF
26517/* confdefs.h.  */
26518_ACEOF
26519cat confdefs.h >>conftest.$ac_ext
26520cat >>conftest.$ac_ext <<_ACEOF
26521/* end confdefs.h.  */
26522$ac_includes_default
26523#include <$ac_header>
26524_ACEOF
26525rm -f conftest.$ac_objext
26526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26527  (eval $ac_compile) 2>conftest.er1
26528  ac_status=$?
26529  grep -v '^ *+' conftest.er1 >conftest.err
26530  rm -f conftest.er1
26531  cat conftest.err >&5
26532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533  (exit $ac_status); } &&
26534	 { ac_try='test -z "$ac_c_werror_flag"
26535			 || test ! -s conftest.err'
26536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537  (eval $ac_try) 2>&5
26538  ac_status=$?
26539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540  (exit $ac_status); }; } &&
26541	 { ac_try='test -s conftest.$ac_objext'
26542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543  (eval $ac_try) 2>&5
26544  ac_status=$?
26545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546  (exit $ac_status); }; }; then
26547  ac_header_compiler=yes
26548else
26549  echo "$as_me: failed program was:" >&5
26550sed 's/^/| /' conftest.$ac_ext >&5
26551
26552ac_header_compiler=no
26553fi
26554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26556echo "${ECHO_T}$ac_header_compiler" >&6
26557
26558# Is the header present?
26559echo "$as_me:$LINENO: checking $ac_header presence" >&5
26560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26561cat >conftest.$ac_ext <<_ACEOF
26562/* confdefs.h.  */
26563_ACEOF
26564cat confdefs.h >>conftest.$ac_ext
26565cat >>conftest.$ac_ext <<_ACEOF
26566/* end confdefs.h.  */
26567#include <$ac_header>
26568_ACEOF
26569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26571  ac_status=$?
26572  grep -v '^ *+' conftest.er1 >conftest.err
26573  rm -f conftest.er1
26574  cat conftest.err >&5
26575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576  (exit $ac_status); } >/dev/null; then
26577  if test -s conftest.err; then
26578    ac_cpp_err=$ac_c_preproc_warn_flag
26579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26580  else
26581    ac_cpp_err=
26582  fi
26583else
26584  ac_cpp_err=yes
26585fi
26586if test -z "$ac_cpp_err"; then
26587  ac_header_preproc=yes
26588else
26589  echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592  ac_header_preproc=no
26593fi
26594rm -f conftest.err conftest.$ac_ext
26595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26596echo "${ECHO_T}$ac_header_preproc" >&6
26597
26598# So?  What about this header?
26599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26600  yes:no: )
26601    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26602echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26603    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26604echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26605    ac_header_preproc=yes
26606    ;;
26607  no:yes:* )
26608    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26609echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26610    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26611echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26612    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26613echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26614    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26615echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26616    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26618    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26619echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26620    (
26621      cat <<\_ASBOX
26622## ----------------------------------- ##
26623## Report this to llvmbugs@cs.uiuc.edu ##
26624## ----------------------------------- ##
26625_ASBOX
26626    ) |
26627      sed "s/^/$as_me: WARNING:     /" >&2
26628    ;;
26629esac
26630echo "$as_me:$LINENO: checking for $ac_header" >&5
26631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633  echo $ECHO_N "(cached) $ECHO_C" >&6
26634else
26635  eval "$as_ac_Header=\$ac_header_preproc"
26636fi
26637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639
26640fi
26641if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642  cat >>confdefs.h <<_ACEOF
26643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26644_ACEOF
26645
26646fi
26647
26648done
26649
26650
26651
26652
26653
26654
26655for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26656do
26657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26658if eval "test \"\${$as_ac_Header+set}\" = set"; then
26659  echo "$as_me:$LINENO: checking for $ac_header" >&5
26660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26661if eval "test \"\${$as_ac_Header+set}\" = set"; then
26662  echo $ECHO_N "(cached) $ECHO_C" >&6
26663fi
26664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26666else
26667  # Is the header compilable?
26668echo "$as_me:$LINENO: checking $ac_header usability" >&5
26669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26670cat >conftest.$ac_ext <<_ACEOF
26671/* confdefs.h.  */
26672_ACEOF
26673cat confdefs.h >>conftest.$ac_ext
26674cat >>conftest.$ac_ext <<_ACEOF
26675/* end confdefs.h.  */
26676$ac_includes_default
26677#include <$ac_header>
26678_ACEOF
26679rm -f conftest.$ac_objext
26680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26681  (eval $ac_compile) 2>conftest.er1
26682  ac_status=$?
26683  grep -v '^ *+' conftest.er1 >conftest.err
26684  rm -f conftest.er1
26685  cat conftest.err >&5
26686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687  (exit $ac_status); } &&
26688	 { ac_try='test -z "$ac_c_werror_flag"
26689			 || test ! -s conftest.err'
26690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691  (eval $ac_try) 2>&5
26692  ac_status=$?
26693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694  (exit $ac_status); }; } &&
26695	 { ac_try='test -s conftest.$ac_objext'
26696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697  (eval $ac_try) 2>&5
26698  ac_status=$?
26699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700  (exit $ac_status); }; }; then
26701  ac_header_compiler=yes
26702else
26703  echo "$as_me: failed program was:" >&5
26704sed 's/^/| /' conftest.$ac_ext >&5
26705
26706ac_header_compiler=no
26707fi
26708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26710echo "${ECHO_T}$ac_header_compiler" >&6
26711
26712# Is the header present?
26713echo "$as_me:$LINENO: checking $ac_header presence" >&5
26714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26715cat >conftest.$ac_ext <<_ACEOF
26716/* confdefs.h.  */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h.  */
26721#include <$ac_header>
26722_ACEOF
26723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26725  ac_status=$?
26726  grep -v '^ *+' conftest.er1 >conftest.err
26727  rm -f conftest.er1
26728  cat conftest.err >&5
26729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730  (exit $ac_status); } >/dev/null; then
26731  if test -s conftest.err; then
26732    ac_cpp_err=$ac_c_preproc_warn_flag
26733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26734  else
26735    ac_cpp_err=
26736  fi
26737else
26738  ac_cpp_err=yes
26739fi
26740if test -z "$ac_cpp_err"; then
26741  ac_header_preproc=yes
26742else
26743  echo "$as_me: failed program was:" >&5
26744sed 's/^/| /' conftest.$ac_ext >&5
26745
26746  ac_header_preproc=no
26747fi
26748rm -f conftest.err conftest.$ac_ext
26749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26750echo "${ECHO_T}$ac_header_preproc" >&6
26751
26752# So?  What about this header?
26753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26754  yes:no: )
26755    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26759    ac_header_preproc=yes
26760    ;;
26761  no:yes:* )
26762    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26764    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26765echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26766    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26768    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26769echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26772    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26774    (
26775      cat <<\_ASBOX
26776## ----------------------------------- ##
26777## Report this to llvmbugs@cs.uiuc.edu ##
26778## ----------------------------------- ##
26779_ASBOX
26780    ) |
26781      sed "s/^/$as_me: WARNING:     /" >&2
26782    ;;
26783esac
26784echo "$as_me:$LINENO: checking for $ac_header" >&5
26785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26786if eval "test \"\${$as_ac_Header+set}\" = set"; then
26787  echo $ECHO_N "(cached) $ECHO_C" >&6
26788else
26789  eval "$as_ac_Header=\$ac_header_preproc"
26790fi
26791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26793
26794fi
26795if test `eval echo '${'$as_ac_Header'}'` = yes; then
26796  cat >>confdefs.h <<_ACEOF
26797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26798_ACEOF
26799
26800fi
26801
26802done
26803
26804
26805
26806for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26807do
26808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26809if eval "test \"\${$as_ac_Header+set}\" = set"; then
26810  echo "$as_me:$LINENO: checking for $ac_header" >&5
26811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26812if eval "test \"\${$as_ac_Header+set}\" = set"; then
26813  echo $ECHO_N "(cached) $ECHO_C" >&6
26814fi
26815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26817else
26818  # Is the header compilable?
26819echo "$as_me:$LINENO: checking $ac_header usability" >&5
26820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26821cat >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
26828#include <$ac_header>
26829_ACEOF
26830rm -f conftest.$ac_objext
26831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832  (eval $ac_compile) 2>conftest.er1
26833  ac_status=$?
26834  grep -v '^ *+' conftest.er1 >conftest.err
26835  rm -f conftest.er1
26836  cat conftest.err >&5
26837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838  (exit $ac_status); } &&
26839	 { ac_try='test -z "$ac_c_werror_flag"
26840			 || test ! -s conftest.err'
26841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842  (eval $ac_try) 2>&5
26843  ac_status=$?
26844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845  (exit $ac_status); }; } &&
26846	 { ac_try='test -s conftest.$ac_objext'
26847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848  (eval $ac_try) 2>&5
26849  ac_status=$?
26850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851  (exit $ac_status); }; }; then
26852  ac_header_compiler=yes
26853else
26854  echo "$as_me: failed program was:" >&5
26855sed 's/^/| /' conftest.$ac_ext >&5
26856
26857ac_header_compiler=no
26858fi
26859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26861echo "${ECHO_T}$ac_header_compiler" >&6
26862
26863# Is the header present?
26864echo "$as_me:$LINENO: checking $ac_header presence" >&5
26865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26866cat >conftest.$ac_ext <<_ACEOF
26867/* confdefs.h.  */
26868_ACEOF
26869cat confdefs.h >>conftest.$ac_ext
26870cat >>conftest.$ac_ext <<_ACEOF
26871/* end confdefs.h.  */
26872#include <$ac_header>
26873_ACEOF
26874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26875  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26876  ac_status=$?
26877  grep -v '^ *+' conftest.er1 >conftest.err
26878  rm -f conftest.er1
26879  cat conftest.err >&5
26880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881  (exit $ac_status); } >/dev/null; then
26882  if test -s conftest.err; then
26883    ac_cpp_err=$ac_c_preproc_warn_flag
26884    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26885  else
26886    ac_cpp_err=
26887  fi
26888else
26889  ac_cpp_err=yes
26890fi
26891if test -z "$ac_cpp_err"; then
26892  ac_header_preproc=yes
26893else
26894  echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897  ac_header_preproc=no
26898fi
26899rm -f conftest.err conftest.$ac_ext
26900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26901echo "${ECHO_T}$ac_header_preproc" >&6
26902
26903# So?  What about this header?
26904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26905  yes:no: )
26906    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26910    ac_header_preproc=yes
26911    ;;
26912  no:yes:* )
26913    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26915    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26916echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26917    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26919    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26920echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26923    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26925    (
26926      cat <<\_ASBOX
26927## ----------------------------------- ##
26928## Report this to llvmbugs@cs.uiuc.edu ##
26929## ----------------------------------- ##
26930_ASBOX
26931    ) |
26932      sed "s/^/$as_me: WARNING:     /" >&2
26933    ;;
26934esac
26935echo "$as_me:$LINENO: checking for $ac_header" >&5
26936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26937if eval "test \"\${$as_ac_Header+set}\" = set"; then
26938  echo $ECHO_N "(cached) $ECHO_C" >&6
26939else
26940  eval "$as_ac_Header=\$ac_header_preproc"
26941fi
26942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26944
26945fi
26946if test `eval echo '${'$as_ac_Header'}'` = yes; then
26947  cat >>confdefs.h <<_ACEOF
26948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26949_ACEOF
26950
26951fi
26952
26953done
26954
26955if test "$ENABLE_THREADS" -eq 1 ; then
26956
26957for ac_header in pthread.h
26958do
26959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26960if eval "test \"\${$as_ac_Header+set}\" = set"; then
26961  echo "$as_me:$LINENO: checking for $ac_header" >&5
26962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26963if eval "test \"\${$as_ac_Header+set}\" = set"; then
26964  echo $ECHO_N "(cached) $ECHO_C" >&6
26965fi
26966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26968else
26969  # Is the header compilable?
26970echo "$as_me:$LINENO: checking $ac_header usability" >&5
26971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26972cat >conftest.$ac_ext <<_ACEOF
26973/* confdefs.h.  */
26974_ACEOF
26975cat confdefs.h >>conftest.$ac_ext
26976cat >>conftest.$ac_ext <<_ACEOF
26977/* end confdefs.h.  */
26978$ac_includes_default
26979#include <$ac_header>
26980_ACEOF
26981rm -f conftest.$ac_objext
26982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26983  (eval $ac_compile) 2>conftest.er1
26984  ac_status=$?
26985  grep -v '^ *+' conftest.er1 >conftest.err
26986  rm -f conftest.er1
26987  cat conftest.err >&5
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); } &&
26990	 { ac_try='test -z "$ac_c_werror_flag"
26991			 || test ! -s conftest.err'
26992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993  (eval $ac_try) 2>&5
26994  ac_status=$?
26995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996  (exit $ac_status); }; } &&
26997	 { ac_try='test -s conftest.$ac_objext'
26998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999  (eval $ac_try) 2>&5
27000  ac_status=$?
27001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002  (exit $ac_status); }; }; then
27003  ac_header_compiler=yes
27004else
27005  echo "$as_me: failed program was:" >&5
27006sed 's/^/| /' conftest.$ac_ext >&5
27007
27008ac_header_compiler=no
27009fi
27010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27012echo "${ECHO_T}$ac_header_compiler" >&6
27013
27014# Is the header present?
27015echo "$as_me:$LINENO: checking $ac_header presence" >&5
27016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27017cat >conftest.$ac_ext <<_ACEOF
27018/* confdefs.h.  */
27019_ACEOF
27020cat confdefs.h >>conftest.$ac_ext
27021cat >>conftest.$ac_ext <<_ACEOF
27022/* end confdefs.h.  */
27023#include <$ac_header>
27024_ACEOF
27025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27027  ac_status=$?
27028  grep -v '^ *+' conftest.er1 >conftest.err
27029  rm -f conftest.er1
27030  cat conftest.err >&5
27031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032  (exit $ac_status); } >/dev/null; then
27033  if test -s conftest.err; then
27034    ac_cpp_err=$ac_c_preproc_warn_flag
27035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27036  else
27037    ac_cpp_err=
27038  fi
27039else
27040  ac_cpp_err=yes
27041fi
27042if test -z "$ac_cpp_err"; then
27043  ac_header_preproc=yes
27044else
27045  echo "$as_me: failed program was:" >&5
27046sed 's/^/| /' conftest.$ac_ext >&5
27047
27048  ac_header_preproc=no
27049fi
27050rm -f conftest.err conftest.$ac_ext
27051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052echo "${ECHO_T}$ac_header_preproc" >&6
27053
27054# So?  What about this header?
27055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27056  yes:no: )
27057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061    ac_header_preproc=yes
27062    ;;
27063  no:yes:* )
27064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27076    (
27077      cat <<\_ASBOX
27078## ----------------------------------- ##
27079## Report this to llvmbugs@cs.uiuc.edu ##
27080## ----------------------------------- ##
27081_ASBOX
27082    ) |
27083      sed "s/^/$as_me: WARNING:     /" >&2
27084    ;;
27085esac
27086echo "$as_me:$LINENO: checking for $ac_header" >&5
27087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27088if eval "test \"\${$as_ac_Header+set}\" = set"; then
27089  echo $ECHO_N "(cached) $ECHO_C" >&6
27090else
27091  eval "$as_ac_Header=\$ac_header_preproc"
27092fi
27093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27095
27096fi
27097if test `eval echo '${'$as_ac_Header'}'` = yes; then
27098  cat >>confdefs.h <<_ACEOF
27099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27100_ACEOF
27101
27102fi
27103
27104done
27105
27106fi
27107
27108
27109echo "$as_me:$LINENO: checking for pid_t" >&5
27110echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27111if test "${ac_cv_type_pid_t+set}" = set; then
27112  echo $ECHO_N "(cached) $ECHO_C" >&6
27113else
27114  cat >conftest.$ac_ext <<_ACEOF
27115/* confdefs.h.  */
27116_ACEOF
27117cat confdefs.h >>conftest.$ac_ext
27118cat >>conftest.$ac_ext <<_ACEOF
27119/* end confdefs.h.  */
27120$ac_includes_default
27121int
27122main ()
27123{
27124if ((pid_t *) 0)
27125  return 0;
27126if (sizeof (pid_t))
27127  return 0;
27128  ;
27129  return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext
27133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134  (eval $ac_compile) 2>conftest.er1
27135  ac_status=$?
27136  grep -v '^ *+' conftest.er1 >conftest.err
27137  rm -f conftest.er1
27138  cat conftest.err >&5
27139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140  (exit $ac_status); } &&
27141	 { ac_try='test -z "$ac_c_werror_flag"
27142			 || test ! -s conftest.err'
27143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144  (eval $ac_try) 2>&5
27145  ac_status=$?
27146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147  (exit $ac_status); }; } &&
27148	 { ac_try='test -s conftest.$ac_objext'
27149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150  (eval $ac_try) 2>&5
27151  ac_status=$?
27152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153  (exit $ac_status); }; }; then
27154  ac_cv_type_pid_t=yes
27155else
27156  echo "$as_me: failed program was:" >&5
27157sed 's/^/| /' conftest.$ac_ext >&5
27158
27159ac_cv_type_pid_t=no
27160fi
27161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27162fi
27163echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27164echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27165if test $ac_cv_type_pid_t = yes; then
27166  :
27167else
27168
27169cat >>confdefs.h <<_ACEOF
27170#define pid_t int
27171_ACEOF
27172
27173fi
27174
27175echo "$as_me:$LINENO: checking for size_t" >&5
27176echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27177if test "${ac_cv_type_size_t+set}" = set; then
27178  echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180  cat >conftest.$ac_ext <<_ACEOF
27181/* confdefs.h.  */
27182_ACEOF
27183cat confdefs.h >>conftest.$ac_ext
27184cat >>conftest.$ac_ext <<_ACEOF
27185/* end confdefs.h.  */
27186$ac_includes_default
27187int
27188main ()
27189{
27190if ((size_t *) 0)
27191  return 0;
27192if (sizeof (size_t))
27193  return 0;
27194  ;
27195  return 0;
27196}
27197_ACEOF
27198rm -f conftest.$ac_objext
27199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27200  (eval $ac_compile) 2>conftest.er1
27201  ac_status=$?
27202  grep -v '^ *+' conftest.er1 >conftest.err
27203  rm -f conftest.er1
27204  cat conftest.err >&5
27205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206  (exit $ac_status); } &&
27207	 { ac_try='test -z "$ac_c_werror_flag"
27208			 || test ! -s conftest.err'
27209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210  (eval $ac_try) 2>&5
27211  ac_status=$?
27212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213  (exit $ac_status); }; } &&
27214	 { ac_try='test -s conftest.$ac_objext'
27215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216  (eval $ac_try) 2>&5
27217  ac_status=$?
27218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219  (exit $ac_status); }; }; then
27220  ac_cv_type_size_t=yes
27221else
27222  echo "$as_me: failed program was:" >&5
27223sed 's/^/| /' conftest.$ac_ext >&5
27224
27225ac_cv_type_size_t=no
27226fi
27227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27228fi
27229echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27230echo "${ECHO_T}$ac_cv_type_size_t" >&6
27231if test $ac_cv_type_size_t = yes; then
27232  :
27233else
27234
27235cat >>confdefs.h <<_ACEOF
27236#define size_t unsigned
27237_ACEOF
27238
27239fi
27240
27241echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27242echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27243if test "${ac_cv_type_signal+set}" = set; then
27244  echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
27246  cat >conftest.$ac_ext <<_ACEOF
27247/* confdefs.h.  */
27248_ACEOF
27249cat confdefs.h >>conftest.$ac_ext
27250cat >>conftest.$ac_ext <<_ACEOF
27251/* end confdefs.h.  */
27252#include <sys/types.h>
27253#include <signal.h>
27254#ifdef signal
27255# undef signal
27256#endif
27257#ifdef __cplusplus
27258extern "C" void (*signal (int, void (*)(int)))(int);
27259#else
27260void (*signal ()) ();
27261#endif
27262
27263int
27264main ()
27265{
27266int i;
27267  ;
27268  return 0;
27269}
27270_ACEOF
27271rm -f conftest.$ac_objext
27272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273  (eval $ac_compile) 2>conftest.er1
27274  ac_status=$?
27275  grep -v '^ *+' conftest.er1 >conftest.err
27276  rm -f conftest.er1
27277  cat conftest.err >&5
27278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279  (exit $ac_status); } &&
27280	 { ac_try='test -z "$ac_c_werror_flag"
27281			 || test ! -s conftest.err'
27282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283  (eval $ac_try) 2>&5
27284  ac_status=$?
27285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286  (exit $ac_status); }; } &&
27287	 { ac_try='test -s conftest.$ac_objext'
27288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289  (eval $ac_try) 2>&5
27290  ac_status=$?
27291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292  (exit $ac_status); }; }; then
27293  ac_cv_type_signal=void
27294else
27295  echo "$as_me: failed program was:" >&5
27296sed 's/^/| /' conftest.$ac_ext >&5
27297
27298ac_cv_type_signal=int
27299fi
27300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27301fi
27302echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27303echo "${ECHO_T}$ac_cv_type_signal" >&6
27304
27305cat >>confdefs.h <<_ACEOF
27306#define RETSIGTYPE $ac_cv_type_signal
27307_ACEOF
27308
27309
27310echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27311echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27312if test "${ac_cv_struct_tm+set}" = set; then
27313  echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315  cat >conftest.$ac_ext <<_ACEOF
27316/* confdefs.h.  */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h.  */
27321#include <sys/types.h>
27322#include <time.h>
27323
27324int
27325main ()
27326{
27327struct tm *tp; tp->tm_sec;
27328  ;
27329  return 0;
27330}
27331_ACEOF
27332rm -f conftest.$ac_objext
27333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334  (eval $ac_compile) 2>conftest.er1
27335  ac_status=$?
27336  grep -v '^ *+' conftest.er1 >conftest.err
27337  rm -f conftest.er1
27338  cat conftest.err >&5
27339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340  (exit $ac_status); } &&
27341	 { ac_try='test -z "$ac_c_werror_flag"
27342			 || test ! -s conftest.err'
27343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344  (eval $ac_try) 2>&5
27345  ac_status=$?
27346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347  (exit $ac_status); }; } &&
27348	 { ac_try='test -s conftest.$ac_objext'
27349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350  (eval $ac_try) 2>&5
27351  ac_status=$?
27352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353  (exit $ac_status); }; }; then
27354  ac_cv_struct_tm=time.h
27355else
27356  echo "$as_me: failed program was:" >&5
27357sed 's/^/| /' conftest.$ac_ext >&5
27358
27359ac_cv_struct_tm=sys/time.h
27360fi
27361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27362fi
27363echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27364echo "${ECHO_T}$ac_cv_struct_tm" >&6
27365if test $ac_cv_struct_tm = sys/time.h; then
27366
27367cat >>confdefs.h <<\_ACEOF
27368#define TM_IN_SYS_TIME 1
27369_ACEOF
27370
27371fi
27372
27373echo "$as_me:$LINENO: checking for int64_t" >&5
27374echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27375if test "${ac_cv_type_int64_t+set}" = set; then
27376  echo $ECHO_N "(cached) $ECHO_C" >&6
27377else
27378  cat >conftest.$ac_ext <<_ACEOF
27379/* confdefs.h.  */
27380_ACEOF
27381cat confdefs.h >>conftest.$ac_ext
27382cat >>conftest.$ac_ext <<_ACEOF
27383/* end confdefs.h.  */
27384$ac_includes_default
27385int
27386main ()
27387{
27388if ((int64_t *) 0)
27389  return 0;
27390if (sizeof (int64_t))
27391  return 0;
27392  ;
27393  return 0;
27394}
27395_ACEOF
27396rm -f conftest.$ac_objext
27397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27398  (eval $ac_compile) 2>conftest.er1
27399  ac_status=$?
27400  grep -v '^ *+' conftest.er1 >conftest.err
27401  rm -f conftest.er1
27402  cat conftest.err >&5
27403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404  (exit $ac_status); } &&
27405	 { ac_try='test -z "$ac_c_werror_flag"
27406			 || test ! -s conftest.err'
27407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408  (eval $ac_try) 2>&5
27409  ac_status=$?
27410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411  (exit $ac_status); }; } &&
27412	 { ac_try='test -s conftest.$ac_objext'
27413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414  (eval $ac_try) 2>&5
27415  ac_status=$?
27416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417  (exit $ac_status); }; }; then
27418  ac_cv_type_int64_t=yes
27419else
27420  echo "$as_me: failed program was:" >&5
27421sed 's/^/| /' conftest.$ac_ext >&5
27422
27423ac_cv_type_int64_t=no
27424fi
27425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426fi
27427echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27428echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27429if test $ac_cv_type_int64_t = yes; then
27430
27431cat >>confdefs.h <<_ACEOF
27432#define HAVE_INT64_T 1
27433_ACEOF
27434
27435
27436else
27437  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27438echo "$as_me: error: Type int64_t required but not found" >&2;}
27439   { (exit 1); exit 1; }; }
27440fi
27441
27442echo "$as_me:$LINENO: checking for uint64_t" >&5
27443echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27444if test "${ac_cv_type_uint64_t+set}" = set; then
27445  echo $ECHO_N "(cached) $ECHO_C" >&6
27446else
27447  cat >conftest.$ac_ext <<_ACEOF
27448/* confdefs.h.  */
27449_ACEOF
27450cat confdefs.h >>conftest.$ac_ext
27451cat >>conftest.$ac_ext <<_ACEOF
27452/* end confdefs.h.  */
27453$ac_includes_default
27454int
27455main ()
27456{
27457if ((uint64_t *) 0)
27458  return 0;
27459if (sizeof (uint64_t))
27460  return 0;
27461  ;
27462  return 0;
27463}
27464_ACEOF
27465rm -f conftest.$ac_objext
27466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467  (eval $ac_compile) 2>conftest.er1
27468  ac_status=$?
27469  grep -v '^ *+' conftest.er1 >conftest.err
27470  rm -f conftest.er1
27471  cat conftest.err >&5
27472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473  (exit $ac_status); } &&
27474	 { ac_try='test -z "$ac_c_werror_flag"
27475			 || test ! -s conftest.err'
27476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477  (eval $ac_try) 2>&5
27478  ac_status=$?
27479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480  (exit $ac_status); }; } &&
27481	 { ac_try='test -s conftest.$ac_objext'
27482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483  (eval $ac_try) 2>&5
27484  ac_status=$?
27485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486  (exit $ac_status); }; }; then
27487  ac_cv_type_uint64_t=yes
27488else
27489  echo "$as_me: failed program was:" >&5
27490sed 's/^/| /' conftest.$ac_ext >&5
27491
27492ac_cv_type_uint64_t=no
27493fi
27494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495fi
27496echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27497echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27498if test $ac_cv_type_uint64_t = yes; then
27499
27500cat >>confdefs.h <<_ACEOF
27501#define HAVE_UINT64_T 1
27502_ACEOF
27503
27504
27505else
27506  echo "$as_me:$LINENO: checking for u_int64_t" >&5
27507echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27508if test "${ac_cv_type_u_int64_t+set}" = set; then
27509  echo $ECHO_N "(cached) $ECHO_C" >&6
27510else
27511  cat >conftest.$ac_ext <<_ACEOF
27512/* confdefs.h.  */
27513_ACEOF
27514cat confdefs.h >>conftest.$ac_ext
27515cat >>conftest.$ac_ext <<_ACEOF
27516/* end confdefs.h.  */
27517$ac_includes_default
27518int
27519main ()
27520{
27521if ((u_int64_t *) 0)
27522  return 0;
27523if (sizeof (u_int64_t))
27524  return 0;
27525  ;
27526  return 0;
27527}
27528_ACEOF
27529rm -f conftest.$ac_objext
27530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27531  (eval $ac_compile) 2>conftest.er1
27532  ac_status=$?
27533  grep -v '^ *+' conftest.er1 >conftest.err
27534  rm -f conftest.er1
27535  cat conftest.err >&5
27536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537  (exit $ac_status); } &&
27538	 { ac_try='test -z "$ac_c_werror_flag"
27539			 || test ! -s conftest.err'
27540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541  (eval $ac_try) 2>&5
27542  ac_status=$?
27543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544  (exit $ac_status); }; } &&
27545	 { ac_try='test -s conftest.$ac_objext'
27546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547  (eval $ac_try) 2>&5
27548  ac_status=$?
27549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550  (exit $ac_status); }; }; then
27551  ac_cv_type_u_int64_t=yes
27552else
27553  echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
27556ac_cv_type_u_int64_t=no
27557fi
27558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559fi
27560echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27561echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27562if test $ac_cv_type_u_int64_t = yes; then
27563
27564cat >>confdefs.h <<_ACEOF
27565#define HAVE_U_INT64_T 1
27566_ACEOF
27567
27568
27569else
27570  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27571echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27572   { (exit 1); exit 1; }; }
27573fi
27574
27575fi
27576
27577
27578
27579
27580
27581
27582
27583
27584for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27585do
27586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27587echo "$as_me:$LINENO: checking for $ac_func" >&5
27588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27589if eval "test \"\${$as_ac_var+set}\" = set"; then
27590  echo $ECHO_N "(cached) $ECHO_C" >&6
27591else
27592  cat >conftest.$ac_ext <<_ACEOF
27593/* confdefs.h.  */
27594_ACEOF
27595cat confdefs.h >>conftest.$ac_ext
27596cat >>conftest.$ac_ext <<_ACEOF
27597/* end confdefs.h.  */
27598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27599   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27600#define $ac_func innocuous_$ac_func
27601
27602/* System header to define __stub macros and hopefully few prototypes,
27603    which can conflict with char $ac_func (); below.
27604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27605    <limits.h> exists even on freestanding compilers.  */
27606
27607#ifdef __STDC__
27608# include <limits.h>
27609#else
27610# include <assert.h>
27611#endif
27612
27613#undef $ac_func
27614
27615/* Override any gcc2 internal prototype to avoid an error.  */
27616#ifdef __cplusplus
27617extern "C"
27618{
27619#endif
27620/* We use char because int might match the return type of a gcc2
27621   builtin and then its argument prototype would still apply.  */
27622char $ac_func ();
27623/* The GNU C library defines this for functions which it implements
27624    to always fail with ENOSYS.  Some functions are actually named
27625    something starting with __ and the normal name is an alias.  */
27626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27627choke me
27628#else
27629char (*f) () = $ac_func;
27630#endif
27631#ifdef __cplusplus
27632}
27633#endif
27634
27635int
27636main ()
27637{
27638return f != $ac_func;
27639  ;
27640  return 0;
27641}
27642_ACEOF
27643rm -f conftest.$ac_objext conftest$ac_exeext
27644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27645  (eval $ac_link) 2>conftest.er1
27646  ac_status=$?
27647  grep -v '^ *+' conftest.er1 >conftest.err
27648  rm -f conftest.er1
27649  cat conftest.err >&5
27650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651  (exit $ac_status); } &&
27652	 { ac_try='test -z "$ac_c_werror_flag"
27653			 || test ! -s conftest.err'
27654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655  (eval $ac_try) 2>&5
27656  ac_status=$?
27657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658  (exit $ac_status); }; } &&
27659	 { ac_try='test -s conftest$ac_exeext'
27660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661  (eval $ac_try) 2>&5
27662  ac_status=$?
27663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664  (exit $ac_status); }; }; then
27665  eval "$as_ac_var=yes"
27666else
27667  echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670eval "$as_ac_var=no"
27671fi
27672rm -f conftest.err conftest.$ac_objext \
27673      conftest$ac_exeext conftest.$ac_ext
27674fi
27675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27677if test `eval echo '${'$as_ac_var'}'` = yes; then
27678  cat >>confdefs.h <<_ACEOF
27679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27680_ACEOF
27681
27682fi
27683done
27684
27685
27686
27687
27688
27689for ac_func in isatty mkdtemp mkstemp mktemp
27690do
27691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27692echo "$as_me:$LINENO: checking for $ac_func" >&5
27693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27694if eval "test \"\${$as_ac_var+set}\" = set"; then
27695  echo $ECHO_N "(cached) $ECHO_C" >&6
27696else
27697  cat >conftest.$ac_ext <<_ACEOF
27698/* confdefs.h.  */
27699_ACEOF
27700cat confdefs.h >>conftest.$ac_ext
27701cat >>conftest.$ac_ext <<_ACEOF
27702/* end confdefs.h.  */
27703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27704   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27705#define $ac_func innocuous_$ac_func
27706
27707/* System header to define __stub macros and hopefully few prototypes,
27708    which can conflict with char $ac_func (); below.
27709    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710    <limits.h> exists even on freestanding compilers.  */
27711
27712#ifdef __STDC__
27713# include <limits.h>
27714#else
27715# include <assert.h>
27716#endif
27717
27718#undef $ac_func
27719
27720/* Override any gcc2 internal prototype to avoid an error.  */
27721#ifdef __cplusplus
27722extern "C"
27723{
27724#endif
27725/* We use char because int might match the return type of a gcc2
27726   builtin and then its argument prototype would still apply.  */
27727char $ac_func ();
27728/* The GNU C library defines this for functions which it implements
27729    to always fail with ENOSYS.  Some functions are actually named
27730    something starting with __ and the normal name is an alias.  */
27731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27732choke me
27733#else
27734char (*f) () = $ac_func;
27735#endif
27736#ifdef __cplusplus
27737}
27738#endif
27739
27740int
27741main ()
27742{
27743return f != $ac_func;
27744  ;
27745  return 0;
27746}
27747_ACEOF
27748rm -f conftest.$ac_objext conftest$ac_exeext
27749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750  (eval $ac_link) 2>conftest.er1
27751  ac_status=$?
27752  grep -v '^ *+' conftest.er1 >conftest.err
27753  rm -f conftest.er1
27754  cat conftest.err >&5
27755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756  (exit $ac_status); } &&
27757	 { ac_try='test -z "$ac_c_werror_flag"
27758			 || test ! -s conftest.err'
27759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760  (eval $ac_try) 2>&5
27761  ac_status=$?
27762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763  (exit $ac_status); }; } &&
27764	 { ac_try='test -s conftest$ac_exeext'
27765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766  (eval $ac_try) 2>&5
27767  ac_status=$?
27768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769  (exit $ac_status); }; }; then
27770  eval "$as_ac_var=yes"
27771else
27772  echo "$as_me: failed program was:" >&5
27773sed 's/^/| /' conftest.$ac_ext >&5
27774
27775eval "$as_ac_var=no"
27776fi
27777rm -f conftest.err conftest.$ac_objext \
27778      conftest$ac_exeext conftest.$ac_ext
27779fi
27780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27782if test `eval echo '${'$as_ac_var'}'` = yes; then
27783  cat >>confdefs.h <<_ACEOF
27784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27785_ACEOF
27786
27787fi
27788done
27789
27790
27791
27792
27793
27794
27795
27796for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27797do
27798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799echo "$as_me:$LINENO: checking for $ac_func" >&5
27800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801if eval "test \"\${$as_ac_var+set}\" = set"; then
27802  echo $ECHO_N "(cached) $ECHO_C" >&6
27803else
27804  cat >conftest.$ac_ext <<_ACEOF
27805/* confdefs.h.  */
27806_ACEOF
27807cat confdefs.h >>conftest.$ac_ext
27808cat >>conftest.$ac_ext <<_ACEOF
27809/* end confdefs.h.  */
27810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27812#define $ac_func innocuous_$ac_func
27813
27814/* System header to define __stub macros and hopefully few prototypes,
27815    which can conflict with char $ac_func (); below.
27816    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817    <limits.h> exists even on freestanding compilers.  */
27818
27819#ifdef __STDC__
27820# include <limits.h>
27821#else
27822# include <assert.h>
27823#endif
27824
27825#undef $ac_func
27826
27827/* Override any gcc2 internal prototype to avoid an error.  */
27828#ifdef __cplusplus
27829extern "C"
27830{
27831#endif
27832/* We use char because int might match the return type of a gcc2
27833   builtin and then its argument prototype would still apply.  */
27834char $ac_func ();
27835/* The GNU C library defines this for functions which it implements
27836    to always fail with ENOSYS.  Some functions are actually named
27837    something starting with __ and the normal name is an alias.  */
27838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27839choke me
27840#else
27841char (*f) () = $ac_func;
27842#endif
27843#ifdef __cplusplus
27844}
27845#endif
27846
27847int
27848main ()
27849{
27850return f != $ac_func;
27851  ;
27852  return 0;
27853}
27854_ACEOF
27855rm -f conftest.$ac_objext conftest$ac_exeext
27856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857  (eval $ac_link) 2>conftest.er1
27858  ac_status=$?
27859  grep -v '^ *+' conftest.er1 >conftest.err
27860  rm -f conftest.er1
27861  cat conftest.err >&5
27862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863  (exit $ac_status); } &&
27864	 { ac_try='test -z "$ac_c_werror_flag"
27865			 || test ! -s conftest.err'
27866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867  (eval $ac_try) 2>&5
27868  ac_status=$?
27869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870  (exit $ac_status); }; } &&
27871	 { ac_try='test -s conftest$ac_exeext'
27872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873  (eval $ac_try) 2>&5
27874  ac_status=$?
27875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876  (exit $ac_status); }; }; then
27877  eval "$as_ac_var=yes"
27878else
27879  echo "$as_me: failed program was:" >&5
27880sed 's/^/| /' conftest.$ac_ext >&5
27881
27882eval "$as_ac_var=no"
27883fi
27884rm -f conftest.err conftest.$ac_objext \
27885      conftest$ac_exeext conftest.$ac_ext
27886fi
27887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27889if test `eval echo '${'$as_ac_var'}'` = yes; then
27890  cat >>confdefs.h <<_ACEOF
27891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27892_ACEOF
27893
27894fi
27895done
27896
27897
27898
27899
27900for ac_func in strtoll strtoq sysconf
27901do
27902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27903echo "$as_me:$LINENO: checking for $ac_func" >&5
27904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27905if eval "test \"\${$as_ac_var+set}\" = set"; then
27906  echo $ECHO_N "(cached) $ECHO_C" >&6
27907else
27908  cat >conftest.$ac_ext <<_ACEOF
27909/* confdefs.h.  */
27910_ACEOF
27911cat confdefs.h >>conftest.$ac_ext
27912cat >>conftest.$ac_ext <<_ACEOF
27913/* end confdefs.h.  */
27914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27916#define $ac_func innocuous_$ac_func
27917
27918/* System header to define __stub macros and hopefully few prototypes,
27919    which can conflict with char $ac_func (); below.
27920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27921    <limits.h> exists even on freestanding compilers.  */
27922
27923#ifdef __STDC__
27924# include <limits.h>
27925#else
27926# include <assert.h>
27927#endif
27928
27929#undef $ac_func
27930
27931/* Override any gcc2 internal prototype to avoid an error.  */
27932#ifdef __cplusplus
27933extern "C"
27934{
27935#endif
27936/* We use char because int might match the return type of a gcc2
27937   builtin and then its argument prototype would still apply.  */
27938char $ac_func ();
27939/* The GNU C library defines this for functions which it implements
27940    to always fail with ENOSYS.  Some functions are actually named
27941    something starting with __ and the normal name is an alias.  */
27942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27943choke me
27944#else
27945char (*f) () = $ac_func;
27946#endif
27947#ifdef __cplusplus
27948}
27949#endif
27950
27951int
27952main ()
27953{
27954return f != $ac_func;
27955  ;
27956  return 0;
27957}
27958_ACEOF
27959rm -f conftest.$ac_objext conftest$ac_exeext
27960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27961  (eval $ac_link) 2>conftest.er1
27962  ac_status=$?
27963  grep -v '^ *+' conftest.er1 >conftest.err
27964  rm -f conftest.er1
27965  cat conftest.err >&5
27966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967  (exit $ac_status); } &&
27968	 { ac_try='test -z "$ac_c_werror_flag"
27969			 || test ! -s conftest.err'
27970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971  (eval $ac_try) 2>&5
27972  ac_status=$?
27973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974  (exit $ac_status); }; } &&
27975	 { ac_try='test -s conftest$ac_exeext'
27976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27977  (eval $ac_try) 2>&5
27978  ac_status=$?
27979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980  (exit $ac_status); }; }; then
27981  eval "$as_ac_var=yes"
27982else
27983  echo "$as_me: failed program was:" >&5
27984sed 's/^/| /' conftest.$ac_ext >&5
27985
27986eval "$as_ac_var=no"
27987fi
27988rm -f conftest.err conftest.$ac_objext \
27989      conftest$ac_exeext conftest.$ac_ext
27990fi
27991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27993if test `eval echo '${'$as_ac_var'}'` = yes; then
27994  cat >>confdefs.h <<_ACEOF
27995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27996_ACEOF
27997
27998fi
27999done
28000
28001echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28002echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28003if test "${llvm_cv_c_printf_a+set}" = set; then
28004  echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006  ac_ext=c
28007ac_cpp='$CPP $CPPFLAGS'
28008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28010ac_compiler_gnu=$ac_cv_c_compiler_gnu
28011
28012 if test "$cross_compiling" = yes; then
28013  llvmac_cv_c_printf_a=no
28014else
28015  cat >conftest.$ac_ext <<_ACEOF
28016
28017  /* confdefs.h.  */
28018_ACEOF
28019cat confdefs.h >>conftest.$ac_ext
28020cat >>conftest.$ac_ext <<_ACEOF
28021/* end confdefs.h.  */
28022
28023#include <stdio.h>
28024#include <stdlib.h>
28025
28026int
28027main ()
28028{
28029
28030volatile double A, B;
28031char Buffer[100];
28032A = 1;
28033A /= 10.0;
28034sprintf(Buffer, "%a", A);
28035B = atof(Buffer);
28036if (A != B)
28037  return (1);
28038if (A != 0x1.999999999999ap-4)
28039  return (1);
28040return (0);
28041  ;
28042  return 0;
28043}
28044_ACEOF
28045rm -f conftest$ac_exeext
28046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28047  (eval $ac_link) 2>&5
28048  ac_status=$?
28049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052  (eval $ac_try) 2>&5
28053  ac_status=$?
28054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055  (exit $ac_status); }; }; then
28056  llvm_cv_c_printf_a=yes
28057else
28058  echo "$as_me: program exited with status $ac_status" >&5
28059echo "$as_me: failed program was:" >&5
28060sed 's/^/| /' conftest.$ac_ext >&5
28061
28062( exit $ac_status )
28063llvmac_cv_c_printf_a=no
28064fi
28065rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28066fi
28067 ac_ext=c
28068ac_cpp='$CPP $CPPFLAGS'
28069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28071ac_compiler_gnu=$ac_cv_c_compiler_gnu
28072
28073fi
28074echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28075echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28076 if test "$llvm_cv_c_printf_a" = "yes"; then
28077
28078cat >>confdefs.h <<\_ACEOF
28079#define HAVE_PRINTF_A 1
28080_ACEOF
28081
28082 fi
28083
28084# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28085# for constant arguments.  Useless!
28086echo "$as_me:$LINENO: checking for working alloca.h" >&5
28087echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28088if test "${ac_cv_working_alloca_h+set}" = set; then
28089  echo $ECHO_N "(cached) $ECHO_C" >&6
28090else
28091  cat >conftest.$ac_ext <<_ACEOF
28092/* confdefs.h.  */
28093_ACEOF
28094cat confdefs.h >>conftest.$ac_ext
28095cat >>conftest.$ac_ext <<_ACEOF
28096/* end confdefs.h.  */
28097#include <alloca.h>
28098int
28099main ()
28100{
28101char *p = (char *) alloca (2 * sizeof (int));
28102  ;
28103  return 0;
28104}
28105_ACEOF
28106rm -f conftest.$ac_objext conftest$ac_exeext
28107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28108  (eval $ac_link) 2>conftest.er1
28109  ac_status=$?
28110  grep -v '^ *+' conftest.er1 >conftest.err
28111  rm -f conftest.er1
28112  cat conftest.err >&5
28113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114  (exit $ac_status); } &&
28115	 { ac_try='test -z "$ac_c_werror_flag"
28116			 || test ! -s conftest.err'
28117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118  (eval $ac_try) 2>&5
28119  ac_status=$?
28120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121  (exit $ac_status); }; } &&
28122	 { ac_try='test -s conftest$ac_exeext'
28123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124  (eval $ac_try) 2>&5
28125  ac_status=$?
28126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127  (exit $ac_status); }; }; then
28128  ac_cv_working_alloca_h=yes
28129else
28130  echo "$as_me: failed program was:" >&5
28131sed 's/^/| /' conftest.$ac_ext >&5
28132
28133ac_cv_working_alloca_h=no
28134fi
28135rm -f conftest.err conftest.$ac_objext \
28136      conftest$ac_exeext conftest.$ac_ext
28137fi
28138echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28139echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28140if test $ac_cv_working_alloca_h = yes; then
28141
28142cat >>confdefs.h <<\_ACEOF
28143#define HAVE_ALLOCA_H 1
28144_ACEOF
28145
28146fi
28147
28148echo "$as_me:$LINENO: checking for alloca" >&5
28149echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28150if test "${ac_cv_func_alloca_works+set}" = set; then
28151  echo $ECHO_N "(cached) $ECHO_C" >&6
28152else
28153  cat >conftest.$ac_ext <<_ACEOF
28154/* confdefs.h.  */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h.  */
28159#ifdef __GNUC__
28160# define alloca __builtin_alloca
28161#else
28162# ifdef _MSC_VER
28163#  include <malloc.h>
28164#  define alloca _alloca
28165# else
28166#  if HAVE_ALLOCA_H
28167#   include <alloca.h>
28168#  else
28169#   ifdef _AIX
28170 #pragma alloca
28171#   else
28172#    ifndef alloca /* predefined by HP cc +Olibcalls */
28173char *alloca ();
28174#    endif
28175#   endif
28176#  endif
28177# endif
28178#endif
28179
28180int
28181main ()
28182{
28183char *p = (char *) alloca (1);
28184  ;
28185  return 0;
28186}
28187_ACEOF
28188rm -f conftest.$ac_objext conftest$ac_exeext
28189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28190  (eval $ac_link) 2>conftest.er1
28191  ac_status=$?
28192  grep -v '^ *+' conftest.er1 >conftest.err
28193  rm -f conftest.er1
28194  cat conftest.err >&5
28195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196  (exit $ac_status); } &&
28197	 { ac_try='test -z "$ac_c_werror_flag"
28198			 || test ! -s conftest.err'
28199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200  (eval $ac_try) 2>&5
28201  ac_status=$?
28202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203  (exit $ac_status); }; } &&
28204	 { ac_try='test -s conftest$ac_exeext'
28205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206  (eval $ac_try) 2>&5
28207  ac_status=$?
28208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209  (exit $ac_status); }; }; then
28210  ac_cv_func_alloca_works=yes
28211else
28212  echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215ac_cv_func_alloca_works=no
28216fi
28217rm -f conftest.err conftest.$ac_objext \
28218      conftest$ac_exeext conftest.$ac_ext
28219fi
28220echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28221echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28222
28223if test $ac_cv_func_alloca_works = yes; then
28224
28225cat >>confdefs.h <<\_ACEOF
28226#define HAVE_ALLOCA 1
28227_ACEOF
28228
28229else
28230  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28231# that cause trouble.  Some versions do not even contain alloca or
28232# contain a buggy version.  If you still want to use their alloca,
28233# use ar to extract alloca.o from them instead of compiling alloca.c.
28234
28235ALLOCA=alloca.$ac_objext
28236
28237cat >>confdefs.h <<\_ACEOF
28238#define C_ALLOCA 1
28239_ACEOF
28240
28241
28242echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28243echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28244if test "${ac_cv_os_cray+set}" = set; then
28245  echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
28247  cat >conftest.$ac_ext <<_ACEOF
28248/* confdefs.h.  */
28249_ACEOF
28250cat confdefs.h >>conftest.$ac_ext
28251cat >>conftest.$ac_ext <<_ACEOF
28252/* end confdefs.h.  */
28253#if defined(CRAY) && ! defined(CRAY2)
28254webecray
28255#else
28256wenotbecray
28257#endif
28258
28259_ACEOF
28260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28261  $EGREP "webecray" >/dev/null 2>&1; then
28262  ac_cv_os_cray=yes
28263else
28264  ac_cv_os_cray=no
28265fi
28266rm -f conftest*
28267
28268fi
28269echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28270echo "${ECHO_T}$ac_cv_os_cray" >&6
28271if test $ac_cv_os_cray = yes; then
28272  for ac_func in _getb67 GETB67 getb67; do
28273    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28274echo "$as_me:$LINENO: checking for $ac_func" >&5
28275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28276if eval "test \"\${$as_ac_var+set}\" = set"; then
28277  echo $ECHO_N "(cached) $ECHO_C" >&6
28278else
28279  cat >conftest.$ac_ext <<_ACEOF
28280/* confdefs.h.  */
28281_ACEOF
28282cat confdefs.h >>conftest.$ac_ext
28283cat >>conftest.$ac_ext <<_ACEOF
28284/* end confdefs.h.  */
28285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28287#define $ac_func innocuous_$ac_func
28288
28289/* System header to define __stub macros and hopefully few prototypes,
28290    which can conflict with char $ac_func (); below.
28291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28292    <limits.h> exists even on freestanding compilers.  */
28293
28294#ifdef __STDC__
28295# include <limits.h>
28296#else
28297# include <assert.h>
28298#endif
28299
28300#undef $ac_func
28301
28302/* Override any gcc2 internal prototype to avoid an error.  */
28303#ifdef __cplusplus
28304extern "C"
28305{
28306#endif
28307/* We use char because int might match the return type of a gcc2
28308   builtin and then its argument prototype would still apply.  */
28309char $ac_func ();
28310/* The GNU C library defines this for functions which it implements
28311    to always fail with ENOSYS.  Some functions are actually named
28312    something starting with __ and the normal name is an alias.  */
28313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28314choke me
28315#else
28316char (*f) () = $ac_func;
28317#endif
28318#ifdef __cplusplus
28319}
28320#endif
28321
28322int
28323main ()
28324{
28325return f != $ac_func;
28326  ;
28327  return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28332  (eval $ac_link) 2>conftest.er1
28333  ac_status=$?
28334  grep -v '^ *+' conftest.er1 >conftest.err
28335  rm -f conftest.er1
28336  cat conftest.err >&5
28337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338  (exit $ac_status); } &&
28339	 { ac_try='test -z "$ac_c_werror_flag"
28340			 || test ! -s conftest.err'
28341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342  (eval $ac_try) 2>&5
28343  ac_status=$?
28344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345  (exit $ac_status); }; } &&
28346	 { ac_try='test -s conftest$ac_exeext'
28347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348  (eval $ac_try) 2>&5
28349  ac_status=$?
28350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351  (exit $ac_status); }; }; then
28352  eval "$as_ac_var=yes"
28353else
28354  echo "$as_me: failed program was:" >&5
28355sed 's/^/| /' conftest.$ac_ext >&5
28356
28357eval "$as_ac_var=no"
28358fi
28359rm -f conftest.err conftest.$ac_objext \
28360      conftest$ac_exeext conftest.$ac_ext
28361fi
28362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28364if test `eval echo '${'$as_ac_var'}'` = yes; then
28365
28366cat >>confdefs.h <<_ACEOF
28367#define CRAY_STACKSEG_END $ac_func
28368_ACEOF
28369
28370    break
28371fi
28372
28373  done
28374fi
28375
28376echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28377echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28378if test "${ac_cv_c_stack_direction+set}" = set; then
28379  echo $ECHO_N "(cached) $ECHO_C" >&6
28380else
28381  if test "$cross_compiling" = yes; then
28382  ac_cv_c_stack_direction=0
28383else
28384  cat >conftest.$ac_ext <<_ACEOF
28385/* confdefs.h.  */
28386_ACEOF
28387cat confdefs.h >>conftest.$ac_ext
28388cat >>conftest.$ac_ext <<_ACEOF
28389/* end confdefs.h.  */
28390int
28391find_stack_direction ()
28392{
28393  static char *addr = 0;
28394  auto char dummy;
28395  if (addr == 0)
28396    {
28397      addr = &dummy;
28398      return find_stack_direction ();
28399    }
28400  else
28401    return (&dummy > addr) ? 1 : -1;
28402}
28403
28404int
28405main ()
28406{
28407  exit (find_stack_direction () < 0);
28408}
28409_ACEOF
28410rm -f conftest$ac_exeext
28411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412  (eval $ac_link) 2>&5
28413  ac_status=$?
28414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417  (eval $ac_try) 2>&5
28418  ac_status=$?
28419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420  (exit $ac_status); }; }; then
28421  ac_cv_c_stack_direction=1
28422else
28423  echo "$as_me: program exited with status $ac_status" >&5
28424echo "$as_me: failed program was:" >&5
28425sed 's/^/| /' conftest.$ac_ext >&5
28426
28427( exit $ac_status )
28428ac_cv_c_stack_direction=-1
28429fi
28430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28431fi
28432fi
28433echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28434echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28435
28436cat >>confdefs.h <<_ACEOF
28437#define STACK_DIRECTION $ac_cv_c_stack_direction
28438_ACEOF
28439
28440
28441fi
28442
28443
28444echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28445echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28446if test "${ac_cv_func_rand48+set}" = set; then
28447  echo $ECHO_N "(cached) $ECHO_C" >&6
28448else
28449  ac_ext=cc
28450ac_cpp='$CXXCPP $CPPFLAGS'
28451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28454
28455   cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h.  */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h.  */
28461#include <stdlib.h>
28462int
28463main ()
28464{
28465srand48(0);lrand48();drand48();
28466  ;
28467  return 0;
28468}
28469_ACEOF
28470rm -f conftest.$ac_objext
28471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28472  (eval $ac_compile) 2>conftest.er1
28473  ac_status=$?
28474  grep -v '^ *+' conftest.er1 >conftest.err
28475  rm -f conftest.er1
28476  cat conftest.err >&5
28477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478  (exit $ac_status); } &&
28479	 { ac_try='test -z "$ac_cxx_werror_flag"
28480			 || test ! -s conftest.err'
28481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482  (eval $ac_try) 2>&5
28483  ac_status=$?
28484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485  (exit $ac_status); }; } &&
28486	 { ac_try='test -s conftest.$ac_objext'
28487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488  (eval $ac_try) 2>&5
28489  ac_status=$?
28490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491  (exit $ac_status); }; }; then
28492  ac_cv_func_rand48=yes
28493else
28494  echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
28496
28497ac_cv_func_rand48=no
28498fi
28499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28500  ac_ext=c
28501ac_cpp='$CPP $CPPFLAGS'
28502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28504ac_compiler_gnu=$ac_cv_c_compiler_gnu
28505
28506fi
28507echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28508echo "${ECHO_T}$ac_cv_func_rand48" >&6
28509
28510if test "$ac_cv_func_rand48" = "yes" ; then
28511
28512cat >>confdefs.h <<\_ACEOF
28513#define HAVE_RAND48 1
28514_ACEOF
28515
28516fi
28517
28518
28519echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28520echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28521if test "${ac_cv_cxx_namespaces+set}" = set; then
28522  echo $ECHO_N "(cached) $ECHO_C" >&6
28523else
28524  ac_ext=cc
28525ac_cpp='$CXXCPP $CPPFLAGS'
28526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28529
28530 cat >conftest.$ac_ext <<_ACEOF
28531/* confdefs.h.  */
28532_ACEOF
28533cat confdefs.h >>conftest.$ac_ext
28534cat >>conftest.$ac_ext <<_ACEOF
28535/* end confdefs.h.  */
28536namespace Outer { namespace Inner { int i = 0; }}
28537int
28538main ()
28539{
28540using namespace Outer::Inner; return i;
28541  ;
28542  return 0;
28543}
28544_ACEOF
28545rm -f conftest.$ac_objext
28546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28547  (eval $ac_compile) 2>conftest.er1
28548  ac_status=$?
28549  grep -v '^ *+' conftest.er1 >conftest.err
28550  rm -f conftest.er1
28551  cat conftest.err >&5
28552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553  (exit $ac_status); } &&
28554	 { ac_try='test -z "$ac_cxx_werror_flag"
28555			 || test ! -s conftest.err'
28556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557  (eval $ac_try) 2>&5
28558  ac_status=$?
28559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560  (exit $ac_status); }; } &&
28561	 { ac_try='test -s conftest.$ac_objext'
28562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563  (eval $ac_try) 2>&5
28564  ac_status=$?
28565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566  (exit $ac_status); }; }; then
28567  ac_cv_cxx_namespaces=yes
28568else
28569  echo "$as_me: failed program was:" >&5
28570sed 's/^/| /' conftest.$ac_ext >&5
28571
28572ac_cv_cxx_namespaces=no
28573fi
28574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28575 ac_ext=c
28576ac_cpp='$CPP $CPPFLAGS'
28577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28579ac_compiler_gnu=$ac_cv_c_compiler_gnu
28580
28581
28582fi
28583echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28584echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28585if test "$ac_cv_cxx_namespaces" = yes; then
28586
28587cat >>confdefs.h <<\_ACEOF
28588#define HAVE_NAMESPACES
28589_ACEOF
28590
28591fi
28592
28593echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28594echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28595if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28596  echo $ECHO_N "(cached) $ECHO_C" >&6
28597else
28598
28599  ac_ext=cc
28600ac_cpp='$CXXCPP $CPPFLAGS'
28601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28604
28605  cat >conftest.$ac_ext <<_ACEOF
28606/* confdefs.h.  */
28607_ACEOF
28608cat confdefs.h >>conftest.$ac_ext
28609cat >>conftest.$ac_ext <<_ACEOF
28610/* end confdefs.h.  */
28611#include <ext/hash_map>
28612#ifdef HAVE_NAMESPACES
28613using namespace std;
28614#endif
28615int
28616main ()
28617{
28618hash_map<int, int> t;
28619  ;
28620  return 0;
28621}
28622_ACEOF
28623rm -f conftest.$ac_objext
28624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28625  (eval $ac_compile) 2>conftest.er1
28626  ac_status=$?
28627  grep -v '^ *+' conftest.er1 >conftest.err
28628  rm -f conftest.er1
28629  cat conftest.err >&5
28630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631  (exit $ac_status); } &&
28632	 { ac_try='test -z "$ac_cxx_werror_flag"
28633			 || test ! -s conftest.err'
28634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635  (eval $ac_try) 2>&5
28636  ac_status=$?
28637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638  (exit $ac_status); }; } &&
28639	 { ac_try='test -s conftest.$ac_objext'
28640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641  (eval $ac_try) 2>&5
28642  ac_status=$?
28643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644  (exit $ac_status); }; }; then
28645  ac_cv_cxx_have_std_ext_hash_map=yes
28646else
28647  echo "$as_me: failed program was:" >&5
28648sed 's/^/| /' conftest.$ac_ext >&5
28649
28650ac_cv_cxx_have_std_ext_hash_map=no
28651fi
28652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28653  ac_ext=c
28654ac_cpp='$CPP $CPPFLAGS'
28655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28657ac_compiler_gnu=$ac_cv_c_compiler_gnu
28658
28659fi
28660echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28661echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28662 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28663 then
28664
28665cat >>confdefs.h <<\_ACEOF
28666#define HAVE_STD_EXT_HASH_MAP 1
28667_ACEOF
28668
28669 else
28670
28671cat >>confdefs.h <<\_ACEOF
28672#define HAVE_STD_EXT_HASH_MAP 0
28673_ACEOF
28674
28675 fi
28676
28677 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28678echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28679if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28680  echo $ECHO_N "(cached) $ECHO_C" >&6
28681else
28682
28683  ac_ext=cc
28684ac_cpp='$CXXCPP $CPPFLAGS'
28685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28688
28689  cat >conftest.$ac_ext <<_ACEOF
28690/* confdefs.h.  */
28691_ACEOF
28692cat confdefs.h >>conftest.$ac_ext
28693cat >>conftest.$ac_ext <<_ACEOF
28694/* end confdefs.h.  */
28695#include <ext/hash_map>
28696#ifdef HAVE_NAMESPACES
28697using namespace __gnu_cxx;
28698#endif
28699int
28700main ()
28701{
28702hash_map<int,int> t;
28703  ;
28704  return 0;
28705}
28706_ACEOF
28707rm -f conftest.$ac_objext
28708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28709  (eval $ac_compile) 2>conftest.er1
28710  ac_status=$?
28711  grep -v '^ *+' conftest.er1 >conftest.err
28712  rm -f conftest.er1
28713  cat conftest.err >&5
28714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715  (exit $ac_status); } &&
28716	 { ac_try='test -z "$ac_cxx_werror_flag"
28717			 || test ! -s conftest.err'
28718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719  (eval $ac_try) 2>&5
28720  ac_status=$?
28721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722  (exit $ac_status); }; } &&
28723	 { ac_try='test -s conftest.$ac_objext'
28724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725  (eval $ac_try) 2>&5
28726  ac_status=$?
28727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728  (exit $ac_status); }; }; then
28729  ac_cv_cxx_have_gnu_ext_hash_map=yes
28730else
28731  echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734ac_cv_cxx_have_gnu_ext_hash_map=no
28735fi
28736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28737  ac_ext=c
28738ac_cpp='$CPP $CPPFLAGS'
28739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28741ac_compiler_gnu=$ac_cv_c_compiler_gnu
28742
28743fi
28744echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28745echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28746 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28747 then
28748
28749cat >>confdefs.h <<\_ACEOF
28750#define HAVE_GNU_EXT_HASH_MAP 1
28751_ACEOF
28752
28753 else
28754
28755cat >>confdefs.h <<\_ACEOF
28756#define HAVE_GNU_EXT_HASH_MAP 0
28757_ACEOF
28758
28759 fi
28760
28761 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28762echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28763if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28764  echo $ECHO_N "(cached) $ECHO_C" >&6
28765else
28766
28767  ac_ext=cc
28768ac_cpp='$CXXCPP $CPPFLAGS'
28769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28772
28773  cat >conftest.$ac_ext <<_ACEOF
28774/* confdefs.h.  */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h.  */
28779#include <hash_map>
28780int
28781main ()
28782{
28783hash_map<int,int> t;
28784  ;
28785  return 0;
28786}
28787_ACEOF
28788rm -f conftest.$ac_objext
28789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790  (eval $ac_compile) 2>conftest.er1
28791  ac_status=$?
28792  grep -v '^ *+' conftest.er1 >conftest.err
28793  rm -f conftest.er1
28794  cat conftest.err >&5
28795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796  (exit $ac_status); } &&
28797	 { ac_try='test -z "$ac_cxx_werror_flag"
28798			 || test ! -s conftest.err'
28799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800  (eval $ac_try) 2>&5
28801  ac_status=$?
28802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803  (exit $ac_status); }; } &&
28804	 { ac_try='test -s conftest.$ac_objext'
28805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806  (eval $ac_try) 2>&5
28807  ac_status=$?
28808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); }; }; then
28810  ac_cv_cxx_have_global_hash_map=yes
28811else
28812  echo "$as_me: failed program was:" >&5
28813sed 's/^/| /' conftest.$ac_ext >&5
28814
28815ac_cv_cxx_have_global_hash_map=no
28816fi
28817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28818  ac_ext=c
28819ac_cpp='$CPP $CPPFLAGS'
28820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28822ac_compiler_gnu=$ac_cv_c_compiler_gnu
28823
28824fi
28825echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28826echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28827 if test "$ac_cv_cxx_have_global_hash_map" = yes
28828 then
28829
28830cat >>confdefs.h <<\_ACEOF
28831#define HAVE_GLOBAL_HASH_MAP 1
28832_ACEOF
28833
28834 else
28835
28836cat >>confdefs.h <<\_ACEOF
28837#define HAVE_GLOBAL_HASH_MAP 0
28838_ACEOF
28839
28840 fi
28841
28842echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28843echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28844if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28845  echo $ECHO_N "(cached) $ECHO_C" >&6
28846else
28847
28848  ac_ext=cc
28849ac_cpp='$CXXCPP $CPPFLAGS'
28850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28853
28854  cat >conftest.$ac_ext <<_ACEOF
28855/* confdefs.h.  */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h.  */
28860#include <ext/hash_set>
28861#ifdef HAVE_NAMESPACES
28862using namespace std;
28863#endif
28864int
28865main ()
28866{
28867hash_set<int> t;
28868  ;
28869  return 0;
28870}
28871_ACEOF
28872rm -f conftest.$ac_objext
28873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874  (eval $ac_compile) 2>conftest.er1
28875  ac_status=$?
28876  grep -v '^ *+' conftest.er1 >conftest.err
28877  rm -f conftest.er1
28878  cat conftest.err >&5
28879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880  (exit $ac_status); } &&
28881	 { ac_try='test -z "$ac_cxx_werror_flag"
28882			 || test ! -s conftest.err'
28883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884  (eval $ac_try) 2>&5
28885  ac_status=$?
28886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887  (exit $ac_status); }; } &&
28888	 { ac_try='test -s conftest.$ac_objext'
28889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890  (eval $ac_try) 2>&5
28891  ac_status=$?
28892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893  (exit $ac_status); }; }; then
28894  ac_cv_cxx_have_std_ext_hash_set=yes
28895else
28896  echo "$as_me: failed program was:" >&5
28897sed 's/^/| /' conftest.$ac_ext >&5
28898
28899ac_cv_cxx_have_std_ext_hash_set=no
28900fi
28901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28902  ac_ext=c
28903ac_cpp='$CPP $CPPFLAGS'
28904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28906ac_compiler_gnu=$ac_cv_c_compiler_gnu
28907
28908fi
28909echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28910echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28911 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28912 then
28913
28914cat >>confdefs.h <<\_ACEOF
28915#define HAVE_STD_EXT_HASH_SET 1
28916_ACEOF
28917
28918 else
28919
28920cat >>confdefs.h <<\_ACEOF
28921#define HAVE_STD_EXT_HASH_SET 0
28922_ACEOF
28923
28924 fi
28925
28926 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28927echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28928if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28929  echo $ECHO_N "(cached) $ECHO_C" >&6
28930else
28931
28932  ac_ext=cc
28933ac_cpp='$CXXCPP $CPPFLAGS'
28934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28937
28938  cat >conftest.$ac_ext <<_ACEOF
28939/* confdefs.h.  */
28940_ACEOF
28941cat confdefs.h >>conftest.$ac_ext
28942cat >>conftest.$ac_ext <<_ACEOF
28943/* end confdefs.h.  */
28944#include <ext/hash_set>
28945#ifdef HAVE_NAMESPACES
28946using namespace __gnu_cxx;
28947#endif
28948int
28949main ()
28950{
28951hash_set<int> t;
28952  ;
28953  return 0;
28954}
28955_ACEOF
28956rm -f conftest.$ac_objext
28957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28958  (eval $ac_compile) 2>conftest.er1
28959  ac_status=$?
28960  grep -v '^ *+' conftest.er1 >conftest.err
28961  rm -f conftest.er1
28962  cat conftest.err >&5
28963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964  (exit $ac_status); } &&
28965	 { ac_try='test -z "$ac_cxx_werror_flag"
28966			 || test ! -s conftest.err'
28967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968  (eval $ac_try) 2>&5
28969  ac_status=$?
28970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971  (exit $ac_status); }; } &&
28972	 { ac_try='test -s conftest.$ac_objext'
28973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974  (eval $ac_try) 2>&5
28975  ac_status=$?
28976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977  (exit $ac_status); }; }; then
28978  ac_cv_cxx_have_gnu_ext_hash_set=yes
28979else
28980  echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
28983ac_cv_cxx_have_gnu_ext_hash_set=no
28984fi
28985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28986  ac_ext=c
28987ac_cpp='$CPP $CPPFLAGS'
28988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28990ac_compiler_gnu=$ac_cv_c_compiler_gnu
28991
28992fi
28993echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28994echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28995 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28996 then
28997
28998cat >>confdefs.h <<\_ACEOF
28999#define HAVE_GNU_EXT_HASH_SET 1
29000_ACEOF
29001
29002 else
29003
29004cat >>confdefs.h <<\_ACEOF
29005#define HAVE_GNU_EXT_HASH_SET 0
29006_ACEOF
29007
29008 fi
29009
29010 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29011echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29012if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29013  echo $ECHO_N "(cached) $ECHO_C" >&6
29014else
29015
29016  ac_ext=cc
29017ac_cpp='$CXXCPP $CPPFLAGS'
29018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29021
29022  cat >conftest.$ac_ext <<_ACEOF
29023/* confdefs.h.  */
29024_ACEOF
29025cat confdefs.h >>conftest.$ac_ext
29026cat >>conftest.$ac_ext <<_ACEOF
29027/* end confdefs.h.  */
29028#include <hash_set>
29029int
29030main ()
29031{
29032hash_set<int> t; return 0;
29033  ;
29034  return 0;
29035}
29036_ACEOF
29037rm -f conftest.$ac_objext
29038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039  (eval $ac_compile) 2>conftest.er1
29040  ac_status=$?
29041  grep -v '^ *+' conftest.er1 >conftest.err
29042  rm -f conftest.er1
29043  cat conftest.err >&5
29044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045  (exit $ac_status); } &&
29046	 { ac_try='test -z "$ac_cxx_werror_flag"
29047			 || test ! -s conftest.err'
29048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049  (eval $ac_try) 2>&5
29050  ac_status=$?
29051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052  (exit $ac_status); }; } &&
29053	 { ac_try='test -s conftest.$ac_objext'
29054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055  (eval $ac_try) 2>&5
29056  ac_status=$?
29057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058  (exit $ac_status); }; }; then
29059  ac_cv_cxx_have_global_hash_set=yes
29060else
29061  echo "$as_me: failed program was:" >&5
29062sed 's/^/| /' conftest.$ac_ext >&5
29063
29064ac_cv_cxx_have_global_hash_set=no
29065fi
29066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29067  ac_ext=c
29068ac_cpp='$CPP $CPPFLAGS'
29069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29071ac_compiler_gnu=$ac_cv_c_compiler_gnu
29072
29073fi
29074echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29075echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29076 if test "$ac_cv_cxx_have_global_hash_set" = yes
29077 then
29078
29079cat >>confdefs.h <<\_ACEOF
29080#define HAVE_GLOBAL_HASH_SET 1
29081_ACEOF
29082
29083 else
29084
29085cat >>confdefs.h <<\_ACEOF
29086#define HAVE_GLOBAL_HASH_SET 0
29087_ACEOF
29088
29089 fi
29090
29091echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29092echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29093if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29094  echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096
29097  ac_ext=cc
29098ac_cpp='$CXXCPP $CPPFLAGS'
29099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29102
29103  cat >conftest.$ac_ext <<_ACEOF
29104/* confdefs.h.  */
29105_ACEOF
29106cat confdefs.h >>conftest.$ac_ext
29107cat >>conftest.$ac_ext <<_ACEOF
29108/* end confdefs.h.  */
29109#include <iterator>
29110#ifdef HAVE_NAMESPACES
29111using namespace std;
29112#endif
29113int
29114main ()
29115{
29116iterator<int,int,int> t; return 0;
29117  ;
29118  return 0;
29119}
29120_ACEOF
29121rm -f conftest.$ac_objext
29122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29123  (eval $ac_compile) 2>conftest.er1
29124  ac_status=$?
29125  grep -v '^ *+' conftest.er1 >conftest.err
29126  rm -f conftest.er1
29127  cat conftest.err >&5
29128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129  (exit $ac_status); } &&
29130	 { ac_try='test -z "$ac_cxx_werror_flag"
29131			 || test ! -s conftest.err'
29132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133  (eval $ac_try) 2>&5
29134  ac_status=$?
29135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136  (exit $ac_status); }; } &&
29137	 { ac_try='test -s conftest.$ac_objext'
29138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139  (eval $ac_try) 2>&5
29140  ac_status=$?
29141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142  (exit $ac_status); }; }; then
29143  ac_cv_cxx_have_std_iterator=yes
29144else
29145  echo "$as_me: failed program was:" >&5
29146sed 's/^/| /' conftest.$ac_ext >&5
29147
29148ac_cv_cxx_have_std_iterator=no
29149fi
29150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29151  ac_ext=c
29152ac_cpp='$CPP $CPPFLAGS'
29153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29155ac_compiler_gnu=$ac_cv_c_compiler_gnu
29156
29157
29158fi
29159echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29160echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29161if test "$ac_cv_cxx_have_std_iterator" = yes
29162then
29163
29164cat >>confdefs.h <<\_ACEOF
29165#define HAVE_STD_ITERATOR 1
29166_ACEOF
29167
29168else
29169
29170cat >>confdefs.h <<\_ACEOF
29171#define HAVE_STD_ITERATOR 0
29172_ACEOF
29173
29174fi
29175
29176echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29177echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29178if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29179  echo $ECHO_N "(cached) $ECHO_C" >&6
29180else
29181
29182  ac_ext=cc
29183ac_cpp='$CXXCPP $CPPFLAGS'
29184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29187
29188  cat >conftest.$ac_ext <<_ACEOF
29189/* confdefs.h.  */
29190_ACEOF
29191cat confdefs.h >>conftest.$ac_ext
29192cat >>conftest.$ac_ext <<_ACEOF
29193/* end confdefs.h.  */
29194#include <iterator>
29195#ifdef HAVE_NAMESPACES
29196using namespace std;
29197#endif
29198int
29199main ()
29200{
29201bidirectional_iterator<int,int> t; return 0;
29202  ;
29203  return 0;
29204}
29205_ACEOF
29206rm -f conftest.$ac_objext
29207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29208  (eval $ac_compile) 2>conftest.er1
29209  ac_status=$?
29210  grep -v '^ *+' conftest.er1 >conftest.err
29211  rm -f conftest.er1
29212  cat conftest.err >&5
29213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214  (exit $ac_status); } &&
29215	 { ac_try='test -z "$ac_cxx_werror_flag"
29216			 || test ! -s conftest.err'
29217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218  (eval $ac_try) 2>&5
29219  ac_status=$?
29220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221  (exit $ac_status); }; } &&
29222	 { ac_try='test -s conftest.$ac_objext'
29223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224  (eval $ac_try) 2>&5
29225  ac_status=$?
29226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227  (exit $ac_status); }; }; then
29228  ac_cv_cxx_have_bi_iterator=yes
29229else
29230  echo "$as_me: failed program was:" >&5
29231sed 's/^/| /' conftest.$ac_ext >&5
29232
29233ac_cv_cxx_have_bi_iterator=no
29234fi
29235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29236  ac_ext=c
29237ac_cpp='$CPP $CPPFLAGS'
29238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29240ac_compiler_gnu=$ac_cv_c_compiler_gnu
29241
29242
29243fi
29244echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29245echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29246if test "$ac_cv_cxx_have_bi_iterator" = yes
29247then
29248
29249cat >>confdefs.h <<\_ACEOF
29250#define HAVE_BI_ITERATOR 1
29251_ACEOF
29252
29253else
29254
29255cat >>confdefs.h <<\_ACEOF
29256#define HAVE_BI_ITERATOR 0
29257_ACEOF
29258
29259fi
29260
29261echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29262echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29263if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29264  echo $ECHO_N "(cached) $ECHO_C" >&6
29265else
29266
29267  ac_ext=cc
29268ac_cpp='$CXXCPP $CPPFLAGS'
29269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29272
29273  cat >conftest.$ac_ext <<_ACEOF
29274/* confdefs.h.  */
29275_ACEOF
29276cat confdefs.h >>conftest.$ac_ext
29277cat >>conftest.$ac_ext <<_ACEOF
29278/* end confdefs.h.  */
29279#include <iterator>
29280#ifdef HAVE_NAMESPACES
29281using namespace std;
29282#endif
29283int
29284main ()
29285{
29286forward_iterator<int,int> t; return 0;
29287  ;
29288  return 0;
29289}
29290_ACEOF
29291rm -f conftest.$ac_objext
29292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293  (eval $ac_compile) 2>conftest.er1
29294  ac_status=$?
29295  grep -v '^ *+' conftest.er1 >conftest.err
29296  rm -f conftest.er1
29297  cat conftest.err >&5
29298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299  (exit $ac_status); } &&
29300	 { ac_try='test -z "$ac_cxx_werror_flag"
29301			 || test ! -s conftest.err'
29302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303  (eval $ac_try) 2>&5
29304  ac_status=$?
29305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306  (exit $ac_status); }; } &&
29307	 { ac_try='test -s conftest.$ac_objext'
29308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309  (eval $ac_try) 2>&5
29310  ac_status=$?
29311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312  (exit $ac_status); }; }; then
29313  ac_cv_cxx_have_fwd_iterator=yes
29314else
29315  echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_cxx_have_fwd_iterator=no
29319fi
29320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321  ac_ext=c
29322ac_cpp='$CPP $CPPFLAGS'
29323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326
29327
29328fi
29329echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29330echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29331if test "$ac_cv_cxx_have_fwd_iterator" = yes
29332then
29333
29334cat >>confdefs.h <<\_ACEOF
29335#define HAVE_FWD_ITERATOR 1
29336_ACEOF
29337
29338else
29339
29340cat >>confdefs.h <<\_ACEOF
29341#define HAVE_FWD_ITERATOR 0
29342_ACEOF
29343
29344fi
29345
29346
29347echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29348echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29349if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29350  echo $ECHO_N "(cached) $ECHO_C" >&6
29351else
29352  ac_ext=cc
29353ac_cpp='$CXXCPP $CPPFLAGS'
29354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29357
29358   cat >conftest.$ac_ext <<_ACEOF
29359/* confdefs.h.  */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h.  */
29364#include <math.h>
29365int
29366main ()
29367{
29368float f; isnan(f);
29369  ;
29370  return 0;
29371}
29372_ACEOF
29373rm -f conftest.$ac_objext
29374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29375  (eval $ac_compile) 2>conftest.er1
29376  ac_status=$?
29377  grep -v '^ *+' conftest.er1 >conftest.err
29378  rm -f conftest.er1
29379  cat conftest.err >&5
29380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381  (exit $ac_status); } &&
29382	 { ac_try='test -z "$ac_cxx_werror_flag"
29383			 || test ! -s conftest.err'
29384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385  (eval $ac_try) 2>&5
29386  ac_status=$?
29387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388  (exit $ac_status); }; } &&
29389	 { ac_try='test -s conftest.$ac_objext'
29390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391  (eval $ac_try) 2>&5
29392  ac_status=$?
29393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394  (exit $ac_status); }; }; then
29395  ac_cv_func_isnan_in_math_h=yes
29396else
29397  echo "$as_me: failed program was:" >&5
29398sed 's/^/| /' conftest.$ac_ext >&5
29399
29400ac_cv_func_isnan_in_math_h=no
29401fi
29402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29403  ac_ext=c
29404ac_cpp='$CPP $CPPFLAGS'
29405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29407ac_compiler_gnu=$ac_cv_c_compiler_gnu
29408
29409fi
29410echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29411echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29412
29413
29414if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29415
29416cat >>confdefs.h <<\_ACEOF
29417#define HAVE_ISNAN_IN_MATH_H 1
29418_ACEOF
29419
29420fi
29421
29422echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29423echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29424if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29425  echo $ECHO_N "(cached) $ECHO_C" >&6
29426else
29427  ac_ext=cc
29428ac_cpp='$CXXCPP $CPPFLAGS'
29429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29432
29433   cat >conftest.$ac_ext <<_ACEOF
29434/* confdefs.h.  */
29435_ACEOF
29436cat confdefs.h >>conftest.$ac_ext
29437cat >>conftest.$ac_ext <<_ACEOF
29438/* end confdefs.h.  */
29439#include <cmath>
29440int
29441main ()
29442{
29443float f; isnan(f);
29444  ;
29445  return 0;
29446}
29447_ACEOF
29448rm -f conftest.$ac_objext
29449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29450  (eval $ac_compile) 2>conftest.er1
29451  ac_status=$?
29452  grep -v '^ *+' conftest.er1 >conftest.err
29453  rm -f conftest.er1
29454  cat conftest.err >&5
29455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456  (exit $ac_status); } &&
29457	 { ac_try='test -z "$ac_cxx_werror_flag"
29458			 || test ! -s conftest.err'
29459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460  (eval $ac_try) 2>&5
29461  ac_status=$?
29462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463  (exit $ac_status); }; } &&
29464	 { ac_try='test -s conftest.$ac_objext'
29465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466  (eval $ac_try) 2>&5
29467  ac_status=$?
29468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469  (exit $ac_status); }; }; then
29470  ac_cv_func_isnan_in_cmath=yes
29471else
29472  echo "$as_me: failed program was:" >&5
29473sed 's/^/| /' conftest.$ac_ext >&5
29474
29475ac_cv_func_isnan_in_cmath=no
29476fi
29477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29478  ac_ext=c
29479ac_cpp='$CPP $CPPFLAGS'
29480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29482ac_compiler_gnu=$ac_cv_c_compiler_gnu
29483
29484fi
29485echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29486echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29487
29488if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29489
29490cat >>confdefs.h <<\_ACEOF
29491#define HAVE_ISNAN_IN_CMATH 1
29492_ACEOF
29493
29494fi
29495
29496echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29497echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29498if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29499  echo $ECHO_N "(cached) $ECHO_C" >&6
29500else
29501  ac_ext=cc
29502ac_cpp='$CXXCPP $CPPFLAGS'
29503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29506
29507   cat >conftest.$ac_ext <<_ACEOF
29508/* confdefs.h.  */
29509_ACEOF
29510cat confdefs.h >>conftest.$ac_ext
29511cat >>conftest.$ac_ext <<_ACEOF
29512/* end confdefs.h.  */
29513#include <cmath>
29514int
29515main ()
29516{
29517float f; std::isnan(f);
29518  ;
29519  return 0;
29520}
29521_ACEOF
29522rm -f conftest.$ac_objext
29523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29524  (eval $ac_compile) 2>conftest.er1
29525  ac_status=$?
29526  grep -v '^ *+' conftest.er1 >conftest.err
29527  rm -f conftest.er1
29528  cat conftest.err >&5
29529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530  (exit $ac_status); } &&
29531	 { ac_try='test -z "$ac_cxx_werror_flag"
29532			 || test ! -s conftest.err'
29533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534  (eval $ac_try) 2>&5
29535  ac_status=$?
29536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537  (exit $ac_status); }; } &&
29538	 { ac_try='test -s conftest.$ac_objext'
29539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540  (eval $ac_try) 2>&5
29541  ac_status=$?
29542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543  (exit $ac_status); }; }; then
29544  ac_cv_func_std_isnan_in_cmath=yes
29545else
29546  echo "$as_me: failed program was:" >&5
29547sed 's/^/| /' conftest.$ac_ext >&5
29548
29549ac_cv_func_std_isnan_in_cmath=no
29550fi
29551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29552  ac_ext=c
29553ac_cpp='$CPP $CPPFLAGS'
29554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29556ac_compiler_gnu=$ac_cv_c_compiler_gnu
29557
29558fi
29559echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29560echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29561
29562if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29563
29564cat >>confdefs.h <<\_ACEOF
29565#define HAVE_STD_ISNAN_IN_CMATH 1
29566_ACEOF
29567
29568fi
29569
29570
29571echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29572echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29573if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29574  echo $ECHO_N "(cached) $ECHO_C" >&6
29575else
29576  ac_ext=cc
29577ac_cpp='$CXXCPP $CPPFLAGS'
29578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29581
29582   cat >conftest.$ac_ext <<_ACEOF
29583/* confdefs.h.  */
29584_ACEOF
29585cat confdefs.h >>conftest.$ac_ext
29586cat >>conftest.$ac_ext <<_ACEOF
29587/* end confdefs.h.  */
29588#include <math.h>
29589int
29590main ()
29591{
29592float f; isinf(f);
29593  ;
29594  return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext
29598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29599  (eval $ac_compile) 2>conftest.er1
29600  ac_status=$?
29601  grep -v '^ *+' conftest.er1 >conftest.err
29602  rm -f conftest.er1
29603  cat conftest.err >&5
29604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605  (exit $ac_status); } &&
29606	 { ac_try='test -z "$ac_cxx_werror_flag"
29607			 || test ! -s conftest.err'
29608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609  (eval $ac_try) 2>&5
29610  ac_status=$?
29611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612  (exit $ac_status); }; } &&
29613	 { ac_try='test -s conftest.$ac_objext'
29614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615  (eval $ac_try) 2>&5
29616  ac_status=$?
29617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618  (exit $ac_status); }; }; then
29619  ac_cv_func_isinf_in_math_h=yes
29620else
29621  echo "$as_me: failed program was:" >&5
29622sed 's/^/| /' conftest.$ac_ext >&5
29623
29624ac_cv_func_isinf_in_math_h=no
29625fi
29626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29627  ac_ext=c
29628ac_cpp='$CPP $CPPFLAGS'
29629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29631ac_compiler_gnu=$ac_cv_c_compiler_gnu
29632
29633fi
29634echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29635echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29636
29637if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29638
29639cat >>confdefs.h <<\_ACEOF
29640#define HAVE_ISINF_IN_MATH_H 1
29641_ACEOF
29642
29643fi
29644
29645echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29646echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29647if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29648  echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
29650  ac_ext=cc
29651ac_cpp='$CXXCPP $CPPFLAGS'
29652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29655
29656   cat >conftest.$ac_ext <<_ACEOF
29657/* confdefs.h.  */
29658_ACEOF
29659cat confdefs.h >>conftest.$ac_ext
29660cat >>conftest.$ac_ext <<_ACEOF
29661/* end confdefs.h.  */
29662#include <cmath>
29663int
29664main ()
29665{
29666float f; isinf(f);
29667  ;
29668  return 0;
29669}
29670_ACEOF
29671rm -f conftest.$ac_objext
29672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673  (eval $ac_compile) 2>conftest.er1
29674  ac_status=$?
29675  grep -v '^ *+' conftest.er1 >conftest.err
29676  rm -f conftest.er1
29677  cat conftest.err >&5
29678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679  (exit $ac_status); } &&
29680	 { ac_try='test -z "$ac_cxx_werror_flag"
29681			 || test ! -s conftest.err'
29682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683  (eval $ac_try) 2>&5
29684  ac_status=$?
29685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686  (exit $ac_status); }; } &&
29687	 { ac_try='test -s conftest.$ac_objext'
29688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689  (eval $ac_try) 2>&5
29690  ac_status=$?
29691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692  (exit $ac_status); }; }; then
29693  ac_cv_func_isinf_in_cmath=yes
29694else
29695  echo "$as_me: failed program was:" >&5
29696sed 's/^/| /' conftest.$ac_ext >&5
29697
29698ac_cv_func_isinf_in_cmath=no
29699fi
29700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29701  ac_ext=c
29702ac_cpp='$CPP $CPPFLAGS'
29703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29705ac_compiler_gnu=$ac_cv_c_compiler_gnu
29706
29707fi
29708echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29709echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29710
29711if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29712
29713cat >>confdefs.h <<\_ACEOF
29714#define HAVE_ISINF_IN_CMATH 1
29715_ACEOF
29716
29717fi
29718
29719echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29720echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29721if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29722  echo $ECHO_N "(cached) $ECHO_C" >&6
29723else
29724  ac_ext=cc
29725ac_cpp='$CXXCPP $CPPFLAGS'
29726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29729
29730   cat >conftest.$ac_ext <<_ACEOF
29731/* confdefs.h.  */
29732_ACEOF
29733cat confdefs.h >>conftest.$ac_ext
29734cat >>conftest.$ac_ext <<_ACEOF
29735/* end confdefs.h.  */
29736#include <cmath>
29737int
29738main ()
29739{
29740float f; std::isinf(f)}
29741  ;
29742  return 0;
29743}
29744_ACEOF
29745rm -f conftest.$ac_objext
29746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29747  (eval $ac_compile) 2>conftest.er1
29748  ac_status=$?
29749  grep -v '^ *+' conftest.er1 >conftest.err
29750  rm -f conftest.er1
29751  cat conftest.err >&5
29752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753  (exit $ac_status); } &&
29754	 { ac_try='test -z "$ac_cxx_werror_flag"
29755			 || test ! -s conftest.err'
29756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757  (eval $ac_try) 2>&5
29758  ac_status=$?
29759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760  (exit $ac_status); }; } &&
29761	 { ac_try='test -s conftest.$ac_objext'
29762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763  (eval $ac_try) 2>&5
29764  ac_status=$?
29765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766  (exit $ac_status); }; }; then
29767  ac_cv_func_std_isinf_in_cmath=yes
29768else
29769  echo "$as_me: failed program was:" >&5
29770sed 's/^/| /' conftest.$ac_ext >&5
29771
29772ac_cv_func_std_isinf_in_cmath=no
29773fi
29774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29775  ac_ext=c
29776ac_cpp='$CPP $CPPFLAGS'
29777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779ac_compiler_gnu=$ac_cv_c_compiler_gnu
29780
29781fi
29782echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29783echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29784
29785if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29786
29787cat >>confdefs.h <<\_ACEOF
29788#define HAVE_STD_ISINF_IN_CMATH 1
29789_ACEOF
29790
29791fi
29792
29793echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29794echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29795if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29796  echo $ECHO_N "(cached) $ECHO_C" >&6
29797else
29798  ac_ext=cc
29799ac_cpp='$CXXCPP $CPPFLAGS'
29800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29803
29804   cat >conftest.$ac_ext <<_ACEOF
29805/* confdefs.h.  */
29806_ACEOF
29807cat confdefs.h >>conftest.$ac_ext
29808cat >>conftest.$ac_ext <<_ACEOF
29809/* end confdefs.h.  */
29810#include <ieeefp.h>
29811int
29812main ()
29813{
29814float f; finite(f);
29815  ;
29816  return 0;
29817}
29818_ACEOF
29819rm -f conftest.$ac_objext
29820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29821  (eval $ac_compile) 2>conftest.er1
29822  ac_status=$?
29823  grep -v '^ *+' conftest.er1 >conftest.err
29824  rm -f conftest.er1
29825  cat conftest.err >&5
29826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827  (exit $ac_status); } &&
29828	 { ac_try='test -z "$ac_cxx_werror_flag"
29829			 || test ! -s conftest.err'
29830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831  (eval $ac_try) 2>&5
29832  ac_status=$?
29833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834  (exit $ac_status); }; } &&
29835	 { ac_try='test -s conftest.$ac_objext'
29836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837  (eval $ac_try) 2>&5
29838  ac_status=$?
29839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840  (exit $ac_status); }; }; then
29841  ac_cv_func_finite_in_ieeefp_h=yes
29842else
29843  echo "$as_me: failed program was:" >&5
29844sed 's/^/| /' conftest.$ac_ext >&5
29845
29846ac_cv_func_finite_in_ieeefp_h=no
29847fi
29848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849  ac_ext=c
29850ac_cpp='$CPP $CPPFLAGS'
29851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29853ac_compiler_gnu=$ac_cv_c_compiler_gnu
29854
29855fi
29856echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29857echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29858
29859if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29860
29861cat >>confdefs.h <<\_ACEOF
29862#define HAVE_FINITE_IN_IEEEFP_H 1
29863_ACEOF
29864
29865fi
29866
29867
29868
29869
29870
29871for ac_header in stdlib.h unistd.h
29872do
29873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29874if eval "test \"\${$as_ac_Header+set}\" = set"; then
29875  echo "$as_me:$LINENO: checking for $ac_header" >&5
29876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29877if eval "test \"\${$as_ac_Header+set}\" = set"; then
29878  echo $ECHO_N "(cached) $ECHO_C" >&6
29879fi
29880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29882else
29883  # Is the header compilable?
29884echo "$as_me:$LINENO: checking $ac_header usability" >&5
29885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h.  */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h.  */
29892$ac_includes_default
29893#include <$ac_header>
29894_ACEOF
29895rm -f conftest.$ac_objext
29896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29897  (eval $ac_compile) 2>conftest.er1
29898  ac_status=$?
29899  grep -v '^ *+' conftest.er1 >conftest.err
29900  rm -f conftest.er1
29901  cat conftest.err >&5
29902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903  (exit $ac_status); } &&
29904	 { ac_try='test -z "$ac_c_werror_flag"
29905			 || test ! -s conftest.err'
29906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907  (eval $ac_try) 2>&5
29908  ac_status=$?
29909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910  (exit $ac_status); }; } &&
29911	 { ac_try='test -s conftest.$ac_objext'
29912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29913  (eval $ac_try) 2>&5
29914  ac_status=$?
29915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916  (exit $ac_status); }; }; then
29917  ac_header_compiler=yes
29918else
29919  echo "$as_me: failed program was:" >&5
29920sed 's/^/| /' conftest.$ac_ext >&5
29921
29922ac_header_compiler=no
29923fi
29924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29926echo "${ECHO_T}$ac_header_compiler" >&6
29927
29928# Is the header present?
29929echo "$as_me:$LINENO: checking $ac_header presence" >&5
29930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29931cat >conftest.$ac_ext <<_ACEOF
29932/* confdefs.h.  */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h.  */
29937#include <$ac_header>
29938_ACEOF
29939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29940  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29941  ac_status=$?
29942  grep -v '^ *+' conftest.er1 >conftest.err
29943  rm -f conftest.er1
29944  cat conftest.err >&5
29945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946  (exit $ac_status); } >/dev/null; then
29947  if test -s conftest.err; then
29948    ac_cpp_err=$ac_c_preproc_warn_flag
29949    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29950  else
29951    ac_cpp_err=
29952  fi
29953else
29954  ac_cpp_err=yes
29955fi
29956if test -z "$ac_cpp_err"; then
29957  ac_header_preproc=yes
29958else
29959  echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
29962  ac_header_preproc=no
29963fi
29964rm -f conftest.err conftest.$ac_ext
29965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29966echo "${ECHO_T}$ac_header_preproc" >&6
29967
29968# So?  What about this header?
29969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29970  yes:no: )
29971    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29973    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29975    ac_header_preproc=yes
29976    ;;
29977  no:yes:* )
29978    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29980    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29981echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29982    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29984    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29985echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29988    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29990    (
29991      cat <<\_ASBOX
29992## ----------------------------------- ##
29993## Report this to llvmbugs@cs.uiuc.edu ##
29994## ----------------------------------- ##
29995_ASBOX
29996    ) |
29997      sed "s/^/$as_me: WARNING:     /" >&2
29998    ;;
29999esac
30000echo "$as_me:$LINENO: checking for $ac_header" >&5
30001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30002if eval "test \"\${$as_ac_Header+set}\" = set"; then
30003  echo $ECHO_N "(cached) $ECHO_C" >&6
30004else
30005  eval "$as_ac_Header=\$ac_header_preproc"
30006fi
30007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30009
30010fi
30011if test `eval echo '${'$as_ac_Header'}'` = yes; then
30012  cat >>confdefs.h <<_ACEOF
30013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30014_ACEOF
30015
30016fi
30017
30018done
30019
30020
30021for ac_func in getpagesize
30022do
30023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30024echo "$as_me:$LINENO: checking for $ac_func" >&5
30025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30026if eval "test \"\${$as_ac_var+set}\" = set"; then
30027  echo $ECHO_N "(cached) $ECHO_C" >&6
30028else
30029  cat >conftest.$ac_ext <<_ACEOF
30030/* confdefs.h.  */
30031_ACEOF
30032cat confdefs.h >>conftest.$ac_ext
30033cat >>conftest.$ac_ext <<_ACEOF
30034/* end confdefs.h.  */
30035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30036   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30037#define $ac_func innocuous_$ac_func
30038
30039/* System header to define __stub macros and hopefully few prototypes,
30040    which can conflict with char $ac_func (); below.
30041    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30042    <limits.h> exists even on freestanding compilers.  */
30043
30044#ifdef __STDC__
30045# include <limits.h>
30046#else
30047# include <assert.h>
30048#endif
30049
30050#undef $ac_func
30051
30052/* Override any gcc2 internal prototype to avoid an error.  */
30053#ifdef __cplusplus
30054extern "C"
30055{
30056#endif
30057/* We use char because int might match the return type of a gcc2
30058   builtin and then its argument prototype would still apply.  */
30059char $ac_func ();
30060/* The GNU C library defines this for functions which it implements
30061    to always fail with ENOSYS.  Some functions are actually named
30062    something starting with __ and the normal name is an alias.  */
30063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30064choke me
30065#else
30066char (*f) () = $ac_func;
30067#endif
30068#ifdef __cplusplus
30069}
30070#endif
30071
30072int
30073main ()
30074{
30075return f != $ac_func;
30076  ;
30077  return 0;
30078}
30079_ACEOF
30080rm -f conftest.$ac_objext conftest$ac_exeext
30081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082  (eval $ac_link) 2>conftest.er1
30083  ac_status=$?
30084  grep -v '^ *+' conftest.er1 >conftest.err
30085  rm -f conftest.er1
30086  cat conftest.err >&5
30087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088  (exit $ac_status); } &&
30089	 { ac_try='test -z "$ac_c_werror_flag"
30090			 || test ! -s conftest.err'
30091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092  (eval $ac_try) 2>&5
30093  ac_status=$?
30094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095  (exit $ac_status); }; } &&
30096	 { ac_try='test -s conftest$ac_exeext'
30097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098  (eval $ac_try) 2>&5
30099  ac_status=$?
30100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101  (exit $ac_status); }; }; then
30102  eval "$as_ac_var=yes"
30103else
30104  echo "$as_me: failed program was:" >&5
30105sed 's/^/| /' conftest.$ac_ext >&5
30106
30107eval "$as_ac_var=no"
30108fi
30109rm -f conftest.err conftest.$ac_objext \
30110      conftest$ac_exeext conftest.$ac_ext
30111fi
30112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30114if test `eval echo '${'$as_ac_var'}'` = yes; then
30115  cat >>confdefs.h <<_ACEOF
30116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30117_ACEOF
30118
30119fi
30120done
30121
30122echo "$as_me:$LINENO: checking for working mmap" >&5
30123echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30124if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30125  echo $ECHO_N "(cached) $ECHO_C" >&6
30126else
30127  if test "$cross_compiling" = yes; then
30128  ac_cv_func_mmap_fixed_mapped=no
30129else
30130  cat >conftest.$ac_ext <<_ACEOF
30131/* confdefs.h.  */
30132_ACEOF
30133cat confdefs.h >>conftest.$ac_ext
30134cat >>conftest.$ac_ext <<_ACEOF
30135/* end confdefs.h.  */
30136$ac_includes_default
30137/* malloc might have been renamed as rpl_malloc. */
30138#undef malloc
30139
30140/* Thanks to Mike Haertel and Jim Avera for this test.
30141   Here is a matrix of mmap possibilities:
30142	mmap private not fixed
30143	mmap private fixed at somewhere currently unmapped
30144	mmap private fixed at somewhere already mapped
30145	mmap shared not fixed
30146	mmap shared fixed at somewhere currently unmapped
30147	mmap shared fixed at somewhere already mapped
30148   For private mappings, we should verify that changes cannot be read()
30149   back from the file, nor mmap's back from the file at a different
30150   address.  (There have been systems where private was not correctly
30151   implemented like the infamous i386 svr4.0, and systems where the
30152   VM page cache was not coherent with the file system buffer cache
30153   like early versions of FreeBSD and possibly contemporary NetBSD.)
30154   For shared mappings, we should conversely verify that changes get
30155   propagated back to all the places they're supposed to be.
30156
30157   Grep wants private fixed already mapped.
30158   The main things grep needs to know about mmap are:
30159   * does it exist and is it safe to write into the mmap'd area
30160   * how to use it (BSD variants)  */
30161
30162#include <fcntl.h>
30163#include <sys/mman.h>
30164
30165#if !STDC_HEADERS && !HAVE_STDLIB_H
30166char *malloc ();
30167#endif
30168
30169/* This mess was copied from the GNU getpagesize.h.  */
30170#if !HAVE_GETPAGESIZE
30171/* Assume that all systems that can run configure have sys/param.h.  */
30172# if !HAVE_SYS_PARAM_H
30173#  define HAVE_SYS_PARAM_H 1
30174# endif
30175
30176# ifdef _SC_PAGESIZE
30177#  define getpagesize() sysconf(_SC_PAGESIZE)
30178# else /* no _SC_PAGESIZE */
30179#  if HAVE_SYS_PARAM_H
30180#   include <sys/param.h>
30181#   ifdef EXEC_PAGESIZE
30182#    define getpagesize() EXEC_PAGESIZE
30183#   else /* no EXEC_PAGESIZE */
30184#    ifdef NBPG
30185#     define getpagesize() NBPG * CLSIZE
30186#     ifndef CLSIZE
30187#      define CLSIZE 1
30188#     endif /* no CLSIZE */
30189#    else /* no NBPG */
30190#     ifdef NBPC
30191#      define getpagesize() NBPC
30192#     else /* no NBPC */
30193#      ifdef PAGESIZE
30194#       define getpagesize() PAGESIZE
30195#      endif /* PAGESIZE */
30196#     endif /* no NBPC */
30197#    endif /* no NBPG */
30198#   endif /* no EXEC_PAGESIZE */
30199#  else /* no HAVE_SYS_PARAM_H */
30200#   define getpagesize() 8192	/* punt totally */
30201#  endif /* no HAVE_SYS_PARAM_H */
30202# endif /* no _SC_PAGESIZE */
30203
30204#endif /* no HAVE_GETPAGESIZE */
30205
30206int
30207main ()
30208{
30209  char *data, *data2, *data3;
30210  int i, pagesize;
30211  int fd;
30212
30213  pagesize = getpagesize ();
30214
30215  /* First, make a file with some known garbage in it. */
30216  data = (char *) malloc (pagesize);
30217  if (!data)
30218    exit (1);
30219  for (i = 0; i < pagesize; ++i)
30220    *(data + i) = rand ();
30221  umask (0);
30222  fd = creat ("conftest.mmap", 0600);
30223  if (fd < 0)
30224    exit (1);
30225  if (write (fd, data, pagesize) != pagesize)
30226    exit (1);
30227  close (fd);
30228
30229  /* Next, try to mmap the file at a fixed address which already has
30230     something else allocated at it.  If we can, also make sure that
30231     we see the same garbage.  */
30232  fd = open ("conftest.mmap", O_RDWR);
30233  if (fd < 0)
30234    exit (1);
30235  data2 = (char *) malloc (2 * pagesize);
30236  if (!data2)
30237    exit (1);
30238  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30239  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30240		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
30241    exit (1);
30242  for (i = 0; i < pagesize; ++i)
30243    if (*(data + i) != *(data2 + i))
30244      exit (1);
30245
30246  /* Finally, make sure that changes to the mapped area do not
30247     percolate back to the file as seen by read().  (This is a bug on
30248     some variants of i386 svr4.0.)  */
30249  for (i = 0; i < pagesize; ++i)
30250    *(data2 + i) = *(data2 + i) + 1;
30251  data3 = (char *) malloc (pagesize);
30252  if (!data3)
30253    exit (1);
30254  if (read (fd, data3, pagesize) != pagesize)
30255    exit (1);
30256  for (i = 0; i < pagesize; ++i)
30257    if (*(data + i) != *(data3 + i))
30258      exit (1);
30259  close (fd);
30260  exit (0);
30261}
30262_ACEOF
30263rm -f conftest$ac_exeext
30264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30265  (eval $ac_link) 2>&5
30266  ac_status=$?
30267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270  (eval $ac_try) 2>&5
30271  ac_status=$?
30272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273  (exit $ac_status); }; }; then
30274  ac_cv_func_mmap_fixed_mapped=yes
30275else
30276  echo "$as_me: program exited with status $ac_status" >&5
30277echo "$as_me: failed program was:" >&5
30278sed 's/^/| /' conftest.$ac_ext >&5
30279
30280( exit $ac_status )
30281ac_cv_func_mmap_fixed_mapped=no
30282fi
30283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30284fi
30285fi
30286echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30287echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30288if test $ac_cv_func_mmap_fixed_mapped = yes; then
30289
30290cat >>confdefs.h <<\_ACEOF
30291#define HAVE_MMAP 1
30292_ACEOF
30293
30294fi
30295rm -f conftest.mmap
30296
30297echo "$as_me:$LINENO: checking for mmap of files" >&5
30298echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30299if test "${ac_cv_func_mmap_file+set}" = set; then
30300  echo $ECHO_N "(cached) $ECHO_C" >&6
30301else
30302   ac_ext=c
30303ac_cpp='$CPP $CPPFLAGS'
30304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30306ac_compiler_gnu=$ac_cv_c_compiler_gnu
30307
30308  if test "$cross_compiling" = yes; then
30309  ac_cv_func_mmap_file=no
30310else
30311  cat >conftest.$ac_ext <<_ACEOF
30312
30313    /* confdefs.h.  */
30314_ACEOF
30315cat confdefs.h >>conftest.$ac_ext
30316cat >>conftest.$ac_ext <<_ACEOF
30317/* end confdefs.h.  */
30318
30319#include <sys/types.h>
30320#include <sys/mman.h>
30321#include <fcntl.h>
30322
30323int
30324main ()
30325{
30326
30327  int fd;
30328  fd = creat ("foo",0777);
30329  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30330  unlink ("foo");
30331  return (fd != (int) MAP_FAILED);
30332  ;
30333  return 0;
30334}
30335_ACEOF
30336rm -f conftest$ac_exeext
30337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30338  (eval $ac_link) 2>&5
30339  ac_status=$?
30340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343  (eval $ac_try) 2>&5
30344  ac_status=$?
30345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346  (exit $ac_status); }; }; then
30347  ac_cv_func_mmap_file=yes
30348else
30349  echo "$as_me: program exited with status $ac_status" >&5
30350echo "$as_me: failed program was:" >&5
30351sed 's/^/| /' conftest.$ac_ext >&5
30352
30353( exit $ac_status )
30354ac_cv_func_mmap_file=no
30355fi
30356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30357fi
30358  ac_ext=c
30359ac_cpp='$CPP $CPPFLAGS'
30360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30362ac_compiler_gnu=$ac_cv_c_compiler_gnu
30363
30364
30365fi
30366echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30367echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30368if test "$ac_cv_func_mmap_file" = yes; then
30369
30370cat >>confdefs.h <<\_ACEOF
30371#define HAVE_MMAP_FILE
30372_ACEOF
30373
30374   MMAP_FILE=yes
30375
30376fi
30377
30378echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30379echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30380if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30381  echo $ECHO_N "(cached) $ECHO_C" >&6
30382else
30383  if test "$llvm_cv_os_type" = "Interix" ; then
30384   ac_cv_need_dev_zero_for_mmap=yes
30385 else
30386   ac_cv_need_dev_zero_for_mmap=no
30387 fi
30388
30389fi
30390echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30391echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30392if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30393
30394cat >>confdefs.h <<\_ACEOF
30395#define NEED_DEV_ZERO_FOR_MMAP 1
30396_ACEOF
30397
30398fi
30399echo "$as_me:$LINENO: checking for mprotect" >&5
30400echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30401if test "${ac_cv_func_mprotect+set}" = set; then
30402  echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404  cat >conftest.$ac_ext <<_ACEOF
30405/* confdefs.h.  */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h.  */
30410/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30411   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30412#define mprotect innocuous_mprotect
30413
30414/* System header to define __stub macros and hopefully few prototypes,
30415    which can conflict with char mprotect (); below.
30416    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417    <limits.h> exists even on freestanding compilers.  */
30418
30419#ifdef __STDC__
30420# include <limits.h>
30421#else
30422# include <assert.h>
30423#endif
30424
30425#undef mprotect
30426
30427/* Override any gcc2 internal prototype to avoid an error.  */
30428#ifdef __cplusplus
30429extern "C"
30430{
30431#endif
30432/* We use char because int might match the return type of a gcc2
30433   builtin and then its argument prototype would still apply.  */
30434char mprotect ();
30435/* The GNU C library defines this for functions which it implements
30436    to always fail with ENOSYS.  Some functions are actually named
30437    something starting with __ and the normal name is an alias.  */
30438#if defined (__stub_mprotect) || defined (__stub___mprotect)
30439choke me
30440#else
30441char (*f) () = mprotect;
30442#endif
30443#ifdef __cplusplus
30444}
30445#endif
30446
30447int
30448main ()
30449{
30450return f != mprotect;
30451  ;
30452  return 0;
30453}
30454_ACEOF
30455rm -f conftest.$ac_objext conftest$ac_exeext
30456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30457  (eval $ac_link) 2>conftest.er1
30458  ac_status=$?
30459  grep -v '^ *+' conftest.er1 >conftest.err
30460  rm -f conftest.er1
30461  cat conftest.err >&5
30462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463  (exit $ac_status); } &&
30464	 { ac_try='test -z "$ac_c_werror_flag"
30465			 || test ! -s conftest.err'
30466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30467  (eval $ac_try) 2>&5
30468  ac_status=$?
30469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470  (exit $ac_status); }; } &&
30471	 { ac_try='test -s conftest$ac_exeext'
30472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473  (eval $ac_try) 2>&5
30474  ac_status=$?
30475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476  (exit $ac_status); }; }; then
30477  ac_cv_func_mprotect=yes
30478else
30479  echo "$as_me: failed program was:" >&5
30480sed 's/^/| /' conftest.$ac_ext >&5
30481
30482ac_cv_func_mprotect=no
30483fi
30484rm -f conftest.err conftest.$ac_objext \
30485      conftest$ac_exeext conftest.$ac_ext
30486fi
30487echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30488echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30489if test $ac_cv_func_mprotect = yes; then
30490  :
30491else
30492  { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30493echo "$as_me: error: Function mprotect() required but not found" >&2;}
30494   { (exit 1); exit 1; }; }
30495fi
30496
30497
30498if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30499then
30500  { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30501echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30502fi
30503if test "$ac_cv_func_mmap_file" = "no"
30504then
30505  { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30506echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30507fi
30508
30509
30510echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30511echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30512if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30513  echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515  llvm_cv_llvmgcc_sanity="no"
30516if test -x "$LLVMGCC" ; then
30517  cp /dev/null conftest.c
30518  "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30519  if test $? -eq 0 ; then
30520    llvm_cv_llvmgcc_sanity="yes"
30521  fi
30522  rm conftest.c
30523fi
30524fi
30525echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30526echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30527
30528if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30529  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30530  LLVMCC1=$llvmcc1path
30531
30532  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30533  LLVMCC1PLUS=$llvmcc1pluspath
30534
30535  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30536  LLVMGCCDIR=$llvmgccdir
30537
30538fi
30539
30540SHLIBEXT=$libltdl_cv_shlibext
30541
30542
30543# Translate the various configuration directories and other basic
30544# information into substitutions that will end up in Makefile.config.in
30545# that these configured values can be used by the makefiles
30546eval LLVM_PREFIX="${prefix}";
30547eval LLVM_BINDIR="${prefix}/bin";
30548eval LLVM_LIBDIR="${prefix}/lib";
30549eval LLVM_DATADIR="${prefix}/share/llvm";
30550eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30551eval LLVM_ETCDIR="${prefix}/etc/llvm";
30552eval LLVM_INCLUDEDIR="${prefix}/include";
30553eval LLVM_INFODIR="${prefix}/info";
30554eval LLVM_MANDIR="${prefix}/man";
30555LLVM_CONFIGTIME=`date`
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567# Place the various directores into the config.h file as #defines so that we
30568# can know about the installation paths within LLVM.
30569
30570cat >>confdefs.h <<_ACEOF
30571#define LLVM_PREFIX "$LLVM_PREFIX"
30572_ACEOF
30573
30574
30575cat >>confdefs.h <<_ACEOF
30576#define LLVM_BINDIR "$LLVM_BINDIR"
30577_ACEOF
30578
30579
30580cat >>confdefs.h <<_ACEOF
30581#define LLVM_LIBDIR "$LLVM_LIBDIR"
30582_ACEOF
30583
30584
30585cat >>confdefs.h <<_ACEOF
30586#define LLVM_DATADIR "$LLVM_DATADIR"
30587_ACEOF
30588
30589
30590cat >>confdefs.h <<_ACEOF
30591#define LLVM_DATADIR "$LLVM_DOCSDIR"
30592_ACEOF
30593
30594
30595cat >>confdefs.h <<_ACEOF
30596#define LLVM_ETCDIR "$LLVM_ETCDIR"
30597_ACEOF
30598
30599
30600cat >>confdefs.h <<_ACEOF
30601#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30602_ACEOF
30603
30604
30605cat >>confdefs.h <<_ACEOF
30606#define LLVM_INFODIR "$LLVM_INFODIR"
30607_ACEOF
30608
30609
30610cat >>confdefs.h <<_ACEOF
30611#define LLVM_MANDIR "$LLVM_MANDIR"
30612_ACEOF
30613
30614
30615cat >>confdefs.h <<_ACEOF
30616#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30617_ACEOF
30618
30619
30620
30621          ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30622
30623          ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30624
30625          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30626
30627          ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30628
30629          ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30630
30631
30632          ac_config_files="$ac_config_files Makefile.config"
30633
30634
30635          ac_config_files="$ac_config_files docs/doxygen.cfg"
30636
30637
30638          ac_config_commands="$ac_config_commands setup"
30639
30640          ac_config_commands="$ac_config_commands Makefile"
30641
30642
30643          ac_config_commands="$ac_config_commands Makefile.common"
30644
30645
30646          ac_config_commands="$ac_config_commands examples/Makefile"
30647
30648
30649          ac_config_commands="$ac_config_commands lib/Makefile"
30650
30651
30652          ac_config_commands="$ac_config_commands runtime/Makefile"
30653
30654
30655          ac_config_commands="$ac_config_commands test/Makefile"
30656
30657
30658          ac_config_commands="$ac_config_commands test/Makefile.tests"
30659
30660
30661          ac_config_commands="$ac_config_commands tools/Makefile"
30662
30663
30664          ac_config_commands="$ac_config_commands utils/Makefile"
30665
30666
30667          ac_config_commands="$ac_config_commands projects/Makefile"
30668
30669
30670
30671cat >confcache <<\_ACEOF
30672# This file is a shell script that caches the results of configure
30673# tests run on this system so they can be shared between configure
30674# scripts and configure runs, see configure's option --config-cache.
30675# It is not useful on other systems.  If it contains results you don't
30676# want to keep, you may remove or edit it.
30677#
30678# config.status only pays attention to the cache file if you give it
30679# the --recheck option to rerun configure.
30680#
30681# `ac_cv_env_foo' variables (set or unset) will be overridden when
30682# loading this file, other *unset* `ac_cv_foo' will be assigned the
30683# following values.
30684
30685_ACEOF
30686
30687# The following way of writing the cache mishandles newlines in values,
30688# but we know of no workaround that is simple, portable, and efficient.
30689# So, don't put newlines in cache variables' values.
30690# Ultrix sh set writes to stderr and can't be redirected directly,
30691# and sets the high bit in the cache file unless we assign to the vars.
30692{
30693  (set) 2>&1 |
30694    case `(ac_space=' '; set | grep ac_space) 2>&1` in
30695    *ac_space=\ *)
30696      # `set' does not quote correctly, so add quotes (double-quote
30697      # substitution turns \\\\ into \\, and sed turns \\ into \).
30698      sed -n \
30699	"s/'/'\\\\''/g;
30700	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30701      ;;
30702    *)
30703      # `set' quotes correctly as required by POSIX, so do not add quotes.
30704      sed -n \
30705	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30706      ;;
30707    esac;
30708} |
30709  sed '
30710     t clear
30711     : clear
30712     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30713     t end
30714     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30715     : end' >>confcache
30716if diff $cache_file confcache >/dev/null 2>&1; then :; else
30717  if test -w $cache_file; then
30718    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30719    cat confcache >$cache_file
30720  else
30721    echo "not updating unwritable cache $cache_file"
30722  fi
30723fi
30724rm -f confcache
30725
30726test "x$prefix" = xNONE && prefix=$ac_default_prefix
30727# Let make expand exec_prefix.
30728test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30729
30730# VPATH may cause trouble with some makes, so we remove $(srcdir),
30731# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30732# trailing colons and then remove the whole line if VPATH becomes empty
30733# (actually we leave an empty line to preserve line numbers).
30734if test "x$srcdir" = x.; then
30735  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
30736s/:*\$(srcdir):*/:/;
30737s/:*\${srcdir}:*/:/;
30738s/:*@srcdir@:*/:/;
30739s/^\([^=]*=[	 ]*\):*/\1/;
30740s/:*$//;
30741s/^[^=]*=[	 ]*$//;
30742}'
30743fi
30744
30745DEFS=-DHAVE_CONFIG_H
30746
30747ac_libobjs=
30748ac_ltlibobjs=
30749for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30750  # 1. Remove the extension, and $U if already installed.
30751  ac_i=`echo "$ac_i" |
30752	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30753  # 2. Add them.
30754  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30755  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30756done
30757LIBOBJS=$ac_libobjs
30758
30759LTLIBOBJS=$ac_ltlibobjs
30760
30761
30762if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30763  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30764Usually this means the macro was only invoked conditionally." >&5
30765echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30766Usually this means the macro was only invoked conditionally." >&2;}
30767   { (exit 1); exit 1; }; }
30768fi
30769if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30770  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30771Usually this means the macro was only invoked conditionally." >&5
30772echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30773Usually this means the macro was only invoked conditionally." >&2;}
30774   { (exit 1); exit 1; }; }
30775fi
30776
30777: ${CONFIG_STATUS=./config.status}
30778ac_clean_files_save=$ac_clean_files
30779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30781echo "$as_me: creating $CONFIG_STATUS" >&6;}
30782cat >$CONFIG_STATUS <<_ACEOF
30783#! $SHELL
30784# Generated by $as_me.
30785# Run this file to recreate the current configuration.
30786# Compiler output produced by configure, useful for debugging
30787# configure, is in config.log if it exists.
30788
30789debug=false
30790ac_cs_recheck=false
30791ac_cs_silent=false
30792SHELL=\${CONFIG_SHELL-$SHELL}
30793_ACEOF
30794
30795cat >>$CONFIG_STATUS <<\_ACEOF
30796## --------------------- ##
30797## M4sh Initialization.  ##
30798## --------------------- ##
30799
30800# Be Bourne compatible
30801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30802  emulate sh
30803  NULLCMD=:
30804  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30805  # is contrary to our usage.  Disable this feature.
30806  alias -g '${1+"$@"}'='"$@"'
30807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30808  set -o posix
30809fi
30810DUALCASE=1; export DUALCASE # for MKS sh
30811
30812# Support unset when possible.
30813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30814  as_unset=unset
30815else
30816  as_unset=false
30817fi
30818
30819
30820# Work around bugs in pre-3.0 UWIN ksh.
30821$as_unset ENV MAIL MAILPATH
30822PS1='$ '
30823PS2='> '
30824PS4='+ '
30825
30826# NLS nuisances.
30827for as_var in \
30828  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30829  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30830  LC_TELEPHONE LC_TIME
30831do
30832  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30833    eval $as_var=C; export $as_var
30834  else
30835    $as_unset $as_var
30836  fi
30837done
30838
30839# Required to use basename.
30840if expr a : '\(a\)' >/dev/null 2>&1; then
30841  as_expr=expr
30842else
30843  as_expr=false
30844fi
30845
30846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30847  as_basename=basename
30848else
30849  as_basename=false
30850fi
30851
30852
30853# Name of the executable.
30854as_me=`$as_basename "$0" ||
30855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30856	 X"$0" : 'X\(//\)$' \| \
30857	 X"$0" : 'X\(/\)$' \| \
30858	 .     : '\(.\)' 2>/dev/null ||
30859echo X/"$0" |
30860    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30861  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
30862  	  /^X\/\(\/\).*/{ s//\1/; q; }
30863  	  s/.*/./; q'`
30864
30865
30866# PATH needs CR, and LINENO needs CR and PATH.
30867# Avoid depending upon Character Ranges.
30868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30871as_cr_digits='0123456789'
30872as_cr_alnum=$as_cr_Letters$as_cr_digits
30873
30874# The user is always right.
30875if test "${PATH_SEPARATOR+set}" != set; then
30876  echo "#! /bin/sh" >conf$$.sh
30877  echo  "exit 0"   >>conf$$.sh
30878  chmod +x conf$$.sh
30879  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30880    PATH_SEPARATOR=';'
30881  else
30882    PATH_SEPARATOR=:
30883  fi
30884  rm -f conf$$.sh
30885fi
30886
30887
30888  as_lineno_1=$LINENO
30889  as_lineno_2=$LINENO
30890  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30891  test "x$as_lineno_1" != "x$as_lineno_2" &&
30892  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30893  # Find who we are.  Look in the path if we contain no path at all
30894  # relative or not.
30895  case $0 in
30896    *[\\/]* ) as_myself=$0 ;;
30897    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898for as_dir in $PATH
30899do
30900  IFS=$as_save_IFS
30901  test -z "$as_dir" && as_dir=.
30902  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30903done
30904
30905       ;;
30906  esac
30907  # We did not find ourselves, most probably we were run as `sh COMMAND'
30908  # in which case we are not to be found in the path.
30909  if test "x$as_myself" = x; then
30910    as_myself=$0
30911  fi
30912  if test ! -f "$as_myself"; then
30913    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30915   { (exit 1); exit 1; }; }
30916  fi
30917  case $CONFIG_SHELL in
30918  '')
30919    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30921do
30922  IFS=$as_save_IFS
30923  test -z "$as_dir" && as_dir=.
30924  for as_base in sh bash ksh sh5; do
30925	 case $as_dir in
30926	 /*)
30927	   if ("$as_dir/$as_base" -c '
30928  as_lineno_1=$LINENO
30929  as_lineno_2=$LINENO
30930  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30931  test "x$as_lineno_1" != "x$as_lineno_2" &&
30932  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30933	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30934	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30935	     CONFIG_SHELL=$as_dir/$as_base
30936	     export CONFIG_SHELL
30937	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30938	   fi;;
30939	 esac
30940       done
30941done
30942;;
30943  esac
30944
30945  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30946  # uniformly replaced by the line number.  The first 'sed' inserts a
30947  # line-number line before each line; the second 'sed' does the real
30948  # work.  The second script uses 'N' to pair each line-number line
30949  # with the numbered line, and appends trailing '-' during
30950  # substitution so that $LINENO is not a special case at line end.
30951  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30952  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30953  sed '=' <$as_myself |
30954    sed '
30955      N
30956      s,$,-,
30957      : loop
30958      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30959      t loop
30960      s,-$,,
30961      s,^['$as_cr_digits']*\n,,
30962    ' >$as_me.lineno &&
30963  chmod +x $as_me.lineno ||
30964    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30966   { (exit 1); exit 1; }; }
30967
30968  # Don't try to exec as it changes $[0], causing all sort of problems
30969  # (the dirname of $[0] is not the place where we might find the
30970  # original and so on.  Autoconf is especially sensible to this).
30971  . ./$as_me.lineno
30972  # Exit status is that of the last command.
30973  exit
30974}
30975
30976
30977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30978  *c*,-n*) ECHO_N= ECHO_C='
30979' ECHO_T='	' ;;
30980  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30981  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30982esac
30983
30984if expr a : '\(a\)' >/dev/null 2>&1; then
30985  as_expr=expr
30986else
30987  as_expr=false
30988fi
30989
30990rm -f conf$$ conf$$.exe conf$$.file
30991echo >conf$$.file
30992if ln -s conf$$.file conf$$ 2>/dev/null; then
30993  # We could just check for DJGPP; but this test a) works b) is more generic
30994  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30995  if test -f conf$$.exe; then
30996    # Don't use ln at all; we don't have any links
30997    as_ln_s='cp -p'
30998  else
30999    as_ln_s='ln -s'
31000  fi
31001elif ln conf$$.file conf$$ 2>/dev/null; then
31002  as_ln_s=ln
31003else
31004  as_ln_s='cp -p'
31005fi
31006rm -f conf$$ conf$$.exe conf$$.file
31007
31008if mkdir -p . 2>/dev/null; then
31009  as_mkdir_p=:
31010else
31011  test -d ./-p && rmdir ./-p
31012  as_mkdir_p=false
31013fi
31014
31015as_executable_p="test -f"
31016
31017# Sed expression to map a string onto a valid CPP name.
31018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31019
31020# Sed expression to map a string onto a valid variable name.
31021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31022
31023
31024# IFS
31025# We need space, tab and new line, in precisely that order.
31026as_nl='
31027'
31028IFS=" 	$as_nl"
31029
31030# CDPATH.
31031$as_unset CDPATH
31032
31033exec 6>&1
31034
31035# Open the log real soon, to keep \$[0] and so on meaningful, and to
31036# report actual input values of CONFIG_FILES etc. instead of their
31037# values after options handling.  Logging --version etc. is OK.
31038exec 5>>config.log
31039{
31040  echo
31041  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31042## Running $as_me. ##
31043_ASBOX
31044} >&5
31045cat >&5 <<_CSEOF
31046
31047This file was extended by llvm $as_me 1.6, which was
31048generated by GNU Autoconf 2.59.  Invocation command line was
31049
31050  CONFIG_FILES    = $CONFIG_FILES
31051  CONFIG_HEADERS  = $CONFIG_HEADERS
31052  CONFIG_LINKS    = $CONFIG_LINKS
31053  CONFIG_COMMANDS = $CONFIG_COMMANDS
31054  $ $0 $@
31055
31056_CSEOF
31057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31058echo >&5
31059_ACEOF
31060
31061# Files that config.status was made for.
31062if test -n "$ac_config_files"; then
31063  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31064fi
31065
31066if test -n "$ac_config_headers"; then
31067  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31068fi
31069
31070if test -n "$ac_config_links"; then
31071  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31072fi
31073
31074if test -n "$ac_config_commands"; then
31075  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31076fi
31077
31078cat >>$CONFIG_STATUS <<\_ACEOF
31079
31080ac_cs_usage="\
31081\`$as_me' instantiates files from templates according to the
31082current configuration.
31083
31084Usage: $0 [OPTIONS] [FILE]...
31085
31086  -h, --help       print this help, then exit
31087  -V, --version    print version number, then exit
31088  -q, --quiet      do not print progress messages
31089  -d, --debug      don't remove temporary files
31090      --recheck    update $as_me by reconfiguring in the same conditions
31091  --file=FILE[:TEMPLATE]
31092		   instantiate the configuration file FILE
31093  --header=FILE[:TEMPLATE]
31094		   instantiate the configuration header FILE
31095
31096Configuration files:
31097$config_files
31098
31099Configuration headers:
31100$config_headers
31101
31102Configuration commands:
31103$config_commands
31104
31105Report bugs to <bug-autoconf@gnu.org>."
31106_ACEOF
31107
31108cat >>$CONFIG_STATUS <<_ACEOF
31109ac_cs_version="\\
31110llvm config.status 1.6
31111configured by $0, generated by GNU Autoconf 2.59,
31112  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31113
31114Copyright (C) 2003 Free Software Foundation, Inc.
31115This config.status script is free software; the Free Software Foundation
31116gives unlimited permission to copy, distribute and modify it."
31117srcdir=$srcdir
31118INSTALL="$INSTALL"
31119_ACEOF
31120
31121cat >>$CONFIG_STATUS <<\_ACEOF
31122# If no file are specified by the user, then we need to provide default
31123# value.  By we need to know if files were specified by the user.
31124ac_need_defaults=:
31125while test $# != 0
31126do
31127  case $1 in
31128  --*=*)
31129    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31130    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31131    ac_shift=:
31132    ;;
31133  -*)
31134    ac_option=$1
31135    ac_optarg=$2
31136    ac_shift=shift
31137    ;;
31138  *) # This is not an option, so the user has probably given explicit
31139     # arguments.
31140     ac_option=$1
31141     ac_need_defaults=false;;
31142  esac
31143
31144  case $ac_option in
31145  # Handling of the options.
31146_ACEOF
31147cat >>$CONFIG_STATUS <<\_ACEOF
31148  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31149    ac_cs_recheck=: ;;
31150  --version | --vers* | -V )
31151    echo "$ac_cs_version"; exit 0 ;;
31152  --he | --h)
31153    # Conflict between --help and --header
31154    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31155Try \`$0 --help' for more information." >&5
31156echo "$as_me: error: ambiguous option: $1
31157Try \`$0 --help' for more information." >&2;}
31158   { (exit 1); exit 1; }; };;
31159  --help | --hel | -h )
31160    echo "$ac_cs_usage"; exit 0 ;;
31161  --debug | --d* | -d )
31162    debug=: ;;
31163  --file | --fil | --fi | --f )
31164    $ac_shift
31165    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31166    ac_need_defaults=false;;
31167  --header | --heade | --head | --hea )
31168    $ac_shift
31169    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31170    ac_need_defaults=false;;
31171  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31172  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31173    ac_cs_silent=: ;;
31174
31175  # This is an error.
31176  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31177Try \`$0 --help' for more information." >&5
31178echo "$as_me: error: unrecognized option: $1
31179Try \`$0 --help' for more information." >&2;}
31180   { (exit 1); exit 1; }; } ;;
31181
31182  *) ac_config_targets="$ac_config_targets $1" ;;
31183
31184  esac
31185  shift
31186done
31187
31188ac_configure_extra_args=
31189
31190if $ac_cs_silent; then
31191  exec 6>/dev/null
31192  ac_configure_extra_args="$ac_configure_extra_args --silent"
31193fi
31194
31195_ACEOF
31196cat >>$CONFIG_STATUS <<_ACEOF
31197if \$ac_cs_recheck; then
31198  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31199  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31200fi
31201
31202_ACEOF
31203
31204cat >>$CONFIG_STATUS <<_ACEOF
31205#
31206# INIT-COMMANDS section.
31207#
31208
31209llvm_src="${srcdir}"
31210
31211_ACEOF
31212
31213
31214
31215cat >>$CONFIG_STATUS <<\_ACEOF
31216for ac_config_target in $ac_config_targets
31217do
31218  case "$ac_config_target" in
31219  # Handling of arguments.
31220  "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31221  "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31222  "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31223  "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31224  "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31225  "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31226  "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31227  "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31228  "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31229  "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31230  "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31231  "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31232  "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31233  "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31234  "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31235  "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31236  "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31237  "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31238  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31239echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31240   { (exit 1); exit 1; }; };;
31241  esac
31242done
31243
31244# If the user did not use the arguments to specify the items to instantiate,
31245# then the envvar interface is used.  Set only those that are not.
31246# We use the long form for the default assignment because of an extremely
31247# bizarre bug on SunOS 4.1.3.
31248if $ac_need_defaults; then
31249  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31250  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31251  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31252fi
31253
31254# Have a temporary directory for convenience.  Make it in the build tree
31255# simply because there is no reason to put it here, and in addition,
31256# creating and moving files from /tmp can sometimes cause problems.
31257# Create a temporary directory, and hook for its removal unless debugging.
31258$debug ||
31259{
31260  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31261  trap '{ (exit 1); exit 1; }' 1 2 13 15
31262}
31263
31264# Create a (secure) tmp directory for tmp files.
31265
31266{
31267  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31268  test -n "$tmp" && test -d "$tmp"
31269}  ||
31270{
31271  tmp=./confstat$$-$RANDOM
31272  (umask 077 && mkdir $tmp)
31273} ||
31274{
31275   echo "$me: cannot create a temporary directory in ." >&2
31276   { (exit 1); exit 1; }
31277}
31278
31279_ACEOF
31280
31281cat >>$CONFIG_STATUS <<_ACEOF
31282
31283#
31284# CONFIG_FILES section.
31285#
31286
31287# No need to generate the scripts if there are no CONFIG_FILES.
31288# This happens for instance when ./config.status config.h
31289if test -n "\$CONFIG_FILES"; then
31290  # Protect against being on the right side of a sed subst in config.status.
31291  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31292   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31293s,@SHELL@,$SHELL,;t t
31294s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31295s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31296s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31297s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31298s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31299s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31300s,@exec_prefix@,$exec_prefix,;t t
31301s,@prefix@,$prefix,;t t
31302s,@program_transform_name@,$program_transform_name,;t t
31303s,@bindir@,$bindir,;t t
31304s,@sbindir@,$sbindir,;t t
31305s,@libexecdir@,$libexecdir,;t t
31306s,@datadir@,$datadir,;t t
31307s,@sysconfdir@,$sysconfdir,;t t
31308s,@sharedstatedir@,$sharedstatedir,;t t
31309s,@localstatedir@,$localstatedir,;t t
31310s,@libdir@,$libdir,;t t
31311s,@includedir@,$includedir,;t t
31312s,@oldincludedir@,$oldincludedir,;t t
31313s,@infodir@,$infodir,;t t
31314s,@mandir@,$mandir,;t t
31315s,@build_alias@,$build_alias,;t t
31316s,@host_alias@,$host_alias,;t t
31317s,@target_alias@,$target_alias,;t t
31318s,@DEFS@,$DEFS,;t t
31319s,@ECHO_C@,$ECHO_C,;t t
31320s,@ECHO_N@,$ECHO_N,;t t
31321s,@ECHO_T@,$ECHO_T,;t t
31322s,@LIBS@,$LIBS,;t t
31323s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31324s,@subdirs@,$subdirs,;t t
31325s,@build@,$build,;t t
31326s,@build_cpu@,$build_cpu,;t t
31327s,@build_vendor@,$build_vendor,;t t
31328s,@build_os@,$build_os,;t t
31329s,@host@,$host,;t t
31330s,@host_cpu@,$host_cpu,;t t
31331s,@host_vendor@,$host_vendor,;t t
31332s,@host_os@,$host_os,;t t
31333s,@target@,$target,;t t
31334s,@target_cpu@,$target_cpu,;t t
31335s,@target_vendor@,$target_vendor,;t t
31336s,@target_os@,$target_os,;t t
31337s,@OS@,$OS,;t t
31338s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31339s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31340s,@ARCH@,$ARCH,;t t
31341s,@ENDIAN@,$ENDIAN,;t t
31342s,@CC@,$CC,;t t
31343s,@CFLAGS@,$CFLAGS,;t t
31344s,@LDFLAGS@,$LDFLAGS,;t t
31345s,@CPPFLAGS@,$CPPFLAGS,;t t
31346s,@ac_ct_CC@,$ac_ct_CC,;t t
31347s,@EXEEXT@,$EXEEXT,;t t
31348s,@OBJEXT@,$OBJEXT,;t t
31349s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31350s,@JIT@,$JIT,;t t
31351s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31352s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31353s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31354s,@CPP@,$CPP,;t t
31355s,@CXX@,$CXX,;t t
31356s,@CXXFLAGS@,$CXXFLAGS,;t t
31357s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31358s,@LEX@,$LEX,;t t
31359s,@LEXLIB@,$LEXLIB,;t t
31360s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31361s,@FLEX@,$FLEX,;t t
31362s,@YACC@,$YACC,;t t
31363s,@BISON@,$BISON,;t t
31364s,@ifGNUmake@,$ifGNUmake,;t t
31365s,@LN_S@,$LN_S,;t t
31366s,@CMP@,$CMP,;t t
31367s,@CP@,$CP,;t t
31368s,@DATE@,$DATE,;t t
31369s,@FIND@,$FIND,;t t
31370s,@GREP@,$GREP,;t t
31371s,@MKDIR@,$MKDIR,;t t
31372s,@MV@,$MV,;t t
31373s,@RANLIB@,$RANLIB,;t t
31374s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31375s,@RM@,$RM,;t t
31376s,@SED@,$SED,;t t
31377s,@TAR@,$TAR,;t t
31378s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31379s,@GV@,$GV,;t t
31380s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31381s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31382s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31383s,@BZIP2@,$BZIP2,;t t
31384s,@DOT@,$DOT,;t t
31385s,@DOXYGEN@,$DOXYGEN,;t t
31386s,@ETAGS@,$ETAGS,;t t
31387s,@GROFF@,$GROFF,;t t
31388s,@GZIP@,$GZIP,;t t
31389s,@POD2HTML@,$POD2HTML,;t t
31390s,@POD2MAN@,$POD2MAN,;t t
31391s,@RUNTEST@,$RUNTEST,;t t
31392s,@TCLSH@,$TCLSH,;t t
31393s,@ZIP@,$ZIP,;t t
31394s,@EGREP@,$EGREP,;t t
31395s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31396s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31397s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31398s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31399s,@LIBADD_DL@,$LIBADD_DL,;t t
31400s,@ECHO@,$ECHO,;t t
31401s,@AR@,$AR,;t t
31402s,@ac_ct_AR@,$ac_ct_AR,;t t
31403s,@STRIP@,$STRIP,;t t
31404s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31405s,@CXXCPP@,$CXXCPP,;t t
31406s,@F77@,$F77,;t t
31407s,@FFLAGS@,$FFLAGS,;t t
31408s,@ac_ct_F77@,$ac_ct_F77,;t t
31409s,@LIBTOOL@,$LIBTOOL,;t t
31410s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31411s,@LLVMGCC@,$LLVMGCC,;t t
31412s,@LLVMGXX@,$LLVMGXX,;t t
31413s,@ALLOCA@,$ALLOCA,;t t
31414s,@MMAP_FILE@,$MMAP_FILE,;t t
31415s,@LLVMCC1@,$LLVMCC1,;t t
31416s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31417s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31418s,@SHLIBEXT@,$SHLIBEXT,;t t
31419s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31420s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31421s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31422s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31423s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31424s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31425s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31426s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31427s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31428s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31429s,@LIBOBJS@,$LIBOBJS,;t t
31430s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31431CEOF
31432
31433_ACEOF
31434
31435  cat >>$CONFIG_STATUS <<\_ACEOF
31436  # Split the substitutions into bite-sized pieces for seds with
31437  # small command number limits, like on Digital OSF/1 and HP-UX.
31438  ac_max_sed_lines=48
31439  ac_sed_frag=1 # Number of current file.
31440  ac_beg=1 # First line for current file.
31441  ac_end=$ac_max_sed_lines # Line after last line for current file.
31442  ac_more_lines=:
31443  ac_sed_cmds=
31444  while $ac_more_lines; do
31445    if test $ac_beg -gt 1; then
31446      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31447    else
31448      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31449    fi
31450    if test ! -s $tmp/subs.frag; then
31451      ac_more_lines=false
31452    else
31453      # The purpose of the label and of the branching condition is to
31454      # speed up the sed processing (if there are no `@' at all, there
31455      # is no need to browse any of the substitutions).
31456      # These are the two extra sed commands mentioned above.
31457      (echo ':t
31458  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31459      if test -z "$ac_sed_cmds"; then
31460	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31461      else
31462	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31463      fi
31464      ac_sed_frag=`expr $ac_sed_frag + 1`
31465      ac_beg=$ac_end
31466      ac_end=`expr $ac_end + $ac_max_sed_lines`
31467    fi
31468  done
31469  if test -z "$ac_sed_cmds"; then
31470    ac_sed_cmds=cat
31471  fi
31472fi # test -n "$CONFIG_FILES"
31473
31474_ACEOF
31475cat >>$CONFIG_STATUS <<\_ACEOF
31476for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31477  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31478  case $ac_file in
31479  - | *:- | *:-:* ) # input from stdin
31480	cat >$tmp/stdin
31481	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31482	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31483  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31484	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31485  * )   ac_file_in=$ac_file.in ;;
31486  esac
31487
31488  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31489  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31490$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31491	 X"$ac_file" : 'X\(//\)[^/]' \| \
31492	 X"$ac_file" : 'X\(//\)$' \| \
31493	 X"$ac_file" : 'X\(/\)' \| \
31494	 .     : '\(.\)' 2>/dev/null ||
31495echo X"$ac_file" |
31496    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31497  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31498  	  /^X\(\/\/\)$/{ s//\1/; q; }
31499  	  /^X\(\/\).*/{ s//\1/; q; }
31500  	  s/.*/./; q'`
31501  { if $as_mkdir_p; then
31502    mkdir -p "$ac_dir"
31503  else
31504    as_dir="$ac_dir"
31505    as_dirs=
31506    while test ! -d "$as_dir"; do
31507      as_dirs="$as_dir $as_dirs"
31508      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31510	 X"$as_dir" : 'X\(//\)[^/]' \| \
31511	 X"$as_dir" : 'X\(//\)$' \| \
31512	 X"$as_dir" : 'X\(/\)' \| \
31513	 .     : '\(.\)' 2>/dev/null ||
31514echo X"$as_dir" |
31515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31516  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31517  	  /^X\(\/\/\)$/{ s//\1/; q; }
31518  	  /^X\(\/\).*/{ s//\1/; q; }
31519  	  s/.*/./; q'`
31520    done
31521    test ! -n "$as_dirs" || mkdir $as_dirs
31522  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31523echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31524   { (exit 1); exit 1; }; }; }
31525
31526  ac_builddir=.
31527
31528if test "$ac_dir" != .; then
31529  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31530  # A "../" for each directory in $ac_dir_suffix.
31531  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31532else
31533  ac_dir_suffix= ac_top_builddir=
31534fi
31535
31536case $srcdir in
31537  .)  # No --srcdir option.  We are building in place.
31538    ac_srcdir=.
31539    if test -z "$ac_top_builddir"; then
31540       ac_top_srcdir=.
31541    else
31542       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31543    fi ;;
31544  [\\/]* | ?:[\\/]* )  # Absolute path.
31545    ac_srcdir=$srcdir$ac_dir_suffix;
31546    ac_top_srcdir=$srcdir ;;
31547  *) # Relative path.
31548    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31549    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31550esac
31551
31552# Do not use `cd foo && pwd` to compute absolute paths, because
31553# the directories may not exist.
31554case `pwd` in
31555.) ac_abs_builddir="$ac_dir";;
31556*)
31557  case "$ac_dir" in
31558  .) ac_abs_builddir=`pwd`;;
31559  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31560  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31561  esac;;
31562esac
31563case $ac_abs_builddir in
31564.) ac_abs_top_builddir=${ac_top_builddir}.;;
31565*)
31566  case ${ac_top_builddir}. in
31567  .) ac_abs_top_builddir=$ac_abs_builddir;;
31568  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31569  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31570  esac;;
31571esac
31572case $ac_abs_builddir in
31573.) ac_abs_srcdir=$ac_srcdir;;
31574*)
31575  case $ac_srcdir in
31576  .) ac_abs_srcdir=$ac_abs_builddir;;
31577  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31578  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31579  esac;;
31580esac
31581case $ac_abs_builddir in
31582.) ac_abs_top_srcdir=$ac_top_srcdir;;
31583*)
31584  case $ac_top_srcdir in
31585  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31586  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31587  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31588  esac;;
31589esac
31590
31591
31592  case $INSTALL in
31593  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31594  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31595  esac
31596
31597  if test x"$ac_file" != x-; then
31598    { echo "$as_me:$LINENO: creating $ac_file" >&5
31599echo "$as_me: creating $ac_file" >&6;}
31600    rm -f "$ac_file"
31601  fi
31602  # Let's still pretend it is `configure' which instantiates (i.e., don't
31603  # use $as_me), people would be surprised to read:
31604  #    /* config.h.  Generated by config.status.  */
31605  if test x"$ac_file" = x-; then
31606    configure_input=
31607  else
31608    configure_input="$ac_file.  "
31609  fi
31610  configure_input=$configure_input"Generated from `echo $ac_file_in |
31611				     sed 's,.*/,,'` by configure."
31612
31613  # First look for the input files in the build tree, otherwise in the
31614  # src tree.
31615  ac_file_inputs=`IFS=:
31616    for f in $ac_file_in; do
31617      case $f in
31618      -) echo $tmp/stdin ;;
31619      [\\/$]*)
31620	 # Absolute (can't be DOS-style, as IFS=:)
31621	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31622echo "$as_me: error: cannot find input file: $f" >&2;}
31623   { (exit 1); exit 1; }; }
31624	 echo "$f";;
31625      *) # Relative
31626	 if test -f "$f"; then
31627	   # Build tree
31628	   echo "$f"
31629	 elif test -f "$srcdir/$f"; then
31630	   # Source tree
31631	   echo "$srcdir/$f"
31632	 else
31633	   # /dev/null tree
31634	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31635echo "$as_me: error: cannot find input file: $f" >&2;}
31636   { (exit 1); exit 1; }; }
31637	 fi;;
31638      esac
31639    done` || { (exit 1); exit 1; }
31640_ACEOF
31641cat >>$CONFIG_STATUS <<_ACEOF
31642  sed "$ac_vpsub
31643$extrasub
31644_ACEOF
31645cat >>$CONFIG_STATUS <<\_ACEOF
31646:t
31647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31648s,@configure_input@,$configure_input,;t t
31649s,@srcdir@,$ac_srcdir,;t t
31650s,@abs_srcdir@,$ac_abs_srcdir,;t t
31651s,@top_srcdir@,$ac_top_srcdir,;t t
31652s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31653s,@builddir@,$ac_builddir,;t t
31654s,@abs_builddir@,$ac_abs_builddir,;t t
31655s,@top_builddir@,$ac_top_builddir,;t t
31656s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31657s,@INSTALL@,$ac_INSTALL,;t t
31658" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31659  rm -f $tmp/stdin
31660  if test x"$ac_file" != x-; then
31661    mv $tmp/out $ac_file
31662  else
31663    cat $tmp/out
31664    rm -f $tmp/out
31665  fi
31666
31667done
31668_ACEOF
31669cat >>$CONFIG_STATUS <<\_ACEOF
31670
31671#
31672# CONFIG_HEADER section.
31673#
31674
31675# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31676# NAME is the cpp macro being defined and VALUE is the value it is being given.
31677#
31678# ac_d sets the value in "#define NAME VALUE" lines.
31679ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
31680ac_dB='[	 ].*$,\1#\2'
31681ac_dC=' '
31682ac_dD=',;t'
31683# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31684ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
31685ac_uB='$,\1#\2define\3'
31686ac_uC=' '
31687ac_uD=',;t'
31688
31689for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31690  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31691  case $ac_file in
31692  - | *:- | *:-:* ) # input from stdin
31693	cat >$tmp/stdin
31694	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31695	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31696  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31697	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31698  * )   ac_file_in=$ac_file.in ;;
31699  esac
31700
31701  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31702echo "$as_me: creating $ac_file" >&6;}
31703
31704  # First look for the input files in the build tree, otherwise in the
31705  # src tree.
31706  ac_file_inputs=`IFS=:
31707    for f in $ac_file_in; do
31708      case $f in
31709      -) echo $tmp/stdin ;;
31710      [\\/$]*)
31711	 # Absolute (can't be DOS-style, as IFS=:)
31712	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31713echo "$as_me: error: cannot find input file: $f" >&2;}
31714   { (exit 1); exit 1; }; }
31715	 # Do quote $f, to prevent DOS paths from being IFS'd.
31716	 echo "$f";;
31717      *) # Relative
31718	 if test -f "$f"; then
31719	   # Build tree
31720	   echo "$f"
31721	 elif test -f "$srcdir/$f"; then
31722	   # Source tree
31723	   echo "$srcdir/$f"
31724	 else
31725	   # /dev/null tree
31726	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31727echo "$as_me: error: cannot find input file: $f" >&2;}
31728   { (exit 1); exit 1; }; }
31729	 fi;;
31730      esac
31731    done` || { (exit 1); exit 1; }
31732  # Remove the trailing spaces.
31733  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
31734
31735_ACEOF
31736
31737# Transform confdefs.h into two sed scripts, `conftest.defines' and
31738# `conftest.undefs', that substitutes the proper values into
31739# config.h.in to produce config.h.  The first handles `#define'
31740# templates, and the second `#undef' templates.
31741# And first: Protect against being on the right side of a sed subst in
31742# config.status.  Protect against being in an unquoted here document
31743# in config.status.
31744rm -f conftest.defines conftest.undefs
31745# Using a here document instead of a string reduces the quoting nightmare.
31746# Putting comments in sed scripts is not portable.
31747#
31748# `end' is used to avoid that the second main sed command (meant for
31749# 0-ary CPP macros) applies to n-ary macro definitions.
31750# See the Autoconf documentation for `clear'.
31751cat >confdef2sed.sed <<\_ACEOF
31752s/[\\&,]/\\&/g
31753s,[\\$`],\\&,g
31754t clear
31755: clear
31756s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31757t end
31758s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31759: end
31760_ACEOF
31761# If some macros were called several times there might be several times
31762# the same #defines, which is useless.  Nevertheless, we may not want to
31763# sort them, since we want the *last* AC-DEFINE to be honored.
31764uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31765sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31766rm -f confdef2sed.sed
31767
31768# This sed command replaces #undef with comments.  This is necessary, for
31769# example, in the case of _POSIX_SOURCE, which is predefined and required
31770# on some systems where configure will not decide to define it.
31771cat >>conftest.undefs <<\_ACEOF
31772s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31773_ACEOF
31774
31775# Break up conftest.defines because some shells have a limit on the size
31776# of here documents, and old seds have small limits too (100 cmds).
31777echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31778echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31779echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31780echo '  :' >>$CONFIG_STATUS
31781rm -f conftest.tail
31782while grep . conftest.defines >/dev/null
31783do
31784  # Write a limited-size here document to $tmp/defines.sed.
31785  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31786  # Speed up: don't consider the non `#define' lines.
31787  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
31788  # Work around the forget-to-reset-the-flag bug.
31789  echo 't clr' >>$CONFIG_STATUS
31790  echo ': clr' >>$CONFIG_STATUS
31791  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31792  echo 'CEOF
31793  sed -f $tmp/defines.sed $tmp/in >$tmp/out
31794  rm -f $tmp/in
31795  mv $tmp/out $tmp/in
31796' >>$CONFIG_STATUS
31797  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31798  rm -f conftest.defines
31799  mv conftest.tail conftest.defines
31800done
31801rm -f conftest.defines
31802echo '  fi # grep' >>$CONFIG_STATUS
31803echo >>$CONFIG_STATUS
31804
31805# Break up conftest.undefs because some shells have a limit on the size
31806# of here documents, and old seds have small limits too (100 cmds).
31807echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31808rm -f conftest.tail
31809while grep . conftest.undefs >/dev/null
31810do
31811  # Write a limited-size here document to $tmp/undefs.sed.
31812  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31813  # Speed up: don't consider the non `#undef'
31814  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
31815  # Work around the forget-to-reset-the-flag bug.
31816  echo 't clr' >>$CONFIG_STATUS
31817  echo ': clr' >>$CONFIG_STATUS
31818  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31819  echo 'CEOF
31820  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31821  rm -f $tmp/in
31822  mv $tmp/out $tmp/in
31823' >>$CONFIG_STATUS
31824  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31825  rm -f conftest.undefs
31826  mv conftest.tail conftest.undefs
31827done
31828rm -f conftest.undefs
31829
31830cat >>$CONFIG_STATUS <<\_ACEOF
31831  # Let's still pretend it is `configure' which instantiates (i.e., don't
31832  # use $as_me), people would be surprised to read:
31833  #    /* config.h.  Generated by config.status.  */
31834  if test x"$ac_file" = x-; then
31835    echo "/* Generated by configure.  */" >$tmp/config.h
31836  else
31837    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31838  fi
31839  cat $tmp/in >>$tmp/config.h
31840  rm -f $tmp/in
31841  if test x"$ac_file" != x-; then
31842    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31843      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31844echo "$as_me: $ac_file is unchanged" >&6;}
31845    else
31846      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31847$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31848	 X"$ac_file" : 'X\(//\)[^/]' \| \
31849	 X"$ac_file" : 'X\(//\)$' \| \
31850	 X"$ac_file" : 'X\(/\)' \| \
31851	 .     : '\(.\)' 2>/dev/null ||
31852echo X"$ac_file" |
31853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31854  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31855  	  /^X\(\/\/\)$/{ s//\1/; q; }
31856  	  /^X\(\/\).*/{ s//\1/; q; }
31857  	  s/.*/./; q'`
31858      { if $as_mkdir_p; then
31859    mkdir -p "$ac_dir"
31860  else
31861    as_dir="$ac_dir"
31862    as_dirs=
31863    while test ! -d "$as_dir"; do
31864      as_dirs="$as_dir $as_dirs"
31865      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31867	 X"$as_dir" : 'X\(//\)[^/]' \| \
31868	 X"$as_dir" : 'X\(//\)$' \| \
31869	 X"$as_dir" : 'X\(/\)' \| \
31870	 .     : '\(.\)' 2>/dev/null ||
31871echo X"$as_dir" |
31872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31874  	  /^X\(\/\/\)$/{ s//\1/; q; }
31875  	  /^X\(\/\).*/{ s//\1/; q; }
31876  	  s/.*/./; q'`
31877    done
31878    test ! -n "$as_dirs" || mkdir $as_dirs
31879  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31880echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31881   { (exit 1); exit 1; }; }; }
31882
31883      rm -f $ac_file
31884      mv $tmp/config.h $ac_file
31885    fi
31886  else
31887    cat $tmp/config.h
31888    rm -f $tmp/config.h
31889  fi
31890done
31891_ACEOF
31892cat >>$CONFIG_STATUS <<\_ACEOF
31893
31894#
31895# CONFIG_COMMANDS section.
31896#
31897for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31898  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31899  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31901$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902	 X"$ac_dest" : 'X\(//\)[^/]' \| \
31903	 X"$ac_dest" : 'X\(//\)$' \| \
31904	 X"$ac_dest" : 'X\(/\)' \| \
31905	 .     : '\(.\)' 2>/dev/null ||
31906echo X"$ac_dest" |
31907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31908  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31909  	  /^X\(\/\/\)$/{ s//\1/; q; }
31910  	  /^X\(\/\).*/{ s//\1/; q; }
31911  	  s/.*/./; q'`
31912  { if $as_mkdir_p; then
31913    mkdir -p "$ac_dir"
31914  else
31915    as_dir="$ac_dir"
31916    as_dirs=
31917    while test ! -d "$as_dir"; do
31918      as_dirs="$as_dir $as_dirs"
31919      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31921	 X"$as_dir" : 'X\(//\)[^/]' \| \
31922	 X"$as_dir" : 'X\(//\)$' \| \
31923	 X"$as_dir" : 'X\(/\)' \| \
31924	 .     : '\(.\)' 2>/dev/null ||
31925echo X"$as_dir" |
31926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31927  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31928  	  /^X\(\/\/\)$/{ s//\1/; q; }
31929  	  /^X\(\/\).*/{ s//\1/; q; }
31930  	  s/.*/./; q'`
31931    done
31932    test ! -n "$as_dirs" || mkdir $as_dirs
31933  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31935   { (exit 1); exit 1; }; }; }
31936
31937  ac_builddir=.
31938
31939if test "$ac_dir" != .; then
31940  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31941  # A "../" for each directory in $ac_dir_suffix.
31942  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31943else
31944  ac_dir_suffix= ac_top_builddir=
31945fi
31946
31947case $srcdir in
31948  .)  # No --srcdir option.  We are building in place.
31949    ac_srcdir=.
31950    if test -z "$ac_top_builddir"; then
31951       ac_top_srcdir=.
31952    else
31953       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31954    fi ;;
31955  [\\/]* | ?:[\\/]* )  # Absolute path.
31956    ac_srcdir=$srcdir$ac_dir_suffix;
31957    ac_top_srcdir=$srcdir ;;
31958  *) # Relative path.
31959    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31960    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31961esac
31962
31963# Do not use `cd foo && pwd` to compute absolute paths, because
31964# the directories may not exist.
31965case `pwd` in
31966.) ac_abs_builddir="$ac_dir";;
31967*)
31968  case "$ac_dir" in
31969  .) ac_abs_builddir=`pwd`;;
31970  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31971  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31972  esac;;
31973esac
31974case $ac_abs_builddir in
31975.) ac_abs_top_builddir=${ac_top_builddir}.;;
31976*)
31977  case ${ac_top_builddir}. in
31978  .) ac_abs_top_builddir=$ac_abs_builddir;;
31979  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31980  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31981  esac;;
31982esac
31983case $ac_abs_builddir in
31984.) ac_abs_srcdir=$ac_srcdir;;
31985*)
31986  case $ac_srcdir in
31987  .) ac_abs_srcdir=$ac_abs_builddir;;
31988  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31989  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31990  esac;;
31991esac
31992case $ac_abs_builddir in
31993.) ac_abs_top_srcdir=$ac_top_srcdir;;
31994*)
31995  case $ac_top_srcdir in
31996  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31997  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31998  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31999  esac;;
32000esac
32001
32002
32003  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32004echo "$as_me: executing $ac_dest commands" >&6;}
32005  case $ac_dest in
32006    Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32007   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32008    Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32009   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32010    examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32011   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32012    lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32013   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32014    runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32015   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32016    test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32017   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32018    test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32019   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32020    tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32021   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32022    utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32023   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32024    projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32025   ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32026  esac
32027done
32028_ACEOF
32029
32030cat >>$CONFIG_STATUS <<\_ACEOF
32031
32032{ (exit 0); exit 0; }
32033_ACEOF
32034chmod +x $CONFIG_STATUS
32035ac_clean_files=$ac_clean_files_save
32036
32037
32038# configure is writing to config.log, and then calls config.status.
32039# config.status does its own redirection, appending to config.log.
32040# Unfortunately, on DOS this fails, as config.log is still kept open
32041# by configure, so config.status won't be able to write to it; its
32042# output is simply discarded.  So we exec the FD to /dev/null,
32043# effectively closing config.log, so it can be properly (re)opened and
32044# appended to by config.status.  When coming back to configure, we
32045# need to make the FD available again.
32046if test "$no_create" != yes; then
32047  ac_cs_success=:
32048  ac_config_status_args=
32049  test "$silent" = yes &&
32050    ac_config_status_args="$ac_config_status_args --quiet"
32051  exec 5>/dev/null
32052  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32053  exec 5>>config.log
32054  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32055  # would make configure fail if this is the last instruction.
32056  $ac_cs_success || { (exit 1); exit 1; }
32057fi
32058
32059#
32060# CONFIG_SUBDIRS section.
32061#
32062if test "$no_recursion" != yes; then
32063
32064  # Remove --cache-file and --srcdir arguments so they do not pile up.
32065  ac_sub_configure_args=
32066  ac_prev=
32067  for ac_arg in $ac_configure_args; do
32068    if test -n "$ac_prev"; then
32069      ac_prev=
32070      continue
32071    fi
32072    case $ac_arg in
32073    -cache-file | --cache-file | --cache-fil | --cache-fi \
32074    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32075      ac_prev=cache_file ;;
32076    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32077    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32078    | --c=*)
32079      ;;
32080    --config-cache | -C)
32081      ;;
32082    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32083      ac_prev=srcdir ;;
32084    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32085      ;;
32086    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32087      ac_prev=prefix ;;
32088    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32089      ;;
32090    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32091    esac
32092  done
32093
32094  # Always prepend --prefix to ensure using the same prefix
32095  # in subdir configurations.
32096  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32097
32098  ac_popdir=`pwd`
32099  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32100
32101    # Do not complain, so a configure script can configure whichever
32102    # parts of a large source tree are present.
32103    test -d $srcdir/$ac_dir || continue
32104
32105    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32106echo "$as_me: configuring in $ac_dir" >&6;}
32107    { if $as_mkdir_p; then
32108    mkdir -p "$ac_dir"
32109  else
32110    as_dir="$ac_dir"
32111    as_dirs=
32112    while test ! -d "$as_dir"; do
32113      as_dirs="$as_dir $as_dirs"
32114      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32116	 X"$as_dir" : 'X\(//\)[^/]' \| \
32117	 X"$as_dir" : 'X\(//\)$' \| \
32118	 X"$as_dir" : 'X\(/\)' \| \
32119	 .     : '\(.\)' 2>/dev/null ||
32120echo X"$as_dir" |
32121    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32122  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32123  	  /^X\(\/\/\)$/{ s//\1/; q; }
32124  	  /^X\(\/\).*/{ s//\1/; q; }
32125  	  s/.*/./; q'`
32126    done
32127    test ! -n "$as_dirs" || mkdir $as_dirs
32128  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32129echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32130   { (exit 1); exit 1; }; }; }
32131
32132    ac_builddir=.
32133
32134if test "$ac_dir" != .; then
32135  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32136  # A "../" for each directory in $ac_dir_suffix.
32137  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32138else
32139  ac_dir_suffix= ac_top_builddir=
32140fi
32141
32142case $srcdir in
32143  .)  # No --srcdir option.  We are building in place.
32144    ac_srcdir=.
32145    if test -z "$ac_top_builddir"; then
32146       ac_top_srcdir=.
32147    else
32148       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32149    fi ;;
32150  [\\/]* | ?:[\\/]* )  # Absolute path.
32151    ac_srcdir=$srcdir$ac_dir_suffix;
32152    ac_top_srcdir=$srcdir ;;
32153  *) # Relative path.
32154    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32155    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32156esac
32157
32158# Do not use `cd foo && pwd` to compute absolute paths, because
32159# the directories may not exist.
32160case `pwd` in
32161.) ac_abs_builddir="$ac_dir";;
32162*)
32163  case "$ac_dir" in
32164  .) ac_abs_builddir=`pwd`;;
32165  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32166  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32167  esac;;
32168esac
32169case $ac_abs_builddir in
32170.) ac_abs_top_builddir=${ac_top_builddir}.;;
32171*)
32172  case ${ac_top_builddir}. in
32173  .) ac_abs_top_builddir=$ac_abs_builddir;;
32174  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32175  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32176  esac;;
32177esac
32178case $ac_abs_builddir in
32179.) ac_abs_srcdir=$ac_srcdir;;
32180*)
32181  case $ac_srcdir in
32182  .) ac_abs_srcdir=$ac_abs_builddir;;
32183  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32184  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32185  esac;;
32186esac
32187case $ac_abs_builddir in
32188.) ac_abs_top_srcdir=$ac_top_srcdir;;
32189*)
32190  case $ac_top_srcdir in
32191  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32192  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32193  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32194  esac;;
32195esac
32196
32197
32198    cd $ac_dir
32199
32200    # Check for guested configure; otherwise get Cygnus style configure.
32201    if test -f $ac_srcdir/configure.gnu; then
32202      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32203    elif test -f $ac_srcdir/configure; then
32204      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32205    elif test -f $ac_srcdir/configure.in; then
32206      ac_sub_configure=$ac_configure
32207    else
32208      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32209echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32210      ac_sub_configure=
32211    fi
32212
32213    # The recursion is here.
32214    if test -n "$ac_sub_configure"; then
32215      # Make the cache file name correct relative to the subdirectory.
32216      case $cache_file in
32217      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32218      *) # Relative path.
32219	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32220      esac
32221
32222      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32223echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32224      # The eval makes quoting arguments work.
32225      eval $ac_sub_configure $ac_sub_configure_args \
32226	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32227	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32228echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32229   { (exit 1); exit 1; }; }
32230    fi
32231
32232    cd $ac_popdir
32233  done
32234fi
32235
32236
32237if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32238 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32239echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32240 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32241echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32242 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32243echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32244 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32245echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32246 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32247echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32248fi
32249